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.
Files changed (154) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +22 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/models/ai/anthropic/v1_messages_params.rb +209 -0
  5. data/lib/telnyx/models/ai/anthropic/v1_messages_response.rb +12 -0
  6. data/lib/telnyx/models/ai/assistant_create_params.rb +2 -2
  7. data/lib/telnyx/models/ai/assistant_tool.rb +25 -1
  8. data/lib/telnyx/models/ai/assistant_update_params.rb +2 -2
  9. data/lib/telnyx/models/ai/assistants/update_assistant.rb +2 -2
  10. data/lib/telnyx/models/ai/conversations/conversation_insight_retrieve_aggregates_params.rb +103 -0
  11. data/lib/telnyx/models/ai/conversations/conversation_insight_retrieve_aggregates_response.rb +54 -0
  12. data/lib/telnyx/models/ai/inference_embedding.rb +6 -6
  13. data/lib/telnyx/models/ai/pay_tool_params.rb +46 -0
  14. data/lib/telnyx/models/ai/tool_create_params.rb +7 -1
  15. data/lib/telnyx/models/ai/tool_update_params.rb +7 -1
  16. data/lib/telnyx/models/ai/transcription_settings.rb +3 -3
  17. data/lib/telnyx/models/call_answered.rb +35 -3
  18. data/lib/telnyx/models/call_dial_params.rb +13 -1
  19. data/lib/telnyx/models/call_hangup.rb +35 -3
  20. data/lib/telnyx/models/call_initiated.rb +35 -3
  21. data/lib/telnyx/models/calls/transcription_config.rb +8 -4
  22. data/lib/telnyx/models/calls/transcription_engine_parakeet_config.rb +1 -1
  23. data/lib/telnyx/models/doc_reqs_requirement.rb +29 -4
  24. data/lib/telnyx/models/inbound_message.rb +278 -28
  25. data/lib/telnyx/models/inbound_message_webhook_event.rb +70 -3
  26. data/lib/telnyx/models/managed_account_list_params.rb +45 -3
  27. data/lib/telnyx/models/requirement_list_params.rb +10 -1
  28. data/lib/telnyx/models/requirement_retrieve_params.rb +14 -1
  29. data/lib/telnyx/models/speech_to_text_retrieve_transcription_params.rb +1 -1
  30. data/lib/telnyx/models/storage/cloudf_create_params.rb +56 -0
  31. data/lib/telnyx/models/storage/cloudf_delete_params.rb +22 -0
  32. data/lib/telnyx/models/storage/cloudf_list_params.rb +109 -0
  33. data/lib/telnyx/models/storage/cloudf_list_response.rb +165 -0
  34. data/lib/telnyx/models/storage/cloudf_retrieve_params.rb +22 -0
  35. data/lib/telnyx/models/storage/cloudf_update_params.rb +36 -0
  36. data/lib/telnyx/models/storage/cloudfs/action_rotate_meta_token_params.rb +30 -0
  37. data/lib/telnyx/models/storage/cloudfs_filesystem_detail_response_wrapper.rb +129 -0
  38. data/lib/telnyx/models/storage/cloudfs_filesystem_response_wrapper.rb +129 -0
  39. data/lib/telnyx/models/storage/cloudfs_filesystem_status.rb +28 -0
  40. data/lib/telnyx/models/verify_profile.rb +2 -2
  41. data/lib/telnyx/models/verify_profile_create_params.rb +2 -2
  42. data/lib/telnyx/models/verify_profile_update_params.rb +2 -2
  43. data/lib/telnyx/resources/ai/anthropic/v1.rb +91 -0
  44. data/lib/telnyx/resources/ai/anthropic.rb +20 -0
  45. data/lib/telnyx/resources/ai/assistants/versions.rb +1 -1
  46. data/lib/telnyx/resources/ai/assistants.rb +2 -2
  47. data/lib/telnyx/resources/ai/conversations/conversation_insights.rb +55 -0
  48. data/lib/telnyx/resources/ai/conversations.rb +5 -0
  49. data/lib/telnyx/resources/ai/tools.rb +5 -2
  50. data/lib/telnyx/resources/ai.rb +4 -0
  51. data/lib/telnyx/resources/calls.rb +3 -1
  52. data/lib/telnyx/resources/requirements.rb +13 -3
  53. data/lib/telnyx/resources/storage/cloudfs/actions.rb +54 -0
  54. data/lib/telnyx/resources/storage/cloudfs.rb +187 -0
  55. data/lib/telnyx/resources/storage.rb +6 -0
  56. data/lib/telnyx/version.rb +1 -1
  57. data/lib/telnyx.rb +20 -0
  58. data/rbi/telnyx/models/ai/anthropic/v1_messages_params.rbi +314 -0
  59. data/rbi/telnyx/models/ai/anthropic/v1_messages_response.rbi +15 -0
  60. data/rbi/telnyx/models/ai/assistant_create_params.rbi +8 -4
  61. data/rbi/telnyx/models/ai/assistant_tool.rbi +37 -1
  62. data/rbi/telnyx/models/ai/assistant_update_params.rbi +8 -4
  63. data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +8 -4
  64. data/rbi/telnyx/models/ai/conversations/conversation_insight_retrieve_aggregates_params.rbi +188 -0
  65. data/rbi/telnyx/models/ai/conversations/conversation_insight_retrieve_aggregates_response.rbi +94 -0
  66. data/rbi/telnyx/models/ai/inference_embedding.rbi +12 -6
  67. data/rbi/telnyx/models/ai/pay_tool_params.rbi +71 -0
  68. data/rbi/telnyx/models/ai/tool_create_params.rbi +9 -0
  69. data/rbi/telnyx/models/ai/tool_update_params.rbi +9 -0
  70. data/rbi/telnyx/models/ai/transcription_settings.rbi +5 -5
  71. data/rbi/telnyx/models/call_answered.rbi +92 -4
  72. data/rbi/telnyx/models/call_dial_params.rbi +19 -0
  73. data/rbi/telnyx/models/call_hangup.rbi +90 -4
  74. data/rbi/telnyx/models/call_initiated.rbi +94 -4
  75. data/rbi/telnyx/models/calls/transcription_config.rbi +15 -7
  76. data/rbi/telnyx/models/calls/transcription_engine_parakeet_config.rbi +2 -2
  77. data/rbi/telnyx/models/doc_reqs_requirement.rbi +38 -9
  78. data/rbi/telnyx/models/inbound_message.rbi +324 -58
  79. data/rbi/telnyx/models/inbound_message_webhook_event.rbi +173 -4
  80. data/rbi/telnyx/models/managed_account_list_params.rbi +130 -6
  81. data/rbi/telnyx/models/requirement_list_params.rbi +13 -0
  82. data/rbi/telnyx/models/requirement_retrieve_params.rbi +21 -2
  83. data/rbi/telnyx/models/speech_to_text_retrieve_transcription_params.rbi +2 -2
  84. data/rbi/telnyx/models/storage/cloudf_create_params.rbi +103 -0
  85. data/rbi/telnyx/models/storage/cloudf_delete_params.rbi +40 -0
  86. data/rbi/telnyx/models/storage/cloudf_list_params.rbi +232 -0
  87. data/rbi/telnyx/models/storage/cloudf_list_response.rbi +327 -0
  88. data/rbi/telnyx/models/storage/cloudf_retrieve_params.rbi +40 -0
  89. data/rbi/telnyx/models/storage/cloudf_update_params.rbi +61 -0
  90. data/rbi/telnyx/models/storage/cloudfs/action_rotate_meta_token_params.rbi +50 -0
  91. data/rbi/telnyx/models/storage/cloudfs_filesystem_detail_response_wrapper.rbi +229 -0
  92. data/rbi/telnyx/models/storage/cloudfs_filesystem_response_wrapper.rbi +227 -0
  93. data/rbi/telnyx/models/storage/cloudfs_filesystem_status.rbi +57 -0
  94. data/rbi/telnyx/models/verify_profile.rbi +2 -2
  95. data/rbi/telnyx/models/verify_profile_create_params.rbi +2 -2
  96. data/rbi/telnyx/models/verify_profile_update_params.rbi +2 -2
  97. data/rbi/telnyx/resources/ai/anthropic/v1.rbi +106 -0
  98. data/rbi/telnyx/resources/ai/anthropic.rbi +17 -0
  99. data/rbi/telnyx/resources/ai/assistants/versions.rbi +2 -1
  100. data/rbi/telnyx/resources/ai/assistants.rbi +4 -2
  101. data/rbi/telnyx/resources/ai/conversations/conversation_insights.rbi +68 -0
  102. data/rbi/telnyx/resources/ai/conversations.rbi +6 -0
  103. data/rbi/telnyx/resources/ai/tools.rbi +4 -0
  104. data/rbi/telnyx/resources/ai.rbi +3 -0
  105. data/rbi/telnyx/resources/calls.rbi +7 -0
  106. data/rbi/telnyx/resources/managed_accounts.rbi +1 -1
  107. data/rbi/telnyx/resources/requirements.rbi +8 -0
  108. data/rbi/telnyx/resources/storage/cloudfs/actions.rbi +46 -0
  109. data/rbi/telnyx/resources/storage/cloudfs.rbi +152 -0
  110. data/rbi/telnyx/resources/storage.rbi +5 -0
  111. data/sig/telnyx/models/ai/anthropic/v1_messages_params.rbs +175 -0
  112. data/sig/telnyx/models/ai/anthropic/v1_messages_response.rbs +11 -0
  113. data/sig/telnyx/models/ai/assistant_tool.rbs +13 -0
  114. data/sig/telnyx/models/ai/conversations/conversation_insight_retrieve_aggregates_params.rbs +74 -0
  115. data/sig/telnyx/models/ai/conversations/conversation_insight_retrieve_aggregates_response.rbs +34 -0
  116. data/sig/telnyx/models/ai/pay_tool_params.rbs +41 -0
  117. data/sig/telnyx/models/ai/tool_create_params.rbs +7 -0
  118. data/sig/telnyx/models/ai/tool_update_params.rbs +7 -0
  119. data/sig/telnyx/models/ai/transcription_settings.rbs +2 -2
  120. data/sig/telnyx/models/call_answered.rbs +39 -6
  121. data/sig/telnyx/models/call_dial_params.rbs +7 -0
  122. data/sig/telnyx/models/call_hangup.rbs +39 -6
  123. data/sig/telnyx/models/call_initiated.rbs +39 -6
  124. data/sig/telnyx/models/calls/transcription_config.rbs +2 -2
  125. data/sig/telnyx/models/calls/transcription_engine_parakeet_config.rbs +2 -2
  126. data/sig/telnyx/models/doc_reqs_requirement.rbs +25 -8
  127. data/sig/telnyx/models/inbound_message.rbs +204 -35
  128. data/sig/telnyx/models/inbound_message_webhook_event.rbs +81 -5
  129. data/sig/telnyx/models/managed_account_list_params.rbs +47 -3
  130. data/sig/telnyx/models/requirement_list_params.rbs +8 -1
  131. data/sig/telnyx/models/requirement_retrieve_params.rbs +12 -2
  132. data/sig/telnyx/models/speech_to_text_retrieve_transcription_params.rbs +2 -2
  133. data/sig/telnyx/models/storage/cloudf_create_params.rbs +50 -0
  134. data/sig/telnyx/models/storage/cloudf_delete_params.rbs +22 -0
  135. data/sig/telnyx/models/storage/cloudf_list_params.rbs +112 -0
  136. data/sig/telnyx/models/storage/cloudf_list_response.rbs +163 -0
  137. data/sig/telnyx/models/storage/cloudf_retrieve_params.rbs +22 -0
  138. data/sig/telnyx/models/storage/cloudf_update_params.rbs +32 -0
  139. data/sig/telnyx/models/storage/cloudfs/action_rotate_meta_token_params.rbs +32 -0
  140. data/sig/telnyx/models/storage/cloudfs_filesystem_detail_response_wrapper.rbs +115 -0
  141. data/sig/telnyx/models/storage/cloudfs_filesystem_response_wrapper.rbs +115 -0
  142. data/sig/telnyx/models/storage/cloudfs_filesystem_status.rbs +21 -0
  143. data/sig/telnyx/resources/ai/anthropic/v1.rbs +35 -0
  144. data/sig/telnyx/resources/ai/anthropic.rbs +11 -0
  145. data/sig/telnyx/resources/ai/conversations/conversation_insights.rbs +20 -0
  146. data/sig/telnyx/resources/ai/conversations.rbs +2 -0
  147. data/sig/telnyx/resources/ai/tools.rbs +2 -0
  148. data/sig/telnyx/resources/ai.rbs +2 -0
  149. data/sig/telnyx/resources/calls.rbs +1 -0
  150. data/sig/telnyx/resources/requirements.rbs +2 -0
  151. data/sig/telnyx/resources/storage/cloudfs/actions.rbs +17 -0
  152. data/sig/telnyx/resources/storage/cloudfs.rbs +45 -0
  153. data/sig/telnyx/resources/storage.rbs +2 -0
  154. metadata +62 -2
