telnyx 5.166.0 → 5.167.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 +12 -0
- data/README.md +1 -1
- 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/chat_completion_request.rb +61 -1
- data/lib/telnyx/models/ai/openai_create_response_params.rb +57 -1
- data/lib/telnyx/models/messaging_messaging_profile.rb +274 -0
- data/lib/telnyx/models/messaging_profile.rb +0 -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_retrieve_response.rb +3 -3
- data/lib/telnyx/models/messaging_profile_update_params.rb +22 -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.rb +2 -0
- data/lib/telnyx/resources/ai/anthropic/v1.rb +5 -1
- data/lib/telnyx/resources/ai/openai/chat.rb +5 -1
- data/lib/telnyx/resources/ai/openai.rb +5 -1
- data/lib/telnyx/resources/messaging_profiles.rb +7 -3
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +1 -0
- data/rbi/telnyx/models/ai/anthropic/v1_messages_params.rbi +139 -0
- data/rbi/telnyx/models/ai/chat_completion_request.rbi +116 -0
- data/rbi/telnyx/models/ai/openai_create_response_params.rbi +136 -0
- data/rbi/telnyx/models/messaging_messaging_profile.rbi +444 -0
- data/rbi/telnyx/models/messaging_profile.rbi +4 -6
- 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_retrieve_response.rbi +6 -4
- data/rbi/telnyx/models/messaging_profile_update_params.rbi +32 -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.rbi +2 -0
- data/rbi/telnyx/resources/ai/anthropic/v1.rbi +14 -0
- data/rbi/telnyx/resources/ai/openai/chat.rbi +14 -0
- data/rbi/telnyx/resources/ai/openai.rbi +14 -0
- data/rbi/telnyx/resources/messaging_profiles.rbi +14 -1
- data/sig/telnyx/models/ai/anthropic/v1_messages_params.rbs +42 -0
- data/sig/telnyx/models/ai/chat_completion_request.rbs +42 -0
- data/sig/telnyx/models/ai/openai_create_response_params.rbs +42 -0
- data/sig/telnyx/models/messaging_messaging_profile.rbs +207 -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_retrieve_response.rbs +7 -5
- data/sig/telnyx/models/messaging_profile_update_params.rbs +14 -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.rbs +2 -0
- data/sig/telnyx/resources/ai/anthropic/v1.rbs +2 -0
- data/sig/telnyx/resources/ai/openai/chat.rbs +2 -0
- data/sig/telnyx/resources/ai/openai.rbs +2 -0
- data/sig/telnyx/resources/messaging_profiles.rbs +3 -1
- metadata +5 -2
|
@@ -27,6 +27,8 @@ module Telnyx
|
|
|
27
27
|
max_retries: Integer,
|
|
28
28
|
mcp_servers: T::Array[T::Hash[Symbol, T.anything]],
|
|
29
29
|
metadata: T::Hash[Symbol, T.anything],
|
|
30
|
+
mode: Telnyx::AI::Anthropic::V1MessagesParams::Mode::OrSymbol,
|
|
31
|
+
region: Telnyx::AI::Anthropic::V1MessagesParams::Region::OrSymbol,
|
|
30
32
|
service_tier: String,
|
|
31
33
|
stop_sequences: T::Array[String],
|
|
32
34
|
stream: T::Boolean,
|
|
@@ -67,6 +69,18 @@ module Telnyx
|
|
|
67
69
|
mcp_servers: nil,
|
|
68
70
|
# An object describing metadata about the request.
|
|
69
71
|
metadata: nil,
|
|
72
|
+
# How strictly `region` is applied. `preferred` (the default when `region` is set)
|
|
73
|
+
# tries that region first and falls back to another when the model cannot be
|
|
74
|
+
# served there, so a request that would have succeeded still succeeds. `strict`
|
|
75
|
+
# pins the request: it is served from that region or it fails with a 422, never
|
|
76
|
+
# redirected to another region. Requires `region`.
|
|
77
|
+
mode: nil,
|
|
78
|
+
# Optional data-residency region the request should be served from, using the same
|
|
79
|
+
# vocabulary as your account's Data Locality setting. Behavior depends on `mode`.
|
|
80
|
+
# Supported for Telnyx-hosted models only: a request routed to an external
|
|
81
|
+
# provider never passes through Telnyx model routing, so a region cannot be
|
|
82
|
+
# enforced for it. Omit for today's latency-based routing.
|
|
83
|
+
region: nil,
|
|
70
84
|
# The service tier to use for this request. Supported values vary by model; use
|
|
71
85
|
# the Telnyx models endpoint and inspect the model's `service_tiers` field. If
|
|
72
86
|
# omitted, Telnyx-hosted models use `default`.
|
|
@@ -25,11 +25,13 @@ module Telnyx
|
|
|
25
25
|
logprobs: T::Boolean,
|
|
26
26
|
max_tokens: Integer,
|
|
27
27
|
min_p: Float,
|
|
28
|
+
mode: Telnyx::AI::ChatCompletionRequest::Mode::OrSymbol,
|
|
28
29
|
model: String,
|
|
29
30
|
n: Float,
|
|
30
31
|
presence_penalty: Float,
|
|
31
32
|
reasoning_effort:
|
|
32
33
|
Telnyx::AI::ChatCompletionRequest::ReasoningEffort::OrSymbol,
|
|
34
|
+
region: Telnyx::AI::ChatCompletionRequest::Region::OrSymbol,
|
|
33
35
|
response_format:
|
|
34
36
|
Telnyx::AI::ChatCompletionRequest::ResponseFormat::OrHash,
|
|
35
37
|
seed: Integer,
|
|
@@ -92,6 +94,12 @@ module Telnyx
|
|
|
92
94
|
# [many prefer](https://github.com/huggingface/transformers/issues/27670). Must be
|
|
93
95
|
# in [0, 1].
|
|
94
96
|
min_p: nil,
|
|
97
|
+
# How strictly `region` is applied. `preferred` (the default when `region` is set)
|
|
98
|
+
# tries that region first and falls back to another when the model cannot be
|
|
99
|
+
# served there, so a request that would have succeeded still succeeds. `strict`
|
|
100
|
+
# pins the request: it is served from that region or it fails with a 422, never
|
|
101
|
+
# redirected to another region. Requires `region`.
|
|
102
|
+
mode: nil,
|
|
95
103
|
# The language model to chat with.
|
|
96
104
|
model: nil,
|
|
97
105
|
# This will return multiple choices for you instead of a single chat completion.
|
|
@@ -104,6 +112,12 @@ module Telnyx
|
|
|
104
112
|
# all models support all values; unsupported values are rejected with a 400 error.
|
|
105
113
|
# When omitted, reasoning models use their default effort level.
|
|
106
114
|
reasoning_effort: nil,
|
|
115
|
+
# Optional data-residency region the request should be served from, using the same
|
|
116
|
+
# vocabulary as your account's Data Locality setting. Behavior depends on `mode`.
|
|
117
|
+
# Supported for Telnyx-hosted models only: a request routed to an external
|
|
118
|
+
# provider never passes through Telnyx model routing, so a region cannot be
|
|
119
|
+
# enforced for it. Omit for today's latency-based routing.
|
|
120
|
+
region: nil,
|
|
107
121
|
# Use this is you want to guarantee a JSON output without defining a schema. For
|
|
108
122
|
# control over the schema, use `guided_json`.
|
|
109
123
|
response_format: nil,
|
|
@@ -44,9 +44,11 @@ module Telnyx
|
|
|
44
44
|
conversation: String,
|
|
45
45
|
input: T::Hash[Symbol, T.anything],
|
|
46
46
|
instructions: String,
|
|
47
|
+
mode: Telnyx::AI::OpenAICreateResponseParams::Mode::OrSymbol,
|
|
47
48
|
model: String,
|
|
48
49
|
reasoning:
|
|
49
50
|
Telnyx::AI::OpenAICreateResponseParams::Reasoning::OrHash,
|
|
51
|
+
region: Telnyx::AI::OpenAICreateResponseParams::Region::OrSymbol,
|
|
50
52
|
service_tier: String,
|
|
51
53
|
stream: T::Boolean,
|
|
52
54
|
request_options: Telnyx::RequestOptions::OrHash
|
|
@@ -64,10 +66,22 @@ module Telnyx
|
|
|
64
66
|
# `conversation`, send these on the first request that creates the thread;
|
|
65
67
|
# subsequent turns can rely on the stored history.
|
|
66
68
|
instructions: nil,
|
|
69
|
+
# How strictly `region` is applied. `preferred` (the default when `region` is set)
|
|
70
|
+
# tries that region first and falls back to another when the model cannot be
|
|
71
|
+
# served there, so a request that would have succeeded still succeeds. `strict`
|
|
72
|
+
# pins the request: it is served from that region or it fails with a 422, never
|
|
73
|
+
# redirected to another region. Requires `region`.
|
|
74
|
+
mode: nil,
|
|
67
75
|
# Model identifier to use for the response, for example `zai-org/GLM-5.1-FP8` or
|
|
68
76
|
# another model available from the Telnyx OpenAI-compatible models endpoint.
|
|
69
77
|
model: nil,
|
|
70
78
|
reasoning: nil,
|
|
79
|
+
# Optional data-residency region the request should be served from, using the same
|
|
80
|
+
# vocabulary as your account's Data Locality setting. Behavior depends on `mode`.
|
|
81
|
+
# Supported for Telnyx-hosted models only: a request routed to an external
|
|
82
|
+
# provider never passes through Telnyx model routing, so a region cannot be
|
|
83
|
+
# enforced for it. Omit for today's latency-based routing.
|
|
84
|
+
region: nil,
|
|
71
85
|
# The service tier to use for this request. Supported values vary by model; use
|
|
72
86
|
# `GET /v2/ai/openai/models` and inspect the model's `service_tiers` field. If
|
|
73
87
|
# omitted, Telnyx-hosted models use `default`.
|
|
@@ -126,6 +126,8 @@ module Telnyx
|
|
|
126
126
|
mobile_only: T::Boolean,
|
|
127
127
|
name: String,
|
|
128
128
|
number_pool_settings: T.nilable(Telnyx::NumberPoolSettings::OrHash),
|
|
129
|
+
redaction_enabled: T::Boolean,
|
|
130
|
+
redaction_level: Integer,
|
|
129
131
|
smart_encoding: T::Boolean,
|
|
130
132
|
url_shortener_settings:
|
|
131
133
|
T.nilable(Telnyx::URLShortenerSettings::OrHash),
|
|
@@ -167,6 +169,15 @@ module Telnyx
|
|
|
167
169
|
#
|
|
168
170
|
# To disable this feature, set the object field to `null`.
|
|
169
171
|
number_pool_settings: nil,
|
|
172
|
+
# Set to true to enable message content redaction on this profile, or false to
|
|
173
|
+
# disable it. Ignored if the organization is not on the redaction allowlist. See
|
|
174
|
+
# the [Message Redaction guide](/docs/messaging/messages/message-redaction) for
|
|
175
|
+
# what is redacted.
|
|
176
|
+
redaction_enabled: nil,
|
|
177
|
+
# The redaction level to apply when redaction is enabled. 1: redact message
|
|
178
|
+
# records and reporting only. 2 (default): also redact inbound webhook payloads.
|
|
179
|
+
# See the [Message Redaction guide](/docs/messaging/messages/message-redaction).
|
|
180
|
+
redaction_level: nil,
|
|
170
181
|
# Enables automatic character encoding optimization for SMS messages. When
|
|
171
182
|
# enabled, the system automatically selects the most efficient encoding (GSM-7 or
|
|
172
183
|
# UCS-2) based on message content to maximize character limits and minimize costs.
|
|
@@ -210,7 +221,9 @@ module Telnyx
|
|
|
210
221
|
page_size: Integer,
|
|
211
222
|
request_options: Telnyx::RequestOptions::OrHash
|
|
212
223
|
).returns(
|
|
213
|
-
Telnyx::Internal::DefaultFlatPagination[
|
|
224
|
+
Telnyx::Internal::DefaultFlatPagination[
|
|
225
|
+
Telnyx::MessagingMessagingProfile
|
|
226
|
+
]
|
|
214
227
|
)
|
|
215
228
|
end
|
|
216
229
|
def list(
|
|
@@ -13,6 +13,8 @@ module Telnyx
|
|
|
13
13
|
max_retries: Integer,
|
|
14
14
|
mcp_servers: ::Array[::Hash[Symbol, top]],
|
|
15
15
|
metadata: ::Hash[Symbol, top],
|
|
16
|
+
mode: Telnyx::Models::AI::Anthropic::V1MessagesParams::mode,
|
|
17
|
+
region: Telnyx::Models::AI::Anthropic::V1MessagesParams::region,
|
|
16
18
|
service_tier: String,
|
|
17
19
|
stop_sequences: ::Array[String],
|
|
18
20
|
stream: bool,
|
|
@@ -63,6 +65,18 @@ module Telnyx
|
|
|
63
65
|
|
|
64
66
|
def metadata=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
65
67
|
|
|
68
|
+
attr_reader mode: Telnyx::Models::AI::Anthropic::V1MessagesParams::mode?
|
|
69
|
+
|
|
70
|
+
def mode=: (
|
|
71
|
+
Telnyx::Models::AI::Anthropic::V1MessagesParams::mode
|
|
72
|
+
) -> Telnyx::Models::AI::Anthropic::V1MessagesParams::mode
|
|
73
|
+
|
|
74
|
+
attr_reader region: Telnyx::Models::AI::Anthropic::V1MessagesParams::region?
|
|
75
|
+
|
|
76
|
+
def region=: (
|
|
77
|
+
Telnyx::Models::AI::Anthropic::V1MessagesParams::region
|
|
78
|
+
) -> Telnyx::Models::AI::Anthropic::V1MessagesParams::region
|
|
79
|
+
|
|
66
80
|
attr_reader service_tier: String?
|
|
67
81
|
|
|
68
82
|
def service_tier=: (String) -> String
|
|
@@ -121,6 +135,8 @@ module Telnyx
|
|
|
121
135
|
?max_retries: Integer,
|
|
122
136
|
?mcp_servers: ::Array[::Hash[Symbol, top]],
|
|
123
137
|
?metadata: ::Hash[Symbol, top],
|
|
138
|
+
?mode: Telnyx::Models::AI::Anthropic::V1MessagesParams::mode,
|
|
139
|
+
?region: Telnyx::Models::AI::Anthropic::V1MessagesParams::region,
|
|
124
140
|
?service_tier: String,
|
|
125
141
|
?stop_sequences: ::Array[String],
|
|
126
142
|
?stream: bool,
|
|
@@ -145,6 +161,8 @@ module Telnyx
|
|
|
145
161
|
max_retries: Integer,
|
|
146
162
|
mcp_servers: ::Array[::Hash[Symbol, top]],
|
|
147
163
|
metadata: ::Hash[Symbol, top],
|
|
164
|
+
mode: Telnyx::Models::AI::Anthropic::V1MessagesParams::mode,
|
|
165
|
+
region: Telnyx::Models::AI::Anthropic::V1MessagesParams::region,
|
|
148
166
|
service_tier: String,
|
|
149
167
|
stop_sequences: ::Array[String],
|
|
150
168
|
stream: bool,
|
|
@@ -159,6 +177,30 @@ module Telnyx
|
|
|
159
177
|
request_options: Telnyx::RequestOptions
|
|
160
178
|
}
|
|
161
179
|
|
|
180
|
+
type mode = :preferred | :strict
|
|
181
|
+
|
|
182
|
+
module Mode
|
|
183
|
+
extend Telnyx::Internal::Type::Enum
|
|
184
|
+
|
|
185
|
+
PREFERRED: :preferred
|
|
186
|
+
STRICT: :strict
|
|
187
|
+
|
|
188
|
+
def self?.values: -> ::Array[Telnyx::Models::AI::Anthropic::V1MessagesParams::mode]
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
type region = :USA | :EU | :AUS | :UAE
|
|
192
|
+
|
|
193
|
+
module Region
|
|
194
|
+
extend Telnyx::Internal::Type::Enum
|
|
195
|
+
|
|
196
|
+
USA: :USA
|
|
197
|
+
EU: :EU
|
|
198
|
+
AUS: :AUS
|
|
199
|
+
UAE: :UAE
|
|
200
|
+
|
|
201
|
+
def self?.values: -> ::Array[Telnyx::Models::AI::Anthropic::V1MessagesParams::region]
|
|
202
|
+
end
|
|
203
|
+
|
|
162
204
|
type system_ = String | ::Array[::Hash[Symbol, top]]
|
|
163
205
|
|
|
164
206
|
module System
|
|
@@ -16,10 +16,12 @@ module Telnyx
|
|
|
16
16
|
logprobs: bool,
|
|
17
17
|
max_tokens: Integer,
|
|
18
18
|
min_p: Float,
|
|
19
|
+
mode: Telnyx::Models::AI::ChatCompletionRequest::mode,
|
|
19
20
|
model: String,
|
|
20
21
|
n: Float,
|
|
21
22
|
presence_penalty: Float,
|
|
22
23
|
reasoning_effort: Telnyx::Models::AI::ChatCompletionRequest::reasoning_effort,
|
|
24
|
+
region: Telnyx::Models::AI::ChatCompletionRequest::region,
|
|
23
25
|
response_format: Telnyx::AI::ChatCompletionRequest::ResponseFormat,
|
|
24
26
|
seed: Integer,
|
|
25
27
|
service_tier: String,
|
|
@@ -84,6 +86,12 @@ module Telnyx
|
|
|
84
86
|
|
|
85
87
|
def min_p=: (Float) -> Float
|
|
86
88
|
|
|
89
|
+
attr_reader mode: Telnyx::Models::AI::ChatCompletionRequest::mode?
|
|
90
|
+
|
|
91
|
+
def mode=: (
|
|
92
|
+
Telnyx::Models::AI::ChatCompletionRequest::mode
|
|
93
|
+
) -> Telnyx::Models::AI::ChatCompletionRequest::mode
|
|
94
|
+
|
|
87
95
|
attr_reader model: String?
|
|
88
96
|
|
|
89
97
|
def model=: (String) -> String
|
|
@@ -102,6 +110,12 @@ module Telnyx
|
|
|
102
110
|
Telnyx::Models::AI::ChatCompletionRequest::reasoning_effort
|
|
103
111
|
) -> Telnyx::Models::AI::ChatCompletionRequest::reasoning_effort
|
|
104
112
|
|
|
113
|
+
attr_reader region: Telnyx::Models::AI::ChatCompletionRequest::region?
|
|
114
|
+
|
|
115
|
+
def region=: (
|
|
116
|
+
Telnyx::Models::AI::ChatCompletionRequest::region
|
|
117
|
+
) -> Telnyx::Models::AI::ChatCompletionRequest::region
|
|
118
|
+
|
|
105
119
|
attr_reader response_format: Telnyx::AI::ChatCompletionRequest::ResponseFormat?
|
|
106
120
|
|
|
107
121
|
def response_format=: (
|
|
@@ -168,10 +182,12 @@ module Telnyx
|
|
|
168
182
|
?logprobs: bool,
|
|
169
183
|
?max_tokens: Integer,
|
|
170
184
|
?min_p: Float,
|
|
185
|
+
?mode: Telnyx::Models::AI::ChatCompletionRequest::mode,
|
|
171
186
|
?model: String,
|
|
172
187
|
?n: Float,
|
|
173
188
|
?presence_penalty: Float,
|
|
174
189
|
?reasoning_effort: Telnyx::Models::AI::ChatCompletionRequest::reasoning_effort,
|
|
190
|
+
?region: Telnyx::Models::AI::ChatCompletionRequest::region,
|
|
175
191
|
?response_format: Telnyx::AI::ChatCompletionRequest::ResponseFormat,
|
|
176
192
|
?seed: Integer,
|
|
177
193
|
?service_tier: String,
|
|
@@ -199,10 +215,12 @@ module Telnyx
|
|
|
199
215
|
logprobs: bool,
|
|
200
216
|
max_tokens: Integer,
|
|
201
217
|
min_p: Float,
|
|
218
|
+
mode: Telnyx::Models::AI::ChatCompletionRequest::mode,
|
|
202
219
|
model: String,
|
|
203
220
|
n: Float,
|
|
204
221
|
presence_penalty: Float,
|
|
205
222
|
reasoning_effort: Telnyx::Models::AI::ChatCompletionRequest::reasoning_effort,
|
|
223
|
+
region: Telnyx::Models::AI::ChatCompletionRequest::region,
|
|
206
224
|
response_format: Telnyx::AI::ChatCompletionRequest::ResponseFormat,
|
|
207
225
|
seed: Integer,
|
|
208
226
|
service_tier: String,
|
|
@@ -305,6 +323,17 @@ module Telnyx
|
|
|
305
323
|
end
|
|
306
324
|
end
|
|
307
325
|
|
|
326
|
+
type mode = :preferred | :strict
|
|
327
|
+
|
|
328
|
+
module Mode
|
|
329
|
+
extend Telnyx::Internal::Type::Enum
|
|
330
|
+
|
|
331
|
+
PREFERRED: :preferred
|
|
332
|
+
STRICT: :strict
|
|
333
|
+
|
|
334
|
+
def self?.values: -> ::Array[Telnyx::Models::AI::ChatCompletionRequest::mode]
|
|
335
|
+
end
|
|
336
|
+
|
|
308
337
|
type reasoning_effort =
|
|
309
338
|
:none | :minimal | :low | :medium | :high | :xhigh | :max
|
|
310
339
|
|
|
@@ -322,6 +351,19 @@ module Telnyx
|
|
|
322
351
|
def self?.values: -> ::Array[Telnyx::Models::AI::ChatCompletionRequest::reasoning_effort]
|
|
323
352
|
end
|
|
324
353
|
|
|
354
|
+
type region = :USA | :EU | :AUS | :UAE
|
|
355
|
+
|
|
356
|
+
module Region
|
|
357
|
+
extend Telnyx::Internal::Type::Enum
|
|
358
|
+
|
|
359
|
+
USA: :USA
|
|
360
|
+
EU: :EU
|
|
361
|
+
AUS: :AUS
|
|
362
|
+
UAE: :UAE
|
|
363
|
+
|
|
364
|
+
def self?.values: -> ::Array[Telnyx::Models::AI::ChatCompletionRequest::region]
|
|
365
|
+
end
|
|
366
|
+
|
|
325
367
|
type response_format =
|
|
326
368
|
{
|
|
327
369
|
type: Telnyx::Models::AI::ChatCompletionRequest::ResponseFormat::type_
|
|
@@ -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
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
type messaging_messaging_profile =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
ai_assistant_id: String?,
|
|
7
|
+
alpha_sender: String?,
|
|
8
|
+
created_at: Time,
|
|
9
|
+
daily_spend_limit: String,
|
|
10
|
+
daily_spend_limit_enabled: bool,
|
|
11
|
+
enabled: bool,
|
|
12
|
+
health_webhook_url: String?,
|
|
13
|
+
mms_fall_back_to_sms: bool,
|
|
14
|
+
mms_transcoding: bool,
|
|
15
|
+
mobile_only: bool,
|
|
16
|
+
name: String,
|
|
17
|
+
number_pool_settings: Telnyx::NumberPoolSettings?,
|
|
18
|
+
organization_id: String,
|
|
19
|
+
record_type: Telnyx::Models::MessagingMessagingProfile::record_type,
|
|
20
|
+
redaction_enabled: bool,
|
|
21
|
+
redaction_level: Integer,
|
|
22
|
+
resource_group_id: String?,
|
|
23
|
+
smart_encoding: bool,
|
|
24
|
+
updated_at: Time,
|
|
25
|
+
url_shortener_settings: Telnyx::URLShortenerSettings?,
|
|
26
|
+
:v1_secret => String,
|
|
27
|
+
webhook_api_version: Telnyx::Models::MessagingMessagingProfile::webhook_api_version,
|
|
28
|
+
webhook_failover_url: String?,
|
|
29
|
+
webhook_url: String?,
|
|
30
|
+
whitelisted_destinations: ::Array[String]
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
class MessagingMessagingProfile < Telnyx::Internal::Type::BaseModel
|
|
34
|
+
attr_accessor ai_assistant_id: String?
|
|
35
|
+
|
|
36
|
+
attr_accessor alpha_sender: String?
|
|
37
|
+
|
|
38
|
+
attr_reader daily_spend_limit: String?
|
|
39
|
+
|
|
40
|
+
def daily_spend_limit=: (String) -> String
|
|
41
|
+
|
|
42
|
+
attr_reader daily_spend_limit_enabled: bool?
|
|
43
|
+
|
|
44
|
+
def daily_spend_limit_enabled=: (bool) -> bool
|
|
45
|
+
|
|
46
|
+
attr_reader enabled: bool?
|
|
47
|
+
|
|
48
|
+
def enabled=: (bool) -> bool
|
|
49
|
+
|
|
50
|
+
attr_accessor health_webhook_url: String?
|
|
51
|
+
|
|
52
|
+
attr_reader mms_fall_back_to_sms: bool?
|
|
53
|
+
|
|
54
|
+
def mms_fall_back_to_sms=: (bool) -> bool
|
|
55
|
+
|
|
56
|
+
attr_reader mms_transcoding: bool?
|
|
57
|
+
|
|
58
|
+
def mms_transcoding=: (bool) -> bool
|
|
59
|
+
|
|
60
|
+
attr_reader mobile_only: bool?
|
|
61
|
+
|
|
62
|
+
def mobile_only=: (bool) -> bool
|
|
63
|
+
|
|
64
|
+
attr_reader name: String?
|
|
65
|
+
|
|
66
|
+
def name=: (String) -> String
|
|
67
|
+
|
|
68
|
+
attr_accessor number_pool_settings: Telnyx::NumberPoolSettings?
|
|
69
|
+
|
|
70
|
+
attr_reader organization_id: String?
|
|
71
|
+
|
|
72
|
+
def organization_id=: (String) -> String
|
|
73
|
+
|
|
74
|
+
attr_reader redaction_enabled: bool?
|
|
75
|
+
|
|
76
|
+
def redaction_enabled=: (bool) -> bool
|
|
77
|
+
|
|
78
|
+
attr_reader redaction_level: Integer?
|
|
79
|
+
|
|
80
|
+
def redaction_level=: (Integer) -> Integer
|
|
81
|
+
|
|
82
|
+
attr_accessor resource_group_id: String?
|
|
83
|
+
|
|
84
|
+
attr_reader smart_encoding: bool?
|
|
85
|
+
|
|
86
|
+
def smart_encoding=: (bool) -> bool
|
|
87
|
+
|
|
88
|
+
attr_accessor url_shortener_settings: Telnyx::URLShortenerSettings?
|
|
89
|
+
|
|
90
|
+
attr_reader v1_secret: String?
|
|
91
|
+
|
|
92
|
+
def v1_secret=: (String) -> String
|
|
93
|
+
|
|
94
|
+
attr_reader webhook_api_version: Telnyx::Models::MessagingMessagingProfile::webhook_api_version?
|
|
95
|
+
|
|
96
|
+
def webhook_api_version=: (
|
|
97
|
+
Telnyx::Models::MessagingMessagingProfile::webhook_api_version
|
|
98
|
+
) -> Telnyx::Models::MessagingMessagingProfile::webhook_api_version
|
|
99
|
+
|
|
100
|
+
attr_accessor webhook_failover_url: String?
|
|
101
|
+
|
|
102
|
+
attr_accessor webhook_url: String?
|
|
103
|
+
|
|
104
|
+
attr_reader whitelisted_destinations: ::Array[String]?
|
|
105
|
+
|
|
106
|
+
def whitelisted_destinations=: (::Array[String]) -> ::Array[String]
|
|
107
|
+
|
|
108
|
+
attr_reader id: String?
|
|
109
|
+
|
|
110
|
+
def id=: (String) -> String
|
|
111
|
+
|
|
112
|
+
attr_reader created_at: Time?
|
|
113
|
+
|
|
114
|
+
def created_at=: (Time) -> Time
|
|
115
|
+
|
|
116
|
+
attr_reader record_type: Telnyx::Models::MessagingMessagingProfile::record_type?
|
|
117
|
+
|
|
118
|
+
def record_type=: (
|
|
119
|
+
Telnyx::Models::MessagingMessagingProfile::record_type
|
|
120
|
+
) -> Telnyx::Models::MessagingMessagingProfile::record_type
|
|
121
|
+
|
|
122
|
+
attr_reader updated_at: Time?
|
|
123
|
+
|
|
124
|
+
def updated_at=: (Time) -> Time
|
|
125
|
+
|
|
126
|
+
def initialize: (
|
|
127
|
+
?id: String,
|
|
128
|
+
?ai_assistant_id: String?,
|
|
129
|
+
?alpha_sender: String?,
|
|
130
|
+
?created_at: Time,
|
|
131
|
+
?daily_spend_limit: String,
|
|
132
|
+
?daily_spend_limit_enabled: bool,
|
|
133
|
+
?enabled: bool,
|
|
134
|
+
?health_webhook_url: String?,
|
|
135
|
+
?mms_fall_back_to_sms: bool,
|
|
136
|
+
?mms_transcoding: bool,
|
|
137
|
+
?mobile_only: bool,
|
|
138
|
+
?name: String,
|
|
139
|
+
?number_pool_settings: Telnyx::NumberPoolSettings?,
|
|
140
|
+
?organization_id: String,
|
|
141
|
+
?record_type: Telnyx::Models::MessagingMessagingProfile::record_type,
|
|
142
|
+
?redaction_enabled: bool,
|
|
143
|
+
?redaction_level: Integer,
|
|
144
|
+
?resource_group_id: String?,
|
|
145
|
+
?smart_encoding: bool,
|
|
146
|
+
?updated_at: Time,
|
|
147
|
+
?url_shortener_settings: Telnyx::URLShortenerSettings?,
|
|
148
|
+
?v1_secret: String,
|
|
149
|
+
?webhook_api_version: Telnyx::Models::MessagingMessagingProfile::webhook_api_version,
|
|
150
|
+
?webhook_failover_url: String?,
|
|
151
|
+
?webhook_url: String?,
|
|
152
|
+
?whitelisted_destinations: ::Array[String]
|
|
153
|
+
) -> void
|
|
154
|
+
|
|
155
|
+
def to_hash: -> {
|
|
156
|
+
id: String,
|
|
157
|
+
ai_assistant_id: String?,
|
|
158
|
+
alpha_sender: String?,
|
|
159
|
+
created_at: Time,
|
|
160
|
+
daily_spend_limit: String,
|
|
161
|
+
daily_spend_limit_enabled: bool,
|
|
162
|
+
enabled: bool,
|
|
163
|
+
health_webhook_url: String?,
|
|
164
|
+
mms_fall_back_to_sms: bool,
|
|
165
|
+
mms_transcoding: bool,
|
|
166
|
+
mobile_only: bool,
|
|
167
|
+
name: String,
|
|
168
|
+
number_pool_settings: Telnyx::NumberPoolSettings?,
|
|
169
|
+
organization_id: String,
|
|
170
|
+
record_type: Telnyx::Models::MessagingMessagingProfile::record_type,
|
|
171
|
+
redaction_enabled: bool,
|
|
172
|
+
redaction_level: Integer,
|
|
173
|
+
resource_group_id: String?,
|
|
174
|
+
smart_encoding: bool,
|
|
175
|
+
updated_at: Time,
|
|
176
|
+
url_shortener_settings: Telnyx::URLShortenerSettings?,
|
|
177
|
+
:v1_secret => String,
|
|
178
|
+
webhook_api_version: Telnyx::Models::MessagingMessagingProfile::webhook_api_version,
|
|
179
|
+
webhook_failover_url: String?,
|
|
180
|
+
webhook_url: String?,
|
|
181
|
+
whitelisted_destinations: ::Array[String]
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
type record_type = :messaging_profile
|
|
185
|
+
|
|
186
|
+
module RecordType
|
|
187
|
+
extend Telnyx::Internal::Type::Enum
|
|
188
|
+
|
|
189
|
+
MESSAGING_PROFILE: :messaging_profile
|
|
190
|
+
|
|
191
|
+
def self?.values: -> ::Array[Telnyx::Models::MessagingMessagingProfile::record_type]
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
type webhook_api_version = :"1" | :"2" | :"2010-04-01"
|
|
195
|
+
|
|
196
|
+
module WebhookAPIVersion
|
|
197
|
+
extend Telnyx::Internal::Type::Enum
|
|
198
|
+
|
|
199
|
+
V1: :"1"
|
|
200
|
+
V2: :"2"
|
|
201
|
+
V2010_04_01: :"2010-04-01"
|
|
202
|
+
|
|
203
|
+
def self?.values: -> ::Array[Telnyx::Models::MessagingMessagingProfile::webhook_api_version]
|
|
204
|
+
end
|
|
205
|
+
end
|
|
206
|
+
end
|
|
207
|
+
end
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
module Telnyx
|
|
2
2
|
module Models
|
|
3
|
-
type messaging_profile_create_response =
|
|
3
|
+
type messaging_profile_create_response =
|
|
4
|
+
{ data: Telnyx::MessagingMessagingProfile }
|
|
4
5
|
|
|
5
6
|
class MessagingProfileCreateResponse < Telnyx::Internal::Type::BaseModel
|
|
6
|
-
attr_reader data: Telnyx::
|
|
7
|
+
attr_reader data: Telnyx::MessagingMessagingProfile?
|
|
7
8
|
|
|
8
|
-
def data=: (
|
|
9
|
+
def data=: (
|
|
10
|
+
Telnyx::MessagingMessagingProfile
|
|
11
|
+
) -> Telnyx::MessagingMessagingProfile
|
|
9
12
|
|
|
10
|
-
def initialize: (?data: Telnyx::
|
|
13
|
+
def initialize: (?data: Telnyx::MessagingMessagingProfile) -> void
|
|
11
14
|
|
|
12
|
-
def to_hash: -> { data: Telnyx::
|
|
15
|
+
def to_hash: -> { data: Telnyx::MessagingMessagingProfile }
|
|
13
16
|
end
|
|
14
17
|
end
|
|
15
18
|
end
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
module Telnyx
|
|
2
2
|
module Models
|
|
3
|
-
type messaging_profile_delete_response =
|
|
3
|
+
type messaging_profile_delete_response =
|
|
4
|
+
{ data: Telnyx::MessagingMessagingProfile }
|
|
4
5
|
|
|
5
6
|
class MessagingProfileDeleteResponse < Telnyx::Internal::Type::BaseModel
|
|
6
|
-
attr_reader data: Telnyx::
|
|
7
|
+
attr_reader data: Telnyx::MessagingMessagingProfile?
|
|
7
8
|
|
|
8
|
-
def data=: (
|
|
9
|
+
def data=: (
|
|
10
|
+
Telnyx::MessagingMessagingProfile
|
|
11
|
+
) -> Telnyx::MessagingMessagingProfile
|
|
9
12
|
|
|
10
|
-
def initialize: (?data: Telnyx::
|
|
13
|
+
def initialize: (?data: Telnyx::MessagingMessagingProfile) -> void
|
|
11
14
|
|
|
12
|
-
def to_hash: -> { data: Telnyx::
|
|
15
|
+
def to_hash: -> { data: Telnyx::MessagingMessagingProfile }
|
|
13
16
|
end
|
|
14
17
|
end
|
|
15
18
|
end
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
module Telnyx
|
|
2
2
|
module Models
|
|
3
3
|
type messaging_profile_retrieve_response =
|
|
4
|
-
{ data: Telnyx::
|
|
4
|
+
{ data: Telnyx::MessagingMessagingProfile }
|
|
5
5
|
|
|
6
6
|
class MessagingProfileRetrieveResponse < Telnyx::Internal::Type::BaseModel
|
|
7
|
-
attr_reader data: Telnyx::
|
|
7
|
+
attr_reader data: Telnyx::MessagingMessagingProfile?
|
|
8
8
|
|
|
9
|
-
def data=: (
|
|
9
|
+
def data=: (
|
|
10
|
+
Telnyx::MessagingMessagingProfile
|
|
11
|
+
) -> Telnyx::MessagingMessagingProfile
|
|
10
12
|
|
|
11
|
-
def initialize: (?data: Telnyx::
|
|
13
|
+
def initialize: (?data: Telnyx::MessagingMessagingProfile) -> void
|
|
12
14
|
|
|
13
|
-
def to_hash: -> { data: Telnyx::
|
|
15
|
+
def to_hash: -> { data: Telnyx::MessagingMessagingProfile }
|
|
14
16
|
end
|
|
15
17
|
end
|
|
16
18
|
end
|