twilio 3.75.1 → 3.76.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 (64) hide show
  1. package/lib/rest/Chat.d.ts +4 -0
  2. package/lib/rest/Chat.js +19 -0
  3. package/lib/rest/FlexApi.d.ts +2 -0
  4. package/lib/rest/FlexApi.js +8 -0
  5. package/lib/rest/Insights.d.ts +2 -0
  6. package/lib/rest/Insights.js +8 -0
  7. package/lib/rest/Supersim.d.ts +0 -2
  8. package/lib/rest/Supersim.js +0 -8
  9. package/lib/rest/api/v2010/account/call/payment.d.ts +1 -1
  10. package/lib/rest/api/v2010/account/call/payment.js +1 -1
  11. package/lib/rest/api/v2010/account/call/stream.d.ts +2 -8
  12. package/lib/rest/api/v2010/account/call/stream.js +8 -7
  13. package/lib/rest/api/v2010/account/usage/record/allTime.d.ts +1 -1
  14. package/lib/rest/api/v2010/account/usage/record/daily.d.ts +1 -1
  15. package/lib/rest/api/v2010/account/usage/record/lastMonth.d.ts +1 -1
  16. package/lib/rest/api/v2010/account/usage/record/monthly.d.ts +1 -1
  17. package/lib/rest/api/v2010/account/usage/record/thisMonth.d.ts +1 -1
  18. package/lib/rest/api/v2010/account/usage/record/today.d.ts +1 -1
  19. package/lib/rest/api/v2010/account/usage/record/yearly.d.ts +1 -1
  20. package/lib/rest/api/v2010/account/usage/record/yesterday.d.ts +1 -1
  21. package/lib/rest/api/v2010/account/usage/record.d.ts +1 -1
  22. package/lib/rest/api/v2010/account/usage/trigger.d.ts +1 -1
  23. package/lib/rest/chat/V3.d.ts +25 -0
  24. package/lib/rest/chat/V3.js +46 -0
  25. package/lib/rest/chat/v3/channel.d.ts +177 -0
  26. package/lib/rest/chat/v3/channel.js +373 -0
  27. package/lib/rest/flexApi/V1.d.ts +3 -0
  28. package/lib/rest/flexApi/V1.js +11 -0
  29. package/lib/rest/flexApi/v1/configuration.d.ts +2 -0
  30. package/lib/rest/flexApi/v1/configuration.js +3 -0
  31. package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelInvite.d.ts +266 -0
  32. package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelInvite.js +505 -0
  33. package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelParticipant.d.ts +323 -0
  34. package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelParticipant.js +674 -0
  35. package/lib/rest/flexApi/v1/interaction/interactionChannel.d.ts +327 -0
  36. package/lib/rest/flexApi/v1/interaction/interactionChannel.js +718 -0
  37. package/lib/rest/flexApi/v1/interaction.d.ts +152 -0
  38. package/lib/rest/flexApi/v1/interaction.js +395 -0
  39. package/lib/rest/insights/V1.d.ts +3 -0
  40. package/lib/rest/insights/V1.js +11 -0
  41. package/lib/rest/insights/v1/annotation.d.ts +188 -0
  42. package/lib/rest/insights/v1/annotation.js +406 -0
  43. package/lib/rest/media/v1/mediaProcessor.js +1 -1
  44. package/lib/rest/media/v1/mediaRecording.d.ts +12 -0
  45. package/lib/rest/media/v1/mediaRecording.js +8 -0
  46. package/lib/rest/media/v1/playerStreamer.d.ts +4 -0
  47. package/lib/rest/media/v1/playerStreamer.js +5 -1
  48. package/lib/rest/supersim/V1.d.ts +0 -3
  49. package/lib/rest/supersim/V1.js +0 -11
  50. package/lib/rest/supersim/v1/fleet.d.ts +0 -16
  51. package/lib/rest/supersim/v1/fleet.js +0 -18
  52. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueCumulativeStatistics.d.ts +1 -1
  53. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueCumulativeStatistics.js +2 -2
  54. package/lib/rest/taskrouter/v1/workspace/workflow/workflowCumulativeStatistics.d.ts +1 -1
  55. package/lib/rest/taskrouter/v1/workspace/workflow/workflowCumulativeStatistics.js +2 -2
  56. package/lib/rest/taskrouter/v1/workspace/workspaceCumulativeStatistics.d.ts +1 -1
  57. package/lib/rest/taskrouter/v1/workspace/workspaceCumulativeStatistics.js +2 -2
  58. package/lib/rest/video/v1/composition.d.ts +4 -0
  59. package/lib/rest/video/v1/composition.js +6 -0
  60. package/lib/rest/video/v1/recording.d.ts +4 -0
  61. package/lib/rest/video/v1/recording.js +6 -0
  62. package/package.json +3 -3
  63. package/lib/rest/supersim/v1/command.d.ts +0 -342
  64. package/lib/rest/supersim/v1/command.js +0 -652