@@ -38,6 +38,11 @@ module Telnyx
38
38
  # @return [Hash{Symbol=>Object}, nil]
39
39
  optional :invite, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown]
40
40
 
41
+ # @!attribute pay
42
+ #
43
+ # @return [Telnyx::Models::AI::PayToolParams, nil]
44
+ optional :pay, -> { Telnyx::AI::PayToolParams }
45
+
41
46
  # @!attribute retrieval
42
47
  #
43
48
  # @return [Hash{Symbol=>Object}, nil]
@@ -53,13 +58,14 @@ module Telnyx
53
58
  # @return [Hash{Symbol=>Object}, nil]
54
59
  optional :webhook, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown]
55
60
 
56
- # @!method initialize(display_name:, type:, client_side_tool: nil, function: nil, handoff: nil, invite: nil, retrieval: nil, timeout_ms: nil, webhook: nil, request_options: {})
61
+ # @!method initialize(display_name:, type:, client_side_tool: nil, function: nil, handoff: nil, invite: nil, pay: nil, retrieval: nil, timeout_ms: nil, webhook: nil, request_options: {})
57
62
  # @param display_name [String]
58
63
  # @param type [String]
59
64
  # @param client_side_tool [Hash{Symbol=>Object}]
60
65
  # @param function [Hash{Symbol=>Object}]
