twilio 3.83.0 → 3.83.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/lib/rest/FlexApi.d.ts +4 -0
  2. package/lib/rest/FlexApi.js +16 -0
  3. package/lib/rest/api/v2010/account/call/userDefinedMessage.d.ts +107 -0
  4. package/lib/rest/api/v2010/account/call/userDefinedMessage.js +258 -0
  5. package/lib/rest/api/v2010/account/call/userDefinedMessageSubscription.d.ts +153 -0
  6. package/lib/rest/api/v2010/account/call/userDefinedMessageSubscription.js +407 -0
  7. package/lib/rest/api/v2010/account/call.d.ts +14 -0
  8. package/lib/rest/api/v2010/account/call.js +67 -0
  9. package/lib/rest/api/v2010/account/message.d.ts +4 -0
  10. package/lib/rest/api/v2010/account/message.js +7 -1
  11. package/lib/rest/flexApi/V1.d.ts +6 -0
  12. package/lib/rest/flexApi/V1.js +22 -0
  13. package/lib/rest/flexApi/v1/goodData.d.ts +142 -0
  14. package/lib/rest/flexApi/v1/goodData.js +316 -0
  15. package/lib/rest/flexApi/v1/userRoles.d.ts +138 -0
  16. package/lib/rest/flexApi/v1/userRoles.js +313 -0
  17. package/lib/rest/messaging/v1/service/usAppToPerson.d.ts +28 -0
  18. package/lib/rest/messaging/v1/service/usAppToPerson.js +29 -1
  19. package/lib/rest/proxy/v1/service/session/participant.d.ts +0 -2
  20. package/lib/rest/proxy/v1/service/session/participant.js +1 -6
  21. package/lib/rest/proxy/v1/service/session.d.ts +0 -4
  22. package/lib/rest/proxy/v1/service/session.js +2 -10
  23. package/lib/rest/taskrouter/v1/workspace/task/reservation.d.ts +6 -0
  24. package/lib/rest/taskrouter/v1/workspace/task/reservation.js +7 -0
  25. package/lib/rest/taskrouter/v1/workspace/taskQueue.d.ts +6 -0
  26. package/lib/rest/taskrouter/v1/workspace/taskQueue.js +4 -0
  27. package/lib/rest/taskrouter/v1/workspace/worker.d.ts +6 -0
  28. package/lib/rest/taskrouter/v1/workspace/worker.js +4 -0
  29. package/lib/rest/verify/v2/service/verification.d.ts +1 -1
  30. package/lib/rest/verify/v2/service/verification.js +2 -1
  31. package/lib/rest/verify/v2/template.js +1 -1
  32. package/lib/twiml/VoiceResponse.d.ts +5 -1
  33. package/lib/twiml/VoiceResponse.js +2 -0
  34. package/package.json +1 -1
