twilio 3.83.3 → 3.84.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 (63) hide show
  1. package/README.md +6 -0
  2. package/lib/rest/FlexApi.d.ts +6 -0
  3. package/lib/rest/FlexApi.js +27 -0
  4. package/lib/rest/Messaging.d.ts +4 -0
  5. package/lib/rest/Messaging.js +18 -0
  6. package/lib/rest/Oauth.d.ts +2 -0
  7. package/lib/rest/Oauth.js +8 -0
  8. package/lib/rest/Preview.d.ts +0 -10
  9. package/lib/rest/Preview.js +0 -46
  10. package/lib/rest/api/v2010/account/address.d.ts +6 -0
  11. package/lib/rest/api/v2010/account/address.js +13 -2
  12. package/lib/rest/api/v2010/account/call/userDefinedMessageSubscription.d.ts +1 -1
  13. package/lib/rest/api/v2010/account/call/userDefinedMessageSubscription.js +3 -6
  14. package/lib/rest/content/v1/content/approvalFetch.d.ts +139 -0
  15. package/lib/rest/content/v1/content/approvalFetch.js +328 -0
  16. package/lib/rest/content/v1/content.d.ts +7 -6
  17. package/lib/rest/content/v1/content.js +31 -31
  18. package/lib/rest/flexApi/V1.d.ts +3 -0
  19. package/lib/rest/flexApi/V1.js +11 -0
  20. package/lib/rest/flexApi/V2.d.ts +25 -0
  21. package/lib/rest/flexApi/V2.js +46 -0
  22. package/lib/rest/flexApi/v1/assessments.d.ts +113 -0
  23. package/lib/rest/flexApi/v1/assessments.js +300 -0
  24. package/lib/rest/flexApi/v1/goodData.d.ts +2 -2
  25. package/lib/rest/flexApi/v1/goodData.js +4 -4
  26. package/lib/rest/flexApi/v1/userRoles.js +1 -1
  27. package/lib/rest/flexApi/v2/webChannels.d.ts +101 -0
  28. package/lib/rest/flexApi/v2/webChannels.js +244 -0
  29. package/lib/rest/lookups/v2/phoneNumber.d.ts +22 -0
  30. package/lib/rest/lookups/v2/phoneNumber.js +43 -1
  31. package/lib/rest/messaging/V1.d.ts +6 -0
  32. package/lib/rest/messaging/V1.js +24 -0
  33. package/lib/rest/messaging/v1/domainCert.d.ts +178 -0
  34. package/lib/rest/messaging/v1/domainCert.js +447 -0
  35. package/lib/rest/messaging/v1/domainConfig.d.ts +172 -0
  36. package/lib/rest/messaging/v1/domainConfig.js +421 -0
  37. package/lib/rest/messaging/v1/service/usAppToPerson.d.ts +1 -1
  38. package/lib/rest/messaging/v1/service/usAppToPerson.js +5 -2
  39. package/lib/rest/microvisor/v1/device.d.ts +2 -0
  40. package/lib/rest/microvisor/v1/device.js +2 -0
  41. package/lib/rest/oauth/V1.d.ts +3 -0
  42. package/lib/rest/oauth/V1.js +11 -0
  43. package/lib/rest/oauth/v1/deviceCode.d.ts +107 -0
  44. package/lib/rest/oauth/v1/deviceCode.js +258 -0
  45. package/lib/rest/oauth/v1/openidDiscovery.js +1 -1
  46. package/lib/rest/serverless/v1/service/build.d.ts +1 -1
  47. package/lib/rest/supersim/v1/settingsUpdate.d.ts +6 -0
  48. package/lib/rest/supersim/v1/settingsUpdate.js +7 -0
  49. package/lib/twiml/VoiceResponse.d.ts +7 -7
  50. package/lib/twiml/VoiceResponse.js +14 -14
  51. package/package.json +1 -1
  52. package/lib/rest/preview/TrustedComms.d.ts +0 -34
  53. package/lib/rest/preview/TrustedComms.js +0 -84
  54. package/lib/rest/preview/trusted_comms/brandedChannel/channel.d.ts +0 -120
  55. package/lib/rest/preview/trusted_comms/brandedChannel/channel.js +0 -257
  56. package/lib/rest/preview/trusted_comms/brandedChannel.d.ts +0 -150
  57. package/lib/rest/preview/trusted_comms/brandedChannel.js +0 -362
  58. package/lib/rest/preview/trusted_comms/brandsInformation.d.ts +0 -158
  59. package/lib/rest/preview/trusted_comms/brandsInformation.js +0 -338
  60. package/lib/rest/preview/trusted_comms/cps.d.ts +0 -156
  61. package/lib/rest/preview/trusted_comms/cps.js +0 -332
  62. package/lib/rest/preview/trusted_comms/currentCall.d.ts +0 -180
  63. package/lib/rest/preview/trusted_comms/currentCall.js +0 -367