61
66
  # @param handoff [Hash{Symbol=>Object}]
62
67
  # @param invite [Hash{Symbol=>Object}]
68
+ # @param pay [Telnyx::Models::AI::PayToolParams]
63
69
  # @param retrieval [Hash{Symbol=>Object}]
64
70
  # @param timeout_ms [Integer]
65
71
  # @param webhook [Hash{Symbol=>Object}]
@@ -38,6 +38,11 @@ module Telnyx
38
38
  # @return [Hash{Symbol=>Object}, nil]
39
39
  optional :invite, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown]
40
40
 
41
+ # @!attribute pay
42
+ #
43
+ # @return [Telnyx::Models::AI::PayToolParams, nil]
44
+ optional :pay, -> { Telnyx::AI::PayToolParams }
45
+
41
46
  # @!attribute retrieval
42
47
  #
43
48
  # @return [Hash{Symbol=>Object}, nil]
@@ -58,13 +63,14 @@ module Telnyx
58
63
  # @return [Hash{Symbol=>Object}, nil]
59
64
  optional :webhook, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown]
60
65
 
61
- # @!method initialize(tool_id:, client_side_tool: nil, display_name: nil, function: nil, handoff: nil, invite: nil, retrieval: nil, timeout_ms: nil, type: nil, webhook: nil, request_options: {})
66
+ # @!method initialize(tool_id:, client_side_tool: nil, display_name: nil, function: nil, handoff: nil, invite: nil, pay: nil, retrieval: nil, timeout_ms: nil, type: nil, webhook: nil, request_options: {})
62
67
  # @param tool_id [String]
