telnyx 5.69.0 → 5.70.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 +24 -0
- data/README.md +1 -1
- data/lib/telnyx/internal/util.rb +3 -1
- data/lib/telnyx/models/ai/assistant_create_params.rb +3 -42
- data/lib/telnyx/models/ai/assistant_update_params.rb +3 -42
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +3 -43
- data/lib/telnyx/models/ai/conversation_add_message_params.rb +4 -4
- data/lib/telnyx/models/ai/inference_embedding.rb +3 -43
- data/lib/telnyx/models/ai/observability.rb +46 -0
- data/lib/telnyx/models/ai/observability_req.rb +46 -0
- data/lib/telnyx/models/call_dial_params.rb +24 -1
- data/lib/telnyx/models/calls/action_transfer_params.rb +24 -1
- data/lib/telnyx/models/enterprise_create_params.rb +1 -1
- data/lib/telnyx/models/enterprise_public.rb +1 -1
- data/lib/telnyx/models/enterprise_update_params.rb +1 -1
- data/lib/telnyx/models/enterprises/reputation/{number_create_params.rb → number_associate_params.rb} +2 -2
- data/lib/telnyx/models/enterprises/reputation/{number_create_response.rb → number_associate_response.rb} +5 -5
- data/lib/telnyx/models/enterprises/reputation/{number_delete_params.rb → number_disassociate_params.rb} +2 -2
- data/lib/telnyx/models/enterprises/{reputation_list_params.rb → reputation_disable_params.rb} +2 -2
- data/lib/telnyx/models/enterprises/{reputation_create_params.rb → reputation_enable_params.rb} +6 -6
- data/lib/telnyx/models/enterprises/{reputation_create_response.rb → reputation_enable_response.rb} +2 -2
- data/lib/telnyx/models/enterprises/{reputation_delete_all_params.rb → reputation_retrieve_params.rb} +2 -2
- data/lib/telnyx/models/enterprises/{reputation_list_response.rb → reputation_retrieve_response.rb} +2 -2
- data/lib/telnyx/models/porting_orders/phone_number_block_list_params.rb +9 -9
- data/lib/telnyx/models/voice_clone_create_from_upload_params.rb +364 -71
- data/lib/telnyx/models/voice_clone_create_params.rb +161 -51
- data/lib/telnyx/models/voice_clone_data.rb +51 -4
- data/lib/telnyx/resources/ai/assistants/versions.rb +1 -1
- data/lib/telnyx/resources/ai/assistants.rb +2 -2
- data/lib/telnyx/resources/calls/actions.rb +3 -1
- data/lib/telnyx/resources/calls.rb +3 -1
- data/lib/telnyx/resources/enterprises/reputation/numbers.rb +42 -42
- data/lib/telnyx/resources/enterprises/reputation.rb +61 -61
- data/lib/telnyx/resources/voice_clones.rb +7 -27
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +10 -8
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +4 -121
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +4 -121
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +4 -123
- data/rbi/telnyx/models/ai/conversation_add_message_params.rbi +5 -5
- data/rbi/telnyx/models/ai/inference_embedding.rbi +4 -123
- data/rbi/telnyx/models/ai/observability.rbi +90 -0
- data/rbi/telnyx/models/ai/observability_req.rbi +92 -0
- data/rbi/telnyx/models/call_dial_params.rbi +37 -0
- data/rbi/telnyx/models/calls/action_transfer_params.rbi +57 -0
- data/rbi/telnyx/models/enterprise_create_params.rbi +1 -1
- data/rbi/telnyx/models/enterprise_public.rbi +1 -1
- data/rbi/telnyx/models/enterprise_update_params.rbi +1 -1
- data/rbi/telnyx/models/enterprises/reputation/{number_create_params.rbi → number_associate_params.rbi} +2 -2
- data/rbi/telnyx/models/enterprises/reputation/{number_create_response.rbi → number_associate_response.rbi} +7 -7
- data/rbi/telnyx/models/enterprises/reputation/{number_delete_params.rbi → number_disassociate_params.rbi} +2 -2
- data/rbi/telnyx/models/enterprises/{reputation_list_params.rbi → reputation_disable_params.rbi} +2 -2
- data/rbi/telnyx/models/enterprises/{reputation_create_params.rbi → reputation_enable_params.rbi} +14 -14
- data/rbi/telnyx/models/enterprises/{reputation_create_response.rbi → reputation_enable_response.rbi} +2 -2
- data/rbi/telnyx/models/enterprises/{reputation_delete_all_params.rbi → reputation_retrieve_params.rbi} +2 -2
- data/rbi/telnyx/models/enterprises/{reputation_list_response.rbi → reputation_retrieve_response.rbi} +2 -2
- data/rbi/telnyx/models/porting_orders/phone_number_block_list_params.rbi +34 -34
- data/rbi/telnyx/models/voice_clone_create_from_upload_params.rbi +711 -136
- data/rbi/telnyx/models/voice_clone_create_params.rbi +345 -79
- data/rbi/telnyx/models/voice_clone_data.rbi +77 -4
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +1 -2
- data/rbi/telnyx/resources/ai/assistants.rbi +2 -4
- data/rbi/telnyx/resources/calls/actions.rbi +5 -0
- data/rbi/telnyx/resources/calls.rbi +5 -0
- data/rbi/telnyx/resources/enterprises/reputation/numbers.rbi +34 -34
- data/rbi/telnyx/resources/enterprises/reputation.rbi +44 -44
- data/rbi/telnyx/resources/voice_clones.rbi +17 -41
- data/sig/telnyx/models/ai/assistant_create_params.rbs +6 -59
- data/sig/telnyx/models/ai/assistant_update_params.rbs +6 -59
- data/sig/telnyx/models/ai/assistants/update_assistant.rbs +6 -59
- data/sig/telnyx/models/ai/conversation_add_message_params.rbs +5 -5
- data/sig/telnyx/models/ai/inference_embedding.rbs +6 -59
- data/sig/telnyx/models/ai/observability.rbs +58 -0
- data/sig/telnyx/models/ai/observability_req.rbs +58 -0
- data/sig/telnyx/models/call_dial_params.rbs +20 -0
- data/sig/telnyx/models/calls/action_transfer_params.rbs +20 -0
- data/sig/telnyx/models/enterprise_create_params.rbs +1 -1
- data/sig/telnyx/models/enterprise_public.rbs +1 -1
- data/sig/telnyx/models/enterprise_update_params.rbs +1 -1
- data/sig/telnyx/models/enterprises/reputation/{number_create_params.rbs → number_associate_params.rbs} +2 -2
- data/sig/telnyx/models/enterprises/reputation/{number_create_response.rbs → number_associate_response.rbs} +8 -8
- data/sig/telnyx/models/enterprises/reputation/{number_delete_params.rbs → number_disassociate_params.rbs} +2 -2
- data/sig/telnyx/models/enterprises/{reputation_list_params.rbs → reputation_disable_params.rbs} +2 -2
- data/sig/telnyx/models/enterprises/{reputation_create_params.rbs → reputation_enable_params.rbs} +9 -9
- data/sig/telnyx/models/enterprises/{reputation_create_response.rbs → reputation_enable_response.rbs} +2 -2
- data/sig/telnyx/models/enterprises/{reputation_delete_all_params.rbs → reputation_retrieve_params.rbs} +2 -2
- data/sig/telnyx/models/enterprises/{reputation_list_response.rbs → reputation_retrieve_response.rbs} +2 -2
- data/sig/telnyx/models/porting_orders/phone_number_block_list_params.rbs +9 -9
- data/sig/telnyx/models/voice_clone_create_from_upload_params.rbs +269 -58
- data/sig/telnyx/models/voice_clone_create_params.rbs +129 -44
- data/sig/telnyx/models/voice_clone_data.rbs +43 -0
- data/sig/telnyx/resources/ai/assistants/versions.rbs +1 -1
- data/sig/telnyx/resources/ai/assistants.rbs +2 -2
- data/sig/telnyx/resources/calls/actions.rbs +1 -0
- data/sig/telnyx/resources/calls.rbs +1 -0
- data/sig/telnyx/resources/enterprises/reputation/numbers.rbs +7 -7
- data/sig/telnyx/resources/enterprises/reputation.rbs +8 -8
- data/sig/telnyx/resources/voice_clones.rbs +2 -12
- metadata +31 -25
|
@@ -114,19 +114,12 @@ module Telnyx
|
|
|
114
114
|
sig { params(name: String).void }
|
|
115
115
|
attr_writer :name
|
|
116
116
|
|
|
117
|
-
sig
|
|
118
|
-
returns(
|
|
119
|
-
T.nilable(
|
|
120
|
-
Telnyx::AI::Assistants::UpdateAssistant::ObservabilitySettings
|
|
121
|
-
)
|
|
122
|
-
)
|
|
123
|
-
end
|
|
117
|
+
sig { returns(T.nilable(Telnyx::AI::ObservabilityReq)) }
|
|
124
118
|
attr_reader :observability_settings
|
|
125
119
|
|
|
126
120
|
sig do
|
|
127
121
|
params(
|
|
128
|
-
observability_settings:
|
|
129
|
-
Telnyx::AI::Assistants::UpdateAssistant::ObservabilitySettings::OrHash
|
|
122
|
+
observability_settings: Telnyx::AI::ObservabilityReq::OrHash
|
|
130
123
|
).void
|
|
131
124
|
end
|
|
132
125
|
attr_writer :observability_settings
|
|
@@ -238,8 +231,7 @@ module Telnyx
|
|
|
238
231
|
messaging_settings: Telnyx::AI::MessagingSettings::OrHash,
|
|
239
232
|
model: String,
|
|
240
233
|
name: String,
|
|
241
|
-
observability_settings:
|
|
242
|
-
Telnyx::AI::Assistants::UpdateAssistant::ObservabilitySettings::OrHash,
|
|
234
|
+
observability_settings: Telnyx::AI::ObservabilityReq::OrHash,
|
|
243
235
|
privacy_settings: Telnyx::AI::PrivacySettings::OrHash,
|
|
244
236
|
telephony_settings: Telnyx::AI::TelephonySettings::OrHash,
|
|
245
237
|
tool_ids: T::Array[String],
|
|
@@ -325,8 +317,7 @@ module Telnyx
|
|
|
325
317
|
messaging_settings: Telnyx::AI::MessagingSettings,
|
|
326
318
|
model: String,
|
|
327
319
|
name: String,
|
|
328
|
-
observability_settings:
|
|
329
|
-
Telnyx::AI::Assistants::UpdateAssistant::ObservabilitySettings,
|
|
320
|
+
observability_settings: Telnyx::AI::ObservabilityReq,
|
|
330
321
|
privacy_settings: Telnyx::AI::PrivacySettings,
|
|
331
322
|
telephony_settings: Telnyx::AI::TelephonySettings,
|
|
332
323
|
tool_ids: T::Array[String],
|
|
@@ -353,116 +344,6 @@ module Telnyx
|
|
|
353
344
|
end
|
|
354
345
|
def to_hash
|
|
355
346
|
end
|
|
356
|
-
|
|
357
|
-
class ObservabilitySettings < Telnyx::Internal::Type::BaseModel
|
|
358
|
-
OrHash =
|
|
359
|
-
T.type_alias do
|
|
360
|
-
T.any(
|
|
361
|
-
Telnyx::AI::Assistants::UpdateAssistant::ObservabilitySettings,
|
|
362
|
-
Telnyx::Internal::AnyHash
|
|
363
|
-
)
|
|
364
|
-
end
|
|
365
|
-
|
|
366
|
-
sig { returns(T.nilable(String)) }
|
|
367
|
-
attr_reader :host
|
|
368
|
-
|
|
369
|
-
sig { params(host: String).void }
|
|
370
|
-
attr_writer :host
|
|
371
|
-
|
|
372
|
-
sig { returns(T.nilable(String)) }
|
|
373
|
-
attr_reader :public_key_ref
|
|
374
|
-
|
|
375
|
-
sig { params(public_key_ref: String).void }
|
|
376
|
-
attr_writer :public_key_ref
|
|
377
|
-
|
|
378
|
-
sig { returns(T.nilable(String)) }
|
|
379
|
-
attr_reader :secret_key_ref
|
|
380
|
-
|
|
381
|
-
sig { params(secret_key_ref: String).void }
|
|
382
|
-
attr_writer :secret_key_ref
|
|
383
|
-
|
|
384
|
-
sig do
|
|
385
|
-
returns(
|
|
386
|
-
T.nilable(
|
|
387
|
-
Telnyx::AI::Assistants::UpdateAssistant::ObservabilitySettings::Status::OrSymbol
|
|
388
|
-
)
|
|
389
|
-
)
|
|
390
|
-
end
|
|
391
|
-
attr_reader :status
|
|
392
|
-
|
|
393
|
-
sig do
|
|
394
|
-
params(
|
|
395
|
-
status:
|
|
396
|
-
Telnyx::AI::Assistants::UpdateAssistant::ObservabilitySettings::Status::OrSymbol
|
|
397
|
-
).void
|
|
398
|
-
end
|
|
399
|
-
attr_writer :status
|
|
400
|
-
|
|
401
|
-
sig do
|
|
402
|
-
params(
|
|
403
|
-
host: String,
|
|
404
|
-
public_key_ref: String,
|
|
405
|
-
secret_key_ref: String,
|
|
406
|
-
status:
|
|
407
|
-
Telnyx::AI::Assistants::UpdateAssistant::ObservabilitySettings::Status::OrSymbol
|
|
408
|
-
).returns(T.attached_class)
|
|
409
|
-
end
|
|
410
|
-
def self.new(
|
|
411
|
-
host: nil,
|
|
412
|
-
public_key_ref: nil,
|
|
413
|
-
secret_key_ref: nil,
|
|
414
|
-
status: nil
|
|
415
|
-
)
|
|
416
|
-
end
|
|
417
|
-
|
|
418
|
-
sig do
|
|
419
|
-
override.returns(
|
|
420
|
-
{
|
|
421
|
-
host: String,
|
|
422
|
-
public_key_ref: String,
|
|
423
|
-
secret_key_ref: String,
|
|
424
|
-
status:
|
|
425
|
-
Telnyx::AI::Assistants::UpdateAssistant::ObservabilitySettings::Status::OrSymbol
|
|
426
|
-
}
|
|
427
|
-
)
|
|
428
|
-
end
|
|
429
|
-
def to_hash
|
|
430
|
-
end
|
|
431
|
-
|
|
432
|
-
module Status
|
|
433
|
-
extend Telnyx::Internal::Type::Enum
|
|
434
|
-
|
|
435
|
-
TaggedSymbol =
|
|
436
|
-
T.type_alias do
|
|
437
|
-
T.all(
|
|
438
|
-
Symbol,
|
|
439
|
-
Telnyx::AI::Assistants::UpdateAssistant::ObservabilitySettings::Status
|
|
440
|
-
)
|
|
441
|
-
end
|
|
442
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
443
|
-
|
|
444
|
-
ENABLED =
|
|
445
|
-
T.let(
|
|
446
|
-
:enabled,
|
|
447
|
-
Telnyx::AI::Assistants::UpdateAssistant::ObservabilitySettings::Status::TaggedSymbol
|
|
448
|
-
)
|
|
449
|
-
DISABLED =
|
|
450
|
-
T.let(
|
|
451
|
-
:disabled,
|
|
452
|
-
Telnyx::AI::Assistants::UpdateAssistant::ObservabilitySettings::Status::TaggedSymbol
|
|
453
|
-
)
|
|
454
|
-
|
|
455
|
-
sig do
|
|
456
|
-
override.returns(
|
|
457
|
-
T::Array[
|
|
458
|
-
Telnyx::AI::Assistants::UpdateAssistant::ObservabilitySettings::Status::TaggedSymbol
|
|
459
|
-
]
|
|
460
|
-
)
|
|
461
|
-
end
|
|
462
|
-
def self.values
|
|
463
|
-
end
|
|
464
|
-
end
|
|
465
|
-
end
|
|
466
347
|
end
|
|
467
348
|
end
|
|
468
349
|
end
|
|
@@ -160,12 +160,12 @@ module Telnyx
|
|
|
160
160
|
Integer,
|
|
161
161
|
T::Boolean,
|
|
162
162
|
T::Array[
|
|
163
|
-
Telnyx::AI::ConversationAddMessageParams::Metadata::
|
|
163
|
+
Telnyx::AI::ConversationAddMessageParams::Metadata::MetadataArrayValue::Variants
|
|
164
164
|
]
|
|
165
165
|
)
|
|
166
166
|
end
|
|
167
167
|
|
|
168
|
-
module
|
|
168
|
+
module MetadataArrayValue
|
|
169
169
|
extend Telnyx::Internal::Type::Union
|
|
170
170
|
|
|
171
171
|
Variants = T.type_alias { T.any(String, Integer, T::Boolean) }
|
|
@@ -173,7 +173,7 @@ module Telnyx
|
|
|
173
173
|
sig do
|
|
174
174
|
override.returns(
|
|
175
175
|
T::Array[
|
|
176
|
-
Telnyx::AI::ConversationAddMessageParams::Metadata::
|
|
176
|
+
Telnyx::AI::ConversationAddMessageParams::Metadata::MetadataArrayValue::Variants
|
|
177
177
|
]
|
|
178
178
|
)
|
|
179
179
|
end
|
|
@@ -191,11 +191,11 @@ module Telnyx
|
|
|
191
191
|
def self.variants
|
|
192
192
|
end
|
|
193
193
|
|
|
194
|
-
|
|
194
|
+
MetadataArrayValueArray =
|
|
195
195
|
T.let(
|
|
196
196
|
Telnyx::Internal::Type::ArrayOf[
|
|
197
197
|
union:
|
|
198
|
-
Telnyx::AI::ConversationAddMessageParams::Metadata::
|
|
198
|
+
Telnyx::AI::ConversationAddMessageParams::Metadata::MetadataArrayValue
|
|
199
199
|
],
|
|
200
200
|
Telnyx::Internal::Type::Converter
|
|
201
201
|
)
|
|
@@ -111,18 +111,11 @@ module Telnyx
|
|
|
111
111
|
end
|
|
112
112
|
attr_writer :messaging_settings
|
|
113
113
|
|
|
114
|
-
sig
|
|
115
|
-
returns(
|
|
116
|
-
T.nilable(Telnyx::AI::InferenceEmbedding::ObservabilitySettings)
|
|
117
|
-
)
|
|
118
|
-
end
|
|
114
|
+
sig { returns(T.nilable(Telnyx::AI::Observability)) }
|
|
119
115
|
attr_reader :observability_settings
|
|
120
116
|
|
|
121
117
|
sig do
|
|
122
|
-
params(
|
|
123
|
-
observability_settings:
|
|
124
|
-
Telnyx::AI::InferenceEmbedding::ObservabilitySettings::OrHash
|
|
125
|
-
).void
|
|
118
|
+
params(observability_settings: Telnyx::AI::Observability::OrHash).void
|
|
126
119
|
end
|
|
127
120
|
attr_writer :observability_settings
|
|
128
121
|
|
|
@@ -207,8 +200,7 @@ module Telnyx
|
|
|
207
200
|
insight_settings: Telnyx::AI::InsightSettings::OrHash,
|
|
208
201
|
llm_api_key_ref: String,
|
|
209
202
|
messaging_settings: Telnyx::AI::MessagingSettings::OrHash,
|
|
210
|
-
observability_settings:
|
|
211
|
-
Telnyx::AI::InferenceEmbedding::ObservabilitySettings::OrHash,
|
|
203
|
+
observability_settings: Telnyx::AI::Observability::OrHash,
|
|
212
204
|
privacy_settings: Telnyx::AI::PrivacySettings::OrHash,
|
|
213
205
|
telephony_settings: Telnyx::AI::TelephonySettings::OrHash,
|
|
214
206
|
tools:
|
|
@@ -298,8 +290,7 @@ module Telnyx
|
|
|
298
290
|
insight_settings: Telnyx::AI::InsightSettings,
|
|
299
291
|
llm_api_key_ref: String,
|
|
300
292
|
messaging_settings: Telnyx::AI::MessagingSettings,
|
|
301
|
-
observability_settings:
|
|
302
|
-
Telnyx::AI::InferenceEmbedding::ObservabilitySettings,
|
|
293
|
+
observability_settings: Telnyx::AI::Observability,
|
|
303
294
|
privacy_settings: Telnyx::AI::PrivacySettings,
|
|
304
295
|
telephony_settings: Telnyx::AI::TelephonySettings,
|
|
305
296
|
tools: T::Array[Telnyx::AI::AssistantTool::Variants],
|
|
@@ -311,116 +302,6 @@ module Telnyx
|
|
|
311
302
|
end
|
|
312
303
|
def to_hash
|
|
313
304
|
end
|
|
314
|
-
|
|
315
|
-
class ObservabilitySettings < Telnyx::Internal::Type::BaseModel
|
|
316
|
-
OrHash =
|
|
317
|
-
T.type_alias do
|
|
318
|
-
T.any(
|
|
319
|
-
Telnyx::AI::InferenceEmbedding::ObservabilitySettings,
|
|
320
|
-
Telnyx::Internal::AnyHash
|
|
321
|
-
)
|
|
322
|
-
end
|
|
323
|
-
|
|
324
|
-
sig { returns(T.nilable(String)) }
|
|
325
|
-
attr_reader :host
|
|
326
|
-
|
|
327
|
-
sig { params(host: String).void }
|
|
328
|
-
attr_writer :host
|
|
329
|
-
|
|
330
|
-
sig { returns(T.nilable(String)) }
|
|
331
|
-
attr_reader :public_key_ref
|
|
332
|
-
|
|
333
|
-
sig { params(public_key_ref: String).void }
|
|
334
|
-
attr_writer :public_key_ref
|
|
335
|
-
|
|
336
|
-
sig { returns(T.nilable(String)) }
|
|
337
|
-
attr_reader :secret_key_ref
|
|
338
|
-
|
|
339
|
-
sig { params(secret_key_ref: String).void }
|
|
340
|
-
attr_writer :secret_key_ref
|
|
341
|
-
|
|
342
|
-
sig do
|
|
343
|
-
returns(
|
|
344
|
-
T.nilable(
|
|
345
|
-
Telnyx::AI::InferenceEmbedding::ObservabilitySettings::Status::TaggedSymbol
|
|
346
|
-
)
|
|
347
|
-
)
|
|
348
|
-
end
|
|
349
|
-
attr_reader :status
|
|
350
|
-
|
|
351
|
-
sig do
|
|
352
|
-
params(
|
|
353
|
-
status:
|
|
354
|
-
Telnyx::AI::InferenceEmbedding::ObservabilitySettings::Status::OrSymbol
|
|
355
|
-
).void
|
|
356
|
-
end
|
|
357
|
-
attr_writer :status
|
|
358
|
-
|
|
359
|
-
sig do
|
|
360
|
-
params(
|
|
361
|
-
host: String,
|
|
362
|
-
public_key_ref: String,
|
|
363
|
-
secret_key_ref: String,
|
|
364
|
-
status:
|
|
365
|
-
Telnyx::AI::InferenceEmbedding::ObservabilitySettings::Status::OrSymbol
|
|
366
|
-
).returns(T.attached_class)
|
|
367
|
-
end
|
|
368
|
-
def self.new(
|
|
369
|
-
host: nil,
|
|
370
|
-
public_key_ref: nil,
|
|
371
|
-
secret_key_ref: nil,
|
|
372
|
-
status: nil
|
|
373
|
-
)
|
|
374
|
-
end
|
|
375
|
-
|
|
376
|
-
sig do
|
|
377
|
-
override.returns(
|
|
378
|
-
{
|
|
379
|
-
host: String,
|
|
380
|
-
public_key_ref: String,
|
|
381
|
-
secret_key_ref: String,
|
|
382
|
-
status:
|
|
383
|
-
Telnyx::AI::InferenceEmbedding::ObservabilitySettings::Status::TaggedSymbol
|
|
384
|
-
}
|
|
385
|
-
)
|
|
386
|
-
end
|
|
387
|
-
def to_hash
|
|
388
|
-
end
|
|
389
|
-
|
|
390
|
-
module Status
|
|
391
|
-
extend Telnyx::Internal::Type::Enum
|
|
392
|
-
|
|
393
|
-
TaggedSymbol =
|
|
394
|
-
T.type_alias do
|
|
395
|
-
T.all(
|
|
396
|
-
Symbol,
|
|
397
|
-
Telnyx::AI::InferenceEmbedding::ObservabilitySettings::Status
|
|
398
|
-
)
|
|
399
|
-
end
|
|
400
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
401
|
-
|
|
402
|
-
ENABLED =
|
|
403
|
-
T.let(
|
|
404
|
-
:enabled,
|
|
405
|
-
Telnyx::AI::InferenceEmbedding::ObservabilitySettings::Status::TaggedSymbol
|
|
406
|
-
)
|
|
407
|
-
DISABLED =
|
|
408
|
-
T.let(
|
|
409
|
-
:disabled,
|
|
410
|
-
Telnyx::AI::InferenceEmbedding::ObservabilitySettings::Status::TaggedSymbol
|
|
411
|
-
)
|
|
412
|
-
|
|
413
|
-
sig do
|
|
414
|
-
override.returns(
|
|
415
|
-
T::Array[
|
|
416
|
-
Telnyx::AI::InferenceEmbedding::ObservabilitySettings::Status::TaggedSymbol
|
|
417
|
-
]
|
|
418
|
-
)
|
|
419
|
-
end
|
|
420
|
-
def self.values
|
|
421
|
-
end
|
|
422
|
-
end
|
|
423
|
-
end
|
|
424
305
|
end
|
|
425
306
|
end
|
|
426
307
|
end
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module AI
|
|
6
|
+
class Observability < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(Telnyx::AI::Observability, Telnyx::Internal::AnyHash)
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
sig { returns(T.nilable(String)) }
|
|
13
|
+
attr_reader :host
|
|
14
|
+
|
|
15
|
+
sig { params(host: String).void }
|
|
16
|
+
attr_writer :host
|
|
17
|
+
|
|
18
|
+
sig { returns(T.nilable(String)) }
|
|
19
|
+
attr_reader :public_key_ref
|
|
20
|
+
|
|
21
|
+
sig { params(public_key_ref: String).void }
|
|
22
|
+
attr_writer :public_key_ref
|
|
23
|
+
|
|
24
|
+
sig { returns(T.nilable(String)) }
|
|
25
|
+
attr_reader :secret_key_ref
|
|
26
|
+
|
|
27
|
+
sig { params(secret_key_ref: String).void }
|
|
28
|
+
attr_writer :secret_key_ref
|
|
29
|
+
|
|
30
|
+
sig do
|
|
31
|
+
returns(T.nilable(Telnyx::AI::Observability::Status::TaggedSymbol))
|
|
32
|
+
end
|
|
33
|
+
attr_reader :status
|
|
34
|
+
|
|
35
|
+
sig { params(status: Telnyx::AI::Observability::Status::OrSymbol).void }
|
|
36
|
+
attr_writer :status
|
|
37
|
+
|
|
38
|
+
sig do
|
|
39
|
+
params(
|
|
40
|
+
host: String,
|
|
41
|
+
public_key_ref: String,
|
|
42
|
+
secret_key_ref: String,
|
|
43
|
+
status: Telnyx::AI::Observability::Status::OrSymbol
|
|
44
|
+
).returns(T.attached_class)
|
|
45
|
+
end
|
|
46
|
+
def self.new(
|
|
47
|
+
host: nil,
|
|
48
|
+
public_key_ref: nil,
|
|
49
|
+
secret_key_ref: nil,
|
|
50
|
+
status: nil
|
|
51
|
+
)
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
sig do
|
|
55
|
+
override.returns(
|
|
56
|
+
{
|
|
57
|
+
host: String,
|
|
58
|
+
public_key_ref: String,
|
|
59
|
+
secret_key_ref: String,
|
|
60
|
+
status: Telnyx::AI::Observability::Status::TaggedSymbol
|
|
61
|
+
}
|
|
62
|
+
)
|
|
63
|
+
end
|
|
64
|
+
def to_hash
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
module Status
|
|
68
|
+
extend Telnyx::Internal::Type::Enum
|
|
69
|
+
|
|
70
|
+
TaggedSymbol =
|
|
71
|
+
T.type_alias { T.all(Symbol, Telnyx::AI::Observability::Status) }
|
|
72
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
73
|
+
|
|
74
|
+
ENABLED =
|
|
75
|
+
T.let(:enabled, Telnyx::AI::Observability::Status::TaggedSymbol)
|
|
76
|
+
DISABLED =
|
|
77
|
+
T.let(:disabled, Telnyx::AI::Observability::Status::TaggedSymbol)
|
|
78
|
+
|
|
79
|
+
sig do
|
|
80
|
+
override.returns(
|
|
81
|
+
T::Array[Telnyx::AI::Observability::Status::TaggedSymbol]
|
|
82
|
+
)
|
|
83
|
+
end
|
|
84
|
+
def self.values
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
end
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module AI
|
|
6
|
+
class ObservabilityReq < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(Telnyx::AI::ObservabilityReq, Telnyx::Internal::AnyHash)
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
sig { returns(T.nilable(String)) }
|
|
13
|
+
attr_reader :host
|
|
14
|
+
|
|
15
|
+
sig { params(host: String).void }
|
|
16
|
+
attr_writer :host
|
|
17
|
+
|
|
18
|
+
sig { returns(T.nilable(String)) }
|
|
19
|
+
attr_reader :public_key_ref
|
|
20
|
+
|
|
21
|
+
sig { params(public_key_ref: String).void }
|
|
22
|
+
attr_writer :public_key_ref
|
|
23
|
+
|
|
24
|
+
sig { returns(T.nilable(String)) }
|
|
25
|
+
attr_reader :secret_key_ref
|
|
26
|
+
|
|
27
|
+
sig { params(secret_key_ref: String).void }
|
|
28
|
+
attr_writer :secret_key_ref
|
|
29
|
+
|
|
30
|
+
sig do
|
|
31
|
+
returns(T.nilable(Telnyx::AI::ObservabilityReq::Status::OrSymbol))
|
|
32
|
+
end
|
|
33
|
+
attr_reader :status
|
|
34
|
+
|
|
35
|
+
sig do
|
|
36
|
+
params(status: Telnyx::AI::ObservabilityReq::Status::OrSymbol).void
|
|
37
|
+
end
|
|
38
|
+
attr_writer :status
|
|
39
|
+
|
|
40
|
+
sig do
|
|
41
|
+
params(
|
|
42
|
+
host: String,
|
|
43
|
+
public_key_ref: String,
|
|
44
|
+
secret_key_ref: String,
|
|
45
|
+
status: Telnyx::AI::ObservabilityReq::Status::OrSymbol
|
|
46
|
+
).returns(T.attached_class)
|
|
47
|
+
end
|
|
48
|
+
def self.new(
|
|
49
|
+
host: nil,
|
|
50
|
+
public_key_ref: nil,
|
|
51
|
+
secret_key_ref: nil,
|
|
52
|
+
status: nil
|
|
53
|
+
)
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
sig do
|
|
57
|
+
override.returns(
|
|
58
|
+
{
|
|
59
|
+
host: String,
|
|
60
|
+
public_key_ref: String,
|
|
61
|
+
secret_key_ref: String,
|
|
62
|
+
status: Telnyx::AI::ObservabilityReq::Status::OrSymbol
|
|
63
|
+
}
|
|
64
|
+
)
|
|
65
|
+
end
|
|
66
|
+
def to_hash
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
module Status
|
|
70
|
+
extend Telnyx::Internal::Type::Enum
|
|
71
|
+
|
|
72
|
+
TaggedSymbol =
|
|
73
|
+
T.type_alias { T.all(Symbol, Telnyx::AI::ObservabilityReq::Status) }
|
|
74
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
75
|
+
|
|
76
|
+
ENABLED =
|
|
77
|
+
T.let(:enabled, Telnyx::AI::ObservabilityReq::Status::TaggedSymbol)
|
|
78
|
+
DISABLED =
|
|
79
|
+
T.let(:disabled, Telnyx::AI::ObservabilityReq::Status::TaggedSymbol)
|
|
80
|
+
|
|
81
|
+
sig do
|
|
82
|
+
override.returns(
|
|
83
|
+
T::Array[Telnyx::AI::ObservabilityReq::Status::TaggedSymbol]
|
|
84
|
+
)
|
|
85
|
+
end
|
|
86
|
+
def self.values
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
end
|
|
@@ -224,6 +224,15 @@ module Telnyx
|
|
|
224
224
|
sig { params(prevent_double_bridge: T::Boolean).void }
|
|
225
225
|
attr_writer :prevent_double_bridge
|
|
226
226
|
|
|
227
|
+
# Indicates the privacy level to be used for the call. When set to `id`, caller ID
|
|
228
|
+
# information (name and number) will be hidden from the called party. When set to
|
|
229
|
+
# `none` or omitted, caller ID will be shown normally.
|
|
230
|
+
sig { returns(T.nilable(Telnyx::CallDialParams::Privacy::OrSymbol)) }
|
|
231
|
+
attr_reader :privacy
|
|
232
|
+
|
|
233
|
+
sig { params(privacy: Telnyx::CallDialParams::Privacy::OrSymbol).void }
|
|
234
|
+
attr_writer :privacy
|
|
235
|
+
|
|
227
236
|
# Start recording automatically after an event. Disabled by default.
|
|
228
237
|
sig { returns(T.nilable(Telnyx::CallDialParams::Record::OrSymbol)) }
|
|
229
238
|
attr_reader :record
|
|
@@ -570,6 +579,7 @@ module Telnyx
|
|
|
570
579
|
park_after_unbridge: String,
|
|
571
580
|
preferred_codecs: String,
|
|
572
581
|
prevent_double_bridge: T::Boolean,
|
|
582
|
+
privacy: Telnyx::CallDialParams::Privacy::OrSymbol,
|
|
573
583
|
record: Telnyx::CallDialParams::Record::OrSymbol,
|
|
574
584
|
record_channels: Telnyx::CallDialParams::RecordChannels::OrSymbol,
|
|
575
585
|
record_custom_file_name: String,
|
|
@@ -694,6 +704,10 @@ module Telnyx
|
|
|
694
704
|
# Prevents bridging and hangs up the call if the target is already bridged.
|
|
695
705
|
# Disabled by default.
|
|
696
706
|
prevent_double_bridge: nil,
|
|
707
|
+
# Indicates the privacy level to be used for the call. When set to `id`, caller ID
|
|
708
|
+
# information (name and number) will be hidden from the called party. When set to
|
|
709
|
+
# `none` or omitted, caller ID will be shown normally.
|
|
710
|
+
privacy: nil,
|
|
697
711
|
# Start recording automatically after an event. Disabled by default.
|
|
698
712
|
record: nil,
|
|
699
713
|
# Defines which channel should be recorded ('single' or 'dual') when `record` is
|
|
@@ -818,6 +832,7 @@ module Telnyx
|
|
|
818
832
|
park_after_unbridge: String,
|
|
819
833
|
preferred_codecs: String,
|
|
820
834
|
prevent_double_bridge: T::Boolean,
|
|
835
|
+
privacy: Telnyx::CallDialParams::Privacy::OrSymbol,
|
|
821
836
|
record: Telnyx::CallDialParams::Record::OrSymbol,
|
|
822
837
|
record_channels: Telnyx::CallDialParams::RecordChannels::OrSymbol,
|
|
823
838
|
record_custom_file_name: String,
|
|
@@ -1479,6 +1494,28 @@ module Telnyx
|
|
|
1479
1494
|
end
|
|
1480
1495
|
end
|
|
1481
1496
|
|
|
1497
|
+
# Indicates the privacy level to be used for the call. When set to `id`, caller ID
|
|
1498
|
+
# information (name and number) will be hidden from the called party. When set to
|
|
1499
|
+
# `none` or omitted, caller ID will be shown normally.
|
|
1500
|
+
module Privacy
|
|
1501
|
+
extend Telnyx::Internal::Type::Enum
|
|
1502
|
+
|
|
1503
|
+
TaggedSymbol =
|
|
1504
|
+
T.type_alias { T.all(Symbol, Telnyx::CallDialParams::Privacy) }
|
|
1505
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
1506
|
+
|
|
1507
|
+
ID = T.let(:id, Telnyx::CallDialParams::Privacy::TaggedSymbol)
|
|
1508
|
+
NONE = T.let(:none, Telnyx::CallDialParams::Privacy::TaggedSymbol)
|
|
1509
|
+
|
|
1510
|
+
sig do
|
|
1511
|
+
override.returns(
|
|
1512
|
+
T::Array[Telnyx::CallDialParams::Privacy::TaggedSymbol]
|
|
1513
|
+
)
|
|
1514
|
+
end
|
|
1515
|
+
def self.values
|
|
1516
|
+
end
|
|
1517
|
+
end
|
|
1518
|
+
|
|
1482
1519
|
# Start recording automatically after an event. Disabled by default.
|
|
1483
1520
|
module Record
|
|
1484
1521
|
extend Telnyx::Internal::Type::Enum
|
|
@@ -188,6 +188,23 @@ module Telnyx
|
|
|
188
188
|
sig { params(preferred_codecs: String).void }
|
|
189
189
|
attr_writer :preferred_codecs
|
|
190
190
|
|
|
191
|
+
# Indicates the privacy level to be used for the call. When set to `id`, caller ID
|
|
192
|
+
# information (name and number) will be hidden from the called party. When set to
|
|
193
|
+
# `none` or omitted, caller ID will be shown normally.
|
|
194
|
+
sig do
|
|
195
|
+
returns(
|
|
196
|
+
T.nilable(Telnyx::Calls::ActionTransferParams::Privacy::OrSymbol)
|
|
197
|
+
)
|
|
198
|
+
end
|
|
199
|
+
attr_reader :privacy
|
|
200
|
+
|
|
201
|
+
sig do
|
|
202
|
+
params(
|
|
203
|
+
privacy: Telnyx::Calls::ActionTransferParams::Privacy::OrSymbol
|
|
204
|
+
).void
|
|
205
|
+
end
|
|
206
|
+
attr_writer :privacy
|
|
207
|
+
|
|
191
208
|
# Start recording automatically after an event. Disabled by default.
|
|
192
209
|
sig do
|
|
193
210
|
returns(
|
|
@@ -500,6 +517,7 @@ module Telnyx
|
|
|
500
517
|
mute_dtmf: Telnyx::Calls::ActionTransferParams::MuteDtmf::OrSymbol,
|
|
501
518
|
park_after_unbridge: String,
|
|
502
519
|
preferred_codecs: String,
|
|
520
|
+
privacy: Telnyx::Calls::ActionTransferParams::Privacy::OrSymbol,
|
|
503
521
|
record: Telnyx::Calls::ActionTransferParams::Record::OrSymbol,
|
|
504
522
|
record_channels:
|
|
505
523
|
Telnyx::Calls::ActionTransferParams::RecordChannels::OrSymbol,
|
|
@@ -594,6 +612,10 @@ module Telnyx
|
|
|
594
612
|
# call. The codecs supported are `G722`, `PCMU`, `PCMA`, `G729`, `OPUS`, `VP8`,
|
|
595
613
|
# `H264`, `AMR-WB`.
|
|
596
614
|
preferred_codecs: nil,
|
|
615
|
+
# Indicates the privacy level to be used for the call. When set to `id`, caller ID
|
|
616
|
+
# information (name and number) will be hidden from the called party. When set to
|
|
617
|
+
# `none` or omitted, caller ID will be shown normally.
|
|
618
|
+
privacy: nil,
|
|
597
619
|
# Start recording automatically after an event. Disabled by default.
|
|
598
620
|
record: nil,
|
|
599
621
|
# Defines which channel should be recorded ('single' or 'dual') when `record` is
|
|
@@ -692,6 +714,7 @@ module Telnyx
|
|
|
692
714
|
Telnyx::Calls::ActionTransferParams::MuteDtmf::OrSymbol,
|
|
693
715
|
park_after_unbridge: String,
|
|
694
716
|
preferred_codecs: String,
|
|
717
|
+
privacy: Telnyx::Calls::ActionTransferParams::Privacy::OrSymbol,
|
|
695
718
|
record: Telnyx::Calls::ActionTransferParams::Record::OrSymbol,
|
|
696
719
|
record_channels:
|
|
697
720
|
Telnyx::Calls::ActionTransferParams::RecordChannels::OrSymbol,
|
|
@@ -1024,6 +1047,40 @@ module Telnyx
|
|
|
1024
1047
|
end
|
|
1025
1048
|
end
|
|
1026
1049
|
|
|
1050
|
+
# Indicates the privacy level to be used for the call. When set to `id`, caller ID
|
|
1051
|
+
# information (name and number) will be hidden from the called party. When set to
|
|
1052
|
+
# `none` or omitted, caller ID will be shown normally.
|
|
1053
|
+
module Privacy
|
|
1054
|
+
extend Telnyx::Internal::Type::Enum
|
|
1055
|
+
|
|
1056
|
+
TaggedSymbol =
|
|
1057
|
+
T.type_alias do
|
|
1058
|
+
T.all(Symbol, Telnyx::Calls::ActionTransferParams::Privacy)
|
|
1059
|
+
end
|
|
1060
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
1061
|
+
|
|
1062
|
+
ID =
|
|
1063
|
+
T.let(
|
|
1064
|
+
:id,
|
|
1065
|
+
Telnyx::Calls::ActionTransferParams::Privacy::TaggedSymbol
|
|
1066
|
+
)
|
|
1067
|
+
NONE =
|
|
1068
|
+
T.let(
|
|
1069
|
+
:none,
|
|
1070
|
+
Telnyx::Calls::ActionTransferParams::Privacy::TaggedSymbol
|
|
1071
|
+
)
|
|
1072
|
+
|
|
1073
|
+
sig do
|
|
1074
|
+
override.returns(
|
|
1075
|
+
T::Array[
|
|
1076
|
+
Telnyx::Calls::ActionTransferParams::Privacy::TaggedSymbol
|
|
1077
|
+
]
|
|
1078
|
+
)
|
|
1079
|
+
end
|
|
1080
|
+
def self.values
|
|
1081
|
+
end
|
|
1082
|
+
end
|
|
1083
|
+
|
|
1027
1084
|
# Start recording automatically after an event. Disabled by default.
|
|
1028
1085
|
module Record
|
|
1029
1086
|
extend Telnyx::Internal::Type::Enum
|