twilio 3.78.0 → 3.80.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/README.md +5 -1
- package/lib/base/RequestClient.d.ts +15 -5
- package/lib/base/RequestClient.js +36 -7
- 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/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/conversations/v1/conversation/participant.js +4 -2
- package/lib/rest/conversations/v1/service/conversation/participant.js +4 -2
- package/lib/rest/flexApi/v1/interaction/interactionChannel.d.ts +12 -4
- package/lib/rest/flexApi/v1/interaction/interactionChannel.js +12 -3
- package/lib/rest/lookups/v2/phoneNumber.d.ts +0 -2
- package/lib/rest/lookups/v2/phoneNumber.js +0 -3
- 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 +193 -0
- package/lib/rest/routes/v2/phoneNumber.js +466 -0
- package/lib/rest/routes/v2/sipDomain.d.ts +205 -0
- package/lib/rest/routes/v2/sipDomain.js +447 -0
- package/lib/rest/routes/v2/trunk.d.ts +205 -0
- package/lib/rest/routes/v2/trunk.js +458 -0
- package/lib/rest/supersim/v1/fleet.d.ts +3 -1
- package/lib/rest/supersim/v1/fleet.js +8 -3
- package/lib/rest/supersim/v1/sim/simIpAddress.d.ts +246 -0
- package/lib/rest/supersim/v1/sim/simIpAddress.js +448 -0
- package/lib/rest/supersim/v1/sim.d.ts +7 -0
- package/lib/rest/supersim/v1/sim.js +28 -0
- package/lib/rest/verify/v2/service/verificationCheck.d.ts +10 -2
- package/lib/rest/verify/v2/service/verificationCheck.js +9 -7
- package/lib/rest/verify/v2/verificationAttemptsSummary.d.ts +2 -2
- package/lib/rest/verify/v2/verificationAttemptsSummary.js +3 -3
- 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
|
@@ -11,6 +11,8 @@ import V1 = require('../V1');
|
|
|
11
11
|
import { BillingPeriodList } from './sim/billingPeriod';
|
|
12
12
|
import { BillingPeriodListInstance } from './sim/billingPeriod';
|
|
13
13
|
import { SerializableClass } from '../../../interfaces';
|
|
14
|
+
import { SimIpAddressList } from './sim/simIpAddress';
|
|
15
|
+
import { SimIpAddressListInstance } from './sim/simIpAddress';
|
|
14
16
|
|
|
15
17
|
type SimStatus = 'new'|'ready'|'active'|'inactive'|'scheduled';
|
|
16
18
|
|
|
@@ -290,6 +292,7 @@ declare class SimContext {
|
|
|
290
292
|
* @param callback - Callback to handle processed record
|
|
291
293
|
*/
|
|
292
294
|
fetch(callback?: (error: Error | null, items: SimInstance) => any): Promise<SimInstance>;
|
|
295
|
+
simIpAddresses: SimIpAddressListInstance;
|
|
293
296
|
/**
|
|
294
297
|
* Provide a user-friendly representation
|
|
295
298
|
*/
|
|
@@ -341,6 +344,10 @@ declare class SimInstance extends SerializableClass {
|
|
|
341
344
|
iccid: string;
|
|
342
345
|
links: string;
|
|
343
346
|
sid: string;
|
|
347
|
+
/**
|
|
348
|
+
* Access the simIpAddresses
|
|
349
|
+
*/
|
|
350
|
+
simIpAddresses(): SimIpAddressListInstance;
|
|
344
351
|
status: SimStatus;
|
|
345
352
|
/**
|
|
346
353
|
* Provide a user-friendly representation
|
|
@@ -14,6 +14,7 @@ var _ = require('lodash'); /* jshint ignore:line */
|
|
|
14
14
|
var util = require('util'); /* jshint ignore:line */
|
|
15
15
|
var BillingPeriodList = require('./sim/billingPeriod').BillingPeriodList;
|
|
16
16
|
var Page = require('../../../base/Page'); /* jshint ignore:line */
|
|
17
|
+
var SimIpAddressList = require('./sim/simIpAddress').SimIpAddressList;
|
|
17
18
|
var deserialize = require(
|
|
18
19
|
'../../../base/deserialize'); /* jshint ignore:line */
|
|
19
20
|
var values = require('../../../base/values'); /* jshint ignore:line */
|
|
@@ -590,6 +591,20 @@ SimInstance.prototype.billingPeriods = function billingPeriods() {
|
|
|
590
591
|
return this._proxy.billingPeriods;
|
|
591
592
|
};
|
|
592
593
|
|
|
594
|
+
/* jshint ignore:start */
|
|
595
|
+
/**
|
|
596
|
+
* Access the simIpAddresses
|
|
597
|
+
*
|
|
598
|
+
* @function simIpAddresses
|
|
599
|
+
* @memberof Twilio.Supersim.V1.SimInstance#
|
|
600
|
+
*
|
|
601
|
+
* @returns {Twilio.Supersim.V1.SimContext.SimIpAddressList}
|
|
602
|
+
*/
|
|
603
|
+
/* jshint ignore:end */
|
|
604
|
+
SimInstance.prototype.simIpAddresses = function simIpAddresses() {
|
|
605
|
+
return this._proxy.simIpAddresses;
|
|
606
|
+
};
|
|
607
|
+
|
|
593
608
|
/* jshint ignore:start */
|
|
594
609
|
/**
|
|
595
610
|
* Provide a user-friendly representation
|
|
@@ -626,6 +641,8 @@ SimInstance.prototype[util.inspect.custom] = function inspect(depth, options) {
|
|
|
626
641
|
*
|
|
627
642
|
* @property {Twilio.Supersim.V1.SimContext.BillingPeriodList} billingPeriods -
|
|
628
643
|
* billingPeriods resource
|
|
644
|
+
* @property {Twilio.Supersim.V1.SimContext.SimIpAddressList} simIpAddresses -
|
|
645
|
+
* simIpAddresses resource
|
|
629
646
|
*
|
|
630
647
|
* @param {V1} version - Version of the resource
|
|
631
648
|
* @param {sid_like} sid - The SID that identifies the resource to fetch
|
|
@@ -640,6 +657,7 @@ SimContext = function SimContext(version, sid) {
|
|
|
640
657
|
|
|
641
658
|
// Dependents
|
|
642
659
|
this._billingPeriods = undefined;
|
|
660
|
+
this._simIpAddresses = undefined;
|
|
643
661
|
};
|
|
644
662
|
|
|
645
663
|
/* jshint ignore:start */
|
|
@@ -741,6 +759,16 @@ Object.defineProperty(SimContext.prototype,
|
|
|
741
759
|
}
|
|
742
760
|
});
|
|
743
761
|
|
|
762
|
+
Object.defineProperty(SimContext.prototype,
|
|
763
|
+
'simIpAddresses', {
|
|
764
|
+
get: function() {
|
|
765
|
+
if (!this._simIpAddresses) {
|
|
766
|
+
this._simIpAddresses = new SimIpAddressList(this._version, this._solution.sid);
|
|
767
|
+
}
|
|
768
|
+
return this._simIpAddresses;
|
|
769
|
+
}
|
|
770
|
+
});
|
|
771
|
+
|
|
744
772
|
/* jshint ignore:start */
|
|
745
773
|
/**
|
|
746
774
|
* Provide a user-friendly representation
|
|
@@ -21,13 +21,19 @@ type VerificationCheckChannel = 'sms'|'call'|'email'|'whatsapp'|'sna';
|
|
|
21
21
|
declare function VerificationCheckList(version: V2, serviceSid: string): VerificationCheckListInstance;
|
|
22
22
|
|
|
23
23
|
interface VerificationCheckListInstance {
|
|
24
|
+
/**
|
|
25
|
+
* create a VerificationCheckInstance
|
|
26
|
+
*
|
|
27
|
+
* @param callback - Callback to handle processed record
|
|
28
|
+
*/
|
|
29
|
+
create(callback?: (error: Error | null, item: VerificationCheckInstance) => any): Promise<VerificationCheckInstance>;
|
|
24
30
|
/**
|
|
25
31
|
* create a VerificationCheckInstance
|
|
26
32
|
*
|
|
27
33
|
* @param opts - Options for request
|
|
28
34
|
* @param callback - Callback to handle processed record
|
|
29
35
|
*/
|
|
30
|
-
create(opts
|
|
36
|
+
create(opts?: VerificationCheckListInstanceCreateOptions, callback?: (error: Error | null, item: VerificationCheckInstance) => any): Promise<VerificationCheckInstance>;
|
|
31
37
|
/**
|
|
32
38
|
* Provide a user-friendly representation
|
|
33
39
|
*/
|
|
@@ -45,7 +51,7 @@ interface VerificationCheckListInstance {
|
|
|
45
51
|
*/
|
|
46
52
|
interface VerificationCheckListInstanceCreateOptions {
|
|
47
53
|
amount?: string;
|
|
48
|
-
code
|
|
54
|
+
code?: string;
|
|
49
55
|
payee?: string;
|
|
50
56
|
to?: string;
|
|
51
57
|
verificationSid?: string;
|
|
@@ -63,6 +69,7 @@ interface VerificationCheckResource {
|
|
|
63
69
|
payee: string;
|
|
64
70
|
service_sid: string;
|
|
65
71
|
sid: string;
|
|
72
|
+
sna_attempts_error_codes: object[];
|
|
66
73
|
status: string;
|
|
67
74
|
to: string;
|
|
68
75
|
valid: boolean;
|
|
@@ -91,6 +98,7 @@ declare class VerificationCheckInstance extends SerializableClass {
|
|
|
91
98
|
payee: string;
|
|
92
99
|
serviceSid: string;
|
|
93
100
|
sid: string;
|
|
101
|
+
snaAttemptsErrorCodes: object[];
|
|
94
102
|
status: string;
|
|
95
103
|
to: string;
|
|
96
104
|
/**
|
|
@@ -58,8 +58,8 @@ VerificationCheckList = function VerificationCheckList(version, serviceSid) {
|
|
|
58
58
|
* @function create
|
|
59
59
|
* @memberof Twilio.Verify.V2.ServiceContext.VerificationCheckList#
|
|
60
60
|
*
|
|
61
|
-
* @param {object} opts - Options for request
|
|
62
|
-
* @param {string} opts.code - The verification string
|
|
61
|
+
* @param {object} [opts] - Options for request
|
|
62
|
+
* @param {string} [opts.code] - The verification string
|
|
63
63
|
* @param {string} [opts.to] - The phone number or email to verify
|
|
64
64
|
* @param {string} [opts.verificationSid] -
|
|
65
65
|
* A SID that uniquely identifies the Verification Check
|
|
@@ -73,12 +73,11 @@ VerificationCheckList = function VerificationCheckList(version, serviceSid) {
|
|
|
73
73
|
*/
|
|
74
74
|
/* jshint ignore:end */
|
|
75
75
|
VerificationCheckListInstance.create = function create(opts, callback) {
|
|
76
|
-
if (_.
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
if (_.isUndefined(opts['code'])) {
|
|
80
|
-
throw new Error('Required parameter "opts[\'code\']" missing.');
|
|
76
|
+
if (_.isFunction(opts)) {
|
|
77
|
+
callback = opts;
|
|
78
|
+
opts = {};
|
|
81
79
|
}
|
|
80
|
+
opts = opts || {};
|
|
82
81
|
|
|
83
82
|
var deferred = Q.defer();
|
|
84
83
|
var data = values.of({
|
|
@@ -217,6 +216,8 @@ VerificationCheckPage.prototype[util.inspect.custom] = function inspect(depth,
|
|
|
217
216
|
* The ISO 8601 date and time in GMT when the Verification Check resource was created
|
|
218
217
|
* @property {Date} dateUpdated -
|
|
219
218
|
* The ISO 8601 date and time in GMT when the Verification Check resource was last updated
|
|
219
|
+
* @property {object} snaAttemptsErrorCodes -
|
|
220
|
+
* List of error codes as a result of attempting a verification using the `sna` channel.
|
|
220
221
|
*
|
|
221
222
|
* @param {V2} version - Version of the resource
|
|
222
223
|
* @param {VerificationCheckPayload} payload - The instance payload
|
|
@@ -240,6 +241,7 @@ VerificationCheckInstance = function VerificationCheckInstance(version, payload,
|
|
|
240
241
|
this.payee = payload.payee; // jshint ignore:line
|
|
241
242
|
this.dateCreated = deserialize.iso8601DateTime(payload.date_created); // jshint ignore:line
|
|
242
243
|
this.dateUpdated = deserialize.iso8601DateTime(payload.date_updated); // jshint ignore:line
|
|
244
|
+
this.snaAttemptsErrorCodes = payload.sna_attempts_error_codes; // jshint ignore:line
|
|
243
245
|
|
|
244
246
|
// Context
|
|
245
247
|
this._context = undefined;
|
|
@@ -27,7 +27,7 @@ declare function VerificationAttemptsSummaryList(version: V2): VerificationAttem
|
|
|
27
27
|
* @property dateCreatedAfter - Consider verification attempts create after this date on the summary.
|
|
28
28
|
* @property dateCreatedBefore - Consider verification attempts created before this date on the summary.
|
|
29
29
|
* @property destinationPrefix - Filters the attempts considered on the summary by destination prefix.
|
|
30
|
-
* @property
|
|
30
|
+
* @property verifyServiceSid - Filter the verification attempts considered on the summary by verify service.
|
|
31
31
|
*/
|
|
32
32
|
interface VerificationAttemptsSummaryInstanceFetchOptions {
|
|
33
33
|
channel?: VerificationAttemptsSummaryChannels;
|
|
@@ -35,7 +35,7 @@ interface VerificationAttemptsSummaryInstanceFetchOptions {
|
|
|
35
35
|
dateCreatedAfter?: Date;
|
|
36
36
|
dateCreatedBefore?: Date;
|
|
37
37
|
destinationPrefix?: string;
|
|
38
|
-
|
|
38
|
+
verifyServiceSid?: string;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
interface VerificationAttemptsSummaryListInstance {
|
|
@@ -209,7 +209,7 @@ Object.defineProperty(VerificationAttemptsSummaryInstance.prototype,
|
|
|
209
209
|
* @memberof Twilio.Verify.V2.VerificationAttemptsSummaryInstance#
|
|
210
210
|
*
|
|
211
211
|
* @param {object} [opts] - Options for request
|
|
212
|
-
* @param {string} [opts.
|
|
212
|
+
* @param {string} [opts.verifyServiceSid] -
|
|
213
213
|
* Filter the verification attempts considered on the summary by verify service.
|
|
214
214
|
* @param {Date} [opts.dateCreatedAfter] -
|
|
215
215
|
* Consider verification attempts create after this date on the summary.
|
|
@@ -283,7 +283,7 @@ VerificationAttemptsSummaryContext = function
|
|
|
283
283
|
* @memberof Twilio.Verify.V2.VerificationAttemptsSummaryContext#
|
|
284
284
|
*
|
|
285
285
|
* @param {object} [opts] - Options for request
|
|
286
|
-
* @param {string} [opts.
|
|
286
|
+
* @param {string} [opts.verifyServiceSid] -
|
|
287
287
|
* Filter the verification attempts considered on the summary by verify service.
|
|
288
288
|
* @param {Date} [opts.dateCreatedAfter] -
|
|
289
289
|
* Consider verification attempts create after this date on the summary.
|
|
@@ -310,7 +310,7 @@ VerificationAttemptsSummaryContext.prototype.fetch = function fetch(opts,
|
|
|
310
310
|
|
|
311
311
|
var deferred = Q.defer();
|
|
312
312
|
var data = values.of({
|
|
313
|
-
'
|
|
313
|
+
'VerifyServiceSid': _.get(opts, 'verifyServiceSid'),
|
|
314
314
|
'DateCreatedAfter': serialize.iso8601DateTime(_.get(opts, 'dateCreatedAfter')),
|
|
315
315
|
'DateCreatedBefore': serialize.iso8601DateTime(_.get(opts, 'dateCreatedBefore')),
|
|
316
316
|
'Country': _.get(opts, 'country'),
|
package/package.json
CHANGED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This code was generated by
|
|
3
|
-
* \ / _ _ _| _ _
|
|
4
|
-
* | (_)\/(_)(_|\/| |(/_ v1.0.0
|
|
5
|
-
* / /
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import Preview = require('../Preview');
|
|
9
|
-
import Version = require('../../base/Version');
|
|
10
|
-
import { ExportConfigurationList } from './bulk_exports/exportConfiguration';
|
|
11
|
-
import { ExportConfigurationListInstance } from './bulk_exports/exportConfiguration';
|
|
12
|
-
import { ExportList } from './bulk_exports/export';
|
|
13
|
-
import { ExportListInstance } from './bulk_exports/export';
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
declare class BulkExports extends Version {
|
|
17
|
-
/**
|
|
18
|
-
* Initialize the BulkExports version of Preview
|
|
19
|
-
*
|
|
20
|
-
* @param domain - The twilio domain
|
|
21
|
-
*/
|
|
22
|
-
constructor(domain: Preview);
|
|
23
|
-
|
|
24
|
-
readonly exportConfiguration: ExportConfigurationListInstance;
|
|
25
|
-
readonly exports: ExportListInstance;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export = BulkExports;
|
|
@@ -1,59 +0,0 @@
|
|
|
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 _ = require('lodash'); /* jshint ignore:line */
|
|
13
|
-
var ExportConfigurationList = require(
|
|
14
|
-
'./bulk_exports/exportConfiguration').ExportConfigurationList;
|
|
15
|
-
var ExportList = require('./bulk_exports/export').ExportList;
|
|
16
|
-
var Version = require('../../base/Version'); /* jshint ignore:line */
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
/* jshint ignore:start */
|
|
20
|
-
/**
|
|
21
|
-
* Initialize the BulkExports version of Preview
|
|
22
|
-
*
|
|
23
|
-
* @constructor Twilio.Preview.BulkExports
|
|
24
|
-
*
|
|
25
|
-
* @property {Twilio.Preview.BulkExports.ExportList} exports - exports resource
|
|
26
|
-
* @property {Twilio.Preview.BulkExports.ExportConfigurationList} exportConfiguration -
|
|
27
|
-
* exportConfiguration resource
|
|
28
|
-
*
|
|
29
|
-
* @param {Twilio.Preview} domain - The twilio domain
|
|
30
|
-
*/
|
|
31
|
-
/* jshint ignore:end */
|
|
32
|
-
function BulkExports(domain) {
|
|
33
|
-
Version.prototype.constructor.call(this, domain, 'BulkExports');
|
|
34
|
-
|
|
35
|
-
// Resources
|
|
36
|
-
this._exports = undefined;
|
|
37
|
-
this._exportConfiguration = undefined;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
_.extend(BulkExports.prototype, Version.prototype);
|
|
41
|
-
BulkExports.prototype.constructor = BulkExports;
|
|
42
|
-
|
|
43
|
-
Object.defineProperty(BulkExports.prototype,
|
|
44
|
-
'exports', {
|
|
45
|
-
get: function() {
|
|
46
|
-
this._exports = this._exports || new ExportList(this);
|
|
47
|
-
return this._exports;
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
Object.defineProperty(BulkExports.prototype,
|
|
52
|
-
'exportConfiguration', {
|
|
53
|
-
get: function() {
|
|
54
|
-
this._exportConfiguration = this._exportConfiguration || new ExportConfigurationList(this);
|
|
55
|
-
return this._exportConfiguration;
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
module.exports = BulkExports;
|