63
68
  # @param client_side_tool [Hash{Symbol=>Object}]
64
69
  # @param display_name [String]
65
70
  # @param function [Hash{Symbol=>Object}]
66
71
  # @param handoff [Hash{Symbol=>Object}]
67
72
  # @param invite [Hash{Symbol=>Object}]
73
+ # @param pay [Telnyx::Models::AI::PayToolParams]
68
74
  # @param retrieval [Hash{Symbol=>Object}]
69
75
  # @param timeout_ms [Integer]
70
76
  # @param type [String]
@@ -36,7 +36,7 @@ module Telnyx
36
36
  # - `xai/grok-stt` is a multilingual Grok STT model.
37
37
  # - `soniox/stt-rt-v4` is a multilingual streaming model with automatic language
38
38
  # detection and configurable endpointing.
39
- # - `parakeet/tdt-0.6b-v3` is a multilingual transcription model with automatic
39
+ # - `nvidia/parakeet-v3` is a multilingual transcription model with automatic
40
40
  # language detection.
41
41
  #
42
42
  # @return [Symbol, Telnyx::Models::AI::TranscriptionSettings::Model, nil]
@@ -80,7 +80,7 @@ module Telnyx
80
80
  # - `xai/grok-stt` is a multilingual Grok STT model.
81
81
  # - `soniox/stt-rt-v4` is a multilingual streaming model with automatic language
82
82
  # detection and configurable endpointing.
83
- # - `parakeet/tdt-0.6b-v3` is a multilingual transcription model with automatic
83
+ # - `nvidia/parakeet-v3` is a multilingual transcription model with automatic
84
84
  # language detection.
85
85
  #
86
86
  # @see Telnyx::Models::AI::TranscriptionSettings#model
@@ -94,7 +94,7 @@ module Telnyx
94
94
  ASSEMBLYAI_UNIVERSAL_STREAMING = :"assemblyai/universal-streaming"
95
95
  XAI_GROK_STT = :"xai/grok-stt"
96
96
  SONIOX_STT_RT_V4 = :"soniox/stt-rt-v4"
97
- PARAKEET_TDT_0_6B_V3 = :"parakeet/tdt-0.6b-v3"
97
+ NVIDIA_PARAKEET_V3 = :"nvidia/parakeet-v3"
98
98
  DISTIL_WHISPER_DISTIL_LARGE_V2 = :"distil-whisper/distil-large-v2"
99
99
  OPENAI_WHISPER_LARGE_V3_TURBO = :"openai/whisper-large-v3-turbo"
100
100
 
@@ -104,8 +104,8 @@ module Telnyx
104
104
  # @!attribute sip_headers
105
105
  # User-to-User and Diversion headers from sip invite.
106
106
  #
107
- # @return [Array<Telnyx::Models::SipHeader>, nil]
108
- optional :sip_headers, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::SipHeader] }
107
+ # @return [Array<Telnyx::Models::CallAnswered::Payload::SipHeader>, nil]
108
+ optional :sip_headers, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::CallAnswered::Payload::SipHeader] }
109
109
 
110
110
  # @!attribute start_time
111
111
  # ISO 8601 datetime of when the call started.
@@ -149,7 +149,7 @@ module Telnyx
149
149
  #
150
150
  # @param from [String] Number or SIP URI placing the call.
151
151
  #
152
- # @param sip_headers [Array<Telnyx::Models::SipHeader>] User-to-User and Diversion headers from sip invite.
152
+ # @param sip_headers [Array<Telnyx::Models::CallAnswered::Payload::SipHeader>] User-to-User and Diversion headers from sip invite.
153
153
  #
