telnyx 5.53.0 → 5.54.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 572e614b2cbf070942c885dc67a89524bacdb0829c63839f9dd4ab97539f56a6
4
- data.tar.gz: 50df11b1425cdc860e32f97187c0520dde5074c8973c5dc2f76a3153897eac08
3
+ metadata.gz: 6fbe68b26624761d3c1b50bd6ed162c43de1c432bbfda7594f768665c0a6e1b7
4
+ data.tar.gz: 44ca7372e568826461d1c3c9afdb38e0c83b6ecd8cc119544ef5d08f7e593f1e
5
5
  SHA512:
6
- metadata.gz: 5722bebd153f36fae2e3c0e969f4650ad937f9eaea150ef7cb336ade1b5e4e9e96c650ee73c5a18ac7d4027da458cae20ba2b9f9aad85b67e85bd80dca76b9df
7
- data.tar.gz: ddc68e89c0b9a8338d3128ded2f60314e8002d9a8b966187f56dda3534986e409017da89ef006d75e3a36f5622c5e355cdc0fb349cfc26a1a55cc3b561e5af74
6
+ metadata.gz: 9f04022c0177c42ef3399d58997073529bbaf3cf3fb9f91d58ed6ad5a0477b2926e7a53be6fae523dbd44bcc51ccf68d379fd83c3373ecc97e94b2684bbcf72d
7
+ data.tar.gz: f54df6b47a4a9c5047f5fae9fe838bee1112ef3582b6ce826629da5b113277eaf8785077366e7cf79c2190ca96ad1f979c07f6a064244fdcdc06c6b6f4bb6229
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.54.0 (2026-03-16)
4
+
5
+ Full Changelog: [v5.53.0...v5.54.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.53.0...v5.54.0)
6
+
7
+ ### Features
8
+
9
+ * AI-2132: Add warm_message_delay_ms to transfer tool OpenAPI spec ([d3866f2](https://github.com/team-telnyx/telnyx-ruby/commit/d3866f266405b2bb897852f55bf4a0d0aa47e74f))
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * **client:** use absolutely qualified names ([13b1134](https://github.com/team-telnyx/telnyx-ruby/commit/13b1134826b4dc6c54e59ae560cc4c1a4b90c66d))
15
+
3
16
  ## 5.53.0 (2026-03-13)
4
17
 
5
18
  Full Changelog: [v5.52.0...v5.53.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.52.0...v5.53.0)
data/README.md CHANGED
@@ -24,7 +24,7 @@ To use this gem, install via Bundler by adding the following to your application
24
24
  <!-- x-release-please-start-version -->
25
25
 
26
26
  ```ruby
27
- gem "telnyx", "~> 5.53.0"
27
+ gem "telnyx", "~> 5.54.0"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
@@ -161,6 +161,15 @@ module Telnyx
161
161
  # @return [Telnyx::Models::AI::AssistantTool::Transfer::Transfer::VoicemailDetection, nil]
162
162
  optional :voicemail_detection, -> { Telnyx::AI::AssistantTool::Transfer::Transfer::VoicemailDetection }
163
163
 
164
+ # @!attribute warm_message_delay_ms
165
+ # Optional delay in milliseconds before playing the warm message audio when the
166
+ # transferred call is answered. When set, the audio_url is not included in the
167
+ # dial command; instead, playback starts after the specified delay. When not set,
168
+ # existing behavior (audio_url in dial) is preserved.
169
+ #
170
+ # @return [Integer, nil]
171
+ optional :warm_message_delay_ms, Integer, nil?: true
172
+
164
173
  # @!attribute warm_transfer_instructions
165
174
  # Natural language instructions for your agent for how to provide context for the
166
175
  # transfer recipient.
@@ -168,7 +177,7 @@ module Telnyx
168
177
  # @return [String, nil]
169
178
  optional :warm_transfer_instructions, String
170
179
 
171
- # @!method initialize(from:, targets:, custom_headers: nil, voicemail_detection: nil, warm_transfer_instructions: nil)
180
+ # @!method initialize(from:, targets:, custom_headers: nil, voicemail_detection: nil, warm_message_delay_ms: nil, warm_transfer_instructions: nil)
172
181
  # Some parameter documentations has been truncated, see
173
182
  # {Telnyx::Models::AI::AssistantTool::Transfer::Transfer} for more details.
174
183
  #
@@ -180,6 +189,8 @@ module Telnyx
180
189
  #
181
190
  # @param voicemail_detection [Telnyx::Models::AI::AssistantTool::Transfer::Transfer::VoicemailDetection] Configuration for voicemail detection (AMD - Answering Machine Detection) on the
182
191
  #
192
+ # @param warm_message_delay_ms [Integer, nil] Optional delay in milliseconds before playing the warm message audio when the tr
193
+ #
183
194
  # @param warm_transfer_instructions [String] Natural language instructions for your agent for how to provide context for the
184
195
 
185
196
  class Target < Telnyx::Internal::Type::BaseModel
@@ -24,33 +24,33 @@ module Telnyx
24
24
  #
25
25
  # @overload generate(aws: nil, azure: nil, disable_cache: nil, elevenlabs: nil, inworld: nil, language: nil, minimax: nil, output_type: nil, provider: nil, resemble: nil, rime: nil, telnyx: nil, text: nil, text_type: nil, voice: nil, voice_settings: nil, request_options: {})
26
26
  #
27
- # @param aws [Telnyx::Models::TextToSpeechGenerateParams::Aws] AWS Polly provider-specific parameters.
27
+ # @param aws [::Telnyx::Models::TextToSpeechGenerateParams::Aws] AWS Polly provider-specific parameters.
28
28
  #
29
- # @param azure [Telnyx::Models::TextToSpeechGenerateParams::Azure] Azure Cognitive Services provider-specific parameters.
29
+ # @param azure [::Telnyx::Models::TextToSpeechGenerateParams::Azure] Azure Cognitive Services provider-specific parameters.
30
30
  #
31
31
  # @param disable_cache [Boolean] When `true`, bypass the audio cache and generate fresh audio.
32
32
  #
33
- # @param elevenlabs [Telnyx::Models::TextToSpeechGenerateParams::Elevenlabs] ElevenLabs provider-specific parameters.
33
+ # @param elevenlabs [::Telnyx::Models::TextToSpeechGenerateParams::Elevenlabs] ElevenLabs provider-specific parameters.
34
34
  #
35
35
  # @param inworld [Hash{Symbol=>Object}] Inworld provider-specific parameters.
36
36
  #
37
37
  # @param language [String] Language code (e.g. `en-US`). Usage varies by provider.
38
38
  #
39
- # @param minimax [Telnyx::Models::TextToSpeechGenerateParams::Minimax] Minimax provider-specific parameters.
39
+ # @param minimax [::Telnyx::Models::TextToSpeechGenerateParams::Minimax] Minimax provider-specific parameters.
40
40
  #
41
- # @param output_type [Symbol, Telnyx::Models::TextToSpeechGenerateParams::OutputType] Determines the response format. `binary_output` returns raw audio bytes, `base64
41
+ # @param output_type [Symbol, ::Telnyx::Models::TextToSpeechGenerateParams::OutputType] Determines the response format. `binary_output` returns raw audio bytes, `base64
42
42
  #
43
- # @param provider [Symbol, Telnyx::Models::TextToSpeechGenerateParams::Provider] TTS provider. Required unless `voice` is provided.
43
+ # @param provider [Symbol, ::Telnyx::Models::TextToSpeechGenerateParams::Provider] TTS provider. Required unless `voice` is provided.
44
44
  #
45
- # @param resemble [Telnyx::Models::TextToSpeechGenerateParams::Resemble] Resemble AI provider-specific parameters.
45
+ # @param resemble [::Telnyx::Models::TextToSpeechGenerateParams::Resemble] Resemble AI provider-specific parameters.
46
46
  #
47
- # @param rime [Telnyx::Models::TextToSpeechGenerateParams::Rime] Rime provider-specific parameters.
47
+ # @param rime [::Telnyx::Models::TextToSpeechGenerateParams::Rime] Rime provider-specific parameters.
48
48
  #
49
49
  # @param telnyx [::Telnyx::Models::TextToSpeechGenerateParams::Telnyx] Telnyx provider-specific parameters.
50
50
  #
51
51
  # @param text [String] The text to convert to speech.
52
52
  #
53
- # @param text_type [Symbol, Telnyx::Models::TextToSpeechGenerateParams::TextType] Text type. Use `ssml` for SSML-formatted input (supported by AWS and Azure).
53
+ # @param text_type [Symbol, ::Telnyx::Models::TextToSpeechGenerateParams::TextType] Text type. Use `ssml` for SSML-formatted input (supported by AWS and Azure).
54
54
  #
55
55
  # @param voice [String] Voice identifier in the format `provider.model_id.voice_id` or `provider.voice_i
56
56
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Telnyx
4
- VERSION = "5.53.0"
4
+ VERSION = "5.54.0"
5
5
  end
@@ -323,6 +323,13 @@ module Telnyx
323
323
  end
324
324
  attr_writer :voicemail_detection
325
325
 
326
+ # Optional delay in milliseconds before playing the warm message audio when the
327
+ # transferred call is answered. When set, the audio_url is not included in the
328
+ # dial command; instead, playback starts after the specified delay. When not set,
329
+ # existing behavior (audio_url in dial) is preserved.
330
+ sig { returns(T.nilable(Integer)) }
331
+ attr_accessor :warm_message_delay_ms
332
+
326
333
  # Natural language instructions for your agent for how to provide context for the
327
334
  # transfer recipient.
328
335
  sig { returns(T.nilable(String)) }
@@ -344,6 +351,7 @@ module Telnyx
344
351
  ],
345
352
  voicemail_detection:
346
353
  Telnyx::AI::AssistantTool::Transfer::Transfer::VoicemailDetection::OrHash,
354
+ warm_message_delay_ms: T.nilable(Integer),
347
355
  warm_transfer_instructions: String
348
356
  ).returns(T.attached_class)
349
357
  end
@@ -359,6 +367,11 @@ module Telnyx
359
367
  # transferred call. Allows the assistant to detect when a voicemail system answers
360
368
  # the transferred call and take appropriate action.
361
369
  voicemail_detection: nil,
370
+ # Optional delay in milliseconds before playing the warm message audio when the
371
+ # transferred call is answered. When set, the audio_url is not included in the
372
+ # dial command; instead, playback starts after the specified delay. When not set,
373
+ # existing behavior (audio_url in dial) is preserved.
374
+ warm_message_delay_ms: nil,
362
375
  # Natural language instructions for your agent for how to provide context for the
363
376
  # transfer recipient.
364
377
  warm_transfer_instructions: nil
@@ -379,6 +392,7 @@ module Telnyx
379
392
  ],
380
393
  voicemail_detection:
381
394
  Telnyx::AI::AssistantTool::Transfer::Transfer::VoicemailDetection,
395
+ warm_message_delay_ms: T.nilable(Integer),
382
396
  warm_transfer_instructions: String
383
397
  }
