telnyx 5.74.0 → 5.76.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 +16 -0
- data/README.md +1 -1
- data/lib/telnyx/models/call_deepfake_detection_error_webhook_event.rb +160 -0
- data/lib/telnyx/models/call_deepfake_detection_result_webhook_event.rb +176 -0
- data/lib/telnyx/models/call_dial_params.rb +48 -1
- data/lib/telnyx/models/calls/action_answer_params.rb +48 -1
- data/lib/telnyx/models/sim_card_list_params.rb +1 -1
- data/lib/telnyx/models/traffic_policy_profile_list_params.rb +2 -2
- data/lib/telnyx/models/unsafe_unwrap_webhook_event.rb +5 -1
- data/lib/telnyx/models/unwrap_webhook_event.rb +5 -1
- data/lib/telnyx/models/verify_profile.rb +9 -3
- data/lib/telnyx/models/verify_profile_create_params.rb +15 -5
- data/lib/telnyx/models/verify_profile_update_params.rb +15 -5
- data/lib/telnyx/models.rb +4 -0
- data/lib/telnyx/resources/calls/actions.rb +6 -1
- data/lib/telnyx/resources/calls.rb +6 -1
- data/lib/telnyx/resources/webhooks.rb +2 -2
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +2 -0
- data/rbi/telnyx/models/call_deepfake_detection_error_webhook_event.rbi +380 -0
- data/rbi/telnyx/models/call_deepfake_detection_result_webhook_event.rbi +398 -0
- data/rbi/telnyx/models/call_dial_params.rbi +80 -0
- data/rbi/telnyx/models/calls/action_answer_params.rbi +87 -0
- data/rbi/telnyx/models/sim_card_list_params.rbi +1 -1
- data/rbi/telnyx/models/traffic_policy_profile_list_params.rbi +2 -2
- data/rbi/telnyx/models/unsafe_unwrap_webhook_event.rbi +2 -0
- data/rbi/telnyx/models/unwrap_webhook_event.rbi +2 -0
- data/rbi/telnyx/models/verify_profile.rbi +18 -6
- data/rbi/telnyx/models/verify_profile_create_params.rbi +30 -10
- data/rbi/telnyx/models/verify_profile_update_params.rbi +30 -10
- data/rbi/telnyx/models.rbi +6 -0
- data/rbi/telnyx/resources/calls/actions.rbi +10 -0
- data/rbi/telnyx/resources/calls.rbi +9 -0
- data/rbi/telnyx/resources/webhooks.rbi +4 -0
- data/sig/telnyx/models/call_deepfake_detection_error_webhook_event.rbs +166 -0
- data/sig/telnyx/models/call_deepfake_detection_result_webhook_event.rbs +171 -0
- data/sig/telnyx/models/call_dial_params.rbs +36 -0
- data/sig/telnyx/models/calls/action_answer_params.rbs +36 -0
- data/sig/telnyx/models/sim_card_list_params.rbs +1 -1
- data/sig/telnyx/models/traffic_policy_profile_list_params.rbs +2 -2
- data/sig/telnyx/models/unsafe_unwrap_webhook_event.rbs +2 -0
- data/sig/telnyx/models/unwrap_webhook_event.rbs +2 -0
- data/sig/telnyx/models.rbs +4 -0
- data/sig/telnyx/resources/calls/actions.rbs +1 -0
- data/sig/telnyx/resources/calls.rbs +1 -0
- data/sig/telnyx/resources/webhooks.rbs +4 -0
- metadata +8 -2
|
@@ -177,7 +177,9 @@ module Telnyx
|
|
|
177
177
|
|
|
178
178
|
# Enabled country destinations to send verification codes. The elements in the
|
|
179
179
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
180
|
-
# destinations will be allowed.
|
|
180
|
+
# destinations will be allowed. **Conditionally required:** this field must be
|
|
181
|
+
# provided when your organization is configured to require explicit whitelisted
|
|
182
|
+
# destinations; otherwise it is optional.
|
|
181
183
|
sig { returns(T.nilable(T::Array[String])) }
|
|
182
184
|
attr_reader :whitelisted_destinations
|
|
183
185
|
|
|
@@ -208,7 +210,9 @@ module Telnyx
|
|
|
208
210
|
messaging_template_id: nil,
|
|
209
211
|
# Enabled country destinations to send verification codes. The elements in the
|
|
210
212
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
211
|
-
# destinations will be allowed.
|
|
213
|
+
# destinations will be allowed. **Conditionally required:** this field must be
|
|
214
|
+
# provided when your organization is configured to require explicit whitelisted
|
|
215
|
+
# destinations; otherwise it is optional.
|
|
212
216
|
whitelisted_destinations: nil
|
|
213
217
|
)
|
|
214
218
|
end
|
|
@@ -326,7 +330,9 @@ module Telnyx
|
|
|
326
330
|
|
|
327
331
|
# Enabled country destinations to send verification codes. The elements in the
|
|
328
332
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
329
|
-
# destinations will be allowed.
|
|
333
|
+
# destinations will be allowed. **Conditionally required:** this field must be
|
|
334
|
+
# provided when your organization is configured to require explicit whitelisted
|
|
335
|
+
# destinations; otherwise it is optional.
|
|
330
336
|
sig { returns(T.nilable(T::Array[String])) }
|
|
331
337
|
attr_reader :whitelisted_destinations
|
|
332
338
|
|
|
@@ -360,7 +366,9 @@ module Telnyx
|
|
|
360
366
|
sms_fallback: nil,
|
|
361
367
|
# Enabled country destinations to send verification codes. The elements in the
|
|
362
368
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
363
|
-
# destinations will be allowed.
|
|
369
|
+
# destinations will be allowed. **Conditionally required:** this field must be
|
|
370
|
+
# provided when your organization is configured to require explicit whitelisted
|
|
371
|
+
# destinations; otherwise it is optional.
|
|
364
372
|
whitelisted_destinations: nil
|
|
365
373
|
)
|
|
366
374
|
end
|
|
@@ -449,7 +457,9 @@ module Telnyx
|
|
|
449
457
|
|
|
450
458
|
# Enabled country destinations to send verification codes. The elements in the
|
|
451
459
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
452
|
-
# destinations will be allowed.
|
|
460
|
+
# destinations will be allowed. **Conditionally required:** this field must be
|
|
461
|
+
# provided when your organization is configured to require explicit whitelisted
|
|
462
|
+
# destinations; otherwise it is optional.
|
|
453
463
|
sig { returns(T.nilable(T::Array[String])) }
|
|
454
464
|
attr_reader :whitelisted_destinations
|
|
455
465
|
|
|
@@ -484,7 +494,9 @@ module Telnyx
|
|
|
484
494
|
messaging_template_id: nil,
|
|
485
495
|
# Enabled country destinations to send verification codes. The elements in the
|
|
486
496
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
487
|
-
# destinations will be allowed.
|
|
497
|
+
# destinations will be allowed. **Conditionally required:** this field must be
|
|
498
|
+
# provided when your organization is configured to require explicit whitelisted
|
|
499
|
+
# destinations; otherwise it is optional.
|
|
488
500
|
whitelisted_destinations: nil
|
|
489
501
|
)
|
|
490
502
|
end
|
|
@@ -160,7 +160,9 @@ module Telnyx
|
|
|
160
160
|
|
|
161
161
|
# Enabled country destinations to send verification codes. The elements in the
|
|
162
162
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
163
|
-
# destinations will be allowed.
|
|
163
|
+
# destinations will be allowed. **Conditionally required:** this field must be
|
|
164
|
+
# provided when your organization is configured to require explicit whitelisted
|
|
165
|
+
# destinations; otherwise it is optional.
|
|
164
166
|
sig { returns(T.nilable(T::Array[String])) }
|
|
165
167
|
attr_reader :whitelisted_destinations
|
|
166
168
|
|
|
@@ -191,7 +193,9 @@ module Telnyx
|
|
|
191
193
|
messaging_template_id: nil,
|
|
192
194
|
# Enabled country destinations to send verification codes. The elements in the
|
|
193
195
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
194
|
-
# destinations will be allowed.
|
|
196
|
+
# destinations will be allowed. **Conditionally required:** this field must be
|
|
197
|
+
# provided when your organization is configured to require explicit whitelisted
|
|
198
|
+
# destinations; otherwise it is optional.
|
|
195
199
|
whitelisted_destinations: nil
|
|
196
200
|
)
|
|
197
201
|
end
|
|
@@ -240,7 +244,9 @@ module Telnyx
|
|
|
240
244
|
|
|
241
245
|
# Enabled country destinations to send verification codes. The elements in the
|
|
242
246
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
243
|
-
# destinations will be allowed.
|
|
247
|
+
# destinations will be allowed. **Conditionally required:** this field must be
|
|
248
|
+
# provided when your organization is configured to require explicit whitelisted
|
|
249
|
+
# destinations; otherwise it is optional.
|
|
244
250
|
sig { returns(T.nilable(T::Array[String])) }
|
|
245
251
|
attr_reader :whitelisted_destinations
|
|
246
252
|
|
|
@@ -265,7 +271,9 @@ module Telnyx
|
|
|
265
271
|
default_verification_timeout_secs: nil,
|
|
266
272
|
# Enabled country destinations to send verification codes. The elements in the
|
|
267
273
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
268
|
-
# destinations will be allowed.
|
|
274
|
+
# destinations will be allowed. **Conditionally required:** this field must be
|
|
275
|
+
# provided when your organization is configured to require explicit whitelisted
|
|
276
|
+
# destinations; otherwise it is optional.
|
|
269
277
|
whitelisted_destinations: nil
|
|
270
278
|
)
|
|
271
279
|
end
|
|
@@ -333,7 +341,9 @@ module Telnyx
|
|
|
333
341
|
|
|
334
342
|
# Enabled country destinations to send verification codes. The elements in the
|
|
335
343
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
336
|
-
# destinations will be allowed.
|
|
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.
|
|
337
347
|
sig { returns(T.nilable(T::Array[String])) }
|
|
338
348
|
attr_reader :whitelisted_destinations
|
|
339
349
|
|
|
@@ -367,7 +377,9 @@ module Telnyx
|
|
|
367
377
|
sms_fallback: nil,
|
|
368
378
|
# Enabled country destinations to send verification codes. The elements in the
|
|
369
379
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
370
|
-
# destinations will be allowed.
|
|
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.
|
|
371
383
|
whitelisted_destinations: nil
|
|
372
384
|
)
|
|
373
385
|
end
|
|
@@ -436,7 +448,9 @@ module Telnyx
|
|
|
436
448
|
|
|
437
449
|
# Enabled country destinations to send verification codes. The elements in the
|
|
438
450
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
439
|
-
# destinations will be allowed.
|
|
451
|
+
# destinations will be allowed. **Conditionally required:** this field must be
|
|
452
|
+
# provided when your organization is configured to require explicit whitelisted
|
|
453
|
+
# destinations; otherwise it is optional.
|
|
440
454
|
sig { returns(T.nilable(T::Array[String])) }
|
|
441
455
|
attr_reader :whitelisted_destinations
|
|
442
456
|
|
|
@@ -471,7 +485,9 @@ module Telnyx
|
|
|
471
485
|
messaging_template_id: nil,
|
|
472
486
|
# Enabled country destinations to send verification codes. The elements in the
|
|
473
487
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
474
|
-
# destinations will be allowed.
|
|
488
|
+
# destinations will be allowed. **Conditionally required:** this field must be
|
|
489
|
+
# provided when your organization is configured to require explicit whitelisted
|
|
490
|
+
# destinations; otherwise it is optional.
|
|
475
491
|
whitelisted_destinations: nil
|
|
476
492
|
)
|
|
477
493
|
end
|
|
@@ -521,7 +537,9 @@ module Telnyx
|
|
|
521
537
|
|
|
522
538
|
# Enabled country destinations to send verification codes. The elements in the
|
|
523
539
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
524
|
-
# destinations will be allowed.
|
|
540
|
+
# destinations will be allowed. **Conditionally required:** this field must be
|
|
541
|
+
# provided when your organization is configured to require explicit whitelisted
|
|
542
|
+
# destinations; otherwise it is optional.
|
|
525
543
|
sig { returns(T.nilable(T::Array[String])) }
|
|
526
544
|
attr_reader :whitelisted_destinations
|
|
527
545
|
|
|
@@ -546,7 +564,9 @@ module Telnyx
|
|
|
546
564
|
default_verification_timeout_secs: nil,
|
|
547
565
|
# Enabled country destinations to send verification codes. The elements in the
|
|
548
566
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
549
|
-
# destinations will be allowed.
|
|
567
|
+
# destinations will be allowed. **Conditionally required:** this field must be
|
|
568
|
+
# provided when your organization is configured to require explicit whitelisted
|
|
569
|
+
# destinations; otherwise it is optional.
|
|
550
570
|
whitelisted_destinations: nil
|
|
551
571
|
)
|
|
552
572
|
end
|
|
@@ -169,7 +169,9 @@ module Telnyx
|
|
|
169
169
|
|
|
170
170
|
# Enabled country destinations to send verification codes. The elements in the
|
|
171
171
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
172
|
-
# destinations will be allowed.
|
|
172
|
+
# destinations will be allowed. **Conditionally required:** this field must be
|
|
173
|
+
# provided when your organization is configured to require explicit whitelisted
|
|
174
|
+
# destinations; otherwise it is optional.
|
|
173
175
|
sig { returns(T.nilable(T::Array[String])) }
|
|
174
176
|
attr_reader :whitelisted_destinations
|
|
175
177
|
|
|
@@ -200,7 +202,9 @@ module Telnyx
|
|
|
200
202
|
messaging_template_id: nil,
|
|
201
203
|
# Enabled country destinations to send verification codes. The elements in the
|
|
202
204
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
203
|
-
# destinations will be allowed.
|
|
205
|
+
# destinations will be allowed. **Conditionally required:** this field must be
|
|
206
|
+
# provided when your organization is configured to require explicit whitelisted
|
|
207
|
+
# destinations; otherwise it is optional.
|
|
204
208
|
whitelisted_destinations: nil
|
|
205
209
|
)
|
|
206
210
|
end
|
|
@@ -249,7 +253,9 @@ module Telnyx
|
|
|
249
253
|
|
|
250
254
|
# Enabled country destinations to send verification codes. The elements in the
|
|
251
255
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
252
|
-
# destinations will be allowed.
|
|
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.
|
|
253
259
|
sig { returns(T.nilable(T::Array[String])) }
|
|
254
260
|
attr_reader :whitelisted_destinations
|
|
255
261
|
|
|
@@ -274,7 +280,9 @@ module Telnyx
|
|
|
274
280
|
default_verification_timeout_secs: nil,
|
|
275
281
|
# Enabled country destinations to send verification codes. The elements in the
|
|
276
282
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
277
|
-
# destinations will be allowed.
|
|
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.
|
|
278
286
|
whitelisted_destinations: nil
|
|
279
287
|
)
|
|
280
288
|
end
|
|
@@ -342,7 +350,9 @@ module Telnyx
|
|
|
342
350
|
|
|
343
351
|
# Enabled country destinations to send verification codes. The elements in the
|
|
344
352
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
345
|
-
# destinations will be allowed.
|
|
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.
|
|
346
356
|
sig { returns(T.nilable(T::Array[String])) }
|
|
347
357
|
attr_reader :whitelisted_destinations
|
|
348
358
|
|
|
@@ -376,7 +386,9 @@ module Telnyx
|
|
|
376
386
|
sms_fallback: nil,
|
|
377
387
|
# Enabled country destinations to send verification codes. The elements in the
|
|
378
388
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
379
|
-
# destinations will be allowed.
|
|
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.
|
|
380
392
|
whitelisted_destinations: nil
|
|
381
393
|
)
|
|
382
394
|
end
|
|
@@ -445,7 +457,9 @@ module Telnyx
|
|
|
445
457
|
|
|
446
458
|
# Enabled country destinations to send verification codes. The elements in the
|
|
447
459
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
448
|
-
# destinations will be allowed.
|
|
460
|
+
# destinations will be allowed. **Conditionally required:** this field must be
|
|
461
|
+
# provided when your organization is configured to require explicit whitelisted
|
|
462
|
+
# destinations; otherwise it is optional.
|
|
449
463
|
sig { returns(T.nilable(T::Array[String])) }
|
|
450
464
|
attr_reader :whitelisted_destinations
|
|
451
465
|
|
|
@@ -480,7 +494,9 @@ module Telnyx
|
|
|
480
494
|
messaging_template_id: nil,
|
|
481
495
|
# Enabled country destinations to send verification codes. The elements in the
|
|
482
496
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
483
|
-
# destinations will be allowed.
|
|
497
|
+
# destinations will be allowed. **Conditionally required:** this field must be
|
|
498
|
+
# provided when your organization is configured to require explicit whitelisted
|
|
499
|
+
# destinations; otherwise it is optional.
|
|
484
500
|
whitelisted_destinations: nil
|
|
485
501
|
)
|
|
486
502
|
end
|
|
@@ -530,7 +546,9 @@ module Telnyx
|
|
|
530
546
|
|
|
531
547
|
# Enabled country destinations to send verification codes. The elements in the
|
|
532
548
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
533
|
-
# destinations will be allowed.
|
|
549
|
+
# destinations will be allowed. **Conditionally required:** this field must be
|
|
550
|
+
# provided when your organization is configured to require explicit whitelisted
|
|
551
|
+
# destinations; otherwise it is optional.
|
|
534
552
|
sig { returns(T.nilable(T::Array[String])) }
|
|
535
553
|
attr_reader :whitelisted_destinations
|
|
536
554
|
|
|
@@ -555,7 +573,9 @@ module Telnyx
|
|
|
555
573
|
default_verification_timeout_secs: nil,
|
|
556
574
|
# Enabled country destinations to send verification codes. The elements in the
|
|
557
575
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
558
|
-
# destinations will be allowed.
|
|
576
|
+
# destinations will be allowed. **Conditionally required:** this field must be
|
|
577
|
+
# provided when your organization is configured to require explicit whitelisted
|
|
578
|
+
# destinations; otherwise it is optional.
|
|
559
579
|
whitelisted_destinations: nil
|
|
560
580
|
)
|
|
561
581
|
end
|
data/rbi/telnyx/models.rbi
CHANGED
|
@@ -199,6 +199,12 @@ module Telnyx
|
|
|
199
199
|
|
|
200
200
|
CallCostWebhookEvent = Telnyx::Models::CallCostWebhookEvent
|
|
201
201
|
|
|
202
|
+
CallDeepfakeDetectionErrorWebhookEvent =
|
|
203
|
+
Telnyx::Models::CallDeepfakeDetectionErrorWebhookEvent
|
|
204
|
+
|
|
205
|
+
CallDeepfakeDetectionResultWebhookEvent =
|
|
206
|
+
Telnyx::Models::CallDeepfakeDetectionResultWebhookEvent
|
|
207
|
+
|
|
202
208
|
CallDialParams = Telnyx::Models::CallDialParams
|
|
203
209
|
|
|
204
210
|
CallDtmfReceived = Telnyx::Models::CallDtmfReceived
|
|
@@ -45,6 +45,9 @@ module Telnyx
|
|
|
45
45
|
# **Expected Webhooks:**
|
|
46
46
|
#
|
|
47
47
|
# - `call.answered`
|
|
48
|
+
# - `call.deepfake_detection.result` if `deepfake_detection` was enabled
|
|
49
|
+
# - `call.deepfake_detection.error` if `deepfake_detection` was enabled and an
|
|
50
|
+
# error occurred
|
|
48
51
|
# - `streaming.started`, `streaming.stopped` or `streaming.failed` if `stream_url`
|
|
49
52
|
# was set
|
|
50
53
|
#
|
|
@@ -58,6 +61,8 @@ module Telnyx
|
|
|
58
61
|
client_state: String,
|
|
59
62
|
command_id: String,
|
|
60
63
|
custom_headers: T::Array[Telnyx::CustomSipHeader::OrHash],
|
|
64
|
+
deepfake_detection:
|
|
65
|
+
Telnyx::Calls::ActionAnswerParams::DeepfakeDetection::OrHash,
|
|
61
66
|
preferred_codecs:
|
|
62
67
|
Telnyx::Calls::ActionAnswerParams::PreferredCodecs::OrSymbol,
|
|
63
68
|
record: Telnyx::Calls::ActionAnswerParams::Record::OrSymbol,
|
|
@@ -120,6 +125,11 @@ module Telnyx
|
|
|
120
125
|
command_id: nil,
|
|
121
126
|
# Custom headers to be added to the SIP INVITE response.
|
|
122
127
|
custom_headers: nil,
|
|
128
|
+
# Enables deepfake detection on the call. When enabled, audio from the remote
|
|
129
|
+
# party is streamed to a detection service that analyzes whether the voice is
|
|
130
|
+
# AI-generated. Results are delivered via the `call.deepfake_detection.result`
|
|
131
|
+
# webhook.
|
|
132
|
+
deepfake_detection: nil,
|
|
123
133
|
# The list of comma-separated codecs in a preferred order for the forked media to
|
|
124
134
|
# be received.
|
|
125
135
|
preferred_codecs: nil,
|
|
@@ -22,6 +22,9 @@ module Telnyx
|
|
|
22
22
|
# `answering_machine_detection=premium` was requested
|
|
23
23
|
# - `call.machine.premium.greeting.ended` if `answering_machine_detection=premium`
|
|
24
24
|
# was requested and a beep was detected
|
|
25
|
+
# - `call.deepfake_detection.result` if `deepfake_detection` was enabled
|
|
26
|
+
# - `call.deepfake_detection.error` if `deepfake_detection` was enabled and an
|
|
27
|
+
# error occurred
|
|
25
28
|
# - `streaming.started`, `streaming.stopped` or `streaming.failed` if `stream_url`
|
|
26
29
|
# was set
|
|
27
30
|
#
|
|
@@ -45,6 +48,7 @@ module Telnyx
|
|
|
45
48
|
command_id: String,
|
|
46
49
|
conference_config: Telnyx::CallDialParams::ConferenceConfig::OrHash,
|
|
47
50
|
custom_headers: T::Array[Telnyx::CustomSipHeader::OrHash],
|
|
51
|
+
deepfake_detection: Telnyx::CallDialParams::DeepfakeDetection::OrHash,
|
|
48
52
|
dialogflow_config: Telnyx::DialogflowConfig::OrHash,
|
|
49
53
|
enable_dialogflow: T::Boolean,
|
|
50
54
|
from_display_name: String,
|
|
@@ -163,6 +167,11 @@ module Telnyx
|
|
|
163
167
|
conference_config: nil,
|
|
164
168
|
# Custom headers to be added to the SIP INVITE.
|
|
165
169
|
custom_headers: nil,
|
|
170
|
+
# Enables deepfake detection on the call. When enabled, audio from the remote
|
|
171
|
+
# party is streamed to a detection service that analyzes whether the voice is
|
|
172
|
+
# AI-generated. Results are delivered via the `call.deepfake_detection.result`
|
|
173
|
+
# webhook.
|
|
174
|
+
deepfake_detection: nil,
|
|
166
175
|
dialogflow_config: nil,
|
|
167
176
|
# Enables Dialogflow for the current call. The default value is false.
|
|
168
177
|
enable_dialogflow: nil,
|
|
@@ -14,6 +14,8 @@ module Telnyx
|
|
|
14
14
|
Telnyx::CallConversationEndedWebhookEvent,
|
|
15
15
|
Telnyx::CallConversationInsightsGeneratedWebhookEvent,
|
|
16
16
|
Telnyx::CallCostWebhookEvent,
|
|
17
|
+
Telnyx::CallDeepfakeDetectionErrorWebhookEvent,
|
|
18
|
+
Telnyx::CallDeepfakeDetectionResultWebhookEvent,
|
|
17
19
|
Telnyx::CallDtmfReceivedWebhookEvent,
|
|
18
20
|
Telnyx::CallEnqueuedWebhookEvent,
|
|
19
21
|
Telnyx::CallForkStartedWebhookEvent,
|
|
@@ -91,6 +93,8 @@ module Telnyx
|
|
|
91
93
|
Telnyx::CallConversationEndedWebhookEvent,
|
|
92
94
|
Telnyx::CallConversationInsightsGeneratedWebhookEvent,
|
|
93
95
|
Telnyx::CallCostWebhookEvent,
|
|
96
|
+
Telnyx::CallDeepfakeDetectionErrorWebhookEvent,
|
|
97
|
+
Telnyx::CallDeepfakeDetectionResultWebhookEvent,
|
|
94
98
|
Telnyx::CallDtmfReceivedWebhookEvent,
|
|
95
99
|
Telnyx::CallEnqueuedWebhookEvent,
|
|
96
100
|
Telnyx::CallForkStartedWebhookEvent,
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
type call_deepfake_detection_error_webhook_event =
|
|
4
|
+
{ data: Telnyx::CallDeepfakeDetectionErrorWebhookEvent::Data }
|
|
5
|
+
|
|
6
|
+
class CallDeepfakeDetectionErrorWebhookEvent < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
attr_reader data: Telnyx::CallDeepfakeDetectionErrorWebhookEvent::Data?
|
|
8
|
+
|
|
9
|
+
def data=: (
|
|
10
|
+
Telnyx::CallDeepfakeDetectionErrorWebhookEvent::Data
|
|
11
|
+
) -> Telnyx::CallDeepfakeDetectionErrorWebhookEvent::Data
|
|
12
|
+
|
|
13
|
+
def initialize: (
|
|
14
|
+
?data: Telnyx::CallDeepfakeDetectionErrorWebhookEvent::Data
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
data: Telnyx::CallDeepfakeDetectionErrorWebhookEvent::Data
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
type data =
|
|
22
|
+
{
|
|
23
|
+
id: String,
|
|
24
|
+
event_type: Telnyx::Models::CallDeepfakeDetectionErrorWebhookEvent::Data::event_type,
|
|
25
|
+
occurred_at: Time,
|
|
26
|
+
payload: Telnyx::CallDeepfakeDetectionErrorWebhookEvent::Data::Payload,
|
|
27
|
+
record_type: Telnyx::Models::CallDeepfakeDetectionErrorWebhookEvent::Data::record_type
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
class Data < Telnyx::Internal::Type::BaseModel
|
|
31
|
+
attr_reader id: String?
|
|
32
|
+
|
|
33
|
+
def id=: (String) -> String
|
|
34
|
+
|
|
35
|
+
attr_reader event_type: Telnyx::Models::CallDeepfakeDetectionErrorWebhookEvent::Data::event_type?
|
|
36
|
+
|
|
37
|
+
def event_type=: (
|
|
38
|
+
Telnyx::Models::CallDeepfakeDetectionErrorWebhookEvent::Data::event_type
|
|
39
|
+
) -> Telnyx::Models::CallDeepfakeDetectionErrorWebhookEvent::Data::event_type
|
|
40
|
+
|
|
41
|
+
attr_reader occurred_at: Time?
|
|
42
|
+
|
|
43
|
+
def occurred_at=: (Time) -> Time
|
|
44
|
+
|
|
45
|
+
attr_reader payload: Telnyx::CallDeepfakeDetectionErrorWebhookEvent::Data::Payload?
|
|
46
|
+
|
|
47
|
+
def payload=: (
|
|
48
|
+
Telnyx::CallDeepfakeDetectionErrorWebhookEvent::Data::Payload
|
|
49
|
+
) -> Telnyx::CallDeepfakeDetectionErrorWebhookEvent::Data::Payload
|
|
50
|
+
|
|
51
|
+
attr_reader record_type: Telnyx::Models::CallDeepfakeDetectionErrorWebhookEvent::Data::record_type?
|
|
52
|
+
|
|
53
|
+
def record_type=: (
|
|
54
|
+
Telnyx::Models::CallDeepfakeDetectionErrorWebhookEvent::Data::record_type
|
|
55
|
+
) -> Telnyx::Models::CallDeepfakeDetectionErrorWebhookEvent::Data::record_type
|
|
56
|
+
|
|
57
|
+
def initialize: (
|
|
58
|
+
?id: String,
|
|
59
|
+
?event_type: Telnyx::Models::CallDeepfakeDetectionErrorWebhookEvent::Data::event_type,
|
|
60
|
+
?occurred_at: Time,
|
|
61
|
+
?payload: Telnyx::CallDeepfakeDetectionErrorWebhookEvent::Data::Payload,
|
|
62
|
+
?record_type: Telnyx::Models::CallDeepfakeDetectionErrorWebhookEvent::Data::record_type
|
|
63
|
+
) -> void
|
|
64
|
+
|
|
65
|
+
def to_hash: -> {
|
|
66
|
+
id: String,
|
|
67
|
+
event_type: Telnyx::Models::CallDeepfakeDetectionErrorWebhookEvent::Data::event_type,
|
|
68
|
+
occurred_at: Time,
|
|
69
|
+
payload: Telnyx::CallDeepfakeDetectionErrorWebhookEvent::Data::Payload,
|
|
70
|
+
record_type: Telnyx::Models::CallDeepfakeDetectionErrorWebhookEvent::Data::record_type
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
type event_type = :"call.deepfake_detection.error"
|
|
74
|
+
|
|
75
|
+
module EventType
|
|
76
|
+
extend Telnyx::Internal::Type::Enum
|
|
77
|
+
|
|
78
|
+
CALL_DEEPFAKE_DETECTION_ERROR: :"call.deepfake_detection.error"
|
|
79
|
+
|
|
80
|
+
def self?.values: -> ::Array[Telnyx::Models::CallDeepfakeDetectionErrorWebhookEvent::Data::event_type]
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
type payload =
|
|
84
|
+
{
|
|
85
|
+
call_control_id: String,
|
|
86
|
+
call_leg_id: String,
|
|
87
|
+
call_session_id: String,
|
|
88
|
+
client_state: String?,
|
|
89
|
+
connection_id: String,
|
|
90
|
+
error_message: Telnyx::Models::CallDeepfakeDetectionErrorWebhookEvent::Data::Payload::error_message
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
class Payload < Telnyx::Internal::Type::BaseModel
|
|
94
|
+
attr_reader call_control_id: String?
|
|
95
|
+
|
|
96
|
+
def call_control_id=: (String) -> String
|
|
97
|
+
|
|
98
|
+
attr_reader call_leg_id: String?
|
|
99
|
+
|
|
100
|
+
def call_leg_id=: (String) -> String
|
|
101
|
+
|
|
102
|
+
attr_reader call_session_id: String?
|
|
103
|
+
|
|
104
|
+
def call_session_id=: (String) -> String
|
|
105
|
+
|
|
106
|
+
attr_accessor client_state: String?
|
|
107
|
+
|
|
108
|
+
attr_reader connection_id: String?
|
|
109
|
+
|
|
110
|
+
def connection_id=: (String) -> String
|
|
111
|
+
|
|
112
|
+
attr_reader error_message: Telnyx::Models::CallDeepfakeDetectionErrorWebhookEvent::Data::Payload::error_message?
|
|
113
|
+
|
|
114
|
+
def error_message=: (
|
|
115
|
+
Telnyx::Models::CallDeepfakeDetectionErrorWebhookEvent::Data::Payload::error_message
|
|
116
|
+
) -> Telnyx::Models::CallDeepfakeDetectionErrorWebhookEvent::Data::Payload::error_message
|
|
117
|
+
|
|
118
|
+
def initialize: (
|
|
119
|
+
?call_control_id: String,
|
|
120
|
+
?call_leg_id: String,
|
|
121
|
+
?call_session_id: String,
|
|
122
|
+
?client_state: String?,
|
|
123
|
+
?connection_id: String,
|
|
124
|
+
?error_message: Telnyx::Models::CallDeepfakeDetectionErrorWebhookEvent::Data::Payload::error_message
|
|
125
|
+
) -> void
|
|
126
|
+
|
|
127
|
+
def to_hash: -> {
|
|
128
|
+
call_control_id: String,
|
|
129
|
+
call_leg_id: String,
|
|
130
|
+
call_session_id: String,
|
|
131
|
+
client_state: String?,
|
|
132
|
+
connection_id: String,
|
|
133
|
+
error_message: Telnyx::Models::CallDeepfakeDetectionErrorWebhookEvent::Data::Payload::error_message
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
type error_message =
|
|
137
|
+
:detection_timeout
|
|
138
|
+
| :rtp_timeout
|
|
139
|
+
| :dfd_connection_error
|
|
140
|
+
| :dfd_stream_error
|
|
141
|
+
|
|
142
|
+
module ErrorMessage
|
|
143
|
+
extend Telnyx::Internal::Type::Enum
|
|
144
|
+
|
|
145
|
+
DETECTION_TIMEOUT: :detection_timeout
|
|
146
|
+
RTP_TIMEOUT: :rtp_timeout
|
|
147
|
+
DFD_CONNECTION_ERROR: :dfd_connection_error
|
|
148
|
+
DFD_STREAM_ERROR: :dfd_stream_error
|
|
149
|
+
|
|
150
|
+
def self?.values: -> ::Array[Telnyx::Models::CallDeepfakeDetectionErrorWebhookEvent::Data::Payload::error_message]
|
|
151
|
+
end
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
type record_type = :event
|
|
155
|
+
|
|
156
|
+
module RecordType
|
|
157
|
+
extend Telnyx::Internal::Type::Enum
|
|
158
|
+
|
|
159
|
+
EVENT: :event
|
|
160
|
+
|
|
161
|
+
def self?.values: -> ::Array[Telnyx::Models::CallDeepfakeDetectionErrorWebhookEvent::Data::record_type]
|
|
162
|
+
end
|
|
163
|
+
end
|
|
164
|
+
end
|
|
165
|
+
end
|
|
166
|
+
end
|