twilio-ruby 7.10.4 → 7.10.5

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.
@@ -61,17 +61,17 @@ module Twilio
61
61
  end
62
62
 
63
63
  class InsightsV2CreatePhoneNumbersReportRequestTimeRange
64
- # @param [start_time]: [Time] Start time of the report
65
- # @param [end_time]: [Time] End time of the report
66
- attr_accessor :start_time, :end_time
64
+ # @param [start_datetime]: [Time] Start date time of the report
65
+ # @param [end_datetime]: [Time] End date time of the report
66
+ attr_accessor :start_datetime, :end_datetime
67
67
  def initialize(payload)
68
- @start_time = payload["start_time"]
69
- @end_time = payload["end_time"]
68
+ @start_datetime = payload["start_datetime"]
69
+ @end_datetime = payload["end_datetime"]
70
70
  end
71
71
  def to_json(options = {})
72
72
  {
73
- "start_time": @start_time,
74
- "end_time": @end_time,
73
+ "start_datetime": @start_datetime,
74
+ "end_datetime": @end_datetime,
75
75
  }.to_json(options)
76
76
  end
77
77
  end
@@ -306,17 +306,17 @@ module Twilio
306
306
  end
307
307
 
308
308
  class InsightsV2CreateAccountReportRequestTimeRange
309
- # @param [start_time]: [Time] Start time of the report
310
- # @param [end_time]: [Time] End time of the report
311
- attr_accessor :start_time, :end_time
309
+ # @param [start_datetime]: [Time] Start date time of the report
310
+ # @param [end_datetime]: [Time] End date time of the report
311
+ attr_accessor :start_datetime, :end_datetime
312
312
  def initialize(payload)
313
- @start_time = payload["start_time"]
314
- @end_time = payload["end_time"]
313
+ @start_datetime = payload["start_datetime"]
314
+ @end_datetime = payload["end_datetime"]
315
315
  end
316
316
  def to_json(options = {})
317
317
  {
318
- "start_time": @start_time,
319
- "end_time": @end_time,
318
+ "start_datetime": @start_datetime,
319
+ "end_datetime": @end_datetime,
320
320
  }.to_json(options)
321
321
  end
322
322
  end
