twilio 3.69.0 → 3.71.3

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 (68) hide show
  1. package/CHANGES.md +96 -0
  2. package/README.md +1 -1
  3. package/lib/jwt/AccessToken.d.ts +16 -0
  4. package/lib/jwt/AccessToken.js +20 -0
  5. package/lib/jwt/ClientCapability.d.ts +1 -1
  6. package/lib/rest/Media.d.ts +28 -0
  7. package/lib/rest/Media.js +64 -0
  8. package/lib/rest/Supersim.d.ts +2 -0
  9. package/lib/rest/Supersim.js +8 -0
  10. package/lib/rest/Twilio.d.ts +2 -0
  11. package/lib/rest/Twilio.js +14 -0
  12. package/lib/rest/api/v2010/account/call.d.ts +1 -1
  13. package/lib/rest/api/v2010/account/call.js +1 -1
  14. package/lib/rest/api/v2010/account/incomingPhoneNumber/local.d.ts +5 -1
  15. package/lib/rest/api/v2010/account/incomingPhoneNumber/local.js +3 -0
  16. package/lib/rest/api/v2010/account/incomingPhoneNumber/mobile.d.ts +5 -1
  17. package/lib/rest/api/v2010/account/incomingPhoneNumber/mobile.js +3 -0
  18. package/lib/rest/api/v2010/account/incomingPhoneNumber/tollFree.d.ts +5 -1
  19. package/lib/rest/api/v2010/account/incomingPhoneNumber/tollFree.js +3 -0
  20. package/lib/rest/api/v2010/account/incomingPhoneNumber.d.ts +5 -1
  21. package/lib/rest/api/v2010/account/incomingPhoneNumber.js +3 -0
  22. package/lib/rest/conversations/v1/service/configuration/webhook.d.ts +172 -0
  23. package/lib/rest/conversations/v1/service/configuration/webhook.js +399 -0
  24. package/lib/rest/conversations/v1/service/configuration.d.ts +2 -0
  25. package/lib/rest/conversations/v1/service/configuration.js +13 -0
  26. package/lib/rest/flexApi/v1/configuration.d.ts +4 -0
  27. package/lib/rest/flexApi/v1/configuration.js +5 -0
  28. package/lib/rest/frontlineApi/v1/user.d.ts +4 -0
  29. package/lib/rest/frontlineApi/v1/user.js +10 -1
  30. package/lib/rest/media/V1.d.ts +28 -0
  31. package/lib/rest/media/V1.js +59 -0
  32. package/lib/rest/media/v1/mediaProcessor.d.ts +355 -0
  33. package/lib/rest/media/v1/mediaProcessor.js +702 -0
  34. package/lib/rest/media/v1/playerStreamer/playbackGrant.d.ts +162 -0
  35. package/lib/rest/media/v1/playerStreamer/playbackGrant.js +384 -0
  36. package/lib/rest/media/v1/playerStreamer.d.ts +366 -0
  37. package/lib/rest/media/v1/playerStreamer.js +729 -0
  38. package/lib/rest/messaging/v1/brandRegistration/brandVetting.d.ts +330 -0
  39. package/lib/rest/messaging/v1/brandRegistration/brandVetting.js +655 -0
  40. package/lib/rest/messaging/v1/brandRegistration.d.ts +15 -2
  41. package/lib/rest/messaging/v1/brandRegistration.js +37 -1
  42. package/lib/rest/messaging/v1/service.d.ts +8 -0
  43. package/lib/rest/messaging/v1/service.js +14 -0
  44. package/lib/rest/serverless/v1/service/build.d.ts +1 -1
  45. package/lib/rest/supersim/V1.d.ts +3 -0
  46. package/lib/rest/supersim/V1.js +11 -0
  47. package/lib/rest/supersim/v1/ipCommand.d.ts +362 -0
  48. package/lib/rest/supersim/v1/ipCommand.js +679 -0
  49. package/lib/rest/verify/v2/service/accessToken.d.ts +2 -0
  50. package/lib/rest/verify/v2/service/accessToken.js +3 -1
  51. package/lib/rest/verify/v2/service/entity/factor.d.ts +4 -2
  52. package/lib/rest/verify/v2/service/entity/factor.js +8 -3
  53. package/lib/rest/verify/v2/service/entity/newFactor.d.ts +2 -2
  54. package/lib/rest/verify/v2/service/entity/newFactor.js +1 -1
  55. package/lib/rest/verify/v2/service/verification.d.ts +4 -0
  56. package/lib/rest/verify/v2/service/verification.js +6 -1
  57. package/lib/rest/verify/v2/service.d.ts +6 -0
  58. package/lib/rest/verify/v2/service.js +12 -2
  59. package/lib/rest/verify/v2/verificationAttempt.d.ts +1 -1
  60. package/lib/rest/video/v1/room.d.ts +8 -0
  61. package/lib/rest/video/v1/room.js +13 -1
  62. package/lib/rest/wireless/v1/ratePlan.d.ts +1 -1
  63. package/lib/rest/wireless/v1/ratePlan.js +3 -3
  64. package/lib/rest/wireless/v1/sim.d.ts +4 -4
  65. package/lib/rest/wireless/v1/sim.js +18 -24
  66. package/lib/twiml/VoiceResponse.d.ts +1296 -24
  67. package/lib/twiml/VoiceResponse.js +2170 -82
  68. package/package.json +2 -2
