@aviaryhq/cloudglue-js 0.1.3 → 0.1.5
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 +7 -5
- package/dist/generated/Collections.js +12 -5
- package/dist/generated/Describe.d.ts +7027 -0
- package/dist/generated/Describe.js +159 -0
- package/dist/generated/Search.d.ts +190 -0
- package/dist/generated/Search.js +173 -0
- package/dist/generated/index.d.ts +1 -0
- package/dist/generated/index.js +3 -1
- package/dist/src/client.d.ts +106 -4
- package/dist/src/client.js +19 -2
- package/dist/src/types.d.ts +26 -0
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ type Collection = {
|
|
|
8
8
|
object: "collection";
|
|
9
9
|
name: string;
|
|
10
10
|
description?: (string | null) | undefined;
|
|
11
|
-
collection_type: "entities" | "rich-transcripts";
|
|
11
|
+
collection_type: "entities" | "rich-transcripts" | "media-descriptions";
|
|
12
12
|
extract_config?: Partial<{
|
|
13
13
|
prompt: string;
|
|
14
14
|
schema: {};
|
|
@@ -64,9 +64,11 @@ type CollectionFile = {
|
|
|
64
64
|
segmentation_config: SegmentationConfig;
|
|
65
65
|
} | undefined;
|
|
66
66
|
};
|
|
67
|
-
type AddCollectionFile = {
|
|
67
|
+
type AddCollectionFile = ({
|
|
68
68
|
file_id: string;
|
|
69
|
-
}
|
|
69
|
+
} | {
|
|
70
|
+
url: string;
|
|
71
|
+
}) & FileSegmentationConfig;
|
|
70
72
|
type CollectionFileList = {
|
|
71
73
|
object: "list";
|
|
72
74
|
data: Array<CollectionFile>;
|
|
@@ -2042,7 +2044,7 @@ export declare const CollectionsApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
2042
2044
|
}, {
|
|
2043
2045
|
name: "collection_type";
|
|
2044
2046
|
type: "Query";
|
|
2045
|
-
schema: z.ZodOptional<z.ZodEnum<["entities", "rich-transcripts"]>>;
|
|
2047
|
+
schema: z.ZodOptional<z.ZodEnum<["entities", "rich-transcripts", "media-descriptions"]>>;
|
|
2046
2048
|
}];
|
|
2047
2049
|
response: z.ZodType<CollectionList, z.ZodTypeDef, CollectionList>;
|
|
2048
2050
|
errors: [{
|
|
@@ -4532,7 +4534,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
4532
4534
|
}, {
|
|
4533
4535
|
name: "collection_type";
|
|
4534
4536
|
type: "Query";
|
|
4535
|
-
schema: z.ZodOptional<z.ZodEnum<["entities", "rich-transcripts"]>>;
|
|
4537
|
+
schema: z.ZodOptional<z.ZodEnum<["entities", "rich-transcripts", "media-descriptions"]>>;
|
|
4536
4538
|
}];
|
|
4537
4539
|
response: z.ZodType<CollectionList, z.ZodTypeDef, CollectionList>;
|
|
4538
4540
|
errors: [{
|
|
@@ -13,7 +13,11 @@ const Collection = zod_1.z
|
|
|
13
13
|
object: zod_1.z.literal("collection"),
|
|
14
14
|
name: zod_1.z.string(),
|
|
15
15
|
description: zod_1.z.union([zod_1.z.string(), zod_1.z.null()]).optional(),
|
|
16
|
-
collection_type: zod_1.z.enum([
|
|
16
|
+
collection_type: zod_1.z.enum([
|
|
17
|
+
"entities",
|
|
18
|
+
"rich-transcripts",
|
|
19
|
+
"media-descriptions",
|
|
20
|
+
]),
|
|
17
21
|
extract_config: zod_1.z
|
|
18
22
|
.object({
|
|
19
23
|
prompt: zod_1.z.string(),
|
|
@@ -84,9 +88,10 @@ const CollectionList = zod_1.z
|
|
|
84
88
|
.strict()
|
|
85
89
|
.passthrough();
|
|
86
90
|
const AddCollectionFile = zod_1.z
|
|
87
|
-
.
|
|
88
|
-
.strict()
|
|
89
|
-
.passthrough()
|
|
91
|
+
.union([
|
|
92
|
+
zod_1.z.object({ file_id: zod_1.z.string() }).strict().passthrough(),
|
|
93
|
+
zod_1.z.object({ url: zod_1.z.string() }).strict().passthrough(),
|
|
94
|
+
])
|
|
90
95
|
.and(common_3.FileSegmentationConfig);
|
|
91
96
|
const AddYouTubeCollectionFile = zod_1.z
|
|
92
97
|
.object({
|
|
@@ -380,7 +385,9 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
380
385
|
{
|
|
381
386
|
name: "collection_type",
|
|
382
387
|
type: "Query",
|
|
383
|
-
schema: zod_1.z
|
|
388
|
+
schema: zod_1.z
|
|
389
|
+
.enum(["entities", "rich-transcripts", "media-descriptions"])
|
|
390
|
+
.optional(),
|
|
384
391
|
},
|
|
385
392
|
],
|
|
386
393
|
response: CollectionList,
|