384
398
  )
@@ -8,14 +8,19 @@ module Telnyx
8
8
 
9
9
  OrHash =
10
10
  T.type_alias do
11
- T.any(::Telnyx::TextToSpeechGenerateParams, ::Telnyx::Internal::AnyHash)
11
+ T.any(
12
+ ::Telnyx::TextToSpeechGenerateParams,
13
+ ::Telnyx::Internal::AnyHash
14
+ )
12
15
  end
13
16
 
14
17
  # AWS Polly provider-specific parameters.
15
18
  sig { returns(T.nilable(::Telnyx::TextToSpeechGenerateParams::Aws)) }
16
19
  attr_reader :aws
17
20
 
18
- sig { params(aws: ::Telnyx::TextToSpeechGenerateParams::Aws::OrHash).void }
21
+ sig do
22
+ params(aws: ::Telnyx::TextToSpeechGenerateParams::Aws::OrHash).void
23
+ end
19
24
  attr_writer :aws
20
25
 
21
26
  # Azure Cognitive Services provider-specific parameters.
@@ -35,7 +40,9 @@ module Telnyx
35
40
  attr_writer :disable_cache
36
41
 
37
42
  # ElevenLabs provider-specific parameters.
38
- sig { returns(T.nilable(::Telnyx::TextToSpeechGenerateParams::Elevenlabs)) }
43
+ sig do
44
+ returns(T.nilable(::Telnyx::TextToSpeechGenerateParams::Elevenlabs))
45
+ end
39
46
  attr_reader :elevenlabs
