twilio 3.83.2 → 3.83.4

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 (51) hide show
  1. package/LICENSE +1 -1
  2. package/lib/rest/Content.d.ts +26 -0
  3. package/lib/rest/Content.js +54 -0
  4. package/lib/rest/FlexApi.d.ts +2 -0
  5. package/lib/rest/FlexApi.js +8 -0
  6. package/lib/rest/Messaging.d.ts +4 -0
  7. package/lib/rest/Messaging.js +18 -0
  8. package/lib/rest/Preview.d.ts +0 -10
  9. package/lib/rest/Preview.js +0 -46
  10. package/lib/rest/Twilio.d.ts +2 -0
  11. package/lib/rest/Twilio.js +14 -0
  12. package/lib/rest/content/V1.d.ts +25 -0
  13. package/lib/rest/content/V1.js +46 -0
  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 +323 -0
  17. package/lib/rest/content/v1/content.js +668 -0
  18. package/lib/rest/flexApi/V1.d.ts +3 -0
  19. package/lib/rest/flexApi/V1.js +11 -0
  20. package/lib/rest/flexApi/v1/assessments.d.ts +113 -0
  21. package/lib/rest/flexApi/v1/assessments.js +300 -0
  22. package/lib/rest/flexApi/v1/goodData.d.ts +2 -0
  23. package/lib/rest/flexApi/v1/goodData.js +2 -0
  24. package/lib/rest/insights/v1/call/summary.d.ts +5 -1
  25. package/lib/rest/insights/v1/call/summary.js +2 -0
  26. package/lib/rest/insights/v1/callSummaries.d.ts +5 -1
  27. package/lib/rest/insights/v1/callSummaries.js +2 -0
  28. package/lib/rest/lookups/v2/phoneNumber.d.ts +22 -0
  29. package/lib/rest/lookups/v2/phoneNumber.js +43 -1
  30. package/lib/rest/messaging/V1.d.ts +6 -0
  31. package/lib/rest/messaging/V1.js +24 -0
  32. package/lib/rest/messaging/v1/domainCert.d.ts +178 -0
  33. package/lib/rest/messaging/v1/domainCert.js +447 -0
  34. package/lib/rest/messaging/v1/domainConfig.d.ts +172 -0
  35. package/lib/rest/messaging/v1/domainConfig.js +421 -0
  36. package/lib/rest/microvisor/v1/device.d.ts +2 -0
  37. package/lib/rest/microvisor/v1/device.js +2 -0
  38. package/lib/rest/serverless/v1/service/build.d.ts +1 -1
  39. package/package.json +1 -1
  40. package/lib/rest/preview/TrustedComms.d.ts +0 -34
  41. package/lib/rest/preview/TrustedComms.js +0 -84
  42. package/lib/rest/preview/trusted_comms/brandedChannel/channel.d.ts +0 -120
  43. package/lib/rest/preview/trusted_comms/brandedChannel/channel.js +0 -257
  44. package/lib/rest/preview/trusted_comms/brandedChannel.d.ts +0 -150
  45. package/lib/rest/preview/trusted_comms/brandedChannel.js +0 -362
  46. package/lib/rest/preview/trusted_comms/brandsInformation.d.ts +0 -158
  47. package/lib/rest/preview/trusted_comms/brandsInformation.js +0 -338
  48. package/lib/rest/preview/trusted_comms/cps.d.ts +0 -156
  49. package/lib/rest/preview/trusted_comms/cps.js +0 -332
  50. package/lib/rest/preview/trusted_comms/currentCall.d.ts +0 -180
  51. package/lib/rest/preview/trusted_comms/currentCall.js +0 -367