@@ -14,7 +14,7 @@ type FactorFactorStatuses = 'unverified'|'verified';
14
14
 
15
15
  type FactorFactorTypes = 'push'|'totp';
16
16
 
17
- type FactorNotificationPlatforms = 'apn'|'fcm';
17
+ type FactorNotificationPlatforms = 'apn'|'fcm'|'none';
18
18
 
19
19
  type FactorTotpAlgorithms = 'sha1'|'sha256'|'sha512';
20
20
 
@@ -36,7 +36,8 @@ declare function FactorList(version: V2, serviceSid: string, identity: string):
36
36
  * @property authPayload - Optional payload to verify the Factor for the first time
37
37
  * @property config.alg - The algorithm used to derive the TOTP codes
38
38
  * @property config.codeLength - Number of digits for generated TOTP codes
39
- * @property config.notificationToken - For APN, the device token. For FCM the registration token
39
+ * @property config.notificationPlatform - The transport technology used to generate the Notification Token
40
+ * @property config.notificationToken - For APN, the device token. For FCM, the registration token
40
41
  * @property config.sdkVersion - The Verify Push SDK version used to configure the factor
41
42
  * @property config.skew - The number of past and future time-steps valid at a given time
42
43
  * @property config.timeStep - How often, in seconds, are TOTP codes generated
@@ -51,6 +52,7 @@ interface FactorInstanceUpdateOptions {
51
52
  skew?: number;
52
53
  codeLength?: number;
53
54
  alg?: FactorTotpAlgorithms;
55
+ notificationPlatform?: string;
54
56
  };
55
57
  friendlyName?: string;
56
58
  }
