twilio 3.82.1 → 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.
Files changed (53) hide show
  1. package/lib/rest/Oauth.d.ts +32 -0
  2. package/lib/rest/Oauth.js +79 -0
  3. package/lib/rest/Supersim.d.ts +2 -0
  4. package/lib/rest/Supersim.js +9 -0
  5. package/lib/rest/Twilio.d.ts +2 -0
  6. package/lib/rest/Twilio.js +14 -0
  7. package/lib/rest/api/v2010/account/conference/participant.d.ts +16 -2
  8. package/lib/rest/api/v2010/account/conference/participant.js +28 -5
  9. package/lib/rest/api/v2010/account/message.d.ts +2 -0
  10. package/lib/rest/api/v2010/account/message.js +3 -0
  11. package/lib/rest/api/v2010/account/usage/record/allTime.d.ts +1 -1
  12. package/lib/rest/api/v2010/account/usage/record/daily.d.ts +1 -1
  13. package/lib/rest/api/v2010/account/usage/record/lastMonth.d.ts +1 -1
  14. package/lib/rest/api/v2010/account/usage/record/monthly.d.ts +1 -1
  15. package/lib/rest/api/v2010/account/usage/record/thisMonth.d.ts +1 -1
  16. package/lib/rest/api/v2010/account/usage/record/today.d.ts +1 -1
  17. package/lib/rest/api/v2010/account/usage/record/yearly.d.ts +1 -1
  18. package/lib/rest/api/v2010/account/usage/record/yesterday.d.ts +1 -1
  19. package/lib/rest/api/v2010/account/usage/record.d.ts +1 -1
  20. package/lib/rest/api/v2010/account/usage/trigger.d.ts +1 -1
  21. package/lib/rest/oauth/V1.d.ts +34 -0
  22. package/lib/rest/oauth/V1.js +80 -0
  23. package/lib/rest/oauth/v1/oauth.d.ts +115 -0
  24. package/lib/rest/oauth/v1/oauth.js +299 -0
  25. package/lib/rest/oauth/v1/openidDiscovery.d.ts +137 -0
  26. package/lib/rest/oauth/v1/openidDiscovery.js +329 -0
  27. package/lib/rest/oauth/v1/token.d.ts +115 -0
  28. package/lib/rest/oauth/v1/token.js +265 -0
  29. package/lib/rest/oauth/v1/userInfo.d.ts +123 -0
  30. package/lib/rest/oauth/v1/userInfo.js +308 -0
  31. package/lib/rest/supersim/V1.d.ts +3 -0
  32. package/lib/rest/supersim/V1.js +12 -0
  33. package/lib/rest/supersim/v1/settingsUpdate.d.ts +261 -0
  34. package/lib/rest/supersim/v1/settingsUpdate.js +466 -0
  35. package/lib/rest/verify/v2/service/accessToken.d.ts +0 -12
  36. package/lib/rest/verify/v2/service/accessToken.js +0 -12
  37. package/lib/rest/verify/v2/service/entity/challenge/notification.d.ts +0 -9
  38. package/lib/rest/verify/v2/service/entity/challenge/notification.js +0 -9
  39. package/lib/rest/verify/v2/service/entity/challenge.d.ts +0 -12
  40. package/lib/rest/verify/v2/service/entity/challenge.js +0 -12
  41. package/lib/rest/verify/v2/service/entity/factor.d.ts +0 -12
  42. package/lib/rest/verify/v2/service/entity/factor.js +0 -12
  43. package/lib/rest/verify/v2/service/entity/newFactor.d.ts +0 -9
  44. package/lib/rest/verify/v2/service/entity/newFactor.js +0 -9
  45. package/lib/rest/verify/v2/service/entity.d.ts +0 -12
  46. package/lib/rest/verify/v2/service/entity.js +0 -12
  47. package/lib/rest/verify/v2/service/webhook.d.ts +0 -12
  48. package/lib/rest/verify/v2/service/webhook.js +0 -12
  49. package/lib/rest/verify/v2/template.d.ts +2 -0
  50. package/lib/rest/verify/v2/template.js +2 -0
  51. package/lib/twiml/VoiceResponse.d.ts +31 -1
  52. package/lib/twiml/VoiceResponse.js +34 -2
  53. package/package.json +1 -1
