twilio 3.82.2 → 3.83.0

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.
Files changed (43) hide show
  1. package/lib/rest/Oauth.d.ts +32 -0
  2. package/lib/rest/Oauth.js +79 -0
  3. package/lib/rest/Supersim.d.ts +2 -0
  4. package/lib/rest/Supersim.js +9 -0
  5. package/lib/rest/Twilio.d.ts +2 -0
  6. package/lib/rest/Twilio.js +14 -0
  7. package/lib/rest/api/v2010/account/conference/participant.d.ts +2 -2
  8. package/lib/rest/api/v2010/account/conference/participant.js +6 -4
  9. package/lib/rest/api/v2010/account/message.d.ts +2 -0
  10. package/lib/rest/api/v2010/account/message.js +3 -0
  11. package/lib/rest/oauth/V1.d.ts +34 -0
  12. package/lib/rest/oauth/V1.js +80 -0
  13. package/lib/rest/oauth/v1/oauth.d.ts +115 -0
  14. package/lib/rest/oauth/v1/oauth.js +299 -0
  15. package/lib/rest/oauth/v1/openidDiscovery.d.ts +137 -0
  16. package/lib/rest/oauth/v1/openidDiscovery.js +329 -0
  17. package/lib/rest/oauth/v1/token.d.ts +115 -0
  18. package/lib/rest/oauth/v1/token.js +265 -0
  19. package/lib/rest/oauth/v1/userInfo.d.ts +123 -0
  20. package/lib/rest/oauth/v1/userInfo.js +308 -0
  21. package/lib/rest/supersim/V1.d.ts +3 -0
  22. package/lib/rest/supersim/V1.js +12 -0
  23. package/lib/rest/supersim/v1/settingsUpdate.d.ts +261 -0
  24. package/lib/rest/supersim/v1/settingsUpdate.js +466 -0
  25. package/lib/rest/verify/v2/service/accessToken.d.ts +0 -12
  26. package/lib/rest/verify/v2/service/accessToken.js +0 -12
  27. package/lib/rest/verify/v2/service/entity/challenge/notification.d.ts +0 -9
  28. package/lib/rest/verify/v2/service/entity/challenge/notification.js +0 -9
  29. package/lib/rest/verify/v2/service/entity/challenge.d.ts +0 -12
  30. package/lib/rest/verify/v2/service/entity/challenge.js +0 -12
  31. package/lib/rest/verify/v2/service/entity/factor.d.ts +0 -12
  32. package/lib/rest/verify/v2/service/entity/factor.js +0 -12
  33. package/lib/rest/verify/v2/service/entity/newFactor.d.ts +0 -9
  34. package/lib/rest/verify/v2/service/entity/newFactor.js +0 -9
  35. package/lib/rest/verify/v2/service/entity.d.ts +0 -12
  36. package/lib/rest/verify/v2/service/entity.js +0 -12
  37. package/lib/rest/verify/v2/service/webhook.d.ts +0 -12
  38. package/lib/rest/verify/v2/service/webhook.js +0 -12
  39. package/lib/rest/verify/v2/template.d.ts +2 -0
  40. package/lib/rest/verify/v2/template.js +2 -0
  41. package/lib/twiml/VoiceResponse.d.ts +3 -1
  42. package/lib/twiml/VoiceResponse.js +4 -0
  43. package/package.json +1 -1
