twilio 3.80.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.
Files changed (36) hide show
  1. package/lib/rest/Microvisor.d.ts +28 -0
  2. package/lib/rest/Microvisor.js +62 -0
  3. package/lib/rest/Preview.d.ts +0 -6
  4. package/lib/rest/Preview.js +0 -28
  5. package/lib/rest/Routes.d.ts +30 -0
  6. package/lib/rest/Routes.js +71 -0
  7. package/lib/rest/Twilio.d.ts +4 -0
  8. package/lib/rest/Twilio.js +28 -0
  9. package/lib/rest/api/v2010/account/sip/ipAccessControlList/ipAddress.d.ts +2 -2
  10. package/lib/rest/api/v2010/account/sip/ipAccessControlList/ipAddress.js +4 -4
  11. package/lib/rest/microvisor/V1.d.ts +28 -0
  12. package/lib/rest/microvisor/V1.js +57 -0
  13. package/lib/rest/{preview/bulk_exports/export/day.d.ts → microvisor/v1/app.d.ts} +79 -69
  14. package/lib/rest/{preview/bulk_exports/export/day.js → microvisor/v1/app.js} +160 -122
  15. package/lib/rest/{preview/bulk_exports/export/exportCustomJob.d.ts → microvisor/v1/device.d.ts} +136 -84
  16. package/lib/rest/microvisor/v1/device.js +652 -0
  17. package/lib/rest/routes/V2.d.ts +31 -0
  18. package/lib/rest/routes/V2.js +69 -0
  19. package/lib/rest/routes/v2/phoneNumber.d.ts +193 -0
  20. package/lib/rest/routes/v2/phoneNumber.js +466 -0
  21. package/lib/rest/routes/v2/sipDomain.d.ts +205 -0
  22. package/lib/rest/routes/v2/sipDomain.js +447 -0
  23. package/lib/rest/routes/v2/trunk.d.ts +205 -0
  24. package/lib/rest/routes/v2/trunk.js +458 -0
  25. package/lib/rest/supersim/v1/fleet.d.ts +3 -1
  26. package/lib/rest/supersim/v1/fleet.js +8 -3
  27. package/package.json +1 -1
  28. package/lib/rest/preview/BulkExports.d.ts +0 -28
  29. package/lib/rest/preview/BulkExports.js +0 -59
  30. package/lib/rest/preview/bulk_exports/export/exportCustomJob.js +0 -540
  31. package/lib/rest/preview/bulk_exports/export/job.d.ts +0 -163
  32. package/lib/rest/preview/bulk_exports/export/job.js +0 -390
  33. package/lib/rest/preview/bulk_exports/export.d.ts +0 -153
  34. package/lib/rest/preview/bulk_exports/export.js +0 -402
  35. package/lib/rest/preview/bulk_exports/exportConfiguration.d.ts +0 -180
  36. package/lib/rest/preview/bulk_exports/exportConfiguration.js +0 -411
@@ -5,30 +5,29 @@
5
5
  * / /
6
6
  */
7
7
 
8
- import BulkExports = require('../../BulkExports');
9
- import Page = require('../../../../base/Page');
10
- import Response = require('../../../../http/response');
11
- import { SerializableClass } from '../../../../interfaces';
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 DayList
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 DayList(version: BulkExports, resourceType: string): DayListInstance;
22
+ declare function AppList(version: V1): AppListInstance;
24
23
 
