twilio 5.1.0 → 5.2.0

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 (45) hide show
  1. package/lib/base/BaseTwilio.js +2 -1
  2. package/lib/rest/Marketplace.d.ts +4 -0
  3. package/lib/rest/Marketplace.js +8 -0
  4. package/lib/rest/MarketplaceBase.d.ts +13 -0
  5. package/lib/rest/MarketplaceBase.js +31 -0
  6. package/lib/rest/Twilio.d.ts +5 -0
  7. package/lib/rest/Twilio.js +6 -0
  8. package/lib/rest/api/v2010/account/call.d.ts +1 -1
  9. package/lib/rest/api/v2010/account/message.d.ts +2 -2
  10. package/lib/rest/api/v2010/account/recording.d.ts +1 -1
  11. package/lib/rest/content/v2/content.d.ts +54 -0
  12. package/lib/rest/content/v2/content.js +18 -0
  13. package/lib/rest/content/v2/contentAndApprovals.d.ts +54 -0
  14. package/lib/rest/content/v2/contentAndApprovals.js +18 -0
  15. package/lib/rest/events/v1/eventType.d.ts +12 -0
  16. package/lib/rest/events/v1/eventType.js +4 -0
  17. package/lib/rest/marketplace/V1.d.ts +25 -0
  18. package/lib/rest/marketplace/V1.js +51 -0
  19. package/lib/rest/marketplace/v1/availableAddOn/availableAddOnExtension.d.ts +219 -0
  20. package/lib/rest/marketplace/v1/availableAddOn/availableAddOnExtension.js +187 -0
  21. package/lib/rest/marketplace/v1/availableAddOn.d.ts +231 -0
  22. package/lib/rest/marketplace/v1/availableAddOn.js +196 -0
  23. package/lib/rest/marketplace/v1/installedAddOn/installedAddOnExtension.d.ts +251 -0
  24. package/lib/rest/marketplace/v1/installedAddOn/installedAddOnExtension.js +214 -0
  25. package/lib/rest/marketplace/v1/installedAddOn/installedAddOnUsage.d.ts +84 -0
  26. package/lib/rest/marketplace/v1/installedAddOn/installedAddOnUsage.js +86 -0
  27. package/lib/rest/marketplace/v1/installedAddOn.d.ts +340 -0
  28. package/lib/rest/marketplace/v1/installedAddOn.js +294 -0
  29. package/lib/rest/marketplace/v1/moduleDataManagement.d.ts +147 -0
  30. package/lib/rest/marketplace/v1/moduleDataManagement.js +153 -0
  31. package/lib/rest/messaging/v1/tollfreeVerification.d.ts +13 -1
  32. package/lib/rest/messaging/v1/tollfreeVerification.js +4 -0
  33. package/lib/rest/numbers/V1.d.ts +5 -0
  34. package/lib/rest/numbers/V1.js +8 -0
  35. package/lib/rest/numbers/v1/portingPortIn.d.ts +3 -0
  36. package/lib/rest/numbers/v1/portingPortIn.js +2 -0
  37. package/lib/rest/numbers/v1/portingPortInPhoneNumber.d.ts +24 -6
  38. package/lib/rest/numbers/v1/portingPortInPhoneNumber.js +9 -3
  39. package/lib/rest/numbers/v1/portingPortability.d.ts +0 -12
  40. package/lib/rest/numbers/v1/portingPortability.js +0 -4
  41. package/lib/rest/numbers/v1/signingRequestConfiguration.d.ts +100 -0
  42. package/lib/rest/numbers/v1/signingRequestConfiguration.js +89 -0
  43. package/lib/rest/trusthub/v1/complianceTollfreeInquiries.d.ts +2 -0
  44. package/lib/rest/trusthub/v1/complianceTollfreeInquiries.js +2 -0
  45. package/package.json +1 -1
