@aviaryhq/cloudglue-js 0.3.7 → 0.3.9

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,5 +1,6 @@
1
1
  import { type ZodiosOptions } from "@zodios/core";
2
2
  import { z } from "zod";
3
+ import { DescribeOutput } from "./common";
3
4
  type ChatCompletionRequest = {
4
5
  model: "nimbus-001";
5
6
  messages: Array<ChatMessage>;
@@ -55,23 +56,7 @@ export declare const schemas: {
55
56
  relevant_sources: Array<Partial<{
56
57
  text: string;
57
58
  }>>;
58
- visual_scene_description: Array<Partial<{
59
- text: string;
60
- start_time: number;
61
- end_time: number;
62
- }>>;
63
- scene_text: Array<Partial<{
64
- text: string;
65
- start_time: number;
66
- end_time: number;
67
- }>>;
68
- speech: Array<Partial<{
69
- speaker: string;
70
- text: string;
71
- start_time: number;
72
- end_time: number;
73
- }>>;
74
- }>>;
59
+ }> & DescribeOutput>;
75
60
  }>>;
76
61
  usage: Partial<{
77
62
  prompt_tokens: number;
@@ -97,23 +82,7 @@ export declare const schemas: {
97
82
  relevant_sources: Array<Partial<{
98
83
  text: string;
99
84
  }>>;
100
- visual_scene_description: Array<Partial<{
101
- text: string;
102
- start_time: number;
103
- end_time: number;
104
- }>>;
105
- scene_text: Array<Partial<{
106
- text: string;
107
- start_time: number;
108
- end_time: number;
109
- }>>;
110
- speech: Array<Partial<{
111
- speaker: string;
112
- text: string;
113
- start_time: number;
114
- end_time: number;
115
- }>>;
116
- }>>;
85
+ }> & DescribeOutput>;
117
86
  }>>;
118
87
  usage: Partial<{
119
88
  prompt_tokens: number;
@@ -153,23 +122,7 @@ export declare const ChatApi: import("@zodios/core").ZodiosInstance<[{
153
122
  relevant_sources: Array<Partial<{
154
123
  text: string;
155
124
  }>>;
156
- visual_scene_description: Array<Partial<{
157
- text: string;
158
- start_time: number;
159
- end_time: number;
160
- }>>;
161
- scene_text: Array<Partial<{
162
- text: string;
163
- start_time: number;
164
- end_time: number;
165
- }>>;
166
- speech: Array<Partial<{
167
- speaker: string;
168
- text: string;
169
- start_time: number;
170
- end_time: number;
171
- }>>;
172
- }>>;
125
+ }> & DescribeOutput>;
173
126
  }>>;
174
127
  usage: Partial<{
175
128
  prompt_tokens: number;
@@ -195,23 +148,7 @@ export declare const ChatApi: import("@zodios/core").ZodiosInstance<[{
195
148
  relevant_sources: Array<Partial<{
196
149
  text: string;
197
150
  }>>;
198
- visual_scene_description: Array<Partial<{
199
- text: string;
200
- start_time: number;
201
- end_time: number;
202
- }>>;
203
- scene_text: Array<Partial<{
204
- text: string;
205
- start_time: number;
206
- end_time: number;
207
- }>>;
208
- speech: Array<Partial<{
209
- speaker: string;
210
- text: string;
211
- start_time: number;
212
- end_time: number;
213
- }>>;
214
- }>>;
151
+ }> & DescribeOutput>;
215
152
  }>>;
216
153
  usage: Partial<{
217
154
  prompt_tokens: number;
@@ -292,23 +229,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
292
229
  relevant_sources: Array<Partial<{
293
230
  text: string;
294
231
  }>>;
295
- visual_scene_description: Array<Partial<{
296
- text: string;
297
- start_time: number;
298
- end_time: number;
299
- }>>;
300
- scene_text: Array<Partial<{
301
- text: string;
302
- start_time: number;
303
- end_time: number;
304
- }>>;
305
- speech: Array<Partial<{
306
- speaker: string;
307
- text: string;
308
- start_time: number;
309
- end_time: number;
310
- }>>;
311
- }>>;
232
+ }> & DescribeOutput>;
312
233
  }>>;
313
234
  usage: Partial<{
314
235
  prompt_tokens: number;
@@ -334,23 +255,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
334
255
  relevant_sources: Array<Partial<{
335
256
  text: string;
336
257
  }>>;
337
- visual_scene_description: Array<Partial<{
338
- text: string;
339
- start_time: number;
340
- end_time: number;
341
- }>>;
342
- scene_text: Array<Partial<{
343
- text: string;
344
- start_time: number;
345
- end_time: number;
346
- }>>;
347
- speech: Array<Partial<{
348
- speaker: string;
349
- text: string;
350
- start_time: number;
351
- end_time: number;
352
- }>>;
353
- }>>;
258
+ }> & DescribeOutput>;
354
259
  }>>;
355
260
  usage: Partial<{
356
261
  prompt_tokens: number;
@@ -4,6 +4,7 @@ exports.ChatApi = exports.schemas = void 0;
4
4
  exports.createApiClient = createApiClient;
5
5
  const core_1 = require("@zodios/core");
6
6
  const zod_1 = require("zod");
7
+ const common_1 = require("./common");
7
8
  const ChatMessage = zod_1.z
8
9
  .object({
9
10
  role: zod_1.z.enum(["system", "user", "assistant"]),
@@ -103,38 +104,11 @@ const ChatCompletionResponse = zod_1.z
103
104
  .partial()
104
105
  .strict()
105
106
  .passthrough()),
106
- visual_scene_description: zod_1.z.array(zod_1.z
107
- .object({
108
- text: zod_1.z.string(),
109
- start_time: zod_1.z.number(),
110
- end_time: zod_1.z.number(),
111
- })
112
- .partial()
113
- .strict()
114
- .passthrough()),
115
- scene_text: zod_1.z.array(zod_1.z
116
- .object({
117
- text: zod_1.z.string(),
118
- start_time: zod_1.z.number(),
119
- end_time: zod_1.z.number(),
120
- })
121
- .partial()
122
- .strict()
123
- .passthrough()),
124
- speech: zod_1.z.array(zod_1.z
125
- .object({
126
- speaker: zod_1.z.string(),
127
- text: zod_1.z.string(),
128
- start_time: zod_1.z.number(),
129
- end_time: zod_1.z.number(),
130
- })
131
- .partial()
132
- .strict()
133
- .passthrough()),
134
107
  })
135
108
  .partial()
136
109
  .strict()
137
- .passthrough()),
110
+ .passthrough()
111
+ .and(common_1.DescribeOutput)),
138
112
  })
139
113
  .partial()
140
114
  .strict()