twilio 5.0.3 → 5.1.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 (79) hide show
  1. package/README.md +1 -0
  2. package/lib/rest/ContentBase.d.ts +3 -0
  3. package/lib/rest/ContentBase.js +5 -0
  4. package/lib/rest/Twilio.d.ts +0 -5
  5. package/lib/rest/Twilio.js +0 -6
  6. package/lib/rest/api/v2010/account/call/stream.d.ts +5 -5
  7. package/lib/rest/api/v2010/account/message.d.ts +1 -1
  8. package/lib/rest/content/V2.d.ts +20 -0
  9. package/lib/rest/content/V2.js +43 -0
  10. package/lib/rest/content/v2/content.d.ts +196 -0
  11. package/lib/rest/content/v2/content.js +136 -0
  12. package/lib/rest/content/v2/contentAndApprovals.d.ts +190 -0
  13. package/lib/rest/content/v2/contentAndApprovals.js +134 -0
  14. package/lib/rest/flexApi/V2.d.ts +5 -0
  15. package/lib/rest/flexApi/V2.js +6 -0
  16. package/lib/rest/flexApi/v1/interaction.d.ts +1 -1
  17. package/lib/rest/flexApi/v1/interaction.js +2 -4
  18. package/lib/rest/flexApi/v1/plugin/pluginVersions.d.ts +4 -1
  19. package/lib/rest/flexApi/v1/plugin/pluginVersions.js +2 -0
  20. package/lib/rest/flexApi/v2/flexUser.d.ts +170 -0
  21. package/lib/rest/flexApi/v2/flexUser.js +142 -0
  22. package/lib/rest/flexApi/v2/webChannels.d.ts +2 -0
  23. package/lib/rest/flexApi/v2/webChannels.js +2 -0
  24. package/lib/rest/intelligence/V2.d.ts +30 -0
  25. package/lib/rest/intelligence/V2.js +40 -0
  26. package/lib/rest/intelligence/v2/customOperator.d.ts +330 -0
  27. package/lib/rest/intelligence/v2/customOperator.js +279 -0
  28. package/lib/rest/intelligence/v2/operator.d.ts +263 -0
  29. package/lib/rest/intelligence/v2/operator.js +197 -0
  30. package/lib/rest/intelligence/v2/operatorAttachment.d.ts +112 -0
  31. package/lib/rest/intelligence/v2/operatorAttachment.js +135 -0
  32. package/lib/rest/intelligence/v2/operatorAttachments.d.ts +94 -0
  33. package/lib/rest/intelligence/v2/operatorAttachments.js +110 -0
  34. package/lib/rest/intelligence/v2/operatorType.d.ts +259 -0
  35. package/lib/rest/intelligence/v2/operatorType.js +197 -0
  36. package/lib/rest/intelligence/v2/prebuiltOperator.d.ts +263 -0
  37. package/lib/rest/intelligence/v2/prebuiltOperator.js +197 -0
  38. package/lib/rest/intelligence/v2/service.d.ts +8 -4
  39. package/lib/rest/intelligence/v2/service.js +3 -2
  40. package/lib/rest/messaging/v1/service.d.ts +0 -6
  41. package/lib/rest/messaging/v1/service.js +0 -2
  42. package/lib/rest/numbers/V1.d.ts +20 -10
  43. package/lib/rest/numbers/V1.js +31 -14
  44. package/lib/rest/numbers/v1/portingPortIn.d.ts +133 -14
  45. package/lib/rest/numbers/v1/portingPortIn.js +116 -24
  46. package/lib/rest/numbers/v1/portingPortInPhoneNumber.d.ts +175 -0
  47. package/lib/rest/numbers/v1/portingPortInPhoneNumber.js +157 -0
  48. package/lib/rest/numbers/v1/portingWebhookConfiguration.d.ts +79 -0
  49. package/lib/rest/{previewMessaging/v1/broadcast.js → numbers/v1/portingWebhookConfiguration.js} +19 -32
  50. package/lib/rest/numbers/v1/portingWebhookConfigurationDelete.d.ts +51 -0
  51. package/lib/rest/numbers/v1/portingWebhookConfigurationDelete.js +68 -0
  52. package/lib/rest/numbers/v1/portingWebhookConfigurationFetch.d.ts +75 -0
  53. package/lib/rest/numbers/v1/portingWebhookConfigurationFetch.js +72 -0
  54. package/lib/rest/taskrouter/v1/workspace/task.d.ts +24 -0
  55. package/lib/rest/taskrouter/v1/workspace/task.js +12 -0
  56. package/lib/rest/trusthub/v1/complianceTollfreeInquiries.d.ts +2 -0
  57. package/lib/rest/trusthub/v1/complianceTollfreeInquiries.js +2 -0
  58. package/lib/rest/trusthub/v1/customerProfiles.d.ts +6 -0
  59. package/lib/rest/trusthub/v1/customerProfiles.js +2 -0
  60. package/lib/rest/trusthub/v1/trustProducts.d.ts +6 -0
  61. package/lib/rest/trusthub/v1/trustProducts.js +2 -0
  62. package/lib/rest/verify/v2/service/verification.d.ts +1 -1
  63. package/lib/rest/verify/v2/service/verificationCheck.d.ts +1 -1
  64. package/lib/rest/verify/v2/service.d.ts +1 -1
  65. package/lib/webhooks/webhooks.js +9 -11
  66. package/package.json +4 -6
  67. package/lib/rest/PreviewMessaging.d.ts +0 -9
  68. package/lib/rest/PreviewMessaging.js +0 -15
  69. package/lib/rest/PreviewMessagingBase.d.ts +0 -13
  70. package/lib/rest/PreviewMessagingBase.js +0 -31
  71. package/lib/rest/numbers/v1/portingBulkPortability.d.ts +0 -120
  72. package/lib/rest/numbers/v1/portingBulkPortability.js +0 -136
  73. package/lib/rest/numbers/v1/portingPortInFetch.d.ts +0 -142
  74. package/lib/rest/numbers/v1/portingPortInFetch.js +0 -128
  75. package/lib/rest/previewMessaging/V1.d.ts +0 -20
  76. package/lib/rest/previewMessaging/V1.js +0 -42
  77. package/lib/rest/previewMessaging/v1/broadcast.d.ts +0 -108
  78. package/lib/rest/previewMessaging/v1/message.d.ts +0 -178
  79. package/lib/rest/previewMessaging/v1/message.js +0 -91