@@ -519,7 +519,7 @@ FactorInstance.prototype.fetch = function fetch(callback) {
519
519
  * Optional payload to verify the Factor for the first time
520
520
  * @param {string} [opts.friendlyName] - The friendly name of this Factor
521
521
  * @param {string} [opts.config.notificationToken] -
522
- * For APN, the device token. For FCM the registration token
522
+ * For APN, the device token. For FCM, the registration token
523
523
  * @param {string} [opts.config.sdkVersion] -
524
524
  * The Verify Push SDK version used to configure the factor
525
525
  * @param {number} [opts.config.timeStep] -
@@ -530,6 +530,8 @@ FactorInstance.prototype.fetch = function fetch(callback) {
530
530
  * Number of digits for generated TOTP codes
531
531
  * @param {factor.totp_algorithms} [opts.config.alg] -
532
532
  * The algorithm used to derive the TOTP codes
533
+ * @param {string} [opts.config.notificationPlatform] -
534
+ * The transport technology used to generate the Notification Token
533
535
  * @param {function} [callback] - Callback to handle processed record
534
536
  *
535
537
  * @returns {Promise} Resolves to processed FactorInstance
@@ -668,7 +670,7 @@ FactorContext.prototype.fetch = function fetch(callback) {
668
670
  * Optional payload to verify the Factor for the first time
669
671
  * @param {string} [opts.friendlyName] - The friendly name of this Factor
670
672
  * @param {string} [opts.config.notificationToken] -
671
- * For APN, the device token. For FCM the registration token
673
+ * For APN, the device token. For FCM, the registration token
672
674
  * @param {string} [opts.config.sdkVersion] -
673
675
  * The Verify Push SDK version used to configure the factor
674
676
  * @param {number} [opts.config.timeStep] -
@@ -679,6 +681,8 @@ FactorContext.prototype.fetch = function fetch(callback) {
679
681
  * Number of digits for generated TOTP codes
680
682
  * @param {factor.totp_algorithms} [opts.config.alg] -
681
683
  * The algorithm used to derive the TOTP codes
684
+ * @param {string} [opts.config.notificationPlatform] -
685
+ * The transport technology used to generate the Notification Token
682
686
  * @param {function} [callback] - Callback to handle processed record
683
687
  *
684
688
  * @returns {Promise} Resolves to processed FactorInstance
@@ -700,7 +704,8 @@ FactorContext.prototype.update = function update(opts, callback) {
700
704
  'Config.TimeStep': _.get(opts, 'config.timeStep'),
701
705
  'Config.Skew': _.get(opts, 'config.skew'),
702
706
  'Config.CodeLength': _.get(opts, 'config.codeLength'),
703
- 'Config.Alg': _.get(opts, 'config.alg')
707
+ 'Config.Alg': _.get(opts, 'config.alg'),
708
+ 'Config.NotificationPlatform': _.get(opts, 'config.notificationPlatform')
704
709
  });
705
710
 
706
711
  var promise = this._version.update({uri: this._uri, method: 'POST', data: data});
@@ -14,7 +14,7 @@ type NewFactorFactorStatuses = 'unverified'|'verified';
14
14
 
15
15
  type NewFactorFactorTypes = 'push'|'totp';
16
16
 
17
- type NewFactorNotificationPlatforms = 'apn'|'fcm';
17
+ type NewFactorNotificationPlatforms = 'apn'|'fcm'|'none';
18
18
 
19
19
  type NewFactorTotpAlgorithms = 'sha1'|'sha256'|'sha512';
20
20
 
@@ -54,7 +54,7 @@ interface NewFactorListInstance {
54
54
  * @property config.appId - The ID that uniquely identifies your app in the Google or Apple store
55
55
  * @property config.codeLength - Number of digits for generated TOTP codes
56
56
  * @property config.notificationPlatform - The transport technology used to generate the Notification Token
57
- * @property config.notificationToken - For APN, the device token. For FCM the registration token
57
+ * @property config.notificationToken - For APN, the device token. For FCM, the registration token
58
58
  * @property config.sdkVersion - The Verify Push SDK version used to configure the factor
59
59
  * @property config.skew - The number of past and future time-steps valid at a given time
60
60
  * @property config.timeStep - How often, in seconds, are TOTP codes generated
@@ -72,7 +72,7 @@ NewFactorList = function NewFactorList(version, serviceSid, identity) {
72
72
  * @param {new_factor.notification_platforms} [opts.config.notificationPlatform] -
73
73
  * The transport technology used to generate the Notification Token
74
74
  * @param {string} [opts.config.notificationToken] -
75
- * For APN, the device token. For FCM the registration token
75
+ * For APN, the device token. For FCM, the registration token
76
76
  * @param {string} [opts.config.sdkVersion] -
77
77
  * The Verify Push SDK version used to configure the factor
78
78
  * @param {string} [opts.binding.secret] - The shared secret in Base32
@@ -69,6 +69,8 @@ interface VerificationListInstance {
69
69
  * @property payee - The payee of the associated PSD2 compliant transaction
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
+ * @property templateCustomSubstitutions - The values of the special variables declared on the message template.
73
+ * @property templateSid - The verification template SMS messages.
72
74
  * @property to - The phone number or email to verify
73
75
  */
74
76
  interface VerificationListInstanceCreateOptions {
@@ -83,6 +85,8 @@ interface VerificationListInstanceCreateOptions {
83
85
  payee?: string;
84
86
  rateLimits?: object;
85
87
  sendDigits?: string;
88
+ templateCustomSubstitutions?: string;
89
+ templateSid?: string;
86
90
  to: string;
87
91
  }
88
92
 
@@ -81,6 +81,9 @@ 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.
85
+ * @param {string} [opts.templateCustomSubstitutions] -
86
+ * The values of the special variables declared on the message template.
84
87
  * @param {function} [callback] - Callback to handle processed record
85
88
  *
86
89
  * @returns {Promise} Resolves to processed VerificationInstance
@@ -110,7 +113,9 @@ VerificationList = function VerificationList(version, serviceSid) {
110
113
  'Payee': _.get(opts, 'payee'),
111
114
  'RateLimits': serialize.object(_.get(opts, 'rateLimits')),
112
115
  'ChannelConfiguration': serialize.object(_.get(opts, 'channelConfiguration')),
113
- 'AppHash': _.get(opts, 'appHash')
116
+ 'AppHash': _.get(opts, 'appHash'),
117
+ 'TemplateSid': _.get(opts, 'templateSid'),
118
+ 'TemplateCustomSubstitutions': _.get(opts, 'templateCustomSubstitutions')
114
119
  });
115
120
 
116
121
  var promise = this._version.create({uri: this._uri, method: 'POST', data: data});
@@ -36,6 +36,7 @@ declare function ServiceList(version: V2): ServiceListInstance;
36
36
  *
37
37
  * @property codeLength - The length of the verification code to generate
38
38
  * @property customCodeEnabled - Whether to allow sending verifications with a custom code.
39
+ * @property defaultTemplateSid - The verification template SMS messages.
39
40
  * @property doNotShareWarningEnabled - Whether to add a privacy warning at the end of an SMS.
40
41
  * @property dtmfInputRequired - Whether to ask the user to press a number before delivering the verify code in a phone call
41
42
  * @property friendlyName - A string to describe the verification service
@@ -54,6 +55,7 @@ declare function ServiceList(version: V2): ServiceListInstance;
54
55
  interface ServiceInstanceUpdateOptions {
55
56
  codeLength?: number;
56
57
  customCodeEnabled?: boolean;
58
+ defaultTemplateSid?: string;
57
59
  doNotShareWarningEnabled?: boolean;
58
60
  dtmfInputRequired?: boolean;
59
61
  friendlyName?: string;
@@ -199,6 +201,7 @@ interface ServiceListInstance {
199
201
  *
200
202
  * @property codeLength - The length of the verification code to generate
201
203
  * @property customCodeEnabled - Whether to allow sending verifications with a custom code.
204
+ * @property defaultTemplateSid - The verification template SMS messages.
202
205
  * @property doNotShareWarningEnabled - Whether to add a security warning at the end of an SMS.
203
206
  * @property dtmfInputRequired - Whether to ask the user to press a number before delivering the verify code in a phone call
204
207
  * @property friendlyName - A string to describe the verification service
@@ -217,6 +220,7 @@ interface ServiceListInstance {
217
220
  interface ServiceListInstanceCreateOptions {
218
221
  codeLength?: number;
219
222
  customCodeEnabled?: boolean;
223
+ defaultTemplateSid?: string;
220
224
  doNotShareWarningEnabled?: boolean;
221
225
  dtmfInputRequired?: boolean;
222
226
  friendlyName: string;
@@ -303,6 +307,7 @@ interface ServiceResource {
303
307
  custom_code_enabled: boolean;
304
308
  date_created: Date;
305
309
  date_updated: Date;
310
+ default_template_sid: string;
306
311
  do_not_share_warning_enabled: boolean;
307
312
  dtmf_input_required: boolean;
308
313
  friendly_name: string;
@@ -389,6 +394,7 @@ declare class ServiceInstance extends SerializableClass {
389
394
  customCodeEnabled: boolean;
390
395
  dateCreated: Date;
391
396
  dateUpdated: Date;
397
+ defaultTemplateSid: string;
392
398
  doNotShareWarningEnabled: boolean;
393
399
  dtmfInputRequired: boolean;
394
400
  /**
@@ -99,6 +99,8 @@ ServiceList = function ServiceList(version) {
99
99
  * Optional. Number of digits for generated TOTP codes
100
100
  * @param {number} [opts.totp.skew] -
101
101
  * Optional. The number of past and future time-steps valid at a given time
102
+ * @param {string} [opts.defaultTemplateSid] -
103
+ * The verification template SMS messages.
102
104
  * @param {function} [callback] - Callback to handle processed record
103
105
  *
104
106
  * @returns {Promise} Resolves to processed ServiceInstance
@@ -129,7 +131,8 @@ ServiceList = function ServiceList(version) {
129
131
  'Totp.Issuer': _.get(opts, 'totp.issuer'),
130
132
  'Totp.TimeStep': _.get(opts, 'totp.timeStep'),
131
133
  'Totp.CodeLength': _.get(opts, 'totp.codeLength'),
132
- 'Totp.Skew': _.get(opts, 'totp.skew')
134
+ 'Totp.Skew': _.get(opts, 'totp.skew'),
135
+ 'DefaultTemplateSid': _.get(opts, 'defaultTemplateSid')
133
136
  });
134
137
 
135
138
  var promise = this._version.create({uri: this._uri, method: 'POST', data: data});
@@ -520,6 +523,7 @@ ServicePage.prototype[util.inspect.custom] = function inspect(depth, options) {
520
523
  * Whether to allow sending verifications with a custom code.
521
524
  * @property {object} push - The service level configuration of factor push type.
522
525
  * @property {object} totp - The service level configuration of factor TOTP type.
526
+ * @property {string} defaultTemplateSid - The default_template_sid
523
527
  * @property {Date} dateCreated -
524
528
  * The RFC 2822 date and time in GMT when the resource was created
525
529
  * @property {Date} dateUpdated -
@@ -549,6 +553,7 @@ ServiceInstance = function ServiceInstance(version, payload, sid) {
549
553
  this.customCodeEnabled = payload.custom_code_enabled; // jshint ignore:line
550
554
  this.push = payload.push; // jshint ignore:line
551
555
  this.totp = payload.totp; // jshint ignore:line
556
+ this.defaultTemplateSid = payload.default_template_sid; // jshint ignore:line
552
557
  this.dateCreated = deserialize.iso8601DateTime(payload.date_created); // jshint ignore:line
553
558
  this.dateUpdated = deserialize.iso8601DateTime(payload.date_updated); // jshint ignore:line
554
559
  this.url = payload.url; // jshint ignore:line
@@ -641,6 +646,8 @@ ServiceInstance.prototype.remove = function remove(callback) {
641
646
  * Optional. Number of digits for generated TOTP codes
642
647
  * @param {number} [opts.totp.skew] -
643
648
  * Optional. The number of past and future time-steps valid at a given time
649
+ * @param {string} [opts.defaultTemplateSid] -
650
+ * The verification template SMS messages.
644
651
  * @param {function} [callback] - Callback to handle processed record
645
652
  *
646
653
  * @returns {Promise} Resolves to processed ServiceInstance
@@ -918,6 +925,8 @@ ServiceContext.prototype.remove = function remove(callback) {
918
925
  * Optional. Number of digits for generated TOTP codes
919
926
  * @param {number} [opts.totp.skew] -
920
927
  * Optional. The number of past and future time-steps valid at a given time
928
+ * @param {string} [opts.defaultTemplateSid] -
929
+ * The verification template SMS messages.
921
930
  * @param {function} [callback] - Callback to handle processed record
922
931
  *
923
932
  * @returns {Promise} Resolves to processed ServiceInstance
@@ -947,7 +956,8 @@ ServiceContext.prototype.update = function update(opts, callback) {
947
956
  'Totp.Issuer': _.get(opts, 'totp.issuer'),
948
957
  'Totp.TimeStep': _.get(opts, 'totp.timeStep'),
949
958
  'Totp.CodeLength': _.get(opts, 'totp.codeLength'),
950
- 'Totp.Skew': _.get(opts, 'totp.skew')
959
+ 'Totp.Skew': _.get(opts, 'totp.skew'),
960
+ 'DefaultTemplateSid': _.get(opts, 'defaultTemplateSid')
951
961
  });
952
962
 
953
963
  var promise = this._version.update({uri: this._uri, method: 'POST', data: data});
@@ -10,7 +10,7 @@ import Response = require('../../../http/response');
10
10
  import V2 = require('../V2');
11
11
  import { SerializableClass } from '../../../interfaces';
12
12
 
13
- type VerificationAttemptChannels = 'sms'|'call'|'email';
13
+ type VerificationAttemptChannels = 'sms'|'call'|'email'|'whatsapp';
14
14
 
15
15
  type VerificationAttemptConversionStatus = 'converted'|'unconverted';
16
16
 
@@ -167,7 +167,9 @@ interface RoomListInstance {
167
167
  /**
168
168
  * Options to pass to create
169
169
  *
170
+ * @property audioOnly - Indicates whether the room will only contain audio track participants for group rooms.
170
171
  * @property enableTurn - Enable Twilio's Network Traversal TURN service
172
+ * @property maxParticipantDuration - The maximum number of seconds a Participant can be connected to the room
171
173
  * @property maxParticipants - The maximum number of concurrent Participants allowed in the room
172
174
  * @property mediaRegion - The region for the media server in Group Rooms
173
175
  * @property recordParticipantsOnConnect - Whether to start recording when Participants connect
@@ -179,7 +181,9 @@ interface RoomListInstance {
179
181
  * @property videoCodecs - An array of the video codecs that are supported when publishing a track in the room
180
182
  */
181
183
  interface RoomListInstanceCreateOptions {
184
+ audioOnly?: boolean;
182
185
  enableTurn?: boolean;
186
+ maxParticipantDuration?: number;
183
187
  maxParticipants?: number;
184
188
  mediaRegion?: string;
185
189
  recordParticipantsOnConnect?: boolean;
@@ -277,6 +281,7 @@ interface RoomPayload extends RoomResource, Page.TwilioResponsePayload {
277
281
 
278
282
  interface RoomResource {
279
283
  account_sid: string;
284
+ audio_only: boolean;
280
285
  date_created: Date;
281
286
  date_updated: Date;
282
287
  duration: number;
@@ -284,6 +289,7 @@ interface RoomResource {
284
289
  end_time: Date;
285
290
  links: string;
286
291
  max_concurrent_published_tracks: number;
292
+ max_participant_duration: number;
287
293
  max_participants: number;
288
294
  media_region: string;
289
295
  record_participants_on_connect: boolean;
@@ -345,6 +351,7 @@ declare class RoomInstance extends SerializableClass {
345
351
 
346
352
  private _proxy: RoomContext;
347
353
  accountSid: string;
354
+ audioOnly: boolean;
348
355
  dateCreated: Date;
349
356
  dateUpdated: Date;
350
357
  duration: number;
@@ -358,6 +365,7 @@ declare class RoomInstance extends SerializableClass {
358
365
  fetch(callback?: (error: Error | null, items: RoomInstance) => any): Promise<RoomInstance>;
359
366
  links: string;
360
367
  maxConcurrentPublishedTracks: number;
368
+ maxParticipantDuration: number;
361
369
  maxParticipants: number;
362
370
  mediaRegion: string;
363
371
  /**
@@ -80,6 +80,10 @@ RoomList = function RoomList(version) {
80
80
  * @param {string} [opts.mediaRegion] -
81
81
  * The region for the media server in Group Rooms
82
82
  * @param {object} [opts.recordingRules] - A collection of Recording Rules
83
+ * @param {boolean} [opts.audioOnly] -
84
+ * Indicates whether the room will only contain audio track participants for group rooms.
85
+ * @param {number} [opts.maxParticipantDuration] -
86
+ * The maximum number of seconds a Participant can be connected to the room
83
87
  * @param {function} [callback] - Callback to handle processed record
84
88
  *
85
89
  * @returns {Promise} Resolves to processed RoomInstance
@@ -103,7 +107,9 @@ RoomList = function RoomList(version) {
103
107
  'RecordParticipantsOnConnect': serialize.bool(_.get(opts, 'recordParticipantsOnConnect')),
104
108
  'VideoCodecs': serialize.map(_.get(opts, 'videoCodecs'), function(e) { return e; }),
105
109
  'MediaRegion': _.get(opts, 'mediaRegion'),
106
- 'RecordingRules': serialize.object(_.get(opts, 'recordingRules'))
110
+ 'RecordingRules': serialize.object(_.get(opts, 'recordingRules')),
111
+ 'AudioOnly': serialize.bool(_.get(opts, 'audioOnly')),
112
+ 'MaxParticipantDuration': _.get(opts, 'maxParticipantDuration')
107
113
  });
108
114
 
109
115
  var promise = this._version.create({uri: this._uri, method: 'POST', data: data});
@@ -514,6 +520,8 @@ RoomPage.prototype[util.inspect.custom] = function inspect(depth, options) {
514
520
  * @property {room.room_type} type - The type of room
515
521
  * @property {number} maxParticipants -
516
522
  * The maximum number of concurrent Participants allowed in the room
523
+ * @property {number} maxParticipantDuration -
524
+ * The maximum number of seconds a Participant can be connected to the room
517
525
  * @property {number} maxConcurrentPublishedTracks -
518
526
  * The maximum number of published tracks allowed in the room at the same time
519
527
  * @property {boolean} recordParticipantsOnConnect -
@@ -521,6 +529,8 @@ RoomPage.prototype[util.inspect.custom] = function inspect(depth, options) {
521
529
  * @property {room.video_codec} videoCodecs -
522
530
  * An array of the video codecs that are supported when publishing a track in the room
523
531
  * @property {string} mediaRegion - The region for the media server in Group Rooms
532
+ * @property {boolean} audioOnly -
533
+ * Indicates whether the room will only contain audio track participants for group rooms.
524
534
  * @property {string} url - The absolute URL of the resource
525
535
  * @property {string} links - The URLs of related resources
526
536
  *
@@ -546,10 +556,12 @@ RoomInstance = function RoomInstance(version, payload, sid) {
546
556
  this.duration = deserialize.integer(payload.duration); // jshint ignore:line
547
557
  this.type = payload.type; // jshint ignore:line
548
558
  this.maxParticipants = deserialize.integer(payload.max_participants); // jshint ignore:line
559
+ this.maxParticipantDuration = deserialize.integer(payload.max_participant_duration); // jshint ignore:line
549
560
  this.maxConcurrentPublishedTracks = deserialize.integer(payload.max_concurrent_published_tracks); // jshint ignore:line
550
561
  this.recordParticipantsOnConnect = payload.record_participants_on_connect; // jshint ignore:line
551
562
  this.videoCodecs = payload.video_codecs; // jshint ignore:line
552
563
  this.mediaRegion = payload.media_region; // jshint ignore:line
564
+ this.audioOnly = payload.audio_only; // jshint ignore:line
553
565
  this.url = payload.url; // jshint ignore:line
554
566
  this.links = payload.links; // jshint ignore:line
555
567
 
@@ -169,7 +169,7 @@ interface RatePlanListInstance {
169
169
  * @property nationalRoamingDataLimit - The total data usage in Megabytes that the Network allows during one month on non-home networks in the United States
170
170
  * @property nationalRoamingEnabled - Whether SIMs can roam on networks other than the home network in the United States
171
171
  * @property uniqueName - An application-defined string that uniquely identifies the resource
172
- * @property voiceEnabled - Whether SIMs can make and receive voice calls
172
+ * @property voiceEnabled - Deprecated
173
173
  */
174
174
  interface RatePlanListInstanceCreateOptions {
175
175
  dataEnabled?: boolean;
@@ -311,8 +311,7 @@ RatePlanList = function RatePlanList(version) {
311
311
  * @param {string} [opts.dataMetering] - The model used to meter data usage
312
312
  * @param {boolean} [opts.messagingEnabled] -
313
313
  * Whether SIMs can make, send, and receive SMS using Commands
314
- * @param {boolean} [opts.voiceEnabled] -
315
- * Whether SIMs can make and receive voice calls
314
+ * @param {boolean} [opts.voiceEnabled] - Deprecated
316
315
  * @param {boolean} [opts.nationalRoamingEnabled] -
317
316
  * Whether SIMs can roam on networks other than the home network in the United States
318
317
  * @param {string|list} [opts.internationalRoaming] -
@@ -486,7 +485,8 @@ RatePlanPage.prototype[util.inspect.custom] = function inspect(depth, options) {
486
485
  * The total data usage in Megabytes that the Network allows during one month on the home network
487
486
  * @property {boolean} messagingEnabled -
488
487
  * Whether SIMs can make, send, and receive SMS using Commands
489
- * @property {boolean} voiceEnabled - Whether SIMs can make and receive voice calls
488
+ * @property {boolean} voiceEnabled -
489
+ * Deprecated. Whether SIMs can make and receive voice calls
490
490
  * @property {boolean} nationalRoamingEnabled -
491
491
  * Whether SIMs can roam on networks other than the home network in the United States
492
492
  * @property {number} nationalRoamingDataLimit -
@@ -42,10 +42,10 @@ declare function SimList(version: V1): SimListInstance;
42
42
  * @property smsUrl - The URL we should call when the SIM-connected device sends an SMS message that is not a Command
43
43
  * @property status - The new status of the Sim resource
44
44
  * @property uniqueName - An application-defined string that uniquely identifies the resource
45
- * @property voiceFallbackMethod - The HTTP method we should use to call voice_fallback_url
46
- * @property voiceFallbackUrl - The URL we should call when an error occurs while retrieving or executing the TwiML requested from voice_url
47
- * @property voiceMethod - The HTTP method we should use when we call voice_url
48
- * @property voiceUrl - The URL we should call when the SIM-connected device makes a voice call
45
+ * @property voiceFallbackMethod - Deprecated
46
+ * @property voiceFallbackUrl - Deprecated
47
+ * @property voiceMethod - Deprecated
48
+ * @property voiceUrl - Deprecated
49
49
  */
50
50
  interface SimInstanceUpdateOptions {
51
51
  accountSid?: string;
@@ -447,19 +447,21 @@ SimPage.prototype[util.inspect.custom] = function inspect(depth, options) {
447
447
  * @property {string} commandsCallbackMethod -
448
448
  * The HTTP method we use to call commands_callback_url
449
449
  * @property {string} smsFallbackMethod -
450
- * The HTTP method we use to call sms_fallback_url
450
+ * Deprecated. The HTTP method we use to call sms_fallback_url
451
451
  * @property {string} smsFallbackUrl -
452
- * The URL we call when an error occurs while retrieving or executing the TwiML requested from the sms_url
453
- * @property {string} smsMethod - The HTTP method we use to call sms_url
452
+ * Deprecated. The URL we call when an error occurs while retrieving or executing the TwiML requested from the sms_url
453
+ * @property {string} smsMethod -
454
+ * Deprecated. The HTTP method we use to call sms_url
454
455
  * @property {string} smsUrl -
455
- * The URL we call when the SIM-connected device sends an SMS message that is not a Command
456
+ * Deprecated. The URL we call when the SIM-connected device sends an SMS message that is not a Command
456
457
  * @property {string} voiceFallbackMethod -
457
- * The HTTP method we use to call voice_fallback_url
458
+ * Deprecated. The HTTP method we use to call voice_fallback_url
458
459
  * @property {string} voiceFallbackUrl -
459
- * The URL we call when an error occurs while retrieving or executing the TwiML requested from voice_url
460
- * @property {string} voiceMethod - The HTTP method we use to call voice_url
460
+ * Deprecated. The URL we call when an error occurs while retrieving or executing the TwiML requested from voice_url
461
+ * @property {string} voiceMethod -
462
+ * Deprecated. The HTTP method we use to call voice_url
461
463
  * @property {string} voiceUrl -
462
- * The URL we call when the SIM-connected device makes a voice call
464
+ * Deprecated. The URL we call when the SIM-connected device makes a voice call
463
465
  * @property {Date} dateCreated -
464
466
  * The ISO 8601 date and time in GMT when the resource was created
465
467
  * @property {Date} dateUpdated -
@@ -563,14 +565,10 @@ SimInstance.prototype.fetch = function fetch(callback) {
563
565
  * @param {string} [opts.smsMethod] - The HTTP method we should use to call sms_url
564
566
  * @param {string} [opts.smsUrl] -
565
567
  * The URL we should call when the SIM-connected device sends an SMS message that is not a Command
566
- * @param {string} [opts.voiceFallbackMethod] -
567
- * The HTTP method we should use to call voice_fallback_url
568
- * @param {string} [opts.voiceFallbackUrl] -
569
- * The URL we should call when an error occurs while retrieving or executing the TwiML requested from voice_url
570
- * @param {string} [opts.voiceMethod] -
571
- * The HTTP method we should use when we call voice_url
572
- * @param {string} [opts.voiceUrl] -
573
- * The URL we should call when the SIM-connected device makes a voice call
568
+ * @param {string} [opts.voiceFallbackMethod] - Deprecated
569
+ * @param {string} [opts.voiceFallbackUrl] - Deprecated
570
+ * @param {string} [opts.voiceMethod] - Deprecated
571
+ * @param {string} [opts.voiceUrl] - Deprecated
574
572
  * @param {sim.reset_status} [opts.resetStatus] -
575
573
  * Initiate a connectivity reset on a SIM
576
574
  * @param {string} [opts.accountSid] -
@@ -740,14 +738,10 @@ SimContext.prototype.fetch = function fetch(callback) {
740
738
  * @param {string} [opts.smsMethod] - The HTTP method we should use to call sms_url
741
739
  * @param {string} [opts.smsUrl] -
742
740
  * The URL we should call when the SIM-connected device sends an SMS message that is not a Command
743
- * @param {string} [opts.voiceFallbackMethod] -
744
- * The HTTP method we should use to call voice_fallback_url
745
- * @param {string} [opts.voiceFallbackUrl] -
746
- * The URL we should call when an error occurs while retrieving or executing the TwiML requested from voice_url
747
- * @param {string} [opts.voiceMethod] -
748
- * The HTTP method we should use when we call voice_url
749
- * @param {string} [opts.voiceUrl] -
750
- * The URL we should call when the SIM-connected device makes a voice call
741
+ * @param {string} [opts.voiceFallbackMethod] - Deprecated
742
+ * @param {string} [opts.voiceFallbackUrl] - Deprecated
743
+ * @param {string} [opts.voiceMethod] - Deprecated
744
+ * @param {string} [opts.voiceUrl] - Deprecated
751
745
  * @param {sim.reset_status} [opts.resetStatus] -
752
746
  * Initiate a connectivity reset on a SIM
753
747
  * @param {string} [opts.accountSid] -