@@ -21,9 +21,6 @@ type FactorTotpAlgorithms = 'sha1'|'sha256'|'sha512';
21
21
  /**
22
22
  * Initialize the FactorList
23
23
  *
24
- * PLEASE NOTE that this class contains beta products that are subject to change.
25
- * Use them with caution.
26
- *
27
24
  * @param version - Version of the resource
28
25
  * @param serviceSid - Service Sid.
29
26
  * @param identity - Unique external identifier of the Entity
@@ -256,9 +253,6 @@ declare class FactorContext {
256
253
  /**
257
254
  * Initialize the FactorContext
258
255
  *
259
- * PLEASE NOTE that this class contains beta products that are subject to change.
260
- * Use them with caution.
261
- *
262
256
  * @param version - Version of the resource
263
257
  * @param serviceSid - Service Sid.
264
258
  * @param identity - Unique external identifier of the Entity
@@ -302,9 +296,6 @@ declare class FactorInstance extends SerializableClass {
302
296
  /**
303
297
  * Initialize the FactorContext
304
298
  *
305
- * PLEASE NOTE that this class contains beta products that are subject to change.
306
- * Use them with caution.
307
- *
308
299
  * @param version - Version of the resource
309
300
  * @param payload - The instance payload
310
301
  * @param serviceSid - Service Sid.
@@ -363,9 +354,6 @@ declare class FactorPage extends Page<V2, FactorPayload, FactorResource, FactorI
363
354
  /**
364
355
  * Initialize the FactorPage
365
356
  *
366
- * PLEASE NOTE that this class contains beta products that are subject to change.
367
- * Use them with caution.
368
- *
369
357
  * @param version - Version of the resource
370
358
  * @param response - Response from the API
371
359
  * @param solution - Path solution
@@ -26,9 +26,6 @@ var FactorContext;
26
26
  /**
27
27
  * Initialize the FactorList
28
28
  *
29
- * PLEASE NOTE that this class contains beta products that are subject to change.
30
- * Use them with caution.
31
- *
32
29
  * @constructor Twilio.Verify.V2.ServiceContext.EntityContext.FactorList
33
30
  *
34
31
  * @param {Twilio.Verify.V2} version - Version of the resource
@@ -341,9 +338,6 @@ FactorList = function FactorList(version, serviceSid, identity) {
341
338
  /**
342
339
  * Initialize the FactorPage
343
340
  *
344
- * PLEASE NOTE that this class contains beta products that are subject to change.
345
- * Use them with caution.
346
- *
347
341
  * @constructor Twilio.Verify.V2.ServiceContext.EntityContext.FactorPage
348
342
  *
349
343
  * @param {V2} version - Version of the resource
@@ -413,9 +407,6 @@ FactorPage.prototype[util.inspect.custom] = function inspect(depth, options) {
413
407
  /**
414
408
  * Initialize the FactorContext
415
409
  *
416
- * PLEASE NOTE that this class contains beta products that are subject to change.
417
- * Use them with caution.
418
- *
419
410
  * @constructor Twilio.Verify.V2.ServiceContext.EntityContext.FactorInstance
420
411
  *
421
412
  * @property {string} sid - A string that uniquely identifies this Factor.
@@ -575,9 +566,6 @@ FactorInstance.prototype[util.inspect.custom] = function inspect(depth, options)
575
566
  /**
576
567
  * Initialize the FactorContext
577
568
  *
578
- * PLEASE NOTE that this class contains beta products that are subject to change.
579
- * Use them with caution.
580
- *
581
569
  * @constructor Twilio.Verify.V2.ServiceContext.EntityContext.FactorContext
582
570
  *
583
571
  * @param {V2} version - Version of the resource
@@ -21,9 +21,6 @@ type NewFactorTotpAlgorithms = 'sha1'|'sha256'|'sha512';
21
21
  /**
22
22
  * Initialize the NewFactorList
23
23
  *
24
- * PLEASE NOTE that this class contains beta products that are subject to change.
25
- * Use them with caution.
26
- *
27
24
  * @param version - Version of the resource
28
25
  * @param serviceSid - Service Sid.
29
26
  * @param identity - Unique external identifier of the Entity
@@ -113,9 +110,6 @@ declare class NewFactorInstance extends SerializableClass {
113
110
  /**
114
111
  * Initialize the NewFactorContext
115
112
  *
116
- * PLEASE NOTE that this class contains beta products that are subject to change.
117
- * Use them with caution.
118
- *
119
113
  * @param version - Version of the resource
120
114
  * @param payload - The instance payload
121
115
  * @param serviceSid - Service Sid.
@@ -148,9 +142,6 @@ declare class NewFactorPage extends Page<V2, NewFactorPayload, NewFactorResource
148
142
  /**
149
143
  * Initialize the NewFactorPage
150
144
  *
151
- * PLEASE NOTE that this class contains beta products that are subject to change.
152
- * Use them with caution.
153
- *
154
145
  * @param version - Version of the resource
155
146
  * @param response - Response from the API
156
147
  * @param solution - Path solution
@@ -27,9 +27,6 @@ var NewFactorInstance;
27
27
  /**
28
28
  * Initialize the NewFactorList
29
29
  *
30
- * PLEASE NOTE that this class contains beta products that are subject to change.
31
- * Use them with caution.
32
- *
33
30
  * @constructor Twilio.Verify.V2.ServiceContext.EntityContext.NewFactorList
34
31
  *
35
32
  * @param {Twilio.Verify.V2} version - Version of the resource
@@ -164,9 +161,6 @@ NewFactorList = function NewFactorList(version, serviceSid, identity) {
164
161
  /**
165
162
  * Initialize the NewFactorPage
166
163
  *
167
- * PLEASE NOTE that this class contains beta products that are subject to change.
168
- * Use them with caution.
169
- *
170
164
  * @constructor Twilio.Verify.V2.ServiceContext.EntityContext.NewFactorPage
171
165
  *
172
166
  * @param {V2} version - Version of the resource
@@ -237,9 +231,6 @@ NewFactorPage.prototype[util.inspect.custom] = function inspect(depth, options)
237
231
  /**
238
232
  * Initialize the NewFactorContext
239
233
  *
240
- * PLEASE NOTE that this class contains beta products that are subject to change.
241
- * Use them with caution.
242
- *
243
234
  * @constructor Twilio.Verify.V2.ServiceContext.EntityContext.NewFactorInstance
244
235
  *
245
236
  * @property {string} sid - A string that uniquely identifies this Factor.
@@ -19,9 +19,6 @@ import { SerializableClass } from '../../../../interfaces';
19
19
  /**
20
20
  * Initialize the EntityList
21
21
  *
22
- * PLEASE NOTE that this class contains beta products that are subject to change.
23
- * Use them with caution.
24
- *
25
22
  * @param version - Version of the resource
26
23
  * @param serviceSid - Service Sid.
27
24
  */
