twilio 3.80.0 → 3.80.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/lib/rest/Microvisor.d.ts +28 -0
  2. package/lib/rest/Microvisor.js +62 -0
  3. package/lib/rest/Preview.d.ts +0 -6
  4. package/lib/rest/Preview.js +0 -28
  5. package/lib/rest/Routes.d.ts +30 -0
  6. package/lib/rest/Routes.js +71 -0
  7. package/lib/rest/Twilio.d.ts +4 -0
  8. package/lib/rest/Twilio.js +28 -0
  9. package/lib/rest/api/v2010/account/sip/ipAccessControlList/ipAddress.d.ts +2 -2
  10. package/lib/rest/api/v2010/account/sip/ipAccessControlList/ipAddress.js +4 -4
  11. package/lib/rest/microvisor/V1.d.ts +28 -0
  12. package/lib/rest/microvisor/V1.js +57 -0
  13. package/lib/rest/{preview/bulk_exports/export/day.d.ts → microvisor/v1/app.d.ts} +79 -69
  14. package/lib/rest/{preview/bulk_exports/export/day.js → microvisor/v1/app.js} +160 -122
  15. package/lib/rest/{preview/bulk_exports/export/exportCustomJob.d.ts → microvisor/v1/device.d.ts} +136 -84
  16. package/lib/rest/microvisor/v1/device.js +652 -0
  17. package/lib/rest/routes/V2.d.ts +31 -0
  18. package/lib/rest/routes/V2.js +69 -0
  19. package/lib/rest/routes/v2/phoneNumber.d.ts +193 -0
  20. package/lib/rest/routes/v2/phoneNumber.js +466 -0
  21. package/lib/rest/routes/v2/sipDomain.d.ts +205 -0
  22. package/lib/rest/routes/v2/sipDomain.js +447 -0
  23. package/lib/rest/routes/v2/trunk.d.ts +205 -0
  24. package/lib/rest/routes/v2/trunk.js +458 -0
  25. package/lib/rest/supersim/v1/fleet.d.ts +3 -1
  26. package/lib/rest/supersim/v1/fleet.js +8 -3
  27. package/package.json +1 -1
  28. package/lib/rest/preview/BulkExports.d.ts +0 -28
  29. package/lib/rest/preview/BulkExports.js +0 -59
  30. package/lib/rest/preview/bulk_exports/export/exportCustomJob.js +0 -540
  31. package/lib/rest/preview/bulk_exports/export/job.d.ts +0 -163
  32. package/lib/rest/preview/bulk_exports/export/job.js +0 -390
  33. package/lib/rest/preview/bulk_exports/export.d.ts +0 -153
  34. package/lib/rest/preview/bulk_exports/export.js +0 -402
  35. package/lib/rest/preview/bulk_exports/exportConfiguration.d.ts +0 -180
  36. package/lib/rest/preview/bulk_exports/exportConfiguration.js +0 -411
