twilio 3.82.2 → 3.83.0
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/Oauth.d.ts +32 -0
- package/lib/rest/Oauth.js +79 -0
- package/lib/rest/Supersim.d.ts +2 -0
- package/lib/rest/Supersim.js +9 -0
- package/lib/rest/Twilio.d.ts +2 -0
- package/lib/rest/Twilio.js +14 -0
- package/lib/rest/api/v2010/account/conference/participant.d.ts +2 -2
- package/lib/rest/api/v2010/account/conference/participant.js +6 -4
- package/lib/rest/api/v2010/account/message.d.ts +2 -0
- package/lib/rest/api/v2010/account/message.js +3 -0
- package/lib/rest/oauth/V1.d.ts +34 -0
- package/lib/rest/oauth/V1.js +80 -0
- package/lib/rest/oauth/v1/oauth.d.ts +115 -0
- package/lib/rest/oauth/v1/oauth.js +299 -0
- package/lib/rest/oauth/v1/openidDiscovery.d.ts +137 -0
- package/lib/rest/oauth/v1/openidDiscovery.js +329 -0
- package/lib/rest/oauth/v1/token.d.ts +115 -0
- package/lib/rest/oauth/v1/token.js +265 -0
- package/lib/rest/oauth/v1/userInfo.d.ts +123 -0
- package/lib/rest/oauth/v1/userInfo.js +308 -0
- package/lib/rest/supersim/V1.d.ts +3 -0
- package/lib/rest/supersim/V1.js +12 -0
- package/lib/rest/supersim/v1/settingsUpdate.d.ts +261 -0
- package/lib/rest/supersim/v1/settingsUpdate.js +466 -0
- package/lib/rest/verify/v2/service/accessToken.d.ts +0 -12
- package/lib/rest/verify/v2/service/accessToken.js +0 -12
- package/lib/rest/verify/v2/service/entity/challenge/notification.d.ts +0 -9
- package/lib/rest/verify/v2/service/entity/challenge/notification.js +0 -9
- package/lib/rest/verify/v2/service/entity/challenge.d.ts +0 -12
- package/lib/rest/verify/v2/service/entity/challenge.js +0 -12
- package/lib/rest/verify/v2/service/entity/factor.d.ts +0 -12
- package/lib/rest/verify/v2/service/entity/factor.js +0 -12
- package/lib/rest/verify/v2/service/entity/newFactor.d.ts +0 -9
- package/lib/rest/verify/v2/service/entity/newFactor.js +0 -9
- package/lib/rest/verify/v2/service/entity.d.ts +0 -12
- package/lib/rest/verify/v2/service/entity.js +0 -12
- package/lib/rest/verify/v2/service/webhook.d.ts +0 -12
- package/lib/rest/verify/v2/service/webhook.js +0 -12
- package/lib/rest/verify/v2/template.d.ts +2 -0
- package/lib/rest/verify/v2/template.js +2 -0
- package/lib/twiml/VoiceResponse.d.ts +3 -1
- package/lib/twiml/VoiceResponse.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,123 @@
|
|
|
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 UserInfoList
|
|
15
|
+
*
|
|
16
|
+
* @param version - Version of the resource
|
|
17
|
+
*/
|
|
18
|
+
declare function UserInfoList(version: V1): UserInfoListInstance;
|
|
19
|
+
|
|
20
|
+
interface UserInfoListInstance {
|
|
21
|
+
/**
|
|
22
|
+
* @param sid - sid of instance
|
|
23
|
+
*/
|
|
24
|
+
(sid: string): UserInfoContext;
|
|
25
|
+
/**
|
|
26
|
+
* Constructs a user_info
|
|
27
|
+
*/
|
|
28
|
+
get(): UserInfoContext;
|
|
29
|
+
/**
|
|
30
|
+
* Provide a user-friendly representation
|
|
31
|
+
*/
|
|
32
|
+
toJSON(): any;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
interface UserInfoPayload extends UserInfoResource, Page.TwilioResponsePayload {
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
interface UserInfoResource {
|
|
39
|
+
email: string;
|
|
40
|
+
first_name: string;
|
|
41
|
+
friendly_name: string;
|
|
42
|
+
last_name: string;
|
|
43
|
+
url: string;
|
|
44
|
+
user_sid: string;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
interface UserInfoSolution {
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
declare class UserInfoContext {
|
|
52
|
+
/**
|
|
53
|
+
* Initialize the UserInfoContext
|
|
54
|
+
*
|
|
55
|
+
* @param version - Version of the resource
|
|
56
|
+
*/
|
|
57
|
+
constructor(version: V1);
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* fetch a UserInfoInstance
|
|
61
|
+
*
|
|
62
|
+
* @param callback - Callback to handle processed record
|
|
63
|
+
*/
|
|
64
|
+
fetch(callback?: (error: Error | null, items: UserInfoInstance) => any): Promise<UserInfoInstance>;
|
|
65
|
+
/**
|
|
66
|
+
* Provide a user-friendly representation
|
|
67
|
+
*/
|
|
68
|
+
toJSON(): any;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
declare class UserInfoInstance extends SerializableClass {
|
|
73
|
+
/**
|
|
74
|
+
* Initialize the UserInfoContext
|
|
75
|
+
*
|
|
76
|
+
* @param version - Version of the resource
|
|
77
|
+
* @param payload - The instance payload
|
|
78
|
+
*/
|
|
79
|
+
constructor(version: V1, payload: UserInfoPayload);
|
|
80
|
+
|
|
81
|
+
private _proxy: UserInfoContext;
|
|
82
|
+
email: string;
|
|
83
|
+
/**
|
|
84
|
+
* fetch a UserInfoInstance
|
|
85
|
+
*
|
|
86
|
+
* @param callback - Callback to handle processed record
|
|
87
|
+
*/
|
|
88
|
+
fetch(callback?: (error: Error | null, items: UserInfoInstance) => any): Promise<UserInfoInstance>;
|
|
89
|
+
firstName: string;
|
|
90
|
+
friendlyName: string;
|
|
91
|
+
lastName: string;
|
|
92
|
+
/**
|
|
93
|
+
* Provide a user-friendly representation
|
|
94
|
+
*/
|
|
95
|
+
toJSON(): any;
|
|
96
|
+
url: string;
|
|
97
|
+
userSid: string;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
declare class UserInfoPage extends Page<V1, UserInfoPayload, UserInfoResource, UserInfoInstance> {
|
|
102
|
+
/**
|
|
103
|
+
* Initialize the UserInfoPage
|
|
104
|
+
*
|
|
105
|
+
* @param version - Version of the resource
|
|
106
|
+
* @param response - Response from the API
|
|
107
|
+
* @param solution - Path solution
|
|
108
|
+
*/
|
|
109
|
+
constructor(version: V1, response: Response<string>, solution: UserInfoSolution);
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Build an instance of UserInfoInstance
|
|
113
|
+
*
|
|
114
|
+
* @param payload - Payload response from the API
|
|
115
|
+
*/
|
|
116
|
+
getInstance(payload: UserInfoPayload): UserInfoInstance;
|
|
117
|
+
/**
|
|
118
|
+
* Provide a user-friendly representation
|
|
119
|
+
*/
|
|
120
|
+
toJSON(): any;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export { UserInfoContext, UserInfoInstance, UserInfoList, UserInfoListInstance, UserInfoPage, UserInfoPayload, UserInfoResource, UserInfoSolution }
|
|
@@ -0,0 +1,308 @@
|
|
|
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 UserInfoList;
|
|
19
|
+
var UserInfoPage;
|
|
20
|
+
var UserInfoInstance;
|
|
21
|
+
var UserInfoContext;
|
|
22
|
+
|
|
23
|
+
/* jshint ignore:start */
|
|
24
|
+
/**
|
|
25
|
+
* Initialize the UserInfoList
|
|
26
|
+
*
|
|
27
|
+
* @constructor Twilio.Oauth.V1.UserInfoList
|
|
28
|
+
*
|
|
29
|
+
* @param {Twilio.Oauth.V1} version - Version of the resource
|
|
30
|
+
*/
|
|
31
|
+
/* jshint ignore:end */
|
|
32
|
+
UserInfoList = function UserInfoList(version) {
|
|
33
|
+
/* jshint ignore:start */
|
|
34
|
+
/**
|
|
35
|
+
* @function userInfo
|
|
36
|
+
* @memberof Twilio.Oauth.V1#
|
|
37
|
+
*
|
|
38
|
+
* @param {string} sid - sid of instance
|
|
39
|
+
*
|
|
40
|
+
* @returns {Twilio.Oauth.V1.UserInfoContext}
|
|
41
|
+
*/
|
|
42
|
+
/* jshint ignore:end */
|
|
43
|
+
function UserInfoListInstance(sid) {
|
|
44
|
+
return UserInfoListInstance.get(sid);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
UserInfoListInstance._version = version;
|
|
48
|
+
// Path Solution
|
|
49
|
+
UserInfoListInstance._solution = {};
|
|
50
|
+
/* jshint ignore:start */
|
|
51
|
+
/**
|
|
52
|
+
* Constructs a user_info
|
|
53
|
+
*
|
|
54
|
+
* @function get
|
|
55
|
+
* @memberof Twilio.Oauth.V1.UserInfoList#
|
|
56
|
+
*
|
|
57
|
+
* @returns {Twilio.Oauth.V1.UserInfoContext}
|
|
58
|
+
*/
|
|
59
|
+
/* jshint ignore:end */
|
|
60
|
+
UserInfoListInstance.get = function get() {
|
|
61
|
+
return new UserInfoContext(this._version);
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
/* jshint ignore:start */
|
|
65
|
+
/**
|
|
66
|
+
* Provide a user-friendly representation
|
|
67
|
+
*
|
|
68
|
+
* @function toJSON
|
|
69
|
+
* @memberof Twilio.Oauth.V1.UserInfoList#
|
|
70
|
+
*
|
|
71
|
+
* @returns Object
|
|
72
|
+
*/
|
|
73
|
+
/* jshint ignore:end */
|
|
74
|
+
UserInfoListInstance.toJSON = function toJSON() {
|
|
75
|
+
return this._solution;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
UserInfoListInstance[util.inspect.custom] = function inspect(depth, options) {
|
|
79
|
+
return util.inspect(this.toJSON(), options);
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
return UserInfoListInstance;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
/* jshint ignore:start */
|
|
87
|
+
/**
|
|
88
|
+
* Initialize the UserInfoPage
|
|
89
|
+
*
|
|
90
|
+
* @constructor Twilio.Oauth.V1.UserInfoPage
|
|
91
|
+
*
|
|
92
|
+
* @param {V1} version - Version of the resource
|
|
93
|
+
* @param {Response<string>} response - Response from the API
|
|
94
|
+
* @param {UserInfoSolution} solution - Path solution
|
|
95
|
+
*
|
|
96
|
+
* @returns UserInfoPage
|
|
97
|
+
*/
|
|
98
|
+
/* jshint ignore:end */
|
|
99
|
+
UserInfoPage = function UserInfoPage(version, response, solution) {
|
|
100
|
+
// Path Solution
|
|
101
|
+
this._solution = solution;
|
|
102
|
+
|
|
103
|
+
Page.prototype.constructor.call(this, version, response, this._solution);
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
_.extend(UserInfoPage.prototype, Page.prototype);
|
|
107
|
+
UserInfoPage.prototype.constructor = UserInfoPage;
|
|
108
|
+
|
|
109
|
+
/* jshint ignore:start */
|
|
110
|
+
/**
|
|
111
|
+
* Build an instance of UserInfoInstance
|
|
112
|
+
*
|
|
113
|
+
* @function getInstance
|
|
114
|
+
* @memberof Twilio.Oauth.V1.UserInfoPage#
|
|
115
|
+
*
|
|
116
|
+
* @param {UserInfoPayload} payload - Payload response from the API
|
|
117
|
+
*
|
|
118
|
+
* @returns UserInfoInstance
|
|
119
|
+
*/
|
|
120
|
+
/* jshint ignore:end */
|
|
121
|
+
UserInfoPage.prototype.getInstance = function getInstance(payload) {
|
|
122
|
+
return new UserInfoInstance(this._version, payload);
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
/* jshint ignore:start */
|
|
126
|
+
/**
|
|
127
|
+
* Provide a user-friendly representation
|
|
128
|
+
*
|
|
129
|
+
* @function toJSON
|
|
130
|
+
* @memberof Twilio.Oauth.V1.UserInfoPage#
|
|
131
|
+
*
|
|
132
|
+
* @returns Object
|
|
133
|
+
*/
|
|
134
|
+
/* jshint ignore:end */
|
|
135
|
+
UserInfoPage.prototype.toJSON = function toJSON() {
|
|
136
|
+
let clone = {};
|
|
137
|
+
_.forOwn(this, function(value, key) {
|
|
138
|
+
if (!_.startsWith(key, '_') && ! _.isFunction(value)) {
|
|
139
|
+
clone[key] = value;
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
return clone;
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
UserInfoPage.prototype[util.inspect.custom] = function inspect(depth, options) {
|
|
146
|
+
return util.inspect(this.toJSON(), options);
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
/* jshint ignore:start */
|
|
151
|
+
/**
|
|
152
|
+
* Initialize the UserInfoContext
|
|
153
|
+
*
|
|
154
|
+
* @constructor Twilio.Oauth.V1.UserInfoInstance
|
|
155
|
+
*
|
|
156
|
+
* @property {string} userSid - The user sid
|
|
157
|
+
* @property {string} firstName - The first name of the end-user
|
|
158
|
+
* @property {string} lastName - The last name of the end-user
|
|
159
|
+
* @property {string} friendlyName - The friendly name of the end-user
|
|
160
|
+
* @property {string} email - The end-user's preferred email address
|
|
161
|
+
* @property {string} url - The url
|
|
162
|
+
*
|
|
163
|
+
* @param {V1} version - Version of the resource
|
|
164
|
+
* @param {UserInfoPayload} payload - The instance payload
|
|
165
|
+
*/
|
|
166
|
+
/* jshint ignore:end */
|
|
167
|
+
UserInfoInstance = function UserInfoInstance(version, payload) {
|
|
168
|
+
this._version = version;
|
|
169
|
+
|
|
170
|
+
// Marshaled Properties
|
|
171
|
+
this.userSid = payload.user_sid; // jshint ignore:line
|
|
172
|
+
this.firstName = payload.first_name; // jshint ignore:line
|
|
173
|
+
this.lastName = payload.last_name; // jshint ignore:line
|
|
174
|
+
this.friendlyName = payload.friendly_name; // jshint ignore:line
|
|
175
|
+
this.email = payload.email; // jshint ignore:line
|
|
176
|
+
this.url = payload.url; // jshint ignore:line
|
|
177
|
+
|
|
178
|
+
// Context
|
|
179
|
+
this._context = undefined;
|
|
180
|
+
this._solution = {};
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
Object.defineProperty(UserInfoInstance.prototype,
|
|
184
|
+
'_proxy', {
|
|
185
|
+
get: function() {
|
|
186
|
+
if (!this._context) {
|
|
187
|
+
this._context = new UserInfoContext(this._version);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
return this._context;
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
|
|
194
|
+
/* jshint ignore:start */
|
|
195
|
+
/**
|
|
196
|
+
* fetch a UserInfoInstance
|
|
197
|
+
*
|
|
198
|
+
* @function fetch
|
|
199
|
+
* @memberof Twilio.Oauth.V1.UserInfoInstance#
|
|
200
|
+
*
|
|
201
|
+
* @param {function} [callback] - Callback to handle processed record
|
|
202
|
+
*
|
|
203
|
+
* @returns {Promise} Resolves to processed UserInfoInstance
|
|
204
|
+
*/
|
|
205
|
+
/* jshint ignore:end */
|
|
206
|
+
UserInfoInstance.prototype.fetch = function fetch(callback) {
|
|
207
|
+
return this._proxy.fetch(callback);
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
/* jshint ignore:start */
|
|
211
|
+
/**
|
|
212
|
+
* Provide a user-friendly representation
|
|
213
|
+
*
|
|
214
|
+
* @function toJSON
|
|
215
|
+
* @memberof Twilio.Oauth.V1.UserInfoInstance#
|
|
216
|
+
*
|
|
217
|
+
* @returns Object
|
|
218
|
+
*/
|
|
219
|
+
/* jshint ignore:end */
|
|
220
|
+
UserInfoInstance.prototype.toJSON = function toJSON() {
|
|
221
|
+
let clone = {};
|
|
222
|
+
_.forOwn(this, function(value, key) {
|
|
223
|
+
if (!_.startsWith(key, '_') && ! _.isFunction(value)) {
|
|
224
|
+
clone[key] = value;
|
|
225
|
+
}
|
|
226
|
+
});
|
|
227
|
+
return clone;
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
UserInfoInstance.prototype[util.inspect.custom] = function inspect(depth,
|
|
231
|
+
options) {
|
|
232
|
+
return util.inspect(this.toJSON(), options);
|
|
233
|
+
};
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
/* jshint ignore:start */
|
|
237
|
+
/**
|
|
238
|
+
* Initialize the UserInfoContext
|
|
239
|
+
*
|
|
240
|
+
* @constructor Twilio.Oauth.V1.UserInfoContext
|
|
241
|
+
*
|
|
242
|
+
* @param {V1} version - Version of the resource
|
|
243
|
+
*/
|
|
244
|
+
/* jshint ignore:end */
|
|
245
|
+
UserInfoContext = function UserInfoContext(version) {
|
|
246
|
+
this._version = version;
|
|
247
|
+
|
|
248
|
+
// Path Solution
|
|
249
|
+
this._solution = {};
|
|
250
|
+
this._uri = `/userinfo`;
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
/* jshint ignore:start */
|
|
254
|
+
/**
|
|
255
|
+
* fetch a UserInfoInstance
|
|
256
|
+
*
|
|
257
|
+
* @function fetch
|
|
258
|
+
* @memberof Twilio.Oauth.V1.UserInfoContext#
|
|
259
|
+
*
|
|
260
|
+
* @param {function} [callback] - Callback to handle processed record
|
|
261
|
+
*
|
|
262
|
+
* @returns {Promise} Resolves to processed UserInfoInstance
|
|
263
|
+
*/
|
|
264
|
+
/* jshint ignore:end */
|
|
265
|
+
UserInfoContext.prototype.fetch = function fetch(callback) {
|
|
266
|
+
var deferred = Q.defer();
|
|
267
|
+
var promise = this._version.fetch({uri: this._uri, method: 'GET'});
|
|
268
|
+
|
|
269
|
+
promise = promise.then(function(payload) {
|
|
270
|
+
deferred.resolve(new UserInfoInstance(this._version, payload));
|
|
271
|
+
}.bind(this));
|
|
272
|
+
|
|
273
|
+
promise.catch(function(error) {
|
|
274
|
+
deferred.reject(error);
|
|
275
|
+
});
|
|
276
|
+
|
|
277
|
+
if (_.isFunction(callback)) {
|
|
278
|
+
deferred.promise.nodeify(callback);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
return deferred.promise;
|
|
282
|
+
};
|
|
283
|
+
|
|
284
|
+
/* jshint ignore:start */
|
|
285
|
+
/**
|
|
286
|
+
* Provide a user-friendly representation
|
|
287
|
+
*
|
|
288
|
+
* @function toJSON
|
|
289
|
+
* @memberof Twilio.Oauth.V1.UserInfoContext#
|
|
290
|
+
*
|
|
291
|
+
* @returns Object
|
|
292
|
+
*/
|
|
293
|
+
/* jshint ignore:end */
|
|
294
|
+
UserInfoContext.prototype.toJSON = function toJSON() {
|
|
295
|
+
return this._solution;
|
|
296
|
+
};
|
|
297
|
+
|
|
298
|
+
UserInfoContext.prototype[util.inspect.custom] = function inspect(depth,
|
|
299
|
+
options) {
|
|
300
|
+
return util.inspect(this.toJSON(), options);
|
|
301
|
+
};
|
|
302
|
+
|
|
303
|
+
module.exports = {
|
|
304
|
+
UserInfoList: UserInfoList,
|
|
305
|
+
UserInfoPage: UserInfoPage,
|
|
306
|
+
UserInfoInstance: UserInfoInstance,
|
|
307
|
+
UserInfoContext: UserInfoContext
|
|
308
|
+
};
|
|
@@ -17,6 +17,8 @@ import { NetworkAccessProfileList } from './v1/networkAccessProfile';
|
|
|
17
17
|
import { NetworkAccessProfileListInstance } from './v1/networkAccessProfile';
|
|
18
18
|
import { NetworkList } from './v1/network';
|
|
19
19
|
import { NetworkListInstance } from './v1/network';
|
|
20
|
+
import { SettingsUpdateList } from './v1/settingsUpdate';
|
|
21
|
+
import { SettingsUpdateListInstance } from './v1/settingsUpdate';
|
|
20
22
|
import { SimList } from './v1/sim';
|
|
21
23
|
import { SimListInstance } from './v1/sim';
|
|
22
24
|
import { SmsCommandList } from './v1/smsCommand';
|
|
@@ -38,6 +40,7 @@ declare class V1 extends Version {
|
|
|
38
40
|
readonly ipCommands: IpCommandListInstance;
|
|
39
41
|
readonly networkAccessProfiles: NetworkAccessProfileListInstance;
|
|
40
42
|
readonly networks: NetworkListInstance;
|
|
43
|
+
readonly settingsUpdates: SettingsUpdateListInstance;
|
|
41
44
|
readonly sims: SimListInstance;
|
|
42
45
|
readonly smsCommands: SmsCommandListInstance;
|
|
43
46
|
readonly usageRecords: UsageRecordListInstance;
|
package/lib/rest/supersim/V1.js
CHANGED
|
@@ -16,6 +16,7 @@ var IpCommandList = require('./v1/ipCommand').IpCommandList;
|
|
|
16
16
|
var NetworkAccessProfileList = require(
|
|
17
17
|
'./v1/networkAccessProfile').NetworkAccessProfileList;
|
|
18
18
|
var NetworkList = require('./v1/network').NetworkList;
|
|
19
|
+
var SettingsUpdateList = require('./v1/settingsUpdate').SettingsUpdateList;
|
|
19
20
|
var SimList = require('./v1/sim').SimList;
|
|
20
21
|
var SmsCommandList = require('./v1/smsCommand').SmsCommandList;
|
|
21
22
|
var UsageRecordList = require('./v1/usageRecord').UsageRecordList;
|
|
@@ -35,6 +36,8 @@ var Version = require('../../base/Version'); /* jshint ignore:line */
|
|
|
35
36
|
* @property {Twilio.Supersim.V1.NetworkList} networks - networks resource
|
|
36
37
|
* @property {Twilio.Supersim.V1.NetworkAccessProfileList} networkAccessProfiles -
|
|
37
38
|
* networkAccessProfiles resource
|
|
39
|
+
* @property {Twilio.Supersim.V1.SettingsUpdateList} settingsUpdates -
|
|
40
|
+
* settingsUpdates resource
|
|
38
41
|
* @property {Twilio.Supersim.V1.SimList} sims - sims resource
|
|
39
42
|
* @property {Twilio.Supersim.V1.SmsCommandList} smsCommands - smsCommands resource
|
|
40
43
|
* @property {Twilio.Supersim.V1.UsageRecordList} usageRecords -
|
|
@@ -52,6 +55,7 @@ function V1(domain) {
|
|
|
52
55
|
this._ipCommands = undefined;
|
|
53
56
|
this._networks = undefined;
|
|
54
57
|
this._networkAccessProfiles = undefined;
|
|
58
|
+
this._settingsUpdates = undefined;
|
|
55
59
|
this._sims = undefined;
|
|
56
60
|
this._smsCommands = undefined;
|
|
57
61
|
this._usageRecords = undefined;
|
|
@@ -100,6 +104,14 @@ Object.defineProperty(V1.prototype,
|
|
|
100
104
|
}
|
|
101
105
|
});
|
|
102
106
|
|
|
107
|
+
Object.defineProperty(V1.prototype,
|
|
108
|
+
'settingsUpdates', {
|
|
109
|
+
get: function() {
|
|
110
|
+
this._settingsUpdates = this._settingsUpdates || new SettingsUpdateList(this);
|
|
111
|
+
return this._settingsUpdates;
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
|
|
103
115
|
Object.defineProperty(V1.prototype,
|
|
104
116
|
'sims', {
|
|
105
117
|
get: function() {
|