twilio 5.3.2 → 5.3.4

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 (33) hide show
  1. package/lib/base/RequestClient.d.ts +1 -0
  2. package/lib/rest/PreviewBase.d.ts +0 -3
  3. package/lib/rest/PreviewBase.js +0 -6
  4. package/lib/rest/iam/V1.d.ts +5 -5
  5. package/lib/rest/iam/V1.js +5 -5
  6. package/lib/rest/iam/v1/{newApiKey.d.ts → key.d.ts} +14 -14
  7. package/lib/rest/iam/v1/{newApiKey.js → key.js} +6 -6
  8. package/lib/rest/messaging/V1.d.ts +5 -0
  9. package/lib/rest/messaging/V1.js +7 -0
  10. package/lib/rest/messaging/v1/requestManagedCert.d.ts +127 -0
  11. package/lib/rest/messaging/v1/requestManagedCert.js +122 -0
  12. package/lib/rest/numbers/v1/portingPortability.d.ts +2 -0
  13. package/lib/rest/numbers/v1/portingPortability.js +2 -0
  14. package/lib/rest/taskrouter/v1/workspace/task.d.ts +2 -2
  15. package/lib/rest/verify/v2/service/verification.d.ts +2 -0
  16. package/lib/rest/verify/v2/service/verification.js +2 -0
  17. package/lib/rest/verify/v2/service/verificationCheck.d.ts +2 -0
  18. package/lib/rest/verify/v2/service/verificationCheck.js +2 -0
  19. package/lib/rest/video/v1/room.d.ts +14 -14
  20. package/lib/webhooks/webhooks.d.ts +1 -0
  21. package/package.json +1 -1
  22. package/lib/rest/preview/DeployedDevices.d.ts +0 -15
  23. package/lib/rest/preview/DeployedDevices.js +0 -36
  24. package/lib/rest/preview/deployed_devices/fleet/certificate.d.ts +0 -324
  25. package/lib/rest/preview/deployed_devices/fleet/certificate.js +0 -269
  26. package/lib/rest/preview/deployed_devices/fleet/deployment.d.ts +0 -318
  27. package/lib/rest/preview/deployed_devices/fleet/deployment.js +0 -264
  28. package/lib/rest/preview/deployed_devices/fleet/device.d.ts +0 -358
  29. package/lib/rest/preview/deployed_devices/fleet/device.js +0 -284
  30. package/lib/rest/preview/deployed_devices/fleet/key.d.ts +0 -330
  31. package/lib/rest/preview/deployed_devices/fleet/key.js +0 -268
  32. package/lib/rest/preview/deployed_devices/fleet.d.ts +0 -352
  33. package/lib/rest/preview/deployed_devices/fleet.js +0 -307