@@ -165,11 +165,13 @@ interface PlayerStreamerListInstance {
165
165
  /**
166
166
  * Options to pass to create
167
167
  *
168
+ * @property maxDuration - Maximum PlayerStreamer duration in seconds
168
169
  * @property statusCallback - The URL to which Twilio will send PlayerStreamer event updates
169
170
  * @property statusCallbackMethod - The HTTP method Twilio should use to call the `status_callback` URL
170
171
  * @property video - Whether the PlayerStreamer is configured to stream video
171
172
  */
172
173
  interface PlayerStreamerListInstanceCreateOptions {
174
+ maxDuration?: number;
173
175
  statusCallback?: string;
174
176
  statusCallbackMethod?: string;
175
177
  video?: boolean;
@@ -253,6 +255,7 @@ interface PlayerStreamerResource {
253
255
  date_updated: Date;
254
256
  ended_reason: PlayerStreamerEndedReason;
255
257
  links: string;
258
+ max_duration: number;
256
259
  sid: string;
257
260
  status: PlayerStreamerStatus;
258
261
  status_callback: string;
@@ -317,6 +320,7 @@ declare class PlayerStreamerInstance extends SerializableClass {
317
320
  */
318
321
  fetch(callback?: (error: Error | null, items: PlayerStreamerInstance) => any): Promise<PlayerStreamerInstance>;
319
322
  links: string;
323
+ maxDuration: number;
320
324
  /**
321
325
  * Access the playbackGrant
322
326
  */
@@ -67,6 +67,7 @@ PlayerStreamerList = function PlayerStreamerList(version) {
67
67
  * The URL to which Twilio will send PlayerStreamer event updates
68
68
  * @param {string} [opts.statusCallbackMethod] -
69
69
  * The HTTP method Twilio should use to call the `status_callback` URL
70
+ * @param {number} [opts.maxDuration] - Maximum PlayerStreamer duration in seconds
70
71
  * @param {function} [callback] - Callback to handle processed record
71
72
  *
72
73
  * @returns {Promise} Resolves to processed PlayerStreamerInstance
@@ -83,7 +84,8 @@ PlayerStreamerList = function PlayerStreamerList(version) {
83
84
  var data = values.of({
84
85
  'Video': serialize.bool(_.get(opts, 'video')),
85
86
  'StatusCallback': _.get(opts, 'statusCallback'),
86
- 'StatusCallbackMethod': _.get(opts, 'statusCallbackMethod')
87
+ 'StatusCallbackMethod': _.get(opts, 'statusCallbackMethod'),
88
+ 'MaxDuration': _.get(opts, 'maxDuration')
87
89
  });
88
90
 
89
91
  var promise = this._version.create({uri: this._uri, method: 'POST', data: data});
@@ -482,6 +484,7 @@ PlayerStreamerPage.prototype[util.inspect.custom] = function inspect(depth,
482
484
  * The HTTP method Twilio should use to call the `status_callback` URL
483
485
  * @property {player_streamer.ended_reason} endedReason -
484
486
  * The reason why a PlayerStreamer ended
487
+ * @property {number} maxDuration - Maximum PlayerStreamer duration in seconds
485
488
  *
486
489
  * @param {V1} version - Version of the resource
487
490
  * @param {PlayerStreamerPayload} payload - The instance payload
@@ -504,6 +507,7 @@ PlayerStreamerInstance = function PlayerStreamerInstance(version, payload, sid)
504
507
  this.statusCallback = payload.status_callback; // jshint ignore:line
505
508
  this.statusCallbackMethod = payload.status_callback_method; // jshint ignore:line
506
509
  this.endedReason = payload.ended_reason; // jshint ignore:line
510
+ this.maxDuration = deserialize.integer(payload.max_duration); // jshint ignore:line
507
511
 
508
512
  // Context
509
513
  this._context = undefined;
@@ -7,8 +7,6 @@
7
7
 
8
8
  import Supersim = require('../Supersim');
9
9
  import Version = require('../../base/Version');
10
- import { CommandList } from './v1/command';
11
- import { CommandListInstance } from './v1/command';
12
10
  import { EsimProfileList } from './v1/esimProfile';
13
11
  import { EsimProfileListInstance } from './v1/esimProfile';
14
12
  import { FleetList } from './v1/fleet';
@@ -35,7 +33,6 @@ declare class V1 extends Version {
35
33
  */
36
34
  constructor(domain: Supersim);
37
35
 
38
- readonly commands: CommandListInstance;
39
36
  readonly esimProfiles: EsimProfileListInstance;
40
37
  readonly fleets: FleetListInstance;
41
38
  readonly ipCommands: IpCommandListInstance;
@@ -10,7 +10,6 @@
10
10
  /* jshint ignore:end */
11
11
 
12
12
  var _ = require('lodash'); /* jshint ignore:line */
13
- var CommandList = require('./v1/command').CommandList;
14
13
  var EsimProfileList = require('./v1/esimProfile').EsimProfileList;
15
14
  var FleetList = require('./v1/fleet').FleetList;
16
15
  var IpCommandList = require('./v1/ipCommand').IpCommandList;
@@ -29,7 +28,6 @@ var Version = require('../../base/Version'); /* jshint ignore:line */
29
28
  *
30
29
  * @constructor Twilio.Supersim.V1
31
30
  *
32
- * @property {Twilio.Supersim.V1.CommandList} commands - commands resource
33
31
  * @property {Twilio.Supersim.V1.EsimProfileList} esimProfiles -
34
32
  * esimProfiles resource
35
33
  * @property {Twilio.Supersim.V1.FleetList} fleets - fleets resource
@@ -49,7 +47,6 @@ function V1(domain) {
49
47
  Version.prototype.constructor.call(this, domain, 'v1');
50
48
 
51
49
  // Resources
52
- this._commands = undefined;
53
50
  this._esimProfiles = undefined;
54
51
  this._fleets = undefined;
55
52
  this._ipCommands = undefined;
@@ -63,14 +60,6 @@ function V1(domain) {
63
60
  _.extend(V1.prototype, Version.prototype);
64
61
  V1.prototype.constructor = V1;
65
62
 
66
- Object.defineProperty(V1.prototype,
67
- 'commands', {
68
- get: function() {
69
- this._commands = this._commands || new CommandList(this);
70
- return this._commands;
71
- }
72
- });
73
-
74
63
  Object.defineProperty(V1.prototype,
75
64
  'esimProfiles', {
76
65
  get: function() {
@@ -25,8 +25,6 @@ declare function FleetList(version: V1): FleetListInstance;
25
25
  /**
26
26
  * Options to pass to update
27
27
  *
28
- * @property commandsMethod - Deprecated
29
- * @property commandsUrl - Deprecated
30
28
  * @property ipCommandsMethod - A string representing the HTTP method to use when making a request to `ip_commands_url`
31
29
  * @property ipCommandsUrl - The URL that will receive a webhook when a Super SIM in the Fleet is used to send an IP Command from your device
32
30
  * @property networkAccessProfile - The SID or unique name of the Network Access Profile of the Fleet
@@ -35,8 +33,6 @@ declare function FleetList(version: V1): FleetListInstance;
35
33
  * @property uniqueName - An application-defined string that uniquely identifies the resource
36
34
  */
37
35
  interface FleetInstanceUpdateOptions {
38
- commandsMethod?: string;
39
- commandsUrl?: string;
40
36
  ipCommandsMethod?: string;
41
37
  ipCommandsUrl?: string;
42
38
  networkAccessProfile?: string;
@@ -168,9 +164,6 @@ interface FleetListInstance {
168
164
  /**
169
165
  * Options to pass to create
170
166
  *
171
- * @property commandsEnabled - Deprecated
172
- * @property commandsMethod - Deprecated
173
- * @property commandsUrl - Deprecated
174
167
  * @property dataEnabled - Defines whether SIMs in the Fleet are capable of using data connectivity
175
168
  * @property dataLimit - The total data usage (download and upload combined) in Megabytes that each Sim resource assigned to the Fleet resource can consume
176
169
  * @property ipCommandsMethod - A string representing the HTTP method to use when making a request to `ip_commands_url`
@@ -182,9 +175,6 @@ interface FleetListInstance {
182
175
  * @property uniqueName - An application-defined string that uniquely identifies the resource
183
176
  */
184
177
  interface FleetListInstanceCreateOptions {
185
- commandsEnabled?: boolean;
186
- commandsMethod?: string;
187
- commandsUrl?: string;
188
178
  dataEnabled?: boolean;
189
179
  dataLimit?: number;
190
180
  ipCommandsMethod?: string;
@@ -264,9 +254,6 @@ interface FleetPayload extends FleetResource, Page.TwilioResponsePayload {
264
254
 
265
255
  interface FleetResource {
266
256
  account_sid: string;
267
- commands_enabled: boolean;
268
- commands_method: string;
269
- commands_url: string;
270
257
  data_enabled: boolean;
271
258
  data_limit: number;
272
259
  data_metering: FleetDataMetering;
@@ -340,9 +327,6 @@ declare class FleetInstance extends SerializableClass {
340
327
 
341
328
  private _proxy: FleetContext;
342
329
  accountSid: string;
343
- commandsEnabled: boolean;
344
- commandsMethod: string;
345
- commandsUrl: string;
346
330
  dataEnabled: boolean;
347
331
  dataLimit: number;
348
332
  dataMetering: FleetDataMetering;
@@ -70,9 +70,6 @@ FleetList = function FleetList(version) {
70
70
  * Defines whether SIMs in the Fleet are capable of using data connectivity
71
71
  * @param {number} [opts.dataLimit] -
72
72
  * The total data usage (download and upload combined) in Megabytes that each Sim resource assigned to the Fleet resource can consume
73
- * @param {boolean} [opts.commandsEnabled] - Deprecated
74
- * @param {string} [opts.commandsUrl] - Deprecated
75
- * @param {string} [opts.commandsMethod] - Deprecated
76
73
  * @param {string} [opts.ipCommandsUrl] -
77
74
  * The URL that will receive a webhook when a Super SIM in the Fleet is used to send an IP Command from your device
78
75
  * @param {string} [opts.ipCommandsMethod] -
@@ -102,9 +99,6 @@ FleetList = function FleetList(version) {
102
99
  'UniqueName': _.get(opts, 'uniqueName'),
103
100
  'DataEnabled': serialize.bool(_.get(opts, 'dataEnabled')),
104
101
  'DataLimit': _.get(opts, 'dataLimit'),
105
- 'CommandsEnabled': serialize.bool(_.get(opts, 'commandsEnabled')),
106
- 'CommandsUrl': _.get(opts, 'commandsUrl'),
107
- 'CommandsMethod': _.get(opts, 'commandsMethod'),
108
102
  'IpCommandsUrl': _.get(opts, 'ipCommandsUrl'),
109
103
  'IpCommandsMethod': _.get(opts, 'ipCommandsMethod'),
110
104
  'SmsCommandsEnabled': serialize.bool(_.get(opts, 'smsCommandsEnabled')),
@@ -509,9 +503,6 @@ FleetPage.prototype[util.inspect.custom] = function inspect(depth, options) {
509
503
  * The total data usage (download and upload combined) in Megabytes that each Sim resource assigned to the Fleet resource can consume
510
504
  * @property {fleet.data_metering} dataMetering -
511
505
  * The model by which a SIM is metered and billed
512
- * @property {boolean} commandsEnabled - Deprecated
513
- * @property {string} commandsUrl - Deprecated
514
- * @property {string} commandsMethod - Deprecated
515
506
  * @property {boolean} smsCommandsEnabled -
516
507
  * Defines whether SIMs in the Fleet are capable of sending and receiving machine-to-machine SMS via Commands
517
508
  * @property {string} smsCommandsUrl -
@@ -543,9 +534,6 @@ FleetInstance = function FleetInstance(version, payload, sid) {
543
534
  this.dataEnabled = payload.data_enabled; // jshint ignore:line
544
535
  this.dataLimit = deserialize.integer(payload.data_limit); // jshint ignore:line
545
536
  this.dataMetering = payload.data_metering; // jshint ignore:line
546
- this.commandsEnabled = payload.commands_enabled; // jshint ignore:line
547
- this.commandsUrl = payload.commands_url; // jshint ignore:line
548
- this.commandsMethod = payload.commands_method; // jshint ignore:line
549
537
  this.smsCommandsEnabled = payload.sms_commands_enabled; // jshint ignore:line
550
538
  this.smsCommandsUrl = payload.sms_commands_url; // jshint ignore:line
551
539
  this.smsCommandsMethod = payload.sms_commands_method; // jshint ignore:line
@@ -597,8 +585,6 @@ FleetInstance.prototype.fetch = function fetch(callback) {
597
585
  * An application-defined string that uniquely identifies the resource
598
586
  * @param {string} [opts.networkAccessProfile] -
599
587
  * The SID or unique name of the Network Access Profile of the Fleet
600
- * @param {string} [opts.commandsUrl] - Deprecated
601
- * @param {string} [opts.commandsMethod] - Deprecated
602
588
  * @param {string} [opts.ipCommandsUrl] -
603
589
  * The URL that will receive a webhook when a Super SIM in the Fleet is used to send an IP Command from your device
604
590
  * @param {string} [opts.ipCommandsMethod] -
@@ -706,8 +692,6 @@ FleetContext.prototype.fetch = function fetch(callback) {
706
692
  * An application-defined string that uniquely identifies the resource
707
693
  * @param {string} [opts.networkAccessProfile] -
708
694
  * The SID or unique name of the Network Access Profile of the Fleet
709
- * @param {string} [opts.commandsUrl] - Deprecated
710
- * @param {string} [opts.commandsMethod] - Deprecated
711
695
  * @param {string} [opts.ipCommandsUrl] -
712
696
  * The URL that will receive a webhook when a Super SIM in the Fleet is used to send an IP Command from your device
713
697
  * @param {string} [opts.ipCommandsMethod] -
@@ -732,8 +716,6 @@ FleetContext.prototype.update = function update(opts, callback) {
732
716
  var data = values.of({
733
717
  'UniqueName': _.get(opts, 'uniqueName'),
734
718
  'NetworkAccessProfile': _.get(opts, 'networkAccessProfile'),
735
- 'CommandsUrl': _.get(opts, 'commandsUrl'),
736
- 'CommandsMethod': _.get(opts, 'commandsMethod'),
737
719
  'IpCommandsUrl': _.get(opts, 'ipCommandsUrl'),
738
720
  'IpCommandsMethod': _.get(opts, 'ipCommandsMethod'),
739
721
  'SmsCommandsUrl': _.get(opts, 'smsCommandsUrl'),
@@ -24,7 +24,7 @@ declare function TaskQueueCumulativeStatisticsList(version: V1, workspaceSid: st
24
24
  *
25
25
  * @property endDate - Only calculate statistics from on or before this date
26
26
  * @property minutes - Only calculate statistics since this many minutes in the past
27
- * @property splitByWaitTime - A comma separated list of values that describes the thresholds to calculate statistics on
27
+ * @property splitByWaitTime - A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on
28
28
  * @property startDate - Only calculate statistics from on or after this date
29
29
  * @property taskChannel - Only calculate cumulative statistics on this TaskChannel
30
30
  */
@@ -295,7 +295,7 @@ Object.defineProperty(TaskQueueCumulativeStatisticsInstance.prototype,
295
295
  * @param {string} [opts.taskChannel] -
296
296
  * Only calculate cumulative statistics on this TaskChannel
297
297
  * @param {string} [opts.splitByWaitTime] -
298
- * A comma separated list of values that describes the thresholds to calculate statistics on
298
+ * A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on
299
299
  * @param {function} [callback] - Callback to handle processed record
300
300
  *
301
301
  * @returns {Promise} Resolves to processed TaskQueueCumulativeStatisticsInstance
@@ -370,7 +370,7 @@ TaskQueueCumulativeStatisticsContext = function
370
370
  * @param {string} [opts.taskChannel] -
371
371
  * Only calculate cumulative statistics on this TaskChannel
372
372
  * @param {string} [opts.splitByWaitTime] -
373
- * A comma separated list of values that describes the thresholds to calculate statistics on
373
+ * A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on
374
374
  * @param {function} [callback] - Callback to handle processed record
375
375
  *
376
376
  * @returns {Promise} Resolves to processed TaskQueueCumulativeStatisticsInstance
@@ -24,7 +24,7 @@ declare function WorkflowCumulativeStatisticsList(version: V1, workspaceSid: str
24
24
  *
25
25
  * @property endDate - Only include usage that occurred on or before this date
26
26
  * @property minutes - Only calculate statistics since this many minutes in the past
27
- * @property splitByWaitTime - A comma separated list of values that describes the thresholds to calculate statistics on
27
+ * @property splitByWaitTime - A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on
28
28
  * @property startDate - Only calculate statistics from on or after this date
29
29
  * @property taskChannel - Only calculate cumulative statistics on this TaskChannel
30
30
  */
@@ -293,7 +293,7 @@ Object.defineProperty(WorkflowCumulativeStatisticsInstance.prototype,
293
293
  * @param {string} [opts.taskChannel] -
294
294
  * Only calculate cumulative statistics on this TaskChannel
295
295
  * @param {string} [opts.splitByWaitTime] -
296
- * A comma separated list of values that describes the thresholds to calculate statistics on
296
+ * A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on
297
297
  * @param {function} [callback] - Callback to handle processed record
298
298
  *
299
299
  * @returns {Promise} Resolves to processed WorkflowCumulativeStatisticsInstance
@@ -368,7 +368,7 @@ WorkflowCumulativeStatisticsContext = function
368
368
  * @param {string} [opts.taskChannel] -
369
369
  * Only calculate cumulative statistics on this TaskChannel
370
370
  * @param {string} [opts.splitByWaitTime] -
371
- * A comma separated list of values that describes the thresholds to calculate statistics on
371
+ * A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on
372
372
  * @param {function} [callback] - Callback to handle processed record
373
373
  *
374
374
  * @returns {Promise} Resolves to processed WorkflowCumulativeStatisticsInstance
@@ -23,7 +23,7 @@ declare function WorkspaceCumulativeStatisticsList(version: V1, workspaceSid: st
23
23
  *
24
24
  * @property endDate - Only include usage that occurred on or before this date
25
25
  * @property minutes - Only calculate statistics since this many minutes in the past
26
- * @property splitByWaitTime - A comma separated list of values that describes the thresholds to calculate statistics on
26
+ * @property splitByWaitTime - A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on
27
27
  * @property startDate - Only calculate statistics from on or after this date
28
28
  * @property taskChannel - Only calculate cumulative statistics on this TaskChannel
29
29
  */
@@ -272,7 +272,7 @@ Object.defineProperty(WorkspaceCumulativeStatisticsInstance.prototype,
272
272
  * @param {string} [opts.taskChannel] -
273
273
  * Only calculate cumulative statistics on this TaskChannel
274
274
  * @param {string} [opts.splitByWaitTime] -
275
- * A comma separated list of values that describes the thresholds to calculate statistics on
275
+ * A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on
276
276
  * @param {function} [callback] - Callback to handle processed record
277
277
  *
278
278
  * @returns {Promise} Resolves to processed WorkspaceCumulativeStatisticsInstance
@@ -345,7 +345,7 @@ WorkspaceCumulativeStatisticsContext = function
345
345
  * @param {string} [opts.taskChannel] -
346
346
  * Only calculate cumulative statistics on this TaskChannel
347
347
  * @param {string} [opts.splitByWaitTime] -
348
- * A comma separated list of values that describes the thresholds to calculate statistics on
348
+ * A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on
349
349
  * @param {function} [callback] - Callback to handle processed record
350
350
  *
351
351
  * @returns {Promise} Resolves to processed WorkspaceCumulativeStatisticsInstance
@@ -267,6 +267,8 @@ interface CompositionResource {
267
267
  sid: string;
268
268
  size: number;
269
269
  status: CompositionStatus;
270
+ status_callback: string;
271
+ status_callback_method: string;
270
272
  trim: boolean;
271
273
  url: string;
272
274
  video_layout: object;
@@ -343,6 +345,8 @@ declare class CompositionInstance extends SerializableClass {
343
345
  sid: string;
344
346
  size: number;
345
347
  status: CompositionStatus;
348
+ statusCallback: string;
349
+ statusCallbackMethod: string;
346
350
  /**
347
351
  * Provide a user-friendly representation
348
352
  */
@@ -529,6 +529,10 @@ CompositionPage.prototype[util.inspect.custom] = function inspect(depth,
529
529
  * The duration of the composition's media file in seconds
530
530
  * @property {string} mediaExternalLocation -
531
531
  * The URL of the media file associated with the composition when stored externally
532
+ * @property {string} statusCallback -
533
+ * The URL called to send status information on every composition event.
534
+ * @property {string} statusCallbackMethod -
535
+ * The HTTP method used to call `status_callback`
532
536
  * @property {string} url - The absolute URL of the resource
533
537
  * @property {string} links -
534
538
  * The URL of the media file associated with the composition
@@ -559,6 +563,8 @@ CompositionInstance = function CompositionInstance(version, payload, sid) {
559
563
  this.size = deserialize.integer(payload.size); // jshint ignore:line
560
564
  this.duration = deserialize.integer(payload.duration); // jshint ignore:line
561
565
  this.mediaExternalLocation = payload.media_external_location; // jshint ignore:line
566
+ this.statusCallback = payload.status_callback; // jshint ignore:line
567
+ this.statusCallbackMethod = payload.status_callback_method; // jshint ignore:line
562
568
  this.url = payload.url; // jshint ignore:line
563
569
  this.links = payload.links; // jshint ignore:line
564
570
 
@@ -248,6 +248,8 @@ interface RecordingResource {
248
248
  size: number;
249
249
  source_sid: string;
250
250
  status: RecordingStatus;
251
+ status_callback: string;
252
+ status_callback_method: string;
251
253
  track_name: string;
252
254
  type: RecordingType;
253
255
  url: string;
@@ -321,6 +323,8 @@ declare class RecordingInstance extends SerializableClass {
321
323
  size: number;
322
324
  sourceSid: string;
323
325
  status: RecordingStatus;
326
+ statusCallback: string;
327
+ statusCallbackMethod: string;
324
328
  /**
325
329
  * Provide a user-friendly representation
326
330
  */
@@ -465,6 +465,10 @@ RecordingPage.prototype[util.inspect.custom] = function inspect(depth, options)
465
465
  * The number of milliseconds between a point in time that is common to all rooms in a group and when the source room of the recording started
466
466
  * @property {string} mediaExternalLocation -
467
467
  * The URL of the media file associated with the recording when stored externally
468
+ * @property {string} statusCallback -
469
+ * The URL called to send status information on every recording event.
470
+ * @property {string} statusCallbackMethod -
471
+ * The HTTP method used to call `status_callback`
468
472
  * @property {string} links - The URLs of related resources
469
473
  *
470
474
  * @param {V1} version - Version of the resource
@@ -491,6 +495,8 @@ RecordingInstance = function RecordingInstance(version, payload, sid) {
491
495
  this.trackName = payload.track_name; // jshint ignore:line
492
496
  this.offset = deserialize.integer(payload.offset); // jshint ignore:line
493
497
  this.mediaExternalLocation = payload.media_external_location; // jshint ignore:line
498
+ this.statusCallback = payload.status_callback; // jshint ignore:line
499
+ this.statusCallbackMethod = payload.status_callback_method; // jshint ignore:line
494
500
  this.links = payload.links; // jshint ignore:line
495
501
 
496
502
  // Context
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "twilio",
3
3
  "description": "A Twilio helper library",
4
- "version": "3.75.1",
4
+ "version": "3.76.0",
5
5
  "author": "API Team <api@twilio.com>",
6
6
  "contributors": [
7
7
  {
@@ -20,7 +20,7 @@
20
20
  "url": "https://github.com/twilio/twilio-node.git"
21
21
  },
22
22
  "dependencies": {
23
- "axios": "^0.25.0",
23
+ "axios": "^0.26.1",
24
24
  "dayjs": "^1.8.29",
25
25
  "https-proxy-agent": "^5.0.0",
26
26
  "jsonwebtoken": "^8.5.1",
@@ -29,7 +29,7 @@
29
29
  "qs": "^6.9.4",
30
30
  "rootpath": "^0.1.2",
31
31
  "scmp": "^2.1.0",
32
- "url-parse": "^1.5.6",
32
+ "url-parse": "^1.5.9",
33
33
  "xmlbuilder": "^13.0.2"
34
34
  },
35
35
  "devDependencies": {