twilio 3.75.0 → 3.76.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 (86) hide show
  1. package/README.md +0 -2
  2. package/lib/rest/Chat.d.ts +4 -0
  3. package/lib/rest/Chat.js +19 -0
  4. package/lib/rest/FlexApi.d.ts +2 -0
  5. package/lib/rest/FlexApi.js +8 -0
  6. package/lib/rest/Insights.d.ts +2 -0
  7. package/lib/rest/Insights.js +8 -0
  8. package/lib/rest/Media.d.ts +2 -0
  9. package/lib/rest/Media.js +9 -0
  10. package/lib/rest/Supersim.d.ts +0 -2
  11. package/lib/rest/Supersim.js +0 -8
  12. package/lib/rest/Verify.d.ts +2 -0
  13. package/lib/rest/Verify.js +9 -0
  14. package/lib/rest/api/v2010/account/call/payment.d.ts +1 -1
  15. package/lib/rest/api/v2010/account/call/payment.js +1 -1
  16. package/lib/rest/api/v2010/account/call/stream.d.ts +2 -8
  17. package/lib/rest/api/v2010/account/call/stream.js +8 -7
  18. package/lib/rest/api/v2010/account/call.d.ts +0 -2
  19. package/lib/rest/api/v2010/account/call.js +0 -2
  20. package/lib/rest/api/v2010/account/recording.d.ts +31 -2
  21. package/lib/rest/api/v2010/account/recording.js +25 -4
  22. package/lib/rest/api/v2010/account/usage/record/allTime.d.ts +1 -1
  23. package/lib/rest/api/v2010/account/usage/record/daily.d.ts +1 -1
  24. package/lib/rest/api/v2010/account/usage/record/lastMonth.d.ts +1 -1
  25. package/lib/rest/api/v2010/account/usage/record/monthly.d.ts +1 -1
  26. package/lib/rest/api/v2010/account/usage/record/thisMonth.d.ts +1 -1
  27. package/lib/rest/api/v2010/account/usage/record/today.d.ts +1 -1
  28. package/lib/rest/api/v2010/account/usage/record/yearly.d.ts +1 -1
  29. package/lib/rest/api/v2010/account/usage/record/yesterday.d.ts +1 -1
  30. package/lib/rest/api/v2010/account/usage/record.d.ts +1 -1
  31. package/lib/rest/api/v2010/account/usage/trigger.d.ts +1 -1
  32. package/lib/rest/chat/V3.d.ts +25 -0
  33. package/lib/rest/chat/V3.js +46 -0
  34. package/lib/rest/chat/v2/service/user/userChannel.d.ts +26 -1
  35. package/lib/rest/chat/v2/service/user/userChannel.js +18 -4
  36. package/lib/rest/chat/v3/channel.d.ts +177 -0
  37. package/lib/rest/chat/v3/channel.js +373 -0
  38. package/lib/rest/flexApi/V1.d.ts +3 -0
  39. package/lib/rest/flexApi/V1.js +11 -0
  40. package/lib/rest/flexApi/v1/configuration.d.ts +2 -0
  41. package/lib/rest/flexApi/v1/configuration.js +3 -0
  42. package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelInvite.d.ts +266 -0
  43. package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelInvite.js +505 -0
  44. package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelParticipant.d.ts +323 -0
  45. package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelParticipant.js +674 -0
  46. package/lib/rest/flexApi/v1/interaction/interactionChannel.d.ts +327 -0
  47. package/lib/rest/flexApi/v1/interaction/interactionChannel.js +718 -0
  48. package/lib/rest/flexApi/v1/interaction.d.ts +152 -0
  49. package/lib/rest/flexApi/v1/interaction.js +395 -0
  50. package/lib/rest/insights/V1.d.ts +3 -0
  51. package/lib/rest/insights/V1.js +11 -0
  52. package/lib/rest/insights/v1/annotation.d.ts +188 -0
  53. package/lib/rest/insights/v1/annotation.js +406 -0
  54. package/lib/rest/media/V1.d.ts +3 -0
  55. package/lib/rest/media/V1.js +12 -0
  56. package/lib/rest/media/v1/mediaProcessor.js +1 -1
  57. package/lib/rest/media/v1/mediaRecording.d.ts +358 -0
  58. package/lib/rest/{supersim/v1/command.js → media/v1/mediaRecording.js} +190 -176
  59. package/lib/rest/media/v1/playerStreamer.d.ts +4 -0
  60. package/lib/rest/media/v1/playerStreamer.js +5 -1
  61. package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocument.d.ts +2 -0
  62. package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocument.js +3 -0
  63. package/lib/rest/supersim/V1.d.ts +0 -3
  64. package/lib/rest/supersim/V1.js +0 -11
  65. package/lib/rest/supersim/v1/fleet.d.ts +0 -16
  66. package/lib/rest/supersim/v1/fleet.js +0 -18
  67. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueCumulativeStatistics.d.ts +1 -1
  68. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueCumulativeStatistics.js +2 -2
  69. package/lib/rest/taskrouter/v1/workspace/workflow/workflowCumulativeStatistics.d.ts +1 -1
  70. package/lib/rest/taskrouter/v1/workspace/workflow/workflowCumulativeStatistics.js +2 -2
  71. package/lib/rest/taskrouter/v1/workspace/workspaceCumulativeStatistics.d.ts +1 -1
  72. package/lib/rest/taskrouter/v1/workspace/workspaceCumulativeStatistics.js +2 -2
  73. package/lib/rest/verify/V2.d.ts +3 -0
  74. package/lib/rest/verify/V2.js +13 -0
  75. package/lib/rest/verify/v2/service/accessToken.d.ts +6 -0
  76. package/lib/rest/verify/v2/service/accessToken.js +9 -1
  77. package/lib/rest/verify/v2/service/entity/challenge.d.ts +4 -0
  78. package/lib/rest/verify/v2/service/entity/challenge.js +8 -1
  79. package/lib/rest/verify/v2/verificationAttemptsSummary.d.ts +156 -0
  80. package/lib/rest/verify/v2/verificationAttemptsSummary.js +362 -0
  81. package/lib/rest/video/v1/composition.d.ts +4 -0
  82. package/lib/rest/video/v1/composition.js +6 -0
  83. package/lib/rest/video/v1/recording.d.ts +4 -0
  84. package/lib/rest/video/v1/recording.js +6 -0
  85. package/package.json +3 -3
  86. package/lib/rest/supersim/v1/command.d.ts +0 -342