154
154
  # @param start_time [Time] ISO 8601 datetime of when the call started.
155
155
  #
@@ -159,6 +159,38 @@ module Telnyx
159
159
  #
160
160
  # @param to [String] Destination number or SIP URI of the call.
161
161
 
162
+ class SipHeader < Telnyx::Internal::Type::BaseModel
163
+ # @!attribute name
164
+ # The name of the header received from the SIP INVITE.
165
+ #
166
+ # @return [Symbol, Telnyx::Models::CallAnswered::Payload::SipHeader::Name]
167
+ required :name, enum: -> { Telnyx::CallAnswered::Payload::SipHeader::Name }
168
+
169
+ # @!attribute value
170
+ # The value of the header.
171
+ #
172
+ # @return [String]
173
+ required :value, String
174
+
175
+ # @!method initialize(name:, value:)
176
+ # @param name [Symbol, Telnyx::Models::CallAnswered::Payload::SipHeader::Name] The name of the header received from the SIP INVITE.
177
+ #
178
+ # @param value [String] The value of the header.
179
+
180
+ # The name of the header received from the SIP INVITE.
181
+ #
182
+ # @see Telnyx::Models::CallAnswered::Payload::SipHeader#name
183
+ module Name
184
+ extend Telnyx::Internal::Type::Enum
185
+
186
+ USER_TO_USER = :"User-to-User"
187
+ DIVERSION = :Diversion
188
+
189
+ # @!method self.values
190
+ # @return [Array<Symbol>]
191
+ end
192
+ end
193
+
162
194
  # State received from a command.
163
195
  #
164
196
  # @see Telnyx::Models::CallAnswered::Payload#state
@@ -288,6 +288,16 @@ module Telnyx
288
288
  # @return [Symbol, Telnyx::Models::CallDialParams::RecordTrim, nil]
289
289
  optional :record_trim, enum: -> { Telnyx::CallDialParams::RecordTrim }
290
290
 
291
+ # @!attribute retry_on_timeout
292
+ # Whether to keep trying the remaining routing paths (e.g. alternate
293
+ # providers/gateways) for the same destination after `timeout_secs` is reached for
294
+ # the current attempt. When set to `false`, reaching `timeout_secs` aborts the
295
+ # entire dial attempt and the `call.hangup` webhook reports a `hangup_cause` of
296
+ # `no_answer` instead of `timeout`.
297
+ #
298
+ # @return [Boolean, nil]
299
+ optional :retry_on_timeout, Telnyx::Internal::Type::Boolean
300
+
291
301
  # @!attribute send_digits_on_answer
292
302
  # DTMF digits to send automatically after the called party answers. Useful for
293
303
  # reaching an extension behind an IVR (e.g. `"200"` to dial extension 200 once the
@@ -486,7 +496,7 @@ module Telnyx
486
496
  # @return [Symbol, Telnyx::Models::CallDialParams::WebhookURLsMethod, nil]
487
497
  optional :webhook_urls_method, enum: -> { Telnyx::CallDialParams::WebhookURLsMethod }
488
498
 
489
- # @!method initialize(connection_id:, from:, to:, answering_machine_detection: nil, answering_machine_detection_config: nil, assistant: nil, audio_url: nil, billing_group_id: nil, bridge_intent: nil, bridge_on_answer: nil, client_state: nil, command_id: nil, conference_config: nil, conversation_relay_config: nil, custom_headers: nil, deepfake_detection: nil, dialogflow_config: nil, enable_dialogflow: nil, from_display_name: nil, link_to: nil, media_encryption: nil, media_name: nil, park_after_unbridge: nil, preferred_codecs: nil, prevent_double_bridge: nil, privacy: nil, record: nil, record_channels: nil, record_custom_file_name: nil, record_format: nil, record_max_length: nil, record_timeout_secs: nil, record_track: nil, record_trim: nil, send_digits_on_answer: nil, send_silence_when_idle: nil, sip_auth_password: nil, sip_auth_username: nil, sip_headers: nil, sip_region: nil, sip_transport_protocol: nil, sound_modifications: nil, stream_auth_token: nil, stream_bidirectional_codec: nil, stream_bidirectional_mode: nil, stream_bidirectional_sampling_rate: nil, stream_bidirectional_target_legs: nil, stream_codec: nil, stream_establish_before_call_originate: nil, stream_track: nil, stream_url: nil, supervise_call_control_id: nil, supervisor_role: nil, time_limit_secs: nil, timeout_secs: nil, transcription: nil, transcription_config: nil, webhook_retries_policies: nil, webhook_url: nil, webhook_url_method: nil, webhook_urls: nil, webhook_urls_method: nil, request_options: {})
499
+ # @!method initialize(connection_id:, from:, to:, answering_machine_detection: nil, answering_machine_detection_config: nil, assistant: nil, audio_url: nil, billing_group_id: nil, bridge_intent: nil, bridge_on_answer: nil, client_state: nil, command_id: nil, conference_config: nil, conversation_relay_config: nil, custom_headers: nil, deepfake_detection: nil, dialogflow_config: nil, enable_dialogflow: nil, from_display_name: nil, link_to: nil, media_encryption: nil, media_name: nil, park_after_unbridge: nil, preferred_codecs: nil, prevent_double_bridge: nil, privacy: nil, record: nil, record_channels: nil, record_custom_file_name: nil, record_format: nil, record_max_length: nil, record_timeout_secs: nil, record_track: nil, record_trim: nil, retry_on_timeout: nil, send_digits_on_answer: nil, send_silence_when_idle: nil, sip_auth_password: nil, sip_auth_username: nil, sip_headers: nil, sip_region: nil, sip_transport_protocol: nil, sound_modifications: nil, stream_auth_token: nil, stream_bidirectional_codec: nil, stream_bidirectional_mode: nil, stream_bidirectional_sampling_rate: nil, stream_bidirectional_target_legs: nil, stream_codec: nil, stream_establish_before_call_originate: nil, stream_track: nil, stream_url: nil, supervise_call_control_id: nil, supervisor_role: nil, time_limit_secs: nil, timeout_secs: nil, transcription: nil, transcription_config: nil, webhook_retries_policies: nil, webhook_url: nil, webhook_url_method: nil, webhook_urls: nil, webhook_urls_method: nil, request_options: {})
490
500
  # Some parameter documentations has been truncated, see
