@aviaryhq/cloudglue-js 0.5.4 → 0.5.6
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/Chat.d.ts +41 -11
- package/dist/generated/Chat.js +16 -2
- package/dist/generated/Files.d.ts +80 -125
- package/dist/generated/Files.js +59 -13
- package/dist/generated/Search.d.ts +1 -41
- package/dist/generated/Search.js +2 -44
- package/dist/generated/Share.d.ts +464 -0
- package/dist/generated/Share.js +219 -0
- package/dist/generated/common.d.ts +235 -0
- package/dist/generated/common.js +42 -1
- package/dist/generated/index.d.ts +1 -0
- package/dist/generated/index.js +3 -1
- package/dist/src/api/chat-completion.api.d.ts +33 -3
- package/dist/src/api/files.api.d.ts +38 -18
- package/dist/src/api/files.api.js +6 -0
- package/dist/src/api/shareable.api.d.ts +153 -0
- package/dist/src/api/shareable.api.js +40 -0
- package/dist/src/client.d.ts +6 -0
- package/dist/src/client.js +6 -1
- package/dist/src/types.d.ts +7 -2
- package/package.json +1 -1
package/dist/generated/Chat.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type ZodiosOptions } from '@zodios/core';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { DescribeOutput } from './common';
|
|
4
|
+
import { SearchFilter } from './common';
|
|
4
5
|
type ChatCompletionRequest = {
|
|
5
6
|
model: 'nimbus-001';
|
|
6
7
|
messages: Array<ChatMessage>;
|
|
@@ -32,11 +33,17 @@ type ChatMessage = {
|
|
|
32
33
|
content: string;
|
|
33
34
|
name?: string | undefined;
|
|
34
35
|
};
|
|
36
|
+
type ChatCompletionPayload = Partial<{
|
|
37
|
+
messages: Array<ChatMessage>;
|
|
38
|
+
temperature: number;
|
|
39
|
+
filter: SearchFilter;
|
|
40
|
+
collections: Array<string>;
|
|
41
|
+
}>;
|
|
35
42
|
type ChatCompletionList = {
|
|
36
43
|
object: 'list';
|
|
37
44
|
data: Array<{
|
|
38
45
|
id: string;
|
|
39
|
-
|
|
46
|
+
created_at: number;
|
|
40
47
|
object: 'chat.completion';
|
|
41
48
|
model: string;
|
|
42
49
|
usage: Partial<{
|
|
@@ -48,6 +55,7 @@ type ChatCompletionList = {
|
|
|
48
55
|
index: number;
|
|
49
56
|
message: ChatMessage;
|
|
50
57
|
}>;
|
|
58
|
+
payload: ChatCompletionPayload;
|
|
51
59
|
}>;
|
|
52
60
|
total: number;
|
|
53
61
|
limit: number;
|
|
@@ -55,14 +63,26 @@ type ChatCompletionList = {
|
|
|
55
63
|
};
|
|
56
64
|
declare const ChatMessage: z.ZodType<ChatMessage>;
|
|
57
65
|
declare const ChatCompletionRequest: z.ZodType<ChatCompletionRequest>;
|
|
66
|
+
declare const ChatCompletionPayload: z.ZodType<ChatCompletionPayload>;
|
|
58
67
|
declare const ChatCompletionList: z.ZodType<ChatCompletionList>;
|
|
59
68
|
export declare const schemas: {
|
|
60
69
|
ChatMessage: z.ZodType<ChatMessage, z.ZodTypeDef, ChatMessage>;
|
|
61
70
|
ChatCompletionRequest: z.ZodType<ChatCompletionRequest, z.ZodTypeDef, ChatCompletionRequest>;
|
|
71
|
+
ChatCompletionPayload: z.ZodType<Partial<{
|
|
72
|
+
messages: Array<ChatMessage>;
|
|
73
|
+
temperature: number;
|
|
74
|
+
filter: SearchFilter;
|
|
75
|
+
collections: Array<string>;
|
|
76
|
+
}>, z.ZodTypeDef, Partial<{
|
|
77
|
+
messages: Array<ChatMessage>;
|
|
78
|
+
temperature: number;
|
|
79
|
+
filter: SearchFilter;
|
|
80
|
+
collections: Array<string>;
|
|
81
|
+
}>>;
|
|
62
82
|
ChatCompletionResponse: z.ZodType<Partial<{
|
|
63
83
|
id: string;
|
|
64
84
|
object: string;
|
|
65
|
-
|
|
85
|
+
created_at: number;
|
|
66
86
|
model: string;
|
|
67
87
|
choices: Array<Partial<{
|
|
68
88
|
index: number;
|
|
@@ -80,6 +100,7 @@ export declare const schemas: {
|
|
|
80
100
|
}>>;
|
|
81
101
|
}> & DescribeOutput>;
|
|
82
102
|
}>>;
|
|
103
|
+
payload: ChatCompletionPayload;
|
|
83
104
|
usage: Partial<{
|
|
84
105
|
prompt_tokens: number;
|
|
85
106
|
completion_tokens: number;
|
|
@@ -88,7 +109,7 @@ export declare const schemas: {
|
|
|
88
109
|
}>, z.ZodTypeDef, Partial<{
|
|
89
110
|
id: string;
|
|
90
111
|
object: string;
|
|
91
|
-
|
|
112
|
+
created_at: number;
|
|
92
113
|
model: string;
|
|
93
114
|
choices: Array<Partial<{
|
|
94
115
|
index: number;
|
|
@@ -106,6 +127,7 @@ export declare const schemas: {
|
|
|
106
127
|
}>>;
|
|
107
128
|
}> & DescribeOutput>;
|
|
108
129
|
}>>;
|
|
130
|
+
payload: ChatCompletionPayload;
|
|
109
131
|
usage: Partial<{
|
|
110
132
|
prompt_tokens: number;
|
|
111
133
|
completion_tokens: number;
|
|
@@ -129,7 +151,7 @@ export declare const ChatApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
129
151
|
response: z.ZodType<Partial<{
|
|
130
152
|
id: string;
|
|
131
153
|
object: string;
|
|
132
|
-
|
|
154
|
+
created_at: number;
|
|
133
155
|
model: string;
|
|
134
156
|
choices: Array<Partial<{
|
|
135
157
|
index: number;
|
|
@@ -147,6 +169,7 @@ export declare const ChatApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
147
169
|
}>>;
|
|
148
170
|
}> & DescribeOutput>;
|
|
149
171
|
}>>;
|
|
172
|
+
payload: ChatCompletionPayload;
|
|
150
173
|
usage: Partial<{
|
|
151
174
|
prompt_tokens: number;
|
|
152
175
|
completion_tokens: number;
|
|
@@ -155,7 +178,7 @@ export declare const ChatApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
155
178
|
}>, z.ZodTypeDef, Partial<{
|
|
156
179
|
id: string;
|
|
157
180
|
object: string;
|
|
158
|
-
|
|
181
|
+
created_at: number;
|
|
159
182
|
model: string;
|
|
160
183
|
choices: Array<Partial<{
|
|
161
184
|
index: number;
|
|
@@ -173,6 +196,7 @@ export declare const ChatApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
173
196
|
}>>;
|
|
174
197
|
}> & DescribeOutput>;
|
|
175
198
|
}>>;
|
|
199
|
+
payload: ChatCompletionPayload;
|
|
176
200
|
usage: Partial<{
|
|
177
201
|
prompt_tokens: number;
|
|
178
202
|
completion_tokens: number;
|
|
@@ -258,7 +282,7 @@ export declare const ChatApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
258
282
|
response: z.ZodType<Partial<{
|
|
259
283
|
id: string;
|
|
260
284
|
object: string;
|
|
261
|
-
|
|
285
|
+
created_at: number;
|
|
262
286
|
model: string;
|
|
263
287
|
choices: Array<Partial<{
|
|
264
288
|
index: number;
|
|
@@ -276,6 +300,7 @@ export declare const ChatApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
276
300
|
}>>;
|
|
277
301
|
}> & DescribeOutput>;
|
|
278
302
|
}>>;
|
|
303
|
+
payload: ChatCompletionPayload;
|
|
279
304
|
usage: Partial<{
|
|
280
305
|
prompt_tokens: number;
|
|
281
306
|
completion_tokens: number;
|
|
@@ -284,7 +309,7 @@ export declare const ChatApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
284
309
|
}>, z.ZodTypeDef, Partial<{
|
|
285
310
|
id: string;
|
|
286
311
|
object: string;
|
|
287
|
-
|
|
312
|
+
created_at: number;
|
|
288
313
|
model: string;
|
|
289
314
|
choices: Array<Partial<{
|
|
290
315
|
index: number;
|
|
@@ -302,6 +327,7 @@ export declare const ChatApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
302
327
|
}>>;
|
|
303
328
|
}> & DescribeOutput>;
|
|
304
329
|
}>>;
|
|
330
|
+
payload: ChatCompletionPayload;
|
|
305
331
|
usage: Partial<{
|
|
306
332
|
prompt_tokens: number;
|
|
307
333
|
completion_tokens: number;
|
|
@@ -335,7 +361,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
335
361
|
response: z.ZodType<Partial<{
|
|
336
362
|
id: string;
|
|
337
363
|
object: string;
|
|
338
|
-
|
|
364
|
+
created_at: number;
|
|
339
365
|
model: string;
|
|
340
366
|
choices: Array<Partial<{
|
|
341
367
|
index: number;
|
|
@@ -353,6 +379,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
353
379
|
}>>;
|
|
354
380
|
}> & DescribeOutput>;
|
|
355
381
|
}>>;
|
|
382
|
+
payload: ChatCompletionPayload;
|
|
356
383
|
usage: Partial<{
|
|
357
384
|
prompt_tokens: number;
|
|
358
385
|
completion_tokens: number;
|
|
@@ -361,7 +388,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
361
388
|
}>, z.ZodTypeDef, Partial<{
|
|
362
389
|
id: string;
|
|
363
390
|
object: string;
|
|
364
|
-
|
|
391
|
+
created_at: number;
|
|
365
392
|
model: string;
|
|
366
393
|
choices: Array<Partial<{
|
|
367
394
|
index: number;
|
|
@@ -379,6 +406,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
379
406
|
}>>;
|
|
380
407
|
}> & DescribeOutput>;
|
|
381
408
|
}>>;
|
|
409
|
+
payload: ChatCompletionPayload;
|
|
382
410
|
usage: Partial<{
|
|
383
411
|
prompt_tokens: number;
|
|
384
412
|
completion_tokens: number;
|
|
@@ -464,7 +492,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
464
492
|
response: z.ZodType<Partial<{
|
|
465
493
|
id: string;
|
|
466
494
|
object: string;
|
|
467
|
-
|
|
495
|
+
created_at: number;
|
|
468
496
|
model: string;
|
|
469
497
|
choices: Array<Partial<{
|
|
470
498
|
index: number;
|
|
@@ -482,6 +510,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
482
510
|
}>>;
|
|
483
511
|
}> & DescribeOutput>;
|
|
484
512
|
}>>;
|
|
513
|
+
payload: ChatCompletionPayload;
|
|
485
514
|
usage: Partial<{
|
|
486
515
|
prompt_tokens: number;
|
|
487
516
|
completion_tokens: number;
|
|
@@ -490,7 +519,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
490
519
|
}>, z.ZodTypeDef, Partial<{
|
|
491
520
|
id: string;
|
|
492
521
|
object: string;
|
|
493
|
-
|
|
522
|
+
created_at: number;
|
|
494
523
|
model: string;
|
|
495
524
|
choices: Array<Partial<{
|
|
496
525
|
index: number;
|
|
@@ -508,6 +537,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
508
537
|
}>>;
|
|
509
538
|
}> & DescribeOutput>;
|
|
510
539
|
}>>;
|
|
540
|
+
payload: ChatCompletionPayload;
|
|
511
541
|
usage: Partial<{
|
|
512
542
|
prompt_tokens: number;
|
|
513
543
|
completion_tokens: number;
|
package/dist/generated/Chat.js
CHANGED
|
@@ -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 ChatMessage = zod_1.z
|
|
9
10
|
.object({
|
|
10
11
|
role: zod_1.z.enum(['system', 'user', 'assistant']),
|
|
@@ -80,11 +81,21 @@ const ChatCompletionRequest = zod_1.z
|
|
|
80
81
|
})
|
|
81
82
|
.strict()
|
|
82
83
|
.passthrough();
|
|
84
|
+
const ChatCompletionPayload = zod_1.z
|
|
85
|
+
.object({
|
|
86
|
+
messages: zod_1.z.array(ChatMessage),
|
|
87
|
+
temperature: zod_1.z.number(),
|
|
88
|
+
filter: common_2.SearchFilter,
|
|
89
|
+
collections: zod_1.z.array(zod_1.z.string().uuid()),
|
|
90
|
+
})
|
|
91
|
+
.partial()
|
|
92
|
+
.strict()
|
|
93
|
+
.passthrough();
|
|
83
94
|
const ChatCompletionResponse = zod_1.z
|
|
84
95
|
.object({
|
|
85
96
|
id: zod_1.z.string(),
|
|
86
97
|
object: zod_1.z.string(),
|
|
87
|
-
|
|
98
|
+
created_at: zod_1.z.number().int(),
|
|
88
99
|
model: zod_1.z.string(),
|
|
89
100
|
choices: zod_1.z.array(zod_1.z
|
|
90
101
|
.object({
|
|
@@ -113,6 +124,7 @@ const ChatCompletionResponse = zod_1.z
|
|
|
113
124
|
.partial()
|
|
114
125
|
.strict()
|
|
115
126
|
.passthrough()),
|
|
127
|
+
payload: ChatCompletionPayload,
|
|
116
128
|
usage: zod_1.z
|
|
117
129
|
.object({
|
|
118
130
|
prompt_tokens: zod_1.z.number().int(),
|
|
@@ -132,7 +144,7 @@ const ChatCompletionList = zod_1.z
|
|
|
132
144
|
data: zod_1.z.array(zod_1.z
|
|
133
145
|
.object({
|
|
134
146
|
id: zod_1.z.string().uuid(),
|
|
135
|
-
|
|
147
|
+
created_at: zod_1.z.number(),
|
|
136
148
|
object: zod_1.z.literal('chat.completion'),
|
|
137
149
|
model: zod_1.z.string(),
|
|
138
150
|
usage: zod_1.z
|
|
@@ -148,6 +160,7 @@ const ChatCompletionList = zod_1.z
|
|
|
148
160
|
.object({ index: zod_1.z.number().int(), message: ChatMessage })
|
|
149
161
|
.strict()
|
|
150
162
|
.passthrough()),
|
|
163
|
+
payload: ChatCompletionPayload,
|
|
151
164
|
})
|
|
152
165
|
.strict()
|
|
153
166
|
.passthrough()),
|
|
@@ -160,6 +173,7 @@ const ChatCompletionList = zod_1.z
|
|
|
160
173
|
exports.schemas = {
|
|
161
174
|
ChatMessage,
|
|
162
175
|
ChatCompletionRequest,
|
|
176
|
+
ChatCompletionPayload,
|
|
163
177
|
ChatCompletionResponse,
|
|
164
178
|
ChatCompletionList,
|
|
165
179
|
};
|
|
@@ -25,6 +25,22 @@ type SegmentationListItem = {
|
|
|
25
25
|
thumbnails_config: ThumbnailsConfig;
|
|
26
26
|
total_segments?: number | undefined;
|
|
27
27
|
};
|
|
28
|
+
type FileSegmentListResponse = {
|
|
29
|
+
object: 'list';
|
|
30
|
+
data: Array<FileSegment>;
|
|
31
|
+
total: number;
|
|
32
|
+
limit: number;
|
|
33
|
+
offset: number;
|
|
34
|
+
};
|
|
35
|
+
type FileSegment = {
|
|
36
|
+
id: string;
|
|
37
|
+
file_id: string;
|
|
38
|
+
start_time: number;
|
|
39
|
+
end_time: number;
|
|
40
|
+
thumbnail_url: string;
|
|
41
|
+
metadata?: {} | undefined;
|
|
42
|
+
segmentation_id?: string | undefined;
|
|
43
|
+
};
|
|
28
44
|
type FrameExtractionList = {
|
|
29
45
|
object: 'list';
|
|
30
46
|
data: Array<{
|
|
@@ -43,11 +59,15 @@ declare const FileList: z.ZodType<FileList>;
|
|
|
43
59
|
declare const SegmentationListItem: z.ZodType<SegmentationListItem>;
|
|
44
60
|
declare const SegmentationList: z.ZodType<SegmentationList>;
|
|
45
61
|
declare const FrameExtractionList: z.ZodType<FrameExtractionList>;
|
|
62
|
+
declare const FileSegment: z.ZodType<FileSegment>;
|
|
63
|
+
declare const FileSegmentListResponse: z.ZodType<FileSegmentListResponse>;
|
|
46
64
|
export declare const schemas: {
|
|
47
65
|
FileList: z.ZodType<FileList, z.ZodTypeDef, FileList>;
|
|
48
66
|
SegmentationListItem: z.ZodType<SegmentationListItem, z.ZodTypeDef, SegmentationListItem>;
|
|
49
67
|
SegmentationList: z.ZodType<SegmentationList, z.ZodTypeDef, SegmentationList>;
|
|
50
68
|
FrameExtractionList: z.ZodType<FrameExtractionList, z.ZodTypeDef, FrameExtractionList>;
|
|
69
|
+
FileSegment: z.ZodType<FileSegment, z.ZodTypeDef, FileSegment>;
|
|
70
|
+
FileSegmentListResponse: z.ZodType<FileSegmentListResponse, z.ZodTypeDef, FileSegmentListResponse>;
|
|
51
71
|
FileUpload: z.ZodObject<{
|
|
52
72
|
file: z.ZodType<File, z.ZodTypeDef, File>;
|
|
53
73
|
metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
@@ -304,31 +324,6 @@ export declare const schemas: {
|
|
|
304
324
|
start_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
305
325
|
end_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
306
326
|
}, z.ZodTypeAny, "passthrough">>;
|
|
307
|
-
FileSegment: z.ZodObject<{
|
|
308
|
-
id: z.ZodString;
|
|
309
|
-
file_id: z.ZodString;
|
|
310
|
-
start_time: z.ZodNumber;
|
|
311
|
-
end_time: z.ZodNumber;
|
|
312
|
-
thumbnail_url: z.ZodString;
|
|
313
|
-
metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
314
|
-
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
315
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
316
|
-
id: z.ZodString;
|
|
317
|
-
file_id: z.ZodString;
|
|
318
|
-
start_time: z.ZodNumber;
|
|
319
|
-
end_time: z.ZodNumber;
|
|
320
|
-
thumbnail_url: z.ZodString;
|
|
321
|
-
metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
322
|
-
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
323
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
324
|
-
id: z.ZodString;
|
|
325
|
-
file_id: z.ZodString;
|
|
326
|
-
start_time: z.ZodNumber;
|
|
327
|
-
end_time: z.ZodNumber;
|
|
328
|
-
thumbnail_url: z.ZodString;
|
|
329
|
-
metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
330
|
-
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
331
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
332
327
|
createFileFrameExtraction_Body: z.ZodObject<{
|
|
333
328
|
strategy: z.ZodLiteral<"uniform">;
|
|
334
329
|
uniform_config: z.ZodOptional<z.ZodObject<{
|
|
@@ -2445,6 +2440,34 @@ export declare const FilesApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
2445
2440
|
segment_id: z.ZodOptional<z.ZodString>;
|
|
2446
2441
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
2447
2442
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
2443
|
+
}, {
|
|
2444
|
+
method: "get";
|
|
2445
|
+
path: "/files/:file_id/segments";
|
|
2446
|
+
alias: "listFileSegments";
|
|
2447
|
+
description: "List all segments for a specific file";
|
|
2448
|
+
requestFormat: "json";
|
|
2449
|
+
parameters: [{
|
|
2450
|
+
name: "file_id";
|
|
2451
|
+
type: "Path";
|
|
2452
|
+
schema: z.ZodString;
|
|
2453
|
+
}, {
|
|
2454
|
+
name: "start_time_after";
|
|
2455
|
+
type: "Query";
|
|
2456
|
+
schema: z.ZodOptional<z.ZodNumber>;
|
|
2457
|
+
}, {
|
|
2458
|
+
name: "end_time_before";
|
|
2459
|
+
type: "Query";
|
|
2460
|
+
schema: z.ZodOptional<z.ZodNumber>;
|
|
2461
|
+
}, {
|
|
2462
|
+
name: "limit";
|
|
2463
|
+
type: "Query";
|
|
2464
|
+
schema: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
2465
|
+
}, {
|
|
2466
|
+
name: "offset";
|
|
2467
|
+
type: "Query";
|
|
2468
|
+
schema: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
2469
|
+
}];
|
|
2470
|
+
response: z.ZodType<FileSegmentListResponse, z.ZodTypeDef, FileSegmentListResponse>;
|
|
2448
2471
|
}, {
|
|
2449
2472
|
method: "get";
|
|
2450
2473
|
path: "/files/:file_id/segments/:segment_id";
|
|
@@ -2460,31 +2483,7 @@ export declare const FilesApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
2460
2483
|
type: "Path";
|
|
2461
2484
|
schema: z.ZodString;
|
|
2462
2485
|
}];
|
|
2463
|
-
response: z.
|
|
2464
|
-
id: z.ZodString;
|
|
2465
|
-
file_id: z.ZodString;
|
|
2466
|
-
start_time: z.ZodNumber;
|
|
2467
|
-
end_time: z.ZodNumber;
|
|
2468
|
-
thumbnail_url: z.ZodString;
|
|
2469
|
-
metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
2470
|
-
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
2471
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2472
|
-
id: z.ZodString;
|
|
2473
|
-
file_id: z.ZodString;
|
|
2474
|
-
start_time: z.ZodNumber;
|
|
2475
|
-
end_time: z.ZodNumber;
|
|
2476
|
-
thumbnail_url: z.ZodString;
|
|
2477
|
-
metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
2478
|
-
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
2479
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2480
|
-
id: z.ZodString;
|
|
2481
|
-
file_id: z.ZodString;
|
|
2482
|
-
start_time: z.ZodNumber;
|
|
2483
|
-
end_time: z.ZodNumber;
|
|
2484
|
-
thumbnail_url: z.ZodString;
|
|
2485
|
-
metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
2486
|
-
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
2487
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
2486
|
+
response: z.ZodType<FileSegment, z.ZodTypeDef, FileSegment>;
|
|
2488
2487
|
errors: [{
|
|
2489
2488
|
status: 404;
|
|
2490
2489
|
description: string;
|
|
@@ -2532,31 +2531,7 @@ export declare const FilesApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
2532
2531
|
type: "Path";
|
|
2533
2532
|
schema: z.ZodString;
|
|
2534
2533
|
}];
|
|
2535
|
-
response: z.
|
|
2536
|
-
id: z.ZodString;
|
|
2537
|
-
file_id: z.ZodString;
|
|
2538
|
-
start_time: z.ZodNumber;
|
|
2539
|
-
end_time: z.ZodNumber;
|
|
2540
|
-
thumbnail_url: z.ZodString;
|
|
2541
|
-
metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
2542
|
-
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
2543
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2544
|
-
id: z.ZodString;
|
|
2545
|
-
file_id: z.ZodString;
|
|
2546
|
-
start_time: z.ZodNumber;
|
|
2547
|
-
end_time: z.ZodNumber;
|
|
2548
|
-
thumbnail_url: z.ZodString;
|
|
2549
|
-
metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
2550
|
-
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
2551
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2552
|
-
id: z.ZodString;
|
|
2553
|
-
file_id: z.ZodString;
|
|
2554
|
-
start_time: z.ZodNumber;
|
|
2555
|
-
end_time: z.ZodNumber;
|
|
2556
|
-
thumbnail_url: z.ZodString;
|
|
2557
|
-
metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
2558
|
-
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
2559
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
2534
|
+
response: z.ZodType<FileSegment, z.ZodTypeDef, FileSegment>;
|
|
2560
2535
|
errors: [{
|
|
2561
2536
|
status: 400;
|
|
2562
2537
|
description: string;
|
|
@@ -5267,6 +5242,34 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
5267
5242
|
segment_id: z.ZodOptional<z.ZodString>;
|
|
5268
5243
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
5269
5244
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
5245
|
+
}, {
|
|
5246
|
+
method: "get";
|
|
5247
|
+
path: "/files/:file_id/segments";
|
|
5248
|
+
alias: "listFileSegments";
|
|
5249
|
+
description: "List all segments for a specific file";
|
|
5250
|
+
requestFormat: "json";
|
|
5251
|
+
parameters: [{
|
|
5252
|
+
name: "file_id";
|
|
5253
|
+
type: "Path";
|
|
5254
|
+
schema: z.ZodString;
|
|
5255
|
+
}, {
|
|
5256
|
+
name: "start_time_after";
|
|
5257
|
+
type: "Query";
|
|
5258
|
+
schema: z.ZodOptional<z.ZodNumber>;
|
|
5259
|
+
}, {
|
|
5260
|
+
name: "end_time_before";
|
|
5261
|
+
type: "Query";
|
|
5262
|
+
schema: z.ZodOptional<z.ZodNumber>;
|
|
5263
|
+
}, {
|
|
5264
|
+
name: "limit";
|
|
5265
|
+
type: "Query";
|
|
5266
|
+
schema: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
5267
|
+
}, {
|
|
5268
|
+
name: "offset";
|
|
5269
|
+
type: "Query";
|
|
5270
|
+
schema: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
5271
|
+
}];
|
|
5272
|
+
response: z.ZodType<FileSegmentListResponse, z.ZodTypeDef, FileSegmentListResponse>;
|
|
5270
5273
|
}, {
|
|
5271
5274
|
method: "get";
|
|
5272
5275
|
path: "/files/:file_id/segments/:segment_id";
|
|
@@ -5282,31 +5285,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
5282
5285
|
type: "Path";
|
|
5283
5286
|
schema: z.ZodString;
|
|
5284
5287
|
}];
|
|
5285
|
-
response: z.
|
|
5286
|
-
id: z.ZodString;
|
|
5287
|
-
file_id: z.ZodString;
|
|
5288
|
-
start_time: z.ZodNumber;
|
|
5289
|
-
end_time: z.ZodNumber;
|
|
5290
|
-
thumbnail_url: z.ZodString;
|
|
5291
|
-
metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
5292
|
-
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
5293
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
5294
|
-
id: z.ZodString;
|
|
5295
|
-
file_id: z.ZodString;
|
|
5296
|
-
start_time: z.ZodNumber;
|
|
5297
|
-
end_time: z.ZodNumber;
|
|
5298
|
-
thumbnail_url: z.ZodString;
|
|
5299
|
-
metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
5300
|
-
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
5301
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
5302
|
-
id: z.ZodString;
|
|
5303
|
-
file_id: z.ZodString;
|
|
5304
|
-
start_time: z.ZodNumber;
|
|
5305
|
-
end_time: z.ZodNumber;
|
|
5306
|
-
thumbnail_url: z.ZodString;
|
|
5307
|
-
metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
5308
|
-
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
5309
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
5288
|
+
response: z.ZodType<FileSegment, z.ZodTypeDef, FileSegment>;
|
|
5310
5289
|
errors: [{
|
|
5311
5290
|
status: 404;
|
|
5312
5291
|
description: string;
|
|
@@ -5354,31 +5333,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
5354
5333
|
type: "Path";
|
|
5355
5334
|
schema: z.ZodString;
|
|
5356
5335
|
}];
|
|
5357
|
-
response: z.
|
|
5358
|
-
id: z.ZodString;
|
|
5359
|
-
file_id: z.ZodString;
|
|
5360
|
-
start_time: z.ZodNumber;
|
|
5361
|
-
end_time: z.ZodNumber;
|
|
5362
|
-
thumbnail_url: z.ZodString;
|
|
5363
|
-
metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
5364
|
-
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
5365
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
5366
|
-
id: z.ZodString;
|
|
5367
|
-
file_id: z.ZodString;
|
|
5368
|
-
start_time: z.ZodNumber;
|
|
5369
|
-
end_time: z.ZodNumber;
|
|
5370
|
-
thumbnail_url: z.ZodString;
|
|
5371
|
-
metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
5372
|
-
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
5373
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
5374
|
-
id: z.ZodString;
|
|
5375
|
-
file_id: z.ZodString;
|
|
5376
|
-
start_time: z.ZodNumber;
|
|
5377
|
-
end_time: z.ZodNumber;
|
|
5378
|
-
thumbnail_url: z.ZodString;
|
|
5379
|
-
metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
5380
|
-
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
5381
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
5336
|
+
response: z.ZodType<FileSegment, z.ZodTypeDef, FileSegment>;
|
|
5382
5337
|
errors: [{
|
|
5383
5338
|
status: 400;
|
|
5384
5339
|
description: string;
|
package/dist/generated/Files.js
CHANGED
|
@@ -64,6 +64,28 @@ const FrameExtractionList = zod_1.z
|
|
|
64
64
|
})
|
|
65
65
|
.strict()
|
|
66
66
|
.passthrough();
|
|
67
|
+
const FileSegment = zod_1.z
|
|
68
|
+
.object({
|
|
69
|
+
id: zod_1.z.string().uuid(),
|
|
70
|
+
file_id: zod_1.z.string().uuid(),
|
|
71
|
+
start_time: zod_1.z.number(),
|
|
72
|
+
end_time: zod_1.z.number(),
|
|
73
|
+
thumbnail_url: zod_1.z.string(),
|
|
74
|
+
metadata: zod_1.z.object({}).partial().strict().passthrough().optional(),
|
|
75
|
+
segmentation_id: zod_1.z.string().uuid().optional(),
|
|
76
|
+
})
|
|
77
|
+
.strict()
|
|
78
|
+
.passthrough();
|
|
79
|
+
const FileSegmentListResponse = zod_1.z
|
|
80
|
+
.object({
|
|
81
|
+
object: zod_1.z.literal('list'),
|
|
82
|
+
data: zod_1.z.array(FileSegment),
|
|
83
|
+
total: zod_1.z.number().int(),
|
|
84
|
+
limit: zod_1.z.number().int(),
|
|
85
|
+
offset: zod_1.z.number().int(),
|
|
86
|
+
})
|
|
87
|
+
.strict()
|
|
88
|
+
.passthrough();
|
|
67
89
|
const FileUpload = zod_1.z
|
|
68
90
|
.object({
|
|
69
91
|
file: zod_1.z.instanceof(File),
|
|
@@ -85,29 +107,18 @@ const FileUpdate = zod_1.z
|
|
|
85
107
|
.strict()
|
|
86
108
|
.passthrough();
|
|
87
109
|
const createFileSegmentation_Body = common_2.SegmentationConfig;
|
|
88
|
-
const FileSegment = zod_1.z
|
|
89
|
-
.object({
|
|
90
|
-
id: zod_1.z.string().uuid(),
|
|
91
|
-
file_id: zod_1.z.string().uuid(),
|
|
92
|
-
start_time: zod_1.z.number(),
|
|
93
|
-
end_time: zod_1.z.number(),
|
|
94
|
-
thumbnail_url: zod_1.z.string(),
|
|
95
|
-
metadata: zod_1.z.object({}).partial().strict().passthrough().optional(),
|
|
96
|
-
segmentation_id: zod_1.z.string().uuid().optional(),
|
|
97
|
-
})
|
|
98
|
-
.strict()
|
|
99
|
-
.passthrough();
|
|
100
110
|
const createFileFrameExtraction_Body = common_2.FrameExtractionConfig;
|
|
101
111
|
exports.schemas = {
|
|
102
112
|
FileList,
|
|
103
113
|
SegmentationListItem,
|
|
104
114
|
SegmentationList,
|
|
105
115
|
FrameExtractionList,
|
|
116
|
+
FileSegment,
|
|
117
|
+
FileSegmentListResponse,
|
|
106
118
|
FileUpload,
|
|
107
119
|
FileDelete,
|
|
108
120
|
FileUpdate,
|
|
109
121
|
createFileSegmentation_Body,
|
|
110
|
-
FileSegment,
|
|
111
122
|
createFileFrameExtraction_Body,
|
|
112
123
|
};
|
|
113
124
|
const endpoints = (0, core_1.makeApi)([
|
|
@@ -441,6 +452,41 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
441
452
|
],
|
|
442
453
|
response: common_2.ListVideoTagsResponse,
|
|
443
454
|
},
|
|
455
|
+
{
|
|
456
|
+
method: 'get',
|
|
457
|
+
path: '/files/:file_id/segments',
|
|
458
|
+
alias: 'listFileSegments',
|
|
459
|
+
description: `List all segments for a specific file`,
|
|
460
|
+
requestFormat: 'json',
|
|
461
|
+
parameters: [
|
|
462
|
+
{
|
|
463
|
+
name: 'file_id',
|
|
464
|
+
type: 'Path',
|
|
465
|
+
schema: zod_1.z.string().uuid(),
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
name: 'start_time_after',
|
|
469
|
+
type: 'Query',
|
|
470
|
+
schema: zod_1.z.number().gte(0).optional(),
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
name: 'end_time_before',
|
|
474
|
+
type: 'Query',
|
|
475
|
+
schema: zod_1.z.number().gte(0).optional(),
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
name: 'limit',
|
|
479
|
+
type: 'Query',
|
|
480
|
+
schema: zod_1.z.number().int().gte(1).lte(100).optional().default(50),
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
name: 'offset',
|
|
484
|
+
type: 'Query',
|
|
485
|
+
schema: zod_1.z.number().int().gte(0).optional().default(0),
|
|
486
|
+
},
|
|
487
|
+
],
|
|
488
|
+
response: FileSegmentListResponse,
|
|
489
|
+
},
|
|
444
490
|
{
|
|
445
491
|
method: 'get',
|
|
446
492
|
path: '/files/:file_id/segments/:segment_id',
|