@@ -0,0 +1,247 @@
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 TypingIndicatorList < ListResource
21
+
22
+ class TypingIndicatorRequest
23
+ # @param [channel]: [String] The messaging channel. Must be \"APPLE\".
24
+ # @param [message_id]: [String] The SID of a recent inbound message from the recipient. Must be an SM or MM SID format.
25
+ # @param [from]: [String] The Apple Messages for Business identifier of the sender (business).
26
+ # @param [to]: [String] The Apple Messages for Business identifier of the recipient (customer).
27
+ # @param [event]: [String] The type of typing event. \"START\" indicates the agent began typing, \"END\" indicates the agent stopped typing. Defaults to \"START\".
28
+ attr_accessor :channel, :message_id, :from, :to, :event
29
+ def initialize(payload)
30
+ @channel = payload["channel"]
31
+ @message_id = payload["message_id"]
32
+ @from = payload["from"]
33
+ @to = payload["to"]
34
+ @event = payload["event"]
35
+ end
36
+ def to_json(options = {})
37
+ {
38
+ "channel": @channel,
39
+ "messageId": @message_id,
40
+ "from": @from,
41
+ "to": @to,
42
+ "event": @event,
43
+ }.to_json(options)
44
+ end
45
+ end
46
+
47
+
48
+ ##
49
+ # Initialize the TypingIndicatorList
50
+ # @param [Version] version Version that contains the resource
51
+ # @return [TypingIndicatorList] TypingIndicatorList
52
+ def initialize(version)
53
+ super(version)
54
+
55
+ # Path Solution
56
+ @solution = { }
57
+ @uri = "/Indicators/Typing.json"
58
+
59
+ end
60
+ ##
61
+ # Create the TypingIndicatorInstance
62
+ # @param [TypingIndicatorRequest] typing_indicator_request
63
+ # @return [TypingIndicatorInstance] Created TypingIndicatorInstance
64
+ def create(typing_indicator_request: nil
65
+ )
66
+
67
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
68
+ headers['Content-Type'] = 'application/json'
69
+
70
+
71
+
72
+
73
+ payload = @version.create('POST', @uri, headers: headers, data: typing_indicator_request.to_json)
74
+ TypingIndicatorInstance.new(
75
+ @version,
76
+ payload,
77
+ )
78
+ end
79
+
80
+ ##
81
+ # Create the TypingIndicatorInstanceMetadata
82
+ # @param [TypingIndicatorRequest] typing_indicator_request
83
+ # @return [TypingIndicatorInstance] Created TypingIndicatorInstance
84
+ def create_with_metadata(typing_indicator_request: nil
85
+ )
86
+
87
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
88
+ headers['Content-Type'] = 'application/json'
89
+
90
+
91
+
92
+
93
+ response = @version.create_with_metadata('POST', @uri, headers: headers, data: typing_indicator_request.to_json)
94
+ typing_indicator_instance = TypingIndicatorInstance.new(
95
+ @version,
96
+ response.body,
97
+ )
98
+ TypingIndicatorInstanceMetadata.new(
99
+ @version,
100
+ typing_indicator_instance,
101
+ response.headers,
102
+ response.status_code
103
+ )
104
+ end
105
+
106
+
107
+
108
+
109
+ # Provide a user friendly representation
110
+ def to_s
111
+ '#<Twilio.Messaging.V3.TypingIndicatorList>'
112
+ end
113
+ end
114
+
115
+ class TypingIndicatorPage < Page
116
+ ##
117
+ # Initialize the TypingIndicatorPage
118
+ # @param [Version] version Version that contains the resource
119
+ # @param [Response] response Response from the API
120
+ # @param [Hash] solution Path solution for the resource
121
+ # @return [TypingIndicatorPage] TypingIndicatorPage
122
+ def initialize(version, response, solution)
123
+ super(version, response)
124
+
125
+
126
+ # Path Solution
127
+ @solution = solution
128
+ end
129
+
130
+ ##
131
+ # Build an instance of TypingIndicatorInstance
132
+ # @param [Hash] payload Payload response from the API
133
+ # @return [TypingIndicatorInstance] TypingIndicatorInstance
134
+ def get_instance(payload)
135
+ TypingIndicatorInstance.new(@version, payload)
136
+ end
137
+
138
+ ##
139
+ # Provide a user friendly representation
140
+ def to_s
141
+ '<Twilio.Messaging.V3.TypingIndicatorPage>'
142
+ end
143
+ end
144
+
145
+ class TypingIndicatorPageMetadata < PageMetadata
146
+ attr_reader :typing_indicator_page
147
+
148
+ def initialize(version, response, solution, limit)
149
+ super(version, response)
150
+ @typing_indicator_page = []
151
+ @limit = limit
152
+ key = get_key(response.body)
153
+ records = 0
154
+ while( limit != :unset && records < limit )
155
+ @typing_indicator_page << TypingIndicatorListResponse.new(version, @payload, key, limit - records)
156
+ @payload = self.next_page
157
+ break unless @payload
158
+ records += @payload.body[key].size
159
+ end
160
+ # Path Solution
161
+ @solution = solution
162
+ end
163
+
164
+ def each
165
+ @typing_indicator_page.each do |record|
166
+ yield record
167
+ end
168
+ end
169
+
170
+ def to_s
171
+ '<Twilio::REST::Messaging::V3PageMetadata>';
172
+ end
173
+ end
174
+ class TypingIndicatorListResponse < InstanceListResource
175
+
176
+ # @param [Array<TypingIndicatorInstance>] instance
177
+ # @param [Hash{String => Object}] headers
178
+ # @param [Integer] status_code
179
+ def initialize(version, payload, key, limit = :unset)
180
+ data_list = payload.body[key]
181
+ if limit != :unset
182
+ data_list = data_list[0, limit]
183
+ end
184
+ @typing_indicator = data_list.map do |data|
185
+ TypingIndicatorInstance.new(version, data)
186
+ end
187
+ @headers = payload.headers
188
+ @status_code = payload.status_code
189
+ end
190
+
191
+ def typing_indicator
192
+ @typing_indicator
193
+ end
194
+
195
+ def headers
196
+ @headers
197
+ end
198
+
199
+ def status_code
200
+ @status_code
201
+ end
202
+ end
203
+
204
+ class TypingIndicatorInstance < InstanceResource
205
+ ##
206
+ # Initialize the TypingIndicatorInstance
207
+ # @param [Version] version Version that contains the resource
208
+ # @param [Hash] payload payload that contains response from Twilio
209
+ # @param [String] account_sid The SID of the
210
+ # {Account}[https://www.twilio.com/docs/iam/api/account] that created this TypingIndicator
211
+ # resource.
212
+ # @param [String] sid The SID of the Call resource to fetch.
213
+ # @return [TypingIndicatorInstance] TypingIndicatorInstance
214
+ def initialize(version, payload )
215
+ super(version)
216
+
217
+
218
+ # Marshaled Properties
219
+ @properties = {
220
+ 'success' => payload['success'],
221
+ }
222
+ end
223
+
224
+
225
+ ##
226
+ # @return [Boolean] Indicates if the typing indicator was sent successfully.
227
+ def success
228
+ @properties['success']
229
+ end
230
+
231
+ ##
232
+ # Provide a user friendly representation
233
+ def to_s
234
+ "<Twilio.Messaging.V3.TypingIndicatorInstance>"
235
+ end
236
+
237
+ ##
238
+ # Provide a detailed, user friendly representation
239
+ def inspect
240
+ "<Twilio.Messaging.V3.TypingIndicatorInstance>"
241
+ end
242
+ end
243
+
244
+ end
245
+ end
246
+ end
247
+ end
@@ -0,0 +1,40 @@
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
+ module Twilio
16
+ module REST
17
+ class Messaging
18
+ class V3 < Version
19
+ ##
20
+ # Initialize the V3 version of Messaging
21
+ def initialize(domain)
22
+ super
23
+ @version = 'v3'
24
+ @typing_indicator = nil
25
+ end
26
+
27
+ ##
28
+ # @return [Twilio::REST::Messaging::V3::TypingIndicatorList]
29
+ def typing_indicator
30
+ @typing_indicator ||= TypingIndicatorList.new self
31
+ end
32
+ ##
33
+ # Provide a user friendly representation
34
+ def to_s
35
+ '<Twilio::REST::Messaging::V3>';
36
+ end
37
+ end
38
+ end
39
+ end
40
+ end
@@ -23,6 +23,7 @@ module Twilio
23
23
  @port = 443
