telnyx 5.110.1 → 5.111.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 +8 -0
- data/README.md +1 -1
- data/lib/telnyx/models/texml_initiate_ai_call_params.rb +30 -19
- data/lib/telnyx/resources/texml.rb +18 -7
- data/lib/telnyx/version.rb +1 -1
- data/rbi/telnyx/models/texml_initiate_ai_call_params.rbi +42 -22
- data/rbi/telnyx/resources/texml.rbi +30 -10
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: be2cf4e9be3cdaa6185fcb76deeb5d0d85ea5168492480b35878e8809c24eca8
|
|
4
|
+
data.tar.gz: a26e5c1c405399b8766093b9281a0597adb29ef0121001267e59c8d66f16798b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6503aaffe64f1962021b6b1f91327752f6dc60c014e606422e165ce40acb77fd09dc0e9eb83e8c9317670f98d60c6b5bd422793256be9d09a09c829c50ead42b
|
|
7
|
+
data.tar.gz: 62dc3c4a7e0d4aed8851c548328640b9a2357c75cf408150306a4e651f817fd909b43477e7047ac2dc82bdaedf818d35208c1ad35b6d34b1d9163e0d76d8e2e6
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.111.0 (2026-05-13)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v5.110.1...v5.111.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.110.1...v5.111.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* Document AI call status callback overrides ([2458580](https://github.com/team-telnyx/telnyx-ruby/commit/2458580b9c24eb6dcaae8753720cf00f1891abc8))
|
|
10
|
+
|
|
3
11
|
## 5.110.1 (2026-05-13)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v5.110.0...v5.110.1](https://github.com/team-telnyx/telnyx-ruby/compare/v5.110.0...v5.110.1)
|
data/README.md
CHANGED
|
@@ -77,13 +77,14 @@ module Telnyx
|
|
|
77
77
|
optional :caller_id, String, api_name: :CallerId
|
|
78
78
|
|
|
79
79
|
# @!attribute conversation_callback
|
|
80
|
-
# URL destination for Telnyx to send conversation callback events
|
|
80
|
+
# URL destination for Telnyx to send AI conversation callback events for this
|
|
81
|
+
# call. Events include `conversation_created` and `conversation_ended`.
|
|
81
82
|
#
|
|
82
83
|
# @return [String, nil]
|
|
83
84
|
optional :conversation_callback, String, api_name: :ConversationCallback
|
|
84
85
|
|
|
85
86
|
# @!attribute conversation_callback_method
|
|
86
|
-
# HTTP request type used for `ConversationCallback`.
|
|
87
|
+
# HTTP request type used for `ConversationCallback` and `ConversationCallbacks`.
|
|
87
88
|
#
|
|
88
89
|
# @return [Symbol, Telnyx::Models::TexmlInitiateAICallParams::ConversationCallbackMethod, nil]
|
|
89
90
|
optional :conversation_callback_method,
|
|
@@ -91,7 +92,8 @@ module Telnyx
|
|
|
91
92
|
api_name: :ConversationCallbackMethod
|
|
92
93
|
|
|
93
94
|
# @!attribute conversation_callbacks
|
|
94
|
-
#
|
|
95
|
+
# Array of URL destinations for AI conversation callback events for this call.
|
|
96
|
+
# Events include `conversation_created` and `conversation_ended`.
|
|
95
97
|
#
|
|
96
98
|
# @return [Array<String>, nil]
|
|
97
99
|
optional :conversation_callbacks,
|
|
@@ -239,21 +241,27 @@ module Telnyx
|
|
|
239
241
|
optional :sip_region, enum: -> { Telnyx::TexmlInitiateAICallParams::SipRegion }, api_name: :SipRegion
|
|
240
242
|
|
|
241
243
|
# @!attribute status_callback
|
|
242
|
-
# URL destination for Telnyx to send status callback events
|
|
244
|
+
# URL destination for Telnyx to send status callback events for this AI call. When
|
|
245
|
+
# provided, this per-call value overrides the status callback URL configured on
|
|
246
|
+
# the TeXML application/connection.
|
|
243
247
|
#
|
|
244
248
|
# @return [String, nil]
|
|
245
249
|
optional :status_callback, String, api_name: :StatusCallback
|
|
246
250
|
|
|
247
251
|
# @!attribute status_callback_event
|
|
248
|
-
# The
|
|
249
|
-
# defined when separated by a space. Valid values:
|
|
250
|
-
# completed
|
|
252
|
+
# The status callback events for which Telnyx should send a webhook for this AI
|
|
253
|
+
# call. Multiple events can be defined when separated by a space. Valid values:
|
|
254
|
+
# initiated, ringing, answered, completed, no-answer, busy, canceled, failed,
|
|
255
|
+
# analyzed. When provided, this per-call value overrides the status callback
|
|
256
|
+
# events configured on the TeXML application/connection.
|
|
251
257
|
#
|
|
252
258
|
# @return [String, nil]
|
|
253
259
|
optional :status_callback_event, String, api_name: :StatusCallbackEvent
|
|
254
260
|
|
|
255
261
|
# @!attribute status_callback_method
|
|
256
|
-
# HTTP request type used for `StatusCallback
|
|
262
|
+
# HTTP request type used for `StatusCallback` and `StatusCallbacks` for this AI
|
|
263
|
+
# call. When provided, this per-call value overrides the status callback method
|
|
264
|
+
# configured on the TeXML application/connection.
|
|
257
265
|
#
|
|
258
266
|
# @return [Symbol, Telnyx::Models::TexmlInitiateAICallParams::StatusCallbackMethod, nil]
|
|
259
267
|
optional :status_callback_method,
|
|
@@ -261,8 +269,9 @@ module Telnyx
|
|
|
261
269
|
api_name: :StatusCallbackMethod
|
|
262
270
|
|
|
263
271
|
# @!attribute status_callbacks
|
|
264
|
-
#
|
|
265
|
-
# the
|
|
272
|
+
# Array of URL destinations for Telnyx to send status callback events for this AI
|
|
273
|
+
# call. When provided, these per-call values override the status callback URL
|
|
274
|
+
# configured on the TeXML application/connection.
|
|
266
275
|
#
|
|
267
276
|
# @return [Array<String>, nil]
|
|
268
277
|
optional :status_callbacks, Telnyx::Internal::Type::ArrayOf[String], api_name: :StatusCallbacks
|
|
@@ -313,11 +322,11 @@ module Telnyx
|
|
|
313
322
|
#
|
|
314
323
|
# @param caller_id [String] To be used as the caller id name (SIP From Display Name) presented to the destin
|
|
315
324
|
#
|
|
316
|
-
# @param conversation_callback [String] URL destination for Telnyx to send conversation callback events
|
|
325
|
+
# @param conversation_callback [String] URL destination for Telnyx to send AI conversation callback events for this call
|
|
317
326
|
#
|
|
318
|
-
# @param conversation_callback_method [Symbol, Telnyx::Models::TexmlInitiateAICallParams::ConversationCallbackMethod] HTTP request type used for `ConversationCallback`.
|
|
327
|
+
# @param conversation_callback_method [Symbol, Telnyx::Models::TexmlInitiateAICallParams::ConversationCallbackMethod] HTTP request type used for `ConversationCallback` and `ConversationCallbacks`.
|
|
319
328
|
#
|
|
320
|
-
# @param conversation_callbacks [Array<String>]
|
|
329
|
+
# @param conversation_callbacks [Array<String>] Array of URL destinations for AI conversation callback events for this call. Eve
|
|
321
330
|
#
|
|
322
331
|
# @param custom_headers [Array<Telnyx::Models::TexmlInitiateAICallParams::CustomHeader>] Custom HTTP headers to be sent with the call. Each header should be an object wi
|
|
323
332
|
#
|
|
@@ -359,13 +368,13 @@ module Telnyx
|
|
|
359
368
|
#
|
|
360
369
|
# @param sip_region [Symbol, Telnyx::Models::TexmlInitiateAICallParams::SipRegion] Defines the SIP region to be used for the call.
|
|
361
370
|
#
|
|
362
|
-
# @param status_callback [String] URL destination for Telnyx to send status callback events
|
|
371
|
+
# @param status_callback [String] URL destination for Telnyx to send status callback events for this AI call. When
|
|
363
372
|
#
|
|
364
|
-
# @param status_callback_event [String] The
|
|
373
|
+
# @param status_callback_event [String] The status callback events for which Telnyx should send a webhook for this AI ca
|
|
365
374
|
#
|
|
366
|
-
# @param status_callback_method [Symbol, Telnyx::Models::TexmlInitiateAICallParams::StatusCallbackMethod] HTTP request type used for `StatusCallback
|
|
375
|
+
# @param status_callback_method [Symbol, Telnyx::Models::TexmlInitiateAICallParams::StatusCallbackMethod] HTTP request type used for `StatusCallback` and `StatusCallbacks` for this AI ca
|
|
367
376
|
#
|
|
368
|
-
# @param status_callbacks [Array<String>]
|
|
377
|
+
# @param status_callbacks [Array<String>] Array of URL destinations for Telnyx to send status callback events for this AI
|
|
369
378
|
#
|
|
370
379
|
# @param time_limit [Integer] The maximum duration of the call in seconds. The minimum value is 30 and the max
|
|
371
380
|
#
|
|
@@ -386,7 +395,7 @@ module Telnyx
|
|
|
386
395
|
# @return [Array<Symbol>]
|
|
387
396
|
end
|
|
388
397
|
|
|
389
|
-
# HTTP request type used for `ConversationCallback`.
|
|
398
|
+
# HTTP request type used for `ConversationCallback` and `ConversationCallbacks`.
|
|
390
399
|
module ConversationCallbackMethod
|
|
391
400
|
extend Telnyx::Internal::Type::Enum
|
|
392
401
|
|
|
@@ -487,7 +496,9 @@ module Telnyx
|
|
|
487
496
|
# @return [Array<Symbol>]
|
|
488
497
|
end
|
|
489
498
|
|
|
490
|
-
# HTTP request type used for `StatusCallback
|
|
499
|
+
# HTTP request type used for `StatusCallback` and `StatusCallbacks` for this AI
|
|
500
|
+
# call. When provided, this per-call value overrides the status callback method
|
|
501
|
+
# configured on the TeXML application/connection.
|
|
491
502
|
module StatusCallbackMethod
|
|
492
503
|
extend Telnyx::Internal::Type::Enum
|
|
493
504
|
|
|
@@ -16,6 +16,17 @@ module Telnyx
|
|
|
16
16
|
# client state, and calls the dial API. The Twiml, Texml, and Url parameters are
|
|
17
17
|
# not allowed and will result in a 422 error.
|
|
18
18
|
#
|
|
19
|
+
# **Expected callback events:**
|
|
20
|
+
#
|
|
21
|
+
# Status callbacks: `initiated`, `ringing`, `answered`, one terminal status
|
|
22
|
+
# (`completed`, `no-answer`, `busy`, `canceled`, or `failed`), then `analyzed`
|
|
23
|
+
# after post-call processing completes.
|
|
24
|
+
#
|
|
25
|
+
# Conversation callbacks: `conversation_created` and `conversation_ended`.
|
|
26
|
+
#
|
|
27
|
+
# Recording, AMD, transcription, and deepfake detection callbacks are only sent
|
|
28
|
+
# when those features are enabled.
|
|
29
|
+
#
|
|
19
30
|
# @overload initiate_ai_call(connection_id, ai_assistant_id:, from:, to:, ai_assistant_dynamic_variables: nil, ai_assistant_version: nil, async_amd: nil, async_amd_status_callback: nil, async_amd_status_callback_method: nil, caller_id: nil, conversation_callback: nil, conversation_callback_method: nil, conversation_callbacks: nil, custom_headers: nil, detection_mode: nil, machine_detection: nil, machine_detection_silence_timeout: nil, machine_detection_speech_end_threshold: nil, machine_detection_speech_threshold: nil, machine_detection_timeout: nil, passports: nil, preferred_codecs: nil, record: nil, recording_channels: nil, recording_status_callback: nil, recording_status_callback_event: nil, recording_status_callback_method: nil, recording_timeout: nil, recording_track: nil, send_recording_url: nil, sip_auth_password: nil, sip_auth_username: nil, sip_region: nil, status_callback: nil, status_callback_event: nil, status_callback_method: nil, status_callbacks: nil, time_limit: nil, timeout_seconds: nil, trim: nil, request_options: {})
|
|
20
31
|
#
|
|
21
32
|
# @param connection_id [String] The ID of the TeXML connection to use for the call.
|
|
@@ -38,11 +49,11 @@ module Telnyx
|
|
|
38
49
|
#
|
|
39
50
|
# @param caller_id [String] To be used as the caller id name (SIP From Display Name) presented to the destin
|
|
40
51
|
#
|
|
41
|
-
# @param conversation_callback [String] URL destination for Telnyx to send conversation callback events
|
|
52
|
+
# @param conversation_callback [String] URL destination for Telnyx to send AI conversation callback events for this call
|
|
42
53
|
#
|
|
43
|
-
# @param conversation_callback_method [Symbol, Telnyx::Models::TexmlInitiateAICallParams::ConversationCallbackMethod] HTTP request type used for `ConversationCallback`.
|
|
54
|
+
# @param conversation_callback_method [Symbol, Telnyx::Models::TexmlInitiateAICallParams::ConversationCallbackMethod] HTTP request type used for `ConversationCallback` and `ConversationCallbacks`.
|
|
44
55
|
#
|
|
45
|
-
# @param conversation_callbacks [Array<String>]
|
|
56
|
+
# @param conversation_callbacks [Array<String>] Array of URL destinations for AI conversation callback events for this call. Eve
|
|
46
57
|
#
|
|
47
58
|
# @param custom_headers [Array<Telnyx::Models::TexmlInitiateAICallParams::CustomHeader>] Custom HTTP headers to be sent with the call. Each header should be an object wi
|
|
48
59
|
#
|
|
@@ -84,13 +95,13 @@ module Telnyx
|
|
|
84
95
|
#
|
|
85
96
|
# @param sip_region [Symbol, Telnyx::Models::TexmlInitiateAICallParams::SipRegion] Defines the SIP region to be used for the call.
|
|
86
97
|
#
|
|
87
|
-
# @param status_callback [String] URL destination for Telnyx to send status callback events
|
|
98
|
+
# @param status_callback [String] URL destination for Telnyx to send status callback events for this AI call. When
|
|
88
99
|
#
|
|
89
|
-
# @param status_callback_event [String] The
|
|
100
|
+
# @param status_callback_event [String] The status callback events for which Telnyx should send a webhook for this AI ca
|
|
90
101
|
#
|
|
91
|
-
# @param status_callback_method [Symbol, Telnyx::Models::TexmlInitiateAICallParams::StatusCallbackMethod] HTTP request type used for `StatusCallback
|
|
102
|
+
# @param status_callback_method [Symbol, Telnyx::Models::TexmlInitiateAICallParams::StatusCallbackMethod] HTTP request type used for `StatusCallback` and `StatusCallbacks` for this AI ca
|
|
92
103
|
#
|
|
93
|
-
# @param status_callbacks [Array<String>]
|
|
104
|
+
# @param status_callbacks [Array<String>] Array of URL destinations for Telnyx to send status callback events for this AI
|
|
94
105
|
#
|
|
95
106
|
# @param time_limit [Integer] The maximum duration of the call in seconds. The minimum value is 30 and the max
|
|
96
107
|
#
|
data/lib/telnyx/version.rb
CHANGED
|
@@ -87,14 +87,15 @@ module Telnyx
|
|
|
87
87
|
sig { params(caller_id: String).void }
|
|
88
88
|
attr_writer :caller_id
|
|
89
89
|
|
|
90
|
-
# URL destination for Telnyx to send conversation callback events
|
|
90
|
+
# URL destination for Telnyx to send AI conversation callback events for this
|
|
91
|
+
# call. Events include `conversation_created` and `conversation_ended`.
|
|
91
92
|
sig { returns(T.nilable(String)) }
|
|
92
93
|
attr_reader :conversation_callback
|
|
93
94
|
|
|
94
95
|
sig { params(conversation_callback: String).void }
|
|
95
96
|
attr_writer :conversation_callback
|
|
96
97
|
|
|
97
|
-
# HTTP request type used for `ConversationCallback`.
|
|
98
|
+
# HTTP request type used for `ConversationCallback` and `ConversationCallbacks`.
|
|
98
99
|
sig do
|
|
99
100
|
returns(
|
|
100
101
|
T.nilable(
|
|
@@ -112,7 +113,8 @@ module Telnyx
|
|
|
112
113
|
end
|
|
113
114
|
attr_writer :conversation_callback_method
|
|
114
115
|
|
|
115
|
-
#
|
|
116
|
+
# Array of URL destinations for AI conversation callback events for this call.
|
|
117
|
+
# Events include `conversation_created` and `conversation_ended`.
|
|
116
118
|
sig { returns(T.nilable(T::Array[String])) }
|
|
117
119
|
attr_reader :conversation_callbacks
|
|
118
120
|
|
|
@@ -335,23 +337,29 @@ module Telnyx
|
|
|
335
337
|
end
|
|
336
338
|
attr_writer :sip_region
|
|
337
339
|
|
|
338
|
-
# URL destination for Telnyx to send status callback events
|
|
340
|
+
# URL destination for Telnyx to send status callback events for this AI call. When
|
|
341
|
+
# provided, this per-call value overrides the status callback URL configured on
|
|
342
|
+
# the TeXML application/connection.
|
|
339
343
|
sig { returns(T.nilable(String)) }
|
|
340
344
|
attr_reader :status_callback
|
|
341
345
|
|
|
342
346
|
sig { params(status_callback: String).void }
|
|
343
347
|
attr_writer :status_callback
|
|
344
348
|
|
|
345
|
-
# The
|
|
346
|
-
# defined when separated by a space. Valid values:
|
|
347
|
-
# completed
|
|
349
|
+
# The status callback events for which Telnyx should send a webhook for this AI
|
|
350
|
+
# call. Multiple events can be defined when separated by a space. Valid values:
|
|
351
|
+
# initiated, ringing, answered, completed, no-answer, busy, canceled, failed,
|
|
352
|
+
# analyzed. When provided, this per-call value overrides the status callback
|
|
353
|
+
# events configured on the TeXML application/connection.
|
|
348
354
|
sig { returns(T.nilable(String)) }
|
|
349
355
|
attr_reader :status_callback_event
|
|
350
356
|
|
|
351
357
|
sig { params(status_callback_event: String).void }
|
|
352
358
|
attr_writer :status_callback_event
|
|
353
359
|
|
|
354
|
-
# HTTP request type used for `StatusCallback
|
|
360
|
+
# HTTP request type used for `StatusCallback` and `StatusCallbacks` for this AI
|
|
361
|
+
# call. When provided, this per-call value overrides the status callback method
|
|
362
|
+
# configured on the TeXML application/connection.
|
|
355
363
|
sig do
|
|
356
364
|
returns(
|
|
357
365
|
T.nilable(
|
|
@@ -369,8 +377,9 @@ module Telnyx
|
|
|
369
377
|
end
|
|
370
378
|
attr_writer :status_callback_method
|
|
371
379
|
|
|
372
|
-
#
|
|
373
|
-
# the
|
|
380
|
+
# Array of URL destinations for Telnyx to send status callback events for this AI
|
|
381
|
+
# call. When provided, these per-call values override the status callback URL
|
|
382
|
+
# configured on the TeXML application/connection.
|
|
374
383
|
sig { returns(T.nilable(T::Array[String])) }
|
|
375
384
|
attr_reader :status_callbacks
|
|
376
385
|
|
|
@@ -486,11 +495,13 @@ module Telnyx
|
|
|
486
495
|
# containing only letters, numbers, spaces, and `-_~!.+` special characters. If
|
|
487
496
|
# omitted, the display name will be the same as the number in the `From` field.
|
|
488
497
|
caller_id: nil,
|
|
489
|
-
# URL destination for Telnyx to send conversation callback events
|
|
498
|
+
# URL destination for Telnyx to send AI conversation callback events for this
|
|
499
|
+
# call. Events include `conversation_created` and `conversation_ended`.
|
|
490
500
|
conversation_callback: nil,
|
|
491
|
-
# HTTP request type used for `ConversationCallback`.
|
|
501
|
+
# HTTP request type used for `ConversationCallback` and `ConversationCallbacks`.
|
|
492
502
|
conversation_callback_method: nil,
|
|
493
|
-
#
|
|
503
|
+
# Array of URL destinations for AI conversation callback events for this call.
|
|
504
|
+
# Events include `conversation_created` and `conversation_ended`.
|
|
494
505
|
conversation_callbacks: nil,
|
|
495
506
|
# Custom HTTP headers to be sent with the call. Each header should be an object
|
|
496
507
|
# with 'name' and 'value' properties.
|
|
@@ -540,16 +551,23 @@ module Telnyx
|
|
|
540
551
|
sip_auth_username: nil,
|
|
541
552
|
# Defines the SIP region to be used for the call.
|
|
542
553
|
sip_region: nil,
|
|
543
|
-
# URL destination for Telnyx to send status callback events
|
|
554
|
+
# URL destination for Telnyx to send status callback events for this AI call. When
|
|
555
|
+
# provided, this per-call value overrides the status callback URL configured on
|
|
556
|
+
# the TeXML application/connection.
|
|
544
557
|
status_callback: nil,
|
|
545
|
-
# The
|
|
546
|
-
# defined when separated by a space. Valid values:
|
|
547
|
-
# completed
|
|
558
|
+
# The status callback events for which Telnyx should send a webhook for this AI
|
|
559
|
+
# call. Multiple events can be defined when separated by a space. Valid values:
|
|
560
|
+
# initiated, ringing, answered, completed, no-answer, busy, canceled, failed,
|
|
561
|
+
# analyzed. When provided, this per-call value overrides the status callback
|
|
562
|
+
# events configured on the TeXML application/connection.
|
|
548
563
|
status_callback_event: nil,
|
|
549
|
-
# HTTP request type used for `StatusCallback
|
|
564
|
+
# HTTP request type used for `StatusCallback` and `StatusCallbacks` for this AI
|
|
565
|
+
# call. When provided, this per-call value overrides the status callback method
|
|
566
|
+
# configured on the TeXML application/connection.
|
|
550
567
|
status_callback_method: nil,
|
|
551
|
-
#
|
|
552
|
-
# the
|
|
568
|
+
# Array of URL destinations for Telnyx to send status callback events for this AI
|
|
569
|
+
# call. When provided, these per-call values override the status callback URL
|
|
570
|
+
# configured on the TeXML application/connection.
|
|
553
571
|
status_callbacks: nil,
|
|
554
572
|
# The maximum duration of the call in seconds. The minimum value is 30 and the
|
|
555
573
|
# maximum value is 14400 (4 hours). Default is 14400 seconds.
|
|
@@ -659,7 +677,7 @@ module Telnyx
|
|
|
659
677
|
end
|
|
660
678
|
end
|
|
661
679
|
|
|
662
|
-
# HTTP request type used for `ConversationCallback`.
|
|
680
|
+
# HTTP request type used for `ConversationCallback` and `ConversationCallbacks`.
|
|
663
681
|
module ConversationCallbackMethod
|
|
664
682
|
extend Telnyx::Internal::Type::Enum
|
|
665
683
|
|
|
@@ -940,7 +958,9 @@ module Telnyx
|
|
|
940
958
|
end
|
|
941
959
|
end
|
|
942
960
|
|
|
943
|
-
# HTTP request type used for `StatusCallback
|
|
961
|
+
# HTTP request type used for `StatusCallback` and `StatusCallbacks` for this AI
|
|
962
|
+
# call. When provided, this per-call value overrides the status callback method
|
|
963
|
+
# configured on the TeXML application/connection.
|
|
944
964
|
module StatusCallbackMethod
|
|
945
965
|
extend Telnyx::Internal::Type::Enum
|
|
946
966
|
|
|
@@ -12,6 +12,17 @@ module Telnyx
|
|
|
12
12
|
# an internal TeXML with an AI Assistant configuration, encodes instructions into
|
|
13
13
|
# client state, and calls the dial API. The Twiml, Texml, and Url parameters are
|
|
14
14
|
# not allowed and will result in a 422 error.
|
|
15
|
+
#
|
|
16
|
+
# **Expected callback events:**
|
|
17
|
+
#
|
|
18
|
+
# Status callbacks: `initiated`, `ringing`, `answered`, one terminal status
|
|
19
|
+
# (`completed`, `no-answer`, `busy`, `canceled`, or `failed`), then `analyzed`
|
|
20
|
+
# after post-call processing completes.
|
|
21
|
+
#
|
|
22
|
+
# Conversation callbacks: `conversation_created` and `conversation_ended`.
|
|
23
|
+
#
|
|
24
|
+
# Recording, AMD, transcription, and deepfake detection callbacks are only sent
|
|
25
|
+
# when those features are enabled.
|
|
15
26
|
sig do
|
|
16
27
|
params(
|
|
17
28
|
connection_id: String,
|
|
@@ -93,11 +104,13 @@ module Telnyx
|
|
|
93
104
|
# containing only letters, numbers, spaces, and `-_~!.+` special characters. If
|
|
94
105
|
# omitted, the display name will be the same as the number in the `From` field.
|
|
95
106
|
caller_id: nil,
|
|
96
|
-
# URL destination for Telnyx to send conversation callback events
|
|
107
|
+
# URL destination for Telnyx to send AI conversation callback events for this
|
|
108
|
+
# call. Events include `conversation_created` and `conversation_ended`.
|
|
97
109
|
conversation_callback: nil,
|
|
98
|
-
# HTTP request type used for `ConversationCallback`.
|
|
110
|
+
# HTTP request type used for `ConversationCallback` and `ConversationCallbacks`.
|
|
99
111
|
conversation_callback_method: nil,
|
|
100
|
-
#
|
|
112
|
+
# Array of URL destinations for AI conversation callback events for this call.
|
|
113
|
+
# Events include `conversation_created` and `conversation_ended`.
|
|
101
114
|
conversation_callbacks: nil,
|
|
102
115
|
# Custom HTTP headers to be sent with the call. Each header should be an object
|
|
103
116
|
# with 'name' and 'value' properties.
|
|
@@ -147,16 +160,23 @@ module Telnyx
|
|
|
147
160
|
sip_auth_username: nil,
|
|
148
161
|
# Defines the SIP region to be used for the call.
|
|
149
162
|
sip_region: nil,
|
|
150
|
-
# URL destination for Telnyx to send status callback events
|
|
163
|
+
# URL destination for Telnyx to send status callback events for this AI call. When
|
|
164
|
+
# provided, this per-call value overrides the status callback URL configured on
|
|
165
|
+
# the TeXML application/connection.
|
|
151
166
|
status_callback: nil,
|
|
152
|
-
# The
|
|
153
|
-
# defined when separated by a space. Valid values:
|
|
154
|
-
# completed
|
|
167
|
+
# The status callback events for which Telnyx should send a webhook for this AI
|
|
168
|
+
# call. Multiple events can be defined when separated by a space. Valid values:
|
|
169
|
+
# initiated, ringing, answered, completed, no-answer, busy, canceled, failed,
|
|
170
|
+
# analyzed. When provided, this per-call value overrides the status callback
|
|
171
|
+
# events configured on the TeXML application/connection.
|
|
155
172
|
status_callback_event: nil,
|
|
156
|
-
# HTTP request type used for `StatusCallback
|
|
173
|
+
# HTTP request type used for `StatusCallback` and `StatusCallbacks` for this AI
|
|
174
|
+
# call. When provided, this per-call value overrides the status callback method
|
|
175
|
+
# configured on the TeXML application/connection.
|
|
157
176
|
status_callback_method: nil,
|
|
158
|
-
#
|
|
159
|
-
# the
|
|
177
|
+
# Array of URL destinations for Telnyx to send status callback events for this AI
|
|
178
|
+
# call. When provided, these per-call values override the status callback URL
|
|
179
|
+
# configured on the TeXML application/connection.
|
|
160
180
|
status_callbacks: nil,
|
|
161
181
|
# The maximum duration of the call in seconds. The minimum value is 30 and the
|
|
162
182
|
# maximum value is 14400 (4 hours). Default is 14400 seconds.
|