twilio-ruby 5.34.0 → 5.38.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +126 -0
  3. data/README.md +24 -3
  4. data/lib/twilio-ruby.rb +1 -1
  5. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +87 -87
  6. data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +14 -0
  7. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +47 -9
  8. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +71 -71
  9. data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +29 -29
  10. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +38 -3
  11. data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +12 -12
  12. data/lib/twilio-ruby/rest/autopilot.rb +6 -0
  13. data/lib/twilio-ruby/rest/autopilot/v1.rb +7 -0
  14. data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +0 -16
  15. data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +12 -3
  16. data/lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb +198 -0
  17. data/lib/twilio-ruby/rest/client.rb +35 -15
  18. data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +28 -3
  19. data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +27 -4
  20. data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +2 -1
  21. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +7 -0
  22. data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +6 -3
  23. data/lib/twilio-ruby/rest/monitor/v1/alert.rb +8 -8
  24. data/lib/twilio-ruby/rest/notify/v1/service.rb +20 -1
  25. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +26 -0
  26. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb +324 -0
  27. data/lib/twilio-ruby/rest/preview.rb +6 -0
  28. data/lib/twilio-ruby/rest/preview/trusted_comms.rb +7 -0
  29. data/lib/twilio-ruby/rest/preview/trusted_comms/brands_information.rb +193 -0
  30. data/lib/twilio-ruby/rest/preview/trusted_comms/business.rb +26 -0
  31. data/lib/twilio-ruby/rest/{autopilot/v1/assistant/export_assistant.rb → preview/trusted_comms/business/brand.rb} +88 -71
  32. data/lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel.rb +266 -0
  33. data/lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel/channel.rb +194 -0
  34. data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +7 -0
  35. data/lib/twilio-ruby/rest/supersim.rb +18 -0
  36. data/lib/twilio-ruby/rest/supersim/v1.rb +30 -0
  37. data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +63 -16
  38. data/lib/twilio-ruby/rest/supersim/v1/network.rb +315 -0
  39. data/lib/twilio-ruby/rest/{authy/v1/service.rb → supersim/v1/network_access_profile.rb} +95 -121
  40. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +352 -0
  41. data/lib/twilio-ruby/rest/verify.rb +9 -0
  42. data/lib/twilio-ruby/rest/verify/v2.rb +16 -0
  43. data/lib/twilio-ruby/rest/{authy/v1 → verify/v2}/form.rb +8 -8
  44. data/lib/twilio-ruby/rest/verify/v2/service.rb +74 -3
  45. data/lib/twilio-ruby/rest/{authy/v1 → verify/v2}/service/entity.rb +32 -8
  46. data/lib/twilio-ruby/rest/verify/v2/service/entity/access_token.rb +141 -0
  47. data/lib/twilio-ruby/rest/{authy/v1 → verify/v2}/service/entity/factor.rb +8 -8
  48. data/lib/twilio-ruby/rest/{authy/v1 → verify/v2}/service/entity/factor/challenge.rb +8 -8
  49. data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +3 -3
  50. data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +425 -0
  51. data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +8 -4
  52. data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +8 -4
  53. data/lib/twilio-ruby/rest/voice.rb +36 -0
  54. data/lib/twilio-ruby/rest/voice/v1.rb +64 -0
  55. data/lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb +513 -0
  56. data/lib/twilio-ruby/rest/voice/v1/connection_policy.rb +379 -0
  57. data/lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb +458 -0
  58. data/lib/twilio-ruby/rest/voice/v1/ip_record.rb +366 -0
  59. data/lib/twilio-ruby/rest/voice/v1/source_ip_mapping.rb +346 -0
  60. data/lib/twilio-ruby/util/configuration.rb +9 -1
  61. data/lib/twilio-ruby/version.rb +1 -1
  62. data/spec/integration/api/v2010/account/call_spec.rb +5 -5
  63. data/spec/integration/api/v2010/account/conference/participant_spec.rb +177 -0
  64. data/spec/integration/api/v2010/account/conference_spec.rb +42 -14
  65. data/spec/integration/api/v2010/account/outgoing_caller_id_spec.rb +8 -14
  66. data/spec/integration/api/v2010/account/sip/domain_spec.rb +12 -4
  67. data/spec/integration/api/v2010/account/token_spec.rb +23 -11
  68. data/spec/integration/api/v2010/account/validation_request_spec.rb +1 -1
  69. data/spec/integration/autopilot/v1/assistant/query_spec.rb +4 -4
  70. data/spec/integration/autopilot/v1/assistant_spec.rb +4 -8
  71. data/spec/integration/autopilot/v1/restore_assistant_spec.rb +53 -0
  72. data/spec/integration/conversations/v1/conversation/participant_spec.rb +7 -0
  73. data/spec/integration/conversations/v1/conversation_spec.rb +16 -0
  74. data/spec/integration/flex_api/v1/configuration_spec.rb +3 -0
  75. data/spec/integration/numbers/v2/regulatory_compliance/bundle/evaluation_spec.rb +623 -0
  76. data/spec/integration/numbers/v2/regulatory_compliance/bundle_spec.rb +4 -0
  77. data/spec/integration/preview/trusted_comms/brands_information_spec.rb +44 -0
  78. data/spec/integration/preview/trusted_comms/business/brand/branded_channel/channel_spec.rb +54 -0
  79. data/spec/integration/preview/trusted_comms/business/brand/branded_channel_spec.rb +52 -0
  80. data/spec/integration/preview/trusted_comms/business/brand_spec.rb +49 -0
  81. data/spec/integration/preview/trusted_comms/business_spec.rb +1 -0
  82. data/spec/integration/serverless/v1/service/environment/log_spec.rb +1 -0
  83. data/spec/integration/supersim/v1/fleet_spec.rb +16 -7
  84. data/spec/integration/supersim/v1/network_access_profile/network_access_profile_network_spec.rb +179 -0
  85. data/spec/integration/supersim/v1/network_access_profile_spec.rb +223 -0
  86. data/spec/integration/supersim/v1/network_spec.rb +139 -0
  87. data/spec/integration/supersim/v1/sim_spec.rb +78 -6
  88. data/spec/integration/trunking/v1/trunk/credential_list_spec.rb +13 -13
  89. data/spec/integration/trunking/v1/trunk/ip_access_control_list_spec.rb +23 -23
  90. data/spec/integration/trunking/v1/trunk/origination_url_spec.rb +28 -28
  91. data/spec/integration/trunking/v1/trunk/phone_number_spec.rb +17 -17
  92. data/spec/integration/trunking/v1/trunk_spec.rb +33 -33
  93. data/spec/integration/{authy/v1 → verify/v2}/form_spec.rb +4 -4
  94. data/spec/integration/verify/v2/service/entity/access_token_spec.rb +46 -0
  95. data/spec/integration/{authy/v1 → verify/v2}/service/entity/factor/challenge_spec.rb +73 -73
  96. data/spec/integration/{authy/v1 → verify/v2}/service/entity/factor_spec.rb +54 -54
  97. data/spec/integration/verify/v2/service/entity_spec.rb +204 -0
  98. data/spec/integration/verify/v2/service/webhook_spec.rb +262 -0
  99. data/spec/integration/verify/v2/service_spec.rb +32 -4
  100. data/spec/integration/voice/v1/byoc_trunk_spec.rb +250 -0
  101. data/spec/integration/voice/v1/connection_policy/connection_policy_target_spec.rb +246 -0
  102. data/spec/integration/voice/v1/connection_policy_spec.rb +226 -0
  103. data/spec/integration/voice/v1/ip_record_spec.rb +223 -0
  104. data/spec/integration/voice/v1/source_ip_mapping_spec.rb +219 -0
  105. data/spec/rest/client_spec.rb +168 -58
  106. data/spec/util/configuration_spec.rb +12 -0
  107. data/twilio-ruby.gemspec +1 -1
  108. metadata +63 -23
  109. data/lib/twilio-ruby/rest/authy.rb +0 -55
  110. data/lib/twilio-ruby/rest/authy/v1.rb +0 -59
  111. data/spec/integration/authy/v1/service/entity_spec.rb +0 -201
  112. data/spec/integration/authy/v1/service_spec.rb +0 -231
  113. data/spec/integration/autopilot/v1/assistant/export_assistant_spec.rb +0 -49
