twilio 3.77.1 → 3.77.2
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/Twilio.d.ts +1 -3
- package/lib/rest/Twilio.js +3 -17
- package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelInvite.d.ts +5 -5
- package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelInvite.js +10 -9
- package/lib/rest/flexApi/v1/interaction/interactionChannel.d.ts +8 -8
- package/lib/rest/flexApi/v1/interaction/interactionChannel.js +12 -13
- package/lib/rest/flexApi/v1/interaction.js +2 -1
- package/lib/rest/verify/v2/service/verification.d.ts +3 -1
- package/lib/rest/verify/v2/service/verification.js +3 -0
- package/lib/rest/verify/v2/service/verificationCheck.d.ts +1 -1
- package/package.json +1 -1
- package/lib/rest/Fax.d.ts +0 -26
- package/lib/rest/Fax.js +0 -54
- package/lib/rest/fax/V1.d.ts +0 -25
- package/lib/rest/fax/V1.js +0 -46
- package/lib/rest/fax/v1/fax/faxMedia.d.ts +0 -310
- package/lib/rest/fax/v1/fax/faxMedia.js +0 -633
- package/lib/rest/fax/v1/fax.d.ts +0 -367
- package/lib/rest/fax/v1/fax.js +0 -700
|
@@ -1,310 +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 V1 = require('../../V1');
|
|
11
|
-
import { SerializableClass } from '../../../../interfaces';
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Initialize the FaxMediaList
|
|
15
|
-
*
|
|
16
|
-
* PLEASE NOTE that this class contains beta products that are subject to change.
|
|
17
|
-
* Use them with caution.
|
|
18
|
-
*
|
|
19
|
-
* @param version - Version of the resource
|
|
20
|
-
* @param faxSid - The SID of the fax the FaxMedia resource is associated with
|
|
21
|
-
*/
|
|
22
|
-
declare function FaxMediaList(version: V1, faxSid: string): FaxMediaListInstance;
|
|
23
|
-
|
|
24
|
-
interface FaxMediaListInstance {
|
|
25
|
-
/**
|
|
26
|
-
* @param sid - sid of instance
|
|
27
|
-
*/
|
|
28
|
-
(sid: string): FaxMediaContext;
|
|
29
|
-
/**
|
|
30
|
-
* Streams FaxMediaInstance records from the API.
|
|
31
|
-
*
|
|
32
|
-
* This operation lazily loads records as efficiently as possible until the limit
|
|
33
|
-
* is reached.
|
|
34
|
-
*
|
|
35
|
-
* The results are passed into the callback function, so this operation is memory
|
|
36
|
-
* efficient.
|
|
37
|
-
*
|
|
38
|
-
* If a function is passed as the first argument, it will be used as the callback
|
|
39
|
-
* function.
|
|
40
|
-
*
|
|
41
|
-
* @param callback - Function to process each record
|
|
42
|
-
*/
|
|
43
|
-
each(callback?: (item: FaxMediaInstance, done: (err?: Error) => void) => void): void;
|
|
44
|
-
/**
|
|
45
|
-
* Streams FaxMediaInstance records from the API.
|
|
46
|
-
*
|
|
47
|
-
* This operation lazily loads records as efficiently as possible until the limit
|
|
48
|
-
* is reached.
|
|
49
|
-
*
|
|
50
|
-
* The results are passed into the callback function, so this operation is memory
|
|
51
|
-
* efficient.
|
|
52
|
-
*
|
|
53
|
-
* If a function is passed as the first argument, it will be used as the callback
|
|
54
|
-
* function.
|
|
55
|
-
*
|
|
56
|
-
* @param opts - Options for request
|
|
57
|
-
* @param callback - Function to process each record
|
|
58
|
-
*/
|
|
59
|
-
each(opts?: FaxMediaListInstanceEachOptions, callback?: (item: FaxMediaInstance, done: (err?: Error) => void) => void): void;
|
|
60
|
-
/**
|
|
61
|
-
* Constructs a fax_media
|
|
62
|
-
*
|
|
63
|
-
* @param sid - The unique string that identifies the resource to fetch
|
|
64
|
-
*/
|
|
65
|
-
get(sid: string): FaxMediaContext;
|
|
66
|
-
/**
|
|
67
|
-
* Retrieve a single target page of FaxMediaInstance records from the API.
|
|
68
|
-
*
|
|
69
|
-
* The request is executed immediately.
|
|
70
|
-
*
|
|
71
|
-
* If a function is passed as the first argument, it will be used as the callback
|
|
72
|
-
* function.
|
|
73
|
-
*
|
|
74
|
-
* @param callback - Callback to handle list of records
|
|
75
|
-
*/
|
|
76
|
-
getPage(callback?: (error: Error | null, items: FaxMediaPage) => any): Promise<FaxMediaPage>;
|
|
77
|
-
/**
|
|
78
|
-
* Retrieve a single target page of FaxMediaInstance records from the API.
|
|
79
|
-
*
|
|
80
|
-
* The request is executed immediately.
|
|
81
|
-
*
|
|
82
|
-
* If a function is passed as the first argument, it will be used as the callback
|
|
83
|
-
* function.
|
|
84
|
-
*
|
|
85
|
-
* @param targetUrl - API-generated URL for the requested results page
|
|
86
|
-
* @param callback - Callback to handle list of records
|
|
87
|
-
*/
|
|
88
|
-
getPage(targetUrl?: string, callback?: (error: Error | null, items: FaxMediaPage) => any): Promise<FaxMediaPage>;
|
|
89
|
-
/**
|
|
90
|
-
* Lists FaxMediaInstance records from the API as a list.
|
|
91
|
-
*
|
|
92
|
-
* If a function is passed as the first argument, it will be used as the callback
|
|
93
|
-
* function.
|
|
94
|
-
*
|
|
95
|
-
* @param callback - Callback to handle list of records
|
|
96
|
-
*/
|
|
97
|
-
list(callback?: (error: Error | null, items: FaxMediaInstance[]) => any): Promise<FaxMediaInstance[]>;
|
|
98
|
-
/**
|
|
99
|
-
* Lists FaxMediaInstance 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 opts - Options for request
|
|
105
|
-
* @param callback - Callback to handle list of records
|
|
106
|
-
*/
|
|
107
|
-
list(opts?: FaxMediaListInstanceOptions, callback?: (error: Error | null, items: FaxMediaInstance[]) => any): Promise<FaxMediaInstance[]>;
|
|
108
|
-
/**
|
|
109
|
-
* Retrieve a single page of FaxMediaInstance records from the API.
|
|
110
|
-
*
|
|
111
|
-
* The request is executed immediately.
|
|
112
|
-
*
|
|
113
|
-
* If a function is passed as the first argument, it will be used as the callback
|
|
114
|
-
* function.
|
|
115
|
-
*
|
|
116
|
-
* @param callback - Callback to handle list of records
|
|
117
|
-
*/
|
|
118
|
-
page(callback?: (error: Error | null, items: FaxMediaPage) => any): Promise<FaxMediaPage>;
|
|
119
|
-
/**
|
|
120
|
-
* Retrieve a single page of FaxMediaInstance records from the API.
|
|
121
|
-
*
|
|
122
|
-
* The request is executed immediately.
|
|
123
|
-
*
|
|
124
|
-
* If a function is passed as the first argument, it will be used as the callback
|
|
125
|
-
* function.
|
|
126
|
-
*
|
|
127
|
-
* @param opts - Options for request
|
|
128
|
-
* @param callback - Callback to handle list of records
|
|
129
|
-
*/
|
|
130
|
-
page(opts?: FaxMediaListInstancePageOptions, callback?: (error: Error | null, items: FaxMediaPage) => any): Promise<FaxMediaPage>;
|
|
131
|
-
/**
|
|
132
|
-
* Provide a user-friendly representation
|
|
133
|
-
*/
|
|
134
|
-
toJSON(): any;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* Options to pass to each
|
|
139
|
-
*
|
|
140
|
-
* @property callback -
|
|
141
|
-
* Function to process each record. If this and a positional
|
|
142
|
-
* callback are passed, this one will be used
|
|
143
|
-
* @property done - Function to be called upon completion of streaming
|
|
144
|
-
* @property limit -
|
|
145
|
-
* Upper limit for the number of records to return.
|
|
146
|
-
* each() guarantees never to return more than limit.
|
|
147
|
-
* Default is no limit
|
|
148
|
-
* @property pageSize -
|
|
149
|
-
* Number of records to fetch per request,
|
|
150
|
-
* when not set will use the default value of 50 records.
|
|
151
|
-
* If no pageSize is defined but a limit is defined,
|
|
152
|
-
* each() will attempt to read the limit with the most efficient
|
|
153
|
-
* page size, i.e. min(limit, 1000)
|
|
154
|
-
*/
|
|
155
|
-
interface FaxMediaListInstanceEachOptions {
|
|
156
|
-
callback?: (item: FaxMediaInstance, done: (err?: Error) => void) => void;
|
|
157
|
-
done?: Function;
|
|
158
|
-
limit?: number;
|
|
159
|
-
pageSize?: number;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* Options to pass to list
|
|
164
|
-
*
|
|
165
|
-
* @property limit -
|
|
166
|
-
* Upper limit for the number of records to return.
|
|
167
|
-
* list() guarantees never to return more than limit.
|
|
168
|
-
* Default is no limit
|
|
169
|
-
* @property pageSize -
|
|
170
|
-
* Number of records to fetch per request,
|
|
171
|
-
* when not set will use the default value of 50 records.
|
|
172
|
-
* If no page_size is defined but a limit is defined,
|
|
173
|
-
* list() will attempt to read the limit with the most
|
|
174
|
-
* efficient page size, i.e. min(limit, 1000)
|
|
175
|
-
*/
|
|
176
|
-
interface FaxMediaListInstanceOptions {
|
|
177
|
-
limit?: number;
|
|
178
|
-
pageSize?: number;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* Options to pass to page
|
|
183
|
-
*
|
|
184
|
-
* @property pageNumber - Page Number, this value is simply for client state
|
|
185
|
-
* @property pageSize - Number of records to return, defaults to 50
|
|
186
|
-
* @property pageToken - PageToken provided by the API
|
|
187
|
-
*/
|
|
188
|
-
interface FaxMediaListInstancePageOptions {
|
|
189
|
-
pageNumber?: number;
|
|
190
|
-
pageSize?: number;
|
|
191
|
-
pageToken?: string;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
interface FaxMediaPayload extends FaxMediaResource, Page.TwilioResponsePayload {
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
interface FaxMediaResource {
|
|
198
|
-
account_sid: string;
|
|
199
|
-
content_type: string;
|
|
200
|
-
date_created: Date;
|
|
201
|
-
date_updated: Date;
|
|
202
|
-
fax_sid: string;
|
|
203
|
-
sid: string;
|
|
204
|
-
url: string;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
interface FaxMediaSolution {
|
|
208
|
-
faxSid?: string;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
declare class FaxMediaContext {
|
|
213
|
-
/**
|
|
214
|
-
* Initialize the FaxMediaContext
|
|
215
|
-
*
|
|
216
|
-
* PLEASE NOTE that this class contains beta products that are subject to change.
|
|
217
|
-
* Use them with caution.
|
|
218
|
-
*
|
|
219
|
-
* @param version - Version of the resource
|
|
220
|
-
* @param faxSid - The SID of the fax with the FaxMedia resource to fetch
|
|
221
|
-
* @param sid - The unique string that identifies the resource to fetch
|
|
222
|
-
*/
|
|
223
|
-
constructor(version: V1, faxSid: string, sid: string);
|
|
224
|
-
|
|
225
|
-
/**
|
|
226
|
-
* fetch a FaxMediaInstance
|
|
227
|
-
*
|
|
228
|
-
* @param callback - Callback to handle processed record
|
|
229
|
-
*/
|
|
230
|
-
fetch(callback?: (error: Error | null, items: FaxMediaInstance) => any): Promise<FaxMediaInstance>;
|
|
231
|
-
/**
|
|
232
|
-
* remove a FaxMediaInstance
|
|
233
|
-
*
|
|
234
|
-
* @param callback - Callback to handle processed record
|
|
235
|
-
*/
|
|
236
|
-
remove(callback?: (error: Error | null, items: FaxMediaInstance) => any): Promise<boolean>;
|
|
237
|
-
/**
|
|
238
|
-
* Provide a user-friendly representation
|
|
239
|
-
*/
|
|
240
|
-
toJSON(): any;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
declare class FaxMediaInstance extends SerializableClass {
|
|
245
|
-
/**
|
|
246
|
-
* Initialize the FaxMediaContext
|
|
247
|
-
*
|
|
248
|
-
* PLEASE NOTE that this class contains beta products that are subject to change.
|
|
249
|
-
* Use them with caution.
|
|
250
|
-
*
|
|
251
|
-
* @param version - Version of the resource
|
|
252
|
-
* @param payload - The instance payload
|
|
253
|
-
* @param faxSid - The SID of the fax the FaxMedia resource is associated with
|
|
254
|
-
* @param sid - The unique string that identifies the resource to fetch
|
|
255
|
-
*/
|
|
256
|
-
constructor(version: V1, payload: FaxMediaPayload, faxSid: string, sid: string);
|
|
257
|
-
|
|
258
|
-
private _proxy: FaxMediaContext;
|
|
259
|
-
accountSid: string;
|
|
260
|
-
contentType: string;
|
|
261
|
-
dateCreated: Date;
|
|
262
|
-
dateUpdated: Date;
|
|
263
|
-
faxSid: string;
|
|
264
|
-
/**
|
|
265
|
-
* fetch a FaxMediaInstance
|
|
266
|
-
*
|
|
267
|
-
* @param callback - Callback to handle processed record
|
|
268
|
-
*/
|
|
269
|
-
fetch(callback?: (error: Error | null, items: FaxMediaInstance) => any): Promise<FaxMediaInstance>;
|
|
270
|
-
/**
|
|
271
|
-
* remove a FaxMediaInstance
|
|
272
|
-
*
|
|
273
|
-
* @param callback - Callback to handle processed record
|
|
274
|
-
*/
|
|
275
|
-
remove(callback?: (error: Error | null, items: FaxMediaInstance) => any): Promise<boolean>;
|
|
276
|
-
sid: string;
|
|
277
|
-
/**
|
|
278
|
-
* Provide a user-friendly representation
|
|
279
|
-
*/
|
|
280
|
-
toJSON(): any;
|
|
281
|
-
url: string;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
declare class FaxMediaPage extends Page<V1, FaxMediaPayload, FaxMediaResource, FaxMediaInstance> {
|
|
286
|
-
/**
|
|
287
|
-
* Initialize the FaxMediaPage
|
|
288
|
-
*
|
|
289
|
-
* PLEASE NOTE that this class contains beta products that are subject to change.
|
|
290
|
-
* Use them with caution.
|
|
291
|
-
*
|
|
292
|
-
* @param version - Version of the resource
|
|
293
|
-
* @param response - Response from the API
|
|
294
|
-
* @param solution - Path solution
|
|
295
|
-
*/
|
|
296
|
-
constructor(version: V1, response: Response<string>, solution: FaxMediaSolution);
|
|
297
|
-
|
|
298
|
-
/**
|
|
299
|
-
* Build an instance of FaxMediaInstance
|
|
300
|
-
*
|
|
301
|
-
* @param payload - Payload response from the API
|
|
302
|
-
*/
|
|
303
|
-
getInstance(payload: FaxMediaPayload): FaxMediaInstance;
|
|
304
|
-
/**
|
|
305
|
-
* Provide a user-friendly representation
|
|
306
|
-
*/
|
|
307
|
-
toJSON(): any;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
export { FaxMediaContext, FaxMediaInstance, FaxMediaList, FaxMediaListInstance, FaxMediaListInstanceEachOptions, FaxMediaListInstanceOptions, FaxMediaListInstancePageOptions, FaxMediaPage, FaxMediaPayload, FaxMediaResource, FaxMediaSolution }
|