40
47
 
41
48
  sig do
@@ -81,7 +88,8 @@ module Telnyx
81
88
 
82
89
  sig do
83
90
  params(
84
- output_type: ::Telnyx::TextToSpeechGenerateParams::OutputType::OrSymbol
91
+ output_type:
92
+ ::Telnyx::TextToSpeechGenerateParams::OutputType::OrSymbol
85
93
  ).void
86
94
  end
87
95
  attr_writer :output_type
@@ -526,7 +534,10 @@ module Telnyx
526
534
 
527
535
  TaggedSymbol =
528
536
  T.type_alias do
529
- T.all(Symbol, ::Telnyx::TextToSpeechGenerateParams::Azure::TextType)
537
+ T.all(
538
+ Symbol,
539
+ ::Telnyx::TextToSpeechGenerateParams::Azure::TextType
540
+ )
530
541
  end
531
542
  OrSymbol = T.type_alias { T.any(Symbol, String) }
532
543
 
@@ -783,7 +794,9 @@ module Telnyx
783
794
 
784
795
  sig do
785
796
  override.returns(
786
- T::Array[::Telnyx::TextToSpeechGenerateParams::Provider::TaggedSymbol]
797
+ T::Array[
798
+ ::Telnyx::TextToSpeechGenerateParams::Provider::TaggedSymbol
799
+ ]
787
800
  )
