twilio 4.11.1 → 4.11.2

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.
@@ -0,0 +1,4 @@
1
+ import IntelligenceBase from "./IntelligenceBase";
2
+ declare class Intelligence extends IntelligenceBase {
3
+ }
4
+ export = Intelligence;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ const IntelligenceBase_1 = __importDefault(require("./IntelligenceBase"));
6
+ class Intelligence extends IntelligenceBase_1.default {
7
+ }
8
+ module.exports = Intelligence;
@@ -0,0 +1,13 @@
1
+ import Domain from "../base/Domain";
2
+ import V2 from "./intelligence/V2";
3
+ declare class IntelligenceBase extends Domain {
4
+ _v2?: V2;
5
+ /**
6
+ * Initialize intelligence domain
7
+ *
8
+ * @param twilio - The twilio client
9
+ */
10
+ constructor(twilio: any);
11
+ get v2(): V2;
12
+ }
13
+ export = IntelligenceBase;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ /*
3
+ * This code was generated by
4
+ * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
5
+ * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
6
+ * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator.
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ var __importDefault = (this && this.__importDefault) || function (mod) {
13
+ return (mod && mod.__esModule) ? mod : { "default": mod };
14
+ };
15
+ const Domain_1 = __importDefault(require("../base/Domain"));
16
+ const V2_1 = __importDefault(require("./intelligence/V2"));
17
+ class IntelligenceBase extends Domain_1.default {
18
+ /**
19
+ * Initialize intelligence domain
20
+ *
21
+ * @param twilio - The twilio client
22
+ */
23
+ constructor(twilio) {
24
+ super(twilio, "https://intelligence.twilio.com");
25
+ }
26
+ get v2() {
27
+ this._v2 = this._v2 || new V2_1.default(this);
28
+ return this._v2;
29
+ }
30
+ }
31
+ module.exports = IntelligenceBase;
@@ -10,6 +10,7 @@ import Events from "./Events";
10
10
  import FlexApi from "./FlexApi";
11
11
  import FrontlineApi from "./FrontlineApi";
12
12
  import Insights from "./Insights";
13
+ import Intelligence from "./Intelligence";
13
14
  import IpMessaging from "./IpMessaging";
14
15
  import Lookups from "./Lookups";
15
16
  import Media from "./Media";