@@ -0,0 +1,258 @@
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 serialize = require('../../../base/serialize'); /* jshint ignore:line */
19
+ var values = require('../../../base/values'); /* jshint ignore:line */
20
+
21
+ var DeviceCodeList;
22
+ var DeviceCodePage;
23
+ var DeviceCodeInstance;
24
+
25
+ /* jshint ignore:start */
26
+ /**
27
+ * Initialize the DeviceCodeList
28
+ *
29
+ * @constructor Twilio.Oauth.V1.DeviceCodeList
30
+ *
31
+ * @param {Twilio.Oauth.V1} version - Version of the resource
32
+ */
33
+ /* jshint ignore:end */
34
+ DeviceCodeList = function DeviceCodeList(version) {
35
+ /* jshint ignore:start */
36
+ /**
37
+ * @function deviceCode
38
+ * @memberof Twilio.Oauth.V1#
39
+ *
40
+ * @param {string} sid - sid of instance
41
+ *
42
+ * @returns {Twilio.Oauth.V1.DeviceCodeContext}
43
+ */
44
+ /* jshint ignore:end */
45
+ function DeviceCodeListInstance(sid) {
46
+ return DeviceCodeListInstance.get(sid);
47
+ }
48
+
49
+ DeviceCodeListInstance._version = version;
50
+ // Path Solution
51
+ DeviceCodeListInstance._solution = {};
52
+ DeviceCodeListInstance._uri = `/device/code`;
53
+ /* jshint ignore:start */
54
+ /**
55
+ * create a DeviceCodeInstance
56
+ *
57
+ * @function create
58
+ * @memberof Twilio.Oauth.V1.DeviceCodeList#
59
+ *
60
+ * @param {object} opts - Options for request
61
+ * @param {string} opts.clientSid -
62
+ * A string that uniquely identifies this oauth app
63
+ * @param {string|list} opts.scopes - An Array of scopes
64
+ * @param {string|list} [opts.audiences] - An array of intended audiences
65
+ * @param {function} [callback] - Callback to handle processed record
66
+ *
67
+ * @returns {Promise} Resolves to processed DeviceCodeInstance
68
+ */
69
+ /* jshint ignore:end */
70
+ DeviceCodeListInstance.create = function create(opts, callback) {
71
+ if (_.isUndefined(opts)) {
72
+ throw new Error('Required parameter "opts" missing.');
73
+ }
74
+ if (_.isUndefined(opts['clientSid'])) {
75
+ throw new Error('Required parameter "opts[\'clientSid\']" missing.');
76
+ }
77
+ if (_.isUndefined(opts['scopes'])) {
78
+ throw new Error('Required parameter "opts[\'scopes\']" missing.');
79
+ }
80
+
81
+ var deferred = Q.defer();
82
+ var data = values.of({
83
+ 'ClientSid': _.get(opts, 'clientSid'),
84
+ 'Scopes': serialize.map(_.get(opts, 'scopes'), function(e) { return e; }),
85
+ 'Audiences': serialize.map(_.get(opts, 'audiences'), function(e) { return e; })
86
+ });
87
+
88
+ var promise = this._version.create({uri: this._uri, method: 'POST', data: data});
89
+
90
+ promise = promise.then(function(payload) {
91
+ deferred.resolve(new DeviceCodeInstance(this._version, payload));
92
+ }.bind(this));
93
+
94
+ promise.catch(function(error) {
95
+ deferred.reject(error);
96
+ });
97
+
98
+ if (_.isFunction(callback)) {
99
+ deferred.promise.nodeify(callback);
100
+ }
101
+
102
+ return deferred.promise;
103
+ };
104
+
105
+ /* jshint ignore:start */
106
+ /**
107
+ * Provide a user-friendly representation
108
+ *
109
+ * @function toJSON
110
+ * @memberof Twilio.Oauth.V1.DeviceCodeList#
111
+ *
112
+ * @returns Object
113
+ */
114
+ /* jshint ignore:end */
115
+ DeviceCodeListInstance.toJSON = function toJSON() {
116
+ return this._solution;
117
+ };
118
+
119
+ DeviceCodeListInstance[util.inspect.custom] = function inspect(depth, options) {
120
+ return util.inspect(this.toJSON(), options);
121
+ };
122
+
123
+ return DeviceCodeListInstance;
124
+ };
125
+
126
+
127
+ /* jshint ignore:start */
128
+ /**
129
+ * Initialize the DeviceCodePage
130
+ *
131
+ * @constructor Twilio.Oauth.V1.DeviceCodePage
132
+ *
133
+ * @param {V1} version - Version of the resource
134
+ * @param {Response<string>} response - Response from the API
135
+ * @param {DeviceCodeSolution} solution - Path solution
136
+ *
137
+ * @returns DeviceCodePage
138
+ */
139
+ /* jshint ignore:end */
140
+ DeviceCodePage = function DeviceCodePage(version, response, solution) {
141
+ // Path Solution
142
+ this._solution = solution;
143
+
144
+ Page.prototype.constructor.call(this, version, response, this._solution);
145
+ };
146
+
147
+ _.extend(DeviceCodePage.prototype, Page.prototype);
148
+ DeviceCodePage.prototype.constructor = DeviceCodePage;
149
+
150
+ /* jshint ignore:start */
151
+ /**
152
+ * Build an instance of DeviceCodeInstance
153
+ *
154
+ * @function getInstance
155
+ * @memberof Twilio.Oauth.V1.DeviceCodePage#
156
+ *
157
+ * @param {DeviceCodePayload} payload - Payload response from the API
158
+ *
159
+ * @returns DeviceCodeInstance
160
+ */
161
+ /* jshint ignore:end */
162
+ DeviceCodePage.prototype.getInstance = function getInstance(payload) {
163
+ return new DeviceCodeInstance(this._version, payload);
164
+ };
165
+
166
+ /* jshint ignore:start */
167
+ /**
168
+ * Provide a user-friendly representation
169
+ *
170
+ * @function toJSON
171
+ * @memberof Twilio.Oauth.V1.DeviceCodePage#
172
+ *
173
+ * @returns Object
174
+ */
175
+ /* jshint ignore:end */
176
+ DeviceCodePage.prototype.toJSON = function toJSON() {
177
+ let clone = {};
178
+ _.forOwn(this, function(value, key) {
179
+ if (!_.startsWith(key, '_') && ! _.isFunction(value)) {
180
+ clone[key] = value;
181
+ }
182
+ });
183
+ return clone;
184
+ };
185
+
186
+ DeviceCodePage.prototype[util.inspect.custom] = function inspect(depth, options)
187
+ {
188
+ return util.inspect(this.toJSON(), options);
189
+ };
190
+
191
+
192
+ /* jshint ignore:start */
193
+ /**
194
+ * Initialize the DeviceCodeContext
195
+ *
196
+ * @constructor Twilio.Oauth.V1.DeviceCodeInstance
197
+ *
198
+ * @property {string} deviceCode - The device verification code
199
+ * @property {string} userCode - The verification code for the end user
200
+ * @property {string} verificationUri -
201
+ * The URI that the end user visits to verify request
202
+ * @property {string} verificationUriComplete -
203
+ * he URI with user_code that the end-user alternatively visits to verify request
204
+ * @property {number} expiresIn -
205
+ * The expiration time of the device_code and user_code in seconds
206
+ * @property {number} interval -
207
+ * The minimum amount of time in seconds that the client should wait between polling requests to the token endpoint
208
+ *
209
+ * @param {V1} version - Version of the resource
210
+ * @param {DeviceCodePayload} payload - The instance payload
211
+ */
212
+ /* jshint ignore:end */
213
+ DeviceCodeInstance = function DeviceCodeInstance(version, payload) {
214
+ this._version = version;
215
+
216
+ // Marshaled Properties
217
+ this.deviceCode = payload.device_code; // jshint ignore:line
218
+ this.userCode = payload.user_code; // jshint ignore:line
219
+ this.verificationUri = payload.verification_uri; // jshint ignore:line
220
+ this.verificationUriComplete = payload.verification_uri_complete; // jshint ignore:line
221
+ this.expiresIn = deserialize.integer(payload.expires_in); // jshint ignore:line
222
+ this.interval = deserialize.integer(payload.interval); // jshint ignore:line
223
+
224
+ // Context
225
+ this._context = undefined;
226
+ this._solution = {};
227
+ };
228
+
229
+ /* jshint ignore:start */
230
+ /**
231
+ * Provide a user-friendly representation
232
+ *
233
+ * @function toJSON
234
+ * @memberof Twilio.Oauth.V1.DeviceCodeInstance#
235
+ *
236
+ * @returns Object
237
+ */
238
+ /* jshint ignore:end */
239
+ DeviceCodeInstance.prototype.toJSON = function toJSON() {
240
+ let clone = {};
241
+ _.forOwn(this, function(value, key) {
242
+ if (!_.startsWith(key, '_') && ! _.isFunction(value)) {
243
+ clone[key] = value;
244
+ }
245
+ });
246
+ return clone;
247
+ };
248
+
249
+ DeviceCodeInstance.prototype[util.inspect.custom] = function inspect(depth,
250
+ options) {
251
+ return util.inspect(this.toJSON(), options);
252
+ };
253
+
254
+ module.exports = {
255
+ DeviceCodeList: DeviceCodeList,
256
+ DeviceCodePage: DeviceCodePage,
257
+ DeviceCodeInstance: DeviceCodeInstance
258
+ };
@@ -268,7 +268,7 @@ OpenidDiscoveryContext = function OpenidDiscoveryContext(version) {
268
268
 
269
269
  // Path Solution
270
270
  this._solution = {};
271
- this._uri = `/well-known/openid-configuration`;
271
+ this._uri = `/.well-known/openid-configuration`;
272
272
  };
