twilio 3.69.0 → 3.71.3
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/CHANGES.md +96 -0
- package/README.md +1 -1
- package/lib/jwt/AccessToken.d.ts +16 -0
- package/lib/jwt/AccessToken.js +20 -0
- package/lib/jwt/ClientCapability.d.ts +1 -1
- package/lib/rest/Media.d.ts +28 -0
- package/lib/rest/Media.js +64 -0
- package/lib/rest/Supersim.d.ts +2 -0
- package/lib/rest/Supersim.js +8 -0
- package/lib/rest/Twilio.d.ts +2 -0
- package/lib/rest/Twilio.js +14 -0
- package/lib/rest/api/v2010/account/call.d.ts +1 -1
- package/lib/rest/api/v2010/account/call.js +1 -1
- package/lib/rest/api/v2010/account/incomingPhoneNumber/local.d.ts +5 -1
- package/lib/rest/api/v2010/account/incomingPhoneNumber/local.js +3 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber/mobile.d.ts +5 -1
- package/lib/rest/api/v2010/account/incomingPhoneNumber/mobile.js +3 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber/tollFree.d.ts +5 -1
- package/lib/rest/api/v2010/account/incomingPhoneNumber/tollFree.js +3 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber.d.ts +5 -1
- package/lib/rest/api/v2010/account/incomingPhoneNumber.js +3 -0
- package/lib/rest/conversations/v1/service/configuration/webhook.d.ts +172 -0
- package/lib/rest/conversations/v1/service/configuration/webhook.js +399 -0
- package/lib/rest/conversations/v1/service/configuration.d.ts +2 -0
- package/lib/rest/conversations/v1/service/configuration.js +13 -0
- package/lib/rest/flexApi/v1/configuration.d.ts +4 -0
- package/lib/rest/flexApi/v1/configuration.js +5 -0
- package/lib/rest/frontlineApi/v1/user.d.ts +4 -0
- package/lib/rest/frontlineApi/v1/user.js +10 -1
- package/lib/rest/media/V1.d.ts +28 -0
- package/lib/rest/media/V1.js +59 -0
- package/lib/rest/media/v1/mediaProcessor.d.ts +355 -0
- package/lib/rest/media/v1/mediaProcessor.js +702 -0
- package/lib/rest/media/v1/playerStreamer/playbackGrant.d.ts +162 -0
- package/lib/rest/media/v1/playerStreamer/playbackGrant.js +384 -0
- package/lib/rest/media/v1/playerStreamer.d.ts +366 -0
- package/lib/rest/media/v1/playerStreamer.js +729 -0
- package/lib/rest/messaging/v1/brandRegistration/brandVetting.d.ts +330 -0
- package/lib/rest/messaging/v1/brandRegistration/brandVetting.js +655 -0
- package/lib/rest/messaging/v1/brandRegistration.d.ts +15 -2
- package/lib/rest/messaging/v1/brandRegistration.js +37 -1
- package/lib/rest/messaging/v1/service.d.ts +8 -0
- package/lib/rest/messaging/v1/service.js +14 -0
- package/lib/rest/serverless/v1/service/build.d.ts +1 -1
- package/lib/rest/supersim/V1.d.ts +3 -0
- package/lib/rest/supersim/V1.js +11 -0
- package/lib/rest/supersim/v1/ipCommand.d.ts +362 -0
- package/lib/rest/supersim/v1/ipCommand.js +679 -0
- package/lib/rest/verify/v2/service/accessToken.d.ts +2 -0
- package/lib/rest/verify/v2/service/accessToken.js +3 -1
- package/lib/rest/verify/v2/service/entity/factor.d.ts +4 -2
- package/lib/rest/verify/v2/service/entity/factor.js +8 -3
- package/lib/rest/verify/v2/service/entity/newFactor.d.ts +2 -2
- package/lib/rest/verify/v2/service/entity/newFactor.js +1 -1
- package/lib/rest/verify/v2/service/verification.d.ts +4 -0
- package/lib/rest/verify/v2/service/verification.js +6 -1
- package/lib/rest/verify/v2/service.d.ts +6 -0
- package/lib/rest/verify/v2/service.js +12 -2
- package/lib/rest/verify/v2/verificationAttempt.d.ts +1 -1
- package/lib/rest/video/v1/room.d.ts +8 -0
- package/lib/rest/video/v1/room.js +13 -1
- package/lib/rest/wireless/v1/ratePlan.d.ts +1 -1
- package/lib/rest/wireless/v1/ratePlan.js +3 -3
- package/lib/rest/wireless/v1/sim.d.ts +4 -4
- package/lib/rest/wireless/v1/sim.js +18 -24
- package/lib/twiml/VoiceResponse.d.ts +1296 -24
- package/lib/twiml/VoiceResponse.js +2170 -82
- package/package.json +2 -2
|
@@ -8,11 +8,15 @@
|
|
|
8
8
|
import Page = require('../../../base/Page');
|
|
9
9
|
import Response = require('../../../http/response');
|
|
10
10
|
import V1 = require('../V1');
|
|
11
|
+
import { BrandVettingList } from './brandRegistration/brandVetting';
|
|
12
|
+
import { BrandVettingListInstance } from './brandRegistration/brandVetting';
|
|
11
13
|
import { SerializableClass } from '../../../interfaces';
|
|
12
14
|
|
|
15
|
+
type BrandRegistrationBrandFeedback = 'TAX_ID'|'STOCK_SYMBOL'|'NONPROFIT'|'GOVERNMENT_ENTITY'|'OTHERS';
|
|
16
|
+
|
|
13
17
|
type BrandRegistrationIdentityStatus = 'SELF_DECLARED'|'UNVERIFIED'|'VERIFIED'|'VETTED_VERIFIED';
|
|
14
18
|
|
|
15
|
-
type BrandRegistrationStatus = 'PENDING'|'APPROVED'|'FAILED';
|
|
19
|
+
type BrandRegistrationStatus = 'PENDING'|'APPROVED'|'FAILED'|'IN_REVIEW'|'DELETED';
|
|
16
20
|
|
|
17
21
|
/**
|
|
18
22
|
* Initialize the BrandRegistrationList
|
|
@@ -224,6 +228,7 @@ interface BrandRegistrationPayload extends BrandRegistrationResource, Page.Twili
|
|
|
224
228
|
interface BrandRegistrationResource {
|
|
225
229
|
a2p_profile_bundle_sid: string;
|
|
226
230
|
account_sid: string;
|
|
231
|
+
brand_feedback: BrandRegistrationBrandFeedback[];
|
|
227
232
|
brand_score: number;
|
|
228
233
|
brand_type: string;
|
|
229
234
|
customer_profile_bundle_sid: string;
|
|
@@ -231,6 +236,7 @@ interface BrandRegistrationResource {
|
|
|
231
236
|
date_updated: Date;
|
|
232
237
|
failure_reason: string;
|
|
233
238
|
identity_status: BrandRegistrationIdentityStatus;
|
|
239
|
+
links: string;
|
|
234
240
|
mock: boolean;
|
|
235
241
|
russell_3000: boolean;
|
|
236
242
|
sid: string;
|
|
@@ -257,6 +263,7 @@ declare class BrandRegistrationContext {
|
|
|
257
263
|
*/
|
|
258
264
|
constructor(version: V1, sid: string);
|
|
259
265
|
|
|
266
|
+
brandVettings: BrandVettingListInstance;
|
|
260
267
|
/**
|
|
261
268
|
* fetch a BrandRegistrationInstance
|
|
262
269
|
*
|
|
@@ -286,8 +293,13 @@ declare class BrandRegistrationInstance extends SerializableClass {
|
|
|
286
293
|
private _proxy: BrandRegistrationContext;
|
|
287
294
|
a2PProfileBundleSid: string;
|
|
288
295
|
accountSid: string;
|
|
296
|
+
brandFeedback: BrandRegistrationBrandFeedback[];
|
|
289
297
|
brandScore: number;
|
|
290
298
|
brandType: string;
|
|
299
|
+
/**
|
|
300
|
+
* Access the brandVettings
|
|
301
|
+
*/
|
|
302
|
+
brandVettings(): BrandVettingListInstance;
|
|
291
303
|
customerProfileBundleSid: string;
|
|
292
304
|
dateCreated: Date;
|
|
293
305
|
dateUpdated: Date;
|
|
@@ -299,6 +311,7 @@ declare class BrandRegistrationInstance extends SerializableClass {
|
|
|
299
311
|
*/
|
|
300
312
|
fetch(callback?: (error: Error | null, items: BrandRegistrationInstance) => any): Promise<BrandRegistrationInstance>;
|
|
301
313
|
identityStatus: BrandRegistrationIdentityStatus;
|
|
314
|
+
links: string;
|
|
302
315
|
mock: boolean;
|
|
303
316
|
russell3000: boolean;
|
|
304
317
|
sid: string;
|
|
@@ -339,4 +352,4 @@ declare class BrandRegistrationPage extends Page<V1, BrandRegistrationPayload, B
|
|
|
339
352
|
toJSON(): any;
|
|
340
353
|
}
|
|
341
354
|
|
|
342
|
-
export { BrandRegistrationContext, BrandRegistrationIdentityStatus, BrandRegistrationInstance, BrandRegistrationList, BrandRegistrationListInstance, BrandRegistrationListInstanceCreateOptions, BrandRegistrationListInstanceEachOptions, BrandRegistrationListInstanceOptions, BrandRegistrationListInstancePageOptions, BrandRegistrationPage, BrandRegistrationPayload, BrandRegistrationResource, BrandRegistrationSolution, BrandRegistrationStatus }
|
|
355
|
+
export { BrandRegistrationBrandFeedback, BrandRegistrationContext, BrandRegistrationIdentityStatus, BrandRegistrationInstance, BrandRegistrationList, BrandRegistrationListInstance, BrandRegistrationListInstanceCreateOptions, BrandRegistrationListInstanceEachOptions, BrandRegistrationListInstanceOptions, BrandRegistrationListInstancePageOptions, BrandRegistrationPage, BrandRegistrationPayload, BrandRegistrationResource, BrandRegistrationSolution, BrandRegistrationStatus }
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
var Q = require('q'); /* jshint ignore:line */
|
|
13
13
|
var _ = require('lodash'); /* jshint ignore:line */
|
|
14
14
|
var util = require('util'); /* jshint ignore:line */
|
|
15
|
+
var BrandVettingList = require(
|
|
16
|
+
'./brandRegistration/brandVetting').BrandVettingList;
|
|
15
17
|
var Page = require('../../../base/Page'); /* jshint ignore:line */
|
|
16
18
|
var deserialize = require(
|
|
17
19
|
'../../../base/deserialize'); /* jshint ignore:line */
|
|
@@ -480,17 +482,19 @@ BrandRegistrationPage.prototype[util.inspect.custom] = function inspect(depth,
|
|
|
480
482
|
* @property {Date} dateUpdated -
|
|
481
483
|
* The ISO 8601 date and time in GMT when the resource was last updated
|
|
482
484
|
* @property {string} brandType - Type of brand. One of: "STANDARD", "STARTER".
|
|
483
|
-
* @property {brand_registration.status} status - Brand Registration status
|
|
485
|
+
* @property {brand_registration.status} status - Brand Registration status.
|
|
484
486
|
* @property {string} tcrId - Campaign Registry (TCR) Brand ID
|
|
485
487
|
* @property {string} failureReason - A reason why brand registration has failed
|
|
486
488
|
* @property {string} url - The absolute URL of the Brand Registration
|
|
487
489
|
* @property {number} brandScore - Brand score
|
|
490
|
+
* @property {brand_registration.brand_feedback} brandFeedback - Brand feedback
|
|
488
491
|
* @property {brand_registration.identity_status} identityStatus - Identity Status
|
|
489
492
|
* @property {boolean} russell3000 - Russell 3000
|
|
490
493
|
* @property {string} taxExemptStatus - Tax Exempt Status
|
|
491
494
|
* @property {boolean} skipAutomaticSecVet - Skip Automatic Secondary Vetting
|
|
492
495
|
* @property {boolean} mock -
|
|
493
496
|
* A boolean that specifies whether brand should be a mock or not. If true, brand will be registered as a mock brand. Defaults to false if no value is provided.
|
|
497
|
+
* @property {string} links - The links
|
|
494
498
|
*
|
|
495
499
|
* @param {V1} version - Version of the resource
|
|
496
500
|
* @param {BrandRegistrationPayload} payload - The instance payload
|
|
@@ -514,11 +518,13 @@ BrandRegistrationInstance = function BrandRegistrationInstance(version, payload,
|
|
|
514
518
|
this.failureReason = payload.failure_reason; // jshint ignore:line
|
|
515
519
|
this.url = payload.url; // jshint ignore:line
|
|
516
520
|
this.brandScore = deserialize.integer(payload.brand_score); // jshint ignore:line
|
|
521
|
+
this.brandFeedback = payload.brand_feedback; // jshint ignore:line
|
|
517
522
|
this.identityStatus = payload.identity_status; // jshint ignore:line
|
|
518
523
|
this.russell3000 = payload.russell_3000; // jshint ignore:line
|
|
519
524
|
this.taxExemptStatus = payload.tax_exempt_status; // jshint ignore:line
|
|
520
525
|
this.skipAutomaticSecVet = payload.skip_automatic_sec_vet; // jshint ignore:line
|
|
521
526
|
this.mock = payload.mock; // jshint ignore:line
|
|
527
|
+
this.links = payload.links; // jshint ignore:line
|
|
522
528
|
|
|
523
529
|
// Context
|
|
524
530
|
this._context = undefined;
|
|
@@ -552,6 +558,20 @@ BrandRegistrationInstance.prototype.fetch = function fetch(callback) {
|
|
|
552
558
|
return this._proxy.fetch(callback);
|
|
553
559
|
};
|
|
554
560
|
|
|
561
|
+
/* jshint ignore:start */
|
|
562
|
+
/**
|
|
563
|
+
* Access the brandVettings
|
|
564
|
+
*
|
|
565
|
+
* @function brandVettings
|
|
566
|
+
* @memberof Twilio.Messaging.V1.BrandRegistrationInstance#
|
|
567
|
+
*
|
|
568
|
+
* @returns {Twilio.Messaging.V1.BrandRegistrationContext.BrandVettingList}
|
|
569
|
+
*/
|
|
570
|
+
/* jshint ignore:end */
|
|
571
|
+
BrandRegistrationInstance.prototype.brandVettings = function brandVettings() {
|
|
572
|
+
return this._proxy.brandVettings;
|
|
573
|
+
};
|
|
574
|
+
|
|
555
575
|
/* jshint ignore:start */
|
|
556
576
|
/**
|
|
557
577
|
* Provide a user-friendly representation
|
|
@@ -587,6 +607,9 @@ BrandRegistrationInstance.prototype[util.inspect.custom] = function
|
|
|
587
607
|
*
|
|
588
608
|
* @constructor Twilio.Messaging.V1.BrandRegistrationContext
|
|
589
609
|
*
|
|
610
|
+
* @property {Twilio.Messaging.V1.BrandRegistrationContext.BrandVettingList} brandVettings -
|
|
611
|
+
* brandVettings resource
|
|
612
|
+
*
|
|
590
613
|
* @param {V1} version - Version of the resource
|
|
591
614
|
* @param {sid} sid - The SID that identifies the resource to fetch
|
|
592
615
|
*/
|
|
@@ -597,6 +620,9 @@ BrandRegistrationContext = function BrandRegistrationContext(version, sid) {
|
|
|
597
620
|
// Path Solution
|
|
598
621
|
this._solution = {sid: sid, };
|
|
599
622
|
this._uri = `/a2p/BrandRegistrations/${sid}`;
|
|
623
|
+
|
|
624
|
+
// Dependents
|
|
625
|
+
this._brandVettings = undefined;
|
|
600
626
|
};
|
|
601
627
|
|
|
602
628
|
/* jshint ignore:start */
|
|
@@ -630,6 +656,16 @@ BrandRegistrationContext.prototype.fetch = function fetch(callback) {
|
|
|
630
656
|
return deferred.promise;
|
|
631
657
|
};
|
|
632
658
|
|
|
659
|
+
Object.defineProperty(BrandRegistrationContext.prototype,
|
|
660
|
+
'brandVettings', {
|
|
661
|
+
get: function() {
|
|
662
|
+
if (!this._brandVettings) {
|
|
663
|
+
this._brandVettings = new BrandVettingList(this._version, this._solution.sid);
|
|
664
|
+
}
|
|
665
|
+
return this._brandVettings;
|
|
666
|
+
}
|
|
667
|
+
});
|
|
668
|
+
|
|
633
669
|
/* jshint ignore:start */
|
|
634
670
|
/**
|
|
635
671
|
* Provide a user-friendly representation
|
|
@@ -49,6 +49,7 @@ declare function ServiceList(version: V1): ServiceListInstance;
|
|
|
49
49
|
* @property stickySender - Whether to enable Sticky Sender on the Service instance
|
|
50
50
|
* @property synchronousValidation - Reserved
|
|
51
51
|
* @property useInboundWebhookOnNumber - If enabled, the webhook url configured on the phone number will be used and will override the `inbound_request_url`/`fallback_url` url called when an inbound message is received.
|
|
52
|
+
* @property usecase - A string describing the scenario in which the Messaging Service will be used
|
|
52
53
|
* @property validityPeriod - How long, in seconds, messages sent from the Service are valid
|
|
53
54
|
*/
|
|
54
55
|
interface ServiceInstanceUpdateOptions {
|
|
@@ -66,6 +67,7 @@ interface ServiceInstanceUpdateOptions {
|
|
|
66
67
|
stickySender?: boolean;
|
|
67
68
|
synchronousValidation?: boolean;
|
|
68
69
|
useInboundWebhookOnNumber?: boolean;
|
|
70
|
+
usecase?: string;
|
|
69
71
|
validityPeriod?: number;
|
|
70
72
|
}
|
|
71
73
|
|
|
@@ -206,6 +208,7 @@ interface ServiceListInstance {
|
|
|
206
208
|
* @property stickySender - Whether to enable Sticky Sender on the Service instance
|
|
207
209
|
* @property synchronousValidation - Reserved
|
|
208
210
|
* @property useInboundWebhookOnNumber - If enabled, the webhook url configured on the phone number will be used and will override the `inbound_request_url`/`fallback_url` url called when an inbound message is received.
|
|
211
|
+
* @property usecase - A string describing the scenario in which the Messaging Service will be used
|
|
209
212
|
* @property validityPeriod - How long, in seconds, messages sent from the Service are valid
|
|
210
213
|
*/
|
|
211
214
|
interface ServiceListInstanceCreateOptions {
|
|
@@ -223,6 +226,7 @@ interface ServiceListInstanceCreateOptions {
|
|
|
223
226
|
stickySender?: boolean;
|
|
224
227
|
synchronousValidation?: boolean;
|
|
225
228
|
useInboundWebhookOnNumber?: boolean;
|
|
229
|
+
usecase?: string;
|
|
226
230
|
validityPeriod?: number;
|
|
227
231
|
}
|
|
228
232
|
|
|
@@ -306,7 +310,9 @@ interface ServiceResource {
|
|
|
306
310
|
sticky_sender: boolean;
|
|
307
311
|
synchronous_validation: boolean;
|
|
308
312
|
url: string;
|
|
313
|
+
us_app_to_person_registered: boolean;
|
|
309
314
|
use_inbound_webhook_on_number: boolean;
|
|
315
|
+
usecase: string;
|
|
310
316
|
validity_period: number;
|
|
311
317
|
}
|
|
312
318
|
|
|
@@ -441,11 +447,13 @@ declare class ServiceInstance extends SerializableClass {
|
|
|
441
447
|
* Access the usAppToPerson
|
|
442
448
|
*/
|
|
443
449
|
usAppToPerson(): UsAppToPersonListInstance;
|
|
450
|
+
usAppToPersonRegistered: boolean;
|
|
444
451
|
/**
|
|
445
452
|
* Access the usAppToPersonUsecases
|
|
446
453
|
*/
|
|
447
454
|
usAppToPersonUsecases(): UsAppToPersonUsecaseListInstance;
|
|
448
455
|
useInboundWebhookOnNumber: boolean;
|
|
456
|
+
usecase: string;
|
|
449
457
|
validityPeriod: number;
|
|
450
458
|
}
|
|
451
459
|
|
|
@@ -93,6 +93,8 @@ ServiceList = function ServiceList(version) {
|
|
|
93
93
|
* @param {number} [opts.validityPeriod] -
|
|
94
94
|
* How long, in seconds, messages sent from the Service are valid
|
|
95
95
|
* @param {boolean} [opts.synchronousValidation] - Reserved
|
|
96
|
+
* @param {string} [opts.usecase] -
|
|
97
|
+
* A string describing the scenario in which the Messaging Service will be used
|
|
96
98
|
* @param {boolean} [opts.useInboundWebhookOnNumber] -
|
|
97
99
|
* If enabled, the webhook url configured on the phone number will be used and will override the `inbound_request_url`/`fallback_url` url called when an inbound message is received.
|
|
98
100
|
* @param {function} [callback] - Callback to handle processed record
|
|
@@ -124,6 +126,7 @@ ServiceList = function ServiceList(version) {
|
|
|
124
126
|
'AreaCodeGeomatch': serialize.bool(_.get(opts, 'areaCodeGeomatch')),
|
|
125
127
|
'ValidityPeriod': _.get(opts, 'validityPeriod'),
|
|
126
128
|
'SynchronousValidation': serialize.bool(_.get(opts, 'synchronousValidation')),
|
|
129
|
+
'Usecase': _.get(opts, 'usecase'),
|
|
127
130
|
'UseInboundWebhookOnNumber': serialize.bool(_.get(opts, 'useInboundWebhookOnNumber'))
|
|
128
131
|
});
|
|
129
132
|
|
|
@@ -533,6 +536,10 @@ ServicePage.prototype[util.inspect.custom] = function inspect(depth, options) {
|
|
|
533
536
|
* How long, in seconds, messages sent from the Service are valid
|
|
534
537
|
* @property {string} url - The absolute URL of the Service resource
|
|
535
538
|
* @property {string} links - The absolute URLs of related resources
|
|
539
|
+
* @property {string} usecase -
|
|
540
|
+
* A string describing the scenario in which the Messaging Service will be used
|
|
541
|
+
* @property {boolean} usAppToPersonRegistered -
|
|
542
|
+
* Whether US A2P campaign is registered for this Service.
|
|
536
543
|
* @property {boolean} useInboundWebhookOnNumber -
|
|
537
544
|
* If enabled, the webhook url configured on the phone number will be used and will override the `inbound_request_url`/`fallback_url` url called when an inbound message is received.
|
|
538
545
|
*
|
|
@@ -565,6 +572,8 @@ ServiceInstance = function ServiceInstance(version, payload, sid) {
|
|
|
565
572
|
this.validityPeriod = deserialize.integer(payload.validity_period); // jshint ignore:line
|
|
566
573
|
this.url = payload.url; // jshint ignore:line
|
|
567
574
|
this.links = payload.links; // jshint ignore:line
|
|
575
|
+
this.usecase = payload.usecase; // jshint ignore:line
|
|
576
|
+
this.usAppToPersonRegistered = payload.us_app_to_person_registered; // jshint ignore:line
|
|
568
577
|
this.useInboundWebhookOnNumber = payload.use_inbound_webhook_on_number; // jshint ignore:line
|
|
569
578
|
|
|
570
579
|
// Context
|
|
@@ -616,6 +625,8 @@ Object.defineProperty(ServiceInstance.prototype,
|
|
|
616
625
|
* @param {number} [opts.validityPeriod] -
|
|
617
626
|
* How long, in seconds, messages sent from the Service are valid
|
|
618
627
|
* @param {boolean} [opts.synchronousValidation] - Reserved
|
|
628
|
+
* @param {string} [opts.usecase] -
|
|
629
|
+
* A string describing the scenario in which the Messaging Service will be used
|
|
619
630
|
* @param {boolean} [opts.useInboundWebhookOnNumber] -
|
|
620
631
|
* If enabled, the webhook url configured on the phone number will be used and will override the `inbound_request_url`/`fallback_url` url called when an inbound message is received.
|
|
621
632
|
* @param {function} [callback] - Callback to handle processed record
|
|
@@ -828,6 +839,8 @@ ServiceContext = function ServiceContext(version, sid) {
|
|
|
828
839
|
* @param {number} [opts.validityPeriod] -
|
|
829
840
|
* How long, in seconds, messages sent from the Service are valid
|
|
830
841
|
* @param {boolean} [opts.synchronousValidation] - Reserved
|
|
842
|
+
* @param {string} [opts.usecase] -
|
|
843
|
+
* A string describing the scenario in which the Messaging Service will be used
|
|
831
844
|
* @param {boolean} [opts.useInboundWebhookOnNumber] -
|
|
832
845
|
* If enabled, the webhook url configured on the phone number will be used and will override the `inbound_request_url`/`fallback_url` url called when an inbound message is received.
|
|
833
846
|
* @param {function} [callback] - Callback to handle processed record
|
|
@@ -858,6 +871,7 @@ ServiceContext.prototype.update = function update(opts, callback) {
|
|
|
858
871
|
'AreaCodeGeomatch': serialize.bool(_.get(opts, 'areaCodeGeomatch')),
|
|
859
872
|
'ValidityPeriod': _.get(opts, 'validityPeriod'),
|
|
860
873
|
'SynchronousValidation': serialize.bool(_.get(opts, 'synchronousValidation')),
|
|
874
|
+
'Usecase': _.get(opts, 'usecase'),
|
|
861
875
|
'UseInboundWebhookOnNumber': serialize.bool(_.get(opts, 'useInboundWebhookOnNumber'))
|
|
862
876
|
});
|
|
863
877
|
|
|
@@ -12,7 +12,7 @@ import { BuildStatusList } from './build/buildStatus';
|
|
|
12
12
|
import { BuildStatusListInstance } from './build/buildStatus';
|
|
13
13
|
import { SerializableClass } from '../../../../interfaces';
|
|
14
14
|
|
|
15
|
-
type BuildRuntime = 'node8'|'node10'|'node12';
|
|
15
|
+
type BuildRuntime = 'node8'|'node10'|'node12'|'node14';
|
|
16
16
|
|
|
17
17
|
type BuildStatus = 'building'|'completed'|'failed';
|
|
18
18
|
|
|
@@ -11,6 +11,8 @@ import { CommandList } from './v1/command';
|
|
|
11
11
|
import { CommandListInstance } from './v1/command';
|
|
12
12
|
import { FleetList } from './v1/fleet';
|
|
13
13
|
import { FleetListInstance } from './v1/fleet';
|
|
14
|
+
import { IpCommandList } from './v1/ipCommand';
|
|
15
|
+
import { IpCommandListInstance } from './v1/ipCommand';
|
|
14
16
|
import { NetworkAccessProfileList } from './v1/networkAccessProfile';
|
|
15
17
|
import { NetworkAccessProfileListInstance } from './v1/networkAccessProfile';
|
|
16
18
|
import { NetworkList } from './v1/network';
|
|
@@ -33,6 +35,7 @@ declare class V1 extends Version {
|
|
|
33
35
|
|
|
34
36
|
readonly commands: CommandListInstance;
|
|
35
37
|
readonly fleets: FleetListInstance;
|
|
38
|
+
readonly ipCommands: IpCommandListInstance;
|
|
36
39
|
readonly networkAccessProfiles: NetworkAccessProfileListInstance;
|
|
37
40
|
readonly networks: NetworkListInstance;
|
|
38
41
|
readonly sims: SimListInstance;
|
package/lib/rest/supersim/V1.js
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
var _ = require('lodash'); /* jshint ignore:line */
|
|
13
13
|
var CommandList = require('./v1/command').CommandList;
|
|
14
14
|
var FleetList = require('./v1/fleet').FleetList;
|
|
15
|
+
var IpCommandList = require('./v1/ipCommand').IpCommandList;
|
|
15
16
|
var NetworkAccessProfileList = require(
|
|
16
17
|
'./v1/networkAccessProfile').NetworkAccessProfileList;
|
|
17
18
|
var NetworkList = require('./v1/network').NetworkList;
|
|
@@ -29,6 +30,7 @@ var Version = require('../../base/Version'); /* jshint ignore:line */
|
|
|
29
30
|
*
|
|
30
31
|
* @property {Twilio.Supersim.V1.CommandList} commands - commands resource
|
|
31
32
|
* @property {Twilio.Supersim.V1.FleetList} fleets - fleets resource
|
|
33
|
+
* @property {Twilio.Supersim.V1.IpCommandList} ipCommands - ipCommands resource
|
|
32
34
|
* @property {Twilio.Supersim.V1.NetworkList} networks - networks resource
|
|
33
35
|
* @property {Twilio.Supersim.V1.NetworkAccessProfileList} networkAccessProfiles -
|
|
34
36
|
* networkAccessProfiles resource
|
|
@@ -46,6 +48,7 @@ function V1(domain) {
|
|
|
46
48
|
// Resources
|
|
47
49
|
this._commands = undefined;
|
|
48
50
|
this._fleets = undefined;
|
|
51
|
+
this._ipCommands = undefined;
|
|
49
52
|
this._networks = undefined;
|
|
50
53
|
this._networkAccessProfiles = undefined;
|
|
51
54
|
this._sims = undefined;
|
|
@@ -72,6 +75,14 @@ Object.defineProperty(V1.prototype,
|
|
|
72
75
|
}
|
|
73
76
|
});
|
|
74
77
|
|
|
78
|
+
Object.defineProperty(V1.prototype,
|
|
79
|
+
'ipCommands', {
|
|
80
|
+
get: function() {
|
|
81
|
+
this._ipCommands = this._ipCommands || new IpCommandList(this);
|
|
82
|
+
return this._ipCommands;
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
|
|
75
86
|
Object.defineProperty(V1.prototype,
|
|
76
87
|
'networks', {
|
|
77
88
|
get: function() {
|