@@ -3,7 +3,7 @@
3
3
  module Twilio
4
4
  module Util
5
5
  class Configuration
6
- attr_accessor :account_sid, :auth_token, :http_client
6
+ attr_accessor :account_sid, :auth_token, :http_client, :region, :edge
7
7
 
8
8
  def account_sid=(value)
9
9
  @account_sid = value
@@ -16,6 +16,14 @@ module Twilio
16
16
  def http_client=(value)
17
17
  @http_client = value
18
18
  end
19
+
20
+ def region=(value)
21
+ @region = value
22
+ end
23
+
24
+ def edge=(value)
25
+ @edge = value
26
+ end
19
27
  end
20
28
  end
21
29
  end
@@ -1,3 +1,3 @@
1
1
  module Twilio
2
- VERSION = '5.34.0'
2
+ VERSION = '5.38.0'
3
3
  end
@@ -201,7 +201,7 @@ describe 'Call' do
201
201
  },
202
202
  "to": "+13051913581",
203
203
  "to_formatted": "(305) 191-3581",
204
- "trunk_sid": "TRdeadbeefdeadbeefdeadbeefdeadbeef",
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": "TRdeadbeefdeadbeefdeadbeefdeadbeef",
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": "TRdeadbeefdeadbeefdeadbeefdeadbeef",
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": "TRdeadbeefdeadbeefdeadbeefdeadbeef",
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": "TRdeadbeefdeadbeefdeadbeefdeadbeef",
400
+ "trunk_sid": "TKdeadbeefdeadbeefdeadbeefdeadbeef",
401
401
  "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa0.json",
