@aviaryhq/cloudglue-js 0.1.6 → 0.1.7

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.
@@ -1,6 +1,7 @@
1
1
  import { type ZodiosOptions } from "@zodios/core";
2
2
  import { z } from "zod";
3
3
  import { SegmentationConfig } from "./common";
4
+ import { ThumbnailsConfig } from "./common";
4
5
  import { File } from "./common";
5
6
  import { FileSegmentationConfig } from "./common";
6
7
  type Collection = {
@@ -22,6 +23,7 @@ type Collection = {
22
23
  enable_visual_scene_description: boolean;
23
24
  }> | undefined;
24
25
  default_segmentation_config?: SegmentationConfig | undefined;
26
+ default_thumbnails_config?: ThumbnailsConfig | undefined;
25
27
  created_at: number;
26
28
  file_count: number;
27
29
  };
@@ -68,7 +70,9 @@ type AddCollectionFile = ({
68
70
  file_id: string;
69
71
  } | {
70
72
  url: string;
71
- }) & FileSegmentationConfig;
73
+ }) & FileSegmentationConfig & Partial<{
74
+ thumbnails_config: ThumbnailsConfig;
75
+ }>;
72
76
  type CollectionFileList = {
73
77
  object: "list";
74
78
  data: Array<CollectionFile>;
@@ -7,6 +7,7 @@ const zod_1 = require("zod");
7
7
  const common_1 = require("./common");
8
8
  const common_2 = require("./common");
9
9
  const common_3 = require("./common");
10
+ const common_4 = require("./common");
10
11
  const Collection = zod_1.z
11
12
  .object({
12
13
  id: zod_1.z.string(),
@@ -41,6 +42,7 @@ const Collection = zod_1.z
41
42
  .passthrough()
42
43
  .optional(),
43
44
  default_segmentation_config: common_1.SegmentationConfig.optional(),
45
+ default_thumbnails_config: common_2.ThumbnailsConfig.optional(),
44
46
  created_at: zod_1.z.number().int(),
45
47
  file_count: zod_1.z.number().int(),
46
48
  })
@@ -92,7 +94,12 @@ const AddCollectionFile = zod_1.z
92
94
  zod_1.z.object({ file_id: zod_1.z.string() }).strict().passthrough(),
93
95
  zod_1.z.object({ url: zod_1.z.string() }).strict().passthrough(),
94
96
  ])
95
- .and(common_3.FileSegmentationConfig);
97
+ .and(common_4.FileSegmentationConfig)
98
+ .and(zod_1.z
99
+ .object({ thumbnails_config: common_2.ThumbnailsConfig })
100
+ .partial()
101
+ .strict()
102
+ .passthrough());
96
103
  const AddYouTubeCollectionFile = zod_1.z
97
104
  .object({
98
105
  url: zod_1.z.string(),
@@ -100,7 +107,7 @@ const AddYouTubeCollectionFile = zod_1.z
100
107
  })
101
108
  .strict()
102
109
  .passthrough()
103
- .and(common_3.FileSegmentationConfig);
110
+ .and(common_4.FileSegmentationConfig);
104
111
  const CollectionFile = zod_1.z
105
112
  .object({
106
113
  collection_id: zod_1.z.string(),
@@ -114,7 +121,7 @@ const CollectionFile = zod_1.z
114
121
  "failed",
115
122
  "not_applicable",
116
123
  ]),
117
- file: common_2.File.optional(),
124
+ file: common_3.File.optional(),
118
125
  segmentation: zod_1.z
119
126
  .object({
120
127
  id: zod_1.z.string().uuid(),
@@ -1,5 +1,6 @@
1
1
  import { type ZodiosOptions } from "@zodios/core";
2
2
  import { z } from "zod";
3
+ import { ThumbnailsConfig } from "./common";
3
4
  import { FileSegmentationConfig } from "./common";
4
5
  type Extract = {
5
6
  job_id: string;
@@ -28,6 +29,7 @@ type NewExtract = {
28
29
  schema?: {} | undefined;
29
30
  enable_video_level_entities?: boolean | undefined;
30
31
  enable_segment_level_entities?: boolean | undefined;
32
+ thumbnails_config?: ThumbnailsConfig | undefined;
31
33
  } & FileSegmentationConfig;
32
34
  type ExtractList = {
33
35
  object: "list";
@@ -5,6 +5,7 @@ exports.createApiClient = createApiClient;
5
5
  const core_1 = require("@zodios/core");
6
6
  const zod_1 = require("zod");
7
7
  const common_1 = require("./common");
8
+ const common_2 = require("./common");
8
9
  const Extract = zod_1.z
9
10
  .object({
10
11
  job_id: zod_1.z.string(),
@@ -66,10 +67,11 @@ const NewExtract = zod_1.z
66
67
  schema: zod_1.z.object({}).partial().strict().passthrough().optional(),
67
68
  enable_video_level_entities: zod_1.z.boolean().optional().default(false),
68
69
  enable_segment_level_entities: zod_1.z.boolean().optional().default(true),
70
+ thumbnails_config: common_1.ThumbnailsConfig.optional(),
69
71
  })
70
72
  .strict()
71
73
  .passthrough()
72
- .and(common_1.FileSegmentationConfig);
74
+ .and(common_2.FileSegmentationConfig);
73
75
  exports.schemas = {
74
76
  Extract,
75
77
  ExtractList,