@aviaryhq/cloudglue-js 0.4.12 → 0.5.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/dist/generated/Files.d.ts +392 -0
- package/dist/generated/Files.js +35 -0
- package/dist/generated/Search.d.ts +36 -6
- package/dist/generated/Search.js +22 -2
- package/dist/generated/Tags.d.ts +660 -0
- package/dist/generated/Tags.js +160 -0
- package/dist/generated/common.d.ts +140 -0
- package/dist/generated/common.js +26 -1
- package/dist/generated/index.d.ts +1 -0
- package/dist/generated/index.js +3 -1
- package/dist/src/api/files.api.d.ts +34 -0
- package/dist/src/api/files.api.js +10 -0
- package/dist/src/api/search.api.d.ts +37 -3
- package/dist/src/api/tags.api.d.ts +71 -0
- package/dist/src/api/tags.api.js +31 -0
- package/dist/src/client.d.ts +6 -0
- package/dist/src/client.js +6 -1
- package/dist/src/types.d.ts +5 -0
- package/package.json +1 -1
|
@@ -2349,6 +2349,102 @@ export declare const FilesApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
2349
2349
|
error: z.ZodString;
|
|
2350
2350
|
}, z.ZodTypeAny, "passthrough">>;
|
|
2351
2351
|
}];
|
|
2352
|
+
}, {
|
|
2353
|
+
method: "get";
|
|
2354
|
+
path: "/files/:file_id/tags";
|
|
2355
|
+
alias: "listFileTags";
|
|
2356
|
+
description: "List all tags for a specific file";
|
|
2357
|
+
requestFormat: "json";
|
|
2358
|
+
parameters: [{
|
|
2359
|
+
name: "file_id";
|
|
2360
|
+
type: "Path";
|
|
2361
|
+
schema: z.ZodString;
|
|
2362
|
+
}];
|
|
2363
|
+
response: z.ZodIntersection<z.ZodObject<{
|
|
2364
|
+
object: z.ZodLiteral<"list">;
|
|
2365
|
+
total: z.ZodNumber;
|
|
2366
|
+
limit: z.ZodNumber;
|
|
2367
|
+
offset: z.ZodNumber;
|
|
2368
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2369
|
+
object: z.ZodLiteral<"list">;
|
|
2370
|
+
total: z.ZodNumber;
|
|
2371
|
+
limit: z.ZodNumber;
|
|
2372
|
+
offset: z.ZodNumber;
|
|
2373
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2374
|
+
object: z.ZodLiteral<"list">;
|
|
2375
|
+
total: z.ZodNumber;
|
|
2376
|
+
limit: z.ZodNumber;
|
|
2377
|
+
offset: z.ZodNumber;
|
|
2378
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
2379
|
+
data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2380
|
+
id: z.ZodString;
|
|
2381
|
+
label: z.ZodString;
|
|
2382
|
+
value: z.ZodString;
|
|
2383
|
+
type: z.ZodEnum<["file", "segment"]>;
|
|
2384
|
+
file_id: z.ZodString;
|
|
2385
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
2386
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2387
|
+
id: z.ZodString;
|
|
2388
|
+
label: z.ZodString;
|
|
2389
|
+
value: z.ZodString;
|
|
2390
|
+
type: z.ZodEnum<["file", "segment"]>;
|
|
2391
|
+
file_id: z.ZodString;
|
|
2392
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
2393
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2394
|
+
id: z.ZodString;
|
|
2395
|
+
label: z.ZodString;
|
|
2396
|
+
value: z.ZodString;
|
|
2397
|
+
type: z.ZodEnum<["file", "segment"]>;
|
|
2398
|
+
file_id: z.ZodString;
|
|
2399
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
2400
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
2401
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2402
|
+
data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2403
|
+
id: z.ZodString;
|
|
2404
|
+
label: z.ZodString;
|
|
2405
|
+
value: z.ZodString;
|
|
2406
|
+
type: z.ZodEnum<["file", "segment"]>;
|
|
2407
|
+
file_id: z.ZodString;
|
|
2408
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
2409
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2410
|
+
id: z.ZodString;
|
|
2411
|
+
label: z.ZodString;
|
|
2412
|
+
value: z.ZodString;
|
|
2413
|
+
type: z.ZodEnum<["file", "segment"]>;
|
|
2414
|
+
file_id: z.ZodString;
|
|
2415
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
2416
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2417
|
+
id: z.ZodString;
|
|
2418
|
+
label: z.ZodString;
|
|
2419
|
+
value: z.ZodString;
|
|
2420
|
+
type: z.ZodEnum<["file", "segment"]>;
|
|
2421
|
+
file_id: z.ZodString;
|
|
2422
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
2423
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
2424
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2425
|
+
data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2426
|
+
id: z.ZodString;
|
|
2427
|
+
label: z.ZodString;
|
|
2428
|
+
value: z.ZodString;
|
|
2429
|
+
type: z.ZodEnum<["file", "segment"]>;
|
|
2430
|
+
file_id: z.ZodString;
|
|
2431
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
2432
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2433
|
+
id: z.ZodString;
|
|
2434
|
+
label: z.ZodString;
|
|
2435
|
+
value: z.ZodString;
|
|
2436
|
+
type: z.ZodEnum<["file", "segment"]>;
|
|
2437
|
+
file_id: z.ZodString;
|
|
2438
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
2439
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2440
|
+
id: z.ZodString;
|
|
2441
|
+
label: z.ZodString;
|
|
2442
|
+
value: z.ZodString;
|
|
2443
|
+
type: z.ZodEnum<["file", "segment"]>;
|
|
2444
|
+
file_id: z.ZodString;
|
|
2445
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
2446
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
2447
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
2352
2448
|
}, {
|
|
2353
2449
|
method: "get";
|
|
2354
2450
|
path: "/files/:file_id/segments/:segment_id";
|
|
@@ -2492,6 +2588,106 @@ export declare const FilesApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
2492
2588
|
error: z.ZodString;
|
|
2493
2589
|
}, z.ZodTypeAny, "passthrough">>;
|
|
2494
2590
|
}];
|
|
2591
|
+
}, {
|
|
2592
|
+
method: "get";
|
|
2593
|
+
path: "/files/:file_id/segments/:segment_id/tags";
|
|
2594
|
+
alias: "listFileSegmentTags";
|
|
2595
|
+
description: "List all tags for a specific file segment";
|
|
2596
|
+
requestFormat: "json";
|
|
2597
|
+
parameters: [{
|
|
2598
|
+
name: "file_id";
|
|
2599
|
+
type: "Path";
|
|
2600
|
+
schema: z.ZodString;
|
|
2601
|
+
}, {
|
|
2602
|
+
name: "segment_id";
|
|
2603
|
+
type: "Path";
|
|
2604
|
+
schema: z.ZodString;
|
|
2605
|
+
}];
|
|
2606
|
+
response: z.ZodIntersection<z.ZodObject<{
|
|
2607
|
+
object: z.ZodLiteral<"list">;
|
|
2608
|
+
total: z.ZodNumber;
|
|
2609
|
+
limit: z.ZodNumber;
|
|
2610
|
+
offset: z.ZodNumber;
|
|
2611
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2612
|
+
object: z.ZodLiteral<"list">;
|
|
2613
|
+
total: z.ZodNumber;
|
|
2614
|
+
limit: z.ZodNumber;
|
|
2615
|
+
offset: z.ZodNumber;
|
|
2616
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2617
|
+
object: z.ZodLiteral<"list">;
|
|
2618
|
+
total: z.ZodNumber;
|
|
2619
|
+
limit: z.ZodNumber;
|
|
2620
|
+
offset: z.ZodNumber;
|
|
2621
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
2622
|
+
data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2623
|
+
id: z.ZodString;
|
|
2624
|
+
label: z.ZodString;
|
|
2625
|
+
value: z.ZodString;
|
|
2626
|
+
type: z.ZodEnum<["file", "segment"]>;
|
|
2627
|
+
file_id: z.ZodString;
|
|
2628
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
2629
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2630
|
+
id: z.ZodString;
|
|
2631
|
+
label: z.ZodString;
|
|
2632
|
+
value: z.ZodString;
|
|
2633
|
+
type: z.ZodEnum<["file", "segment"]>;
|
|
2634
|
+
file_id: z.ZodString;
|
|
2635
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
2636
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2637
|
+
id: z.ZodString;
|
|
2638
|
+
label: z.ZodString;
|
|
2639
|
+
value: z.ZodString;
|
|
2640
|
+
type: z.ZodEnum<["file", "segment"]>;
|
|
2641
|
+
file_id: z.ZodString;
|
|
2642
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
2643
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
2644
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2645
|
+
data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2646
|
+
id: z.ZodString;
|
|
2647
|
+
label: z.ZodString;
|
|
2648
|
+
value: z.ZodString;
|
|
2649
|
+
type: z.ZodEnum<["file", "segment"]>;
|
|
2650
|
+
file_id: z.ZodString;
|
|
2651
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
2652
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2653
|
+
id: z.ZodString;
|
|
2654
|
+
label: z.ZodString;
|
|
2655
|
+
value: z.ZodString;
|
|
2656
|
+
type: z.ZodEnum<["file", "segment"]>;
|
|
2657
|
+
file_id: z.ZodString;
|
|
2658
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
2659
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2660
|
+
id: z.ZodString;
|
|
2661
|
+
label: z.ZodString;
|
|
2662
|
+
value: z.ZodString;
|
|
2663
|
+
type: z.ZodEnum<["file", "segment"]>;
|
|
2664
|
+
file_id: z.ZodString;
|
|
2665
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
2666
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
2667
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2668
|
+
data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2669
|
+
id: z.ZodString;
|
|
2670
|
+
label: z.ZodString;
|
|
2671
|
+
value: z.ZodString;
|
|
2672
|
+
type: z.ZodEnum<["file", "segment"]>;
|
|
2673
|
+
file_id: z.ZodString;
|
|
2674
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
2675
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2676
|
+
id: z.ZodString;
|
|
2677
|
+
label: z.ZodString;
|
|
2678
|
+
value: z.ZodString;
|
|
2679
|
+
type: z.ZodEnum<["file", "segment"]>;
|
|
2680
|
+
file_id: z.ZodString;
|
|
2681
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
2682
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2683
|
+
id: z.ZodString;
|
|
2684
|
+
label: z.ZodString;
|
|
2685
|
+
value: z.ZodString;
|
|
2686
|
+
type: z.ZodEnum<["file", "segment"]>;
|
|
2687
|
+
file_id: z.ZodString;
|
|
2688
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
2689
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
2690
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
2495
2691
|
}, {
|
|
2496
2692
|
method: "post";
|
|
2497
2693
|
path: "/files/:file_id/frames";
|
|
@@ -4975,6 +5171,102 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
4975
5171
|
error: z.ZodString;
|
|
4976
5172
|
}, z.ZodTypeAny, "passthrough">>;
|
|
4977
5173
|
}];
|
|
5174
|
+
}, {
|
|
5175
|
+
method: "get";
|
|
5176
|
+
path: "/files/:file_id/tags";
|
|
5177
|
+
alias: "listFileTags";
|
|
5178
|
+
description: "List all tags for a specific file";
|
|
5179
|
+
requestFormat: "json";
|
|
5180
|
+
parameters: [{
|
|
5181
|
+
name: "file_id";
|
|
5182
|
+
type: "Path";
|
|
5183
|
+
schema: z.ZodString;
|
|
5184
|
+
}];
|
|
5185
|
+
response: z.ZodIntersection<z.ZodObject<{
|
|
5186
|
+
object: z.ZodLiteral<"list">;
|
|
5187
|
+
total: z.ZodNumber;
|
|
5188
|
+
limit: z.ZodNumber;
|
|
5189
|
+
offset: z.ZodNumber;
|
|
5190
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
5191
|
+
object: z.ZodLiteral<"list">;
|
|
5192
|
+
total: z.ZodNumber;
|
|
5193
|
+
limit: z.ZodNumber;
|
|
5194
|
+
offset: z.ZodNumber;
|
|
5195
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
5196
|
+
object: z.ZodLiteral<"list">;
|
|
5197
|
+
total: z.ZodNumber;
|
|
5198
|
+
limit: z.ZodNumber;
|
|
5199
|
+
offset: z.ZodNumber;
|
|
5200
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
5201
|
+
data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5202
|
+
id: z.ZodString;
|
|
5203
|
+
label: z.ZodString;
|
|
5204
|
+
value: z.ZodString;
|
|
5205
|
+
type: z.ZodEnum<["file", "segment"]>;
|
|
5206
|
+
file_id: z.ZodString;
|
|
5207
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
5208
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
5209
|
+
id: z.ZodString;
|
|
5210
|
+
label: z.ZodString;
|
|
5211
|
+
value: z.ZodString;
|
|
5212
|
+
type: z.ZodEnum<["file", "segment"]>;
|
|
5213
|
+
file_id: z.ZodString;
|
|
5214
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
5215
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
5216
|
+
id: z.ZodString;
|
|
5217
|
+
label: z.ZodString;
|
|
5218
|
+
value: z.ZodString;
|
|
5219
|
+
type: z.ZodEnum<["file", "segment"]>;
|
|
5220
|
+
file_id: z.ZodString;
|
|
5221
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
5222
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
5223
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
5224
|
+
data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5225
|
+
id: z.ZodString;
|
|
5226
|
+
label: z.ZodString;
|
|
5227
|
+
value: z.ZodString;
|
|
5228
|
+
type: z.ZodEnum<["file", "segment"]>;
|
|
5229
|
+
file_id: z.ZodString;
|
|
5230
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
5231
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
5232
|
+
id: z.ZodString;
|
|
5233
|
+
label: z.ZodString;
|
|
5234
|
+
value: z.ZodString;
|
|
5235
|
+
type: z.ZodEnum<["file", "segment"]>;
|
|
5236
|
+
file_id: z.ZodString;
|
|
5237
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
5238
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
5239
|
+
id: z.ZodString;
|
|
5240
|
+
label: z.ZodString;
|
|
5241
|
+
value: z.ZodString;
|
|
5242
|
+
type: z.ZodEnum<["file", "segment"]>;
|
|
5243
|
+
file_id: z.ZodString;
|
|
5244
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
5245
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
5246
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
5247
|
+
data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5248
|
+
id: z.ZodString;
|
|
5249
|
+
label: z.ZodString;
|
|
5250
|
+
value: z.ZodString;
|
|
5251
|
+
type: z.ZodEnum<["file", "segment"]>;
|
|
5252
|
+
file_id: z.ZodString;
|
|
5253
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
5254
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
5255
|
+
id: z.ZodString;
|
|
5256
|
+
label: z.ZodString;
|
|
5257
|
+
value: z.ZodString;
|
|
5258
|
+
type: z.ZodEnum<["file", "segment"]>;
|
|
5259
|
+
file_id: z.ZodString;
|
|
5260
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
5261
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
5262
|
+
id: z.ZodString;
|
|
5263
|
+
label: z.ZodString;
|
|
5264
|
+
value: z.ZodString;
|
|
5265
|
+
type: z.ZodEnum<["file", "segment"]>;
|
|
5266
|
+
file_id: z.ZodString;
|
|
5267
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
5268
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
5269
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
4978
5270
|
}, {
|
|
4979
5271
|
method: "get";
|
|
4980
5272
|
path: "/files/:file_id/segments/:segment_id";
|
|
@@ -5118,6 +5410,106 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
5118
5410
|
error: z.ZodString;
|
|
5119
5411
|
}, z.ZodTypeAny, "passthrough">>;
|
|
5120
5412
|
}];
|
|
5413
|
+
}, {
|
|
5414
|
+
method: "get";
|
|
5415
|
+
path: "/files/:file_id/segments/:segment_id/tags";
|
|
5416
|
+
alias: "listFileSegmentTags";
|
|
5417
|
+
description: "List all tags for a specific file segment";
|
|
5418
|
+
requestFormat: "json";
|
|
5419
|
+
parameters: [{
|
|
5420
|
+
name: "file_id";
|
|
5421
|
+
type: "Path";
|
|
5422
|
+
schema: z.ZodString;
|
|
5423
|
+
}, {
|
|
5424
|
+
name: "segment_id";
|
|
5425
|
+
type: "Path";
|
|
5426
|
+
schema: z.ZodString;
|
|
5427
|
+
}];
|
|
5428
|
+
response: z.ZodIntersection<z.ZodObject<{
|
|
5429
|
+
object: z.ZodLiteral<"list">;
|
|
5430
|
+
total: z.ZodNumber;
|
|
5431
|
+
limit: z.ZodNumber;
|
|
5432
|
+
offset: z.ZodNumber;
|
|
5433
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
5434
|
+
object: z.ZodLiteral<"list">;
|
|
5435
|
+
total: z.ZodNumber;
|
|
5436
|
+
limit: z.ZodNumber;
|
|
5437
|
+
offset: z.ZodNumber;
|
|
5438
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
5439
|
+
object: z.ZodLiteral<"list">;
|
|
5440
|
+
total: z.ZodNumber;
|
|
5441
|
+
limit: z.ZodNumber;
|
|
5442
|
+
offset: z.ZodNumber;
|
|
5443
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
5444
|
+
data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5445
|
+
id: z.ZodString;
|
|
5446
|
+
label: z.ZodString;
|
|
5447
|
+
value: z.ZodString;
|
|
5448
|
+
type: z.ZodEnum<["file", "segment"]>;
|
|
5449
|
+
file_id: z.ZodString;
|
|
5450
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
5451
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
5452
|
+
id: z.ZodString;
|
|
5453
|
+
label: z.ZodString;
|
|
5454
|
+
value: z.ZodString;
|
|
5455
|
+
type: z.ZodEnum<["file", "segment"]>;
|
|
5456
|
+
file_id: z.ZodString;
|
|
5457
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
5458
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
5459
|
+
id: z.ZodString;
|
|
5460
|
+
label: z.ZodString;
|
|
5461
|
+
value: z.ZodString;
|
|
5462
|
+
type: z.ZodEnum<["file", "segment"]>;
|
|
5463
|
+
file_id: z.ZodString;
|
|
5464
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
5465
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
5466
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
5467
|
+
data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5468
|
+
id: z.ZodString;
|
|
5469
|
+
label: z.ZodString;
|
|
5470
|
+
value: z.ZodString;
|
|
5471
|
+
type: z.ZodEnum<["file", "segment"]>;
|
|
5472
|
+
file_id: z.ZodString;
|
|
5473
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
5474
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
5475
|
+
id: z.ZodString;
|
|
5476
|
+
label: z.ZodString;
|
|
5477
|
+
value: z.ZodString;
|
|
5478
|
+
type: z.ZodEnum<["file", "segment"]>;
|
|
5479
|
+
file_id: z.ZodString;
|
|
5480
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
5481
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
5482
|
+
id: z.ZodString;
|
|
5483
|
+
label: z.ZodString;
|
|
5484
|
+
value: z.ZodString;
|
|
5485
|
+
type: z.ZodEnum<["file", "segment"]>;
|
|
5486
|
+
file_id: z.ZodString;
|
|
5487
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
5488
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
5489
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
5490
|
+
data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5491
|
+
id: z.ZodString;
|
|
5492
|
+
label: z.ZodString;
|
|
5493
|
+
value: z.ZodString;
|
|
5494
|
+
type: z.ZodEnum<["file", "segment"]>;
|
|
5495
|
+
file_id: z.ZodString;
|
|
5496
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
5497
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
5498
|
+
id: z.ZodString;
|
|
5499
|
+
label: z.ZodString;
|
|
5500
|
+
value: z.ZodString;
|
|
5501
|
+
type: z.ZodEnum<["file", "segment"]>;
|
|
5502
|
+
file_id: z.ZodString;
|
|
5503
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
5504
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
5505
|
+
id: z.ZodString;
|
|
5506
|
+
label: z.ZodString;
|
|
5507
|
+
value: z.ZodString;
|
|
5508
|
+
type: z.ZodEnum<["file", "segment"]>;
|
|
5509
|
+
file_id: z.ZodString;
|
|
5510
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
5511
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
5512
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
5121
5513
|
}, {
|
|
5122
5514
|
method: "post";
|
|
5123
5515
|
path: "/files/:file_id/frames";
|
package/dist/generated/Files.js
CHANGED
|
@@ -426,6 +426,21 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
426
426
|
},
|
|
427
427
|
],
|
|
428
428
|
},
|
|
429
|
+
{
|
|
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
|
+
},
|
|
429
444
|
{
|
|
430
445
|
method: 'get',
|
|
431
446
|
path: '/files/:file_id/segments/:segment_id',
|
|
@@ -505,6 +520,26 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
505
520
|
},
|
|
506
521
|
],
|
|
507
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
|
+
},
|
|
508
543
|
{
|
|
509
544
|
method: 'post',
|
|
510
545
|
path: '/files/:file_id/frames',
|
|
@@ -12,7 +12,7 @@ type SearchResponse = {
|
|
|
12
12
|
total: number;
|
|
13
13
|
limit: number;
|
|
14
14
|
};
|
|
15
|
-
type SearchModalities = Array<'general_content' | 'speech_lexical' | 'ocr_lexical'>;
|
|
15
|
+
type SearchModalities = Array<'general_content' | 'speech_lexical' | 'ocr_lexical' | 'tag_semantic' | 'tag_lexical'>;
|
|
16
16
|
type FileSearchResult = {
|
|
17
17
|
type: 'file';
|
|
18
18
|
file_id: string;
|
|
@@ -23,7 +23,13 @@ type FileSearchResult = {
|
|
|
23
23
|
summary?: (string | null) | undefined;
|
|
24
24
|
generated_title?: (string | null) | undefined;
|
|
25
25
|
thumbnail_url?: string | undefined;
|
|
26
|
+
tag?: SearchTagResponse | undefined;
|
|
26
27
|
};
|
|
28
|
+
type SearchTagResponse = Partial<{
|
|
29
|
+
id: string;
|
|
30
|
+
value: string;
|
|
31
|
+
label: string;
|
|
32
|
+
}>;
|
|
27
33
|
type SegmentSearchResult = {
|
|
28
34
|
type: 'segment';
|
|
29
35
|
file_id: string;
|
|
@@ -52,6 +58,8 @@ type SegmentSearchResult = {
|
|
|
52
58
|
end_time: number;
|
|
53
59
|
}>> | undefined;
|
|
54
60
|
thumbnail_url?: string | undefined;
|
|
61
|
+
tag?: SearchTagResponse | undefined;
|
|
62
|
+
metadata?: {} | undefined;
|
|
55
63
|
keyframes?: Array<Partial<{
|
|
56
64
|
time_in_seconds: number;
|
|
57
65
|
thumbnail_url: string;
|
|
@@ -88,7 +96,9 @@ type FaceGroupResult = {
|
|
|
88
96
|
best_score: number;
|
|
89
97
|
};
|
|
90
98
|
type SearchFilter = Partial<{
|
|
91
|
-
metadata: Array<SearchFilterCriteria
|
|
99
|
+
metadata: Array<SearchFilterCriteria & Partial<{
|
|
100
|
+
scope: 'file' | 'segment';
|
|
101
|
+
}>>;
|
|
92
102
|
video_info: Array<SearchFilterCriteria & Partial<{
|
|
93
103
|
path: 'duration_seconds' | 'has_audio';
|
|
94
104
|
}>>;
|
|
@@ -121,8 +131,9 @@ type SearchResponseList = {
|
|
|
121
131
|
};
|
|
122
132
|
declare const SearchFilterCriteria: z.ZodType<SearchFilterCriteria>;
|
|
123
133
|
declare const SearchFilter: z.ZodType<SearchFilter>;
|
|
124
|
-
declare const SearchModalities: z.ZodArray<z.ZodEnum<["general_content", "speech_lexical", "ocr_lexical"]>, "many">;
|
|
134
|
+
declare const SearchModalities: z.ZodArray<z.ZodEnum<["general_content", "speech_lexical", "ocr_lexical", "tag_semantic", "tag_lexical"]>, "many">;
|
|
125
135
|
declare const SearchResponseList: z.ZodType<SearchResponseList>;
|
|
136
|
+
declare const SearchTagResponse: z.ZodType<SearchTagResponse>;
|
|
126
137
|
declare const FileSearchResult: z.ZodType<FileSearchResult>;
|
|
127
138
|
declare const SegmentSearchResult: z.ZodType<SegmentSearchResult>;
|
|
128
139
|
declare const FaceSearchResult: z.ZodType<FaceSearchResult>;
|
|
@@ -132,7 +143,9 @@ declare const SearchResponse: z.ZodType<SearchResponse>;
|
|
|
132
143
|
export declare const schemas: {
|
|
133
144
|
SearchFilterCriteria: z.ZodType<SearchFilterCriteria, z.ZodTypeDef, SearchFilterCriteria>;
|
|
134
145
|
SearchFilter: z.ZodType<Partial<{
|
|
135
|
-
metadata: Array<SearchFilterCriteria
|
|
146
|
+
metadata: Array<SearchFilterCriteria & Partial<{
|
|
147
|
+
scope: "file" | "segment";
|
|
148
|
+
}>>;
|
|
136
149
|
video_info: Array<SearchFilterCriteria & Partial<{
|
|
137
150
|
path: "duration_seconds" | "has_audio";
|
|
138
151
|
}>>;
|
|
@@ -140,7 +153,9 @@ export declare const schemas: {
|
|
|
140
153
|
path: "bytes" | "filename" | "uri" | "created_at" | "id";
|
|
141
154
|
}>>;
|
|
142
155
|
}>, z.ZodTypeDef, Partial<{
|
|
143
|
-
metadata: Array<SearchFilterCriteria
|
|
156
|
+
metadata: Array<SearchFilterCriteria & Partial<{
|
|
157
|
+
scope: "file" | "segment";
|
|
158
|
+
}>>;
|
|
144
159
|
video_info: Array<SearchFilterCriteria & Partial<{
|
|
145
160
|
path: "duration_seconds" | "has_audio";
|
|
146
161
|
}>>;
|
|
@@ -148,7 +163,7 @@ export declare const schemas: {
|
|
|
148
163
|
path: "bytes" | "filename" | "uri" | "created_at" | "id";
|
|
149
164
|
}>>;
|
|
150
165
|
}>>;
|
|
151
|
-
SearchModalities: z.ZodArray<z.ZodEnum<["general_content", "speech_lexical", "ocr_lexical"]>, "many">;
|
|
166
|
+
SearchModalities: z.ZodArray<z.ZodEnum<["general_content", "speech_lexical", "ocr_lexical", "tag_semantic", "tag_lexical"]>, "many">;
|
|
152
167
|
SearchRequest: z.ZodType<Partial<{
|
|
153
168
|
scope: "file" | "segment" | "face";
|
|
154
169
|
collections: Array<string>;
|
|
@@ -163,6 +178,7 @@ export declare const schemas: {
|
|
|
163
178
|
group_by_key: "file";
|
|
164
179
|
sort_by: "score" | "item_count";
|
|
165
180
|
search_modalities: SearchModalities;
|
|
181
|
+
label_filters: Array<string>;
|
|
166
182
|
}>, z.ZodTypeDef, Partial<{
|
|
167
183
|
scope: "file" | "segment" | "face";
|
|
168
184
|
collections: Array<string>;
|
|
@@ -177,8 +193,18 @@ export declare const schemas: {
|
|
|
177
193
|
group_by_key: "file";
|
|
178
194
|
sort_by: "score" | "item_count";
|
|
179
195
|
search_modalities: SearchModalities;
|
|
196
|
+
label_filters: Array<string>;
|
|
180
197
|
}>>;
|
|
181
198
|
SearchResponseList: z.ZodType<SearchResponseList, z.ZodTypeDef, SearchResponseList>;
|
|
199
|
+
SearchTagResponse: z.ZodType<Partial<{
|
|
200
|
+
id: string;
|
|
201
|
+
value: string;
|
|
202
|
+
label: string;
|
|
203
|
+
}>, z.ZodTypeDef, Partial<{
|
|
204
|
+
id: string;
|
|
205
|
+
value: string;
|
|
206
|
+
label: string;
|
|
207
|
+
}>>;
|
|
182
208
|
FileSearchResult: z.ZodType<FileSearchResult, z.ZodTypeDef, FileSearchResult>;
|
|
183
209
|
SegmentSearchResult: z.ZodType<SegmentSearchResult, z.ZodTypeDef, SegmentSearchResult>;
|
|
184
210
|
FaceSearchResult: z.ZodType<FaceSearchResult, z.ZodTypeDef, FaceSearchResult>;
|
|
@@ -210,6 +236,7 @@ export declare const SearchApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
210
236
|
group_by_key: "file";
|
|
211
237
|
sort_by: "score" | "item_count";
|
|
212
238
|
search_modalities: SearchModalities;
|
|
239
|
+
label_filters: Array<string>;
|
|
213
240
|
}>, z.ZodTypeDef, Partial<{
|
|
214
241
|
scope: "file" | "segment" | "face";
|
|
215
242
|
collections: Array<string>;
|
|
@@ -224,6 +251,7 @@ export declare const SearchApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
224
251
|
group_by_key: "file";
|
|
225
252
|
sort_by: "score" | "item_count";
|
|
226
253
|
search_modalities: SearchModalities;
|
|
254
|
+
label_filters: Array<string>;
|
|
227
255
|
}>>;
|
|
228
256
|
}];
|
|
229
257
|
response: z.ZodType<SearchResponse, z.ZodTypeDef, SearchResponse>;
|
|
@@ -353,6 +381,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
353
381
|
group_by_key: "file";
|
|
354
382
|
sort_by: "score" | "item_count";
|
|
355
383
|
search_modalities: SearchModalities;
|
|
384
|
+
label_filters: Array<string>;
|
|
356
385
|
}>, z.ZodTypeDef, Partial<{
|
|
357
386
|
scope: "file" | "segment" | "face";
|
|
358
387
|
collections: Array<string>;
|
|
@@ -367,6 +396,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
367
396
|
group_by_key: "file";
|
|
368
397
|
sort_by: "score" | "item_count";
|
|
369
398
|
search_modalities: SearchModalities;
|
|
399
|
+
label_filters: Array<string>;
|
|
370
400
|
}>>;
|
|
371
401
|
}];
|
|
372
402
|
response: z.ZodType<SearchResponse, z.ZodTypeDef, SearchResponse>;
|
package/dist/generated/Search.js
CHANGED
|
@@ -24,7 +24,11 @@ const SearchFilterCriteria = zod_1.z
|
|
|
24
24
|
.passthrough();
|
|
25
25
|
const SearchFilter = zod_1.z
|
|
26
26
|
.object({
|
|
27
|
-
metadata: zod_1.z.array(SearchFilterCriteria
|
|
27
|
+
metadata: zod_1.z.array(SearchFilterCriteria.and(zod_1.z
|
|
28
|
+
.object({ scope: zod_1.z.enum(['file', 'segment']).default('file') })
|
|
29
|
+
.partial()
|
|
30
|
+
.strict()
|
|
31
|
+
.passthrough())),
|
|
28
32
|
video_info: zod_1.z.array(SearchFilterCriteria.and(zod_1.z
|
|
29
33
|
.object({ path: zod_1.z.enum(['duration_seconds', 'has_audio']) })
|
|
30
34
|
.partial()
|
|
@@ -41,7 +45,13 @@ const SearchFilter = zod_1.z
|
|
|
41
45
|
.partial()
|
|
42
46
|
.strict()
|
|
43
47
|
.passthrough();
|
|
44
|
-
const SearchModalities = zod_1.z.array(zod_1.z.enum([
|
|
48
|
+
const SearchModalities = zod_1.z.array(zod_1.z.enum([
|
|
49
|
+
'general_content',
|
|
50
|
+
'speech_lexical',
|
|
51
|
+
'ocr_lexical',
|
|
52
|
+
'tag_semantic',
|
|
53
|
+
'tag_lexical',
|
|
54
|
+
]));
|
|
45
55
|
const SearchRequest = zod_1.z
|
|
46
56
|
.object({
|
|
47
57
|
scope: zod_1.z.enum(['file', 'segment', 'face']),
|
|
@@ -58,6 +68,7 @@ const SearchRequest = zod_1.z
|
|
|
58
68
|
group_by_key: zod_1.z.literal('file'),
|
|
59
69
|
sort_by: zod_1.z.enum(['score', 'item_count']).default('score'),
|
|
60
70
|
search_modalities: SearchModalities,
|
|
71
|
+
label_filters: zod_1.z.array(zod_1.z.string()),
|
|
61
72
|
})
|
|
62
73
|
.partial()
|
|
63
74
|
.strict()
|
|
@@ -85,6 +96,11 @@ const SearchResponseList = zod_1.z
|
|
|
85
96
|
})
|
|
86
97
|
.strict()
|
|
87
98
|
.passthrough();
|
|
99
|
+
const SearchTagResponse = zod_1.z
|
|
100
|
+
.object({ id: zod_1.z.string().uuid(), value: zod_1.z.string(), label: zod_1.z.string() })
|
|
101
|
+
.partial()
|
|
102
|
+
.strict()
|
|
103
|
+
.passthrough();
|
|
88
104
|
const FileSearchResult = zod_1.z
|
|
89
105
|
.object({
|
|
90
106
|
type: zod_1.z.literal('file'),
|
|
@@ -96,6 +112,7 @@ const FileSearchResult = zod_1.z
|
|
|
96
112
|
summary: zod_1.z.string().nullish(),
|
|
97
113
|
generated_title: zod_1.z.string().nullish(),
|
|
98
114
|
thumbnail_url: zod_1.z.string().url().optional(),
|
|
115
|
+
tag: SearchTagResponse.optional(),
|
|
99
116
|
})
|
|
100
117
|
.strict()
|
|
101
118
|
.passthrough();
|
|
@@ -146,6 +163,8 @@ const SegmentSearchResult = zod_1.z
|
|
|
146
163
|
.passthrough())
|
|
147
164
|
.optional(),
|
|
148
165
|
thumbnail_url: zod_1.z.string().url().optional(),
|
|
166
|
+
tag: SearchTagResponse.optional(),
|
|
167
|
+
metadata: zod_1.z.object({}).partial().strict().passthrough().optional(),
|
|
149
168
|
keyframes: zod_1.z
|
|
150
169
|
.array(zod_1.z
|
|
151
170
|
.object({
|
|
@@ -229,6 +248,7 @@ exports.schemas = {
|
|
|
229
248
|
SearchModalities,
|
|
230
249
|
SearchRequest,
|
|
231
250
|
SearchResponseList,
|
|
251
|
+
SearchTagResponse,
|
|
232
252
|
FileSearchResult,
|
|
233
253
|
SegmentSearchResult,
|
|
234
254
|
FaceSearchResult,
|