twilio 3.75.1 → 3.76.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 (64) hide show
  1. package/lib/rest/Chat.d.ts +4 -0
  2. package/lib/rest/Chat.js +19 -0
  3. package/lib/rest/FlexApi.d.ts +2 -0
  4. package/lib/rest/FlexApi.js +8 -0
  5. package/lib/rest/Insights.d.ts +2 -0
  6. package/lib/rest/Insights.js +8 -0
  7. package/lib/rest/Supersim.d.ts +0 -2
  8. package/lib/rest/Supersim.js +0 -8
  9. package/lib/rest/api/v2010/account/call/payment.d.ts +1 -1
  10. package/lib/rest/api/v2010/account/call/payment.js +1 -1
  11. package/lib/rest/api/v2010/account/call/stream.d.ts +2 -8
  12. package/lib/rest/api/v2010/account/call/stream.js +8 -7
  13. package/lib/rest/api/v2010/account/usage/record/allTime.d.ts +1 -1
  14. package/lib/rest/api/v2010/account/usage/record/daily.d.ts +1 -1
  15. package/lib/rest/api/v2010/account/usage/record/lastMonth.d.ts +1 -1
  16. package/lib/rest/api/v2010/account/usage/record/monthly.d.ts +1 -1
  17. package/lib/rest/api/v2010/account/usage/record/thisMonth.d.ts +1 -1
  18. package/lib/rest/api/v2010/account/usage/record/today.d.ts +1 -1
  19. package/lib/rest/api/v2010/account/usage/record/yearly.d.ts +1 -1
  20. package/lib/rest/api/v2010/account/usage/record/yesterday.d.ts +1 -1
  21. package/lib/rest/api/v2010/account/usage/record.d.ts +1 -1
  22. package/lib/rest/api/v2010/account/usage/trigger.d.ts +1 -1
  23. package/lib/rest/chat/V3.d.ts +25 -0
  24. package/lib/rest/chat/V3.js +46 -0
  25. package/lib/rest/chat/v3/channel.d.ts +177 -0
  26. package/lib/rest/chat/v3/channel.js +373 -0
  27. package/lib/rest/flexApi/V1.d.ts +3 -0
  28. package/lib/rest/flexApi/V1.js +11 -0
  29. package/lib/rest/flexApi/v1/configuration.d.ts +2 -0
  30. package/lib/rest/flexApi/v1/configuration.js +3 -0
  31. package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelInvite.d.ts +266 -0
  32. package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelInvite.js +505 -0
  33. package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelParticipant.d.ts +323 -0
  34. package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelParticipant.js +674 -0
  35. package/lib/rest/flexApi/v1/interaction/interactionChannel.d.ts +327 -0
  36. package/lib/rest/flexApi/v1/interaction/interactionChannel.js +718 -0
  37. package/lib/rest/flexApi/v1/interaction.d.ts +152 -0
  38. package/lib/rest/flexApi/v1/interaction.js +395 -0
  39. package/lib/rest/insights/V1.d.ts +3 -0
  40. package/lib/rest/insights/V1.js +11 -0
  41. package/lib/rest/insights/v1/annotation.d.ts +188 -0
  42. package/lib/rest/insights/v1/annotation.js +406 -0
  43. package/lib/rest/media/v1/mediaProcessor.js +1 -1
  44. package/lib/rest/media/v1/mediaRecording.d.ts +12 -0
  45. package/lib/rest/media/v1/mediaRecording.js +8 -0
  46. package/lib/rest/media/v1/playerStreamer.d.ts +4 -0
  47. package/lib/rest/media/v1/playerStreamer.js +5 -1
  48. package/lib/rest/supersim/V1.d.ts +0 -3
  49. package/lib/rest/supersim/V1.js +0 -11
  50. package/lib/rest/supersim/v1/fleet.d.ts +0 -16
  51. package/lib/rest/supersim/v1/fleet.js +0 -18
  52. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueCumulativeStatistics.d.ts +1 -1
  53. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueCumulativeStatistics.js +2 -2
  54. package/lib/rest/taskrouter/v1/workspace/workflow/workflowCumulativeStatistics.d.ts +1 -1
  55. package/lib/rest/taskrouter/v1/workspace/workflow/workflowCumulativeStatistics.js +2 -2
  56. package/lib/rest/taskrouter/v1/workspace/workspaceCumulativeStatistics.d.ts +1 -1
  57. package/lib/rest/taskrouter/v1/workspace/workspaceCumulativeStatistics.js +2 -2
  58. package/lib/rest/video/v1/composition.d.ts +4 -0
  59. package/lib/rest/video/v1/composition.js +6 -0
  60. package/lib/rest/video/v1/recording.d.ts +4 -0
  61. package/lib/rest/video/v1/recording.js +6 -0
  62. package/package.json +3 -3
  63. package/lib/rest/supersim/v1/command.d.ts +0 -342
  64. package/lib/rest/supersim/v1/command.js +0 -652