@@ -0,0 +1,259 @@
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 OperatorTypeAvailability = "internal" | "beta" | "public" | "retired";
7
+ export type OperatorTypeOutputType = "text-classification" | "text-extraction" | "text-extraction-normalized" | "text-generation";
8
+ export type OperatorTypeProvider = "twilio" | "amazon" | "openai";
9
+ /**
10
+ * Options to pass to each
11
+ */
12
+ export interface OperatorTypeListInstanceEachOptions {
13
+ /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
14
+ pageSize?: number;
15
+ /** Function to process each record. If this and a positional callback are passed, this one will be used */
16
+ callback?: (item: OperatorTypeInstance, done: (err?: Error) => void) => void;
17
+ /** Function to be called upon completion of streaming */
18
+ done?: Function;
19
+ /** Upper limit for the number of records to return. each() guarantees never to return more than limit. Default is no limit */
20
+ limit?: number;
21
+ }
22
+ /**
23
+ * Options to pass to list
24
+ */
25
+ export interface OperatorTypeListInstanceOptions {
26
+ /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
27
+ pageSize?: number;
28
+ /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
29
+ limit?: number;
30
+ }
31
+ /**
32
+ * Options to pass to page
33
+ */
34
+ export interface OperatorTypeListInstancePageOptions {
35
+ /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
36
+ pageSize?: number;
37
+ /** Page Number, this value is simply for client state */
38
+ pageNumber?: number;
39
+ /** PageToken provided by the API */
40
+ pageToken?: string;
41
+ }
42
+ export interface OperatorTypeContext {
43
+ /**
44
+ * Fetch a OperatorTypeInstance
45
+ *
46
+ * @param callback - Callback to handle processed record
47
+ *
48
+ * @returns Resolves to processed OperatorTypeInstance
49
+ */
50
+ fetch(callback?: (error: Error | null, item?: OperatorTypeInstance) => any): Promise<OperatorTypeInstance>;
51
+ /**
52
+ * Provide a user-friendly representation
53
+ */
54
+ toJSON(): any;
55
+ [inspect.custom](_depth: any, options: InspectOptions): any;
56
+ }
57
+ export interface OperatorTypeContextSolution {
58
+ sid: string;
59
+ }
60
+ export declare class OperatorTypeContextImpl implements OperatorTypeContext {
61
+ protected _version: V2;
62
+ protected _solution: OperatorTypeContextSolution;
63
+ protected _uri: string;
64
+ constructor(_version: V2, sid: string);
65
+ fetch(callback?: (error: Error | null, item?: OperatorTypeInstance) => any): Promise<OperatorTypeInstance>;
66
+ /**
67
+ * Provide a user-friendly representation
68
+ *
69
+ * @returns Object
70
+ */
71
+ toJSON(): OperatorTypeContextSolution;
72
+ [inspect.custom](_depth: any, options: InspectOptions): string;
73
+ }
74
+ interface OperatorTypePayload extends TwilioResponsePayload {
75
+ operator_types: OperatorTypeResource[];
76
+ }
77
+ interface OperatorTypeResource {
78
+ name: string;
79
+ sid: string;
80
+ friendly_name: string;
81
+ description: string;
82
+ docs_link: string;
83
+ output_type: OperatorTypeOutputType;
84
+ supported_languages: Array<string>;
85
+ provider: OperatorTypeProvider;
86
+ availability: OperatorTypeAvailability;
87
+ configurable: boolean;
88
+ config_schema: any;
89
+ date_created: Date;
90
+ date_updated: Date;
91
+ url: string;
92
+ }
93
+ export declare class OperatorTypeInstance {
94
+ protected _version: V2;
95
+ protected _solution: OperatorTypeContextSolution;
96
+ protected _context?: OperatorTypeContext;
97
+ constructor(_version: V2, payload: OperatorTypeResource, sid?: string);
98
+ /**
99
+ * A unique name that references an Operator\'s Operator Type.
100
+ */
101
+ name: string;
102
+ /**
103
+ * A 34 character string that uniquely identifies this Operator Type.
104
+ */
105
+ sid: string;
106
+ /**
107
+ * A human-readable name of this resource, up to 64 characters.
108
+ */
109
+ friendlyName: string;
110
+ /**
111
+ * A human-readable description of this resource, longer than the friendly name.
112
+ */
113
+ description: string;
114
+ /**
115
+ * Additional documentation for the Operator Type.
116
+ */
117
+ docsLink: string;
118
+ outputType: OperatorTypeOutputType;
119
+ /**
120
+ * List of languages this Operator Type supports.
121
+ */
122
+ supportedLanguages: Array<string>;
123
+ provider: OperatorTypeProvider;
124
+ availability: OperatorTypeAvailability;
125
+ /**
126
+ * Operators can be created from configurable Operator Types.
127
+ */
128
+ configurable: boolean;
129
+ /**
130
+ * JSON Schema for configuring an Operator with this Operator Type. Following https://json-schema.org/
131
+ */
132
+ configSchema: any;
133
+ /**
134
+ * The date that this Operator Type was created, given in ISO 8601 format.
135
+ */
136
+ dateCreated: Date;
137
+ /**
138
+ * The date that this Operator Type was updated, given in ISO 8601 format.
139
+ */
140
+ dateUpdated: Date;
141
+ /**
142
+ * The URL of this resource.
143
+ */
144
+ url: string;
145
+ private get _proxy();
146
+ /**
147
+ * Fetch a OperatorTypeInstance
148
+ *
149
+ * @param callback - Callback to handle processed record
150
+ *
151
+ * @returns Resolves to processed OperatorTypeInstance
152
+ */
153
+ fetch(callback?: (error: Error | null, item?: OperatorTypeInstance) => any): Promise<OperatorTypeInstance>;
154
+ /**
155
+ * Provide a user-friendly representation
156
+ *
157
+ * @returns Object
158
+ */
159
+ toJSON(): {
160
+ name: string;
161
+ sid: string;
162
+ friendlyName: string;
163
+ description: string;
164
+ docsLink: string;
165
+ outputType: OperatorTypeOutputType;
166
+ supportedLanguages: string[];
167
+ provider: OperatorTypeProvider;
168
+ availability: OperatorTypeAvailability;
169
+ configurable: boolean;
170
+ configSchema: any;
171
+ dateCreated: Date;
172
+ dateUpdated: Date;
173
+ url: string;
174
+ };
175
+ [inspect.custom](_depth: any, options: InspectOptions): string;
176
+ }
177
+ export interface OperatorTypeSolution {
178
+ }
179
+ export interface OperatorTypeListInstance {
180
+ _version: V2;
181
+ _solution: OperatorTypeSolution;
182
+ _uri: string;
183
+ (sid: string): OperatorTypeContext;
184
+ get(sid: string): OperatorTypeContext;
185
+ /**
186
+ * Streams OperatorTypeInstance records from the API.
187
+ *
188
+ * This operation lazily loads records as efficiently as possible until the limit
189
+ * is reached.
190
+ *
191
+ * The results are passed into the callback function, so this operation is memory
192
+ * efficient.
193
+ *
194
+ * If a function is passed as the first argument, it will be used as the callback
195
+ * function.
196
+ *
197
+ * @param { OperatorTypeListInstanceEachOptions } [params] - Options for request
198
+ * @param { function } [callback] - Function to process each record
199
+ */
200
+ each(callback?: (item: OperatorTypeInstance, done: (err?: Error) => void) => void): void;
201
+ each(params: OperatorTypeListInstanceEachOptions, callback?: (item: OperatorTypeInstance, done: (err?: Error) => void) => void): void;
202
+ /**
203
+ * Retrieve a single target page of OperatorTypeInstance records from the API.
204
+ *
205
+ * The request is executed immediately.
206
+ *
207
+ * @param { string } [targetUrl] - API-generated URL for the requested results page
208
+ * @param { function } [callback] - Callback to handle list of records
209
+ */
210
+ getPage(targetUrl: string, callback?: (error: Error | null, items: OperatorTypePage) => any): Promise<OperatorTypePage>;
211
+ /**
212
+ * Lists OperatorTypeInstance records from the API as a list.
213
+ *
214
+ * If a function is passed as the first argument, it will be used as the callback
215
+ * function.
216
+ *
217
+ * @param { OperatorTypeListInstanceOptions } [params] - Options for request
218
+ * @param { function } [callback] - Callback to handle list of records
219
+ */
220
+ list(callback?: (error: Error | null, items: OperatorTypeInstance[]) => any): Promise<OperatorTypeInstance[]>;
221
+ list(params: OperatorTypeListInstanceOptions, callback?: (error: Error | null, items: OperatorTypeInstance[]) => any): Promise<OperatorTypeInstance[]>;
222
+ /**
223
+ * Retrieve a single page of OperatorTypeInstance records from the API.
224
+ *
225
+ * The request is executed immediately.
226
+ *
227
+ * If a function is passed as the first argument, it will be used as the callback
228
+ * function.
229
+ *
230
+ * @param { OperatorTypeListInstancePageOptions } [params] - Options for request
231
+ * @param { function } [callback] - Callback to handle list of records
232
+ */
233
+ page(callback?: (error: Error | null, items: OperatorTypePage) => any): Promise<OperatorTypePage>;
234
+ page(params: OperatorTypeListInstancePageOptions, callback?: (error: Error | null, items: OperatorTypePage) => any): Promise<OperatorTypePage>;
235
+ /**
236
+ * Provide a user-friendly representation
237
+ */
238
+ toJSON(): any;
239
+ [inspect.custom](_depth: any, options: InspectOptions): any;
240
+ }
241
+ export declare function OperatorTypeListInstance(version: V2): OperatorTypeListInstance;
242
+ export declare class OperatorTypePage extends Page<V2, OperatorTypePayload, OperatorTypeResource, OperatorTypeInstance> {
243
+ /**
244
+ * Initialize the OperatorTypePage
245
+ *
246
+ * @param version - Version of the resource
247
+ * @param response - Response from the API
248
+ * @param solution - Path solution
249
+ */
250
+ constructor(version: V2, response: Response<string>, solution: OperatorTypeSolution);
251
+ /**
252
+ * Build an instance of OperatorTypeInstance
253
+ *
254
+ * @param payload - Payload response from the API
255
+ */
256
+ getInstance(payload: OperatorTypeResource): OperatorTypeInstance;
257
+ [inspect.custom](depth: any, options: InspectOptions): string;
258
+ }
259
+ export {};
@@ -0,0 +1,197 @@
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
+ exports.OperatorTypePage = exports.OperatorTypeListInstance = exports.OperatorTypeInstance = exports.OperatorTypeContextImpl = 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 OperatorTypeContextImpl {
26
+ constructor(_version, sid) {
27
+ this._version = _version;
28
+ if (!(0, utility_1.isValidPathParam)(sid)) {
29
+ throw new Error("Parameter 'sid' is not valid.");
30
+ }
31
+ this._solution = { sid };
32
+ this._uri = `/OperatorTypes/${sid}`;
33
+ }
34
+ fetch(callback) {
35
+ const instance = this;
36
+ let operationVersion = instance._version, operationPromise = operationVersion.fetch({
37
+ uri: instance._uri,
38
+ method: "get",
39
+ });
40
+ operationPromise = operationPromise.then((payload) => new OperatorTypeInstance(operationVersion, payload, instance._solution.sid));
41
+ operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
42
+ return operationPromise;
43
+ }
44
+ /**
45
+ * Provide a user-friendly representation
46
+ *
47
+ * @returns Object
48
+ */
49
+ toJSON() {
50
+ return this._solution;
51
+ }
52
+ [util_1.inspect.custom](_depth, options) {
53
+ return (0, util_1.inspect)(this.toJSON(), options);
54
+ }
55
+ }
56
+ exports.OperatorTypeContextImpl = OperatorTypeContextImpl;
57
+ class OperatorTypeInstance {
58
+ constructor(_version, payload, sid) {
59
+ this._version = _version;
60
+ this.name = payload.name;
61
+ this.sid = payload.sid;
62
+ this.friendlyName = payload.friendly_name;
63
+ this.description = payload.description;
64
+ this.docsLink = payload.docs_link;
65
+ this.outputType = payload.output_type;
66
+ this.supportedLanguages = payload.supported_languages;
67
+ this.provider = payload.provider;
68
+ this.availability = payload.availability;
69
+ this.configurable = payload.configurable;
70
+ this.configSchema = payload.config_schema;
71
+ this.dateCreated = deserialize.iso8601DateTime(payload.date_created);
72
+ this.dateUpdated = deserialize.iso8601DateTime(payload.date_updated);
73
+ this.url = payload.url;
74
+ this._solution = { sid: sid || this.sid };
75
+ }
76
+ get _proxy() {
77
+ this._context =
78
+ this._context ||
79
+ new OperatorTypeContextImpl(this._version, this._solution.sid);
80
+ return this._context;
81
+ }
82
+ /**
83
+ * Fetch a OperatorTypeInstance
84
+ *
85
+ * @param callback - Callback to handle processed record
86
+ *
87
+ * @returns Resolves to processed OperatorTypeInstance
88
+ */
89
+ fetch(callback) {
90
+ return this._proxy.fetch(callback);
91
+ }
92
+ /**
93
+ * Provide a user-friendly representation
94
+ *
95
+ * @returns Object
96
+ */
97
+ toJSON() {
98
+ return {
99
+ name: this.name,
100
+ sid: this.sid,
101
+ friendlyName: this.friendlyName,
102
+ description: this.description,
103
+ docsLink: this.docsLink,
104
+ outputType: this.outputType,
105
+ supportedLanguages: this.supportedLanguages,
106
+ provider: this.provider,
107
+ availability: this.availability,
108
+ configurable: this.configurable,
109
+ configSchema: this.configSchema,
110
+ dateCreated: this.dateCreated,
111
+ dateUpdated: this.dateUpdated,
112
+ url: this.url,
113
+ };
114
+ }
115
+ [util_1.inspect.custom](_depth, options) {
116
+ return (0, util_1.inspect)(this.toJSON(), options);
117
+ }
118
+ }
119
+ exports.OperatorTypeInstance = OperatorTypeInstance;
120
+ function OperatorTypeListInstance(version) {
121
+ const instance = ((sid) => instance.get(sid));
122
+ instance.get = function get(sid) {
123
+ return new OperatorTypeContextImpl(version, sid);
124
+ };
125
+ instance._version = version;
126
+ instance._solution = {};
127
+ instance._uri = `/OperatorTypes`;
128
+ instance.page = function page(params, callback) {
129
+ if (params instanceof Function) {
130
+ callback = params;
131
+ params = {};
132
+ }
133
+ else {
134
+ params = params || {};
135
+ }
136
+ let data = {};
137
+ if (params["pageSize"] !== undefined)
138
+ data["PageSize"] = params["pageSize"];
139
+ if (params.pageNumber !== undefined)
140
+ data["Page"] = params.pageNumber;
141
+ if (params.pageToken !== undefined)
142
+ data["PageToken"] = params.pageToken;
143
+ const headers = {};
144
+ let operationVersion = version, operationPromise = operationVersion.page({
145
+ uri: instance._uri,
146
+ method: "get",
147
+ params: data,
148
+ headers,
149
+ });
150
+ operationPromise = operationPromise.then((payload) => new OperatorTypePage(operationVersion, payload, instance._solution));
151
+ operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
152
+ return operationPromise;
153
+ };
154
+ instance.each = instance._version.each;
155
+ instance.list = instance._version.list;
156
+ instance.getPage = function getPage(targetUrl, callback) {
157
+ const operationPromise = instance._version._domain.twilio.request({
158
+ method: "get",
159
+ uri: targetUrl,
160
+ });
161
+ let pagePromise = operationPromise.then((payload) => new OperatorTypePage(instance._version, payload, instance._solution));
162
+ pagePromise = instance._version.setPromiseCallback(pagePromise, callback);
163
+ return pagePromise;
164
+ };
165
+ instance.toJSON = function toJSON() {
166
+ return instance._solution;
167
+ };
168
+ instance[util_1.inspect.custom] = function inspectImpl(_depth, options) {
169
+ return (0, util_1.inspect)(instance.toJSON(), options);
170
+ };
171
+ return instance;
172
+ }
173
+ exports.OperatorTypeListInstance = OperatorTypeListInstance;
174
+ class OperatorTypePage extends Page_1.default {
175
+ /**
176
+ * Initialize the OperatorTypePage
177
+ *
178
+ * @param version - Version of the resource
179
+ * @param response - Response from the API
180
+ * @param solution - Path solution
181
+ */
182
+ constructor(version, response, solution) {
183
+ super(version, response, solution);
184
+ }
185
+ /**
186
+ * Build an instance of OperatorTypeInstance
187
+ *
188
+ * @param payload - Payload response from the API
189
+ */
190
+ getInstance(payload) {
191
+ return new OperatorTypeInstance(this._version, payload);
192
+ }
193
+ [util_1.inspect.custom](depth, options) {
194
+ return (0, util_1.inspect)(this.toJSON(), options);
195
+ }
196
+ }
197
+ exports.OperatorTypePage = OperatorTypePage;