788
801
  end
789
802
  def self.values
@@ -1018,7 +1031,9 @@ module Telnyx
1018
1031
 
1019
1032
  sig do
1020
1033
  override.returns(
1021
- T::Array[::Telnyx::TextToSpeechGenerateParams::TextType::TaggedSymbol]
1034
+ T::Array[
1035
+ ::Telnyx::TextToSpeechGenerateParams::TextType::TaggedSymbol
1036
+ ]
1022
1037
  )
1023
1038
  end
1024
1039
  def self.values
@@ -20,20 +20,21 @@ module Telnyx
20
20
  # `resemble`, `inworld`.
21
21
  sig do
22
22
  params(
23
- aws: Telnyx::TextToSpeechGenerateParams::Aws::OrHash,
24
- azure: Telnyx::TextToSpeechGenerateParams::Azure::OrHash,
23
+ aws: ::Telnyx::TextToSpeechGenerateParams::Aws::OrHash,
24
+ azure: ::Telnyx::TextToSpeechGenerateParams::Azure::OrHash,
25
25
  disable_cache: T::Boolean,
26
- elevenlabs: Telnyx::TextToSpeechGenerateParams::Elevenlabs::OrHash,
26
+ elevenlabs: ::Telnyx::TextToSpeechGenerateParams::Elevenlabs::OrHash,
27
27
  inworld: T::Hash[Symbol, T.anything],
28
28
  language: String,
29
- minimax: Telnyx::TextToSpeechGenerateParams::Minimax::OrHash,
30
- output_type: Telnyx::TextToSpeechGenerateParams::OutputType::OrSymbol,
31
- provider: Telnyx::TextToSpeechGenerateParams::Provider::OrSymbol,
32
- resemble: Telnyx::TextToSpeechGenerateParams::Resemble::OrHash,
33
- rime: Telnyx::TextToSpeechGenerateParams::Rime::OrHash,
29
+ minimax: ::Telnyx::TextToSpeechGenerateParams::Minimax::OrHash,
30
+ output_type:
31
+ ::Telnyx::TextToSpeechGenerateParams::OutputType::OrSymbol,
32
+ provider: ::Telnyx::TextToSpeechGenerateParams::Provider::OrSymbol,
33
+ resemble: ::Telnyx::TextToSpeechGenerateParams::Resemble::OrHash,
34
+ rime: ::Telnyx::TextToSpeechGenerateParams::Rime::OrHash,
34
35
  telnyx: ::Telnyx::TextToSpeechGenerateParams::Telnyx::OrHash,
35
36
  text: String,
36
- text_type: Telnyx::TextToSpeechGenerateParams::TextType::OrSymbol,
37
+ text_type: ::Telnyx::TextToSpeechGenerateParams::TextType::OrSymbol,
37
38
  voice: String,
38
39
  voice_settings: T::Hash[Symbol, T.anything],
39
40
  request_options: Telnyx::RequestOptions::OrHash
@@ -114,6 +114,7 @@ module Telnyx
114
114
  targets: ::Array[Telnyx::AI::AssistantTool::Transfer::Transfer::Target],
115
115
  custom_headers: ::Array[Telnyx::AI::AssistantTool::Transfer::Transfer::CustomHeader],
116
116
  voicemail_detection: Telnyx::AI::AssistantTool::Transfer::Transfer::VoicemailDetection,
117
+ warm_message_delay_ms: Integer?,
117
118
  warm_transfer_instructions: String
118
119
  }
