telnyx 5.85.0 → 5.87.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 +17 -0
- data/README.md +1 -1
- data/lib/telnyx/models/ai/transcription_settings.rb +32 -13
- data/lib/telnyx/models/ai/transcription_settings_config.rb +30 -1
- data/lib/telnyx/models/texml/accounts/call_calls_params.rb +189 -3
- data/lib/telnyx/models/verify_profile.rb +17 -71
- data/lib/telnyx/models/verify_profile_create_params.rb +25 -69
- data/lib/telnyx/models/verify_profile_update_params.rb +23 -111
- data/lib/telnyx/resources/verify_profiles.rb +17 -6
- data/lib/telnyx/version.rb +1 -1
- data/rbi/telnyx/models/ai/transcription_settings.rbi +51 -16
- data/rbi/telnyx/models/ai/transcription_settings_config.rbi +43 -0
- data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +396 -0
- data/rbi/telnyx/models/verify_profile.rbi +22 -115
- data/rbi/telnyx/models/verify_profile_create_params.rbi +22 -118
- data/rbi/telnyx/models/verify_profile_update_params.rbi +20 -205
- data/rbi/telnyx/resources/verify_profiles.rbi +12 -6
- data/sig/telnyx/models/ai/transcription_settings.rbs +11 -0
- data/sig/telnyx/models/ai/transcription_settings_config.rbs +21 -0
- data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +138 -0
- data/sig/telnyx/models/verify_profile.rbs +14 -61
- data/sig/telnyx/models/verify_profile_create_params.rbs +14 -63
- data/sig/telnyx/models/verify_profile_update_params.rbs +12 -103
- data/sig/telnyx/resources/verify_profiles.rbs +4 -3
- metadata +2 -2
|
@@ -20,6 +20,20 @@ module Telnyx
|
|
|
20
20
|
sig { params(call: Telnyx::VerifyProfileCreateParams::Call::OrHash).void }
|
|
21
21
|
attr_writer :call
|
|
22
22
|
|
|
23
|
+
# The maximum daily spend allowed on this verify profile, in USD.
|
|
24
|
+
sig { returns(T.nilable(Float)) }
|
|
25
|
+
attr_reader :daily_spend_limit
|
|
26
|
+
|
|
27
|
+
sig { params(daily_spend_limit: Float).void }
|
|
28
|
+
attr_writer :daily_spend_limit
|
|
29
|
+
|
|
30
|
+
# Whether the daily spend limit is enforced for this verify profile.
|
|
31
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
32
|
+
attr_reader :daily_spend_limit_enabled
|
|
33
|
+
|
|
34
|
+
sig { params(daily_spend_limit_enabled: T::Boolean).void }
|
|
35
|
+
attr_writer :daily_spend_limit_enabled
|
|
36
|
+
|
|
23
37
|
sig { returns(T.nilable(Telnyx::VerifyProfileCreateParams::Flashcall)) }
|
|
24
38
|
attr_reader :flashcall
|
|
25
39
|
|
|
@@ -36,12 +50,6 @@ module Telnyx
|
|
|
36
50
|
sig { params(language: String).void }
|
|
37
51
|
attr_writer :language
|
|
38
52
|
|
|
39
|
-
sig { returns(T.nilable(Telnyx::VerifyProfileCreateParams::Rcs)) }
|
|
40
|
-
attr_reader :rcs
|
|
41
|
-
|
|
42
|
-
sig { params(rcs: Telnyx::VerifyProfileCreateParams::Rcs::OrHash).void }
|
|
43
|
-
attr_writer :rcs
|
|
44
|
-
|
|
45
53
|
sig { returns(T.nilable(Telnyx::VerifyProfileCreateParams::SMS)) }
|
|
46
54
|
attr_reader :sms
|
|
47
55
|
|
|
@@ -74,9 +82,10 @@ module Telnyx
|
|
|
74
82
|
params(
|
|
75
83
|
name: String,
|
|
76
84
|
call: Telnyx::VerifyProfileCreateParams::Call::OrHash,
|
|
85
|
+
daily_spend_limit: Float,
|
|
86
|
+
daily_spend_limit_enabled: T::Boolean,
|
|
77
87
|
flashcall: Telnyx::VerifyProfileCreateParams::Flashcall::OrHash,
|
|
78
88
|
language: String,
|
|
79
|
-
rcs: Telnyx::VerifyProfileCreateParams::Rcs::OrHash,
|
|
80
89
|
sms: Telnyx::VerifyProfileCreateParams::SMS::OrHash,
|
|
81
90
|
webhook_failover_url: String,
|
|
82
91
|
webhook_url: String,
|
|
@@ -87,9 +96,12 @@ module Telnyx
|
|
|
87
96
|
def self.new(
|
|
88
97
|
name:,
|
|
89
98
|
call: nil,
|
|
99
|
+
# The maximum daily spend allowed on this verify profile, in USD.
|
|
100
|
+
daily_spend_limit: nil,
|
|
101
|
+
# Whether the daily spend limit is enforced for this verify profile.
|
|
102
|
+
daily_spend_limit_enabled: nil,
|
|
90
103
|
flashcall: nil,
|
|
91
104
|
language: nil,
|
|
92
|
-
rcs: nil,
|
|
93
105
|
sms: nil,
|
|
94
106
|
webhook_failover_url: nil,
|
|
95
107
|
webhook_url: nil,
|
|
@@ -103,9 +115,10 @@ module Telnyx
|
|
|
103
115
|
{
|
|
104
116
|
name: String,
|
|
105
117
|
call: Telnyx::VerifyProfileCreateParams::Call,
|
|
118
|
+
daily_spend_limit: Float,
|
|
119
|
+
daily_spend_limit_enabled: T::Boolean,
|
|
106
120
|
flashcall: Telnyx::VerifyProfileCreateParams::Flashcall,
|
|
107
121
|
language: String,
|
|
108
|
-
rcs: Telnyx::VerifyProfileCreateParams::Rcs,
|
|
109
122
|
sms: Telnyx::VerifyProfileCreateParams::SMS,
|
|
110
123
|
webhook_failover_url: String,
|
|
111
124
|
webhook_url: String,
|
|
@@ -291,115 +304,6 @@ module Telnyx
|
|
|
291
304
|
end
|
|
292
305
|
end
|
|
293
306
|
|
|
294
|
-
class Rcs < Telnyx::Internal::Type::BaseModel
|
|
295
|
-
OrHash =
|
|
296
|
-
T.type_alias do
|
|
297
|
-
T.any(
|
|
298
|
-
Telnyx::VerifyProfileCreateParams::Rcs,
|
|
299
|
-
Telnyx::Internal::AnyHash
|
|
300
|
-
)
|
|
301
|
-
end
|
|
302
|
-
|
|
303
|
-
# The name that identifies the application requesting 2fa in the verification
|
|
304
|
-
# message.
|
|
305
|
-
sig { returns(T.nilable(String)) }
|
|
306
|
-
attr_reader :app_name
|
|
307
|
-
|
|
308
|
-
sig { params(app_name: String).void }
|
|
309
|
-
attr_writer :app_name
|
|
310
|
-
|
|
311
|
-
# The length of the verify code to generate.
|
|
312
|
-
sig { returns(T.nilable(Integer)) }
|
|
313
|
-
attr_reader :code_length
|
|
314
|
-
|
|
315
|
-
sig { params(code_length: Integer).void }
|
|
316
|
-
attr_writer :code_length
|
|
317
|
-
|
|
318
|
-
# For every request that is initiated via this Verify profile, this sets the
|
|
319
|
-
# number of seconds before a verification request code expires. Once the
|
|
320
|
-
# verification request expires, the user cannot use the code to verify their
|
|
321
|
-
# identity.
|
|
322
|
-
sig { returns(T.nilable(Integer)) }
|
|
323
|
-
attr_reader :default_verification_timeout_secs
|
|
324
|
-
|
|
325
|
-
sig { params(default_verification_timeout_secs: Integer).void }
|
|
326
|
-
attr_writer :default_verification_timeout_secs
|
|
327
|
-
|
|
328
|
-
# The message template identifier selected from /verify_profiles/templates
|
|
329
|
-
sig { returns(T.nilable(String)) }
|
|
330
|
-
attr_reader :messaging_template_id
|
|
331
|
-
|
|
332
|
-
sig { params(messaging_template_id: String).void }
|
|
333
|
-
attr_writer :messaging_template_id
|
|
334
|
-
|
|
335
|
-
# Enable SMS fallback when RCS delivery fails.
|
|
336
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
337
|
-
attr_reader :sms_fallback
|
|
338
|
-
|
|
339
|
-
sig { params(sms_fallback: T::Boolean).void }
|
|
340
|
-
attr_writer :sms_fallback
|
|
341
|
-
|
|
342
|
-
# Enabled country destinations to send verification codes. The elements in the
|
|
343
|
-
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
344
|
-
# destinations will be allowed. **Conditionally required:** this field must be
|
|
345
|
-
# provided when your organization is configured to require explicit whitelisted
|
|
346
|
-
# destinations; otherwise it is optional.
|
|
347
|
-
sig { returns(T.nilable(T::Array[String])) }
|
|
348
|
-
attr_reader :whitelisted_destinations
|
|
349
|
-
|
|
350
|
-
sig { params(whitelisted_destinations: T::Array[String]).void }
|
|
351
|
-
attr_writer :whitelisted_destinations
|
|
352
|
-
|
|
353
|
-
sig do
|
|
354
|
-
params(
|
|
355
|
-
app_name: String,
|
|
356
|
-
code_length: Integer,
|
|
357
|
-
default_verification_timeout_secs: Integer,
|
|
358
|
-
messaging_template_id: String,
|
|
359
|
-
sms_fallback: T::Boolean,
|
|
360
|
-
whitelisted_destinations: T::Array[String]
|
|
361
|
-
).returns(T.attached_class)
|
|
362
|
-
end
|
|
363
|
-
def self.new(
|
|
364
|
-
# The name that identifies the application requesting 2fa in the verification
|
|
365
|
-
# message.
|
|
366
|
-
app_name: nil,
|
|
367
|
-
# The length of the verify code to generate.
|
|
368
|
-
code_length: nil,
|
|
369
|
-
# For every request that is initiated via this Verify profile, this sets the
|
|
370
|
-
# number of seconds before a verification request code expires. Once the
|
|
371
|
-
# verification request expires, the user cannot use the code to verify their
|
|
372
|
-
# identity.
|
|
373
|
-
default_verification_timeout_secs: nil,
|
|
374
|
-
# The message template identifier selected from /verify_profiles/templates
|
|
375
|
-
messaging_template_id: nil,
|
|
376
|
-
# Enable SMS fallback when RCS delivery fails.
|
|
377
|
-
sms_fallback: nil,
|
|
378
|
-
# Enabled country destinations to send verification codes. The elements in the
|
|
379
|
-
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
380
|
-
# destinations will be allowed. **Conditionally required:** this field must be
|
|
381
|
-
# provided when your organization is configured to require explicit whitelisted
|
|
382
|
-
# destinations; otherwise it is optional.
|
|
383
|
-
whitelisted_destinations: nil
|
|
384
|
-
)
|
|
385
|
-
end
|
|
386
|
-
|
|
387
|
-
sig do
|
|
388
|
-
override.returns(
|
|
389
|
-
{
|
|
390
|
-
app_name: String,
|
|
391
|
-
code_length: Integer,
|
|
392
|
-
default_verification_timeout_secs: Integer,
|
|
393
|
-
messaging_template_id: String,
|
|
394
|
-
sms_fallback: T::Boolean,
|
|
395
|
-
whitelisted_destinations: T::Array[String]
|
|
396
|
-
}
|
|
397
|
-
)
|
|
398
|
-
end
|
|
399
|
-
def to_hash
|
|
400
|
-
end
|
|
401
|
-
end
|
|
402
|
-
|
|
403
307
|
class SMS < Telnyx::Internal::Type::BaseModel
|
|
404
308
|
OrHash =
|
|
405
309
|
T.type_alias do
|
|
@@ -20,15 +20,19 @@ module Telnyx
|
|
|
20
20
|
sig { params(call: Telnyx::VerifyProfileUpdateParams::Call::OrHash).void }
|
|
21
21
|
attr_writer :call
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
# The maximum daily spend allowed on this verify profile, in USD.
|
|
24
|
+
sig { returns(T.nilable(Float)) }
|
|
25
|
+
attr_reader :daily_spend_limit
|
|
25
26
|
|
|
26
|
-
sig
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
sig { params(daily_spend_limit: Float).void }
|
|
28
|
+
attr_writer :daily_spend_limit
|
|
29
|
+
|
|
30
|
+
# Whether the daily spend limit is enforced for this verify profile.
|
|
31
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
32
|
+
attr_reader :daily_spend_limit_enabled
|
|
33
|
+
|
|
34
|
+
sig { params(daily_spend_limit_enabled: T::Boolean).void }
|
|
35
|
+
attr_writer :daily_spend_limit_enabled
|
|
32
36
|
|
|
33
37
|
sig { returns(T.nilable(String)) }
|
|
34
38
|
attr_reader :language
|
|
@@ -42,12 +46,6 @@ module Telnyx
|
|
|
42
46
|
sig { params(name: String).void }
|
|
43
47
|
attr_writer :name
|
|
44
48
|
|
|
45
|
-
sig { returns(T.nilable(Telnyx::VerifyProfileUpdateParams::Rcs)) }
|
|
46
|
-
attr_reader :rcs
|
|
47
|
-
|
|
48
|
-
sig { params(rcs: Telnyx::VerifyProfileUpdateParams::Rcs::OrHash).void }
|
|
49
|
-
attr_writer :rcs
|
|
50
|
-
|
|
51
49
|
sig { returns(T.nilable(Telnyx::VerifyProfileUpdateParams::SMS)) }
|
|
52
50
|
attr_reader :sms
|
|
53
51
|
|
|
@@ -80,10 +78,10 @@ module Telnyx
|
|
|
80
78
|
params(
|
|
81
79
|
verify_profile_id: String,
|
|
82
80
|
call: Telnyx::VerifyProfileUpdateParams::Call::OrHash,
|
|
83
|
-
|
|
81
|
+
daily_spend_limit: Float,
|
|
82
|
+
daily_spend_limit_enabled: T::Boolean,
|
|
84
83
|
language: String,
|
|
85
84
|
name: String,
|
|
86
|
-
rcs: Telnyx::VerifyProfileUpdateParams::Rcs::OrHash,
|
|
87
85
|
sms: Telnyx::VerifyProfileUpdateParams::SMS::OrHash,
|
|
88
86
|
webhook_failover_url: String,
|
|
89
87
|
webhook_url: String,
|
|
@@ -94,10 +92,12 @@ module Telnyx
|
|
|
94
92
|
def self.new(
|
|
95
93
|
verify_profile_id:,
|
|
96
94
|
call: nil,
|
|
97
|
-
|
|
95
|
+
# The maximum daily spend allowed on this verify profile, in USD.
|
|
96
|
+
daily_spend_limit: nil,
|
|
97
|
+
# Whether the daily spend limit is enforced for this verify profile.
|
|
98
|
+
daily_spend_limit_enabled: nil,
|
|
98
99
|
language: nil,
|
|
99
100
|
name: nil,
|
|
100
|
-
rcs: nil,
|
|
101
101
|
sms: nil,
|
|
102
102
|
webhook_failover_url: nil,
|
|
103
103
|
webhook_url: nil,
|
|
@@ -111,10 +111,10 @@ module Telnyx
|
|
|
111
111
|
{
|
|
112
112
|
verify_profile_id: String,
|
|
113
113
|
call: Telnyx::VerifyProfileUpdateParams::Call,
|
|
114
|
-
|
|
114
|
+
daily_spend_limit: Float,
|
|
115
|
+
daily_spend_limit_enabled: T::Boolean,
|
|
115
116
|
language: String,
|
|
116
117
|
name: String,
|
|
117
|
-
rcs: Telnyx::VerifyProfileUpdateParams::Rcs,
|
|
118
118
|
sms: Telnyx::VerifyProfileUpdateParams::SMS,
|
|
119
119
|
webhook_failover_url: String,
|
|
120
120
|
webhook_url: String,
|
|
@@ -224,191 +224,6 @@ module Telnyx
|
|
|
224
224
|
end
|
|
225
225
|
end
|
|
226
226
|
|
|
227
|
-
class Flashcall < Telnyx::Internal::Type::BaseModel
|
|
228
|
-
OrHash =
|
|
229
|
-
T.type_alias do
|
|
230
|
-
T.any(
|
|
231
|
-
Telnyx::VerifyProfileUpdateParams::Flashcall,
|
|
232
|
-
Telnyx::Internal::AnyHash
|
|
233
|
-
)
|
|
234
|
-
end
|
|
235
|
-
|
|
236
|
-
# The name that identifies the application requesting 2fa in the verification
|
|
237
|
-
# message.
|
|
238
|
-
sig { returns(T.nilable(String)) }
|
|
239
|
-
attr_reader :app_name
|
|
240
|
-
|
|
241
|
-
sig { params(app_name: String).void }
|
|
242
|
-
attr_writer :app_name
|
|
243
|
-
|
|
244
|
-
# For every request that is initiated via this Verify profile, this sets the
|
|
245
|
-
# number of seconds before a verification request code expires. Once the
|
|
246
|
-
# verification request expires, the user cannot use the code to verify their
|
|
247
|
-
# identity.
|
|
248
|
-
sig { returns(T.nilable(Integer)) }
|
|
249
|
-
attr_reader :default_verification_timeout_secs
|
|
250
|
-
|
|
251
|
-
sig { params(default_verification_timeout_secs: Integer).void }
|
|
252
|
-
attr_writer :default_verification_timeout_secs
|
|
253
|
-
|
|
254
|
-
# Enabled country destinations to send verification codes. The elements in the
|
|
255
|
-
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
256
|
-
# destinations will be allowed. **Conditionally required:** this field must be
|
|
257
|
-
# provided when your organization is configured to require explicit whitelisted
|
|
258
|
-
# destinations; otherwise it is optional.
|
|
259
|
-
sig { returns(T.nilable(T::Array[String])) }
|
|
260
|
-
attr_reader :whitelisted_destinations
|
|
261
|
-
|
|
262
|
-
sig { params(whitelisted_destinations: T::Array[String]).void }
|
|
263
|
-
attr_writer :whitelisted_destinations
|
|
264
|
-
|
|
265
|
-
sig do
|
|
266
|
-
params(
|
|
267
|
-
app_name: String,
|
|
268
|
-
default_verification_timeout_secs: Integer,
|
|
269
|
-
whitelisted_destinations: T::Array[String]
|
|
270
|
-
).returns(T.attached_class)
|
|
271
|
-
end
|
|
272
|
-
def self.new(
|
|
273
|
-
# The name that identifies the application requesting 2fa in the verification
|
|
274
|
-
# message.
|
|
275
|
-
app_name: nil,
|
|
276
|
-
# For every request that is initiated via this Verify profile, this sets the
|
|
277
|
-
# number of seconds before a verification request code expires. Once the
|
|
278
|
-
# verification request expires, the user cannot use the code to verify their
|
|
279
|
-
# identity.
|
|
280
|
-
default_verification_timeout_secs: nil,
|
|
281
|
-
# Enabled country destinations to send verification codes. The elements in the
|
|
282
|
-
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
283
|
-
# destinations will be allowed. **Conditionally required:** this field must be
|
|
284
|
-
# provided when your organization is configured to require explicit whitelisted
|
|
285
|
-
# destinations; otherwise it is optional.
|
|
286
|
-
whitelisted_destinations: nil
|
|
287
|
-
)
|
|
288
|
-
end
|
|
289
|
-
|
|
290
|
-
sig do
|
|
291
|
-
override.returns(
|
|
292
|
-
{
|
|
293
|
-
app_name: String,
|
|
294
|
-
default_verification_timeout_secs: Integer,
|
|
295
|
-
whitelisted_destinations: T::Array[String]
|
|
296
|
-
}
|
|
297
|
-
)
|
|
298
|
-
end
|
|
299
|
-
def to_hash
|
|
300
|
-
end
|
|
301
|
-
end
|
|
302
|
-
|
|
303
|
-
class Rcs < Telnyx::Internal::Type::BaseModel
|
|
304
|
-
OrHash =
|
|
305
|
-
T.type_alias do
|
|
306
|
-
T.any(
|
|
307
|
-
Telnyx::VerifyProfileUpdateParams::Rcs,
|
|
308
|
-
Telnyx::Internal::AnyHash
|
|
309
|
-
)
|
|
310
|
-
end
|
|
311
|
-
|
|
312
|
-
# The name that identifies the application requesting 2fa in the verification
|
|
313
|
-
# message.
|
|
314
|
-
sig { returns(T.nilable(String)) }
|
|
315
|
-
attr_reader :app_name
|
|
316
|
-
|
|
317
|
-
sig { params(app_name: String).void }
|
|
318
|
-
attr_writer :app_name
|
|
319
|
-
|
|
320
|
-
# The length of the verify code to generate.
|
|
321
|
-
sig { returns(T.nilable(Integer)) }
|
|
322
|
-
attr_reader :code_length
|
|
323
|
-
|
|
324
|
-
sig { params(code_length: Integer).void }
|
|
325
|
-
attr_writer :code_length
|
|
326
|
-
|
|
327
|
-
# For every request that is initiated via this Verify profile, this sets the
|
|
328
|
-
# number of seconds before a verification request code expires. Once the
|
|
329
|
-
# verification request expires, the user cannot use the code to verify their
|
|
330
|
-
# identity.
|
|
331
|
-
sig { returns(T.nilable(Integer)) }
|
|
332
|
-
attr_reader :default_verification_timeout_secs
|
|
333
|
-
|
|
334
|
-
sig { params(default_verification_timeout_secs: Integer).void }
|
|
335
|
-
attr_writer :default_verification_timeout_secs
|
|
336
|
-
|
|
337
|
-
# The message template identifier selected from /verify_profiles/templates
|
|
338
|
-
sig { returns(T.nilable(String)) }
|
|
339
|
-
attr_reader :messaging_template_id
|
|
340
|
-
|
|
341
|
-
sig { params(messaging_template_id: String).void }
|
|
342
|
-
attr_writer :messaging_template_id
|
|
343
|
-
|
|
344
|
-
# Enable SMS fallback when RCS delivery fails.
|
|
345
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
346
|
-
attr_reader :sms_fallback
|
|
347
|
-
|
|
348
|
-
sig { params(sms_fallback: T::Boolean).void }
|
|
349
|
-
attr_writer :sms_fallback
|
|
350
|
-
|
|
351
|
-
# Enabled country destinations to send verification codes. The elements in the
|
|
352
|
-
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
353
|
-
# destinations will be allowed. **Conditionally required:** this field must be
|
|
354
|
-
# provided when your organization is configured to require explicit whitelisted
|
|
355
|
-
# destinations; otherwise it is optional.
|
|
356
|
-
sig { returns(T.nilable(T::Array[String])) }
|
|
357
|
-
attr_reader :whitelisted_destinations
|
|
358
|
-
|
|
359
|
-
sig { params(whitelisted_destinations: T::Array[String]).void }
|
|
360
|
-
attr_writer :whitelisted_destinations
|
|
361
|
-
|
|
362
|
-
sig do
|
|
363
|
-
params(
|
|
364
|
-
app_name: String,
|
|
365
|
-
code_length: Integer,
|
|
366
|
-
default_verification_timeout_secs: Integer,
|
|
367
|
-
messaging_template_id: String,
|
|
368
|
-
sms_fallback: T::Boolean,
|
|
369
|
-
whitelisted_destinations: T::Array[String]
|
|
370
|
-
).returns(T.attached_class)
|
|
371
|
-
end
|
|
372
|
-
def self.new(
|
|
373
|
-
# The name that identifies the application requesting 2fa in the verification
|
|
374
|
-
# message.
|
|
375
|
-
app_name: nil,
|
|
376
|
-
# The length of the verify code to generate.
|
|
377
|
-
code_length: nil,
|
|
378
|
-
# For every request that is initiated via this Verify profile, this sets the
|
|
379
|
-
# number of seconds before a verification request code expires. Once the
|
|
380
|
-
# verification request expires, the user cannot use the code to verify their
|
|
381
|
-
# identity.
|
|
382
|
-
default_verification_timeout_secs: nil,
|
|
383
|
-
# The message template identifier selected from /verify_profiles/templates
|
|
384
|
-
messaging_template_id: nil,
|
|
385
|
-
# Enable SMS fallback when RCS delivery fails.
|
|
386
|
-
sms_fallback: nil,
|
|
387
|
-
# Enabled country destinations to send verification codes. The elements in the
|
|
388
|
-
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
389
|
-
# destinations will be allowed. **Conditionally required:** this field must be
|
|
390
|
-
# provided when your organization is configured to require explicit whitelisted
|
|
391
|
-
# destinations; otherwise it is optional.
|
|
392
|
-
whitelisted_destinations: nil
|
|
393
|
-
)
|
|
394
|
-
end
|
|
395
|
-
|
|
396
|
-
sig do
|
|
397
|
-
override.returns(
|
|
398
|
-
{
|
|
399
|
-
app_name: String,
|
|
400
|
-
code_length: Integer,
|
|
401
|
-
default_verification_timeout_secs: Integer,
|
|
402
|
-
messaging_template_id: String,
|
|
403
|
-
sms_fallback: T::Boolean,
|
|
404
|
-
whitelisted_destinations: T::Array[String]
|
|
405
|
-
}
|
|
406
|
-
)
|
|
407
|
-
end
|
|
408
|
-
def to_hash
|
|
409
|
-
end
|
|
410
|
-
end
|
|
411
|
-
|
|
412
227
|
class SMS < Telnyx::Internal::Type::BaseModel
|
|
413
228
|
OrHash =
|
|
414
229
|
T.type_alias do
|
|
@@ -9,9 +9,10 @@ module Telnyx
|
|
|
9
9
|
params(
|
|
10
10
|
name: String,
|
|
11
11
|
call: Telnyx::VerifyProfileCreateParams::Call::OrHash,
|
|
12
|
+
daily_spend_limit: Float,
|
|
13
|
+
daily_spend_limit_enabled: T::Boolean,
|
|
12
14
|
flashcall: Telnyx::VerifyProfileCreateParams::Flashcall::OrHash,
|
|
13
15
|
language: String,
|
|
14
|
-
rcs: Telnyx::VerifyProfileCreateParams::Rcs::OrHash,
|
|
15
16
|
sms: Telnyx::VerifyProfileCreateParams::SMS::OrHash,
|
|
16
17
|
webhook_failover_url: String,
|
|
17
18
|
webhook_url: String,
|
|
@@ -22,9 +23,12 @@ module Telnyx
|
|
|
22
23
|
def create(
|
|
23
24
|
name:,
|
|
24
25
|
call: nil,
|
|
26
|
+
# The maximum daily spend allowed on this verify profile, in USD.
|
|
27
|
+
daily_spend_limit: nil,
|
|
28
|
+
# Whether the daily spend limit is enforced for this verify profile.
|
|
29
|
+
daily_spend_limit_enabled: nil,
|
|
25
30
|
flashcall: nil,
|
|
26
31
|
language: nil,
|
|
27
|
-
rcs: nil,
|
|
28
32
|
sms: nil,
|
|
29
33
|
webhook_failover_url: nil,
|
|
30
34
|
webhook_url: nil,
|
|
@@ -52,10 +56,10 @@ module Telnyx
|
|
|
52
56
|
params(
|
|
53
57
|
verify_profile_id: String,
|
|
54
58
|
call: Telnyx::VerifyProfileUpdateParams::Call::OrHash,
|
|
55
|
-
|
|
59
|
+
daily_spend_limit: Float,
|
|
60
|
+
daily_spend_limit_enabled: T::Boolean,
|
|
56
61
|
language: String,
|
|
57
62
|
name: String,
|
|
58
|
-
rcs: Telnyx::VerifyProfileUpdateParams::Rcs::OrHash,
|
|
59
63
|
sms: Telnyx::VerifyProfileUpdateParams::SMS::OrHash,
|
|
60
64
|
webhook_failover_url: String,
|
|
61
65
|
webhook_url: String,
|
|
@@ -67,10 +71,12 @@ module Telnyx
|
|
|
67
71
|
# The identifier of the Verify profile to update.
|
|
68
72
|
verify_profile_id,
|
|
69
73
|
call: nil,
|
|
70
|
-
|
|
74
|
+
# The maximum daily spend allowed on this verify profile, in USD.
|
|
75
|
+
daily_spend_limit: nil,
|
|
76
|
+
# Whether the daily spend limit is enforced for this verify profile.
|
|
77
|
+
daily_spend_limit_enabled: nil,
|
|
71
78
|
language: nil,
|
|
72
79
|
name: nil,
|
|
73
|
-
rcs: nil,
|
|
74
80
|
sms: nil,
|
|
75
81
|
webhook_failover_url: nil,
|
|
76
82
|
webhook_url: nil,
|
|
@@ -3,6 +3,7 @@ module Telnyx
|
|
|
3
3
|
module AI
|
|
4
4
|
type transcription_settings =
|
|
5
5
|
{
|
|
6
|
+
api_key_ref: String,
|
|
6
7
|
language: String,
|
|
7
8
|
model: Telnyx::Models::AI::TranscriptionSettings::model,
|
|
8
9
|
region: String,
|
|
@@ -10,6 +11,10 @@ module Telnyx
|
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
class TranscriptionSettings < Telnyx::Internal::Type::BaseModel
|
|
14
|
+
attr_reader api_key_ref: String?
|
|
15
|
+
|
|
16
|
+
def api_key_ref=: (String) -> String
|
|
17
|
+
|
|
13
18
|
attr_reader language: String?
|
|
14
19
|
|
|
15
20
|
def language=: (String) -> String
|
|
@@ -31,6 +36,7 @@ module Telnyx
|
|
|
31
36
|
) -> Telnyx::AI::TranscriptionSettingsConfig
|
|
32
37
|
|
|
33
38
|
def initialize: (
|
|
39
|
+
?api_key_ref: String,
|
|
34
40
|
?language: String,
|
|
35
41
|
?model: Telnyx::Models::AI::TranscriptionSettings::model,
|
|
36
42
|
?region: String,
|
|
@@ -38,6 +44,7 @@ module Telnyx
|
|
|
38
44
|
) -> void
|
|
39
45
|
|
|
40
46
|
def to_hash: -> {
|
|
47
|
+
api_key_ref: String,
|
|
41
48
|
language: String,
|
|
42
49
|
model: Telnyx::Models::AI::TranscriptionSettings::model,
|
|
43
50
|
region: String,
|
|
@@ -49,6 +56,8 @@ module Telnyx
|
|
|
49
56
|
| :"deepgram/nova-3"
|
|
50
57
|
| :"deepgram/nova-2"
|
|
51
58
|
| :"azure/fast"
|
|
59
|
+
| :"assemblyai/universal-streaming"
|
|
60
|
+
| :"xai/grok-stt"
|
|
52
61
|
| :"distil-whisper/distil-large-v2"
|
|
53
62
|
| :"openai/whisper-large-v3-turbo"
|
|
54
63
|
|
|
@@ -59,6 +68,8 @@ module Telnyx
|
|
|
59
68
|
DEEPGRAM_NOVA_3: :"deepgram/nova-3"
|
|
60
69
|
DEEPGRAM_NOVA_2: :"deepgram/nova-2"
|
|
61
70
|
AZURE_FAST: :"azure/fast"
|
|
71
|
+
ASSEMBLYAI_UNIVERSAL_STREAMING: :"assemblyai/universal-streaming"
|
|
72
|
+
XAI_GROK_STT: :"xai/grok-stt"
|
|
62
73
|
DISTIL_WHISPER_DISTIL_LARGE_V2: :"distil-whisper/distil-large-v2"
|
|
63
74
|
OPENAI_WHISPER_LARGE_V3_TURBO: :"openai/whisper-large-v3-turbo"
|
|
64
75
|
|
|
@@ -4,9 +4,12 @@ module Telnyx
|
|
|
4
4
|
type transcription_settings_config =
|
|
5
5
|
{
|
|
6
6
|
eager_eot_threshold: Float,
|
|
7
|
+
end_of_turn_confidence_threshold: Float,
|
|
7
8
|
eot_threshold: Float,
|
|
8
9
|
eot_timeout_ms: Integer,
|
|
9
10
|
keyterm: String,
|
|
11
|
+
max_turn_silence: Integer,
|
|
12
|
+
min_turn_silence: Integer,
|
|
10
13
|
numerals: bool,
|
|
11
14
|
smart_format: bool
|
|
12
15
|
}
|
|
@@ -16,6 +19,10 @@ module Telnyx
|
|
|
16
19
|
|
|
17
20
|
def eager_eot_threshold=: (Float) -> Float
|
|
18
21
|
|
|
22
|
+
attr_reader end_of_turn_confidence_threshold: Float?
|
|
23
|
+
|
|
24
|
+
def end_of_turn_confidence_threshold=: (Float) -> Float
|
|
25
|
+
|
|
19
26
|
attr_reader eot_threshold: Float?
|
|
20
27
|
|
|
21
28
|
def eot_threshold=: (Float) -> Float
|
|
@@ -28,6 +35,14 @@ module Telnyx
|
|
|
28
35
|
|
|
29
36
|
def keyterm=: (String) -> String
|
|
30
37
|
|
|
38
|
+
attr_reader max_turn_silence: Integer?
|
|
39
|
+
|
|
40
|
+
def max_turn_silence=: (Integer) -> Integer
|
|
41
|
+
|
|
42
|
+
attr_reader min_turn_silence: Integer?
|
|
43
|
+
|
|
44
|
+
def min_turn_silence=: (Integer) -> Integer
|
|
45
|
+
|
|
31
46
|
attr_reader numerals: bool?
|
|
32
47
|
|
|
33
48
|
def numerals=: (bool) -> bool
|
|
@@ -38,18 +53,24 @@ module Telnyx
|
|
|
38
53
|
|
|
39
54
|
def initialize: (
|
|
40
55
|
?eager_eot_threshold: Float,
|
|
56
|
+
?end_of_turn_confidence_threshold: Float,
|
|
41
57
|
?eot_threshold: Float,
|
|
42
58
|
?eot_timeout_ms: Integer,
|
|
43
59
|
?keyterm: String,
|
|
60
|
+
?max_turn_silence: Integer,
|
|
61
|
+
?min_turn_silence: Integer,
|
|
44
62
|
?numerals: bool,
|
|
45
63
|
?smart_format: bool
|
|
46
64
|
) -> void
|
|
47
65
|
|
|
48
66
|
def to_hash: -> {
|
|
49
67
|
eager_eot_threshold: Float,
|
|
68
|
+
end_of_turn_confidence_threshold: Float,
|
|
50
69
|
eot_threshold: Float,
|
|
51
70
|
eot_timeout_ms: Integer,
|
|
52
71
|
keyterm: String,
|
|
72
|
+
max_turn_silence: Integer,
|
|
73
|
+
min_turn_silence: Integer,
|
|
53
74
|
numerals: bool,
|
|
54
75
|
smart_format: bool
|
|
55
76
|
}
|