273
273
 
274
274
  /* jshint ignore:start */
@@ -12,7 +12,7 @@ import { BuildStatusList } from './build/buildStatus';
12
12
  import { BuildStatusListInstance } from './build/buildStatus';
13
13
  import { SerializableClass } from '../../../../interfaces';
14
14
 
15
- type BuildRuntime = 'node8'|'node10'|'node12'|'node14';
15
+ type BuildRuntime = 'node8'|'node10'|'node12'|'node14'|'node16';
16
16
 
17
17
  type BuildStatus = 'building'|'completed'|'failed';
18
18
 
@@ -143,6 +143,7 @@ interface SettingsUpdateListInstance {
143
143
  * each() will attempt to read the limit with the most efficient
144
144
  * page size, i.e. min(limit, 1000)
145
145
  * @property sim - Filter the Settings Updates by Super SIM
146
+ * @property status - Filter the Settings Updates by status
146
147
  */
147
148
  interface SettingsUpdateListInstanceEachOptions {
148
149
  callback?: (item: SettingsUpdateInstance, done: (err?: Error) => void) => void;
@@ -150,6 +151,7 @@ interface SettingsUpdateListInstanceEachOptions {
150
151
  limit?: number;
151
152
  pageSize?: number;
152
153
  sim?: string;
154
+ status?: SettingsUpdateStatus;
153
155
  }
154
156
 
155
157
  /**
@@ -166,11 +168,13 @@ interface SettingsUpdateListInstanceEachOptions {
166
168
  * list() will attempt to read the limit with the most
167
169
  * efficient page size, i.e. min(limit, 1000)
168
170
  * @property sim - Filter the Settings Updates by Super SIM
171
+ * @property status - Filter the Settings Updates by status
169
172
  */
170
173
  interface SettingsUpdateListInstanceOptions {
171
174
  limit?: number;
172
175
  pageSize?: number;
173
176
  sim?: string;
177
+ status?: SettingsUpdateStatus;
174
178
  }
175
179
 
176
180
  /**
@@ -180,12 +184,14 @@ interface SettingsUpdateListInstanceOptions {
180
184
  * @property pageSize - Number of records to return, defaults to 50
181
185
  * @property pageToken - PageToken provided by the API
182
186
  * @property sim - Filter the Settings Updates by Super SIM
187
+ * @property status - Filter the Settings Updates by status
183
188
  */
184
189
  interface SettingsUpdateListInstancePageOptions {
185
190
  pageNumber?: number;
186
191
  pageSize?: number;
187
192
  pageToken?: string;
188
193
  sim?: string;
194
+ status?: SettingsUpdateStatus;
189
195
  }
190
196
 
191
197
  interface SettingsUpdatePayload extends SettingsUpdateResource, Page.TwilioResponsePayload {
@@ -70,6 +70,8 @@ SettingsUpdateList = function SettingsUpdateList(version) {
70
70
  *
71
71
  * @param {object} [opts] - Options for request
72
72
  * @param {string} [opts.sim] - Filter the Settings Updates by Super SIM
73
+ * @param {settings_update.status} [opts.status] -
74
+ * Filter the Settings Updates by status
73
75
  * @param {number} [opts.limit] -
74
76
  * Upper limit for the number of records to return.
75
77
  * each() guarantees never to return more than limit.
@@ -160,6 +162,8 @@ SettingsUpdateList = function SettingsUpdateList(version) {
160
162
  *
161
163
  * @param {object} [opts] - Options for request
162
164
  * @param {string} [opts.sim] - Filter the Settings Updates by Super SIM
165
+ * @param {settings_update.status} [opts.status] -
166
+ * Filter the Settings Updates by status
163
167
  * @param {number} [opts.limit] -
164
168
  * Upper limit for the number of records to return.
165
169
  * list() guarantees never to return more than limit.
@@ -221,6 +225,8 @@ SettingsUpdateList = function SettingsUpdateList(version) {
221
225
  *
222
226
  * @param {object} [opts] - Options for request
223
227
  * @param {string} [opts.sim] - Filter the Settings Updates by Super SIM
228
+ * @param {settings_update.status} [opts.status] -
229
+ * Filter the Settings Updates by status
224
230
  * @param {string} [opts.pageToken] - PageToken provided by the API
225
231
  * @param {number} [opts.pageNumber] -
226
232
  * Page Number, this value is simply for client state
@@ -240,6 +246,7 @@ SettingsUpdateList = function SettingsUpdateList(version) {
240
246
  var deferred = Q.defer();
241
247
  var data = values.of({
242
248
  'Sim': _.get(opts, 'sim'),
249
+ 'Status': _.get(opts, 'status'),
243
250
  'PageToken': opts.pageToken,
244
251
  'Page': opts.pageNumber,
245
252
  'PageSize': opts.pageSize
@@ -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.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';
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.Elin-Neural'|'Polly.Emma-Neural'|'Polly.Gabrielle-Neural'|'Polly.Hala-Neural'|'Polly.Hannah-Neural'|'Polly.Hiujin-Neural'|'Polly.Ida-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.Laura-Neural'|'Polly.Lea-Neural'|'Polly.Liam-Neural'|'Polly.Lucia-Neural'|'Polly.Lupe-Neural'|'Polly.Matthew-Neural'|'Polly.Mia-Neural'|'Polly.Ola-Neural'|'Polly.Olivia-Neural'|'Polly.Pedro-Neural'|'Polly.Salli-Neural'|'Polly.Seoyeon-Neural'|'Polly.Suvi-Neural'|'Polly.Takumi-Neural'|'Polly.Vicki-Neural'|'Polly.Vitoria-Neural'|'Polly.Zhiyu-Neural';
263
263
 
264
264
  type SipEvent = 'initiated'|'ringing'|'answered'|'completed';
265
265
 
@@ -269,13 +269,13 @@ declare namespace VoiceResponse {
269
269
 
270
270
  type SsmlEmphasisLevel = 'strong'|'moderate'|'reduced';
271
271
 
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';
272
+ type SsmlLangXmlLang = 'arb'|'ar-AE'|'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'|'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'|'yue-CN';
273
273
 
274
- type SsmlPhonemeAlphabet = 'ipa'|'x-sampa';
274
+ type SsmlPhonemeAlphabet = 'ipa'|'x-sampa'|'x-amazon-jyutping'|'x-amazon-pinyin'|'x-amazon-pron-kana'|'x-amazon-yomigana';
275
275
 
276
- type SsmlSayAsInterpretAs = 'character'|'spell-out'|'cardinal'|'number'|'ordinal'|'digits'|'fraction'|'unit'|'date'|'time'|'address'|'expletive'|'telephone';
276
+ type SsmlSayAsFormat = 'mdy'|'dmy'|'ymd'|'md'|'dm'|'ym'|'my'|'d'|'m'|'y'|'yyyymmdd';
277
277
 
278
- type SsmlSayAsRole = 'mdy'|'dmy'|'ymd'|'md'|'dm'|'ym'|'my'|'d'|'m'|'y'|'yyyymmdd';
278
+ type SsmlSayAsInterpretAs = 'characters'|'spell-out'|'cardinal'|'number'|'ordinal'|'digits'|'fraction'|'unit'|'date'|'time'|'address'|'expletive'|'telephone';
279
279
 
280
280
  type StreamStatusCallbackMethod = 'GET'|'POST';
281
281
 
@@ -849,12 +849,12 @@ declare namespace VoiceResponse {
849
849
  /**
850
850
  * Options to pass to sayAs
851
851
  *
852
+ * @property format - Specify the format of the date when interpret-as is set to date
852
853
  * @property interpret-as - Specify the type of words are spoken
853
- * @property role - Specify the format of the date when interpret-as is set to date
854
854
  */
855
855
  export interface SsmlSayAsAttributes {
856
+ format?: SsmlSayAsFormat;
856
857
  "interpret-as"?: SsmlSayAsInterpretAs;
857
- role?: SsmlSayAsRole;
858
858
  }
859
859
 
860
860
  /**
@@ -1183,7 +1183,7 @@ Say.prototype.ssmlS = util.deprecate(function ssmlS(attributes, words) {
1183
1183
  * @param {object} attributes - TwiML attributes
1184
1184
  * @param {ssml_say_as.interpret_as} [attributes.interpret-
1185
1185
  * as] - Specify the type of words are spoken
1186
- * @param {ssml_say_as.role} [attributes.role] -
1186
+ * @param {ssml_say_as.format} [attributes.format] -
1187
1187
  * Specify the format of the date when interpret-as is set to date
1188
1188
  * @param {string} words - Words to be interpreted
1189
1189
  *
@@ -1205,7 +1205,7 @@ Say.prototype.sayAs = function sayAs(attributes, words) {
1205
1205
  * @param {object} attributes - TwiML attributes
1206
1206
  * @param {ssml_say_as.interpret_as} [attributes.interpret-
1207
1207
  * as] - Specify the type of words are spoken
1208
- * @param {ssml_say_as.role} [attributes.role] -
1208
+ * @param {ssml_say_as.format} [attributes.format] -
1209
1209
  * Specify the format of the date when interpret-as is set to date
1210
1210
  * @param {string} words - Words to be interpreted
1211
1211
  *
@@ -1494,7 +1494,7 @@ SsmlW.prototype.ssmlProsody = util.deprecate(function ssmlProsody(attributes,
1494
1494
  * @param {object} attributes - TwiML attributes
1495
1495
  * @param {ssml_say_as.interpret_as} [attributes.interpret-
1496
1496
  * as] - Specify the type of words are spoken
1497
- * @param {ssml_say_as.role} [attributes.role] -
1497
+ * @param {ssml_say_as.format} [attributes.format] -
1498
1498
  * Specify the format of the date when interpret-as is set to date
1499
1499
  * @param {string} words - Words to be interpreted
1500
1500
  *
@@ -1516,7 +1516,7 @@ SsmlW.prototype.sayAs = function sayAs(attributes, words) {
1516
1516
  * @param {object} attributes - TwiML attributes
1517
1517
  * @param {ssml_say_as.interpret_as} [attributes.interpret-
1518
1518
  * as] - Specify the type of words are spoken
1519
- * @param {ssml_say_as.role} [attributes.role] -
1519
+ * @param {ssml_say_as.format} [attributes.format] -
1520
1520
  * Specify the format of the date when interpret-as is set to date
1521
1521
  * @param {string} words - Words to be interpreted
1522
1522
  *
@@ -1913,7 +1913,7 @@ SsmlProsody.prototype.ssmlS = util.deprecate(function ssmlS(attributes, words) {
1913
1913
  * @param {object} attributes - TwiML attributes
1914
1914
  * @param {ssml_say_as.interpret_as} [attributes.interpret-
1915
1915
  * as] - Specify the type of words are spoken
1916
- * @param {ssml_say_as.role} [attributes.role] -
1916
+ * @param {ssml_say_as.format} [attributes.format] -
1917
1917
  * Specify the format of the date when interpret-as is set to date
1918
1918
  * @param {string} words - Words to be interpreted
1919
1919
  *
@@ -1935,7 +1935,7 @@ SsmlProsody.prototype.sayAs = function sayAs(attributes, words) {
1935
1935
  * @param {object} attributes - TwiML attributes
1936
1936
  * @param {ssml_say_as.interpret_as} [attributes.interpret-
1937
1937
  * as] - Specify the type of words are spoken
1938
- * @param {ssml_say_as.role} [attributes.role] -
1938
+ * @param {ssml_say_as.format} [attributes.format] -
1939
1939
  * Specify the format of the date when interpret-as is set to date
1940
1940
  * @param {string} words - Words to be interpreted
1941
1941
  *
@@ -2262,7 +2262,7 @@ SsmlS.prototype.ssmlProsody = util.deprecate(function ssmlProsody(attributes,
2262
2262
  * @param {object} attributes - TwiML attributes
2263
2263
  * @param {ssml_say_as.interpret_as} [attributes.interpret-
2264
2264
  * as] - Specify the type of words are spoken
2265
- * @param {ssml_say_as.role} [attributes.role] -
2265
+ * @param {ssml_say_as.format} [attributes.format] -
2266
2266
  * Specify the format of the date when interpret-as is set to date
2267
2267
  * @param {string} words - Words to be interpreted
2268
2268
  *
@@ -2284,7 +2284,7 @@ SsmlS.prototype.sayAs = function sayAs(attributes, words) {
2284
2284
  * @param {object} attributes - TwiML attributes
2285
2285
  * @param {ssml_say_as.interpret_as} [attributes.interpret-
2286
2286
  * as] - Specify the type of words are spoken
2287
- * @param {ssml_say_as.role} [attributes.role] -
2287
+ * @param {ssml_say_as.format} [attributes.format] -
2288
2288
  * Specify the format of the date when interpret-as is set to date
2289
2289
  * @param {string} words - Words to be interpreted
2290
2290
  *
@@ -2700,7 +2700,7 @@ SsmlLang.prototype.ssmlS = util.deprecate(function ssmlS(attributes, words) {
2700
2700
  * @param {object} attributes - TwiML attributes
2701
2701
  * @param {ssml_say_as.interpret_as} [attributes.interpret-
2702
2702
  * as] - Specify the type of words are spoken
2703
- * @param {ssml_say_as.role} [attributes.role] -
2703
+ * @param {ssml_say_as.format} [attributes.format] -
2704
2704
  * Specify the format of the date when interpret-as is set to date
2705
2705
  * @param {string} words - Words to be interpreted
2706
2706
  *
@@ -2722,7 +2722,7 @@ SsmlLang.prototype.sayAs = function sayAs(attributes, words) {
2722
2722
  * @param {object} attributes - TwiML attributes
2723
2723
  * @param {ssml_say_as.interpret_as} [attributes.interpret-
2724
2724
  * as] - Specify the type of words are spoken
2725
- * @param {ssml_say_as.role} [attributes.role] -
2725
+ * @param {ssml_say_as.format} [attributes.format] -
2726
2726
  * Specify the format of the date when interpret-as is set to date
2727
2727
  * @param {string} words - Words to be interpreted
2728
2728
  *
@@ -3084,7 +3084,7 @@ SsmlP.prototype.ssmlS = util.deprecate(function ssmlS(attributes, words) {
3084
3084
  * @param {object} attributes - TwiML attributes
3085
3085
  * @param {ssml_say_as.interpret_as} [attributes.interpret-
3086
3086
  * as] - Specify the type of words are spoken
3087
- * @param {ssml_say_as.role} [attributes.role] -
3087
+ * @param {ssml_say_as.format} [attributes.format] -
3088
3088
  * Specify the format of the date when interpret-as is set to date
3089
3089
  * @param {string} words - Words to be interpreted
3090
3090
  *
@@ -3106,7 +3106,7 @@ SsmlP.prototype.sayAs = function sayAs(attributes, words) {
3106
3106
  * @param {object} attributes - TwiML attributes
3107
3107
  * @param {ssml_say_as.interpret_as} [attributes.interpret-
3108
3108
  * as] - Specify the type of words are spoken
3109
- * @param {ssml_say_as.role} [attributes.role] -
3109
+ * @param {ssml_say_as.format} [attributes.format] -
3110
3110
  * Specify the format of the date when interpret-as is set to date
3111
3111
  * @param {string} words - Words to be interpreted
3112
3112
  *
@@ -3434,7 +3434,7 @@ SsmlEmphasis.prototype.ssmlProsody = util.deprecate(function
3434
3434
  * @param {object} attributes - TwiML attributes
3435
3435
  * @param {ssml_say_as.interpret_as} [attributes.interpret-
3436
3436
  * as] - Specify the type of words are spoken
3437
- * @param {ssml_say_as.role} [attributes.role] -
3437
+ * @param {ssml_say_as.format} [attributes.format] -
3438
3438
  * Specify the format of the date when interpret-as is set to date
3439
3439
  * @param {string} words - Words to be interpreted
3440
3440
  *
@@ -3456,7 +3456,7 @@ SsmlEmphasis.prototype.sayAs = function sayAs(attributes, words) {
3456
3456
  * @param {object} attributes - TwiML attributes
3457
3457
  * @param {ssml_say_as.interpret_as} [attributes.interpret-
3458
3458
  * as] - Specify the type of words are spoken
3459
- * @param {ssml_say_as.role} [attributes.role] -
3459
+ * @param {ssml_say_as.format} [attributes.format] -
3460
3460
  * Specify the format of the date when interpret-as is set to date
3461
3461
  * @param {string} words - Words to be interpreted
3462
3462
  *
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.3",
4
+ "version": "3.84.0",
5
5
  "author": "API Team <api@twilio.com>",
6
6
  "contributors": [
7
7
  {
@@ -1,34 +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 { BrandedChannelList } from './trusted_comms/brandedChannel';
11
- import { BrandedChannelListInstance } from './trusted_comms/brandedChannel';
12
- import { BrandsInformationList } from './trusted_comms/brandsInformation';
13
- import { BrandsInformationListInstance } from './trusted_comms/brandsInformation';
14
- import { CpsList } from './trusted_comms/cps';
15
- import { CpsListInstance } from './trusted_comms/cps';
16
- import { CurrentCallList } from './trusted_comms/currentCall';
17
- import { CurrentCallListInstance } from './trusted_comms/currentCall';
18
-
19
-
20
- declare class TrustedComms extends Version {
21
- /**
22
- * Initialize the TrustedComms version of Preview
23
- *
24
- * @param domain - The twilio domain
25
- */
26
- constructor(domain: Preview);
27
-
28
- readonly brandedChannels: BrandedChannelListInstance;
29
- readonly brandsInformation: BrandsInformationListInstance;
30
- readonly cps: CpsListInstance;
31
- readonly currentCalls: CurrentCallListInstance;
32
- }
33
-
34
- export = TrustedComms;
@@ -1,84 +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 BrandedChannelList = require(
14
- './trusted_comms/brandedChannel').BrandedChannelList;
15
- var BrandsInformationList = require(
16
- './trusted_comms/brandsInformation').BrandsInformationList;
17
- var CpsList = require('./trusted_comms/cps').CpsList;
18
- var CurrentCallList = require('./trusted_comms/currentCall').CurrentCallList;
19
- var Version = require('../../base/Version'); /* jshint ignore:line */
20
-
21
-
22
- /* jshint ignore:start */
23
- /**
24
- * Initialize the TrustedComms version of Preview
25
- *
26
- * @constructor Twilio.Preview.TrustedComms
27
- *
28
- * @property {Twilio.Preview.TrustedComms.BrandedChannelList} brandedChannels -
29
- * brandedChannels resource
30
- * @property {Twilio.Preview.TrustedComms.BrandsInformationList} brandsInformation -
31
- * brandsInformation resource
32
- * @property {Twilio.Preview.TrustedComms.CpsList} cps - cps resource
33
- * @property {Twilio.Preview.TrustedComms.CurrentCallList} currentCalls -
34
- * currentCalls resource
35
- *
36
- * @param {Twilio.Preview} domain - The twilio domain
37
- */
38
- /* jshint ignore:end */
39
- function TrustedComms(domain) {
40
- Version.prototype.constructor.call(this, domain, 'TrustedComms');
41
-
42
- // Resources
43
- this._brandedChannels = undefined;
44
- this._brandsInformation = undefined;
45
- this._cps = undefined;
46
- this._currentCalls = undefined;
47
- }
48
-
49
- _.extend(TrustedComms.prototype, Version.prototype);
50
- TrustedComms.prototype.constructor = TrustedComms;
51
-
52
- Object.defineProperty(TrustedComms.prototype,
53
- 'brandedChannels', {
54
- get: function() {
55
- this._brandedChannels = this._brandedChannels || new BrandedChannelList(this);
56
- return this._brandedChannels;
57
- }
58
- });
59
-
60
- Object.defineProperty(TrustedComms.prototype,
61
- 'brandsInformation', {
62
- get: function() {
63
- this._brandsInformation = this._brandsInformation || new BrandsInformationList(this);
64
- return this._brandsInformation;
65
- }
66
- });
67
-
68
- Object.defineProperty(TrustedComms.prototype,
69
- 'cps', {
70
- get: function() {
71
- this._cps = this._cps || new CpsList(this);
72
- return this._cps;
73
- }
74
- });
75
-
76
- Object.defineProperty(TrustedComms.prototype,
77
- 'currentCalls', {
78
- get: function() {
79
- this._currentCalls = this._currentCalls || new CurrentCallList(this);
80
- return this._currentCalls;
81
- }
82
- });
83
-
84
- module.exports = TrustedComms;