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
|
@@ -17,8 +17,6 @@ var MessageInteractionList = require(
|
|
|
17
17
|
var Page = require('../../../../../base/Page'); /* jshint ignore:line */
|
|
18
18
|
var deserialize = require(
|
|
19
19
|
'../../../../../base/deserialize'); /* jshint ignore:line */
|
|
20
|
-
var serialize = require(
|
|
21
|
-
'../../../../../base/serialize'); /* jshint ignore:line */
|
|
22
20
|
var values = require('../../../../../base/values'); /* jshint ignore:line */
|
|
23
21
|
|
|
24
22
|
var ParticipantList;
|
|
@@ -317,8 +315,6 @@ ParticipantList = function ParticipantList(version, serviceSid, sessionSid) {
|
|
|
317
315
|
* @param {string} [opts.proxyIdentifier] -
|
|
318
316
|
* The proxy phone number to use for the Participant
|
|
319
317
|
* @param {string} [opts.proxyIdentifierSid] - The Proxy Identifier Sid
|
|
320
|
-
* @param {boolean} [opts.failOnParticipantConflict] -
|
|
321
|
-
* An experimental parameter to override the ProxyAllowParticipantConflict account flag on a per-request basis.
|
|
322
318
|
* @param {function} [callback] - Callback to handle processed record
|
|
323
319
|
*
|
|
324
320
|
* @returns {Promise} Resolves to processed ParticipantInstance
|
|
@@ -337,8 +333,7 @@ ParticipantList = function ParticipantList(version, serviceSid, sessionSid) {
|
|
|
337
333
|
'Identifier': _.get(opts, 'identifier'),
|
|
338
334
|
'FriendlyName': _.get(opts, 'friendlyName'),
|
|
339
335
|
'ProxyIdentifier': _.get(opts, 'proxyIdentifier'),
|
|
340
|
-
'ProxyIdentifierSid': _.get(opts, 'proxyIdentifierSid')
|
|
341
|
-
'FailOnParticipantConflict': serialize.bool(_.get(opts, 'failOnParticipantConflict'))
|
|
336
|
+
'ProxyIdentifierSid': _.get(opts, 'proxyIdentifierSid')
|
|
342
337
|
});
|
|
343
338
|
|
|
344
339
|
var promise = this._version.create({uri: this._uri, method: 'POST', data: data});
|
|
@@ -33,13 +33,11 @@ declare function SessionList(version: V1, serviceSid: string): SessionListInstan
|
|
|
33
33
|
* Options to pass to update
|
|
34
34
|
*
|
|
35
35
|
* @property dateExpiry - The ISO 8601 date when the Session should expire
|
|
36
|
-
* @property failOnParticipantConflict - An experimental parameter to override the ProxyAllowParticipantConflict account flag on a per-request basis.
|
|
37
36
|
* @property status - The new status of the resource
|
|
38
37
|
* @property ttl - When the session will expire
|
|
39
38
|
*/
|
|
40
39
|
interface SessionInstanceUpdateOptions {
|
|
41
40
|
dateExpiry?: Date;
|
|
42
|
-
failOnParticipantConflict?: boolean;
|
|
43
41
|
status?: SessionStatus;
|
|
44
42
|
ttl?: number;
|
|
45
43
|
}
|
|
@@ -174,7 +172,6 @@ interface SessionListInstance {
|
|
|
174
172
|
* Options to pass to create
|
|
175
173
|
*
|
|
176
174
|
* @property dateExpiry - The ISO 8601 date when the Session should expire
|
|
177
|
-
* @property failOnParticipantConflict - An experimental parameter to override the ProxyAllowParticipantConflict account flag on a per-request basis.
|
|
178
175
|
* @property mode - The Mode of the Session
|
|
179
176
|
* @property participants - The Participant objects to include in the new session
|
|
180
177
|
* @property status - Session status
|
|
@@ -183,7 +180,6 @@ interface SessionListInstance {
|
|
|
183
180
|
*/
|
|
184
181
|
interface SessionListInstanceCreateOptions {
|
|
185
182
|
dateExpiry?: Date;
|
|
186
|
-
failOnParticipantConflict?: boolean;
|
|
187
183
|
mode?: SessionMode;
|
|
188
184
|
participants?: object | object[];
|
|
189
185
|
status?: SessionStatus;
|
|
@@ -318,8 +318,6 @@ SessionList = function SessionList(version, serviceSid) {
|
|
|
318
318
|
* @param {session.status} [opts.status] - Session status
|
|
319
319
|
* @param {object|list} [opts.participants] -
|
|
320
320
|
* The Participant objects to include in the new session
|
|
321
|
-
* @param {boolean} [opts.failOnParticipantConflict] -
|
|
322
|
-
* An experimental parameter to override the ProxyAllowParticipantConflict account flag on a per-request basis.
|
|
323
321
|
* @param {function} [callback] - Callback to handle processed record
|
|
324
322
|
*
|
|
325
323
|
* @returns {Promise} Resolves to processed SessionInstance
|
|
@@ -339,8 +337,7 @@ SessionList = function SessionList(version, serviceSid) {
|
|
|
339
337
|
'Ttl': _.get(opts, 'ttl'),
|
|
340
338
|
'Mode': _.get(opts, 'mode'),
|
|
341
339
|
'Status': _.get(opts, 'status'),
|
|
342
|
-
'Participants': serialize.map(_.get(opts, 'participants'), function(e) { return serialize.object(e); })
|
|
343
|
-
'FailOnParticipantConflict': serialize.bool(_.get(opts, 'failOnParticipantConflict'))
|
|
340
|
+
'Participants': serialize.map(_.get(opts, 'participants'), function(e) { return serialize.object(e); })
|
|
344
341
|
});
|
|
345
342
|
|
|
346
343
|
var promise = this._version.create({uri: this._uri, method: 'POST', data: data});
|
|
@@ -587,8 +584,6 @@ SessionInstance.prototype.remove = function remove(callback) {
|
|
|
587
584
|
* The ISO 8601 date when the Session should expire
|
|
588
585
|
* @param {number} [opts.ttl] - When the session will expire
|
|
589
586
|
* @param {session.status} [opts.status] - The new status of the resource
|
|
590
|
-
* @param {boolean} [opts.failOnParticipantConflict] -
|
|
591
|
-
* An experimental parameter to override the ProxyAllowParticipantConflict account flag on a per-request basis.
|
|
592
587
|
* @param {function} [callback] - Callback to handle processed record
|
|
593
588
|
*
|
|
594
589
|
* @returns {Promise} Resolves to processed SessionInstance
|
|
@@ -762,8 +757,6 @@ SessionContext.prototype.remove = function remove(callback) {
|
|
|
762
757
|
* The ISO 8601 date when the Session should expire
|
|
763
758
|
* @param {number} [opts.ttl] - When the session will expire
|
|
764
759
|
* @param {session.status} [opts.status] - The new status of the resource
|
|
765
|
-
* @param {boolean} [opts.failOnParticipantConflict] -
|
|
766
|
-
* An experimental parameter to override the ProxyAllowParticipantConflict account flag on a per-request basis.
|
|
767
760
|
* @param {function} [callback] - Callback to handle processed record
|
|
768
761
|
*
|
|
769
762
|
* @returns {Promise} Resolves to processed SessionInstance
|
|
@@ -780,8 +773,7 @@ SessionContext.prototype.update = function update(opts, callback) {
|
|
|
780
773
|
var data = values.of({
|
|
781
774
|
'DateExpiry': serialize.iso8601DateTime(_.get(opts, 'dateExpiry')),
|
|
782
775
|
'Ttl': _.get(opts, 'ttl'),
|
|
783
|
-
'Status': _.get(opts, 'status')
|
|
784
|
-
'FailOnParticipantConflict': serialize.bool(_.get(opts, 'failOnParticipantConflict'))
|
|
776
|
+
'Status': _.get(opts, 'status')
|
|
785
777
|
});
|
|
786
778
|
|
|
787
779
|
var promise = this._version.update({uri: this._uri, method: 'POST', data: data});
|
|
@@ -17,6 +17,8 @@ import { NetworkAccessProfileList } from './v1/networkAccessProfile';
|
|
|
17
17
|
import { NetworkAccessProfileListInstance } from './v1/networkAccessProfile';
|
|
18
18
|
import { NetworkList } from './v1/network';
|
|
19
19
|
import { NetworkListInstance } from './v1/network';
|
|
20
|
+
import { SettingsUpdateList } from './v1/settingsUpdate';
|
|
21
|
+
import { SettingsUpdateListInstance } from './v1/settingsUpdate';
|
|
20
22
|
import { SimList } from './v1/sim';
|
|
21
23
|
import { SimListInstance } from './v1/sim';
|
|
22
24
|
import { SmsCommandList } from './v1/smsCommand';
|
|
@@ -38,6 +40,7 @@ declare class V1 extends Version {
|
|
|
38
40
|
readonly ipCommands: IpCommandListInstance;
|
|
39
41
|
readonly networkAccessProfiles: NetworkAccessProfileListInstance;
|
|
40
42
|
readonly networks: NetworkListInstance;
|
|
43
|
+
readonly settingsUpdates: SettingsUpdateListInstance;
|
|
41
44
|
readonly sims: SimListInstance;
|
|
42
45
|
readonly smsCommands: SmsCommandListInstance;
|
|
43
46
|
readonly usageRecords: UsageRecordListInstance;
|
package/lib/rest/supersim/V1.js
CHANGED
|
@@ -16,6 +16,7 @@ var IpCommandList = require('./v1/ipCommand').IpCommandList;
|
|
|
16
16
|
var NetworkAccessProfileList = require(
|
|
17
17
|
'./v1/networkAccessProfile').NetworkAccessProfileList;
|
|
18
18
|
var NetworkList = require('./v1/network').NetworkList;
|
|
19
|
+
var SettingsUpdateList = require('./v1/settingsUpdate').SettingsUpdateList;
|
|
19
20
|
var SimList = require('./v1/sim').SimList;
|
|
20
21
|
var SmsCommandList = require('./v1/smsCommand').SmsCommandList;
|
|
21
22
|
var UsageRecordList = require('./v1/usageRecord').UsageRecordList;
|
|
@@ -35,6 +36,8 @@ var Version = require('../../base/Version'); /* jshint ignore:line */
|
|
|
35
36
|
* @property {Twilio.Supersim.V1.NetworkList} networks - networks resource
|
|
36
37
|
* @property {Twilio.Supersim.V1.NetworkAccessProfileList} networkAccessProfiles -
|
|
37
38
|
* networkAccessProfiles resource
|
|
39
|
+
* @property {Twilio.Supersim.V1.SettingsUpdateList} settingsUpdates -
|
|
40
|
+
* settingsUpdates resource
|
|
38
41
|
* @property {Twilio.Supersim.V1.SimList} sims - sims resource
|
|
39
42
|
* @property {Twilio.Supersim.V1.SmsCommandList} smsCommands - smsCommands resource
|
|
40
43
|
* @property {Twilio.Supersim.V1.UsageRecordList} usageRecords -
|
|
@@ -52,6 +55,7 @@ function V1(domain) {
|
|
|
52
55
|
this._ipCommands = undefined;
|
|
53
56
|
this._networks = undefined;
|
|
54
57
|
this._networkAccessProfiles = undefined;
|
|
58
|
+
this._settingsUpdates = undefined;
|
|
55
59
|
this._sims = undefined;
|
|
56
60
|
this._smsCommands = undefined;
|
|
57
61
|
this._usageRecords = undefined;
|
|
@@ -100,6 +104,14 @@ Object.defineProperty(V1.prototype,
|
|
|
100
104
|
}
|
|
101
105
|
});
|
|
102
106
|
|
|
107
|
+
Object.defineProperty(V1.prototype,
|
|
108
|
+
'settingsUpdates', {
|
|
109
|
+
get: function() {
|
|
110
|
+
this._settingsUpdates = this._settingsUpdates || new SettingsUpdateList(this);
|
|
111
|
+
return this._settingsUpdates;
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
|
|
103
115
|
Object.defineProperty(V1.prototype,
|
|
104
116
|
'sims', {
|
|
105
117
|
get: function() {
|
|
@@ -0,0 +1,261 @@
|
|
|
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 SettingsUpdateStatus = 'scheduled'|'in-progress'|'successful'|'failed';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Initialize the SettingsUpdateList
|
|
17
|
+
*
|
|
18
|
+
* PLEASE NOTE that this class contains beta products that are subject to change.
|
|
19
|
+
* Use them with caution.
|
|
20
|
+
*
|
|
21
|
+
* @param version - Version of the resource
|
|
22
|
+
*/
|
|
23
|
+
declare function SettingsUpdateList(version: V1): SettingsUpdateListInstance;
|
|
24
|
+
|
|
25
|
+
interface SettingsUpdateListInstance {
|
|
26
|
+
/**
|
|
27
|
+
* Streams SettingsUpdateInstance records from the API.
|
|
28
|
+
*
|
|
29
|
+
* This operation lazily loads records as efficiently as possible until the limit
|
|
30
|
+
* is reached.
|
|
31
|
+
*
|
|
32
|
+
* The results are passed into the callback function, so this operation is memory
|
|
33
|
+
* efficient.
|
|
34
|
+
*
|
|
35
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
36
|
+
* function.
|
|
37
|
+
*
|
|
38
|
+
* @param callback - Function to process each record
|
|
39
|
+
*/
|
|
40
|
+
each(callback?: (item: SettingsUpdateInstance, done: (err?: Error) => void) => void): void;
|
|
41
|
+
/**
|
|
42
|
+
* Streams SettingsUpdateInstance records from the API.
|
|
43
|
+
*
|
|
44
|
+
* This operation lazily loads records as efficiently as possible until the limit
|
|
45
|
+
* is reached.
|
|
46
|
+
*
|
|
47
|
+
* The results are passed into the callback function, so this operation is memory
|
|
48
|
+
* efficient.
|
|
49
|
+
*
|
|
50
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
51
|
+
* function.
|
|
52
|
+
*
|
|
53
|
+
* @param opts - Options for request
|
|
54
|
+
* @param callback - Function to process each record
|
|
55
|
+
*/
|
|
56
|
+
each(opts?: SettingsUpdateListInstanceEachOptions, callback?: (item: SettingsUpdateInstance, done: (err?: Error) => void) => void): void;
|
|
57
|
+
/**
|
|
58
|
+
* Retrieve a single target page of SettingsUpdateInstance records from the API.
|
|
59
|
+
*
|
|
60
|
+
* The request is executed immediately.
|
|
61
|
+
*
|
|
62
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
63
|
+
* function.
|
|
64
|
+
*
|
|
65
|
+
* @param callback - Callback to handle list of records
|
|
66
|
+
*/
|
|
67
|
+
getPage(callback?: (error: Error | null, items: SettingsUpdatePage) => any): Promise<SettingsUpdatePage>;
|
|
68
|
+
/**
|
|
69
|
+
* Retrieve a single target page of SettingsUpdateInstance records from the API.
|
|
70
|
+
*
|
|
71
|
+
* The request is executed immediately.
|
|
72
|
+
*
|
|
73
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
74
|
+
* function.
|
|
75
|
+
*
|
|
76
|
+
* @param targetUrl - API-generated URL for the requested results page
|
|
77
|
+
* @param callback - Callback to handle list of records
|
|
78
|
+
*/
|
|
79
|
+
getPage(targetUrl?: string, callback?: (error: Error | null, items: SettingsUpdatePage) => any): Promise<SettingsUpdatePage>;
|
|
80
|
+
/**
|
|
81
|
+
* Lists SettingsUpdateInstance records from the API as a list.
|
|
82
|
+
*
|
|
83
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
84
|
+
* function.
|
|
85
|
+
*
|
|
86
|
+
* @param callback - Callback to handle list of records
|
|
87
|
+
*/
|
|
88
|
+
list(callback?: (error: Error | null, items: SettingsUpdateInstance[]) => any): Promise<SettingsUpdateInstance[]>;
|
|
89
|
+
/**
|
|
90
|
+
* Lists SettingsUpdateInstance records from the API as a list.
|
|
91
|
+
*
|
|
92
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
93
|
+
* function.
|
|
94
|
+
*
|
|
95
|
+
* @param opts - Options for request
|
|
96
|
+
* @param callback - Callback to handle list of records
|
|
97
|
+
*/
|
|
98
|
+
list(opts?: SettingsUpdateListInstanceOptions, callback?: (error: Error | null, items: SettingsUpdateInstance[]) => any): Promise<SettingsUpdateInstance[]>;
|
|
99
|
+
/**
|
|
100
|
+
* Retrieve a single page of SettingsUpdateInstance records from the API.
|
|
101
|
+
*
|
|
102
|
+
* The request is executed immediately.
|
|
103
|
+
*
|
|
104
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
105
|
+
* function.
|
|
106
|
+
*
|
|
107
|
+
* @param callback - Callback to handle list of records
|
|
108
|
+
*/
|
|
109
|
+
page(callback?: (error: Error | null, items: SettingsUpdatePage) => any): Promise<SettingsUpdatePage>;
|
|
110
|
+
/**
|
|
111
|
+
* Retrieve a single page of SettingsUpdateInstance records from the API.
|
|
112
|
+
*
|
|
113
|
+
* The request is executed immediately.
|
|
114
|
+
*
|
|
115
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
116
|
+
* function.
|
|
117
|
+
*
|
|
118
|
+
* @param opts - Options for request
|
|
119
|
+
* @param callback - Callback to handle list of records
|
|
120
|
+
*/
|
|
121
|
+
page(opts?: SettingsUpdateListInstancePageOptions, callback?: (error: Error | null, items: SettingsUpdatePage) => any): Promise<SettingsUpdatePage>;
|
|
122
|
+
/**
|
|
123
|
+
* Provide a user-friendly representation
|
|
124
|
+
*/
|
|
125
|
+
toJSON(): any;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Options to pass to each
|
|
130
|
+
*
|
|
131
|
+
* @property callback -
|
|
132
|
+
* Function to process each record. If this and a positional
|
|
133
|
+
* callback are passed, this one will be used
|
|
134
|
+
* @property done - Function to be called upon completion of streaming
|
|
135
|
+
* @property limit -
|
|
136
|
+
* Upper limit for the number of records to return.
|
|
137
|
+
* each() guarantees never to return more than limit.
|
|
138
|
+
* Default is no limit
|
|
139
|
+
* @property pageSize -
|
|
140
|
+
* Number of records to fetch per request,
|
|
141
|
+
* when not set will use the default value of 50 records.
|
|
142
|
+
* If no pageSize is defined but a limit is defined,
|
|
143
|
+
* each() will attempt to read the limit with the most efficient
|
|
144
|
+
* page size, i.e. min(limit, 1000)
|
|
145
|
+
* @property sim - Filter the Settings Updates by Super SIM
|
|
146
|
+
*/
|
|
147
|
+
interface SettingsUpdateListInstanceEachOptions {
|
|
148
|
+
callback?: (item: SettingsUpdateInstance, done: (err?: Error) => void) => void;
|
|
149
|
+
done?: Function;
|
|
150
|
+
limit?: number;
|
|
151
|
+
pageSize?: number;
|
|
152
|
+
sim?: string;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Options to pass to list
|
|
157
|
+
*
|
|
158
|
+
* @property limit -
|
|
159
|
+
* Upper limit for the number of records to return.
|
|
160
|
+
* list() guarantees never to return more than limit.
|
|
161
|
+
* Default is no limit
|
|
162
|
+
* @property pageSize -
|
|
163
|
+
* Number of records to fetch per request,
|
|
164
|
+
* when not set will use the default value of 50 records.
|
|
165
|
+
* If no page_size is defined but a limit is defined,
|
|
166
|
+
* list() will attempt to read the limit with the most
|
|
167
|
+
* efficient page size, i.e. min(limit, 1000)
|
|
168
|
+
* @property sim - Filter the Settings Updates by Super SIM
|
|
169
|
+
*/
|
|
170
|
+
interface SettingsUpdateListInstanceOptions {
|
|
171
|
+
limit?: number;
|
|
172
|
+
pageSize?: number;
|
|
173
|
+
sim?: string;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Options to pass to page
|
|
178
|
+
*
|
|
179
|
+
* @property pageNumber - Page Number, this value is simply for client state
|
|
180
|
+
* @property pageSize - Number of records to return, defaults to 50
|
|
181
|
+
* @property pageToken - PageToken provided by the API
|
|
182
|
+
* @property sim - Filter the Settings Updates by Super SIM
|
|
183
|
+
*/
|
|
184
|
+
interface SettingsUpdateListInstancePageOptions {
|
|
185
|
+
pageNumber?: number;
|
|
186
|
+
pageSize?: number;
|
|
187
|
+
pageToken?: string;
|
|
188
|
+
sim?: string;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
interface SettingsUpdatePayload extends SettingsUpdateResource, Page.TwilioResponsePayload {
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
interface SettingsUpdateResource {
|
|
195
|
+
date_completed: Date;
|
|
196
|
+
date_created: Date;
|
|
197
|
+
date_updated: Date;
|
|
198
|
+
iccid: string;
|
|
199
|
+
packages: object[];
|
|
200
|
+
sid: string;
|
|
201
|
+
sim_sid: string;
|
|
202
|
+
status: SettingsUpdateStatus;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
interface SettingsUpdateSolution {
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
declare class SettingsUpdateInstance extends SerializableClass {
|
|
210
|
+
/**
|
|
211
|
+
* Initialize the SettingsUpdateContext
|
|
212
|
+
*
|
|
213
|
+
* PLEASE NOTE that this class contains beta products that are subject to change.
|
|
214
|
+
* Use them with caution.
|
|
215
|
+
*
|
|
216
|
+
* @param version - Version of the resource
|
|
217
|
+
* @param payload - The instance payload
|
|
218
|
+
*/
|
|
219
|
+
constructor(version: V1, payload: SettingsUpdatePayload);
|
|
220
|
+
|
|
221
|
+
dateCompleted: Date;
|
|
222
|
+
dateCreated: Date;
|
|
223
|
+
dateUpdated: Date;
|
|
224
|
+
iccid: string;
|
|
225
|
+
packages: object[];
|
|
226
|
+
sid: string;
|
|
227
|
+
simSid: string;
|
|
228
|
+
status: SettingsUpdateStatus;
|
|
229
|
+
/**
|
|
230
|
+
* Provide a user-friendly representation
|
|
231
|
+
*/
|
|
232
|
+
toJSON(): any;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
declare class SettingsUpdatePage extends Page<V1, SettingsUpdatePayload, SettingsUpdateResource, SettingsUpdateInstance> {
|
|
237
|
+
/**
|
|
238
|
+
* Initialize the SettingsUpdatePage
|
|
239
|
+
*
|
|
240
|
+
* PLEASE NOTE that this class contains beta products that are subject to change.
|
|
241
|
+
* Use them with caution.
|
|
242
|
+
*
|
|
243
|
+
* @param version - Version of the resource
|
|
244
|
+
* @param response - Response from the API
|
|
245
|
+
* @param solution - Path solution
|
|
246
|
+
*/
|
|
247
|
+
constructor(version: V1, response: Response<string>, solution: SettingsUpdateSolution);
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Build an instance of SettingsUpdateInstance
|
|
251
|
+
*
|
|
252
|
+
* @param payload - Payload response from the API
|
|
253
|
+
*/
|
|
254
|
+
getInstance(payload: SettingsUpdatePayload): SettingsUpdateInstance;
|
|
255
|
+
/**
|
|
256
|
+
* Provide a user-friendly representation
|
|
257
|
+
*/
|
|
258
|
+
toJSON(): any;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
export { SettingsUpdateInstance, SettingsUpdateList, SettingsUpdateListInstance, SettingsUpdateListInstanceEachOptions, SettingsUpdateListInstanceOptions, SettingsUpdateListInstancePageOptions, SettingsUpdatePage, SettingsUpdatePayload, SettingsUpdateResource, SettingsUpdateSolution, SettingsUpdateStatus }
|