telnyx 5.0.0 → 5.1.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 +38 -0
- data/README.md +1 -1
- data/lib/telnyx/client.rb +4 -0
- data/lib/telnyx/internal/type/union.rb +1 -1
- data/lib/telnyx/models/ai/assistant.rb +39 -4
- data/lib/telnyx/models/ai/assistant_create_params.rb +187 -6
- data/lib/telnyx/models/ai/assistant_imports_params.rb +10 -1
- data/lib/telnyx/models/ai/assistant_tool.rb +400 -3
- data/lib/telnyx/models/ai/assistant_update_params.rb +187 -6
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +189 -6
- data/lib/telnyx/models/ai/bucket_ids.rb +7 -1
- data/lib/telnyx/models/ai/chat_create_completion_params.rb +4 -4
- data/lib/telnyx/models/ai/inference_embedding.rb +187 -6
- data/lib/telnyx/models/ai/messaging_settings.rb +10 -1
- data/lib/telnyx/models/ai/retrieval_tool.rb +3 -3
- data/lib/telnyx/models/ai/telephony_settings.rb +142 -1
- data/lib/telnyx/models/ai/transfer_tool.rb +46 -3
- data/lib/telnyx/models/ai/voice_settings.rb +1 -1
- data/lib/telnyx/models/ai/webhook_tool.rb +256 -3
- data/lib/telnyx/models/call_control_application_list_params.rb +16 -18
- data/lib/telnyx/models/call_event_list_params.rb +16 -18
- data/lib/telnyx/models/calls/action_add_ai_assistant_messages_params.rb +289 -0
- data/lib/telnyx/models/calls/action_add_ai_assistant_messages_response.rb +18 -0
- data/lib/telnyx/models/calls/action_start_noise_suppression_params.rb +7 -4
- data/lib/telnyx/models/conference_list_params.rb +16 -18
- data/lib/telnyx/models/conference_list_participants_params.rb +16 -18
- data/lib/telnyx/models/connection_list_active_calls_params.rb +16 -18
- data/lib/telnyx/models/fax_create_params.rb +10 -1
- data/lib/telnyx/models/messaging_10dlc/brand_retrieve_sms_otp_status_params.rb +1 -9
- data/lib/telnyx/models/messaging_profile.rb +11 -1
- data/lib/telnyx/models/messaging_profile_create_params.rb +11 -1
- data/lib/telnyx/models/messaging_profile_update_params.rb +11 -1
- data/lib/telnyx/models/messaging_tollfree/verification/tf_verification_request.rb +14 -1
- data/lib/telnyx/models/messaging_tollfree/verification/verification_request_egress.rb +17 -1
- data/lib/telnyx/models/messaging_tollfree/verification/verification_request_status.rb +17 -1
- data/lib/telnyx/models/organizations/user_get_groups_report_params.rb +32 -0
- data/lib/telnyx/models/organizations/user_get_groups_report_response.rb +132 -0
- data/lib/telnyx/models/organizations/user_list_params.rb +73 -0
- data/lib/telnyx/models/organizations/user_list_response.rb +118 -0
- data/lib/telnyx/models/organizations/user_retrieve_params.rb +29 -0
- data/lib/telnyx/models/organizations/user_retrieve_response.rb +129 -0
- data/lib/telnyx/models/organizations/users/action_remove_params.rb +18 -0
- data/lib/telnyx/models/organizations/users/action_remove_response.rb +133 -0
- data/lib/telnyx/models/private_wireless_gateway_status.rb +3 -2
- data/lib/telnyx/models/queues/call_list_params.rb +16 -18
- data/lib/telnyx/models/sim_card_list_params.rb +11 -3
- data/lib/telnyx/models/texml/accounts/queue_list_params.rb +64 -0
- data/lib/telnyx/models/texml/accounts/queue_list_response.rb +155 -0
- data/lib/telnyx/models/unsafe_unwrap_webhook_event.rb +1 -7
- data/lib/telnyx/models/unwrap_webhook_event.rb +1 -7
- data/lib/telnyx/models.rb +2 -6
- data/lib/telnyx/resources/ai/assistants/tools.rb +2 -2
- data/lib/telnyx/resources/ai/assistants/versions.rb +18 -16
- data/lib/telnyx/resources/ai/assistants.rb +15 -9
- data/lib/telnyx/resources/ai/clusters.rb +1 -1
- data/lib/telnyx/resources/ai/embeddings.rb +1 -1
- data/lib/telnyx/resources/bundle_pricing/user_bundles.rb +1 -1
- data/lib/telnyx/resources/call_control_applications.rb +8 -4
- data/lib/telnyx/resources/call_events.rb +8 -4
- data/lib/telnyx/resources/calls/actions.rb +31 -0
- data/lib/telnyx/resources/conferences.rb +16 -8
- data/lib/telnyx/resources/connections.rb +8 -4
- data/lib/telnyx/resources/faxes.rb +3 -1
- data/lib/telnyx/resources/messages.rb +1 -1
- data/lib/telnyx/resources/messaging_10dlc/brand.rb +10 -14
- data/lib/telnyx/resources/messaging_profiles/autoresp_configs.rb +6 -6
- data/lib/telnyx/resources/messaging_profiles.rb +6 -2
- data/lib/telnyx/resources/messaging_tollfree/verification/requests.rb +6 -2
- data/lib/telnyx/resources/operator_connect/actions.rb +1 -1
- data/lib/telnyx/resources/organizations/users/actions.rb +38 -0
- data/lib/telnyx/resources/organizations/users.rb +114 -0
- data/lib/telnyx/resources/organizations.rb +18 -0
- data/lib/telnyx/resources/phone_numbers/jobs.rb +1 -1
- data/lib/telnyx/resources/queues/calls.rb +8 -4
- data/lib/telnyx/resources/sim_cards/actions.rb +6 -6
- data/lib/telnyx/resources/texml/accounts/calls/recordings.rb +1 -1
- data/lib/telnyx/resources/texml/accounts/queues.rb +41 -0
- data/lib/telnyx/resources/usage_reports.rb +2 -2
- data/lib/telnyx/resources/webhooks.rb +2 -2
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +15 -69
- data/rbi/telnyx/client.rbi +3 -0
- data/rbi/telnyx/models/ai/assistant.rbi +91 -5
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +449 -14
- data/rbi/telnyx/models/ai/assistant_imports_params.rbi +13 -0
- data/rbi/telnyx/models/ai/assistant_tool.rbi +910 -2
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +449 -14
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +454 -17
- data/rbi/telnyx/models/ai/bucket_ids.rbi +6 -0
- data/rbi/telnyx/models/ai/chat_create_completion_params.rbi +6 -13
- data/rbi/telnyx/models/ai/inference_embedding.rbi +447 -13
- data/rbi/telnyx/models/ai/messaging_settings.rbi +13 -0
- data/rbi/telnyx/models/ai/retrieval_tool.rbi +4 -8
- data/rbi/telnyx/models/ai/telephony_settings.rbi +347 -3
- data/rbi/telnyx/models/ai/transfer_tool.rbi +87 -6
- data/rbi/telnyx/models/ai/voice_settings.rbi +2 -2
- data/rbi/telnyx/models/ai/webhook_tool.rbi +584 -8
- data/rbi/telnyx/models/call_control_application_list_params.rbi +23 -35
- data/rbi/telnyx/models/call_event_list_params.rbi +23 -35
- data/rbi/telnyx/models/calls/action_add_ai_assistant_messages_params.rbi +583 -0
- data/rbi/telnyx/models/calls/action_add_ai_assistant_messages_response.rbi +39 -0
- data/rbi/telnyx/models/calls/action_start_noise_suppression_params.rbi +14 -6
- data/rbi/telnyx/models/conference_list_params.rbi +23 -35
- data/rbi/telnyx/models/conference_list_participants_params.rbi +23 -35
- data/rbi/telnyx/models/connection_list_active_calls_params.rbi +23 -35
- data/rbi/telnyx/models/fax_create_params.rbi +13 -0
- data/rbi/telnyx/models/messaging_10dlc/brand_retrieve_sms_otp_status_params.rbi +5 -21
- data/rbi/telnyx/models/messaging_profile.rbi +15 -0
- data/rbi/telnyx/models/messaging_profile_create_params.rbi +15 -0
- data/rbi/telnyx/models/messaging_profile_update_params.rbi +15 -0
- data/rbi/telnyx/models/messaging_tollfree/verification/tf_verification_request.rbi +12 -0
- data/rbi/telnyx/models/messaging_tollfree/verification/verification_request_egress.rbi +10 -0
- data/rbi/telnyx/models/messaging_tollfree/verification/verification_request_status.rbi +10 -0
- data/rbi/telnyx/models/organizations/user_get_groups_report_params.rbi +93 -0
- data/rbi/telnyx/models/organizations/user_get_groups_report_response.rbi +253 -0
- data/rbi/telnyx/models/organizations/user_list_params.rbi +152 -0
- data/rbi/telnyx/models/organizations/user_list_response.rbi +231 -0
- data/rbi/telnyx/models/organizations/user_retrieve_params.rbi +55 -0
- data/rbi/telnyx/models/organizations/user_retrieve_response.rbi +275 -0
- data/rbi/telnyx/models/organizations/users/action_remove_params.rbi +34 -0
- data/rbi/telnyx/models/organizations/users/action_remove_response.rbi +282 -0
- data/rbi/telnyx/models/private_wireless_gateway_status.rbi +4 -2
- data/rbi/telnyx/models/queues/call_list_params.rbi +23 -35
- data/rbi/telnyx/models/sim_card_list_params.rbi +14 -3
- data/rbi/telnyx/models/texml/accounts/queue_list_params.rbi +103 -0
- data/rbi/telnyx/models/texml/accounts/queue_list_response.rbi +269 -0
- data/rbi/telnyx/models/unsafe_unwrap_webhook_event.rbi +0 -3
- data/rbi/telnyx/models/unwrap_webhook_event.rbi +0 -3
- data/rbi/telnyx/models.rbi +2 -6
- data/rbi/telnyx/resources/ai/assistants/tools.rbi +2 -2
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +26 -19
- data/rbi/telnyx/resources/ai/assistants.rbi +32 -14
- data/rbi/telnyx/resources/ai/chat.rbi +1 -1
- data/rbi/telnyx/resources/ai/clusters.rbi +1 -1
- data/rbi/telnyx/resources/ai/embeddings.rbi +1 -1
- data/rbi/telnyx/resources/bundle_pricing/user_bundles.rbi +1 -1
- data/rbi/telnyx/resources/call_control_applications.rbi +7 -1
- data/rbi/telnyx/resources/call_events.rbi +5 -1
- data/rbi/telnyx/resources/calls/actions.rbi +37 -2
- data/rbi/telnyx/resources/conferences.rbi +10 -2
- data/rbi/telnyx/resources/connections.rbi +5 -1
- data/rbi/telnyx/resources/faxes.rbi +4 -0
- data/rbi/telnyx/resources/messages.rbi +1 -1
- data/rbi/telnyx/resources/messaging_10dlc/brand.rbi +8 -11
- data/rbi/telnyx/resources/messaging_profiles/autoresp_configs.rbi +6 -6
- data/rbi/telnyx/resources/messaging_profiles.rbi +10 -0
- data/rbi/telnyx/resources/messaging_tollfree/verification/requests.rbi +10 -0
- data/rbi/telnyx/resources/operator_connect/actions.rbi +1 -1
- data/rbi/telnyx/resources/organizations/users/actions.rbi +32 -0
- data/rbi/telnyx/resources/organizations/users.rbi +88 -0
- data/rbi/telnyx/resources/organizations.rbi +15 -0
- data/rbi/telnyx/resources/phone_numbers/jobs.rbi +1 -1
- data/rbi/telnyx/resources/queues/calls.rbi +5 -1
- data/rbi/telnyx/resources/sim_cards/actions.rbi +6 -6
- data/rbi/telnyx/resources/sim_cards.rbi +1 -1
- data/rbi/telnyx/resources/texml/accounts/calls/recordings.rbi +1 -1
- data/rbi/telnyx/resources/texml/accounts/queues.rbi +32 -0
- data/rbi/telnyx/resources/usage_reports.rbi +2 -2
- data/rbi/telnyx/resources/webhooks.rbi +0 -6
- data/sig/telnyx/client.rbs +2 -0
- data/sig/telnyx/models/ai/assistant.rbs +44 -1
- data/sig/telnyx/models/ai/assistant_create_params.rbs +176 -1
- data/sig/telnyx/models/ai/assistant_imports_params.rbs +8 -1
- data/sig/telnyx/models/ai/assistant_tool.rbs +367 -2
- data/sig/telnyx/models/ai/assistant_update_params.rbs +176 -1
- data/sig/telnyx/models/ai/assistants/update_assistant.rbs +178 -3
- data/sig/telnyx/models/ai/chat_create_completion_params.rbs +4 -7
- data/sig/telnyx/models/ai/inference_embedding.rbs +178 -3
- data/sig/telnyx/models/ai/messaging_settings.rbs +7 -0
- data/sig/telnyx/models/ai/retrieval_tool.rbs +4 -4
- data/sig/telnyx/models/ai/telephony_settings.rbs +133 -4
- data/sig/telnyx/models/ai/transfer_tool.rbs +42 -4
- data/sig/telnyx/models/ai/webhook_tool.rbs +241 -4
- data/sig/telnyx/models/call_control_application_list_params.rbs +17 -26
- data/sig/telnyx/models/call_event_list_params.rbs +18 -27
- data/sig/telnyx/models/calls/action_add_ai_assistant_messages_params.rbs +240 -0
- data/sig/telnyx/models/calls/action_add_ai_assistant_messages_response.rbs +20 -0
- data/sig/telnyx/models/calls/action_start_noise_suppression_params.rbs +2 -1
- data/sig/telnyx/models/conference_list_params.rbs +17 -26
- data/sig/telnyx/models/conference_list_participants_params.rbs +17 -26
- data/sig/telnyx/models/connection_list_active_calls_params.rbs +20 -27
- data/sig/telnyx/models/fax_create_params.rbs +7 -0
- data/sig/telnyx/models/messaging_10dlc/brand_retrieve_sms_otp_status_params.rbs +3 -13
- data/sig/telnyx/models/messaging_profile.rbs +7 -0
- data/sig/telnyx/models/messaging_profile_create_params.rbs +7 -0
- data/sig/telnyx/models/messaging_profile_update_params.rbs +7 -0
- data/sig/telnyx/models/messaging_tollfree/verification/tf_verification_request.rbs +5 -0
- data/sig/telnyx/models/messaging_tollfree/verification/verification_request_egress.rbs +5 -0
- data/sig/telnyx/models/messaging_tollfree/verification/verification_request_status.rbs +5 -0
- data/sig/telnyx/models/organizations/user_get_groups_report_params.rbs +43 -0
- data/sig/telnyx/models/organizations/user_get_groups_report_response.rbs +104 -0
- data/sig/telnyx/models/organizations/user_list_params.rbs +72 -0
- data/sig/telnyx/models/organizations/user_list_response.rbs +99 -0
- data/sig/telnyx/models/organizations/user_retrieve_params.rbs +27 -0
- data/sig/telnyx/models/organizations/user_retrieve_response.rbs +118 -0
- data/sig/telnyx/models/organizations/users/action_remove_params.rbs +19 -0
- data/sig/telnyx/models/organizations/users/action_remove_response.rbs +122 -0
- data/sig/telnyx/models/queues/call_list_params.rbs +20 -27
- data/sig/telnyx/models/sim_card_list_params.rbs +7 -0
- data/sig/telnyx/models/texml/accounts/queue_list_params.rbs +60 -0
- data/sig/telnyx/models/texml/accounts/queue_list_response.rbs +152 -0
- data/sig/telnyx/models/unsafe_unwrap_webhook_event.rbs +0 -3
- data/sig/telnyx/models/unwrap_webhook_event.rbs +0 -3
- data/sig/telnyx/models.rbs +2 -6
- data/sig/telnyx/resources/ai/assistants/versions.rbs +1 -0
- data/sig/telnyx/resources/ai/assistants.rbs +3 -0
- data/sig/telnyx/resources/call_control_applications.rbs +3 -1
- data/sig/telnyx/resources/call_events.rbs +3 -1
- data/sig/telnyx/resources/calls/actions.rbs +8 -0
- data/sig/telnyx/resources/conferences.rbs +6 -2
- data/sig/telnyx/resources/connections.rbs +3 -1
- data/sig/telnyx/resources/faxes.rbs +1 -0
- data/sig/telnyx/resources/messaging_10dlc/brand.rbs +1 -2
- data/sig/telnyx/resources/messaging_profiles.rbs +2 -0
- data/sig/telnyx/resources/messaging_tollfree/verification/requests.rbs +2 -0
- data/sig/telnyx/resources/organizations/users/actions.rbs +16 -0
- data/sig/telnyx/resources/organizations/users.rbs +31 -0
- data/sig/telnyx/resources/organizations.rbs +9 -0
- data/sig/telnyx/resources/queues/calls.rbs +3 -1
- data/sig/telnyx/resources/texml/accounts/queues.rbs +10 -0
- data/sig/telnyx/resources/webhooks.rbs +0 -6
- metadata +47 -20
- data/lib/telnyx/models/ai/inference_embedding_bucket_ids.rb +0 -31
- data/lib/telnyx/models/ai/inference_embedding_transfer_tool_params.rb +0 -93
- data/lib/telnyx/models/ai/inference_embedding_webhook_tool_params.rb +0 -265
- data/lib/telnyx/models/streaming_failed_webhook_event.rb +0 -15
- data/lib/telnyx/models/streaming_started_webhook_event.rb +0 -15
- data/lib/telnyx/models/streaming_stopped_webhook_event.rb +0 -15
- data/rbi/telnyx/models/ai/inference_embedding_bucket_ids.rbi +0 -54
- data/rbi/telnyx/models/ai/inference_embedding_transfer_tool_params.rbi +0 -185
- data/rbi/telnyx/models/ai/inference_embedding_webhook_tool_params.rbi +0 -621
- data/rbi/telnyx/models/streaming_failed_webhook_event.rbi +0 -30
- data/rbi/telnyx/models/streaming_started_webhook_event.rbi +0 -30
- data/rbi/telnyx/models/streaming_stopped_webhook_event.rbi +0 -30
- data/sig/telnyx/models/ai/inference_embedding_bucket_ids.rbs +0 -26
- data/sig/telnyx/models/ai/inference_embedding_transfer_tool_params.rbs +0 -75
- data/sig/telnyx/models/ai/inference_embedding_webhook_tool_params.rbs +0 -242
- data/sig/telnyx/models/streaming_failed_webhook_event.rbs +0 -15
- data/sig/telnyx/models/streaming_started_webhook_event.rbs +0 -16
- data/sig/telnyx/models/streaming_stopped_webhook_event.rbs +0 -16
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Texml
|
|
6
|
+
module Accounts
|
|
7
|
+
class QueueListResponse < Telnyx::Internal::Type::BaseModel
|
|
8
|
+
OrHash =
|
|
9
|
+
T.type_alias do
|
|
10
|
+
T.any(
|
|
11
|
+
Telnyx::Models::Texml::Accounts::QueueListResponse,
|
|
12
|
+
Telnyx::Internal::AnyHash
|
|
13
|
+
)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
# The number of the last element on the page, zero-indexed.
|
|
17
|
+
sig { returns(T.nilable(Integer)) }
|
|
18
|
+
attr_reader :end_
|
|
19
|
+
|
|
20
|
+
sig { params(end_: Integer).void }
|
|
21
|
+
attr_writer :end_
|
|
22
|
+
|
|
23
|
+
# /v2/texml/Accounts/61bf923e-5e4d-4595-a110-56190ea18a1b/Queues.json?Page=0&PageSize=1
|
|
24
|
+
sig { returns(T.nilable(String)) }
|
|
25
|
+
attr_reader :first_page_uri
|
|
26
|
+
|
|
27
|
+
sig { params(first_page_uri: String).void }
|
|
28
|
+
attr_writer :first_page_uri
|
|
29
|
+
|
|
30
|
+
# /v2/texml/Accounts/61bf923e-5e4d-4595-a110-56190ea18a1b/Queues.json?Page=1&PageSize=1&PageToken=MTY4AjgyNDkwNzIxMQ
|
|
31
|
+
sig { returns(T.nilable(String)) }
|
|
32
|
+
attr_reader :next_page_uri
|
|
33
|
+
|
|
34
|
+
sig { params(next_page_uri: String).void }
|
|
35
|
+
attr_writer :next_page_uri
|
|
36
|
+
|
|
37
|
+
# Current page number, zero-indexed.
|
|
38
|
+
sig { returns(T.nilable(Integer)) }
|
|
39
|
+
attr_reader :page
|
|
40
|
+
|
|
41
|
+
sig { params(page: Integer).void }
|
|
42
|
+
attr_writer :page
|
|
43
|
+
|
|
44
|
+
# The number of items on the page
|
|
45
|
+
sig { returns(T.nilable(Integer)) }
|
|
46
|
+
attr_reader :page_size
|
|
47
|
+
|
|
48
|
+
sig { params(page_size: Integer).void }
|
|
49
|
+
attr_writer :page_size
|
|
50
|
+
|
|
51
|
+
sig do
|
|
52
|
+
returns(
|
|
53
|
+
T.nilable(
|
|
54
|
+
T::Array[
|
|
55
|
+
Telnyx::Models::Texml::Accounts::QueueListResponse::Queue
|
|
56
|
+
]
|
|
57
|
+
)
|
|
58
|
+
)
|
|
59
|
+
end
|
|
60
|
+
attr_reader :queues
|
|
61
|
+
|
|
62
|
+
sig do
|
|
63
|
+
params(
|
|
64
|
+
queues:
|
|
65
|
+
T::Array[
|
|
66
|
+
Telnyx::Models::Texml::Accounts::QueueListResponse::Queue::OrHash
|
|
67
|
+
]
|
|
68
|
+
).void
|
|
69
|
+
end
|
|
70
|
+
attr_writer :queues
|
|
71
|
+
|
|
72
|
+
# The number of the first element on the page, zero-indexed.
|
|
73
|
+
sig { returns(T.nilable(Integer)) }
|
|
74
|
+
attr_reader :start
|
|
75
|
+
|
|
76
|
+
sig { params(start: Integer).void }
|
|
77
|
+
attr_writer :start
|
|
78
|
+
|
|
79
|
+
# The URI of the current page.
|
|
80
|
+
sig { returns(T.nilable(String)) }
|
|
81
|
+
attr_reader :uri
|
|
82
|
+
|
|
83
|
+
sig { params(uri: String).void }
|
|
84
|
+
attr_writer :uri
|
|
85
|
+
|
|
86
|
+
sig do
|
|
87
|
+
params(
|
|
88
|
+
end_: Integer,
|
|
89
|
+
first_page_uri: String,
|
|
90
|
+
next_page_uri: String,
|
|
91
|
+
page: Integer,
|
|
92
|
+
page_size: Integer,
|
|
93
|
+
queues:
|
|
94
|
+
T::Array[
|
|
95
|
+
Telnyx::Models::Texml::Accounts::QueueListResponse::Queue::OrHash
|
|
96
|
+
],
|
|
97
|
+
start: Integer,
|
|
98
|
+
uri: String
|
|
99
|
+
).returns(T.attached_class)
|
|
100
|
+
end
|
|
101
|
+
def self.new(
|
|
102
|
+
# The number of the last element on the page, zero-indexed.
|
|
103
|
+
end_: nil,
|
|
104
|
+
# /v2/texml/Accounts/61bf923e-5e4d-4595-a110-56190ea18a1b/Queues.json?Page=0&PageSize=1
|
|
105
|
+
first_page_uri: nil,
|
|
106
|
+
# /v2/texml/Accounts/61bf923e-5e4d-4595-a110-56190ea18a1b/Queues.json?Page=1&PageSize=1&PageToken=MTY4AjgyNDkwNzIxMQ
|
|
107
|
+
next_page_uri: nil,
|
|
108
|
+
# Current page number, zero-indexed.
|
|
109
|
+
page: nil,
|
|
110
|
+
# The number of items on the page
|
|
111
|
+
page_size: nil,
|
|
112
|
+
queues: nil,
|
|
113
|
+
# The number of the first element on the page, zero-indexed.
|
|
114
|
+
start: nil,
|
|
115
|
+
# The URI of the current page.
|
|
116
|
+
uri: nil
|
|
117
|
+
)
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
sig do
|
|
121
|
+
override.returns(
|
|
122
|
+
{
|
|
123
|
+
end_: Integer,
|
|
124
|
+
first_page_uri: String,
|
|
125
|
+
next_page_uri: String,
|
|
126
|
+
page: Integer,
|
|
127
|
+
page_size: Integer,
|
|
128
|
+
queues:
|
|
129
|
+
T::Array[
|
|
130
|
+
Telnyx::Models::Texml::Accounts::QueueListResponse::Queue
|
|
131
|
+
],
|
|
132
|
+
start: Integer,
|
|
133
|
+
uri: String
|
|
134
|
+
}
|
|
135
|
+
)
|
|
136
|
+
end
|
|
137
|
+
def to_hash
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
class Queue < Telnyx::Internal::Type::BaseModel
|
|
141
|
+
OrHash =
|
|
142
|
+
T.type_alias do
|
|
143
|
+
T.any(
|
|
144
|
+
Telnyx::Models::Texml::Accounts::QueueListResponse::Queue,
|
|
145
|
+
Telnyx::Internal::AnyHash
|
|
146
|
+
)
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# The id of the account the resource belongs to.
|
|
150
|
+
sig { returns(T.nilable(String)) }
|
|
151
|
+
attr_reader :account_sid
|
|
152
|
+
|
|
153
|
+
sig { params(account_sid: String).void }
|
|
154
|
+
attr_writer :account_sid
|
|
155
|
+
|
|
156
|
+
# The average wait time in seconds for members in the queue.
|
|
157
|
+
sig { returns(T.nilable(Integer)) }
|
|
158
|
+
attr_reader :average_wait_time
|
|
159
|
+
|
|
160
|
+
sig { params(average_wait_time: Integer).void }
|
|
161
|
+
attr_writer :average_wait_time
|
|
162
|
+
|
|
163
|
+
# The current number of members in the queue.
|
|
164
|
+
sig { returns(T.nilable(Integer)) }
|
|
165
|
+
attr_reader :current_size
|
|
166
|
+
|
|
167
|
+
sig { params(current_size: Integer).void }
|
|
168
|
+
attr_writer :current_size
|
|
169
|
+
|
|
170
|
+
# The timestamp of when the resource was created.
|
|
171
|
+
sig { returns(T.nilable(String)) }
|
|
172
|
+
attr_reader :date_created
|
|
173
|
+
|
|
174
|
+
sig { params(date_created: String).void }
|
|
175
|
+
attr_writer :date_created
|
|
176
|
+
|
|
177
|
+
# The timestamp of when the resource was last updated.
|
|
178
|
+
sig { returns(T.nilable(String)) }
|
|
179
|
+
attr_reader :date_updated
|
|
180
|
+
|
|
181
|
+
sig { params(date_updated: String).void }
|
|
182
|
+
attr_writer :date_updated
|
|
183
|
+
|
|
184
|
+
# The maximum size of the queue.
|
|
185
|
+
sig { returns(T.nilable(Integer)) }
|
|
186
|
+
attr_reader :max_size
|
|
187
|
+
|
|
188
|
+
sig { params(max_size: Integer).void }
|
|
189
|
+
attr_writer :max_size
|
|
190
|
+
|
|
191
|
+
# The unique identifier of the queue.
|
|
192
|
+
sig { returns(T.nilable(String)) }
|
|
193
|
+
attr_reader :sid
|
|
194
|
+
|
|
195
|
+
sig { params(sid: String).void }
|
|
196
|
+
attr_writer :sid
|
|
197
|
+
|
|
198
|
+
# A list of related resources identified by their relative URIs.
|
|
199
|
+
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
|
|
200
|
+
attr_reader :subresource_uris
|
|
201
|
+
|
|
202
|
+
sig { params(subresource_uris: T::Hash[Symbol, T.anything]).void }
|
|
203
|
+
attr_writer :subresource_uris
|
|
204
|
+
|
|
205
|
+
# The relative URI for this queue.
|
|
206
|
+
sig { returns(T.nilable(String)) }
|
|
207
|
+
attr_reader :uri
|
|
208
|
+
|
|
209
|
+
sig { params(uri: String).void }
|
|
210
|
+
attr_writer :uri
|
|
211
|
+
|
|
212
|
+
sig do
|
|
213
|
+
params(
|
|
214
|
+
account_sid: String,
|
|
215
|
+
average_wait_time: Integer,
|
|
216
|
+
current_size: Integer,
|
|
217
|
+
date_created: String,
|
|
218
|
+
date_updated: String,
|
|
219
|
+
max_size: Integer,
|
|
220
|
+
sid: String,
|
|
221
|
+
subresource_uris: T::Hash[Symbol, T.anything],
|
|
222
|
+
uri: String
|
|
223
|
+
).returns(T.attached_class)
|
|
224
|
+
end
|
|
225
|
+
def self.new(
|
|
226
|
+
# The id of the account the resource belongs to.
|
|
227
|
+
account_sid: nil,
|
|
228
|
+
# The average wait time in seconds for members in the queue.
|
|
229
|
+
average_wait_time: nil,
|
|
230
|
+
# The current number of members in the queue.
|
|
231
|
+
current_size: nil,
|
|
232
|
+
# The timestamp of when the resource was created.
|
|
233
|
+
date_created: nil,
|
|
234
|
+
# The timestamp of when the resource was last updated.
|
|
235
|
+
date_updated: nil,
|
|
236
|
+
# The maximum size of the queue.
|
|
237
|
+
max_size: nil,
|
|
238
|
+
# The unique identifier of the queue.
|
|
239
|
+
sid: nil,
|
|
240
|
+
# A list of related resources identified by their relative URIs.
|
|
241
|
+
subresource_uris: nil,
|
|
242
|
+
# The relative URI for this queue.
|
|
243
|
+
uri: nil
|
|
244
|
+
)
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
sig do
|
|
248
|
+
override.returns(
|
|
249
|
+
{
|
|
250
|
+
account_sid: String,
|
|
251
|
+
average_wait_time: Integer,
|
|
252
|
+
current_size: Integer,
|
|
253
|
+
date_created: String,
|
|
254
|
+
date_updated: String,
|
|
255
|
+
max_size: Integer,
|
|
256
|
+
sid: String,
|
|
257
|
+
subresource_uris: T::Hash[Symbol, T.anything],
|
|
258
|
+
uri: String
|
|
259
|
+
}
|
|
260
|
+
)
|
|
261
|
+
end
|
|
262
|
+
def to_hash
|
|
263
|
+
end
|
|
264
|
+
end
|
|
265
|
+
end
|
|
266
|
+
end
|
|
267
|
+
end
|
|
268
|
+
end
|
|
269
|
+
end
|
|
@@ -67,9 +67,6 @@ module Telnyx
|
|
|
67
67
|
Telnyx::InboundMessageWebhookEvent,
|
|
68
68
|
Telnyx::NumberOrderStatusUpdateWebhookEvent,
|
|
69
69
|
Telnyx::ReplacedLinkClickWebhookEvent,
|
|
70
|
-
Telnyx::StreamingFailedWebhookEvent,
|
|
71
|
-
Telnyx::StreamingStartedWebhookEvent,
|
|
72
|
-
Telnyx::StreamingStoppedWebhookEvent,
|
|
73
70
|
Telnyx::TranscriptionWebhookEvent
|
|
74
71
|
)
|
|
75
72
|
end
|
|
@@ -67,9 +67,6 @@ module Telnyx
|
|
|
67
67
|
Telnyx::InboundMessageWebhookEvent,
|
|
68
68
|
Telnyx::NumberOrderStatusUpdateWebhookEvent,
|
|
69
69
|
Telnyx::ReplacedLinkClickWebhookEvent,
|
|
70
|
-
Telnyx::StreamingFailedWebhookEvent,
|
|
71
|
-
Telnyx::StreamingStartedWebhookEvent,
|
|
72
|
-
Telnyx::StreamingStoppedWebhookEvent,
|
|
73
70
|
Telnyx::TranscriptionWebhookEvent
|
|
74
71
|
)
|
|
75
72
|
end
|
data/rbi/telnyx/models.rbi
CHANGED
|
@@ -1001,6 +1001,8 @@ module Telnyx
|
|
|
1001
1001
|
|
|
1002
1002
|
OperatorConnect = Telnyx::Models::OperatorConnect
|
|
1003
1003
|
|
|
1004
|
+
Organizations = Telnyx::Models::Organizations
|
|
1005
|
+
|
|
1004
1006
|
OtaUpdateListParams = Telnyx::Models::OtaUpdateListParams
|
|
1005
1007
|
|
|
1006
1008
|
OtaUpdateRetrieveParams = Telnyx::Models::OtaUpdateRetrieveParams
|
|
@@ -1408,12 +1410,6 @@ module Telnyx
|
|
|
1408
1410
|
|
|
1409
1411
|
StreamCodec = Telnyx::Models::StreamCodec
|
|
1410
1412
|
|
|
1411
|
-
StreamingFailedWebhookEvent = Telnyx::Models::StreamingFailedWebhookEvent
|
|
1412
|
-
|
|
1413
|
-
StreamingStartedWebhookEvent = Telnyx::Models::StreamingStartedWebhookEvent
|
|
1414
|
-
|
|
1415
|
-
StreamingStoppedWebhookEvent = Telnyx::Models::StreamingStoppedWebhookEvent
|
|
1416
|
-
|
|
1417
1413
|
SubNumberOrder = Telnyx::Models::SubNumberOrder
|
|
1418
1414
|
|
|
1419
1415
|
SubNumberOrderCancelParams = Telnyx::Models::SubNumberOrderCancelParams
|
|
@@ -16,9 +16,9 @@ module Telnyx
|
|
|
16
16
|
).returns(Telnyx::Models::AI::Assistants::ToolTestResponse)
|
|
17
17
|
end
|
|
18
18
|
def test_(
|
|
19
|
-
# Path param
|
|
19
|
+
# Path param
|
|
20
20
|
tool_id,
|
|
21
|
-
# Path param
|
|
21
|
+
# Path param
|
|
22
22
|
assistant_id:,
|
|
23
23
|
# Body param: Key-value arguments to use for the webhook test
|
|
24
24
|
arguments: nil,
|
|
@@ -15,11 +15,11 @@ module Telnyx
|
|
|
15
15
|
).returns(Telnyx::AI::InferenceEmbedding)
|
|
16
16
|
end
|
|
17
17
|
def retrieve(
|
|
18
|
-
# Path param
|
|
18
|
+
# Path param
|
|
19
19
|
version_id,
|
|
20
|
-
# Path param
|
|
20
|
+
# Path param
|
|
21
21
|
assistant_id:,
|
|
22
|
-
# Query param
|
|
22
|
+
# Query param
|
|
23
23
|
include_mcp_servers: nil,
|
|
24
24
|
request_options: {}
|
|
25
25
|
)
|
|
@@ -47,11 +47,11 @@ module Telnyx
|
|
|
47
47
|
tools:
|
|
48
48
|
T::Array[
|
|
49
49
|
T.any(
|
|
50
|
-
Telnyx::AI::
|
|
50
|
+
Telnyx::AI::AssistantTool::Webhook::OrHash,
|
|
51
51
|
Telnyx::AI::RetrievalTool::OrHash,
|
|
52
52
|
Telnyx::AI::AssistantTool::Handoff::OrHash,
|
|
53
53
|
Telnyx::AI::HangupTool::OrHash,
|
|
54
|
-
Telnyx::AI::
|
|
54
|
+
Telnyx::AI::AssistantTool::Transfer::OrHash,
|
|
55
55
|
Telnyx::AI::AssistantTool::Refer::OrHash,
|
|
56
56
|
Telnyx::AI::AssistantTool::SendDtmf::OrHash,
|
|
57
57
|
Telnyx::AI::AssistantTool::SendMessage::OrHash
|
|
@@ -59,15 +59,17 @@ module Telnyx
|
|
|
59
59
|
],
|
|
60
60
|
transcription: Telnyx::AI::TranscriptionSettings::OrHash,
|
|
61
61
|
voice_settings: Telnyx::AI::VoiceSettings::OrHash,
|
|
62
|
+
widget_settings:
|
|
63
|
+
Telnyx::AI::Assistants::UpdateAssistant::WidgetSettings::OrHash,
|
|
62
64
|
request_options: Telnyx::RequestOptions::OrHash
|
|
63
65
|
).returns(Telnyx::AI::InferenceEmbedding)
|
|
64
66
|
end
|
|
65
67
|
def update(
|
|
66
|
-
# Path param
|
|
68
|
+
# Path param
|
|
67
69
|
version_id,
|
|
68
|
-
# Path param
|
|
70
|
+
# Path param
|
|
69
71
|
assistant_id:,
|
|
70
|
-
# Body param
|
|
72
|
+
# Body param
|
|
71
73
|
description: nil,
|
|
72
74
|
# Body param: Map of dynamic variables and their default values
|
|
73
75
|
dynamic_variables: nil,
|
|
@@ -76,42 +78,47 @@ module Telnyx
|
|
|
76
78
|
# [guide](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables)
|
|
77
79
|
# for more information.
|
|
78
80
|
dynamic_variables_webhook_url: nil,
|
|
79
|
-
# Body param
|
|
81
|
+
# Body param
|
|
80
82
|
enabled_features: nil,
|
|
81
83
|
# Body param: Text that the assistant will use to start the conversation. This may
|
|
82
84
|
# be templated with
|
|
83
|
-
# [dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables)
|
|
85
|
+
# [dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables).
|
|
86
|
+
# Use an empty string to have the assistant wait for the user to speak first. Use
|
|
87
|
+
# the special value `<assistant-speaks-first-with-model-generated-message>` to
|
|
88
|
+
# have the assistant generate the greeting based on the system instructions.
|
|
84
89
|
greeting: nil,
|
|
85
|
-
# Body param
|
|
90
|
+
# Body param
|
|
86
91
|
insight_settings: nil,
|
|
87
92
|
# Body param: System instructions for the assistant. These may be templated with
|
|
88
93
|
# [dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables)
|
|
89
94
|
instructions: nil,
|
|
90
95
|
# Body param: This is only needed when using third-party inference providers. The
|
|
91
96
|
# `identifier` for an integration secret
|
|
92
|
-
# [/v2/integration_secrets](https://developers.telnyx.com/api
|
|
97
|
+
# [/v2/integration_secrets](https://developers.telnyx.com/api-reference/integration-secrets/create-a-secret)
|
|
93
98
|
# that refers to your LLM provider's API key. Warning: Free plans are unlikely to
|
|
94
99
|
# work with this integration.
|
|
95
100
|
llm_api_key_ref: nil,
|
|
96
|
-
# Body param
|
|
101
|
+
# Body param
|
|
97
102
|
messaging_settings: nil,
|
|
98
103
|
# Body param: ID of the model to use. You can use the
|
|
99
|
-
# [Get models API](https://developers.telnyx.com/api/
|
|
104
|
+
# [Get models API](https://developers.telnyx.com/api-reference/chat/get-available-models)
|
|
100
105
|
# to see all of your available models,
|
|
101
106
|
model: nil,
|
|
102
|
-
# Body param
|
|
107
|
+
# Body param
|
|
103
108
|
name: nil,
|
|
104
|
-
# Body param
|
|
109
|
+
# Body param
|
|
105
110
|
privacy_settings: nil,
|
|
106
|
-
# Body param
|
|
111
|
+
# Body param
|
|
107
112
|
telephony_settings: nil,
|
|
108
113
|
# Body param: The tools that the assistant can use. These may be templated with
|
|
109
114
|
# [dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables)
|
|
110
115
|
tools: nil,
|
|
111
|
-
# Body param
|
|
116
|
+
# Body param
|
|
112
117
|
transcription: nil,
|
|
113
|
-
# Body param
|
|
118
|
+
# Body param
|
|
114
119
|
voice_settings: nil,
|
|
120
|
+
# Body param: Configuration settings for the assistant's web widget.
|
|
121
|
+
widget_settings: nil,
|
|
115
122
|
request_options: {}
|
|
116
123
|
)
|
|
117
124
|
end
|
|
@@ -38,11 +38,11 @@ module Telnyx
|
|
|
38
38
|
tools:
|
|
39
39
|
T::Array[
|
|
40
40
|
T.any(
|
|
41
|
-
Telnyx::AI::
|
|
41
|
+
Telnyx::AI::AssistantTool::Webhook::OrHash,
|
|
42
42
|
Telnyx::AI::RetrievalTool::OrHash,
|
|
43
43
|
Telnyx::AI::AssistantTool::Handoff::OrHash,
|
|
44
44
|
Telnyx::AI::HangupTool::OrHash,
|
|
45
|
-
Telnyx::AI::
|
|
45
|
+
Telnyx::AI::AssistantTool::Transfer::OrHash,
|
|
46
46
|
Telnyx::AI::AssistantTool::Refer::OrHash,
|
|
47
47
|
Telnyx::AI::AssistantTool::SendDtmf::OrHash,
|
|
48
48
|
Telnyx::AI::AssistantTool::SendMessage::OrHash
|
|
@@ -50,6 +50,8 @@ module Telnyx
|
|
|
50
50
|
],
|
|
51
51
|
transcription: Telnyx::AI::TranscriptionSettings::OrHash,
|
|
52
52
|
voice_settings: Telnyx::AI::VoiceSettings::OrHash,
|
|
53
|
+
widget_settings:
|
|
54
|
+
Telnyx::AI::AssistantCreateParams::WidgetSettings::OrHash,
|
|
53
55
|
request_options: Telnyx::RequestOptions::OrHash
|
|
54
56
|
).returns(Telnyx::AI::InferenceEmbedding)
|
|
55
57
|
end
|
|
@@ -58,7 +60,7 @@ module Telnyx
|
|
|
58
60
|
# [dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables)
|
|
59
61
|
instructions:,
|
|
60
62
|
# ID of the model to use. You can use the
|
|
61
|
-
# [Get models API](https://developers.telnyx.com/api/
|
|
63
|
+
# [Get models API](https://developers.telnyx.com/api-reference/chat/get-available-models)
|
|
62
64
|
# to see all of your available models,
|
|
63
65
|
model:,
|
|
64
66
|
name:,
|
|
@@ -73,12 +75,15 @@ module Telnyx
|
|
|
73
75
|
enabled_features: nil,
|
|
74
76
|
# Text that the assistant will use to start the conversation. This may be
|
|
75
77
|
# templated with
|
|
76
|
-
# [dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables)
|
|
78
|
+
# [dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables).
|
|
79
|
+
# Use an empty string to have the assistant wait for the user to speak first. Use
|
|
80
|
+
# the special value `<assistant-speaks-first-with-model-generated-message>` to
|
|
81
|
+
# have the assistant generate the greeting based on the system instructions.
|
|
77
82
|
greeting: nil,
|
|
78
83
|
insight_settings: nil,
|
|
79
84
|
# This is only needed when using third-party inference providers. The `identifier`
|
|
80
85
|
# for an integration secret
|
|
81
|
-
# [/v2/integration_secrets](https://developers.telnyx.com/api
|
|
86
|
+
# [/v2/integration_secrets](https://developers.telnyx.com/api-reference/integration-secrets/create-a-secret)
|
|
82
87
|
# that refers to your LLM provider's API key. Warning: Free plans are unlikely to
|
|
83
88
|
# work with this integration.
|
|
84
89
|
llm_api_key_ref: nil,
|
|
@@ -90,6 +95,8 @@ module Telnyx
|
|
|
90
95
|
tools: nil,
|
|
91
96
|
transcription: nil,
|
|
92
97
|
voice_settings: nil,
|
|
98
|
+
# Configuration settings for the assistant's web widget.
|
|
99
|
+
widget_settings: nil,
|
|
93
100
|
request_options: {}
|
|
94
101
|
)
|
|
95
102
|
end
|
|
@@ -136,11 +143,11 @@ module Telnyx
|
|
|
136
143
|
tools:
|
|
137
144
|
T::Array[
|
|
138
145
|
T.any(
|
|
139
|
-
Telnyx::AI::
|
|
146
|
+
Telnyx::AI::AssistantTool::Webhook::OrHash,
|
|
140
147
|
Telnyx::AI::RetrievalTool::OrHash,
|
|
141
148
|
Telnyx::AI::AssistantTool::Handoff::OrHash,
|
|
142
149
|
Telnyx::AI::HangupTool::OrHash,
|
|
143
|
-
Telnyx::AI::
|
|
150
|
+
Telnyx::AI::AssistantTool::Transfer::OrHash,
|
|
144
151
|
Telnyx::AI::AssistantTool::Refer::OrHash,
|
|
145
152
|
Telnyx::AI::AssistantTool::SendDtmf::OrHash,
|
|
146
153
|
Telnyx::AI::AssistantTool::SendMessage::OrHash
|
|
@@ -148,6 +155,8 @@ module Telnyx
|
|
|
148
155
|
],
|
|
149
156
|
transcription: Telnyx::AI::TranscriptionSettings::OrHash,
|
|
150
157
|
voice_settings: Telnyx::AI::VoiceSettings::OrHash,
|
|
158
|
+
widget_settings:
|
|
159
|
+
Telnyx::AI::AssistantUpdateParams::WidgetSettings::OrHash,
|
|
151
160
|
request_options: Telnyx::RequestOptions::OrHash
|
|
152
161
|
).returns(Telnyx::AI::InferenceEmbedding)
|
|
153
162
|
end
|
|
@@ -164,7 +173,10 @@ module Telnyx
|
|
|
164
173
|
enabled_features: nil,
|
|
165
174
|
# Text that the assistant will use to start the conversation. This may be
|
|
166
175
|
# templated with
|
|
167
|
-
# [dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables)
|
|
176
|
+
# [dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables).
|
|
177
|
+
# Use an empty string to have the assistant wait for the user to speak first. Use
|
|
178
|
+
# the special value `<assistant-speaks-first-with-model-generated-message>` to
|
|
179
|
+
# have the assistant generate the greeting based on the system instructions.
|
|
168
180
|
greeting: nil,
|
|
169
181
|
insight_settings: nil,
|
|
170
182
|
# System instructions for the assistant. These may be templated with
|
|
@@ -172,13 +184,13 @@ module Telnyx
|
|
|
172
184
|
instructions: nil,
|
|
173
185
|
# This is only needed when using third-party inference providers. The `identifier`
|
|
174
186
|
# for an integration secret
|
|
175
|
-
# [/v2/integration_secrets](https://developers.telnyx.com/api
|
|
187
|
+
# [/v2/integration_secrets](https://developers.telnyx.com/api-reference/integration-secrets/create-a-secret)
|
|
176
188
|
# that refers to your LLM provider's API key. Warning: Free plans are unlikely to
|
|
177
189
|
# work with this integration.
|
|
178
190
|
llm_api_key_ref: nil,
|
|
179
191
|
messaging_settings: nil,
|
|
180
192
|
# ID of the model to use. You can use the
|
|
181
|
-
# [Get models API](https://developers.telnyx.com/api/
|
|
193
|
+
# [Get models API](https://developers.telnyx.com/api-reference/chat/get-available-models)
|
|
182
194
|
# to see all of your available models,
|
|
183
195
|
model: nil,
|
|
184
196
|
name: nil,
|
|
@@ -192,6 +204,8 @@ module Telnyx
|
|
|
192
204
|
tools: nil,
|
|
193
205
|
transcription: nil,
|
|
194
206
|
voice_settings: nil,
|
|
207
|
+
# Configuration settings for the assistant's web widget.
|
|
208
|
+
widget_settings: nil,
|
|
195
209
|
request_options: {}
|
|
196
210
|
)
|
|
197
211
|
end
|
|
@@ -218,11 +232,11 @@ module Telnyx
|
|
|
218
232
|
# This endpoint allows a client to send a chat message to a specific AI Assistant.
|
|
219
233
|
# The assistant processes the message and returns a relevant reply based on the
|
|
220
234
|
# current conversation context. Refer to the Conversation API to
|
|
221
|
-
# [create a conversation](https://developers.telnyx.com/api/
|
|
222
|
-
# [filter existing conversations](https://developers.telnyx.com/api
|
|
223
|
-
# [fetch messages for a conversation](https://developers.telnyx.com/api/
|
|
235
|
+
# [create a conversation](https://developers.telnyx.com/api-reference/conversations/create-a-conversation),
|
|
236
|
+
# [filter existing conversations](https://developers.telnyx.com/api-reference/conversations/list-conversations),
|
|
237
|
+
# [fetch messages for a conversation](https://developers.telnyx.com/api-reference/conversations/get-conversation-messages),
|
|
224
238
|
# and
|
|
225
|
-
# [manually add messages to a conversation](https://developers.telnyx.com/api/
|
|
239
|
+
# [manually add messages to a conversation](https://developers.telnyx.com/api-reference/conversations/create-message).
|
|
226
240
|
sig do
|
|
227
241
|
params(
|
|
228
242
|
assistant_id: String,
|
|
@@ -271,6 +285,7 @@ module Telnyx
|
|
|
271
285
|
params(
|
|
272
286
|
api_key_ref: String,
|
|
273
287
|
provider: Telnyx::AI::AssistantImportsParams::Provider::OrSymbol,
|
|
288
|
+
import_ids: T::Array[String],
|
|
274
289
|
request_options: Telnyx::RequestOptions::OrHash
|
|
275
290
|
).returns(Telnyx::AI::AssistantsList)
|
|
276
291
|
end
|
|
@@ -281,6 +296,9 @@ module Telnyx
|
|
|
281
296
|
api_key_ref:,
|
|
282
297
|
# The external provider to import assistants from.
|
|
283
298
|
provider:,
|
|
299
|
+
# Optional list of assistant IDs to import from the external provider. If not
|
|
300
|
+
# provided, all assistants will be imported.
|
|
301
|
+
import_ids: nil,
|
|
284
302
|
request_options: {}
|
|
285
303
|
)
|
|
286
304
|
end
|
|
@@ -99,7 +99,7 @@ module Telnyx
|
|
|
99
99
|
# The `function` tool type follows the same schema as the
|
|
100
100
|
# [OpenAI Chat Completions API](https://platform.openai.com/docs/api-reference/chat).
|
|
101
101
|
# The `retrieval` tool type is unique to Telnyx. You may pass a list of
|
|
102
|
-
# [embedded storage buckets](https://developers.telnyx.com/api/
|
|
102
|
+
# [embedded storage buckets](https://developers.telnyx.com/api-reference/embeddings/embed-documents)
|
|
103
103
|
# for retrieval-augmented generation.
|
|
104
104
|
tools: nil,
|
|
105
105
|
# This is used with `logprobs`. An integer between 0 and 20 specifying the number
|
|
@@ -50,7 +50,7 @@ module Telnyx
|
|
|
50
50
|
end
|
|
51
51
|
|
|
52
52
|
# Starts a background task to compute how the data in an
|
|
53
|
-
# [embedded storage bucket](https://developers.telnyx.com/api/
|
|
53
|
+
# [embedded storage bucket](https://developers.telnyx.com/api-reference/embeddings/embed-documents)
|
|
54
54
|
# is clustered. This helps identify common themes and patterns in the data.
|
|
55
55
|
sig do
|
|
56
56
|
params(
|
|
@@ -126,7 +126,7 @@ module Telnyx
|
|
|
126
126
|
# URL and its linked pages into a Telnyx Cloud Storage bucket. As soon as each
|
|
127
127
|
# webpage is added to the bucket, its content is immediately processed for
|
|
128
128
|
# embeddings, that can be used for
|
|
129
|
-
# [similarity search](https://developers.telnyx.com/api/
|
|
129
|
+
# [similarity search](https://developers.telnyx.com/api-reference/embeddings/search-for-documents)
|
|
130
130
|
# and [clustering](https://developers.telnyx.com/docs/inference/clusters).
|
|
131
131
|
sig do
|
|
132
132
|
params(
|
|
@@ -20,7 +20,7 @@ module Telnyx
|
|
|
20
20
|
# Body param: Idempotency key for the request. Can be any UUID, but should always
|
|
21
21
|
# be unique for each request.
|
|
22
22
|
idempotency_key: nil,
|
|
23
|
-
# Body param
|
|
23
|
+
# Body param
|
|
24
24
|
items: nil,
|
|
25
25
|
# Header param: Authenticates the request with your Telnyx API V2 KEY
|
|
26
26
|
authorization_bearer: nil,
|
|
@@ -154,10 +154,14 @@ module Telnyx
|
|
|
154
154
|
params(
|
|
155
155
|
filter: Telnyx::CallControlApplicationListParams::Filter::OrHash,
|
|
156
156
|
page: Telnyx::CallControlApplicationListParams::Page::OrHash,
|
|
157
|
+
page_number: Integer,
|
|
158
|
+
page_size: Integer,
|
|
157
159
|
sort: Telnyx::CallControlApplicationListParams::Sort::OrSymbol,
|
|
158
160
|
request_options: Telnyx::RequestOptions::OrHash
|
|
159
161
|
).returns(
|
|
160
|
-
Telnyx::Internal::
|
|
162
|
+
Telnyx::Internal::DefaultFlatPagination[
|
|
163
|
+
Telnyx::CallControlApplication
|
|
164
|
+
]
|
|
161
165
|
)
|
|
162
166
|
end
|
|
163
167
|
def list(
|
|
@@ -170,6 +174,8 @@ module Telnyx
|
|
|
170
174
|
# Consolidated page parameter (deepObject style). Originally: page[after],
|
|
171
175
|
# page[before], page[limit], page[size], page[number]
|
|
172
176
|
page: nil,
|
|
177
|
+
page_number: nil,
|
|
178
|
+
page_size: nil,
|
|
173
179
|
# Specifies the sort order for results. By default sorting direction is ascending.
|
|
174
180
|
# To have the results sorted in descending order add the <code> -</code>
|
|
175
181
|
# prefix.<br/><br/> That is: <ul>
|
|
@@ -12,9 +12,11 @@ module Telnyx
|
|
|
12
12
|
params(
|
|
13
13
|
filter: Telnyx::CallEventListParams::Filter::OrHash,
|
|
14
14
|
page: Telnyx::CallEventListParams::Page::OrHash,
|
|
15
|
+
page_number: Integer,
|
|
16
|
+
page_size: Integer,
|
|
15
17
|
request_options: Telnyx::RequestOptions::OrHash
|
|
16
18
|
).returns(
|
|
17
|
-
Telnyx::Internal::
|
|
19
|
+
Telnyx::Internal::DefaultFlatPagination[
|
|
18
20
|
Telnyx::Models::CallEventListResponse
|
|
19
21
|
]
|
|
20
22
|
)
|
|
@@ -29,6 +31,8 @@ module Telnyx
|
|
|
29
31
|
# Consolidated page parameter (deepObject style). Originally: page[after],
|
|
30
32
|
# page[before], page[limit], page[size], page[number]
|
|
31
33
|
page: nil,
|
|
34
|
+
page_number: nil,
|
|
35
|
+
page_size: nil,
|
|
32
36
|
request_options: {}
|
|
33
37
|
)
|
|
34
38
|
end
|