@aviaryhq/cloudglue-js 0.4.11 → 0.4.13
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 +8 -8
- package/dist/generated/Chat.js +30 -30
- package/dist/generated/Collections.d.ts +25 -23
- package/dist/generated/Collections.js +266 -264
- package/dist/generated/Describe.d.ts +7 -7
- package/dist/generated/Describe.js +58 -58
- package/dist/generated/Extract.d.ts +6 -6
- package/dist/generated/Extract.js +52 -52
- package/dist/generated/Face_Detection.d.ts +6 -6
- package/dist/generated/Face_Detection.js +25 -25
- package/dist/generated/Face_Match.d.ts +6 -6
- package/dist/generated/Face_Match.js +26 -26
- package/dist/generated/Files.d.ts +1009 -10
- package/dist/generated/Files.js +247 -115
- package/dist/generated/Frames.d.ts +2 -2
- package/dist/generated/Frames.js +17 -17
- package/dist/generated/Search.d.ts +212 -19
- package/dist/generated/Search.js +143 -30
- package/dist/generated/Segmentations.d.ts +208 -2
- package/dist/generated/Segmentations.js +34 -29
- package/dist/generated/Segments.d.ts +13 -13
- package/dist/generated/Segments.js +49 -49
- package/dist/generated/Tags.d.ts +660 -0
- package/dist/generated/Tags.js +160 -0
- package/dist/generated/Transcribe.d.ts +7 -7
- package/dist/generated/Transcribe.js +46 -46
- package/dist/generated/Webhooks.d.ts +5 -5
- package/dist/generated/Webhooks.js +61 -61
- package/dist/generated/common.d.ts +391 -11
- package/dist/generated/common.js +63 -28
- package/dist/generated/index.d.ts +14 -13
- package/dist/generated/index.js +3 -1
- package/dist/src/api/chat-completion.api.d.ts +38 -0
- package/dist/src/api/chat-completion.api.js +15 -0
- package/dist/src/api/collections.api.d.ts +666 -0
- package/dist/src/api/collections.api.js +134 -0
- package/dist/src/api/describe.api.d.ts +153 -0
- package/dist/src/api/describe.api.js +57 -0
- package/dist/src/api/extract.api.d.ts +144 -0
- package/dist/src/api/extract.api.js +55 -0
- package/dist/src/api/face-detection.api.d.ts +77 -0
- package/dist/src/api/face-detection.api.js +41 -0
- package/dist/src/api/face-match.api.d.ts +94 -0
- package/dist/src/api/face-match.api.js +41 -0
- package/dist/src/api/files.api.d.ts +705 -0
- package/dist/src/api/files.api.js +146 -0
- package/dist/src/api/frame-extraction.api.d.ts +264 -0
- package/dist/src/api/frame-extraction.api.js +37 -0
- package/dist/src/api/search.api.d.ts +316 -0
- package/dist/src/api/search.api.js +22 -0
- package/dist/src/api/segmentations.api.d.ts +395 -0
- package/dist/src/api/segmentations.api.js +36 -0
- package/dist/src/api/segments.api.d.ts +141 -0
- package/dist/src/api/segments.api.js +40 -0
- package/dist/src/api/tags.api.d.ts +71 -0
- package/dist/src/api/tags.api.js +31 -0
- package/dist/src/api/transcribe.api.d.ts +150 -0
- package/dist/src/api/transcribe.api.js +65 -0
- package/dist/src/api/webhooks.api.d.ts +69 -0
- package/dist/src/api/webhooks.api.js +28 -0
- package/dist/src/client.d.ts +20 -2967
- package/dist/src/client.js +55 -643
- package/dist/src/error.d.ts +7 -0
- package/dist/src/error.js +14 -0
- package/dist/src/types.d.ts +20 -8
- package/package.json +2 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type ZodiosOptions } from
|
|
2
|
-
import { z } from
|
|
1
|
+
import { type ZodiosOptions } from '@zodios/core';
|
|
2
|
+
import { z } from 'zod';
|
|
3
3
|
export declare const SegmentationsApi: import("@zodios/core").ZodiosInstance<[{
|
|
4
4
|
method: "get";
|
|
5
5
|
path: "/segmentations/:segmentation_id";
|
|
@@ -86,6 +86,16 @@ export declare const SegmentationsApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
86
86
|
end_time: z.ZodOptional<z.ZodNumber>;
|
|
87
87
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
88
88
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
89
|
+
keyframe_config: z.ZodOptional<z.ZodObject<{
|
|
90
|
+
frames_per_segment: z.ZodNumber;
|
|
91
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
92
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
93
|
+
frames_per_segment: z.ZodNumber;
|
|
94
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
95
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
96
|
+
frames_per_segment: z.ZodNumber;
|
|
97
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
98
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
89
99
|
start_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
90
100
|
end_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
91
101
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -150,6 +160,16 @@ export declare const SegmentationsApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
150
160
|
end_time: z.ZodOptional<z.ZodNumber>;
|
|
151
161
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
152
162
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
163
|
+
keyframe_config: z.ZodOptional<z.ZodObject<{
|
|
164
|
+
frames_per_segment: z.ZodNumber;
|
|
165
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
166
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
167
|
+
frames_per_segment: z.ZodNumber;
|
|
168
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
169
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
170
|
+
frames_per_segment: z.ZodNumber;
|
|
171
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
172
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
153
173
|
start_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
154
174
|
end_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
155
175
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
@@ -214,6 +234,16 @@ export declare const SegmentationsApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
214
234
|
end_time: z.ZodOptional<z.ZodNumber>;
|
|
215
235
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
216
236
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
237
|
+
keyframe_config: z.ZodOptional<z.ZodObject<{
|
|
238
|
+
frames_per_segment: z.ZodNumber;
|
|
239
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
240
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
241
|
+
frames_per_segment: z.ZodNumber;
|
|
242
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
243
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
244
|
+
frames_per_segment: z.ZodNumber;
|
|
245
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
246
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
217
247
|
start_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
218
248
|
end_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
219
249
|
}, z.ZodTypeAny, "passthrough">>;
|
|
@@ -396,6 +426,16 @@ export declare const SegmentationsApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
396
426
|
end_time: z.ZodOptional<z.ZodNumber>;
|
|
397
427
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
398
428
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
429
|
+
keyframe_config: z.ZodOptional<z.ZodObject<{
|
|
430
|
+
frames_per_segment: z.ZodNumber;
|
|
431
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
432
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
433
|
+
frames_per_segment: z.ZodNumber;
|
|
434
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
435
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
436
|
+
frames_per_segment: z.ZodNumber;
|
|
437
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
438
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
399
439
|
start_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
400
440
|
end_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
401
441
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -460,6 +500,16 @@ export declare const SegmentationsApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
460
500
|
end_time: z.ZodOptional<z.ZodNumber>;
|
|
461
501
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
462
502
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
503
|
+
keyframe_config: z.ZodOptional<z.ZodObject<{
|
|
504
|
+
frames_per_segment: z.ZodNumber;
|
|
505
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
506
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
507
|
+
frames_per_segment: z.ZodNumber;
|
|
508
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
509
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
510
|
+
frames_per_segment: z.ZodNumber;
|
|
511
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
512
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
463
513
|
start_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
464
514
|
end_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
465
515
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
@@ -524,6 +574,16 @@ export declare const SegmentationsApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
524
574
|
end_time: z.ZodOptional<z.ZodNumber>;
|
|
525
575
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
526
576
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
577
|
+
keyframe_config: z.ZodOptional<z.ZodObject<{
|
|
578
|
+
frames_per_segment: z.ZodNumber;
|
|
579
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
580
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
581
|
+
frames_per_segment: z.ZodNumber;
|
|
582
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
583
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
584
|
+
frames_per_segment: z.ZodNumber;
|
|
585
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
586
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
527
587
|
start_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
528
588
|
end_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
529
589
|
}, z.ZodTypeAny, "passthrough">>;
|
|
@@ -706,6 +766,16 @@ export declare const SegmentationsApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
706
766
|
end_time: z.ZodOptional<z.ZodNumber>;
|
|
707
767
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
708
768
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
769
|
+
keyframe_config: z.ZodOptional<z.ZodObject<{
|
|
770
|
+
frames_per_segment: z.ZodNumber;
|
|
771
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
772
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
773
|
+
frames_per_segment: z.ZodNumber;
|
|
774
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
775
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
776
|
+
frames_per_segment: z.ZodNumber;
|
|
777
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
778
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
709
779
|
start_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
710
780
|
end_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
711
781
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -770,6 +840,16 @@ export declare const SegmentationsApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
770
840
|
end_time: z.ZodOptional<z.ZodNumber>;
|
|
771
841
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
772
842
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
843
|
+
keyframe_config: z.ZodOptional<z.ZodObject<{
|
|
844
|
+
frames_per_segment: z.ZodNumber;
|
|
845
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
846
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
847
|
+
frames_per_segment: z.ZodNumber;
|
|
848
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
849
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
850
|
+
frames_per_segment: z.ZodNumber;
|
|
851
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
852
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
773
853
|
start_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
774
854
|
end_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
775
855
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
@@ -834,6 +914,16 @@ export declare const SegmentationsApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
834
914
|
end_time: z.ZodOptional<z.ZodNumber>;
|
|
835
915
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
836
916
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
917
|
+
keyframe_config: z.ZodOptional<z.ZodObject<{
|
|
918
|
+
frames_per_segment: z.ZodNumber;
|
|
919
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
920
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
921
|
+
frames_per_segment: z.ZodNumber;
|
|
922
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
923
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
924
|
+
frames_per_segment: z.ZodNumber;
|
|
925
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
926
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
837
927
|
start_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
838
928
|
end_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
839
929
|
}, z.ZodTypeAny, "passthrough">>;
|
|
@@ -1032,6 +1122,10 @@ export declare const SegmentationsApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
1032
1122
|
name: "offset";
|
|
1033
1123
|
type: "Query";
|
|
1034
1124
|
schema: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1125
|
+
}, {
|
|
1126
|
+
name: "type";
|
|
1127
|
+
type: "Query";
|
|
1128
|
+
schema: z.ZodOptional<z.ZodString>;
|
|
1035
1129
|
}];
|
|
1036
1130
|
response: z.ZodObject<{
|
|
1037
1131
|
object: z.ZodLiteral<"list">;
|
|
@@ -1043,18 +1137,21 @@ export declare const SegmentationsApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
1043
1137
|
url: z.ZodString;
|
|
1044
1138
|
time: z.ZodNumber;
|
|
1045
1139
|
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
1140
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1046
1141
|
segment_id: z.ZodOptional<z.ZodString>;
|
|
1047
1142
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1048
1143
|
id: z.ZodString;
|
|
1049
1144
|
url: z.ZodString;
|
|
1050
1145
|
time: z.ZodNumber;
|
|
1051
1146
|
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
1147
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1052
1148
|
segment_id: z.ZodOptional<z.ZodString>;
|
|
1053
1149
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1054
1150
|
id: z.ZodString;
|
|
1055
1151
|
url: z.ZodString;
|
|
1056
1152
|
time: z.ZodNumber;
|
|
1057
1153
|
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
1154
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1058
1155
|
segment_id: z.ZodOptional<z.ZodString>;
|
|
1059
1156
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
1060
1157
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -1067,18 +1164,21 @@ export declare const SegmentationsApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
1067
1164
|
url: z.ZodString;
|
|
1068
1165
|
time: z.ZodNumber;
|
|
1069
1166
|
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
1167
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1070
1168
|
segment_id: z.ZodOptional<z.ZodString>;
|
|
1071
1169
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1072
1170
|
id: z.ZodString;
|
|
1073
1171
|
url: z.ZodString;
|
|
1074
1172
|
time: z.ZodNumber;
|
|
1075
1173
|
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
1174
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1076
1175
|
segment_id: z.ZodOptional<z.ZodString>;
|
|
1077
1176
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1078
1177
|
id: z.ZodString;
|
|
1079
1178
|
url: z.ZodString;
|
|
1080
1179
|
time: z.ZodNumber;
|
|
1081
1180
|
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
1181
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1082
1182
|
segment_id: z.ZodOptional<z.ZodString>;
|
|
1083
1183
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
1084
1184
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
@@ -1091,18 +1191,21 @@ export declare const SegmentationsApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
1091
1191
|
url: z.ZodString;
|
|
1092
1192
|
time: z.ZodNumber;
|
|
1093
1193
|
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
1194
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1094
1195
|
segment_id: z.ZodOptional<z.ZodString>;
|
|
1095
1196
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1096
1197
|
id: z.ZodString;
|
|
1097
1198
|
url: z.ZodString;
|
|
1098
1199
|
time: z.ZodNumber;
|
|
1099
1200
|
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
1201
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1100
1202
|
segment_id: z.ZodOptional<z.ZodString>;
|
|
1101
1203
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1102
1204
|
id: z.ZodString;
|
|
1103
1205
|
url: z.ZodString;
|
|
1104
1206
|
time: z.ZodNumber;
|
|
1105
1207
|
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
1208
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1106
1209
|
segment_id: z.ZodOptional<z.ZodString>;
|
|
1107
1210
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
1108
1211
|
}, z.ZodTypeAny, "passthrough">>;
|
|
@@ -1214,6 +1317,16 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
1214
1317
|
end_time: z.ZodOptional<z.ZodNumber>;
|
|
1215
1318
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
1216
1319
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
1320
|
+
keyframe_config: z.ZodOptional<z.ZodObject<{
|
|
1321
|
+
frames_per_segment: z.ZodNumber;
|
|
1322
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1323
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1324
|
+
frames_per_segment: z.ZodNumber;
|
|
1325
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1326
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1327
|
+
frames_per_segment: z.ZodNumber;
|
|
1328
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1329
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
1217
1330
|
start_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
1218
1331
|
end_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
1219
1332
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -1278,6 +1391,16 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
1278
1391
|
end_time: z.ZodOptional<z.ZodNumber>;
|
|
1279
1392
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
1280
1393
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
1394
|
+
keyframe_config: z.ZodOptional<z.ZodObject<{
|
|
1395
|
+
frames_per_segment: z.ZodNumber;
|
|
1396
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1397
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1398
|
+
frames_per_segment: z.ZodNumber;
|
|
1399
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1400
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1401
|
+
frames_per_segment: z.ZodNumber;
|
|
1402
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1403
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
1281
1404
|
start_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
1282
1405
|
end_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
1283
1406
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
@@ -1342,6 +1465,16 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
1342
1465
|
end_time: z.ZodOptional<z.ZodNumber>;
|
|
1343
1466
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
1344
1467
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
1468
|
+
keyframe_config: z.ZodOptional<z.ZodObject<{
|
|
1469
|
+
frames_per_segment: z.ZodNumber;
|
|
1470
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1471
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1472
|
+
frames_per_segment: z.ZodNumber;
|
|
1473
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1474
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1475
|
+
frames_per_segment: z.ZodNumber;
|
|
1476
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1477
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
1345
1478
|
start_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
1346
1479
|
end_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
1347
1480
|
}, z.ZodTypeAny, "passthrough">>;
|
|
@@ -1524,6 +1657,16 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
1524
1657
|
end_time: z.ZodOptional<z.ZodNumber>;
|
|
1525
1658
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
1526
1659
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
1660
|
+
keyframe_config: z.ZodOptional<z.ZodObject<{
|
|
1661
|
+
frames_per_segment: z.ZodNumber;
|
|
1662
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1663
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1664
|
+
frames_per_segment: z.ZodNumber;
|
|
1665
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1666
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1667
|
+
frames_per_segment: z.ZodNumber;
|
|
1668
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1669
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
1527
1670
|
start_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
1528
1671
|
end_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
1529
1672
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -1588,6 +1731,16 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
1588
1731
|
end_time: z.ZodOptional<z.ZodNumber>;
|
|
1589
1732
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
1590
1733
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
1734
|
+
keyframe_config: z.ZodOptional<z.ZodObject<{
|
|
1735
|
+
frames_per_segment: z.ZodNumber;
|
|
1736
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1737
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1738
|
+
frames_per_segment: z.ZodNumber;
|
|
1739
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1740
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1741
|
+
frames_per_segment: z.ZodNumber;
|
|
1742
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1743
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
1591
1744
|
start_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
1592
1745
|
end_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
1593
1746
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
@@ -1652,6 +1805,16 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
1652
1805
|
end_time: z.ZodOptional<z.ZodNumber>;
|
|
1653
1806
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
1654
1807
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
1808
|
+
keyframe_config: z.ZodOptional<z.ZodObject<{
|
|
1809
|
+
frames_per_segment: z.ZodNumber;
|
|
1810
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1811
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1812
|
+
frames_per_segment: z.ZodNumber;
|
|
1813
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1814
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1815
|
+
frames_per_segment: z.ZodNumber;
|
|
1816
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1817
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
1655
1818
|
start_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
1656
1819
|
end_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
1657
1820
|
}, z.ZodTypeAny, "passthrough">>;
|
|
@@ -1834,6 +1997,16 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
1834
1997
|
end_time: z.ZodOptional<z.ZodNumber>;
|
|
1835
1998
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
1836
1999
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
2000
|
+
keyframe_config: z.ZodOptional<z.ZodObject<{
|
|
2001
|
+
frames_per_segment: z.ZodNumber;
|
|
2002
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
2003
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2004
|
+
frames_per_segment: z.ZodNumber;
|
|
2005
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
2006
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2007
|
+
frames_per_segment: z.ZodNumber;
|
|
2008
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
2009
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
1837
2010
|
start_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
1838
2011
|
end_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
1839
2012
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -1898,6 +2071,16 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
1898
2071
|
end_time: z.ZodOptional<z.ZodNumber>;
|
|
1899
2072
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
1900
2073
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
2074
|
+
keyframe_config: z.ZodOptional<z.ZodObject<{
|
|
2075
|
+
frames_per_segment: z.ZodNumber;
|
|
2076
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
2077
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2078
|
+
frames_per_segment: z.ZodNumber;
|
|
2079
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
2080
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2081
|
+
frames_per_segment: z.ZodNumber;
|
|
2082
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
2083
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
1901
2084
|
start_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
1902
2085
|
end_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
1903
2086
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
@@ -1962,6 +2145,16 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
1962
2145
|
end_time: z.ZodOptional<z.ZodNumber>;
|
|
1963
2146
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
1964
2147
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
2148
|
+
keyframe_config: z.ZodOptional<z.ZodObject<{
|
|
2149
|
+
frames_per_segment: z.ZodNumber;
|
|
2150
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
2151
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2152
|
+
frames_per_segment: z.ZodNumber;
|
|
2153
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
2154
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2155
|
+
frames_per_segment: z.ZodNumber;
|
|
2156
|
+
max_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
2157
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
1965
2158
|
start_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
1966
2159
|
end_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
1967
2160
|
}, z.ZodTypeAny, "passthrough">>;
|
|
@@ -2160,6 +2353,10 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
2160
2353
|
name: "offset";
|
|
2161
2354
|
type: "Query";
|
|
2162
2355
|
schema: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
2356
|
+
}, {
|
|
2357
|
+
name: "type";
|
|
2358
|
+
type: "Query";
|
|
2359
|
+
schema: z.ZodOptional<z.ZodString>;
|
|
2163
2360
|
}];
|
|
2164
2361
|
response: z.ZodObject<{
|
|
2165
2362
|
object: z.ZodLiteral<"list">;
|
|
@@ -2171,18 +2368,21 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
2171
2368
|
url: z.ZodString;
|
|
2172
2369
|
time: z.ZodNumber;
|
|
2173
2370
|
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
2371
|
+
type: z.ZodOptional<z.ZodString>;
|
|
2174
2372
|
segment_id: z.ZodOptional<z.ZodString>;
|
|
2175
2373
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2176
2374
|
id: z.ZodString;
|
|
2177
2375
|
url: z.ZodString;
|
|
2178
2376
|
time: z.ZodNumber;
|
|
2179
2377
|
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
2378
|
+
type: z.ZodOptional<z.ZodString>;
|
|
2180
2379
|
segment_id: z.ZodOptional<z.ZodString>;
|
|
2181
2380
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2182
2381
|
id: z.ZodString;
|
|
2183
2382
|
url: z.ZodString;
|
|
2184
2383
|
time: z.ZodNumber;
|
|
2185
2384
|
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
2385
|
+
type: z.ZodOptional<z.ZodString>;
|
|
2186
2386
|
segment_id: z.ZodOptional<z.ZodString>;
|
|
2187
2387
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
2188
2388
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -2195,18 +2395,21 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
2195
2395
|
url: z.ZodString;
|
|
2196
2396
|
time: z.ZodNumber;
|
|
2197
2397
|
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
2398
|
+
type: z.ZodOptional<z.ZodString>;
|
|
2198
2399
|
segment_id: z.ZodOptional<z.ZodString>;
|
|
2199
2400
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2200
2401
|
id: z.ZodString;
|
|
2201
2402
|
url: z.ZodString;
|
|
2202
2403
|
time: z.ZodNumber;
|
|
2203
2404
|
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
2405
|
+
type: z.ZodOptional<z.ZodString>;
|
|
2204
2406
|
segment_id: z.ZodOptional<z.ZodString>;
|
|
2205
2407
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2206
2408
|
id: z.ZodString;
|
|
2207
2409
|
url: z.ZodString;
|
|
2208
2410
|
time: z.ZodNumber;
|
|
2209
2411
|
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
2412
|
+
type: z.ZodOptional<z.ZodString>;
|
|
2210
2413
|
segment_id: z.ZodOptional<z.ZodString>;
|
|
2211
2414
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
2212
2415
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
@@ -2219,18 +2422,21 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
2219
2422
|
url: z.ZodString;
|
|
2220
2423
|
time: z.ZodNumber;
|
|
2221
2424
|
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
2425
|
+
type: z.ZodOptional<z.ZodString>;
|
|
2222
2426
|
segment_id: z.ZodOptional<z.ZodString>;
|
|
2223
2427
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2224
2428
|
id: z.ZodString;
|
|
2225
2429
|
url: z.ZodString;
|
|
2226
2430
|
time: z.ZodNumber;
|
|
2227
2431
|
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
2432
|
+
type: z.ZodOptional<z.ZodString>;
|
|
2228
2433
|
segment_id: z.ZodOptional<z.ZodString>;
|
|
2229
2434
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2230
2435
|
id: z.ZodString;
|
|
2231
2436
|
url: z.ZodString;
|
|
2232
2437
|
time: z.ZodNumber;
|
|
2233
2438
|
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
2439
|
+
type: z.ZodOptional<z.ZodString>;
|
|
2234
2440
|
segment_id: z.ZodOptional<z.ZodString>;
|
|
2235
2441
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
2236
2442
|
}, z.ZodTypeAny, "passthrough">>;
|
|
@@ -8,25 +8,25 @@ const common_1 = require("./common");
|
|
|
8
8
|
const common_2 = require("./common");
|
|
9
9
|
const endpoints = (0, core_1.makeApi)([
|
|
10
10
|
{
|
|
11
|
-
method:
|
|
12
|
-
path:
|
|
13
|
-
alias:
|
|
11
|
+
method: 'get',
|
|
12
|
+
path: '/segmentations/:segmentation_id',
|
|
13
|
+
alias: 'getSegmentation',
|
|
14
14
|
description: `Retrieve details about a specific segmentation including its segments`,
|
|
15
|
-
requestFormat:
|
|
15
|
+
requestFormat: 'json',
|
|
16
16
|
parameters: [
|
|
17
17
|
{
|
|
18
|
-
name:
|
|
19
|
-
type:
|
|
18
|
+
name: 'segmentation_id',
|
|
19
|
+
type: 'Path',
|
|
20
20
|
schema: zod_1.z.string().uuid(),
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
|
-
name:
|
|
24
|
-
type:
|
|
23
|
+
name: 'limit',
|
|
24
|
+
type: 'Query',
|
|
25
25
|
schema: zod_1.z.number().int().gte(1).lte(100).optional().default(10),
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
|
-
name:
|
|
29
|
-
type:
|
|
28
|
+
name: 'offset',
|
|
29
|
+
type: 'Query',
|
|
30
30
|
schema: zod_1.z.number().int().gte(0).optional().default(0),
|
|
31
31
|
},
|
|
32
32
|
],
|
|
@@ -45,15 +45,15 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
45
45
|
],
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
|
-
method:
|
|
49
|
-
path:
|
|
50
|
-
alias:
|
|
48
|
+
method: 'delete',
|
|
49
|
+
path: '/segmentations/:segmentation_id',
|
|
50
|
+
alias: 'deleteSegmentation',
|
|
51
51
|
description: `Delete a specific segmentation`,
|
|
52
|
-
requestFormat:
|
|
52
|
+
requestFormat: 'json',
|
|
53
53
|
parameters: [
|
|
54
54
|
{
|
|
55
|
-
name:
|
|
56
|
-
type:
|
|
55
|
+
name: 'segmentation_id',
|
|
56
|
+
type: 'Path',
|
|
57
57
|
schema: zod_1.z.string().uuid(),
|
|
58
58
|
},
|
|
59
59
|
],
|
|
@@ -72,32 +72,37 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
72
72
|
],
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
|
-
method:
|
|
76
|
-
path:
|
|
77
|
-
alias:
|
|
75
|
+
method: 'get',
|
|
76
|
+
path: '/segmentations/:segmentation_id/thumbnails',
|
|
77
|
+
alias: 'getSegmentationThumbnails',
|
|
78
78
|
description: `Get all thumbnails for a segmentation`,
|
|
79
|
-
requestFormat:
|
|
79
|
+
requestFormat: 'json',
|
|
80
80
|
parameters: [
|
|
81
81
|
{
|
|
82
|
-
name:
|
|
83
|
-
type:
|
|
82
|
+
name: 'segmentation_id',
|
|
83
|
+
type: 'Path',
|
|
84
84
|
schema: zod_1.z.string().uuid(),
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
|
-
name:
|
|
88
|
-
type:
|
|
87
|
+
name: 'segment_ids',
|
|
88
|
+
type: 'Query',
|
|
89
89
|
schema: zod_1.z.string().optional(),
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
|
-
name:
|
|
93
|
-
type:
|
|
92
|
+
name: 'limit',
|
|
93
|
+
type: 'Query',
|
|
94
94
|
schema: zod_1.z.number().int().gte(1).lte(100).optional().default(50),
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
|
-
name:
|
|
98
|
-
type:
|
|
97
|
+
name: 'offset',
|
|
98
|
+
type: 'Query',
|
|
99
99
|
schema: zod_1.z.number().int().gte(0).optional().default(0),
|
|
100
100
|
},
|
|
101
|
+
{
|
|
102
|
+
name: 'type',
|
|
103
|
+
type: 'Query',
|
|
104
|
+
schema: zod_1.z.string().optional(),
|
|
105
|
+
},
|
|
101
106
|
],
|
|
102
107
|
response: common_2.ThumbnailList,
|
|
103
108
|
errors: [
|
|
@@ -114,7 +119,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
114
119
|
],
|
|
115
120
|
},
|
|
116
121
|
]);
|
|
117
|
-
exports.SegmentationsApi = new core_1.Zodios(
|
|
122
|
+
exports.SegmentationsApi = new core_1.Zodios('https://api.cloudglue.dev/v1', endpoints);
|
|
118
123
|
function createApiClient(baseUrl, options) {
|
|
119
124
|
return new core_1.Zodios(baseUrl, endpoints, options);
|
|
120
125
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { type ZodiosOptions } from
|
|
2
|
-
import { z } from
|
|
3
|
-
import { Shot } from
|
|
1
|
+
import { type ZodiosOptions } from '@zodios/core';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { Shot } from './common';
|
|
4
4
|
type Segments = {
|
|
5
5
|
job_id: string;
|
|
6
6
|
file_id: string;
|
|
7
|
-
object:
|
|
8
|
-
status:
|
|
9
|
-
criteria:
|
|
7
|
+
object: 'segments';
|
|
8
|
+
status: 'pending' | 'processing' | 'completed' | 'failed';
|
|
9
|
+
criteria: 'shot' | 'narrative';
|
|
10
10
|
created_at: number;
|
|
11
11
|
shot_config?: ShotConfig | undefined;
|
|
12
12
|
narrative_config?: NarrativeConfig | undefined;
|
|
@@ -17,18 +17,18 @@ type Segments = {
|
|
|
17
17
|
};
|
|
18
18
|
type NewSegments = {
|
|
19
19
|
url: string;
|
|
20
|
-
criteria:
|
|
20
|
+
criteria: 'shot' | 'narrative';
|
|
21
21
|
shot_config?: ShotConfig | undefined;
|
|
22
22
|
narrative_config?: NarrativeConfig | undefined;
|
|
23
23
|
};
|
|
24
24
|
type ShotConfig = Partial<{
|
|
25
|
-
detector:
|
|
25
|
+
detector: 'content' | 'adaptive';
|
|
26
26
|
max_duration_seconds: number;
|
|
27
27
|
min_duration_seconds: number;
|
|
28
28
|
}>;
|
|
29
29
|
type NarrativeConfig = Partial<{
|
|
30
30
|
prompt: string;
|
|
31
|
-
strategy:
|
|
31
|
+
strategy: 'comprehensive' | 'balanced';
|
|
32
32
|
number_of_chapters: number;
|
|
33
33
|
min_chapters: number;
|
|
34
34
|
max_chapters: number;
|
|
@@ -41,7 +41,7 @@ type Segment = {
|
|
|
41
41
|
shot_index?: number | undefined;
|
|
42
42
|
};
|
|
43
43
|
type SegmentsList = {
|
|
44
|
-
object:
|
|
44
|
+
object: 'list';
|
|
45
45
|
data: Array<SegmentsListItem>;
|
|
46
46
|
total: number;
|
|
47
47
|
limit: number;
|
|
@@ -50,9 +50,9 @@ type SegmentsList = {
|
|
|
50
50
|
type SegmentsListItem = {
|
|
51
51
|
job_id: string;
|
|
52
52
|
file_id: string;
|
|
53
|
-
object:
|
|
54
|
-
status:
|
|
55
|
-
criteria:
|
|
53
|
+
object: 'segments';
|
|
54
|
+
status: 'pending' | 'processing' | 'completed' | 'failed';
|
|
55
|
+
criteria: 'shot' | 'narrative';
|
|
56
56
|
created_at: number;
|
|
57
57
|
shot_config?: ShotConfig | undefined;
|
|
58
58
|
narrative_config?: NarrativeConfig | undefined;
|