@@ -0,0 +1,113 @@
1
+ /**
2
+ * This code was generated by
3
+ * \ / _ _ _| _ _
4
+ * | (_)\/(_)(_|\/| |(/_ v1.0.0
5
+ * / /
6
+ */
7
+
8
+ import Page = require('../../../base/Page');
9
+ import Response = require('../../../http/response');
10
+ import V1 = require('../V1');
11
+ import { SerializableClass } from '../../../interfaces';
12
+
13
+ /**
14
+ * Initialize the AssessmentsList
15
+ *
16
+ * @param version - Version of the resource
17
+ */
18
+ declare function AssessmentsList(version: V1): AssessmentsListInstance;
19
+
20
+ interface AssessmentsListInstance {
21
+ /**
22
+ * @param sid - sid of instance
23
+ */
24
+ (sid: string): AssessmentsContext;
25
+ /**
26
+ * Constructs a assessments
27
+ */
28
+ get(): AssessmentsContext;
29
+ /**
30
+ * Provide a user-friendly representation
31
+ */
32
+ toJSON(): any;
33
+ }
34
+
35
+ interface AssessmentsPayload extends AssessmentsResource, Page.TwilioResponsePayload {
36
+ }
37
+
38
+ interface AssessmentsResource {
39
+ url: string;
40
+ }
41
+
42
+ interface AssessmentsSolution {
43
+ }
44
+
45
+
46
+ declare class AssessmentsContext {
47
+ /**
48
+ * Initialize the AssessmentsContext
49
+ *
50
+ * @param version - Version of the resource
51
+ */
52
+ constructor(version: V1);
53
+
54
+ /**
55
+ * create a AssessmentsInstance
56
+ *
57
+ * @param callback - Callback to handle processed record
58
+ */
59
+ create(callback?: (error: Error | null, item: AssessmentsInstance) => any): Promise<AssessmentsInstance>;
60
+ /**
61
+ * Provide a user-friendly representation
62
+ */
63
+ toJSON(): any;
64
+ }
65
+
66
+
67
+ declare class AssessmentsInstance extends SerializableClass {
68
+ /**
69
+ * Initialize the AssessmentsContext
70
+ *
71
+ * @param version - Version of the resource
72
+ * @param payload - The instance payload
73
+ */
74
+ constructor(version: V1, payload: AssessmentsPayload);
75
+
76
+ private _proxy: AssessmentsContext;
77
+ /**
78
+ * create a AssessmentsInstance
79
+ *
80
+ * @param callback - Callback to handle processed record
81
+ */
82
+ create(callback?: (error: Error | null, items: AssessmentsInstance) => any): Promise<AssessmentsInstance>;
83
+ /**
84
+ * Provide a user-friendly representation
85
+ */
86
+ toJSON(): any;
87
+ url: string;
88
+ }
89
+
90
+
91
+ declare class AssessmentsPage extends Page<V1, AssessmentsPayload, AssessmentsResource, AssessmentsInstance> {
92
+ /**
93
+ * Initialize the AssessmentsPage
94
+ *
95
+ * @param version - Version of the resource
96
+ * @param response - Response from the API
97
+ * @param solution - Path solution
98
+ */
99
+ constructor(version: V1, response: Response<string>, solution: AssessmentsSolution);
100
+
101
+ /**
102
+ * Build an instance of AssessmentsInstance
103
+ *
104
+ * @param payload - Payload response from the API
105
+ */
106
+ getInstance(payload: AssessmentsPayload): AssessmentsInstance;
107
+ /**
108
+ * Provide a user-friendly representation
109
+ */
110
+ toJSON(): any;
111
+ }
112
+
113
+ export { AssessmentsContext, AssessmentsInstance, AssessmentsList, AssessmentsListInstance, AssessmentsPage, AssessmentsPayload, AssessmentsResource, AssessmentsSolution }
@@ -0,0 +1,300 @@
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 AssessmentsList;
19
+ var AssessmentsPage;
20
+ var AssessmentsInstance;
21
+ var AssessmentsContext;
22
+
23
+ /* jshint ignore:start */
24
+ /**
25
+ * Initialize the AssessmentsList
26
+ *
27
+ * @constructor Twilio.FlexApi.V1.AssessmentsList
28
+ *
29
+ * @param {Twilio.FlexApi.V1} version - Version of the resource
30
+ */
31
+ /* jshint ignore:end */
32
+ AssessmentsList = function AssessmentsList(version) {
33
+ /* jshint ignore:start */
34
+ /**
35
+ * @function assessments
36
+ * @memberof Twilio.FlexApi.V1#
37
+ *
38
+ * @param {string} sid - sid of instance
39
+ *
40
+ * @returns {Twilio.FlexApi.V1.AssessmentsContext}
41
+ */
42
+ /* jshint ignore:end */
43
+ function AssessmentsListInstance(sid) {
44
+ return AssessmentsListInstance.get(sid);
45
+ }
46
+
47
+ AssessmentsListInstance._version = version;
48
+ // Path Solution
49
+ AssessmentsListInstance._solution = {};
50
+ /* jshint ignore:start */
51
+ /**
52
+ * Constructs a assessments
53
+ *
54
+ * @function get
55
+ * @memberof Twilio.FlexApi.V1.AssessmentsList#
56
+ *
57
+ * @returns {Twilio.FlexApi.V1.AssessmentsContext}
58
+ */
59
+ /* jshint ignore:end */
60
+ AssessmentsListInstance.get = function get() {
61
+ return new AssessmentsContext(this._version);
62
+ };
63
+
64
+ /* jshint ignore:start */
65
+ /**
66
+ * Provide a user-friendly representation
67
+ *
68
+ * @function toJSON
69
+ * @memberof Twilio.FlexApi.V1.AssessmentsList#
70
+ *
71
+ * @returns Object
72
+ */
73
+ /* jshint ignore:end */
74
+ AssessmentsListInstance.toJSON = function toJSON() {
75
+ return this._solution;
76
+ };
77
+
78
+ AssessmentsListInstance[util.inspect.custom] = function inspect(depth, options)
79
+ {
80
+ return util.inspect(this.toJSON(), options);
81
+ };
82
+
83
+ return AssessmentsListInstance;
84
+ };
85
+
86
+
87
+ /* jshint ignore:start */
88
+ /**
89
+ * Initialize the AssessmentsPage
90
+ *
91
+ * @constructor Twilio.FlexApi.V1.AssessmentsPage
92
+ *
93
+ * @param {V1} version - Version of the resource
94
+ * @param {Response<string>} response - Response from the API
95
+ * @param {AssessmentsSolution} solution - Path solution
96
+ *
97
+ * @returns AssessmentsPage
98
+ */
99
+ /* jshint ignore:end */
100
+ AssessmentsPage = function AssessmentsPage(version, response, solution) {
101
+ // Path Solution
102
+ this._solution = solution;
103
+
104
+ Page.prototype.constructor.call(this, version, response, this._solution);
105
+ };
106
+
107
+ _.extend(AssessmentsPage.prototype, Page.prototype);
108
+ AssessmentsPage.prototype.constructor = AssessmentsPage;
109
+
110
+ /* jshint ignore:start */
111
+ /**
112
+ * Build an instance of AssessmentsInstance
113
+ *
114
+ * @function getInstance
115
+ * @memberof Twilio.FlexApi.V1.AssessmentsPage#
116
+ *
117
+ * @param {AssessmentsPayload} payload - Payload response from the API
118
+ *
119
+ * @returns AssessmentsInstance
120
+ */
121
+ /* jshint ignore:end */
122
+ AssessmentsPage.prototype.getInstance = function getInstance(payload) {
123
+ return new AssessmentsInstance(this._version, payload);
124
+ };
125
+
126
+ /* jshint ignore:start */
127
+ /**
128
+ * Provide a user-friendly representation
129
+ *
130
+ * @function toJSON
131
+ * @memberof Twilio.FlexApi.V1.AssessmentsPage#
132
+ *
133
+ * @returns Object
134
+ */
135
+ /* jshint ignore:end */
136
+ AssessmentsPage.prototype.toJSON = function toJSON() {
137
+ let clone = {};
138
+ _.forOwn(this, function(value, key) {
139
+ if (!_.startsWith(key, '_') && ! _.isFunction(value)) {
140
+ clone[key] = value;
141
+ }
142
+ });
143
+ return clone;
144
+ };
145
+
146
+ AssessmentsPage.prototype[util.inspect.custom] = function inspect(depth,
147
+ options) {
148
+ return util.inspect(this.toJSON(), options);
149
+ };
150
+
151
+
152
+ /* jshint ignore:start */
153
+ /**
154
+ * Initialize the AssessmentsContext
155
+ *
156
+ * @constructor Twilio.FlexApi.V1.AssessmentsInstance
157
+ *
158
+ * @property {string} url - The URL of this resource.
159
+ *
160
+ * @param {V1} version - Version of the resource
161
+ * @param {AssessmentsPayload} payload - The instance payload
162
+ */
163
+ /* jshint ignore:end */
164
+ AssessmentsInstance = function AssessmentsInstance(version, payload) {
165
+ this._version = version;
166
+
167
+ // Marshaled Properties
168
+ this.url = payload.url; // jshint ignore:line
169
+
170
+ // Context
171
+ this._context = undefined;
172
+ this._solution = {};
173
+ };
174
+
175
+ Object.defineProperty(AssessmentsInstance.prototype,
176
+ '_proxy', {
177
+ get: function() {
178
+ if (!this._context) {
179
+ this._context = new AssessmentsContext(this._version);
180
+ }
181
+
182
+ return this._context;
183
+ }
184
+ });
185
+
186
+ /* jshint ignore:start */
187
+ /**
188
+ * create a AssessmentsInstance
189
+ *
190
+ * @function create
191
+ * @memberof Twilio.FlexApi.V1.AssessmentsInstance#
192
+ *
193
+ * @param {function} [callback] - Callback to handle processed record
194
+ *
195
+ * @returns {Promise} Resolves to processed AssessmentsInstance
196
+ */
197
+ /* jshint ignore:end */
198
+ AssessmentsInstance.prototype.create = function create(callback) {
199
+ return this._proxy.create(callback);
200
+ };
201
+
202
+ /* jshint ignore:start */
203
+ /**
204
+ * Provide a user-friendly representation
205
+ *
206
+ * @function toJSON
207
+ * @memberof Twilio.FlexApi.V1.AssessmentsInstance#
208
+ *
209
+ * @returns Object
210
+ */
211
+ /* jshint ignore:end */
212
+ AssessmentsInstance.prototype.toJSON = function toJSON() {
213
+ let clone = {};
214
+ _.forOwn(this, function(value, key) {
215
+ if (!_.startsWith(key, '_') && ! _.isFunction(value)) {
216
+ clone[key] = value;
217
+ }
218
+ });
219
+ return clone;
220
+ };
221
+
222
+ AssessmentsInstance.prototype[util.inspect.custom] = function inspect(depth,
223
+ options) {
224
+ return util.inspect(this.toJSON(), options);
225
+ };
226
+
227
+
228
+ /* jshint ignore:start */
229
+ /**
230
+ * Initialize the AssessmentsContext
231
+ *
232
+ * @constructor Twilio.FlexApi.V1.AssessmentsContext
233
+ *
234
+ * @param {V1} version - Version of the resource
235
+ */
236
+ /* jshint ignore:end */
237
+ AssessmentsContext = function AssessmentsContext(version) {
238
+ this._version = version;
239
+
240
+ // Path Solution
241
+ this._solution = {};
242
+ this._uri = `/Accounts/Assessments`;
243
+ };
244
+
245
+ /* jshint ignore:start */
246
+ /**
247
+ * create a AssessmentsInstance
248
+ *
249
+ * @function create
250
+ * @memberof Twilio.FlexApi.V1.AssessmentsContext#
251
+ *
252
+ * @param {function} [callback] - Callback to handle processed record
253
+ *
254
+ * @returns {Promise} Resolves to processed AssessmentsInstance
255
+ */
256
+ /* jshint ignore:end */
257
+ AssessmentsContext.prototype.create = function create(callback) {
258
+ var deferred = Q.defer();
259
+ var promise = this._version.create({uri: this._uri, method: 'POST'});
260
+
261
+ promise = promise.then(function(payload) {
262
+ deferred.resolve(new AssessmentsInstance(this._version, payload));
263
+ }.bind(this));
264
+
265
+ promise.catch(function(error) {
266
+ deferred.reject(error);
267
+ });
268
+
269
+ if (_.isFunction(callback)) {
270
+ deferred.promise.nodeify(callback);
271
+ }
272
+
273
+ return deferred.promise;
274
+ };
275
+
276
+ /* jshint ignore:start */
277
+ /**
278
+ * Provide a user-friendly representation
279
+ *
280
+ * @function toJSON
281
+ * @memberof Twilio.FlexApi.V1.AssessmentsContext#
282
+ *
283
+ * @returns Object
284
+ */
285
+ /* jshint ignore:end */
286
+ AssessmentsContext.prototype.toJSON = function toJSON() {
287
+ return this._solution;
288
+ };
289
+
290
+ AssessmentsContext.prototype[util.inspect.custom] = function inspect(depth,
291
+ options) {
292
+ return util.inspect(this.toJSON(), options);
293
+ };
294
+
295
+ module.exports = {
296
+ AssessmentsList: AssessmentsList,
297
+ AssessmentsPage: AssessmentsPage,
298
+ AssessmentsInstance: AssessmentsInstance,
299
+ AssessmentsContext: AssessmentsContext
300
+ };
@@ -45,6 +45,7 @@ interface GoodDataPayload extends GoodDataResource, Page.TwilioResponsePayload {
45
45
  }