25
- interface DayListInstance {
24
+ interface AppListInstance {
26
25
  /**
27
26
  * @param sid - sid of instance
28
27
  */
29
- (sid: string): DayContext;
28
+ (sid: string): AppContext;
30
29
  /**
31
- * Streams DayInstance records from the API.
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: DayInstance, done: (err?: Error) => void) => void): void;
43
+ each(callback?: (item: AppInstance, done: (err?: Error) => void) => void): void;
45
44
  /**
46
- * Streams DayInstance records from the API.
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?: DayListInstanceEachOptions, callback?: (item: DayInstance, done: (err?: Error) => void) => void): void;
59
+ each(opts?: AppListInstanceEachOptions, callback?: (item: AppInstance, done: (err?: Error) => void) => void): void;
61
60
  /**
62
- * Constructs a day
61
+ * Constructs a app
63
62
  *
64
- * @param day - The date of the data in the file
63
+ * @param sid - A string that uniquely identifies this App.
65
64
  */
66
- get(day: string): DayContext;
65
+ get(sid: string): AppContext;
67
66
  /**
68
- * Retrieve a single target page of DayInstance records from the API.
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: DayPage) => any): Promise<DayPage>;
76
+ getPage(callback?: (error: Error | null, items: AppPage) => any): Promise<AppPage>;
78
77
  /**
79
- * Retrieve a single target page of DayInstance records from the API.
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: DayPage) => any): Promise<DayPage>;
88
+ getPage(targetUrl?: string, callback?: (error: Error | null, items: AppPage) => any): Promise<AppPage>;
90
89
  /**
91
- * Lists DayInstance records from the API as a list.
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: DayInstance[]) => any): Promise<DayInstance[]>;
97
+ list(callback?: (error: Error | null, items: AppInstance[]) => any): Promise<AppInstance[]>;
99
98
  /**
100
- * Lists DayInstance records from the API as a list.
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?: DayListInstanceOptions, callback?: (error: Error | null, items: DayInstance[]) => any): Promise<DayInstance[]>;
107
+ list(opts?: AppListInstanceOptions, callback?: (error: Error | null, items: AppInstance[]) => any): Promise<AppInstance[]>;
109
108
  /**
110
- * Retrieve a single page of DayInstance records from the API.
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: DayPage) => any): Promise<DayPage>;
118
+ page(callback?: (error: Error | null, items: AppPage) => any): Promise<AppPage>;
120
119
  /**
121
- * Retrieve a single page of DayInstance records from the API.
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?: DayListInstancePageOptions, callback?: (error: Error | null, items: DayPage) => any): Promise<DayPage>;
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 DayListInstanceEachOptions {
157
- callback?: (item: DayInstance, done: (err?: Error) => void) => void;
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 DayListInstanceOptions {
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 DayListInstancePageOptions {
188
+ interface AppListInstancePageOptions {
190
189
  pageNumber?: number;
191
190
  pageSize?: number;
192
191
  pageToken?: string;
193
192
  }
194
193
 
195
- interface DayPayload extends DayResource, Page.TwilioResponsePayload {
194
+ interface AppPayload extends AppResource, Page.TwilioResponsePayload {
196
195
  }
197
196
 
198
- interface DayResource {
199
- create_date?: string;
200
- day?: string;
201
- friendly_name?: string;
202
- redirect_to?: string;
203
- resource_type?: string;
204
- size?: number;
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 DaySolution {
208
- resourceType?: string;
207
+ interface AppSolution {
209
208
  }
210
209
 
211
210
 
212
- declare class DayContext {
211
+ declare class AppContext {
213
212
  /**
214
- * Initialize the DayContext
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 resourceType - The type of communication Messages, Calls, Conferences, and Participants
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: BulkExports, resourceType: string, day: string);
222
+ constructor(version: V1, sid: string);
225
223
 
226
224
  /**
227
- * fetch a DayInstance
225
+ * fetch a AppInstance
228
226
  *
229
227
  * @param callback - Callback to handle processed record
230
228
  */
231
- fetch(callback?: (error: Error | null, items: DayInstance) => any): Promise<DayInstance>;
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 DayInstance extends SerializableClass {
243
+ declare class AppInstance extends SerializableClass {
240
244
  /**
241
- * Initialize the DayContext
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 resourceType - The type of communication Messages, Calls, Conferences, and Participants
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: BulkExports, payload: DayPayload, resourceType: string, day: string);
255
+ constructor(version: V1, payload: AppPayload, sid: string);
253
256
 
254
- private _proxy: DayContext;
255
- createDate: string;
256
- day: string;
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
- * fetch a DayInstance
269
+ * remove a AppInstance
259
270
  *
260
271
  * @param callback - Callback to handle processed record
261
272
  */
262
- fetch(callback?: (error: Error | null, items: DayInstance) => any): Promise<DayInstance>;
263
- friendlyName: string;
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 DayPage extends Page<BulkExports, DayPayload, DayResource, DayInstance> {
284
+ declare class AppPage extends Page<V1, AppPayload, AppResource, AppInstance> {
275
285
  /**
276
- * Initialize the DayPage
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: BulkExports, response: Response<string>, solution: DaySolution);
296
+ constructor(version: V1, response: Response<string>, solution: AppSolution);
287
297
 
288
298
  /**
289
- * Build an instance of DayInstance
299
+ * Build an instance of AppInstance
290
300
  *
291
301
  * @param payload - Payload response from the API
292
302
  */
293
- getInstance(payload: DayPayload): DayInstance;
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 { DayContext, DayInstance, DayList, DayListInstance, DayListInstanceEachOptions, DayListInstanceOptions, DayListInstancePageOptions, DayPage, DayPayload, DayResource, DaySolution }
310
+ export { AppContext, AppInstance, AppList, AppListInstance, AppListInstanceEachOptions, AppListInstanceOptions, AppListInstancePageOptions, AppPage, AppPayload, AppResource, AppSolution }