@aviaryhq/cloudglue-js 0.5.9 → 0.6.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.
@@ -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 NewDescribe = zod_1.z
11
12
  .object({
12
13
  url: zod_1.z.string(),
@@ -20,69 +21,8 @@ const NewDescribe = zod_1.z
20
21
  .strict()
21
22
  .passthrough()
22
23
  .and(common_3.FileSegmentationConfig);
23
- const Describe = zod_1.z
24
- .object({
25
- job_id: zod_1.z.string(),
26
- status: zod_1.z.enum([
27
- 'pending',
28
- 'processing',
29
- 'completed',
30
- 'failed',
31
- 'not_applicable',
32
- ]),
33
- url: zod_1.z.string().optional(),
34
- duration_seconds: zod_1.z.number().optional(),
35
- created_at: zod_1.z.number().int().optional(),
36
- describe_config: zod_1.z
37
- .object({
38
- enable_summary: zod_1.z.boolean(),
39
- enable_speech: zod_1.z.boolean(),
40
- enable_visual_scene_description: zod_1.z.boolean(),
41
- enable_scene_text: zod_1.z.boolean(),
42
- enable_audio_description: zod_1.z.boolean(),
43
- })
44
- .partial()
45
- .strict()
46
- .passthrough()
47
- .optional(),
48
- data: zod_1.z
49
- .object({
50
- content: zod_1.z.string(),
51
- title: zod_1.z.string(),
52
- summary: zod_1.z.string(),
53
- segment_summary: zod_1.z.array(zod_1.z
54
- .object({
55
- title: zod_1.z.string(),
56
- summary: zod_1.z.string(),
57
- start_time: zod_1.z.number(),
58
- end_time: zod_1.z.number(),
59
- })
60
- .partial()
61
- .strict()
62
- .passthrough()),
63
- })
64
- .partial()
65
- .strict()
66
- .passthrough()
67
- .and(common_1.DescribeOutput)
68
- .optional(),
69
- error: zod_1.z.string().optional(),
70
- })
71
- .strict()
72
- .passthrough();
73
- const DescribeList = zod_1.z
74
- .object({
75
- object: zod_1.z.literal('list'),
76
- data: zod_1.z.array(Describe),
77
- total: zod_1.z.number().int(),
78
- limit: zod_1.z.number().int(),
79
- })
80
- .strict()
81
- .passthrough();
82
24
  exports.schemas = {
83
25
  NewDescribe,
84
- Describe,
85
- DescribeList,
86
26
  };
87
27
  const endpoints = (0, core_1.makeApi)([
88
28
  {
@@ -99,7 +39,7 @@ const endpoints = (0, core_1.makeApi)([
99
39
  schema: NewDescribe,
100
40
  },
101
41
  ],
102
- response: Describe,
42
+ response: common_1.Describe,
103
43
  errors: [
104
44
  {
105
45
  status: 400,
@@ -194,7 +134,7 @@ const endpoints = (0, core_1.makeApi)([
194
134
  .optional(),
195
135
  },
196
136
  ],
197
- response: DescribeList,
137
+ response: common_4.DescribeList,
198
138
  errors: [
199
139
  {
200
140
  status: 400,
@@ -251,7 +191,7 @@ const endpoints = (0, core_1.makeApi)([
251
191
  .optional(),
252
192
  },
253
193
  ],
254
- response: Describe,
194
+ response: common_1.Describe,
255
195
  errors: [
256
196
  {
257
197
  status: 404,