twilio-ruby 5.54.1 → 5.57.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/.rubocop_todo.yml +7 -7
- data/.travis.yml +2 -2
- data/CHANGES.md +54 -0
- data/README.md +10 -2
- data/lib/twilio-ruby.rb +5 -15
- data/lib/twilio-ruby/framework/{domain.rb → rest/domain.rb} +0 -0
- data/lib/twilio-ruby/framework/{error.rb → rest/error.rb} +0 -0
- data/lib/twilio-ruby/framework/{helper.rb → rest/helper.rb} +0 -0
- data/lib/twilio-ruby/framework/{obsolete_client.rb → rest/obsolete_client.rb} +0 -0
- data/lib/twilio-ruby/framework/{page.rb → rest/page.rb} +0 -0
- data/lib/twilio-ruby/framework/{resource.rb → rest/resource.rb} +0 -0
- data/lib/twilio-ruby/framework/{version.rb → rest/version.rb} +0 -0
- data/lib/twilio-ruby/http.rb +5 -0
- data/lib/twilio-ruby/http/http_client.rb +11 -1
- data/lib/twilio-ruby/rest.rb +13 -0
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +8 -7
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +2 -2
- data/lib/twilio-ruby/rest/client.rb +7 -0
- data/lib/twilio-ruby/rest/conversations.rb +6 -0
- data/lib/twilio-ruby/rest/conversations/v1.rb +7 -0
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +7 -0
- data/lib/twilio-ruby/rest/conversations/v1/participant_conversation.rb +312 -0
- data/lib/twilio-ruby/rest/conversations/v1/service.rb +23 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +7 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/participant_conversation.rb +324 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +44 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/user/user_conversation.rb +466 -0
- data/lib/twilio-ruby/rest/conversations/v1/user.rb +35 -0
- data/lib/twilio-ruby/rest/conversations/v1/user/user_conversation.rb +442 -0
- data/lib/twilio-ruby/rest/frontline_api.rb +47 -0
- data/lib/twilio-ruby/rest/frontline_api/v1.rb +45 -0
- data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +233 -0
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +7 -0
- data/lib/twilio-ruby/rest/supersim/v1/sim.rb +29 -0
- data/lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb +231 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +7 -0
- data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +24 -5
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +19 -9
@@ -282,6 +282,7 @@ module Twilio
|
|
282
282
|
'sid' => payload['sid'],
|
283
283
|
'workspace_sid' => payload['workspace_sid'],
|
284
284
|
'url' => payload['url'],
|
285
|
+
'links' => payload['links'],
|
285
286
|
}
|
286
287
|
|
287
288
|
# Context
|
@@ -348,6 +349,12 @@ module Twilio
|
|
348
349
|
@properties['url']
|
349
350
|
end
|
350
351
|
|
352
|
+
##
|
353
|
+
# @return [String] The links
|
354
|
+
def links
|
355
|
+
@properties['links']
|
356
|
+
end
|
357
|
+
|
351
358
|
##
|
352
359
|
# Fetch the ActivityInstance
|
353
360
|
# @return [ActivityInstance] Fetched ActivityInstance
|
@@ -37,13 +37,17 @@ module Twilio
|
|
37
37
|
# @param [String] webhook_url The URL associated with this Webhook.
|
38
38
|
# @param [webhook.Status] status The webhook status. Default value is `enabled`.
|
39
39
|
# One of: `enabled` or `disabled`
|
40
|
+
# @param [webhook.Version] version The webhook version. Default value is `v2`
|
41
|
+
# which includes all the latest fields. Version `v1` is legacy and may be removed
|
42
|
+
# in the future.
|
40
43
|
# @return [WebhookInstance] Created WebhookInstance
|
41
|
-
def create(friendly_name: nil, event_types: nil, webhook_url: nil, status: :unset)
|
44
|
+
def create(friendly_name: nil, event_types: nil, webhook_url: nil, status: :unset, version: :unset)
|
42
45
|
data = Twilio::Values.of({
|
43
46
|
'FriendlyName' => friendly_name,
|
44
47
|
'EventTypes' => Twilio.serialize_list(event_types) { |e| e },
|
45
48
|
'WebhookUrl' => webhook_url,
|
46
49
|
'Status' => status,
|
50
|
+
'Version' => version,
|
47
51
|
})
|
48
52
|
|
49
53
|
payload = @version.create('POST', @uri, data: data)
|
@@ -197,13 +201,17 @@ module Twilio
|
|
197
201
|
# @param [String] webhook_url The URL associated with this Webhook.
|
198
202
|
# @param [webhook.Status] status The webhook status. Default value is `enabled`.
|
199
203
|
# One of: `enabled` or `disabled`
|
204
|
+
# @param [webhook.Version] version The webhook version. Default value is `v2`
|
205
|
+
# which includes all the latest fields. Version `v1` is legacy and may be removed
|
206
|
+
# in the future.
|
200
207
|
# @return [WebhookInstance] Updated WebhookInstance
|
201
|
-
def update(friendly_name: :unset, event_types: :unset, webhook_url: :unset, status: :unset)
|
208
|
+
def update(friendly_name: :unset, event_types: :unset, webhook_url: :unset, status: :unset, version: :unset)
|
202
209
|
data = Twilio::Values.of({
|
203
210
|
'FriendlyName' => friendly_name,
|
204
211
|
'EventTypes' => Twilio.serialize_list(event_types) { |e| e },
|
205
212
|
'WebhookUrl' => webhook_url,
|
206
213
|
'Status' => status,
|
214
|
+
'Version' => version,
|
207
215
|
})
|
208
216
|
|
209
217
|
payload = @version.update('POST', @uri, data: data)
|
@@ -264,6 +272,7 @@ module Twilio
|
|
264
272
|
'friendly_name' => payload['friendly_name'],
|
265
273
|
'event_types' => payload['event_types'],
|
266
274
|
'status' => payload['status'],
|
275
|
+
'version' => payload['version'],
|
267
276
|
'webhook_url' => payload['webhook_url'],
|
268
277
|
'webhook_method' => payload['webhook_method'],
|
269
278
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
@@ -323,6 +332,12 @@ module Twilio
|
|
323
332
|
@properties['status']
|
324
333
|
end
|
325
334
|
|
335
|
+
##
|
336
|
+
# @return [webhook.Version] The webhook version
|
337
|
+
def version
|
338
|
+
@properties['version']
|
339
|
+
end
|
340
|
+
|
326
341
|
##
|
327
342
|
# @return [String] The URL associated with this Webhook.
|
328
343
|
def webhook_url
|
@@ -336,13 +351,13 @@ module Twilio
|
|
336
351
|
end
|
337
352
|
|
338
353
|
##
|
339
|
-
# @return [Time] The
|
354
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was created
|
340
355
|
def date_created
|
341
356
|
@properties['date_created']
|
342
357
|
end
|
343
358
|
|
344
359
|
##
|
345
|
-
# @return [Time] The
|
360
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was last updated
|
346
361
|
def date_updated
|
347
362
|
@properties['date_updated']
|
348
363
|
end
|
@@ -363,13 +378,17 @@ module Twilio
|
|
363
378
|
# @param [String] webhook_url The URL associated with this Webhook.
|
364
379
|
# @param [webhook.Status] status The webhook status. Default value is `enabled`.
|
365
380
|
# One of: `enabled` or `disabled`
|
381
|
+
# @param [webhook.Version] version The webhook version. Default value is `v2`
|
382
|
+
# which includes all the latest fields. Version `v1` is legacy and may be removed
|
383
|
+
# in the future.
|
366
384
|
# @return [WebhookInstance] Updated WebhookInstance
|
367
|
-
def update(friendly_name: :unset, event_types: :unset, webhook_url: :unset, status: :unset)
|
385
|
+
def update(friendly_name: :unset, event_types: :unset, webhook_url: :unset, status: :unset, version: :unset)
|
368
386
|
context.update(
|
369
387
|
friendly_name: friendly_name,
|
370
388
|
event_types: event_types,
|
371
389
|
webhook_url: webhook_url,
|
372
390
|
status: status,
|
391
|
+
version: version,
|
373
392
|
)
|
374
393
|
end
|
375
394
|
|
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: 5.
|
4
|
+
version: 5.57.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: 2021-
|
11
|
+
date: 2021-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -236,23 +236,25 @@ files:
|
|
236
236
|
- githooks/pre-commit
|
237
237
|
- lib/rack/twilio_webhook_authentication.rb
|
238
238
|
- lib/twilio-ruby.rb
|
239
|
-
- lib/twilio-ruby/framework/domain.rb
|
240
|
-
- lib/twilio-ruby/framework/error.rb
|
241
|
-
- lib/twilio-ruby/framework/helper.rb
|
242
|
-
- lib/twilio-ruby/framework/obsolete_client.rb
|
243
|
-
- lib/twilio-ruby/framework/page.rb
|
244
239
|
- lib/twilio-ruby/framework/request.rb
|
245
|
-
- lib/twilio-ruby/framework/resource.rb
|
246
240
|
- lib/twilio-ruby/framework/response.rb
|
241
|
+
- lib/twilio-ruby/framework/rest/domain.rb
|
242
|
+
- lib/twilio-ruby/framework/rest/error.rb
|
243
|
+
- lib/twilio-ruby/framework/rest/helper.rb
|
244
|
+
- lib/twilio-ruby/framework/rest/obsolete_client.rb
|
245
|
+
- lib/twilio-ruby/framework/rest/page.rb
|
246
|
+
- lib/twilio-ruby/framework/rest/resource.rb
|
247
|
+
- lib/twilio-ruby/framework/rest/version.rb
|
247
248
|
- lib/twilio-ruby/framework/serialize.rb
|
248
249
|
- lib/twilio-ruby/framework/twilio_response.rb
|
249
250
|
- lib/twilio-ruby/framework/values.rb
|
250
|
-
- lib/twilio-ruby/
|
251
|
+
- lib/twilio-ruby/http.rb
|
251
252
|
- lib/twilio-ruby/http/http_client.rb
|
252
253
|
- lib/twilio-ruby/jwt/access_token.rb
|
253
254
|
- lib/twilio-ruby/jwt/client_capability.rb
|
254
255
|
- lib/twilio-ruby/jwt/jwt.rb
|
255
256
|
- lib/twilio-ruby/jwt/task_router.rb
|
257
|
+
- lib/twilio-ruby/rest.rb
|
256
258
|
- lib/twilio-ruby/rest/accounts.rb
|
257
259
|
- lib/twilio-ruby/rest/accounts/v1.rb
|
258
260
|
- lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb
|
@@ -396,6 +398,7 @@ files:
|
|
396
398
|
- lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb
|
397
399
|
- lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb
|
398
400
|
- lib/twilio-ruby/rest/conversations/v1/credential.rb
|
401
|
+
- lib/twilio-ruby/rest/conversations/v1/participant_conversation.rb
|
399
402
|
- lib/twilio-ruby/rest/conversations/v1/role.rb
|
400
403
|
- lib/twilio-ruby/rest/conversations/v1/service.rb
|
401
404
|
- lib/twilio-ruby/rest/conversations/v1/service/binding.rb
|
@@ -406,9 +409,12 @@ files:
|
|
406
409
|
- lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb
|
407
410
|
- lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb
|
408
411
|
- lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb
|
412
|
+
- lib/twilio-ruby/rest/conversations/v1/service/participant_conversation.rb
|
409
413
|
- lib/twilio-ruby/rest/conversations/v1/service/role.rb
|
410
414
|
- lib/twilio-ruby/rest/conversations/v1/service/user.rb
|
415
|
+
- lib/twilio-ruby/rest/conversations/v1/service/user/user_conversation.rb
|
411
416
|
- lib/twilio-ruby/rest/conversations/v1/user.rb
|
417
|
+
- lib/twilio-ruby/rest/conversations/v1/user/user_conversation.rb
|
412
418
|
- lib/twilio-ruby/rest/events.rb
|
413
419
|
- lib/twilio-ruby/rest/events/v1.rb
|
414
420
|
- lib/twilio-ruby/rest/events/v1/event_type.rb
|
@@ -429,6 +435,9 @@ files:
|
|
429
435
|
- lib/twilio-ruby/rest/flex_api/v1/configuration.rb
|
430
436
|
- lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb
|
431
437
|
- lib/twilio-ruby/rest/flex_api/v1/web_channel.rb
|
438
|
+
- lib/twilio-ruby/rest/frontline_api.rb
|
439
|
+
- lib/twilio-ruby/rest/frontline_api/v1.rb
|
440
|
+
- lib/twilio-ruby/rest/frontline_api/v1/user.rb
|
432
441
|
- lib/twilio-ruby/rest/insights.rb
|
433
442
|
- lib/twilio-ruby/rest/insights/v1.rb
|
434
443
|
- lib/twilio-ruby/rest/insights/v1/call.rb
|
@@ -619,6 +628,7 @@ files:
|
|
619
628
|
- lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb
|
620
629
|
- lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb
|
621
630
|
- lib/twilio-ruby/rest/supersim/v1/sim.rb
|
631
|
+
- lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb
|
622
632
|
- lib/twilio-ruby/rest/supersim/v1/sms_command.rb
|
623
633
|
- lib/twilio-ruby/rest/supersim/v1/usage_record.rb
|
624
634
|
- lib/twilio-ruby/rest/sync.rb
|