@@ -84,6 +85,8 @@ declare class Twilio extends Client {
84
85
  _frontlineApi?: FrontlineApi;
85
86
  /** (Twilio.Insights) - insights domain */
86
87
  _insights?: Insights;
88
+ /** (Twilio.Intelligence) - intelligence domain */
89
+ _intelligence?: Intelligence;
87
90
  /** (Twilio.IpMessaging) - ipMessaging domain */
88
91
  _ipMessaging?: IpMessaging;
89
92
  /** (Twilio.Lookups) - lookups domain */
@@ -166,6 +169,8 @@ declare class Twilio extends Client {
166
169
  get frontlineApi(): FrontlineApi;
167
170
  /** Getter for (Twilio.Insights) domain */
168
171
  get insights(): Insights;
172
+ /** Getter for (Twilio.Intelligence) domain */
173
+ get intelligence(): Intelligence;
169
174
  /** Getter for (Twilio.IpMessaging) domain */
170
175
  get ipMessaging(): IpMessaging;
171
176
  /** Getter for (Twilio.Lookups) domain */
@@ -43,6 +43,7 @@ class Twilio extends BaseTwilio_1.Client {
43
43
  this.flexApi;
44
44
  this.frontlineApi;
45
45
  this.insights;
46
+ this.intelligence;
46
47
  this.ipMessaging;
47
48
  this.lookups;
48
49
  this.media;
@@ -117,6 +118,11 @@ class Twilio extends BaseTwilio_1.Client {
117
118
  get insights() {
118
119
  return (this._insights ?? (this._insights = new (require("./Insights"))(this)));
119
120
  }
121
+ /** Getter for (Twilio.Intelligence) domain */
122
+ get intelligence() {
123
+ return (this._intelligence ??
124
+ (this._intelligence = new (require("./Intelligence"))(this)));
125
+ }
120
126
  /** Getter for (Twilio.IpMessaging) domain */
121
127
  get ipMessaging() {
122
128
  return (this._ipMessaging ??
@@ -71,7 +71,7 @@ export interface ParticipantListInstanceCreateOptions {
71
71
  maxParticipants?: number;
72
72
  /** Whether to record the conference the participant is joining. Can be: `true`, `false`, `record-from-start`, and `do-not-record`. The default value is `false`. */
73
73
  conferenceRecord?: string;
74
- /** Whether to trim leading and trailing silence from your recorded conference audio files. Can be: `trim-silence` or `do-not-trim` and defaults to `trim-silence`. */
74
+ /** Whether to trim leading and trailing silence from the conference recording. Can be: `trim-silence` or `do-not-trim` and defaults to `trim-silence`. */
75
75
  conferenceTrim?: string;
76
76
  /** The URL we should call using the `conference_status_callback_method` when the conference events in `conference_status_callback_event` occur. Only the value set by the first participant to join the conference is used. Subsequent `conference_status_callback` values are ignored. */
77
77
  conferenceStatusCallback?: string;
@@ -129,6 +129,8 @@ export interface ParticipantListInstanceCreateOptions {
129
129
  amdStatusCallback?: string;
130
130
  /** The HTTP method we should use when calling the `amd_status_callback` URL. Can be: `GET` or `POST` and the default is `POST`. */
131
131
  amdStatusCallbackMethod?: string;
132
+ /** Whether to trim any leading and trailing silence from the participant recording. Can be: `trim-silence` or `do-not-trim` and the default is `trim-silence`. */
133
+ trim?: string;
132
134
  }
133
135
  /**
134
136
  * Options to pass to each
@@ -317,6 +317,8 @@ function ParticipantListInstance(version, accountSid, conferenceSid) {
317
317
  data["AmdStatusCallback"] = params["amdStatusCallback"];
318
318
  if (params["amdStatusCallbackMethod"] !== undefined)
319
319
  data["AmdStatusCallbackMethod"] = params["amdStatusCallbackMethod"];
320
+ if (params["trim"] !== undefined)
321
+ data["Trim"] = params["trim"];
320
322
  const headers = {};
321
323
  headers["Content-Type"] = "application/x-www-form-urlencoded";
322
324
  let operationVersion = version, operationPromise = operationVersion.create({
@@ -0,0 +1,20 @@
1
+ import IntelligenceBase from "../IntelligenceBase";
2
+ import Version from "../../base/Version";
3
+ import { ServiceListInstance } from "./v2/service";
4
+ import { TranscriptListInstance } from "./v2/transcript";
5
+ export default class V2 extends Version {
6
+ /**
7
+ * Initialize the V2 version of Intelligence
8
+ *
9
+ * @param domain - The Twilio (Twilio.Intelligence) domain
10
+ */
11
+ constructor(domain: IntelligenceBase);
12
+ /** services - { Twilio.Intelligence.V2.ServiceListInstance } resource */
13
+ protected _services?: ServiceListInstance;
14
+ /** transcripts - { Twilio.Intelligence.V2.TranscriptListInstance } resource */
15
+ protected _transcripts?: TranscriptListInstance;
16
+ /** Getter for services resource */
17
+ get services(): ServiceListInstance;
18
+ /** Getter for transcripts resource */
19
+ get transcripts(): TranscriptListInstance;
20
+ }
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ /*
3
+ * This code was generated by
4
+ * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
5
+ * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
6
+ * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
7
+ *
8
+ * Twilio - Intelligence
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
+ const Version_1 = __importDefault(require("../../base/Version"));
20
+ const service_1 = require("./v2/service");
21
+ const transcript_1 = require("./v2/transcript");
22
+ class V2 extends Version_1.default {
23
+ /**
24
+ * Initialize the V2 version of Intelligence
25
+ *
26
+ * @param domain - The Twilio (Twilio.Intelligence) domain
27
+ */
28
+ constructor(domain) {
29
+ super(domain, "v2");
30
+ }
31
+ /** Getter for services resource */
32
+ get services() {
33
+ this._services = this._services || (0, service_1.ServiceListInstance)(this);
34
+ return this._services;
35
+ }
36
+ /** Getter for transcripts resource */
37
+ get transcripts() {
38
+ this._transcripts = this._transcripts || (0, transcript_1.TranscriptListInstance)(this);
39
+ return this._transcripts;
40
+ }
41
+ }
42
+ exports.default = V2;
@@ -0,0 +1,378 @@
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 V2 from "../V2";
6
+ export type ServiceHttpMethod = "GET" | "POST" | "NULL";
7
+ /**
8
+ * Options to pass to update a ServiceInstance
9
+ */
10
+ export interface ServiceContextUpdateOptions {
11
+ /** The If-Match HTTP request header */
12
+ ifMatch?: string;
13
+ /** Instructs the Speech Recognition service to automatically transcribe all recordings made on the account. */
14
+ autoTranscribe?: boolean;
15
+ /** Data logging allows Twilio to improve the quality of the speech recognition through using customer data to refine its speech recognition models. */
16
+ dataLogging?: boolean;
17
+ /** A human readable description of this resource, up to 64 characters. */
18
+ friendlyName?: string;
19
+ /** The default language code of the audio. */
20
+ languageCode?: string;
21
+ /** Provides a unique and addressable name to be assigned to this Service, assigned by the developer, to be optionally used in addition to SID. */
22
+ uniqueName?: string;
23
+ /** Instructs the Speech Recognition service to automatically redact PII from all transcripts made on this service. */
24
+ autoRedaction?: boolean;
25
+ /** Instructs the Speech Recognition service to automatically redact PII from all transcripts media made on this service. The auto_redaction flag must be enabled, results in error otherwise. */
26
+ mediaRedaction?: boolean;
27
+ /** The URL Twilio will request when executing the Webhook. */
28
+ webhookUrl?: string;
29
+ /** */
30
+ webhookHttpMethod?: ServiceHttpMethod;
31
+ }
32
+ /**
33
+ * Options to pass to create a ServiceInstance
34
+ */
35
+ export interface ServiceListInstanceCreateOptions {
36
+ /** Provides a unique and addressable name to be assigned to this Service, assigned by the developer, to be optionally used in addition to SID. */
37
+ uniqueName: string;
38
+ /** Instructs the Speech Recognition service to automatically transcribe all recordings made on the account. */
39
+ autoTranscribe?: boolean;
40
+ /** Data logging allows Twilio to improve the quality of the speech recognition through using customer data to refine its speech recognition models. */
41
+ dataLogging?: boolean;
42
+ /** A human readable description of this resource, up to 64 characters. */
43
+ friendlyName?: string;
44
+ /** The default language code of the audio. */
45
+ languageCode?: string;
46
+ /** Instructs the Speech Recognition service to automatically redact PII from all transcripts made on this service. */
47
+ autoRedaction?: boolean;
48
+ /** Instructs the Speech Recognition service to automatically redact PII from all transcripts media made on this service. The auto_redaction flag must be enabled, results in error otherwise. */
49
+ mediaRedaction?: boolean;
50
+ /** The URL Twilio will request when executing the Webhook. */
51
+ webhookUrl?: string;
52
+ /** */
53
+ webhookHttpMethod?: ServiceHttpMethod;
54
+ }
55
+ /**
56
+ * Options to pass to each
57
+ */
58
+ export interface ServiceListInstanceEachOptions {
59
+ /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
60
+ pageSize?: number;
61
+ /** Function to process each record. If this and a positional callback are passed, this one will be used */
62
+ callback?: (item: ServiceInstance, done: (err?: Error) => void) => void;
63
+ /** Function to be called upon completion of streaming */
64
+ done?: Function;
65
+ /** Upper limit for the number of records to return. each() guarantees never to return more than limit. Default is no limit */
66
+ limit?: number;
67
+ }
68
+ /**
69
+ * Options to pass to list
70
+ */
71
+ export interface ServiceListInstanceOptions {
72
+ /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
73
+ pageSize?: number;
74
+ /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
75
+ limit?: number;
76
+ }
77
+ /**
78
+ * Options to pass to page
79
+ */
80
+ export interface ServiceListInstancePageOptions {
81
+ /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
82
+ pageSize?: number;
83
+ /** Page Number, this value is simply for client state */
84
+ pageNumber?: number;
85
+ /** PageToken provided by the API */
86
+ pageToken?: string;
87
+ }
88
+ export interface ServiceContext {
89
+ /**
90
+ * Remove a ServiceInstance
91
+ *
92
+ * @param callback - Callback to handle processed record
93
+ *
94
+ * @returns Resolves to processed boolean
95
+ */
96
+ remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
97
+ /**
98
+ * Fetch a ServiceInstance
99
+ *
100
+ * @param callback - Callback to handle processed record
101
+ *
102
+ * @returns Resolves to processed ServiceInstance
103
+ */
104
+ fetch(callback?: (error: Error | null, item?: ServiceInstance) => any): Promise<ServiceInstance>;
105
+ /**
106
+ * Update a ServiceInstance
107
+ *
108
+ * @param callback - Callback to handle processed record
109
+ *
110
+ * @returns Resolves to processed ServiceInstance
111
+ */
112
+ update(callback?: (error: Error | null, item?: ServiceInstance) => any): Promise<ServiceInstance>;
113
+ /**
114
+ * Update a ServiceInstance
115
+ *
116
+ * @param params - Parameter for request
117
+ * @param callback - Callback to handle processed record
118
+ *
119
+ * @returns Resolves to processed ServiceInstance
120
+ */
121
+ update(params: ServiceContextUpdateOptions, callback?: (error: Error | null, item?: ServiceInstance) => any): Promise<ServiceInstance>;
122
+ /**
123
+ * Provide a user-friendly representation
124
+ */
125
+ toJSON(): any;
126
+ [inspect.custom](_depth: any, options: InspectOptions): any;
127
+ }
128
+ export interface ServiceContextSolution {
129
+ sid: string;
130
+ }
131
+ export declare class ServiceContextImpl implements ServiceContext {
132
+ protected _version: V2;
133
+ protected _solution: ServiceContextSolution;
134
+ protected _uri: string;
135
+ constructor(_version: V2, sid: string);
136
+ remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
137
+ fetch(callback?: (error: Error | null, item?: ServiceInstance) => any): Promise<ServiceInstance>;
138
+ update(params?: ServiceContextUpdateOptions | ((error: Error | null, item?: ServiceInstance) => any), callback?: (error: Error | null, item?: ServiceInstance) => any): Promise<ServiceInstance>;
139
+ /**
140
+ * Provide a user-friendly representation
141
+ *
142
+ * @returns Object
143
+ */
144
+ toJSON(): ServiceContextSolution;
145
+ [inspect.custom](_depth: any, options: InspectOptions): string;
146
+ }
147
+ interface ServicePayload extends TwilioResponsePayload {
148
+ services: ServiceResource[];
149
+ }
150
+ interface ServiceResource {
151
+ account_sid: string;
152
+ auto_redaction: boolean;
153
+ media_redaction: boolean;
154
+ auto_transcribe: boolean;
155
+ data_logging: boolean;
156
+ date_created: Date;
157
+ date_updated: Date;
158
+ friendly_name: string;
159
+ language_code: string;
160
+ sid: string;
161
+ unique_name: string;
162
+ url: string;
163
+ webhook_url: string;
164
+ webhook_http_method: ServiceHttpMethod;
165
+ version: number;
166
+ }
167
+ export declare class ServiceInstance {
168
+ protected _version: V2;
169
+ protected _solution: ServiceContextSolution;
170
+ protected _context?: ServiceContext;
171
+ constructor(_version: V2, payload: ServiceResource, sid?: string);
172
+ /**
173
+ * The unique SID identifier of the Account the Service belongs to.
174
+ */
175
+ accountSid: string;
176
+ /**
177
+ * Instructs the Speech Recognition service to automatically redact PII from all transcripts made on this service.
178
+ */
179
+ autoRedaction: boolean;
180
+ /**
181
+ * Instructs the Speech Recognition service to automatically redact PII from all transcripts media made on this service. The auto_redaction flag must be enabled, results in error otherwise.
182
+ */
183
+ mediaRedaction: boolean;
184
+ /**
185
+ * Instructs the Speech Recognition service to automatically transcribe all recordings made on the account.
186
+ */
187
+ autoTranscribe: boolean;
188
+ /**
189
+ * Data logging allows Twilio to improve the quality of the speech recognition through using customer data to refine its speech recognition models.
190
+ */
191
+ dataLogging: boolean;
192
+ /**
193
+ * The date that this Service was created, given in ISO 8601 format.
194
+ */
195
+ dateCreated: Date;
196
+ /**
197
+ * The date that this Service was updated, given in ISO 8601 format.
198
+ */
199
+ dateUpdated: Date;
200
+ /**
201
+ * A human readable description of this resource, up to 64 characters.
202
+ */
203
+ friendlyName: string;
204
+ /**
205
+ * The default language code of the audio.
206
+ */
207
+ languageCode: string;
208
+ /**
209
+ * A 34 character string that uniquely identifies this Service.
210
+ */
211
+ sid: string;
212
+ /**
213
+ * Provides a unique and addressable name to be assigned to this Service, assigned by the developer, to be optionally used in addition to SID.
214
+ */
215
+ uniqueName: string;
216
+ /**
217
+ * The URL of this resource.
218
+ */
219
+ url: string;
220
+ /**
221
+ * The URL Twilio will request when executing the Webhook.
222
+ */
223
+ webhookUrl: string;
224
+ webhookHttpMethod: ServiceHttpMethod;
225
+ /**
226
+ * The version number of this Service.
227
+ */
228
+ version: number;
229
+ private get _proxy();
230
+ /**
231
+ * Remove a ServiceInstance
232
+ *
233
+ * @param callback - Callback to handle processed record
234
+ *
235
+ * @returns Resolves to processed boolean
236
+ */
237
+ remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
238
+ /**
239
+ * Fetch a ServiceInstance
240
+ *
241
+ * @param callback - Callback to handle processed record
242
+ *
243
+ * @returns Resolves to processed ServiceInstance
244
+ */
245
+ fetch(callback?: (error: Error | null, item?: ServiceInstance) => any): Promise<ServiceInstance>;
246
+ /**
247
+ * Update a ServiceInstance
248
+ *
249
+ * @param callback - Callback to handle processed record
250
+ *
251
+ * @returns Resolves to processed ServiceInstance
252
+ */
253
+ update(callback?: (error: Error | null, item?: ServiceInstance) => any): Promise<ServiceInstance>;
254
+ /**
255
+ * Update a ServiceInstance
256
+ *
257
+ * @param params - Parameter for request
258
+ * @param callback - Callback to handle processed record
259
+ *
260
+ * @returns Resolves to processed ServiceInstance
261
+ */
262
+ update(params: ServiceContextUpdateOptions, callback?: (error: Error | null, item?: ServiceInstance) => any): Promise<ServiceInstance>;
263
+ /**
264
+ * Provide a user-friendly representation
265
+ *
266
+ * @returns Object
267
+ */
268
+ toJSON(): {
269
+ accountSid: string;
270
+ autoRedaction: boolean;
271
+ mediaRedaction: boolean;
272
+ autoTranscribe: boolean;
273
+ dataLogging: boolean;
274
+ dateCreated: Date;
275
+ dateUpdated: Date;
276
+ friendlyName: string;
277
+ languageCode: string;
278
+ sid: string;
279
+ uniqueName: string;
280
+ url: string;
281
+ webhookUrl: string;
282
+ webhookHttpMethod: ServiceHttpMethod;
283
+ version: number;
284
+ };
285
+ [inspect.custom](_depth: any, options: InspectOptions): string;
286
+ }
287
+ export interface ServiceSolution {
288
+ }
289
+ export interface ServiceListInstance {
290
+ _version: V2;
291
+ _solution: ServiceSolution;
292
+ _uri: string;
293
+ (sid: string): ServiceContext;
294
+ get(sid: string): ServiceContext;
295
+ /**
296
+ * Create a ServiceInstance
297
+ *
298
+ * @param params - Parameter for request
299
+ * @param callback - Callback to handle processed record
300
+ *
301
+ * @returns Resolves to processed ServiceInstance
302
+ */
303
+ create(params: ServiceListInstanceCreateOptions, callback?: (error: Error | null, item?: ServiceInstance) => any): Promise<ServiceInstance>;
304
+ /**
305
+ * Streams ServiceInstance records from the API.
306
+ *
307
+ * This operation lazily loads records as efficiently as possible until the limit
308
+ * is reached.
309
+ *
310
+ * The results are passed into the callback function, so this operation is memory
311
+ * efficient.
312
+ *
313
+ * If a function is passed as the first argument, it will be used as the callback
314
+ * function.
315
+ *
316
+ * @param { ServiceListInstanceEachOptions } [params] - Options for request
317
+ * @param { function } [callback] - Function to process each record
318
+ */
319
+ each(callback?: (item: ServiceInstance, done: (err?: Error) => void) => void): void;
320
+ each(params: ServiceListInstanceEachOptions, callback?: (item: ServiceInstance, done: (err?: Error) => void) => void): void;
321
+ /**
322
+ * Retrieve a single target page of ServiceInstance records from the API.
323
+ *
324
+ * The request is executed immediately.
325
+ *
326
+ * @param { string } [targetUrl] - API-generated URL for the requested results page
327
+ * @param { function } [callback] - Callback to handle list of records
328
+ */
329
+ getPage(targetUrl: string, callback?: (error: Error | null, items: ServicePage) => any): Promise<ServicePage>;
330
+ /**
331
+ * Lists ServiceInstance records from the API as a list.
332
+ *
333
+ * If a function is passed as the first argument, it will be used as the callback
334
+ * function.
335
+ *
336
+ * @param { ServiceListInstanceOptions } [params] - Options for request
337
+ * @param { function } [callback] - Callback to handle list of records
338
+ */
339
+ list(callback?: (error: Error | null, items: ServiceInstance[]) => any): Promise<ServiceInstance[]>;
340
+ list(params: ServiceListInstanceOptions, callback?: (error: Error | null, items: ServiceInstance[]) => any): Promise<ServiceInstance[]>;
341
+ /**
342
+ * Retrieve a single page of ServiceInstance records from the API.
343
+ *
344
+ * The request is executed immediately.
345
+ *
346
+ * If a function is passed as the first argument, it will be used as the callback
347
+ * function.
348
+ *
349
+ * @param { ServiceListInstancePageOptions } [params] - Options for request
350
+ * @param { function } [callback] - Callback to handle list of records
351
+ */
352
+ page(callback?: (error: Error | null, items: ServicePage) => any): Promise<ServicePage>;
353
+ page(params: ServiceListInstancePageOptions, callback?: (error: Error | null, items: ServicePage) => any): Promise<ServicePage>;
354
+ /**
355
+ * Provide a user-friendly representation
356
+ */
357
+ toJSON(): any;
358
+ [inspect.custom](_depth: any, options: InspectOptions): any;
359
+ }
360
+ export declare function ServiceListInstance(version: V2): ServiceListInstance;
361
+ export declare class ServicePage extends Page<V2, ServicePayload, ServiceResource, ServiceInstance> {
362
+ /**
363
+ * Initialize the ServicePage
364
+ *
365
+ * @param version - Version of the resource
366
+ * @param response - Response from the API
367
+ * @param solution - Path solution
368
+ */
369
+ constructor(version: V2, response: Response<string>, solution: ServiceSolution);
370
+ /**
371
+ * Build an instance of ServiceInstance
372
+ *
373
+ * @param payload - Payload response from the API
374
+ */
375
+ getInstance(payload: ServiceResource): ServiceInstance;
376
+ [inspect.custom](depth: any, options: InspectOptions): string;
377
+ }
378
+ export {};