@aviaryhq/cloudglue-js 0.3.6 → 0.3.8
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/Collections.d.ts +8 -0
- package/dist/generated/Collections.js +7 -2
- package/dist/generated/Extract.d.ts +22 -2
- package/dist/generated/Extract.js +15 -1
- package/dist/generated/Face_Match.js +1 -1
- package/dist/generated/Files.d.ts +342 -342
- package/dist/generated/common.d.ts +51 -51
- package/dist/generated/common.js +7 -9
- package/dist/src/client.d.ts +72 -52
- package/dist/src/client.js +18 -4
- package/package.json +11 -9
|
@@ -4831,6 +4831,10 @@ export declare const CollectionsApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
4831
4831
|
name: "sort";
|
|
4832
4832
|
type: "Query";
|
|
4833
4833
|
schema: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
4834
|
+
}, {
|
|
4835
|
+
name: "filter";
|
|
4836
|
+
type: "Query";
|
|
4837
|
+
schema: z.ZodOptional<z.ZodString>;
|
|
4834
4838
|
}];
|
|
4835
4839
|
response: z.ZodType<CollectionFileList, z.ZodTypeDef, CollectionFileList>;
|
|
4836
4840
|
errors: [{
|
|
@@ -10008,6 +10012,10 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
10008
10012
|
name: "sort";
|
|
10009
10013
|
type: "Query";
|
|
10010
10014
|
schema: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
10015
|
+
}, {
|
|
10016
|
+
name: "filter";
|
|
10017
|
+
type: "Query";
|
|
10018
|
+
schema: z.ZodOptional<z.ZodString>;
|
|
10011
10019
|
}];
|
|
10012
10020
|
response: z.ZodType<CollectionFileList, z.ZodTypeDef, CollectionFileList>;
|
|
10013
10021
|
errors: [{
|
|
@@ -13,7 +13,7 @@ const Collection = zod_1.z
|
|
|
13
13
|
id: zod_1.z.string(),
|
|
14
14
|
object: zod_1.z.literal("collection"),
|
|
15
15
|
name: zod_1.z.string(),
|
|
16
|
-
description: zod_1.z.
|
|
16
|
+
description: zod_1.z.string().nullish(),
|
|
17
17
|
collection_type: zod_1.z.enum([
|
|
18
18
|
"media-descriptions",
|
|
19
19
|
"entities",
|
|
@@ -67,7 +67,7 @@ const NewCollection = zod_1.z
|
|
|
67
67
|
"rich-transcripts",
|
|
68
68
|
]),
|
|
69
69
|
name: zod_1.z.string(),
|
|
70
|
-
description: zod_1.z.
|
|
70
|
+
description: zod_1.z.string().nullish(),
|
|
71
71
|
describe_config: zod_1.z
|
|
72
72
|
.object({
|
|
73
73
|
enable_summary: zod_1.z.boolean().default(true),
|
|
@@ -766,6 +766,11 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
766
766
|
type: "Query",
|
|
767
767
|
schema: zod_1.z.enum(["asc", "desc"]).optional().default("desc"),
|
|
768
768
|
},
|
|
769
|
+
{
|
|
770
|
+
name: "filter",
|
|
771
|
+
type: "Query",
|
|
772
|
+
schema: zod_1.z.string().optional(),
|
|
773
|
+
},
|
|
769
774
|
],
|
|
770
775
|
response: CollectionFileList,
|
|
771
776
|
errors: [
|
|
@@ -13,6 +13,7 @@ type Extract = {
|
|
|
13
13
|
enable_video_level_entities: boolean;
|
|
14
14
|
enable_segment_level_entities: boolean;
|
|
15
15
|
}> | undefined;
|
|
16
|
+
segmentation_id?: string | undefined;
|
|
16
17
|
data?: Partial<{
|
|
17
18
|
entities: {};
|
|
18
19
|
segment_entities: Array<Partial<{
|
|
@@ -21,6 +22,9 @@ type Extract = {
|
|
|
21
22
|
entities: {};
|
|
22
23
|
}>>;
|
|
23
24
|
}> | undefined;
|
|
25
|
+
total?: number | undefined;
|
|
26
|
+
limit?: number | undefined;
|
|
27
|
+
offset?: number | undefined;
|
|
24
28
|
error?: string | undefined;
|
|
25
29
|
};
|
|
26
30
|
type NewExtract = {
|
|
@@ -177,12 +181,20 @@ export declare const ExtractApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
177
181
|
method: "get";
|
|
178
182
|
path: "/extract/:job_id";
|
|
179
183
|
alias: "getExtract";
|
|
180
|
-
description: "Retrieve the current state of an extraction job";
|
|
184
|
+
description: "Retrieve the current state of an extraction job. Results are paginated with a default limit of 50 segment entities per request (maximum 100). Use limit and offset parameters to paginate through all segment entities.";
|
|
181
185
|
requestFormat: "json";
|
|
182
186
|
parameters: [{
|
|
183
187
|
name: "job_id";
|
|
184
188
|
type: "Path";
|
|
185
189
|
schema: z.ZodString;
|
|
190
|
+
}, {
|
|
191
|
+
name: "limit";
|
|
192
|
+
type: "Query";
|
|
193
|
+
schema: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
194
|
+
}, {
|
|
195
|
+
name: "offset";
|
|
196
|
+
type: "Query";
|
|
197
|
+
schema: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
186
198
|
}];
|
|
187
199
|
response: z.ZodType<Extract, z.ZodTypeDef, Extract>;
|
|
188
200
|
errors: [{
|
|
@@ -338,12 +350,20 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
338
350
|
method: "get";
|
|
339
351
|
path: "/extract/:job_id";
|
|
340
352
|
alias: "getExtract";
|
|
341
|
-
description: "Retrieve the current state of an extraction job";
|
|
353
|
+
description: "Retrieve the current state of an extraction job. Results are paginated with a default limit of 50 segment entities per request (maximum 100). Use limit and offset parameters to paginate through all segment entities.";
|
|
342
354
|
requestFormat: "json";
|
|
343
355
|
parameters: [{
|
|
344
356
|
name: "job_id";
|
|
345
357
|
type: "Path";
|
|
346
358
|
schema: z.ZodString;
|
|
359
|
+
}, {
|
|
360
|
+
name: "limit";
|
|
361
|
+
type: "Query";
|
|
362
|
+
schema: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
363
|
+
}, {
|
|
364
|
+
name: "offset";
|
|
365
|
+
type: "Query";
|
|
366
|
+
schema: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
347
367
|
}];
|
|
348
368
|
response: z.ZodType<Extract, z.ZodTypeDef, Extract>;
|
|
349
369
|
errors: [{
|
|
@@ -29,6 +29,7 @@ const Extract = zod_1.z
|
|
|
29
29
|
.strict()
|
|
30
30
|
.passthrough()
|
|
31
31
|
.optional(),
|
|
32
|
+
segmentation_id: zod_1.z.string().optional(),
|
|
32
33
|
data: zod_1.z
|
|
33
34
|
.object({
|
|
34
35
|
entities: zod_1.z.object({}).partial().strict().passthrough(),
|
|
@@ -46,6 +47,9 @@ const Extract = zod_1.z
|
|
|
46
47
|
.strict()
|
|
47
48
|
.passthrough()
|
|
48
49
|
.optional(),
|
|
50
|
+
total: zod_1.z.number().int().optional(),
|
|
51
|
+
limit: zod_1.z.number().int().optional(),
|
|
52
|
+
offset: zod_1.z.number().int().optional(),
|
|
49
53
|
error: zod_1.z.string().optional(),
|
|
50
54
|
})
|
|
51
55
|
.strict()
|
|
@@ -190,7 +194,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
190
194
|
method: "get",
|
|
191
195
|
path: "/extract/:job_id",
|
|
192
196
|
alias: "getExtract",
|
|
193
|
-
description: `Retrieve the current state of an extraction job
|
|
197
|
+
description: `Retrieve the current state of an extraction job. Results are paginated with a default limit of 50 segment entities per request (maximum 100). Use limit and offset parameters to paginate through all segment entities.`,
|
|
194
198
|
requestFormat: "json",
|
|
195
199
|
parameters: [
|
|
196
200
|
{
|
|
@@ -198,6 +202,16 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
198
202
|
type: "Path",
|
|
199
203
|
schema: zod_1.z.string(),
|
|
200
204
|
},
|
|
205
|
+
{
|
|
206
|
+
name: "limit",
|
|
207
|
+
type: "Query",
|
|
208
|
+
schema: zod_1.z.number().int().gte(1).lte(100).optional().default(50),
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
name: "offset",
|
|
212
|
+
type: "Query",
|
|
213
|
+
schema: zod_1.z.number().int().gte(0).optional().default(0),
|
|
214
|
+
},
|
|
201
215
|
],
|
|
202
216
|
response: Extract,
|
|
203
217
|
errors: [
|
|
@@ -41,7 +41,7 @@ const FaceMatch = zod_1.z
|
|
|
41
41
|
file_id: zod_1.z.string().uuid().optional(),
|
|
42
42
|
status: zod_1.z.enum(["pending", "processing", "completed", "failed"]),
|
|
43
43
|
created_at: zod_1.z.number(),
|
|
44
|
-
source_face_bounding_box:
|
|
44
|
+
source_face_bounding_box: common_1.FaceBoundingBox.nullish(),
|
|
45
45
|
data: zod_1.z
|
|
46
46
|
.object({
|
|
47
47
|
object: zod_1.z.literal("list"),
|