@@ -87,6 +87,7 @@ TaskQueueList = function TaskQueueList(version, workspaceSid) {
87
87
  * The attributes of the Workers to read
88
88
  * @param {string} [opts.workerSid] -
89
89
  * The SID of the Worker with the TaskQueue resources to read
90
+ * @param {string} [opts.ordering] - Sorting parameter for TaskQueues
90
91
  * @param {number} [opts.limit] -
91
92
  * Upper limit for the number of records to return.
92
93
  * each() guarantees never to return more than limit.
@@ -182,6 +183,7 @@ TaskQueueList = function TaskQueueList(version, workspaceSid) {
182
183
  * The attributes of the Workers to read
183
184
  * @param {string} [opts.workerSid] -
184
185
  * The SID of the Worker with the TaskQueue resources to read
186
+ * @param {string} [opts.ordering] - Sorting parameter for TaskQueues
185
187
  * @param {number} [opts.limit] -
186
188
  * Upper limit for the number of records to return.
187
189
  * list() guarantees never to return more than limit.
@@ -248,6 +250,7 @@ TaskQueueList = function TaskQueueList(version, workspaceSid) {
248
250
  * The attributes of the Workers to read
249
251
  * @param {string} [opts.workerSid] -
250
252
  * The SID of the Worker with the TaskQueue resources to read
253
+ * @param {string} [opts.ordering] - Sorting parameter for TaskQueues
251
254
  * @param {string} [opts.pageToken] - PageToken provided by the API
252
255
  * @param {number} [opts.pageNumber] -
253
256
  * Page Number, this value is simply for client state
@@ -269,6 +272,7 @@ TaskQueueList = function TaskQueueList(version, workspaceSid) {
269
272
  'FriendlyName': _.get(opts, 'friendlyName'),
270
273
  'EvaluateWorkerAttributes': _.get(opts, 'evaluateWorkerAttributes'),
271
274
  'WorkerSid': _.get(opts, 'workerSid'),
275
+ 'Ordering': _.get(opts, 'ordering'),
272
276
  'PageToken': opts.pageToken,
273
277
  'Page': opts.pageNumber,
274
278
  'PageSize': opts.pageSize
@@ -204,6 +204,7 @@ interface WorkerListInstanceCreateOptions {
204
204
  * Upper limit for the number of records to return.
205
205
  * each() guarantees never to return more than limit.
206
206
  * Default is no limit
207
+ * @property ordering - Sorting parameter for Workers
207
208
  * @property pageSize -
208
209
  * Number of records to fetch per request,
209
210
  * when not set will use the default value of 50 records.
@@ -222,6 +223,7 @@ interface WorkerListInstanceEachOptions {
222
223
  done?: Function;
223
224
  friendlyName?: string;
224
225
  limit?: number;
226
+ ordering?: string;
225
227
  pageSize?: number;
226
228
  targetWorkersExpression?: string;
227
229
  taskQueueName?: string;
@@ -239,6 +241,7 @@ interface WorkerListInstanceEachOptions {
239
241
  * Upper limit for the number of records to return.
240
242
  * list() guarantees never to return more than limit.
241
243
  * Default is no limit
244
+ * @property ordering - Sorting parameter for Workers
242
245
  * @property pageSize -
243
246
  * Number of records to fetch per request,
244
247
  * when not set will use the default value of 50 records.
@@ -255,6 +258,7 @@ interface WorkerListInstanceOptions {
255
258
  available?: string;
256
259
  friendlyName?: string;
257
260
  limit?: number;
261
+ ordering?: string;
258
262
  pageSize?: number;
259
263
  targetWorkersExpression?: string;
260
264
  taskQueueName?: string;
@@ -268,6 +272,7 @@ interface WorkerListInstanceOptions {
268
272
  * @property activitySid - The activity_sid of the Worker resources to read
269
273
  * @property available - Whether to return Worker resources that are available or unavailable
270
274
  * @property friendlyName - The friendly_name of the Worker resources to read
275
+ * @property ordering - Sorting parameter for Workers
271
276
  * @property pageNumber - Page Number, this value is simply for client state
272
277
  * @property pageSize - Number of records to return, defaults to 50
273
278
  * @property pageToken - PageToken provided by the API
@@ -280,6 +285,7 @@ interface WorkerListInstancePageOptions {
280
285
  activitySid?: string;
281
286
  available?: string;
282
287
  friendlyName?: string;
288
+ ordering?: string;
283
289
  pageNumber?: number;
284
290
  pageSize?: number;
285
291
  pageToken?: string;
@@ -97,6 +97,7 @@ WorkerList = function WorkerList(version, workspaceSid) {
97
97
  * The friendly_name of the TaskQueue that the Workers to read are eligible for
98
98
  * @param {string} [opts.taskQueueSid] -
99
99
  * The SID of the TaskQueue that the Workers to read are eligible for
100
+ * @param {string} [opts.ordering] - Sorting parameter for Workers
100
101
  * @param {number} [opts.limit] -
101
102
  * Upper limit for the number of records to return.
102
103
  * each() guarantees never to return more than limit.
@@ -200,6 +201,7 @@ WorkerList = function WorkerList(version, workspaceSid) {
200
201
  * The friendly_name of the TaskQueue that the Workers to read are eligible for
201
202
  * @param {string} [opts.taskQueueSid] -
202
203
  * The SID of the TaskQueue that the Workers to read are eligible for
204
+ * @param {string} [opts.ordering] - Sorting parameter for Workers
203
205
  * @param {number} [opts.limit] -
204
206
  * Upper limit for the number of records to return.
205
207
  * list() guarantees never to return more than limit.
@@ -274,6 +276,7 @@ WorkerList = function WorkerList(version, workspaceSid) {
274
276
  * The friendly_name of the TaskQueue that the Workers to read are eligible for
275
277
  * @param {string} [opts.taskQueueSid] -
276
278
  * The SID of the TaskQueue that the Workers to read are eligible for
279
+ * @param {string} [opts.ordering] - Sorting parameter for Workers
277
280
  * @param {string} [opts.pageToken] - PageToken provided by the API
278
281
  * @param {number} [opts.pageNumber] -
279
282
  * Page Number, this value is simply for client state
@@ -299,6 +302,7 @@ WorkerList = function WorkerList(version, workspaceSid) {
299
302
  'TargetWorkersExpression': _.get(opts, 'targetWorkersExpression'),
300
303
  'TaskQueueName': _.get(opts, 'taskQueueName'),
301
304
  'TaskQueueSid': _.get(opts, 'taskQueueSid'),
305
+ 'Ordering': _.get(opts, 'ordering'),
302
306
  'PageToken': opts.pageToken,
303
307
  'Page': opts.pageNumber,
304
308
  'PageSize': opts.pageSize
@@ -70,7 +70,7 @@ interface VerificationListInstance {
70
70
  * @property rateLimits - The custom key-value pairs of Programmable Rate Limits.
71
71
  * @property sendDigits - The digits to send after a phone call is answered
72
72
  * @property templateCustomSubstitutions - The values of the special variables declared on the message template.
73
- * @property templateSid - The verification template SMS messages.
73
+ * @property templateSid - The verification template SMS or Voice message.
74
74
  * @property to - The phone number or email to verify
75
75
  */
76
76
  interface VerificationListInstanceCreateOptions {
@@ -81,7 +81,8 @@ VerificationList = function VerificationList(version, serviceSid) {
81
81
  * Channel specific configuration in json format.
82
82
  * @param {string} [opts.appHash] -
83
83
  * Your App Hash to be appended at the end of an SMS.
84
- * @param {string} [opts.templateSid] - The verification template SMS messages.
84
+ * @param {string} [opts.templateSid] -
85
+ * The verification template SMS or Voice message.
85
86
  * @param {string} [opts.templateCustomSubstitutions] -
86
87
  * The values of the special variables declared on the message template.
87
88
  * @param {function} [callback] - Callback to handle processed record
@@ -390,7 +390,7 @@ TemplatePage.prototype[util.inspect.custom] = function inspect(depth, options) {
390
390
  * @property {string} sid - A string that uniquely identifies this Template
391
391
  * @property {string} accountSid - Account Sid
392
392
  * @property {string} friendlyName - A string to describe the verification template
393
- * @property {string} channels - The channels
393
+ * @property {string} channels - A list of channels that support the Template
394
394
  * @property {object} translations - Object with the template translations.
395
395
  *
396
396
  * @param {V2} version - Version of the resource
@@ -227,7 +227,7 @@ declare namespace VoiceResponse {
227
227
 
228
228
  type GatherLanguage = 'af-ZA'|'am-ET'|'ar-AE'|'ar-BH'|'ar-DZ'|'ar-EG'|'ar-IL'|'ar-IQ'|'ar-JO'|'ar-KW'|'ar-LB'|'ar-MA'|'ar-OM'|'ar-PS'|'ar-QA'|'ar-SA'|'ar-TN'|'az-AZ'|'bg-BG'|'bn-BD'|'bn-IN'|'ca-ES'|'cs-CZ'|'da-DK'|'de-DE'|'el-GR'|'en-AU'|'en-CA'|'en-GB'|'en-GH'|'en-IE'|'en-IN'|'en-KE'|'en-NG'|'en-NZ'|'en-PH'|'en-SG'|'en-TZ'|'en-US'|'en-ZA'|'es-AR'|'es-BO'|'es-CL'|'es-CO'|'es-CR'|'es-DO'|'es-EC'|'es-ES'|'es-GT'|'es-HN'|'es-MX'|'es-NI'|'es-PA'|'es-PE'|'es-PR'|'es-PY'|'es-SV'|'es-US'|'es-UY'|'es-VE'|'et-EE'|'eu-ES'|'fa-IR'|'fi-FI'|'fil-PH'|'fr-CA'|'fr-FR'|'gl-ES'|'gu-IN'|'he-IL'|'hi-IN'|'hr-HR'|'hu-HU'|'hy-AM'|'id-ID'|'is-IS'|'it-IT'|'ja-JP'|'jv-ID'|'ka-GE'|'km-KH'|'kn-IN'|'ko-KR'|'lo-LA'|'lt-LT'|'lv-LV'|'mk-MK'|'ml-IN'|'mn-MN'|'mr-IN'|'ms-MY'|'my-MM'|'nar-IQ'|'nb-NO'|'ne-NP'|'nl-BE'|'nl-NL'|'pa-guru-IN'|'pl-PL'|'pt-BR'|'pt-PT'|'ro-RO'|'ru-RU'|'si-LK'|'sk-SK'|'sl-SI'|'sq-AL'|'sr-RS'|'su-ID'|'sv-SE'|'sw-KE'|'sw-TZ'|'ta-IN'|'ta-LK'|'ta-MY'|'ta-SG'|'te-IN'|'th-TH'|'tr-TR'|'uk-UA'|'ur-IN'|'ur-PK'|'uz-UZ'|'vi-VN'|'yue-Hant-HK'|'zh'|'cmn-Hans-CN'|'zh-TW'|'cmn-Hant-TW'|'zu-ZA';
229
229
 
230
- type GatherSpeechModel = 'default'|'numbers_and_commands'|'phone_call';
230
+ type GatherSpeechModel = 'default'|'numbers_and_commands'|'phone_call'|'experimental_conversations'|'experimental_utterances';
231
231
 
232
232
  type NumberEvent = 'initiated'|'ringing'|'answered'|'completed';
233
233
 
@@ -372,6 +372,7 @@ declare namespace VoiceResponse {
372
372
  *
373
373
  * @property inboundAutocreation - Inbound autocreation
374
374
  * @property inboundTimeout - Inbound timeout
375
+ * @property method - TwiML URL method
375
376
  * @property record - Record
376
377
  * @property recordingStatusCallback - Recording status callback URL
377
378
  * @property recordingStatusCallbackEvent - Recording status callback events
@@ -382,10 +383,12 @@ declare namespace VoiceResponse {
382
383
  * @property statusCallbackEvent - Events to call status callback URL
383
384
  * @property statusCallbackMethod - Status callback URL method
384
385
  * @property trim - Trim
386
+ * @property url - TwiML URL
385
387
  */
386
388
  export interface ConversationAttributes {
387
389
  inboundAutocreation?: boolean;
388
390
  inboundTimeout?: number;
391
+ method?: string;
389
392
  record?: ConversationRecord;
390
393
  recordingStatusCallback?: string;
391
394
  recordingStatusCallbackEvent?: ConversationRecordingEvent[];
@@ -396,6 +399,7 @@ declare namespace VoiceResponse {
396
399
  statusCallbackEvent?: ConversationEvent[];
397
400
  statusCallbackMethod?: string;
398
401
  trim?: ConversationTrim;
402
+ url?: string;
399
403
  }
400
404
 
401
405
  /**
@@ -4358,6 +4358,8 @@ Connect.prototype.virtualAgent = function virtualAgent(attributes) {
4358
4358
  * @param {number} [attributes.routingAssignmentTimeout] -
4359
4359
  * Routing assignment timeout
4360
4360
  * @param {number} [attributes.inboundTimeout] - Inbound timeout
4361
+ * @param {string} [attributes.url] - TwiML URL
4362
+ * @param {string} [attributes.method] - TwiML URL method
4361
4363
  * @param {conversation.record} [attributes.record] - Record
4362
4364
  * @param {conversation.trim} [attributes.trim] - Trim
4363
4365
  * @param {string} [attributes.recordingStatusCallback] -
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "twilio",
3
3
  "description": "A Twilio helper library",
4
- "version": "3.83.0",
4
+ "version": "3.83.2",
5
5
  "author": "API Team <api@twilio.com>",
6
6
  "contributors": [
7
7
  {