twilio 3.23.0 → 3.25.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/CHANGES.md +55 -0
- package/lib/rest/Api.d.ts +2 -0
- package/lib/rest/Api.js +9 -0
- package/lib/rest/Authy.js +5 -5
- package/lib/rest/Preview.d.ts +0 -2
- package/lib/rest/Preview.js +12 -23
- package/lib/rest/Twilio.d.ts +1 -0
- package/lib/rest/Twilio.js +9 -0
- package/lib/rest/Video.js +8 -8
- package/lib/rest/api/V2010.d.ts +3 -0
- package/lib/rest/api/V2010.js +9 -0
- package/lib/rest/api/v2010/account/balance.d.ts +87 -0
- package/lib/rest/api/v2010/account/balance.js +162 -0
- package/lib/rest/api/v2010/account/message.d.ts +2 -0
- package/lib/rest/api/v2010/account/message.js +4 -1
- package/lib/rest/api/v2010/account/sip/ipAccessControlList.d.ts +3 -3
- package/lib/rest/api/v2010/account/sip/ipAccessControlList.js +3 -3
- 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/api/v2010/account.d.ts +8 -0
- package/lib/rest/api/v2010/account.js +25 -0
- package/lib/rest/authy/V1.d.ts +1 -1
- package/lib/rest/authy/V1.js +8 -8
- package/lib/rest/authy/v1/form.d.ts +13 -13
- package/lib/rest/authy/v1/form.js +17 -17
- package/lib/rest/authy/v1/service/entity/factor/challenge.d.ts +12 -13
- package/lib/rest/authy/v1/service/entity/factor/challenge.js +4 -6
- package/lib/rest/authy/v1/service/entity/factor.d.ts +9 -9
- package/lib/rest/authy/v1/service/entity/factor.js +7 -9
- package/lib/rest/autopilot/v1/assistant/fieldType/fieldValue.d.ts +5 -5
- package/lib/rest/autopilot/v1/assistant/fieldType/fieldValue.js +9 -5
- package/lib/rest/autopilot/v1/assistant/fieldType.d.ts +5 -5
- package/lib/rest/autopilot/v1/assistant/fieldType.js +8 -5
- package/lib/rest/autopilot/v1/assistant/modelBuild.d.ts +5 -5
- package/lib/rest/autopilot/v1/assistant/modelBuild.js +8 -5
- package/lib/rest/autopilot/v1/assistant/query.d.ts +17 -17
- package/lib/rest/autopilot/v1/assistant/query.js +24 -18
- package/lib/rest/autopilot/v1/assistant/task/field.d.ts +11 -11
- package/lib/rest/autopilot/v1/assistant/task/field.js +15 -11
- package/lib/rest/autopilot/v1/assistant/task/sample.d.ts +18 -18
- package/lib/rest/autopilot/v1/assistant/task/sample.js +23 -21
- package/lib/rest/autopilot/v1/assistant/task/taskActions.d.ts +2 -2
- package/lib/rest/autopilot/v1/assistant/task/taskActions.js +4 -3
- package/lib/rest/autopilot/v1/assistant/task/taskStatistics.d.ts +6 -6
- package/lib/rest/autopilot/v1/assistant/task/taskStatistics.js +7 -6
- package/lib/rest/autopilot/v1/assistant/task.d.ts +10 -10
- package/lib/rest/autopilot/v1/assistant/task.js +21 -12
- package/lib/rest/autopilot/v1/assistant.d.ts +15 -15
- package/lib/rest/autopilot/v1/assistant.js +25 -20
- package/lib/rest/chat/v2/service/channel/member.d.ts +7 -0
- package/lib/rest/chat/v2/service/channel/member.js +13 -2
- package/lib/rest/ipMessaging/v2/service/channel/member.d.ts +7 -0
- package/lib/rest/ipMessaging/v2/service/channel/member.js +13 -2
- package/lib/rest/preview/Marketplace.d.ts +1 -1
- package/lib/rest/preview/Marketplace.js +9 -9
- package/lib/rest/proxy/v1/service.d.ts +7 -0
- package/lib/rest/proxy/v1/service.js +13 -2
- package/lib/rest/sync/v1/service/syncList/syncListItem.d.ts +10 -2
- package/lib/rest/sync/v1/service/syncList/syncListItem.js +24 -5
- package/lib/rest/sync/v1/service/syncList.d.ts +6 -2
- package/lib/rest/sync/v1/service/syncList.js +12 -5
- package/lib/rest/sync/v1/service/syncMap/syncMapItem.d.ts +10 -2
- package/lib/rest/sync/v1/service/syncMap/syncMapItem.js +24 -6
- package/lib/rest/sync/v1/service/syncMap.d.ts +6 -2
- package/lib/rest/sync/v1/service/syncMap.js +12 -5
- package/lib/rest/verify/v1/service/verification.d.ts +4 -0
- package/lib/rest/verify/v1/service/verification.js +5 -1
- package/lib/rest/video/V1.d.ts +1 -1
- package/lib/rest/video/V1.js +10 -10
- package/lib/twiml/VoiceResponse.d.ts +124 -0
- package/lib/twiml/VoiceResponse.js +960 -0
- package/package.json +1 -1
- package/lib/rest/preview/Authy.d.ts +0 -27
- package/lib/rest/preview/Authy.js +0 -44
- package/lib/rest/preview/authy/service/entity.d.ts +0 -250
- package/lib/rest/preview/authy/service/entity.js +0 -514
- package/lib/rest/preview/authy/service.d.ts +0 -275
- package/lib/rest/preview/authy/service.js +0 -578
|
@@ -1,275 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This code was generated by
|
|
3
|
-
* \ / _ _ _| _ _
|
|
4
|
-
* | (_)\/(_)(_|\/| |(/_ v1.0.0
|
|
5
|
-
* / /
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import Authy = require('../Authy');
|
|
9
|
-
import Page = require('../../../base/Page');
|
|
10
|
-
import Response = require('../../../http/response');
|
|
11
|
-
import { EntityList } from './service/entity';
|
|
12
|
-
import { EntityListInstance } from './service/entity';
|
|
13
|
-
import { SerializableClass } from '../../../interfaces';
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* @description Initialize the ServiceList
|
|
17
|
-
* PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
|
18
|
-
*
|
|
19
|
-
* @param version - Version of the resource
|
|
20
|
-
*/
|
|
21
|
-
declare function ServiceList(version: Authy): ServiceListInstance;
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Options to pass to update
|
|
25
|
-
*
|
|
26
|
-
* @property friendlyName - A human readable description of this resource.
|
|
27
|
-
*/
|
|
28
|
-
interface ServiceInstanceUpdateOptions {
|
|
29
|
-
friendlyName?: string;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
interface ServiceListInstance {
|
|
33
|
-
/**
|
|
34
|
-
* @param sid - sid of instance
|
|
35
|
-
*/
|
|
36
|
-
(sid: string): ServiceContext;
|
|
37
|
-
/**
|
|
38
|
-
* create a ServiceInstance
|
|
39
|
-
*
|
|
40
|
-
* @param opts - Options for request
|
|
41
|
-
* @param callback - Callback to handle processed record
|
|
42
|
-
*/
|
|
43
|
-
create(opts: ServiceListInstanceCreateOptions, callback?: (error: Error | null, item: ServiceInstance) => any): Promise<ServiceInstance>;
|
|
44
|
-
/**
|
|
45
|
-
* Streams ServiceInstance 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 efficient.
|
|
51
|
-
*
|
|
52
|
-
* If a function is passed as the first argument, it will be used as the callback function.
|
|
53
|
-
*
|
|
54
|
-
* @param opts - Options for request
|
|
55
|
-
* @param callback - Function to process each record
|
|
56
|
-
*/
|
|
57
|
-
each(opts?: ServiceListInstanceEachOptions, callback?: (item: ServiceInstance, done: (err?: Error) => void) => void): void;
|
|
58
|
-
/**
|
|
59
|
-
* Constructs a service
|
|
60
|
-
*
|
|
61
|
-
* @param sid - A string that uniquely identifies this Service.
|
|
62
|
-
*/
|
|
63
|
-
get(sid: string): ServiceContext;
|
|
64
|
-
/**
|
|
65
|
-
* Retrieve a single target page of ServiceInstance records from the API.
|
|
66
|
-
* Request is executed immediately
|
|
67
|
-
*
|
|
68
|
-
* If a function is passed as the first argument, it will be used as the callback function.
|
|
69
|
-
*
|
|
70
|
-
* @param targetUrl - API-generated URL for the requested results page
|
|
71
|
-
* @param callback - Callback to handle list of records
|
|
72
|
-
*/
|
|
73
|
-
getPage(targetUrl?: string, callback?: (error: Error | null, items: ServicePage) => any): Promise<ServicePage>;
|
|
74
|
-
/**
|
|
75
|
-
* Lists ServiceInstance records from the API as a list.
|
|
76
|
-
*
|
|
77
|
-
* If a function is passed as the first argument, it will be used as the callback function.
|
|
78
|
-
*
|
|
79
|
-
* @param opts - Options for request
|
|
80
|
-
* @param callback - Callback to handle list of records
|
|
81
|
-
*/
|
|
82
|
-
list(opts?: ServiceListInstanceOptions, callback?: (error: Error | null, items: ServiceInstance[]) => any): Promise<ServiceInstance[]>;
|
|
83
|
-
/**
|
|
84
|
-
* Retrieve a single page of ServiceInstance records from the API.
|
|
85
|
-
* Request is executed immediately
|
|
86
|
-
*
|
|
87
|
-
* If a function is passed as the first argument, it will be used as the callback function.
|
|
88
|
-
*
|
|
89
|
-
* @param opts - Options for request
|
|
90
|
-
* @param callback - Callback to handle list of records
|
|
91
|
-
*/
|
|
92
|
-
page(opts?: ServiceListInstancePageOptions, callback?: (error: Error | null, items: ServicePage) => any): Promise<ServicePage>;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* Options to pass to create
|
|
97
|
-
*
|
|
98
|
-
* @property friendlyName - A human readable description of this resource.
|
|
99
|
-
*/
|
|
100
|
-
interface ServiceListInstanceCreateOptions {
|
|
101
|
-
friendlyName: string;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* Options to pass to each
|
|
106
|
-
*
|
|
107
|
-
* @property callback -
|
|
108
|
-
* Function to process each record. If this and a positional
|
|
109
|
-
* callback are passed, this one will be used
|
|
110
|
-
* @property done - Function to be called upon completion of streaming
|
|
111
|
-
* @property limit -
|
|
112
|
-
* Upper limit for the number of records to return.
|
|
113
|
-
* each() guarantees never to return more than limit.
|
|
114
|
-
* Default is no limit
|
|
115
|
-
* @property pageSize -
|
|
116
|
-
* Number of records to fetch per request,
|
|
117
|
-
* when not set will use the default value of 50 records.
|
|
118
|
-
* If no pageSize is defined but a limit is defined,
|
|
119
|
-
* each() will attempt to read the limit with the most efficient
|
|
120
|
-
* page size, i.e. min(limit, 1000)
|
|
121
|
-
*/
|
|
122
|
-
interface ServiceListInstanceEachOptions {
|
|
123
|
-
callback?: (item: ServiceInstance, done: (err?: Error) => void) => void;
|
|
124
|
-
done?: Function;
|
|
125
|
-
limit?: number;
|
|
126
|
-
pageSize?: number;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* Options to pass to list
|
|
131
|
-
*
|
|
132
|
-
* @property limit -
|
|
133
|
-
* Upper limit for the number of records to return.
|
|
134
|
-
* list() guarantees never to return more than limit.
|
|
135
|
-
* Default is no limit
|
|
136
|
-
* @property pageSize -
|
|
137
|
-
* Number of records to fetch per request,
|
|
138
|
-
* when not set will use the default value of 50 records.
|
|
139
|
-
* If no page_size is defined but a limit is defined,
|
|
140
|
-
* list() will attempt to read the limit with the most
|
|
141
|
-
* efficient page size, i.e. min(limit, 1000)
|
|
142
|
-
*/
|
|
143
|
-
interface ServiceListInstanceOptions {
|
|
144
|
-
limit?: number;
|
|
145
|
-
pageSize?: number;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* Options to pass to page
|
|
150
|
-
*
|
|
151
|
-
* @property pageNumber - Page Number, this value is simply for client state
|
|
152
|
-
* @property pageSize - Number of records to return, defaults to 50
|
|
153
|
-
* @property pageToken - PageToken provided by the API
|
|
154
|
-
*/
|
|
155
|
-
interface ServiceListInstancePageOptions {
|
|
156
|
-
pageNumber?: number;
|
|
157
|
-
pageSize?: number;
|
|
158
|
-
pageToken?: string;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
interface ServicePayload extends ServiceResource, Page.TwilioResponsePayload {
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
interface ServiceResource {
|
|
165
|
-
account_sid: string;
|
|
166
|
-
date_created: Date;
|
|
167
|
-
date_updated: Date;
|
|
168
|
-
friendly_name: string;
|
|
169
|
-
links: string;
|
|
170
|
-
sid: string;
|
|
171
|
-
url: string;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
interface ServiceSolution {
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
declare class ServiceContext {
|
|
179
|
-
/**
|
|
180
|
-
* Initialize the ServiceContextPLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
|
181
|
-
*
|
|
182
|
-
* @property entities - entities resource
|
|
183
|
-
*
|
|
184
|
-
* @param version - Version of the resource
|
|
185
|
-
* @param sid - A string that uniquely identifies this Service.
|
|
186
|
-
*/
|
|
187
|
-
constructor(version: Authy, sid: string);
|
|
188
|
-
|
|
189
|
-
entities: EntityListInstance;
|
|
190
|
-
/**
|
|
191
|
-
* fetch a ServiceInstance
|
|
192
|
-
*
|
|
193
|
-
* @param callback - Callback to handle processed record
|
|
194
|
-
*/
|
|
195
|
-
fetch(callback?: (error: Error | null, items: ServiceInstance) => any): Promise<ServiceInstance>;
|
|
196
|
-
/**
|
|
197
|
-
* update a ServiceInstance
|
|
198
|
-
*
|
|
199
|
-
* @param opts - Options for request
|
|
200
|
-
* @param callback - Callback to handle processed record
|
|
201
|
-
*/
|
|
202
|
-
update(opts?: ServiceInstanceUpdateOptions, callback?: (error: Error | null, items: ServiceInstance) => any): Promise<ServiceInstance>;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
declare class ServiceInstance extends SerializableClass {
|
|
207
|
-
/**
|
|
208
|
-
* Initialize the ServiceContextPLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
|
209
|
-
*
|
|
210
|
-
* @property sid - A string that uniquely identifies this Service.
|
|
211
|
-
* @property friendlyName - A human readable description of this resource.
|
|
212
|
-
* @property accountSid - Account Sid.
|
|
213
|
-
* @property dateCreated - The date this Service was created
|
|
214
|
-
* @property dateUpdated - The date this Service was updated
|
|
215
|
-
* @property url - The URL of this resource.
|
|
216
|
-
* @property links - Nested resource URLs.
|
|
217
|
-
*
|
|
218
|
-
* @param version - Version of the resource
|
|
219
|
-
* @param payload - The instance payload
|
|
220
|
-
* @param sid - A string that uniquely identifies this Service.
|
|
221
|
-
*/
|
|
222
|
-
constructor(version: Authy, payload: ServicePayload, sid: string);
|
|
223
|
-
|
|
224
|
-
private _proxy: ServiceContext;
|
|
225
|
-
accountSid: string;
|
|
226
|
-
dateCreated: Date;
|
|
227
|
-
dateUpdated: Date;
|
|
228
|
-
/**
|
|
229
|
-
* Access the entities
|
|
230
|
-
*/
|
|
231
|
-
entities(): EntityListInstance;
|
|
232
|
-
/**
|
|
233
|
-
* fetch a ServiceInstance
|
|
234
|
-
*
|
|
235
|
-
* @param callback - Callback to handle processed record
|
|
236
|
-
*/
|
|
237
|
-
fetch(callback?: (error: Error | null, items: ServiceInstance) => any): void;
|
|
238
|
-
friendlyName: string;
|
|
239
|
-
links: string;
|
|
240
|
-
sid: string;
|
|
241
|
-
/**
|
|
242
|
-
* Produce a plain JSON object version of the ServiceInstance for serialization.
|
|
243
|
-
* Removes any circular references in the object.
|
|
244
|
-
*/
|
|
245
|
-
toJSON(): any;
|
|
246
|
-
/**
|
|
247
|
-
* update a ServiceInstance
|
|
248
|
-
*
|
|
249
|
-
* @param opts - Options for request
|
|
250
|
-
* @param callback - Callback to handle processed record
|
|
251
|
-
*/
|
|
252
|
-
update(opts?: ServiceInstanceUpdateOptions, callback?: (error: Error | null, items: ServiceInstance) => any): void;
|
|
253
|
-
url: string;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
declare class ServicePage extends Page<Authy, ServicePayload, ServiceResource, ServiceInstance> {
|
|
258
|
-
/**
|
|
259
|
-
* Initialize the ServicePagePLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
|
260
|
-
*
|
|
261
|
-
* @param version - Version of the resource
|
|
262
|
-
* @param response - Response from the API
|
|
263
|
-
* @param solution - Path solution
|
|
264
|
-
*/
|
|
265
|
-
constructor(version: Authy, response: Response<string>, solution: ServiceSolution);
|
|
266
|
-
|
|
267
|
-
/**
|
|
268
|
-
* Build an instance of ServiceInstance
|
|
269
|
-
*
|
|
270
|
-
* @param payload - Payload response from the API
|
|
271
|
-
*/
|
|
272
|
-
getInstance(payload: ServicePayload): ServiceInstance;
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
export { ServiceContext, ServiceInstance, ServiceList, ServiceListInstance, ServiceListInstanceCreateOptions, ServiceListInstanceEachOptions, ServiceListInstanceOptions, ServiceListInstancePageOptions, ServicePage, ServicePayload, ServiceResource, ServiceSolution }
|