twilio-ruby 7.13.0 → 7.13.1
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/.github/workflows/test-and-deploy.yml +6 -6
- data/CHANGES.md +118 -0
- data/Gemfile.lock +2 -2
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/accounts/v1/compliance_signals_check.rb +254 -0
- data/lib/twilio-ruby/rest/accounts/v1.rb +6 -0
- data/lib/twilio-ruby/rest/memory/v1/trait.rb +7 -0
- data/lib/twilio-ruby/rest/messaging/v3/message_cost_estimate.rb +204 -0
- data/lib/twilio-ruby/rest/messaging/v3.rb +6 -0
- data/lib/twilio-ruby/rest/numbers_base.rb +0 -5
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb +28 -0
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb +28 -0
- data/lib/twilio-ruby/twiml/voice_response.rb +71 -17
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +4 -4
- data/lib/twilio-ruby/rest/numbers/v3/hosted_number_order.rb +0 -425
- data/lib/twilio-ruby/rest/numbers/v3.rb +0 -40
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
##
|
|
2
|
+
# This code was generated by
|
|
3
|
+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
4
|
+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
5
|
+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
6
|
+
#
|
|
7
|
+
# Twilio - Messaging
|
|
8
|
+
# This is the public Twilio REST API.
|
|
9
|
+
#
|
|
10
|
+
# NOTE: This class is auto generated by OpenAPI Generator.
|
|
11
|
+
# https://openapi-generator.tech
|
|
12
|
+
# Do not edit the class manually.
|
|
13
|
+
#
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
module Twilio
|
|
17
|
+
module REST
|
|
18
|
+
class Messaging < MessagingBase
|
|
19
|
+
class V3 < Version
|
|
20
|
+
class MessageCostEstimateList < ListResource
|
|
21
|
+
|
|
22
|
+
##
|
|
23
|
+
# Initialize the MessageCostEstimateList
|
|
24
|
+
# @param [Version] version Version that contains the resource
|
|
25
|
+
# @return [MessageCostEstimateList] MessageCostEstimateList
|
|
26
|
+
def initialize(version)
|
|
27
|
+
super(version)
|
|
28
|
+
|
|
29
|
+
# Path Solution
|
|
30
|
+
@solution = { }
|
|
31
|
+
@uri = "/MessageCostEstimate"
|
|
32
|
+
|
|
33
|
+
end
|
|
34
|
+
##
|
|
35
|
+
# Fetch the MessageCostEstimateInstance
|
|
36
|
+
# @param [String] country The ISO-3166-1 alpha-2 country code to estimate for. Exactly one country is accepted.
|
|
37
|
+
# @param [String] lookback_window The historical lookback window used to compute the estimate.
|
|
38
|
+
# @return [MessageCostEstimateInstance] Fetched MessageCostEstimateInstance
|
|
39
|
+
def fetch(
|
|
40
|
+
country: nil,
|
|
41
|
+
lookback_window: nil
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
params = Twilio::Values.of({
|
|
45
|
+
'country' => country,
|
|
46
|
+
'lookbackWindow' => lookback_window,
|
|
47
|
+
})
|
|
48
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
payload = @version.fetch('GET', @uri, params: params, headers: headers)
|
|
55
|
+
MessageCostEstimateInstance.new(
|
|
56
|
+
@version,
|
|
57
|
+
payload,
|
|
58
|
+
)
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
##
|
|
62
|
+
# Fetch the MessageCostEstimateInstanceMetadata
|
|
63
|
+
# @param [String] country The ISO-3166-1 alpha-2 country code to estimate for. Exactly one country is accepted.
|
|
64
|
+
# @param [String] lookback_window The historical lookback window used to compute the estimate.
|
|
65
|
+
# @return [MessageCostEstimateInstance] Fetched MessageCostEstimateInstance
|
|
66
|
+
def fetch_with_metadata(
|
|
67
|
+
country: nil,
|
|
68
|
+
lookback_window: nil
|
|
69
|
+
)
|
|
70
|
+
|
|
71
|
+
params = Twilio::Values.of({
|
|
72
|
+
'country' => country,
|
|
73
|
+
'lookbackWindow' => lookback_window,
|
|
74
|
+
})
|
|
75
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
response = @version.fetch_with_metadata('GET', @uri, params: params, headers: headers)
|
|
82
|
+
message_cost_estimate_instance = MessageCostEstimateInstance.new(
|
|
83
|
+
@version,
|
|
84
|
+
response.body,
|
|
85
|
+
)
|
|
86
|
+
MessageCostEstimateInstanceMetadata.new(
|
|
87
|
+
@version,
|
|
88
|
+
message_cost_estimate_instance,
|
|
89
|
+
response.headers,
|
|
90
|
+
response.status_code
|
|
91
|
+
)
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
# Provide a user friendly representation
|
|
98
|
+
def to_s
|
|
99
|
+
'#<Twilio.Messaging.V3.MessageCostEstimateList>'
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
class MessageCostEstimatePage < Page
|
|
104
|
+
##
|
|
105
|
+
# Initialize the MessageCostEstimatePage
|
|
106
|
+
# @param [Version] version Version that contains the resource
|
|
107
|
+
# @param [Response] response Response from the API
|
|
108
|
+
# @param [Hash] solution Path solution for the resource
|
|
109
|
+
# @return [MessageCostEstimatePage] MessageCostEstimatePage
|
|
110
|
+
def initialize(version, response, solution)
|
|
111
|
+
super(version, response)
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
# Path Solution
|
|
115
|
+
@solution = solution
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
##
|
|
119
|
+
# Build an instance of MessageCostEstimateInstance
|
|
120
|
+
# @param [Hash] payload Payload response from the API
|
|
121
|
+
# @return [MessageCostEstimateInstance] MessageCostEstimateInstance
|
|
122
|
+
def get_instance(payload)
|
|
123
|
+
MessageCostEstimateInstance.new(@version, payload)
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
##
|
|
127
|
+
# Provide a user friendly representation
|
|
128
|
+
def to_s
|
|
129
|
+
'<Twilio.Messaging.V3.MessageCostEstimatePage>'
|
|
130
|
+
end
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
class MessageCostEstimateInstance < InstanceResource
|
|
134
|
+
##
|
|
135
|
+
# Initialize the MessageCostEstimateInstance
|
|
136
|
+
# @param [Version] version Version that contains the resource
|
|
137
|
+
# @param [Hash] payload payload that contains response from Twilio
|
|
138
|
+
# @param [String] account_sid The SID of the
|
|
139
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this MessageCostEstimate
|
|
140
|
+
# resource.
|
|
141
|
+
# @param [String] sid The SID of the Call resource to fetch.
|
|
142
|
+
# @return [MessageCostEstimateInstance] MessageCostEstimateInstance
|
|
143
|
+
def initialize(version, payload )
|
|
144
|
+
super(version)
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
# Marshaled Properties
|
|
148
|
+
@properties = {
|
|
149
|
+
'currency' => payload['currency'],
|
|
150
|
+
'country' => payload['country'],
|
|
151
|
+
'lookback_window' => payload['lookback_window'],
|
|
152
|
+
'estimates' => payload['estimates'],
|
|
153
|
+
'disclaimer' => payload['disclaimer'],
|
|
154
|
+
}
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
##
|
|
159
|
+
# @return [String] The WhatsApp Business Account's currency (e.g. `USD`). `bidAmount` and cost bounds are in this currency's smallest unit.
|
|
160
|
+
def currency
|
|
161
|
+
@properties['currency']
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
##
|
|
165
|
+
# @return [String] The ISO-3166-1 alpha-2 country code the estimate was computed for.
|
|
166
|
+
def country
|
|
167
|
+
@properties['country']
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
##
|
|
171
|
+
# @return [String] The historical lookback window used to compute the estimate.
|
|
172
|
+
def lookback_window
|
|
173
|
+
@properties['lookback_window']
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
##
|
|
177
|
+
# @return [Array<MessageCostEstimateBidLevel>] One entry per bid level.
|
|
178
|
+
def estimates
|
|
179
|
+
@properties['estimates']
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
##
|
|
183
|
+
# @return [String] Estimates are historical and informational only; actual delivery and cost may vary.
|
|
184
|
+
def disclaimer
|
|
185
|
+
@properties['disclaimer']
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
##
|
|
189
|
+
# Provide a user friendly representation
|
|
190
|
+
def to_s
|
|
191
|
+
"<Twilio.Messaging.V3.MessageCostEstimateInstance>"
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
##
|
|
195
|
+
# Provide a detailed, user friendly representation
|
|
196
|
+
def inspect
|
|
197
|
+
"<Twilio.Messaging.V3.MessageCostEstimateInstance>"
|
|
198
|
+
end
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
end
|
|
202
|
+
end
|
|
203
|
+
end
|
|
204
|
+
end
|
|
@@ -21,9 +21,15 @@ module Twilio
|
|
|
21
21
|
def initialize(domain)
|
|
22
22
|
super
|
|
23
23
|
@version = 'v3'
|
|
24
|
+
@message_cost_estimate = nil
|
|
24
25
|
@typing_indicator = nil
|
|
25
26
|
end
|
|
26
27
|
|
|
28
|
+
##
|
|
29
|
+
# @return [Twilio::REST::Messaging::V3::MessageCostEstimateList]
|
|
30
|
+
def message_cost_estimate
|
|
31
|
+
@message_cost_estimate ||= MessageCostEstimateList.new self
|
|
32
|
+
end
|
|
27
33
|
##
|
|
28
34
|
# @return [Twilio::REST::Messaging::V3::TypingIndicatorList]
|
|
29
35
|
def typing_indicator
|
|
@@ -23,7 +23,6 @@ module Twilio
|
|
|
23
23
|
@port = 443
|
|
24
24
|
@v1 = nil
|
|
25
25
|
@v2 = nil
|
|
26
|
-
@v3 = nil
|
|
27
26
|
end
|
|
28
27
|
|
|
29
28
|
def v1
|
|
@@ -34,10 +33,6 @@ module Twilio
|
|
|
34
33
|
@v2 ||= Numbers::V2.new self
|
|
35
34
|
end
|
|
36
35
|
|
|
37
|
-
def v3
|
|
38
|
-
@v3 ||= Numbers::V3.new self
|
|
39
|
-
end
|
|
40
|
-
|
|
41
36
|
##
|
|
42
37
|
# Provide a user friendly representation
|
|
43
38
|
def to_s
|
|
@@ -510,6 +510,10 @@ module Twilio
|
|
|
510
510
|
'channel_endpoint_sid' => payload['channel_endpoint_sid'],
|
|
511
511
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
|
512
512
|
'url' => payload['url'],
|
|
513
|
+
'code' => payload['code'],
|
|
514
|
+
'message' => payload['message'],
|
|
515
|
+
'more_info' => payload['more_info'],
|
|
516
|
+
'status' => payload['status'],
|
|
513
517
|
}
|
|
514
518
|
|
|
515
519
|
# Context
|
|
@@ -570,6 +574,30 @@ module Twilio
|
|
|
570
574
|
@properties['url']
|
|
571
575
|
end
|
|
572
576
|
|
|
577
|
+
##
|
|
578
|
+
# @return [String] Twilio-specific error code
|
|
579
|
+
def code
|
|
580
|
+
@properties['code']
|
|
581
|
+
end
|
|
582
|
+
|
|
583
|
+
##
|
|
584
|
+
# @return [String] Error message
|
|
585
|
+
def message
|
|
586
|
+
@properties['message']
|
|
587
|
+
end
|
|
588
|
+
|
|
589
|
+
##
|
|
590
|
+
# @return [String] Link to Error Code References
|
|
591
|
+
def more_info
|
|
592
|
+
@properties['more_info']
|
|
593
|
+
end
|
|
594
|
+
|
|
595
|
+
##
|
|
596
|
+
# @return [String] HTTP response status code
|
|
597
|
+
def status
|
|
598
|
+
@properties['status']
|
|
599
|
+
end
|
|
600
|
+
|
|
573
601
|
##
|
|
574
602
|
# Delete the CustomerProfilesChannelEndpointAssignmentInstance
|
|
575
603
|
# @return [Boolean] True if delete succeeds, false otherwise
|
data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb
CHANGED
|
@@ -510,6 +510,10 @@ module Twilio
|
|
|
510
510
|
'channel_endpoint_sid' => payload['channel_endpoint_sid'],
|
|
511
511
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
|
512
512
|
'url' => payload['url'],
|
|
513
|
+
'code' => payload['code'],
|
|
514
|
+
'message' => payload['message'],
|
|
515
|
+
'more_info' => payload['more_info'],
|
|
516
|
+
'status' => payload['status'],
|
|
513
517
|
}
|
|
514
518
|
|
|
515
519
|
# Context
|
|
@@ -570,6 +574,30 @@ module Twilio
|
|
|
570
574
|
@properties['url']
|
|
571
575
|
end
|
|
572
576
|
|
|
577
|
+
##
|
|
578
|
+
# @return [String] Twilio-specific error code
|
|
579
|
+
def code
|
|
580
|
+
@properties['code']
|
|
581
|
+
end
|
|
582
|
+
|
|
583
|
+
##
|
|
584
|
+
# @return [String] Error message
|
|
585
|
+
def message
|
|
586
|
+
@properties['message']
|
|
587
|
+
end
|
|
588
|
+
|
|
589
|
+
##
|
|
590
|
+
# @return [String] Link to Error Code References
|
|
591
|
+
def more_info
|
|
592
|
+
@properties['more_info']
|
|
593
|
+
end
|
|
594
|
+
|
|
595
|
+
##
|
|
596
|
+
# @return [String] HTTP response status code
|
|
597
|
+
def status
|
|
598
|
+
@properties['status']
|
|
599
|
+
end
|
|
600
|
+
|
|
573
601
|
##
|
|
574
602
|
# Delete the TrustProductsChannelEndpointAssignmentInstance
|
|
575
603
|
# @return [Boolean] True if delete succeeds, false otherwise
|
|
@@ -394,13 +394,60 @@ module Twilio
|
|
|
394
394
|
# hints:: Hints to be provided to the transcription engine
|
|
395
395
|
# enable_automatic_punctuation:: Enable Automatic Punctuation
|
|
396
396
|
# intelligence_service:: The SID or the unique name of the Intelligence Service to be used
|
|
397
|
+
# conversation_id:: The ID of the Conversation
|
|
398
|
+
# conversation_configuration:: The ID or the unique name of the Conversation configuration to be used
|
|
397
399
|
# keyword_args:: additional attributes
|
|
398
|
-
def transcription(name: nil, track: nil, status_callback_url: nil, status_callback_method: nil, inbound_track_label: nil, outbound_track_label: nil, partial_results: nil, language_code: nil, transcription_engine: nil, profanity_filter: nil, speech_model: nil, hints: nil, enable_automatic_punctuation: nil, intelligence_service: nil, **keyword_args)
|
|
399
|
-
transcription = Transcription.new(name: name, track: track, status_callback_url: status_callback_url, status_callback_method: status_callback_method, inbound_track_label: inbound_track_label, outbound_track_label: outbound_track_label, partial_results: partial_results, language_code: language_code, transcription_engine: transcription_engine, profanity_filter: profanity_filter, speech_model: speech_model, hints: hints, enable_automatic_punctuation: enable_automatic_punctuation, intelligence_service: intelligence_service, **keyword_args)
|
|
400
|
+
def transcription(name: nil, track: nil, status_callback_url: nil, status_callback_method: nil, inbound_track_label: nil, outbound_track_label: nil, partial_results: nil, language_code: nil, transcription_engine: nil, profanity_filter: nil, speech_model: nil, hints: nil, enable_automatic_punctuation: nil, intelligence_service: nil, conversation_id: nil, conversation_configuration: nil, **keyword_args)
|
|
401
|
+
transcription = Transcription.new(name: name, track: track, status_callback_url: status_callback_url, status_callback_method: status_callback_method, inbound_track_label: inbound_track_label, outbound_track_label: outbound_track_label, partial_results: partial_results, language_code: language_code, transcription_engine: transcription_engine, profanity_filter: profanity_filter, speech_model: speech_model, hints: hints, enable_automatic_punctuation: enable_automatic_punctuation, intelligence_service: intelligence_service, conversation_id: conversation_id, conversation_configuration: conversation_configuration, **keyword_args)
|
|
400
402
|
|
|
401
403
|
yield(transcription) if block_given?
|
|
402
404
|
append(transcription)
|
|
403
405
|
end
|
|
406
|
+
|
|
407
|
+
##
|
|
408
|
+
# Create a new <MediaFilter> element
|
|
409
|
+
# name:: Friendly name given to the Media Filter
|
|
410
|
+
# filter_type:: Type of filter to be applied to the media
|
|
411
|
+
# model:: Model used by the media filter
|
|
412
|
+
# track:: Track to be filtered
|
|
413
|
+
# keyword_args:: additional attributes
|
|
414
|
+
def media_filter(name: nil, filter_type: nil, model: nil, track: nil, **keyword_args)
|
|
415
|
+
media_filter = MediaFilter.new(name: name, filter_type: filter_type, model: model, track: track, **keyword_args)
|
|
416
|
+
|
|
417
|
+
yield(media_filter) if block_given?
|
|
418
|
+
append(media_filter)
|
|
419
|
+
end
|
|
420
|
+
end
|
|
421
|
+
|
|
422
|
+
##
|
|
423
|
+
# <MediaFilter> TwiML Noun
|
|
424
|
+
class MediaFilter < TwiML
|
|
425
|
+
def initialize(**keyword_args)
|
|
426
|
+
super(**keyword_args)
|
|
427
|
+
@name = 'MediaFilter'
|
|
428
|
+
|
|
429
|
+
yield(self) if block_given?
|
|
430
|
+
end
|
|
431
|
+
|
|
432
|
+
##
|
|
433
|
+
# Create a new <Parameter> element
|
|
434
|
+
# name:: The name of the custom parameter
|
|
435
|
+
# value:: The value of the custom parameter
|
|
436
|
+
# keyword_args:: additional attributes
|
|
437
|
+
def parameter(name: nil, value: nil, **keyword_args)
|
|
438
|
+
append(Parameter.new(name: name, value: value, **keyword_args))
|
|
439
|
+
end
|
|
440
|
+
end
|
|
441
|
+
|
|
442
|
+
##
|
|
443
|
+
# <Parameter> TwiML Noun
|
|
444
|
+
class Parameter < TwiML
|
|
445
|
+
def initialize(**keyword_args)
|
|
446
|
+
super(**keyword_args)
|
|
447
|
+
@name = 'Parameter'
|
|
448
|
+
|
|
449
|
+
yield(self) if block_given?
|
|
450
|
+
end
|
|
404
451
|
end
|
|
405
452
|
|
|
406
453
|
##
|
|
@@ -432,17 +479,6 @@ module Twilio
|
|
|
432
479
|
end
|
|
433
480
|
end
|
|
434
481
|
|
|
435
|
-
##
|
|
436
|
-
# <Parameter> TwiML Noun
|
|
437
|
-
class Parameter < TwiML
|
|
438
|
-
def initialize(**keyword_args)
|
|
439
|
-
super(**keyword_args)
|
|
440
|
-
@name = 'Parameter'
|
|
441
|
-
|
|
442
|
-
yield(self) if block_given?
|
|
443
|
-
end
|
|
444
|
-
end
|
|
445
|
-
|
|
446
482
|
##
|
|
447
483
|
# <Config> TwiML Noun
|
|
448
484
|
class Config < TwiML
|
|
@@ -553,14 +589,30 @@ module Twilio
|
|
|
553
589
|
# hints:: Hints to be provided to the transcription engine
|
|
554
590
|
# enable_automatic_punctuation:: Enable Automatic Punctuation
|
|
555
591
|
# intelligence_service:: The SID or the unique name of the Intelligence Service to be used
|
|
592
|
+
# conversation_id:: The ID of the Conversation
|
|
593
|
+
# conversation_configuration:: The ID or the unique name of the Conversation configuration to be used
|
|
556
594
|
# keyword_args:: additional attributes
|
|
557
|
-
def transcription(name: nil, track: nil, status_callback_url: nil, status_callback_method: nil, inbound_track_label: nil, outbound_track_label: nil, partial_results: nil, language_code: nil, transcription_engine: nil, profanity_filter: nil, speech_model: nil, hints: nil, enable_automatic_punctuation: nil, intelligence_service: nil, **keyword_args)
|
|
558
|
-
transcription = Transcription.new(name: name, track: track, status_callback_url: status_callback_url, status_callback_method: status_callback_method, inbound_track_label: inbound_track_label, outbound_track_label: outbound_track_label, partial_results: partial_results, language_code: language_code, transcription_engine: transcription_engine, profanity_filter: profanity_filter, speech_model: speech_model, hints: hints, enable_automatic_punctuation: enable_automatic_punctuation, intelligence_service: intelligence_service, **keyword_args)
|
|
595
|
+
def transcription(name: nil, track: nil, status_callback_url: nil, status_callback_method: nil, inbound_track_label: nil, outbound_track_label: nil, partial_results: nil, language_code: nil, transcription_engine: nil, profanity_filter: nil, speech_model: nil, hints: nil, enable_automatic_punctuation: nil, intelligence_service: nil, conversation_id: nil, conversation_configuration: nil, **keyword_args)
|
|
596
|
+
transcription = Transcription.new(name: name, track: track, status_callback_url: status_callback_url, status_callback_method: status_callback_method, inbound_track_label: inbound_track_label, outbound_track_label: outbound_track_label, partial_results: partial_results, language_code: language_code, transcription_engine: transcription_engine, profanity_filter: profanity_filter, speech_model: speech_model, hints: hints, enable_automatic_punctuation: enable_automatic_punctuation, intelligence_service: intelligence_service, conversation_id: conversation_id, conversation_configuration: conversation_configuration, **keyword_args)
|
|
559
597
|
|
|
560
598
|
yield(transcription) if block_given?
|
|
561
599
|
append(transcription)
|
|
562
600
|
end
|
|
563
601
|
|
|
602
|
+
##
|
|
603
|
+
# Create a new <MediaFilter> element
|
|
604
|
+
# name:: Friendly name given to the Media Filter
|
|
605
|
+
# filter_type:: Type of filter to be applied to the media
|
|
606
|
+
# model:: Model used by the media filter
|
|
607
|
+
# track:: Track to be filtered
|
|
608
|
+
# keyword_args:: additional attributes
|
|
609
|
+
def media_filter(name: nil, filter_type: nil, model: nil, track: nil, **keyword_args)
|
|
610
|
+
media_filter = MediaFilter.new(name: name, filter_type: filter_type, model: model, track: track, **keyword_args)
|
|
611
|
+
|
|
612
|
+
yield(media_filter) if block_given?
|
|
613
|
+
append(media_filter)
|
|
614
|
+
end
|
|
615
|
+
|
|
564
616
|
##
|
|
565
617
|
# Create a new <Recording> element
|
|
566
618
|
# recording_status_callback:: Recording Status Callback URL
|
|
@@ -2129,9 +2181,11 @@ module Twilio
|
|
|
2129
2181
|
# application_reconnect:: Whether the WebSocket connection to the application should be reconnected if it drops during the call. Defaults to false
|
|
2130
2182
|
# echo_prompt_filtering:: Whether transcripts that echo the agent's own text-to-speech should be dropped. Defaults to false
|
|
2131
2183
|
# turn_detection:: Whether turn detection should be used to decide when the caller has finished speaking. Defaults to false
|
|
2184
|
+
# conversation_id:: The ID of the Conversation
|
|
2185
|
+
# conversation_configuration:: The ID or the unique name of the Conversation configuration to be used
|
|
2132
2186
|
# keyword_args:: additional attributes
|
|
2133
|
-
def conversation_relay(url: nil, language: nil, tts_language: nil, transcription_language: nil, tts_provider: nil, voice: nil, transcription_provider: nil, speech_model: nil, profanity_filter: nil, dtmf_detection: nil, welcome_greeting: nil, partial_prompts: nil, welcome_greeting_interruptible: nil, interruptible: nil, preemptible: nil, hints: nil, intelligence_service: nil, report_input_during_agent_speech: nil, elevenlabs_text_normalization: nil, interrupt_sensitivity: nil, debug: nil, backgroundNoiseReduction: nil, speechTimeout: nil, deepgramSmartFormat: nil, ignoreBackchannel: nil, events: nil, partial_prompt_on_hangup: nil, eager_eot_threshold: nil, asr_smart_format: nil, tts_text_normalization: nil, tts_language_text_normalization: nil, elevenlabs_language_text_normalization: nil, include_in_prompt: nil, customer_name: nil, application_reconnect: nil, echo_prompt_filtering: nil, turn_detection: nil, **keyword_args)
|
|
2134
|
-
conversation_relay = ConversationRelay.new(url: url, language: language, tts_language: tts_language, transcription_language: transcription_language, tts_provider: tts_provider, voice: voice, transcription_provider: transcription_provider, speech_model: speech_model, profanity_filter: profanity_filter, dtmf_detection: dtmf_detection, welcome_greeting: welcome_greeting, partial_prompts: partial_prompts, welcome_greeting_interruptible: welcome_greeting_interruptible, interruptible: interruptible, preemptible: preemptible, hints: hints, intelligence_service: intelligence_service, report_input_during_agent_speech: report_input_during_agent_speech, elevenlabs_text_normalization: elevenlabs_text_normalization, interrupt_sensitivity: interrupt_sensitivity, debug: debug, backgroundNoiseReduction: backgroundNoiseReduction, speechTimeout: speechTimeout, deepgramSmartFormat: deepgramSmartFormat, ignoreBackchannel: ignoreBackchannel, events: events, partial_prompt_on_hangup: partial_prompt_on_hangup, eager_eot_threshold: eager_eot_threshold, asr_smart_format: asr_smart_format, tts_text_normalization: tts_text_normalization, tts_language_text_normalization: tts_language_text_normalization, elevenlabs_language_text_normalization: elevenlabs_language_text_normalization, include_in_prompt: include_in_prompt, customer_name: customer_name, application_reconnect: application_reconnect, echo_prompt_filtering: echo_prompt_filtering, turn_detection: turn_detection, **keyword_args)
|
|
2187
|
+
def conversation_relay(url: nil, language: nil, tts_language: nil, transcription_language: nil, tts_provider: nil, voice: nil, transcription_provider: nil, speech_model: nil, profanity_filter: nil, dtmf_detection: nil, welcome_greeting: nil, partial_prompts: nil, welcome_greeting_interruptible: nil, interruptible: nil, preemptible: nil, hints: nil, intelligence_service: nil, report_input_during_agent_speech: nil, elevenlabs_text_normalization: nil, interrupt_sensitivity: nil, debug: nil, backgroundNoiseReduction: nil, speechTimeout: nil, deepgramSmartFormat: nil, ignoreBackchannel: nil, events: nil, partial_prompt_on_hangup: nil, eager_eot_threshold: nil, asr_smart_format: nil, tts_text_normalization: nil, tts_language_text_normalization: nil, elevenlabs_language_text_normalization: nil, include_in_prompt: nil, customer_name: nil, application_reconnect: nil, echo_prompt_filtering: nil, turn_detection: nil, conversation_id: nil, conversation_configuration: nil, **keyword_args)
|
|
2188
|
+
conversation_relay = ConversationRelay.new(url: url, language: language, tts_language: tts_language, transcription_language: transcription_language, tts_provider: tts_provider, voice: voice, transcription_provider: transcription_provider, speech_model: speech_model, profanity_filter: profanity_filter, dtmf_detection: dtmf_detection, welcome_greeting: welcome_greeting, partial_prompts: partial_prompts, welcome_greeting_interruptible: welcome_greeting_interruptible, interruptible: interruptible, preemptible: preemptible, hints: hints, intelligence_service: intelligence_service, report_input_during_agent_speech: report_input_during_agent_speech, elevenlabs_text_normalization: elevenlabs_text_normalization, interrupt_sensitivity: interrupt_sensitivity, debug: debug, backgroundNoiseReduction: backgroundNoiseReduction, speechTimeout: speechTimeout, deepgramSmartFormat: deepgramSmartFormat, ignoreBackchannel: ignoreBackchannel, events: events, partial_prompt_on_hangup: partial_prompt_on_hangup, eager_eot_threshold: eager_eot_threshold, asr_smart_format: asr_smart_format, tts_text_normalization: tts_text_normalization, tts_language_text_normalization: tts_language_text_normalization, elevenlabs_language_text_normalization: elevenlabs_language_text_normalization, include_in_prompt: include_in_prompt, customer_name: customer_name, application_reconnect: application_reconnect, echo_prompt_filtering: echo_prompt_filtering, turn_detection: turn_detection, conversation_id: conversation_id, conversation_configuration: conversation_configuration, **keyword_args)
|
|
2135
2189
|
|
|
2136
2190
|
yield(conversation_relay) if block_given?
|
|
2137
2191
|
append(conversation_relay)
|
data/lib/twilio-ruby/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: twilio-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 7.13.
|
|
4
|
+
version: 7.13.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Twilio API Team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-11-
|
|
11
|
+
date: 2026-11-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jwt
|
|
@@ -266,6 +266,7 @@ files:
|
|
|
266
266
|
- lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb
|
|
267
267
|
- lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb
|
|
268
268
|
- lib/twilio-ruby/rest/accounts/v1/bulk_contacts.rb
|
|
269
|
+
- lib/twilio-ruby/rest/accounts/v1/compliance_signals_check.rb
|
|
269
270
|
- lib/twilio-ruby/rest/accounts/v1/credential.rb
|
|
270
271
|
- lib/twilio-ruby/rest/accounts/v1/credential/aws.rb
|
|
271
272
|
- lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb
|
|
@@ -655,6 +656,7 @@ files:
|
|
|
655
656
|
- lib/twilio-ruby/rest/messaging/v2/domain_certs.rb
|
|
656
657
|
- lib/twilio-ruby/rest/messaging/v2/typing_indicator.rb
|
|
657
658
|
- lib/twilio-ruby/rest/messaging/v3.rb
|
|
659
|
+
- lib/twilio-ruby/rest/messaging/v3/message_cost_estimate.rb
|
|
658
660
|
- lib/twilio-ruby/rest/messaging/v3/typing_indicator.rb
|
|
659
661
|
- lib/twilio-ruby/rest/messaging_base.rb
|
|
660
662
|
- lib/twilio-ruby/rest/monitor.rb
|
|
@@ -704,8 +706,6 @@ files:
|
|
|
704
706
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/regulation.rb
|
|
705
707
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb
|
|
706
708
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb
|
|
707
|
-
- lib/twilio-ruby/rest/numbers/v3.rb
|
|
708
|
-
- lib/twilio-ruby/rest/numbers/v3/hosted_number_order.rb
|
|
709
709
|
- lib/twilio-ruby/rest/numbers_base.rb
|
|
710
710
|
- lib/twilio-ruby/rest/oauth.rb
|
|
711
711
|
- lib/twilio-ruby/rest/oauth/v1.rb
|