@@ -0,0 +1,84 @@
1
+ /// <reference types="node" />
2
+ import { inspect, InspectOptions } from "util";
3
+ import V1 from "../../V1";
4
+ export declare class CreateMarketplaceBillingUsageRequest {
5
+ "billableItems"?: Array<CreateMarketplaceBillingUsageRequestBillableItems>;
6
+ }
7
+ export declare class CreateMarketplaceBillingUsageRequestBillableItems {
8
+ /**
9
+ *
10
+ */
11
+ "quantity": number;
12
+ /**
13
+ *
14
+ */
15
+ "sid": string;
16
+ }
17
+ export declare class MarketplaceInstalledAddOnBillingUsageResponseBillableItems {
18
+ /**
19
+ *
20
+ */
21
+ "quantity"?: number;
22
+ /**
23
+ *
24
+ */
25
+ "sid"?: string;
26
+ /**
27
+ * Whether this billable item was successfully submitted for billing.
28
+ */
29
+ "submitted"?: boolean;
30
+ }
31
+ /**
32
+ * Options to pass to create a InstalledAddOnUsageInstance
33
+ */
34
+ export interface InstalledAddOnUsageListInstanceCreateOptions {
35
+ /** */
36
+ createMarketplaceBillingUsageRequest: CreateMarketplaceBillingUsageRequest;
37
+ }
38
+ export interface InstalledAddOnUsageSolution {
39
+ installedAddOnSid: string;
40
+ }
41
+ export interface InstalledAddOnUsageListInstance {
42
+ _version: V1;
43
+ _solution: InstalledAddOnUsageSolution;
44
+ _uri: string;
45
+ /**
46
+ * Create a InstalledAddOnUsageInstance
47
+ *
48
+ * @param params - Body for request
49
+ * @param callback - Callback to handle processed record
50
+ *
51
+ * @returns Resolves to processed InstalledAddOnUsageInstance
52
+ */
53
+ create(params: CreateMarketplaceBillingUsageRequest, callback?: (error: Error | null, item?: InstalledAddOnUsageInstance) => any): Promise<InstalledAddOnUsageInstance>;
54
+ /**
55
+ * Provide a user-friendly representation
56
+ */
57
+ toJSON(): any;
58
+ [inspect.custom](_depth: any, options: InspectOptions): any;
59
+ }
60
+ export declare function InstalledAddOnUsageListInstance(version: V1, installedAddOnSid: string): InstalledAddOnUsageListInstance;
61
+ interface InstalledAddOnUsageResource {
62
+ billable_items: Array<MarketplaceInstalledAddOnBillingUsageResponseBillableItems>;
63
+ total_submitted: number;
64
+ }
65
+ export declare class InstalledAddOnUsageInstance {
66
+ protected _version: V1;
67
+ constructor(_version: V1, payload: InstalledAddOnUsageResource, installedAddOnSid: string);
68
+ billableItems: Array<MarketplaceInstalledAddOnBillingUsageResponseBillableItems>;
69
+ /**
70
+ * Represents the total quantity submitted.
71
+ */
72
+ totalSubmitted: number;
73
+ /**
74
+ * Provide a user-friendly representation
75
+ *
76
+ * @returns Object
77
+ */
78
+ toJSON(): {
79
+ billableItems: MarketplaceInstalledAddOnBillingUsageResponseBillableItems[];
80
+ totalSubmitted: number;
81
+ };
82
+ [inspect.custom](_depth: any, options: InspectOptions): string;
83
+ }
84
+ export {};
@@ -0,0 +1,86 @@
1
+ "use strict";
2
+ /*
3
+ * This code was generated by
4
+ * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
5
+ * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
6
+ * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
7
+ *
8
+ * Twilio - Marketplace
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.InstalledAddOnUsageInstance = exports.InstalledAddOnUsageListInstance = exports.MarketplaceInstalledAddOnBillingUsageResponseBillableItems = exports.CreateMarketplaceBillingUsageRequestBillableItems = exports.CreateMarketplaceBillingUsageRequest = void 0;
17
+ const util_1 = require("util");
18
+ const deserialize = require("../../../../base/deserialize");
19
+ const serialize = require("../../../../base/serialize");
20
+ const utility_1 = require("../../../../base/utility");
21
+ class CreateMarketplaceBillingUsageRequest {
22
+ }
23
+ exports.CreateMarketplaceBillingUsageRequest = CreateMarketplaceBillingUsageRequest;
24
+ class CreateMarketplaceBillingUsageRequestBillableItems {
25
+ }
26
+ exports.CreateMarketplaceBillingUsageRequestBillableItems = CreateMarketplaceBillingUsageRequestBillableItems;
27
+ class MarketplaceInstalledAddOnBillingUsageResponseBillableItems {
28
+ }
29
+ exports.MarketplaceInstalledAddOnBillingUsageResponseBillableItems = MarketplaceInstalledAddOnBillingUsageResponseBillableItems;
30
+ function InstalledAddOnUsageListInstance(version, installedAddOnSid) {
31
+ if (!(0, utility_1.isValidPathParam)(installedAddOnSid)) {
32
+ throw new Error("Parameter 'installedAddOnSid' is not valid.");
33
+ }
34
+ const instance = {};
35
+ instance._version = version;
36
+ instance._solution = { installedAddOnSid };
37
+ instance._uri = `/InstalledAddOns/${installedAddOnSid}/Usage`;
38
+ instance.create = function create(params, callback) {
39
+ if (params === null || params === undefined) {
40
+ throw new Error('Required parameter "params" missing.');
41
+ }
42
+ let data = {};
43
+ data = params;
44
+ const headers = {};
45
+ headers["Content-Type"] = "application/json";
46
+ let operationVersion = version, operationPromise = operationVersion.create({
47
+ uri: instance._uri,
48
+ method: "post",
49
+ data,
50
+ headers,
51
+ });
52
+ operationPromise = operationPromise.then((payload) => new InstalledAddOnUsageInstance(operationVersion, payload, instance._solution.installedAddOnSid));
53
+ operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
54
+ return operationPromise;
55
+ };
56
+ instance.toJSON = function toJSON() {
57
+ return instance._solution;
58
+ };
59
+ instance[util_1.inspect.custom] = function inspectImpl(_depth, options) {
60
+ return (0, util_1.inspect)(instance.toJSON(), options);
61
+ };
62
+ return instance;
63
+ }
64
+ exports.InstalledAddOnUsageListInstance = InstalledAddOnUsageListInstance;
65
+ class InstalledAddOnUsageInstance {
66
+ constructor(_version, payload, installedAddOnSid) {
67
+ this._version = _version;
68
+ this.billableItems = payload.billable_items;
69
+ this.totalSubmitted = payload.total_submitted;
70
+ }
71
+ /**
72
+ * Provide a user-friendly representation
73
+ *
74
+ * @returns Object
75
+ */
76
+ toJSON() {
77
+ return {
78
+ billableItems: this.billableItems,
79
+ totalSubmitted: this.totalSubmitted,
80
+ };
81
+ }
82
+ [util_1.inspect.custom](_depth, options) {
83
+ return (0, util_1.inspect)(this.toJSON(), options);
84
+ }
85
+ }
86
+ exports.InstalledAddOnUsageInstance = InstalledAddOnUsageInstance;
@@ -0,0 +1,340 @@
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 V1 from "../V1";
6
+ import { InstalledAddOnExtensionListInstance } from "./installedAddOn/installedAddOnExtension";
7
+ import { InstalledAddOnUsageListInstance } from "./installedAddOn/installedAddOnUsage";
8
+ /**
9
+ * Options to pass to update a InstalledAddOnInstance
10
+ */
11
+ export interface InstalledAddOnContextUpdateOptions {
12
+ /** Valid JSON object that conform to the configuration schema exposed by the associated AvailableAddOn resource. This is only required by Add-ons that need to be configured */
13
+ configuration?: any;
14
+ /** An application-defined string that uniquely identifies the resource. This value must be unique within the Account. */
15
+ uniqueName?: string;
16
+ }
17
+ /**
18
+ * Options to pass to create a InstalledAddOnInstance
19
+ */
20
+ export interface InstalledAddOnListInstanceCreateOptions {
21
+ /** The SID of the AvaliableAddOn to install. */
22
+ availableAddOnSid: string;
23
+ /** Whether the Terms of Service were accepted. */
24
+ acceptTermsOfService: boolean;
25
+ /** The JSON object that represents the configuration of the new Add-on being installed. */
26
+ configuration?: any;
27
+ /** An application-defined string that uniquely identifies the resource. This value must be unique within the Account. */
28
+ uniqueName?: string;
29
+ }
30
+ /**
31
+ * Options to pass to each
32
+ */
33
+ export interface InstalledAddOnListInstanceEachOptions {
34
+ /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
35
+ pageSize?: number;
36
+ /** Function to process each record. If this and a positional callback are passed, this one will be used */
37
+ callback?: (item: InstalledAddOnInstance, done: (err?: Error) => void) => void;
38
+ /** Function to be called upon completion of streaming */
39
+ done?: Function;
40
+ /** Upper limit for the number of records to return. each() guarantees never to return more than limit. Default is no limit */
41
+ limit?: number;
42
+ }
43
+ /**
44
+ * Options to pass to list
45
+ */
46
+ export interface InstalledAddOnListInstanceOptions {
47
+ /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
48
+ pageSize?: number;
49
+ /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
50
+ limit?: number;
51
+ }
52
+ /**
53
+ * Options to pass to page
54
+ */
55
+ export interface InstalledAddOnListInstancePageOptions {
56
+ /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
57
+ pageSize?: number;
58
+ /** Page Number, this value is simply for client state */
59
+ pageNumber?: number;
60
+ /** PageToken provided by the API */
61
+ pageToken?: string;
62
+ }
63
+ export interface InstalledAddOnContext {
64
+ extensions: InstalledAddOnExtensionListInstance;
65
+ usage: InstalledAddOnUsageListInstance;
66
+ /**
67
+ * Remove a InstalledAddOnInstance
68
+ *
69
+ * @param callback - Callback to handle processed record
70
+ *
71
+ * @returns Resolves to processed boolean
72
+ */
73
+ remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
74
+ /**
75
+ * Fetch a InstalledAddOnInstance
76
+ *
77
+ * @param callback - Callback to handle processed record
78
+ *
79
+ * @returns Resolves to processed InstalledAddOnInstance
80
+ */
81
+ fetch(callback?: (error: Error | null, item?: InstalledAddOnInstance) => any): Promise<InstalledAddOnInstance>;
82
+ /**
83
+ * Update a InstalledAddOnInstance
84
+ *
85
+ * @param callback - Callback to handle processed record
86
+ *
87
+ * @returns Resolves to processed InstalledAddOnInstance
88
+ */
89
+ update(callback?: (error: Error | null, item?: InstalledAddOnInstance) => any): Promise<InstalledAddOnInstance>;
90
+ /**
91
+ * Update a InstalledAddOnInstance
92
+ *
93
+ * @param params - Parameter for request
94
+ * @param callback - Callback to handle processed record
95
+ *
96
+ * @returns Resolves to processed InstalledAddOnInstance
97
+ */
98
+ update(params: InstalledAddOnContextUpdateOptions, callback?: (error: Error | null, item?: InstalledAddOnInstance) => any): Promise<InstalledAddOnInstance>;
99
+ /**
100
+ * Provide a user-friendly representation
101
+ */
102
+ toJSON(): any;
103
+ [inspect.custom](_depth: any, options: InspectOptions): any;
104
+ }
105
+ export interface InstalledAddOnContextSolution {
106
+ sid: string;
107
+ }
108
+ export declare class InstalledAddOnContextImpl implements InstalledAddOnContext {
109
+ protected _version: V1;
110
+ protected _solution: InstalledAddOnContextSolution;
111
+ protected _uri: string;
112
+ protected _extensions?: InstalledAddOnExtensionListInstance;
113
+ protected _usage?: InstalledAddOnUsageListInstance;
114
+ constructor(_version: V1, sid: string);
115
+ get extensions(): InstalledAddOnExtensionListInstance;
116
+ get usage(): InstalledAddOnUsageListInstance;
117
+ remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
118
+ fetch(callback?: (error: Error | null, item?: InstalledAddOnInstance) => any): Promise<InstalledAddOnInstance>;
119
+ update(params?: InstalledAddOnContextUpdateOptions | ((error: Error | null, item?: InstalledAddOnInstance) => any), callback?: (error: Error | null, item?: InstalledAddOnInstance) => any): Promise<InstalledAddOnInstance>;
120
+ /**
121
+ * Provide a user-friendly representation
122
+ *
123
+ * @returns Object
124
+ */
125
+ toJSON(): InstalledAddOnContextSolution;
126
+ [inspect.custom](_depth: any, options: InspectOptions): string;
127
+ }
128
+ interface InstalledAddOnPayload extends TwilioResponsePayload {
129
+ installed_add_ons: InstalledAddOnResource[];
130
+ }
131
+ interface InstalledAddOnResource {
132
+ sid: string;
133
+ account_sid: string;
134
+ friendly_name: string;
135
+ description: string;
136
+ configuration: any;
137
+ unique_name: string;
138
+ date_created: Date;
139
+ date_updated: Date;
140
+ url: string;
141
+ links: Record<string, string>;
142
+ }
143
+ export declare class InstalledAddOnInstance {
144
+ protected _version: V1;
145
+ protected _solution: InstalledAddOnContextSolution;
146
+ protected _context?: InstalledAddOnContext;
147
+ constructor(_version: V1, payload: InstalledAddOnResource, sid?: string);
148
+ /**
149
+ * The unique string that we created to identify the InstalledAddOn resource. This Sid can also be found in the Console on that specific Add-ons page as the \'Available Add-on Sid\'.
150
+ */
151
+ sid: string;
152
+ /**
153
+ * The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the InstalledAddOn resource.
154
+ */
155
+ accountSid: string;
156
+ /**
157
+ * The string that you assigned to describe the resource.
158
+ */
159
+ friendlyName: string;
160
+ /**
161
+ * A short description of the Add-on\'s functionality.
162
+ */
163
+ description: string;
164
+ /**
165
+ * The JSON object that represents the current configuration of installed Add-on.
166
+ */
167
+ configuration: any;
168
+ /**
169
+ * An application-defined string that uniquely identifies the resource.
170
+ */
171
+ uniqueName: string;
172
+ /**
173
+ * The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
174
+ */
175
+ dateCreated: Date;
176
+ /**
177
+ * The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
178
+ */
179
+ dateUpdated: Date;
180
+ /**
181
+ * The absolute URL of the resource.
182
+ */
183
+ url: string;
184
+ /**
185
+ * The URLs of related resources.
186
+ */
187
+ links: Record<string, string>;
188
+ private get _proxy();
189
+ /**
190
+ * Remove a InstalledAddOnInstance
191
+ *
192
+ * @param callback - Callback to handle processed record
193
+ *
194
+ * @returns Resolves to processed boolean
195
+ */
196
+ remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
197
+ /**
198
+ * Fetch a InstalledAddOnInstance
199
+ *
200
+ * @param callback - Callback to handle processed record
201
+ *
202
+ * @returns Resolves to processed InstalledAddOnInstance
203
+ */
204
+ fetch(callback?: (error: Error | null, item?: InstalledAddOnInstance) => any): Promise<InstalledAddOnInstance>;
205
+ /**
206
+ * Update a InstalledAddOnInstance
207
+ *
208
+ * @param callback - Callback to handle processed record
209
+ *
210
+ * @returns Resolves to processed InstalledAddOnInstance
211
+ */
212
+ update(callback?: (error: Error | null, item?: InstalledAddOnInstance) => any): Promise<InstalledAddOnInstance>;
213
+ /**
214
+ * Update a InstalledAddOnInstance
215
+ *
216
+ * @param params - Parameter for request
217
+ * @param callback - Callback to handle processed record
218
+ *
219
+ * @returns Resolves to processed InstalledAddOnInstance
220
+ */
221
+ update(params: InstalledAddOnContextUpdateOptions, callback?: (error: Error | null, item?: InstalledAddOnInstance) => any): Promise<InstalledAddOnInstance>;
222
+ /**
223
+ * Access the extensions.
224
+ */
225
+ extensions(): InstalledAddOnExtensionListInstance;
226
+ /**
227
+ * Access the usage.
228
+ */
229
+ usage(): InstalledAddOnUsageListInstance;
230
+ /**
231
+ * Provide a user-friendly representation
232
+ *
233
+ * @returns Object
234
+ */
235
+ toJSON(): {
236
+ sid: string;
237
+ accountSid: string;
238
+ friendlyName: string;
239
+ description: string;
240
+ configuration: any;
241
+ uniqueName: string;
242
+ dateCreated: Date;
243
+ dateUpdated: Date;
244
+ url: string;
245
+ links: Record<string, string>;
246
+ };
247
+ [inspect.custom](_depth: any, options: InspectOptions): string;
248
+ }
249
+ export interface InstalledAddOnSolution {
250
+ }
251
+ export interface InstalledAddOnListInstance {
252
+ _version: V1;
253
+ _solution: InstalledAddOnSolution;
254
+ _uri: string;
255
+ (sid: string): InstalledAddOnContext;
256
+ get(sid: string): InstalledAddOnContext;
257
+ /**
258
+ * Create a InstalledAddOnInstance
259
+ *
260
+ * @param params - Parameter for request
261
+ * @param callback - Callback to handle processed record
262
+ *
263
+ * @returns Resolves to processed InstalledAddOnInstance
264
+ */
265
+ create(params: InstalledAddOnListInstanceCreateOptions, callback?: (error: Error | null, item?: InstalledAddOnInstance) => any): Promise<InstalledAddOnInstance>;
266
+ /**
267
+ * Streams InstalledAddOnInstance records from the API.
268
+ *
269
+ * This operation lazily loads records as efficiently as possible until the limit
270
+ * is reached.
271
+ *
272
+ * The results are passed into the callback function, so this operation is memory
273
+ * efficient.
274
+ *
275
+ * If a function is passed as the first argument, it will be used as the callback
276
+ * function.
277
+ *
278
+ * @param { InstalledAddOnListInstanceEachOptions } [params] - Options for request
279
+ * @param { function } [callback] - Function to process each record
280
+ */
281
+ each(callback?: (item: InstalledAddOnInstance, done: (err?: Error) => void) => void): void;
282
+ each(params: InstalledAddOnListInstanceEachOptions, callback?: (item: InstalledAddOnInstance, done: (err?: Error) => void) => void): void;
283
+ /**
284
+ * Retrieve a single target page of InstalledAddOnInstance records from the API.
285
+ *
286
+ * The request is executed immediately.
287
+ *
288
+ * @param { string } [targetUrl] - API-generated URL for the requested results page
289
+ * @param { function } [callback] - Callback to handle list of records
290
+ */
291
+ getPage(targetUrl: string, callback?: (error: Error | null, items: InstalledAddOnPage) => any): Promise<InstalledAddOnPage>;
292
+ /**
293
+ * Lists InstalledAddOnInstance records from the API as a list.
294
+ *
295
+ * If a function is passed as the first argument, it will be used as the callback
296
+ * function.
297
+ *
298
+ * @param { InstalledAddOnListInstanceOptions } [params] - Options for request
299
+ * @param { function } [callback] - Callback to handle list of records
300
+ */
301
+ list(callback?: (error: Error | null, items: InstalledAddOnInstance[]) => any): Promise<InstalledAddOnInstance[]>;
302
+ list(params: InstalledAddOnListInstanceOptions, callback?: (error: Error | null, items: InstalledAddOnInstance[]) => any): Promise<InstalledAddOnInstance[]>;
303
+ /**
304
+ * Retrieve a single page of InstalledAddOnInstance records from the API.
305
+ *
306
+ * The request is executed immediately.
307
+ *
308
+ * If a function is passed as the first argument, it will be used as the callback
309
+ * function.
310
+ *
311
+ * @param { InstalledAddOnListInstancePageOptions } [params] - Options for request
312
+ * @param { function } [callback] - Callback to handle list of records
313
+ */
314
+ page(callback?: (error: Error | null, items: InstalledAddOnPage) => any): Promise<InstalledAddOnPage>;
315
+ page(params: InstalledAddOnListInstancePageOptions, callback?: (error: Error | null, items: InstalledAddOnPage) => any): Promise<InstalledAddOnPage>;
316
+ /**
317
+ * Provide a user-friendly representation
318
+ */
319
+ toJSON(): any;
320
+ [inspect.custom](_depth: any, options: InspectOptions): any;
321
+ }
322
+ export declare function InstalledAddOnListInstance(version: V1): InstalledAddOnListInstance;
323
+ export declare class InstalledAddOnPage extends Page<V1, InstalledAddOnPayload, InstalledAddOnResource, InstalledAddOnInstance> {
324
+ /**
325
+ * Initialize the InstalledAddOnPage
326
+ *
327
+ * @param version - Version of the resource
328
+ * @param response - Response from the API
329
+ * @param solution - Path solution
330
+ */
331
+ constructor(version: V1, response: Response<string>, solution: InstalledAddOnSolution);
332
+ /**
333
+ * Build an instance of InstalledAddOnInstance
334
+ *
335
+ * @param payload - Payload response from the API
336
+ */
337
+ getInstance(payload: InstalledAddOnResource): InstalledAddOnInstance;
338
+ [inspect.custom](depth: any, options: InspectOptions): string;
339
+ }
340
+ export {};