twilio 3.77.2 → 3.79.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/README.md +1 -1
- package/lib/rest/Insights.d.ts +0 -2
- package/lib/rest/Insights.js +0 -8
- package/lib/rest/Lookups.d.ts +2 -0
- package/lib/rest/Lookups.js +11 -0
- package/lib/rest/api/v2010/account/call/payment.d.ts +1 -1
- package/lib/rest/api/v2010/account/call/payment.js +1 -1
- package/lib/rest/api/v2010/account/usage/record/allTime.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record/daily.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record/lastMonth.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record/monthly.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record/thisMonth.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record/today.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record/yearly.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record/yesterday.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/trigger.d.ts +1 -1
- package/lib/rest/conversations/v1/conversation/participant.js +4 -2
- package/lib/rest/conversations/v1/service/conversation/participant.js +4 -2
- package/lib/rest/insights/V1.d.ts +0 -3
- package/lib/rest/insights/V1.js +0 -11
- package/lib/rest/insights/v1/{annotation.d.ts → call/annotation.d.ts} +29 -17
- package/lib/rest/insights/v1/{annotation.js → call/annotation.js} +72 -55
- package/lib/rest/insights/v1/call/summary.d.ts +2 -0
- package/lib/rest/insights/v1/call/summary.js +2 -0
- package/lib/rest/insights/v1/call.d.ts +7 -16
- package/lib/rest/insights/v1/call.js +28 -16
- package/lib/rest/lookups/V2.d.ts +25 -0
- package/lib/rest/lookups/V2.js +47 -0
- package/lib/rest/lookups/v2/phoneNumber.d.ts +180 -0
- package/lib/rest/lookups/v2/phoneNumber.js +359 -0
- package/lib/rest/media/v1/mediaRecording.d.ts +2 -4
- package/lib/rest/media/v1/mediaRecording.js +2 -4
- package/lib/rest/supersim/v1/sim/simIpAddress.d.ts +246 -0
- package/lib/rest/supersim/v1/sim/simIpAddress.js +448 -0
- package/lib/rest/supersim/v1/sim.d.ts +7 -0
- package/lib/rest/supersim/v1/sim.js +28 -0
- package/lib/rest/verify/v2/service/verificationCheck.d.ts +8 -2
- package/lib/rest/verify/v2/service/verificationCheck.js +8 -9
- package/lib/twiml/VoiceResponse.d.ts +81 -4
- package/lib/twiml/VoiceResponse.js +111 -3
- package/package.json +1 -1
|
@@ -226,16 +226,15 @@ interface MediaRecordingPayload extends MediaRecordingResource, Page.TwilioRespo
|
|
|
226
226
|
|
|
227
227
|
interface MediaRecordingResource {
|
|
228
228
|
account_sid: string;
|
|
229
|
-
bitrate: number;
|
|
230
229
|
date_created: Date;
|
|
231
230
|
date_updated: Date;
|
|
232
231
|
duration: number;
|
|
233
232
|
format: MediaRecordingFormat;
|
|
234
233
|
links: string;
|
|
234
|
+
media_size: number;
|
|
235
235
|
processor_sid: string;
|
|
236
236
|
resolution: string;
|
|
237
237
|
sid: string;
|
|
238
|
-
size: number;
|
|
239
238
|
source_sid: string;
|
|
240
239
|
status: MediaRecordingStatus;
|
|
241
240
|
status_callback: string;
|
|
@@ -295,7 +294,6 @@ declare class MediaRecordingInstance extends SerializableClass {
|
|
|
295
294
|
|
|
296
295
|
private _proxy: MediaRecordingContext;
|
|
297
296
|
accountSid: string;
|
|
298
|
-
bitrate: number;
|
|
299
297
|
dateCreated: Date;
|
|
300
298
|
dateUpdated: Date;
|
|
301
299
|
duration: number;
|
|
@@ -307,6 +305,7 @@ declare class MediaRecordingInstance extends SerializableClass {
|
|
|
307
305
|
fetch(callback?: (error: Error | null, items: MediaRecordingInstance) => any): Promise<MediaRecordingInstance>;
|
|
308
306
|
format: MediaRecordingFormat;
|
|
309
307
|
links: string;
|
|
308
|
+
mediaSize: number;
|
|
310
309
|
processorSid: string;
|
|
311
310
|
/**
|
|
312
311
|
* remove a MediaRecordingInstance
|
|
@@ -316,7 +315,6 @@ declare class MediaRecordingInstance extends SerializableClass {
|
|
|
316
315
|
remove(callback?: (error: Error | null, items: MediaRecordingInstance) => any): Promise<boolean>;
|
|
317
316
|
resolution: string;
|
|
318
317
|
sid: string;
|
|
319
|
-
size: number;
|
|
320
318
|
sourceSid: string;
|
|
321
319
|
status: MediaRecordingStatus;
|
|
322
320
|
statusCallback: string;
|
|
@@ -433,7 +433,6 @@ MediaRecordingPage.prototype[util.inspect.custom] = function inspect(depth,
|
|
|
433
433
|
* @constructor Twilio.Media.V1.MediaRecordingInstance
|
|
434
434
|
*
|
|
435
435
|
* @property {string} accountSid - The SID of the Account that created the resource
|
|
436
|
-
* @property {number} bitrate - The bitrate of the media
|
|
437
436
|
* @property {Date} dateCreated -
|
|
438
437
|
* The ISO 8601 date and time in GMT when the resource was created
|
|
439
438
|
* @property {Date} dateUpdated -
|
|
@@ -446,7 +445,7 @@ MediaRecordingPage.prototype[util.inspect.custom] = function inspect(depth,
|
|
|
446
445
|
* @property {string} sourceSid -
|
|
447
446
|
* The SID of the resource that generated the original media
|
|
448
447
|
* @property {string} sid - The unique string that identifies the resource
|
|
449
|
-
* @property {number}
|
|
448
|
+
* @property {number} mediaSize - The size of the recording media
|
|
450
449
|
* @property {media_recording.status} status - The status of the MediaRecording
|
|
451
450
|
* @property {string} statusCallback -
|
|
452
451
|
* The URL to which Twilio will send MediaRecording event updates
|
|
@@ -465,7 +464,6 @@ MediaRecordingInstance = function MediaRecordingInstance(version, payload, sid)
|
|
|
465
464
|
|
|
466
465
|
// Marshaled Properties
|
|
467
466
|
this.accountSid = payload.account_sid; // jshint ignore:line
|
|
468
|
-
this.bitrate = deserialize.integer(payload.bitrate); // jshint ignore:line
|
|
469
467
|
this.dateCreated = deserialize.iso8601DateTime(payload.date_created); // jshint ignore:line
|
|
470
468
|
this.dateUpdated = deserialize.iso8601DateTime(payload.date_updated); // jshint ignore:line
|
|
471
469
|
this.duration = deserialize.integer(payload.duration); // jshint ignore:line
|
|
@@ -475,7 +473,7 @@ MediaRecordingInstance = function MediaRecordingInstance(version, payload, sid)
|
|
|
475
473
|
this.resolution = payload.resolution; // jshint ignore:line
|
|
476
474
|
this.sourceSid = payload.source_sid; // jshint ignore:line
|
|
477
475
|
this.sid = payload.sid; // jshint ignore:line
|
|
478
|
-
this.
|
|
476
|
+
this.mediaSize = deserialize.integer(payload.media_size); // jshint ignore:line
|
|
479
477
|
this.status = payload.status; // jshint ignore:line
|
|
480
478
|
this.statusCallback = payload.status_callback; // jshint ignore:line
|
|
481
479
|
this.statusCallbackMethod = payload.status_callback_method; // jshint ignore:line
|
|
@@ -0,0 +1,246 @@
|
|
|
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 SimIpAddressIpAddressVersion = 'IPv4'|'IPv6';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Initialize the SimIpAddressList
|
|
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 simSid - The unique string that identifies the resource
|
|
23
|
+
*/
|
|
24
|
+
declare function SimIpAddressList(version: V1, simSid: string): SimIpAddressListInstance;
|
|
25
|
+
|
|
26
|
+
interface SimIpAddressListInstance {
|
|
27
|
+
/**
|
|
28
|
+
* Streams SimIpAddressInstance records from the API.
|
|
29
|
+
*
|
|
30
|
+
* This operation lazily loads records as efficiently as possible until the limit
|
|
31
|
+
* is reached.
|
|
32
|
+
*
|
|
33
|
+
* The results are passed into the callback function, so this operation is memory
|
|
34
|
+
* efficient.
|
|
35
|
+
*
|
|
36
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
37
|
+
* function.
|
|
38
|
+
*
|
|
39
|
+
* @param callback - Function to process each record
|
|
40
|
+
*/
|
|
41
|
+
each(callback?: (item: SimIpAddressInstance, done: (err?: Error) => void) => void): void;
|
|
42
|
+
/**
|
|
43
|
+
* Streams SimIpAddressInstance records from the API.
|
|
44
|
+
*
|
|
45
|
+
* This operation lazily loads records as efficiently as possible until the limit
|
|
46
|
+
* is reached.
|
|
47
|
+
*
|
|
48
|
+
* The results are passed into the callback function, so this operation is memory
|
|
49
|
+
* efficient.
|
|
50
|
+
*
|
|
51
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
52
|
+
* function.
|
|
53
|
+
*
|
|
54
|
+
* @param opts - Options for request
|
|
55
|
+
* @param callback - Function to process each record
|
|
56
|
+
*/
|
|
57
|
+
each(opts?: SimIpAddressListInstanceEachOptions, callback?: (item: SimIpAddressInstance, done: (err?: Error) => void) => void): void;
|
|
58
|
+
/**
|
|
59
|
+
* Retrieve a single target page of SimIpAddressInstance records from the API.
|
|
60
|
+
*
|
|
61
|
+
* The request is executed immediately.
|
|
62
|
+
*
|
|
63
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
64
|
+
* function.
|
|
65
|
+
*
|
|
66
|
+
* @param callback - Callback to handle list of records
|
|
67
|
+
*/
|
|
68
|
+
getPage(callback?: (error: Error | null, items: SimIpAddressPage) => any): Promise<SimIpAddressPage>;
|
|
69
|
+
/**
|
|
70
|
+
* Retrieve a single target page of SimIpAddressInstance records from the API.
|
|
71
|
+
*
|
|
72
|
+
* The request is executed immediately.
|
|
73
|
+
*
|
|
74
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
75
|
+
* function.
|
|
76
|
+
*
|
|
77
|
+
* @param targetUrl - API-generated URL for the requested results page
|
|
78
|
+
* @param callback - Callback to handle list of records
|
|
79
|
+
*/
|
|
80
|
+
getPage(targetUrl?: string, callback?: (error: Error | null, items: SimIpAddressPage) => any): Promise<SimIpAddressPage>;
|
|
81
|
+
/**
|
|
82
|
+
* Lists SimIpAddressInstance records from the API as a list.
|
|
83
|
+
*
|
|
84
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
85
|
+
* function.
|
|
86
|
+
*
|
|
87
|
+
* @param callback - Callback to handle list of records
|
|
88
|
+
*/
|
|
89
|
+
list(callback?: (error: Error | null, items: SimIpAddressInstance[]) => any): Promise<SimIpAddressInstance[]>;
|
|
90
|
+
/**
|
|
91
|
+
* Lists SimIpAddressInstance records from the API as a list.
|
|
92
|
+
*
|
|
93
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
94
|
+
* function.
|
|
95
|
+
*
|
|
96
|
+
* @param opts - Options for request
|
|
97
|
+
* @param callback - Callback to handle list of records
|
|
98
|
+
*/
|
|
99
|
+
list(opts?: SimIpAddressListInstanceOptions, callback?: (error: Error | null, items: SimIpAddressInstance[]) => any): Promise<SimIpAddressInstance[]>;
|
|
100
|
+
/**
|
|
101
|
+
* Retrieve a single page of SimIpAddressInstance records from the API.
|
|
102
|
+
*
|
|
103
|
+
* The request is executed immediately.
|
|
104
|
+
*
|
|
105
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
106
|
+
* function.
|
|
107
|
+
*
|
|
108
|
+
* @param callback - Callback to handle list of records
|
|
109
|
+
*/
|
|
110
|
+
page(callback?: (error: Error | null, items: SimIpAddressPage) => any): Promise<SimIpAddressPage>;
|
|
111
|
+
/**
|
|
112
|
+
* Retrieve a single page of SimIpAddressInstance records from the API.
|
|
113
|
+
*
|
|
114
|
+
* The request is executed immediately.
|
|
115
|
+
*
|
|
116
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
117
|
+
* function.
|
|
118
|
+
*
|
|
119
|
+
* @param opts - Options for request
|
|
120
|
+
* @param callback - Callback to handle list of records
|
|
121
|
+
*/
|
|
122
|
+
page(opts?: SimIpAddressListInstancePageOptions, callback?: (error: Error | null, items: SimIpAddressPage) => any): Promise<SimIpAddressPage>;
|
|
123
|
+
/**
|
|
124
|
+
* Provide a user-friendly representation
|
|
125
|
+
*/
|
|
126
|
+
toJSON(): any;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Options to pass to each
|
|
131
|
+
*
|
|
132
|
+
* @property callback -
|
|
133
|
+
* Function to process each record. If this and a positional
|
|
134
|
+
* callback are passed, this one will be used
|
|
135
|
+
* @property done - Function to be called upon completion of streaming
|
|
136
|
+
* @property limit -
|
|
137
|
+
* Upper limit for the number of records to return.
|
|
138
|
+
* each() guarantees never to return more than limit.
|
|
139
|
+
* Default is no limit
|
|
140
|
+
* @property pageSize -
|
|
141
|
+
* Number of records to fetch per request,
|
|
142
|
+
* when not set will use the default value of 50 records.
|
|
143
|
+
* If no pageSize is defined but a limit is defined,
|
|
144
|
+
* each() will attempt to read the limit with the most efficient
|
|
145
|
+
* page size, i.e. min(limit, 1000)
|
|
146
|
+
*/
|
|
147
|
+
interface SimIpAddressListInstanceEachOptions {
|
|
148
|
+
callback?: (item: SimIpAddressInstance, done: (err?: Error) => void) => void;
|
|
149
|
+
done?: Function;
|
|
150
|
+
limit?: number;
|
|
151
|
+
pageSize?: number;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Options to pass to list
|
|
156
|
+
*
|
|
157
|
+
* @property limit -
|
|
158
|
+
* Upper limit for the number of records to return.
|
|
159
|
+
* list() guarantees never to return more than limit.
|
|
160
|
+
* Default is no limit
|
|
161
|
+
* @property pageSize -
|
|
162
|
+
* Number of records to fetch per request,
|
|
163
|
+
* when not set will use the default value of 50 records.
|
|
164
|
+
* If no page_size is defined but a limit is defined,
|
|
165
|
+
* list() will attempt to read the limit with the most
|
|
166
|
+
* efficient page size, i.e. min(limit, 1000)
|
|
167
|
+
*/
|
|
168
|
+
interface SimIpAddressListInstanceOptions {
|
|
169
|
+
limit?: number;
|
|
170
|
+
pageSize?: number;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Options to pass to page
|
|
175
|
+
*
|
|
176
|
+
* @property pageNumber - Page Number, this value is simply for client state
|
|
177
|
+
* @property pageSize - Number of records to return, defaults to 50
|
|
178
|
+
* @property pageToken - PageToken provided by the API
|
|
179
|
+
*/
|
|
180
|
+
interface SimIpAddressListInstancePageOptions {
|
|
181
|
+
pageNumber?: number;
|
|
182
|
+
pageSize?: number;
|
|
183
|
+
pageToken?: string;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
interface SimIpAddressPayload extends SimIpAddressResource, Page.TwilioResponsePayload {
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
interface SimIpAddressResource {
|
|
190
|
+
ip_address: string;
|
|
191
|
+
ip_address_version: SimIpAddressIpAddressVersion;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
interface SimIpAddressSolution {
|
|
195
|
+
simSid?: string;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
declare class SimIpAddressInstance extends SerializableClass {
|
|
200
|
+
/**
|
|
201
|
+
* Initialize the SimIpAddressContext
|
|
202
|
+
*
|
|
203
|
+
* PLEASE NOTE that this class contains beta products that are subject to change.
|
|
204
|
+
* Use them with caution.
|
|
205
|
+
*
|
|
206
|
+
* @param version - Version of the resource
|
|
207
|
+
* @param payload - The instance payload
|
|
208
|
+
* @param simSid - The unique string that identifies the resource
|
|
209
|
+
*/
|
|
210
|
+
constructor(version: V1, payload: SimIpAddressPayload, simSid: string);
|
|
211
|
+
|
|
212
|
+
ipAddress: string;
|
|
213
|
+
ipAddressVersion: SimIpAddressIpAddressVersion;
|
|
214
|
+
/**
|
|
215
|
+
* Provide a user-friendly representation
|
|
216
|
+
*/
|
|
217
|
+
toJSON(): any;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
declare class SimIpAddressPage extends Page<V1, SimIpAddressPayload, SimIpAddressResource, SimIpAddressInstance> {
|
|
222
|
+
/**
|
|
223
|
+
* Initialize the SimIpAddressPage
|
|
224
|
+
*
|
|
225
|
+
* PLEASE NOTE that this class contains beta products that are subject to change.
|
|
226
|
+
* Use them with caution.
|
|
227
|
+
*
|
|
228
|
+
* @param version - Version of the resource
|
|
229
|
+
* @param response - Response from the API
|
|
230
|
+
* @param solution - Path solution
|
|
231
|
+
*/
|
|
232
|
+
constructor(version: V1, response: Response<string>, solution: SimIpAddressSolution);
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Build an instance of SimIpAddressInstance
|
|
236
|
+
*
|
|
237
|
+
* @param payload - Payload response from the API
|
|
238
|
+
*/
|
|
239
|
+
getInstance(payload: SimIpAddressPayload): SimIpAddressInstance;
|
|
240
|
+
/**
|
|
241
|
+
* Provide a user-friendly representation
|
|
242
|
+
*/
|
|
243
|
+
toJSON(): any;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
export { SimIpAddressInstance, SimIpAddressIpAddressVersion, SimIpAddressList, SimIpAddressListInstance, SimIpAddressListInstanceEachOptions, SimIpAddressListInstanceOptions, SimIpAddressListInstancePageOptions, SimIpAddressPage, SimIpAddressPayload, SimIpAddressResource, SimIpAddressSolution }
|