@@ -236,9 +233,6 @@ declare class EntityContext {
236
233
  /**
237
234
  * Initialize the EntityContext
238
235
  *
239
- * PLEASE NOTE that this class contains beta products that are subject to change.
240
- * Use them with caution.
241
- *
242
236
  * @param version - Version of the resource
243
237
  * @param serviceSid - Service Sid.
244
238
  * @param identity - Unique external identifier of the Entity
@@ -271,9 +265,6 @@ declare class EntityInstance extends SerializableClass {
271
265
  /**
272
266
  * Initialize the EntityContext
273
267
  *
274
- * PLEASE NOTE that this class contains beta products that are subject to change.
275
- * Use them with caution.
276
- *
277
268
  * @param version - Version of the resource
278
269
  * @param payload - The instance payload
279
270
  * @param serviceSid - Service Sid.
@@ -325,9 +316,6 @@ declare class EntityPage extends Page<V2, EntityPayload, EntityResource, EntityI
325
316
  /**
326
317
  * Initialize the EntityPage
327
318
  *
328
- * PLEASE NOTE that this class contains beta products that are subject to change.
329
- * Use them with caution.
330
- *
331
319
  * @param version - Version of the resource
332
320
  * @param response - Response from the API
333
321
  * @param solution - Path solution
@@ -29,9 +29,6 @@ var EntityContext;
29
29
  /**
30
30
  * Initialize the EntityList
31
31
  *
32
- * PLEASE NOTE that this class contains beta products that are subject to change.
33
- * Use them with caution.
34
- *
35
32
  * @constructor Twilio.Verify.V2.ServiceContext.EntityList
36
33
  *
37
34
  * @param {Twilio.Verify.V2} version - Version of the resource
@@ -390,9 +387,6 @@ EntityList = function EntityList(version, serviceSid) {
390
387
  /**
391
388
  * Initialize the EntityPage
392
389
  *
393
- * PLEASE NOTE that this class contains beta products that are subject to change.
394
- * Use them with caution.
395
- *
396
390
  * @constructor Twilio.Verify.V2.ServiceContext.EntityPage
397
391
  *
398
392
  * @param {V2} version - Version of the resource
@@ -457,9 +451,6 @@ EntityPage.prototype[util.inspect.custom] = function inspect(depth, options) {
457
451
  /**
458
452
  * Initialize the EntityContext
459
453
  *
460
- * PLEASE NOTE that this class contains beta products that are subject to change.
461
- * Use them with caution.
462
- *
463
454
  * @constructor Twilio.Verify.V2.ServiceContext.EntityInstance
464
455
  *
465
456
  * @property {string} sid - A string that uniquely identifies this Entity.
@@ -615,9 +606,6 @@ EntityInstance.prototype[util.inspect.custom] = function inspect(depth, options)
615
606
  /**
616
607
  * Initialize the EntityContext
617
608
  *
618
- * PLEASE NOTE that this class contains beta products that are subject to change.
619
- * Use them with caution.
620
- *
621
609
  * @constructor Twilio.Verify.V2.ServiceContext.EntityContext
622
610
  *
623
611
  * @property {Twilio.Verify.V2.ServiceContext.EntityContext.FactorList} factors -
@@ -19,9 +19,6 @@ type WebhookVersion = 'v1'|'v2';
19
19
  /**
20
20
  * Initialize the WebhookList
21
21
  *
22
- * PLEASE NOTE that this class contains beta products that are subject to change.
23
- * Use them with caution.
24
- *
25
22
  * @param version - Version of the resource
26
23
  * @param serviceSid - Service Sid.
27
24
  */
@@ -265,9 +262,6 @@ declare class WebhookContext {
265
262
  /**
266
263
  * Initialize the WebhookContext
267
264
  *
268
- * PLEASE NOTE that this class contains beta products that are subject to change.
269
- * Use them with caution.
270
- *
271
265
  * @param version - Version of the resource
272
266
  * @param serviceSid - Service Sid.
273
267
  * @param sid - The unique string that identifies the resource to fetch
@@ -310,9 +304,6 @@ declare class WebhookInstance extends SerializableClass {
310
304
  /**
311
305
  * Initialize the WebhookContext
312
306
  *
313
- * PLEASE NOTE that this class contains beta products that are subject to change.
314
- * Use them with caution.
315
- *
316
307
  * @param version - Version of the resource
317
308
  * @param payload - The instance payload
318
309
  * @param serviceSid - Service Sid.
@@ -369,9 +360,6 @@ declare class WebhookPage extends Page<V2, WebhookPayload, WebhookResource, Webh
369
360
  /**
370
361
  * Initialize the WebhookPage
371
362
  *
372
- * PLEASE NOTE that this class contains beta products that are subject to change.
373
- * Use them with caution.
374
- *
375
363
  * @param version - Version of the resource
376
364
  * @param response - Response from the API
377
365
  * @param solution - Path solution
@@ -27,9 +27,6 @@ var WebhookContext;
27
27
  /**
28
28
  * Initialize the WebhookList
29
29
  *
30
- * PLEASE NOTE that this class contains beta products that are subject to change.
31
- * Use them with caution.
32
- *
33
30
  * @constructor Twilio.Verify.V2.ServiceContext.WebhookList
34
31
  *
35
32
  * @param {Twilio.Verify.V2} version - Version of the resource
@@ -406,9 +403,6 @@ WebhookList = function WebhookList(version, serviceSid) {
406
403
  /**
407
404
  * Initialize the WebhookPage
408
405
  *
409
- * PLEASE NOTE that this class contains beta products that are subject to change.
410
- * Use them with caution.
411
- *
412
406
  * @constructor Twilio.Verify.V2.ServiceContext.WebhookPage
413
407
  *
414
408
  * @param {V2} version - Version of the resource
@@ -473,9 +467,6 @@ WebhookPage.prototype[util.inspect.custom] = function inspect(depth, options) {
473
467
  /**
474
468
  * Initialize the WebhookContext
475
469
  *
476
- * PLEASE NOTE that this class contains beta products that are subject to change.
477
- * Use them with caution.
478
- *
479
470
  * @constructor Twilio.Verify.V2.ServiceContext.WebhookInstance
480
471
  *
481
472
  * @property {string} sid - The unique string that identifies the resource
@@ -621,9 +612,6 @@ WebhookInstance.prototype[util.inspect.custom] = function inspect(depth,
621
612
  /**
622
613
  * Initialize the WebhookContext
623
614
  *
624
- * PLEASE NOTE that this class contains beta products that are subject to change.
625
- * Use them with caution.
626
- *
627
615
  * @constructor Twilio.Verify.V2.ServiceContext.WebhookContext
628
616
  *
629
617
  * @param {V2} version - Version of the resource
@@ -188,6 +188,7 @@ interface TemplatePayload extends TemplateResource, Page.TwilioResponsePayload {
188
188
 
189
189
  interface TemplateResource {
190
190
  account_sid: string;
191
+ channels: string[];
191
192
  friendly_name: string;
192
193
  sid: string;
193
194
  translations: object;
@@ -207,6 +208,7 @@ declare class TemplateInstance extends SerializableClass {
207
208
  constructor(version: V2, payload: TemplatePayload);
208
209
 
209
210
  accountSid: string;
211
+ channels: string[];
210
212
  friendlyName: string;
211
213
  sid: string;
212
214
  /**
@@ -390,6 +390,7 @@ TemplatePage.prototype[util.inspect.custom] = function inspect(depth, options) {
390
390
  * @property {string} sid - A string that uniquely identifies this Template
391
391
  * @property {string} accountSid - Account Sid
392
392
  * @property {string} friendlyName - A string to describe the verification template
393
+ * @property {string} channels - The channels
393
394
  * @property {object} translations - Object with the template translations.
394
395
  *
395
396
  * @param {V2} version - Version of the resource
@@ -403,6 +404,7 @@ TemplateInstance = function TemplateInstance(version, payload) {
403
404
  this.sid = payload.sid; // jshint ignore:line
404
405
  this.accountSid = payload.account_sid; // jshint ignore:line
405
406
  this.friendlyName = payload.friendly_name; // jshint ignore:line
407
+ this.channels = payload.channels; // jshint ignore:line
406
408
  this.translations = payload.translations; // jshint ignore:line
407
409
 
408
410
  // Context
@@ -247,7 +247,7 @@ declare namespace VoiceResponse {
247
247
 
248
248
  type PromptCardType = 'visa'|'mastercard'|'amex'|'maestro'|'discover'|'optima'|'jcb'|'diners-club'|'enroute';
249
249
 
250
- type PromptErrorType = 'timeout'|'invalid-card-number'|'invalid-card-type'|'invalid-date'|'invalid-security-code'|'internal-error';
250
+ type PromptErrorType = 'timeout'|'invalid-card-number'|'invalid-card-type'|'invalid-date'|'invalid-security-code'|'internal-error'|'input-matching-failed';
251
251
 
252
252
  type PromptFor = 'payment-card-number'|'expiration-date'|'security-code'|'postal-code'|'payment-processing'|'bank-account-number'|'bank-routing-number';
253
253
 
@@ -617,12 +617,14 @@ declare namespace VoiceResponse {
617
617
  * @property cardType - Type of the credit card
618
618
  * @property errorType - Type of error
619
619
  * @property for_ - Name of the payment source data element
620
+ * @property requireMatchingInputs - Require customer to input requested information twice and verify matching.
620
621
  */
621
622
  export interface PromptAttributes {
622
623
  attempt?: number[];
623
624
  cardType?: PromptCardType[];
624
625
  errorType?: PromptErrorType[];
625
626
  for_?: PromptFor;
627
+ requireMatchingInputs?: boolean;
626
628
  }
627
629
 
628
630
  /**
@@ -417,6 +417,8 @@ VoiceResponse.prototype.pay = function pay(attributes) {
417
417
  * @param {prompt.error_type} [attributes.errorType] - Type of error
418
418
  * @param {prompt.card_type} [attributes.cardType] - Type of the credit card
419
419
  * @param {number} [attributes.attempt] - Current attempt count
420
+ * @param {boolean} [attributes.requireMatchingInputs] -
421
+ * Require customer to input requested information twice and verify matching.
420
422
  *
421
423
  * @returns Prompt
422
424
  */
@@ -3594,6 +3596,8 @@ Pay.prototype.constructor = Pay;
3594
3596
  * @param {prompt.error_type} [attributes.errorType] - Type of error
3595
3597
  * @param {prompt.card_type} [attributes.cardType] - Type of the credit card
3596
3598
  * @param {number} [attributes.attempt] - Current attempt count
3599
+ * @param {boolean} [attributes.requireMatchingInputs] -
3600
+ * Require customer to input requested information twice and verify matching.
3597
3601
  *
3598
3602
  * @returns Prompt
3599
3603
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "twilio",
3
3
  "description": "A Twilio helper library",
4
- "version": "3.82.2",
4
+ "version": "3.83.0",
5
5
  "author": "API Team <api@twilio.com>",
6
6
  "contributors": [
7
7
  {