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
|
@@ -114,19 +114,12 @@ module Telnyx
|
|
|
114
114
|
sig { params(name: String).void }
|
|
115
115
|
attr_writer :name
|
|
116
116
|
|
|
117
|
-
sig
|
|
118
|
-
returns(
|
|
119
|
-
T.nilable(
|
|
120
|
-
Telnyx::AI::Assistants::UpdateAssistant::ObservabilitySettings
|
|
121
|
-
)
|
|
122
|
-
)
|
|
123
|
-
end
|
|
117
|
+
sig { returns(T.nilable(Telnyx::AI::ObservabilityReq)) }
|
|
124
118
|
attr_reader :observability_settings
|
|
125
119
|
|
|
126
120
|
sig do
|
|
127
121
|
params(
|
|
128
|
-
observability_settings:
|
|
129
|
-
Telnyx::AI::Assistants::UpdateAssistant::ObservabilitySettings::OrHash
|
|
122
|
+
observability_settings: Telnyx::AI::ObservabilityReq::OrHash
|
|
130
123
|
).void
|
|
131
124
|
end
|
|
132
125
|
attr_writer :observability_settings
|
|
@@ -238,8 +231,7 @@ module Telnyx
|
|
|
238
231
|
messaging_settings: Telnyx::AI::MessagingSettings::OrHash,
|
|
239
232
|
model: String,
|
|
240
233
|
name: String,
|
|
241
|
-
observability_settings:
|
|
242
|
-
Telnyx::AI::Assistants::UpdateAssistant::ObservabilitySettings::OrHash,
|
|
234
|
+
observability_settings: Telnyx::AI::ObservabilityReq::OrHash,
|
|
243
235
|
privacy_settings: Telnyx::AI::PrivacySettings::OrHash,
|
|
244
236
|
telephony_settings: Telnyx::AI::TelephonySettings::OrHash,
|
|
245
237
|
tool_ids: T::Array[String],
|
|
@@ -325,8 +317,7 @@ module Telnyx
|
|
|
325
317
|
messaging_settings: Telnyx::AI::MessagingSettings,
|
|
326
318
|
model: String,
|
|
327
319
|
name: String,
|
|
328
|
-
observability_settings:
|
|
329
|
-
Telnyx::AI::Assistants::UpdateAssistant::ObservabilitySettings,
|
|
320
|
+
observability_settings: Telnyx::AI::ObservabilityReq,
|
|
330
321
|
privacy_settings: Telnyx::AI::PrivacySettings,
|
|
331
322
|
telephony_settings: Telnyx::AI::TelephonySettings,
|
|
332
323
|
tool_ids: T::Array[String],
|
|
@@ -353,116 +344,6 @@ module Telnyx
|
|
|
353
344
|
end
|
|
354
345
|
def to_hash
|
|
355
346
|
end
|
|
356
|
-
|
|
357
|
-
class ObservabilitySettings < Telnyx::Internal::Type::BaseModel
|
|
358
|
-
OrHash =
|
|
359
|
-
T.type_alias do
|
|
360
|
-
T.any(
|
|
361
|
-
Telnyx::AI::Assistants::UpdateAssistant::ObservabilitySettings,
|
|
362
|
-
Telnyx::Internal::AnyHash
|
|
363
|
-
)
|
|
364
|
-
end
|
|
365
|
-
|
|
366
|
-
sig { returns(T.nilable(String)) }
|
|
367
|
-
attr_reader :host
|
|
368
|
-
|
|
369
|
-
sig { params(host: String).void }
|
|
370
|
-
attr_writer :host
|
|
371
|
-
|
|
372
|
-
sig { returns(T.nilable(String)) }
|
|
373
|
-
attr_reader :public_key_ref
|
|
374
|
-
|
|
375
|
-
sig { params(public_key_ref: String).void }
|
|
376
|
-
attr_writer :public_key_ref
|
|
377
|
-
|
|
378
|
-
sig { returns(T.nilable(String)) }
|
|
379
|
-
attr_reader :secret_key_ref
|
|
380
|
-
|
|
381
|
-
sig { params(secret_key_ref: String).void }
|
|
382
|
-
attr_writer :secret_key_ref
|
|
383
|
-
|
|
384
|
-
sig do
|
|
385
|
-
returns(
|
|
386
|
-
T.nilable(
|
|
387
|
-
Telnyx::AI::Assistants::UpdateAssistant::ObservabilitySettings::Status::OrSymbol
|
|
388
|
-
)
|
|
389
|
-
)
|
|
390
|
-
end
|
|
391
|
-
attr_reader :status
|
|
392
|
-
|
|
393
|
-
sig do
|
|
394
|
-
params(
|
|
395
|
-
status:
|
|
396
|
-
Telnyx::AI::Assistants::UpdateAssistant::ObservabilitySettings::Status::OrSymbol
|
|
397
|
-
).void
|
|
398
|
-
end
|
|
399
|
-
attr_writer :status
|
|
400
|
-
|
|
401
|
-
sig do
|
|
402
|
-
params(
|
|
403
|
-
host: String,
|
|
404
|
-
public_key_ref: String,
|
|
405
|
-
secret_key_ref: String,
|
|
406
|
-
status:
|
|
407
|
-
Telnyx::AI::Assistants::UpdateAssistant::ObservabilitySettings::Status::OrSymbol
|
|
408
|
-
).returns(T.attached_class)
|
|
409
|
-
end
|
|
410
|
-
def self.new(
|
|
411
|
-
host: nil,
|
|
412
|
-
public_key_ref: nil,
|
|
413
|
-
secret_key_ref: nil,
|
|
414
|
-
status: nil
|
|
415
|
-
)
|
|
416
|
-
end
|
|
417
|
-
|
|
418
|
-
sig do
|
|
419
|
-
override.returns(
|
|
420
|
-
{
|
|
421
|
-
host: String,
|
|
422
|
-
public_key_ref: String,
|
|
423
|
-
secret_key_ref: String,
|
|
424
|
-
status:
|
|
425
|
-
Telnyx::AI::Assistants::UpdateAssistant::ObservabilitySettings::Status::OrSymbol
|
|
426
|
-
}
|
|
427
|
-
)
|
|
428
|
-
end
|
|
429
|
-
def to_hash
|
|
430
|
-
end
|
|
431
|
-
|
|
432
|
-
module Status
|
|
433
|
-
extend Telnyx::Internal::Type::Enum
|
|
434
|
-
|
|
435
|
-
TaggedSymbol =
|
|
436
|
-
T.type_alias do
|
|
437
|
-
T.all(
|
|
438
|
-
Symbol,
|
|
439
|
-
Telnyx::AI::Assistants::UpdateAssistant::ObservabilitySettings::Status
|
|
440
|
-
)
|
|
441
|
-
end
|
|
442
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
443
|
-
|
|
444
|
-
ENABLED =
|
|
445
|
-
T.let(
|
|
446
|
-
:enabled,
|
|
447
|
-
Telnyx::AI::Assistants::UpdateAssistant::ObservabilitySettings::Status::TaggedSymbol
|
|
448
|
-
)
|
|
449
|
-
DISABLED =
|
|
450
|
-
T.let(
|
|
451
|
-
:disabled,
|
|
452
|
-
Telnyx::AI::Assistants::UpdateAssistant::ObservabilitySettings::Status::TaggedSymbol
|
|
453
|
-
)
|
|
454
|
-
|
|
455
|
-
sig do
|
|
456
|
-
override.returns(
|
|
457
|
-
T::Array[
|
|
458
|
-
Telnyx::AI::Assistants::UpdateAssistant::ObservabilitySettings::Status::TaggedSymbol
|
|
459
|
-
]
|
|
460
|
-
)
|
|
461
|
-
end
|
|
462
|
-
def self.values
|
|
463
|
-
end
|
|
464
|
-
end
|
|
465
|
-
end
|
|
466
347
|
end
|
|
467
348
|
end
|
|
468
349
|
end
|
|
@@ -160,12 +160,12 @@ module Telnyx
|
|
|
160
160
|
Integer,
|
|
161
161
|
T::Boolean,
|
|
162
162
|
T::Array[
|
|
163
|
-
Telnyx::AI::ConversationAddMessageParams::Metadata::
|
|
163
|
+
Telnyx::AI::ConversationAddMessageParams::Metadata::MetadataArrayValue::Variants
|
|
164
164
|
]
|
|
165
165
|
)
|
|
166
166
|
end
|
|
167
167
|
|
|
168
|
-
module
|
|
168
|
+
module MetadataArrayValue
|
|
169
169
|
extend Telnyx::Internal::Type::Union
|
|
170
170
|
|
|
171
171
|
Variants = T.type_alias { T.any(String, Integer, T::Boolean) }
|
|
@@ -173,7 +173,7 @@ module Telnyx
|
|
|
173
173
|
sig do
|
|
174
174
|
override.returns(
|
|
175
175
|
T::Array[
|
|
176
|
-
Telnyx::AI::ConversationAddMessageParams::Metadata::
|
|
176
|
+
Telnyx::AI::ConversationAddMessageParams::Metadata::MetadataArrayValue::Variants
|
|
177
177
|
]
|
|
178
178
|
)
|
|
179
179
|
end
|
|
@@ -191,11 +191,11 @@ module Telnyx
|
|
|
191
191
|
def self.variants
|
|
192
192
|
end
|
|
193
193
|
|
|
194
|
-
|
|
194
|
+
MetadataArrayValueArray =
|
|
195
195
|
T.let(
|
|
196
196
|
Telnyx::Internal::Type::ArrayOf[
|
|
197
197
|
union:
|
|
198
|
-
Telnyx::AI::ConversationAddMessageParams::Metadata::
|
|
198
|
+
Telnyx::AI::ConversationAddMessageParams::Metadata::MetadataArrayValue
|
|
199
199
|
],
|
|
200
200
|
Telnyx::Internal::Type::Converter
|
|
201
201
|
)
|
|
@@ -111,18 +111,11 @@ module Telnyx
|
|
|
111
111
|
end
|
|
112
112
|
attr_writer :messaging_settings
|
|
113
113
|
|
|
114
|
-
sig
|
|
115
|
-
returns(
|
|
116
|
-
T.nilable(Telnyx::AI::InferenceEmbedding::ObservabilitySettings)
|
|
117
|
-
)
|
|
118
|
-
end
|
|
114
|
+
sig { returns(T.nilable(Telnyx::AI::Observability)) }
|
|
119
115
|
attr_reader :observability_settings
|
|
120
116
|
|
|
121
117
|
sig do
|
|
122
|
-
params(
|
|
123
|
-
observability_settings:
|
|
124
|
-
Telnyx::AI::InferenceEmbedding::ObservabilitySettings::OrHash
|
|
125
|
-
).void
|
|
118
|
+
params(observability_settings: Telnyx::AI::Observability::OrHash).void
|
|
126
119
|
end
|
|
127
120
|
attr_writer :observability_settings
|
|
128
121
|
|
|
@@ -207,8 +200,7 @@ module Telnyx
|
|
|
207
200
|
insight_settings: Telnyx::AI::InsightSettings::OrHash,
|
|
208
201
|
llm_api_key_ref: String,
|
|
209
202
|
messaging_settings: Telnyx::AI::MessagingSettings::OrHash,
|
|
210
|
-
observability_settings:
|
|
211
|
-
Telnyx::AI::InferenceEmbedding::ObservabilitySettings::OrHash,
|
|
203
|
+
observability_settings: Telnyx::AI::Observability::OrHash,
|
|
212
204
|
privacy_settings: Telnyx::AI::PrivacySettings::OrHash,
|
|
213
205
|
telephony_settings: Telnyx::AI::TelephonySettings::OrHash,
|
|
214
206
|
tools:
|
|
@@ -298,8 +290,7 @@ module Telnyx
|
|
|
298
290
|
insight_settings: Telnyx::AI::InsightSettings,
|
|
299
291
|
llm_api_key_ref: String,
|
|
300
292
|
messaging_settings: Telnyx::AI::MessagingSettings,
|
|
301
|
-
observability_settings:
|
|
302
|
-
Telnyx::AI::InferenceEmbedding::ObservabilitySettings,
|
|
293
|
+
observability_settings: Telnyx::AI::Observability,
|
|
303
294
|
privacy_settings: Telnyx::AI::PrivacySettings,
|
|
304
295
|
telephony_settings: Telnyx::AI::TelephonySettings,
|
|
305
296
|
tools: T::Array[Telnyx::AI::AssistantTool::Variants],
|
|
@@ -311,116 +302,6 @@ module Telnyx
|
|
|
311
302
|
end
|
|
312
303
|
def to_hash
|
|
313
304
|
end
|
|
314
|
-
|
|
315
|
-
class ObservabilitySettings < Telnyx::Internal::Type::BaseModel
|
|
316
|
-
OrHash =
|
|
317
|
-
T.type_alias do
|
|
318
|
-
T.any(
|
|
319
|
-
Telnyx::AI::InferenceEmbedding::ObservabilitySettings,
|
|
320
|
-
Telnyx::Internal::AnyHash
|
|
321
|
-
)
|
|
322
|
-
end
|
|
323
|
-
|
|
324
|
-
sig { returns(T.nilable(String)) }
|
|
325
|
-
attr_reader :host
|
|
326
|
-
|
|
327
|
-
sig { params(host: String).void }
|
|
328
|
-
attr_writer :host
|
|
329
|
-
|
|
330
|
-
sig { returns(T.nilable(String)) }
|
|
331
|
-
attr_reader :public_key_ref
|
|
332
|
-
|
|
333
|
-
sig { params(public_key_ref: String).void }
|
|
334
|
-
attr_writer :public_key_ref
|
|
335
|
-
|
|
336
|
-
sig { returns(T.nilable(String)) }
|
|
337
|
-
attr_reader :secret_key_ref
|
|
338
|
-
|
|
339
|
-
sig { params(secret_key_ref: String).void }
|
|
340
|
-
attr_writer :secret_key_ref
|
|
341
|
-
|
|
342
|
-
sig do
|
|
343
|
-
returns(
|
|
344
|
-
T.nilable(
|
|
345
|
-
Telnyx::AI::InferenceEmbedding::ObservabilitySettings::Status::TaggedSymbol
|
|
346
|
-
)
|
|
347
|
-
)
|
|
348
|
-
end
|
|
349
|
-
attr_reader :status
|
|
350
|
-
|
|
351
|
-
sig do
|
|
352
|
-
params(
|
|
353
|
-
status:
|
|
354
|
-
Telnyx::AI::InferenceEmbedding::ObservabilitySettings::Status::OrSymbol
|
|
355
|
-
).void
|
|
356
|
-
end
|
|
357
|
-
attr_writer :status
|
|
358
|
-
|
|
359
|
-
sig do
|
|
360
|
-
params(
|
|
361
|
-
host: String,
|
|
362
|
-
public_key_ref: String,
|
|
363
|
-
secret_key_ref: String,
|
|
364
|
-
status:
|
|
365
|
-
Telnyx::AI::InferenceEmbedding::ObservabilitySettings::Status::OrSymbol
|
|
366
|
-
).returns(T.attached_class)
|
|
367
|
-
end
|
|
368
|
-
def self.new(
|
|
369
|
-
host: nil,
|
|
370
|
-
public_key_ref: nil,
|
|
371
|
-
secret_key_ref: nil,
|
|
372
|
-
status: nil
|
|
373
|
-
)
|
|
374
|
-
end
|
|
375
|
-
|
|
376
|
-
sig do
|
|
377
|
-
override.returns(
|
|
378
|
-
{
|
|
379
|
-
host: String,
|
|
380
|
-
public_key_ref: String,
|
|
381
|
-
secret_key_ref: String,
|
|
382
|
-
status:
|
|
383
|
-
Telnyx::AI::InferenceEmbedding::ObservabilitySettings::Status::TaggedSymbol
|
|
384
|
-
}
|
|
385
|
-
)
|
|
386
|
-
end
|
|
387
|
-
def to_hash
|
|
388
|
-
end
|
|
389
|
-
|
|
390
|
-
module Status
|
|
391
|
-
extend Telnyx::Internal::Type::Enum
|
|
392
|
-
|
|
393
|
-
TaggedSymbol =
|
|
394
|
-
T.type_alias do
|
|
395
|
-
T.all(
|
|
396
|
-
Symbol,
|
|
397
|
-
Telnyx::AI::InferenceEmbedding::ObservabilitySettings::Status
|
|
398
|
-
)
|
|
399
|
-
end
|
|
400
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
401
|
-
|
|
402
|
-
ENABLED =
|
|
403
|
-
T.let(
|
|
404
|
-
:enabled,
|
|
405
|
-
Telnyx::AI::InferenceEmbedding::ObservabilitySettings::Status::TaggedSymbol
|
|
406
|
-
)
|
|
407
|
-
DISABLED =
|
|
408
|
-
T.let(
|
|
409
|
-
:disabled,
|
|
410
|
-
Telnyx::AI::InferenceEmbedding::ObservabilitySettings::Status::TaggedSymbol
|
|
411
|
-
)
|
|
412
|
-
|
|
413
|
-
sig do
|
|
414
|
-
override.returns(
|
|
415
|
-
T::Array[
|
|
416
|
-
Telnyx::AI::InferenceEmbedding::ObservabilitySettings::Status::TaggedSymbol
|
|
417
|
-
]
|
|
418
|
-
)
|
|
419
|
-
end
|
|
420
|
-
def self.values
|
|
421
|
-
end
|
|
422
|
-
end
|
|
423
|
-
end
|
|
424
305
|
end
|
|
425
306
|
end
|
|
426
307
|
end
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module AI
|
|
6
|
+
class Observability < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(Telnyx::AI::Observability, Telnyx::Internal::AnyHash)
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
sig { returns(T.nilable(String)) }
|
|
13
|
+
attr_reader :host
|
|
14
|
+
|
|
15
|
+
sig { params(host: String).void }
|
|
16
|
+
attr_writer :host
|
|
17
|
+
|
|
18
|
+
sig { returns(T.nilable(String)) }
|
|
19
|
+
attr_reader :public_key_ref
|
|
20
|
+
|
|
21
|
+
sig { params(public_key_ref: String).void }
|
|
22
|
+
attr_writer :public_key_ref
|
|
23
|
+
|
|
24
|
+
sig { returns(T.nilable(String)) }
|
|
25
|
+
attr_reader :secret_key_ref
|
|
26
|
+
|
|
27
|
+
sig { params(secret_key_ref: String).void }
|
|
28
|
+
attr_writer :secret_key_ref
|
|
29
|
+
|
|
30
|
+
sig do
|
|
31
|
+
returns(T.nilable(Telnyx::AI::Observability::Status::TaggedSymbol))
|
|
32
|
+
end
|
|
33
|
+
attr_reader :status
|
|
34
|
+
|
|
35
|
+
sig { params(status: Telnyx::AI::Observability::Status::OrSymbol).void }
|
|
36
|
+
attr_writer :status
|
|
37
|
+
|
|
38
|
+
sig do
|
|
39
|
+
params(
|
|
40
|
+
host: String,
|
|
41
|
+
public_key_ref: String,
|
|
42
|
+
secret_key_ref: String,
|
|
43
|
+
status: Telnyx::AI::Observability::Status::OrSymbol
|
|
44
|
+
).returns(T.attached_class)
|
|
45
|
+
end
|
|
46
|
+
def self.new(
|
|
47
|
+
host: nil,
|
|
48
|
+
public_key_ref: nil,
|
|
49
|
+
secret_key_ref: nil,
|
|
50
|
+
status: nil
|
|
51
|
+
)
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
sig do
|
|
55
|
+
override.returns(
|
|
56
|
+
{
|
|
57
|
+
host: String,
|
|
58
|
+
public_key_ref: String,
|
|
59
|
+
secret_key_ref: String,
|
|
60
|
+
status: Telnyx::AI::Observability::Status::TaggedSymbol
|
|
61
|
+
}
|
|
62
|
+
)
|
|
63
|
+
end
|
|
64
|
+
def to_hash
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
module Status
|
|
68
|
+
extend Telnyx::Internal::Type::Enum
|
|
69
|
+
|
|
70
|
+
TaggedSymbol =
|
|
71
|
+
T.type_alias { T.all(Symbol, Telnyx::AI::Observability::Status) }
|
|
72
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
73
|
+
|
|
74
|
+
ENABLED =
|
|
75
|
+
T.let(:enabled, Telnyx::AI::Observability::Status::TaggedSymbol)
|
|
76
|
+
DISABLED =
|
|
77
|
+
T.let(:disabled, Telnyx::AI::Observability::Status::TaggedSymbol)
|
|
78
|
+
|
|
79
|
+
sig do
|
|
80
|
+
override.returns(
|
|
81
|
+
T::Array[Telnyx::AI::Observability::Status::TaggedSymbol]
|
|
82
|
+
)
|
|
83
|
+
end
|
|
84
|
+
def self.values
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
end
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module AI
|
|
6
|
+
class ObservabilityReq < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(Telnyx::AI::ObservabilityReq, Telnyx::Internal::AnyHash)
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
sig { returns(T.nilable(String)) }
|
|
13
|
+
attr_reader :host
|
|
14
|
+
|
|
15
|
+
sig { params(host: String).void }
|
|
16
|
+
attr_writer :host
|
|
17
|
+
|
|
18
|
+
sig { returns(T.nilable(String)) }
|
|
19
|
+
attr_reader :public_key_ref
|
|
20
|
+
|
|
21
|
+
sig { params(public_key_ref: String).void }
|
|
22
|
+
attr_writer :public_key_ref
|
|
23
|
+
|
|
24
|
+
sig { returns(T.nilable(String)) }
|
|
25
|
+
attr_reader :secret_key_ref
|
|
26
|
+
|
|
27
|
+
sig { params(secret_key_ref: String).void }
|
|
28
|
+
attr_writer :secret_key_ref
|
|
29
|
+
|
|
30
|
+
sig do
|
|
31
|
+
returns(T.nilable(Telnyx::AI::ObservabilityReq::Status::OrSymbol))
|
|
32
|
+
end
|
|
33
|
+
attr_reader :status
|
|
34
|
+
|
|
35
|
+
sig do
|
|
36
|
+
params(status: Telnyx::AI::ObservabilityReq::Status::OrSymbol).void
|
|
37
|
+
end
|
|
38
|
+
attr_writer :status
|
|
39
|
+
|
|
40
|
+
sig do
|
|
41
|
+
params(
|
|
42
|
+
host: String,
|
|
43
|
+
public_key_ref: String,
|
|
44
|
+
secret_key_ref: String,
|
|
45
|
+
status: Telnyx::AI::ObservabilityReq::Status::OrSymbol
|
|
46
|
+
).returns(T.attached_class)
|
|
47
|
+
end
|
|
48
|
+
def self.new(
|
|
49
|
+
host: nil,
|
|
50
|
+
public_key_ref: nil,
|
|
51
|
+
secret_key_ref: nil,
|
|
52
|
+
status: nil
|
|
53
|
+
)
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
sig do
|
|
57
|
+
override.returns(
|
|
58
|
+
{
|
|
59
|
+
host: String,
|
|
60
|
+
public_key_ref: String,
|
|
61
|
+
secret_key_ref: String,
|
|
62
|
+
status: Telnyx::AI::ObservabilityReq::Status::OrSymbol
|
|
63
|
+
}
|
|
64
|
+
)
|
|
65
|
+
end
|
|
66
|
+
def to_hash
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
module Status
|
|
70
|
+
extend Telnyx::Internal::Type::Enum
|
|
71
|
+
|
|
72
|
+
TaggedSymbol =
|
|
73
|
+
T.type_alias { T.all(Symbol, Telnyx::AI::ObservabilityReq::Status) }
|
|
74
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
75
|
+
|
|
76
|
+
ENABLED =
|
|
77
|
+
T.let(:enabled, Telnyx::AI::ObservabilityReq::Status::TaggedSymbol)
|
|
78
|
+
DISABLED =
|
|
79
|
+
T.let(:disabled, Telnyx::AI::ObservabilityReq::Status::TaggedSymbol)
|
|
80
|
+
|
|
81
|
+
sig do
|
|
82
|
+
override.returns(
|
|
83
|
+
T::Array[Telnyx::AI::ObservabilityReq::Status::TaggedSymbol]
|
|
84
|
+
)
|
|
85
|
+
end
|
|
86
|
+
def self.values
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
end
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
class BookAppointmentTool < Telnyx::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Telnyx::BookAppointmentTool, Telnyx::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
sig { returns(Telnyx::BookAppointmentToolParams) }
|
|
12
|
+
attr_reader :book_appointment
|
|
13
|
+
|
|
14
|
+
sig do
|
|
15
|
+
params(book_appointment: Telnyx::BookAppointmentToolParams::OrHash).void
|
|
16
|
+
end
|
|
17
|
+
attr_writer :book_appointment
|
|
18
|
+
|
|
19
|
+
sig { returns(Telnyx::BookAppointmentTool::Type::OrSymbol) }
|
|
20
|
+
attr_accessor :type
|
|
21
|
+
|
|
22
|
+
sig do
|
|
23
|
+
params(
|
|
24
|
+
book_appointment: Telnyx::BookAppointmentToolParams::OrHash,
|
|
25
|
+
type: Telnyx::BookAppointmentTool::Type::OrSymbol
|
|
26
|
+
).returns(T.attached_class)
|
|
27
|
+
end
|
|
28
|
+
def self.new(book_appointment:, type:)
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
sig do
|
|
32
|
+
override.returns(
|
|
33
|
+
{
|
|
34
|
+
book_appointment: Telnyx::BookAppointmentToolParams,
|
|
35
|
+
type: Telnyx::BookAppointmentTool::Type::OrSymbol
|
|
36
|
+
}
|
|
37
|
+
)
|
|
38
|
+
end
|
|
39
|
+
def to_hash
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
module Type
|
|
43
|
+
extend Telnyx::Internal::Type::Enum
|
|
44
|
+
|
|
45
|
+
TaggedSymbol =
|
|
46
|
+
T.type_alias { T.all(Symbol, Telnyx::BookAppointmentTool::Type) }
|
|
47
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
48
|
+
|
|
49
|
+
BOOK_APPOINTMENT =
|
|
50
|
+
T.let(
|
|
51
|
+
:book_appointment,
|
|
52
|
+
Telnyx::BookAppointmentTool::Type::TaggedSymbol
|
|
53
|
+
)
|
|
54
|
+
|
|
55
|
+
sig do
|
|
56
|
+
override.returns(
|
|
57
|
+
T::Array[Telnyx::BookAppointmentTool::Type::TaggedSymbol]
|
|
58
|
+
)
|
|
59
|
+
end
|
|
60
|
+
def self.values
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
class BookAppointmentToolParams < Telnyx::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Telnyx::BookAppointmentToolParams, 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/bookings/create-a-booking#body-event-type-id)
|
|
20
|
+
sig { returns(Integer) }
|
|
21
|
+
attr_accessor :event_type_id
|
|
22
|
+
|
|
23
|
+
# The name of the attendee
|
|
24
|
+
# [cal.com](https://cal.com/docs/api-reference/v2/bookings/create-a-booking#body-attendee-name).
|
|
25
|
+
# If not provided, the assistant will ask for the attendee's name.
|
|
26
|
+
sig { returns(T.nilable(String)) }
|
|
27
|
+
attr_reader :attendee_name
|
|
28
|
+
|
|
29
|
+
sig { params(attendee_name: String).void }
|
|
30
|
+
attr_writer :attendee_name
|
|
31
|
+
|
|
32
|
+
# The timezone of the attendee
|
|
33
|
+
# [cal.com](https://cal.com/docs/api-reference/v2/bookings/create-a-booking#body-attendee-timezone).
|
|
34
|
+
# If not provided, the assistant will ask for the attendee's timezone.
|
|
35
|
+
sig { returns(T.nilable(String)) }
|
|
36
|
+
attr_reader :attendee_timezone
|
|
37
|
+
|
|
38
|
+
sig { params(attendee_timezone: String).void }
|
|
39
|
+
attr_writer :attendee_timezone
|
|
40
|
+
|
|
41
|
+
sig do
|
|
42
|
+
params(
|
|
43
|
+
api_key_ref: String,
|
|
44
|
+
event_type_id: Integer,
|
|
45
|
+
attendee_name: String,
|
|
46
|
+
attendee_timezone: String
|
|
47
|
+
).returns(T.attached_class)
|
|
48
|
+
end
|
|
49
|
+
def self.new(
|
|
50
|
+
# Reference to an integration secret that contains your Cal.com API key. You would
|
|
51
|
+
# pass the `identifier` for an integration secret
|
|
52
|
+
# [/v2/integration_secrets](https://developers.telnyx.com/api/secrets-manager/integration-secrets/create-integration-secret)
|
|
53
|
+
# that refers to your Cal.com API key.
|
|
54
|
+
api_key_ref:,
|
|
55
|
+
# Event Type ID for which slots are being fetched.
|
|
56
|
+
# [cal.com](https://cal.com/docs/api-reference/v2/bookings/create-a-booking#body-event-type-id)
|
|
57
|
+
event_type_id:,
|
|
58
|
+
# The name of the attendee
|
|
59
|
+
# [cal.com](https://cal.com/docs/api-reference/v2/bookings/create-a-booking#body-attendee-name).
|
|
60
|
+
# If not provided, the assistant will ask for the attendee's name.
|
|
61
|
+
attendee_name: nil,
|
|
62
|
+
# The timezone of the attendee
|
|
63
|
+
# [cal.com](https://cal.com/docs/api-reference/v2/bookings/create-a-booking#body-attendee-timezone).
|
|
64
|
+
# If not provided, the assistant will ask for the attendee's timezone.
|
|
65
|
+
attendee_timezone: nil
|
|
66
|
+
)
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
sig do
|
|
70
|
+
override.returns(
|
|
71
|
+
{
|
|
72
|
+
api_key_ref: String,
|
|
73
|
+
event_type_id: Integer,
|
|
74
|
+
attendee_name: String,
|
|
75
|
+
attendee_timezone: String
|
|
76
|
+
}
|
|
77
|
+
)
|
|
78
|
+
end
|
|
79
|
+
def to_hash
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|