twilio 3.83.1 → 3.83.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.
@@ -0,0 +1,313 @@
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 values = require('../../../base/values'); /* jshint ignore:line */
17
+
18
+ var UserRolesList;
19
+ var UserRolesPage;
20
+ var UserRolesInstance;
21
+ var UserRolesContext;
22
+
23
+ /* jshint ignore:start */
24
+ /**
25
+ * Initialize the UserRolesList
26
+ *
27
+ * @constructor Twilio.FlexApi.V1.UserRolesList
28
+ *
29
+ * @param {Twilio.FlexApi.V1} version - Version of the resource
30
+ */
31
+ /* jshint ignore:end */
32
+ UserRolesList = function UserRolesList(version) {
33
+ /* jshint ignore:start */
34
+ /**
35
+ * @function userRoles
36
+ * @memberof Twilio.FlexApi.V1#
37
+ *
38
+ * @param {string} sid - sid of instance
39
+ *
40
+ * @returns {Twilio.FlexApi.V1.UserRolesContext}
41
+ */
42
+ /* jshint ignore:end */
43
+ function UserRolesListInstance(sid) {
44
+ return UserRolesListInstance.get(sid);
45
+ }
46
+
47
+ UserRolesListInstance._version = version;
48
+ // Path Solution
49
+ UserRolesListInstance._solution = {};
50
+ /* jshint ignore:start */
51
+ /**
52
+ * Constructs a user_roles
53
+ *
54
+ * @function get
55
+ * @memberof Twilio.FlexApi.V1.UserRolesList#
56
+ *
57
+ * @returns {Twilio.FlexApi.V1.UserRolesContext}
58
+ */
59
+ /* jshint ignore:end */
60
+ UserRolesListInstance.get = function get() {
61
+ return new UserRolesContext(this._version);
62
+ };
63
+
64
+ /* jshint ignore:start */
65
+ /**
66
+ * Provide a user-friendly representation
67
+ *
68
+ * @function toJSON
69
+ * @memberof Twilio.FlexApi.V1.UserRolesList#
70
+ *
71
+ * @returns Object
72
+ */
73
+ /* jshint ignore:end */
74
+ UserRolesListInstance.toJSON = function toJSON() {
75
+ return this._solution;
76
+ };
77
+
78
+ UserRolesListInstance[util.inspect.custom] = function inspect(depth, options) {
79
+ return util.inspect(this.toJSON(), options);
80
+ };
81
+
82
+ return UserRolesListInstance;
83
+ };
84
+
85
+
86
+ /* jshint ignore:start */
87
+ /**
88
+ * Initialize the UserRolesPage
89
+ *
90
+ * @constructor Twilio.FlexApi.V1.UserRolesPage
91
+ *
92
+ * @param {V1} version - Version of the resource
93
+ * @param {Response<string>} response - Response from the API
94
+ * @param {UserRolesSolution} solution - Path solution
95
+ *
96
+ * @returns UserRolesPage
97
+ */
98
+ /* jshint ignore:end */
99
+ UserRolesPage = function UserRolesPage(version, response, solution) {
100
+ // Path Solution
101
+ this._solution = solution;
102
+
103
+ Page.prototype.constructor.call(this, version, response, this._solution);
104
+ };
105
+
106
+ _.extend(UserRolesPage.prototype, Page.prototype);
107
+ UserRolesPage.prototype.constructor = UserRolesPage;
108
+
109
+ /* jshint ignore:start */
110
+ /**
111
+ * Build an instance of UserRolesInstance
112
+ *
113
+ * @function getInstance
114
+ * @memberof Twilio.FlexApi.V1.UserRolesPage#
115
+ *
116
+ * @param {UserRolesPayload} payload - Payload response from the API
117
+ *
118
+ * @returns UserRolesInstance
119
+ */
120
+ /* jshint ignore:end */
121
+ UserRolesPage.prototype.getInstance = function getInstance(payload) {
122
+ return new UserRolesInstance(this._version, payload);
123
+ };
124
+
125
+ /* jshint ignore:start */
126
+ /**
127
+ * Provide a user-friendly representation
128
+ *
129
+ * @function toJSON
130
+ * @memberof Twilio.FlexApi.V1.UserRolesPage#
131
+ *
132
+ * @returns Object
133
+ */
134
+ /* jshint ignore:end */
135
+ UserRolesPage.prototype.toJSON = function toJSON() {
136
+ let clone = {};
137
+ _.forOwn(this, function(value, key) {
138
+ if (!_.startsWith(key, '_') && ! _.isFunction(value)) {
139
+ clone[key] = value;
140
+ }
141
+ });
142
+ return clone;
143
+ };
144
+
145
+ UserRolesPage.prototype[util.inspect.custom] = function inspect(depth, options)
146
+ {
147
+ return util.inspect(this.toJSON(), options);
148
+ };
149
+
150
+
151
+ /* jshint ignore:start */
152
+ /**
153
+ * Initialize the UserRolesContext
154
+ *
155
+ * @constructor Twilio.FlexApi.V1.UserRolesInstance
156
+ *
157
+ * @property {string} roles - Flex Insights roles for the user
158
+ * @property {string} url - The url
159
+ *
160
+ * @param {V1} version - Version of the resource
161
+ * @param {UserRolesPayload} payload - The instance payload
162
+ */
163
+ /* jshint ignore:end */
164
+ UserRolesInstance = function UserRolesInstance(version, payload) {
165
+ this._version = version;
166
+
167
+ // Marshaled Properties
168
+ this.roles = payload.roles; // jshint ignore:line
169
+ this.url = payload.url; // jshint ignore:line
170
+
171
+ // Context
172
+ this._context = undefined;
173
+ this._solution = {};
174
+ };
175
+
176
+ Object.defineProperty(UserRolesInstance.prototype,
177
+ '_proxy', {
178
+ get: function() {
179
+ if (!this._context) {
180
+ this._context = new UserRolesContext(this._version);
181
+ }
182
+
183
+ return this._context;
184
+ }
185
+ });
186
+
187
+ /* jshint ignore:start */
188
+ /**
189
+ * fetch a UserRolesInstance
190
+ *
191
+ * @function fetch
192
+ * @memberof Twilio.FlexApi.V1.UserRolesInstance#
193
+ *
194
+ * @param {object} [opts] - Options for request
195
+ * @param {string} [opts.token] - The Token HTTP request header
196
+ * @param {function} [callback] - Callback to handle processed record
197
+ *
198
+ * @returns {Promise} Resolves to processed UserRolesInstance
199
+ */
200
+ /* jshint ignore:end */
201
+ UserRolesInstance.prototype.fetch = function fetch(opts, callback) {
202
+ return this._proxy.fetch(opts, callback);
203
+ };
204
+
205
+ /* jshint ignore:start */
206
+ /**
207
+ * Provide a user-friendly representation
208
+ *
209
+ * @function toJSON
210
+ * @memberof Twilio.FlexApi.V1.UserRolesInstance#
211
+ *
212
+ * @returns Object
213
+ */
214
+ /* jshint ignore:end */
215
+ UserRolesInstance.prototype.toJSON = function toJSON() {
216
+ let clone = {};
217
+ _.forOwn(this, function(value, key) {
218
+ if (!_.startsWith(key, '_') && ! _.isFunction(value)) {
219
+ clone[key] = value;
220
+ }
221
+ });
222
+ return clone;
223
+ };
224
+
225
+ UserRolesInstance.prototype[util.inspect.custom] = function inspect(depth,
226
+ options) {
227
+ return util.inspect(this.toJSON(), options);
228
+ };
229
+
230
+
231
+ /* jshint ignore:start */
232
+ /**
233
+ * Initialize the UserRolesContext
234
+ *
235
+ * @constructor Twilio.FlexApi.V1.UserRolesContext
236
+ *
237
+ * @param {V1} version - Version of the resource
238
+ */
239
+ /* jshint ignore:end */
240
+ UserRolesContext = function UserRolesContext(version) {
241
+ this._version = version;
242
+
243
+ // Path Solution
244
+ this._solution = {};
245
+ this._uri = `/Accounts/UserRoles`;
246
+ };
247
+
248
+ /* jshint ignore:start */
249
+ /**
250
+ * fetch a UserRolesInstance
251
+ *
252
+ * @function fetch
253
+ * @memberof Twilio.FlexApi.V1.UserRolesContext#
254
+ *
255
+ * @param {object} [opts] - Options for request
256
+ * @param {string} [opts.token] - The Token HTTP request header
257
+ * @param {function} [callback] - Callback to handle processed record
258
+ *
259
+ * @returns {Promise} Resolves to processed UserRolesInstance
260
+ */
261
+ /* jshint ignore:end */
262
+ UserRolesContext.prototype.fetch = function fetch(opts, callback) {
263
+ if (_.isFunction(opts)) {
264
+ callback = opts;
265
+ opts = {};
266
+ }
267
+ opts = opts || {};
268
+
269
+ var deferred = Q.defer();
270
+ var headers = values.of({'Token': _.get(opts, 'token')});
271
+
272
+ var promise = this._version.fetch({uri: this._uri, method: 'GET', headers: headers});
273
+
274
+ promise = promise.then(function(payload) {
275
+ deferred.resolve(new UserRolesInstance(this._version, payload));
276
+ }.bind(this));
277
+
278
+ promise.catch(function(error) {
279
+ deferred.reject(error);
280
+ });
281
+
282
+ if (_.isFunction(callback)) {
283
+ deferred.promise.nodeify(callback);
284
+ }
285
+
286
+ return deferred.promise;
287
+ };
288
+
289
+ /* jshint ignore:start */
290
+ /**
291
+ * Provide a user-friendly representation
292
+ *
293
+ * @function toJSON
294
+ * @memberof Twilio.FlexApi.V1.UserRolesContext#
295
+ *
296
+ * @returns Object
297
+ */
298
+ /* jshint ignore:end */
299
+ UserRolesContext.prototype.toJSON = function toJSON() {
300
+ return this._solution;
301
+ };
302
+
303
+ UserRolesContext.prototype[util.inspect.custom] = function inspect(depth,
304
+ options) {
305
+ return util.inspect(this.toJSON(), options);
306
+ };
307
+
308
+ module.exports = {
309
+ UserRolesList: UserRolesList,
310
+ UserRolesPage: UserRolesPage,
311
+ UserRolesInstance: UserRolesInstance,
312
+ UserRolesContext: UserRolesContext
313
+ };
@@ -10,6 +10,8 @@ import Response = require('../../../../http/response');
10
10
  import V1 = require('../../V1');
