twilio 3.80.0 → 3.82.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.
- package/lib/base/RequestClient.d.ts +26 -2
- package/lib/base/RequestClient.js +14 -2
- package/lib/rest/Messaging.d.ts +2 -0
- package/lib/rest/Messaging.js +9 -0
- package/lib/rest/Microvisor.d.ts +28 -0
- package/lib/rest/Microvisor.js +62 -0
- package/lib/rest/Preview.d.ts +0 -6
- package/lib/rest/Preview.js +0 -28
- package/lib/rest/Routes.d.ts +30 -0
- package/lib/rest/Routes.js +71 -0
- package/lib/rest/Twilio.d.ts +4 -0
- package/lib/rest/Twilio.js +28 -0
- package/lib/rest/Verify.d.ts +2 -0
- package/lib/rest/Verify.js +8 -0
- package/lib/rest/api/v2010/account/sip/ipAccessControlList/ipAddress.d.ts +2 -2
- package/lib/rest/api/v2010/account/sip/ipAccessControlList/ipAddress.js +4 -4
- package/lib/rest/flexApi/v1/configuration.d.ts +4 -0
- package/lib/rest/flexApi/v1/configuration.js +6 -0
- package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelParticipant.d.ts +1 -1
- package/lib/rest/flexApi/v1/interaction/interactionChannel.d.ts +1 -1
- package/lib/rest/flexApi/v1/interaction.d.ts +1 -3
- package/lib/rest/messaging/V1.d.ts +3 -0
- package/lib/rest/messaging/V1.js +13 -0
- package/lib/rest/messaging/v1/tollfreeVerification.d.ts +418 -0
- package/lib/rest/messaging/v1/tollfreeVerification.js +802 -0
- package/lib/rest/microvisor/V1.d.ts +28 -0
- package/lib/rest/microvisor/V1.js +57 -0
- package/lib/rest/{preview/bulk_exports/export/day.d.ts → microvisor/v1/app.d.ts} +79 -69
- package/lib/rest/{preview/bulk_exports/export/day.js → microvisor/v1/app.js} +160 -122
- package/lib/rest/{preview/bulk_exports/export/exportCustomJob.d.ts → microvisor/v1/device.d.ts} +136 -84
- package/lib/rest/microvisor/v1/device.js +652 -0
- package/lib/rest/routes/V2.d.ts +31 -0
- package/lib/rest/routes/V2.js +69 -0
- package/lib/rest/routes/v2/phoneNumber.d.ts +168 -0
- package/lib/rest/routes/v2/phoneNumber.js +394 -0
- package/lib/rest/routes/v2/sipDomain.d.ts +168 -0
- package/lib/rest/routes/v2/sipDomain.js +383 -0
- package/lib/rest/routes/v2/trunk.d.ts +168 -0
- package/lib/rest/routes/v2/trunk.js +390 -0
- package/lib/rest/supersim/v1/fleet.d.ts +3 -1
- package/lib/rest/supersim/v1/fleet.js +8 -3
- package/lib/rest/verify/V2.d.ts +3 -0
- package/lib/rest/verify/V2.js +11 -0
- package/lib/rest/verify/v2/safelist.d.ts +161 -0
- package/lib/rest/verify/v2/safelist.js +408 -0
- package/lib/rest/verify/v2/service/verification.d.ts +1 -1
- package/lib/rest/verify/v2/service/verification.js +1 -1
- package/lib/rest/video/v1/room/roomParticipant/roomParticipantAnonymize.d.ts +143 -0
- package/lib/rest/video/v1/room/roomParticipant/roomParticipantAnonymize.js +337 -0
- package/lib/rest/video/v1/room/roomParticipant.d.ts +7 -0
- package/lib/rest/video/v1/room/roomParticipant.js +29 -0
- package/lib/twiml/VoiceResponse.d.ts +3 -3
- package/lib/webhooks/webhooks.js +1 -0
- package/package.json +1 -1
- package/lib/rest/preview/BulkExports.d.ts +0 -28
- package/lib/rest/preview/BulkExports.js +0 -59
- package/lib/rest/preview/bulk_exports/export/exportCustomJob.js +0 -540
- package/lib/rest/preview/bulk_exports/export/job.d.ts +0 -163
- package/lib/rest/preview/bulk_exports/export/job.js +0 -390
- package/lib/rest/preview/bulk_exports/export.d.ts +0 -153
- package/lib/rest/preview/bulk_exports/export.js +0 -402
- package/lib/rest/preview/bulk_exports/exportConfiguration.d.ts +0 -180
- package/lib/rest/preview/bulk_exports/exportConfiguration.js +0 -411
|
@@ -0,0 +1,337 @@
|
|
|
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 AnonymizeList;
|
|
21
|
+
var AnonymizePage;
|
|
22
|
+
var AnonymizeInstance;
|
|
23
|
+
var AnonymizeContext;
|
|
24
|
+
|
|
25
|
+
/* jshint ignore:start */
|
|
26
|
+
/**
|
|
27
|
+
* Initialize the AnonymizeList
|
|
28
|
+
*
|
|
29
|
+
* @constructor Twilio.Video.V1.RoomContext.ParticipantContext.AnonymizeList
|
|
30
|
+
*
|
|
31
|
+
* @param {Twilio.Video.V1} version - Version of the resource
|
|
32
|
+
* @param {string} roomSid - The SID of the participant's room
|
|
33
|
+
* @param {string} sid - The unique string that identifies the resource
|
|
34
|
+
*/
|
|
35
|
+
/* jshint ignore:end */
|
|
36
|
+
AnonymizeList = function AnonymizeList(version, roomSid, sid) {
|
|
37
|
+
/* jshint ignore:start */
|
|
38
|
+
/**
|
|
39
|
+
* @function anonymize
|
|
40
|
+
* @memberof Twilio.Video.V1.RoomContext.ParticipantContext#
|
|
41
|
+
*
|
|
42
|
+
* @param {string} sid - sid of instance
|
|
43
|
+
*
|
|
44
|
+
* @returns {Twilio.Video.V1.RoomContext.ParticipantContext.AnonymizeContext}
|
|
45
|
+
*/
|
|
46
|
+
/* jshint ignore:end */
|
|
47
|
+
function AnonymizeListInstance(sid) {
|
|
48
|
+
return AnonymizeListInstance.get(sid);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
AnonymizeListInstance._version = version;
|
|
52
|
+
// Path Solution
|
|
53
|
+
AnonymizeListInstance._solution = {roomSid: roomSid, sid: sid};
|
|
54
|
+
/* jshint ignore:start */
|
|
55
|
+
/**
|
|
56
|
+
* Constructs a anonymize
|
|
57
|
+
*
|
|
58
|
+
* @function get
|
|
59
|
+
* @memberof Twilio.Video.V1.RoomContext.ParticipantContext.AnonymizeList#
|
|
60
|
+
*
|
|
61
|
+
* @returns {Twilio.Video.V1.RoomContext.ParticipantContext.AnonymizeContext}
|
|
62
|
+
*/
|
|
63
|
+
/* jshint ignore:end */
|
|
64
|
+
AnonymizeListInstance.get = function get() {
|
|
65
|
+
return new AnonymizeContext(this._version, this._solution.roomSid, this._solution.sid);
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
/* jshint ignore:start */
|
|
69
|
+
/**
|
|
70
|
+
* Provide a user-friendly representation
|
|
71
|
+
*
|
|
72
|
+
* @function toJSON
|
|
73
|
+
* @memberof Twilio.Video.V1.RoomContext.ParticipantContext.AnonymizeList#
|
|
74
|
+
*
|
|
75
|
+
* @returns Object
|
|
76
|
+
*/
|
|
77
|
+
/* jshint ignore:end */
|
|
78
|
+
AnonymizeListInstance.toJSON = function toJSON() {
|
|
79
|
+
return this._solution;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
AnonymizeListInstance[util.inspect.custom] = function inspect(depth, options) {
|
|
83
|
+
return util.inspect(this.toJSON(), options);
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
return AnonymizeListInstance;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
/* jshint ignore:start */
|
|
91
|
+
/**
|
|
92
|
+
* Initialize the AnonymizePage
|
|
93
|
+
*
|
|
94
|
+
* @constructor Twilio.Video.V1.RoomContext.ParticipantContext.AnonymizePage
|
|
95
|
+
*
|
|
96
|
+
* @param {V1} version - Version of the resource
|
|
97
|
+
* @param {Response<string>} response - Response from the API
|
|
98
|
+
* @param {AnonymizeSolution} solution - Path solution
|
|
99
|
+
*
|
|
100
|
+
* @returns AnonymizePage
|
|
101
|
+
*/
|
|
102
|
+
/* jshint ignore:end */
|
|
103
|
+
AnonymizePage = function AnonymizePage(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(AnonymizePage.prototype, Page.prototype);
|
|
111
|
+
AnonymizePage.prototype.constructor = AnonymizePage;
|
|
112
|
+
|
|
113
|
+
/* jshint ignore:start */
|
|
114
|
+
/**
|
|
115
|
+
* Build an instance of AnonymizeInstance
|
|
116
|
+
*
|
|
117
|
+
* @function getInstance
|
|
118
|
+
* @memberof Twilio.Video.V1.RoomContext.ParticipantContext.AnonymizePage#
|
|
119
|
+
*
|
|
120
|
+
* @param {AnonymizePayload} payload - Payload response from the API
|
|
121
|
+
*
|
|
122
|
+
* @returns AnonymizeInstance
|
|
123
|
+
*/
|
|
124
|
+
/* jshint ignore:end */
|
|
125
|
+
AnonymizePage.prototype.getInstance = function getInstance(payload) {
|
|
126
|
+
return new AnonymizeInstance(this._version, payload, this._solution.roomSid, this._solution.sid);
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
/* jshint ignore:start */
|
|
130
|
+
/**
|
|
131
|
+
* Provide a user-friendly representation
|
|
132
|
+
*
|
|
133
|
+
* @function toJSON
|
|
134
|
+
* @memberof Twilio.Video.V1.RoomContext.ParticipantContext.AnonymizePage#
|
|
135
|
+
*
|
|
136
|
+
* @returns Object
|
|
137
|
+
*/
|
|
138
|
+
/* jshint ignore:end */
|
|
139
|
+
AnonymizePage.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
|
+
AnonymizePage.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 AnonymizeContext
|
|
158
|
+
*
|
|
159
|
+
* @constructor Twilio.Video.V1.RoomContext.ParticipantContext.AnonymizeInstance
|
|
160
|
+
*
|
|
161
|
+
* @property {string} sid - The unique string that identifies the resource
|
|
162
|
+
* @property {string} roomSid - The SID of the participant's room
|
|
163
|
+
* @property {string} accountSid - The SID of the Account that created the resource
|
|
164
|
+
* @property {anonymize.status} status - The status of the Participant
|
|
165
|
+
* @property {string} identity - The SID of the participant
|
|
166
|
+
* @property {Date} dateCreated -
|
|
167
|
+
* The ISO 8601 date and time in GMT when the resource was created
|
|
168
|
+
* @property {Date} dateUpdated -
|
|
169
|
+
* The ISO 8601 date and time in GMT when the resource was last updated
|
|
170
|
+
* @property {Date} startTime -
|
|
171
|
+
* The time of participant connected to the room in ISO 8601 format
|
|
172
|
+
* @property {Date} endTime -
|
|
173
|
+
* The time when the participant disconnected from the room in ISO 8601 format
|
|
174
|
+
* @property {number} duration -
|
|
175
|
+
* Duration of time in seconds the participant was connected
|
|
176
|
+
* @property {string} url - The absolute URL of the resource
|
|
177
|
+
*
|
|
178
|
+
* @param {V1} version - Version of the resource
|
|
179
|
+
* @param {AnonymizePayload} payload - The instance payload
|
|
180
|
+
* @param {sid} roomSid - The SID of the participant's room
|
|
181
|
+
* @param {sid} sid - The unique string that identifies the resource
|
|
182
|
+
*/
|
|
183
|
+
/* jshint ignore:end */
|
|
184
|
+
AnonymizeInstance = function AnonymizeInstance(version, payload, roomSid, sid) {
|
|
185
|
+
this._version = version;
|
|
186
|
+
|
|
187
|
+
// Marshaled Properties
|
|
188
|
+
this.sid = payload.sid; // jshint ignore:line
|
|
189
|
+
this.roomSid = payload.room_sid; // jshint ignore:line
|
|
190
|
+
this.accountSid = payload.account_sid; // jshint ignore:line
|
|
191
|
+
this.status = payload.status; // jshint ignore:line
|
|
192
|
+
this.identity = payload.identity; // jshint ignore:line
|
|
193
|
+
this.dateCreated = deserialize.iso8601DateTime(payload.date_created); // jshint ignore:line
|
|
194
|
+
this.dateUpdated = deserialize.iso8601DateTime(payload.date_updated); // jshint ignore:line
|
|
195
|
+
this.startTime = deserialize.iso8601DateTime(payload.start_time); // jshint ignore:line
|
|
196
|
+
this.endTime = deserialize.iso8601DateTime(payload.end_time); // jshint ignore:line
|
|
197
|
+
this.duration = deserialize.integer(payload.duration); // jshint ignore:line
|
|
198
|
+
this.url = payload.url; // jshint ignore:line
|
|
199
|
+
|
|
200
|
+
// Context
|
|
201
|
+
this._context = undefined;
|
|
202
|
+
this._solution = {roomSid: roomSid, sid: sid, };
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
Object.defineProperty(AnonymizeInstance.prototype,
|
|
206
|
+
'_proxy', {
|
|
207
|
+
get: function() {
|
|
208
|
+
if (!this._context) {
|
|
209
|
+
this._context = new AnonymizeContext(this._version, this._solution.roomSid, this._solution.sid);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
return this._context;
|
|
213
|
+
}
|
|
214
|
+
});
|
|
215
|
+
|
|
216
|
+
/* jshint ignore:start */
|
|
217
|
+
/**
|
|
218
|
+
* update a AnonymizeInstance
|
|
219
|
+
*
|
|
220
|
+
* @function update
|
|
221
|
+
* @memberof Twilio.Video.V1.RoomContext.ParticipantContext.AnonymizeInstance#
|
|
222
|
+
*
|
|
223
|
+
* @param {function} [callback] - Callback to handle processed record
|
|
224
|
+
*
|
|
225
|
+
* @returns {Promise} Resolves to processed AnonymizeInstance
|
|
226
|
+
*/
|
|
227
|
+
/* jshint ignore:end */
|
|
228
|
+
AnonymizeInstance.prototype.update = function update(callback) {
|
|
229
|
+
return this._proxy.update(callback);
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
/* jshint ignore:start */
|
|
233
|
+
/**
|
|
234
|
+
* Provide a user-friendly representation
|
|
235
|
+
*
|
|
236
|
+
* @function toJSON
|
|
237
|
+
* @memberof Twilio.Video.V1.RoomContext.ParticipantContext.AnonymizeInstance#
|
|
238
|
+
*
|
|
239
|
+
* @returns Object
|
|
240
|
+
*/
|
|
241
|
+
/* jshint ignore:end */
|
|
242
|
+
AnonymizeInstance.prototype.toJSON = function toJSON() {
|
|
243
|
+
let clone = {};
|
|
244
|
+
_.forOwn(this, function(value, key) {
|
|
245
|
+
if (!_.startsWith(key, '_') && ! _.isFunction(value)) {
|
|
246
|
+
clone[key] = value;
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
return clone;
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
AnonymizeInstance.prototype[util.inspect.custom] = function inspect(depth,
|
|
253
|
+
options) {
|
|
254
|
+
return util.inspect(this.toJSON(), options);
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
/* jshint ignore:start */
|
|
259
|
+
/**
|
|
260
|
+
* Initialize the AnonymizeContext
|
|
261
|
+
*
|
|
262
|
+
* @constructor Twilio.Video.V1.RoomContext.ParticipantContext.AnonymizeContext
|
|
263
|
+
*
|
|
264
|
+
* @param {V1} version - Version of the resource
|
|
265
|
+
* @param {sid_like} roomSid - The SID of the room with the participant to update
|
|
266
|
+
* @param {sid_like} sid - The SID that identifies the resource to update
|
|
267
|
+
*/
|
|
268
|
+
/* jshint ignore:end */
|
|
269
|
+
AnonymizeContext = function AnonymizeContext(version, roomSid, sid) {
|
|
270
|
+
this._version = version;
|
|
271
|
+
|
|
272
|
+
// Path Solution
|
|
273
|
+
this._solution = {roomSid: roomSid, sid: sid, };
|
|
274
|
+
this._uri = `/Rooms/${roomSid}/Participants/${sid}/Anonymize`;
|
|
275
|
+
};
|
|
276
|
+
|
|
277
|
+
/* jshint ignore:start */
|
|
278
|
+
/**
|
|
279
|
+
* update a AnonymizeInstance
|
|
280
|
+
*
|
|
281
|
+
* @function update
|
|
282
|
+
* @memberof Twilio.Video.V1.RoomContext.ParticipantContext.AnonymizeContext#
|
|
283
|
+
*
|
|
284
|
+
* @param {function} [callback] - Callback to handle processed record
|
|
285
|
+
*
|
|
286
|
+
* @returns {Promise} Resolves to processed AnonymizeInstance
|
|
287
|
+
*/
|
|
288
|
+
/* jshint ignore:end */
|
|
289
|
+
AnonymizeContext.prototype.update = function update(callback) {
|
|
290
|
+
var deferred = Q.defer();
|
|
291
|
+
var promise = this._version.update({uri: this._uri, method: 'POST'});
|
|
292
|
+
|
|
293
|
+
promise = promise.then(function(payload) {
|
|
294
|
+
deferred.resolve(new AnonymizeInstance(
|
|
295
|
+
this._version,
|
|
296
|
+
payload,
|
|
297
|
+
this._solution.roomSid,
|
|
298
|
+
this._solution.sid
|
|
299
|
+
));
|
|
300
|
+
}.bind(this));
|
|
301
|
+
|
|
302
|
+
promise.catch(function(error) {
|
|
303
|
+
deferred.reject(error);
|
|
304
|
+
});
|
|
305
|
+
|
|
306
|
+
if (_.isFunction(callback)) {
|
|
307
|
+
deferred.promise.nodeify(callback);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
return deferred.promise;
|
|
311
|
+
};
|
|
312
|
+
|
|
313
|
+
/* jshint ignore:start */
|
|
314
|
+
/**
|
|
315
|
+
* Provide a user-friendly representation
|
|
316
|
+
*
|
|
317
|
+
* @function toJSON
|
|
318
|
+
* @memberof Twilio.Video.V1.RoomContext.ParticipantContext.AnonymizeContext#
|
|
319
|
+
*
|
|
320
|
+
* @returns Object
|
|
321
|
+
*/
|
|
322
|
+
/* jshint ignore:end */
|
|
323
|
+
AnonymizeContext.prototype.toJSON = function toJSON() {
|
|
324
|
+
return this._solution;
|
|
325
|
+
};
|
|
326
|
+
|
|
327
|
+
AnonymizeContext.prototype[util.inspect.custom] = function inspect(depth,
|
|
328
|
+
options) {
|
|
329
|
+
return util.inspect(this.toJSON(), options);
|
|
330
|
+
};
|
|
331
|
+
|
|
332
|
+
module.exports = {
|
|
333
|
+
AnonymizeList: AnonymizeList,
|
|
334
|
+
AnonymizePage: AnonymizePage,
|
|
335
|
+
AnonymizeInstance: AnonymizeInstance,
|
|
336
|
+
AnonymizeContext: AnonymizeContext
|
|
337
|
+
};
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
import Page = require('../../../../base/Page');
|
|
9
9
|
import Response = require('../../../../http/response');
|
|
10
10
|
import V1 = require('../../V1');
|
|
11
|
+
import { AnonymizeList } from './roomParticipant/roomParticipantAnonymize';
|
|
12
|
+
import { AnonymizeListInstance } from './roomParticipant/roomParticipantAnonymize';
|
|
11
13
|
import { PublishedTrackList } from './roomParticipant/roomParticipantPublishedTrack';
|
|
12
14
|
import { PublishedTrackListInstance } from './roomParticipant/roomParticipantPublishedTrack';
|
|
13
15
|
import { SerializableClass } from '../../../../interfaces';
|
|
@@ -262,6 +264,7 @@ declare class ParticipantContext {
|
|
|
262
264
|
*/
|
|
263
265
|
constructor(version: V1, roomSid: string, sid: string);
|
|
264
266
|
|
|
267
|
+
anonymize: AnonymizeListInstance;
|
|
265
268
|
/**
|
|
266
269
|
* fetch a ParticipantInstance
|
|
267
270
|
*
|
|
@@ -304,6 +307,10 @@ declare class ParticipantInstance extends SerializableClass {
|
|
|
304
307
|
|
|
305
308
|
private _proxy: ParticipantContext;
|
|
306
309
|
accountSid: string;
|
|
310
|
+
/**
|
|
311
|
+
* Access the anonymize
|
|
312
|
+
*/
|
|
313
|
+
anonymize(): AnonymizeListInstance;
|
|
307
314
|
dateCreated: Date;
|
|
308
315
|
dateUpdated: Date;
|
|
309
316
|
duration: number;
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
var Q = require('q'); /* jshint ignore:line */
|
|
13
13
|
var _ = require('lodash'); /* jshint ignore:line */
|
|
14
14
|
var util = require('util'); /* jshint ignore:line */
|
|
15
|
+
var AnonymizeList = require(
|
|
16
|
+
'./roomParticipant/roomParticipantAnonymize').AnonymizeList;
|
|
15
17
|
var Page = require('../../../../base/Page'); /* jshint ignore:line */
|
|
16
18
|
var PublishedTrackList = require(
|
|
17
19
|
'./roomParticipant/roomParticipantPublishedTrack').PublishedTrackList;
|
|
@@ -574,6 +576,20 @@ ParticipantInstance.prototype.subscribeRules = function subscribeRules() {
|
|
|
574
576
|
return this._proxy.subscribeRules;
|
|
575
577
|
};
|
|
576
578
|
|
|
579
|
+
/* jshint ignore:start */
|
|
580
|
+
/**
|
|
581
|
+
* Access the anonymize
|
|
582
|
+
*
|
|
583
|
+
* @function anonymize
|
|
584
|
+
* @memberof Twilio.Video.V1.RoomContext.ParticipantInstance#
|
|
585
|
+
*
|
|
586
|
+
* @returns {Twilio.Video.V1.RoomContext.ParticipantContext.AnonymizeList}
|
|
587
|
+
*/
|
|
588
|
+
/* jshint ignore:end */
|
|
589
|
+
ParticipantInstance.prototype.anonymize = function anonymize() {
|
|
590
|
+
return this._proxy.anonymize;
|
|
591
|
+
};
|
|
592
|
+
|
|
577
593
|
/* jshint ignore:start */
|
|
578
594
|
/**
|
|
579
595
|
* Provide a user-friendly representation
|
|
@@ -612,6 +628,8 @@ ParticipantInstance.prototype[util.inspect.custom] = function inspect(depth,
|
|
|
612
628
|
* subscribedTracks resource
|
|
613
629
|
* @property {Twilio.Video.V1.RoomContext.ParticipantContext.SubscribeRulesList} subscribeRules -
|
|
614
630
|
* subscribeRules resource
|
|
631
|
+
* @property {Twilio.Video.V1.RoomContext.ParticipantContext.AnonymizeList} anonymize -
|
|
632
|
+
* anonymize resource
|
|
615
633
|
*
|
|
616
634
|
* @param {V1} version - Version of the resource
|
|
617
635
|
* @param {sid_like} roomSid -
|
|
@@ -630,6 +648,7 @@ ParticipantContext = function ParticipantContext(version, roomSid, sid) {
|
|
|
630
648
|
this._publishedTracks = undefined;
|
|
631
649
|
this._subscribedTracks = undefined;
|
|
632
650
|
this._subscribeRules = undefined;
|
|
651
|
+
this._anonymize = undefined;
|
|
633
652
|
};
|
|
634
653
|
|
|
635
654
|
/* jshint ignore:start */
|
|
@@ -756,6 +775,16 @@ Object.defineProperty(ParticipantContext.prototype,
|
|
|
756
775
|
}
|
|
757
776
|
});
|
|
758
777
|
|
|
778
|
+
Object.defineProperty(ParticipantContext.prototype,
|
|
779
|
+
'anonymize', {
|
|
780
|
+
get: function() {
|
|
781
|
+
if (!this._anonymize) {
|
|
782
|
+
this._anonymize = new AnonymizeList(this._version, this._solution.roomSid, this._solution.sid);
|
|
783
|
+
}
|
|
784
|
+
return this._anonymize;
|
|
785
|
+
}
|
|
786
|
+
});
|
|
787
|
+
|
|
759
788
|
/* jshint ignore:start */
|
|
760
789
|
/**
|
|
761
790
|
* Provide a user-friendly representation
|
|
@@ -205,7 +205,7 @@ declare namespace VoiceResponse {
|
|
|
205
205
|
|
|
206
206
|
type ConferenceTrim = 'trim-silence'|'do-not-trim';
|
|
207
207
|
|
|
208
|
-
type ConversationEvent = 'call-initiated'|'call-ringing'|'call-
|
|
208
|
+
type ConversationEvent = 'call-initiated'|'call-ringing'|'call-answered'|'call-completed';
|
|
209
209
|
|
|
210
210
|
type ConversationRecord = 'do-not-record'|'record-from-answer'|'record-from-ringing'|'record-from-answer-dual'|'record-from-ringing-dual'|'true'|'false';
|
|
211
211
|
|
|
@@ -259,7 +259,7 @@ declare namespace VoiceResponse {
|
|
|
259
259
|
|
|
260
260
|
type SayLanguage = 'arb'|'ca-ES'|'cy-GB'|'da-DK'|'de-DE'|'de-AT'|'en-AU'|'en-CA'|'en-GB'|'en-GB-WLS'|'en-IN'|'en-NZ'|'en-ZA'|'en-US'|'es-ES'|'es-MX'|'es-US'|'fi-FI'|'fr-CA'|'fr-FR'|'hi-IN'|'is-IS'|'it-IT'|'ja-JP'|'ko-KR'|'nb-NO'|'nl-NL'|'pl-PL'|'pt-BR'|'pt-PT'|'ro-RO'|'ru-RU'|'sv-SE'|'tr-TR'|'zh-CN'|'zh-HK'|'zh-TW';
|
|
261
261
|
|
|
262
|
-
type SayVoice = 'man'|'woman'|'alice'|'Polly.Aditi'|'Polly.Amy'|'Polly.Astrid'|'Polly.Bianca'|'Polly.Brian'|'Polly.Camila'|'Polly.Carla'|'Polly.Carmen'|'Polly.Celine'|'Polly.Chantal'|'Polly.Conchita'|'Polly.Cristiano'|'Polly.Dora'|'Polly.Emma'|'Polly.Enrique'|'Polly.Ewa'|'Polly.Filiz'|'Polly.Geraint'|'Polly.Giorgio'|'Polly.Gwyneth'|'Polly.Hans'|'Polly.Ines'|'Polly.Ivy'|'Polly.Jacek'|'Polly.Jan'|'Polly.Joanna'|'Polly.Joey'|'Polly.Justin'|'Polly.Karl'|'Polly.Kendra'|'Polly.Kimberly'|'Polly.Lea'|'Polly.Liv'|'Polly.Lotte'|'Polly.Lucia'|'Polly.Lupe'|'Polly.Mads'|'Polly.Maja'|'Polly.Marlene'|'Polly.Mathieu'|'Polly.Matthew'|'Polly.Maxim'|'Polly.Mia'|'Polly.Miguel'|'Polly.Mizuki'|'Polly.Naja'|'Polly.Nicole'|'Polly.Penelope'|'Polly.Raveena'|'Polly.Ricardo'|'Polly.Ruben'|'Polly.Russell'|'Polly.Salli'|'Polly.Seoyeon'|'Polly.Takumi'|'Polly.Tatyana'|'Polly.Vicki'|'Polly.Vitoria'|'Polly.Zeina'|'Polly.Zhiyu'|'Polly.Amy-Neural'|'Polly.
|
|
262
|
+
type SayVoice = 'man'|'woman'|'alice'|'Polly.Aditi'|'Polly.Amy'|'Polly.Astrid'|'Polly.Bianca'|'Polly.Brian'|'Polly.Camila'|'Polly.Carla'|'Polly.Carmen'|'Polly.Celine'|'Polly.Chantal'|'Polly.Conchita'|'Polly.Cristiano'|'Polly.Dora'|'Polly.Emma'|'Polly.Enrique'|'Polly.Ewa'|'Polly.Filiz'|'Polly.Geraint'|'Polly.Giorgio'|'Polly.Gwyneth'|'Polly.Hans'|'Polly.Ines'|'Polly.Ivy'|'Polly.Jacek'|'Polly.Jan'|'Polly.Joanna'|'Polly.Joey'|'Polly.Justin'|'Polly.Karl'|'Polly.Kendra'|'Polly.Kimberly'|'Polly.Lea'|'Polly.Liv'|'Polly.Lotte'|'Polly.Lucia'|'Polly.Lupe'|'Polly.Mads'|'Polly.Maja'|'Polly.Marlene'|'Polly.Mathieu'|'Polly.Matthew'|'Polly.Maxim'|'Polly.Mia'|'Polly.Miguel'|'Polly.Mizuki'|'Polly.Naja'|'Polly.Nicole'|'Polly.Penelope'|'Polly.Raveena'|'Polly.Ricardo'|'Polly.Ruben'|'Polly.Russell'|'Polly.Salli'|'Polly.Seoyeon'|'Polly.Takumi'|'Polly.Tatyana'|'Polly.Vicki'|'Polly.Vitoria'|'Polly.Zeina'|'Polly.Zhiyu'|'Polly.Amy-Neural'|'Polly.Aria-Neural'|'Polly.Arlet-Neural'|'Polly.Arthur-Neural'|'Polly.Ayanda-Neural'|'Polly.Bianca-Neural'|'Polly.Brian-Neural'|'Polly.Camila-Neural'|'Polly.Daniel-Neural'|'Polly.Emma-Neural'|'Polly.Gabrielle-Neural'|'Polly.Hannah-Neural'|'Polly.Ines-Neural'|'Polly.Ivy-Neural'|'Polly.Joanna-Neural'|'Polly.Joey-Neural'|'Polly.Justin-Neural'|'Polly.Kajal-Neural'|'Polly.Kendra-Neural'|'Polly.Kevin-Neural'|'Polly.Kimberly-Neural'|'Polly.Lea-Neural'|'Polly.Liam-Neural'|'Polly.Lucia-Neural'|'Polly.Lupe-Neural'|'Polly.Matthew-Neural'|'Polly.Mia-Neural'|'Polly.Olivia-Neural'|'Polly.Pedro-Neural'|'Polly.Salli-Neural'|'Polly.Seoyeon-Neural'|'Polly.Takumi-Neural'|'Polly.Vicki-Neural'|'Polly.Vitoria-Neural';
|
|
263
263
|
|
|
264
264
|
type SipEvent = 'initiated'|'ringing'|'answered'|'completed';
|
|
265
265
|
|
|
@@ -269,7 +269,7 @@ declare namespace VoiceResponse {
|
|
|
269
269
|
|
|
270
270
|
type SsmlEmphasisLevel = 'strong'|'moderate'|'reduced';
|
|
271
271
|
|
|
272
|
-
type SsmlLangXmlLang = 'da-DK'|'
|
|
272
|
+
type SsmlLangXmlLang = 'arb'|'ca-ES'|'cmn-CN'|'cy-GB'|'da-DK'|'de-DE'|'de-AT'|'en-AU'|'en-GB'|'en-GB-WLS'|'en-IN'|'en-NZ'|'en-US'|'en-ZA'|'es-ES'|'es-MX'|'es-US'|'fr-CA'|'fr-FR'|'hi-IN'|'is-IS'|'it-IT'|'ja-JP'|'ko-KR'|'nb-NO'|'nl-NL'|'pl-PL'|'pt-BR'|'pt-PT'|'ro-RO'|'ru-RU'|'sv-SE'|'tr-TR';
|
|
273
273
|
|
|
274
274
|
type SsmlPhonemeAlphabet = 'ipa'|'x-sampa';
|
|
275
275
|
|
package/lib/webhooks/webhooks.js
CHANGED
package/package.json
CHANGED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This code was generated by
|
|
3
|
-
* \ / _ _ _| _ _
|
|
4
|
-
* | (_)\/(_)(_|\/| |(/_ v1.0.0
|
|
5
|
-
* / /
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import Preview = require('../Preview');
|
|
9
|
-
import Version = require('../../base/Version');
|
|
10
|
-
import { ExportConfigurationList } from './bulk_exports/exportConfiguration';
|
|
11
|
-
import { ExportConfigurationListInstance } from './bulk_exports/exportConfiguration';
|
|
12
|
-
import { ExportList } from './bulk_exports/export';
|
|
13
|
-
import { ExportListInstance } from './bulk_exports/export';
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
declare class BulkExports extends Version {
|
|
17
|
-
/**
|
|
18
|
-
* Initialize the BulkExports version of Preview
|
|
19
|
-
*
|
|
20
|
-
* @param domain - The twilio domain
|
|
21
|
-
*/
|
|
22
|
-
constructor(domain: Preview);
|
|
23
|
-
|
|
24
|
-
readonly exportConfiguration: ExportConfigurationListInstance;
|
|
25
|
-
readonly exports: ExportListInstance;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export = BulkExports;
|
|
@@ -1,59 +0,0 @@
|
|
|
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 _ = require('lodash'); /* jshint ignore:line */
|
|
13
|
-
var ExportConfigurationList = require(
|
|
14
|
-
'./bulk_exports/exportConfiguration').ExportConfigurationList;
|
|
15
|
-
var ExportList = require('./bulk_exports/export').ExportList;
|
|
16
|
-
var Version = require('../../base/Version'); /* jshint ignore:line */
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
/* jshint ignore:start */
|
|
20
|
-
/**
|
|
21
|
-
* Initialize the BulkExports version of Preview
|
|
22
|
-
*
|
|
23
|
-
* @constructor Twilio.Preview.BulkExports
|
|
24
|
-
*
|
|
25
|
-
* @property {Twilio.Preview.BulkExports.ExportList} exports - exports resource
|
|
26
|
-
* @property {Twilio.Preview.BulkExports.ExportConfigurationList} exportConfiguration -
|
|
27
|
-
* exportConfiguration resource
|
|
28
|
-
*
|
|
29
|
-
* @param {Twilio.Preview} domain - The twilio domain
|
|
30
|
-
*/
|
|
31
|
-
/* jshint ignore:end */
|
|
32
|
-
function BulkExports(domain) {
|
|
33
|
-
Version.prototype.constructor.call(this, domain, 'BulkExports');
|
|
34
|
-
|
|
35
|
-
// Resources
|
|
36
|
-
this._exports = undefined;
|
|
37
|
-
this._exportConfiguration = undefined;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
_.extend(BulkExports.prototype, Version.prototype);
|
|
41
|
-
BulkExports.prototype.constructor = BulkExports;
|
|
42
|
-
|
|
43
|
-
Object.defineProperty(BulkExports.prototype,
|
|
44
|
-
'exports', {
|
|
45
|
-
get: function() {
|
|
46
|
-
this._exports = this._exports || new ExportList(this);
|
|
47
|
-
return this._exports;
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
Object.defineProperty(BulkExports.prototype,
|
|
52
|
-
'exportConfiguration', {
|
|
53
|
-
get: function() {
|
|
54
|
-
this._exportConfiguration = this._exportConfiguration || new ExportConfigurationList(this);
|
|
55
|
-
return this._exportConfiguration;
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
module.exports = BulkExports;
|