telnyx 5.166.0 → 5.168.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 +19 -0
- data/README.md +1 -1
- data/lib/telnyx/client.rb +4 -0
- data/lib/telnyx/internal/default_flat_pagination.rb +7 -3
- data/lib/telnyx/internal/default_flat_pagination_for_inexplicit_number_orders.rb +7 -3
- data/lib/telnyx/internal/default_flat_pagination_top_level_array.rb +10 -8
- data/lib/telnyx/internal/default_pagination_for_log_messages.rb +7 -3
- data/lib/telnyx/internal/default_pagination_for_messaging_tollfree.rb +12 -3
- data/lib/telnyx/internal/default_pagination_for_queues.rb +12 -3
- data/lib/telnyx/internal/per_page_pagination.rb +8 -1
- data/lib/telnyx/internal/per_page_pagination_v2.rb +8 -1
- data/lib/telnyx/internal/type/converter.rb +2 -0
- data/lib/telnyx/models/ai/anthropic/v1_messages_params.rb +57 -1
- data/lib/telnyx/models/ai/assistant_a2_a_agent.rb +195 -0
- data/lib/telnyx/models/ai/assistant_create_params.rb +16 -1
- data/lib/telnyx/models/ai/assistant_update_params.rb +17 -1
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +17 -1
- data/lib/telnyx/models/ai/chat_completion_request.rb +185 -48
- data/lib/telnyx/models/ai/inference_embedding.rb +16 -1
- data/lib/telnyx/models/ai/openai_create_response_params.rb +57 -1
- data/lib/telnyx/models/ai/telephony_settings.rb +15 -1
- data/lib/telnyx/models/compute/func_retrieve_logs_params.rb +66 -0
- data/lib/telnyx/models/compute/func_retrieve_logs_response.rb +161 -0
- data/lib/telnyx/models/compute/func_retrieve_metric_aggregates_params.rb +69 -0
- data/lib/telnyx/models/compute/func_retrieve_metric_aggregates_response.rb +137 -0
- data/lib/telnyx/models/compute/func_retrieve_revisions_params.rb +34 -0
- data/lib/telnyx/models/compute/func_retrieve_revisions_response.rb +101 -0
- data/lib/telnyx/models/compute/func_retrieve_ship_inspection_params.rb +22 -0
- data/lib/telnyx/models/compute/func_retrieve_ship_inspection_response.rb +94 -0
- data/lib/telnyx/models/compute/functions_observability_pagination_meta.rb +35 -0
- data/lib/telnyx/models/compute/logs_meta.rb +23 -0
- data/lib/telnyx/models/credential_connection.rb +4 -1
- data/lib/telnyx/models/email_inboxes/email_message.rb +12 -1
- data/lib/telnyx/models/email_message_batch_params.rb +4 -1
- data/lib/telnyx/models/email_message_batch_response.rb +1 -0
- data/lib/telnyx/models/fqdn_connection.rb +5 -2
- data/lib/telnyx/models/fqdn_connections/fqdn_authentication.rb +9 -2
- data/lib/telnyx/models/messaging_inbound_message_payload.rb +210 -67
- data/lib/telnyx/models/messaging_messaging_profile.rb +284 -0
- data/lib/telnyx/models/messaging_profile.rb +0 -1
- data/lib/telnyx/models/messaging_profile_create_params.rb +11 -1
- data/lib/telnyx/models/messaging_profile_create_response.rb +3 -3
- data/lib/telnyx/models/messaging_profile_delete_response.rb +3 -3
- data/lib/telnyx/models/messaging_profile_features.rb +26 -0
- data/lib/telnyx/models/messaging_profile_retrieve_response.rb +3 -3
- data/lib/telnyx/models/messaging_profile_update_params.rb +32 -1
- data/lib/telnyx/models/messaging_profile_update_response.rb +3 -3
- data/lib/telnyx/models/messaging_profiles/action_regenerate_secret_response.rb +3 -3
- data/lib/telnyx/models/uac_connection.rb +4 -1
- data/lib/telnyx/models/uac_external_settings.rb +6 -2
- data/lib/telnyx/models/unsafe_unwrap_webhook_event.rb +5 -1
- data/lib/telnyx/models/unwrap_webhook_event.rb +5 -1
- data/lib/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rb +104 -1
- data/lib/telnyx/models/whatsapp/phone_number_get_response.rb +103 -1
- data/lib/telnyx/models/whatsapp/phone_number_list_response.rb +103 -1
- data/lib/telnyx/models/whatsapp/phone_number_retrieve_phone_number_params.rb +22 -0
- data/lib/telnyx/models/whatsapp/phone_number_retrieve_phone_number_response.rb +207 -0
- data/lib/telnyx/models/whatsapp_account_update.rb +112 -0
- data/lib/telnyx/models/whatsapp_message_echo.rb +340 -0
- data/lib/telnyx/models/x402/credit_account/payment_list_params.rb +34 -0
- data/lib/telnyx/models/x402/credit_account/payment_retrieve_params.rb +24 -0
- data/lib/telnyx/models/x402/credit_account/payment_retrieve_response.rb +21 -0
- data/lib/telnyx/models/x402/credit_account/x402_transaction_record.rb +113 -0
- data/lib/telnyx/models.rb +10 -0
- data/lib/telnyx/resources/ai/anthropic/v1.rb +5 -1
- data/lib/telnyx/resources/ai/assistants/versions.rb +3 -1
- data/lib/telnyx/resources/ai/assistants.rb +6 -2
- data/lib/telnyx/resources/ai/openai/chat.rb +6 -8
- data/lib/telnyx/resources/ai/openai.rb +5 -1
- data/lib/telnyx/resources/compute/funcs.rb +141 -0
- data/lib/telnyx/resources/compute.rb +18 -0
- data/lib/telnyx/resources/email_messages.rb +4 -2
- data/lib/telnyx/resources/messaging_profiles.rb +12 -4
- data/lib/telnyx/resources/webhooks.rb +2 -2
- data/lib/telnyx/resources/whatsapp/phone_numbers.rb +22 -0
- data/lib/telnyx/resources/x402/credit_account/payments.rb +71 -0
- data/lib/telnyx/resources/x402/credit_account.rb +8 -2
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +24 -0
- data/rbi/telnyx/client.rbi +3 -0
- data/rbi/telnyx/models/ai/anthropic/v1_messages_params.rbi +139 -0
- data/rbi/telnyx/models/ai/assistant_a2_a_agent.rbi +345 -0
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +29 -0
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +31 -0
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +31 -0
- data/rbi/telnyx/models/ai/chat_completion_request.rbi +339 -91
- data/rbi/telnyx/models/ai/inference_embedding.rbi +29 -0
- data/rbi/telnyx/models/ai/openai_create_response_params.rbi +136 -0
- data/rbi/telnyx/models/ai/telephony_settings.rbi +23 -0
- data/rbi/telnyx/models/compute/func_retrieve_logs_params.rbi +130 -0
- data/rbi/telnyx/models/compute/func_retrieve_logs_response.rbi +410 -0
- data/rbi/telnyx/models/compute/func_retrieve_metric_aggregates_params.rbi +102 -0
- data/rbi/telnyx/models/compute/func_retrieve_metric_aggregates_response.rbi +231 -0
- data/rbi/telnyx/models/compute/func_retrieve_revisions_params.rbi +59 -0
- data/rbi/telnyx/models/compute/func_retrieve_revisions_response.rbi +213 -0
- data/rbi/telnyx/models/compute/func_retrieve_ship_inspection_params.rbi +40 -0
- data/rbi/telnyx/models/compute/func_retrieve_ship_inspection_response.rbi +252 -0
- data/rbi/telnyx/models/compute/functions_observability_pagination_meta.rbi +70 -0
- data/rbi/telnyx/models/compute/logs_meta.rbi +38 -0
- data/rbi/telnyx/models/credential_connection.rbi +8 -2
- data/rbi/telnyx/models/email_inboxes/email_message.rbi +22 -3
- data/rbi/telnyx/models/email_message_batch_params.rbi +6 -0
- data/rbi/telnyx/models/email_message_batch_response.rbi +5 -0
- data/rbi/telnyx/models/fqdn_connection.rbi +8 -2
- data/rbi/telnyx/models/fqdn_connections/fqdn_authentication.rbi +8 -2
- data/rbi/telnyx/models/messaging_inbound_message_payload.rbi +450 -193
- data/rbi/telnyx/models/messaging_messaging_profile.rbi +463 -0
- data/rbi/telnyx/models/messaging_profile.rbi +4 -6
- data/rbi/telnyx/models/messaging_profile_create_params.rbi +19 -0
- data/rbi/telnyx/models/messaging_profile_create_response.rbi +6 -4
- data/rbi/telnyx/models/messaging_profile_delete_response.rbi +6 -4
- data/rbi/telnyx/models/messaging_profile_features.rbi +43 -0
- data/rbi/telnyx/models/messaging_profile_retrieve_response.rbi +6 -4
- data/rbi/telnyx/models/messaging_profile_update_params.rbi +51 -0
- data/rbi/telnyx/models/messaging_profile_update_response.rbi +6 -4
- data/rbi/telnyx/models/messaging_profiles/action_regenerate_secret_response.rbi +4 -4
- data/rbi/telnyx/models/uac_connection.rbi +8 -2
- data/rbi/telnyx/models/uac_external_settings.rbi +10 -2
- data/rbi/telnyx/models/unsafe_unwrap_webhook_event.rbi +3 -1
- data/rbi/telnyx/models/unwrap_webhook_event.rbi +3 -1
- data/rbi/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rbi +213 -0
- data/rbi/telnyx/models/whatsapp/phone_number_get_response.rbi +213 -0
- data/rbi/telnyx/models/whatsapp/phone_number_list_response.rbi +213 -0
- data/rbi/telnyx/models/whatsapp/phone_number_retrieve_phone_number_params.rbi +40 -0
- data/rbi/telnyx/models/whatsapp/phone_number_retrieve_phone_number_response.rbi +401 -0
- data/rbi/telnyx/models/whatsapp_account_update.rbi +236 -0
- data/rbi/telnyx/models/whatsapp_message_echo.rbi +611 -0
- data/rbi/telnyx/models/x402/credit_account/payment_list_params.rbi +64 -0
- data/rbi/telnyx/models/x402/credit_account/payment_retrieve_params.rbi +42 -0
- data/rbi/telnyx/models/x402/credit_account/payment_retrieve_response.rbi +53 -0
- data/rbi/telnyx/models/x402/credit_account/x402_transaction_record.rbi +219 -0
- data/rbi/telnyx/models.rbi +10 -0
- data/rbi/telnyx/resources/ai/anthropic/v1.rbi +14 -0
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +12 -0
- data/rbi/telnyx/resources/ai/assistants.rbi +21 -0
- data/rbi/telnyx/resources/ai/openai/chat.rbi +23 -13
- data/rbi/telnyx/resources/ai/openai.rbi +14 -0
- data/rbi/telnyx/resources/compute/funcs.rbi +111 -0
- data/rbi/telnyx/resources/compute.rbi +15 -0
- data/rbi/telnyx/resources/email_messages.rbi +6 -2
- data/rbi/telnyx/resources/messaging_profiles.rbi +24 -1
- data/rbi/telnyx/resources/webhooks.rbi +6 -2
- data/rbi/telnyx/resources/whatsapp/phone_numbers.rbi +18 -0
- data/rbi/telnyx/resources/x402/credit_account/payments.rbi +60 -0
- data/rbi/telnyx/resources/x402/credit_account.rbi +5 -0
- data/sig/telnyx/client.rbs +2 -0
- data/sig/telnyx/models/ai/anthropic/v1_messages_params.rbs +42 -0
- data/sig/telnyx/models/ai/assistant_a2_a_agent.rbs +140 -0
- data/sig/telnyx/models/ai/assistant_create_params.rbs +9 -0
- data/sig/telnyx/models/ai/assistant_update_params.rbs +9 -0
- data/sig/telnyx/models/ai/assistants/update_assistant.rbs +9 -0
- data/sig/telnyx/models/ai/chat_completion_request.rbs +128 -44
- data/sig/telnyx/models/ai/inference_embedding.rbs +9 -0
- data/sig/telnyx/models/ai/openai_create_response_params.rbs +42 -0
- data/sig/telnyx/models/ai/telephony_settings.rbs +7 -0
- data/sig/telnyx/models/compute/func_retrieve_logs_params.rbs +69 -0
- data/sig/telnyx/models/compute/func_retrieve_logs_response.rbs +210 -0
- data/sig/telnyx/models/compute/func_retrieve_metric_aggregates_params.rbs +66 -0
- data/sig/telnyx/models/compute/func_retrieve_metric_aggregates_response.rbs +149 -0
- data/sig/telnyx/models/compute/func_retrieve_revisions_params.rbs +38 -0
- data/sig/telnyx/models/compute/func_retrieve_revisions_response.rbs +131 -0
- data/sig/telnyx/models/compute/func_retrieve_ship_inspection_params.rbs +22 -0
- data/sig/telnyx/models/compute/func_retrieve_ship_inspection_response.rbs +117 -0
- data/sig/telnyx/models/compute/functions_observability_pagination_meta.rbs +45 -0
- data/sig/telnyx/models/compute/logs_meta.rbs +21 -0
- data/sig/telnyx/models/email_inboxes/email_message.rbs +12 -3
- data/sig/telnyx/models/email_message_batch_response.rbs +2 -0
- data/sig/telnyx/models/messaging_inbound_message_payload.rbs +207 -95
- data/sig/telnyx/models/messaging_messaging_profile.rbs +212 -0
- data/sig/telnyx/models/messaging_profile_create_params.rbs +5 -0
- data/sig/telnyx/models/messaging_profile_create_response.rbs +8 -5
- data/sig/telnyx/models/messaging_profile_delete_response.rbs +8 -5
- data/sig/telnyx/models/messaging_profile_features.rbs +15 -0
- data/sig/telnyx/models/messaging_profile_retrieve_response.rbs +7 -5
- data/sig/telnyx/models/messaging_profile_update_params.rbs +19 -0
- data/sig/telnyx/models/messaging_profile_update_response.rbs +8 -5
- data/sig/telnyx/models/messaging_profiles/action_regenerate_secret_response.rbs +7 -5
- data/sig/telnyx/models/unsafe_unwrap_webhook_event.rbs +2 -0
- data/sig/telnyx/models/unwrap_webhook_event.rbs +2 -0
- data/sig/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rbs +90 -0
- data/sig/telnyx/models/whatsapp/phone_number_get_response.rbs +90 -0
- data/sig/telnyx/models/whatsapp/phone_number_list_response.rbs +90 -0
- data/sig/telnyx/models/whatsapp/phone_number_retrieve_phone_number_params.rbs +25 -0
- data/sig/telnyx/models/whatsapp/phone_number_retrieve_phone_number_response.rbs +201 -0
- data/sig/telnyx/models/whatsapp_account_update.rbs +107 -0
- data/sig/telnyx/models/whatsapp_message_echo.rbs +291 -0
- data/sig/telnyx/models/x402/credit_account/payment_list_params.rbs +36 -0
- data/sig/telnyx/models/x402/credit_account/payment_retrieve_params.rbs +27 -0
- data/sig/telnyx/models/x402/credit_account/payment_retrieve_response.rbs +26 -0
- data/sig/telnyx/models/x402/credit_account/x402_transaction_record.rbs +104 -0
- data/sig/telnyx/models.rbs +10 -0
- data/sig/telnyx/resources/ai/anthropic/v1.rbs +2 -0
- data/sig/telnyx/resources/ai/assistants/versions.rbs +1 -0
- data/sig/telnyx/resources/ai/assistants.rbs +2 -0
- data/sig/telnyx/resources/ai/openai/chat.rbs +3 -4
- data/sig/telnyx/resources/ai/openai.rbs +2 -0
- data/sig/telnyx/resources/compute/funcs.rbs +41 -0
- data/sig/telnyx/resources/compute.rbs +9 -0
- data/sig/telnyx/resources/messaging_profiles.rbs +5 -1
- data/sig/telnyx/resources/webhooks.rbs +6 -2
- data/sig/telnyx/resources/whatsapp/phone_numbers.rbs +5 -0
- data/sig/telnyx/resources/x402/credit_account/payments.rbs +22 -0
- data/sig/telnyx/resources/x402/credit_account.rbs +2 -0
- metadata +74 -2
|
@@ -9,18 +9,17 @@ module Telnyx
|
|
|
9
9
|
early_stopping: bool,
|
|
10
10
|
enable_thinking: bool,
|
|
11
11
|
frequency_penalty: Float,
|
|
12
|
-
guided_choice: ::Array[String],
|
|
13
|
-
guided_json: ::Hash[Symbol, top],
|
|
14
|
-
guided_regex: String,
|
|
15
12
|
length_penalty: Float,
|
|
16
13
|
logprobs: bool,
|
|
17
14
|
max_tokens: Integer,
|
|
18
15
|
min_p: Float,
|
|
16
|
+
mode: Telnyx::Models::AI::ChatCompletionRequest::mode,
|
|
19
17
|
model: String,
|
|
20
18
|
n: Float,
|
|
21
19
|
presence_penalty: Float,
|
|
22
20
|
reasoning_effort: Telnyx::Models::AI::ChatCompletionRequest::reasoning_effort,
|
|
23
|
-
|
|
21
|
+
region: Telnyx::Models::AI::ChatCompletionRequest::region,
|
|
22
|
+
response_format: Telnyx::Models::AI::ChatCompletionRequest::response_format,
|
|
24
23
|
seed: Integer,
|
|
25
24
|
service_tier: String,
|
|
26
25
|
stop: Telnyx::Models::AI::ChatCompletionRequest::stop,
|
|
@@ -56,18 +55,6 @@ module Telnyx
|
|
|
56
55
|
|
|
57
56
|
def frequency_penalty=: (Float) -> Float
|
|
58
57
|
|
|
59
|
-
attr_reader guided_choice: ::Array[String]?
|
|
60
|
-
|
|
61
|
-
def guided_choice=: (::Array[String]) -> ::Array[String]
|
|
62
|
-
|
|
63
|
-
attr_reader guided_json: ::Hash[Symbol, top]?
|
|
64
|
-
|
|
65
|
-
def guided_json=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
66
|
-
|
|
67
|
-
attr_reader guided_regex: String?
|
|
68
|
-
|
|
69
|
-
def guided_regex=: (String) -> String
|
|
70
|
-
|
|
71
58
|
attr_reader length_penalty: Float?
|
|
72
59
|
|
|
73
60
|
def length_penalty=: (Float) -> Float
|
|
@@ -84,6 +71,12 @@ module Telnyx
|
|
|
84
71
|
|
|
85
72
|
def min_p=: (Float) -> Float
|
|
86
73
|
|
|
74
|
+
attr_reader mode: Telnyx::Models::AI::ChatCompletionRequest::mode?
|
|
75
|
+
|
|
76
|
+
def mode=: (
|
|
77
|
+
Telnyx::Models::AI::ChatCompletionRequest::mode
|
|
78
|
+
) -> Telnyx::Models::AI::ChatCompletionRequest::mode
|
|
79
|
+
|
|
87
80
|
attr_reader model: String?
|
|
88
81
|
|
|
89
82
|
def model=: (String) -> String
|
|
@@ -102,11 +95,17 @@ module Telnyx
|
|
|
102
95
|
Telnyx::Models::AI::ChatCompletionRequest::reasoning_effort
|
|
103
96
|
) -> Telnyx::Models::AI::ChatCompletionRequest::reasoning_effort
|
|
104
97
|
|
|
105
|
-
attr_reader
|
|
98
|
+
attr_reader region: Telnyx::Models::AI::ChatCompletionRequest::region?
|
|
99
|
+
|
|
100
|
+
def region=: (
|
|
101
|
+
Telnyx::Models::AI::ChatCompletionRequest::region
|
|
102
|
+
) -> Telnyx::Models::AI::ChatCompletionRequest::region
|
|
103
|
+
|
|
104
|
+
attr_reader response_format: Telnyx::Models::AI::ChatCompletionRequest::response_format?
|
|
106
105
|
|
|
107
106
|
def response_format=: (
|
|
108
|
-
Telnyx::AI::ChatCompletionRequest::
|
|
109
|
-
) -> Telnyx::AI::ChatCompletionRequest::
|
|
107
|
+
Telnyx::Models::AI::ChatCompletionRequest::response_format
|
|
108
|
+
) -> Telnyx::Models::AI::ChatCompletionRequest::response_format
|
|
110
109
|
|
|
111
110
|
attr_reader seed: Integer?
|
|
112
111
|
|
|
@@ -161,18 +160,17 @@ module Telnyx
|
|
|
161
160
|
?early_stopping: bool,
|
|
162
161
|
?enable_thinking: bool,
|
|
163
162
|
?frequency_penalty: Float,
|
|
164
|
-
?guided_choice: ::Array[String],
|
|
165
|
-
?guided_json: ::Hash[Symbol, top],
|
|
166
|
-
?guided_regex: String,
|
|
167
163
|
?length_penalty: Float,
|
|
168
164
|
?logprobs: bool,
|
|
169
165
|
?max_tokens: Integer,
|
|
170
166
|
?min_p: Float,
|
|
167
|
+
?mode: Telnyx::Models::AI::ChatCompletionRequest::mode,
|
|
171
168
|
?model: String,
|
|
172
169
|
?n: Float,
|
|
173
170
|
?presence_penalty: Float,
|
|
174
171
|
?reasoning_effort: Telnyx::Models::AI::ChatCompletionRequest::reasoning_effort,
|
|
175
|
-
?
|
|
172
|
+
?region: Telnyx::Models::AI::ChatCompletionRequest::region,
|
|
173
|
+
?response_format: Telnyx::Models::AI::ChatCompletionRequest::response_format,
|
|
176
174
|
?seed: Integer,
|
|
177
175
|
?service_tier: String,
|
|
178
176
|
?stop: Telnyx::Models::AI::ChatCompletionRequest::stop,
|
|
@@ -192,18 +190,17 @@ module Telnyx
|
|
|
192
190
|
early_stopping: bool,
|
|
193
191
|
enable_thinking: bool,
|
|
194
192
|
frequency_penalty: Float,
|
|
195
|
-
guided_choice: ::Array[String],
|
|
196
|
-
guided_json: ::Hash[Symbol, top],
|
|
197
|
-
guided_regex: String,
|
|
198
193
|
length_penalty: Float,
|
|
199
194
|
logprobs: bool,
|
|
200
195
|
max_tokens: Integer,
|
|
201
196
|
min_p: Float,
|
|
197
|
+
mode: Telnyx::Models::AI::ChatCompletionRequest::mode,
|
|
202
198
|
model: String,
|
|
203
199
|
n: Float,
|
|
204
200
|
presence_penalty: Float,
|
|
205
201
|
reasoning_effort: Telnyx::Models::AI::ChatCompletionRequest::reasoning_effort,
|
|
206
|
-
|
|
202
|
+
region: Telnyx::Models::AI::ChatCompletionRequest::region,
|
|
203
|
+
response_format: Telnyx::Models::AI::ChatCompletionRequest::response_format,
|
|
207
204
|
seed: Integer,
|
|
208
205
|
service_tier: String,
|
|
209
206
|
stop: Telnyx::Models::AI::ChatCompletionRequest::stop,
|
|
@@ -305,6 +302,17 @@ module Telnyx
|
|
|
305
302
|
end
|
|
306
303
|
end
|
|
307
304
|
|
|
305
|
+
type mode = :preferred | :strict
|
|
306
|
+
|
|
307
|
+
module Mode
|
|
308
|
+
extend Telnyx::Internal::Type::Enum
|
|
309
|
+
|
|
310
|
+
PREFERRED: :preferred
|
|
311
|
+
STRICT: :strict
|
|
312
|
+
|
|
313
|
+
def self?.values: -> ::Array[Telnyx::Models::AI::ChatCompletionRequest::mode]
|
|
314
|
+
end
|
|
315
|
+
|
|
308
316
|
type reasoning_effort =
|
|
309
317
|
:none | :minimal | :low | :medium | :high | :xhigh | :max
|
|
310
318
|
|
|
@@ -322,32 +330,108 @@ module Telnyx
|
|
|
322
330
|
def self?.values: -> ::Array[Telnyx::Models::AI::ChatCompletionRequest::reasoning_effort]
|
|
323
331
|
end
|
|
324
332
|
|
|
333
|
+
type region = :USA | :EU | :AUS | :UAE
|
|
334
|
+
|
|
335
|
+
module Region
|
|
336
|
+
extend Telnyx::Internal::Type::Enum
|
|
337
|
+
|
|
338
|
+
USA: :USA
|
|
339
|
+
EU: :EU
|
|
340
|
+
AUS: :AUS
|
|
341
|
+
UAE: :UAE
|
|
342
|
+
|
|
343
|
+
def self?.values: -> ::Array[Telnyx::Models::AI::ChatCompletionRequest::region]
|
|
344
|
+
end
|
|
345
|
+
|
|
325
346
|
type response_format =
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
347
|
+
Telnyx::AI::ChatCompletionRequest::ResponseFormat::ResponseFormatText
|
|
348
|
+
| Telnyx::AI::ChatCompletionRequest::ResponseFormat::ResponseFormatJsonObject
|
|
349
|
+
| Telnyx::AI::ChatCompletionRequest::ResponseFormat::ResponseFormatJsonSchemaParam
|
|
329
350
|
|
|
330
|
-
|
|
331
|
-
|
|
351
|
+
module ResponseFormat
|
|
352
|
+
extend Telnyx::Internal::Type::Union
|
|
332
353
|
|
|
333
|
-
|
|
334
|
-
type: Telnyx::Models::AI::ChatCompletionRequest::ResponseFormat::type_
|
|
335
|
-
) -> void
|
|
354
|
+
type response_format_text = { type: :text }
|
|
336
355
|
|
|
337
|
-
|
|
338
|
-
type:
|
|
339
|
-
}
|
|
356
|
+
class ResponseFormatText < Telnyx::Internal::Type::BaseModel
|
|
357
|
+
attr_accessor type: :text
|
|
340
358
|
|
|
341
|
-
|
|
359
|
+
def initialize: (?type: :text) -> void
|
|
342
360
|
|
|
343
|
-
|
|
344
|
-
|
|
361
|
+
def to_hash: -> { type: :text }
|
|
362
|
+
end
|
|
363
|
+
|
|
364
|
+
type response_format_json_object = { type: :json_object }
|
|
365
|
+
|
|
366
|
+
class ResponseFormatJsonObject < Telnyx::Internal::Type::BaseModel
|
|
367
|
+
attr_accessor type: :json_object
|
|
368
|
+
|
|
369
|
+
def initialize: (?type: :json_object) -> void
|
|
370
|
+
|
|
371
|
+
def to_hash: -> { type: :json_object }
|
|
372
|
+
end
|
|
345
373
|
|
|
346
|
-
|
|
347
|
-
|
|
374
|
+
type response_format_json_schema_param =
|
|
375
|
+
{
|
|
376
|
+
json_schema: Telnyx::AI::ChatCompletionRequest::ResponseFormat::ResponseFormatJsonSchemaParam::JsonSchema,
|
|
377
|
+
type: :json_schema
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
class ResponseFormatJsonSchemaParam < Telnyx::Internal::Type::BaseModel
|
|
381
|
+
attr_accessor json_schema: Telnyx::AI::ChatCompletionRequest::ResponseFormat::ResponseFormatJsonSchemaParam::JsonSchema
|
|
382
|
+
|
|
383
|
+
attr_accessor type: :json_schema
|
|
384
|
+
|
|
385
|
+
def initialize: (
|
|
386
|
+
json_schema: Telnyx::AI::ChatCompletionRequest::ResponseFormat::ResponseFormatJsonSchemaParam::JsonSchema,
|
|
387
|
+
?type: :json_schema
|
|
388
|
+
) -> void
|
|
389
|
+
|
|
390
|
+
def to_hash: -> {
|
|
391
|
+
json_schema: Telnyx::AI::ChatCompletionRequest::ResponseFormat::ResponseFormatJsonSchemaParam::JsonSchema,
|
|
392
|
+
type: :json_schema
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
type json_schema =
|
|
396
|
+
{
|
|
397
|
+
name: String,
|
|
398
|
+
description: String,
|
|
399
|
+
schema: ::Hash[Symbol, top],
|
|
400
|
+
strict: bool
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
class JsonSchema < Telnyx::Internal::Type::BaseModel
|
|
404
|
+
attr_accessor name: String
|
|
405
|
+
|
|
406
|
+
attr_reader description: String?
|
|
407
|
+
|
|
408
|
+
def description=: (String) -> String
|
|
409
|
+
|
|
410
|
+
attr_reader schema: ::Hash[Symbol, top]?
|
|
411
|
+
|
|
412
|
+
def schema=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
413
|
+
|
|
414
|
+
attr_reader strict: bool?
|
|
415
|
+
|
|
416
|
+
def strict=: (bool) -> bool
|
|
417
|
+
|
|
418
|
+
def initialize: (
|
|
419
|
+
name: String,
|
|
420
|
+
?description: String,
|
|
421
|
+
?schema: ::Hash[Symbol, top],
|
|
422
|
+
?strict: bool
|
|
423
|
+
) -> void
|
|
348
424
|
|
|
349
|
-
|
|
425
|
+
def to_hash: -> {
|
|
426
|
+
name: String,
|
|
427
|
+
description: String,
|
|
428
|
+
schema: ::Hash[Symbol, top],
|
|
429
|
+
strict: bool
|
|
430
|
+
}
|
|
431
|
+
end
|
|
350
432
|
end
|
|
433
|
+
|
|
434
|
+
def self?.variants: -> ::Array[Telnyx::Models::AI::ChatCompletionRequest::response_format]
|
|
351
435
|
end
|
|
352
436
|
|
|
353
437
|
type stop = String | ::Array[String]
|
|
@@ -8,6 +8,7 @@ module Telnyx
|
|
|
8
8
|
instructions: String,
|
|
9
9
|
model: String,
|
|
10
10
|
name: String,
|
|
11
|
+
:a2a_agents => ::Array[Telnyx::AI::AssistantA2AAgent],
|
|
11
12
|
conversation_flow: Telnyx::AI::ConversationFlow,
|
|
12
13
|
description: String,
|
|
13
14
|
dynamic_variables: ::Hash[Symbol, top],
|
|
@@ -50,6 +51,12 @@ module Telnyx
|
|
|
50
51
|
|
|
51
52
|
attr_accessor name: String
|
|
52
53
|
|
|
54
|
+
attr_reader a2a_agents: ::Array[Telnyx::AI::AssistantA2AAgent]?
|
|
55
|
+
|
|
56
|
+
def a2a_agents=: (
|
|
57
|
+
::Array[Telnyx::AI::AssistantA2AAgent]
|
|
58
|
+
) -> ::Array[Telnyx::AI::AssistantA2AAgent]
|
|
59
|
+
|
|
53
60
|
attr_reader conversation_flow: Telnyx::AI::ConversationFlow?
|
|
54
61
|
|
|
55
62
|
def conversation_flow=: (
|
|
@@ -206,6 +213,7 @@ module Telnyx
|
|
|
206
213
|
instructions: String,
|
|
207
214
|
model: String,
|
|
208
215
|
name: String,
|
|
216
|
+
?a2a_agents: ::Array[Telnyx::AI::AssistantA2AAgent],
|
|
209
217
|
?conversation_flow: Telnyx::AI::ConversationFlow,
|
|
210
218
|
?description: String,
|
|
211
219
|
?dynamic_variables: ::Hash[Symbol, top],
|
|
@@ -243,6 +251,7 @@ module Telnyx
|
|
|
243
251
|
instructions: String,
|
|
244
252
|
model: String,
|
|
245
253
|
name: String,
|
|
254
|
+
:a2a_agents => ::Array[Telnyx::AI::AssistantA2AAgent],
|
|
246
255
|
conversation_flow: Telnyx::AI::ConversationFlow,
|
|
247
256
|
description: String,
|
|
248
257
|
dynamic_variables: ::Hash[Symbol, top],
|
|
@@ -6,8 +6,10 @@ module Telnyx
|
|
|
6
6
|
conversation: String,
|
|
7
7
|
input: ::Hash[Symbol, top],
|
|
8
8
|
instructions: String,
|
|
9
|
+
mode: Telnyx::Models::AI::OpenAICreateResponseParams::mode,
|
|
9
10
|
model: String,
|
|
10
11
|
reasoning: Telnyx::AI::OpenAICreateResponseParams::Reasoning,
|
|
12
|
+
region: Telnyx::Models::AI::OpenAICreateResponseParams::region,
|
|
11
13
|
service_tier: String,
|
|
12
14
|
stream: bool
|
|
13
15
|
}
|
|
@@ -29,6 +31,12 @@ module Telnyx
|
|
|
29
31
|
|
|
30
32
|
def instructions=: (String) -> String
|
|
31
33
|
|
|
34
|
+
attr_reader mode: Telnyx::Models::AI::OpenAICreateResponseParams::mode?
|
|
35
|
+
|
|
36
|
+
def mode=: (
|
|
37
|
+
Telnyx::Models::AI::OpenAICreateResponseParams::mode
|
|
38
|
+
) -> Telnyx::Models::AI::OpenAICreateResponseParams::mode
|
|
39
|
+
|
|
32
40
|
attr_reader model: String?
|
|
33
41
|
|
|
34
42
|
def model=: (String) -> String
|
|
@@ -39,6 +47,12 @@ module Telnyx
|
|
|
39
47
|
Telnyx::AI::OpenAICreateResponseParams::Reasoning
|
|
40
48
|
) -> Telnyx::AI::OpenAICreateResponseParams::Reasoning
|
|
41
49
|
|
|
50
|
+
attr_reader region: Telnyx::Models::AI::OpenAICreateResponseParams::region?
|
|
51
|
+
|
|
52
|
+
def region=: (
|
|
53
|
+
Telnyx::Models::AI::OpenAICreateResponseParams::region
|
|
54
|
+
) -> Telnyx::Models::AI::OpenAICreateResponseParams::region
|
|
55
|
+
|
|
42
56
|
attr_reader service_tier: String?
|
|
43
57
|
|
|
44
58
|
def service_tier=: (String) -> String
|
|
@@ -51,8 +65,10 @@ module Telnyx
|
|
|
51
65
|
?conversation: String,
|
|
52
66
|
?input: ::Hash[Symbol, top],
|
|
53
67
|
?instructions: String,
|
|
68
|
+
?mode: Telnyx::Models::AI::OpenAICreateResponseParams::mode,
|
|
54
69
|
?model: String,
|
|
55
70
|
?reasoning: Telnyx::AI::OpenAICreateResponseParams::Reasoning,
|
|
71
|
+
?region: Telnyx::Models::AI::OpenAICreateResponseParams::region,
|
|
56
72
|
?service_tier: String,
|
|
57
73
|
?stream: bool,
|
|
58
74
|
?request_options: Telnyx::request_opts
|
|
@@ -62,13 +78,26 @@ module Telnyx
|
|
|
62
78
|
conversation: String,
|
|
63
79
|
input: ::Hash[Symbol, top],
|
|
64
80
|
instructions: String,
|
|
81
|
+
mode: Telnyx::Models::AI::OpenAICreateResponseParams::mode,
|
|
65
82
|
model: String,
|
|
66
83
|
reasoning: Telnyx::AI::OpenAICreateResponseParams::Reasoning,
|
|
84
|
+
region: Telnyx::Models::AI::OpenAICreateResponseParams::region,
|
|
67
85
|
service_tier: String,
|
|
68
86
|
stream: bool,
|
|
69
87
|
request_options: Telnyx::RequestOptions
|
|
70
88
|
}
|
|
71
89
|
|
|
90
|
+
type mode = :preferred | :strict
|
|
91
|
+
|
|
92
|
+
module Mode
|
|
93
|
+
extend Telnyx::Internal::Type::Enum
|
|
94
|
+
|
|
95
|
+
PREFERRED: :preferred
|
|
96
|
+
STRICT: :strict
|
|
97
|
+
|
|
98
|
+
def self?.values: -> ::Array[Telnyx::Models::AI::OpenAICreateResponseParams::mode]
|
|
99
|
+
end
|
|
100
|
+
|
|
72
101
|
type reasoning =
|
|
73
102
|
{
|
|
74
103
|
effort: Telnyx::Models::AI::OpenAICreateResponseParams::Reasoning::effort
|
|
@@ -106,6 +135,19 @@ module Telnyx
|
|
|
106
135
|
def self?.values: -> ::Array[Telnyx::Models::AI::OpenAICreateResponseParams::Reasoning::effort]
|
|
107
136
|
end
|
|
108
137
|
end
|
|
138
|
+
|
|
139
|
+
type region = :USA | :EU | :AUS | :UAE
|
|
140
|
+
|
|
141
|
+
module Region
|
|
142
|
+
extend Telnyx::Internal::Type::Enum
|
|
143
|
+
|
|
144
|
+
USA: :USA
|
|
145
|
+
EU: :EU
|
|
146
|
+
AUS: :AUS
|
|
147
|
+
UAE: :UAE
|
|
148
|
+
|
|
149
|
+
def self?.values: -> ::Array[Telnyx::Models::AI::OpenAICreateResponseParams::region]
|
|
150
|
+
end
|
|
109
151
|
end
|
|
110
152
|
end
|
|
111
153
|
end
|
|
@@ -5,6 +5,7 @@ module Telnyx
|
|
|
5
5
|
{
|
|
6
6
|
default_texml_app_id: String,
|
|
7
7
|
disable_dtmf: bool,
|
|
8
|
+
fallback_destination: String,
|
|
8
9
|
noise_suppression: Telnyx::Models::AI::TelephonySettings::noise_suppression,
|
|
9
10
|
noise_suppression_config: Telnyx::AI::TelephonySettings::NoiseSuppressionConfig,
|
|
10
11
|
recording_settings: Telnyx::AI::TelephonySettings::RecordingSettings,
|
|
@@ -25,6 +26,10 @@ module Telnyx
|
|
|
25
26
|
|
|
26
27
|
def disable_dtmf=: (bool) -> bool
|
|
27
28
|
|
|
29
|
+
attr_reader fallback_destination: String?
|
|
30
|
+
|
|
31
|
+
def fallback_destination=: (String) -> String
|
|
32
|
+
|
|
28
33
|
attr_reader noise_suppression: Telnyx::Models::AI::TelephonySettings::noise_suppression?
|
|
29
34
|
|
|
30
35
|
def noise_suppression=: (
|
|
@@ -72,6 +77,7 @@ module Telnyx
|
|
|
72
77
|
def initialize: (
|
|
73
78
|
?default_texml_app_id: String,
|
|
74
79
|
?disable_dtmf: bool,
|
|
80
|
+
?fallback_destination: String,
|
|
75
81
|
?noise_suppression: Telnyx::Models::AI::TelephonySettings::noise_suppression,
|
|
76
82
|
?noise_suppression_config: Telnyx::AI::TelephonySettings::NoiseSuppressionConfig,
|
|
77
83
|
?recording_settings: Telnyx::AI::TelephonySettings::RecordingSettings,
|
|
@@ -86,6 +92,7 @@ module Telnyx
|
|
|
86
92
|
def to_hash: -> {
|
|
87
93
|
default_texml_app_id: String,
|
|
88
94
|
disable_dtmf: bool,
|
|
95
|
+
fallback_destination: String,
|
|
89
96
|
noise_suppression: Telnyx::Models::AI::TelephonySettings::noise_suppression,
|
|
90
97
|
noise_suppression_config: Telnyx::AI::TelephonySettings::NoiseSuppressionConfig,
|
|
91
98
|
recording_settings: Telnyx::AI::TelephonySettings::RecordingSettings,
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
module Compute
|
|
4
|
+
type func_retrieve_logs_params =
|
|
5
|
+
{
|
|
6
|
+
id: String,
|
|
7
|
+
end_time: Time,
|
|
8
|
+
limit: Integer,
|
|
9
|
+
start_time: Time,
|
|
10
|
+
type: Telnyx::Models::Compute::FuncRetrieveLogsParams::type_
|
|
11
|
+
}
|
|
12
|
+
& Telnyx::Internal::Type::request_parameters
|
|
13
|
+
|
|
14
|
+
class FuncRetrieveLogsParams < Telnyx::Internal::Type::BaseModel
|
|
15
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
16
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
17
|
+
|
|
18
|
+
attr_accessor id: String
|
|
19
|
+
|
|
20
|
+
attr_reader end_time: Time?
|
|
21
|
+
|
|
22
|
+
def end_time=: (Time) -> Time
|
|
23
|
+
|
|
24
|
+
attr_reader limit: Integer?
|
|
25
|
+
|
|
26
|
+
def limit=: (Integer) -> Integer
|
|
27
|
+
|
|
28
|
+
attr_reader start_time: Time?
|
|
29
|
+
|
|
30
|
+
def start_time=: (Time) -> Time
|
|
31
|
+
|
|
32
|
+
attr_reader type: Telnyx::Models::Compute::FuncRetrieveLogsParams::type_?
|
|
33
|
+
|
|
34
|
+
def type=: (
|
|
35
|
+
Telnyx::Models::Compute::FuncRetrieveLogsParams::type_
|
|
36
|
+
) -> Telnyx::Models::Compute::FuncRetrieveLogsParams::type_
|
|
37
|
+
|
|
38
|
+
def initialize: (
|
|
39
|
+
id: String,
|
|
40
|
+
?end_time: Time,
|
|
41
|
+
?limit: Integer,
|
|
42
|
+
?start_time: Time,
|
|
43
|
+
?type: Telnyx::Models::Compute::FuncRetrieveLogsParams::type_,
|
|
44
|
+
?request_options: Telnyx::request_opts
|
|
45
|
+
) -> void
|
|
46
|
+
|
|
47
|
+
def to_hash: -> {
|
|
48
|
+
id: String,
|
|
49
|
+
end_time: Time,
|
|
50
|
+
limit: Integer,
|
|
51
|
+
start_time: Time,
|
|
52
|
+
type: Telnyx::Models::Compute::FuncRetrieveLogsParams::type_,
|
|
53
|
+
request_options: Telnyx::RequestOptions
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
type type_ = :runtime | :invocations
|
|
57
|
+
|
|
58
|
+
module Type
|
|
59
|
+
extend Telnyx::Internal::Type::Enum
|
|
60
|
+
|
|
61
|
+
RUNTIME: :runtime
|
|
62
|
+
INVOCATIONS: :invocations
|
|
63
|
+
|
|
64
|
+
def self?.values: -> ::Array[Telnyx::Models::Compute::FuncRetrieveLogsParams::type_]
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|