twilio-ruby 5.35.0 → 5.36.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +28 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +87 -87
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +14 -0
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +71 -71
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +29 -29
- data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +27 -4
- data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +2 -1
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +7 -0
- data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +6 -3
- data/lib/twilio-ruby/rest/preview/trusted_comms/business.rb +26 -0
- data/lib/twilio-ruby/rest/preview/trusted_comms/business/brand.rb +239 -0
- data/lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel.rb +266 -0
- data/lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel/channel.rb +197 -0
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +7 -0
- data/lib/twilio-ruby/rest/supersim.rb +11 -1
- data/lib/twilio-ruby/rest/supersim/v1.rb +16 -1
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +10 -1
- data/lib/twilio-ruby/rest/supersim/v1/network.rb +315 -0
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +53 -12
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +352 -0
- data/lib/twilio-ruby/rest/verify.rb +9 -0
- data/lib/twilio-ruby/rest/verify/v2.rb +16 -0
- data/lib/twilio-ruby/rest/verify/v2/form.rb +197 -0
- data/lib/twilio-ruby/rest/verify/v2/service.rb +26 -0
- data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +379 -0
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +500 -0
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor/challenge.rb +494 -0
- data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +8 -4
- data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +8 -4
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/api/v2010/account/call_spec.rb +5 -5
- data/spec/integration/api/v2010/account/conference_spec.rb +42 -14
- data/spec/integration/conversations/v1/conversation/participant_spec.rb +7 -0
- data/spec/integration/flex_api/v1/configuration_spec.rb +3 -0
- data/spec/integration/preview/trusted_comms/business/brand/branded_channel/channel_spec.rb +54 -0
- data/spec/integration/preview/trusted_comms/business/brand/branded_channel_spec.rb +52 -0
- data/spec/integration/preview/trusted_comms/business/brand_spec.rb +49 -0
- data/spec/integration/preview/trusted_comms/business_spec.rb +1 -0
- data/spec/integration/serverless/v1/service/environment/log_spec.rb +1 -0
- data/spec/integration/supersim/v1/fleet_spec.rb +4 -0
- data/spec/integration/supersim/v1/network_access_profile/network_access_profile_network_spec.rb +179 -0
- data/spec/integration/supersim/v1/network_access_profile_spec.rb +20 -5
- data/spec/integration/supersim/v1/network_spec.rb +139 -0
- data/spec/integration/trunking/v1/trunk/credential_list_spec.rb +13 -13
- data/spec/integration/trunking/v1/trunk/ip_access_control_list_spec.rb +23 -23
- data/spec/integration/trunking/v1/trunk/origination_url_spec.rb +28 -28
- data/spec/integration/trunking/v1/trunk/phone_number_spec.rb +17 -17
- data/spec/integration/trunking/v1/trunk_spec.rb +33 -33
- data/spec/integration/verify/v2/form_spec.rb +48 -0
- data/spec/integration/verify/v2/service/entity/factor/challenge_spec.rb +353 -0
- data/spec/integration/verify/v2/service/entity/factor_spec.rb +298 -0
- data/spec/integration/verify/v2/service/entity_spec.rb +201 -0
- data/spec/integration/verify/v2/service_spec.rb +24 -4
- metadata +29 -2
@@ -96,8 +96,10 @@ module Twilio
|
|
96
96
|
# encryption.
|
97
97
|
# @param [String] aws_s3_url The URL of the AWS S3 bucket where the compositions
|
98
98
|
# should be stored. We only support DNS-compliant URLs like
|
99
|
-
# `
|
100
|
-
# `compositions` is the path in which you want the compositions to be stored.
|
99
|
+
# `https://<my-bucket>.s3-<aws-region>.amazonaws.com/compositions`, where
|
100
|
+
# `compositions` is the path in which you want the compositions to be stored. This
|
101
|
+
# URL accepts only URI-valid characters, as described in the <a
|
102
|
+
# href='https://tools.ietf.org/html/rfc3986#section-2'>RFC 3986</a>.
|
101
103
|
# @param [Boolean] aws_storage_enabled Whether all compositions should be written
|
102
104
|
# to the `aws_s3_url`. When `false`, all compositions are stored in our cloud.
|
103
105
|
# @param [Boolean] encryption_enabled Whether all compositions should be stored in
|
@@ -239,8 +241,10 @@ module Twilio
|
|
239
241
|
# encryption.
|
240
242
|
# @param [String] aws_s3_url The URL of the AWS S3 bucket where the compositions
|
241
243
|
# should be stored. We only support DNS-compliant URLs like
|
242
|
-
# `
|
243
|
-
# `compositions` is the path in which you want the compositions to be stored.
|
244
|
+
# `https://<my-bucket>.s3-<aws-region>.amazonaws.com/compositions`, where
|
245
|
+
# `compositions` is the path in which you want the compositions to be stored. This
|
246
|
+
# URL accepts only URI-valid characters, as described in the <a
|
247
|
+
# href='https://tools.ietf.org/html/rfc3986#section-2'>RFC 3986</a>.
|
244
248
|
# @param [Boolean] aws_storage_enabled Whether all compositions should be written
|
245
249
|
# to the `aws_s3_url`. When `false`, all compositions are stored in our cloud.
|
246
250
|
# @param [Boolean] encryption_enabled Whether all compositions should be stored in
|
@@ -96,8 +96,10 @@ module Twilio
|
|
96
96
|
# encryption.
|
97
97
|
# @param [String] aws_s3_url The URL of the AWS S3 bucket where the recordings
|
98
98
|
# should be stored. We only support DNS-compliant URLs like
|
99
|
-
# `
|
100
|
-
# `recordings` is the path in which you want the recordings to be stored.
|
99
|
+
# `https://<my-bucket>.s3-<aws-region>.amazonaws.com/recordings`, where
|
100
|
+
# `recordings` is the path in which you want the recordings to be stored. This URL
|
101
|
+
# accepts only URI-valid characters, as described in the <a
|
102
|
+
# href='https://tools.ietf.org/html/rfc3986#section-2'>RFC 3986</a>.
|
101
103
|
# @param [Boolean] aws_storage_enabled Whether all recordings should be written to
|
102
104
|
# the `aws_s3_url`. When `false`, all recordings are stored in our cloud.
|
103
105
|
# @param [Boolean] encryption_enabled Whether all recordings should be stored in
|
@@ -239,8 +241,10 @@ module Twilio
|
|
239
241
|
# encryption.
|
240
242
|
# @param [String] aws_s3_url The URL of the AWS S3 bucket where the recordings
|
241
243
|
# should be stored. We only support DNS-compliant URLs like
|
242
|
-
# `
|
243
|
-
# `recordings` is the path in which you want the recordings to be stored.
|
244
|
+
# `https://<my-bucket>.s3-<aws-region>.amazonaws.com/recordings`, where
|
245
|
+
# `recordings` is the path in which you want the recordings to be stored. This URL
|
246
|
+
# accepts only URI-valid characters, as described in the <a
|
247
|
+
# href='https://tools.ietf.org/html/rfc3986#section-2'>RFC 3986</a>.
|
244
248
|
# @param [Boolean] aws_storage_enabled Whether all recordings should be written to
|
245
249
|
# the `aws_s3_url`. When `false`, all recordings are stored in our cloud.
|
246
250
|
# @param [Boolean] encryption_enabled Whether all recordings should be stored in
|
data/lib/twilio-ruby/version.rb
CHANGED
@@ -201,7 +201,7 @@ describe 'Call' do
|
|
201
201
|
},
|
202
202
|
"to": "+13051913581",
|
203
203
|
"to_formatted": "(305) 191-3581",
|
204
|
-
"trunk_sid": "
|
204
|
+
"trunk_sid": "TKdeadbeefdeadbeefdeadbeefdeadbeef",
|
205
205
|
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
|
206
206
|
"queue_time": "1000"
|
207
207
|
}
|
@@ -267,7 +267,7 @@ describe 'Call' do
|
|
267
267
|
},
|
268
268
|
"to": "+13051913581",
|
269
269
|
"to_formatted": "(305) 191-3581",
|
270
|
-
"trunk_sid": "
|
270
|
+
"trunk_sid": "TKdeadbeefdeadbeefdeadbeefdeadbeef",
|
271
271
|
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
|
272
272
|
"queue_time": "1000"
|
273
273
|
},
|
@@ -302,7 +302,7 @@ describe 'Call' do
|
|
302
302
|
},
|
303
303
|
"to": "+13051913580",
|
304
304
|
"to_formatted": "(305) 191-3580",
|
305
|
-
"trunk_sid": "
|
305
|
+
"trunk_sid": "TKdeadbeefdeadbeefdeadbeefdeadbeef",
|
306
306
|
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa0.json",
|
307
307
|
"queue_time": "1000"
|
308
308
|
}
|
@@ -362,7 +362,7 @@ describe 'Call' do
|
|
362
362
|
},
|
363
363
|
"to": "+13051913581",
|
364
364
|
"to_formatted": "(305) 191-3581",
|
365
|
-
"trunk_sid": "
|
365
|
+
"trunk_sid": "TKdeadbeefdeadbeefdeadbeefdeadbeef",
|
366
366
|
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
|
367
367
|
"queue_time": "1000"
|
368
368
|
},
|
@@ -397,7 +397,7 @@ describe 'Call' do
|
|
397
397
|
},
|
398
398
|
"to": "+13051913580",
|
399
399
|
"to_formatted": "(305) 191-3580",
|
400
|
-
"trunk_sid": "
|
400
|
+
"trunk_sid": "TKdeadbeefdeadbeefdeadbeefdeadbeef",
|
401
401
|
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa0.json",
|
402
402
|
"queue_time": "1000"
|
403
403
|
}
|
@@ -42,7 +42,9 @@ describe 'Conference' do
|
|
42
42
|
"participants": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants.json",
|
43
43
|
"recordings": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Recordings.json"
|
44
44
|
},
|
45
|
-
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
|
45
|
+
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
|
46
|
+
"reason_conference_ended": "last-participant-left",
|
47
|
+
"call_sid_ending_conference": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
46
48
|
}
|
47
49
|
]
|
48
50
|
))
|
@@ -70,7 +72,9 @@ describe 'Conference' do
|
|
70
72
|
"participants": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants.json",
|
71
73
|
"recordings": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Recordings.json"
|
72
74
|
},
|
73
|
-
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
|
75
|
+
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
|
76
|
+
"reason_conference_ended": null,
|
77
|
+
"call_sid_ending_conference": null
|
74
78
|
}
|
75
79
|
]
|
76
80
|
))
|
@@ -98,7 +102,9 @@ describe 'Conference' do
|
|
98
102
|
"participants": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants.json",
|
99
103
|
"recordings": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Recordings.json"
|
100
104
|
},
|
101
|
-
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
|
105
|
+
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
|
106
|
+
"reason_conference_ended": "participant-with-end-conference-on-exit-left",
|
107
|
+
"call_sid_ending_conference": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
102
108
|
}
|
103
109
|
]
|
104
110
|
))
|
@@ -126,7 +132,9 @@ describe 'Conference' do
|
|
126
132
|
"participants": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants.json",
|
127
133
|
"recordings": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Recordings.json"
|
128
134
|
},
|
129
|
-
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
|
135
|
+
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
|
136
|
+
"reason_conference_ended": "participant-with-end-conference-on-exit-left",
|
137
|
+
"call_sid_ending_conference": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
130
138
|
}
|
131
139
|
]
|
132
140
|
))
|
@@ -196,7 +204,9 @@ describe 'Conference' do
|
|
196
204
|
"friendly_name": "friendly_name",
|
197
205
|
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
|
198
206
|
"api_version": "2010-04-01",
|
199
|
-
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
207
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
208
|
+
"reason_conference_ended": null,
|
209
|
+
"call_sid_ending_conference": null
|
200
210
|
},
|
201
211
|
{
|
202
212
|
"status": "in-progress",
|
@@ -211,7 +221,9 @@ describe 'Conference' do
|
|
211
221
|
"friendly_name": "friendly_name",
|
212
222
|
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb.json",
|
213
223
|
"api_version": "2010-04-01",
|
214
|
-
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
224
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
225
|
+
"reason_conference_ended": null,
|
226
|
+
"call_sid_ending_conference": null
|
215
227
|
},
|
216
228
|
{
|
217
229
|
"status": "in-progress",
|
@@ -226,7 +238,9 @@ describe 'Conference' do
|
|
226
238
|
"friendly_name": "friendly_name",
|
227
239
|
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFcccccccccccccccccccccccccccccccc.json",
|
228
240
|
"api_version": "2010-04-01",
|
229
|
-
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
241
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
242
|
+
"reason_conference_ended": null,
|
243
|
+
"call_sid_ending_conference": null
|
230
244
|
}
|
231
245
|
],
|
232
246
|
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences.json?Status=in-progress&DateUpdated%3E=2018-11-12&DateUpdated%3C=2018-11-11&DateCreated=2008-01-03&FriendlyName=friendly_name&DateUpdated=2018-11-13&DateCreated%3C=2008-01-01&DateCreated%3E=2008-01-02&PageSize=3&Page=0",
|
@@ -266,7 +280,9 @@ describe 'Conference' do
|
|
266
280
|
"friendly_name": "friendly_name",
|
267
281
|
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFdddddddddddddddddddddddddddddddd.json",
|
268
282
|
"api_version": "2010-04-01",
|
269
|
-
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
283
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
284
|
+
"reason_conference_ended": null,
|
285
|
+
"call_sid_ending_conference": null
|
270
286
|
},
|
271
287
|
{
|
272
288
|
"status": "in-progress",
|
@@ -281,7 +297,9 @@ describe 'Conference' do
|
|
281
297
|
"friendly_name": "friendly_name",
|
282
298
|
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.json",
|
283
299
|
"api_version": "2010-04-01",
|
284
|
-
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
300
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
301
|
+
"reason_conference_ended": null,
|
302
|
+
"call_sid_ending_conference": null
|
285
303
|
},
|
286
304
|
{
|
287
305
|
"status": "in-progress",
|
@@ -296,7 +314,9 @@ describe 'Conference' do
|
|
296
314
|
"friendly_name": "friendly_name",
|
297
315
|
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFffffffffffffffffffffffffffffffff.json",
|
298
316
|
"api_version": "2010-04-01",
|
299
|
-
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
317
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
318
|
+
"reason_conference_ended": null,
|
319
|
+
"call_sid_ending_conference": null
|
300
320
|
}
|
301
321
|
],
|
302
322
|
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences.json?Status=in-progress&DateUpdated%3E=2018-11-12&DateUpdated%3C=2018-11-11&DateCreated=2008-01-03&FriendlyName=friendly_name&DateUpdated=2018-11-13&DateCreated%3C=2008-01-01&DateCreated%3E=2008-01-02&PageSize=3&Page=0",
|
@@ -336,7 +356,9 @@ describe 'Conference' do
|
|
336
356
|
"friendly_name": "friendly_name",
|
337
357
|
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
|
338
358
|
"api_version": "2010-04-01",
|
339
|
-
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
359
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
360
|
+
"reason_conference_ended": null,
|
361
|
+
"call_sid_ending_conference": null
|
340
362
|
},
|
341
363
|
{
|
342
364
|
"status": "in-progress",
|
@@ -351,7 +373,9 @@ describe 'Conference' do
|
|
351
373
|
"friendly_name": "friendly_name",
|
352
374
|
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb.json",
|
353
375
|
"api_version": "2010-04-01",
|
354
|
-
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
376
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
377
|
+
"reason_conference_ended": null,
|
378
|
+
"call_sid_ending_conference": null
|
355
379
|
},
|
356
380
|
{
|
357
381
|
"status": "in-progress",
|
@@ -366,7 +390,9 @@ describe 'Conference' do
|
|
366
390
|
"friendly_name": "friendly_name",
|
367
391
|
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFcccccccccccccccccccccccccccccccc.json",
|
368
392
|
"api_version": "2010-04-01",
|
369
|
-
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
393
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
394
|
+
"reason_conference_ended": null,
|
395
|
+
"call_sid_ending_conference": null
|
370
396
|
}
|
371
397
|
],
|
372
398
|
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences.json?Status=in-progress&DateUpdated%3E=2018-11-12&DateUpdated%3C=2018-11-11&DateCreated=2008-01-03&FriendlyName=friendly_name&DateUpdated=2018-11-13&DateCreated%3C=2008-01-01&DateCreated%3E=2008-01-02&PageSize=3&Page=0",
|
@@ -420,7 +446,9 @@ describe 'Conference' do
|
|
420
446
|
"participants": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants.json",
|
421
447
|
"recordings": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Recordings.json"
|
422
448
|
},
|
423
|
-
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
|
449
|
+
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
|
450
|
+
"reason_conference_ended": "conference-ended-via-api",
|
451
|
+
"call_sid_ending_conference": null
|
424
452
|
}
|
425
453
|
]
|
426
454
|
))
|
@@ -40,6 +40,7 @@ describe 'Participant' do
|
|
40
40
|
"address": "+15558675310",
|
41
41
|
"proxy_address": "+15017122661"
|
42
42
|
},
|
43
|
+
"role_sid": "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
43
44
|
"date_created": "2015-12-16T22:18:37Z",
|
44
45
|
"date_updated": "2015-12-16T22:18:38Z",
|
45
46
|
"url": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
@@ -64,6 +65,7 @@ describe 'Participant' do
|
|
64
65
|
"identity": "IDENTITY",
|
65
66
|
"attributes": "{ \\"role\\": \\"driver\\" }",
|
66
67
|
"messaging_binding": null,
|
68
|
+
"role_sid": "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
67
69
|
"date_created": "2015-12-16T22:18:37Z",
|
68
70
|
"date_updated": "2015-12-16T22:18:38Z",
|
69
71
|
"url": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
@@ -91,6 +93,7 @@ describe 'Participant' do
|
|
91
93
|
"type": "sms",
|
92
94
|
"projected_address": "+15017122661"
|
93
95
|
},
|
96
|
+
"role_sid": "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
94
97
|
"date_created": "2015-12-16T22:18:37Z",
|
95
98
|
"date_updated": "2015-12-16T22:18:38Z",
|
96
99
|
"url": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
@@ -135,6 +138,7 @@ describe 'Participant' do
|
|
135
138
|
"address": "+15558675310",
|
136
139
|
"proxy_address": "+15017122661"
|
137
140
|
},
|
141
|
+
"role_sid": "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
138
142
|
"date_created": "2015-12-16T22:18:37Z",
|
139
143
|
"date_updated": "2015-12-16T22:18:38Z",
|
140
144
|
"url": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
@@ -207,6 +211,7 @@ describe 'Participant' do
|
|
207
211
|
"address": "+15558675310",
|
208
212
|
"proxy_address": "+15017122661"
|
209
213
|
},
|
214
|
+
"role_sid": "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
210
215
|
"date_created": "2016-03-24T21:05:50Z",
|
211
216
|
"date_updated": "2016-03-24T21:05:50Z",
|
212
217
|
"url": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
@@ -262,6 +267,7 @@ describe 'Participant' do
|
|
262
267
|
"address": "+15558675310",
|
263
268
|
"proxy_address": "+15017122661"
|
264
269
|
},
|
270
|
+
"role_sid": "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
265
271
|
"date_created": "2016-03-24T21:05:50Z",
|
266
272
|
"date_updated": "2016-03-24T21:05:50Z",
|
267
273
|
"url": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
@@ -273,6 +279,7 @@ describe 'Participant' do
|
|
273
279
|
"identity": "IDENTITY",
|
274
280
|
"attributes": "{ \\"role\\": \\"driver\\" }",
|
275
281
|
"messaging_binding": null,
|
282
|
+
"role_sid": "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
276
283
|
"date_created": "2016-03-24T21:05:50Z",
|
277
284
|
"date_updated": "2016-03-24T21:05:50Z",
|
278
285
|
"url": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
@@ -96,6 +96,7 @@ describe 'Configuration' do
|
|
96
96
|
"runtime_domain": "https://flex.twilio.com",
|
97
97
|
"messaging_service_instance_sid": "MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
98
98
|
"chat_service_instance_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
99
|
+
"flex_service_instance_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
99
100
|
"ui_language": "en",
|
100
101
|
"ui_attributes": {},
|
101
102
|
"ui_dependencies": {},
|
@@ -293,6 +294,7 @@ describe 'Configuration' do
|
|
293
294
|
"runtime_domain": "https://flex.twilio.com",
|
294
295
|
"messaging_service_instance_sid": "MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
295
296
|
"chat_service_instance_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
297
|
+
"flex_service_instance_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
296
298
|
"ui_language": "en",
|
297
299
|
"ui_attributes": {},
|
298
300
|
"ui_dependencies": {},
|
@@ -490,6 +492,7 @@ describe 'Configuration' do
|
|
490
492
|
"runtime_domain": "https://flex.twilio.com",
|
491
493
|
"messaging_service_instance_sid": "MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
492
494
|
"chat_service_instance_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
495
|
+
"flex_service_instance_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
493
496
|
"ui_language": "en",
|
494
497
|
"ui_attributes": {},
|
495
498
|
"ui_dependencies": {},
|
@@ -0,0 +1,54 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# \ / _ _ _| _ _
|
4
|
+
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
|
+
# / /
|
6
|
+
#
|
7
|
+
# frozen_string_literal: true
|
8
|
+
|
9
|
+
require 'spec_helper.rb'
|
10
|
+
|
11
|
+
describe 'Channel' do
|
12
|
+
it "can create" do
|
13
|
+
@holodeck.mock(Twilio::Response.new(500, ''))
|
14
|
+
|
15
|
+
expect {
|
16
|
+
@client.preview.trusted_comms.businesses('BXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
17
|
+
.brands('BZXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
18
|
+
.branded_channels('BWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
19
|
+
.channels.create(phone_number_sid: 'PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', phone_number: 'phone_number')
|
20
|
+
}.to raise_exception(Twilio::REST::TwilioError)
|
21
|
+
|
22
|
+
values = {'PhoneNumberSid' => 'PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', 'PhoneNumber' => 'phone_number', }
|
23
|
+
expect(
|
24
|
+
@holodeck.has_request?(Holodeck::Request.new(
|
25
|
+
method: 'post',
|
26
|
+
url: 'https://preview.twilio.com/TrustedComms/Businesses/BXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Brands/BZXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/BrandedChannels/BWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels',
|
27
|
+
data: values,
|
28
|
+
))).to eq(true)
|
29
|
+
end
|
30
|
+
|
31
|
+
it "receives create responses" do
|
32
|
+
@holodeck.mock(Twilio::Response.new(
|
33
|
+
201,
|
34
|
+
%q[
|
35
|
+
{
|
36
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
37
|
+
"business_sid": "BXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
38
|
+
"brand_sid": "BZaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
39
|
+
"branded_channel_sid": "BWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
40
|
+
"phone_number_sid": "PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
41
|
+
"phone_number": "+15000000000",
|
42
|
+
"url": "https://preview.twilio.com/TrustedComms/Businesses/BXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Brands/BZaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/BrandedChannels/BWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels"
|
43
|
+
}
|
44
|
+
]
|
45
|
+
))
|
46
|
+
|
47
|
+
actual = @client.preview.trusted_comms.businesses('BXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
48
|
+
.brands('BZXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
49
|
+
.branded_channels('BWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
50
|
+
.channels.create(phone_number_sid: 'PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', phone_number: 'phone_number')
|
51
|
+
|
52
|
+
expect(actual).to_not eq(nil)
|
53
|
+
end
|
54
|
+
end
|
@@ -0,0 +1,52 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# \ / _ _ _| _ _
|
4
|
+
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
|
+
# / /
|
6
|
+
#
|
7
|
+
# frozen_string_literal: true
|
8
|
+
|
9
|
+
require 'spec_helper.rb'
|
10
|
+
|
11
|
+
describe 'BrandedChannel' do
|
12
|
+
it "can fetch" do
|
13
|
+
@holodeck.mock(Twilio::Response.new(500, ''))
|
14
|
+
|
15
|
+
expect {
|
16
|
+
@client.preview.trusted_comms.businesses('BXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
17
|
+
.brands('BZXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
18
|
+
.branded_channels('BWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
19
|
+
}.to raise_exception(Twilio::REST::TwilioError)
|
20
|
+
|
21
|
+
values = {}
|
22
|
+
expect(
|
23
|
+
@holodeck.has_request?(Holodeck::Request.new(
|
24
|
+
method: 'get',
|
25
|
+
url: 'https://preview.twilio.com/TrustedComms/Businesses/BXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Brands/BZXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/BrandedChannels/BWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
26
|
+
))).to eq(true)
|
27
|
+
end
|
28
|
+
|
29
|
+
it "receives fetch responses" do
|
30
|
+
@holodeck.mock(Twilio::Response.new(
|
31
|
+
200,
|
32
|
+
%q[
|
33
|
+
{
|
34
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
35
|
+
"business_sid": "BXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
36
|
+
"brand_sid": "BZaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
37
|
+
"sid": "BWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
38
|
+
"links": {
|
39
|
+
"channels": "https://preview.twilio.com/TrustedComms/Businesses/BXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Brands/BZaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/BrandedChannels/BWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels"
|
40
|
+
},
|
41
|
+
"url": "https://preview.twilio.com/TrustedComms/Businesses/BXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Brands/BZaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/BrandedChannels/BWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
42
|
+
}
|
43
|
+
]
|
44
|
+
))
|
45
|
+
|
46
|
+
actual = @client.preview.trusted_comms.businesses('BXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
47
|
+
.brands('BZXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
48
|
+
.branded_channels('BWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
49
|
+
|
50
|
+
expect(actual).to_not eq(nil)
|
51
|
+
end
|
52
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# \ / _ _ _| _ _
|
4
|
+
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
|
+
# / /
|
6
|
+
#
|
7
|
+
# frozen_string_literal: true
|
8
|
+
|
9
|
+
require 'spec_helper.rb'
|
10
|
+
|
11
|
+
describe 'Brand' do
|
12
|
+
it "can fetch" do
|
13
|
+
@holodeck.mock(Twilio::Response.new(500, ''))
|
14
|
+
|
15
|
+
expect {
|
16
|
+
@client.preview.trusted_comms.businesses('BXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
17
|
+
.brands('BZXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
18
|
+
}.to raise_exception(Twilio::REST::TwilioError)
|
19
|
+
|
20
|
+
values = {}
|
21
|
+
expect(
|
22
|
+
@holodeck.has_request?(Holodeck::Request.new(
|
23
|
+
method: 'get',
|
24
|
+
url: 'https://preview.twilio.com/TrustedComms/Businesses/BXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Brands/BZXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
25
|
+
))).to eq(true)
|
26
|
+
end
|
27
|
+
|
28
|
+
it "receives fetch responses" do
|
29
|
+
@holodeck.mock(Twilio::Response.new(
|
30
|
+
200,
|
31
|
+
%q[
|
32
|
+
{
|
33
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
34
|
+
"business_sid": "BXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
35
|
+
"sid": "BZaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
36
|
+
"links": {
|
37
|
+
"branded_channels": "https://preview.twilio.com/TrustedComms/Businesses/BXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Brands/BZaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/BrandedChannels"
|
38
|
+
},
|
39
|
+
"url": "https://preview.twilio.com/TrustedComms/Businesses/BXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Brands/BZaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
40
|
+
}
|
41
|
+
]
|
42
|
+
))
|
43
|
+
|
44
|
+
actual = @client.preview.trusted_comms.businesses('BXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
45
|
+
.brands('BZXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
46
|
+
|
47
|
+
expect(actual).to_not eq(nil)
|
48
|
+
end
|
49
|
+
end
|