twilio-ruby 7.6.3 → 7.6.4
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/CHANGES.md +28 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +1 -1
- data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +1 -1
- data/lib/twilio-ruby/rest/client.rb +0 -10
- data/lib/twilio-ruby/rest/lookups/v2/bucket.rb +315 -0
- data/lib/twilio-ruby/rest/lookups/v2/lookup_override.rb +390 -0
- data/lib/twilio-ruby/rest/lookups/v2/query.rb +456 -0
- data/lib/twilio-ruby/rest/lookups/v2/rate_limit.rb +136 -0
- data/lib/twilio-ruby/rest/lookups/v2.rb +86 -0
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +4 -4
- data/lib/twilio-ruby/rest/messaging/v2/channels_sender.rb +133 -1
- data/lib/twilio-ruby/rest/numbers/v1/{porting_webhook_configuration_fetch.rb → webhook.rb} +20 -20
- data/lib/twilio-ruby/rest/numbers/v1.rb +6 -6
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +0 -27
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +1 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +7 -0
- data/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb +3 -3
- data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +2 -2
- data/lib/twilio-ruby/rest/{proxy/v1/service/short_code.rb → video/v1/room/transcriptions.rb} +110 -123
- data/lib/twilio-ruby/rest/video/v1/room.rb +27 -0
- data/lib/twilio-ruby/twiml/voice_response.rb +24 -0
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +8 -20
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge/chunk.rb +0 -232
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb +0 -213
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge.rb +0 -623
- data/lib/twilio-ruby/rest/knowledge/v1.rb +0 -49
- data/lib/twilio-ruby/rest/knowledge.rb +0 -6
- data/lib/twilio-ruby/rest/knowledge_base.rb +0 -38
- data/lib/twilio-ruby/rest/microvisor/v1/account_config.rb +0 -382
- data/lib/twilio-ruby/rest/microvisor/v1/account_secret.rb +0 -375
- data/lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb +0 -213
- data/lib/twilio-ruby/rest/microvisor/v1/app.rb +0 -361
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb +0 -398
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb +0 -391
- data/lib/twilio-ruby/rest/microvisor/v1/device.rb +0 -441
- data/lib/twilio-ruby/rest/microvisor/v1.rb +0 -94
- data/lib/twilio-ruby/rest/microvisor.rb +0 -24
- data/lib/twilio-ruby/rest/microvisor_base.rb +0 -38
data/lib/twilio-ruby/rest/{proxy/v1/service/short_code.rb → video/v1/room/transcriptions.rb}
RENAMED
@@ -4,7 +4,7 @@
|
|
4
4
|
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
5
5
|
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
6
6
|
#
|
7
|
-
# Twilio -
|
7
|
+
# Twilio - Video
|
8
8
|
# This is the public Twilio REST API.
|
9
9
|
#
|
10
10
|
# NOTE: This class is auto generated by OpenAPI Generator.
|
@@ -15,33 +15,33 @@
|
|
15
15
|
|
16
16
|
module Twilio
|
17
17
|
module REST
|
18
|
-
class
|
18
|
+
class Video < VideoBase
|
19
19
|
class V1 < Version
|
20
|
-
class
|
20
|
+
class RoomContext < InstanceContext
|
21
21
|
|
22
|
-
class
|
22
|
+
class TranscriptionsList < ListResource
|
23
23
|
|
24
24
|
##
|
25
|
-
# Initialize the
|
25
|
+
# Initialize the TranscriptionsList
|
26
26
|
# @param [Version] version Version that contains the resource
|
27
|
-
# @return [
|
28
|
-
def initialize(version,
|
27
|
+
# @return [TranscriptionsList] TranscriptionsList
|
28
|
+
def initialize(version, room_sid: nil)
|
29
29
|
super(version)
|
30
30
|
# Path Solution
|
31
|
-
@solution = {
|
32
|
-
@uri = "/
|
31
|
+
@solution = { room_sid: room_sid }
|
32
|
+
@uri = "/Rooms/#{@solution[:room_sid]}/Transcriptions"
|
33
33
|
|
34
34
|
end
|
35
35
|
##
|
36
|
-
# Create the
|
37
|
-
# @param [
|
38
|
-
# @return [
|
36
|
+
# Create the TranscriptionsInstance
|
37
|
+
# @param [Object] configuration A collection of properties that describe transcription behaviour.
|
38
|
+
# @return [TranscriptionsInstance] Created TranscriptionsInstance
|
39
39
|
def create(
|
40
|
-
|
40
|
+
configuration: :unset
|
41
41
|
)
|
42
42
|
|
43
43
|
data = Twilio::Values.of({
|
44
|
-
'
|
44
|
+
'Configuration' => Twilio.serialize_object(configuration),
|
45
45
|
})
|
46
46
|
|
47
47
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
@@ -51,16 +51,16 @@ module Twilio
|
|
51
51
|
|
52
52
|
|
53
53
|
payload = @version.create('POST', @uri, data: data, headers: headers)
|
54
|
-
|
54
|
+
TranscriptionsInstance.new(
|
55
55
|
@version,
|
56
56
|
payload,
|
57
|
-
|
57
|
+
room_sid: @solution[:room_sid],
|
58
58
|
)
|
59
59
|
end
|
60
60
|
|
61
61
|
|
62
62
|
##
|
63
|
-
# Lists
|
63
|
+
# Lists TranscriptionsInstance records from the API as a list.
|
64
64
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
65
65
|
# memory before returning.
|
66
66
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
@@ -98,7 +98,7 @@ module Twilio
|
|
98
98
|
end
|
99
99
|
|
100
100
|
##
|
101
|
-
# When passed a block, yields
|
101
|
+
# When passed a block, yields TranscriptionsInstance records from the API.
|
102
102
|
# This operation lazily loads records as efficiently as possible until the limit
|
103
103
|
# is reached.
|
104
104
|
def each
|
@@ -112,12 +112,12 @@ module Twilio
|
|
112
112
|
end
|
113
113
|
|
114
114
|
##
|
115
|
-
# Retrieve a single page of
|
115
|
+
# Retrieve a single page of TranscriptionsInstance records from the API.
|
116
116
|
# Request is executed immediately.
|
117
117
|
# @param [String] page_token PageToken provided by the API
|
118
118
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
119
119
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
120
|
-
# @return [Page] Page of
|
120
|
+
# @return [Page] Page of TranscriptionsInstance
|
121
121
|
def page(page_token: :unset, page_number: :unset, page_size: :unset)
|
122
122
|
params = Twilio::Values.of({
|
123
123
|
'PageToken' => page_token,
|
@@ -130,62 +130,50 @@ module Twilio
|
|
130
130
|
|
131
131
|
response = @version.page('GET', @uri, params: params, headers: headers)
|
132
132
|
|
133
|
-
|
133
|
+
TranscriptionsPage.new(@version, response, @solution)
|
134
134
|
end
|
135
135
|
|
136
136
|
##
|
137
|
-
# Retrieve a single page of
|
137
|
+
# Retrieve a single page of TranscriptionsInstance records from the API.
|
138
138
|
# Request is executed immediately.
|
139
139
|
# @param [String] target_url API-generated URL for the requested results page
|
140
|
-
# @return [Page] Page of
|
140
|
+
# @return [Page] Page of TranscriptionsInstance
|
141
141
|
def get_page(target_url)
|
142
142
|
response = @version.domain.request(
|
143
143
|
'GET',
|
144
144
|
target_url
|
145
145
|
)
|
146
|
-
|
146
|
+
TranscriptionsPage.new(@version, response, @solution)
|
147
147
|
end
|
148
148
|
|
149
149
|
|
150
150
|
|
151
151
|
# Provide a user friendly representation
|
152
152
|
def to_s
|
153
|
-
'#<Twilio.
|
153
|
+
'#<Twilio.Video.V1.TranscriptionsList>'
|
154
154
|
end
|
155
155
|
end
|
156
156
|
|
157
157
|
|
158
|
-
class
|
158
|
+
class TranscriptionsContext < InstanceContext
|
159
159
|
##
|
160
|
-
# Initialize the
|
160
|
+
# Initialize the TranscriptionsContext
|
161
161
|
# @param [Version] version Version that contains the resource
|
162
|
-
# @param [String]
|
163
|
-
# @param [String]
|
164
|
-
# @return [
|
165
|
-
def initialize(version,
|
162
|
+
# @param [String] room_sid The SID of the room with the transcriptions resource to update.
|
163
|
+
# @param [String] ttid The Twilio type id of the transcriptions resource to update.
|
164
|
+
# @return [TranscriptionsContext] TranscriptionsContext
|
165
|
+
def initialize(version, room_sid, ttid)
|
166
166
|
super(version)
|
167
167
|
|
168
168
|
# Path Solution
|
169
|
-
@solution = {
|
170
|
-
@uri = "/
|
169
|
+
@solution = { room_sid: room_sid, ttid: ttid, }
|
170
|
+
@uri = "/Rooms/#{@solution[:room_sid]}/Transcriptions/#{@solution[:ttid]}"
|
171
171
|
|
172
172
|
|
173
173
|
end
|
174
174
|
##
|
175
|
-
#
|
176
|
-
# @return [
|
177
|
-
def delete
|
178
|
-
|
179
|
-
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
@version.delete('DELETE', @uri, headers: headers)
|
184
|
-
end
|
185
|
-
|
186
|
-
##
|
187
|
-
# Fetch the ShortCodeInstance
|
188
|
-
# @return [ShortCodeInstance] Fetched ShortCodeInstance
|
175
|
+
# Fetch the TranscriptionsInstance
|
176
|
+
# @return [TranscriptionsInstance] Fetched TranscriptionsInstance
|
189
177
|
def fetch
|
190
178
|
|
191
179
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
@@ -195,24 +183,24 @@ module Twilio
|
|
195
183
|
|
196
184
|
|
197
185
|
payload = @version.fetch('GET', @uri, headers: headers)
|
198
|
-
|
186
|
+
TranscriptionsInstance.new(
|
199
187
|
@version,
|
200
188
|
payload,
|
201
|
-
|
202
|
-
|
189
|
+
room_sid: @solution[:room_sid],
|
190
|
+
ttid: @solution[:ttid],
|
203
191
|
)
|
204
192
|
end
|
205
193
|
|
206
194
|
##
|
207
|
-
# Update the
|
208
|
-
# @param [
|
209
|
-
# @return [
|
195
|
+
# Update the TranscriptionsInstance
|
196
|
+
# @param [Status] status
|
197
|
+
# @return [TranscriptionsInstance] Updated TranscriptionsInstance
|
210
198
|
def update(
|
211
|
-
|
199
|
+
status: :unset
|
212
200
|
)
|
213
201
|
|
214
202
|
data = Twilio::Values.of({
|
215
|
-
'
|
203
|
+
'Status' => status,
|
216
204
|
})
|
217
205
|
|
218
206
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
@@ -222,11 +210,11 @@ module Twilio
|
|
222
210
|
|
223
211
|
|
224
212
|
payload = @version.update('POST', @uri, data: data, headers: headers)
|
225
|
-
|
213
|
+
TranscriptionsInstance.new(
|
226
214
|
@version,
|
227
215
|
payload,
|
228
|
-
|
229
|
-
|
216
|
+
room_sid: @solution[:room_sid],
|
217
|
+
ttid: @solution[:ttid],
|
230
218
|
)
|
231
219
|
end
|
232
220
|
|
@@ -235,24 +223,24 @@ module Twilio
|
|
235
223
|
# Provide a user friendly representation
|
236
224
|
def to_s
|
237
225
|
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
238
|
-
"#<Twilio.
|
226
|
+
"#<Twilio.Video.V1.TranscriptionsContext #{context}>"
|
239
227
|
end
|
240
228
|
|
241
229
|
##
|
242
230
|
# Provide a detailed, user friendly representation
|
243
231
|
def inspect
|
244
232
|
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
245
|
-
"#<Twilio.
|
233
|
+
"#<Twilio.Video.V1.TranscriptionsContext #{context}>"
|
246
234
|
end
|
247
235
|
end
|
248
236
|
|
249
|
-
class
|
237
|
+
class TranscriptionsPage < Page
|
250
238
|
##
|
251
|
-
# Initialize the
|
239
|
+
# Initialize the TranscriptionsPage
|
252
240
|
# @param [Version] version Version that contains the resource
|
253
241
|
# @param [Response] response Response from the API
|
254
242
|
# @param [Hash] solution Path solution for the resource
|
255
|
-
# @return [
|
243
|
+
# @return [TranscriptionsPage] TranscriptionsPage
|
256
244
|
def initialize(version, response, solution)
|
257
245
|
super(version, response)
|
258
246
|
|
@@ -261,148 +249,147 @@ module Twilio
|
|
261
249
|
end
|
262
250
|
|
263
251
|
##
|
264
|
-
# Build an instance of
|
252
|
+
# Build an instance of TranscriptionsInstance
|
265
253
|
# @param [Hash] payload Payload response from the API
|
266
|
-
# @return [
|
254
|
+
# @return [TranscriptionsInstance] TranscriptionsInstance
|
267
255
|
def get_instance(payload)
|
268
|
-
|
256
|
+
TranscriptionsInstance.new(@version, payload, room_sid: @solution[:room_sid])
|
269
257
|
end
|
270
258
|
|
271
259
|
##
|
272
260
|
# Provide a user friendly representation
|
273
261
|
def to_s
|
274
|
-
'<Twilio.
|
262
|
+
'<Twilio.Video.V1.TranscriptionsPage>'
|
275
263
|
end
|
276
264
|
end
|
277
|
-
class
|
265
|
+
class TranscriptionsInstance < InstanceResource
|
278
266
|
##
|
279
|
-
# Initialize the
|
267
|
+
# Initialize the TranscriptionsInstance
|
280
268
|
# @param [Version] version Version that contains the resource
|
281
269
|
# @param [Hash] payload payload that contains response from Twilio
|
282
270
|
# @param [String] account_sid The SID of the
|
283
|
-
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this
|
271
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this Transcriptions
|
284
272
|
# resource.
|
285
273
|
# @param [String] sid The SID of the Call resource to fetch.
|
286
|
-
# @return [
|
287
|
-
def initialize(version, payload ,
|
274
|
+
# @return [TranscriptionsInstance] TranscriptionsInstance
|
275
|
+
def initialize(version, payload , room_sid: nil, ttid: nil)
|
288
276
|
super(version)
|
289
277
|
|
290
278
|
# Marshaled Properties
|
291
279
|
@properties = {
|
292
|
-
'
|
280
|
+
'ttid' => payload['ttid'],
|
293
281
|
'account_sid' => payload['account_sid'],
|
294
|
-
'
|
282
|
+
'room_sid' => payload['room_sid'],
|
283
|
+
'status' => payload['status'],
|
284
|
+
'identity' => payload['identity'],
|
295
285
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
296
286
|
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
297
|
-
'
|
298
|
-
'
|
299
|
-
'
|
287
|
+
'start_time' => Twilio.deserialize_iso8601_datetime(payload['start_time']),
|
288
|
+
'end_time' => Twilio.deserialize_iso8601_datetime(payload['end_time']),
|
289
|
+
'duration' => payload['duration'] == nil ? payload['duration'] : payload['duration'].to_i,
|
300
290
|
'url' => payload['url'],
|
301
|
-
'is_reserved' => payload['is_reserved'],
|
302
291
|
}
|
303
292
|
|
304
293
|
# Context
|
305
294
|
@instance_context = nil
|
306
|
-
@params = { '
|
295
|
+
@params = { 'room_sid' => room_sid || @properties['room_sid'] ,'ttid' => ttid || @properties['ttid'] , }
|
307
296
|
end
|
308
297
|
|
309
298
|
##
|
310
299
|
# Generate an instance context for the instance, the context is capable of
|
311
300
|
# performing various actions. All instance actions are proxied to the context
|
312
|
-
# @return [
|
301
|
+
# @return [TranscriptionsContext] CallContext for this CallInstance
|
313
302
|
def context
|
314
303
|
unless @instance_context
|
315
|
-
@instance_context =
|
304
|
+
@instance_context = TranscriptionsContext.new(@version , @params['room_sid'], @params['ttid'])
|
316
305
|
end
|
317
306
|
@instance_context
|
318
307
|
end
|
319
308
|
|
320
309
|
##
|
321
|
-
# @return [String] The unique string that we created to identify the
|
322
|
-
def
|
323
|
-
@properties['
|
310
|
+
# @return [String] The unique string that we created to identify the transcriptions resource.
|
311
|
+
def ttid
|
312
|
+
@properties['ttid']
|
324
313
|
end
|
325
314
|
|
326
315
|
##
|
327
|
-
# @return [String] The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the
|
316
|
+
# @return [String] The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Room resource.
|
328
317
|
def account_sid
|
329
318
|
@properties['account_sid']
|
330
319
|
end
|
331
320
|
|
332
321
|
##
|
333
|
-
# @return [String] The SID of the
|
334
|
-
def
|
335
|
-
@properties['
|
322
|
+
# @return [String] The SID of the transcriptions's room.
|
323
|
+
def room_sid
|
324
|
+
@properties['room_sid']
|
325
|
+
end
|
326
|
+
|
327
|
+
##
|
328
|
+
# @return [Status]
|
329
|
+
def status
|
330
|
+
@properties['status']
|
336
331
|
end
|
337
332
|
|
338
333
|
##
|
339
|
-
# @return [
|
334
|
+
# @return [String] The application-defined string that uniquely identifies the resource's User within a Room. If a client joins with an existing Identity, the existing client is disconnected. See [access tokens](https://www.twilio.com/docs/video/tutorials/user-identity-access-tokens) and [limits](https://www.twilio.com/docs/video/programmable-video-limits) for more info.
|
335
|
+
def identity
|
336
|
+
@properties['identity']
|
337
|
+
end
|
338
|
+
|
339
|
+
##
|
340
|
+
# @return [Time] The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
340
341
|
def date_created
|
341
342
|
@properties['date_created']
|
342
343
|
end
|
343
344
|
|
344
345
|
##
|
345
|
-
# @return [Time] The
|
346
|
+
# @return [Time] The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
346
347
|
def date_updated
|
347
348
|
@properties['date_updated']
|
348
349
|
end
|
349
350
|
|
350
351
|
##
|
351
|
-
# @return [
|
352
|
-
def
|
353
|
-
@properties['
|
352
|
+
# @return [Time] The time of transcriptions connected to the room in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#UTC) format.
|
353
|
+
def start_time
|
354
|
+
@properties['start_time']
|
354
355
|
end
|
355
356
|
|
356
357
|
##
|
357
|
-
# @return [
|
358
|
-
def
|
359
|
-
@properties['
|
358
|
+
# @return [Time] The time when the transcriptions disconnected from the room in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#UTC) format.
|
359
|
+
def end_time
|
360
|
+
@properties['end_time']
|
360
361
|
end
|
361
362
|
|
362
363
|
##
|
363
|
-
# @return [
|
364
|
-
def
|
365
|
-
@properties['
|
364
|
+
# @return [String] The duration in seconds that the transcriptions were `connected`. Populated only after the transcriptions is `stopped`.
|
365
|
+
def duration
|
366
|
+
@properties['duration']
|
366
367
|
end
|
367
368
|
|
368
369
|
##
|
369
|
-
# @return [String] The absolute URL of the
|
370
|
+
# @return [String] The absolute URL of the resource.
|
370
371
|
def url
|
371
372
|
@properties['url']
|
372
373
|
end
|
373
374
|
|
374
375
|
##
|
375
|
-
#
|
376
|
-
|
377
|
-
@properties['is_reserved']
|
378
|
-
end
|
379
|
-
|
380
|
-
##
|
381
|
-
# Delete the ShortCodeInstance
|
382
|
-
# @return [Boolean] True if delete succeeds, false otherwise
|
383
|
-
def delete
|
384
|
-
|
385
|
-
context.delete
|
386
|
-
end
|
387
|
-
|
388
|
-
##
|
389
|
-
# Fetch the ShortCodeInstance
|
390
|
-
# @return [ShortCodeInstance] Fetched ShortCodeInstance
|
376
|
+
# Fetch the TranscriptionsInstance
|
377
|
+
# @return [TranscriptionsInstance] Fetched TranscriptionsInstance
|
391
378
|
def fetch
|
392
379
|
|
393
380
|
context.fetch
|
394
381
|
end
|
395
382
|
|
396
383
|
##
|
397
|
-
# Update the
|
398
|
-
# @param [
|
399
|
-
# @return [
|
384
|
+
# Update the TranscriptionsInstance
|
385
|
+
# @param [Status] status
|
386
|
+
# @return [TranscriptionsInstance] Updated TranscriptionsInstance
|
400
387
|
def update(
|
401
|
-
|
388
|
+
status: :unset
|
402
389
|
)
|
403
390
|
|
404
391
|
context.update(
|
405
|
-
|
392
|
+
status: status,
|
406
393
|
)
|
407
394
|
end
|
408
395
|
|
@@ -410,14 +397,14 @@ module Twilio
|
|
410
397
|
# Provide a user friendly representation
|
411
398
|
def to_s
|
412
399
|
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
413
|
-
"<Twilio.
|
400
|
+
"<Twilio.Video.V1.TranscriptionsInstance #{values}>"
|
414
401
|
end
|
415
402
|
|
416
403
|
##
|
417
404
|
# Provide a detailed, user friendly representation
|
418
405
|
def inspect
|
419
406
|
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
|
420
|
-
"<Twilio.
|
407
|
+
"<Twilio.Video.V1.TranscriptionsInstance #{values}>"
|
421
408
|
end
|
422
409
|
end
|
423
410
|
|
@@ -240,6 +240,7 @@ module Twilio
|
|
240
240
|
# Dependents
|
241
241
|
@recording_rules = nil
|
242
242
|
@participants = nil
|
243
|
+
@transcriptions = nil
|
243
244
|
@recordings = nil
|
244
245
|
end
|
245
246
|
##
|
@@ -318,6 +319,25 @@ module Twilio
|
|
318
319
|
@participants
|
319
320
|
end
|
320
321
|
##
|
322
|
+
# Access the transcriptions
|
323
|
+
# @return [TranscriptionsList]
|
324
|
+
# @return [TranscriptionsContext] if sid was passed.
|
325
|
+
def transcriptions(ttid=:unset)
|
326
|
+
|
327
|
+
raise ArgumentError, 'ttid cannot be nil' if ttid.nil?
|
328
|
+
|
329
|
+
if ttid != :unset
|
330
|
+
return TranscriptionsContext.new(@version, @solution[:sid],ttid )
|
331
|
+
end
|
332
|
+
|
333
|
+
unless @transcriptions
|
334
|
+
@transcriptions = TranscriptionsList.new(
|
335
|
+
@version, room_sid: @solution[:sid], )
|
336
|
+
end
|
337
|
+
|
338
|
+
@transcriptions
|
339
|
+
end
|
340
|
+
##
|
321
341
|
# Access the recordings
|
322
342
|
# @return [RoomRecordingList]
|
323
343
|
# @return [RoomRecordingContext] if sid was passed.
|
@@ -616,6 +636,13 @@ module Twilio
|
|
616
636
|
context.participants
|
617
637
|
end
|
618
638
|
|
639
|
+
##
|
640
|
+
# Access the transcriptions
|
641
|
+
# @return [transcriptions] transcriptions
|
642
|
+
def transcriptions
|
643
|
+
context.transcriptions
|
644
|
+
end
|
645
|
+
|
619
646
|
##
|
620
647
|
# Access the recordings
|
621
648
|
# @return [recordings] recordings
|
@@ -1761,6 +1761,30 @@ module Twilio
|
|
1761
1761
|
yield(application) if block_given?
|
1762
1762
|
append(application)
|
1763
1763
|
end
|
1764
|
+
|
1765
|
+
##
|
1766
|
+
# Create a new <WhatsApp> element
|
1767
|
+
# phone_number:: WhatsApp Phone Number to dial
|
1768
|
+
# url:: TwiML URL
|
1769
|
+
# method:: TwiML URL Method
|
1770
|
+
# status_callback_event:: Events to trigger status callback
|
1771
|
+
# status_callback:: Status Callback URL
|
1772
|
+
# status_callback_method:: Status Callback URL Method
|
1773
|
+
# keyword_args:: additional attributes
|
1774
|
+
def whats_app(phone_number, url: nil, method: nil, status_callback_event: nil, status_callback: nil, status_callback_method: nil, **keyword_args)
|
1775
|
+
append(WhatsApp.new(phone_number, url: url, method: method, status_callback_event: status_callback_event, status_callback: status_callback, status_callback_method: status_callback_method, **keyword_args))
|
1776
|
+
end
|
1777
|
+
end
|
1778
|
+
|
1779
|
+
##
|
1780
|
+
# <WhatsApp> TwiML Noun
|
1781
|
+
class WhatsApp < TwiML
|
1782
|
+
def initialize(phone_number, **keyword_args)
|
1783
|
+
super(**keyword_args)
|
1784
|
+
@name = 'WhatsApp'
|
1785
|
+
@value = phone_number
|
1786
|
+
yield(self) if block_given?
|
1787
|
+
end
|
1764
1788
|
end
|
1765
1789
|
|
1766
1790
|
##
|
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.6.
|
4
|
+
version: 7.6.4
|
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: 2025-
|
11
|
+
date: 2025-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -553,17 +553,15 @@ files:
|
|
553
553
|
- lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb
|
554
554
|
- lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb
|
555
555
|
- lib/twilio-ruby/rest/ip_messaging_base.rb
|
556
|
-
- lib/twilio-ruby/rest/knowledge.rb
|
557
|
-
- lib/twilio-ruby/rest/knowledge/v1.rb
|
558
|
-
- lib/twilio-ruby/rest/knowledge/v1/knowledge.rb
|
559
|
-
- lib/twilio-ruby/rest/knowledge/v1/knowledge/chunk.rb
|
560
|
-
- lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb
|
561
|
-
- lib/twilio-ruby/rest/knowledge_base.rb
|
562
556
|
- lib/twilio-ruby/rest/lookups.rb
|
563
557
|
- lib/twilio-ruby/rest/lookups/v1.rb
|
564
558
|
- lib/twilio-ruby/rest/lookups/v1/phone_number.rb
|
565
559
|
- lib/twilio-ruby/rest/lookups/v2.rb
|
560
|
+
- lib/twilio-ruby/rest/lookups/v2/bucket.rb
|
561
|
+
- lib/twilio-ruby/rest/lookups/v2/lookup_override.rb
|
566
562
|
- lib/twilio-ruby/rest/lookups/v2/phone_number.rb
|
563
|
+
- lib/twilio-ruby/rest/lookups/v2/query.rb
|
564
|
+
- lib/twilio-ruby/rest/lookups/v2/rate_limit.rb
|
567
565
|
- lib/twilio-ruby/rest/lookups_base.rb
|
568
566
|
- lib/twilio-ruby/rest/marketplace.rb
|
569
567
|
- lib/twilio-ruby/rest/marketplace/v1.rb
|
@@ -602,16 +600,6 @@ files:
|
|
602
600
|
- lib/twilio-ruby/rest/messaging/v2.rb
|
603
601
|
- lib/twilio-ruby/rest/messaging/v2/channels_sender.rb
|
604
602
|
- lib/twilio-ruby/rest/messaging_base.rb
|
605
|
-
- lib/twilio-ruby/rest/microvisor.rb
|
606
|
-
- lib/twilio-ruby/rest/microvisor/v1.rb
|
607
|
-
- lib/twilio-ruby/rest/microvisor/v1/account_config.rb
|
608
|
-
- lib/twilio-ruby/rest/microvisor/v1/account_secret.rb
|
609
|
-
- lib/twilio-ruby/rest/microvisor/v1/app.rb
|
610
|
-
- lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb
|
611
|
-
- lib/twilio-ruby/rest/microvisor/v1/device.rb
|
612
|
-
- lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb
|
613
|
-
- lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb
|
614
|
-
- lib/twilio-ruby/rest/microvisor_base.rb
|
615
603
|
- lib/twilio-ruby/rest/monitor.rb
|
616
604
|
- lib/twilio-ruby/rest/monitor/v1.rb
|
617
605
|
- lib/twilio-ruby/rest/monitor/v1/alert.rb
|
@@ -633,8 +621,8 @@ files:
|
|
633
621
|
- lib/twilio-ruby/rest/numbers/v1/porting_portability.rb
|
634
622
|
- lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb
|
635
623
|
- lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb
|
636
|
-
- lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb
|
637
624
|
- lib/twilio-ruby/rest/numbers/v1/signing_request_configuration.rb
|
625
|
+
- lib/twilio-ruby/rest/numbers/v1/webhook.rb
|
638
626
|
- lib/twilio-ruby/rest/numbers/v2.rb
|
639
627
|
- lib/twilio-ruby/rest/numbers/v2/authorization_document.rb
|
640
628
|
- lib/twilio-ruby/rest/numbers/v2/authorization_document/dependent_hosted_number_order.rb
|
@@ -708,7 +696,6 @@ files:
|
|
708
696
|
- lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb
|
709
697
|
- lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb
|
710
698
|
- lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb
|
711
|
-
- lib/twilio-ruby/rest/proxy/v1/service/short_code.rb
|
712
699
|
- lib/twilio-ruby/rest/proxy_base.rb
|
713
700
|
- lib/twilio-ruby/rest/routes.rb
|
714
701
|
- lib/twilio-ruby/rest/routes/v2.rb
|
@@ -874,6 +861,7 @@ files:
|
|
874
861
|
- lib/twilio-ruby/rest/video/v1/room/participant/subscribed_track.rb
|
875
862
|
- lib/twilio-ruby/rest/video/v1/room/recording_rules.rb
|
876
863
|
- lib/twilio-ruby/rest/video/v1/room/room_recording.rb
|
864
|
+
- lib/twilio-ruby/rest/video/v1/room/transcriptions.rb
|
877
865
|
- lib/twilio-ruby/rest/video_base.rb
|
878
866
|
- lib/twilio-ruby/rest/voice.rb
|
879
867
|
- lib/twilio-ruby/rest/voice/v1.rb
|