@aviaryhq/cloudglue-js 0.4.11 → 0.4.13
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/dist/generated/Chat.d.ts +8 -8
- package/dist/generated/Chat.js +30 -30
- package/dist/generated/Collections.d.ts +25 -23
- package/dist/generated/Collections.js +266 -264
- package/dist/generated/Describe.d.ts +7 -7
- package/dist/generated/Describe.js +58 -58
- package/dist/generated/Extract.d.ts +6 -6
- package/dist/generated/Extract.js +52 -52
- package/dist/generated/Face_Detection.d.ts +6 -6
- package/dist/generated/Face_Detection.js +25 -25
- package/dist/generated/Face_Match.d.ts +6 -6
- package/dist/generated/Face_Match.js +26 -26
- package/dist/generated/Files.d.ts +1009 -10
- package/dist/generated/Files.js +247 -115
- package/dist/generated/Frames.d.ts +2 -2
- package/dist/generated/Frames.js +17 -17
- package/dist/generated/Search.d.ts +212 -19
- package/dist/generated/Search.js +143 -30
- package/dist/generated/Segmentations.d.ts +208 -2
- package/dist/generated/Segmentations.js +34 -29
- package/dist/generated/Segments.d.ts +13 -13
- package/dist/generated/Segments.js +49 -49
- package/dist/generated/Tags.d.ts +660 -0
- package/dist/generated/Tags.js +160 -0
- package/dist/generated/Transcribe.d.ts +7 -7
- package/dist/generated/Transcribe.js +46 -46
- package/dist/generated/Webhooks.d.ts +5 -5
- package/dist/generated/Webhooks.js +61 -61
- package/dist/generated/common.d.ts +391 -11
- package/dist/generated/common.js +63 -28
- package/dist/generated/index.d.ts +14 -13
- package/dist/generated/index.js +3 -1
- package/dist/src/api/chat-completion.api.d.ts +38 -0
- package/dist/src/api/chat-completion.api.js +15 -0
- package/dist/src/api/collections.api.d.ts +666 -0
- package/dist/src/api/collections.api.js +134 -0
- package/dist/src/api/describe.api.d.ts +153 -0
- package/dist/src/api/describe.api.js +57 -0
- package/dist/src/api/extract.api.d.ts +144 -0
- package/dist/src/api/extract.api.js +55 -0
- package/dist/src/api/face-detection.api.d.ts +77 -0
- package/dist/src/api/face-detection.api.js +41 -0
- package/dist/src/api/face-match.api.d.ts +94 -0
- package/dist/src/api/face-match.api.js +41 -0
- package/dist/src/api/files.api.d.ts +705 -0
- package/dist/src/api/files.api.js +146 -0
- package/dist/src/api/frame-extraction.api.d.ts +264 -0
- package/dist/src/api/frame-extraction.api.js +37 -0
- package/dist/src/api/search.api.d.ts +316 -0
- package/dist/src/api/search.api.js +22 -0
- package/dist/src/api/segmentations.api.d.ts +395 -0
- package/dist/src/api/segmentations.api.js +36 -0
- package/dist/src/api/segments.api.d.ts +141 -0
- package/dist/src/api/segments.api.js +40 -0
- package/dist/src/api/tags.api.d.ts +71 -0
- package/dist/src/api/tags.api.js +31 -0
- package/dist/src/api/transcribe.api.d.ts +150 -0
- package/dist/src/api/transcribe.api.js +65 -0
- package/dist/src/api/webhooks.api.d.ts +69 -0
- package/dist/src/api/webhooks.api.js +28 -0
- package/dist/src/client.d.ts +20 -2967
- package/dist/src/client.js +55 -643
- package/dist/src/error.d.ts +7 -0
- package/dist/src/error.js +14 -0
- package/dist/src/types.d.ts +20 -8
- package/package.json +2 -1
package/dist/generated/Files.js
CHANGED
|
@@ -8,7 +8,7 @@ const common_1 = require("./common");
|
|
|
8
8
|
const common_2 = require("./common");
|
|
9
9
|
const FileList = zod_1.z
|
|
10
10
|
.object({
|
|
11
|
-
object: zod_1.z.literal(
|
|
11
|
+
object: zod_1.z.literal('list'),
|
|
12
12
|
data: zod_1.z.array(common_1.File),
|
|
13
13
|
total: zod_1.z.number().int(),
|
|
14
14
|
limit: zod_1.z.number().int(),
|
|
@@ -20,11 +20,11 @@ const SegmentationListItem = zod_1.z
|
|
|
20
20
|
.object({
|
|
21
21
|
segmentation_id: zod_1.z.string().uuid(),
|
|
22
22
|
status: zod_1.z.enum([
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
'pending',
|
|
24
|
+
'processing',
|
|
25
|
+
'completed',
|
|
26
|
+
'failed',
|
|
27
|
+
'not_applicable',
|
|
28
28
|
]),
|
|
29
29
|
created_at: zod_1.z.number().gte(0),
|
|
30
30
|
file_id: zod_1.z.string().uuid(),
|
|
@@ -36,7 +36,7 @@ const SegmentationListItem = zod_1.z
|
|
|
36
36
|
.passthrough();
|
|
37
37
|
const SegmentationList = zod_1.z
|
|
38
38
|
.object({
|
|
39
|
-
object: zod_1.z.literal(
|
|
39
|
+
object: zod_1.z.literal('list'),
|
|
40
40
|
data: zod_1.z.array(SegmentationListItem),
|
|
41
41
|
total: zod_1.z.number().int(),
|
|
42
42
|
limit: zod_1.z.number().int(),
|
|
@@ -46,11 +46,11 @@ const SegmentationList = zod_1.z
|
|
|
46
46
|
.passthrough();
|
|
47
47
|
const FrameExtractionList = zod_1.z
|
|
48
48
|
.object({
|
|
49
|
-
object: zod_1.z.literal(
|
|
49
|
+
object: zod_1.z.literal('list'),
|
|
50
50
|
data: zod_1.z.array(zod_1.z
|
|
51
51
|
.object({
|
|
52
52
|
frame_extraction_id: zod_1.z.string().uuid(),
|
|
53
|
-
status: zod_1.z.enum([
|
|
53
|
+
status: zod_1.z.enum(['pending', 'processing', 'completed', 'failed']),
|
|
54
54
|
created_at: zod_1.z.number().gte(0),
|
|
55
55
|
file_id: zod_1.z.string().uuid(),
|
|
56
56
|
frame_extraction_config: common_2.FrameExtractionConfig,
|
|
@@ -73,7 +73,7 @@ const FileUpload = zod_1.z
|
|
|
73
73
|
.strict()
|
|
74
74
|
.passthrough();
|
|
75
75
|
const FileDelete = zod_1.z
|
|
76
|
-
.object({ id: zod_1.z.string(), object: zod_1.z.literal(
|
|
76
|
+
.object({ id: zod_1.z.string(), object: zod_1.z.literal('file') })
|
|
77
77
|
.strict()
|
|
78
78
|
.passthrough();
|
|
79
79
|
const FileUpdate = zod_1.z
|
|
@@ -85,6 +85,18 @@ const FileUpdate = zod_1.z
|
|
|
85
85
|
.strict()
|
|
86
86
|
.passthrough();
|
|
87
87
|
const createFileSegmentation_Body = common_2.SegmentationConfig;
|
|
88
|
+
const FileSegment = zod_1.z
|
|
89
|
+
.object({
|
|
90
|
+
id: zod_1.z.string().uuid(),
|
|
91
|
+
file_id: zod_1.z.string().uuid(),
|
|
92
|
+
start_time: zod_1.z.number(),
|
|
93
|
+
end_time: zod_1.z.number(),
|
|
94
|
+
thumbnail_url: zod_1.z.string(),
|
|
95
|
+
metadata: zod_1.z.object({}).partial().strict().passthrough().optional(),
|
|
96
|
+
segmentation_id: zod_1.z.string().uuid().optional(),
|
|
97
|
+
})
|
|
98
|
+
.strict()
|
|
99
|
+
.passthrough();
|
|
88
100
|
const createFileFrameExtraction_Body = common_2.FrameExtractionConfig;
|
|
89
101
|
exports.schemas = {
|
|
90
102
|
FileList,
|
|
@@ -95,20 +107,21 @@ exports.schemas = {
|
|
|
95
107
|
FileDelete,
|
|
96
108
|
FileUpdate,
|
|
97
109
|
createFileSegmentation_Body,
|
|
110
|
+
FileSegment,
|
|
98
111
|
createFileFrameExtraction_Body,
|
|
99
112
|
};
|
|
100
113
|
const endpoints = (0, core_1.makeApi)([
|
|
101
114
|
{
|
|
102
|
-
method:
|
|
103
|
-
path:
|
|
104
|
-
alias:
|
|
115
|
+
method: 'post',
|
|
116
|
+
path: '/files',
|
|
117
|
+
alias: 'uploadFile',
|
|
105
118
|
description: `Upload a video file that can be used with Cloudglue services`,
|
|
106
|
-
requestFormat:
|
|
119
|
+
requestFormat: 'form-data',
|
|
107
120
|
parameters: [
|
|
108
121
|
{
|
|
109
|
-
name:
|
|
122
|
+
name: 'body',
|
|
110
123
|
description: `Upload a video file`,
|
|
111
|
-
type:
|
|
124
|
+
type: 'Body',
|
|
112
125
|
schema: FileUpload,
|
|
113
126
|
},
|
|
114
127
|
],
|
|
@@ -137,61 +150,61 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
137
150
|
],
|
|
138
151
|
},
|
|
139
152
|
{
|
|
140
|
-
method:
|
|
141
|
-
path:
|
|
142
|
-
alias:
|
|
153
|
+
method: 'get',
|
|
154
|
+
path: '/files',
|
|
155
|
+
alias: 'listFiles',
|
|
143
156
|
description: `List files that have been uploaded to Cloudglue`,
|
|
144
|
-
requestFormat:
|
|
157
|
+
requestFormat: 'json',
|
|
145
158
|
parameters: [
|
|
146
159
|
{
|
|
147
|
-
name:
|
|
148
|
-
type:
|
|
160
|
+
name: 'status',
|
|
161
|
+
type: 'Query',
|
|
149
162
|
schema: zod_1.z
|
|
150
163
|
.enum([
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
164
|
+
'pending',
|
|
165
|
+
'processing',
|
|
166
|
+
'completed',
|
|
167
|
+
'failed',
|
|
168
|
+
'not_applicable',
|
|
156
169
|
])
|
|
157
170
|
.optional(),
|
|
158
171
|
},
|
|
159
172
|
{
|
|
160
|
-
name:
|
|
161
|
-
type:
|
|
173
|
+
name: 'created_before',
|
|
174
|
+
type: 'Query',
|
|
162
175
|
schema: zod_1.z.string().optional(),
|
|
163
176
|
},
|
|
164
177
|
{
|
|
165
|
-
name:
|
|
166
|
-
type:
|
|
178
|
+
name: 'created_after',
|
|
179
|
+
type: 'Query',
|
|
167
180
|
schema: zod_1.z.string().optional(),
|
|
168
181
|
},
|
|
169
182
|
{
|
|
170
|
-
name:
|
|
171
|
-
type:
|
|
183
|
+
name: 'limit',
|
|
184
|
+
type: 'Query',
|
|
172
185
|
schema: zod_1.z.number().int().lte(100).optional().default(50),
|
|
173
186
|
},
|
|
174
187
|
{
|
|
175
|
-
name:
|
|
176
|
-
type:
|
|
188
|
+
name: 'offset',
|
|
189
|
+
type: 'Query',
|
|
177
190
|
schema: zod_1.z.number().int().optional().default(0),
|
|
178
191
|
},
|
|
179
192
|
{
|
|
180
|
-
name:
|
|
181
|
-
type:
|
|
193
|
+
name: 'order',
|
|
194
|
+
type: 'Query',
|
|
182
195
|
schema: zod_1.z
|
|
183
|
-
.enum([
|
|
196
|
+
.enum(['created_at', 'filename'])
|
|
184
197
|
.optional()
|
|
185
|
-
.default(
|
|
198
|
+
.default('created_at'),
|
|
186
199
|
},
|
|
187
200
|
{
|
|
188
|
-
name:
|
|
189
|
-
type:
|
|
190
|
-
schema: zod_1.z.enum([
|
|
201
|
+
name: 'sort',
|
|
202
|
+
type: 'Query',
|
|
203
|
+
schema: zod_1.z.enum(['asc', 'desc']).optional().default('desc'),
|
|
191
204
|
},
|
|
192
205
|
{
|
|
193
|
-
name:
|
|
194
|
-
type:
|
|
206
|
+
name: 'filter',
|
|
207
|
+
type: 'Query',
|
|
195
208
|
schema: zod_1.z.string().optional(),
|
|
196
209
|
},
|
|
197
210
|
],
|
|
@@ -205,15 +218,15 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
205
218
|
],
|
|
206
219
|
},
|
|
207
220
|
{
|
|
208
|
-
method:
|
|
209
|
-
path:
|
|
210
|
-
alias:
|
|
221
|
+
method: 'get',
|
|
222
|
+
path: '/files/:file_id',
|
|
223
|
+
alias: 'getFile',
|
|
211
224
|
description: `Retrieve details about a specific file`,
|
|
212
|
-
requestFormat:
|
|
225
|
+
requestFormat: 'json',
|
|
213
226
|
parameters: [
|
|
214
227
|
{
|
|
215
|
-
name:
|
|
216
|
-
type:
|
|
228
|
+
name: 'file_id',
|
|
229
|
+
type: 'Path',
|
|
217
230
|
schema: zod_1.z.string(),
|
|
218
231
|
},
|
|
219
232
|
],
|
|
@@ -232,15 +245,15 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
232
245
|
],
|
|
233
246
|
},
|
|
234
247
|
{
|
|
235
|
-
method:
|
|
236
|
-
path:
|
|
237
|
-
alias:
|
|
248
|
+
method: 'delete',
|
|
249
|
+
path: '/files/:file_id',
|
|
250
|
+
alias: 'deleteFile',
|
|
238
251
|
description: `Delete a file`,
|
|
239
|
-
requestFormat:
|
|
252
|
+
requestFormat: 'json',
|
|
240
253
|
parameters: [
|
|
241
254
|
{
|
|
242
|
-
name:
|
|
243
|
-
type:
|
|
255
|
+
name: 'file_id',
|
|
256
|
+
type: 'Path',
|
|
244
257
|
schema: zod_1.z.string(),
|
|
245
258
|
},
|
|
246
259
|
],
|
|
@@ -259,21 +272,21 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
259
272
|
],
|
|
260
273
|
},
|
|
261
274
|
{
|
|
262
|
-
method:
|
|
263
|
-
path:
|
|
264
|
-
alias:
|
|
275
|
+
method: 'put',
|
|
276
|
+
path: '/files/:file_id',
|
|
277
|
+
alias: 'updateFile',
|
|
265
278
|
description: `Update a file`,
|
|
266
|
-
requestFormat:
|
|
279
|
+
requestFormat: 'json',
|
|
267
280
|
parameters: [
|
|
268
281
|
{
|
|
269
|
-
name:
|
|
282
|
+
name: 'body',
|
|
270
283
|
description: `File update parameters`,
|
|
271
|
-
type:
|
|
284
|
+
type: 'Body',
|
|
272
285
|
schema: FileUpdate,
|
|
273
286
|
},
|
|
274
287
|
{
|
|
275
|
-
name:
|
|
276
|
-
type:
|
|
288
|
+
name: 'file_id',
|
|
289
|
+
type: 'Path',
|
|
277
290
|
schema: zod_1.z.string(),
|
|
278
291
|
},
|
|
279
292
|
],
|
|
@@ -287,21 +300,21 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
287
300
|
],
|
|
288
301
|
},
|
|
289
302
|
{
|
|
290
|
-
method:
|
|
291
|
-
path:
|
|
292
|
-
alias:
|
|
303
|
+
method: 'post',
|
|
304
|
+
path: '/files/:file_id/segmentations',
|
|
305
|
+
alias: 'createFileSegmentation',
|
|
293
306
|
description: `Create a new segmentation for a file using the specified segmentation configuration`,
|
|
294
|
-
requestFormat:
|
|
307
|
+
requestFormat: 'json',
|
|
295
308
|
parameters: [
|
|
296
309
|
{
|
|
297
|
-
name:
|
|
310
|
+
name: 'body',
|
|
298
311
|
description: `Segmentation configuration`,
|
|
299
|
-
type:
|
|
312
|
+
type: 'Body',
|
|
300
313
|
schema: createFileSegmentation_Body,
|
|
301
314
|
},
|
|
302
315
|
{
|
|
303
|
-
name:
|
|
304
|
-
type:
|
|
316
|
+
name: 'file_id',
|
|
317
|
+
type: 'Path',
|
|
305
318
|
schema: zod_1.z.string().uuid(),
|
|
306
319
|
},
|
|
307
320
|
],
|
|
@@ -325,25 +338,25 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
325
338
|
],
|
|
326
339
|
},
|
|
327
340
|
{
|
|
328
|
-
method:
|
|
329
|
-
path:
|
|
330
|
-
alias:
|
|
341
|
+
method: 'get',
|
|
342
|
+
path: '/files/:file_id/segmentations',
|
|
343
|
+
alias: 'listFileSegmentations',
|
|
331
344
|
description: `List all segmentations for a specific file`,
|
|
332
|
-
requestFormat:
|
|
345
|
+
requestFormat: 'json',
|
|
333
346
|
parameters: [
|
|
334
347
|
{
|
|
335
|
-
name:
|
|
336
|
-
type:
|
|
348
|
+
name: 'file_id',
|
|
349
|
+
type: 'Path',
|
|
337
350
|
schema: zod_1.z.string().uuid(),
|
|
338
351
|
},
|
|
339
352
|
{
|
|
340
|
-
name:
|
|
341
|
-
type:
|
|
353
|
+
name: 'limit',
|
|
354
|
+
type: 'Query',
|
|
342
355
|
schema: zod_1.z.number().int().gte(1).lte(100).optional().default(50),
|
|
343
356
|
},
|
|
344
357
|
{
|
|
345
|
-
name:
|
|
346
|
-
type:
|
|
358
|
+
name: 'offset',
|
|
359
|
+
type: 'Query',
|
|
347
360
|
schema: zod_1.z.number().int().gte(0).optional().default(0),
|
|
348
361
|
},
|
|
349
362
|
],
|
|
@@ -362,37 +375,42 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
362
375
|
],
|
|
363
376
|
},
|
|
364
377
|
{
|
|
365
|
-
method:
|
|
366
|
-
path:
|
|
367
|
-
alias:
|
|
378
|
+
method: 'get',
|
|
379
|
+
path: '/files/:file_id/thumbnails',
|
|
380
|
+
alias: 'getThumbnails',
|
|
368
381
|
description: `Get all thumbnails for a file`,
|
|
369
|
-
requestFormat:
|
|
382
|
+
requestFormat: 'json',
|
|
370
383
|
parameters: [
|
|
371
384
|
{
|
|
372
|
-
name:
|
|
373
|
-
type:
|
|
385
|
+
name: 'file_id',
|
|
386
|
+
type: 'Path',
|
|
374
387
|
schema: zod_1.z.string().uuid(),
|
|
375
388
|
},
|
|
376
389
|
{
|
|
377
|
-
name:
|
|
378
|
-
type:
|
|
390
|
+
name: 'is_default',
|
|
391
|
+
type: 'Query',
|
|
379
392
|
schema: zod_1.z.boolean().optional().default(false),
|
|
380
393
|
},
|
|
381
394
|
{
|
|
382
|
-
name:
|
|
383
|
-
type:
|
|
395
|
+
name: 'segmentation_id',
|
|
396
|
+
type: 'Query',
|
|
384
397
|
schema: zod_1.z.string().uuid().optional(),
|
|
385
398
|
},
|
|
386
399
|
{
|
|
387
|
-
name:
|
|
388
|
-
type:
|
|
400
|
+
name: 'limit',
|
|
401
|
+
type: 'Query',
|
|
389
402
|
schema: zod_1.z.number().int().gte(1).lte(100).optional().default(50),
|
|
390
403
|
},
|
|
391
404
|
{
|
|
392
|
-
name:
|
|
393
|
-
type:
|
|
405
|
+
name: 'offset',
|
|
406
|
+
type: 'Query',
|
|
394
407
|
schema: zod_1.z.number().int().gte(0).optional().default(0),
|
|
395
408
|
},
|
|
409
|
+
{
|
|
410
|
+
name: 'type',
|
|
411
|
+
type: 'Query',
|
|
412
|
+
schema: zod_1.z.string().optional(),
|
|
413
|
+
},
|
|
396
414
|
],
|
|
397
415
|
response: common_2.ThumbnailList,
|
|
398
416
|
errors: [
|
|
@@ -409,21 +427,135 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
409
427
|
],
|
|
410
428
|
},
|
|
411
429
|
{
|
|
412
|
-
method:
|
|
413
|
-
path:
|
|
414
|
-
alias:
|
|
430
|
+
method: 'get',
|
|
431
|
+
path: '/files/:file_id/tags',
|
|
432
|
+
alias: 'listFileTags',
|
|
433
|
+
description: `List all tags for a specific file`,
|
|
434
|
+
requestFormat: 'json',
|
|
435
|
+
parameters: [
|
|
436
|
+
{
|
|
437
|
+
name: 'file_id',
|
|
438
|
+
type: 'Path',
|
|
439
|
+
schema: zod_1.z.string().uuid(),
|
|
440
|
+
},
|
|
441
|
+
],
|
|
442
|
+
response: common_2.ListVideoTagsResponse,
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
method: 'get',
|
|
446
|
+
path: '/files/:file_id/segments/:segment_id',
|
|
447
|
+
alias: 'getFileSegment',
|
|
448
|
+
description: `Get a file segment`,
|
|
449
|
+
requestFormat: 'json',
|
|
450
|
+
parameters: [
|
|
451
|
+
{
|
|
452
|
+
name: 'file_id',
|
|
453
|
+
type: 'Path',
|
|
454
|
+
schema: zod_1.z.string().uuid(),
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
name: 'segment_id',
|
|
458
|
+
type: 'Path',
|
|
459
|
+
schema: zod_1.z.string().uuid(),
|
|
460
|
+
},
|
|
461
|
+
],
|
|
462
|
+
response: FileSegment,
|
|
463
|
+
errors: [
|
|
464
|
+
{
|
|
465
|
+
status: 404,
|
|
466
|
+
description: `File segment not found`,
|
|
467
|
+
schema: zod_1.z.object({ error: zod_1.z.string() }).strict().passthrough(),
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
status: 500,
|
|
471
|
+
description: `An unexpected error occurred on the server`,
|
|
472
|
+
schema: zod_1.z.object({ error: zod_1.z.string() }).strict().passthrough(),
|
|
473
|
+
},
|
|
474
|
+
],
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
method: 'put',
|
|
478
|
+
path: '/files/:file_id/segments/:segment_id',
|
|
479
|
+
alias: 'updateFileSegment',
|
|
480
|
+
description: `Update a file segment`,
|
|
481
|
+
requestFormat: 'json',
|
|
482
|
+
parameters: [
|
|
483
|
+
{
|
|
484
|
+
name: 'body',
|
|
485
|
+
description: `File segment update parameters`,
|
|
486
|
+
type: 'Body',
|
|
487
|
+
schema: zod_1.z
|
|
488
|
+
.object({ metadata: zod_1.z.object({}).partial().strict().passthrough() })
|
|
489
|
+
.partial()
|
|
490
|
+
.strict()
|
|
491
|
+
.passthrough(),
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
name: 'file_id',
|
|
495
|
+
type: 'Path',
|
|
496
|
+
schema: zod_1.z.string().uuid(),
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
name: 'segment_id',
|
|
500
|
+
type: 'Path',
|
|
501
|
+
schema: zod_1.z.string().uuid(),
|
|
502
|
+
},
|
|
503
|
+
],
|
|
504
|
+
response: FileSegment,
|
|
505
|
+
errors: [
|
|
506
|
+
{
|
|
507
|
+
status: 400,
|
|
508
|
+
description: `Invalid request or malformed file segment update parameters`,
|
|
509
|
+
schema: zod_1.z.object({ error: zod_1.z.string() }).strict().passthrough(),
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
status: 404,
|
|
513
|
+
description: `File segment not found`,
|
|
514
|
+
schema: zod_1.z.object({ error: zod_1.z.string() }).strict().passthrough(),
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
status: 500,
|
|
518
|
+
description: `An unexpected error occurred on the server`,
|
|
519
|
+
schema: zod_1.z.object({ error: zod_1.z.string() }).strict().passthrough(),
|
|
520
|
+
},
|
|
521
|
+
],
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
method: 'get',
|
|
525
|
+
path: '/files/:file_id/segments/:segment_id/tags',
|
|
526
|
+
alias: 'listFileSegmentTags',
|
|
527
|
+
description: `List all tags for a specific file segment`,
|
|
528
|
+
requestFormat: 'json',
|
|
529
|
+
parameters: [
|
|
530
|
+
{
|
|
531
|
+
name: 'file_id',
|
|
532
|
+
type: 'Path',
|
|
533
|
+
schema: zod_1.z.string().uuid(),
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
name: 'segment_id',
|
|
537
|
+
type: 'Path',
|
|
538
|
+
schema: zod_1.z.string().uuid(),
|
|
539
|
+
},
|
|
540
|
+
],
|
|
541
|
+
response: common_2.ListVideoTagsResponse,
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
method: 'post',
|
|
545
|
+
path: '/files/:file_id/frames',
|
|
546
|
+
alias: 'createFileFrameExtraction',
|
|
415
547
|
description: `Create a new frame extraction for a file using the specified frame extraction configuration. This is an async operation that returns immediately with a 'pending' status. Results are cached, so identical requests will return the same frame extraction.`,
|
|
416
|
-
requestFormat:
|
|
548
|
+
requestFormat: 'json',
|
|
417
549
|
parameters: [
|
|
418
550
|
{
|
|
419
|
-
name:
|
|
551
|
+
name: 'body',
|
|
420
552
|
description: `Frame extraction configuration`,
|
|
421
|
-
type:
|
|
553
|
+
type: 'Body',
|
|
422
554
|
schema: createFileFrameExtraction_Body,
|
|
423
555
|
},
|
|
424
556
|
{
|
|
425
|
-
name:
|
|
426
|
-
type:
|
|
557
|
+
name: 'file_id',
|
|
558
|
+
type: 'Path',
|
|
427
559
|
schema: zod_1.z.string().uuid(),
|
|
428
560
|
},
|
|
429
561
|
],
|
|
@@ -447,25 +579,25 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
447
579
|
],
|
|
448
580
|
},
|
|
449
581
|
{
|
|
450
|
-
method:
|
|
451
|
-
path:
|
|
452
|
-
alias:
|
|
582
|
+
method: 'get',
|
|
583
|
+
path: '/files/:file_id/frames',
|
|
584
|
+
alias: 'listFileFrameExtractions',
|
|
453
585
|
description: `List all frame extractions for a specific file`,
|
|
454
|
-
requestFormat:
|
|
586
|
+
requestFormat: 'json',
|
|
455
587
|
parameters: [
|
|
456
588
|
{
|
|
457
|
-
name:
|
|
458
|
-
type:
|
|
589
|
+
name: 'file_id',
|
|
590
|
+
type: 'Path',
|
|
459
591
|
schema: zod_1.z.string().uuid(),
|
|
460
592
|
},
|
|
461
593
|
{
|
|
462
|
-
name:
|
|
463
|
-
type:
|
|
594
|
+
name: 'limit',
|
|
595
|
+
type: 'Query',
|
|
464
596
|
schema: zod_1.z.number().int().gte(1).lte(100).optional().default(50),
|
|
465
597
|
},
|
|
466
598
|
{
|
|
467
|
-
name:
|
|
468
|
-
type:
|
|
599
|
+
name: 'offset',
|
|
600
|
+
type: 'Query',
|
|
469
601
|
schema: zod_1.z.number().int().gte(0).optional().default(0),
|
|
470
602
|
},
|
|
471
603
|
],
|
|
@@ -484,7 +616,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
484
616
|
],
|
|
485
617
|
},
|
|
486
618
|
]);
|
|
487
|
-
exports.FilesApi = new core_1.Zodios(
|
|
619
|
+
exports.FilesApi = new core_1.Zodios('https://api.cloudglue.dev/v1', endpoints);
|
|
488
620
|
function createApiClient(baseUrl, options) {
|
|
489
621
|
return new core_1.Zodios(baseUrl, endpoints, options);
|
|
490
622
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type ZodiosOptions } from
|
|
2
|
-
import { z } from
|
|
1
|
+
import { type ZodiosOptions } from '@zodios/core';
|
|
2
|
+
import { z } from 'zod';
|
|
3
3
|
export declare const FramesApi: import("@zodios/core").ZodiosInstance<[{
|
|
4
4
|
method: "get";
|
|
5
5
|
path: "/frames/:frame_extraction_id";
|
package/dist/generated/Frames.js
CHANGED
|
@@ -7,25 +7,25 @@ const zod_1 = require("zod");
|
|
|
7
7
|
const common_1 = require("./common");
|
|
8
8
|
const endpoints = (0, core_1.makeApi)([
|
|
9
9
|
{
|
|
10
|
-
method:
|
|
11
|
-
path:
|
|
12
|
-
alias:
|
|
10
|
+
method: 'get',
|
|
11
|
+
path: '/frames/:frame_extraction_id',
|
|
12
|
+
alias: 'getFrameExtraction',
|
|
13
13
|
description: `Retrieve details about a specific frame extraction including its frames`,
|
|
14
|
-
requestFormat:
|
|
14
|
+
requestFormat: 'json',
|
|
15
15
|
parameters: [
|
|
16
16
|
{
|
|
17
|
-
name:
|
|
18
|
-
type:
|
|
17
|
+
name: 'frame_extraction_id',
|
|
18
|
+
type: 'Path',
|
|
19
19
|
schema: zod_1.z.string().uuid(),
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
|
-
name:
|
|
23
|
-
type:
|
|
22
|
+
name: 'limit',
|
|
23
|
+
type: 'Query',
|
|
24
24
|
schema: zod_1.z.number().int().gte(1).lte(100).optional().default(50),
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
|
-
name:
|
|
28
|
-
type:
|
|
27
|
+
name: 'offset',
|
|
28
|
+
type: 'Query',
|
|
29
29
|
schema: zod_1.z.number().int().gte(0).optional().default(0),
|
|
30
30
|
},
|
|
31
31
|
],
|
|
@@ -44,15 +44,15 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
44
44
|
],
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
|
-
method:
|
|
48
|
-
path:
|
|
49
|
-
alias:
|
|
47
|
+
method: 'delete',
|
|
48
|
+
path: '/frames/:frame_extraction_id',
|
|
49
|
+
alias: 'deleteFrameExtraction',
|
|
50
50
|
description: `Delete a specific frame extraction`,
|
|
51
|
-
requestFormat:
|
|
51
|
+
requestFormat: 'json',
|
|
52
52
|
parameters: [
|
|
53
53
|
{
|
|
54
|
-
name:
|
|
55
|
-
type:
|
|
54
|
+
name: 'frame_extraction_id',
|
|
55
|
+
type: 'Path',
|
|
56
56
|
schema: zod_1.z.string().uuid(),
|
|
57
57
|
},
|
|
58
58
|
],
|
|
@@ -71,7 +71,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
71
71
|
],
|
|
72
72
|
},
|
|
73
73
|
]);
|
|
74
|
-
exports.FramesApi = new core_1.Zodios(
|
|
74
|
+
exports.FramesApi = new core_1.Zodios('https://api.cloudglue.dev/v1', endpoints);
|
|
75
75
|
function createApiClient(baseUrl, options) {
|
|
76
76
|
return new core_1.Zodios(baseUrl, endpoints, options);
|
|
77
77
|
}
|