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
|
@@ -14,15 +14,17 @@ import { InteractionChannelParticipantList } from './interactionChannel/interact
|
|
|
14
14
|
import { InteractionChannelParticipantListInstance } from './interactionChannel/interactionChannelParticipant';
|
|
15
15
|
import { SerializableClass } from '../../../../interfaces';
|
|
16
16
|
|
|
17
|
+
type InteractionChannelChannelStatus = 'setup'|'active'|'failed'|'closed';
|
|
18
|
+
|
|
17
19
|
type InteractionChannelStatus = 'close'|'closed'|'wrapup';
|
|
18
20
|
|
|
19
|
-
type InteractionChannelType = 'voice'|'sms'|'email'|'web'|'whatsapp'|'chat';
|
|
21
|
+
type InteractionChannelType = 'voice'|'sms'|'email'|'web'|'whatsapp'|'chat'|'messenger'|'gbm';
|
|
20
22
|
|
|
21
23
|
/**
|
|
22
24
|
* Initialize the InteractionChannelList
|
|
23
25
|
*
|
|
24
26
|
* @param version - Version of the resource
|
|
25
|
-
* @param interactionSid - The unique string that identifies the resource
|
|
27
|
+
* @param interactionSid - The unique string that identifies the resource.
|
|
26
28
|
*/
|
|
27
29
|
declare function InteractionChannelList(version: V1, interactionSid: string): InteractionChannelListInstance;
|
|
28
30
|
|
|
@@ -213,9 +215,12 @@ interface InteractionChannelPayload extends InteractionChannelResource, Page.Twi
|
|
|
213
215
|
}
|
|
214
216
|
|
|
215
217
|
interface InteractionChannelResource {
|
|
218
|
+
error_code: number;
|
|
219
|
+
error_message: string;
|
|
216
220
|
interaction_sid: string;
|
|
217
221
|
links: string;
|
|
218
222
|
sid: string;
|
|
223
|
+
status: InteractionChannelChannelStatus;
|
|
219
224
|
type: InteractionChannelType;
|
|
220
225
|
url: string;
|
|
221
226
|
}
|
|
@@ -263,12 +268,14 @@ declare class InteractionChannelInstance extends SerializableClass {
|
|
|
263
268
|
*
|
|
264
269
|
* @param version - Version of the resource
|
|
265
270
|
* @param payload - The instance payload
|
|
266
|
-
* @param interactionSid - The unique string that identifies the resource
|
|
271
|
+
* @param interactionSid - The unique string that identifies the resource.
|
|
267
272
|
* @param sid - The unique string that identifies the resource
|
|
268
273
|
*/
|
|
269
274
|
constructor(version: V1, payload: InteractionChannelPayload, interactionSid: string, sid: string);
|
|
270
275
|
|
|
271
276
|
private _proxy: InteractionChannelContext;
|
|
277
|
+
errorCode: number;
|
|
278
|
+
errorMessage: string;
|
|
272
279
|
/**
|
|
273
280
|
* fetch a InteractionChannelInstance
|
|
274
281
|
*
|
|
@@ -286,6 +293,7 @@ declare class InteractionChannelInstance extends SerializableClass {
|
|
|
286
293
|
*/
|
|
287
294
|
participants(): InteractionChannelParticipantListInstance;
|
|
288
295
|
sid: string;
|
|
296
|
+
status: InteractionChannelChannelStatus;
|
|
289
297
|
/**
|
|
290
298
|
* Provide a user-friendly representation
|
|
291
299
|
*/
|
|
@@ -324,4 +332,4 @@ declare class InteractionChannelPage extends Page<V1, InteractionChannelPayload,
|
|
|
324
332
|
toJSON(): any;
|
|
325
333
|
}
|
|
326
334
|
|
|
327
|
-
export { InteractionChannelContext, InteractionChannelInstance, InteractionChannelInstanceUpdateOptions, InteractionChannelList, InteractionChannelListInstance, InteractionChannelListInstanceEachOptions, InteractionChannelListInstanceOptions, InteractionChannelListInstancePageOptions, InteractionChannelPage, InteractionChannelPayload, InteractionChannelResource, InteractionChannelSolution, InteractionChannelStatus, InteractionChannelType }
|
|
335
|
+
export { InteractionChannelChannelStatus, InteractionChannelContext, InteractionChannelInstance, InteractionChannelInstanceUpdateOptions, InteractionChannelList, InteractionChannelListInstance, InteractionChannelListInstanceEachOptions, InteractionChannelListInstanceOptions, InteractionChannelListInstancePageOptions, InteractionChannelPage, InteractionChannelPayload, InteractionChannelResource, InteractionChannelSolution, InteractionChannelStatus, InteractionChannelType }
|
|
@@ -17,6 +17,8 @@ var InteractionChannelInviteList = require(
|
|
|
17
17
|
var InteractionChannelParticipantList = require(
|
|
18
18
|
'./interactionChannel/interactionChannelParticipant').InteractionChannelParticipantList;
|
|
19
19
|
var Page = require('../../../../base/Page'); /* jshint ignore:line */
|
|
20
|
+
var deserialize = require(
|
|
21
|
+
'../../../../base/deserialize'); /* jshint ignore:line */
|
|
20
22
|
var serialize = require('../../../../base/serialize'); /* jshint ignore:line */
|
|
21
23
|
var values = require('../../../../base/values'); /* jshint ignore:line */
|
|
22
24
|
|
|
@@ -32,7 +34,7 @@ var InteractionChannelContext;
|
|
|
32
34
|
* @constructor Twilio.FlexApi.V1.InteractionContext.InteractionChannelList
|
|
33
35
|
*
|
|
34
36
|
* @param {Twilio.FlexApi.V1} version - Version of the resource
|
|
35
|
-
* @param {string} interactionSid - The unique string that identifies the resource
|
|
37
|
+
* @param {string} interactionSid - The unique string that identifies the resource.
|
|
36
38
|
*/
|
|
37
39
|
/* jshint ignore:end */
|
|
38
40
|
InteractionChannelList = function InteractionChannelList(version,
|
|
@@ -413,14 +415,18 @@ InteractionChannelPage.prototype[util.inspect.custom] = function inspect(depth,
|
|
|
413
415
|
*
|
|
414
416
|
* @property {string} sid - The unique string that identifies the resource
|
|
415
417
|
* @property {string} interactionSid -
|
|
416
|
-
* The unique string that identifies the resource
|
|
418
|
+
* The unique string that identifies the resource.
|
|
417
419
|
* @property {interaction_channel.type} type - The Interaction Channel's type.
|
|
420
|
+
* @property {interaction_channel.channel_status} status -
|
|
421
|
+
* The status of this channel.
|
|
422
|
+
* @property {number} errorCode - The Twilio error code for a failed channel.
|
|
423
|
+
* @property {string} errorMessage - The error message for a failed channel.
|
|
418
424
|
* @property {string} url - The url
|
|
419
425
|
* @property {string} links - The links
|
|
420
426
|
*
|
|
421
427
|
* @param {V1} version - Version of the resource
|
|
422
428
|
* @param {InteractionChannelPayload} payload - The instance payload
|
|
423
|
-
* @param {sid} interactionSid - The unique string that identifies the resource
|
|
429
|
+
* @param {sid} interactionSid - The unique string that identifies the resource.
|
|
424
430
|
* @param {sid} sid - The unique string that identifies the resource
|
|
425
431
|
*/
|
|
426
432
|
/* jshint ignore:end */
|
|
@@ -432,6 +438,9 @@ InteractionChannelInstance = function InteractionChannelInstance(version,
|
|
|
432
438
|
this.sid = payload.sid; // jshint ignore:line
|
|
433
439
|
this.interactionSid = payload.interaction_sid; // jshint ignore:line
|
|
434
440
|
this.type = payload.type; // jshint ignore:line
|
|
441
|
+
this.status = payload.status; // jshint ignore:line
|
|
442
|
+
this.errorCode = deserialize.integer(payload.error_code); // jshint ignore:line
|
|
443
|
+
this.errorMessage = payload.error_message; // jshint ignore:line
|
|
435
444
|
this.url = payload.url; // jshint ignore:line
|
|
436
445
|
this.links = payload.links; // jshint ignore:line
|
|
437
446
|
|
|
@@ -60,7 +60,6 @@ interface PhoneNumberResource {
|
|
|
60
60
|
caller_name: object;
|
|
61
61
|
calling_country_code: string;
|
|
62
62
|
country_code: string;
|
|
63
|
-
enhanced_line_type: object;
|
|
64
63
|
line_type_intelligence: object;
|
|
65
64
|
live_activity: object;
|
|
66
65
|
national_format: string;
|
|
@@ -125,7 +124,6 @@ declare class PhoneNumberInstance extends SerializableClass {
|
|
|
125
124
|
callerName: any;
|
|
126
125
|
callingCountryCode: string;
|
|
127
126
|
countryCode: string;
|
|
128
|
-
enhancedLineType: any;
|
|
129
127
|
/**
|
|
130
128
|
* fetch a PhoneNumberInstance
|
|
131
129
|
*
|
|
@@ -179,8 +179,6 @@ PhoneNumberPage.prototype[util.inspect.custom] = function inspect(depth,
|
|
|
179
179
|
* An object that contains call forwarding status information
|
|
180
180
|
* @property {object} liveActivity -
|
|
181
181
|
* An object that contains live activity information
|
|
182
|
-
* @property {object} enhancedLineType -
|
|
183
|
-
* An object that contains line type information
|
|
184
182
|
* @property {object} lineTypeIntelligence -
|
|
185
183
|
* An object that contains line type information
|
|
186
184
|
* @property {string} url - The absolute URL of the resource
|
|
@@ -205,7 +203,6 @@ PhoneNumberInstance = function PhoneNumberInstance(version, payload,
|
|
|
205
203
|
this.simSwap = payload.sim_swap; // jshint ignore:line
|
|
206
204
|
this.callForwarding = payload.call_forwarding; // jshint ignore:line
|
|
207
205
|
this.liveActivity = payload.live_activity; // jshint ignore:line
|
|
208
|
-
this.enhancedLineType = payload.enhanced_line_type; // jshint ignore:line
|
|
209
206
|
this.lineTypeIntelligence = payload.line_type_intelligence; // jshint ignore:line
|
|
210
207
|
this.url = payload.url; // jshint ignore:line
|
|
211
208
|
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was generated by
|
|
3
|
+
* \ / _ _ _| _ _
|
|
4
|
+
* | (_)\/(_)(_|\/| |(/_ v1.0.0
|
|
5
|
+
* / /
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import Microvisor = require('../Microvisor');
|
|
9
|
+
import Version = require('../../base/Version');
|
|
10
|
+
import { AppList } from './v1/app';
|
|
11
|
+
import { AppListInstance } from './v1/app';
|
|
12
|
+
import { DeviceList } from './v1/device';
|
|
13
|
+
import { DeviceListInstance } from './v1/device';
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
declare class V1 extends Version {
|
|
17
|
+
/**
|
|
18
|
+
* Initialize the V1 version of Microvisor
|
|
19
|
+
*
|
|
20
|
+
* @param domain - The twilio domain
|
|
21
|
+
*/
|
|
22
|
+
constructor(domain: Microvisor);
|
|
23
|
+
|
|
24
|
+
readonly apps: AppListInstance;
|
|
25
|
+
readonly devices: DeviceListInstance;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export = V1;
|
|
@@ -0,0 +1,57 @@
|
|
|
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 AppList = require('./v1/app').AppList;
|
|
14
|
+
var DeviceList = require('./v1/device').DeviceList;
|
|
15
|
+
var Version = require('../../base/Version'); /* jshint ignore:line */
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
/* jshint ignore:start */
|
|
19
|
+
/**
|
|
20
|
+
* Initialize the V1 version of Microvisor
|
|
21
|
+
*
|
|
22
|
+
* @constructor Twilio.Microvisor.V1
|
|
23
|
+
*
|
|
24
|
+
* @property {Twilio.Microvisor.V1.AppList} apps - apps resource
|
|
25
|
+
* @property {Twilio.Microvisor.V1.DeviceList} devices - devices resource
|
|
26
|
+
*
|
|
27
|
+
* @param {Twilio.Microvisor} domain - The twilio domain
|
|
28
|
+
*/
|
|
29
|
+
/* jshint ignore:end */
|
|
30
|
+
function V1(domain) {
|
|
31
|
+
Version.prototype.constructor.call(this, domain, 'v1');
|
|
32
|
+
|
|
33
|
+
// Resources
|
|
34
|
+
this._apps = undefined;
|
|
35
|
+
this._devices = undefined;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
_.extend(V1.prototype, Version.prototype);
|
|
39
|
+
V1.prototype.constructor = V1;
|
|
40
|
+
|
|
41
|
+
Object.defineProperty(V1.prototype,
|
|
42
|
+
'apps', {
|
|
43
|
+
get: function() {
|
|
44
|
+
this._apps = this._apps || new AppList(this);
|
|
45
|
+
return this._apps;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
Object.defineProperty(V1.prototype,
|
|
50
|
+
'devices', {
|
|
51
|
+
get: function() {
|
|
52
|
+
this._devices = this._devices || new DeviceList(this);
|
|
53
|
+
return this._devices;
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
module.exports = V1;
|
|
@@ -5,30 +5,29 @@
|
|
|
5
5
|
* / /
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { SerializableClass } from '
|
|
8
|
+
import Page = require('../../../base/Page');
|
|
9
|
+
import Response = require('../../../http/response');
|
|
10
|
+
import V1 = require('../V1');
|
|
11
|
+
import { SerializableClass } from '../../../interfaces';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
|
-
* Initialize the
|
|
14
|
+
* Initialize the AppList
|
|
15
15
|
*
|
|
16
16
|
* PLEASE NOTE that this class contains preview products that are subject to
|
|
17
17
|
* change. Use them with caution. If you currently do not have developer preview
|
|
18
18
|
* access, please contact help@twilio.com.
|
|
19
19
|
*
|
|
20
20
|
* @param version - Version of the resource
|
|
21
|
-
* @param resourceType - The type of communication – Messages, Calls, Conferences, and Participants
|
|
22
21
|
*/
|
|
23
|
-
declare function
|
|
22
|
+
declare function AppList(version: V1): AppListInstance;
|
|
24
23
|
|
|
25
|
-
interface
|
|
24
|
+
interface AppListInstance {
|
|
26
25
|
/**
|
|
27
26
|
* @param sid - sid of instance
|
|
28
27
|
*/
|
|
29
|
-
(sid: string):
|
|
28
|
+
(sid: string): AppContext;
|
|
30
29
|
/**
|
|
31
|
-
* Streams
|
|
30
|
+
* Streams AppInstance records from the API.
|
|
32
31
|
*
|
|
33
32
|
* This operation lazily loads records as efficiently as possible until the limit
|
|
34
33
|
* is reached.
|
|
@@ -41,9 +40,9 @@ interface DayListInstance {
|
|
|
41
40
|
*
|
|
42
41
|
* @param callback - Function to process each record
|
|
43
42
|
*/
|
|
44
|
-
each(callback?: (item:
|
|
43
|
+
each(callback?: (item: AppInstance, done: (err?: Error) => void) => void): void;
|
|
45
44
|
/**
|
|
46
|
-
* Streams
|
|
45
|
+
* Streams AppInstance records from the API.
|
|
47
46
|
*
|
|
48
47
|
* This operation lazily loads records as efficiently as possible until the limit
|
|
49
48
|
* is reached.
|
|
@@ -57,15 +56,15 @@ interface DayListInstance {
|
|
|
57
56
|
* @param opts - Options for request
|
|
58
57
|
* @param callback - Function to process each record
|
|
59
58
|
*/
|
|
60
|
-
each(opts?:
|
|
59
|
+
each(opts?: AppListInstanceEachOptions, callback?: (item: AppInstance, done: (err?: Error) => void) => void): void;
|
|
61
60
|
/**
|
|
62
|
-
* Constructs a
|
|
61
|
+
* Constructs a app
|
|
63
62
|
*
|
|
64
|
-
* @param
|
|
63
|
+
* @param sid - A string that uniquely identifies this App.
|
|
65
64
|
*/
|
|
66
|
-
get(
|
|
65
|
+
get(sid: string): AppContext;
|
|
67
66
|
/**
|
|
68
|
-
* Retrieve a single target page of
|
|
67
|
+
* Retrieve a single target page of AppInstance records from the API.
|
|
69
68
|
*
|
|
70
69
|
* The request is executed immediately.
|
|
71
70
|
*
|
|
@@ -74,9 +73,9 @@ interface DayListInstance {
|
|
|
74
73
|
*
|
|
75
74
|
* @param callback - Callback to handle list of records
|
|
76
75
|
*/
|
|
77
|
-
getPage(callback?: (error: Error | null, items:
|
|
76
|
+
getPage(callback?: (error: Error | null, items: AppPage) => any): Promise<AppPage>;
|
|
78
77
|
/**
|
|
79
|
-
* Retrieve a single target page of
|
|
78
|
+
* Retrieve a single target page of AppInstance records from the API.
|
|
80
79
|
*
|
|
81
80
|
* The request is executed immediately.
|
|
82
81
|
*
|
|
@@ -86,18 +85,18 @@ interface DayListInstance {
|
|
|
86
85
|
* @param targetUrl - API-generated URL for the requested results page
|
|
87
86
|
* @param callback - Callback to handle list of records
|
|
88
87
|
*/
|
|
89
|
-
getPage(targetUrl?: string, callback?: (error: Error | null, items:
|
|
88
|
+
getPage(targetUrl?: string, callback?: (error: Error | null, items: AppPage) => any): Promise<AppPage>;
|
|
90
89
|
/**
|
|
91
|
-
* Lists
|
|
90
|
+
* Lists AppInstance records from the API as a list.
|
|
92
91
|
*
|
|
93
92
|
* If a function is passed as the first argument, it will be used as the callback
|
|
94
93
|
* function.
|
|
95
94
|
*
|
|
96
95
|
* @param callback - Callback to handle list of records
|
|
97
96
|
*/
|
|
98
|
-
list(callback?: (error: Error | null, items:
|
|
97
|
+
list(callback?: (error: Error | null, items: AppInstance[]) => any): Promise<AppInstance[]>;
|
|
99
98
|
/**
|
|
100
|
-
* Lists
|
|
99
|
+
* Lists AppInstance records from the API as a list.
|
|
101
100
|
*
|
|
102
101
|
* If a function is passed as the first argument, it will be used as the callback
|
|
103
102
|
* function.
|
|
@@ -105,9 +104,9 @@ interface DayListInstance {
|
|
|
105
104
|
* @param opts - Options for request
|
|
106
105
|
* @param callback - Callback to handle list of records
|
|
107
106
|
*/
|
|
108
|
-
list(opts?:
|
|
107
|
+
list(opts?: AppListInstanceOptions, callback?: (error: Error | null, items: AppInstance[]) => any): Promise<AppInstance[]>;
|
|
109
108
|
/**
|
|
110
|
-
* Retrieve a single page of
|
|
109
|
+
* Retrieve a single page of AppInstance records from the API.
|
|
111
110
|
*
|
|
112
111
|
* The request is executed immediately.
|
|
113
112
|
*
|
|
@@ -116,9 +115,9 @@ interface DayListInstance {
|
|
|
116
115
|
*
|
|
117
116
|
* @param callback - Callback to handle list of records
|
|
118
117
|
*/
|
|
119
|
-
page(callback?: (error: Error | null, items:
|
|
118
|
+
page(callback?: (error: Error | null, items: AppPage) => any): Promise<AppPage>;
|
|
120
119
|
/**
|
|
121
|
-
* Retrieve a single page of
|
|
120
|
+
* Retrieve a single page of AppInstance records from the API.
|
|
122
121
|
*
|
|
123
122
|
* The request is executed immediately.
|
|
124
123
|
*
|
|
@@ -128,7 +127,7 @@ interface DayListInstance {
|
|
|
128
127
|
* @param opts - Options for request
|
|
129
128
|
* @param callback - Callback to handle list of records
|
|
130
129
|
*/
|
|
131
|
-
page(opts?:
|
|
130
|
+
page(opts?: AppListInstancePageOptions, callback?: (error: Error | null, items: AppPage) => any): Promise<AppPage>;
|
|
132
131
|
/**
|
|
133
132
|
* Provide a user-friendly representation
|
|
134
133
|
*/
|
|
@@ -153,8 +152,8 @@ interface DayListInstance {
|
|
|
153
152
|
* each() will attempt to read the limit with the most efficient
|
|
154
153
|
* page size, i.e. min(limit, 1000)
|
|
155
154
|
*/
|
|
156
|
-
interface
|
|
157
|
-
callback?: (item:
|
|
155
|
+
interface AppListInstanceEachOptions {
|
|
156
|
+
callback?: (item: AppInstance, done: (err?: Error) => void) => void;
|
|
158
157
|
done?: Function;
|
|
159
158
|
limit?: number;
|
|
160
159
|
pageSize?: number;
|
|
@@ -174,7 +173,7 @@ interface DayListInstanceEachOptions {
|
|
|
174
173
|
* list() will attempt to read the limit with the most
|
|
175
174
|
* efficient page size, i.e. min(limit, 1000)
|
|
176
175
|
*/
|
|
177
|
-
interface
|
|
176
|
+
interface AppListInstanceOptions {
|
|
178
177
|
limit?: number;
|
|
179
178
|
pageSize?: number;
|
|
180
179
|
}
|
|
@@ -186,49 +185,54 @@ interface DayListInstanceOptions {
|
|
|
186
185
|
* @property pageSize - Number of records to return, defaults to 50
|
|
187
186
|
* @property pageToken - PageToken provided by the API
|
|
188
187
|
*/
|
|
189
|
-
interface
|
|
188
|
+
interface AppListInstancePageOptions {
|
|
190
189
|
pageNumber?: number;
|
|
191
190
|
pageSize?: number;
|
|
192
191
|
pageToken?: string;
|
|
193
192
|
}
|
|
194
193
|
|
|
195
|
-
interface
|
|
194
|
+
interface AppPayload extends AppResource, Page.TwilioResponsePayload {
|
|
196
195
|
}
|
|
197
196
|
|
|
198
|
-
interface
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
197
|
+
interface AppResource {
|
|
198
|
+
account_sid: string;
|
|
199
|
+
date_created: Date;
|
|
200
|
+
date_updated: Date;
|
|
201
|
+
hash: string;
|
|
202
|
+
sid: string;
|
|
203
|
+
unique_name: string;
|
|
204
|
+
url: string;
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
-
interface
|
|
208
|
-
resourceType?: string;
|
|
207
|
+
interface AppSolution {
|
|
209
208
|
}
|
|
210
209
|
|
|
211
210
|
|
|
212
|
-
declare class
|
|
211
|
+
declare class AppContext {
|
|
213
212
|
/**
|
|
214
|
-
* Initialize the
|
|
213
|
+
* Initialize the AppContext
|
|
215
214
|
*
|
|
216
215
|
* PLEASE NOTE that this class contains preview products that are subject to
|
|
217
216
|
* change. Use them with caution. If you currently do not have developer preview
|
|
218
217
|
* access, please contact help@twilio.com.
|
|
219
218
|
*
|
|
220
219
|
* @param version - Version of the resource
|
|
221
|
-
* @param
|
|
222
|
-
* @param day - The date of the data in the file
|
|
220
|
+
* @param sid - A string that uniquely identifies this App.
|
|
223
221
|
*/
|
|
224
|
-
constructor(version:
|
|
222
|
+
constructor(version: V1, sid: string);
|
|
225
223
|
|
|
226
224
|
/**
|
|
227
|
-
* fetch a
|
|
225
|
+
* fetch a AppInstance
|
|
228
226
|
*
|
|
229
227
|
* @param callback - Callback to handle processed record
|
|
230
228
|
*/
|
|
231
|
-
fetch(callback?: (error: Error | null, items:
|
|
229
|
+
fetch(callback?: (error: Error | null, items: AppInstance) => any): Promise<AppInstance>;
|
|
230
|
+
/**
|
|
231
|
+
* remove a AppInstance
|
|
232
|
+
*
|
|
233
|
+
* @param callback - Callback to handle processed record
|
|
234
|
+
*/
|
|
235
|
+
remove(callback?: (error: Error | null, items: AppInstance) => any): Promise<boolean>;
|
|
232
236
|
/**
|
|
233
237
|
* Provide a user-friendly representation
|
|
234
238
|
*/
|
|
@@ -236,9 +240,9 @@ declare class DayContext {
|
|
|
236
240
|
}
|
|
237
241
|
|
|
238
242
|
|
|
239
|
-
declare class
|
|
243
|
+
declare class AppInstance extends SerializableClass {
|
|
240
244
|
/**
|
|
241
|
-
* Initialize the
|
|
245
|
+
* Initialize the AppContext
|
|
242
246
|
*
|
|
243
247
|
* PLEASE NOTE that this class contains preview products that are subject to
|
|
244
248
|
* change. Use them with caution. If you currently do not have developer preview
|
|
@@ -246,34 +250,40 @@ declare class DayInstance extends SerializableClass {
|
|
|
246
250
|
*
|
|
247
251
|
* @param version - Version of the resource
|
|
248
252
|
* @param payload - The instance payload
|
|
249
|
-
* @param
|
|
250
|
-
* @param day - The date of the data in the file
|
|
253
|
+
* @param sid - A string that uniquely identifies this App.
|
|
251
254
|
*/
|
|
252
|
-
constructor(version:
|
|
255
|
+
constructor(version: V1, payload: AppPayload, sid: string);
|
|
253
256
|
|
|
254
|
-
private _proxy:
|
|
255
|
-
|
|
256
|
-
|
|
257
|
+
private _proxy: AppContext;
|
|
258
|
+
accountSid: string;
|
|
259
|
+
dateCreated: Date;
|
|
260
|
+
dateUpdated: Date;
|
|
261
|
+
/**
|
|
262
|
+
* fetch a AppInstance
|
|
263
|
+
*
|
|
264
|
+
* @param callback - Callback to handle processed record
|
|
265
|
+
*/
|
|
266
|
+
fetch(callback?: (error: Error | null, items: AppInstance) => any): Promise<AppInstance>;
|
|
267
|
+
hash: string;
|
|
257
268
|
/**
|
|
258
|
-
*
|
|
269
|
+
* remove a AppInstance
|
|
259
270
|
*
|
|
260
271
|
* @param callback - Callback to handle processed record
|
|
261
272
|
*/
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
redirectTo: string;
|
|
265
|
-
resourceType: string;
|
|
266
|
-
size: number;
|
|
273
|
+
remove(callback?: (error: Error | null, items: AppInstance) => any): Promise<boolean>;
|
|
274
|
+
sid: string;
|
|
267
275
|
/**
|
|
268
276
|
* Provide a user-friendly representation
|
|
269
277
|
*/
|
|
270
278
|
toJSON(): any;
|
|
279
|
+
uniqueName: string;
|
|
280
|
+
url: string;
|
|
271
281
|
}
|
|
272
282
|
|
|
273
283
|
|
|
274
|
-
declare class
|
|
284
|
+
declare class AppPage extends Page<V1, AppPayload, AppResource, AppInstance> {
|
|
275
285
|
/**
|
|
276
|
-
* Initialize the
|
|
286
|
+
* Initialize the AppPage
|
|
277
287
|
*
|
|
278
288
|
* PLEASE NOTE that this class contains preview products that are subject to
|
|
279
289
|
* change. Use them with caution. If you currently do not have developer preview
|
|
@@ -283,18 +293,18 @@ declare class DayPage extends Page<BulkExports, DayPayload, DayResource, DayInst
|
|
|
283
293
|
* @param response - Response from the API
|
|
284
294
|
* @param solution - Path solution
|
|
285
295
|
*/
|
|
286
|
-
constructor(version:
|
|
296
|
+
constructor(version: V1, response: Response<string>, solution: AppSolution);
|
|
287
297
|
|
|
288
298
|
/**
|
|
289
|
-
* Build an instance of
|
|
299
|
+
* Build an instance of AppInstance
|
|
290
300
|
*
|
|
291
301
|
* @param payload - Payload response from the API
|
|
292
302
|
*/
|
|
293
|
-
getInstance(payload:
|
|
303
|
+
getInstance(payload: AppPayload): AppInstance;
|
|
294
304
|
/**
|
|
295
305
|
* Provide a user-friendly representation
|
|
296
306
|
*/
|
|
297
307
|
toJSON(): any;
|
|
298
308
|
}
|
|
299
309
|
|
|
300
|
-
export {
|
|
310
|
+
export { AppContext, AppInstance, AppList, AppListInstance, AppListInstanceEachOptions, AppListInstanceOptions, AppListInstancePageOptions, AppPage, AppPayload, AppResource, AppSolution }
|