twilio 3.77.3 → 3.80.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/README.md +6 -2
- package/lib/base/RequestClient.d.ts +15 -5
- package/lib/base/RequestClient.js +36 -7
- package/lib/rest/Insights.d.ts +0 -2
- package/lib/rest/Insights.js +0 -8
- package/lib/rest/api/v2010/account/usage/record/allTime.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record/daily.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record/lastMonth.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record/monthly.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record/thisMonth.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record/today.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record/yearly.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record/yesterday.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/trigger.d.ts +1 -1
- 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/insights/V1.d.ts +0 -3
- package/lib/rest/insights/V1.js +0 -11
- package/lib/rest/insights/v1/{annotation.d.ts → call/annotation.d.ts} +29 -17
- package/lib/rest/insights/v1/{annotation.js → call/annotation.js} +72 -55
- package/lib/rest/insights/v1/call/summary.d.ts +2 -0
- package/lib/rest/insights/v1/call/summary.js +2 -0
- package/lib/rest/insights/v1/call.d.ts +7 -16
- package/lib/rest/insights/v1/call.js +28 -16
- package/lib/rest/lookups/v2/phoneNumber.d.ts +0 -2
- package/lib/rest/lookups/v2/phoneNumber.js +0 -3
- package/lib/rest/media/v1/mediaRecording.d.ts +0 -2
- package/lib/rest/media/v1/mediaRecording.js +0 -2
- 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/twiml/VoiceResponse.d.ts +2 -0
- package/lib/twiml/VoiceResponse.js +1 -0
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -443,6 +443,7 @@ declare namespace VoiceResponse {
|
|
|
443
443
|
* Options to pass to enqueue
|
|
444
444
|
*
|
|
445
445
|
* @property action - Action URL
|
|
446
|
+
* @property maxQueueSize - Maximum size of queue
|
|
446
447
|
* @property method - Action URL method
|
|
447
448
|
* @property waitUrl - Wait URL
|
|
448
449
|
* @property waitUrlMethod - Wait URL method
|
|
@@ -450,6 +451,7 @@ declare namespace VoiceResponse {
|
|
|
450
451
|
*/
|
|
451
452
|
export interface EnqueueAttributes {
|
|
452
453
|
action?: string;
|
|
454
|
+
maxQueueSize?: number;
|
|
453
455
|
method?: string;
|
|
454
456
|
waitUrl?: string;
|
|
455
457
|
waitUrlMethod?: string;
|
|
@@ -114,6 +114,7 @@ VoiceResponse.prototype.echo = function echo(attributes) {
|
|
|
114
114
|
*
|
|
115
115
|
* @param {object} [attributes] - TwiML attributes
|
|
116
116
|
* @param {string} [attributes.action] - Action URL
|
|
117
|
+
* @param {number} [attributes.maxQueueSize] - Maximum size of queue
|
|
117
118
|
* @param {string} [attributes.method] - Action URL method
|
|
118
119
|
* @param {string} [attributes.waitUrl] - Wait URL
|
|
119
120
|
* @param {string} [attributes.waitUrlMethod] - Wait URL method
|