twilio 3.82.2 → 3.83.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.
- package/lib/rest/Oauth.d.ts +32 -0
- package/lib/rest/Oauth.js +79 -0
- package/lib/rest/Supersim.d.ts +2 -0
- package/lib/rest/Supersim.js +9 -0
- package/lib/rest/Twilio.d.ts +2 -0
- package/lib/rest/Twilio.js +14 -0
- package/lib/rest/api/v2010/account/call/userDefinedMessage.d.ts +107 -0
- package/lib/rest/api/v2010/account/call/userDefinedMessage.js +259 -0
- package/lib/rest/api/v2010/account/call/userDefinedMessageSubscription.d.ts +153 -0
- package/lib/rest/api/v2010/account/call/userDefinedMessageSubscription.js +407 -0
- package/lib/rest/api/v2010/account/call.d.ts +14 -0
- package/lib/rest/api/v2010/account/call.js +67 -0
- package/lib/rest/api/v2010/account/conference/participant.d.ts +2 -2
- package/lib/rest/api/v2010/account/conference/participant.js +6 -4
- package/lib/rest/api/v2010/account/message.d.ts +6 -0
- package/lib/rest/api/v2010/account/message.js +10 -1
- package/lib/rest/oauth/V1.d.ts +34 -0
- package/lib/rest/oauth/V1.js +80 -0
- package/lib/rest/oauth/v1/oauth.d.ts +115 -0
- package/lib/rest/oauth/v1/oauth.js +299 -0
- package/lib/rest/oauth/v1/openidDiscovery.d.ts +137 -0
- package/lib/rest/oauth/v1/openidDiscovery.js +329 -0
- package/lib/rest/oauth/v1/token.d.ts +115 -0
- package/lib/rest/oauth/v1/token.js +265 -0
- package/lib/rest/oauth/v1/userInfo.d.ts +123 -0
- package/lib/rest/oauth/v1/userInfo.js +308 -0
- package/lib/rest/proxy/v1/service/session/participant.d.ts +0 -2
- package/lib/rest/proxy/v1/service/session/participant.js +1 -6
- package/lib/rest/proxy/v1/service/session.d.ts +0 -4
- package/lib/rest/proxy/v1/service/session.js +2 -10
- package/lib/rest/supersim/V1.d.ts +3 -0
- package/lib/rest/supersim/V1.js +12 -0
- package/lib/rest/supersim/v1/settingsUpdate.d.ts +261 -0
- package/lib/rest/supersim/v1/settingsUpdate.js +466 -0
- package/lib/rest/taskrouter/v1/workspace/task/reservation.d.ts +6 -0
- package/lib/rest/taskrouter/v1/workspace/task/reservation.js +7 -0
- package/lib/rest/taskrouter/v1/workspace/taskQueue.d.ts +6 -0
- package/lib/rest/taskrouter/v1/workspace/taskQueue.js +4 -0
- package/lib/rest/taskrouter/v1/workspace/worker.d.ts +6 -0
- package/lib/rest/taskrouter/v1/workspace/worker.js +4 -0
- package/lib/rest/verify/v2/service/accessToken.d.ts +0 -12
- package/lib/rest/verify/v2/service/accessToken.js +0 -12
- package/lib/rest/verify/v2/service/entity/challenge/notification.d.ts +0 -9
- package/lib/rest/verify/v2/service/entity/challenge/notification.js +0 -9
- package/lib/rest/verify/v2/service/entity/challenge.d.ts +0 -12
- package/lib/rest/verify/v2/service/entity/challenge.js +0 -12
- package/lib/rest/verify/v2/service/entity/factor.d.ts +0 -12
- package/lib/rest/verify/v2/service/entity/factor.js +0 -12
- package/lib/rest/verify/v2/service/entity/newFactor.d.ts +0 -9
- package/lib/rest/verify/v2/service/entity/newFactor.js +0 -9
- package/lib/rest/verify/v2/service/entity.d.ts +0 -12
- package/lib/rest/verify/v2/service/entity.js +0 -12
- package/lib/rest/verify/v2/service/verification.d.ts +1 -1
- package/lib/rest/verify/v2/service/verification.js +2 -1
- package/lib/rest/verify/v2/service/webhook.d.ts +0 -12
- package/lib/rest/verify/v2/service/webhook.js +0 -12
- package/lib/rest/verify/v2/template.d.ts +2 -0
- package/lib/rest/verify/v2/template.js +2 -0
- package/lib/twiml/VoiceResponse.d.ts +7 -1
- package/lib/twiml/VoiceResponse.js +6 -0
- package/package.json +1 -1
|
@@ -97,6 +97,7 @@ WorkerList = function WorkerList(version, workspaceSid) {
|
|
|
97
97
|
* The friendly_name of the TaskQueue that the Workers to read are eligible for
|
|
98
98
|
* @param {string} [opts.taskQueueSid] -
|
|
99
99
|
* The SID of the TaskQueue that the Workers to read are eligible for
|
|
100
|
+
* @param {string} [opts.ordering] - Sorting parameter for Workers
|
|
100
101
|
* @param {number} [opts.limit] -
|
|
101
102
|
* Upper limit for the number of records to return.
|
|
102
103
|
* each() guarantees never to return more than limit.
|
|
@@ -200,6 +201,7 @@ WorkerList = function WorkerList(version, workspaceSid) {
|
|
|
200
201
|
* The friendly_name of the TaskQueue that the Workers to read are eligible for
|
|
201
202
|
* @param {string} [opts.taskQueueSid] -
|
|
202
203
|
* The SID of the TaskQueue that the Workers to read are eligible for
|
|
204
|
+
* @param {string} [opts.ordering] - Sorting parameter for Workers
|
|
203
205
|
* @param {number} [opts.limit] -
|
|
204
206
|
* Upper limit for the number of records to return.
|
|
205
207
|
* list() guarantees never to return more than limit.
|
|
@@ -274,6 +276,7 @@ WorkerList = function WorkerList(version, workspaceSid) {
|
|
|
274
276
|
* The friendly_name of the TaskQueue that the Workers to read are eligible for
|
|
275
277
|
* @param {string} [opts.taskQueueSid] -
|
|
276
278
|
* The SID of the TaskQueue that the Workers to read are eligible for
|
|
279
|
+
* @param {string} [opts.ordering] - Sorting parameter for Workers
|
|
277
280
|
* @param {string} [opts.pageToken] - PageToken provided by the API
|
|
278
281
|
* @param {number} [opts.pageNumber] -
|
|
279
282
|
* Page Number, this value is simply for client state
|
|
@@ -299,6 +302,7 @@ WorkerList = function WorkerList(version, workspaceSid) {
|
|
|
299
302
|
'TargetWorkersExpression': _.get(opts, 'targetWorkersExpression'),
|
|
300
303
|
'TaskQueueName': _.get(opts, 'taskQueueName'),
|
|
301
304
|
'TaskQueueSid': _.get(opts, 'taskQueueSid'),
|
|
305
|
+
'Ordering': _.get(opts, 'ordering'),
|
|
302
306
|
'PageToken': opts.pageToken,
|
|
303
307
|
'Page': opts.pageNumber,
|
|
304
308
|
'PageSize': opts.pageSize
|
|
@@ -15,9 +15,6 @@ type AccessTokenFactorTypes = 'push';
|
|
|
15
15
|
/**
|
|
16
16
|
* Initialize the AccessTokenList
|
|
17
17
|
*
|
|
18
|
-
* PLEASE NOTE that this class contains beta products that are subject to change.
|
|
19
|
-
* Use them with caution.
|
|
20
|
-
*
|
|
21
18
|
* @param version - Version of the resource
|
|
22
19
|
* @param serviceSid - Verify Service Sid.
|
|
23
20
|
*/
|
|
@@ -87,9 +84,6 @@ declare class AccessTokenContext {
|
|
|
87
84
|
/**
|
|
88
85
|
* Initialize the AccessTokenContext
|
|
89
86
|
*
|
|
90
|
-
* PLEASE NOTE that this class contains beta products that are subject to change.
|
|
91
|
-
* Use them with caution.
|
|
92
|
-
*
|
|
93
87
|
* @param version - Version of the resource
|
|
94
88
|
* @param serviceSid - Service Sid.
|
|
95
89
|
* @param sid - A string that uniquely identifies this Access Token.
|
|
@@ -113,9 +107,6 @@ declare class AccessTokenInstance extends SerializableClass {
|
|
|
113
107
|
/**
|
|
114
108
|
* Initialize the AccessTokenContext
|
|
115
109
|
*
|
|
116
|
-
* PLEASE NOTE that this class contains beta products that are subject to change.
|
|
117
|
-
* Use them with caution.
|
|
118
|
-
*
|
|
119
110
|
* @param version - Version of the resource
|
|
120
111
|
* @param payload - The instance payload
|
|
121
112
|
* @param serviceSid - Verify Service Sid.
|
|
@@ -151,9 +142,6 @@ declare class AccessTokenPage extends Page<V2, AccessTokenPayload, AccessTokenRe
|
|
|
151
142
|
/**
|
|
152
143
|
* Initialize the AccessTokenPage
|
|
153
144
|
*
|
|
154
|
-
* PLEASE NOTE that this class contains beta products that are subject to change.
|
|
155
|
-
* Use them with caution.
|
|
156
|
-
*
|
|
157
145
|
* @param version - Version of the resource
|
|
158
146
|
* @param response - Response from the API
|
|
159
147
|
* @param solution - Path solution
|
|
@@ -26,9 +26,6 @@ var AccessTokenContext;
|
|
|
26
26
|
/**
|
|
27
27
|
* Initialize the AccessTokenList
|
|
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.AccessTokenList
|
|
33
30
|
*
|
|
34
31
|
* @param {Twilio.Verify.V2} version - Version of the resource
|
|
@@ -155,9 +152,6 @@ AccessTokenList = function AccessTokenList(version, serviceSid) {
|
|
|
155
152
|
/**
|
|
156
153
|
* Initialize the AccessTokenPage
|
|
157
154
|
*
|
|
158
|
-
* PLEASE NOTE that this class contains beta products that are subject to change.
|
|
159
|
-
* Use them with caution.
|
|
160
|
-
*
|
|
161
155
|
* @constructor Twilio.Verify.V2.ServiceContext.AccessTokenPage
|
|
162
156
|
*
|
|
163
157
|
* @param {V2} version - Version of the resource
|
|
@@ -223,9 +217,6 @@ AccessTokenPage.prototype[util.inspect.custom] = function inspect(depth,
|
|
|
223
217
|
/**
|
|
224
218
|
* Initialize the AccessTokenContext
|
|
225
219
|
*
|
|
226
|
-
* PLEASE NOTE that this class contains beta products that are subject to change.
|
|
227
|
-
* Use them with caution.
|
|
228
|
-
*
|
|
229
220
|
* @constructor Twilio.Verify.V2.ServiceContext.AccessTokenInstance
|
|
230
221
|
*
|
|
231
222
|
* @property {string} sid - A string that uniquely identifies this Access Token.
|
|
@@ -328,9 +319,6 @@ AccessTokenInstance.prototype[util.inspect.custom] = function inspect(depth,
|
|
|
328
319
|
/**
|
|
329
320
|
* Initialize the AccessTokenContext
|
|
330
321
|
*
|
|
331
|
-
* PLEASE NOTE that this class contains beta products that are subject to change.
|
|
332
|
-
* Use them with caution.
|
|
333
|
-
*
|
|
334
322
|
* @constructor Twilio.Verify.V2.ServiceContext.AccessTokenContext
|
|
335
323
|
*
|
|
336
324
|
* @param {V2} version - Version of the resource
|
|
@@ -13,9 +13,6 @@ import { SerializableClass } from '../../../../../../interfaces';
|
|
|
13
13
|
/**
|
|
14
14
|
* Initialize the NotificationList
|
|
15
15
|
*
|
|
16
|
-
* PLEASE NOTE that this class contains beta products that are subject to change.
|
|
17
|
-
* Use them with caution.
|
|
18
|
-
*
|
|
19
16
|
* @param version - Version of the resource
|
|
20
17
|
* @param serviceSid - Service Sid.
|
|
21
18
|
* @param identity - Unique external identifier of the Entity
|
|
@@ -78,9 +75,6 @@ declare class NotificationInstance extends SerializableClass {
|
|
|
78
75
|
/**
|
|
79
76
|
* Initialize the NotificationContext
|
|
80
77
|
*
|
|
81
|
-
* PLEASE NOTE that this class contains beta products that are subject to change.
|
|
82
|
-
* Use them with caution.
|
|
83
|
-
*
|
|
84
78
|
* @param version - Version of the resource
|
|
85
79
|
* @param payload - The instance payload
|
|
86
80
|
* @param serviceSid - Service Sid.
|
|
@@ -109,9 +103,6 @@ declare class NotificationPage extends Page<V2, NotificationPayload, Notificatio
|
|
|
109
103
|
/**
|
|
110
104
|
* Initialize the NotificationPage
|
|
111
105
|
*
|
|
112
|
-
* PLEASE NOTE that this class contains beta products that are subject to change.
|
|
113
|
-
* Use them with caution.
|
|
114
|
-
*
|
|
115
106
|
* @param version - Version of the resource
|
|
116
107
|
* @param response - Response from the API
|
|
117
108
|
* @param solution - Path solution
|
|
@@ -25,9 +25,6 @@ var NotificationInstance;
|
|
|
25
25
|
/**
|
|
26
26
|
* Initialize the NotificationList
|
|
27
27
|
*
|
|
28
|
-
* PLEASE NOTE that this class contains beta products that are subject to change.
|
|
29
|
-
* Use them with caution.
|
|
30
|
-
*
|
|
31
28
|
* @constructor Twilio.Verify.V2.ServiceContext.EntityContext.ChallengeContext.NotificationList
|
|
32
29
|
*
|
|
33
30
|
* @param {Twilio.Verify.V2} version - Version of the resource
|
|
@@ -128,9 +125,6 @@ NotificationList = function NotificationList(version, serviceSid, identity,
|
|
|
128
125
|
/**
|
|
129
126
|
* Initialize the NotificationPage
|
|
130
127
|
*
|
|
131
|
-
* PLEASE NOTE that this class contains beta products that are subject to change.
|
|
132
|
-
* Use them with caution.
|
|
133
|
-
*
|
|
134
128
|
* @constructor Twilio.Verify.V2.ServiceContext.EntityContext.ChallengeContext.NotificationPage
|
|
135
129
|
*
|
|
136
130
|
* @param {V2} version - Version of the resource
|
|
@@ -202,9 +196,6 @@ NotificationPage.prototype[util.inspect.custom] = function inspect(depth,
|
|
|
202
196
|
/**
|
|
203
197
|
* Initialize the NotificationContext
|
|
204
198
|
*
|
|
205
|
-
* PLEASE NOTE that this class contains beta products that are subject to change.
|
|
206
|
-
* Use them with caution.
|
|
207
|
-
*
|
|
208
199
|
* @constructor Twilio.Verify.V2.ServiceContext.EntityContext.ChallengeContext.NotificationInstance
|
|
209
200
|
*
|
|
210
201
|
* @property {string} sid - A string that uniquely identifies this Notification.
|
|
@@ -23,9 +23,6 @@ type ChallengeListOrders = 'asc'|'desc';
|
|
|
23
23
|
/**
|
|
24
24
|
* Initialize the ChallengeList
|
|
25
25
|
*
|
|
26
|
-
* PLEASE NOTE that this class contains beta products that are subject to change.
|
|
27
|
-
* Use them with caution.
|
|
28
|
-
*
|
|
29
26
|
* @param version - Version of the resource
|
|
30
27
|
* @param serviceSid - Service Sid.
|
|
31
28
|
* @param identity - Unique external identifier of the Entity
|
|
@@ -293,9 +290,6 @@ declare class ChallengeContext {
|
|
|
293
290
|
/**
|
|
294
291
|
* Initialize the ChallengeContext
|
|
295
292
|
*
|
|
296
|
-
* PLEASE NOTE that this class contains beta products that are subject to change.
|
|
297
|
-
* Use them with caution.
|
|
298
|
-
*
|
|
299
293
|
* @param version - Version of the resource
|
|
300
294
|
* @param serviceSid - Service Sid.
|
|
301
295
|
* @param identity - Unique external identifier of the Entity
|
|
@@ -334,9 +328,6 @@ declare class ChallengeInstance extends SerializableClass {
|
|
|
334
328
|
/**
|
|
335
329
|
* Initialize the ChallengeContext
|
|
336
330
|
*
|
|
337
|
-
* PLEASE NOTE that this class contains beta products that are subject to change.
|
|
338
|
-
* Use them with caution.
|
|
339
|
-
*
|
|
340
331
|
* @param version - Version of the resource
|
|
341
332
|
* @param payload - The instance payload
|
|
342
333
|
* @param serviceSid - Service Sid.
|
|
@@ -398,9 +389,6 @@ declare class ChallengePage extends Page<V2, ChallengePayload, ChallengeResource
|
|
|
398
389
|
/**
|
|
399
390
|
* Initialize the ChallengePage
|
|
400
391
|
*
|
|
401
|
-
* PLEASE NOTE that this class contains beta products that are subject to change.
|
|
402
|
-
* Use them with caution.
|
|
403
|
-
*
|
|
404
392
|
* @param version - Version of the resource
|
|
405
393
|
* @param response - Response from the API
|
|
406
394
|
* @param solution - Path solution
|
|
@@ -29,9 +29,6 @@ var ChallengeContext;
|
|
|
29
29
|
/**
|
|
30
30
|
* Initialize the ChallengeList
|
|
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.EntityContext.ChallengeList
|
|
36
33
|
*
|
|
37
34
|
* @param {Twilio.Verify.V2} version - Version of the resource
|
|
@@ -425,9 +422,6 @@ ChallengeList = function ChallengeList(version, serviceSid, identity) {
|
|
|
425
422
|
/**
|
|
426
423
|
* Initialize the ChallengePage
|
|
427
424
|
*
|
|
428
|
-
* PLEASE NOTE that this class contains beta products that are subject to change.
|
|
429
|
-
* Use them with caution.
|
|
430
|
-
*
|
|
431
425
|
* @constructor Twilio.Verify.V2.ServiceContext.EntityContext.ChallengePage
|
|
432
426
|
*
|
|
433
427
|
* @param {V2} version - Version of the resource
|
|
@@ -498,9 +492,6 @@ ChallengePage.prototype[util.inspect.custom] = function inspect(depth, options)
|
|
|
498
492
|
/**
|
|
499
493
|
* Initialize the ChallengeContext
|
|
500
494
|
*
|
|
501
|
-
* PLEASE NOTE that this class contains beta products that are subject to change.
|
|
502
|
-
* Use them with caution.
|
|
503
|
-
*
|
|
504
495
|
* @constructor Twilio.Verify.V2.ServiceContext.EntityContext.ChallengeInstance
|
|
505
496
|
*
|
|
506
497
|
* @property {string} sid - A string that uniquely identifies this Challenge.
|
|
@@ -655,9 +646,6 @@ ChallengeInstance.prototype[util.inspect.custom] = function inspect(depth,
|
|
|
655
646
|
/**
|
|
656
647
|
* Initialize the ChallengeContext
|
|
657
648
|
*
|
|
658
|
-
* PLEASE NOTE that this class contains beta products that are subject to change.
|
|
659
|
-
* Use them with caution.
|
|
660
|
-
*
|
|
661
649
|
* @constructor Twilio.Verify.V2.ServiceContext.EntityContext.ChallengeContext
|
|
662
650
|
*
|
|
663
651
|
* @property {Twilio.Verify.V2.ServiceContext.EntityContext.ChallengeContext.NotificationList} notifications -
|
|
@@ -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 -
|
|
@@ -70,7 +70,7 @@ interface VerificationListInstance {
|
|
|
70
70
|
* @property rateLimits - The custom key-value pairs of Programmable Rate Limits.
|
|
71
71
|
* @property sendDigits - The digits to send after a phone call is answered
|
|
72
72
|
* @property templateCustomSubstitutions - The values of the special variables declared on the message template.
|
|
73
|
-
* @property templateSid - The verification template SMS
|
|
73
|
+
* @property templateSid - The verification template SMS or Voice message.
|
|
74
74
|
* @property to - The phone number or email to verify
|
|
75
75
|
*/
|
|
76
76
|
interface VerificationListInstanceCreateOptions {
|
|
@@ -81,7 +81,8 @@ VerificationList = function VerificationList(version, serviceSid) {
|
|
|
81
81
|
* Channel specific configuration in json format.
|
|
82
82
|
* @param {string} [opts.appHash] -
|
|
83
83
|
* Your App Hash to be appended at the end of an SMS.
|
|
84
|
-
* @param {string} [opts.templateSid] -
|
|
84
|
+
* @param {string} [opts.templateSid] -
|
|
85
|
+
* The verification template SMS or Voice message.
|
|
85
86
|
* @param {string} [opts.templateCustomSubstitutions] -
|
|
86
87
|
* The values of the special variables declared on the message template.
|
|
87
88
|
* @param {function} [callback] - Callback to handle processed record
|
|
@@ -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 - A list of channels that support the Template
|
|
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
|
|
|
@@ -372,6 +372,7 @@ declare namespace VoiceResponse {
|
|
|
372
372
|
*
|
|
373
373
|
* @property inboundAutocreation - Inbound autocreation
|
|
374
374
|
* @property inboundTimeout - Inbound timeout
|
|
375
|
+
* @property method - TwiML URL method
|
|
375
376
|
* @property record - Record
|
|
376
377
|
* @property recordingStatusCallback - Recording status callback URL
|
|
377
378
|
* @property recordingStatusCallbackEvent - Recording status callback events
|
|
@@ -382,10 +383,12 @@ declare namespace VoiceResponse {
|
|
|
382
383
|
* @property statusCallbackEvent - Events to call status callback URL
|
|
383
384
|
* @property statusCallbackMethod - Status callback URL method
|
|
384
385
|
* @property trim - Trim
|
|
386
|
+
* @property url - TwiML URL
|
|
385
387
|
*/
|
|
386
388
|
export interface ConversationAttributes {
|
|
387
389
|
inboundAutocreation?: boolean;
|
|
388
390
|
inboundTimeout?: number;
|
|
391
|
+
method?: string;
|
|
389
392
|
record?: ConversationRecord;
|
|
390
393
|
recordingStatusCallback?: string;
|
|
391
394
|
recordingStatusCallbackEvent?: ConversationRecordingEvent[];
|
|
@@ -396,6 +399,7 @@ declare namespace VoiceResponse {
|
|
|
396
399
|
statusCallbackEvent?: ConversationEvent[];
|
|
397
400
|
statusCallbackMethod?: string;
|
|
398
401
|
trim?: ConversationTrim;
|
|
402
|
+
url?: string;
|
|
399
403
|
}
|
|
400
404
|
|
|
401
405
|
/**
|
|
@@ -617,12 +621,14 @@ declare namespace VoiceResponse {
|
|
|
617
621
|
* @property cardType - Type of the credit card
|
|
618
622
|
* @property errorType - Type of error
|
|
619
623
|
* @property for_ - Name of the payment source data element
|
|
624
|
+
* @property requireMatchingInputs - Require customer to input requested information twice and verify matching.
|
|
620
625
|
*/
|
|
621
626
|
export interface PromptAttributes {
|
|
622
627
|
attempt?: number[];
|
|
623
628
|
cardType?: PromptCardType[];
|
|
624
629
|
errorType?: PromptErrorType[];
|
|
625
630
|
for_?: PromptFor;
|
|
631
|
+
requireMatchingInputs?: boolean;
|
|
626
632
|
}
|
|
627
633
|
|
|
628
634
|
/**
|