11
11
  import { SerializableClass } from '../../../../interfaces';
12
12
 
13
+ type CallSummaryAnsweredBy = 'unknown'|'machine_start'|'machine_end_beep'|'machine_end_silence'|'machine_end_other'|'human'|'fax';
14
+
13
15
  type CallSummaryCallState = 'ringing'|'completed'|'busy'|'fail'|'noanswer'|'canceled'|'answered'|'undialed';
14
16
 
15
17
  type CallSummaryCallType = 'carrier'|'sip'|'trunking'|'client';
@@ -54,6 +56,7 @@ interface CallSummaryPayload extends CallSummaryResource, Page.TwilioResponsePay
54
56
  interface CallSummaryResource {
55
57
  account_sid: string;
56
58
  annotation: object;
59
+ answered_by: CallSummaryAnsweredBy;
57
60
  attributes: object;
58
61
  call_sid: string;
59
62
  call_state: CallSummaryCallState;
@@ -123,6 +126,7 @@ declare class CallSummaryInstance extends SerializableClass {
123
126
  private _proxy: CallSummaryContext;
124
127
  accountSid: string;
125
128
  annotation: any;
129
+ answeredBy: CallSummaryAnsweredBy;
126
130
  attributes: any;
127
131
  callSid: string;
128
132
  callState: CallSummaryCallState;
@@ -185,4 +189,4 @@ declare class CallSummaryPage extends Page<V1, CallSummaryPayload, CallSummaryRe
185
189
  toJSON(): any;
186
190
  }
187
191
 
188
- export { CallSummaryCallState, CallSummaryCallType, CallSummaryContext, CallSummaryInstance, CallSummaryInstanceFetchOptions, CallSummaryList, CallSummaryListInstance, CallSummaryPage, CallSummaryPayload, CallSummaryProcessingState, CallSummaryResource, CallSummarySolution }
192
+ export { CallSummaryAnsweredBy, CallSummaryCallState, CallSummaryCallType, CallSummaryContext, CallSummaryInstance, CallSummaryInstanceFetchOptions, CallSummaryList, CallSummaryListInstance, CallSummaryPage, CallSummaryPayload, CallSummaryProcessingState, CallSummaryResource, CallSummarySolution }
@@ -162,6 +162,7 @@ CallSummaryPage.prototype[util.inspect.custom] = function inspect(depth,
162
162
  * @property {string} callSid - The call_sid
163
163
  * @property {call_summary.call_type} callType - The call_type
164
164
  * @property {call_summary.call_state} callState - The call_state
165
+ * @property {call_summary.answered_by} answeredBy - The answered_by
165
166
  * @property {call_summary.processing_state} processingState - The processing_state
166
167
  * @property {Date} createdTime - The created_time
167
168
  * @property {Date} startTime - The start_time
@@ -194,6 +195,7 @@ CallSummaryInstance = function CallSummaryInstance(version, payload, callSid) {
194
195
  this.callSid = payload.call_sid; // jshint ignore:line
195
196
  this.callType = payload.call_type; // jshint ignore:line
196
197
  this.callState = payload.call_state; // jshint ignore:line
198
+ this.answeredBy = payload.answered_by; // jshint ignore:line
197
199
  this.processingState = payload.processing_state; // jshint ignore:line
198
200
  this.createdTime = deserialize.iso8601DateTime(payload.created_time); // jshint ignore:line
199
201
  this.startTime = deserialize.iso8601DateTime(payload.start_time); // jshint ignore:line
@@ -10,6 +10,8 @@ import Response = require('../../../http/response');
10
10
  import V1 = require('../V1');
11
11
  import { SerializableClass } from '../../../interfaces';
12
12
 
13
+ type CallSummariesAnsweredBy = 'unknown'|'machine_start'|'machine_end_beep'|'machine_end_silence'|'machine_end_other'|'human'|'fax';
14
+
13
15
  type CallSummariesCallDirection = 'outbound_api'|'outbound_dial'|'inbound'|'trunking_originating'|'trunking_terminating';
14
16
 
15
17
  type CallSummariesCallState = 'ringing'|'completed'|'busy'|'fail'|'noanswer'|'canceled'|'answered'|'undialed';
@@ -302,6 +304,7 @@ interface CallSummariesPayload extends CallSummariesResource, Page.TwilioRespons
302
304
 
303
305
  interface CallSummariesResource {
304
306
  account_sid: string;
307
+ answered_by: CallSummariesAnsweredBy;
305
308
  attributes: object;
306
309
  call_sid: string;
307
310
  call_state: CallSummariesCallState;
@@ -338,6 +341,7 @@ declare class CallSummariesInstance extends SerializableClass {
338
341
  constructor(version: V1, payload: CallSummariesPayload);
339
342
 
340
343
  accountSid: string;
344
+ answeredBy: CallSummariesAnsweredBy;
341
345
  attributes: any;
342
346
  callSid: string;
343
347
  callState: CallSummariesCallState;
@@ -387,4 +391,4 @@ declare class CallSummariesPage extends Page<V1, CallSummariesPayload, CallSumma
387
391
  toJSON(): any;
388
392
  }
389
393
 
390
- export { CallSummariesCallDirection, CallSummariesCallState, CallSummariesCallType, CallSummariesInstance, CallSummariesList, CallSummariesListInstance, CallSummariesListInstanceEachOptions, CallSummariesListInstanceOptions, CallSummariesListInstancePageOptions, CallSummariesPage, CallSummariesPayload, CallSummariesProcessingState, CallSummariesProcessingStateRequest, CallSummariesResource, CallSummariesSolution, CallSummariesSortBy }
394
+ export { CallSummariesAnsweredBy, CallSummariesCallDirection, CallSummariesCallState, CallSummariesCallType, CallSummariesInstance, CallSummariesList, CallSummariesListInstance, CallSummariesListInstanceEachOptions, CallSummariesListInstanceOptions, CallSummariesListInstancePageOptions, CallSummariesPage, CallSummariesPayload, CallSummariesProcessingState, CallSummariesProcessingStateRequest, CallSummariesResource, CallSummariesSolution, CallSummariesSortBy }
@@ -465,6 +465,7 @@ CallSummariesPage.prototype[util.inspect.custom] = function inspect(depth,
465
465
  *
466
466
  * @property {string} accountSid - The account_sid
467
467
  * @property {string} callSid - The call_sid
468
+ * @property {call_summaries.answered_by} answeredBy - The answered_by
468
469
  * @property {call_summaries.call_type} callType - The call_type
469
470
  * @property {call_summaries.call_state} callState - The call_state
470
471
  * @property {call_summaries.processing_state} processingState -
@@ -496,6 +497,7 @@ CallSummariesInstance = function CallSummariesInstance(version, payload) {
496
497
  // Marshaled Properties
497
498
  this.accountSid = payload.account_sid; // jshint ignore:line
498
499
  this.callSid = payload.call_sid; // jshint ignore:line
500
+ this.answeredBy = payload.answered_by; // jshint ignore:line
499
501
  this.callType = payload.call_type; // jshint ignore:line
500
502
  this.callState = payload.call_state; // jshint ignore:line
501
503
  this.processingState = payload.processing_state; // jshint ignore:line
@@ -148,7 +148,14 @@ interface UsAppToPersonListInstance {
148
148
  * @property description - A short description of what this SMS campaign does
149
149
  * @property hasEmbeddedLinks - Indicates that this SMS campaign will send messages that contain links
150
150
  * @property hasEmbeddedPhone - Indicates that this SMS campaign will send messages that contain phone numbers
151
+ * @property helpKeywords - Help Keywords
152
+ * @property helpMessage - Help Message
153
+ * @property messageFlow - The message flow of the campaign
151
154
  * @property messageSamples - Message samples
155
+ * @property optInKeywords - Opt In Keywords
156
+ * @property optInMessage - Opt In Message
157
+ * @property optOutKeywords - Opt Out Keywords
158
+ * @property optOutMessage - Opt Out Message
152
159
  * @property usAppToPersonUsecase - A2P Campaign Use Case.
153
160
  */
154
161
  interface UsAppToPersonListInstanceCreateOptions {
@@ -156,7 +163,14 @@ interface UsAppToPersonListInstanceCreateOptions {
156
163
  description: string;
157
164
  hasEmbeddedLinks: boolean;
158
165
  hasEmbeddedPhone: boolean;
166
+ helpKeywords?: string | string[];
167
+ helpMessage?: string;
168
+ messageFlow?: string;
159
169
  messageSamples: string | string[];
170
+ optInKeywords?: string | string[];
171
+ optInMessage?: string;
172
+ optOutKeywords?: string | string[];
173
+ optOutMessage?: string;
160
174
  usAppToPersonUsecase: string;
161
175
  }
162
176
 
@@ -230,10 +244,17 @@ interface UsAppToPersonResource {
230
244
  description: string;
231
245
  has_embedded_links: boolean;
232
246
  has_embedded_phone: boolean;
247
+ help_keywords: string[];
248
+ help_message: string;
233
249
  is_externally_registered: boolean;
250
+ message_flow: string;
234
251
  message_samples: string[];
235
252
  messaging_service_sid: string;
236
253
  mock: boolean;
254
+ opt_in_keywords: string[];
255
+ opt_in_message: string;
256
+ opt_out_keywords: string[];
257
+ opt_out_message: string;
237
258
  rate_limits: object;
238
259
  sid: string;
239
260
  url: string;
@@ -307,10 +328,17 @@ declare class UsAppToPersonInstance extends SerializableClass {
307
328
  fetch(callback?: (error: Error | null, items: UsAppToPersonInstance) => any): Promise<UsAppToPersonInstance>;
308
329
  hasEmbeddedLinks: boolean;
309
330
  hasEmbeddedPhone: boolean;
331
+ helpKeywords: string[];
332
+ helpMessage: string;
310
333
  isExternallyRegistered: boolean;
334
+ messageFlow: string;
311
335
  messageSamples: string[];
312
336
  messagingServiceSid: string;
313
337
  mock: boolean;
338
+ optInKeywords: string[];
339
+ optInMessage: string;
340
+ optOutKeywords: string[];
341
+ optOutMessage: string;
314
342
  rateLimits: any;
315
343
  /**
316
344
  * remove a UsAppToPersonInstance
@@ -73,6 +73,13 @@ UsAppToPersonList = function UsAppToPersonList(version, messagingServiceSid) {
73
73
  * Indicates that this SMS campaign will send messages that contain links
74
74
  * @param {boolean} opts.hasEmbeddedPhone -
75
75
  * Indicates that this SMS campaign will send messages that contain phone numbers
76
+ * @param {string} [opts.messageFlow] - The message flow of the campaign
77
+ * @param {string} [opts.optInMessage] - Opt In Message
78
+ * @param {string} [opts.optOutMessage] - Opt Out Message
79
+ * @param {string} [opts.helpMessage] - Help Message
80
+ * @param {string|list} [opts.optInKeywords] - Opt In Keywords
81
+ * @param {string|list} [opts.optOutKeywords] - Opt Out Keywords
82
+ * @param {string|list} [opts.helpKeywords] - Help Keywords
76
83
  * @param {function} [callback] - Callback to handle processed record
77
84
  *
78
85
  * @returns {Promise} Resolves to processed UsAppToPersonInstance
@@ -108,7 +115,14 @@ UsAppToPersonList = function UsAppToPersonList(version, messagingServiceSid) {
108
115
  'MessageSamples': serialize.map(_.get(opts, 'messageSamples'), function(e) { return e; }),
109
116
  'UsAppToPersonUsecase': _.get(opts, 'usAppToPersonUsecase'),
110
117
  'HasEmbeddedLinks': serialize.bool(_.get(opts, 'hasEmbeddedLinks')),
111
- 'HasEmbeddedPhone': serialize.bool(_.get(opts, 'hasEmbeddedPhone'))
118
+ 'HasEmbeddedPhone': serialize.bool(_.get(opts, 'hasEmbeddedPhone')),
119
+ 'MessageFlow': _.get(opts, 'messageFlow'),
120
+ 'OptInMessage': _.get(opts, 'optInMessage'),
121
+ 'OptOutMessage': _.get(opts, 'optOutMessage'),
122
+ 'HelpMessage': _.get(opts, 'helpMessage'),
123
+ 'OptInKeywords': serialize.map(_.get(opts, 'optInKeywords'), function(e) { return e; }),
124
+ 'OptOutKeywords': serialize.map(_.get(opts, 'optOutKeywords'), function(e) { return e; }),
125
+ 'HelpKeywords': serialize.map(_.get(opts, 'helpKeywords'), function(e) { return e; })
112
126
  });
113
127
 
114
128
  var promise = this._version.create({uri: this._uri, method: 'POST', data: data});
@@ -514,6 +528,13 @@ UsAppToPersonPage.prototype[util.inspect.custom] = function inspect(depth,
514
528
  * Indicates whether the campaign was registered externally or not
515
529
  * @property {object} rateLimits -
516
530
  * Rate limit and/or classification set by each carrier
531
+ * @property {string} messageFlow - Consumer opt-in flow
532
+ * @property {string} optInMessage - Opt In Message
533
+ * @property {string} optOutMessage - Opt Out Message
534
+ * @property {string} helpMessage - Help Message
535
+ * @property {string} optInKeywords - Opt In Keywords
536
+ * @property {string} optOutKeywords - Opt Out Keywords
537
+ * @property {string} helpKeywords - Help Keywords
517
538
  * @property {Date} dateCreated -
518
539
  * The ISO 8601 date and time in GMT when the resource was created
519
540
  * @property {Date} dateUpdated -
@@ -549,6 +570,13 @@ UsAppToPersonInstance = function UsAppToPersonInstance(version, payload,
549
570
  this.campaignId = payload.campaign_id; // jshint ignore:line
550
571
  this.isExternallyRegistered = payload.is_externally_registered; // jshint ignore:line
551
572
  this.rateLimits = payload.rate_limits; // jshint ignore:line
573
+ this.messageFlow = payload.message_flow; // jshint ignore:line
574
+ this.optInMessage = payload.opt_in_message; // jshint ignore:line
575
+ this.optOutMessage = payload.opt_out_message; // jshint ignore:line
576
+ this.helpMessage = payload.help_message; // jshint ignore:line
577
+ this.optInKeywords = payload.opt_in_keywords; // jshint ignore:line
578
+ this.optOutKeywords = payload.opt_out_keywords; // jshint ignore:line
579
+ this.helpKeywords = payload.help_keywords; // jshint ignore:line
552
580
  this.dateCreated = deserialize.iso8601DateTime(payload.date_created); // jshint ignore:line
553
581
  this.dateUpdated = deserialize.iso8601DateTime(payload.date_updated); // jshint ignore:line
554
582
  this.url = payload.url; // jshint ignore:line
@@ -227,7 +227,7 @@ declare namespace VoiceResponse {
227
227
 
228
228
  type GatherLanguage = 'af-ZA'|'am-ET'|'ar-AE'|'ar-BH'|'ar-DZ'|'ar-EG'|'ar-IL'|'ar-IQ'|'ar-JO'|'ar-KW'|'ar-LB'|'ar-MA'|'ar-OM'|'ar-PS'|'ar-QA'|'ar-SA'|'ar-TN'|'az-AZ'|'bg-BG'|'bn-BD'|'bn-IN'|'ca-ES'|'cs-CZ'|'da-DK'|'de-DE'|'el-GR'|'en-AU'|'en-CA'|'en-GB'|'en-GH'|'en-IE'|'en-IN'|'en-KE'|'en-NG'|'en-NZ'|'en-PH'|'en-SG'|'en-TZ'|'en-US'|'en-ZA'|'es-AR'|'es-BO'|'es-CL'|'es-CO'|'es-CR'|'es-DO'|'es-EC'|'es-ES'|'es-GT'|'es-HN'|'es-MX'|'es-NI'|'es-PA'|'es-PE'|'es-PR'|'es-PY'|'es-SV'|'es-US'|'es-UY'|'es-VE'|'et-EE'|'eu-ES'|'fa-IR'|'fi-FI'|'fil-PH'|'fr-CA'|'fr-FR'|'gl-ES'|'gu-IN'|'he-IL'|'hi-IN'|'hr-HR'|'hu-HU'|'hy-AM'|'id-ID'|'is-IS'|'it-IT'|'ja-JP'|'jv-ID'|'ka-GE'|'km-KH'|'kn-IN'|'ko-KR'|'lo-LA'|'lt-LT'|'lv-LV'|'mk-MK'|'ml-IN'|'mn-MN'|'mr-IN'|'ms-MY'|'my-MM'|'nar-IQ'|'nb-NO'|'ne-NP'|'nl-BE'|'nl-NL'|'pa-guru-IN'|'pl-PL'|'pt-BR'|'pt-PT'|'ro-RO'|'ru-RU'|'si-LK'|'sk-SK'|'sl-SI'|'sq-AL'|'sr-RS'|'su-ID'|'sv-SE'|'sw-KE'|'sw-TZ'|'ta-IN'|'ta-LK'|'ta-MY'|'ta-SG'|'te-IN'|'th-TH'|'tr-TR'|'uk-UA'|'ur-IN'|'ur-PK'|'uz-UZ'|'vi-VN'|'yue-Hant-HK'|'zh'|'cmn-Hans-CN'|'zh-TW'|'cmn-Hant-TW'|'zu-ZA';
229
229
 
230
- type GatherSpeechModel = 'default'|'numbers_and_commands'|'phone_call';
230
+ type GatherSpeechModel = 'default'|'numbers_and_commands'|'phone_call'|'experimental_conversations'|'experimental_utterances';
231
231
 
232
232
  type NumberEvent = 'initiated'|'ringing'|'answered'|'completed';
233
233
 
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.1",
4
+ "version": "3.83.3",
5
5
  "author": "API Team <api@twilio.com>",
6
6
  "contributors": [
7
7
  {