@@ -1,342 +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
- type CommandDirection = 'to_sim'|'from_sim';
14
-
15
- type CommandStatus = 'queued'|'sent'|'delivered'|'received'|'failed';
16
-
17
- /**
18
- * Initialize the CommandList
19
- *
20
- * PLEASE NOTE that this class contains beta products that are subject to change.
21
- * Use them with caution.
22
- *
23
- * @param version - Version of the resource
24
- */
25
- declare function CommandList(version: V1): CommandListInstance;
26
-
27
- interface CommandListInstance {
28
- /**
29
- * @param sid - sid of instance
30
- */
31
- (sid: string): CommandContext;
32
- /**
33
- * create a CommandInstance
34
- *
35
- * @param opts - Options for request
36
- * @param callback - Callback to handle processed record
37
- */
38
- create(opts: CommandListInstanceCreateOptions, callback?: (error: Error | null, item: CommandInstance) => any): Promise<CommandInstance>;
39
- /**
40
- * Streams CommandInstance records from the API.
41
- *
42
- * This operation lazily loads records as efficiently as possible until the limit
43
- * is reached.
44
- *
45
- * The results are passed into the callback function, so this operation is memory
46
- * efficient.
47
- *
48
- * If a function is passed as the first argument, it will be used as the callback
49
- * function.
50
- *
51
- * @param callback - Function to process each record
52
- */
53
- each(callback?: (item: CommandInstance, done: (err?: Error) => void) => void): void;
54
- /**
55
- * Streams CommandInstance records from the API.
56
- *
57
- * This operation lazily loads records as efficiently as possible until the limit
58
- * is reached.
59
- *
60
- * The results are passed into the callback function, so this operation is memory
61
- * efficient.
62
- *
63
- * If a function is passed as the first argument, it will be used as the callback
64
- * function.
65
- *
66
- * @param opts - Options for request
67
- * @param callback - Function to process each record
68
- */
69
- each(opts?: CommandListInstanceEachOptions, callback?: (item: CommandInstance, done: (err?: Error) => void) => void): void;
70
- /**
71
- * Constructs a command
72
- *
73
- * @param sid - The SID that identifies the resource to fetch
74
- */
75
- get(sid: string): CommandContext;
76
- /**
77
- * Retrieve a single target page of CommandInstance records from the API.
78
- *
79
- * The request is executed immediately.
80
- *
81
- * If a function is passed as the first argument, it will be used as the callback
82
- * function.
83
- *
84
- * @param callback - Callback to handle list of records
85
- */
86
- getPage(callback?: (error: Error | null, items: CommandPage) => any): Promise<CommandPage>;
87
- /**
88
- * Retrieve a single target page of CommandInstance records from the API.
89
- *
90
- * The request is executed immediately.
91
- *
92
- * If a function is passed as the first argument, it will be used as the callback
93
- * function.
94
- *
95
- * @param targetUrl - API-generated URL for the requested results page
96
- * @param callback - Callback to handle list of records
97
- */
98
- getPage(targetUrl?: string, callback?: (error: Error | null, items: CommandPage) => any): Promise<CommandPage>;
99
- /**
100
- * Lists CommandInstance records from the API as a list.
101
- *
102
- * If a function is passed as the first argument, it will be used as the callback
103
- * function.
104
- *
105
- * @param callback - Callback to handle list of records
106
- */
107
- list(callback?: (error: Error | null, items: CommandInstance[]) => any): Promise<CommandInstance[]>;
108
- /**
109
- * Lists CommandInstance records from the API as a list.
110
- *
111
- * If a function is passed as the first argument, it will be used as the callback
112
- * function.
113
- *
114
- * @param opts - Options for request
115
- * @param callback - Callback to handle list of records
116
- */
117
- list(opts?: CommandListInstanceOptions, callback?: (error: Error | null, items: CommandInstance[]) => any): Promise<CommandInstance[]>;
118
- /**
119
- * Retrieve a single page of CommandInstance records from the API.
120
- *
121
- * The request is executed immediately.
122
- *
123
- * If a function is passed as the first argument, it will be used as the callback
124
- * function.
125
- *
126
- * @param callback - Callback to handle list of records
127
- */
128
- page(callback?: (error: Error | null, items: CommandPage) => any): Promise<CommandPage>;
129
- /**
130
- * Retrieve a single page of CommandInstance records from the API.
131
- *
132
- * The request is executed immediately.
133
- *
134
- * If a function is passed as the first argument, it will be used as the callback
135
- * function.
136
- *
137
- * @param opts - Options for request
138
- * @param callback - Callback to handle list of records
139
- */
140
- page(opts?: CommandListInstancePageOptions, callback?: (error: Error | null, items: CommandPage) => any): Promise<CommandPage>;
141
- /**
142
- * Provide a user-friendly representation
143
- */
144
- toJSON(): any;
145
- }
146
-
147
- /**
148
- * Options to pass to create
149
- *
150
- * @property callbackMethod - The HTTP method we should use to call callback_url
151
- * @property callbackUrl - The URL we should call after we have sent the command
152
- * @property command - The message body of the command
153
- * @property sim - The sid or unique_name of the SIM to send the Command to
154
- */
155
- interface CommandListInstanceCreateOptions {
156
- callbackMethod?: string;
157
- callbackUrl?: string;
158
- command: string;
159
- sim: string;
160
- }
161
-
162
- /**
163
- * Options to pass to each
164
- *
165
- * @property callback -
166
- * Function to process each record. If this and a positional
167
- * callback are passed, this one will be used
168
- * @property direction - The direction of the Command
169
- * @property done - Function to be called upon completion of streaming
170
- * @property limit -
171
- * Upper limit for the number of records to return.
172
- * each() guarantees never to return more than limit.
173
- * Default is no limit
174
- * @property pageSize -
175
- * Number of records to fetch per request,
176
- * when not set will use the default value of 50 records.
177
- * If no pageSize is defined but a limit is defined,
178
- * each() will attempt to read the limit with the most efficient
179
- * page size, i.e. min(limit, 1000)
180
- * @property sim - The SID or unique name of the Sim that Command was sent to or from.
181
- * @property status - The status of the Command
182
- */
183
- interface CommandListInstanceEachOptions {
184
- callback?: (item: CommandInstance, done: (err?: Error) => void) => void;
185
- direction?: CommandDirection;
186
- done?: Function;
187
- limit?: number;
188
- pageSize?: number;
189
- sim?: string;
190
- status?: CommandStatus;
191
- }
192
-
193
- /**
194
- * Options to pass to list
195
- *
196
- * @property direction - The direction of the Command
197
- * @property limit -
198
- * Upper limit for the number of records to return.
199
- * list() guarantees never to return more than limit.
200
- * Default is no limit
201
- * @property pageSize -
202
- * Number of records to fetch per request,
203
- * when not set will use the default value of 50 records.
204
- * If no page_size is defined but a limit is defined,
205
- * list() will attempt to read the limit with the most
206
- * efficient page size, i.e. min(limit, 1000)
207
- * @property sim - The SID or unique name of the Sim that Command was sent to or from.
208
- * @property status - The status of the Command
209
- */
210
- interface CommandListInstanceOptions {
211
- direction?: CommandDirection;
212
- limit?: number;
213
- pageSize?: number;
214
- sim?: string;
215
- status?: CommandStatus;
216
- }
217
-
218
- /**
219
- * Options to pass to page
220
- *
221
- * @property direction - The direction of the Command
222
- * @property pageNumber - Page Number, this value is simply for client state
223
- * @property pageSize - Number of records to return, defaults to 50
224
- * @property pageToken - PageToken provided by the API
225
- * @property sim - The SID or unique name of the Sim that Command was sent to or from.
226
- * @property status - The status of the Command
227
- */
228
- interface CommandListInstancePageOptions {
229
- direction?: CommandDirection;
230
- pageNumber?: number;
231
- pageSize?: number;
232
- pageToken?: string;
233
- sim?: string;
234
- status?: CommandStatus;
235
- }
236
-
237
- interface CommandPayload extends CommandResource, Page.TwilioResponsePayload {
238
- }
239
-
240
- interface CommandResource {
241
- account_sid: string;
242
- command: string;
243
- date_created: Date;
244
- date_updated: Date;
245
- direction: CommandDirection;
246
- sid: string;
247
- sim_sid: string;
248
- status: CommandStatus;
249
- url: string;
250
- }
251
-
252
- interface CommandSolution {
253
- }
254
-
255
-
256
- declare class CommandContext {
257
- /**
258
- * Initialize the CommandContext
259
- *
260
- * PLEASE NOTE that this class contains beta products that are subject to change.
261
- * Use them with caution.
262
- *
263
- * @param version - Version of the resource
264
- * @param sid - The SID that identifies the resource to fetch
265
- */
266
- constructor(version: V1, sid: string);
267
-
268
- /**
269
- * fetch a CommandInstance
270
- *
271
- * @param callback - Callback to handle processed record
272
- */
273
- fetch(callback?: (error: Error | null, items: CommandInstance) => any): Promise<CommandInstance>;
274
- /**
275
- * Provide a user-friendly representation
276
- */
277
- toJSON(): any;
278
- }
279
-
280
-
281
- declare class CommandInstance extends SerializableClass {
282
- /**
283
- * Initialize the CommandContext
284
- *
285
- * PLEASE NOTE that this class contains beta products that are subject to change.
286
- * Use them with caution.
287
- *
288
- * @param version - Version of the resource
289
- * @param payload - The instance payload
290
- * @param sid - The SID that identifies the resource to fetch
291
- */
292
- constructor(version: V1, payload: CommandPayload, sid: string);
293
-
294
- private _proxy: CommandContext;
295
- accountSid: string;
296
- command: string;
297
- dateCreated: Date;
298
- dateUpdated: Date;
299
- direction: CommandDirection;
300
- /**
301
- * fetch a CommandInstance
302
- *
303
- * @param callback - Callback to handle processed record
304
- */
305
- fetch(callback?: (error: Error | null, items: CommandInstance) => any): Promise<CommandInstance>;
306
- sid: string;
307
- simSid: string;
308
- status: CommandStatus;
309
- /**
310
- * Provide a user-friendly representation
311
- */
312
- toJSON(): any;
313
- url: string;
314
- }
315
-
316
-
317
- declare class CommandPage extends Page<V1, CommandPayload, CommandResource, CommandInstance> {
318
- /**
319
- * Initialize the CommandPage
320
- *
321
- * PLEASE NOTE that this class contains beta products that are subject to change.
322
- * Use them with caution.
323
- *
324
- * @param version - Version of the resource
325
- * @param response - Response from the API
326
- * @param solution - Path solution
327
- */
328
- constructor(version: V1, response: Response<string>, solution: CommandSolution);
329
-
330
- /**
331
- * Build an instance of CommandInstance
332
- *
333
- * @param payload - Payload response from the API
334
- */
335
- getInstance(payload: CommandPayload): CommandInstance;
336
- /**
337
- * Provide a user-friendly representation
338
- */
339
- toJSON(): any;
340
- }
341
-
342
- export { CommandContext, CommandDirection, CommandInstance, CommandList, CommandListInstance, CommandListInstanceCreateOptions, CommandListInstanceEachOptions, CommandListInstanceOptions, CommandListInstancePageOptions, CommandPage, CommandPayload, CommandResource, CommandSolution, CommandStatus }