twilio 3.83.3 → 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.
- package/lib/rest/FlexApi.d.ts +2 -0
- package/lib/rest/FlexApi.js +8 -0
- package/lib/rest/Messaging.d.ts +4 -0
- package/lib/rest/Messaging.js +18 -0
- package/lib/rest/Preview.d.ts +0 -10
- package/lib/rest/Preview.js +0 -46
- package/lib/rest/content/v1/content/approvalFetch.d.ts +139 -0
- package/lib/rest/content/v1/content/approvalFetch.js +328 -0
- package/lib/rest/content/v1/content.d.ts +7 -6
- package/lib/rest/content/v1/content.js +31 -31
- package/lib/rest/flexApi/V1.d.ts +3 -0
- package/lib/rest/flexApi/V1.js +11 -0
- package/lib/rest/flexApi/v1/assessments.d.ts +113 -0
- package/lib/rest/flexApi/v1/assessments.js +300 -0
- package/lib/rest/lookups/v2/phoneNumber.d.ts +22 -0
- package/lib/rest/lookups/v2/phoneNumber.js +43 -1
- package/lib/rest/messaging/V1.d.ts +6 -0
- package/lib/rest/messaging/V1.js +24 -0
- package/lib/rest/messaging/v1/domainCert.d.ts +178 -0
- package/lib/rest/messaging/v1/domainCert.js +447 -0
- package/lib/rest/messaging/v1/domainConfig.d.ts +172 -0
- package/lib/rest/messaging/v1/domainConfig.js +421 -0
- package/lib/rest/microvisor/v1/device.d.ts +2 -0
- package/lib/rest/microvisor/v1/device.js +2 -0
- package/lib/rest/serverless/v1/service/build.d.ts +1 -1
- package/package.json +1 -1
- package/lib/rest/preview/TrustedComms.d.ts +0 -34
- package/lib/rest/preview/TrustedComms.js +0 -84
- package/lib/rest/preview/trusted_comms/brandedChannel/channel.d.ts +0 -120
- package/lib/rest/preview/trusted_comms/brandedChannel/channel.js +0 -257
- package/lib/rest/preview/trusted_comms/brandedChannel.d.ts +0 -150
- package/lib/rest/preview/trusted_comms/brandedChannel.js +0 -362
- package/lib/rest/preview/trusted_comms/brandsInformation.d.ts +0 -158
- package/lib/rest/preview/trusted_comms/brandsInformation.js +0 -338
- package/lib/rest/preview/trusted_comms/cps.d.ts +0 -156
- package/lib/rest/preview/trusted_comms/cps.js +0 -332
- package/lib/rest/preview/trusted_comms/currentCall.d.ts +0 -180
- package/lib/rest/preview/trusted_comms/currentCall.js +0 -367
|
@@ -1,332 +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 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 CpsList;
|
|
19
|
-
var CpsPage;
|
|
20
|
-
var CpsInstance;
|
|
21
|
-
var CpsContext;
|
|
22
|
-
|
|
23
|
-
/* jshint ignore:start */
|
|
24
|
-
/**
|
|
25
|
-
* Initialize the CpsList
|
|
26
|
-
*
|
|
27
|
-
* PLEASE NOTE that this class contains preview products that are subject to
|
|
28
|
-
* change. Use them with caution. If you currently do not have developer preview
|
|
29
|
-
* access, please contact help@twilio.com.
|
|
30
|
-
*
|
|
31
|
-
* @constructor Twilio.Preview.TrustedComms.CpsList
|
|
32
|
-
*
|
|
33
|
-
* @param {Twilio.Preview.TrustedComms} version - Version of the resource
|
|
34
|
-
*/
|
|
35
|
-
/* jshint ignore:end */
|
|
36
|
-
CpsList = function CpsList(version) {
|
|
37
|
-
/* jshint ignore:start */
|
|
38
|
-
/**
|
|
39
|
-
* @function cps
|
|
40
|
-
* @memberof Twilio.Preview.TrustedComms#
|
|
41
|
-
*
|
|
42
|
-
* @param {string} sid - sid of instance
|
|
43
|
-
*
|
|
44
|
-
* @returns {Twilio.Preview.TrustedComms.CpsContext}
|
|
45
|
-
*/
|
|
46
|
-
/* jshint ignore:end */
|
|
47
|
-
function CpsListInstance(sid) {
|
|
48
|
-
return CpsListInstance.get(sid);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
CpsListInstance._version = version;
|
|
52
|
-
// Path Solution
|
|
53
|
-
CpsListInstance._solution = {};
|
|
54
|
-
/* jshint ignore:start */
|
|
55
|
-
/**
|
|
56
|
-
* Constructs a cps
|
|
57
|
-
*
|
|
58
|
-
* @function get
|
|
59
|
-
* @memberof Twilio.Preview.TrustedComms.CpsList#
|
|
60
|
-
*
|
|
61
|
-
* @returns {Twilio.Preview.TrustedComms.CpsContext}
|
|
62
|
-
*/
|
|
63
|
-
/* jshint ignore:end */
|
|
64
|
-
CpsListInstance.get = function get() {
|
|
65
|
-
return new CpsContext(this._version);
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
/* jshint ignore:start */
|
|
69
|
-
/**
|
|
70
|
-
* Provide a user-friendly representation
|
|
71
|
-
*
|
|
72
|
-
* @function toJSON
|
|
73
|
-
* @memberof Twilio.Preview.TrustedComms.CpsList#
|
|
74
|
-
*
|
|
75
|
-
* @returns Object
|
|
76
|
-
*/
|
|
77
|
-
/* jshint ignore:end */
|
|
78
|
-
CpsListInstance.toJSON = function toJSON() {
|
|
79
|
-
return this._solution;
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
CpsListInstance[util.inspect.custom] = function inspect(depth, options) {
|
|
83
|
-
return util.inspect(this.toJSON(), options);
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
return CpsListInstance;
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
/* jshint ignore:start */
|
|
91
|
-
/**
|
|
92
|
-
* Initialize the CpsPage
|
|
93
|
-
*
|
|
94
|
-
* PLEASE NOTE that this class contains preview products that are subject to
|
|
95
|
-
* change. Use them with caution. If you currently do not have developer preview
|
|
96
|
-
* access, please contact help@twilio.com.
|
|
97
|
-
*
|
|
98
|
-
* @constructor Twilio.Preview.TrustedComms.CpsPage
|
|
99
|
-
*
|
|
100
|
-
* @param {TrustedComms} version - Version of the resource
|
|
101
|
-
* @param {Response<string>} response - Response from the API
|
|
102
|
-
* @param {CpsSolution} solution - Path solution
|
|
103
|
-
*
|
|
104
|
-
* @returns CpsPage
|
|
105
|
-
*/
|
|
106
|
-
/* jshint ignore:end */
|
|
107
|
-
CpsPage = function CpsPage(version, response, solution) {
|
|
108
|
-
// Path Solution
|
|
109
|
-
this._solution = solution;
|
|
110
|
-
|
|
111
|
-
Page.prototype.constructor.call(this, version, response, this._solution);
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
_.extend(CpsPage.prototype, Page.prototype);
|
|
115
|
-
CpsPage.prototype.constructor = CpsPage;
|
|
116
|
-
|
|
117
|
-
/* jshint ignore:start */
|
|
118
|
-
/**
|
|
119
|
-
* Build an instance of CpsInstance
|
|
120
|
-
*
|
|
121
|
-
* @function getInstance
|
|
122
|
-
* @memberof Twilio.Preview.TrustedComms.CpsPage#
|
|
123
|
-
*
|
|
124
|
-
* @param {CpsPayload} payload - Payload response from the API
|
|
125
|
-
*
|
|
126
|
-
* @returns CpsInstance
|
|
127
|
-
*/
|
|
128
|
-
/* jshint ignore:end */
|
|
129
|
-
CpsPage.prototype.getInstance = function getInstance(payload) {
|
|
130
|
-
return new CpsInstance(this._version, payload);
|
|
131
|
-
};
|
|
132
|
-
|
|
133
|
-
/* jshint ignore:start */
|
|
134
|
-
/**
|
|
135
|
-
* Provide a user-friendly representation
|
|
136
|
-
*
|
|
137
|
-
* @function toJSON
|
|
138
|
-
* @memberof Twilio.Preview.TrustedComms.CpsPage#
|
|
139
|
-
*
|
|
140
|
-
* @returns Object
|
|
141
|
-
*/
|
|
142
|
-
/* jshint ignore:end */
|
|
143
|
-
CpsPage.prototype.toJSON = function toJSON() {
|
|
144
|
-
let clone = {};
|
|
145
|
-
_.forOwn(this, function(value, key) {
|
|
146
|
-
if (!_.startsWith(key, '_') && ! _.isFunction(value)) {
|
|
147
|
-
clone[key] = value;
|
|
148
|
-
}
|
|
149
|
-
});
|
|
150
|
-
return clone;
|
|
151
|
-
};
|
|
152
|
-
|
|
153
|
-
CpsPage.prototype[util.inspect.custom] = function inspect(depth, options) {
|
|
154
|
-
return util.inspect(this.toJSON(), options);
|
|
155
|
-
};
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
/* jshint ignore:start */
|
|
159
|
-
/**
|
|
160
|
-
* Initialize the CpsContext
|
|
161
|
-
*
|
|
162
|
-
* PLEASE NOTE that this class contains preview products that are subject to
|
|
163
|
-
* change. Use them with caution. If you currently do not have developer preview
|
|
164
|
-
* access, please contact help@twilio.com.
|
|
165
|
-
*
|
|
166
|
-
* @constructor Twilio.Preview.TrustedComms.CpsInstance
|
|
167
|
-
*
|
|
168
|
-
* @property {string} cpsUrl - CPS URL of the phone number.
|
|
169
|
-
* @property {string} phoneNumber - Phone number passed.
|
|
170
|
-
* @property {string} url - The URL of this resource.
|
|
171
|
-
*
|
|
172
|
-
* @param {TrustedComms} version - Version of the resource
|
|
173
|
-
* @param {CpsPayload} payload - The instance payload
|
|
174
|
-
*/
|
|
175
|
-
/* jshint ignore:end */
|
|
176
|
-
CpsInstance = function CpsInstance(version, payload) {
|
|
177
|
-
this._version = version;
|
|
178
|
-
|
|
179
|
-
// Marshaled Properties
|
|
180
|
-
this.cpsUrl = payload.cps_url; // jshint ignore:line
|
|
181
|
-
this.phoneNumber = payload.phone_number; // jshint ignore:line
|
|
182
|
-
this.url = payload.url; // jshint ignore:line
|
|
183
|
-
|
|
184
|
-
// Context
|
|
185
|
-
this._context = undefined;
|
|
186
|
-
this._solution = {};
|
|
187
|
-
};
|
|
188
|
-
|
|
189
|
-
Object.defineProperty(CpsInstance.prototype,
|
|
190
|
-
'_proxy', {
|
|
191
|
-
get: function() {
|
|
192
|
-
if (!this._context) {
|
|
193
|
-
this._context = new CpsContext(this._version);
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
return this._context;
|
|
197
|
-
}
|
|
198
|
-
});
|
|
199
|
-
|
|
200
|
-
/* jshint ignore:start */
|
|
201
|
-
/**
|
|
202
|
-
* fetch a CpsInstance
|
|
203
|
-
*
|
|
204
|
-
* @function fetch
|
|
205
|
-
* @memberof Twilio.Preview.TrustedComms.CpsInstance#
|
|
206
|
-
*
|
|
207
|
-
* @param {object} [opts] - Options for request
|
|
208
|
-
* @param {string} [opts.xXcnamSensitivePhoneNumber] -
|
|
209
|
-
* Phone number to retrieve CPS.
|
|
210
|
-
* @param {function} [callback] - Callback to handle processed record
|
|
211
|
-
*
|
|
212
|
-
* @returns {Promise} Resolves to processed CpsInstance
|
|
213
|
-
*/
|
|
214
|
-
/* jshint ignore:end */
|
|
215
|
-
CpsInstance.prototype.fetch = function fetch(opts, callback) {
|
|
216
|
-
return this._proxy.fetch(opts, callback);
|
|
217
|
-
};
|
|
218
|
-
|
|
219
|
-
/* jshint ignore:start */
|
|
220
|
-
/**
|
|
221
|
-
* Provide a user-friendly representation
|
|
222
|
-
*
|
|
223
|
-
* @function toJSON
|
|
224
|
-
* @memberof Twilio.Preview.TrustedComms.CpsInstance#
|
|
225
|
-
*
|
|
226
|
-
* @returns Object
|
|
227
|
-
*/
|
|
228
|
-
/* jshint ignore:end */
|
|
229
|
-
CpsInstance.prototype.toJSON = function toJSON() {
|
|
230
|
-
let clone = {};
|
|
231
|
-
_.forOwn(this, function(value, key) {
|
|
232
|
-
if (!_.startsWith(key, '_') && ! _.isFunction(value)) {
|
|
233
|
-
clone[key] = value;
|
|
234
|
-
}
|
|
235
|
-
});
|
|
236
|
-
return clone;
|
|
237
|
-
};
|
|
238
|
-
|
|
239
|
-
CpsInstance.prototype[util.inspect.custom] = function inspect(depth, options) {
|
|
240
|
-
return util.inspect(this.toJSON(), options);
|
|
241
|
-
};
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
/* jshint ignore:start */
|
|
245
|
-
/**
|
|
246
|
-
* Initialize the CpsContext
|
|
247
|
-
*
|
|
248
|
-
* PLEASE NOTE that this class contains preview products that are subject to
|
|
249
|
-
* change. Use them with caution. If you currently do not have developer preview
|
|
250
|
-
* access, please contact help@twilio.com.
|
|
251
|
-
*
|
|
252
|
-
* @constructor Twilio.Preview.TrustedComms.CpsContext
|
|
253
|
-
*
|
|
254
|
-
* @param {TrustedComms} version - Version of the resource
|
|
255
|
-
*/
|
|
256
|
-
/* jshint ignore:end */
|
|
257
|
-
CpsContext = function CpsContext(version) {
|
|
258
|
-
this._version = version;
|
|
259
|
-
|
|
260
|
-
// Path Solution
|
|
261
|
-
this._solution = {};
|
|
262
|
-
this._uri = `/CPS`;
|
|
263
|
-
};
|
|
264
|
-
|
|
265
|
-
/* jshint ignore:start */
|
|
266
|
-
/**
|
|
267
|
-
* fetch a CpsInstance
|
|
268
|
-
*
|
|
269
|
-
* @function fetch
|
|
270
|
-
* @memberof Twilio.Preview.TrustedComms.CpsContext#
|
|
271
|
-
*
|
|
272
|
-
* @param {object} [opts] - Options for request
|
|
273
|
-
* @param {string} [opts.xXcnamSensitivePhoneNumber] -
|
|
274
|
-
* Phone number to retrieve CPS.
|
|
275
|
-
* @param {function} [callback] - Callback to handle processed record
|
|
276
|
-
*
|
|
277
|
-
* @returns {Promise} Resolves to processed CpsInstance
|
|
278
|
-
*/
|
|
279
|
-
/* jshint ignore:end */
|
|
280
|
-
CpsContext.prototype.fetch = function fetch(opts, callback) {
|
|
281
|
-
if (_.isFunction(opts)) {
|
|
282
|
-
callback = opts;
|
|
283
|
-
opts = {};
|
|
284
|
-
}
|
|
285
|
-
opts = opts || {};
|
|
286
|
-
|
|
287
|
-
var deferred = Q.defer();
|
|
288
|
-
var headers = values.of({
|
|
289
|
-
'X-Xcnam-Sensitive-Phone-Number': _.get(opts, 'xXcnamSensitivePhoneNumber')
|
|
290
|
-
});
|
|
291
|
-
|
|
292
|
-
var promise = this._version.fetch({uri: this._uri, method: 'GET', headers: headers});
|
|
293
|
-
|
|
294
|
-
promise = promise.then(function(payload) {
|
|
295
|
-
deferred.resolve(new CpsInstance(this._version, payload));
|
|
296
|
-
}.bind(this));
|
|
297
|
-
|
|
298
|
-
promise.catch(function(error) {
|
|
299
|
-
deferred.reject(error);
|
|
300
|
-
});
|
|
301
|
-
|
|
302
|
-
if (_.isFunction(callback)) {
|
|
303
|
-
deferred.promise.nodeify(callback);
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
return deferred.promise;
|
|
307
|
-
};
|
|
308
|
-
|
|
309
|
-
/* jshint ignore:start */
|
|
310
|
-
/**
|
|
311
|
-
* Provide a user-friendly representation
|
|
312
|
-
*
|
|
313
|
-
* @function toJSON
|
|
314
|
-
* @memberof Twilio.Preview.TrustedComms.CpsContext#
|
|
315
|
-
*
|
|
316
|
-
* @returns Object
|
|
317
|
-
*/
|
|
318
|
-
/* jshint ignore:end */
|
|
319
|
-
CpsContext.prototype.toJSON = function toJSON() {
|
|
320
|
-
return this._solution;
|
|
321
|
-
};
|
|
322
|
-
|
|
323
|
-
CpsContext.prototype[util.inspect.custom] = function inspect(depth, options) {
|
|
324
|
-
return util.inspect(this.toJSON(), options);
|
|
325
|
-
};
|
|
326
|
-
|
|
327
|
-
module.exports = {
|
|
328
|
-
CpsList: CpsList,
|
|
329
|
-
CpsPage: CpsPage,
|
|
330
|
-
CpsInstance: CpsInstance,
|
|
331
|
-
CpsContext: CpsContext
|
|
332
|
-
};
|
|
@@ -1,180 +0,0 @@
|
|
|
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 TrustedComms = require('../TrustedComms');
|
|
11
|
-
import { SerializableClass } from '../../../interfaces';
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Initialize the CurrentCallList
|
|
15
|
-
*
|
|
16
|
-
* PLEASE NOTE that this class contains preview products that are subject to
|
|
17
|
-
* change. Use them with caution. If you currently do not have developer preview
|
|
18
|
-
* access, please contact help@twilio.com.
|
|
19
|
-
*
|
|
20
|
-
* @param version - Version of the resource
|
|
21
|
-
*/
|
|
22
|
-
declare function CurrentCallList(version: TrustedComms): CurrentCallListInstance;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Options to pass to fetch
|
|
26
|
-
*
|
|
27
|
-
* @property xXcnamSensitivePhoneNumberFrom - The originating Phone Number
|
|
28
|
-
* @property xXcnamSensitivePhoneNumberTo - The terminating Phone Number
|
|
29
|
-
*/
|
|
30
|
-
interface CurrentCallInstanceFetchOptions {
|
|
31
|
-
xXcnamSensitivePhoneNumberFrom?: string;
|
|
32
|
-
xXcnamSensitivePhoneNumberTo?: string;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
interface CurrentCallListInstance {
|
|
36
|
-
/**
|
|
37
|
-
* @param sid - sid of instance
|
|
38
|
-
*/
|
|
39
|
-
(sid: string): CurrentCallContext;
|
|
40
|
-
/**
|
|
41
|
-
* Constructs a current_call
|
|
42
|
-
*/
|
|
43
|
-
get(): CurrentCallContext;
|
|
44
|
-
/**
|
|
45
|
-
* Provide a user-friendly representation
|
|
46
|
-
*/
|
|
47
|
-
toJSON(): any;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
interface CurrentCallPayload extends CurrentCallResource, Page.TwilioResponsePayload {
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
interface CurrentCallResource {
|
|
54
|
-
bg_color: string;
|
|
55
|
-
caller: string;
|
|
56
|
-
created_at: Date;
|
|
57
|
-
font_color: string;
|
|
58
|
-
from: string;
|
|
59
|
-
logo: string;
|
|
60
|
-
manager: string;
|
|
61
|
-
reason: string;
|
|
62
|
-
shield_img: string;
|
|
63
|
-
sid: string;
|
|
64
|
-
status: string;
|
|
65
|
-
to: string;
|
|
66
|
-
url: string;
|
|
67
|
-
use_case: string;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
interface CurrentCallSolution {
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
declare class CurrentCallContext {
|
|
75
|
-
/**
|
|
76
|
-
* Initialize the CurrentCallContext
|
|
77
|
-
*
|
|
78
|
-
* PLEASE NOTE that this class contains preview products that are subject to
|
|
79
|
-
* change. Use them with caution. If you currently do not have developer preview
|
|
80
|
-
* access, please contact help@twilio.com.
|
|
81
|
-
*
|
|
82
|
-
* @param version - Version of the resource
|
|
83
|
-
*/
|
|
84
|
-
constructor(version: TrustedComms);
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* fetch a CurrentCallInstance
|
|
88
|
-
*
|
|
89
|
-
* @param callback - Callback to handle processed record
|
|
90
|
-
*/
|
|
91
|
-
fetch(callback?: (error: Error | null, items: CurrentCallInstance) => any): Promise<CurrentCallInstance>;
|
|
92
|
-
/**
|
|
93
|
-
* fetch a CurrentCallInstance
|
|
94
|
-
*
|
|
95
|
-
* @param opts - Options for request
|
|
96
|
-
* @param callback - Callback to handle processed record
|
|
97
|
-
*/
|
|
98
|
-
fetch(opts?: CurrentCallInstanceFetchOptions, callback?: (error: Error | null, items: CurrentCallInstance) => any): Promise<CurrentCallInstance>;
|
|
99
|
-
/**
|
|
100
|
-
* Provide a user-friendly representation
|
|
101
|
-
*/
|
|
102
|
-
toJSON(): any;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
declare class CurrentCallInstance extends SerializableClass {
|
|
107
|
-
/**
|
|
108
|
-
* Initialize the CurrentCallContext
|
|
109
|
-
*
|
|
110
|
-
* PLEASE NOTE that this class contains preview products that are subject to
|
|
111
|
-
* change. Use them with caution. If you currently do not have developer preview
|
|
112
|
-
* access, please contact help@twilio.com.
|
|
113
|
-
*
|
|
114
|
-
* @param version - Version of the resource
|
|
115
|
-
* @param payload - The instance payload
|
|
116
|
-
*/
|
|
117
|
-
constructor(version: TrustedComms, payload: CurrentCallPayload);
|
|
118
|
-
|
|
119
|
-
private _proxy: CurrentCallContext;
|
|
120
|
-
bgColor: string;
|
|
121
|
-
caller: string;
|
|
122
|
-
createdAt: Date;
|
|
123
|
-
/**
|
|
124
|
-
* fetch a CurrentCallInstance
|
|
125
|
-
*
|
|
126
|
-
* @param callback - Callback to handle processed record
|
|
127
|
-
*/
|
|
128
|
-
fetch(callback?: (error: Error | null, items: CurrentCallInstance) => any): Promise<CurrentCallInstance>;
|
|
129
|
-
/**
|
|
130
|
-
* fetch a CurrentCallInstance
|
|
131
|
-
*
|
|
132
|
-
* @param opts - Options for request
|
|
133
|
-
* @param callback - Callback to handle processed record
|
|
134
|
-
*/
|
|
135
|
-
fetch(opts?: CurrentCallInstanceFetchOptions, callback?: (error: Error | null, items: CurrentCallInstance) => any): Promise<CurrentCallInstance>;
|
|
136
|
-
fontColor: string;
|
|
137
|
-
from: string;
|
|
138
|
-
logo: string;
|
|
139
|
-
manager: string;
|
|
140
|
-
reason: string;
|
|
141
|
-
shieldImg: string;
|
|
142
|
-
sid: string;
|
|
143
|
-
status: string;
|
|
144
|
-
to: string;
|
|
145
|
-
/**
|
|
146
|
-
* Provide a user-friendly representation
|
|
147
|
-
*/
|
|
148
|
-
toJSON(): any;
|
|
149
|
-
url: string;
|
|
150
|
-
useCase: string;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
declare class CurrentCallPage extends Page<TrustedComms, CurrentCallPayload, CurrentCallResource, CurrentCallInstance> {
|
|
155
|
-
/**
|
|
156
|
-
* Initialize the CurrentCallPage
|
|
157
|
-
*
|
|
158
|
-
* PLEASE NOTE that this class contains preview products that are subject to
|
|
159
|
-
* change. Use them with caution. If you currently do not have developer preview
|
|
160
|
-
* access, please contact help@twilio.com.
|
|
161
|
-
*
|
|
162
|
-
* @param version - Version of the resource
|
|
163
|
-
* @param response - Response from the API
|
|
164
|
-
* @param solution - Path solution
|
|
165
|
-
*/
|
|
166
|
-
constructor(version: TrustedComms, response: Response<string>, solution: CurrentCallSolution);
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* Build an instance of CurrentCallInstance
|
|
170
|
-
*
|
|
171
|
-
* @param payload - Payload response from the API
|
|
172
|
-
*/
|
|
173
|
-
getInstance(payload: CurrentCallPayload): CurrentCallInstance;
|
|
174
|
-
/**
|
|
175
|
-
* Provide a user-friendly representation
|
|
176
|
-
*/
|
|
177
|
-
toJSON(): any;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
export { CurrentCallContext, CurrentCallInstance, CurrentCallInstanceFetchOptions, CurrentCallList, CurrentCallListInstance, CurrentCallPage, CurrentCallPayload, CurrentCallResource, CurrentCallSolution }
|