491
501
  # {Telnyx::Models::CallDialParams} for more details.
492
502
  #
@@ -558,6 +568,8 @@ module Telnyx
558
568
  #
559
569
  # @param record_trim [Symbol, Telnyx::Models::CallDialParams::RecordTrim] When set to `trim-silence`, silence will be removed from the beginning and end o
560
570
  #
571
+ # @param retry_on_timeout [Boolean] Whether to keep trying the remaining routing paths (e.g. alternate providers/gat
572
+ #
561
573
  # @param send_digits_on_answer [String] DTMF digits to send automatically after the called party answers. Useful for rea
562
574
  #
563
575
  # @param send_silence_when_idle [Boolean] Generate silence RTP packets when no transmission available.
@@ -133,8 +133,8 @@ module Telnyx
133
133
  # @!attribute sip_headers
134
134
  # User-to-User and Diversion headers from sip invite.
135
135
  #
136
- # @return [Array<Telnyx::Models::SipHeader>, nil]
137
- optional :sip_headers, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::SipHeader] }
136
+ # @return [Array<Telnyx::Models::CallHangup::Payload::SipHeader>, nil]
137
+ optional :sip_headers, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::CallHangup::Payload::SipHeader] }
138
138
 
139
139
  # @!attribute start_time
140
140
  # ISO 8601 datetime of when the call started.
@@ -186,7 +186,7 @@ module Telnyx
186
186
  #
187
187
  # @param sip_hangup_cause [String] The reason the call was ended (SIP response code). If the SIP response is unavai
188
188
  #
189
- # @param sip_headers [Array<Telnyx::Models::SipHeader>] User-to-User and Diversion headers from sip invite.
189
+ # @param sip_headers [Array<Telnyx::Models::CallHangup::Payload::SipHeader>] User-to-User and Diversion headers from sip invite.
190
190
  #
191
191
  # @param start_time [Time] ISO 8601 datetime of when the call started.
192
192
  #
@@ -324,6 +324,38 @@ module Telnyx
324
324
  # @return [Array<Symbol>]
325
325
  end
326
326
 
327
+ class SipHeader < Telnyx::Internal::Type::BaseModel
328
+ # @!attribute name
329
+ # The name of the header received from the SIP INVITE.
330
+ #
331
+ # @return [Symbol, Telnyx::Models::CallHangup::Payload::SipHeader::Name]
332
+ required :name, enum: -> { Telnyx::CallHangup::Payload::SipHeader::Name }
333
+
334
+ # @!attribute value
335
+ # The value of the header.
336
+ #
337
+ # @return [String]
338
+ required :value, String
339
+
340
+ # @!method initialize(name:, value:)
341
+ # @param name [Symbol, Telnyx::Models::CallHangup::Payload::SipHeader::Name] The name of the header received from the SIP INVITE.
342
+ #
343
+ # @param value [String] The value of the header.
344
+
345
+ # The name of the header received from the SIP INVITE.
346
+ #
347
+ # @see Telnyx::Models::CallHangup::Payload::SipHeader#name
348
+ module Name
349
+ extend Telnyx::Internal::Type::Enum
350
+
351
+ USER_TO_USER = :"User-to-User"
352
+ DIVERSION = :Diversion
353
+
354
+ # @!method self.values
355
+ # @return [Array<Symbol>]
356
+ end
357
+ end
358
+
327
359
  # State received from a command.