@@ -0,0 +1,505 @@
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 serialize = require(
17
+ '../../../../../base/serialize'); /* jshint ignore:line */
18
+ var values = require('../../../../../base/values'); /* jshint ignore:line */
19
+
20
+ var InteractionChannelInviteList;
21
+ var InteractionChannelInvitePage;
22
+ var InteractionChannelInviteInstance;
23
+
24
+ /* jshint ignore:start */
25
+ /**
26
+ * Initialize the InteractionChannelInviteList
27
+ *
28
+ * @constructor Twilio.FlexApi.V1.InteractionContext.InteractionChannelContext.InteractionChannelInviteList
29
+ *
30
+ * @param {Twilio.FlexApi.V1} version - Version of the resource
31
+ * @param {string} interactionSid - The interaction_sid
32
+ * @param {string} channelSid - The channel_sid
33
+ */
34
+ /* jshint ignore:end */
35
+ InteractionChannelInviteList = function InteractionChannelInviteList(version,
36
+ interactionSid, channelSid) {
37
+ /* jshint ignore:start */
38
+ /**
39
+ * @function invites
40
+ * @memberof Twilio.FlexApi.V1.InteractionContext.InteractionChannelContext#
41
+ *
42
+ * @param {string} sid - sid of instance
43
+ *
44
+ * @returns {Twilio.FlexApi.V1.InteractionContext.InteractionChannelContext.InteractionChannelInviteContext}
45
+ */
46
+ /* jshint ignore:end */
47
+ function InteractionChannelInviteListInstance(sid) {
48
+ return InteractionChannelInviteListInstance.get(sid);
49
+ }
50
+
51
+ InteractionChannelInviteListInstance._version = version;
52
+ // Path Solution
53
+ InteractionChannelInviteListInstance._solution = {
54
+ interactionSid: interactionSid,
55
+ channelSid: channelSid
56
+ };
57
+ InteractionChannelInviteListInstance._uri = `/Interactions/${interactionSid}/Channels/${channelSid}/Invites`;
58
+ /* jshint ignore:start */
59
+ /**
60
+ * create a InteractionChannelInviteInstance
61
+ *
62
+ * @function create
63
+ * @memberof Twilio.FlexApi.V1.InteractionContext.InteractionChannelContext.InteractionChannelInviteList#
64
+ *
65
+ * @param {object} opts - Options for request
66
+ * @param {object} opts.routing - The routing
67
+ * @param {function} [callback] - Callback to handle processed record
68
+ *
69
+ * @returns {Promise} Resolves to processed InteractionChannelInviteInstance
70
+ */
71
+ /* jshint ignore:end */
72
+ InteractionChannelInviteListInstance.create = function create(opts, callback) {
73
+ if (_.isUndefined(opts)) {
74
+ throw new Error('Required parameter "opts" missing.');
75
+ }
76
+ if (_.isUndefined(opts['routing'])) {
77
+ throw new Error('Required parameter "opts[\'routing\']" missing.');
78
+ }
79
+
80
+ var deferred = Q.defer();
81
+ var data = values.of({'Routing': serialize.object(_.get(opts, 'routing'))});
82
+
83
+ var promise = this._version.create({uri: this._uri, method: 'POST', data: data});
84
+
85
+ promise = promise.then(function(payload) {
86
+ deferred.resolve(new InteractionChannelInviteInstance(this._version, payload));
87
+ }.bind(this));
88
+
89
+ promise.catch(function(error) {
90
+ deferred.reject(error);
91
+ });
92
+
93
+ if (_.isFunction(callback)) {
94
+ deferred.promise.nodeify(callback);
95
+ }
96
+
97
+ return deferred.promise;
98
+ };
99
+
100
+ /* jshint ignore:start */
101
+ /**
102
+ * Streams InteractionChannelInviteInstance records from the API.
103
+ *
104
+ * This operation lazily loads records as efficiently as possible until the limit
105
+ * is reached.
106
+ *
107
+ * The results are passed into the callback function, so this operation is memory
108
+ * efficient.
109
+ *
110
+ * If a function is passed as the first argument, it will be used as the callback
111
+ * function.
112
+ *
113
+ * @function each
114
+ * @memberof Twilio.FlexApi.V1.InteractionContext.InteractionChannelContext.InteractionChannelInviteList#
115
+ *
116
+ * @param {object} [opts] - Options for request
117
+ * @param {number} [opts.limit] -
118
+ * Upper limit for the number of records to return.
119
+ * each() guarantees never to return more than limit.
120
+ * Default is no limit
121
+ * @param {number} [opts.pageSize] -
122
+ * Number of records to fetch per request,
123
+ * when not set will use the default value of 50 records.
124
+ * If no pageSize is defined but a limit is defined,
125
+ * each() will attempt to read the limit with the most efficient
126
+ * page size, i.e. min(limit, 1000)
127
+ * @param {Function} [opts.callback] -
128
+ * Function to process each record. If this and a positional
129
+ * callback are passed, this one will be used
130
+ * @param {Function} [opts.done] -
131
+ * Function to be called upon completion of streaming
132
+ * @param {Function} [callback] - Function to process each record
133
+ */
134
+ /* jshint ignore:end */
135
+ InteractionChannelInviteListInstance.each = function each(opts, callback) {
136
+ if (_.isFunction(opts)) {
137
+ callback = opts;
138
+ opts = {};
139
+ }
140
+ opts = opts || {};
141
+ if (opts.callback) {
142
+ callback = opts.callback;
143
+ }
144
+ if (_.isUndefined(callback)) {
145
+ throw new Error('Callback function must be provided');
146
+ }
147
+
148
+ var done = false;
149
+ var currentPage = 1;
150
+ var currentResource = 0;
151
+ var limits = this._version.readLimits({
152
+ limit: opts.limit,
153
+ pageSize: opts.pageSize
154
+ });
155
+
156
+ function onComplete(error) {
157
+ done = true;
158
+ if (_.isFunction(opts.done)) {
159
+ opts.done(error);
160
+ }
161
+ }
162
+
163
+ function fetchNextPage(fn) {
164
+ var promise = fn();
165
+ if (_.isUndefined(promise)) {
166
+ onComplete();
167
+ return;
168
+ }
169
+
170
+ promise.then(function(page) {
171
+ _.each(page.instances, function(instance) {
172
+ if (done || (!_.isUndefined(opts.limit) && currentResource >= opts.limit)) {
173
+ done = true;
174
+ return false;
175
+ }
176
+
177
+ currentResource++;
178
+ callback(instance, onComplete);
179
+ });
180
+
181
+ if (!done) {
182
+ currentPage++;
183
+ fetchNextPage(_.bind(page.nextPage, page));
184
+ } else {
185
+ onComplete();
186
+ }
187
+ });
188
+
189
+ promise.catch(onComplete);
190
+ }
191
+
192
+ fetchNextPage(_.bind(this.page, this, _.merge(opts, limits)));
193
+ };
194
+
195
+ /* jshint ignore:start */
196
+ /**
197
+ * Lists InteractionChannelInviteInstance records from the API as a list.
198
+ *
199
+ * If a function is passed as the first argument, it will be used as the callback
200
+ * function.
201
+ *
202
+ * @function list
203
+ * @memberof Twilio.FlexApi.V1.InteractionContext.InteractionChannelContext.InteractionChannelInviteList#
204
+ *
205
+ * @param {object} [opts] - Options for request
206
+ * @param {number} [opts.limit] -
207
+ * Upper limit for the number of records to return.
208
+ * list() guarantees never to return more than limit.
209
+ * Default is no limit
210
+ * @param {number} [opts.pageSize] -
211
+ * Number of records to fetch per request,
212
+ * when not set will use the default value of 50 records.
213
+ * If no page_size is defined but a limit is defined,
214
+ * list() will attempt to read the limit with the most
215
+ * efficient page size, i.e. min(limit, 1000)
216
+ * @param {function} [callback] - Callback to handle list of records
217
+ *
218
+ * @returns {Promise} Resolves to a list of records
219
+ */
220
+ /* jshint ignore:end */
221
+ InteractionChannelInviteListInstance.list = function list(opts, callback) {
222
+ if (_.isFunction(opts)) {
223
+ callback = opts;
224
+ opts = {};
225
+ }
226
+ opts = opts || {};
227
+ var deferred = Q.defer();
228
+ var allResources = [];
229
+ opts.callback = function(resource, done) {
230
+ allResources.push(resource);
231
+
232
+ if (!_.isUndefined(opts.limit) && allResources.length === opts.limit) {
233
+ done();
234
+ }
235
+ };
236
+
237
+ opts.done = function(error) {
238
+ if (_.isUndefined(error)) {
239
+ deferred.resolve(allResources);
240
+ } else {
241
+ deferred.reject(error);
242
+ }
243
+ };
244
+
245
+ if (_.isFunction(callback)) {
246
+ deferred.promise.nodeify(callback);
247
+ }
248
+
249
+ this.each(opts);
250
+ return deferred.promise;
251
+ };
252
+
253
+ /* jshint ignore:start */
254
+ /**
255
+ * Retrieve a single page of InteractionChannelInviteInstance records from the API.
256
+ *
257
+ * The request is executed immediately.
258
+ *
259
+ * If a function is passed as the first argument, it will be used as the callback
260
+ * function.
261
+ *
262
+ * @function page
263
+ * @memberof Twilio.FlexApi.V1.InteractionContext.InteractionChannelContext.InteractionChannelInviteList#
264
+ *
265
+ * @param {object} [opts] - Options for request
266
+ * @param {string} [opts.pageToken] - PageToken provided by the API
267
+ * @param {number} [opts.pageNumber] -
268
+ * Page Number, this value is simply for client state
269
+ * @param {number} [opts.pageSize] - Number of records to return, defaults to 50
270
+ * @param {function} [callback] - Callback to handle list of records
271
+ *
272
+ * @returns {Promise} Resolves to a list of records
273
+ */
274
+ /* jshint ignore:end */
275
+ InteractionChannelInviteListInstance.page = function page(opts, callback) {
276
+ if (_.isFunction(opts)) {
277
+ callback = opts;
278
+ opts = {};
279
+ }
280
+ opts = opts || {};
281
+
282
+ var deferred = Q.defer();
283
+ var data = values.of({
284
+ 'PageToken': opts.pageToken,
285
+ 'Page': opts.pageNumber,
286
+ 'PageSize': opts.pageSize
287
+ });
288
+
289
+ var promise = this._version.page({uri: this._uri, method: 'GET', params: data});
290
+
291
+ promise = promise.then(function(payload) {
292
+ deferred.resolve(new InteractionChannelInvitePage(this._version, payload, this._solution));
293
+ }.bind(this));
294
+
295
+ promise.catch(function(error) {
296
+ deferred.reject(error);
297
+ });
298
+
299
+ if (_.isFunction(callback)) {
300
+ deferred.promise.nodeify(callback);
301
+ }
302
+
303
+ return deferred.promise;
304
+ };
305
+
306
+ /* jshint ignore:start */
307
+ /**
308
+ * Retrieve a single target page of InteractionChannelInviteInstance records from
309
+ * the API.
310
+ *
311
+ * The request is executed immediately.
312
+ *
313
+ * If a function is passed as the first argument, it will be used as the callback
314
+ * function.
315
+ *
316
+ * @function getPage
317
+ * @memberof Twilio.FlexApi.V1.InteractionContext.InteractionChannelContext.InteractionChannelInviteList#
318
+ *
319
+ * @param {string} [targetUrl] - API-generated URL for the requested results page
320
+ * @param {function} [callback] - Callback to handle list of records
321
+ *
322
+ * @returns {Promise} Resolves to a list of records
323
+ */
324
+ /* jshint ignore:end */
325
+ InteractionChannelInviteListInstance.getPage = function getPage(targetUrl,
326
+ callback) {
327
+ var deferred = Q.defer();
328
+
329
+ var promise = this._version._domain.twilio.request({method: 'GET', uri: targetUrl});
330
+
331
+ promise = promise.then(function(payload) {
332
+ deferred.resolve(new InteractionChannelInvitePage(this._version, payload, this._solution));
333
+ }.bind(this));
334
+
335
+ promise.catch(function(error) {
336
+ deferred.reject(error);
337
+ });
338
+
339
+ if (_.isFunction(callback)) {
340
+ deferred.promise.nodeify(callback);
341
+ }
342
+
343
+ return deferred.promise;
344
+ };
345
+
346
+ /* jshint ignore:start */
347
+ /**
348
+ * Provide a user-friendly representation
349
+ *
350
+ * @function toJSON
351
+ * @memberof Twilio.FlexApi.V1.InteractionContext.InteractionChannelContext.InteractionChannelInviteList#
352
+ *
353
+ * @returns Object
354
+ */
355
+ /* jshint ignore:end */
356
+ InteractionChannelInviteListInstance.toJSON = function toJSON() {
357
+ return this._solution;
358
+ };
359
+
360
+ InteractionChannelInviteListInstance[util.inspect.custom] = function
361
+ inspect(depth, options) {
362
+ return util.inspect(this.toJSON(), options);
363
+ };
364
+
365
+ return InteractionChannelInviteListInstance;
366
+ };
367
+
368
+
369
+ /* jshint ignore:start */
370
+ /**
371
+ * Initialize the InteractionChannelInvitePage
372
+ *
373
+ * @constructor Twilio.FlexApi.V1.InteractionContext.InteractionChannelContext.InteractionChannelInvitePage
374
+ *
375
+ * @param {V1} version - Version of the resource
376
+ * @param {Response<string>} response - Response from the API
377
+ * @param {InteractionChannelInviteSolution} solution - Path solution
378
+ *
379
+ * @returns InteractionChannelInvitePage
380
+ */
381
+ /* jshint ignore:end */
382
+ InteractionChannelInvitePage = function InteractionChannelInvitePage(version,
383
+ response, solution) {
384
+ // Path Solution
385
+ this._solution = solution;
386
+
387
+ Page.prototype.constructor.call(this, version, response, this._solution);
388
+ };
389
+
390
+ _.extend(InteractionChannelInvitePage.prototype, Page.prototype);
391
+ InteractionChannelInvitePage.prototype.constructor = InteractionChannelInvitePage;
392
+
393
+ /* jshint ignore:start */
394
+ /**
395
+ * Build an instance of InteractionChannelInviteInstance
396
+ *
397
+ * @function getInstance
398
+ * @memberof Twilio.FlexApi.V1.InteractionContext.InteractionChannelContext.InteractionChannelInvitePage#
399
+ *
400
+ * @param {InteractionChannelInvitePayload} payload - Payload response from the API
401
+ *
402
+ * @returns InteractionChannelInviteInstance
403
+ */
404
+ /* jshint ignore:end */
405
+ InteractionChannelInvitePage.prototype.getInstance = function
406
+ getInstance(payload) {
407
+ return new InteractionChannelInviteInstance(
408
+ this._version,
409
+ payload,
410
+ this._solution.interactionSid,
411
+ this._solution.channelSid
412
+ );
413
+ };
414
+
415
+ /* jshint ignore:start */
416
+ /**
417
+ * Provide a user-friendly representation
418
+ *
419
+ * @function toJSON
420
+ * @memberof Twilio.FlexApi.V1.InteractionContext.InteractionChannelContext.InteractionChannelInvitePage#
421
+ *
422
+ * @returns Object
423
+ */
424
+ /* jshint ignore:end */
425
+ InteractionChannelInvitePage.prototype.toJSON = function toJSON() {
426
+ let clone = {};
427
+ _.forOwn(this, function(value, key) {
428
+ if (!_.startsWith(key, '_') && ! _.isFunction(value)) {
429
+ clone[key] = value;
430
+ }
431
+ });
432
+ return clone;
433
+ };
434
+
435
+ InteractionChannelInvitePage.prototype[util.inspect.custom] = function
436
+ inspect(depth, options) {
437
+ return util.inspect(this.toJSON(), options);
438
+ };
439
+
440
+
441
+ /* jshint ignore:start */
442
+ /**
443
+ * Initialize the InteractionChannelInviteContext
444
+ *
445
+ * @constructor Twilio.FlexApi.V1.InteractionContext.InteractionChannelContext.InteractionChannelInviteInstance
446
+ *
447
+ * @property {string} sid - The sid
448
+ * @property {string} interactionSid - The interaction_sid
449
+ * @property {string} channelSid - The channel_sid
450
+ * @property {object} routing - The routing
451
+ * @property {string} url - The url
452
+ *
453
+ * @param {V1} version - Version of the resource
454
+ * @param {InteractionChannelInvitePayload} payload - The instance payload
455
+ * @param {sid} interactionSid - The interaction_sid
456
+ * @param {sid} channelSid - The channel_sid
457
+ */
458
+ /* jshint ignore:end */
459
+ InteractionChannelInviteInstance = function
460
+ InteractionChannelInviteInstance(version, payload, interactionSid,
461
+ channelSid) {
462
+ this._version = version;
463
+
464
+ // Marshaled Properties
465
+ this.sid = payload.sid; // jshint ignore:line
466
+ this.interactionSid = payload.interaction_sid; // jshint ignore:line
467
+ this.channelSid = payload.channel_sid; // jshint ignore:line
468
+ this.routing = payload.routing; // jshint ignore:line
469
+ this.url = payload.url; // jshint ignore:line
470
+
471
+ // Context
472
+ this._context = undefined;
473
+ this._solution = {interactionSid: interactionSid, channelSid: channelSid, };
474
+ };
475
+
476
+ /* jshint ignore:start */
477
+ /**
478
+ * Provide a user-friendly representation
479
+ *
480
+ * @function toJSON
481
+ * @memberof Twilio.FlexApi.V1.InteractionContext.InteractionChannelContext.InteractionChannelInviteInstance#
482
+ *
483
+ * @returns Object
484
+ */
485
+ /* jshint ignore:end */
486
+ InteractionChannelInviteInstance.prototype.toJSON = function toJSON() {
487
+ let clone = {};
488
+ _.forOwn(this, function(value, key) {
489
+ if (!_.startsWith(key, '_') && ! _.isFunction(value)) {
490
+ clone[key] = value;
491
+ }
492
+ });
493
+ return clone;
494
+ };
495
+
496
+ InteractionChannelInviteInstance.prototype[util.inspect.custom] = function
497
+ inspect(depth, options) {
498
+ return util.inspect(this.toJSON(), options);
499
+ };
500
+
501
+ module.exports = {
502
+ InteractionChannelInviteList: InteractionChannelInviteList,
503
+ InteractionChannelInvitePage: InteractionChannelInvitePage,
504
+ InteractionChannelInviteInstance: InteractionChannelInviteInstance
505
+ };