telnyx 5.69.0 → 5.71.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 +50 -0
- data/README.md +1 -1
- data/lib/telnyx/internal/util.rb +3 -1
- data/lib/telnyx/models/ai/assistant.rb +6 -149
- data/lib/telnyx/models/ai/assistant_create_params.rb +3 -42
- data/lib/telnyx/models/ai/assistant_update_params.rb +3 -42
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +3 -43
- data/lib/telnyx/models/ai/conversation_add_message_params.rb +4 -4
- data/lib/telnyx/models/ai/inference_embedding.rb +3 -43
- data/lib/telnyx/models/ai/observability.rb +46 -0
- data/lib/telnyx/models/ai/observability_req.rb +46 -0
- data/lib/telnyx/models/book_appointment_tool.rb +31 -0
- data/lib/telnyx/models/book_appointment_tool_params.rb +51 -0
- data/lib/telnyx/models/call_assistant_request.rb +176 -0
- data/lib/telnyx/models/call_control_bucket_ids.rb +23 -0
- data/lib/telnyx/models/call_control_retrieval_tool.rb +31 -0
- data/lib/telnyx/models/call_dial_params.rb +34 -1
- data/lib/telnyx/models/calls/action_answer_params.rb +11 -1
- data/lib/telnyx/models/calls/action_start_ai_assistant_params.rb +6 -39
- data/lib/telnyx/models/calls/action_transfer_params.rb +24 -1
- data/lib/telnyx/models/check_availability_tool.rb +31 -0
- data/lib/telnyx/models/check_availability_tool_params.rb +31 -0
- data/lib/telnyx/models/enterprise_create_params.rb +1 -1
- data/lib/telnyx/models/enterprise_public.rb +1 -1
- data/lib/telnyx/models/enterprise_update_params.rb +1 -1
- data/lib/telnyx/models/enterprises/reputation/{number_create_params.rb → number_associate_params.rb} +2 -2
- data/lib/telnyx/models/enterprises/reputation/{number_create_response.rb → number_associate_response.rb} +5 -5
- data/lib/telnyx/models/enterprises/reputation/{number_delete_params.rb → number_disassociate_params.rb} +2 -2
- data/lib/telnyx/models/enterprises/{reputation_list_params.rb → reputation_disable_params.rb} +2 -2
- data/lib/telnyx/models/enterprises/{reputation_create_params.rb → reputation_enable_params.rb} +6 -6
- data/lib/telnyx/models/enterprises/{reputation_create_response.rb → reputation_enable_response.rb} +2 -2
- data/lib/telnyx/models/enterprises/{reputation_delete_all_params.rb → reputation_retrieve_params.rb} +2 -2
- data/lib/telnyx/models/enterprises/{reputation_list_response.rb → reputation_retrieve_response.rb} +2 -2
- data/lib/telnyx/models/porting_orders/phone_number_block_list_params.rb +9 -9
- data/lib/telnyx/models/pronunciation_dict_alias_item.rb +51 -0
- data/lib/telnyx/models/pronunciation_dict_create_params.rb +5 -93
- data/lib/telnyx/models/pronunciation_dict_create_response.rb +3 -191
- data/lib/telnyx/models/pronunciation_dict_data.rb +101 -0
- data/lib/telnyx/models/pronunciation_dict_phoneme_item.rb +71 -0
- data/lib/telnyx/models/pronunciation_dict_retrieve_response.rb +3 -191
- data/lib/telnyx/models/pronunciation_dict_update_params.rb +5 -93
- data/lib/telnyx/models/pronunciation_dict_update_response.rb +3 -191
- data/lib/telnyx/models/texml/accounts/call_calls_params.rb +203 -191
- data/lib/telnyx/models/voice_clone_create_from_design_params.rb +3 -3
- data/lib/telnyx/models/voice_clone_create_from_upload_params.rb +371 -71
- data/lib/telnyx/models/voice_clone_create_params.rb +161 -51
- data/lib/telnyx/models/voice_clone_data.rb +51 -4
- data/lib/telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_params.rb +26 -0
- data/lib/telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_response.rb +54 -0
- data/lib/telnyx/models.rb +20 -0
- data/lib/telnyx/resources/ai/assistants/versions.rb +1 -1
- data/lib/telnyx/resources/ai/assistants.rb +2 -2
- data/lib/telnyx/resources/calls/actions.rb +7 -3
- data/lib/telnyx/resources/calls.rb +5 -1
- data/lib/telnyx/resources/enterprises/reputation/numbers.rb +42 -42
- data/lib/telnyx/resources/enterprises/reputation.rb +61 -61
- data/lib/telnyx/resources/pronunciation_dicts.rb +4 -4
- data/lib/telnyx/resources/texml/accounts/calls.rb +3 -3
- data/lib/telnyx/resources/voice_clones.rb +7 -27
- data/lib/telnyx/resources/whatsapp/phone_numbers/profile/photo.rb +20 -0
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +22 -9
- data/rbi/telnyx/models/ai/assistant.rbi +15 -329
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +4 -121
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +4 -121
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +4 -123
- data/rbi/telnyx/models/ai/conversation_add_message_params.rbi +5 -5
- data/rbi/telnyx/models/ai/inference_embedding.rbi +4 -123
- data/rbi/telnyx/models/ai/observability.rbi +90 -0
- data/rbi/telnyx/models/ai/observability_req.rbi +92 -0
- data/rbi/telnyx/models/book_appointment_tool.rbi +65 -0
- data/rbi/telnyx/models/book_appointment_tool_params.rbi +83 -0
- data/rbi/telnyx/models/call_assistant_request.rbi +322 -0
- data/rbi/telnyx/models/call_control_bucket_ids.rbi +42 -0
- data/rbi/telnyx/models/call_control_retrieval_tool.rbi +63 -0
- data/rbi/telnyx/models/call_dial_params.rbi +52 -0
- data/rbi/telnyx/models/calls/action_answer_params.rbi +15 -0
- data/rbi/telnyx/models/calls/action_start_ai_assistant_params.rbi +10 -77
- data/rbi/telnyx/models/calls/action_transfer_params.rbi +57 -0
- data/rbi/telnyx/models/check_availability_tool.rbi +67 -0
- data/rbi/telnyx/models/check_availability_tool_params.rbi +45 -0
- data/rbi/telnyx/models/enterprise_create_params.rbi +1 -1
- data/rbi/telnyx/models/enterprise_public.rbi +1 -1
- data/rbi/telnyx/models/enterprise_update_params.rbi +1 -1
- data/rbi/telnyx/models/enterprises/reputation/{number_create_params.rbi → number_associate_params.rbi} +2 -2
- data/rbi/telnyx/models/enterprises/reputation/{number_create_response.rbi → number_associate_response.rbi} +7 -7
- data/rbi/telnyx/models/enterprises/reputation/{number_delete_params.rbi → number_disassociate_params.rbi} +2 -2
- data/rbi/telnyx/models/enterprises/{reputation_list_params.rbi → reputation_disable_params.rbi} +2 -2
- data/rbi/telnyx/models/enterprises/{reputation_create_params.rbi → reputation_enable_params.rbi} +14 -14
- data/rbi/telnyx/models/enterprises/{reputation_create_response.rbi → reputation_enable_response.rbi} +2 -2
- data/rbi/telnyx/models/enterprises/{reputation_delete_all_params.rbi → reputation_retrieve_params.rbi} +2 -2
- data/rbi/telnyx/models/enterprises/{reputation_list_response.rbi → reputation_retrieve_response.rbi} +2 -2
- data/rbi/telnyx/models/porting_orders/phone_number_block_list_params.rbi +34 -34
- data/rbi/telnyx/models/pronunciation_dict_alias_item.rbi +79 -0
- data/rbi/telnyx/models/pronunciation_dict_create_params.rbi +8 -154
- data/rbi/telnyx/models/pronunciation_dict_create_response.rbi +6 -366
- data/rbi/telnyx/models/pronunciation_dict_data.rbi +186 -0
- data/rbi/telnyx/models/pronunciation_dict_phoneme_item.rbi +117 -0
- data/rbi/telnyx/models/pronunciation_dict_retrieve_response.rbi +6 -366
- data/rbi/telnyx/models/pronunciation_dict_update_params.rbi +10 -156
- data/rbi/telnyx/models/pronunciation_dict_update_response.rbi +6 -366
- data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +391 -403
- data/rbi/telnyx/models/voice_clone_create_from_design_params.rbi +10 -10
- data/rbi/telnyx/models/voice_clone_create_from_upload_params.rbi +711 -134
- data/rbi/telnyx/models/voice_clone_create_params.rbi +345 -79
- data/rbi/telnyx/models/voice_clone_data.rbi +77 -4
- data/rbi/telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_params.rbi +47 -0
- data/rbi/telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_response.rbi +118 -0
- data/rbi/telnyx/models.rbi +20 -0
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +1 -2
- data/rbi/telnyx/resources/ai/assistants.rbi +2 -4
- data/rbi/telnyx/resources/calls/actions.rbi +14 -3
- data/rbi/telnyx/resources/calls.rbi +10 -0
- data/rbi/telnyx/resources/enterprises/reputation/numbers.rbi +34 -34
- data/rbi/telnyx/resources/enterprises/reputation.rbi +44 -44
- data/rbi/telnyx/resources/pronunciation_dicts.rbi +5 -7
- data/rbi/telnyx/resources/texml/accounts/calls.rbi +5 -5
- data/rbi/telnyx/resources/voice_clones.rbi +17 -41
- data/rbi/telnyx/resources/whatsapp/phone_numbers/profile/photo.rbi +16 -0
- data/sig/telnyx/models/ai/assistant.rbs +3 -142
- data/sig/telnyx/models/ai/assistant_create_params.rbs +6 -59
- data/sig/telnyx/models/ai/assistant_update_params.rbs +6 -59
- data/sig/telnyx/models/ai/assistants/update_assistant.rbs +6 -59
- data/sig/telnyx/models/ai/conversation_add_message_params.rbs +5 -5
- data/sig/telnyx/models/ai/inference_embedding.rbs +6 -59
- data/sig/telnyx/models/ai/observability.rbs +58 -0
- data/sig/telnyx/models/ai/observability_req.rbs +58 -0
- data/sig/telnyx/models/book_appointment_tool.rbs +35 -0
- data/sig/telnyx/models/book_appointment_tool_params.rbs +39 -0
- data/sig/telnyx/models/call_assistant_request.rbs +132 -0
- data/sig/telnyx/models/call_control_bucket_ids.rbs +21 -0
- data/sig/telnyx/models/call_control_retrieval_tool.rbs +35 -0
- data/sig/telnyx/models/call_dial_params.rbs +29 -0
- data/sig/telnyx/models/calls/action_answer_params.rbs +9 -0
- data/sig/telnyx/models/calls/action_start_ai_assistant_params.rbs +6 -35
- data/sig/telnyx/models/calls/action_transfer_params.rbs +20 -0
- data/sig/telnyx/models/check_availability_tool.rbs +35 -0
- data/sig/telnyx/models/check_availability_tool_params.rbs +16 -0
- data/sig/telnyx/models/enterprise_create_params.rbs +1 -1
- data/sig/telnyx/models/enterprise_public.rbs +1 -1
- data/sig/telnyx/models/enterprise_update_params.rbs +1 -1
- data/sig/telnyx/models/enterprises/reputation/{number_create_params.rbs → number_associate_params.rbs} +2 -2
- data/sig/telnyx/models/enterprises/reputation/{number_create_response.rbs → number_associate_response.rbs} +8 -8
- data/sig/telnyx/models/enterprises/reputation/{number_delete_params.rbs → number_disassociate_params.rbs} +2 -2
- data/sig/telnyx/models/enterprises/{reputation_list_params.rbs → reputation_disable_params.rbs} +2 -2
- data/sig/telnyx/models/enterprises/{reputation_create_params.rbs → reputation_enable_params.rbs} +9 -9
- data/sig/telnyx/models/enterprises/{reputation_create_response.rbs → reputation_enable_response.rbs} +2 -2
- data/sig/telnyx/models/enterprises/{reputation_delete_all_params.rbs → reputation_retrieve_params.rbs} +2 -2
- data/sig/telnyx/models/enterprises/{reputation_list_response.rbs → reputation_retrieve_response.rbs} +2 -2
- data/sig/telnyx/models/porting_orders/phone_number_block_list_params.rbs +9 -9
- data/sig/telnyx/models/pronunciation_dict_alias_item.rbs +40 -0
- data/sig/telnyx/models/pronunciation_dict_create_params.rbs +2 -58
- data/sig/telnyx/models/pronunciation_dict_create_response.rbs +6 -155
- data/sig/telnyx/models/pronunciation_dict_data.rbs +88 -0
- data/sig/telnyx/models/pronunciation_dict_phoneme_item.rbs +55 -0
- data/sig/telnyx/models/pronunciation_dict_retrieve_response.rbs +6 -155
- data/sig/telnyx/models/pronunciation_dict_update_params.rbs +2 -58
- data/sig/telnyx/models/pronunciation_dict_update_response.rbs +6 -155
- data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +317 -325
- data/sig/telnyx/models/voice_clone_create_from_design_params.rbs +7 -7
- data/sig/telnyx/models/voice_clone_create_from_upload_params.rbs +269 -56
- data/sig/telnyx/models/voice_clone_create_params.rbs +129 -44
- data/sig/telnyx/models/voice_clone_data.rbs +43 -0
- data/sig/telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_params.rbs +30 -0
- data/sig/telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_response.rbs +63 -0
- data/sig/telnyx/models.rbs +20 -0
- data/sig/telnyx/resources/ai/assistants/versions.rbs +1 -1
- data/sig/telnyx/resources/ai/assistants.rbs +2 -2
- data/sig/telnyx/resources/calls/actions.rbs +3 -1
- data/sig/telnyx/resources/calls.rbs +2 -0
- data/sig/telnyx/resources/enterprises/reputation/numbers.rbs +7 -7
- data/sig/telnyx/resources/enterprises/reputation.rbs +8 -8
- data/sig/telnyx/resources/pronunciation_dicts.rbs +1 -1
- data/sig/telnyx/resources/texml/accounts/calls.rbs +1 -1
- data/sig/telnyx/resources/voice_clones.rbs +2 -12
- data/sig/telnyx/resources/whatsapp/phone_numbers/profile/photo.rbs +5 -0
- metadata +68 -29
- data/lib/telnyx/models/pronunciation_dict_list_response.rb +0 -190
- data/rbi/telnyx/models/pronunciation_dict_list_response.rbi +0 -353
- data/sig/telnyx/models/pronunciation_dict_list_response.rbs +0 -144
|
@@ -18,20 +18,13 @@ module Telnyx
|
|
|
18
18
|
sig { returns(String) }
|
|
19
19
|
attr_accessor :call_control_id
|
|
20
20
|
|
|
21
|
-
# AI Assistant configuration
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
)
|
|
26
|
-
end
|
|
21
|
+
# AI Assistant configuration. All fields except `id` are optional — the
|
|
22
|
+
# assistant's stored configuration will be used as fallback for any omitted
|
|
23
|
+
# fields.
|
|
24
|
+
sig { returns(T.nilable(Telnyx::CallAssistantRequest)) }
|
|
27
25
|
attr_reader :assistant
|
|
28
26
|
|
|
29
|
-
sig
|
|
30
|
-
params(
|
|
31
|
-
assistant:
|
|
32
|
-
Telnyx::Calls::ActionStartAIAssistantParams::Assistant::OrHash
|
|
33
|
-
).void
|
|
34
|
-
end
|
|
27
|
+
sig { params(assistant: Telnyx::CallAssistantRequest::OrHash).void }
|
|
35
28
|
attr_writer :assistant
|
|
36
29
|
|
|
37
30
|
# Use this field to add state to every subsequent webhook. It must be a valid
|
|
@@ -210,8 +203,7 @@ module Telnyx
|
|
|
210
203
|
sig do
|
|
211
204
|
params(
|
|
212
205
|
call_control_id: String,
|
|
213
|
-
assistant:
|
|
214
|
-
Telnyx::Calls::ActionStartAIAssistantParams::Assistant::OrHash,
|
|
206
|
+
assistant: Telnyx::CallAssistantRequest::OrHash,
|
|
215
207
|
client_state: String,
|
|
216
208
|
command_id: String,
|
|
217
209
|
greeting: String,
|
|
@@ -247,7 +239,9 @@ module Telnyx
|
|
|
247
239
|
end
|
|
248
240
|
def self.new(
|
|
249
241
|
call_control_id:,
|
|
250
|
-
# AI Assistant configuration
|
|
242
|
+
# AI Assistant configuration. All fields except `id` are optional — the
|
|
243
|
+
# assistant's stored configuration will be used as fallback for any omitted
|
|
244
|
+
# fields.
|
|
251
245
|
assistant: nil,
|
|
252
246
|
# Use this field to add state to every subsequent webhook. It must be a valid
|
|
253
247
|
# Base-64 encoded string.
|
|
@@ -309,7 +303,7 @@ module Telnyx
|
|
|
309
303
|
override.returns(
|
|
310
304
|
{
|
|
311
305
|
call_control_id: String,
|
|
312
|
-
assistant: Telnyx::
|
|
306
|
+
assistant: Telnyx::CallAssistantRequest,
|
|
313
307
|
client_state: String,
|
|
314
308
|
command_id: String,
|
|
315
309
|
greeting: String,
|
|
@@ -347,67 +341,6 @@ module Telnyx
|
|
|
347
341
|
def to_hash
|
|
348
342
|
end
|
|
349
343
|
|
|
350
|
-
class Assistant < Telnyx::Internal::Type::BaseModel
|
|
351
|
-
OrHash =
|
|
352
|
-
T.type_alias do
|
|
353
|
-
T.any(
|
|
354
|
-
Telnyx::Calls::ActionStartAIAssistantParams::Assistant,
|
|
355
|
-
Telnyx::Internal::AnyHash
|
|
356
|
-
)
|
|
357
|
-
end
|
|
358
|
-
|
|
359
|
-
# The identifier of the AI assistant to use
|
|
360
|
-
sig { returns(T.nilable(String)) }
|
|
361
|
-
attr_reader :id
|
|
362
|
-
|
|
363
|
-
sig { params(id: String).void }
|
|
364
|
-
attr_writer :id
|
|
365
|
-
|
|
366
|
-
# The system instructions that the voice assistant uses during the start assistant
|
|
367
|
-
# command. This will overwrite the instructions set in the assistant
|
|
368
|
-
# configuration.
|
|
369
|
-
sig { returns(T.nilable(String)) }
|
|
370
|
-
attr_reader :instructions
|
|
371
|
-
|
|
372
|
-
sig { params(instructions: String).void }
|
|
373
|
-
attr_writer :instructions
|
|
374
|
-
|
|
375
|
-
# Reference to the OpenAI API key. Required only when using OpenAI models
|
|
376
|
-
sig { returns(T.nilable(String)) }
|
|
377
|
-
attr_reader :openai_api_key_ref
|
|
378
|
-
|
|
379
|
-
sig { params(openai_api_key_ref: String).void }
|
|
380
|
-
attr_writer :openai_api_key_ref
|
|
381
|
-
|
|
382
|
-
# AI Assistant configuration
|
|
383
|
-
sig do
|
|
384
|
-
params(
|
|
385
|
-
id: String,
|
|
386
|
-
instructions: String,
|
|
387
|
-
openai_api_key_ref: String
|
|
388
|
-
).returns(T.attached_class)
|
|
389
|
-
end
|
|
390
|
-
def self.new(
|
|
391
|
-
# The identifier of the AI assistant to use
|
|
392
|
-
id: nil,
|
|
393
|
-
# The system instructions that the voice assistant uses during the start assistant
|
|
394
|
-
# command. This will overwrite the instructions set in the assistant
|
|
395
|
-
# configuration.
|
|
396
|
-
instructions: nil,
|
|
397
|
-
# Reference to the OpenAI API key. Required only when using OpenAI models
|
|
398
|
-
openai_api_key_ref: nil
|
|
399
|
-
)
|
|
400
|
-
end
|
|
401
|
-
|
|
402
|
-
sig do
|
|
403
|
-
override.returns(
|
|
404
|
-
{ id: String, instructions: String, openai_api_key_ref: String }
|
|
405
|
-
)
|
|
406
|
-
end
|
|
407
|
-
def to_hash
|
|
408
|
-
end
|
|
409
|
-
end
|
|
410
|
-
|
|
411
344
|
# Messages sent by an end user
|
|
412
345
|
module MessageHistory
|
|
413
346
|
extend Telnyx::Internal::Type::Union
|
|
@@ -188,6 +188,23 @@ module Telnyx
|
|
|
188
188
|
sig { params(preferred_codecs: String).void }
|
|
189
189
|
attr_writer :preferred_codecs
|
|
190
190
|
|
|
191
|
+
# Indicates the privacy level to be used for the call. When set to `id`, caller ID
|
|
192
|
+
# information (name and number) will be hidden from the called party. When set to
|
|
193
|
+
# `none` or omitted, caller ID will be shown normally.
|
|
194
|
+
sig do
|
|
195
|
+
returns(
|
|
196
|
+
T.nilable(Telnyx::Calls::ActionTransferParams::Privacy::OrSymbol)
|
|
197
|
+
)
|
|
198
|
+
end
|
|
199
|
+
attr_reader :privacy
|
|
200
|
+
|
|
201
|
+
sig do
|
|
202
|
+
params(
|
|
203
|
+
privacy: Telnyx::Calls::ActionTransferParams::Privacy::OrSymbol
|
|
204
|
+
).void
|
|
205
|
+
end
|
|
206
|
+
attr_writer :privacy
|
|
207
|
+
|
|
191
208
|
# Start recording automatically after an event. Disabled by default.
|
|
192
209
|
sig do
|
|
193
210
|
returns(
|
|
@@ -500,6 +517,7 @@ module Telnyx
|
|
|
500
517
|
mute_dtmf: Telnyx::Calls::ActionTransferParams::MuteDtmf::OrSymbol,
|
|
501
518
|
park_after_unbridge: String,
|
|
502
519
|
preferred_codecs: String,
|
|
520
|
+
privacy: Telnyx::Calls::ActionTransferParams::Privacy::OrSymbol,
|
|
503
521
|
record: Telnyx::Calls::ActionTransferParams::Record::OrSymbol,
|
|
504
522
|
record_channels:
|
|
505
523
|
Telnyx::Calls::ActionTransferParams::RecordChannels::OrSymbol,
|
|
@@ -594,6 +612,10 @@ module Telnyx
|
|
|
594
612
|
# call. The codecs supported are `G722`, `PCMU`, `PCMA`, `G729`, `OPUS`, `VP8`,
|
|
595
613
|
# `H264`, `AMR-WB`.
|
|
596
614
|
preferred_codecs: nil,
|
|
615
|
+
# Indicates the privacy level to be used for the call. When set to `id`, caller ID
|
|
616
|
+
# information (name and number) will be hidden from the called party. When set to
|
|
617
|
+
# `none` or omitted, caller ID will be shown normally.
|
|
618
|
+
privacy: nil,
|
|
597
619
|
# Start recording automatically after an event. Disabled by default.
|
|
598
620
|
record: nil,
|
|
599
621
|
# Defines which channel should be recorded ('single' or 'dual') when `record` is
|
|
@@ -692,6 +714,7 @@ module Telnyx
|
|
|
692
714
|
Telnyx::Calls::ActionTransferParams::MuteDtmf::OrSymbol,
|
|
693
715
|
park_after_unbridge: String,
|
|
694
716
|
preferred_codecs: String,
|
|
717
|
+
privacy: Telnyx::Calls::ActionTransferParams::Privacy::OrSymbol,
|
|
695
718
|
record: Telnyx::Calls::ActionTransferParams::Record::OrSymbol,
|
|
696
719
|
record_channels:
|
|
697
720
|
Telnyx::Calls::ActionTransferParams::RecordChannels::OrSymbol,
|
|
@@ -1024,6 +1047,40 @@ module Telnyx
|
|
|
1024
1047
|
end
|
|
1025
1048
|
end
|
|
1026
1049
|
|
|
1050
|
+
# Indicates the privacy level to be used for the call. When set to `id`, caller ID
|
|
1051
|
+
# information (name and number) will be hidden from the called party. When set to
|
|
1052
|
+
# `none` or omitted, caller ID will be shown normally.
|
|
1053
|
+
module Privacy
|
|
1054
|
+
extend Telnyx::Internal::Type::Enum
|
|
1055
|
+
|
|
1056
|
+
TaggedSymbol =
|
|
1057
|
+
T.type_alias do
|
|
1058
|
+
T.all(Symbol, Telnyx::Calls::ActionTransferParams::Privacy)
|
|
1059
|
+
end
|
|
1060
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
1061
|
+
|
|
1062
|
+
ID =
|
|
1063
|
+
T.let(
|
|
1064
|
+
:id,
|
|
1065
|
+
Telnyx::Calls::ActionTransferParams::Privacy::TaggedSymbol
|
|
1066
|
+
)
|
|
1067
|
+
NONE =
|
|
1068
|
+
T.let(
|
|
1069
|
+
:none,
|
|
1070
|
+
Telnyx::Calls::ActionTransferParams::Privacy::TaggedSymbol
|
|
1071
|
+
)
|
|
1072
|
+
|
|
1073
|
+
sig do
|
|
1074
|
+
override.returns(
|
|
1075
|
+
T::Array[
|
|
1076
|
+
Telnyx::Calls::ActionTransferParams::Privacy::TaggedSymbol
|
|
1077
|
+
]
|
|
1078
|
+
)
|
|
1079
|
+
end
|
|
1080
|
+
def self.values
|
|
1081
|
+
end
|
|
1082
|
+
end
|
|
1083
|
+
|
|
1027
1084
|
# Start recording automatically after an event. Disabled by default.
|
|
1028
1085
|
module Record
|
|
1029
1086
|
extend Telnyx::Internal::Type::Enum
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
class CheckAvailabilityTool < Telnyx::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Telnyx::CheckAvailabilityTool, Telnyx::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
sig { returns(Telnyx::CheckAvailabilityToolParams) }
|
|
12
|
+
attr_reader :check_availability
|
|
13
|
+
|
|
14
|
+
sig do
|
|
15
|
+
params(
|
|
16
|
+
check_availability: Telnyx::CheckAvailabilityToolParams::OrHash
|
|
17
|
+
).void
|
|
18
|
+
end
|
|
19
|
+
attr_writer :check_availability
|
|
20
|
+
|
|
21
|
+
sig { returns(Telnyx::CheckAvailabilityTool::Type::OrSymbol) }
|
|
22
|
+
attr_accessor :type
|
|
23
|
+
|
|
24
|
+
sig do
|
|
25
|
+
params(
|
|
26
|
+
check_availability: Telnyx::CheckAvailabilityToolParams::OrHash,
|
|
27
|
+
type: Telnyx::CheckAvailabilityTool::Type::OrSymbol
|
|
28
|
+
).returns(T.attached_class)
|
|
29
|
+
end
|
|
30
|
+
def self.new(check_availability:, type:)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
sig do
|
|
34
|
+
override.returns(
|
|
35
|
+
{
|
|
36
|
+
check_availability: Telnyx::CheckAvailabilityToolParams,
|
|
37
|
+
type: Telnyx::CheckAvailabilityTool::Type::OrSymbol
|
|
38
|
+
}
|
|
39
|
+
)
|
|
40
|
+
end
|
|
41
|
+
def to_hash
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
module Type
|
|
45
|
+
extend Telnyx::Internal::Type::Enum
|
|
46
|
+
|
|
47
|
+
TaggedSymbol =
|
|
48
|
+
T.type_alias { T.all(Symbol, Telnyx::CheckAvailabilityTool::Type) }
|
|
49
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
50
|
+
|
|
51
|
+
CHECK_AVAILABILITY =
|
|
52
|
+
T.let(
|
|
53
|
+
:check_availability,
|
|
54
|
+
Telnyx::CheckAvailabilityTool::Type::TaggedSymbol
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
sig do
|
|
58
|
+
override.returns(
|
|
59
|
+
T::Array[Telnyx::CheckAvailabilityTool::Type::TaggedSymbol]
|
|
60
|
+
)
|
|
61
|
+
end
|
|
62
|
+
def self.values
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
class CheckAvailabilityToolParams < Telnyx::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Telnyx::CheckAvailabilityToolParams, Telnyx::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# Reference to an integration secret that contains your Cal.com API key. You would
|
|
12
|
+
# pass the `identifier` for an integration secret
|
|
13
|
+
# [/v2/integration_secrets](https://developers.telnyx.com/api/secrets-manager/integration-secrets/create-integration-secret)
|
|
14
|
+
# that refers to your Cal.com API key.
|
|
15
|
+
sig { returns(String) }
|
|
16
|
+
attr_accessor :api_key_ref
|
|
17
|
+
|
|
18
|
+
# Event Type ID for which slots are being fetched.
|
|
19
|
+
# [cal.com](https://cal.com/docs/api-reference/v2/slots/get-available-slots#parameter-event-type-id)
|
|
20
|
+
sig { returns(Integer) }
|
|
21
|
+
attr_accessor :event_type_id
|
|
22
|
+
|
|
23
|
+
sig do
|
|
24
|
+
params(api_key_ref: String, event_type_id: Integer).returns(
|
|
25
|
+
T.attached_class
|
|
26
|
+
)
|
|
27
|
+
end
|
|
28
|
+
def self.new(
|
|
29
|
+
# Reference to an integration secret that contains your Cal.com API key. You would
|
|
30
|
+
# pass the `identifier` for an integration secret
|
|
31
|
+
# [/v2/integration_secrets](https://developers.telnyx.com/api/secrets-manager/integration-secrets/create-integration-secret)
|
|
32
|
+
# that refers to your Cal.com API key.
|
|
33
|
+
api_key_ref:,
|
|
34
|
+
# Event Type ID for which slots are being fetched.
|
|
35
|
+
# [cal.com](https://cal.com/docs/api-reference/v2/slots/get-available-slots#parameter-event-type-id)
|
|
36
|
+
event_type_id:
|
|
37
|
+
)
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
sig { override.returns({ api_key_ref: String, event_type_id: Integer }) }
|
|
41
|
+
def to_hash
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
@@ -287,7 +287,7 @@ module Telnyx
|
|
|
287
287
|
:"2001-10000",
|
|
288
288
|
Telnyx::EnterpriseCreateParams::NumberOfEmployees::TaggedSymbol
|
|
289
289
|
)
|
|
290
|
-
|
|
290
|
+
NUMBER_OF_EMPLOYEES_10001_PLUS =
|
|
291
291
|
T.let(
|
|
292
292
|
:"10001+",
|
|
293
293
|
Telnyx::EnterpriseCreateParams::NumberOfEmployees::TaggedSymbol
|
|
@@ -314,7 +314,7 @@ module Telnyx
|
|
|
314
314
|
:"2001-10000",
|
|
315
315
|
Telnyx::EnterprisePublic::NumberOfEmployees::TaggedSymbol
|
|
316
316
|
)
|
|
317
|
-
|
|
317
|
+
NUMBER_OF_EMPLOYEES_10001_PLUS =
|
|
318
318
|
T.let(
|
|
319
319
|
:"10001+",
|
|
320
320
|
Telnyx::EnterprisePublic::NumberOfEmployees::TaggedSymbol
|
|
@@ -279,7 +279,7 @@ module Telnyx
|
|
|
279
279
|
:"2001-10000",
|
|
280
280
|
Telnyx::EnterpriseUpdateParams::NumberOfEmployees::TaggedSymbol
|
|
281
281
|
)
|
|
282
|
-
|
|
282
|
+
NUMBER_OF_EMPLOYEES_10001_PLUS =
|
|
283
283
|
T.let(
|
|
284
284
|
:"10001+",
|
|
285
285
|
Telnyx::EnterpriseUpdateParams::NumberOfEmployees::TaggedSymbol
|
|
@@ -4,14 +4,14 @@ module Telnyx
|
|
|
4
4
|
module Models
|
|
5
5
|
module Enterprises
|
|
6
6
|
module Reputation
|
|
7
|
-
class
|
|
7
|
+
class NumberAssociateParams < Telnyx::Internal::Type::BaseModel
|
|
8
8
|
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Telnyx::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
11
|
OrHash =
|
|
12
12
|
T.type_alias do
|
|
13
13
|
T.any(
|
|
14
|
-
Telnyx::Enterprises::Reputation::
|
|
14
|
+
Telnyx::Enterprises::Reputation::NumberAssociateParams,
|
|
15
15
|
Telnyx::Internal::AnyHash
|
|
16
16
|
)
|
|
17
17
|
end
|
|
@@ -4,11 +4,11 @@ module Telnyx
|
|
|
4
4
|
module Models
|
|
5
5
|
module Enterprises
|
|
6
6
|
module Reputation
|
|
7
|
-
class
|
|
7
|
+
class NumberAssociateResponse < Telnyx::Internal::Type::BaseModel
|
|
8
8
|
OrHash =
|
|
9
9
|
T.type_alias do
|
|
10
10
|
T.any(
|
|
11
|
-
Telnyx::Models::Enterprises::Reputation::
|
|
11
|
+
Telnyx::Models::Enterprises::Reputation::NumberAssociateResponse,
|
|
12
12
|
Telnyx::Internal::AnyHash
|
|
13
13
|
)
|
|
14
14
|
end
|
|
@@ -17,7 +17,7 @@ module Telnyx
|
|
|
17
17
|
returns(
|
|
18
18
|
T.nilable(
|
|
19
19
|
T::Array[
|
|
20
|
-
Telnyx::Models::Enterprises::Reputation::
|
|
20
|
+
Telnyx::Models::Enterprises::Reputation::NumberAssociateResponse::Data
|
|
21
21
|
]
|
|
22
22
|
)
|
|
23
23
|
)
|
|
@@ -28,7 +28,7 @@ module Telnyx
|
|
|
28
28
|
params(
|
|
29
29
|
data:
|
|
30
30
|
T::Array[
|
|
31
|
-
Telnyx::Models::Enterprises::Reputation::
|
|
31
|
+
Telnyx::Models::Enterprises::Reputation::NumberAssociateResponse::Data::OrHash
|
|
32
32
|
]
|
|
33
33
|
).void
|
|
34
34
|
end
|
|
@@ -44,7 +44,7 @@ module Telnyx
|
|
|
44
44
|
params(
|
|
45
45
|
data:
|
|
46
46
|
T::Array[
|
|
47
|
-
Telnyx::Models::Enterprises::Reputation::
|
|
47
|
+
Telnyx::Models::Enterprises::Reputation::NumberAssociateResponse::Data::OrHash
|
|
48
48
|
],
|
|
49
49
|
meta: Telnyx::MetaInfo::OrHash
|
|
50
50
|
).returns(T.attached_class)
|
|
@@ -57,7 +57,7 @@ module Telnyx
|
|
|
57
57
|
{
|
|
58
58
|
data:
|
|
59
59
|
T::Array[
|
|
60
|
-
Telnyx::Models::Enterprises::Reputation::
|
|
60
|
+
Telnyx::Models::Enterprises::Reputation::NumberAssociateResponse::Data
|
|
61
61
|
],
|
|
62
62
|
meta: Telnyx::MetaInfo
|
|
63
63
|
}
|
|
@@ -70,7 +70,7 @@ module Telnyx
|
|
|
70
70
|
OrHash =
|
|
71
71
|
T.type_alias do
|
|
72
72
|
T.any(
|
|
73
|
-
Telnyx::Models::Enterprises::Reputation::
|
|
73
|
+
Telnyx::Models::Enterprises::Reputation::NumberAssociateResponse::Data,
|
|
74
74
|
Telnyx::Internal::AnyHash
|
|
75
75
|
)
|
|
76
76
|
end
|
|
@@ -4,14 +4,14 @@ module Telnyx
|
|
|
4
4
|
module Models
|
|
5
5
|
module Enterprises
|
|
6
6
|
module Reputation
|
|
7
|
-
class
|
|
7
|
+
class NumberDisassociateParams < Telnyx::Internal::Type::BaseModel
|
|
8
8
|
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Telnyx::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
11
|
OrHash =
|
|
12
12
|
T.type_alias do
|
|
13
13
|
T.any(
|
|
14
|
-
Telnyx::Enterprises::Reputation::
|
|
14
|
+
Telnyx::Enterprises::Reputation::NumberDisassociateParams,
|
|
15
15
|
Telnyx::Internal::AnyHash
|
|
16
16
|
)
|
|
17
17
|
end
|
data/rbi/telnyx/models/enterprises/{reputation_list_params.rbi → reputation_disable_params.rbi}
RENAMED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
module Telnyx
|
|
4
4
|
module Models
|
|
5
5
|
module Enterprises
|
|
6
|
-
class
|
|
6
|
+
class ReputationDisableParams < Telnyx::Internal::Type::BaseModel
|
|
7
7
|
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Telnyx::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
10
|
OrHash =
|
|
11
11
|
T.type_alias do
|
|
12
12
|
T.any(
|
|
13
|
-
Telnyx::Enterprises::
|
|
13
|
+
Telnyx::Enterprises::ReputationDisableParams,
|
|
14
14
|
Telnyx::Internal::AnyHash
|
|
15
15
|
)
|
|
16
16
|
end
|
data/rbi/telnyx/models/enterprises/{reputation_create_params.rbi → reputation_enable_params.rbi}
RENAMED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
module Telnyx
|
|
4
4
|
module Models
|
|
5
5
|
module Enterprises
|
|
6
|
-
class
|
|
6
|
+
class ReputationEnableParams < Telnyx::Internal::Type::BaseModel
|
|
7
7
|
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Telnyx::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
10
|
OrHash =
|
|
11
11
|
T.type_alias do
|
|
12
12
|
T.any(
|
|
13
|
-
Telnyx::Enterprises::
|
|
13
|
+
Telnyx::Enterprises::ReputationEnableParams,
|
|
14
14
|
Telnyx::Internal::AnyHash
|
|
15
15
|
)
|
|
16
16
|
end
|
|
@@ -27,7 +27,7 @@ module Telnyx
|
|
|
27
27
|
sig do
|
|
28
28
|
returns(
|
|
29
29
|
T.nilable(
|
|
30
|
-
Telnyx::Enterprises::
|
|
30
|
+
Telnyx::Enterprises::ReputationEnableParams::CheckFrequency::OrSymbol
|
|
31
31
|
)
|
|
32
32
|
)
|
|
33
33
|
end
|
|
@@ -36,7 +36,7 @@ module Telnyx
|
|
|
36
36
|
sig do
|
|
37
37
|
params(
|
|
38
38
|
check_frequency:
|
|
39
|
-
Telnyx::Enterprises::
|
|
39
|
+
Telnyx::Enterprises::ReputationEnableParams::CheckFrequency::OrSymbol
|
|
40
40
|
).void
|
|
41
41
|
end
|
|
42
42
|
attr_writer :check_frequency
|
|
@@ -46,7 +46,7 @@ module Telnyx
|
|
|
46
46
|
enterprise_id: String,
|
|
47
47
|
loa_document_id: String,
|
|
48
48
|
check_frequency:
|
|
49
|
-
Telnyx::Enterprises::
|
|
49
|
+
Telnyx::Enterprises::ReputationEnableParams::CheckFrequency::OrSymbol,
|
|
50
50
|
request_options: Telnyx::RequestOptions::OrHash
|
|
51
51
|
).returns(T.attached_class)
|
|
52
52
|
end
|
|
@@ -67,7 +67,7 @@ module Telnyx
|
|
|
67
67
|
enterprise_id: String,
|
|
68
68
|
loa_document_id: String,
|
|
69
69
|
check_frequency:
|
|
70
|
-
Telnyx::Enterprises::
|
|
70
|
+
Telnyx::Enterprises::ReputationEnableParams::CheckFrequency::OrSymbol,
|
|
71
71
|
request_options: Telnyx::RequestOptions
|
|
72
72
|
}
|
|
73
73
|
)
|
|
@@ -83,7 +83,7 @@ module Telnyx
|
|
|
83
83
|
T.type_alias do
|
|
84
84
|
T.all(
|
|
85
85
|
Symbol,
|
|
86
|
-
Telnyx::Enterprises::
|
|
86
|
+
Telnyx::Enterprises::ReputationEnableParams::CheckFrequency
|
|
87
87
|
)
|
|
88
88
|
end
|
|
89
89
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
@@ -91,38 +91,38 @@ module Telnyx
|
|
|
91
91
|
BUSINESS_DAILY =
|
|
92
92
|
T.let(
|
|
93
93
|
:business_daily,
|
|
94
|
-
Telnyx::Enterprises::
|
|
94
|
+
Telnyx::Enterprises::ReputationEnableParams::CheckFrequency::TaggedSymbol
|
|
95
95
|
)
|
|
96
96
|
DAILY =
|
|
97
97
|
T.let(
|
|
98
98
|
:daily,
|
|
99
|
-
Telnyx::Enterprises::
|
|
99
|
+
Telnyx::Enterprises::ReputationEnableParams::CheckFrequency::TaggedSymbol
|
|
100
100
|
)
|
|
101
101
|
WEEKLY =
|
|
102
102
|
T.let(
|
|
103
103
|
:weekly,
|
|
104
|
-
Telnyx::Enterprises::
|
|
104
|
+
Telnyx::Enterprises::ReputationEnableParams::CheckFrequency::TaggedSymbol
|
|
105
105
|
)
|
|
106
106
|
BIWEEKLY =
|
|
107
107
|
T.let(
|
|
108
108
|
:biweekly,
|
|
109
|
-
Telnyx::Enterprises::
|
|
109
|
+
Telnyx::Enterprises::ReputationEnableParams::CheckFrequency::TaggedSymbol
|
|
110
110
|
)
|
|
111
111
|
MONTHLY =
|
|
112
112
|
T.let(
|
|
113
113
|
:monthly,
|
|
114
|
-
Telnyx::Enterprises::
|
|
114
|
+
Telnyx::Enterprises::ReputationEnableParams::CheckFrequency::TaggedSymbol
|
|
115
115
|
)
|
|
116
116
|
NEVER =
|
|
117
117
|
T.let(
|
|
118
118
|
:never,
|
|
119
|
-
Telnyx::Enterprises::
|
|
119
|
+
Telnyx::Enterprises::ReputationEnableParams::CheckFrequency::TaggedSymbol
|
|
120
120
|
)
|
|
121
121
|
|
|
122
122
|
sig do
|
|
123
123
|
override.returns(
|
|
124
124
|
T::Array[
|
|
125
|
-
Telnyx::Enterprises::
|
|
125
|
+
Telnyx::Enterprises::ReputationEnableParams::CheckFrequency::TaggedSymbol
|
|
126
126
|
]
|
|
127
127
|
)
|
|
128
128
|
end
|
data/rbi/telnyx/models/enterprises/{reputation_create_response.rbi → reputation_enable_response.rbi}
RENAMED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
module Telnyx
|
|
4
4
|
module Models
|
|
5
5
|
module Enterprises
|
|
6
|
-
class
|
|
6
|
+
class ReputationEnableResponse < Telnyx::Internal::Type::BaseModel
|
|
7
7
|
OrHash =
|
|
8
8
|
T.type_alias do
|
|
9
9
|
T.any(
|
|
10
|
-
Telnyx::Models::Enterprises::
|
|
10
|
+
Telnyx::Models::Enterprises::ReputationEnableResponse,
|
|
11
11
|
Telnyx::Internal::AnyHash
|
|
12
12
|
)
|
|
13
13
|
end
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
module Telnyx
|
|
4
4
|
module Models
|
|
5
5
|
module Enterprises
|
|
6
|
-
class
|
|
6
|
+
class ReputationRetrieveParams < Telnyx::Internal::Type::BaseModel
|
|
7
7
|
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Telnyx::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
10
|
OrHash =
|
|
11
11
|
T.type_alias do
|
|
12
12
|
T.any(
|
|
13
|
-
Telnyx::Enterprises::
|
|
13
|
+
Telnyx::Enterprises::ReputationRetrieveParams,
|
|
14
14
|
Telnyx::Internal::AnyHash
|
|
15
15
|
)
|
|
16
16
|
end
|
data/rbi/telnyx/models/enterprises/{reputation_list_response.rbi → reputation_retrieve_response.rbi}
RENAMED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
module Telnyx
|
|
4
4
|
module Models
|
|
5
5
|
module Enterprises
|
|
6
|
-
class
|
|
6
|
+
class ReputationRetrieveResponse < Telnyx::Internal::Type::BaseModel
|
|
7
7
|
OrHash =
|
|
8
8
|
T.type_alias do
|
|
9
9
|
T.any(
|
|
10
|
-
Telnyx::Models::Enterprises::
|
|
10
|
+
Telnyx::Models::Enterprises::ReputationRetrieveResponse,
|
|
11
11
|
Telnyx::Internal::AnyHash
|
|
12
12
|
)
|
|
13
13
|
end
|