328
360
  #
329
361
  # @see Telnyx::Models::CallHangup::Payload#state
@@ -146,8 +146,8 @@ module Telnyx
146
146
  # @!attribute sip_headers
147
147
  # User-to-User and Diversion headers from sip invite.
148
148
  #
149
- # @return [Array<Telnyx::Models::SipHeader>, nil]
150
- optional :sip_headers, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::SipHeader] }
149
+ # @return [Array<Telnyx::Models::CallInitiated::Payload::SipHeader>, nil]
150
+ optional :sip_headers, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::CallInitiated::Payload::SipHeader] }
151
151
 
152
152
  # @!attribute start_time
153
153
  # ISO 8601 datetime of when the call started.
@@ -205,7 +205,7 @@ module Telnyx
205
205
  #
206
206
  # @param shaken_stir_validated [Boolean] Whether attestation was successfully validated or not.
207
207
  #
208
- # @param sip_headers [Array<Telnyx::Models::SipHeader>] User-to-User and Diversion headers from sip invite.
208
+ # @param sip_headers [Array<Telnyx::Models::CallInitiated::Payload::SipHeader>] User-to-User and Diversion headers from sip invite.
209
209
  #
210
210
  # @param start_time [Time] ISO 8601 datetime of when the call started.
211
211
  #
@@ -228,6 +228,38 @@ module Telnyx
228
228
  # @return [Array<Symbol>]
229
229
  end
230
230
 
231
+ class SipHeader < Telnyx::Internal::Type::BaseModel
232
+ # @!attribute name
233
+ # The name of the header received from the SIP INVITE.
234
+ #
235
+ # @return [Symbol, Telnyx::Models::CallInitiated::Payload::SipHeader::Name]
236
+ required :name, enum: -> { Telnyx::CallInitiated::Payload::SipHeader::Name }
237
+
238
+ # @!attribute value
239
+ # The value of the header.
240
+ #
241
+ # @return [String]
242
+ required :value, String
243
+
244
+ # @!method initialize(name:, value:)
245
+ # @param name [Symbol, Telnyx::Models::CallInitiated::Payload::SipHeader::Name] The name of the header received from the SIP INVITE.
246
+ #
247
+ # @param value [String] The value of the header.
248
+
249
+ # The name of the header received from the SIP INVITE.
250
+ #
251
+ # @see Telnyx::Models::CallInitiated::Payload::SipHeader#name
252
+ module Name
253
+ extend Telnyx::Internal::Type::Enum
254
+
255
+ USER_TO_USER = :"User-to-User"
256
+ DIVERSION = :Diversion
257
+
258
+ # @!method self.values
259
+ # @return [Array<Symbol>]
260
+ end
261
+ end
262
+
231
263
  # State received from a command.
232
264
  #
233
265
  # @see Telnyx::Models::CallInitiated::Payload#state
@@ -12,7 +12,11 @@ module Telnyx
12
12
  # controls the language hint), `multi` (no language hint), and language-specific
13
13
  # hints `en`, `es`, `fr`, `de`, `hi`, `ru`, `pt`, `ja`, `it`, and `nl`. For
14
14
  # `soniox/stt-rt-v4`, `auto` omits the language hint and lets Soniox auto-detect;
15
- # ISO 639-1 codes (e.g. `en`, `es`) bias detection toward that language.
15
+ # ISO 639-1 codes (e.g. `en`, `es`) bias detection toward that language. For
16
+ # `assemblyai/universal-streaming`, `auto` (or unset) enables native multilingual
17
+ # code-switching; ISO 639-1 codes (`en`, `es`, `de`, `fr`, `pt`, `it`, `tr`, `nl`,
18
+ # `sv`, `no`, `da`, `fi`, `hi`, `vi`, `ar`, `he`, `ja`, `zh`) bias the session to
19
+ # that language.
16
20
  #
17
21
  # @return [String, nil]
18
22
  optional :language, String
@@ -29,7 +33,7 @@ module Telnyx
29
33
  # - `xai/grok-stt` for live streaming transcription.
30
34
  # - `soniox/stt-rt-v4` for live streaming multilingual transcription with
31
35
  # automatic language detection.
32
- # - `parakeet/tdt-0.6b-v3` for multilingual transcription with automatic language
36
+ # - `nvidia/parakeet-v3` for multilingual transcription with automatic language
33
37
  # detection.
34
38
  # - `azure/fast` and `azure/realtime`; Azure models require `region`, and
35
39
  # unsupported regions require `api_key_ref`.
@@ -66,7 +70,7 @@ module Telnyx
66
70
  # - `xai/grok-stt` for live streaming transcription.
67
71
  # - `soniox/stt-rt-v4` for live streaming multilingual transcription with
68
72
  # automatic language detection.
69
- # - `parakeet/tdt-0.6b-v3` for multilingual transcription with automatic language
73
+ # - `nvidia/parakeet-v3` for multilingual transcription with automatic language
70
74
  # detection.