24
24
  @v1 = nil
25
25
  @v2 = nil
26
+ @v3 = nil
26
27
  end
27
28
 
28
29
  def v1
@@ -33,6 +34,10 @@ module Twilio
33
34
  @v2 ||= Messaging::V2.new self
34
35
  end
35
36
 
37
+ def v3
38
+ @v3 ||= Messaging::V3.new self
39
+ end
40
+
36
41
  ##
37
42
  # Provide a user friendly representation
38
43
  def to_s
@@ -108,6 +108,7 @@ module Twilio
108
108
  # Lists ExecutionInstance records from the API as a list.
109
109
  # Unlike stream(), this operation is eager and will load `limit` records into
110
110
  # memory before returning.
111
+ # @param [Status] status Only show Execution resources with the given status. Can be: `active` or `ended`.
111
112
  # @param [Time] date_created_from Only show Execution resources starting on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`.
112
113
  # @param [Time] date_created_to Only show Execution resources starting before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`.
113
114
  # @param [Integer] limit Upper limit for the number of records to return. stream()
@@ -117,8 +118,9 @@ module Twilio
117
118
  # but a limit is defined, stream() will attempt to read the limit with the most
118
119
  # efficient page size, i.e. min(limit, 1000)
119
120
  # @return [Array] Array of up to limit results