402
402
  "queue_time": "1000"
403
403
  }
@@ -33,6 +33,37 @@ describe 'Participant' do
33
33
  {
34
34
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
35
35
  "call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
36
+ "label": null,
37
+ "conference_sid": "CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
38
+ "date_created": "Fri, 18 Feb 2011 21:07:19 +0000",
39
+ "date_updated": "Fri, 18 Feb 2011 21:07:19 +0000",
40
+ "end_conference_on_exit": false,
41
+ "muted": false,
42
+ "hold": false,
43
+ "status": "complete",
44
+ "start_conference_on_enter": true,
45
+ "coaching": true,
46
+ "call_sid_to_coach": "CAbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
47
+ "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
48
+ }
49
+ ]
50
+ ))
51
+
52
+ actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
53
+ .conferences('CFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
54
+ .participants('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
55
+
56
+ expect(actual).to_not eq(nil)
57
+ end
58
+
59
+ it "receives fetch_by_label responses" do
60
+ @holodeck.mock(Twilio::Response.new(
61
+ 200,
62
+ %q[
63
+ {
64
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
65
+ "call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
66
+ "label": "customer",
36
67
  "conference_sid": "CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
37
68
  "date_created": "Fri, 18 Feb 2011 21:07:19 +0000",
38
69
  "date_updated": "Fri, 18 Feb 2011 21:07:19 +0000",
@@ -79,6 +110,37 @@ describe 'Participant' do
79
110
  {
80
111
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
81
112
  "call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
113
+ "label": null,
114
+ "conference_sid": "CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
115
+ "date_created": "Fri, 18 Feb 2011 21:07:19 +0000",
116
+ "date_updated": "Fri, 18 Feb 2011 21:07:19 +0000",
117
+ "end_conference_on_exit": false,
118
+ "muted": true,
119
+ "hold": false,
120
+ "status": "complete",
121
+ "start_conference_on_enter": true,
122
+ "coaching": false,
123
+ "call_sid_to_coach": null,
124
+ "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
125
+ }
126
+ ]
127
+ ))
128
+
129
+ actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
130
+ .conferences('CFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
131
+ .participants('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
132
+
133
+ expect(actual).to_not eq(nil)
134
+ end
135
+
136
+ it "receives mute_participant_by_label responses" do
137
+ @holodeck.mock(Twilio::Response.new(
138
+ 200,
139
+ %q[
140
+ {
141
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
142
+ "call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
143
+ "label": "customer",
82
144
  "conference_sid": "CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
83
145
  "date_created": "Fri, 18 Feb 2011 21:07:19 +0000",
84
146
  "date_updated": "Fri, 18 Feb 2011 21:07:19 +0000",
@@ -108,6 +170,37 @@ describe 'Participant' do
108
170
  {
109
171
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
110
172
  "call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
173
+ "label": null,
174
+ "conference_sid": "CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
175
+ "date_created": "Fri, 18 Feb 2011 21:07:19 +0000",
176
+ "date_updated": "Fri, 18 Feb 2011 21:07:19 +0000",
177
+ "end_conference_on_exit": false,
178
+ "muted": false,
179
+ "hold": false,
180
+ "status": "complete",
181
+ "start_conference_on_enter": true,
182
+ "coaching": true,
183
+ "call_sid_to_coach": "CAbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
184
+ "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
185
+ }
186
+ ]
187
+ ))
188
+
189
+ actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
190
+ .conferences('CFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
191
+ .participants('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
192
+
193
+ expect(actual).to_not eq(nil)
194
+ end
195
+
196
+ it "receives modify_participant_by_label responses" do
197
+ @holodeck.mock(Twilio::Response.new(
198
+ 200,
199
+ %q[
200
+ {
201
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
202
+ "call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
203
+ "label": "customer",
111
204
  "conference_sid": "CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
112
205
  "date_created": "Fri, 18 Feb 2011 21:07:19 +0000",
113
206
  "date_updated": "Fri, 18 Feb 2011 21:07:19 +0000",
@@ -155,6 +248,7 @@ describe 'Participant' do
155
248
  {
156
249
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
157
250
  "call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
251
+ "label": "customer",
158
252
  "conference_sid": "CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
159
253
  "date_created": "Fri, 18 Feb 2011 21:07:19 +0000",
160
254
  "date_updated": "Fri, 18 Feb 2011 21:07:19 +0000",
@@ -184,6 +278,7 @@ describe 'Participant' do
184
278
  {
185
279
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
186
280
  "call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
281
+ "label": "customer",
187
282
  "conference_sid": "CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
188
283
  "date_created": "Fri, 18 Feb 2011 21:07:19 +0000",
189
284
  "date_updated": "Fri, 18 Feb 2011 21:07:19 +0000",
@@ -213,6 +308,7 @@ describe 'Participant' do
213
308
  {
214
309
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
215
310
  "call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
311
+ "label": null,
216
312
  "conference_sid": "CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
217
313
  "date_created": "Fri, 18 Feb 2011 21:07:19 +0000",
218
314
  "date_updated": "Fri, 18 Feb 2011 21:07:19 +0000",
@@ -242,6 +338,37 @@ describe 'Participant' do
242
338
  {
243
339
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
244
340
  "call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
341
+ "label": null,
342
+ "conference_sid": "CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
343
+ "date_created": "Fri, 18 Feb 2011 21:07:19 +0000",
344
+ "date_updated": "Fri, 18 Feb 2011 21:07:19 +0000",
345
+ "end_conference_on_exit": false,
346
+ "muted": false,
347
+ "hold": false,
348
+ "status": "complete",
349
+ "start_conference_on_enter": true,
350
+ "coaching": false,
351
+ "call_sid_to_coach": null,
352
+ "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
353
+ }
354
+ ]
355
+ ))
356
+
357
+ actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
358
+ .conferences('CFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
359
+ .participants.create(from: '+15017122661', to: '+15558675310')
360
+
361
+ expect(actual).to_not eq(nil)
362
+ end
363
+
364
+ it "receives create_with_friendly_name_jitter_buffer_size responses" do
365
+ @holodeck.mock(Twilio::Response.new(
366
+ 201,
367
+ %q[
368
+ {
369
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
370
+ "call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
371
+ "label": null,
245
372
  "conference_sid": "CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
246
373
  "date_created": "Fri, 18 Feb 2011 21:07:19 +0000",
247
374
  "date_updated": "Fri, 18 Feb 2011 21:07:19 +0000",
@@ -265,6 +392,36 @@ describe 'Participant' do
265
392
  end
266
393
 
267
394
  it "receives create_with_friendly_name_byoc responses" do
395
+ @holodeck.mock(Twilio::Response.new(
396
+ 201,
397
+ %q[
398
+ {
399
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
400
+ "call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
401
+ "label": null,
402
+ "conference_sid": "CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
403
+ "date_created": "Fri, 18 Feb 2011 21:07:19 +0000",
404
+ "date_updated": "Fri, 18 Feb 2011 21:07:19 +0000",
405
+ "end_conference_on_exit": false,
406
+ "muted": false,
407
+ "hold": false,
408
+ "status": "complete",
409
+ "start_conference_on_enter": true,
410
+ "coaching": false,
411
+ "call_sid_to_coach": null,
412
+ "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
413
+ }
414
+ ]
415
+ ))
416
+
417
+ actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
418
+ .conferences('CFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
419
+ .participants.create(from: '+15017122661', to: '+15558675310')
420
+
421
+ expect(actual).to_not eq(nil)
422
+ end
423
+
424
+ it "receives create_with_friendly_name_caller_id responses" do
268
425
  @holodeck.mock(Twilio::Response.new(
269
426
  201,
270
427
  %q[
@@ -281,6 +438,7 @@ describe 'Participant' do
281
438
  "start_conference_on_enter": true,
282
439
  "coaching": false,
283
440
  "call_sid_to_coach": null,
441
+ "label": null,
284
442
  "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
285
443
  }
286
444
  ]
@@ -323,6 +481,19 @@ describe 'Participant' do
323
481
  expect(actual).to eq(true)
324
482
  end
325
483
 
484
+ it "receives delete_by_label responses" do
485
+ @holodeck.mock(Twilio::Response.new(
486
+ 204,
487
+ nil,
488
+ ))
489
+
490
+ actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
491
+ .conferences('CFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
492
+ .participants('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
493
+
494
+ expect(actual).to eq(true)
495
+ end
496
+
326
497
  it "can read" do
327
498
  @holodeck.mock(Twilio::Response.new(500, ''))
328
499
 
@@ -374,6 +545,7 @@ describe 'Participant' do
374
545
  {
375
546
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
376
547
  "call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
548
+ "label": null,
377
549
  "conference_sid": "CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
378
550
  "date_created": "Sat, 19 Feb 2011 21:07:19 +0000",
379
551
  "date_updated": "Sat, 19 Feb 2011 21:07:19 +0000",
@@ -389,6 +561,7 @@ describe 'Participant' do
389
561
  {
390
562
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
391
563
  "call_sid": "CAbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
564
+ "label": null,
392
565
  "conference_sid": "CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
393
566
  "date_created": "Fri, 18 Feb 2011 21:07:19 +0000",
394
567
  "date_updated": "Fri, 18 Feb 2011 21:07:19 +0000",
@@ -430,6 +603,7 @@ describe 'Participant' do
430
603
  {
431
604
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
432
605
  "call_sid": "CAcccccccccccccccccccccccccccccccc",
606
+ "label": null,
433
607
  "conference_sid": "CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
434
608
  "date_created": "Thu, 17 Feb 2011 21:07:19 +0000",
435
609
  "date_updated": "Thu, 17 Feb 2011 21:07:19 +0000",
@@ -445,6 +619,7 @@ describe 'Participant' do
445
619
  {
446
620
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
447
621
  "call_sid": "CAdddddddddddddddddddddddddddddddd",
622
+ "label": null,
448
623
  "conference_sid": "CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
449
624
  "date_created": "Wed, 16 Feb 2011 21:07:19 +0000",
450
625
  "date_updated": "Wed, 16 Feb 2011 21:07:19 +0000",
@@ -486,6 +661,7 @@ describe 'Participant' do
486
661
  {
487
662
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
488
663
  "call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
664
+ "label": null,
489
665
  "conference_sid": "CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
490
666
  "date_created": "Sat, 19 Feb 2011 21:07:19 +0000",
491
667
  "date_updated": "Sat, 19 Feb 2011 21:07:19 +0000",
@@ -501,6 +677,7 @@ describe 'Participant' do
501
677
  {
502
678
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
503
679
  "call_sid": "CAbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
680
+ "label": null,
504
681
  "conference_sid": "CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
505
682
  "date_created": "Fri, 18 Feb 2011 21:07:19 +0000",
506
683
  "date_updated": "Fri, 18 Feb 2011 21:07:19 +0000",
@@ -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
  ))