telnyx 5.12.0 → 5.13.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: 8da77cf099e40b838c89f2b613036de30e1d0ef04d31e81cf43c9c556f419c54
4
- data.tar.gz: 961042a941be9a5ccdc658d3e6d2fc413648f426ed4431a365ecf62697e23566
3
+ metadata.gz: 2b86651570452acaba364bdda2d70409a34bff8f0c4af9dfec303fa065fef789
4
+ data.tar.gz: 314b389b25a77f66ae3960e864f9e3eee61c84b834414ed8c21dd01592091ef5
5
5
  SHA512:
6
- metadata.gz: 1e4777c217d27b87fb897001a43412e2782f084b0a1c884464d7f21b0e13379a5a1c310224f37533711c6996d9454cd90c090da4bfb37c042193c8850fc86080
7
- data.tar.gz: d55cec370ccdce7a8bb3fe0945b6866bdcb90b53e802d7f176788b466a7a6615004a8cb913805ecdedeee1f6b6aaa1aaa6f844fedc8df7dd6bd692133d9003b8
6
+ metadata.gz: 3f42de8d4c2e831eff34a3b413650c18d5cbc072100d0f0da821e64c6ed72eb0aebcf671356353e20ff86a91d7474ae67bf3c4ac21a678112a13d59f567579d8
7
+ data.tar.gz: cfa1c046ccbc7f6b37ced53d83daeb647f8141e2600445b734169a0605da8ee389066c519c1783adce3fb08988de2c46dc5a3276ec66eece155f4dd60664b521
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.13.0 (2026-02-06)
4
+
5
+ Full Changelog: [v5.12.0...v5.13.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.12.0...v5.13.0)
6
+
7
+ ### Features
8
+
9
+ * Revert "fix emergency settings -schema" ([dbe9344](https://github.com/team-telnyx/telnyx-ruby/commit/dbe934471675fe8fdb848beff8eb678ef07f6ca3))
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * **client:** loosen json header parsing ([982edaa](https://github.com/team-telnyx/telnyx-ruby/commit/982edaa3df5f21bdeab25da7c7b329bce6129f78))
15
+
3
16
  ## 5.12.0 (2026-02-05)
4
17
 
5
18
  Full Changelog: [v5.11.0...v5.12.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.11.0...v5.12.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.12.0"
27
+ gem "telnyx", "~> 5.13.0"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
@@ -485,7 +485,7 @@ module Telnyx
485
485
  end
486
486
 
487
487
  # @type [Regexp]
488
- JSON_CONTENT = %r{^application/(?:vnd(?:\.[^.]+)*\+)?json(?!l)}
488
+ JSON_CONTENT = %r{^application/(?:[a-zA-Z0-9.-]+\+)?json(?!l)}
489
489
  # @type [Regexp]
490
490
  JSONL_CONTENT = %r{^application/(:?x-(?:n|l)djson)|(:?(?:x-)?jsonl)}
491
491
 
@@ -25,6 +25,12 @@ module Telnyx
25
25
  # @return [Telnyx::Models::AI::TelephonySettings::NoiseSuppressionConfig, nil]
26
26
  optional :noise_suppression_config, -> { Telnyx::AI::TelephonySettings::NoiseSuppressionConfig }
27
27
 
28
+ # @!attribute recording_settings
29
+ # Configuration for call recording format and channel settings.
30
+ #
31
+ # @return [Telnyx::Models::AI::TelephonySettings::RecordingSettings, nil]
32
+ optional :recording_settings, -> { Telnyx::AI::TelephonySettings::RecordingSettings }
33
+
28
34
  # @!attribute supports_unauthenticated_web_calls
29
35
  # When enabled, allows users to interact with your AI assistant directly from your
30
36
  # website without requiring authentication. This is required for FE widgets that
@@ -62,7 +68,7 @@ module Telnyx
62
68
  # @return [Telnyx::Models::AI::TelephonySettings::VoicemailDetection, nil]
63
69
  optional :voicemail_detection, -> { Telnyx::AI::TelephonySettings::VoicemailDetection }
64
70
 
65
- # @!method initialize(default_texml_app_id: nil, noise_suppression: nil, noise_suppression_config: nil, supports_unauthenticated_web_calls: nil, time_limit_secs: nil, user_idle_timeout_secs: nil, voicemail_detection: nil)
71
+ # @!method initialize(default_texml_app_id: nil, noise_suppression: nil, noise_suppression_config: nil, recording_settings: nil, supports_unauthenticated_web_calls: nil, time_limit_secs: nil, user_idle_timeout_secs: nil, voicemail_detection: nil)
66
72
  # Some parameter documentations has been truncated, see
67
73
  # {Telnyx::Models::AI::TelephonySettings} for more details.
68
74
  #
@@ -72,6 +78,8 @@ module Telnyx
72
78
  #
73
79
  # @param noise_suppression_config [Telnyx::Models::AI::TelephonySettings::NoiseSuppressionConfig] Configuration for noise suppression. Only applicable when noise_suppression is '
74
80
  #
81
+ # @param recording_settings [Telnyx::Models::AI::TelephonySettings::RecordingSettings] Configuration for call recording format and channel settings.
82
+ #
75
83
  # @param supports_unauthenticated_web_calls [Boolean] When enabled, allows users to interact with your AI assistant directly from your
76
84
  #
77
85
  # @param time_limit_secs [Integer] Maximum duration in seconds for the AI assistant to participate on the call. Whe
@@ -130,6 +138,56 @@ module Telnyx
130
138
  end
131
139
  end
132
140
 
141
+ # @see Telnyx::Models::AI::TelephonySettings#recording_settings
142
+ class RecordingSettings < Telnyx::Internal::Type::BaseModel
143
+ # @!attribute channels
144
+ # The number of channels for the recording. 'single' for mono, 'dual' for stereo.
145
+ #
146
+ # @return [Symbol, Telnyx::Models::AI::TelephonySettings::RecordingSettings::Channels, nil]
147
+ optional :channels, enum: -> { Telnyx::AI::TelephonySettings::RecordingSettings::Channels }
148
+
149
+ # @!attribute format_
150
+ # The format of the recording file.
151
+ #
152
+ # @return [Symbol, Telnyx::Models::AI::TelephonySettings::RecordingSettings::Format, nil]
153
+ optional :format_,
154
+ enum: -> { Telnyx::AI::TelephonySettings::RecordingSettings::Format },
155
+ api_name: :format
156
+
157
+ # @!method initialize(channels: nil, format_: nil)
158
+ # Configuration for call recording format and channel settings.
159
+ #
160
+ # @param channels [Symbol, Telnyx::Models::AI::TelephonySettings::RecordingSettings::Channels] The number of channels for the recording. 'single' for mono, 'dual' for stereo.
161
+ #
162
+ # @param format_ [Symbol, Telnyx::Models::AI::TelephonySettings::RecordingSettings::Format] The format of the recording file.
163
+
164
+ # The number of channels for the recording. 'single' for mono, 'dual' for stereo.
165
+ #
166
+ # @see Telnyx::Models::AI::TelephonySettings::RecordingSettings#channels
167
+ module Channels
168
+ extend Telnyx::Internal::Type::Enum
169
+
170
+ SINGLE = :single
171
+ DUAL = :dual
172
+
173
+ # @!method self.values
174
+ # @return [Array<Symbol>]
175
+ end
176
+
177
+ # The format of the recording file.
178
+ #
179
+ # @see Telnyx::Models::AI::TelephonySettings::RecordingSettings#format_
180
+ module Format
181
+ extend Telnyx::Internal::Type::Enum
182
+
183
+ WAV = :wav
184
+ MP3 = :mp3
185
+
186
+ # @!method self.values
187
+ # @return [Array<Symbol>]
188
+ end
189
+ end
190
+
133
191
  # @see Telnyx::Models::AI::TelephonySettings#voicemail_detection
134
192
  class VoicemailDetection < Telnyx::Internal::Type::BaseModel
135
193
  # @!attribute on_voicemail_detected
@@ -69,17 +69,14 @@ module Telnyx
69
69
 
70
70
  BG = :bg
71
71
  CA = :ca
72
- ZH = :zh
73
72
  ZH_CN = :"zh-CN"
74
73
  ZH_HANS = :"zh-Hans"
75
74
  ZH_TW = :"zh-TW"
76
75
  ZH_HANT = :"zh-Hant"
77
76
  ZH_HK = :"zh-HK"
78
77
  CS = :cs
79
- DA = :da
80
78
  DA_DK = :"da-DK"
81
- NL = :nl
82
- EN = :en
79
+ NL_BE = :"nl-BE"
83
80
  EN_US = :"en-US"
84
81
  EN_AU = :"en-AU"
85
82
  EN_GB = :"en-GB"
@@ -87,10 +84,8 @@ module Telnyx
87
84
  EN_IN = :"en-IN"
88
85
  ET = :et
89
86
  FI = :fi
90
- NL_BE = :"nl-BE"
91
87
  FR = :fr
92
88
  FR_CA = :"fr-CA"
93
- DE = :de
94
89
  DE_CH = :"de-CH"
95
90
  EL = :el
96
91
  HI = :hi
@@ -98,24 +93,19 @@ module Telnyx
98
93
  ID = :id
99
94
  IT = :it
100
95
  JA = :ja
101
- KO = :ko
102
96
  KO_KR = :"ko-KR"
103
97
  LV = :lv
104
98
  LT = :lt
105
99
  MS = :ms
106
100
  NO = :no
107
101
  PL = :pl
108
- PT = :pt
109
102
  PT_BR = :"pt-BR"
110
103
  PT_PT = :"pt-PT"
111
104
  RO = :ro
112
105
  RU = :ru
113
106
  SK = :sk
114
- ES = :es
115
107
  ES_419 = :"es-419"
116
- SV = :sv
117
108
  SV_SE = :"sv-SE"
118
- TH = :th
119
109
  TH_TH = :"th-TH"
120
110
  TR = :tr
121
111
  UK = :uk
@@ -149,17 +149,14 @@ module Telnyx
149
149
 
150
150
  BG = :bg
151
151
  CA = :ca
152
- ZH = :zh
153
152
  ZH_CN = :"zh-CN"
154
153
  ZH_HANS = :"zh-Hans"
155
154
  ZH_TW = :"zh-TW"
156
155
  ZH_HANT = :"zh-Hant"
157
156
  ZH_HK = :"zh-HK"
158
157
  CS = :cs
159
- DA = :da
160
158
  DA_DK = :"da-DK"
161
- NL = :nl
162
- EN = :en
159
+ NL_BE = :"nl-BE"
163
160
  EN_US = :"en-US"
164
161
  EN_AU = :"en-AU"
165
162
  EN_GB = :"en-GB"
@@ -167,10 +164,8 @@ module Telnyx
167
164
  EN_IN = :"en-IN"
168
165
  ET = :et
169
166
  FI = :fi
170
- NL_BE = :"nl-BE"
171
167
  FR = :fr
172
168
  FR_CA = :"fr-CA"
173
- DE = :de
174
169
  DE_CH = :"de-CH"
175
170
  EL = :el
176
171
  HI = :hi
@@ -178,24 +173,19 @@ module Telnyx
178
173
  ID = :id
179
174
  IT = :it
180
175
  JA = :ja
181
- KO = :ko
182
176
  KO_KR = :"ko-KR"
183
177
  LV = :lv
184
178
  LT = :lt
185
179
  MS = :ms
186
180
  NO = :no
187
181
  PL = :pl
188
- PT = :pt
189
182
  PT_BR = :"pt-BR"
190
183
  PT_PT = :"pt-PT"
191
184
  RO = :ro
192
185
  RU = :ru
193
186
  SK = :sk
194
- ES = :es
195
187
  ES_419 = :"es-419"
196
- SV = :sv
197
188
  SV_SE = :"sv-SE"
198
- TH = :th
199
189
  TH_TH = :"th-TH"
200
190
  TR = :tr
201
191
  UK = :uk
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Telnyx
4
- VERSION = "5.12.0"
4
+ VERSION = "5.13.0"
5
5
  end
@@ -296,7 +296,7 @@ module Telnyx
296
296
  end
297
297
 
298
298
  JSON_CONTENT =
299
- T.let(%r{^application/(?:vnd(?:\.[^.]+)*\+)?json(?!l)}, Regexp)
299
+ T.let(%r{^application/(?:[a-zA-Z0-9.-]+\+)?json(?!l)}, Regexp)
300
300
  JSONL_CONTENT =
301
301
  T.let(%r{^application/(:?x-(?:n|l)djson)|(:?(?:x-)?jsonl)}, Regexp)
302
302
 
@@ -51,6 +51,20 @@ module Telnyx
51
51
  end
52
52
  attr_writer :noise_suppression_config
53
53
 
54
+ # Configuration for call recording format and channel settings.
55
+ sig do
56
+ returns(T.nilable(Telnyx::AI::TelephonySettings::RecordingSettings))
57
+ end
58
+ attr_reader :recording_settings
59
+
60
+ sig do
61
+ params(
62
+ recording_settings:
63
+ Telnyx::AI::TelephonySettings::RecordingSettings::OrHash
64
+ ).void
65
+ end
66
+ attr_writer :recording_settings
67
+
54
68
  # When enabled, allows users to interact with your AI assistant directly from your
55
69
  # website without requiring authentication. This is required for FE widgets that
56
70
  # work with assistants that have telephony enabled.
@@ -106,6 +120,8 @@ module Telnyx
106
120
  Telnyx::AI::TelephonySettings::NoiseSuppression::OrSymbol,
107
121
  noise_suppression_config:
108
122
  Telnyx::AI::TelephonySettings::NoiseSuppressionConfig::OrHash,
123
+ recording_settings:
124
+ Telnyx::AI::TelephonySettings::RecordingSettings::OrHash,
109
125
  supports_unauthenticated_web_calls: T::Boolean,
110
126
  time_limit_secs: Integer,
111
127
  user_idle_timeout_secs: Integer,
@@ -123,6 +139,8 @@ module Telnyx
123
139
  # Configuration for noise suppression. Only applicable when noise_suppression is
124
140
  # 'deepfilternet'.
125
141
  noise_suppression_config: nil,
142
+ # Configuration for call recording format and channel settings.
143
+ recording_settings: nil,
126
144
  # When enabled, allows users to interact with your AI assistant directly from your
127
145
  # website without requiring authentication. This is required for FE widgets that
128
146
  # work with assistants that have telephony enabled.
@@ -155,6 +173,8 @@ module Telnyx
155
173
  Telnyx::AI::TelephonySettings::NoiseSuppression::OrSymbol,
156
174
  noise_suppression_config:
157
175
  Telnyx::AI::TelephonySettings::NoiseSuppressionConfig,
176
+ recording_settings:
177
+ Telnyx::AI::TelephonySettings::RecordingSettings,
158
178
  supports_unauthenticated_web_calls: T::Boolean,
159
179
  time_limit_secs: Integer,
160
180
  user_idle_timeout_secs: Integer,
@@ -298,6 +318,152 @@ module Telnyx
298
318
  end
299
319
  end
300
320
 
321
+ class RecordingSettings < Telnyx::Internal::Type::BaseModel
322
+ OrHash =
323
+ T.type_alias do
324
+ T.any(
325
+ Telnyx::AI::TelephonySettings::RecordingSettings,
326
+ Telnyx::Internal::AnyHash
327
+ )
328
+ end
329
+
330
+ # The number of channels for the recording. 'single' for mono, 'dual' for stereo.
331
+ sig do
332
+ returns(
333
+ T.nilable(
334
+ Telnyx::AI::TelephonySettings::RecordingSettings::Channels::OrSymbol
335
+ )
336
+ )
337
+ end
338
+ attr_reader :channels
339
+
340
+ sig do
341
+ params(
342
+ channels:
343
+ Telnyx::AI::TelephonySettings::RecordingSettings::Channels::OrSymbol
344
+ ).void
345
+ end
346
+ attr_writer :channels
347
+
348
+ # The format of the recording file.
349
+ sig do
350
+ returns(
351
+ T.nilable(
352
+ Telnyx::AI::TelephonySettings::RecordingSettings::Format::OrSymbol
353
+ )
354
+ )
355
+ end
356
+ attr_reader :format_
357
+
358
+ sig do
359
+ params(
360
+ format_:
361
+ Telnyx::AI::TelephonySettings::RecordingSettings::Format::OrSymbol
362
+ ).void
363
+ end
364
+ attr_writer :format_
365
+
366
+ # Configuration for call recording format and channel settings.
367
+ sig do
368
+ params(
369
+ channels:
370
+ Telnyx::AI::TelephonySettings::RecordingSettings::Channels::OrSymbol,
371
+ format_:
372
+ Telnyx::AI::TelephonySettings::RecordingSettings::Format::OrSymbol
373
+ ).returns(T.attached_class)
374
+ end
375
+ def self.new(
376
+ # The number of channels for the recording. 'single' for mono, 'dual' for stereo.
377
+ channels: nil,
378
+ # The format of the recording file.
379
+ format_: nil
380
+ )
381
+ end
382
+
383
+ sig do
384
+ override.returns(
385
+ {
386
+ channels:
387
+ Telnyx::AI::TelephonySettings::RecordingSettings::Channels::OrSymbol,
388
+ format_:
389
+ Telnyx::AI::TelephonySettings::RecordingSettings::Format::OrSymbol
390
+ }
391
+ )
392
+ end
393
+ def to_hash
394
+ end
395
+
396
+ # The number of channels for the recording. 'single' for mono, 'dual' for stereo.
397
+ module Channels
398
+ extend Telnyx::Internal::Type::Enum
399
+
400
+ TaggedSymbol =
401
+ T.type_alias do
402
+ T.all(
403
+ Symbol,
404
+ Telnyx::AI::TelephonySettings::RecordingSettings::Channels
405
+ )
406
+ end
407
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
408
+
409
+ SINGLE =
410
+ T.let(
411
+ :single,
412
+ Telnyx::AI::TelephonySettings::RecordingSettings::Channels::TaggedSymbol
413
+ )
414
+ DUAL =
415
+ T.let(
416
+ :dual,
417
+ Telnyx::AI::TelephonySettings::RecordingSettings::Channels::TaggedSymbol
418
+ )
419
+
420
+ sig do
421
+ override.returns(
422
+ T::Array[
423
+ Telnyx::AI::TelephonySettings::RecordingSettings::Channels::TaggedSymbol
424
+ ]
425
+ )
426
+ end
427
+ def self.values
428
+ end
429
+ end
430
+
431
+ # The format of the recording file.
432
+ module Format
433
+ extend Telnyx::Internal::Type::Enum
434
+
435
+ TaggedSymbol =
436
+ T.type_alias do
437
+ T.all(
438
+ Symbol,
439
+ Telnyx::AI::TelephonySettings::RecordingSettings::Format
440
+ )
441
+ end
442
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
443
+
444
+ WAV =
445
+ T.let(
446
+ :wav,
447
+ Telnyx::AI::TelephonySettings::RecordingSettings::Format::TaggedSymbol
448
+ )
449
+ MP3 =
450
+ T.let(
451
+ :mp3,
452
+ Telnyx::AI::TelephonySettings::RecordingSettings::Format::TaggedSymbol
453
+ )
454
+
455
+ sig do
456
+ override.returns(
457
+ T::Array[
458
+ Telnyx::AI::TelephonySettings::RecordingSettings::Format::TaggedSymbol
459
+ ]
460
+ )
461
+ end
462
+ def self.values
463
+ end
464
+ end
465
+ end
466
+
301
467
  class VoicemailDetection < Telnyx::Internal::Type::BaseModel
302
468
  OrHash =
303
469
  T.type_alias do
@@ -149,11 +149,6 @@ module Telnyx
149
149
  :ca,
150
150
  Telnyx::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova2::Language::TaggedSymbol
151
151
  )
152
- ZH =
153
- T.let(
154
- :zh,
155
- Telnyx::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova2::Language::TaggedSymbol
156
- )
157
152
  ZH_CN =
158
153
  T.let(
159
154
  :"zh-CN",
@@ -184,24 +179,14 @@ module Telnyx
184
179
  :cs,
185
180
  Telnyx::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova2::Language::TaggedSymbol
186
181
  )
187
- DA =
188
- T.let(
189
- :da,
190
- Telnyx::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova2::Language::TaggedSymbol
191
- )
192
182
  DA_DK =
193
183
  T.let(
194
184
  :"da-DK",
195
185
  Telnyx::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova2::Language::TaggedSymbol
196
186
  )
197
- NL =
198
- T.let(
199
- :nl,
200
- Telnyx::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova2::Language::TaggedSymbol
201
- )
202
- EN =
187
+ NL_BE =
203
188
  T.let(
204
- :en,
189
+ :"nl-BE",
205
190
  Telnyx::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova2::Language::TaggedSymbol
206
191
  )
207
192
  EN_US =
@@ -239,11 +224,6 @@ module Telnyx
239
224
  :fi,
240
225
  Telnyx::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova2::Language::TaggedSymbol
241
226
  )
242
- NL_BE =
243
- T.let(
244
- :"nl-BE",
245
- Telnyx::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova2::Language::TaggedSymbol
246
- )
247
227
  FR =
248
228
  T.let(
249
229
  :fr,
@@ -254,11 +234,6 @@ module Telnyx
254
234
  :"fr-CA",
255
235
  Telnyx::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova2::Language::TaggedSymbol
256
236
  )
257
- DE =
258
- T.let(
259
- :de,
260
- Telnyx::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova2::Language::TaggedSymbol
261
- )
262
237
  DE_CH =
263
238
  T.let(
264
239
  :"de-CH",
@@ -294,11 +269,6 @@ module Telnyx
294
269
  :ja,
295
270
  Telnyx::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova2::Language::TaggedSymbol
296
271
  )
297
- KO =
298
- T.let(
299
- :ko,
300
- Telnyx::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova2::Language::TaggedSymbol
301
- )
302
272
  KO_KR =
303
273
  T.let(
304
274
  :"ko-KR",
@@ -329,11 +299,6 @@ module Telnyx
329
299
  :pl,
330
300
  Telnyx::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova2::Language::TaggedSymbol
331
301
  )
332
- PT =
333
- T.let(
334
- :pt,
335
- Telnyx::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova2::Language::TaggedSymbol
336
- )
337
302
  PT_BR =
338
303
  T.let(
339
304
  :"pt-BR",
@@ -359,31 +324,16 @@ module Telnyx
359
324
  :sk,
360
325
  Telnyx::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova2::Language::TaggedSymbol
361
326
  )
362
- ES =
363
- T.let(
364
- :es,
365
- Telnyx::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova2::Language::TaggedSymbol
366
- )
367
327
  ES_419 =
368
328
  T.let(
369
329
  :"es-419",
370
330
  Telnyx::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova2::Language::TaggedSymbol
371
331
  )
372
- SV =
373
- T.let(
374
- :sv,
375
- Telnyx::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova2::Language::TaggedSymbol
376
- )
377
332
  SV_SE =
378
333
  T.let(
379
334
  :"sv-SE",
380
335
  Telnyx::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova2::Language::TaggedSymbol
381
336
  )
382
- TH =
383
- T.let(
384
- :th,
385
- Telnyx::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova2::Language::TaggedSymbol
386
- )
387
337
  TH_TH =
388
338
  T.let(
389
339
  :"th-TH",
@@ -357,11 +357,6 @@ module Telnyx
357
357
  :ca,
358
358
  Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2Config::Language::TaggedSymbol
359
359
  )
360
- ZH =
361
- T.let(
362
- :zh,
363
- Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2Config::Language::TaggedSymbol
364
- )
365
360
  ZH_CN =
366
361
  T.let(
367
362
  :"zh-CN",
@@ -392,24 +387,14 @@ module Telnyx
392
387
  :cs,
393
388
  Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2Config::Language::TaggedSymbol
394
389
  )
395
- DA =
396
- T.let(
397
- :da,
398
- Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2Config::Language::TaggedSymbol
399
- )
400
390
  DA_DK =
401
391
  T.let(
402
392
  :"da-DK",
403
393
  Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2Config::Language::TaggedSymbol
404
394
  )
405
- NL =
406
- T.let(
407
- :nl,
408
- Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2Config::Language::TaggedSymbol
409
- )
410
- EN =
395
+ NL_BE =
411
396
  T.let(
412
- :en,
397
+ :"nl-BE",
413
398
  Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2Config::Language::TaggedSymbol
414
399
  )
415
400
  EN_US =
@@ -447,11 +432,6 @@ module Telnyx
447
432
  :fi,
448
433
  Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2Config::Language::TaggedSymbol
449
434
  )
450
- NL_BE =
451
- T.let(
452
- :"nl-BE",
453
- Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2Config::Language::TaggedSymbol
454
- )
455
435
  FR =
456
436
  T.let(
457
437
  :fr,
@@ -462,11 +442,6 @@ module Telnyx
462
442
  :"fr-CA",
463
443
  Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2Config::Language::TaggedSymbol
464
444
  )
465
- DE =
466
- T.let(
467
- :de,
468
- Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2Config::Language::TaggedSymbol
469
- )
470
445
  DE_CH =
471
446
  T.let(
472
447
  :"de-CH",
@@ -502,11 +477,6 @@ module Telnyx
502
477
  :ja,
503
478
  Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2Config::Language::TaggedSymbol
504
479
  )
505
- KO =
506
- T.let(
507
- :ko,
508
- Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2Config::Language::TaggedSymbol
509
- )
510
480
  KO_KR =
511
481
  T.let(
512
482
  :"ko-KR",
@@ -537,11 +507,6 @@ module Telnyx
537
507
  :pl,
538
508
  Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2Config::Language::TaggedSymbol
539
509
  )
540
- PT =
541
- T.let(
542
- :pt,
543
- Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2Config::Language::TaggedSymbol
544
- )
545
510
  PT_BR =
546
511
  T.let(
547
512
  :"pt-BR",
@@ -567,31 +532,16 @@ module Telnyx
567
532
  :sk,
568
533
  Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2Config::Language::TaggedSymbol
569
534
  )
570
- ES =
571
- T.let(
572
- :es,
573
- Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2Config::Language::TaggedSymbol
574
- )
575
535
  ES_419 =
576
536
  T.let(
577
537
  :"es-419",
578
538
  Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2Config::Language::TaggedSymbol
579
539
  )
580
- SV =
581
- T.let(
582
- :sv,
583
- Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2Config::Language::TaggedSymbol
584
- )
585
540
  SV_SE =
586
541
  T.let(
587
542
  :"sv-SE",
588
543
  Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2Config::Language::TaggedSymbol
589
544
  )
590
- TH =
591
- T.let(
592
- :th,
593
- Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2Config::Language::TaggedSymbol
594
- )
595
545
  TH_TH =
596
546
  T.let(
597
547
  :"th-TH",
@@ -6,6 +6,7 @@ module Telnyx
6
6
  default_texml_app_id: String,
7
7
  noise_suppression: Telnyx::Models::AI::TelephonySettings::noise_suppression,
8
8
  noise_suppression_config: Telnyx::AI::TelephonySettings::NoiseSuppressionConfig,
9
+ recording_settings: Telnyx::AI::TelephonySettings::RecordingSettings,
9
10
  supports_unauthenticated_web_calls: bool,
10
11
  time_limit_secs: Integer,
11
12
  user_idle_timeout_secs: Integer,
@@ -29,6 +30,12 @@ module Telnyx
29
30
  Telnyx::AI::TelephonySettings::NoiseSuppressionConfig
30
31
  ) -> Telnyx::AI::TelephonySettings::NoiseSuppressionConfig
31
32
 
33
+ attr_reader recording_settings: Telnyx::AI::TelephonySettings::RecordingSettings?
34
+
35
+ def recording_settings=: (
36
+ Telnyx::AI::TelephonySettings::RecordingSettings
37
+ ) -> Telnyx::AI::TelephonySettings::RecordingSettings
38
+
32
39
  attr_reader supports_unauthenticated_web_calls: bool?
33
40
 
34
41
  def supports_unauthenticated_web_calls=: (bool) -> bool
@@ -51,6 +58,7 @@ module Telnyx
51
58
  ?default_texml_app_id: String,
52
59
  ?noise_suppression: Telnyx::Models::AI::TelephonySettings::noise_suppression,
53
60
  ?noise_suppression_config: Telnyx::AI::TelephonySettings::NoiseSuppressionConfig,
61
+ ?recording_settings: Telnyx::AI::TelephonySettings::RecordingSettings,
54
62
  ?supports_unauthenticated_web_calls: bool,
55
63
  ?time_limit_secs: Integer,
56
64
  ?user_idle_timeout_secs: Integer,
@@ -61,6 +69,7 @@ module Telnyx
61
69
  default_texml_app_id: String,
62
70
  noise_suppression: Telnyx::Models::AI::TelephonySettings::noise_suppression,
63
71
  noise_suppression_config: Telnyx::AI::TelephonySettings::NoiseSuppressionConfig,
72
+ recording_settings: Telnyx::AI::TelephonySettings::RecordingSettings,
64
73
  supports_unauthenticated_web_calls: bool,
65
74
  time_limit_secs: Integer,
66
75
  user_idle_timeout_secs: Integer,
@@ -117,6 +126,58 @@ module Telnyx
117
126
  end
118
127
  end
119
128
 
129
+ type recording_settings =
130
+ {
131
+ channels: Telnyx::Models::AI::TelephonySettings::RecordingSettings::channels,
132
+ format_: Telnyx::Models::AI::TelephonySettings::RecordingSettings::format_
133
+ }
134
+
135
+ class RecordingSettings < Telnyx::Internal::Type::BaseModel
136
+ attr_reader channels: Telnyx::Models::AI::TelephonySettings::RecordingSettings::channels?
137
+
138
+ def channels=: (
139
+ Telnyx::Models::AI::TelephonySettings::RecordingSettings::channels
140
+ ) -> Telnyx::Models::AI::TelephonySettings::RecordingSettings::channels
141
+
142
+ attr_reader format_: Telnyx::Models::AI::TelephonySettings::RecordingSettings::format_?
143
+
144
+ def format_=: (
145
+ Telnyx::Models::AI::TelephonySettings::RecordingSettings::format_
146
+ ) -> Telnyx::Models::AI::TelephonySettings::RecordingSettings::format_
147
+
148
+ def initialize: (
149
+ ?channels: Telnyx::Models::AI::TelephonySettings::RecordingSettings::channels,
150
+ ?format_: Telnyx::Models::AI::TelephonySettings::RecordingSettings::format_
151
+ ) -> void
152
+
153
+ def to_hash: -> {
154
+ channels: Telnyx::Models::AI::TelephonySettings::RecordingSettings::channels,
155
+ format_: Telnyx::Models::AI::TelephonySettings::RecordingSettings::format_
156
+ }
157
+
158
+ type channels = :single | :dual
159
+
160
+ module Channels
161
+ extend Telnyx::Internal::Type::Enum
162
+
163
+ SINGLE: :single
164
+ DUAL: :dual
165
+
166
+ def self?.values: -> ::Array[Telnyx::Models::AI::TelephonySettings::RecordingSettings::channels]
167
+ end
168
+
169
+ type format_ = :wav | :mp3
170
+
171
+ module Format
172
+ extend Telnyx::Internal::Type::Enum
173
+
174
+ WAV: :wav
175
+ MP3: :mp3
176
+
177
+ def self?.values: -> ::Array[Telnyx::Models::AI::TelephonySettings::RecordingSettings::format_]
178
+ end
179
+ end
180
+
120
181
  type voicemail_detection =
121
182
  {
122
183
  on_voicemail_detected: Telnyx::AI::TelephonySettings::VoicemailDetection::OnVoicemailDetected
@@ -60,17 +60,14 @@ module Telnyx
60
60
  type language =
61
61
  :bg
62
62
  | :ca
63
- | :zh
64
63
  | :"zh-CN"
65
64
  | :"zh-Hans"
66
65
  | :"zh-TW"
67
66
  | :"zh-Hant"
68
67
  | :"zh-HK"
69
68
  | :cs
70
- | :da
71
69
  | :"da-DK"
72
- | :nl
73
- | :en
70
+ | :"nl-BE"
74
71
  | :"en-US"
75
72
  | :"en-AU"
76
73
  | :"en-GB"
@@ -78,10 +75,8 @@ module Telnyx
78
75
  | :"en-IN"
79
76
  | :et
80
77
  | :fi
81
- | :"nl-BE"
82
78
  | :fr
83
79
  | :"fr-CA"
84
- | :de
85
80
  | :"de-CH"
86
81
  | :el
87
82
  | :hi
@@ -89,24 +84,19 @@ module Telnyx
89
84
  | :id
90
85
  | :it
91
86
  | :ja
92
- | :ko
93
87
  | :"ko-KR"
94
88
  | :lv
95
89
  | :lt
96
90
  | :ms
97
91
  | :no
98
92
  | :pl
99
- | :pt
100
93
  | :"pt-BR"
101
94
  | :"pt-PT"
102
95
  | :ro
103
96
  | :ru
104
97
  | :sk
105
- | :es
106
98
  | :"es-419"
107
- | :sv
108
99
  | :"sv-SE"
109
- | :th
110
100
  | :"th-TH"
111
101
  | :tr
112
102
  | :uk
@@ -118,17 +108,14 @@ module Telnyx
118
108
 
119
109
  BG: :bg
120
110
  CA: :ca
121
- ZH: :zh
122
111
  ZH_CN: :"zh-CN"
123
112
  ZH_HANS: :"zh-Hans"
124
113
  ZH_TW: :"zh-TW"
125
114
  ZH_HANT: :"zh-Hant"
126
115
  ZH_HK: :"zh-HK"
127
116
  CS: :cs
128
- DA: :da
129
117
  DA_DK: :"da-DK"
130
- NL: :nl
131
- EN: :en
118
+ NL_BE: :"nl-BE"
132
119
  EN_US: :"en-US"
133
120
  EN_AU: :"en-AU"
134
121
  EN_GB: :"en-GB"
@@ -136,10 +123,8 @@ module Telnyx
136
123
  EN_IN: :"en-IN"
137
124
  ET: :et
138
125
  FI: :fi
139
- NL_BE: :"nl-BE"
140
126
  FR: :fr
141
127
  FR_CA: :"fr-CA"
142
- DE: :de
143
128
  DE_CH: :"de-CH"
144
129
  EL: :el
145
130
  HI: :hi
@@ -147,24 +132,19 @@ module Telnyx
147
132
  ID: :id
148
133
  IT: :it
149
134
  JA: :ja
150
- KO: :ko
151
135
  KO_KR: :"ko-KR"
152
136
  LV: :lv
153
137
  LT: :lt
154
138
  MS: :ms
155
139
  NO: :no
156
140
  PL: :pl
157
- PT: :pt
158
141
  PT_BR: :"pt-BR"
159
142
  PT_PT: :"pt-PT"
160
143
  RO: :ro
161
144
  RU: :ru
162
145
  SK: :sk
163
- ES: :es
164
146
  ES_419: :"es-419"
165
- SV: :sv
166
147
  SV_SE: :"sv-SE"
167
- TH: :th
168
148
  TH_TH: :"th-TH"
169
149
  TR: :tr
170
150
  UK: :uk
@@ -131,17 +131,14 @@ module Telnyx
131
131
  type language =
132
132
  :bg
133
133
  | :ca
134
- | :zh
135
134
  | :"zh-CN"
136
135
  | :"zh-Hans"
137
136
  | :"zh-TW"
138
137
  | :"zh-Hant"
139
138
  | :"zh-HK"
140
139
  | :cs
141
- | :da
142
140
  | :"da-DK"
143
- | :nl
144
- | :en
141
+ | :"nl-BE"
145
142
  | :"en-US"
146
143
  | :"en-AU"
147
144
  | :"en-GB"
@@ -149,10 +146,8 @@ module Telnyx
149
146
  | :"en-IN"
150
147
  | :et
151
148
  | :fi
152
- | :"nl-BE"
153
149
  | :fr
154
150
  | :"fr-CA"
155
- | :de
156
151
  | :"de-CH"
157
152
  | :el
158
153
  | :hi
@@ -160,24 +155,19 @@ module Telnyx
160
155
  | :id
161
156
  | :it
162
157
  | :ja
163
- | :ko
164
158
  | :"ko-KR"
165
159
  | :lv
166
160
  | :lt
167
161
  | :ms
168
162
  | :no
169
163
  | :pl
170
- | :pt
171
164
  | :"pt-BR"
172
165
  | :"pt-PT"
173
166
  | :ro
174
167
  | :ru
175
168
  | :sk
176
- | :es
177
169
  | :"es-419"
178
- | :sv
179
170
  | :"sv-SE"
180
- | :th
181
171
  | :"th-TH"
182
172
  | :tr
183
173
  | :uk
@@ -189,17 +179,14 @@ module Telnyx
189
179
 
190
180
  BG: :bg
191
181
  CA: :ca
192
- ZH: :zh
193
182
  ZH_CN: :"zh-CN"
194
183
  ZH_HANS: :"zh-Hans"
195
184
  ZH_TW: :"zh-TW"
196
185
  ZH_HANT: :"zh-Hant"
197
186
  ZH_HK: :"zh-HK"
198
187
  CS: :cs
199
- DA: :da
200
188
  DA_DK: :"da-DK"
201
- NL: :nl
202
- EN: :en
189
+ NL_BE: :"nl-BE"
203
190
  EN_US: :"en-US"
204
191
  EN_AU: :"en-AU"
205
192
  EN_GB: :"en-GB"
@@ -207,10 +194,8 @@ module Telnyx
207
194
  EN_IN: :"en-IN"
208
195
  ET: :et
209
196
  FI: :fi
210
- NL_BE: :"nl-BE"
211
197
  FR: :fr
212
198
  FR_CA: :"fr-CA"
213
- DE: :de
214
199
  DE_CH: :"de-CH"
215
200
  EL: :el
216
201
  HI: :hi
@@ -218,24 +203,19 @@ module Telnyx
218
203
  ID: :id
219
204
  IT: :it
220
205
  JA: :ja
221
- KO: :ko
222
206
  KO_KR: :"ko-KR"
223
207
  LV: :lv
224
208
  LT: :lt
225
209
  MS: :ms
226
210
  NO: :no
227
211
  PL: :pl
228
- PT: :pt
229
212
  PT_BR: :"pt-BR"
230
213
  PT_PT: :"pt-PT"
231
214
  RO: :ro
232
215
  RU: :ru
233
216
  SK: :sk
234
- ES: :es
235
217
  ES_419: :"es-419"
236
- SV: :sv
237
218
  SV_SE: :"sv-SE"
238
- TH: :th
239
219
  TH_TH: :"th-TH"
240
220
  TR: :tr
241
221
  UK: :uk
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.12.0
4
+ version: 5.13.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-02-05 00:00:00.000000000 Z
11
+ date: 2026-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi