twilio 3.80.0 → 3.82.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.
- package/lib/base/RequestClient.d.ts +26 -2
- package/lib/base/RequestClient.js +14 -2
- package/lib/rest/Messaging.d.ts +2 -0
- package/lib/rest/Messaging.js +9 -0
- package/lib/rest/Microvisor.d.ts +28 -0
- package/lib/rest/Microvisor.js +62 -0
- package/lib/rest/Preview.d.ts +0 -6
- package/lib/rest/Preview.js +0 -28
- package/lib/rest/Routes.d.ts +30 -0
- package/lib/rest/Routes.js +71 -0
- package/lib/rest/Twilio.d.ts +4 -0
- package/lib/rest/Twilio.js +28 -0
- package/lib/rest/Verify.d.ts +2 -0
- package/lib/rest/Verify.js +8 -0
- package/lib/rest/api/v2010/account/sip/ipAccessControlList/ipAddress.d.ts +2 -2
- package/lib/rest/api/v2010/account/sip/ipAccessControlList/ipAddress.js +4 -4
- package/lib/rest/flexApi/v1/configuration.d.ts +4 -0
- package/lib/rest/flexApi/v1/configuration.js +6 -0
- package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelParticipant.d.ts +1 -1
- package/lib/rest/flexApi/v1/interaction/interactionChannel.d.ts +1 -1
- package/lib/rest/flexApi/v1/interaction.d.ts +1 -3
- package/lib/rest/messaging/V1.d.ts +3 -0
- package/lib/rest/messaging/V1.js +13 -0
- package/lib/rest/messaging/v1/tollfreeVerification.d.ts +418 -0
- package/lib/rest/messaging/v1/tollfreeVerification.js +802 -0
- package/lib/rest/microvisor/V1.d.ts +28 -0
- package/lib/rest/microvisor/V1.js +57 -0
- package/lib/rest/{preview/bulk_exports/export/day.d.ts → microvisor/v1/app.d.ts} +79 -69
- package/lib/rest/{preview/bulk_exports/export/day.js → microvisor/v1/app.js} +160 -122
- package/lib/rest/{preview/bulk_exports/export/exportCustomJob.d.ts → microvisor/v1/device.d.ts} +136 -84
- package/lib/rest/microvisor/v1/device.js +652 -0
- package/lib/rest/routes/V2.d.ts +31 -0
- package/lib/rest/routes/V2.js +69 -0
- package/lib/rest/routes/v2/phoneNumber.d.ts +168 -0
- package/lib/rest/routes/v2/phoneNumber.js +394 -0
- package/lib/rest/routes/v2/sipDomain.d.ts +168 -0
- package/lib/rest/routes/v2/sipDomain.js +383 -0
- package/lib/rest/routes/v2/trunk.d.ts +168 -0
- package/lib/rest/routes/v2/trunk.js +390 -0
- package/lib/rest/supersim/v1/fleet.d.ts +3 -1
- package/lib/rest/supersim/v1/fleet.js +8 -3
- package/lib/rest/verify/V2.d.ts +3 -0
- package/lib/rest/verify/V2.js +11 -0
- package/lib/rest/verify/v2/safelist.d.ts +161 -0
- package/lib/rest/verify/v2/safelist.js +408 -0
- package/lib/rest/verify/v2/service/verification.d.ts +1 -1
- package/lib/rest/verify/v2/service/verification.js +1 -1
- package/lib/rest/video/v1/room/roomParticipant/roomParticipantAnonymize.d.ts +143 -0
- package/lib/rest/video/v1/room/roomParticipant/roomParticipantAnonymize.js +337 -0
- package/lib/rest/video/v1/room/roomParticipant.d.ts +7 -0
- package/lib/rest/video/v1/room/roomParticipant.js +29 -0
- package/lib/twiml/VoiceResponse.d.ts +3 -3
- package/lib/webhooks/webhooks.js +1 -0
- package/package.json +1 -1
- package/lib/rest/preview/BulkExports.d.ts +0 -28
- package/lib/rest/preview/BulkExports.js +0 -59
- package/lib/rest/preview/bulk_exports/export/exportCustomJob.js +0 -540
- package/lib/rest/preview/bulk_exports/export/job.d.ts +0 -163
- package/lib/rest/preview/bulk_exports/export/job.js +0 -390
- package/lib/rest/preview/bulk_exports/export.d.ts +0 -153
- package/lib/rest/preview/bulk_exports/export.js +0 -402
- package/lib/rest/preview/bulk_exports/exportConfiguration.d.ts +0 -180
- package/lib/rest/preview/bulk_exports/exportConfiguration.js +0 -411
|
@@ -0,0 +1,408 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/* jshint ignore:start */
|
|
4
|
+
/**
|
|
5
|
+
* This code was generated by
|
|
6
|
+
* \ / _ _ _| _ _
|
|
7
|
+
* | (_)\/(_)(_|\/| |(/_ v1.0.0
|
|
8
|
+
* / /
|
|
9
|
+
*/
|
|
10
|
+
/* jshint ignore:end */
|
|
11
|
+
|
|
12
|
+
var Q = require('q'); /* jshint ignore:line */
|
|
13
|
+
var _ = require('lodash'); /* jshint ignore:line */
|
|
14
|
+
var util = require('util'); /* jshint ignore:line */
|
|
15
|
+
var Page = require('../../../base/Page'); /* jshint ignore:line */
|
|
16
|
+
var values = require('../../../base/values'); /* jshint ignore:line */
|
|
17
|
+
|
|
18
|
+
var SafelistList;
|
|
19
|
+
var SafelistPage;
|
|
20
|
+
var SafelistInstance;
|
|
21
|
+
var SafelistContext;
|
|
22
|
+
|
|
23
|
+
/* jshint ignore:start */
|
|
24
|
+
/**
|
|
25
|
+
* Initialize the SafelistList
|
|
26
|
+
*
|
|
27
|
+
* PLEASE NOTE that this class contains beta products that are subject to change.
|
|
28
|
+
* Use them with caution.
|
|
29
|
+
*
|
|
30
|
+
* @constructor Twilio.Verify.V2.SafelistList
|
|
31
|
+
*
|
|
32
|
+
* @param {Twilio.Verify.V2} version - Version of the resource
|
|
33
|
+
*/
|
|
34
|
+
/* jshint ignore:end */
|
|
35
|
+
SafelistList = function SafelistList(version) {
|
|
36
|
+
/* jshint ignore:start */
|
|
37
|
+
/**
|
|
38
|
+
* @function safelist
|
|
39
|
+
* @memberof Twilio.Verify.V2#
|
|
40
|
+
*
|
|
41
|
+
* @param {string} sid - sid of instance
|
|
42
|
+
*
|
|
43
|
+
* @returns {Twilio.Verify.V2.SafelistContext}
|
|
44
|
+
*/
|
|
45
|
+
/* jshint ignore:end */
|
|
46
|
+
function SafelistListInstance(sid) {
|
|
47
|
+
return SafelistListInstance.get(sid);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
SafelistListInstance._version = version;
|
|
51
|
+
// Path Solution
|
|
52
|
+
SafelistListInstance._solution = {};
|
|
53
|
+
SafelistListInstance._uri = `/SafeList/Numbers`;
|
|
54
|
+
/* jshint ignore:start */
|
|
55
|
+
/**
|
|
56
|
+
* create a SafelistInstance
|
|
57
|
+
*
|
|
58
|
+
* @function create
|
|
59
|
+
* @memberof Twilio.Verify.V2.SafelistList#
|
|
60
|
+
*
|
|
61
|
+
* @param {object} opts - Options for request
|
|
62
|
+
* @param {string} opts.phoneNumber - The phone number to be added in SafeList.
|
|
63
|
+
* @param {function} [callback] - Callback to handle processed record
|
|
64
|
+
*
|
|
65
|
+
* @returns {Promise} Resolves to processed SafelistInstance
|
|
66
|
+
*/
|
|
67
|
+
/* jshint ignore:end */
|
|
68
|
+
SafelistListInstance.create = function create(opts, callback) {
|
|
69
|
+
if (_.isUndefined(opts)) {
|
|
70
|
+
throw new Error('Required parameter "opts" missing.');
|
|
71
|
+
}
|
|
72
|
+
if (_.isUndefined(opts['phoneNumber'])) {
|
|
73
|
+
throw new Error('Required parameter "opts[\'phoneNumber\']" missing.');
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
var deferred = Q.defer();
|
|
77
|
+
var data = values.of({'PhoneNumber': _.get(opts, 'phoneNumber')});
|
|
78
|
+
|
|
79
|
+
var promise = this._version.create({uri: this._uri, method: 'POST', data: data});
|
|
80
|
+
|
|
81
|
+
promise = promise.then(function(payload) {
|
|
82
|
+
deferred.resolve(new SafelistInstance(this._version, payload, this._solution.phoneNumber));
|
|
83
|
+
}.bind(this));
|
|
84
|
+
|
|
85
|
+
promise.catch(function(error) {
|
|
86
|
+
deferred.reject(error);
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
if (_.isFunction(callback)) {
|
|
90
|
+
deferred.promise.nodeify(callback);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return deferred.promise;
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
/* jshint ignore:start */
|
|
97
|
+
/**
|
|
98
|
+
* Constructs a safelist
|
|
99
|
+
*
|
|
100
|
+
* @function get
|
|
101
|
+
* @memberof Twilio.Verify.V2.SafelistList#
|
|
102
|
+
*
|
|
103
|
+
* @param {string} phoneNumber - The phone number to be fetched from SafeList.
|
|
104
|
+
*
|
|
105
|
+
* @returns {Twilio.Verify.V2.SafelistContext}
|
|
106
|
+
*/
|
|
107
|
+
/* jshint ignore:end */
|
|
108
|
+
SafelistListInstance.get = function get(phoneNumber) {
|
|
109
|
+
return new SafelistContext(this._version, phoneNumber);
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
/* jshint ignore:start */
|
|
113
|
+
/**
|
|
114
|
+
* Provide a user-friendly representation
|
|
115
|
+
*
|
|
116
|
+
* @function toJSON
|
|
117
|
+
* @memberof Twilio.Verify.V2.SafelistList#
|
|
118
|
+
*
|
|
119
|
+
* @returns Object
|
|
120
|
+
*/
|
|
121
|
+
/* jshint ignore:end */
|
|
122
|
+
SafelistListInstance.toJSON = function toJSON() {
|
|
123
|
+
return this._solution;
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
SafelistListInstance[util.inspect.custom] = function inspect(depth, options) {
|
|
127
|
+
return util.inspect(this.toJSON(), options);
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
return SafelistListInstance;
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
/* jshint ignore:start */
|
|
135
|
+
/**
|
|
136
|
+
* Initialize the SafelistPage
|
|
137
|
+
*
|
|
138
|
+
* PLEASE NOTE that this class contains beta products that are subject to change.
|
|
139
|
+
* Use them with caution.
|
|
140
|
+
*
|
|
141
|
+
* @constructor Twilio.Verify.V2.SafelistPage
|
|
142
|
+
*
|
|
143
|
+
* @param {V2} version - Version of the resource
|
|
144
|
+
* @param {Response<string>} response - Response from the API
|
|
145
|
+
* @param {SafelistSolution} solution - Path solution
|
|
146
|
+
*
|
|
147
|
+
* @returns SafelistPage
|
|
148
|
+
*/
|
|
149
|
+
/* jshint ignore:end */
|
|
150
|
+
SafelistPage = function SafelistPage(version, response, solution) {
|
|
151
|
+
// Path Solution
|
|
152
|
+
this._solution = solution;
|
|
153
|
+
|
|
154
|
+
Page.prototype.constructor.call(this, version, response, this._solution);
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
_.extend(SafelistPage.prototype, Page.prototype);
|
|
158
|
+
SafelistPage.prototype.constructor = SafelistPage;
|
|
159
|
+
|
|
160
|
+
/* jshint ignore:start */
|
|
161
|
+
/**
|
|
162
|
+
* Build an instance of SafelistInstance
|
|
163
|
+
*
|
|
164
|
+
* @function getInstance
|
|
165
|
+
* @memberof Twilio.Verify.V2.SafelistPage#
|
|
166
|
+
*
|
|
167
|
+
* @param {SafelistPayload} payload - Payload response from the API
|
|
168
|
+
*
|
|
169
|
+
* @returns SafelistInstance
|
|
170
|
+
*/
|
|
171
|
+
/* jshint ignore:end */
|
|
172
|
+
SafelistPage.prototype.getInstance = function getInstance(payload) {
|
|
173
|
+
return new SafelistInstance(this._version, payload);
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
/* jshint ignore:start */
|
|
177
|
+
/**
|
|
178
|
+
* Provide a user-friendly representation
|
|
179
|
+
*
|
|
180
|
+
* @function toJSON
|
|
181
|
+
* @memberof Twilio.Verify.V2.SafelistPage#
|
|
182
|
+
*
|
|
183
|
+
* @returns Object
|
|
184
|
+
*/
|
|
185
|
+
/* jshint ignore:end */
|
|
186
|
+
SafelistPage.prototype.toJSON = function toJSON() {
|
|
187
|
+
let clone = {};
|
|
188
|
+
_.forOwn(this, function(value, key) {
|
|
189
|
+
if (!_.startsWith(key, '_') && ! _.isFunction(value)) {
|
|
190
|
+
clone[key] = value;
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
return clone;
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
SafelistPage.prototype[util.inspect.custom] = function inspect(depth, options) {
|
|
197
|
+
return util.inspect(this.toJSON(), options);
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
/* jshint ignore:start */
|
|
202
|
+
/**
|
|
203
|
+
* Initialize the SafelistContext
|
|
204
|
+
*
|
|
205
|
+
* PLEASE NOTE that this class contains beta products that are subject to change.
|
|
206
|
+
* Use them with caution.
|
|
207
|
+
*
|
|
208
|
+
* @constructor Twilio.Verify.V2.SafelistInstance
|
|
209
|
+
*
|
|
210
|
+
* @property {string} sid - The unique string that identifies the resource.
|
|
211
|
+
* @property {string} phoneNumber - The phone number in SafeList.
|
|
212
|
+
* @property {string} url - The absolute URL of the SafeList resource.
|
|
213
|
+
*
|
|
214
|
+
* @param {V2} version - Version of the resource
|
|
215
|
+
* @param {SafelistPayload} payload - The instance payload
|
|
216
|
+
* @param {string} phoneNumber - The phone number to be fetched from SafeList.
|
|
217
|
+
*/
|
|
218
|
+
/* jshint ignore:end */
|
|
219
|
+
SafelistInstance = function SafelistInstance(version, payload, phoneNumber) {
|
|
220
|
+
this._version = version;
|
|
221
|
+
|
|
222
|
+
// Marshaled Properties
|
|
223
|
+
this.sid = payload.sid; // jshint ignore:line
|
|
224
|
+
this.phoneNumber = payload.phone_number; // jshint ignore:line
|
|
225
|
+
this.url = payload.url; // jshint ignore:line
|
|
226
|
+
|
|
227
|
+
// Context
|
|
228
|
+
this._context = undefined;
|
|
229
|
+
this._solution = {phoneNumber: phoneNumber || this.phoneNumber, };
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
Object.defineProperty(SafelistInstance.prototype,
|
|
233
|
+
'_proxy', {
|
|
234
|
+
get: function() {
|
|
235
|
+
if (!this._context) {
|
|
236
|
+
this._context = new SafelistContext(this._version, this._solution.phoneNumber);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
return this._context;
|
|
240
|
+
}
|
|
241
|
+
});
|
|
242
|
+
|
|
243
|
+
/* jshint ignore:start */
|
|
244
|
+
/**
|
|
245
|
+
* fetch a SafelistInstance
|
|
246
|
+
*
|
|
247
|
+
* @function fetch
|
|
248
|
+
* @memberof Twilio.Verify.V2.SafelistInstance#
|
|
249
|
+
*
|
|
250
|
+
* @param {function} [callback] - Callback to handle processed record
|
|
251
|
+
*
|
|
252
|
+
* @returns {Promise} Resolves to processed SafelistInstance
|
|
253
|
+
*/
|
|
254
|
+
/* jshint ignore:end */
|
|
255
|
+
SafelistInstance.prototype.fetch = function fetch(callback) {
|
|
256
|
+
return this._proxy.fetch(callback);
|
|
257
|
+
};
|
|
258
|
+
|
|
259
|
+
/* jshint ignore:start */
|
|
260
|
+
/**
|
|
261
|
+
* remove a SafelistInstance
|
|
262
|
+
*
|
|
263
|
+
* @function remove
|
|
264
|
+
* @memberof Twilio.Verify.V2.SafelistInstance#
|
|
265
|
+
*
|
|
266
|
+
* @param {function} [callback] - Callback to handle processed record
|
|
267
|
+
*
|
|
268
|
+
* @returns {Promise} Resolves to processed SafelistInstance
|
|
269
|
+
*/
|
|
270
|
+
/* jshint ignore:end */
|
|
271
|
+
SafelistInstance.prototype.remove = function remove(callback) {
|
|
272
|
+
return this._proxy.remove(callback);
|
|
273
|
+
};
|
|
274
|
+
|
|
275
|
+
/* jshint ignore:start */
|
|
276
|
+
/**
|
|
277
|
+
* Provide a user-friendly representation
|
|
278
|
+
*
|
|
279
|
+
* @function toJSON
|
|
280
|
+
* @memberof Twilio.Verify.V2.SafelistInstance#
|
|
281
|
+
*
|
|
282
|
+
* @returns Object
|
|
283
|
+
*/
|
|
284
|
+
/* jshint ignore:end */
|
|
285
|
+
SafelistInstance.prototype.toJSON = function toJSON() {
|
|
286
|
+
let clone = {};
|
|
287
|
+
_.forOwn(this, function(value, key) {
|
|
288
|
+
if (!_.startsWith(key, '_') && ! _.isFunction(value)) {
|
|
289
|
+
clone[key] = value;
|
|
290
|
+
}
|
|
291
|
+
});
|
|
292
|
+
return clone;
|
|
293
|
+
};
|
|
294
|
+
|
|
295
|
+
SafelistInstance.prototype[util.inspect.custom] = function inspect(depth,
|
|
296
|
+
options) {
|
|
297
|
+
return util.inspect(this.toJSON(), options);
|
|
298
|
+
};
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
/* jshint ignore:start */
|
|
302
|
+
/**
|
|
303
|
+
* Initialize the SafelistContext
|
|
304
|
+
*
|
|
305
|
+
* PLEASE NOTE that this class contains beta products that are subject to change.
|
|
306
|
+
* Use them with caution.
|
|
307
|
+
*
|
|
308
|
+
* @constructor Twilio.Verify.V2.SafelistContext
|
|
309
|
+
*
|
|
310
|
+
* @param {V2} version - Version of the resource
|
|
311
|
+
* @param {string} phoneNumber - The phone number to be fetched from SafeList.
|
|
312
|
+
*/
|
|
313
|
+
/* jshint ignore:end */
|
|
314
|
+
SafelistContext = function SafelistContext(version, phoneNumber) {
|
|
315
|
+
this._version = version;
|
|
316
|
+
|
|
317
|
+
// Path Solution
|
|
318
|
+
this._solution = {phoneNumber: phoneNumber, };
|
|
319
|
+
this._uri = `/SafeList/Numbers/${phoneNumber}`;
|
|
320
|
+
};
|
|
321
|
+
|
|
322
|
+
/* jshint ignore:start */
|
|
323
|
+
/**
|
|
324
|
+
* fetch a SafelistInstance
|
|
325
|
+
*
|
|
326
|
+
* @function fetch
|
|
327
|
+
* @memberof Twilio.Verify.V2.SafelistContext#
|
|
328
|
+
*
|
|
329
|
+
* @param {function} [callback] - Callback to handle processed record
|
|
330
|
+
*
|
|
331
|
+
* @returns {Promise} Resolves to processed SafelistInstance
|
|
332
|
+
*/
|
|
333
|
+
/* jshint ignore:end */
|
|
334
|
+
SafelistContext.prototype.fetch = function fetch(callback) {
|
|
335
|
+
var deferred = Q.defer();
|
|
336
|
+
var promise = this._version.fetch({uri: this._uri, method: 'GET'});
|
|
337
|
+
|
|
338
|
+
promise = promise.then(function(payload) {
|
|
339
|
+
deferred.resolve(new SafelistInstance(this._version, payload, this._solution.phoneNumber));
|
|
340
|
+
}.bind(this));
|
|
341
|
+
|
|
342
|
+
promise.catch(function(error) {
|
|
343
|
+
deferred.reject(error);
|
|
344
|
+
});
|
|
345
|
+
|
|
346
|
+
if (_.isFunction(callback)) {
|
|
347
|
+
deferred.promise.nodeify(callback);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
return deferred.promise;
|
|
351
|
+
};
|
|
352
|
+
|
|
353
|
+
/* jshint ignore:start */
|
|
354
|
+
/**
|
|
355
|
+
* remove a SafelistInstance
|
|
356
|
+
*
|
|
357
|
+
* @function remove
|
|
358
|
+
* @memberof Twilio.Verify.V2.SafelistContext#
|
|
359
|
+
*
|
|
360
|
+
* @param {function} [callback] - Callback to handle processed record
|
|
361
|
+
*
|
|
362
|
+
* @returns {Promise} Resolves to processed SafelistInstance
|
|
363
|
+
*/
|
|
364
|
+
/* jshint ignore:end */
|
|
365
|
+
SafelistContext.prototype.remove = function remove(callback) {
|
|
366
|
+
var deferred = Q.defer();
|
|
367
|
+
var promise = this._version.remove({uri: this._uri, method: 'DELETE'});
|
|
368
|
+
|
|
369
|
+
promise = promise.then(function(payload) {
|
|
370
|
+
deferred.resolve(payload);
|
|
371
|
+
}.bind(this));
|
|
372
|
+
|
|
373
|
+
promise.catch(function(error) {
|
|
374
|
+
deferred.reject(error);
|
|
375
|
+
});
|
|
376
|
+
|
|
377
|
+
if (_.isFunction(callback)) {
|
|
378
|
+
deferred.promise.nodeify(callback);
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
return deferred.promise;
|
|
382
|
+
};
|
|
383
|
+
|
|
384
|
+
/* jshint ignore:start */
|
|
385
|
+
/**
|
|
386
|
+
* Provide a user-friendly representation
|
|
387
|
+
*
|
|
388
|
+
* @function toJSON
|
|
389
|
+
* @memberof Twilio.Verify.V2.SafelistContext#
|
|
390
|
+
*
|
|
391
|
+
* @returns Object
|
|
392
|
+
*/
|
|
393
|
+
/* jshint ignore:end */
|
|
394
|
+
SafelistContext.prototype.toJSON = function toJSON() {
|
|
395
|
+
return this._solution;
|
|
396
|
+
};
|
|
397
|
+
|
|
398
|
+
SafelistContext.prototype[util.inspect.custom] = function inspect(depth,
|
|
399
|
+
options) {
|
|
400
|
+
return util.inspect(this.toJSON(), options);
|
|
401
|
+
};
|
|
402
|
+
|
|
403
|
+
module.exports = {
|
|
404
|
+
SafelistList: SafelistList,
|
|
405
|
+
SafelistPage: SafelistPage,
|
|
406
|
+
SafelistInstance: SafelistInstance,
|
|
407
|
+
SafelistContext: SafelistContext
|
|
408
|
+
};
|
|
@@ -65,7 +65,7 @@ interface VerificationListInstance {
|
|
|
65
65
|
* @property customCode - A pre-generated code
|
|
66
66
|
* @property customFriendlyName - A custom user defined friendly name
|
|
67
67
|
* @property customMessage - The text of a custom message to use for the verification
|
|
68
|
-
* @property locale - The locale to use for the verification SMS, WhatsApp or call
|
|
68
|
+
* @property locale - The override locale to use for the verification SMS, WhatsApp or call
|
|
69
69
|
* @property payee - The payee of the associated PSD2 compliant transaction
|
|
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
|
|
@@ -69,7 +69,7 @@ VerificationList = function VerificationList(version, serviceSid) {
|
|
|
69
69
|
* @param {string} [opts.sendDigits] -
|
|
70
70
|
* The digits to send after a phone call is answered
|
|
71
71
|
* @param {string} [opts.locale] -
|
|
72
|
-
* The locale to use for the verification SMS, WhatsApp or call
|
|
72
|
+
* The override locale to use for the verification SMS, WhatsApp or call
|
|
73
73
|
* @param {string} [opts.customCode] - A pre-generated code
|
|
74
74
|
* @param {string} [opts.amount] -
|
|
75
75
|
* The amount of the associated PSD2 compliant transaction.
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was generated by
|
|
3
|
+
* \ / _ _ _| _ _
|
|
4
|
+
* | (_)\/(_)(_|\/| |(/_ v1.0.0
|
|
5
|
+
* / /
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import Page = require('../../../../../base/Page');
|
|
9
|
+
import Response = require('../../../../../http/response');
|
|
10
|
+
import V1 = require('../../../V1');
|
|
11
|
+
import { SerializableClass } from '../../../../../interfaces';
|
|
12
|
+
|
|
13
|
+
type AnonymizeStatus = 'connected'|'disconnected';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Initialize the AnonymizeList
|
|
17
|
+
*
|
|
18
|
+
* @param version - Version of the resource
|
|
19
|
+
* @param roomSid - The SID of the participant's room
|
|
20
|
+
* @param sid - The unique string that identifies the resource
|
|
21
|
+
*/
|
|
22
|
+
declare function AnonymizeList(version: V1, roomSid: string, sid: string): AnonymizeListInstance;
|
|
23
|
+
|
|
24
|
+
interface AnonymizeListInstance {
|
|
25
|
+
/**
|
|
26
|
+
* @param sid - sid of instance
|
|
27
|
+
*/
|
|
28
|
+
(sid: string): AnonymizeContext;
|
|
29
|
+
/**
|
|
30
|
+
* Constructs a anonymize
|
|
31
|
+
*/
|
|
32
|
+
get(): AnonymizeContext;
|
|
33
|
+
/**
|
|
34
|
+
* Provide a user-friendly representation
|
|
35
|
+
*/
|
|
36
|
+
toJSON(): any;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
interface AnonymizePayload extends AnonymizeResource, Page.TwilioResponsePayload {
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
interface AnonymizeResource {
|
|
43
|
+
account_sid: string;
|
|
44
|
+
date_created: Date;
|
|
45
|
+
date_updated: Date;
|
|
46
|
+
duration: number;
|
|
47
|
+
end_time: Date;
|
|
48
|
+
identity: string;
|
|
49
|
+
room_sid: string;
|
|
50
|
+
sid: string;
|
|
51
|
+
start_time: Date;
|
|
52
|
+
status: AnonymizeStatus;
|
|
53
|
+
url: string;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
interface AnonymizeSolution {
|
|
57
|
+
roomSid?: string;
|
|
58
|
+
sid?: string;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
declare class AnonymizeContext {
|
|
63
|
+
/**
|
|
64
|
+
* Initialize the AnonymizeContext
|
|
65
|
+
*
|
|
66
|
+
* @param version - Version of the resource
|
|
67
|
+
* @param roomSid - The SID of the room with the participant to update
|
|
68
|
+
* @param sid - The SID that identifies the resource to update
|
|
69
|
+
*/
|
|
70
|
+
constructor(version: V1, roomSid: string, sid: string);
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Provide a user-friendly representation
|
|
74
|
+
*/
|
|
75
|
+
toJSON(): any;
|
|
76
|
+
/**
|
|
77
|
+
* update a AnonymizeInstance
|
|
78
|
+
*
|
|
79
|
+
* @param callback - Callback to handle processed record
|
|
80
|
+
*/
|
|
81
|
+
update(callback?: (error: Error | null, items: AnonymizeInstance) => any): Promise<AnonymizeInstance>;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
declare class AnonymizeInstance extends SerializableClass {
|
|
86
|
+
/**
|
|
87
|
+
* Initialize the AnonymizeContext
|
|
88
|
+
*
|
|
89
|
+
* @param version - Version of the resource
|
|
90
|
+
* @param payload - The instance payload
|
|
91
|
+
* @param roomSid - The SID of the participant's room
|
|
92
|
+
* @param sid - The unique string that identifies the resource
|
|
93
|
+
*/
|
|
94
|
+
constructor(version: V1, payload: AnonymizePayload, roomSid: string, sid: string);
|
|
95
|
+
|
|
96
|
+
private _proxy: AnonymizeContext;
|
|
97
|
+
accountSid: string;
|
|
98
|
+
dateCreated: Date;
|
|
99
|
+
dateUpdated: Date;
|
|
100
|
+
duration: number;
|
|
101
|
+
endTime: Date;
|
|
102
|
+
identity: string;
|
|
103
|
+
roomSid: string;
|
|
104
|
+
sid: string;
|
|
105
|
+
startTime: Date;
|
|
106
|
+
status: AnonymizeStatus;
|
|
107
|
+
/**
|
|
108
|
+
* Provide a user-friendly representation
|
|
109
|
+
*/
|
|
110
|
+
toJSON(): any;
|
|
111
|
+
/**
|
|
112
|
+
* update a AnonymizeInstance
|
|
113
|
+
*
|
|
114
|
+
* @param callback - Callback to handle processed record
|
|
115
|
+
*/
|
|
116
|
+
update(callback?: (error: Error | null, items: AnonymizeInstance) => any): Promise<AnonymizeInstance>;
|
|
117
|
+
url: string;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
declare class AnonymizePage extends Page<V1, AnonymizePayload, AnonymizeResource, AnonymizeInstance> {
|
|
122
|
+
/**
|
|
123
|
+
* Initialize the AnonymizePage
|
|
124
|
+
*
|
|
125
|
+
* @param version - Version of the resource
|
|
126
|
+
* @param response - Response from the API
|
|
127
|
+
* @param solution - Path solution
|
|
128
|
+
*/
|
|
129
|
+
constructor(version: V1, response: Response<string>, solution: AnonymizeSolution);
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Build an instance of AnonymizeInstance
|
|
133
|
+
*
|
|
134
|
+
* @param payload - Payload response from the API
|
|
135
|
+
*/
|
|
136
|
+
getInstance(payload: AnonymizePayload): AnonymizeInstance;
|
|
137
|
+
/**
|
|
138
|
+
* Provide a user-friendly representation
|
|
139
|
+
*/
|
|
140
|
+
toJSON(): any;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export { AnonymizeContext, AnonymizeInstance, AnonymizeList, AnonymizeListInstance, AnonymizePage, AnonymizePayload, AnonymizeResource, AnonymizeSolution, AnonymizeStatus }
|