twilio 3.69.0 → 3.71.3
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/CHANGES.md +96 -0
- package/README.md +1 -1
- package/lib/jwt/AccessToken.d.ts +16 -0
- package/lib/jwt/AccessToken.js +20 -0
- package/lib/jwt/ClientCapability.d.ts +1 -1
- package/lib/rest/Media.d.ts +28 -0
- package/lib/rest/Media.js +64 -0
- package/lib/rest/Supersim.d.ts +2 -0
- package/lib/rest/Supersim.js +8 -0
- package/lib/rest/Twilio.d.ts +2 -0
- package/lib/rest/Twilio.js +14 -0
- package/lib/rest/api/v2010/account/call.d.ts +1 -1
- package/lib/rest/api/v2010/account/call.js +1 -1
- package/lib/rest/api/v2010/account/incomingPhoneNumber/local.d.ts +5 -1
- package/lib/rest/api/v2010/account/incomingPhoneNumber/local.js +3 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber/mobile.d.ts +5 -1
- package/lib/rest/api/v2010/account/incomingPhoneNumber/mobile.js +3 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber/tollFree.d.ts +5 -1
- package/lib/rest/api/v2010/account/incomingPhoneNumber/tollFree.js +3 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber.d.ts +5 -1
- package/lib/rest/api/v2010/account/incomingPhoneNumber.js +3 -0
- package/lib/rest/conversations/v1/service/configuration/webhook.d.ts +172 -0
- package/lib/rest/conversations/v1/service/configuration/webhook.js +399 -0
- package/lib/rest/conversations/v1/service/configuration.d.ts +2 -0
- package/lib/rest/conversations/v1/service/configuration.js +13 -0
- package/lib/rest/flexApi/v1/configuration.d.ts +4 -0
- package/lib/rest/flexApi/v1/configuration.js +5 -0
- package/lib/rest/frontlineApi/v1/user.d.ts +4 -0
- package/lib/rest/frontlineApi/v1/user.js +10 -1
- package/lib/rest/media/V1.d.ts +28 -0
- package/lib/rest/media/V1.js +59 -0
- package/lib/rest/media/v1/mediaProcessor.d.ts +355 -0
- package/lib/rest/media/v1/mediaProcessor.js +702 -0
- package/lib/rest/media/v1/playerStreamer/playbackGrant.d.ts +162 -0
- package/lib/rest/media/v1/playerStreamer/playbackGrant.js +384 -0
- package/lib/rest/media/v1/playerStreamer.d.ts +366 -0
- package/lib/rest/media/v1/playerStreamer.js +729 -0
- package/lib/rest/messaging/v1/brandRegistration/brandVetting.d.ts +330 -0
- package/lib/rest/messaging/v1/brandRegistration/brandVetting.js +655 -0
- package/lib/rest/messaging/v1/brandRegistration.d.ts +15 -2
- package/lib/rest/messaging/v1/brandRegistration.js +37 -1
- package/lib/rest/messaging/v1/service.d.ts +8 -0
- package/lib/rest/messaging/v1/service.js +14 -0
- package/lib/rest/serverless/v1/service/build.d.ts +1 -1
- package/lib/rest/supersim/V1.d.ts +3 -0
- package/lib/rest/supersim/V1.js +11 -0
- package/lib/rest/supersim/v1/ipCommand.d.ts +362 -0
- package/lib/rest/supersim/v1/ipCommand.js +679 -0
- package/lib/rest/verify/v2/service/accessToken.d.ts +2 -0
- package/lib/rest/verify/v2/service/accessToken.js +3 -1
- package/lib/rest/verify/v2/service/entity/factor.d.ts +4 -2
- package/lib/rest/verify/v2/service/entity/factor.js +8 -3
- package/lib/rest/verify/v2/service/entity/newFactor.d.ts +2 -2
- package/lib/rest/verify/v2/service/entity/newFactor.js +1 -1
- package/lib/rest/verify/v2/service/verification.d.ts +4 -0
- package/lib/rest/verify/v2/service/verification.js +6 -1
- package/lib/rest/verify/v2/service.d.ts +6 -0
- package/lib/rest/verify/v2/service.js +12 -2
- package/lib/rest/verify/v2/verificationAttempt.d.ts +1 -1
- package/lib/rest/video/v1/room.d.ts +8 -0
- package/lib/rest/video/v1/room.js +13 -1
- package/lib/rest/wireless/v1/ratePlan.d.ts +1 -1
- package/lib/rest/wireless/v1/ratePlan.js +3 -3
- package/lib/rest/wireless/v1/sim.d.ts +4 -4
- package/lib/rest/wireless/v1/sim.js +18 -24
- package/lib/twiml/VoiceResponse.d.ts +1296 -24
- package/lib/twiml/VoiceResponse.js +2170 -82
- package/package.json +2 -2
|
@@ -0,0 +1,330 @@
|
|
|
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
|
+
type BrandVettingVettingProvider = 'campaign-verify';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Initialize the BrandVettingList
|
|
17
|
+
*
|
|
18
|
+
* PLEASE NOTE that this class contains beta products that are subject to change.
|
|
19
|
+
* Use them with caution.
|
|
20
|
+
*
|
|
21
|
+
* @param version - Version of the resource
|
|
22
|
+
* @param brandSid - A2P BrandRegistration Sid
|
|
23
|
+
*/
|
|
24
|
+
declare function BrandVettingList(version: V1, brandSid: string): BrandVettingListInstance;
|
|
25
|
+
|
|
26
|
+
interface BrandVettingListInstance {
|
|
27
|
+
/**
|
|
28
|
+
* @param sid - sid of instance
|
|
29
|
+
*/
|
|
30
|
+
(sid: string): BrandVettingContext;
|
|
31
|
+
/**
|
|
32
|
+
* create a BrandVettingInstance
|
|
33
|
+
*
|
|
34
|
+
* @param opts - Options for request
|
|
35
|
+
* @param callback - Callback to handle processed record
|
|
36
|
+
*/
|
|
37
|
+
create(opts: BrandVettingListInstanceCreateOptions, callback?: (error: Error | null, item: BrandVettingInstance) => any): Promise<BrandVettingInstance>;
|
|
38
|
+
/**
|
|
39
|
+
* Streams BrandVettingInstance records from the API.
|
|
40
|
+
*
|
|
41
|
+
* This operation lazily loads records as efficiently as possible until the limit
|
|
42
|
+
* is reached.
|
|
43
|
+
*
|
|
44
|
+
* The results are passed into the callback function, so this operation is memory
|
|
45
|
+
* efficient.
|
|
46
|
+
*
|
|
47
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
48
|
+
* function.
|
|
49
|
+
*
|
|
50
|
+
* @param callback - Function to process each record
|
|
51
|
+
*/
|
|
52
|
+
each(callback?: (item: BrandVettingInstance, done: (err?: Error) => void) => void): void;
|
|
53
|
+
/**
|
|
54
|
+
* Streams BrandVettingInstance records from the API.
|
|
55
|
+
*
|
|
56
|
+
* This operation lazily loads records as efficiently as possible until the limit
|
|
57
|
+
* is reached.
|
|
58
|
+
*
|
|
59
|
+
* The results are passed into the callback function, so this operation is memory
|
|
60
|
+
* efficient.
|
|
61
|
+
*
|
|
62
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
63
|
+
* function.
|
|
64
|
+
*
|
|
65
|
+
* @param opts - Options for request
|
|
66
|
+
* @param callback - Function to process each record
|
|
67
|
+
*/
|
|
68
|
+
each(opts?: BrandVettingListInstanceEachOptions, callback?: (item: BrandVettingInstance, done: (err?: Error) => void) => void): void;
|
|
69
|
+
/**
|
|
70
|
+
* Constructs a brand_vetting
|
|
71
|
+
*
|
|
72
|
+
* @param brandVettingSid - SID for third-party vetting record
|
|
73
|
+
*/
|
|
74
|
+
get(brandVettingSid: string): BrandVettingContext;
|
|
75
|
+
/**
|
|
76
|
+
* Retrieve a single target page of BrandVettingInstance records from the API.
|
|
77
|
+
*
|
|
78
|
+
* The request is executed immediately.
|
|
79
|
+
*
|
|
80
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
81
|
+
* function.
|
|
82
|
+
*
|
|
83
|
+
* @param callback - Callback to handle list of records
|
|
84
|
+
*/
|
|
85
|
+
getPage(callback?: (error: Error | null, items: BrandVettingPage) => any): Promise<BrandVettingPage>;
|
|
86
|
+
/**
|
|
87
|
+
* Retrieve a single target page of BrandVettingInstance records from the API.
|
|
88
|
+
*
|
|
89
|
+
* The request is executed immediately.
|
|
90
|
+
*
|
|
91
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
92
|
+
* function.
|
|
93
|
+
*
|
|
94
|
+
* @param targetUrl - API-generated URL for the requested results page
|
|
95
|
+
* @param callback - Callback to handle list of records
|
|
96
|
+
*/
|
|
97
|
+
getPage(targetUrl?: string, callback?: (error: Error | null, items: BrandVettingPage) => any): Promise<BrandVettingPage>;
|
|
98
|
+
/**
|
|
99
|
+
* Lists BrandVettingInstance records from the API as a list.
|
|
100
|
+
*
|
|
101
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
102
|
+
* function.
|
|
103
|
+
*
|
|
104
|
+
* @param callback - Callback to handle list of records
|
|
105
|
+
*/
|
|
106
|
+
list(callback?: (error: Error | null, items: BrandVettingInstance[]) => any): Promise<BrandVettingInstance[]>;
|
|
107
|
+
/**
|
|
108
|
+
* Lists BrandVettingInstance records from the API as a list.
|
|
109
|
+
*
|
|
110
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
111
|
+
* function.
|
|
112
|
+
*
|
|
113
|
+
* @param opts - Options for request
|
|
114
|
+
* @param callback - Callback to handle list of records
|
|
115
|
+
*/
|
|
116
|
+
list(opts?: BrandVettingListInstanceOptions, callback?: (error: Error | null, items: BrandVettingInstance[]) => any): Promise<BrandVettingInstance[]>;
|
|
117
|
+
/**
|
|
118
|
+
* Retrieve a single page of BrandVettingInstance records from the API.
|
|
119
|
+
*
|
|
120
|
+
* The request is executed immediately.
|
|
121
|
+
*
|
|
122
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
123
|
+
* function.
|
|
124
|
+
*
|
|
125
|
+
* @param callback - Callback to handle list of records
|
|
126
|
+
*/
|
|
127
|
+
page(callback?: (error: Error | null, items: BrandVettingPage) => any): Promise<BrandVettingPage>;
|
|
128
|
+
/**
|
|
129
|
+
* Retrieve a single page of BrandVettingInstance records from the API.
|
|
130
|
+
*
|
|
131
|
+
* The request is executed immediately.
|
|
132
|
+
*
|
|
133
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
134
|
+
* function.
|
|
135
|
+
*
|
|
136
|
+
* @param opts - Options for request
|
|
137
|
+
* @param callback - Callback to handle list of records
|
|
138
|
+
*/
|
|
139
|
+
page(opts?: BrandVettingListInstancePageOptions, callback?: (error: Error | null, items: BrandVettingPage) => any): Promise<BrandVettingPage>;
|
|
140
|
+
/**
|
|
141
|
+
* Provide a user-friendly representation
|
|
142
|
+
*/
|
|
143
|
+
toJSON(): any;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Options to pass to create
|
|
148
|
+
*
|
|
149
|
+
* @property vettingId - The unique ID of the vetting
|
|
150
|
+
* @property vettingProvider - Third-party provider of the vettings to create
|
|
151
|
+
*/
|
|
152
|
+
interface BrandVettingListInstanceCreateOptions {
|
|
153
|
+
vettingId?: string;
|
|
154
|
+
vettingProvider: BrandVettingVettingProvider;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Options to pass to each
|
|
159
|
+
*
|
|
160
|
+
* @property callback -
|
|
161
|
+
* Function to process each record. If this and a positional
|
|
162
|
+
* callback are passed, this one will be used
|
|
163
|
+
* @property done - Function to be called upon completion of streaming
|
|
164
|
+
* @property limit -
|
|
165
|
+
* Upper limit for the number of records to return.
|
|
166
|
+
* each() guarantees never to return more than limit.
|
|
167
|
+
* Default is no limit
|
|
168
|
+
* @property pageSize -
|
|
169
|
+
* Number of records to fetch per request,
|
|
170
|
+
* when not set will use the default value of 50 records.
|
|
171
|
+
* If no pageSize is defined but a limit is defined,
|
|
172
|
+
* each() will attempt to read the limit with the most efficient
|
|
173
|
+
* page size, i.e. min(limit, 1000)
|
|
174
|
+
* @property vettingProvider - Third-party provider of the vettings to create
|
|
175
|
+
*/
|
|
176
|
+
interface BrandVettingListInstanceEachOptions {
|
|
177
|
+
callback?: (item: BrandVettingInstance, done: (err?: Error) => void) => void;
|
|
178
|
+
done?: Function;
|
|
179
|
+
limit?: number;
|
|
180
|
+
pageSize?: number;
|
|
181
|
+
vettingProvider?: BrandVettingVettingProvider;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Options to pass to list
|
|
186
|
+
*
|
|
187
|
+
* @property limit -
|
|
188
|
+
* Upper limit for the number of records to return.
|
|
189
|
+
* list() guarantees never to return more than limit.
|
|
190
|
+
* Default is no limit
|
|
191
|
+
* @property pageSize -
|
|
192
|
+
* Number of records to fetch per request,
|
|
193
|
+
* when not set will use the default value of 50 records.
|
|
194
|
+
* If no page_size is defined but a limit is defined,
|
|
195
|
+
* list() will attempt to read the limit with the most
|
|
196
|
+
* efficient page size, i.e. min(limit, 1000)
|
|
197
|
+
* @property vettingProvider - Third-party provider of the vettings to create
|
|
198
|
+
*/
|
|
199
|
+
interface BrandVettingListInstanceOptions {
|
|
200
|
+
limit?: number;
|
|
201
|
+
pageSize?: number;
|
|
202
|
+
vettingProvider?: BrandVettingVettingProvider;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Options to pass to page
|
|
207
|
+
*
|
|
208
|
+
* @property pageNumber - Page Number, this value is simply for client state
|
|
209
|
+
* @property pageSize - Number of records to return, defaults to 50
|
|
210
|
+
* @property pageToken - PageToken provided by the API
|
|
211
|
+
* @property vettingProvider - Third-party provider of the vettings to create
|
|
212
|
+
*/
|
|
213
|
+
interface BrandVettingListInstancePageOptions {
|
|
214
|
+
pageNumber?: number;
|
|
215
|
+
pageSize?: number;
|
|
216
|
+
pageToken?: string;
|
|
217
|
+
vettingProvider?: BrandVettingVettingProvider;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
interface BrandVettingPayload extends BrandVettingResource, Page.TwilioResponsePayload {
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
interface BrandVettingResource {
|
|
224
|
+
account_sid: string;
|
|
225
|
+
brand_sid: string;
|
|
226
|
+
brand_vetting_sid: string;
|
|
227
|
+
date_created: Date;
|
|
228
|
+
date_updated: Date;
|
|
229
|
+
url: string;
|
|
230
|
+
vetting_class: string;
|
|
231
|
+
vetting_id: string;
|
|
232
|
+
vetting_provider: BrandVettingVettingProvider;
|
|
233
|
+
vetting_status: string;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
interface BrandVettingSolution {
|
|
237
|
+
brandSid?: string;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
declare class BrandVettingContext {
|
|
242
|
+
/**
|
|
243
|
+
* Initialize the BrandVettingContext
|
|
244
|
+
*
|
|
245
|
+
* PLEASE NOTE that this class contains beta products that are subject to change.
|
|
246
|
+
* Use them with caution.
|
|
247
|
+
*
|
|
248
|
+
* @param version - Version of the resource
|
|
249
|
+
* @param brandSid - A2P BrandRegistration Sid
|
|
250
|
+
* @param brandVettingSid - SID for third-party vetting record
|
|
251
|
+
*/
|
|
252
|
+
constructor(version: V1, brandSid: string, brandVettingSid: string);
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* fetch a BrandVettingInstance
|
|
256
|
+
*
|
|
257
|
+
* @param callback - Callback to handle processed record
|
|
258
|
+
*/
|
|
259
|
+
fetch(callback?: (error: Error | null, items: BrandVettingInstance) => any): Promise<BrandVettingInstance>;
|
|
260
|
+
/**
|
|
261
|
+
* Provide a user-friendly representation
|
|
262
|
+
*/
|
|
263
|
+
toJSON(): any;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
declare class BrandVettingInstance extends SerializableClass {
|
|
268
|
+
/**
|
|
269
|
+
* Initialize the BrandVettingContext
|
|
270
|
+
*
|
|
271
|
+
* PLEASE NOTE that this class contains beta products that are subject to change.
|
|
272
|
+
* Use them with caution.
|
|
273
|
+
*
|
|
274
|
+
* @param version - Version of the resource
|
|
275
|
+
* @param payload - The instance payload
|
|
276
|
+
* @param brandSid - A2P BrandRegistration Sid
|
|
277
|
+
* @param brandVettingSid - SID for third-party vetting record
|
|
278
|
+
*/
|
|
279
|
+
constructor(version: V1, payload: BrandVettingPayload, brandSid: string, brandVettingSid: string);
|
|
280
|
+
|
|
281
|
+
private _proxy: BrandVettingContext;
|
|
282
|
+
accountSid: string;
|
|
283
|
+
brandSid: string;
|
|
284
|
+
brandVettingSid: string;
|
|
285
|
+
dateCreated: Date;
|
|
286
|
+
dateUpdated: Date;
|
|
287
|
+
/**
|
|
288
|
+
* fetch a BrandVettingInstance
|
|
289
|
+
*
|
|
290
|
+
* @param callback - Callback to handle processed record
|
|
291
|
+
*/
|
|
292
|
+
fetch(callback?: (error: Error | null, items: BrandVettingInstance) => any): Promise<BrandVettingInstance>;
|
|
293
|
+
/**
|
|
294
|
+
* Provide a user-friendly representation
|
|
295
|
+
*/
|
|
296
|
+
toJSON(): any;
|
|
297
|
+
url: string;
|
|
298
|
+
vettingClass: string;
|
|
299
|
+
vettingId: string;
|
|
300
|
+
vettingProvider: BrandVettingVettingProvider;
|
|
301
|
+
vettingStatus: string;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
declare class BrandVettingPage extends Page<V1, BrandVettingPayload, BrandVettingResource, BrandVettingInstance> {
|
|
306
|
+
/**
|
|
307
|
+
* Initialize the BrandVettingPage
|
|
308
|
+
*
|
|
309
|
+
* PLEASE NOTE that this class contains beta products that are subject to change.
|
|
310
|
+
* Use them with caution.
|
|
311
|
+
*
|
|
312
|
+
* @param version - Version of the resource
|
|
313
|
+
* @param response - Response from the API
|
|
314
|
+
* @param solution - Path solution
|
|
315
|
+
*/
|
|
316
|
+
constructor(version: V1, response: Response<string>, solution: BrandVettingSolution);
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* Build an instance of BrandVettingInstance
|
|
320
|
+
*
|
|
321
|
+
* @param payload - Payload response from the API
|
|
322
|
+
*/
|
|
323
|
+
getInstance(payload: BrandVettingPayload): BrandVettingInstance;
|
|
324
|
+
/**
|
|
325
|
+
* Provide a user-friendly representation
|
|
326
|
+
*/
|
|
327
|
+
toJSON(): any;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
export { BrandVettingContext, BrandVettingInstance, BrandVettingList, BrandVettingListInstance, BrandVettingListInstanceCreateOptions, BrandVettingListInstanceEachOptions, BrandVettingListInstanceOptions, BrandVettingListInstancePageOptions, BrandVettingPage, BrandVettingPayload, BrandVettingResource, BrandVettingSolution, BrandVettingVettingProvider }
|