@@ -0,0 +1,261 @@
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 SettingsUpdateStatus = 'scheduled'|'in-progress'|'successful'|'failed';
14
+
15
+ /**
16
+ * Initialize the SettingsUpdateList
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
+ */
23
+ declare function SettingsUpdateList(version: V1): SettingsUpdateListInstance;
24
+
25
+ interface SettingsUpdateListInstance {
26
+ /**
27
+ * Streams SettingsUpdateInstance records from the API.
28
+ *
29
+ * This operation lazily loads records as efficiently as possible until the limit
30
+ * is reached.
31
+ *
32
+ * The results are passed into the callback function, so this operation is memory
33
+ * efficient.
34
+ *
35
+ * If a function is passed as the first argument, it will be used as the callback
36
+ * function.
37
+ *
38
+ * @param callback - Function to process each record
39
+ */
40
+ each(callback?: (item: SettingsUpdateInstance, done: (err?: Error) => void) => void): void;
41
+ /**
42
+ * Streams SettingsUpdateInstance records from the API.
43
+ *
44
+ * This operation lazily loads records as efficiently as possible until the limit
45
+ * is reached.
46
+ *
47
+ * The results are passed into the callback function, so this operation is memory
48
+ * efficient.
49
+ *
50
+ * If a function is passed as the first argument, it will be used as the callback
51
+ * function.
52
+ *
53
+ * @param opts - Options for request
54
+ * @param callback - Function to process each record
55
+ */
56
+ each(opts?: SettingsUpdateListInstanceEachOptions, callback?: (item: SettingsUpdateInstance, done: (err?: Error) => void) => void): void;
57
+ /**
58
+ * Retrieve a single target page of SettingsUpdateInstance records from the API.
59
+ *
60
+ * The request is executed immediately.
61
+ *
62
+ * If a function is passed as the first argument, it will be used as the callback
63
+ * function.
64
+ *
65
+ * @param callback - Callback to handle list of records
66
+ */
67
+ getPage(callback?: (error: Error | null, items: SettingsUpdatePage) => any): Promise<SettingsUpdatePage>;
68
+ /**
69
+ * Retrieve a single target page of SettingsUpdateInstance records from the API.
70
+ *
71
+ * The request is executed immediately.
72
+ *
73
+ * If a function is passed as the first argument, it will be used as the callback
74
+ * function.
75
+ *
76
+ * @param targetUrl - API-generated URL for the requested results page
77
+ * @param callback - Callback to handle list of records
78
+ */
79
+ getPage(targetUrl?: string, callback?: (error: Error | null, items: SettingsUpdatePage) => any): Promise<SettingsUpdatePage>;
80
+ /**
81
+ * Lists SettingsUpdateInstance records from the API as a list.
82
+ *
83
+ * If a function is passed as the first argument, it will be used as the callback
84
+ * function.
85
+ *
86
+ * @param callback - Callback to handle list of records
87
+ */
88
+ list(callback?: (error: Error | null, items: SettingsUpdateInstance[]) => any): Promise<SettingsUpdateInstance[]>;
89
+ /**
90
+ * Lists SettingsUpdateInstance 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 opts - Options for request
96
+ * @param callback - Callback to handle list of records
97
+ */
98
+ list(opts?: SettingsUpdateListInstanceOptions, callback?: (error: Error | null, items: SettingsUpdateInstance[]) => any): Promise<SettingsUpdateInstance[]>;
99
+ /**
100
+ * Retrieve a single page of SettingsUpdateInstance records from the API.
101
+ *
102
+ * The request is executed immediately.
103
+ *
104
+ * If a function is passed as the first argument, it will be used as the callback
105
+ * function.
106
+ *
107
+ * @param callback - Callback to handle list of records
108
+ */
109
+ page(callback?: (error: Error | null, items: SettingsUpdatePage) => any): Promise<SettingsUpdatePage>;
110
+ /**
111
+ * Retrieve a single page of SettingsUpdateInstance records from the API.
112
+ *
113
+ * The request is executed immediately.
114
+ *
115
+ * If a function is passed as the first argument, it will be used as the callback
116
+ * function.
117
+ *
118
+ * @param opts - Options for request
119
+ * @param callback - Callback to handle list of records
120
+ */
121
+ page(opts?: SettingsUpdateListInstancePageOptions, callback?: (error: Error | null, items: SettingsUpdatePage) => any): Promise<SettingsUpdatePage>;
122
+ /**
123
+ * Provide a user-friendly representation
124
+ */
125
+ toJSON(): any;
126
+ }
127
+
128
+ /**
129
+ * Options to pass to each
130
+ *
131
+ * @property callback -
132
+ * Function to process each record. If this and a positional
133
+ * callback are passed, this one will be used
134
+ * @property done - Function to be called upon completion of streaming
135
+ * @property limit -
136
+ * Upper limit for the number of records to return.
137
+ * each() guarantees never to return more than limit.
138
+ * Default is no limit
139
+ * @property pageSize -
140
+ * Number of records to fetch per request,
141
+ * when not set will use the default value of 50 records.
142
+ * If no pageSize is defined but a limit is defined,
143
+ * each() will attempt to read the limit with the most efficient
144
+ * page size, i.e. min(limit, 1000)
145
+ * @property sim - Filter the Settings Updates by Super SIM
146
+ */
147
+ interface SettingsUpdateListInstanceEachOptions {
148
+ callback?: (item: SettingsUpdateInstance, done: (err?: Error) => void) => void;
149
+ done?: Function;
150
+ limit?: number;
151
+ pageSize?: number;
152
+ sim?: string;
153
+ }
154
+
155
+ /**
156
+ * Options to pass to list
157
+ *
158
+ * @property limit -
159
+ * Upper limit for the number of records to return.
160
+ * list() guarantees never to return more than limit.
161
+ * Default is no limit
162
+ * @property pageSize -
163
+ * Number of records to fetch per request,
164
+ * when not set will use the default value of 50 records.
165
+ * If no page_size is defined but a limit is defined,
166
+ * list() will attempt to read the limit with the most
167
+ * efficient page size, i.e. min(limit, 1000)
168
+ * @property sim - Filter the Settings Updates by Super SIM
169
+ */
170
+ interface SettingsUpdateListInstanceOptions {
171
+ limit?: number;
172
+ pageSize?: number;
173
+ sim?: string;
174
+ }
175
+
176
+ /**
177
+ * Options to pass to page
178
+ *
179
+ * @property pageNumber - Page Number, this value is simply for client state
180
+ * @property pageSize - Number of records to return, defaults to 50
181
+ * @property pageToken - PageToken provided by the API
182
+ * @property sim - Filter the Settings Updates by Super SIM
183
+ */
184
+ interface SettingsUpdateListInstancePageOptions {
185
+ pageNumber?: number;
186
+ pageSize?: number;
187
+ pageToken?: string;
188
+ sim?: string;
189
+ }
190
+
191
+ interface SettingsUpdatePayload extends SettingsUpdateResource, Page.TwilioResponsePayload {
192
+ }
193
+
194
+ interface SettingsUpdateResource {
195
+ date_completed: Date;
196
+ date_created: Date;
197
+ date_updated: Date;
198
+ iccid: string;
199
+ packages: object[];
200
+ sid: string;
201
+ sim_sid: string;
202
+ status: SettingsUpdateStatus;
203
+ }
204
+
205
+ interface SettingsUpdateSolution {
206
+ }
207
+
208
+
209
+ declare class SettingsUpdateInstance extends SerializableClass {
210
+ /**
211
+ * Initialize the SettingsUpdateContext
212
+ *
213
+ * PLEASE NOTE that this class contains beta products that are subject to change.
214
+ * Use them with caution.
215
+ *
216
+ * @param version - Version of the resource
217
+ * @param payload - The instance payload
218
+ */
219
+ constructor(version: V1, payload: SettingsUpdatePayload);
220
+
221
+ dateCompleted: Date;
222
+ dateCreated: Date;
223
+ dateUpdated: Date;
224
+ iccid: string;
225
+ packages: object[];
226
+ sid: string;
227
+ simSid: string;
228
+ status: SettingsUpdateStatus;
229
+ /**
230
+ * Provide a user-friendly representation
231
+ */
232
+ toJSON(): any;
233
+ }
234
+
235
+
236
+ declare class SettingsUpdatePage extends Page<V1, SettingsUpdatePayload, SettingsUpdateResource, SettingsUpdateInstance> {
237
+ /**
238
+ * Initialize the SettingsUpdatePage
239
+ *
240
+ * PLEASE NOTE that this class contains beta products that are subject to change.
241
+ * Use them with caution.
242
+ *
243
+ * @param version - Version of the resource
244
+ * @param response - Response from the API
245
+ * @param solution - Path solution
246
+ */
247
+ constructor(version: V1, response: Response<string>, solution: SettingsUpdateSolution);
248
+
249
+ /**
250
+ * Build an instance of SettingsUpdateInstance
251
+ *
252
+ * @param payload - Payload response from the API
253
+ */
254
+ getInstance(payload: SettingsUpdatePayload): SettingsUpdateInstance;
255
+ /**
256
+ * Provide a user-friendly representation
257
+ */
258
+ toJSON(): any;
259
+ }
260
+
261
+ export { SettingsUpdateInstance, SettingsUpdateList, SettingsUpdateListInstance, SettingsUpdateListInstanceEachOptions, SettingsUpdateListInstanceOptions, SettingsUpdateListInstancePageOptions, SettingsUpdatePage, SettingsUpdatePayload, SettingsUpdateResource, SettingsUpdateSolution, SettingsUpdateStatus }