@@ -1,269 +0,0 @@
1
- "use strict";
2
- /*
3
- * This code was generated by
4
- * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
5
- * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
6
- * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
7
- *
8
- * Twilio - Preview
9
- * This is the public Twilio REST API.
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator.
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- var __importDefault = (this && this.__importDefault) || function (mod) {
16
- return (mod && mod.__esModule) ? mod : { "default": mod };
17
- };
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.CertificatePage = exports.CertificateListInstance = exports.CertificateInstance = exports.CertificateContextImpl = void 0;
20
- const util_1 = require("util");
21
- const Page_1 = __importDefault(require("../../../../base/Page"));
22
- const deserialize = require("../../../../base/deserialize");
23
- const serialize = require("../../../../base/serialize");
24
- const utility_1 = require("../../../../base/utility");
25
- class CertificateContextImpl {
26
- constructor(_version, fleetSid, sid) {
27
- this._version = _version;
28
- if (!(0, utility_1.isValidPathParam)(fleetSid)) {
29
- throw new Error("Parameter 'fleetSid' is not valid.");
30
- }
31
- if (!(0, utility_1.isValidPathParam)(sid)) {
32
- throw new Error("Parameter 'sid' is not valid.");
33
- }
34
- this._solution = { fleetSid, sid };
35
- this._uri = `/Fleets/${fleetSid}/Certificates/${sid}`;
36
- }
37
- remove(callback) {
38
- const instance = this;
39
- let operationVersion = instance._version, operationPromise = operationVersion.remove({
40
- uri: instance._uri,
41
- method: "delete",
42
- });
43
- operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
44
- return operationPromise;
45
- }
46
- fetch(callback) {
47
- const instance = this;
48
- let operationVersion = instance._version, operationPromise = operationVersion.fetch({
49
- uri: instance._uri,
50
- method: "get",
51
- });
52
- operationPromise = operationPromise.then((payload) => new CertificateInstance(operationVersion, payload, instance._solution.fleetSid, instance._solution.sid));
53
- operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
54
- return operationPromise;
55
- }
56
- update(params, callback) {
57
- if (params instanceof Function) {
58
- callback = params;
59
- params = {};
60
- }
61
- else {
62
- params = params || {};
63
- }
64
- let data = {};
65
- if (params["friendlyName"] !== undefined)
66
- data["FriendlyName"] = params["friendlyName"];
67
- if (params["deviceSid"] !== undefined)
68
- data["DeviceSid"] = params["deviceSid"];
69
- const headers = {};
70
- headers["Content-Type"] = "application/x-www-form-urlencoded";
71
- const instance = this;
72
- let operationVersion = instance._version, operationPromise = operationVersion.update({
73
- uri: instance._uri,
74
- method: "post",
75
- data,
76
- headers,
77
- });
78
- operationPromise = operationPromise.then((payload) => new CertificateInstance(operationVersion, payload, instance._solution.fleetSid, instance._solution.sid));
79
- operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
80
- return operationPromise;
81
- }
82
- /**
83
- * Provide a user-friendly representation
84
- *
85
- * @returns Object
86
- */
87
- toJSON() {
88
- return this._solution;
89
- }
90
- [util_1.inspect.custom](_depth, options) {
91
- return (0, util_1.inspect)(this.toJSON(), options);
92
- }
93
- }
94
- exports.CertificateContextImpl = CertificateContextImpl;
95
- class CertificateInstance {
96
- constructor(_version, payload, fleetSid, sid) {
97
- this._version = _version;
98
- this.sid = payload.sid;
99
- this.url = payload.url;
100
- this.friendlyName = payload.friendly_name;
101
- this.fleetSid = payload.fleet_sid;
102
- this.accountSid = payload.account_sid;
103
- this.deviceSid = payload.device_sid;
104
- this.thumbprint = payload.thumbprint;
105
- this.dateCreated = deserialize.iso8601DateTime(payload.date_created);
106
- this.dateUpdated = deserialize.iso8601DateTime(payload.date_updated);
107
- this._solution = { fleetSid, sid: sid || this.sid };
108
- }
109
- get _proxy() {
110
- this._context =
111
- this._context ||
112
- new CertificateContextImpl(this._version, this._solution.fleetSid, this._solution.sid);
113
- return this._context;
114
- }
115
- /**
116
- * Remove a CertificateInstance
117
- *
118
- * @param callback - Callback to handle processed record
119
- *
120
- * @returns Resolves to processed boolean
121
- */
122
- remove(callback) {
123
- return this._proxy.remove(callback);
124
- }
125
- /**
126
- * Fetch a CertificateInstance
127
- *
128
- * @param callback - Callback to handle processed record
129
- *
130
- * @returns Resolves to processed CertificateInstance
131
- */
132
- fetch(callback) {
133
- return this._proxy.fetch(callback);
134
- }
135
- update(params, callback) {
136
- return this._proxy.update(params, callback);
137
- }
138
- /**
139
- * Provide a user-friendly representation
140
- *
141
- * @returns Object
142
- */
143
- toJSON() {
144
- return {
145
- sid: this.sid,
146
- url: this.url,
147
- friendlyName: this.friendlyName,
148
- fleetSid: this.fleetSid,
149
- accountSid: this.accountSid,
150
- deviceSid: this.deviceSid,
151
- thumbprint: this.thumbprint,
152
- dateCreated: this.dateCreated,
153
- dateUpdated: this.dateUpdated,
154
- };
155
- }
156
- [util_1.inspect.custom](_depth, options) {
157
- return (0, util_1.inspect)(this.toJSON(), options);
158
- }
159
- }
160
- exports.CertificateInstance = CertificateInstance;
161
- function CertificateListInstance(version, fleetSid) {
162
- if (!(0, utility_1.isValidPathParam)(fleetSid)) {
163
- throw new Error("Parameter 'fleetSid' is not valid.");
164
- }
165
- const instance = ((sid) => instance.get(sid));
166
- instance.get = function get(sid) {
167
- return new CertificateContextImpl(version, fleetSid, sid);
168
- };
169
- instance._version = version;
170
- instance._solution = { fleetSid };
171
- instance._uri = `/Fleets/${fleetSid}/Certificates`;
172
- instance.create = function create(params, callback) {
173
- if (params === null || params === undefined) {
174
- throw new Error('Required parameter "params" missing.');
175
- }
176
- if (params["certificateData"] === null ||
177
- params["certificateData"] === undefined) {
178
- throw new Error("Required parameter \"params['certificateData']\" missing.");
179
- }
180
- let data = {};
181
- data["CertificateData"] = params["certificateData"];
182
- if (params["friendlyName"] !== undefined)
183
- data["FriendlyName"] = params["friendlyName"];
184
- if (params["deviceSid"] !== undefined)
185
- data["DeviceSid"] = params["deviceSid"];
186
- const headers = {};
187
- headers["Content-Type"] = "application/x-www-form-urlencoded";
188
- let operationVersion = version, operationPromise = operationVersion.create({
189
- uri: instance._uri,
190
- method: "post",
191
- data,
192
- headers,
193
- });
194
- operationPromise = operationPromise.then((payload) => new CertificateInstance(operationVersion, payload, instance._solution.fleetSid));
195
- operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
196
- return operationPromise;
197
- };
198
- instance.page = function page(params, callback) {
199
- if (params instanceof Function) {
200
- callback = params;
201
- params = {};
202
- }
203
- else {
204
- params = params || {};
205
- }
206
- let data = {};
207
- if (params["deviceSid"] !== undefined)
208
- data["DeviceSid"] = params["deviceSid"];
209
- if (params["pageSize"] !== undefined)
210
- data["PageSize"] = params["pageSize"];
211
- if (params.pageNumber !== undefined)
212
- data["Page"] = params.pageNumber;
213
- if (params.pageToken !== undefined)
214
- data["PageToken"] = params.pageToken;
215
- const headers = {};
216
- let operationVersion = version, operationPromise = operationVersion.page({
217
- uri: instance._uri,
218
- method: "get",
219
- params: data,
220
- headers,
221
- });
222
- operationPromise = operationPromise.then((payload) => new CertificatePage(operationVersion, payload, instance._solution));
223
- operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
224
- return operationPromise;
225
- };
226
- instance.each = instance._version.each;
227
- instance.list = instance._version.list;
228
- instance.getPage = function getPage(targetUrl, callback) {
229
- const operationPromise = instance._version._domain.twilio.request({
230
- method: "get",
231
- uri: targetUrl,
232
- });
233
- let pagePromise = operationPromise.then((payload) => new CertificatePage(instance._version, payload, instance._solution));
234
- pagePromise = instance._version.setPromiseCallback(pagePromise, callback);
235
- return pagePromise;
236
- };
237
- instance.toJSON = function toJSON() {
238
- return instance._solution;
239
- };
240
- instance[util_1.inspect.custom] = function inspectImpl(_depth, options) {
241
- return (0, util_1.inspect)(instance.toJSON(), options);
242
- };
243
- return instance;
244
- }
245
- exports.CertificateListInstance = CertificateListInstance;
246
- class CertificatePage extends Page_1.default {
247
- /**
248
- * Initialize the CertificatePage
249
- *
250
- * @param version - Version of the resource
251
- * @param response - Response from the API
252
- * @param solution - Path solution
253
- */
254
- constructor(version, response, solution) {
255
- super(version, response, solution);
256
- }
257
- /**
258
- * Build an instance of CertificateInstance
259
- *
260
- * @param payload - Payload response from the API
261
- */
262
- getInstance(payload) {
263
- return new CertificateInstance(this._version, payload, this._solution.fleetSid);
264
- }
265
- [util_1.inspect.custom](depth, options) {
266
- return (0, util_1.inspect)(this.toJSON(), options);
267
- }
268
- }
269
- exports.CertificatePage = CertificatePage;
@@ -1,318 +0,0 @@
1
- /// <reference types="node" />
2
- import { inspect, InspectOptions } from "util";
3
- import Page, { TwilioResponsePayload } from "../../../../base/Page";
4
- import Response from "../../../../http/response";
5
- import DeployedDevices from "../../DeployedDevices";
6
- /**
7
- * Options to pass to update a DeploymentInstance
8
- */
9
- export interface DeploymentContextUpdateOptions {
10
- /** Provides a human readable descriptive text for this Deployment, up to 64 characters long */
11
- friendlyName?: string;
12
- /** Provides the unique string identifier of the Twilio Sync service instance that will be linked to and accessible by this Deployment. */
13
- syncServiceSid?: string;
14
- }
15
- /**
16
- * Options to pass to create a DeploymentInstance
17
- */
18
- export interface DeploymentListInstanceCreateOptions {
19
- /** Provides a human readable descriptive text for this Deployment, up to 256 characters long. */
20
- friendlyName?: string;
21
- /** Provides the unique string identifier of the Twilio Sync service instance that will be linked to and accessible by this Deployment. */
22
- syncServiceSid?: string;
23
- }
24
- /**
25
- * Options to pass to each
26
- */
27
- export interface DeploymentListInstanceEachOptions {
28
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
29
- pageSize?: number;
30
- /** Function to process each record. If this and a positional callback are passed, this one will be used */
31
- callback?: (item: DeploymentInstance, done: (err?: Error) => void) => void;
32
- /** Function to be called upon completion of streaming */
33
- done?: Function;
34
- /** Upper limit for the number of records to return. each() guarantees never to return more than limit. Default is no limit */
35
- limit?: number;
36
- }
37
- /**
38
- * Options to pass to list
39
- */
40
- export interface DeploymentListInstanceOptions {
41
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
42
- pageSize?: number;
43
- /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
44
- limit?: number;
45
- }
46
- /**
47
- * Options to pass to page
48
- */
49
- export interface DeploymentListInstancePageOptions {
50
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
51
- pageSize?: number;
52
- /** Page Number, this value is simply for client state */
53
- pageNumber?: number;
54
- /** PageToken provided by the API */
55
- pageToken?: string;
56
- }
57
- export interface DeploymentContext {
58
- /**
59
- * Remove a DeploymentInstance
60
- *
61
- * @param callback - Callback to handle processed record
62
- *
63
- * @returns Resolves to processed boolean
64
- */
65
- remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
66
- /**
67
- * Fetch a DeploymentInstance
68
- *
69
- * @param callback - Callback to handle processed record
70
- *
71
- * @returns Resolves to processed DeploymentInstance
72
- */
73
- fetch(callback?: (error: Error | null, item?: DeploymentInstance) => any): Promise<DeploymentInstance>;
74
- /**
75
- * Update a DeploymentInstance
76
- *
77
- * @param callback - Callback to handle processed record
78
- *
79
- * @returns Resolves to processed DeploymentInstance
80
- */
81
- update(callback?: (error: Error | null, item?: DeploymentInstance) => any): Promise<DeploymentInstance>;
82
- /**
83
- * Update a DeploymentInstance
84
- *
85
- * @param params - Parameter for request
86
- * @param callback - Callback to handle processed record
87
- *
88
- * @returns Resolves to processed DeploymentInstance
89
- */
90
- update(params: DeploymentContextUpdateOptions, callback?: (error: Error | null, item?: DeploymentInstance) => any): Promise<DeploymentInstance>;
91
- /**
92
- * Provide a user-friendly representation
93
- */
94
- toJSON(): any;
95
- [inspect.custom](_depth: any, options: InspectOptions): any;
96
- }
97
- export interface DeploymentContextSolution {
98
- fleetSid: string;
99
- sid: string;
100
- }
101
- export declare class DeploymentContextImpl implements DeploymentContext {
102
- protected _version: DeployedDevices;
103
- protected _solution: DeploymentContextSolution;
104
- protected _uri: string;
105
- constructor(_version: DeployedDevices, fleetSid: string, sid: string);
106
- remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
107
- fetch(callback?: (error: Error | null, item?: DeploymentInstance) => any): Promise<DeploymentInstance>;
108
- update(params?: DeploymentContextUpdateOptions | ((error: Error | null, item?: DeploymentInstance) => any), callback?: (error: Error | null, item?: DeploymentInstance) => any): Promise<DeploymentInstance>;
109
- /**
110
- * Provide a user-friendly representation
111
- *
112
- * @returns Object
113
- */
114
- toJSON(): DeploymentContextSolution;
115
- [inspect.custom](_depth: any, options: InspectOptions): string;
116
- }
117
- interface DeploymentPayload extends TwilioResponsePayload {
118
- deployments: DeploymentResource[];
119
- }
120
- interface DeploymentResource {
121
- sid: string;
122
- url: string;
123
- friendly_name: string;
124
- fleet_sid: string;
125
- account_sid: string;
126
- sync_service_sid: string;
127
- date_created: Date;
128
- date_updated: Date;
129
- }
130
- export declare class DeploymentInstance {
131
- protected _version: DeployedDevices;
132
- protected _solution: DeploymentContextSolution;
133
- protected _context?: DeploymentContext;
134
- constructor(_version: DeployedDevices, payload: DeploymentResource, fleetSid: string, sid?: string);
135
- /**
136
- * Contains a 34 character string that uniquely identifies this Deployment resource.
137
- */
138
- sid: string;
139
- /**
140
- * Contains an absolute URL for this Deployment resource.
141
- */
142
- url: string;
143
- /**
144
- * Contains a human readable descriptive text for this Deployment, up to 64 characters long
145
- */
146
- friendlyName: string;
147
- /**
148
- * Specifies the unique string identifier of the Fleet that the given Deployment belongs to.
149
- */
150
- fleetSid: string;
151
- /**
152
- * Specifies the unique string identifier of the Account responsible for this Deployment.
153
- */
154
- accountSid: string;
155
- /**
156
- * Specifies the unique string identifier of the Twilio Sync service instance linked to and accessible by this Deployment.
157
- */
158
- syncServiceSid: string;
159
- /**
160
- * Specifies the date this Deployment was created, given in UTC ISO 8601 format.
161
- */
162
- dateCreated: Date;
163
- /**
164
- * Specifies the date this Deployment was last updated, given in UTC ISO 8601 format.
165
- */
166
- dateUpdated: Date;
167
- private get _proxy();
168
- /**
169
- * Remove a DeploymentInstance
170
- *
171
- * @param callback - Callback to handle processed record
172
- *
173
- * @returns Resolves to processed boolean
174
- */
175
- remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
176
- /**
177
- * Fetch a DeploymentInstance
178
- *
179
- * @param callback - Callback to handle processed record
180
- *
181
- * @returns Resolves to processed DeploymentInstance
182
- */
183
- fetch(callback?: (error: Error | null, item?: DeploymentInstance) => any): Promise<DeploymentInstance>;
184
- /**
185
- * Update a DeploymentInstance
186
- *
187
- * @param callback - Callback to handle processed record
188
- *
189
- * @returns Resolves to processed DeploymentInstance
190
- */
191
- update(callback?: (error: Error | null, item?: DeploymentInstance) => any): Promise<DeploymentInstance>;
192
- /**
193
- * Update a DeploymentInstance
194
- *
195
- * @param params - Parameter for request
196
- * @param callback - Callback to handle processed record
197
- *
198
- * @returns Resolves to processed DeploymentInstance
199
- */
200
- update(params: DeploymentContextUpdateOptions, callback?: (error: Error | null, item?: DeploymentInstance) => any): Promise<DeploymentInstance>;
201
- /**
202
- * Provide a user-friendly representation
203
- *
204
- * @returns Object
205
- */
206
- toJSON(): {
207
- sid: string;
208
- url: string;
209
- friendlyName: string;
210
- fleetSid: string;
211
- accountSid: string;
212
- syncServiceSid: string;
213
- dateCreated: Date;
214
- dateUpdated: Date;
215
- };
216
- [inspect.custom](_depth: any, options: InspectOptions): string;
217
- }
218
- export interface DeploymentSolution {
219
- fleetSid: string;
220
- }
221
- export interface DeploymentListInstance {
222
- _version: DeployedDevices;
223
- _solution: DeploymentSolution;
224
- _uri: string;
225
- (sid: string): DeploymentContext;
226
- get(sid: string): DeploymentContext;
227
- /**
228
- * Create a DeploymentInstance
229
- *
230
- * @param callback - Callback to handle processed record
231
- *
232
- * @returns Resolves to processed DeploymentInstance
233
- */
234
- create(callback?: (error: Error | null, item?: DeploymentInstance) => any): Promise<DeploymentInstance>;
235
- /**
236
- * Create a DeploymentInstance
237
- *
238
- * @param params - Parameter for request
239
- * @param callback - Callback to handle processed record
240
- *
241
- * @returns Resolves to processed DeploymentInstance
242
- */
243
- create(params: DeploymentListInstanceCreateOptions, callback?: (error: Error | null, item?: DeploymentInstance) => any): Promise<DeploymentInstance>;
244
- /**
245
- * Streams DeploymentInstance records from the API.
246
- *
247
- * This operation lazily loads records as efficiently as possible until the limit
248
- * is reached.
249
- *
250
- * The results are passed into the callback function, so this operation is memory
251
- * efficient.
252
- *
253
- * If a function is passed as the first argument, it will be used as the callback
254
- * function.
255
- *
256
- * @param { DeploymentListInstanceEachOptions } [params] - Options for request
257
- * @param { function } [callback] - Function to process each record
258
- */
259
- each(callback?: (item: DeploymentInstance, done: (err?: Error) => void) => void): void;
260
- each(params: DeploymentListInstanceEachOptions, callback?: (item: DeploymentInstance, done: (err?: Error) => void) => void): void;
261
- /**
262
- * Retrieve a single target page of DeploymentInstance records from the API.
263
- *
264
- * The request is executed immediately.
265
- *
266
- * @param { string } [targetUrl] - API-generated URL for the requested results page
267
- * @param { function } [callback] - Callback to handle list of records
268
- */
269
- getPage(targetUrl: string, callback?: (error: Error | null, items: DeploymentPage) => any): Promise<DeploymentPage>;
270
- /**
271
- * Lists DeploymentInstance records from the API as a list.
272
- *
273
- * If a function is passed as the first argument, it will be used as the callback
274
- * function.
275
- *
276
- * @param { DeploymentListInstanceOptions } [params] - Options for request
277
- * @param { function } [callback] - Callback to handle list of records
278
- */
279
- list(callback?: (error: Error | null, items: DeploymentInstance[]) => any): Promise<DeploymentInstance[]>;
280
- list(params: DeploymentListInstanceOptions, callback?: (error: Error | null, items: DeploymentInstance[]) => any): Promise<DeploymentInstance[]>;
281
- /**
282
- * Retrieve a single page of DeploymentInstance records from the API.
283
- *
284
- * The request is executed immediately.
285
- *
286
- * If a function is passed as the first argument, it will be used as the callback
287
- * function.
288
- *
289
- * @param { DeploymentListInstancePageOptions } [params] - Options for request
290
- * @param { function } [callback] - Callback to handle list of records
291
- */
292
- page(callback?: (error: Error | null, items: DeploymentPage) => any): Promise<DeploymentPage>;
293
- page(params: DeploymentListInstancePageOptions, callback?: (error: Error | null, items: DeploymentPage) => any): Promise<DeploymentPage>;
294
- /**
295
- * Provide a user-friendly representation
296
- */
297
- toJSON(): any;
298
- [inspect.custom](_depth: any, options: InspectOptions): any;
299
- }
300
- export declare function DeploymentListInstance(version: DeployedDevices, fleetSid: string): DeploymentListInstance;
301
- export declare class DeploymentPage extends Page<DeployedDevices, DeploymentPayload, DeploymentResource, DeploymentInstance> {
302
- /**
303
- * Initialize the DeploymentPage
304
- *
305
- * @param version - Version of the resource
306
- * @param response - Response from the API
307
- * @param solution - Path solution
308
- */
309
- constructor(version: DeployedDevices, response: Response<string>, solution: DeploymentSolution);
310
- /**
311
- * Build an instance of DeploymentInstance
312
- *
313
- * @param payload - Payload response from the API
314
- */
315
- getInstance(payload: DeploymentResource): DeploymentInstance;
316
- [inspect.custom](depth: any, options: InspectOptions): string;
317
- }
318
- export {};