119
120
 
@@ -134,6 +135,8 @@ module Telnyx
134
135
  Telnyx::AI::AssistantTool::Transfer::Transfer::VoicemailDetection
135
136
  ) -> Telnyx::AI::AssistantTool::Transfer::Transfer::VoicemailDetection
136
137
 
138
+ attr_accessor warm_message_delay_ms: Integer?
139
+
137
140
  attr_reader warm_transfer_instructions: String?
138
141
 
139
142
  def warm_transfer_instructions=: (String) -> String
@@ -143,6 +146,7 @@ module Telnyx
143
146
  targets: ::Array[Telnyx::AI::AssistantTool::Transfer::Transfer::Target],
144
147
  ?custom_headers: ::Array[Telnyx::AI::AssistantTool::Transfer::Transfer::CustomHeader],
145
148
  ?voicemail_detection: Telnyx::AI::AssistantTool::Transfer::Transfer::VoicemailDetection,
149
+ ?warm_message_delay_ms: Integer?,
146
150
  ?warm_transfer_instructions: String
147
151
  ) -> void
148
152
 
@@ -151,6 +155,7 @@ module Telnyx
151
155
  targets: ::Array[Telnyx::AI::AssistantTool::Transfer::Transfer::Target],
152
156
  custom_headers: ::Array[Telnyx::AI::AssistantTool::Transfer::Transfer::CustomHeader],
153
157
  voicemail_detection: Telnyx::AI::AssistantTool::Transfer::Transfer::VoicemailDetection,
158
+ warm_message_delay_ms: Integer?,
154
159
  warm_transfer_instructions: String
155
160
  }
156
161
 
@@ -2,20 +2,20 @@ module Telnyx
2
2
  module Resources
3
3
  class TextToSpeech
4
4
  def generate: (
5
- ?aws: Telnyx::TextToSpeechGenerateParams::Aws,
6
- ?azure: Telnyx::TextToSpeechGenerateParams::Azure,
5
+ ?aws: ::Telnyx::TextToSpeechGenerateParams::Aws,
6
+ ?azure: ::Telnyx::TextToSpeechGenerateParams::Azure,
7
7
  ?disable_cache: bool,
8
- ?elevenlabs: Telnyx::TextToSpeechGenerateParams::Elevenlabs,
8
+ ?elevenlabs: ::Telnyx::TextToSpeechGenerateParams::Elevenlabs,
9
9
  ?inworld: ::Hash[Symbol, top],
10
10
  ?language: String,
11
- ?minimax: Telnyx::TextToSpeechGenerateParams::Minimax,
12
- ?output_type: Telnyx::Models::TextToSpeechGenerateParams::output_type,
13
- ?provider: Telnyx::Models::TextToSpeechGenerateParams::provider,
14
- ?resemble: Telnyx::TextToSpeechGenerateParams::Resemble,
15
- ?rime: Telnyx::TextToSpeechGenerateParams::Rime,
11
+ ?minimax: ::Telnyx::TextToSpeechGenerateParams::Minimax,
12
+ ?output_type: ::Telnyx::Models::TextToSpeechGenerateParams::output_type,
13
+ ?provider: ::Telnyx::Models::TextToSpeechGenerateParams::provider,
14
+ ?resemble: ::Telnyx::TextToSpeechGenerateParams::Resemble,
15
+ ?rime: ::Telnyx::TextToSpeechGenerateParams::Rime,
16
16
  ?telnyx: ::Telnyx::TextToSpeechGenerateParams::Telnyx,
17
17
  ?text: String,
18
- ?text_type: Telnyx::Models::TextToSpeechGenerateParams::text_type,
18
+ ?text_type: ::Telnyx::Models::TextToSpeechGenerateParams::text_type,
19
19
  ?voice: String,
20
20
  ?voice_settings: ::Hash[Symbol, top],
21
21
  ?request_options: Telnyx::request_opts
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: telnyx
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.53.0
4
+ version: 5.54.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Telnyx
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-03-13 00:00:00.000000000 Z
11
+ date: 2026-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi