telnyx 5.156.0 → 5.158.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 +22 -0
- data/README.md +1 -1
- data/lib/telnyx/models/ai/anthropic/v1_messages_params.rb +209 -0
- data/lib/telnyx/models/ai/anthropic/v1_messages_response.rb +12 -0
- data/lib/telnyx/models/ai/assistant_create_params.rb +2 -2
- data/lib/telnyx/models/ai/assistant_tool.rb +25 -1
- data/lib/telnyx/models/ai/assistant_update_params.rb +2 -2
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +2 -2
- data/lib/telnyx/models/ai/conversations/conversation_insight_retrieve_aggregates_params.rb +103 -0
- data/lib/telnyx/models/ai/conversations/conversation_insight_retrieve_aggregates_response.rb +54 -0
- data/lib/telnyx/models/ai/inference_embedding.rb +6 -6
- data/lib/telnyx/models/ai/pay_tool_params.rb +46 -0
- data/lib/telnyx/models/ai/tool_create_params.rb +7 -1
- data/lib/telnyx/models/ai/tool_update_params.rb +7 -1
- data/lib/telnyx/models/ai/transcription_settings.rb +3 -3
- data/lib/telnyx/models/call_answered.rb +35 -3
- data/lib/telnyx/models/call_dial_params.rb +13 -1
- data/lib/telnyx/models/call_hangup.rb +35 -3
- data/lib/telnyx/models/call_initiated.rb +35 -3
- data/lib/telnyx/models/calls/transcription_config.rb +8 -4
- data/lib/telnyx/models/calls/transcription_engine_parakeet_config.rb +1 -1
- data/lib/telnyx/models/doc_reqs_requirement.rb +29 -4
- data/lib/telnyx/models/inbound_message.rb +278 -28
- data/lib/telnyx/models/inbound_message_webhook_event.rb +70 -3
- data/lib/telnyx/models/managed_account_list_params.rb +45 -3
- data/lib/telnyx/models/requirement_list_params.rb +10 -1
- data/lib/telnyx/models/requirement_retrieve_params.rb +14 -1
- data/lib/telnyx/models/speech_to_text_retrieve_transcription_params.rb +1 -1
- data/lib/telnyx/models/storage/cloudf_create_params.rb +56 -0
- data/lib/telnyx/models/storage/cloudf_delete_params.rb +22 -0
- data/lib/telnyx/models/storage/cloudf_list_params.rb +109 -0
- data/lib/telnyx/models/storage/cloudf_list_response.rb +165 -0
- data/lib/telnyx/models/storage/cloudf_retrieve_params.rb +22 -0
- data/lib/telnyx/models/storage/cloudf_update_params.rb +36 -0
- data/lib/telnyx/models/storage/cloudfs/action_rotate_meta_token_params.rb +30 -0
- data/lib/telnyx/models/storage/cloudfs_filesystem_detail_response_wrapper.rb +129 -0
- data/lib/telnyx/models/storage/cloudfs_filesystem_response_wrapper.rb +129 -0
- data/lib/telnyx/models/storage/cloudfs_filesystem_status.rb +28 -0
- data/lib/telnyx/models/verify_profile.rb +2 -2
- data/lib/telnyx/models/verify_profile_create_params.rb +2 -2
- data/lib/telnyx/models/verify_profile_update_params.rb +2 -2
- data/lib/telnyx/resources/ai/anthropic/v1.rb +91 -0
- data/lib/telnyx/resources/ai/anthropic.rb +20 -0
- data/lib/telnyx/resources/ai/assistants/versions.rb +1 -1
- data/lib/telnyx/resources/ai/assistants.rb +2 -2
- data/lib/telnyx/resources/ai/conversations/conversation_insights.rb +55 -0
- data/lib/telnyx/resources/ai/conversations.rb +5 -0
- data/lib/telnyx/resources/ai/tools.rb +5 -2
- data/lib/telnyx/resources/ai.rb +4 -0
- data/lib/telnyx/resources/calls.rb +3 -1
- data/lib/telnyx/resources/requirements.rb +13 -3
- data/lib/telnyx/resources/storage/cloudfs/actions.rb +54 -0
- data/lib/telnyx/resources/storage/cloudfs.rb +187 -0
- data/lib/telnyx/resources/storage.rb +6 -0
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +20 -0
- data/rbi/telnyx/models/ai/anthropic/v1_messages_params.rbi +314 -0
- data/rbi/telnyx/models/ai/anthropic/v1_messages_response.rbi +15 -0
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +8 -4
- data/rbi/telnyx/models/ai/assistant_tool.rbi +37 -1
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +8 -4
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +8 -4
- data/rbi/telnyx/models/ai/conversations/conversation_insight_retrieve_aggregates_params.rbi +188 -0
- data/rbi/telnyx/models/ai/conversations/conversation_insight_retrieve_aggregates_response.rbi +94 -0
- data/rbi/telnyx/models/ai/inference_embedding.rbi +12 -6
- data/rbi/telnyx/models/ai/pay_tool_params.rbi +71 -0
- data/rbi/telnyx/models/ai/tool_create_params.rbi +9 -0
- data/rbi/telnyx/models/ai/tool_update_params.rbi +9 -0
- data/rbi/telnyx/models/ai/transcription_settings.rbi +5 -5
- data/rbi/telnyx/models/call_answered.rbi +92 -4
- data/rbi/telnyx/models/call_dial_params.rbi +19 -0
- data/rbi/telnyx/models/call_hangup.rbi +90 -4
- data/rbi/telnyx/models/call_initiated.rbi +94 -4
- data/rbi/telnyx/models/calls/transcription_config.rbi +15 -7
- data/rbi/telnyx/models/calls/transcription_engine_parakeet_config.rbi +2 -2
- data/rbi/telnyx/models/doc_reqs_requirement.rbi +38 -9
- data/rbi/telnyx/models/inbound_message.rbi +324 -58
- data/rbi/telnyx/models/inbound_message_webhook_event.rbi +173 -4
- data/rbi/telnyx/models/managed_account_list_params.rbi +130 -6
- data/rbi/telnyx/models/requirement_list_params.rbi +13 -0
- data/rbi/telnyx/models/requirement_retrieve_params.rbi +21 -2
- data/rbi/telnyx/models/speech_to_text_retrieve_transcription_params.rbi +2 -2
- data/rbi/telnyx/models/storage/cloudf_create_params.rbi +103 -0
- data/rbi/telnyx/models/storage/cloudf_delete_params.rbi +40 -0
- data/rbi/telnyx/models/storage/cloudf_list_params.rbi +232 -0
- data/rbi/telnyx/models/storage/cloudf_list_response.rbi +327 -0
- data/rbi/telnyx/models/storage/cloudf_retrieve_params.rbi +40 -0
- data/rbi/telnyx/models/storage/cloudf_update_params.rbi +61 -0
- data/rbi/telnyx/models/storage/cloudfs/action_rotate_meta_token_params.rbi +50 -0
- data/rbi/telnyx/models/storage/cloudfs_filesystem_detail_response_wrapper.rbi +229 -0
- data/rbi/telnyx/models/storage/cloudfs_filesystem_response_wrapper.rbi +227 -0
- data/rbi/telnyx/models/storage/cloudfs_filesystem_status.rbi +57 -0
- data/rbi/telnyx/models/verify_profile.rbi +2 -2
- data/rbi/telnyx/models/verify_profile_create_params.rbi +2 -2
- data/rbi/telnyx/models/verify_profile_update_params.rbi +2 -2
- data/rbi/telnyx/resources/ai/anthropic/v1.rbi +106 -0
- data/rbi/telnyx/resources/ai/anthropic.rbi +17 -0
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +2 -1
- data/rbi/telnyx/resources/ai/assistants.rbi +4 -2
- data/rbi/telnyx/resources/ai/conversations/conversation_insights.rbi +68 -0
- data/rbi/telnyx/resources/ai/conversations.rbi +6 -0
- data/rbi/telnyx/resources/ai/tools.rbi +4 -0
- data/rbi/telnyx/resources/ai.rbi +3 -0
- data/rbi/telnyx/resources/calls.rbi +7 -0
- data/rbi/telnyx/resources/managed_accounts.rbi +1 -1
- data/rbi/telnyx/resources/requirements.rbi +8 -0
- data/rbi/telnyx/resources/storage/cloudfs/actions.rbi +46 -0
- data/rbi/telnyx/resources/storage/cloudfs.rbi +152 -0
- data/rbi/telnyx/resources/storage.rbi +5 -0
- data/sig/telnyx/models/ai/anthropic/v1_messages_params.rbs +175 -0
- data/sig/telnyx/models/ai/anthropic/v1_messages_response.rbs +11 -0
- data/sig/telnyx/models/ai/assistant_tool.rbs +13 -0
- data/sig/telnyx/models/ai/conversations/conversation_insight_retrieve_aggregates_params.rbs +74 -0
- data/sig/telnyx/models/ai/conversations/conversation_insight_retrieve_aggregates_response.rbs +34 -0
- data/sig/telnyx/models/ai/pay_tool_params.rbs +41 -0
- data/sig/telnyx/models/ai/tool_create_params.rbs +7 -0
- data/sig/telnyx/models/ai/tool_update_params.rbs +7 -0
- data/sig/telnyx/models/ai/transcription_settings.rbs +2 -2
- data/sig/telnyx/models/call_answered.rbs +39 -6
- data/sig/telnyx/models/call_dial_params.rbs +7 -0
- data/sig/telnyx/models/call_hangup.rbs +39 -6
- data/sig/telnyx/models/call_initiated.rbs +39 -6
- data/sig/telnyx/models/calls/transcription_config.rbs +2 -2
- data/sig/telnyx/models/calls/transcription_engine_parakeet_config.rbs +2 -2
- data/sig/telnyx/models/doc_reqs_requirement.rbs +25 -8
- data/sig/telnyx/models/inbound_message.rbs +204 -35
- data/sig/telnyx/models/inbound_message_webhook_event.rbs +81 -5
- data/sig/telnyx/models/managed_account_list_params.rbs +47 -3
- data/sig/telnyx/models/requirement_list_params.rbs +8 -1
- data/sig/telnyx/models/requirement_retrieve_params.rbs +12 -2
- data/sig/telnyx/models/speech_to_text_retrieve_transcription_params.rbs +2 -2
- data/sig/telnyx/models/storage/cloudf_create_params.rbs +50 -0
- data/sig/telnyx/models/storage/cloudf_delete_params.rbs +22 -0
- data/sig/telnyx/models/storage/cloudf_list_params.rbs +112 -0
- data/sig/telnyx/models/storage/cloudf_list_response.rbs +163 -0
- data/sig/telnyx/models/storage/cloudf_retrieve_params.rbs +22 -0
- data/sig/telnyx/models/storage/cloudf_update_params.rbs +32 -0
- data/sig/telnyx/models/storage/cloudfs/action_rotate_meta_token_params.rbs +32 -0
- data/sig/telnyx/models/storage/cloudfs_filesystem_detail_response_wrapper.rbs +115 -0
- data/sig/telnyx/models/storage/cloudfs_filesystem_response_wrapper.rbs +115 -0
- data/sig/telnyx/models/storage/cloudfs_filesystem_status.rbs +21 -0
- data/sig/telnyx/resources/ai/anthropic/v1.rbs +35 -0
- data/sig/telnyx/resources/ai/anthropic.rbs +11 -0
- data/sig/telnyx/resources/ai/conversations/conversation_insights.rbs +20 -0
- data/sig/telnyx/resources/ai/conversations.rbs +2 -0
- data/sig/telnyx/resources/ai/tools.rbs +2 -0
- data/sig/telnyx/resources/ai.rbs +2 -0
- data/sig/telnyx/resources/calls.rbs +1 -0
- data/sig/telnyx/resources/requirements.rbs +2 -0
- data/sig/telnyx/resources/storage/cloudfs/actions.rbs +17 -0
- data/sig/telnyx/resources/storage/cloudfs.rbs +45 -0
- data/sig/telnyx/resources/storage.rbs +2 -0
- metadata +62 -2
|
@@ -369,6 +369,17 @@ module Telnyx
|
|
|
369
369
|
end
|
|
370
370
|
attr_writer :record_trim
|
|
371
371
|
|
|
372
|
+
# Whether to keep trying the remaining routing paths (e.g. alternate
|
|
373
|
+
# providers/gateways) for the same destination after `timeout_secs` is reached for
|
|
374
|
+
# the current attempt. When set to `false`, reaching `timeout_secs` aborts the
|
|
375
|
+
# entire dial attempt and the `call.hangup` webhook reports a `hangup_cause` of
|
|
376
|
+
# `no_answer` instead of `timeout`.
|
|
377
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
378
|
+
attr_reader :retry_on_timeout
|
|
379
|
+
|
|
380
|
+
sig { params(retry_on_timeout: T::Boolean).void }
|
|
381
|
+
attr_writer :retry_on_timeout
|
|
382
|
+
|
|
372
383
|
# DTMF digits to send automatically after the called party answers. Useful for
|
|
373
384
|
# reaching an extension behind an IVR (e.g. `"200"` to dial extension 200 once the
|
|
374
385
|
# called party picks up). Allowed characters: `0-9`, `A-D`, `w` (0.5s pause), `W`
|
|
@@ -707,6 +718,7 @@ module Telnyx
|
|
|
707
718
|
record_timeout_secs: Integer,
|
|
708
719
|
record_track: Telnyx::CallDialParams::RecordTrack::OrSymbol,
|
|
709
720
|
record_trim: Telnyx::CallDialParams::RecordTrim::OrSymbol,
|
|
721
|
+
retry_on_timeout: T::Boolean,
|
|
710
722
|
send_digits_on_answer: String,
|
|
711
723
|
send_silence_when_idle: T::Boolean,
|
|
712
724
|
sip_auth_password: String,
|
|
@@ -894,6 +906,12 @@ module Telnyx
|
|
|
894
906
|
# When set to `trim-silence`, silence will be removed from the beginning and end
|
|
895
907
|
# of the recording.
|
|
896
908
|
record_trim: nil,
|
|
909
|
+
# Whether to keep trying the remaining routing paths (e.g. alternate
|
|
910
|
+
# providers/gateways) for the same destination after `timeout_secs` is reached for
|
|
911
|
+
# the current attempt. When set to `false`, reaching `timeout_secs` aborts the
|
|
912
|
+
# entire dial attempt and the `call.hangup` webhook reports a `hangup_cause` of
|
|
913
|
+
# `no_answer` instead of `timeout`.
|
|
914
|
+
retry_on_timeout: nil,
|
|
897
915
|
# DTMF digits to send automatically after the called party answers. Useful for
|
|
898
916
|
# reaching an extension behind an IVR (e.g. `"200"` to dial extension 200 once the
|
|
899
917
|
# called party picks up). Allowed characters: `0-9`, `A-D`, `w` (0.5s pause), `W`
|
|
@@ -1022,6 +1040,7 @@ module Telnyx
|
|
|
1022
1040
|
record_timeout_secs: Integer,
|
|
1023
1041
|
record_track: Telnyx::CallDialParams::RecordTrack::OrSymbol,
|
|
1024
1042
|
record_trim: Telnyx::CallDialParams::RecordTrim::OrSymbol,
|
|
1043
|
+
retry_on_timeout: T::Boolean,
|
|
1025
1044
|
send_digits_on_answer: String,
|
|
1026
1045
|
send_silence_when_idle: T::Boolean,
|
|
1027
1046
|
sip_auth_password: String,
|
|
@@ -212,10 +212,17 @@ module Telnyx
|
|
|
212
212
|
attr_writer :sip_hangup_cause
|
|
213
213
|
|
|
214
214
|
# User-to-User and Diversion headers from sip invite.
|
|
215
|
-
sig
|
|
215
|
+
sig do
|
|
216
|
+
returns(T.nilable(T::Array[Telnyx::CallHangup::Payload::SipHeader]))
|
|
217
|
+
end
|
|
216
218
|
attr_reader :sip_headers
|
|
217
219
|
|
|
218
|
-
sig
|
|
220
|
+
sig do
|
|
221
|
+
params(
|
|
222
|
+
sip_headers:
|
|
223
|
+
T::Array[Telnyx::CallHangup::Payload::SipHeader::OrHash]
|
|
224
|
+
).void
|
|
225
|
+
end
|
|
219
226
|
attr_writer :sip_headers
|
|
220
227
|
|
|
221
228
|
# ISO 8601 datetime of when the call started.
|
|
@@ -262,7 +269,8 @@ module Telnyx
|
|
|
262
269
|
hangup_cause: Telnyx::CallHangup::Payload::HangupCause::OrSymbol,
|
|
263
270
|
hangup_source: Telnyx::CallHangup::Payload::HangupSource::OrSymbol,
|
|
264
271
|
sip_hangup_cause: String,
|
|
265
|
-
sip_headers:
|
|
272
|
+
sip_headers:
|
|
273
|
+
T::Array[Telnyx::CallHangup::Payload::SipHeader::OrHash],
|
|
266
274
|
start_time: Time,
|
|
267
275
|
state: Telnyx::CallHangup::Payload::State::OrSymbol,
|
|
268
276
|
tags: T::Array[String],
|
|
@@ -329,7 +337,7 @@ module Telnyx
|
|
|
329
337
|
hangup_source:
|
|
330
338
|
Telnyx::CallHangup::Payload::HangupSource::TaggedSymbol,
|
|
331
339
|
sip_hangup_cause: String,
|
|
332
|
-
sip_headers: T::Array[Telnyx::SipHeader],
|
|
340
|
+
sip_headers: T::Array[Telnyx::CallHangup::Payload::SipHeader],
|
|
333
341
|
start_time: Time,
|
|
334
342
|
state: Telnyx::CallHangup::Payload::State::TaggedSymbol,
|
|
335
343
|
tags: T::Array[String],
|
|
@@ -644,6 +652,84 @@ module Telnyx
|
|
|
644
652
|
end
|
|
645
653
|
end
|
|
646
654
|
|
|
655
|
+
class SipHeader < Telnyx::Internal::Type::BaseModel
|
|
656
|
+
OrHash =
|
|
657
|
+
T.type_alias do
|
|
658
|
+
T.any(
|
|
659
|
+
Telnyx::CallHangup::Payload::SipHeader,
|
|
660
|
+
Telnyx::Internal::AnyHash
|
|
661
|
+
)
|
|
662
|
+
end
|
|
663
|
+
|
|
664
|
+
# The name of the header received from the SIP INVITE.
|
|
665
|
+
sig do
|
|
666
|
+
returns(Telnyx::CallHangup::Payload::SipHeader::Name::TaggedSymbol)
|
|
667
|
+
end
|
|
668
|
+
attr_accessor :name
|
|
669
|
+
|
|
670
|
+
# The value of the header.
|
|
671
|
+
sig { returns(String) }
|
|
672
|
+
attr_accessor :value
|
|
673
|
+
|
|
674
|
+
sig do
|
|
675
|
+
params(
|
|
676
|
+
name: Telnyx::CallHangup::Payload::SipHeader::Name::OrSymbol,
|
|
677
|
+
value: String
|
|
678
|
+
).returns(T.attached_class)
|
|
679
|
+
end
|
|
680
|
+
def self.new(
|
|
681
|
+
# The name of the header received from the SIP INVITE.
|
|
682
|
+
name:,
|
|
683
|
+
# The value of the header.
|
|
684
|
+
value:
|
|
685
|
+
)
|
|
686
|
+
end
|
|
687
|
+
|
|
688
|
+
sig do
|
|
689
|
+
override.returns(
|
|
690
|
+
{
|
|
691
|
+
name:
|
|
692
|
+
Telnyx::CallHangup::Payload::SipHeader::Name::TaggedSymbol,
|
|
693
|
+
value: String
|
|
694
|
+
}
|
|
695
|
+
)
|
|
696
|
+
end
|
|
697
|
+
def to_hash
|
|
698
|
+
end
|
|
699
|
+
|
|
700
|
+
# The name of the header received from the SIP INVITE.
|
|
701
|
+
module Name
|
|
702
|
+
extend Telnyx::Internal::Type::Enum
|
|
703
|
+
|
|
704
|
+
TaggedSymbol =
|
|
705
|
+
T.type_alias do
|
|
706
|
+
T.all(Symbol, Telnyx::CallHangup::Payload::SipHeader::Name)
|
|
707
|
+
end
|
|
708
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
709
|
+
|
|
710
|
+
USER_TO_USER =
|
|
711
|
+
T.let(
|
|
712
|
+
:"User-to-User",
|
|
713
|
+
Telnyx::CallHangup::Payload::SipHeader::Name::TaggedSymbol
|
|
714
|
+
)
|
|
715
|
+
DIVERSION =
|
|
716
|
+
T.let(
|
|
717
|
+
:Diversion,
|
|
718
|
+
Telnyx::CallHangup::Payload::SipHeader::Name::TaggedSymbol
|
|
719
|
+
)
|
|
720
|
+
|
|
721
|
+
sig do
|
|
722
|
+
override.returns(
|
|
723
|
+
T::Array[
|
|
724
|
+
Telnyx::CallHangup::Payload::SipHeader::Name::TaggedSymbol
|
|
725
|
+
]
|
|
726
|
+
)
|
|
727
|
+
end
|
|
728
|
+
def self.values
|
|
729
|
+
end
|
|
730
|
+
end
|
|
731
|
+
end
|
|
732
|
+
|
|
647
733
|
# State received from a command.
|
|
648
734
|
module State
|
|
649
735
|
extend Telnyx::Internal::Type::Enum
|
|
@@ -222,10 +222,19 @@ module Telnyx
|
|
|
222
222
|
attr_writer :shaken_stir_validated
|
|
223
223
|
|
|
224
224
|
# User-to-User and Diversion headers from sip invite.
|
|
225
|
-
sig
|
|
225
|
+
sig do
|
|
226
|
+
returns(
|
|
227
|
+
T.nilable(T::Array[Telnyx::CallInitiated::Payload::SipHeader])
|
|
228
|
+
)
|
|
229
|
+
end
|
|
226
230
|
attr_reader :sip_headers
|
|
227
231
|
|
|
228
|
-
sig
|
|
232
|
+
sig do
|
|
233
|
+
params(
|
|
234
|
+
sip_headers:
|
|
235
|
+
T::Array[Telnyx::CallInitiated::Payload::SipHeader::OrHash]
|
|
236
|
+
).void
|
|
237
|
+
end
|
|
229
238
|
attr_writer :sip_headers
|
|
230
239
|
|
|
231
240
|
# ISO 8601 datetime of when the call started.
|
|
@@ -278,7 +287,8 @@ module Telnyx
|
|
|
278
287
|
offered_codecs: String,
|
|
279
288
|
shaken_stir_attestation: String,
|
|
280
289
|
shaken_stir_validated: T::Boolean,
|
|
281
|
-
sip_headers:
|
|
290
|
+
sip_headers:
|
|
291
|
+
T::Array[Telnyx::CallInitiated::Payload::SipHeader::OrHash],
|
|
282
292
|
start_time: Time,
|
|
283
293
|
state: Telnyx::CallInitiated::Payload::State::OrSymbol,
|
|
284
294
|
tags: T::Array[String],
|
|
@@ -347,7 +357,7 @@ module Telnyx
|
|
|
347
357
|
offered_codecs: String,
|
|
348
358
|
shaken_stir_attestation: String,
|
|
349
359
|
shaken_stir_validated: T::Boolean,
|
|
350
|
-
sip_headers: T::Array[Telnyx::SipHeader],
|
|
360
|
+
sip_headers: T::Array[Telnyx::CallInitiated::Payload::SipHeader],
|
|
351
361
|
start_time: Time,
|
|
352
362
|
state: Telnyx::CallInitiated::Payload::State::TaggedSymbol,
|
|
353
363
|
tags: T::Array[String],
|
|
@@ -388,6 +398,86 @@ module Telnyx
|
|
|
388
398
|
end
|
|
389
399
|
end
|
|
390
400
|
|
|
401
|
+
class SipHeader < Telnyx::Internal::Type::BaseModel
|
|
402
|
+
OrHash =
|
|
403
|
+
T.type_alias do
|
|
404
|
+
T.any(
|
|
405
|
+
Telnyx::CallInitiated::Payload::SipHeader,
|
|
406
|
+
Telnyx::Internal::AnyHash
|
|
407
|
+
)
|
|
408
|
+
end
|
|
409
|
+
|
|
410
|
+
# The name of the header received from the SIP INVITE.
|
|
411
|
+
sig do
|
|
412
|
+
returns(
|
|
413
|
+
Telnyx::CallInitiated::Payload::SipHeader::Name::TaggedSymbol
|
|
414
|
+
)
|
|
415
|
+
end
|
|
416
|
+
attr_accessor :name
|
|
417
|
+
|
|
418
|
+
# The value of the header.
|
|
419
|
+
sig { returns(String) }
|
|
420
|
+
attr_accessor :value
|
|
421
|
+
|
|
422
|
+
sig do
|
|
423
|
+
params(
|
|
424
|
+
name: Telnyx::CallInitiated::Payload::SipHeader::Name::OrSymbol,
|
|
425
|
+
value: String
|
|
426
|
+
).returns(T.attached_class)
|
|
427
|
+
end
|
|
428
|
+
def self.new(
|
|
429
|
+
# The name of the header received from the SIP INVITE.
|
|
430
|
+
name:,
|
|
431
|
+
# The value of the header.
|
|
432
|
+
value:
|
|
433
|
+
)
|
|
434
|
+
end
|
|
435
|
+
|
|
436
|
+
sig do
|
|
437
|
+
override.returns(
|
|
438
|
+
{
|
|
439
|
+
name:
|
|
440
|
+
Telnyx::CallInitiated::Payload::SipHeader::Name::TaggedSymbol,
|
|
441
|
+
value: String
|
|
442
|
+
}
|
|
443
|
+
)
|
|
444
|
+
end
|
|
445
|
+
def to_hash
|
|
446
|
+
end
|
|
447
|
+
|
|
448
|
+
# The name of the header received from the SIP INVITE.
|
|
449
|
+
module Name
|
|
450
|
+
extend Telnyx::Internal::Type::Enum
|
|
451
|
+
|
|
452
|
+
TaggedSymbol =
|
|
453
|
+
T.type_alias do
|
|
454
|
+
T.all(Symbol, Telnyx::CallInitiated::Payload::SipHeader::Name)
|
|
455
|
+
end
|
|
456
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
457
|
+
|
|
458
|
+
USER_TO_USER =
|
|
459
|
+
T.let(
|
|
460
|
+
:"User-to-User",
|
|
461
|
+
Telnyx::CallInitiated::Payload::SipHeader::Name::TaggedSymbol
|
|
462
|
+
)
|
|
463
|
+
DIVERSION =
|
|
464
|
+
T.let(
|
|
465
|
+
:Diversion,
|
|
466
|
+
Telnyx::CallInitiated::Payload::SipHeader::Name::TaggedSymbol
|
|
467
|
+
)
|
|
468
|
+
|
|
469
|
+
sig do
|
|
470
|
+
override.returns(
|
|
471
|
+
T::Array[
|
|
472
|
+
Telnyx::CallInitiated::Payload::SipHeader::Name::TaggedSymbol
|
|
473
|
+
]
|
|
474
|
+
)
|
|
475
|
+
end
|
|
476
|
+
def self.values
|
|
477
|
+
end
|
|
478
|
+
end
|
|
479
|
+
end
|
|
480
|
+
|
|
391
481
|
# State received from a command.
|
|
392
482
|
module State
|
|
393
483
|
extend Telnyx::Internal::Type::Enum
|
|
@@ -16,7 +16,11 @@ module Telnyx
|
|
|
16
16
|
# controls the language hint), `multi` (no language hint), and language-specific
|
|
17
17
|
# hints `en`, `es`, `fr`, `de`, `hi`, `ru`, `pt`, `ja`, `it`, and `nl`. For
|
|
18
18
|
# `soniox/stt-rt-v4`, `auto` omits the language hint and lets Soniox auto-detect;
|
|
19
|
-
# ISO 639-1 codes (e.g. `en`, `es`) bias detection toward that language.
|
|
19
|
+
# ISO 639-1 codes (e.g. `en`, `es`) bias detection toward that language. For
|
|
20
|
+
# `assemblyai/universal-streaming`, `auto` (or unset) enables native multilingual
|
|
21
|
+
# code-switching; ISO 639-1 codes (`en`, `es`, `de`, `fr`, `pt`, `it`, `tr`, `nl`,
|
|
22
|
+
# `sv`, `no`, `da`, `fi`, `hi`, `vi`, `ar`, `he`, `ja`, `zh`) bias the session to
|
|
23
|
+
# that language.
|
|
20
24
|
sig { returns(T.nilable(String)) }
|
|
21
25
|
attr_reader :language
|
|
22
26
|
|
|
@@ -34,7 +38,7 @@ module Telnyx
|
|
|
34
38
|
# - `xai/grok-stt` for live streaming transcription.
|
|
35
39
|
# - `soniox/stt-rt-v4` for live streaming multilingual transcription with
|
|
36
40
|
# automatic language detection.
|
|
37
|
-
# - `parakeet
|
|
41
|
+
# - `nvidia/parakeet-v3` for multilingual transcription with automatic language
|
|
38
42
|
# detection.
|
|
39
43
|
# - `azure/fast` and `azure/realtime`; Azure models require `region`, and
|
|
40
44
|
# unsupported regions require `api_key_ref`.
|
|
@@ -75,7 +79,11 @@ module Telnyx
|
|
|
75
79
|
# controls the language hint), `multi` (no language hint), and language-specific
|
|
76
80
|
# hints `en`, `es`, `fr`, `de`, `hi`, `ru`, `pt`, `ja`, `it`, and `nl`. For
|
|
77
81
|
# `soniox/stt-rt-v4`, `auto` omits the language hint and lets Soniox auto-detect;
|
|
78
|
-
# ISO 639-1 codes (e.g. `en`, `es`) bias detection toward that language.
|
|
82
|
+
# ISO 639-1 codes (e.g. `en`, `es`) bias detection toward that language. For
|
|
83
|
+
# `assemblyai/universal-streaming`, `auto` (or unset) enables native multilingual
|
|
84
|
+
# code-switching; ISO 639-1 codes (`en`, `es`, `de`, `fr`, `pt`, `it`, `tr`, `nl`,
|
|
85
|
+
# `sv`, `no`, `da`, `fi`, `hi`, `vi`, `ar`, `he`, `ja`, `zh`) bias the session to
|
|
86
|
+
# that language.
|
|
79
87
|
language: nil,
|
|
80
88
|
# The speech to text model to be used by the voice assistant. Supported models
|
|
81
89
|
# include:
|
|
@@ -88,7 +96,7 @@ module Telnyx
|
|
|
88
96
|
# - `xai/grok-stt` for live streaming transcription.
|
|
89
97
|
# - `soniox/stt-rt-v4` for live streaming multilingual transcription with
|
|
90
98
|
# automatic language detection.
|
|
91
|
-
# - `parakeet
|
|
99
|
+
# - `nvidia/parakeet-v3` for multilingual transcription with automatic language
|
|
92
100
|
# detection.
|
|
93
101
|
# - `azure/fast` and `azure/realtime`; Azure models require `region`, and
|
|
94
102
|
# unsupported regions require `api_key_ref`.
|
|
@@ -123,7 +131,7 @@ module Telnyx
|
|
|
123
131
|
# - `xai/grok-stt` for live streaming transcription.
|
|
124
132
|
# - `soniox/stt-rt-v4` for live streaming multilingual transcription with
|
|
125
133
|
# automatic language detection.
|
|
126
|
-
# - `parakeet
|
|
134
|
+
# - `nvidia/parakeet-v3` for multilingual transcription with automatic language
|
|
127
135
|
# detection.
|
|
128
136
|
# - `azure/fast` and `azure/realtime`; Azure models require `region`, and
|
|
129
137
|
# unsupported regions require `api_key_ref`.
|
|
@@ -186,9 +194,9 @@ module Telnyx
|
|
|
186
194
|
:"soniox/stt-rt-v4",
|
|
187
195
|
Telnyx::Calls::TranscriptionConfig::Model::TaggedSymbol
|
|
188
196
|
)
|
|
189
|
-
|
|
197
|
+
NVIDIA_PARAKEET_V3 =
|
|
190
198
|
T.let(
|
|
191
|
-
:"parakeet
|
|
199
|
+
:"nvidia/parakeet-v3",
|
|
192
200
|
Telnyx::Calls::TranscriptionConfig::Model::TaggedSymbol
|
|
193
201
|
)
|
|
194
202
|
AZURE_FAST =
|
|
@@ -133,9 +133,9 @@ module Telnyx
|
|
|
133
133
|
end
|
|
134
134
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
135
135
|
|
|
136
|
-
|
|
136
|
+
NVIDIA_PARAKEET_V3 =
|
|
137
137
|
T.let(
|
|
138
|
-
:"parakeet
|
|
138
|
+
:"nvidia/parakeet-v3",
|
|
139
139
|
Telnyx::Calls::TranscriptionEngineParakeetConfig::TranscriptionModel::TaggedSymbol
|
|
140
140
|
)
|
|
141
141
|
|
|
@@ -63,6 +63,15 @@ module Telnyx
|
|
|
63
63
|
sig { params(created_at: String).void }
|
|
64
64
|
attr_writer :created_at
|
|
65
65
|
|
|
66
|
+
# When this version was superseded. NULL means this is the active or pending
|
|
67
|
+
# version.
|
|
68
|
+
sig { returns(T.nilable(Time)) }
|
|
69
|
+
attr_accessor :effective_end_at
|
|
70
|
+
|
|
71
|
+
# When this version became (or will become) active.
|
|
72
|
+
sig { returns(T.nilable(Time)) }
|
|
73
|
+
attr_accessor :effective_start_at
|
|
74
|
+
|
|
66
75
|
# Identifies the type of the resource.
|
|
67
76
|
sig { returns(T.nilable(String)) }
|
|
68
77
|
attr_reader :record_type
|
|
@@ -72,14 +81,14 @@ module Telnyx
|
|
|
72
81
|
|
|
73
82
|
# Lists the requirement types necessary to fulfill this requirement
|
|
74
83
|
sig { returns(T.nilable(T::Array[Telnyx::DocReqsRequirementType])) }
|
|
75
|
-
attr_reader :
|
|
84
|
+
attr_reader :requirement_types
|
|
76
85
|
|
|
77
86
|
sig do
|
|
78
87
|
params(
|
|
79
|
-
|
|
88
|
+
requirement_types: T::Array[Telnyx::DocReqsRequirementType::OrHash]
|
|
80
89
|
).void
|
|
81
90
|
end
|
|
82
|
-
attr_writer :
|
|
91
|
+
attr_writer :requirement_types
|
|
83
92
|
|
|
84
93
|
# ISO 8601 formatted date-time indicating when the resource was last updated.
|
|
85
94
|
sig { returns(T.nilable(String)) }
|
|
@@ -88,18 +97,28 @@ module Telnyx
|
|
|
88
97
|
sig { params(updated_at: String).void }
|
|
89
98
|
attr_writer :updated_at
|
|
90
99
|
|
|
100
|
+
# Version number. Increments with each new version. Defaults to 1.
|
|
101
|
+
sig { returns(T.nilable(Integer)) }
|
|
102
|
+
attr_reader :version
|
|
103
|
+
|
|
104
|
+
sig { params(version: Integer).void }
|
|
105
|
+
attr_writer :version
|
|
106
|
+
|
|
91
107
|
sig do
|
|
92
108
|
params(
|
|
93
109
|
id: String,
|
|
94
110
|
action: Telnyx::DocReqsRequirement::Action::OrSymbol,
|
|
95
111
|
country_code: String,
|
|
96
112
|
created_at: String,
|
|
113
|
+
effective_end_at: T.nilable(Time),
|
|
114
|
+
effective_start_at: T.nilable(Time),
|
|
97
115
|
locality: String,
|
|
98
116
|
phone_number_type:
|
|
99
117
|
Telnyx::DocReqsRequirement::PhoneNumberType::OrSymbol,
|
|
100
118
|
record_type: String,
|
|
101
|
-
|
|
102
|
-
updated_at: String
|
|
119
|
+
requirement_types: T::Array[Telnyx::DocReqsRequirementType::OrHash],
|
|
120
|
+
updated_at: String,
|
|
121
|
+
version: Integer
|
|
103
122
|
).returns(T.attached_class)
|
|
104
123
|
end
|
|
105
124
|
def self.new(
|
|
@@ -112,6 +131,11 @@ module Telnyx
|
|
|
112
131
|
country_code: nil,
|
|
113
132
|
# ISO 8601 formatted date-time indicating when the resource was created.
|
|
114
133
|
created_at: nil,
|
|
134
|
+
# When this version was superseded. NULL means this is the active or pending
|
|
135
|
+
# version.
|
|
136
|
+
effective_end_at: nil,
|
|
137
|
+
# When this version became (or will become) active.
|
|
138
|
+
effective_start_at: nil,
|
|
115
139
|
# The locality where this requirement applies
|
|
116
140
|
locality: nil,
|
|
117
141
|
# Indicates the phone_number_type this requirement applies to. Leave blank if this
|
|
@@ -120,9 +144,11 @@ module Telnyx
|
|
|
120
144
|
# Identifies the type of the resource.
|
|
121
145
|
record_type: nil,
|
|
122
146
|
# Lists the requirement types necessary to fulfill this requirement
|
|
123
|
-
|
|
147
|
+
requirement_types: nil,
|
|
124
148
|
# ISO 8601 formatted date-time indicating when the resource was last updated.
|
|
125
|
-
updated_at: nil
|
|
149
|
+
updated_at: nil,
|
|
150
|
+
# Version number. Increments with each new version. Defaults to 1.
|
|
151
|
+
version: nil
|
|
126
152
|
)
|
|
127
153
|
end
|
|
128
154
|
|
|
@@ -133,12 +159,15 @@ module Telnyx
|
|
|
133
159
|
action: Telnyx::DocReqsRequirement::Action::TaggedSymbol,
|
|
134
160
|
country_code: String,
|
|
135
161
|
created_at: String,
|
|
162
|
+
effective_end_at: T.nilable(Time),
|
|
163
|
+
effective_start_at: T.nilable(Time),
|
|
136
164
|
locality: String,
|
|
137
165
|
phone_number_type:
|
|
138
166
|
Telnyx::DocReqsRequirement::PhoneNumberType::TaggedSymbol,
|
|
139
167
|
record_type: String,
|
|
140
|
-
|
|
141
|
-
updated_at: String
|
|
168
|
+
requirement_types: T::Array[Telnyx::DocReqsRequirementType],
|
|
169
|
+
updated_at: String,
|
|
170
|
+
version: Integer
|
|
142
171
|
}
|
|
143
172
|
)
|
|
144
173
|
end
|