twilio 3.83.0 → 3.83.1
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/api/v2010/account/call/userDefinedMessage.d.ts +107 -0
- package/lib/rest/api/v2010/account/call/userDefinedMessage.js +259 -0
- package/lib/rest/api/v2010/account/call/userDefinedMessageSubscription.d.ts +153 -0
- package/lib/rest/api/v2010/account/call/userDefinedMessageSubscription.js +407 -0
- package/lib/rest/api/v2010/account/call.d.ts +14 -0
- package/lib/rest/api/v2010/account/call.js +67 -0
- package/lib/rest/api/v2010/account/message.d.ts +4 -0
- package/lib/rest/api/v2010/account/message.js +7 -1
- package/lib/rest/proxy/v1/service/session/participant.d.ts +0 -2
- package/lib/rest/proxy/v1/service/session/participant.js +1 -6
- package/lib/rest/proxy/v1/service/session.d.ts +0 -4
- package/lib/rest/proxy/v1/service/session.js +2 -10
- package/lib/rest/taskrouter/v1/workspace/task/reservation.d.ts +6 -0
- package/lib/rest/taskrouter/v1/workspace/task/reservation.js +7 -0
- package/lib/rest/taskrouter/v1/workspace/taskQueue.d.ts +6 -0
- package/lib/rest/taskrouter/v1/workspace/taskQueue.js +4 -0
- package/lib/rest/taskrouter/v1/workspace/worker.d.ts +6 -0
- package/lib/rest/taskrouter/v1/workspace/worker.js +4 -0
- package/lib/rest/verify/v2/service/verification.d.ts +1 -1
- package/lib/rest/verify/v2/service/verification.js +2 -1
- package/lib/rest/verify/v2/template.js +1 -1
- package/lib/twiml/VoiceResponse.d.ts +4 -0
- package/lib/twiml/VoiceResponse.js +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,107 @@
|
|
|
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 V2010 = require('../../../V2010');
|
|
11
|
+
import { SerializableClass } from '../../../../../interfaces';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Initialize the UserDefinedMessageList
|
|
15
|
+
*
|
|
16
|
+
* @param version - Version of the resource
|
|
17
|
+
* @param accountSid - Account Sid.
|
|
18
|
+
* @param callSid - Call Sid.
|
|
19
|
+
*/
|
|
20
|
+
declare function UserDefinedMessageList(version: V2010, accountSid: string, callSid: string): UserDefinedMessageListInstance;
|
|
21
|
+
|
|
22
|
+
interface UserDefinedMessageListInstance {
|
|
23
|
+
/**
|
|
24
|
+
* create a UserDefinedMessageInstance
|
|
25
|
+
*
|
|
26
|
+
* @param opts - Options for request
|
|
27
|
+
* @param callback - Callback to handle processed record
|
|
28
|
+
*/
|
|
29
|
+
create(opts: UserDefinedMessageListInstanceCreateOptions, callback?: (error: Error | null, item: UserDefinedMessageInstance) => any): Promise<UserDefinedMessageInstance>;
|
|
30
|
+
/**
|
|
31
|
+
* Provide a user-friendly representation
|
|
32
|
+
*/
|
|
33
|
+
toJSON(): any;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Options to pass to create
|
|
38
|
+
*
|
|
39
|
+
* @property content - A unique string value to identify API call. This should be a unique string value per API call and can be a randomly generated.
|
|
40
|
+
* @property idempotencyKey - A unique string value to identify API call. This should be a unique string value per API call and can be a randomly generated.
|
|
41
|
+
*/
|
|
42
|
+
interface UserDefinedMessageListInstanceCreateOptions {
|
|
43
|
+
content: string;
|
|
44
|
+
idempotencyKey?: string;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
interface UserDefinedMessagePayload extends UserDefinedMessageResource, Page.TwilioResponsePayload {
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
interface UserDefinedMessageResource {
|
|
51
|
+
account_sid: string;
|
|
52
|
+
call_sid: string;
|
|
53
|
+
date_created: Date;
|
|
54
|
+
sid: string;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
interface UserDefinedMessageSolution {
|
|
58
|
+
accountSid?: string;
|
|
59
|
+
callSid?: string;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
declare class UserDefinedMessageInstance extends SerializableClass {
|
|
64
|
+
/**
|
|
65
|
+
* Initialize the UserDefinedMessageContext
|
|
66
|
+
*
|
|
67
|
+
* @param version - Version of the resource
|
|
68
|
+
* @param payload - The instance payload
|
|
69
|
+
* @param accountSid - Account Sid.
|
|
70
|
+
* @param callSid - Call Sid.
|
|
71
|
+
*/
|
|
72
|
+
constructor(version: V2010, payload: UserDefinedMessagePayload, accountSid: string, callSid: string);
|
|
73
|
+
|
|
74
|
+
accountSid: string;
|
|
75
|
+
callSid: string;
|
|
76
|
+
dateCreated: Date;
|
|
77
|
+
sid: string;
|
|
78
|
+
/**
|
|
79
|
+
* Provide a user-friendly representation
|
|
80
|
+
*/
|
|
81
|
+
toJSON(): any;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
declare class UserDefinedMessagePage extends Page<V2010, UserDefinedMessagePayload, UserDefinedMessageResource, UserDefinedMessageInstance> {
|
|
86
|
+
/**
|
|
87
|
+
* Initialize the UserDefinedMessagePage
|
|
88
|
+
*
|
|
89
|
+
* @param version - Version of the resource
|
|
90
|
+
* @param response - Response from the API
|
|
91
|
+
* @param solution - Path solution
|
|
92
|
+
*/
|
|
93
|
+
constructor(version: V2010, response: Response<string>, solution: UserDefinedMessageSolution);
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Build an instance of UserDefinedMessageInstance
|
|
97
|
+
*
|
|
98
|
+
* @param payload - Payload response from the API
|
|
99
|
+
*/
|
|
100
|
+
getInstance(payload: UserDefinedMessagePayload): UserDefinedMessageInstance;
|
|
101
|
+
/**
|
|
102
|
+
* Provide a user-friendly representation
|
|
103
|
+
*/
|
|
104
|
+
toJSON(): any;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export { UserDefinedMessageInstance, UserDefinedMessageList, UserDefinedMessageListInstance, UserDefinedMessageListInstanceCreateOptions, UserDefinedMessagePage, UserDefinedMessagePayload, UserDefinedMessageResource, UserDefinedMessageSolution }
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/* jshint ignore:start */
|
|
4
|
+
/**
|
|
5
|
+
* This code was generated by
|
|
6
|
+
* \ / _ _ _| _ _
|
|
7
|
+
* | (_)\/(_)(_|\/| |(/_ v1.0.0
|
|
8
|
+
* / /
|
|
9
|
+
*/
|
|
10
|
+
/* jshint ignore:end */
|
|
11
|
+
|
|
12
|
+
var Q = require('q'); /* jshint ignore:line */
|
|
13
|
+
var _ = require('lodash'); /* jshint ignore:line */
|
|
14
|
+
var util = require('util'); /* jshint ignore:line */
|
|
15
|
+
var Page = require('../../../../../base/Page'); /* jshint ignore:line */
|
|
16
|
+
var deserialize = require(
|
|
17
|
+
'../../../../../base/deserialize'); /* jshint ignore:line */
|
|
18
|
+
var values = require('../../../../../base/values'); /* jshint ignore:line */
|
|
19
|
+
|
|
20
|
+
var UserDefinedMessageList;
|
|
21
|
+
var UserDefinedMessagePage;
|
|
22
|
+
var UserDefinedMessageInstance;
|
|
23
|
+
|
|
24
|
+
/* jshint ignore:start */
|
|
25
|
+
/**
|
|
26
|
+
* Initialize the UserDefinedMessageList
|
|
27
|
+
*
|
|
28
|
+
* @constructor Twilio.Api.V2010.AccountContext.CallContext.UserDefinedMessageList
|
|
29
|
+
*
|
|
30
|
+
* @param {Twilio.Api.V2010} version - Version of the resource
|
|
31
|
+
* @param {string} accountSid - Account Sid.
|
|
32
|
+
* @param {string} callSid - Call Sid.
|
|
33
|
+
*/
|
|
34
|
+
/* jshint ignore:end */
|
|
35
|
+
UserDefinedMessageList = function UserDefinedMessageList(version, accountSid,
|
|
36
|
+
callSid) {
|
|
37
|
+
/* jshint ignore:start */
|
|
38
|
+
/**
|
|
39
|
+
* @function userDefinedMessages
|
|
40
|
+
* @memberof Twilio.Api.V2010.AccountContext.CallContext#
|
|
41
|
+
*
|
|
42
|
+
* @param {string} sid - sid of instance
|
|
43
|
+
*
|
|
44
|
+
* @returns {Twilio.Api.V2010.AccountContext.CallContext.UserDefinedMessageContext}
|
|
45
|
+
*/
|
|
46
|
+
/* jshint ignore:end */
|
|
47
|
+
function UserDefinedMessageListInstance(sid) {
|
|
48
|
+
return UserDefinedMessageListInstance.get(sid);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
UserDefinedMessageListInstance._version = version;
|
|
52
|
+
// Path Solution
|
|
53
|
+
UserDefinedMessageListInstance._solution = {accountSid: accountSid, callSid: callSid};
|
|
54
|
+
UserDefinedMessageListInstance._uri = `/Accounts/${accountSid}/Calls/${callSid}/UserDefinedMessages.json`;
|
|
55
|
+
/* jshint ignore:start */
|
|
56
|
+
/**
|
|
57
|
+
* create a UserDefinedMessageInstance
|
|
58
|
+
*
|
|
59
|
+
* @function create
|
|
60
|
+
* @memberof Twilio.Api.V2010.AccountContext.CallContext.UserDefinedMessageList#
|
|
61
|
+
*
|
|
62
|
+
* @param {object} opts - Options for request
|
|
63
|
+
* @param {string} opts.content -
|
|
64
|
+
* A unique string value to identify API call. This should be a unique string value per API call and can be a randomly generated.
|
|
65
|
+
* @param {string} [opts.idempotencyKey] -
|
|
66
|
+
* A unique string value to identify API call. This should be a unique string value per API call and can be a randomly generated.
|
|
67
|
+
* @param {function} [callback] - Callback to handle processed record
|
|
68
|
+
*
|
|
69
|
+
* @returns {Promise} Resolves to processed UserDefinedMessageInstance
|
|
70
|
+
*/
|
|
71
|
+
/* jshint ignore:end */
|
|
72
|
+
UserDefinedMessageListInstance.create = function create(opts, callback) {
|
|
73
|
+
if (_.isUndefined(opts)) {
|
|
74
|
+
throw new Error('Required parameter "opts" missing.');
|
|
75
|
+
}
|
|
76
|
+
if (_.isUndefined(opts['content'])) {
|
|
77
|
+
throw new Error('Required parameter "opts[\'content\']" missing.');
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
var deferred = Q.defer();
|
|
81
|
+
var data = values.of({
|
|
82
|
+
'Content': _.get(opts, 'content'),
|
|
83
|
+
'IdempotencyKey': _.get(opts, 'idempotencyKey')
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
var promise = this._version.create({uri: this._uri, method: 'POST', data: data});
|
|
87
|
+
|
|
88
|
+
promise = promise.then(function(payload) {
|
|
89
|
+
deferred.resolve(new UserDefinedMessageInstance(this._version, payload));
|
|
90
|
+
}.bind(this));
|
|
91
|
+
|
|
92
|
+
promise.catch(function(error) {
|
|
93
|
+
deferred.reject(error);
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
if (_.isFunction(callback)) {
|
|
97
|
+
deferred.promise.nodeify(callback);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
return deferred.promise;
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
/* jshint ignore:start */
|
|
104
|
+
/**
|
|
105
|
+
* Provide a user-friendly representation
|
|
106
|
+
*
|
|
107
|
+
* @function toJSON
|
|
108
|
+
* @memberof Twilio.Api.V2010.AccountContext.CallContext.UserDefinedMessageList#
|
|
109
|
+
*
|
|
110
|
+
* @returns Object
|
|
111
|
+
*/
|
|
112
|
+
/* jshint ignore:end */
|
|
113
|
+
UserDefinedMessageListInstance.toJSON = function toJSON() {
|
|
114
|
+
return this._solution;
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
UserDefinedMessageListInstance[util.inspect.custom] = function inspect(depth,
|
|
118
|
+
options) {
|
|
119
|
+
return util.inspect(this.toJSON(), options);
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
return UserDefinedMessageListInstance;
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
/* jshint ignore:start */
|
|
127
|
+
/**
|
|
128
|
+
* Initialize the UserDefinedMessagePage
|
|
129
|
+
*
|
|
130
|
+
* @constructor Twilio.Api.V2010.AccountContext.CallContext.UserDefinedMessagePage
|
|
131
|
+
*
|
|
132
|
+
* @param {V2010} version - Version of the resource
|
|
133
|
+
* @param {Response<string>} response - Response from the API
|
|
134
|
+
* @param {UserDefinedMessageSolution} solution - Path solution
|
|
135
|
+
*
|
|
136
|
+
* @returns UserDefinedMessagePage
|
|
137
|
+
*/
|
|
138
|
+
/* jshint ignore:end */
|
|
139
|
+
UserDefinedMessagePage = function UserDefinedMessagePage(version, response,
|
|
140
|
+
solution) {
|
|
141
|
+
// Path Solution
|
|
142
|
+
this._solution = solution;
|
|
143
|
+
|
|
144
|
+
Page.prototype.constructor.call(this, version, response, this._solution);
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
_.extend(UserDefinedMessagePage.prototype, Page.prototype);
|
|
148
|
+
UserDefinedMessagePage.prototype.constructor = UserDefinedMessagePage;
|
|
149
|
+
|
|
150
|
+
/* jshint ignore:start */
|
|
151
|
+
/**
|
|
152
|
+
* Build an instance of UserDefinedMessageInstance
|
|
153
|
+
*
|
|
154
|
+
* @function getInstance
|
|
155
|
+
* @memberof Twilio.Api.V2010.AccountContext.CallContext.UserDefinedMessagePage#
|
|
156
|
+
*
|
|
157
|
+
* @param {UserDefinedMessagePayload} payload - Payload response from the API
|
|
158
|
+
*
|
|
159
|
+
* @returns UserDefinedMessageInstance
|
|
160
|
+
*/
|
|
161
|
+
/* jshint ignore:end */
|
|
162
|
+
UserDefinedMessagePage.prototype.getInstance = function getInstance(payload) {
|
|
163
|
+
return new UserDefinedMessageInstance(
|
|
164
|
+
this._version,
|
|
165
|
+
payload,
|
|
166
|
+
this._solution.accountSid,
|
|
167
|
+
this._solution.callSid
|
|
168
|
+
);
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
/* jshint ignore:start */
|
|
172
|
+
/**
|
|
173
|
+
* Provide a user-friendly representation
|
|
174
|
+
*
|
|
175
|
+
* @function toJSON
|
|
176
|
+
* @memberof Twilio.Api.V2010.AccountContext.CallContext.UserDefinedMessagePage#
|
|
177
|
+
*
|
|
178
|
+
* @returns Object
|
|
179
|
+
*/
|
|
180
|
+
/* jshint ignore:end */
|
|
181
|
+
UserDefinedMessagePage.prototype.toJSON = function toJSON() {
|
|
182
|
+
let clone = {};
|
|
183
|
+
_.forOwn(this, function(value, key) {
|
|
184
|
+
if (!_.startsWith(key, '_') && ! _.isFunction(value)) {
|
|
185
|
+
clone[key] = value;
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
return clone;
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
UserDefinedMessagePage.prototype[util.inspect.custom] = function inspect(depth,
|
|
192
|
+
options) {
|
|
193
|
+
return util.inspect(this.toJSON(), options);
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
/* jshint ignore:start */
|
|
198
|
+
/**
|
|
199
|
+
* Initialize the UserDefinedMessageContext
|
|
200
|
+
*
|
|
201
|
+
* @constructor Twilio.Api.V2010.AccountContext.CallContext.UserDefinedMessageInstance
|
|
202
|
+
*
|
|
203
|
+
* @property {string} accountSid - Account Sid.
|
|
204
|
+
* @property {string} callSid - Call Sid.
|
|
205
|
+
* @property {string} sid -
|
|
206
|
+
* A string that uniquely identifies this User Defined Message.
|
|
207
|
+
* @property {Date} dateCreated - The date this User Defined Message was created
|
|
208
|
+
*
|
|
209
|
+
* @param {V2010} version - Version of the resource
|
|
210
|
+
* @param {UserDefinedMessagePayload} payload - The instance payload
|
|
211
|
+
* @param {sid} accountSid - Account Sid.
|
|
212
|
+
* @param {sid} callSid - Call Sid.
|
|
213
|
+
*/
|
|
214
|
+
/* jshint ignore:end */
|
|
215
|
+
UserDefinedMessageInstance = function UserDefinedMessageInstance(version,
|
|
216
|
+
payload, accountSid, callSid) {
|
|
217
|
+
this._version = version;
|
|
218
|
+
|
|
219
|
+
// Marshaled Properties
|
|
220
|
+
this.accountSid = payload.account_sid; // jshint ignore:line
|
|
221
|
+
this.callSid = payload.call_sid; // jshint ignore:line
|
|
222
|
+
this.sid = payload.sid; // jshint ignore:line
|
|
223
|
+
this.dateCreated = deserialize.rfc2822DateTime(payload.date_created); // jshint ignore:line
|
|
224
|
+
|
|
225
|
+
// Context
|
|
226
|
+
this._context = undefined;
|
|
227
|
+
this._solution = {accountSid: accountSid, callSid: callSid, };
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
/* jshint ignore:start */
|
|
231
|
+
/**
|
|
232
|
+
* Provide a user-friendly representation
|
|
233
|
+
*
|
|
234
|
+
* @function toJSON
|
|
235
|
+
* @memberof Twilio.Api.V2010.AccountContext.CallContext.UserDefinedMessageInstance#
|
|
236
|
+
*
|
|
237
|
+
* @returns Object
|
|
238
|
+
*/
|
|
239
|
+
/* jshint ignore:end */
|
|
240
|
+
UserDefinedMessageInstance.prototype.toJSON = function toJSON() {
|
|
241
|
+
let clone = {};
|
|
242
|
+
_.forOwn(this, function(value, key) {
|
|
243
|
+
if (!_.startsWith(key, '_') && ! _.isFunction(value)) {
|
|
244
|
+
clone[key] = value;
|
|
245
|
+
}
|
|
246
|
+
});
|
|
247
|
+
return clone;
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
UserDefinedMessageInstance.prototype[util.inspect.custom] = function
|
|
251
|
+
inspect(depth, options) {
|
|
252
|
+
return util.inspect(this.toJSON(), options);
|
|
253
|
+
};
|
|
254
|
+
|
|
255
|
+
module.exports = {
|
|
256
|
+
UserDefinedMessageList: UserDefinedMessageList,
|
|
257
|
+
UserDefinedMessagePage: UserDefinedMessagePage,
|
|
258
|
+
UserDefinedMessageInstance: UserDefinedMessageInstance
|
|
259
|
+
};
|
|
@@ -0,0 +1,153 @@
|
|
|
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 V2010 = require('../../../V2010');
|
|
11
|
+
import { SerializableClass } from '../../../../../interfaces';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Initialize the UserDefinedMessageSubscriptionList
|
|
15
|
+
*
|
|
16
|
+
* @param version - Version of the resource
|
|
17
|
+
* @param accountSid - Account Sid.
|
|
18
|
+
* @param callSid - Call Sid.
|
|
19
|
+
*/
|
|
20
|
+
declare function UserDefinedMessageSubscriptionList(version: V2010, accountSid: string, callSid: string): UserDefinedMessageSubscriptionListInstance;
|
|
21
|
+
|
|
22
|
+
interface UserDefinedMessageSubscriptionListInstance {
|
|
23
|
+
/**
|
|
24
|
+
* @param sid - sid of instance
|
|
25
|
+
*/
|
|
26
|
+
(sid: string): UserDefinedMessageSubscriptionContext;
|
|
27
|
+
/**
|
|
28
|
+
* create a UserDefinedMessageSubscriptionInstance
|
|
29
|
+
*
|
|
30
|
+
* @param opts - Options for request
|
|
31
|
+
* @param callback - Callback to handle processed record
|
|
32
|
+
*/
|
|
33
|
+
create(opts: UserDefinedMessageSubscriptionListInstanceCreateOptions, callback?: (error: Error | null, item: UserDefinedMessageSubscriptionInstance) => any): Promise<UserDefinedMessageSubscriptionInstance>;
|
|
34
|
+
/**
|
|
35
|
+
* Constructs a user_defined_message_subscription
|
|
36
|
+
*
|
|
37
|
+
* @param sid - User Defined Message Subscription Sid
|
|
38
|
+
*/
|
|
39
|
+
get(sid: string): UserDefinedMessageSubscriptionContext;
|
|
40
|
+
/**
|
|
41
|
+
* Provide a user-friendly representation
|
|
42
|
+
*/
|
|
43
|
+
toJSON(): any;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Options to pass to create
|
|
48
|
+
*
|
|
49
|
+
* @property callback - The URL we should call to send user defined messages.
|
|
50
|
+
* @property idempotencyKey - A unique string value to identify API call. This should be a unique string value per API call and can be a randomly generated.
|
|
51
|
+
* @property method - HTTP method used with the callback.
|
|
52
|
+
*/
|
|
53
|
+
interface UserDefinedMessageSubscriptionListInstanceCreateOptions {
|
|
54
|
+
callback: string;
|
|
55
|
+
idempotencyKey?: string;
|
|
56
|
+
method: string;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
interface UserDefinedMessageSubscriptionPayload extends UserDefinedMessageSubscriptionResource, Page.TwilioResponsePayload {
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
interface UserDefinedMessageSubscriptionResource {
|
|
63
|
+
account_sid: string;
|
|
64
|
+
call_sid: string;
|
|
65
|
+
date_created: Date;
|
|
66
|
+
sid: string;
|
|
67
|
+
uri: string;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
interface UserDefinedMessageSubscriptionSolution {
|
|
71
|
+
accountSid?: string;
|
|
72
|
+
callSid?: string;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
declare class UserDefinedMessageSubscriptionContext {
|
|
77
|
+
/**
|
|
78
|
+
* Initialize the UserDefinedMessageSubscriptionContext
|
|
79
|
+
*
|
|
80
|
+
* @param version - Version of the resource
|
|
81
|
+
* @param accountSid - Account Sid.
|
|
82
|
+
* @param callSid - Call Sid.
|
|
83
|
+
* @param sid - User Defined Message Subscription Sid
|
|
84
|
+
*/
|
|
85
|
+
constructor(version: V2010, accountSid: string, callSid: string, sid: string);
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* remove a UserDefinedMessageSubscriptionInstance
|
|
89
|
+
*
|
|
90
|
+
* @param callback - Callback to handle processed record
|
|
91
|
+
*/
|
|
92
|
+
remove(callback?: (error: Error | null, items: UserDefinedMessageSubscriptionInstance) => any): Promise<boolean>;
|
|
93
|
+
/**
|
|
94
|
+
* Provide a user-friendly representation
|
|
95
|
+
*/
|
|
96
|
+
toJSON(): any;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
declare class UserDefinedMessageSubscriptionInstance extends SerializableClass {
|
|
101
|
+
/**
|
|
102
|
+
* Initialize the UserDefinedMessageSubscriptionContext
|
|
103
|
+
*
|
|
104
|
+
* @param version - Version of the resource
|
|
105
|
+
* @param payload - The instance payload
|
|
106
|
+
* @param accountSid - Account Sid.
|
|
107
|
+
* @param callSid - Call Sid.
|
|
108
|
+
* @param sid - User Defined Message Subscription Sid
|
|
109
|
+
*/
|
|
110
|
+
constructor(version: V2010, payload: UserDefinedMessageSubscriptionPayload, accountSid: string, callSid: string, sid: string);
|
|
111
|
+
|
|
112
|
+
private _proxy: UserDefinedMessageSubscriptionContext;
|
|
113
|
+
accountSid: string;
|
|
114
|
+
callSid: string;
|
|
115
|
+
dateCreated: Date;
|
|
116
|
+
/**
|
|
117
|
+
* remove a UserDefinedMessageSubscriptionInstance
|
|
118
|
+
*
|
|
119
|
+
* @param callback - Callback to handle processed record
|
|
120
|
+
*/
|
|
121
|
+
remove(callback?: (error: Error | null, items: UserDefinedMessageSubscriptionInstance) => any): Promise<boolean>;
|
|
122
|
+
sid: string;
|
|
123
|
+
/**
|
|
124
|
+
* Provide a user-friendly representation
|
|
125
|
+
*/
|
|
126
|
+
toJSON(): any;
|
|
127
|
+
uri: string;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
declare class UserDefinedMessageSubscriptionPage extends Page<V2010, UserDefinedMessageSubscriptionPayload, UserDefinedMessageSubscriptionResource, UserDefinedMessageSubscriptionInstance> {
|
|
132
|
+
/**
|
|
133
|
+
* Initialize the UserDefinedMessageSubscriptionPage
|
|
134
|
+
*
|
|
135
|
+
* @param version - Version of the resource
|
|
136
|
+
* @param response - Response from the API
|
|
137
|
+
* @param solution - Path solution
|
|
138
|
+
*/
|
|
139
|
+
constructor(version: V2010, response: Response<string>, solution: UserDefinedMessageSubscriptionSolution);
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Build an instance of UserDefinedMessageSubscriptionInstance
|
|
143
|
+
*
|
|
144
|
+
* @param payload - Payload response from the API
|
|
145
|
+
*/
|
|
146
|
+
getInstance(payload: UserDefinedMessageSubscriptionPayload): UserDefinedMessageSubscriptionInstance;
|
|
147
|
+
/**
|
|
148
|
+
* Provide a user-friendly representation
|
|
149
|
+
*/
|
|
150
|
+
toJSON(): any;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export { UserDefinedMessageSubscriptionContext, UserDefinedMessageSubscriptionInstance, UserDefinedMessageSubscriptionList, UserDefinedMessageSubscriptionListInstance, UserDefinedMessageSubscriptionListInstanceCreateOptions, UserDefinedMessageSubscriptionPage, UserDefinedMessageSubscriptionPayload, UserDefinedMessageSubscriptionResource, UserDefinedMessageSubscriptionSolution }
|