71
75
  # - `azure/fast` and `azure/realtime`; Azure models require `region`, and
72
76
  # unsupported regions require `api_key_ref`.
@@ -89,7 +93,7 @@ module Telnyx
89
93
  ASSEMBLYAI_UNIVERSAL_STREAMING = :"assemblyai/universal-streaming"
90
94
  XAI_GROK_STT = :"xai/grok-stt"
91
95
  SONIOX_STT_RT_V4 = :"soniox/stt-rt-v4"
92
- PARAKEET_TDT_0_6B_V3 = :"parakeet/tdt-0.6b-v3"
96
+ NVIDIA_PARAKEET_V3 = :"nvidia/parakeet-v3"
93
97
  AZURE_FAST = :"azure/fast"
94
98
  AZURE_REALTIME = :"azure/realtime"
95
99
  GOOGLE_LATEST_LONG = :"google/latest_long"
@@ -53,7 +53,7 @@ module Telnyx
53
53
  module TranscriptionModel
54
54
  extend Telnyx::Internal::Type::Enum
55
55
 
56
- PARAKEET_TDT_0_6B_V3 = :"parakeet/tdt-0.6b-v3"
56
+ NVIDIA_PARAKEET_V3 = :"nvidia/parakeet-v3"
57
57
 
58
58
  # @!method self.values
59
59
  # @return [Array<Symbol>]
@@ -43,26 +43,45 @@ module Telnyx
43
43
  # @return [String, nil]
44
44
  optional :created_at, String
45
45
 
46
+ # @!attribute effective_end_at
47
+ # When this version was superseded. NULL means this is the active or pending
48
+ # version.
49
+ #
50
+ # @return [Time, nil]
51
+ optional :effective_end_at, Time, nil?: true
52
+
53
+ # @!attribute effective_start_at
54
+ # When this version became (or will become) active.
55
+ #
56
+ # @return [Time, nil]
57
+ optional :effective_start_at, Time, nil?: true
58
+
46
59
  # @!attribute record_type
47
60
  # Identifies the type of the resource.
48
61
  #
49
62
  # @return [String, nil]
50
63
  optional :record_type, String
51
64
 
52
- # @!attribute requirements_types
65
+ # @!attribute requirement_types
53
66
  # Lists the requirement types necessary to fulfill this requirement
54
67
  #
55
68
  # @return [Array<Telnyx::Models::DocReqsRequirementType>, nil]
56
- optional :requirements_types, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::DocReqsRequirementType] }
69
+ optional :requirement_types, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::DocReqsRequirementType] }
57
70
 
58
71
  # @!attribute updated_at
59
72
  # ISO 8601 formatted date-time indicating when the resource was last updated.
60
73
  #
61
74
  # @return [String, nil]
62
75
  optional :updated_at, String
76
+
77
+ # @!attribute version
78
+ # Version number. Increments with each new version. Defaults to 1.
79
+ #
80
+ # @return [Integer, nil]
81
+ optional :version, Integer
63
82
  end
64
83
 
65
- # @!method initialize(id: nil, action: nil, country_code: nil, created_at: nil, locality: nil, phone_number_type: nil, record_type: nil, requirements_types: nil, updated_at: nil)
84
+ # @!method initialize(id: nil, action: nil, country_code: nil, created_at: nil, effective_end_at: nil, effective_start_at: nil, locality: nil, phone_number_type: nil, record_type: nil, requirement_types: nil, updated_at: nil, version: nil)
66
85
  # Some parameter documentations has been truncated, see
67
86
  # {Telnyx::Models::DocReqsRequirement} for more details.
68
87
  #
@@ -74,15 +93,21 @@ module Telnyx
74
93
  #
75
94
  # @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
76
95
  #
96
+ # @param effective_end_at [Time, nil] When this version was superseded. NULL means this is the active or pending versi
97
+ #
98
+ # @param effective_start_at [Time, nil] When this version became (or will become) active.
99
+ #
77
100
  # @param locality [String] The locality where this requirement applies
78
101
  #
79
102
  # @param phone_number_type [Symbol, Telnyx::Models::DocReqsRequirement::PhoneNumberType] Indicates the phone_number_type this requirement applies to. Leave blank if this
80
103
  #
81
104
  # @param record_type [String] Identifies the type of the resource.
82
105
  #
83
- # @param requirements_types [Array<Telnyx::Models::DocReqsRequirementType>] Lists the requirement types necessary to fulfill this requirement
106
+ # @param requirement_types [Array<Telnyx::Models::DocReqsRequirementType>] Lists the requirement types necessary to fulfill this requirement
84
107
  #
85
108
  # @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was last updated.
109
+ #
110
+ # @param version [Integer] Version number. Increments with each new version. Defaults to 1.
86
111
 
87
112
  # Indicates whether this requirement applies to branded_calling, ordering,
88
113
  # porting, or both ordering and porting