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,120 +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 ChannelList
|
|
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
|
-
* @param brandedChannelSid - Branded Channel Sid.
|
|
22
|
-
*/
|
|
23
|
-
declare function ChannelList(version: TrustedComms, brandedChannelSid: string): ChannelListInstance;
|
|
24
|
-
|
|
25
|
-
interface ChannelListInstance {
|
|
26
|
-
/**
|
|
27
|
-
* create a ChannelInstance
|
|
28
|
-
*
|
|
29
|
-
* @param opts - Options for request
|
|
30
|
-
* @param callback - Callback to handle processed record
|
|
31
|
-
*/
|
|
32
|
-
create(opts: ChannelListInstanceCreateOptions, callback?: (error: Error | null, item: ChannelInstance) => any): Promise<ChannelInstance>;
|
|
33
|
-
/**
|
|
34
|
-
* Provide a user-friendly representation
|
|
35
|
-
*/
|
|
36
|
-
toJSON(): any;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Options to pass to create
|
|
41
|
-
*
|
|
42
|
-
* @property phoneNumberSid - Phone Number Sid to be branded.
|
|
43
|
-
*/
|
|
44
|
-
interface ChannelListInstanceCreateOptions {
|
|
45
|
-
phoneNumberSid: string;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
interface ChannelPayload extends ChannelResource, Page.TwilioResponsePayload {
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
interface ChannelResource {
|
|
52
|
-
account_sid: string;
|
|
53
|
-
brand_sid: string;
|
|
54
|
-
branded_channel_sid: string;
|
|
55
|
-
business_sid: string;
|
|
56
|
-
phone_number: string;
|
|
57
|
-
phone_number_sid: string;
|
|
58
|
-
url: string;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
interface ChannelSolution {
|
|
62
|
-
brandedChannelSid?: string;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
declare class ChannelInstance extends SerializableClass {
|
|
67
|
-
/**
|
|
68
|
-
* Initialize the ChannelContext
|
|
69
|
-
*
|
|
70
|
-
* PLEASE NOTE that this class contains preview products that are subject to
|
|
71
|
-
* change. Use them with caution. If you currently do not have developer preview
|
|
72
|
-
* access, please contact help@twilio.com.
|
|
73
|
-
*
|
|
74
|
-
* @param version - Version of the resource
|
|
75
|
-
* @param payload - The instance payload
|
|
76
|
-
* @param brandedChannelSid - Branded Channel Sid.
|
|
77
|
-
*/
|
|
78
|
-
constructor(version: TrustedComms, payload: ChannelPayload, brandedChannelSid: string);
|
|
79
|
-
|
|
80
|
-
accountSid: string;
|
|
81
|
-
brandSid: string;
|
|
82
|
-
brandedChannelSid: string;
|
|
83
|
-
businessSid: string;
|
|
84
|
-
phoneNumber: string;
|
|
85
|
-
phoneNumberSid: string;
|
|
86
|
-
/**
|
|
87
|
-
* Provide a user-friendly representation
|
|
88
|
-
*/
|
|
89
|
-
toJSON(): any;
|
|
90
|
-
url: string;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
declare class ChannelPage extends Page<TrustedComms, ChannelPayload, ChannelResource, ChannelInstance> {
|
|
95
|
-
/**
|
|
96
|
-
* Initialize the ChannelPage
|
|
97
|
-
*
|
|
98
|
-
* PLEASE NOTE that this class contains preview products that are subject to
|
|
99
|
-
* change. Use them with caution. If you currently do not have developer preview
|
|
100
|
-
* access, please contact help@twilio.com.
|
|
101
|
-
*
|
|
102
|
-
* @param version - Version of the resource
|
|
103
|
-
* @param response - Response from the API
|
|
104
|
-
* @param solution - Path solution
|
|
105
|
-
*/
|
|
106
|
-
constructor(version: TrustedComms, response: Response<string>, solution: ChannelSolution);
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* Build an instance of ChannelInstance
|
|
110
|
-
*
|
|
111
|
-
* @param payload - Payload response from the API
|
|
112
|
-
*/
|
|
113
|
-
getInstance(payload: ChannelPayload): ChannelInstance;
|
|
114
|
-
/**
|
|
115
|
-
* Provide a user-friendly representation
|
|
116
|
-
*/
|
|
117
|
-
toJSON(): any;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
export { ChannelInstance, ChannelList, ChannelListInstance, ChannelListInstanceCreateOptions, ChannelPage, ChannelPayload, ChannelResource, ChannelSolution }
|
|
@@ -1,257 +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 ChannelList;
|
|
19
|
-
var ChannelPage;
|
|
20
|
-
var ChannelInstance;
|
|
21
|
-
|
|
22
|
-
/* jshint ignore:start */
|
|
23
|
-
/**
|
|
24
|
-
* Initialize the ChannelList
|
|
25
|
-
*
|
|
26
|
-
* PLEASE NOTE that this class contains preview products that are subject to
|
|
27
|
-
* change. Use them with caution. If you currently do not have developer preview
|
|
28
|
-
* access, please contact help@twilio.com.
|
|
29
|
-
*
|
|
30
|
-
* @constructor Twilio.Preview.TrustedComms.BrandedChannelContext.ChannelList
|
|
31
|
-
*
|
|
32
|
-
* @param {Twilio.Preview.TrustedComms} version - Version of the resource
|
|
33
|
-
* @param {string} brandedChannelSid - Branded Channel Sid.
|
|
34
|
-
*/
|
|
35
|
-
/* jshint ignore:end */
|
|
36
|
-
ChannelList = function ChannelList(version, brandedChannelSid) {
|
|
37
|
-
/* jshint ignore:start */
|
|
38
|
-
/**
|
|
39
|
-
* @function channels
|
|
40
|
-
* @memberof Twilio.Preview.TrustedComms.BrandedChannelContext#
|
|
41
|
-
*
|
|
42
|
-
* @param {string} sid - sid of instance
|
|
43
|
-
*
|
|
44
|
-
* @returns {Twilio.Preview.TrustedComms.BrandedChannelContext.ChannelContext}
|
|
45
|
-
*/
|
|
46
|
-
/* jshint ignore:end */
|
|
47
|
-
function ChannelListInstance(sid) {
|
|
48
|
-
return ChannelListInstance.get(sid);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
ChannelListInstance._version = version;
|
|
52
|
-
// Path Solution
|
|
53
|
-
ChannelListInstance._solution = {brandedChannelSid: brandedChannelSid};
|
|
54
|
-
ChannelListInstance._uri = `/BrandedChannels/${brandedChannelSid}/Channels`;
|
|
55
|
-
/* jshint ignore:start */
|
|
56
|
-
/**
|
|
57
|
-
* create a ChannelInstance
|
|
58
|
-
*
|
|
59
|
-
* @function create
|
|
60
|
-
* @memberof Twilio.Preview.TrustedComms.BrandedChannelContext.ChannelList#
|
|
61
|
-
*
|
|
62
|
-
* @param {object} opts - Options for request
|
|
63
|
-
* @param {string} opts.phoneNumberSid - Phone Number Sid to be branded.
|
|
64
|
-
* @param {function} [callback] - Callback to handle processed record
|
|
65
|
-
*
|
|
66
|
-
* @returns {Promise} Resolves to processed ChannelInstance
|
|
67
|
-
*/
|
|
68
|
-
/* jshint ignore:end */
|
|
69
|
-
ChannelListInstance.create = function create(opts, callback) {
|
|
70
|
-
if (_.isUndefined(opts)) {
|
|
71
|
-
throw new Error('Required parameter "opts" missing.');
|
|
72
|
-
}
|
|
73
|
-
if (_.isUndefined(opts['phoneNumberSid'])) {
|
|
74
|
-
throw new Error('Required parameter "opts[\'phoneNumberSid\']" missing.');
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
var deferred = Q.defer();
|
|
78
|
-
var data = values.of({'PhoneNumberSid': _.get(opts, 'phoneNumberSid')});
|
|
79
|
-
|
|
80
|
-
var promise = this._version.create({uri: this._uri, method: 'POST', data: data});
|
|
81
|
-
|
|
82
|
-
promise = promise.then(function(payload) {
|
|
83
|
-
deferred.resolve(new ChannelInstance(this._version, payload));
|
|
84
|
-
}.bind(this));
|
|
85
|
-
|
|
86
|
-
promise.catch(function(error) {
|
|
87
|
-
deferred.reject(error);
|
|
88
|
-
});
|
|
89
|
-
|
|
90
|
-
if (_.isFunction(callback)) {
|
|
91
|
-
deferred.promise.nodeify(callback);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
return deferred.promise;
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
/* jshint ignore:start */
|
|
98
|
-
/**
|
|
99
|
-
* Provide a user-friendly representation
|
|
100
|
-
*
|
|
101
|
-
* @function toJSON
|
|
102
|
-
* @memberof Twilio.Preview.TrustedComms.BrandedChannelContext.ChannelList#
|
|
103
|
-
*
|
|
104
|
-
* @returns Object
|
|
105
|
-
*/
|
|
106
|
-
/* jshint ignore:end */
|
|
107
|
-
ChannelListInstance.toJSON = function toJSON() {
|
|
108
|
-
return this._solution;
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
ChannelListInstance[util.inspect.custom] = function inspect(depth, options) {
|
|
112
|
-
return util.inspect(this.toJSON(), options);
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
return ChannelListInstance;
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
/* jshint ignore:start */
|
|
120
|
-
/**
|
|
121
|
-
* Initialize the ChannelPage
|
|
122
|
-
*
|
|
123
|
-
* PLEASE NOTE that this class contains preview products that are subject to
|
|
124
|
-
* change. Use them with caution. If you currently do not have developer preview
|
|
125
|
-
* access, please contact help@twilio.com.
|
|
126
|
-
*
|
|
127
|
-
* @constructor Twilio.Preview.TrustedComms.BrandedChannelContext.ChannelPage
|
|
128
|
-
*
|
|
129
|
-
* @param {TrustedComms} version - Version of the resource
|
|
130
|
-
* @param {Response<string>} response - Response from the API
|
|
131
|
-
* @param {ChannelSolution} solution - Path solution
|
|
132
|
-
*
|
|
133
|
-
* @returns ChannelPage
|
|
134
|
-
*/
|
|
135
|
-
/* jshint ignore:end */
|
|
136
|
-
ChannelPage = function ChannelPage(version, response, solution) {
|
|
137
|
-
// Path Solution
|
|
138
|
-
this._solution = solution;
|
|
139
|
-
|
|
140
|
-
Page.prototype.constructor.call(this, version, response, this._solution);
|
|
141
|
-
};
|
|
142
|
-
|
|
143
|
-
_.extend(ChannelPage.prototype, Page.prototype);
|
|
144
|
-
ChannelPage.prototype.constructor = ChannelPage;
|
|
145
|
-
|
|
146
|
-
/* jshint ignore:start */
|
|
147
|
-
/**
|
|
148
|
-
* Build an instance of ChannelInstance
|
|
149
|
-
*
|
|
150
|
-
* @function getInstance
|
|
151
|
-
* @memberof Twilio.Preview.TrustedComms.BrandedChannelContext.ChannelPage#
|
|
152
|
-
*
|
|
153
|
-
* @param {ChannelPayload} payload - Payload response from the API
|
|
154
|
-
*
|
|
155
|
-
* @returns ChannelInstance
|
|
156
|
-
*/
|
|
157
|
-
/* jshint ignore:end */
|
|
158
|
-
ChannelPage.prototype.getInstance = function getInstance(payload) {
|
|
159
|
-
return new ChannelInstance(this._version, payload, this._solution.brandedChannelSid);
|
|
160
|
-
};
|
|
161
|
-
|
|
162
|
-
/* jshint ignore:start */
|
|
163
|
-
/**
|
|
164
|
-
* Provide a user-friendly representation
|
|
165
|
-
*
|
|
166
|
-
* @function toJSON
|
|
167
|
-
* @memberof Twilio.Preview.TrustedComms.BrandedChannelContext.ChannelPage#
|
|
168
|
-
*
|
|
169
|
-
* @returns Object
|
|
170
|
-
*/
|
|
171
|
-
/* jshint ignore:end */
|
|
172
|
-
ChannelPage.prototype.toJSON = function toJSON() {
|
|
173
|
-
let clone = {};
|
|
174
|
-
_.forOwn(this, function(value, key) {
|
|
175
|
-
if (!_.startsWith(key, '_') && ! _.isFunction(value)) {
|
|
176
|
-
clone[key] = value;
|
|
177
|
-
}
|
|
178
|
-
});
|
|
179
|
-
return clone;
|
|
180
|
-
};
|
|
181
|
-
|
|
182
|
-
ChannelPage.prototype[util.inspect.custom] = function inspect(depth, options) {
|
|
183
|
-
return util.inspect(this.toJSON(), options);
|
|
184
|
-
};
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
/* jshint ignore:start */
|
|
188
|
-
/**
|
|
189
|
-
* Initialize the ChannelContext
|
|
190
|
-
*
|
|
191
|
-
* PLEASE NOTE that this class contains preview products that are subject to
|
|
192
|
-
* change. Use them with caution. If you currently do not have developer preview
|
|
193
|
-
* access, please contact help@twilio.com.
|
|
194
|
-
*
|
|
195
|
-
* @constructor Twilio.Preview.TrustedComms.BrandedChannelContext.ChannelInstance
|
|
196
|
-
*
|
|
197
|
-
* @property {string} accountSid - Account Sid.
|
|
198
|
-
* @property {string} businessSid - Business Sid.
|
|
199
|
-
* @property {string} brandSid - Brand Sid.
|
|
200
|
-
* @property {string} brandedChannelSid - Branded Channel Sid.
|
|
201
|
-
* @property {string} phoneNumberSid - Phone Number Sid to be branded.
|
|
202
|
-
* @property {string} phoneNumber - Twilio number to assign to the Branded Channel
|
|
203
|
-
* @property {string} url - The URL of this resource.
|
|
204
|
-
*
|
|
205
|
-
* @param {TrustedComms} version - Version of the resource
|
|
206
|
-
* @param {ChannelPayload} payload - The instance payload
|
|
207
|
-
* @param {sid} brandedChannelSid - Branded Channel Sid.
|
|
208
|
-
*/
|
|
209
|
-
/* jshint ignore:end */
|
|
210
|
-
ChannelInstance = function ChannelInstance(version, payload, brandedChannelSid)
|
|
211
|
-
{
|
|
212
|
-
this._version = version;
|
|
213
|
-
|
|
214
|
-
// Marshaled Properties
|
|
215
|
-
this.accountSid = payload.account_sid; // jshint ignore:line
|
|
216
|
-
this.businessSid = payload.business_sid; // jshint ignore:line
|
|
217
|
-
this.brandSid = payload.brand_sid; // jshint ignore:line
|
|
218
|
-
this.brandedChannelSid = payload.branded_channel_sid; // jshint ignore:line
|
|
219
|
-
this.phoneNumberSid = payload.phone_number_sid; // jshint ignore:line
|
|
220
|
-
this.phoneNumber = payload.phone_number; // jshint ignore:line
|
|
221
|
-
this.url = payload.url; // jshint ignore:line
|
|
222
|
-
|
|
223
|
-
// Context
|
|
224
|
-
this._context = undefined;
|
|
225
|
-
this._solution = {brandedChannelSid: brandedChannelSid, };
|
|
226
|
-
};
|
|
227
|
-
|
|
228
|
-
/* jshint ignore:start */
|
|
229
|
-
/**
|
|
230
|
-
* Provide a user-friendly representation
|
|
231
|
-
*
|
|
232
|
-
* @function toJSON
|
|
233
|
-
* @memberof Twilio.Preview.TrustedComms.BrandedChannelContext.ChannelInstance#
|
|
234
|
-
*
|
|
235
|
-
* @returns Object
|
|
236
|
-
*/
|
|
237
|
-
/* jshint ignore:end */
|
|
238
|
-
ChannelInstance.prototype.toJSON = function toJSON() {
|
|
239
|
-
let clone = {};
|
|
240
|
-
_.forOwn(this, function(value, key) {
|
|
241
|
-
if (!_.startsWith(key, '_') && ! _.isFunction(value)) {
|
|
242
|
-
clone[key] = value;
|
|
243
|
-
}
|
|
244
|
-
});
|
|
245
|
-
return clone;
|
|
246
|
-
};
|
|
247
|
-
|
|
248
|
-
ChannelInstance.prototype[util.inspect.custom] = function inspect(depth,
|
|
249
|
-
options) {
|
|
250
|
-
return util.inspect(this.toJSON(), options);
|
|
251
|
-
};
|
|
252
|
-
|
|
253
|
-
module.exports = {
|
|
254
|
-
ChannelList: ChannelList,
|
|
255
|
-
ChannelPage: ChannelPage,
|
|
256
|
-
ChannelInstance: ChannelInstance
|
|
257
|
-
};
|
|
@@ -1,150 +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 { ChannelList } from './brandedChannel/channel';
|
|
12
|
-
import { ChannelListInstance } from './brandedChannel/channel';
|
|
13
|
-
import { SerializableClass } from '../../../interfaces';
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Initialize the BrandedChannelList
|
|
17
|
-
*
|
|
18
|
-
* PLEASE NOTE that this class contains preview products that are subject to
|
|
19
|
-
* change. Use them with caution. If you currently do not have developer preview
|
|
20
|
-
* access, please contact help@twilio.com.
|
|
21
|
-
*
|
|
22
|
-
* @param version - Version of the resource
|
|
23
|
-
*/
|
|
24
|
-
declare function BrandedChannelList(version: TrustedComms): BrandedChannelListInstance;
|
|
25
|
-
|
|
26
|
-
interface BrandedChannelListInstance {
|
|
27
|
-
/**
|
|
28
|
-
* @param sid - sid of instance
|
|
29
|
-
*/
|
|
30
|
-
(sid: string): BrandedChannelContext;
|
|
31
|
-
/**
|
|
32
|
-
* Constructs a branded_channel
|
|
33
|
-
*
|
|
34
|
-
* @param sid - Branded Channel Sid.
|
|
35
|
-
*/
|
|
36
|
-
get(sid: string): BrandedChannelContext;
|
|
37
|
-
/**
|
|
38
|
-
* Provide a user-friendly representation
|
|
39
|
-
*/
|
|
40
|
-
toJSON(): any;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
interface BrandedChannelPayload extends BrandedChannelResource, Page.TwilioResponsePayload {
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
interface BrandedChannelResource {
|
|
47
|
-
account_sid: string;
|
|
48
|
-
brand_sid: string;
|
|
49
|
-
business_sid: string;
|
|
50
|
-
links: string;
|
|
51
|
-
sid: string;
|
|
52
|
-
url: string;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
interface BrandedChannelSolution {
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
declare class BrandedChannelContext {
|
|
60
|
-
/**
|
|
61
|
-
* Initialize the BrandedChannelContext
|
|
62
|
-
*
|
|
63
|
-
* PLEASE NOTE that this class contains preview products that are subject to
|
|
64
|
-
* change. Use them with caution. If you currently do not have developer preview
|
|
65
|
-
* access, please contact help@twilio.com.
|
|
66
|
-
*
|
|
67
|
-
* @param version - Version of the resource
|
|
68
|
-
* @param sid - Branded Channel Sid.
|
|
69
|
-
*/
|
|
70
|
-
constructor(version: TrustedComms, sid: string);
|
|
71
|
-
|
|
72
|
-
channels: ChannelListInstance;
|
|
73
|
-
/**
|
|
74
|
-
* fetch a BrandedChannelInstance
|
|
75
|
-
*
|
|
76
|
-
* @param callback - Callback to handle processed record
|
|
77
|
-
*/
|
|
78
|
-
fetch(callback?: (error: Error | null, items: BrandedChannelInstance) => any): Promise<BrandedChannelInstance>;
|
|
79
|
-
/**
|
|
80
|
-
* Provide a user-friendly representation
|
|
81
|
-
*/
|
|
82
|
-
toJSON(): any;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
declare class BrandedChannelInstance extends SerializableClass {
|
|
87
|
-
/**
|
|
88
|
-
* Initialize the BrandedChannelContext
|
|
89
|
-
*
|
|
90
|
-
* PLEASE NOTE that this class contains preview products that are subject to
|
|
91
|
-
* change. Use them with caution. If you currently do not have developer preview
|
|
92
|
-
* access, please contact help@twilio.com.
|
|
93
|
-
*
|
|
94
|
-
* @param version - Version of the resource
|
|
95
|
-
* @param payload - The instance payload
|
|
96
|
-
* @param sid - Branded Channel Sid.
|
|
97
|
-
*/
|
|
98
|
-
constructor(version: TrustedComms, payload: BrandedChannelPayload, sid: string);
|
|
99
|
-
|
|
100
|
-
private _proxy: BrandedChannelContext;
|
|
101
|
-
accountSid: string;
|
|
102
|
-
brandSid: string;
|
|
103
|
-
businessSid: string;
|
|
104
|
-
/**
|
|
105
|
-
* Access the channels
|
|
106
|
-
*/
|
|
107
|
-
channels(): ChannelListInstance;
|
|
108
|
-
/**
|
|
109
|
-
* fetch a BrandedChannelInstance
|
|
110
|
-
*
|
|
111
|
-
* @param callback - Callback to handle processed record
|
|
112
|
-
*/
|
|
113
|
-
fetch(callback?: (error: Error | null, items: BrandedChannelInstance) => any): Promise<BrandedChannelInstance>;
|
|
114
|
-
links: string;
|
|
115
|
-
sid: string;
|
|
116
|
-
/**
|
|
117
|
-
* Provide a user-friendly representation
|
|
118
|
-
*/
|
|
119
|
-
toJSON(): any;
|
|
120
|
-
url: string;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
declare class BrandedChannelPage extends Page<TrustedComms, BrandedChannelPayload, BrandedChannelResource, BrandedChannelInstance> {
|
|
125
|
-
/**
|
|
126
|
-
* Initialize the BrandedChannelPage
|
|
127
|
-
*
|
|
128
|
-
* PLEASE NOTE that this class contains preview products that are subject to
|
|
129
|
-
* change. Use them with caution. If you currently do not have developer preview
|
|
130
|
-
* access, please contact help@twilio.com.
|
|
131
|
-
*
|
|
132
|
-
* @param version - Version of the resource
|
|
133
|
-
* @param response - Response from the API
|
|
134
|
-
* @param solution - Path solution
|
|
135
|
-
*/
|
|
136
|
-
constructor(version: TrustedComms, response: Response<string>, solution: BrandedChannelSolution);
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* Build an instance of BrandedChannelInstance
|
|
140
|
-
*
|
|
141
|
-
* @param payload - Payload response from the API
|
|
142
|
-
*/
|
|
143
|
-
getInstance(payload: BrandedChannelPayload): BrandedChannelInstance;
|
|
144
|
-
/**
|
|
145
|
-
* Provide a user-friendly representation
|
|
146
|
-
*/
|
|
147
|
-
toJSON(): any;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
export { BrandedChannelContext, BrandedChannelInstance, BrandedChannelList, BrandedChannelListInstance, BrandedChannelPage, BrandedChannelPayload, BrandedChannelResource, BrandedChannelSolution }
|