@@ -0,0 +1,447 @@
1
+ 'use strict';
2
+
3
+ /* jshint ignore:start */
4
+ /**
5
+ * This code was generated by
6
+ * \ / _ _ _| _ _
7
+ * | (_)\/(_)(_|\/| |(/_ v1.0.0
8
+ * / /
9
+ */
10
+ /* jshint ignore:end */
11
+
12
+ var Q = require('q'); /* jshint ignore:line */
13
+ var _ = require('lodash'); /* jshint ignore:line */
14
+ var util = require('util'); /* jshint ignore:line */
15
+ var Page = require('../../../base/Page'); /* jshint ignore:line */
16
+ var deserialize = require(
17
+ '../../../base/deserialize'); /* jshint ignore:line */
18
+ var values = require('../../../base/values'); /* jshint ignore:line */
19
+
20
+ var SipDomainList;
21
+ var SipDomainPage;
22
+ var SipDomainInstance;
23
+ var SipDomainContext;
24
+
25
+ /* jshint ignore:start */
26
+ /**
27
+ * Initialize the SipDomainList
28
+ *
29
+ * @constructor Twilio.Routes.V2.SipDomainList
30
+ *
31
+ * @param {Twilio.Routes.V2} version - Version of the resource
32
+ */
33
+ /* jshint ignore:end */
34
+ SipDomainList = function SipDomainList(version) {
35
+ /* jshint ignore:start */
36
+ /**
37
+ * @function sipDomains
38
+ * @memberof Twilio.Routes.V2#
39
+ *
40
+ * @param {string} sid - sid of instance
41
+ *
42
+ * @returns {Twilio.Routes.V2.SipDomainContext}
43
+ */
44
+ /* jshint ignore:end */
45
+ function SipDomainListInstance(sid) {
46
+ return SipDomainListInstance.get(sid);
47
+ }
48
+
49
+ SipDomainListInstance._version = version;
50
+ // Path Solution
51
+ SipDomainListInstance._solution = {};
52
+ /* jshint ignore:start */
53
+ /**
54
+ * Constructs a sip_domain
55
+ *
56
+ * @function get
57
+ * @memberof Twilio.Routes.V2.SipDomainList#
58
+ *
59
+ * @param {string} sipDomain - The sip_domain
60
+ *
61
+ * @returns {Twilio.Routes.V2.SipDomainContext}
62
+ */
63
+ /* jshint ignore:end */
64
+ SipDomainListInstance.get = function get(sipDomain) {
65
+ return new SipDomainContext(this._version, sipDomain);
66
+ };
67
+
68
+ /* jshint ignore:start */
69
+ /**
70
+ * Provide a user-friendly representation
71
+ *
72
+ * @function toJSON
73
+ * @memberof Twilio.Routes.V2.SipDomainList#
74
+ *
75
+ * @returns Object
76
+ */
77
+ /* jshint ignore:end */
78
+ SipDomainListInstance.toJSON = function toJSON() {
79
+ return this._solution;
80
+ };
81
+
82
+ SipDomainListInstance[util.inspect.custom] = function inspect(depth, options) {
83
+ return util.inspect(this.toJSON(), options);
84
+ };
85
+
86
+ return SipDomainListInstance;
87
+ };
88
+
89
+
90
+ /* jshint ignore:start */
91
+ /**
92
+ * Initialize the SipDomainPage
93
+ *
94
+ * @constructor Twilio.Routes.V2.SipDomainPage
95
+ *
96
+ * @param {V2} version - Version of the resource
97
+ * @param {Response<string>} response - Response from the API
98
+ * @param {SipDomainSolution} solution - Path solution
99
+ *
100
+ * @returns SipDomainPage
101
+ */
102
+ /* jshint ignore:end */
103
+ SipDomainPage = function SipDomainPage(version, response, solution) {
104
+ // Path Solution
105
+ this._solution = solution;
106
+
107
+ Page.prototype.constructor.call(this, version, response, this._solution);
108
+ };
109
+
110
+ _.extend(SipDomainPage.prototype, Page.prototype);
111
+ SipDomainPage.prototype.constructor = SipDomainPage;
112
+
113
+ /* jshint ignore:start */
114
+ /**
115
+ * Build an instance of SipDomainInstance
116
+ *
117
+ * @function getInstance
118
+ * @memberof Twilio.Routes.V2.SipDomainPage#
119
+ *
120
+ * @param {SipDomainPayload} payload - Payload response from the API
121
+ *
122
+ * @returns SipDomainInstance
123
+ */
124
+ /* jshint ignore:end */
125
+ SipDomainPage.prototype.getInstance = function getInstance(payload) {
126
+ return new SipDomainInstance(this._version, payload);
127
+ };
128
+
129
+ /* jshint ignore:start */
130
+ /**
131
+ * Provide a user-friendly representation
132
+ *
133
+ * @function toJSON
134
+ * @memberof Twilio.Routes.V2.SipDomainPage#
135
+ *
136
+ * @returns Object
137
+ */
138
+ /* jshint ignore:end */
139
+ SipDomainPage.prototype.toJSON = function toJSON() {
140
+ let clone = {};
141
+ _.forOwn(this, function(value, key) {
142
+ if (!_.startsWith(key, '_') && ! _.isFunction(value)) {
143
+ clone[key] = value;
144
+ }
145
+ });
146
+ return clone;
147
+ };
148
+
149
+ SipDomainPage.prototype[util.inspect.custom] = function inspect(depth, options)
150
+ {
151
+ return util.inspect(this.toJSON(), options);
152
+ };
153
+
154
+
155
+ /* jshint ignore:start */
156
+ /**
157
+ * Initialize the SipDomainContext
158
+ *
159
+ * @constructor Twilio.Routes.V2.SipDomainInstance
160
+ *
161
+ * @property {string} sipDomain - The sip_domain
162
+ * @property {string} url - The url
163
+ * @property {string} sid - The sid
164
+ * @property {string} accountSid - The account_sid
165
+ * @property {string} friendlyName - The friendly_name
166
+ * @property {string} voiceRegion - The voice_region
167
+ * @property {Date} dateCreated - The date_created
168
+ * @property {Date} dateUpdated - The date_updated
169
+ *
170
+ * @param {V2} version - Version of the resource
171
+ * @param {SipDomainPayload} payload - The instance payload
172
+ * @param {string} sipDomain - The sip_domain
173
+ */
174
+ /* jshint ignore:end */
175
+ SipDomainInstance = function SipDomainInstance(version, payload, sipDomain) {
176
+ this._version = version;
177
+
178
+ // Marshaled Properties
179
+ this.sipDomain = payload.sip_domain; // jshint ignore:line
180
+ this.url = payload.url; // jshint ignore:line
181
+ this.sid = payload.sid; // jshint ignore:line
182
+ this.accountSid = payload.account_sid; // jshint ignore:line
183
+ this.friendlyName = payload.friendly_name; // jshint ignore:line
184
+ this.voiceRegion = payload.voice_region; // jshint ignore:line
185
+ this.dateCreated = deserialize.iso8601DateTime(payload.date_created); // jshint ignore:line
186
+ this.dateUpdated = deserialize.iso8601DateTime(payload.date_updated); // jshint ignore:line
187
+
188
+ // Context
189
+ this._context = undefined;
190
+ this._solution = {sipDomain: sipDomain || this.sipDomain, };
191
+ };
192
+
193
+ Object.defineProperty(SipDomainInstance.prototype,
194
+ '_proxy', {
195
+ get: function() {
196
+ if (!this._context) {
197
+ this._context = new SipDomainContext(this._version, this._solution.sipDomain);
198
+ }
199
+
200
+ return this._context;
201
+ }
202
+ });
203
+
204
+ /* jshint ignore:start */
205
+ /**
206
+ * create a SipDomainInstance
207
+ *
208
+ * @function create
209
+ * @memberof Twilio.Routes.V2.SipDomainInstance#
210
+ *
211
+ * @param {object} [opts] - Options for request
212
+ * @param {string} [opts.voiceRegion] - The voice_region
213
+ * @param {string} [opts.friendlyName] - The friendly_name
214
+ * @param {function} [callback] - Callback to handle processed record
215
+ *
216
+ * @returns {Promise} Resolves to processed SipDomainInstance
217
+ */
218
+ /* jshint ignore:end */
219
+ SipDomainInstance.prototype.create = function create(opts, callback) {
220
+ return this._proxy.create(opts, callback);
221
+ };
222
+
223
+ /* jshint ignore:start */
224
+ /**
225
+ * update a SipDomainInstance
226
+ *
227
+ * @function update
228
+ * @memberof Twilio.Routes.V2.SipDomainInstance#
229
+ *
230
+ * @param {object} [opts] - Options for request
231
+ * @param {string} [opts.voiceRegion] - The voice_region
232
+ * @param {string} [opts.friendlyName] - The friendly_name
233
+ * @param {function} [callback] - Callback to handle processed record
234
+ *
235
+ * @returns {Promise} Resolves to processed SipDomainInstance
236
+ */
237
+ /* jshint ignore:end */
238
+ SipDomainInstance.prototype.update = function update(opts, callback) {
239
+ return this._proxy.update(opts, callback);
240
+ };
241
+
242
+ /* jshint ignore:start */
243
+ /**
244
+ * fetch a SipDomainInstance
245
+ *
246
+ * @function fetch
247
+ * @memberof Twilio.Routes.V2.SipDomainInstance#
248
+ *
249
+ * @param {function} [callback] - Callback to handle processed record
250
+ *
251
+ * @returns {Promise} Resolves to processed SipDomainInstance
252
+ */
253
+ /* jshint ignore:end */
254
+ SipDomainInstance.prototype.fetch = function fetch(callback) {
255
+ return this._proxy.fetch(callback);
256
+ };
257
+
258
+ /* jshint ignore:start */
259
+ /**
260
+ * Provide a user-friendly representation
261
+ *
262
+ * @function toJSON
263
+ * @memberof Twilio.Routes.V2.SipDomainInstance#
264
+ *
265
+ * @returns Object
266
+ */
267
+ /* jshint ignore:end */
268
+ SipDomainInstance.prototype.toJSON = function toJSON() {
269
+ let clone = {};
270
+ _.forOwn(this, function(value, key) {
271
+ if (!_.startsWith(key, '_') && ! _.isFunction(value)) {
272
+ clone[key] = value;
273
+ }
274
+ });
275
+ return clone;
276
+ };
277
+
278
+ SipDomainInstance.prototype[util.inspect.custom] = function inspect(depth,
279
+ options) {
280
+ return util.inspect(this.toJSON(), options);
281
+ };
282
+
283
+
284
+ /* jshint ignore:start */
285
+ /**
286
+ * Initialize the SipDomainContext
287
+ *
288
+ * @constructor Twilio.Routes.V2.SipDomainContext
289
+ *
290
+ * @param {V2} version - Version of the resource
291
+ * @param {string} sipDomain - The sip_domain
292
+ */
293
+ /* jshint ignore:end */
294
+ SipDomainContext = function SipDomainContext(version, sipDomain) {
295
+ this._version = version;
296
+
297
+ // Path Solution
298
+ this._solution = {sipDomain: sipDomain, };
299
+ this._uri = `/SipDomains/${sipDomain}`;
300
+ };
301
+
302
+ /* jshint ignore:start */
303
+ /**
304
+ * create a SipDomainInstance
305
+ *
306
+ * @function create
307
+ * @memberof Twilio.Routes.V2.SipDomainContext#
308
+ *
309
+ * @param {object} [opts] - Options for request
310
+ * @param {string} [opts.voiceRegion] - The voice_region
311
+ * @param {string} [opts.friendlyName] - The friendly_name
312
+ * @param {function} [callback] - Callback to handle processed record
313
+ *
314
+ * @returns {Promise} Resolves to processed SipDomainInstance
315
+ */
316
+ /* jshint ignore:end */
317
+ SipDomainContext.prototype.create = function create(opts, callback) {
318
+ if (_.isFunction(opts)) {
319
+ callback = opts;
320
+ opts = {};
321
+ }
322
+ opts = opts || {};
323
+
324
+ var deferred = Q.defer();
325
+ var data = values.of({
326
+ 'VoiceRegion': _.get(opts, 'voiceRegion'),
327
+ 'FriendlyName': _.get(opts, 'friendlyName')
328
+ });
329
+
330
+ var promise = this._version.create({uri: this._uri, method: 'POST', data: data});
331
+
332
+ promise = promise.then(function(payload) {
333
+ deferred.resolve(new SipDomainInstance(this._version, payload, this._solution.sipDomain));
334
+ }.bind(this));
335
+
336
+ promise.catch(function(error) {
337
+ deferred.reject(error);
338
+ });
339
+
340
+ if (_.isFunction(callback)) {
341
+ deferred.promise.nodeify(callback);
342
+ }
343
+
344
+ return deferred.promise;
345
+ };
346
+
347
+ /* jshint ignore:start */
348
+ /**
349
+ * update a SipDomainInstance
350
+ *
351
+ * @function update
352
+ * @memberof Twilio.Routes.V2.SipDomainContext#
353
+ *
354
+ * @param {object} [opts] - Options for request
355
+ * @param {string} [opts.voiceRegion] - The voice_region
356
+ * @param {string} [opts.friendlyName] - The friendly_name
357
+ * @param {function} [callback] - Callback to handle processed record
358
+ *
359
+ * @returns {Promise} Resolves to processed SipDomainInstance
360
+ */
361
+ /* jshint ignore:end */
362
+ SipDomainContext.prototype.update = function update(opts, callback) {
363
+ if (_.isFunction(opts)) {
364
+ callback = opts;
365
+ opts = {};
366
+ }
367
+ opts = opts || {};
368
+
369
+ var deferred = Q.defer();
370
+ var data = values.of({
371
+ 'VoiceRegion': _.get(opts, 'voiceRegion'),
372
+ 'FriendlyName': _.get(opts, 'friendlyName')
373
+ });
374
+
375
+ var promise = this._version.update({uri: this._uri, method: 'POST', data: data});
376
+
377
+ promise = promise.then(function(payload) {
378
+ deferred.resolve(new SipDomainInstance(this._version, payload, this._solution.sipDomain));
379
+ }.bind(this));
380
+
381
+ promise.catch(function(error) {
382
+ deferred.reject(error);
383
+ });
384
+
385
+ if (_.isFunction(callback)) {
386
+ deferred.promise.nodeify(callback);
387
+ }
388
+
389
+ return deferred.promise;
390
+ };
391
+
392
+ /* jshint ignore:start */
393
+ /**
394
+ * fetch a SipDomainInstance
395
+ *
396
+ * @function fetch
397
+ * @memberof Twilio.Routes.V2.SipDomainContext#
398
+ *
399
+ * @param {function} [callback] - Callback to handle processed record
400
+ *
401
+ * @returns {Promise} Resolves to processed SipDomainInstance
402
+ */
403
+ /* jshint ignore:end */
404
+ SipDomainContext.prototype.fetch = function fetch(callback) {
405
+ var deferred = Q.defer();
406
+ var promise = this._version.fetch({uri: this._uri, method: 'GET'});
407
+
408
+ promise = promise.then(function(payload) {
409
+ deferred.resolve(new SipDomainInstance(this._version, payload, this._solution.sipDomain));
410
+ }.bind(this));
411
+
412
+ promise.catch(function(error) {
413
+ deferred.reject(error);
414
+ });
415
+
416
+ if (_.isFunction(callback)) {
417
+ deferred.promise.nodeify(callback);
418
+ }
419
+
420
+ return deferred.promise;
421
+ };
422
+
423
+ /* jshint ignore:start */
424
+ /**
425
+ * Provide a user-friendly representation
426
+ *
427
+ * @function toJSON
428
+ * @memberof Twilio.Routes.V2.SipDomainContext#
429
+ *
430
+ * @returns Object
431
+ */
432
+ /* jshint ignore:end */
433
+ SipDomainContext.prototype.toJSON = function toJSON() {
434
+ return this._solution;
435
+ };
436
+
437
+ SipDomainContext.prototype[util.inspect.custom] = function inspect(depth,
438
+ options) {
439
+ return util.inspect(this.toJSON(), options);
440
+ };
441
+
442
+ module.exports = {
443
+ SipDomainList: SipDomainList,
444
+ SipDomainPage: SipDomainPage,
445
+ SipDomainInstance: SipDomainInstance,
446
+ SipDomainContext: SipDomainContext
447
+ };
@@ -0,0 +1,205 @@
1
+ /**
2
+ * This code was generated by
3
+ * \ / _ _ _| _ _
4
+ * | (_)\/(_)(_|\/| |(/_ v1.0.0
5
+ * / /
6
+ */
7
+
8
+ import Page = require('../../../base/Page');
9
+ import Response = require('../../../http/response');
10
+ import V2 = require('../V2');
11
+ import { SerializableClass } from '../../../interfaces';
12
+
13
+ /**
14
+ * Initialize the TrunkList
15
+ *
16
+ * @param version - Version of the resource
17
+ */
18
+ declare function TrunkList(version: V2): TrunkListInstance;
19
+
20
+ /**
21
+ * Options to pass to create
22
+ *
23
+ * @property friendlyName - A human readable description of this resource.
24
+ * @property voiceRegion - The Inbound Processing Region used for this SIP Trunk for voice
25
+ */
26
+ interface TrunkInstanceCreateOptions {
27
+ friendlyName?: string;
28
+ voiceRegion?: string;
29
+ }
30
+
31
+ /**
32
+ * Options to pass to update
33
+ *
34
+ * @property friendlyName - A human readable description of this resource.
35
+ * @property voiceRegion - The Inbound Processing Region used for this SIP Trunk for voice
36
+ */
37
+ interface TrunkInstanceUpdateOptions {
38
+ friendlyName?: string;
39
+ voiceRegion?: string;
40
+ }
41
+
42
+ interface TrunkListInstance {
43
+ /**
44
+ * @param sid - sid of instance
45
+ */
46
+ (sid: string): TrunkContext;
47
+ /**
48
+ * Constructs a trunk
49
+ *
50
+ * @param sipTrunkDomain - The SIP Trunk
51
+ */
52
+ get(sipTrunkDomain: string): TrunkContext;
53
+ /**
54
+ * Provide a user-friendly representation
55
+ */
56
+ toJSON(): any;
57
+ }
58
+
59
+ interface TrunkPayload extends TrunkResource, Page.TwilioResponsePayload {
60
+ }
61
+
62
+ interface TrunkResource {
63
+ account_sid: string;
64
+ date_created: Date;
65
+ date_updated: Date;
66
+ friendly_name: string;
67
+ sid: string;
68
+ sip_trunk_domain: string;
69
+ url: string;
70
+ voice_region: string;
71
+ }
72
+
73
+ interface TrunkSolution {
74
+ }
75
+
76
+
77
+ declare class TrunkContext {
78
+ /**
79
+ * Initialize the TrunkContext
80
+ *
81
+ * @param version - Version of the resource
82
+ * @param sipTrunkDomain - The SIP Trunk
83
+ */
84
+ constructor(version: V2, sipTrunkDomain: string);
85
+
86
+ /**
87
+ * create a TrunkInstance
88
+ *
89
+ * @param callback - Callback to handle processed record
90
+ */
91
+ create(callback?: (error: Error | null, item: TrunkInstance) => any): Promise<TrunkInstance>;
92
+ /**
93
+ * create a TrunkInstance
94
+ *
95
+ * @param opts - Options for request
96
+ * @param callback - Callback to handle processed record
97
+ */
98
+ create(opts?: TrunkInstanceCreateOptions, callback?: (error: Error | null, item: TrunkInstance) => any): Promise<TrunkInstance>;
99
+ /**
100
+ * fetch a TrunkInstance
101
+ *
102
+ * @param callback - Callback to handle processed record
103
+ */
104
+ fetch(callback?: (error: Error | null, items: TrunkInstance) => any): Promise<TrunkInstance>;
105
+ /**
106
+ * Provide a user-friendly representation
107
+ */
108
+ toJSON(): any;
109
+ /**
110
+ * update a TrunkInstance
111
+ *
112
+ * @param callback - Callback to handle processed record
113
+ */
114
+ update(callback?: (error: Error | null, items: TrunkInstance) => any): Promise<TrunkInstance>;
115
+ /**
116
+ * update a TrunkInstance
117
+ *
118
+ * @param opts - Options for request
119
+ * @param callback - Callback to handle processed record
120
+ */
121
+ update(opts?: TrunkInstanceUpdateOptions, callback?: (error: Error | null, items: TrunkInstance) => any): Promise<TrunkInstance>;
122
+ }
123
+
124
+
125
+ declare class TrunkInstance extends SerializableClass {
126
+ /**
127
+ * Initialize the TrunkContext
128
+ *
129
+ * @param version - Version of the resource
130
+ * @param payload - The instance payload
131
+ * @param sipTrunkDomain - The SIP Trunk
132
+ */
133
+ constructor(version: V2, payload: TrunkPayload, sipTrunkDomain: string);
134
+
135
+ private _proxy: TrunkContext;
136
+ accountSid: string;
137
+ /**
138
+ * create a TrunkInstance
139
+ *
140
+ * @param callback - Callback to handle processed record
141
+ */
142
+ create(callback?: (error: Error | null, items: TrunkInstance) => any): Promise<TrunkInstance>;
143
+ /**
144
+ * create a TrunkInstance
145
+ *
146
+ * @param opts - Options for request
147
+ * @param callback - Callback to handle processed record
148
+ */
149
+ create(opts?: TrunkInstanceCreateOptions, callback?: (error: Error | null, items: TrunkInstance) => any): Promise<TrunkInstance>;
150
+ dateCreated: Date;
151
+ dateUpdated: Date;
152
+ /**
153
+ * fetch a TrunkInstance
154
+ *
155
+ * @param callback - Callback to handle processed record
156
+ */
157
+ fetch(callback?: (error: Error | null, items: TrunkInstance) => any): Promise<TrunkInstance>;
158
+ friendlyName: string;
159
+ sid: string;
160
+ sipTrunkDomain: string;
161
+ /**
162
+ * Provide a user-friendly representation
163
+ */
164
+ toJSON(): any;
165
+ /**
166
+ * update a TrunkInstance
167
+ *
168
+ * @param callback - Callback to handle processed record
169
+ */
170
+ update(callback?: (error: Error | null, items: TrunkInstance) => any): Promise<TrunkInstance>;
171
+ /**
172
+ * update a TrunkInstance
173
+ *
174
+ * @param opts - Options for request
175
+ * @param callback - Callback to handle processed record
176
+ */
177
+ update(opts?: TrunkInstanceUpdateOptions, callback?: (error: Error | null, items: TrunkInstance) => any): Promise<TrunkInstance>;
178
+ url: string;
179
+ voiceRegion: string;
180
+ }
181
+
182
+
183
+ declare class TrunkPage extends Page<V2, TrunkPayload, TrunkResource, TrunkInstance> {
184
+ /**
185
+ * Initialize the TrunkPage
186
+ *
187
+ * @param version - Version of the resource
188
+ * @param response - Response from the API
189
+ * @param solution - Path solution
190
+ */
191
+ constructor(version: V2, response: Response<string>, solution: TrunkSolution);
192
+
193
+ /**
194
+ * Build an instance of TrunkInstance
195
+ *
196
+ * @param payload - Payload response from the API
197
+ */
198
+ getInstance(payload: TrunkPayload): TrunkInstance;
199
+ /**
200
+ * Provide a user-friendly representation
201
+ */
202
+ toJSON(): any;
203
+ }
204
+
205
+ export { TrunkContext, TrunkInstance, TrunkInstanceCreateOptions, TrunkInstanceUpdateOptions, TrunkList, TrunkListInstance, TrunkPage, TrunkPayload, TrunkResource, TrunkSolution }