120
- def list(date_created_from: :unset, date_created_to: :unset, limit: nil, page_size: nil)
121
+ def list(status: :unset, date_created_from: :unset, date_created_to: :unset, limit: nil, page_size: nil)
121
122
  self.stream(
123
+ status: status,
122
124
  date_created_from: date_created_from,
123
125
  date_created_to: date_created_to,
124
126
  limit: limit,
@@ -130,6 +132,7 @@ module Twilio
130
132
  # Streams Instance records from the API as an Enumerable.
131
133
  # This operation lazily loads records as efficiently as possible until the limit
132
134
  # is reached.
135
+ # @param [Status] status Only show Execution resources with the given status. Can be: `active` or `ended`.
133
136
  # @param [Time] date_created_from Only show Execution resources starting on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`.
134
137
  # @param [Time] date_created_to Only show Execution resources starting before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`.
135
138
  # @param [Integer] limit Upper limit for the number of records to return. stream()
@@ -139,10 +142,11 @@ module Twilio
139
142
  # but a limit is defined, stream() will attempt to read the limit with the most
140
143
  # efficient page size, i.e. min(limit, 1000)
141
144
  # @return [Enumerable] Enumerable that will yield up to limit results
142
- def stream(date_created_from: :unset, date_created_to: :unset, limit: nil, page_size: nil)
145
+ def stream(status: :unset, date_created_from: :unset, date_created_to: :unset, limit: nil, page_size: nil)
143
146
  limits = @version.read_limits(limit, page_size)
144
147
 
145
148
  page = self.page(
149
+ status: status,
146
150
  date_created_from: date_created_from,
147
151
  date_created_to: date_created_to,
148
152
  page_size: limits[:page_size], )
@@ -152,6 +156,7 @@ module Twilio
152
156
 
153
157
  ##
154
158
  # Lists ExecutionPageMetadata records from the API as a list.
159
+ # @param [Status] status Only show Execution resources with the given status. Can be: `active` or `ended`.
155
160
  # @param [Time] date_created_from Only show Execution resources starting on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`.
156
161
  # @param [Time] date_created_to Only show Execution resources starting before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`.
157
162
  # @param [Integer] limit Upper limit for the number of records to return. stream()
@@ -161,9 +166,10 @@ module Twilio
161
166
  # but a limit is defined, stream() will attempt to read the limit with the most
162
167
  # efficient page size, i.e. min(limit, 1000)
163
168
  # @return [Array] Array of up to limit results
164
- def list_with_metadata(date_created_from: :unset, date_created_to: :unset, limit: nil, page_size: nil)
169
+ def list_with_metadata(status: :unset, date_created_from: :unset, date_created_to: :unset, limit: nil, page_size: nil)
165
170
  limits = @version.read_limits(limit, page_size)
166
171
  params = Twilio::Values.of({
172
+ 'status' => status,
167
173
  'DateCreatedFrom' => Twilio.serialize_iso8601_datetime(date_created_from),
168
174
  'DateCreatedTo' => Twilio.serialize_iso8601_datetime(date_created_to),
169
175
 
@@ -193,14 +199,16 @@ module Twilio
193
199
  ##
194
200
  # Retrieve a single page of ExecutionInstance records from the API.
195
201
  # Request is executed immediately.
202
+ # @param [Status] status Only show Execution resources with the given status. Can be: `active` or `ended`.
196
203
  # @param [Time] date_created_from Only show Execution resources starting on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`.
197
204
  # @param [Time] date_created_to Only show Execution resources starting before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`.
198
205
  # @param [String] page_token PageToken provided by the API
199
206
  # @param [Integer] page_number Page Number, this value is simply for client state
200
207
  # @param [Integer] page_size Number of records to return, defaults to 50
201
208
  # @return [Page] Page of ExecutionInstance
202
- def page(date_created_from: :unset, date_created_to: :unset, page_token: :unset, page_number: :unset,page_size: :unset)
209
+ def page(status: :unset, date_created_from: :unset, date_created_to: :unset, page_token: :unset, page_number: :unset,page_size: :unset)
203
210
  params = Twilio::Values.of({
211
+ 'status' => status,
204
212
  'DateCreatedFrom' => Twilio.serialize_iso8601_datetime(date_created_from),
205
213
  'DateCreatedTo' => Twilio.serialize_iso8601_datetime(date_created_to),
206
214
  'PageToken' => page_token,
@@ -603,6 +611,7 @@ module Twilio
603
611
  'status' => payload['status'],
604
612
  'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
605
613
  'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
614
+ 'initiated_by' => payload['initiated_by'],
606
615
  'url' => payload['url'],
607
616
  'links' => payload['links'],
608
617
  }
@@ -683,6 +692,12 @@ module Twilio
683
692
  @properties['date_updated']
684
693
  end
685
694
 
695
+ ##
696
+ # @return [String] The SID or identifier that triggered this Execution. For example, a Call SID if triggered by an incoming call, a Message SID if triggered by an incoming message, a Request SID if triggered by a REST API request, and so on.
697
+ def initiated_by
698
+ @properties['initiated_by']
699
+ end
700
+
686
701
  ##
687
702
  # @return [String] The absolute URL of the resource.
688
703
  def url
@@ -243,7 +243,6 @@ module Twilio
243
243
 
244
244
  # Marshaled Properties
245
245
  @properties = {
246
- 'options' => payload['options'],
247
246
  'sid' => payload['sid'],
248
247
  'account_sid' => payload['account_sid'],
249
248
  'service_sid' => payload['service_sid'],
@@ -262,16 +261,11 @@ module Twilio
262
261
  'factor_type' => payload['factor_type'],
263
262
  'url' => payload['url'],
264
263
  'links' => payload['links'],
264
+ 'options' => payload['options'],
265
265
  }
266
266
  end
267
267
 
268
268
 
269
- ##
270
- # @return [Hash] An object that contains challenge options. Currently only used for `passkeys`.
271
- def options
272
- @properties['options']
273
- end
274
-
275
269
  ##
276
270
  # @return [String] A 34 character string that uniquely identifies this Challenge.
277
271
  def sid
@@ -380,6 +374,12 @@ module Twilio
380
374
  @properties['links']
381
375
  end
382
376
 
377
+ ##
378
+ # @return [Hash] An object that contains challenge options. Currently only used for `passkeys`.
379
+ def options
380
+ @properties['options']
381
+ end
382
+
383
383
  ##
384
384
  # Provide a user friendly representation
385
385
  def to_s
@@ -292,7 +292,6 @@ module Twilio
292
292
 
293
293
  # Marshaled Properties
294
294
  @properties = {
295
- 'options' => payload['options'],
296
295
  'sid' => payload['sid'],
297
296
  'account_sid' => payload['account_sid'],
298
297
  'service_sid' => payload['service_sid'],
@@ -311,6 +310,7 @@ module Twilio
311
310
  'factor_type' => payload['factor_type'],
312
311
  'url' => payload['url'],
313
312
  'links' => payload['links'],
313
+ 'options' => payload['options'],
314
314
  }
315
315
 
316
316
  # Context
@@ -329,12 +329,6 @@ module Twilio
329
329
  @instance_context
330
330
  end
331
331
 
332
- ##
333
- # @return [Hash] An object that contains challenge options. Currently only used for `passkeys`.
334
- def options
335
- @properties['options']
336
- end
337
-
338
332
  ##
339
333
  # @return [String] A 34 character string that uniquely identifies this Challenge.
340
334
  def sid
@@ -443,6 +437,12 @@ module Twilio
443
437
  @properties['links']
444
438
  end
445
439
 
440
+ ##
441
+ # @return [Hash] An object that contains challenge options. Currently only used for `passkeys`.
442
+ def options
443
+ @properties['options']
444
+ end
445
+
446
446
  ##
447
447
  # Create the NewChallengeInstance
448
448
  # @param [CreatePasskeysChallengeRequest] create_passkeys_challenge_request
@@ -52,7 +52,7 @@ module Twilio
52
52
  # @param [String] device_ip Strongly encouraged if using the auto channel. The IP address of the client's device. If provided, it has to be a valid IPv4 or IPv6 address.
53
53
  # @param [Boolean] enable_sna_client_token An optional Boolean value to indicate the requirement of sna client token in the SNA URL invocation response for added security. This token must match in the Verification Check request to confirm phone number verification.
54
54
  # @param [RiskCheck] risk_check
55
- # @param [String] tags A string containing a JSON map of key value pairs of tags to be recorded as metadata for the message. The object may contain up to 10 tags. Keys and values can each be up to 128 characters in length.
55
+ # @param [String] tags A string containing a JSON map of key value pairs of tags to be recorded as metadata for the message. The tags will also be included as part of the verification and message status event type payloads. The object may contain up to 10 tags. Keys and values can each be up to 128 characters in length. **This value should not contain PII.**
56
56
  # @return [VerificationInstance] Created VerificationInstance
57
57
  def create(
58
58
  to: nil,
@@ -129,7 +129,7 @@ module Twilio
129
129
  # @param [String] device_ip Strongly encouraged if using the auto channel. The IP address of the client's device. If provided, it has to be a valid IPv4 or IPv6 address.
130
130
  # @param [Boolean] enable_sna_client_token An optional Boolean value to indicate the requirement of sna client token in the SNA URL invocation response for added security. This token must match in the Verification Check request to confirm phone number verification.
131
131
  # @param [RiskCheck] risk_check
132
- # @param [String] tags A string containing a JSON map of key value pairs of tags to be recorded as metadata for the message. The object may contain up to 10 tags. Keys and values can each be up to 128 characters in length.
132
+ # @param [String] tags A string containing a JSON map of key value pairs of tags to be recorded as metadata for the message. The tags will also be included as part of the verification and message status event type payloads. The object may contain up to 10 tags. Keys and values can each be up to 128 characters in length. **This value should not contain PII.**
133
133
  # @return [VerificationInstance] Created VerificationInstance
134
134
  def create_with_metadata(
135
135
  to: nil,
@@ -2102,9 +2102,14 @@ module Twilio
2102
2102
  # elevenlabs_text_normalization:: When using ElevenLabs as TTS provider, this parameter allows you to enable or disable its text normalization feature
2103
2103
  # interrupt_sensitivity:: Set the sensitivity of the interrupt feature for speech. The value can be low, medium, or high
2104
2104
  # debug:: Multiple debug options to be used for troubleshooting
2105
- # keyword_args:: additional attributes
2106
- 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, **keyword_args)
2107
- 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, **keyword_args)
2105
+ # backgroundNoiseReduction:: This parameters enables background noise filtering on the audio stream before it reaches the STT engine, improving transcription accuracy in noisy environments
2106
+ # speechTimeout:: Set the duration of silence that indicates the end of speech
2107
+ # deepgramSmartFormat:: This parameter enables Deepgram's smart formatting feature, which automatically applies punctuation, capitalization, and formatting (e.g. numbers, dates, currency) to transcripts
2108
+ # ignoreBackchannel:: This parameter brief caller acknowledgments (e.g. "yeah", "uh-huh") are ignored and will not interrupt the agent while it is speaking.
2109
+ # events:: This parameter allows you to enable event subscriptions
2110
+ # keyword_args:: additional attributes
2111
+ 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, **keyword_args)
2112
+ 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, **keyword_args)
2108
2113
 
2109
2114
  yield(conversation_relay) if block_given?
2110
2115
  append(conversation_relay)
@@ -1,3 +1,3 @@
1
1
  module Twilio
2
- VERSION = '7.10.4'
2
+ VERSION = '7.10.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twilio-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.10.4
4
+ version: 7.10.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Twilio API Team
@@ -461,7 +461,6 @@ files:
461
461
  - lib/twilio-ruby/rest/flex_api/v1/assessments.rb
462
462
  - lib/twilio-ruby/rest/flex_api/v1/channel.rb
463
463
  - lib/twilio-ruby/rest/flex_api/v1/configuration.rb
464
- - lib/twilio-ruby/rest/flex_api/v1/create_flex_instance.rb
465
464
  - lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb
466
465
  - lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb
467
466
  - lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb
@@ -502,6 +501,7 @@ files:
502
501
  - lib/twilio-ruby/rest/iam/v1/get_api_keys.rb
503
502
  - lib/twilio-ruby/rest/iam/v1/new_api_key.rb
504
503
  - lib/twilio-ruby/rest/iam/v1/o_auth_app.rb
504
+ - lib/twilio-ruby/rest/iam/v1/role_permission.rb
505
505
  - lib/twilio-ruby/rest/iam/v1/token.rb
506
506
  - lib/twilio-ruby/rest/iam_base.rb
507
507
  - lib/twilio-ruby/rest/insights.rb
@@ -618,6 +618,8 @@ files:
618
618
  - lib/twilio-ruby/rest/messaging/v2/channels_sender.rb
619
619
  - lib/twilio-ruby/rest/messaging/v2/domain_certs.rb
620
620
  - lib/twilio-ruby/rest/messaging/v2/typing_indicator.rb
621
+ - lib/twilio-ruby/rest/messaging/v3.rb
622
+ - lib/twilio-ruby/rest/messaging/v3/typing_indicator.rb
621
623
  - lib/twilio-ruby/rest/messaging_base.rb
622
624
  - lib/twilio-ruby/rest/monitor.rb
623
625
  - lib/twilio-ruby/rest/monitor/v1.rb
@@ -954,7 +956,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
954
956
  - !ruby/object:Gem::Version
955
957
  version: '0'
956
958
  requirements: []
957
- rubygems_version: 4.0.8
959
+ rubygems_version: 4.0.10
958
960
  specification_version: 4
959
961
  summary: The official library for communicating with the Twilio REST API, building
960
962
  TwiML, and generating Twilio JWT Capability Tokens