46
46
 
47
47
  interface GoodDataResource {
48
+ gd_base_url: string;
48
49
  session_expiry: string;
49
50
  session_id: string;
50
51
  url: string;
@@ -106,6 +107,7 @@ declare class GoodDataInstance extends SerializableClass {
106
107
  * @param callback - Callback to handle processed record
107
108
  */
108
109
  create(opts?: GoodDataInstanceCreateOptions, callback?: (error: Error | null, items: GoodDataInstance) => any): Promise<GoodDataInstance>;
110
+ gdBaseUrl: string;
109
111
  sessionExpiry: string;
110
112
  sessionId: string;
111
113
  /**
@@ -156,6 +156,7 @@ GoodDataPage.prototype[util.inspect.custom] = function inspect(depth, options) {
156
156
  * @property {string} workspaceId - Unique workspace ID in gooddata
157
157
  * @property {string} sessionExpiry - The session expiry date and time
158
158
  * @property {string} sessionId - Unique session ID
159
+ * @property {string} gdBaseUrl - GoodData login base URL
159
160
  * @property {string} url - The URL of this resource.
160
161
  *
161
162
  * @param {V1} version - Version of the resource
@@ -169,6 +170,7 @@ GoodDataInstance = function GoodDataInstance(version, payload) {
169
170
  this.workspaceId = payload.workspace_id; // jshint ignore:line
170
171
  this.sessionExpiry = payload.session_expiry; // jshint ignore:line
171
172
  this.sessionId = payload.session_id; // jshint ignore:line
173
+ this.gdBaseUrl = payload.gd_base_url; // jshint ignore:line
172
174
  this.url = payload.url; // jshint ignore:line
173
175
 
174
176
  // Context
@@ -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
@@ -27,12 +27,32 @@ declare function PhoneNumberList(version: V2): PhoneNumberListInstance;
27
27
  /**
28
28
  * Options to pass to fetch
29
29
  *
30
+ * @property addressCountryCode - User’s country, up to two characters.
31
+ * @property addressLine1 - User’s first address line.
32
+ * @property addressLine2 - User’s second address line.
33
+ * @property city - User’s city.
30
34
  * @property countryCode - Country code for national phone number lookups
35
+ * @property dateOfBirth - User’s date of birth, in YYYYMMDD format.
31
36
  * @property fields - Fields to return
37
+ * @property firstName - User’s first name.
38
+ * @property lastName - User’s last name.
39
+ * @property nationalId - User’s national ID, such as SSN or Passport ID.
40
+ * @property postalCode - User’s postal zip code.
41
+ * @property state - User’s country subdivision, such as state, province, or locality.
32
42
  */
33
43
  interface PhoneNumberInstanceFetchOptions {
44
+ addressCountryCode?: string;
45
+ addressLine1?: string;
46
+ addressLine2?: string;
47
+ city?: string;
34
48
  countryCode?: string;
49
+ dateOfBirth?: string;
35
50
  fields?: string;
51
+ firstName?: string;
52
+ lastName?: string;
53
+ nationalId?: string;
54
+ postalCode?: string;
55
+ state?: string;
36
56
  }
37
57
 
38
58
  interface PhoneNumberListInstance {
@@ -60,6 +80,7 @@ interface PhoneNumberResource {
60
80
  caller_name: object;
61
81
  calling_country_code: string;
62
82
  country_code: string;
83
+ identity_match: object;
63
84
  line_type_intelligence: object;
64
85
  live_activity: object;
65
86
  national_format: string;
@@ -137,6 +158,7 @@ declare class PhoneNumberInstance extends SerializableClass {
137
158
  * @param callback - Callback to handle processed record
138
159
  */
139
160
  fetch(opts?: PhoneNumberInstanceFetchOptions, callback?: (error: Error | null, items: PhoneNumberInstance) => any): Promise<PhoneNumberInstance>;
161
+ identityMatch: any;
140
162
  lineTypeIntelligence: any;
141
163
  liveActivity: any;
142
164
  nationalFormat: string;
@@ -181,6 +181,8 @@ PhoneNumberPage.prototype[util.inspect.custom] = function inspect(depth,
181
181
  * An object that contains live activity information
182
182
  * @property {object} lineTypeIntelligence -
183
183
  * An object that contains line type information
184
+ * @property {object} identityMatch -
185
+ * An object that contains identity match information
184
186
  * @property {string} url - The absolute URL of the resource
185
187
  *
186
188
  * @param {V2} version - Version of the resource
@@ -204,6 +206,7 @@ PhoneNumberInstance = function PhoneNumberInstance(version, payload,
204
206
  this.callForwarding = payload.call_forwarding; // jshint ignore:line
205
207
  this.liveActivity = payload.live_activity; // jshint ignore:line
206
208
  this.lineTypeIntelligence = payload.line_type_intelligence; // jshint ignore:line
209
+ this.identityMatch = payload.identity_match; // jshint ignore:line
207
210
  this.url = payload.url; // jshint ignore:line
208
211
 
209
212
  // Context
@@ -233,6 +236,19 @@ Object.defineProperty(PhoneNumberInstance.prototype,
233
236
  * @param {string} [opts.fields] - Fields to return
234
237
  * @param {string} [opts.countryCode] -
235
238
  * Country code for national phone number lookups
239
+ * @param {string} [opts.firstName] - User’s first name.
240
+ * @param {string} [opts.lastName] - User’s last name.
241
+ * @param {string} [opts.addressLine1] - User’s first address line.
242
+ * @param {string} [opts.addressLine2] - User’s second address line.
243
+ * @param {string} [opts.city] - User’s city.
244
+ * @param {string} [opts.state] -
245
+ * User’s country subdivision, such as state, province, or locality.
246
+ * @param {string} [opts.postalCode] - User’s postal zip code.
247
+ * @param {string} [opts.addressCountryCode] -
248
+ * User’s country, up to two characters.
249
+ * @param {string} [opts.nationalId] -
250
+ * User’s national ID, such as SSN or Passport ID.
251
+ * @param {string} [opts.dateOfBirth] - User’s date of birth, in YYYYMMDD format.
236
252
  * @param {function} [callback] - Callback to handle processed record
237
253
  *
238
254
  * @returns {Promise} Resolves to processed PhoneNumberInstance
@@ -300,6 +316,19 @@ PhoneNumberContext = function PhoneNumberContext(version, phoneNumber) {
300
316
  * @param {string} [opts.fields] - Fields to return
301
317
  * @param {string} [opts.countryCode] -
302
318
  * Country code for national phone number lookups
319
+ * @param {string} [opts.firstName] - User’s first name.
320
+ * @param {string} [opts.lastName] - User’s last name.
321
+ * @param {string} [opts.addressLine1] - User’s first address line.
322
+ * @param {string} [opts.addressLine2] - User’s second address line.
323
+ * @param {string} [opts.city] - User’s city.
324
+ * @param {string} [opts.state] -
325
+ * User’s country subdivision, such as state, province, or locality.
326
+ * @param {string} [opts.postalCode] - User’s postal zip code.
327
+ * @param {string} [opts.addressCountryCode] -
328
+ * User’s country, up to two characters.
329
+ * @param {string} [opts.nationalId] -
330
+ * User’s national ID, such as SSN or Passport ID.
331
+ * @param {string} [opts.dateOfBirth] - User’s date of birth, in YYYYMMDD format.
303
332
  * @param {function} [callback] - Callback to handle processed record
304
333
  *
305
334
  * @returns {Promise} Resolves to processed PhoneNumberInstance
@@ -313,7 +342,20 @@ PhoneNumberContext.prototype.fetch = function fetch(opts, callback) {
313
342
  opts = opts || {};
314
343
 
315
344
  var deferred = Q.defer();
316
- var data = values.of({'Fields': _.get(opts, 'fields'), 'CountryCode': _.get(opts, 'countryCode')});
345
+ var data = values.of({
346
+ 'Fields': _.get(opts, 'fields'),
347
+ 'CountryCode': _.get(opts, 'countryCode'),
348
+ 'FirstName': _.get(opts, 'firstName'),
349
+ 'LastName': _.get(opts, 'lastName'),
350
+ 'AddressLine1': _.get(opts, 'addressLine1'),
351
+ 'AddressLine2': _.get(opts, 'addressLine2'),
352
+ 'City': _.get(opts, 'city'),
353
+ 'State': _.get(opts, 'state'),
354
+ 'PostalCode': _.get(opts, 'postalCode'),
355
+ 'AddressCountryCode': _.get(opts, 'addressCountryCode'),
356
+ 'NationalId': _.get(opts, 'nationalId'),
357
+ 'DateOfBirth': _.get(opts, 'dateOfBirth')
358
+ });
317
359
 
318
360
  var promise = this._version.fetch({uri: this._uri, method: 'GET', params: data});
319
361
 
@@ -11,6 +11,10 @@ import { BrandRegistrationList } from './v1/brandRegistration';
11
11
  import { BrandRegistrationListInstance } from './v1/brandRegistration';
12
12
  import { DeactivationsList } from './v1/deactivation';
13
13
  import { DeactivationsListInstance } from './v1/deactivation';
14
+ import { DomainCertsList } from './v1/domainCert';
15
+ import { DomainCertsListInstance } from './v1/domainCert';
16
+ import { DomainConfigList } from './v1/domainConfig';
17
+ import { DomainConfigListInstance } from './v1/domainConfig';
14
18
  import { ExternalCampaignList } from './v1/externalCampaign';
15
19
  import { ExternalCampaignListInstance } from './v1/externalCampaign';
16
20
  import { ServiceList } from './v1/service';
@@ -31,6 +35,8 @@ declare class V1 extends Version {
31
35
 
32
36
  readonly brandRegistrations: BrandRegistrationListInstance;
33
37
  readonly deactivations: DeactivationsListInstance;
38
+ readonly domainCerts: DomainCertsListInstance;
39
+ readonly domainConfig: DomainConfigListInstance;
34
40
  readonly externalCampaign: ExternalCampaignListInstance;
35
41
  readonly services: ServiceListInstance;
36
42
  readonly tollfreeVerifications: TollfreeVerificationListInstance;