@editframe/vite-plugin 0.23.8-beta.0 → 0.25.0-beta.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.
- package/dist/api/src/resources/caption-file.d.ts +73 -0
- package/dist/api/src/resources/image-file.d.ts +111 -0
- package/dist/api/src/resources/isobmff-file.d.ts +68 -0
- package/dist/api/src/resources/isobmff-track.d.ts +761 -0
- package/dist/api/src/resources/process-isobmff.d.ts +12 -0
- package/dist/api/src/resources/renders.d.ts +422 -0
- package/dist/api/src/resources/transcriptions.d.ts +25 -0
- package/dist/api/src/resources/unprocessed-file.d.ts +41 -0
- package/dist/api/src/resources/url-token.d.ts +5 -0
- package/dist/api/src/utils/assertTypesMatch.d.ts +3 -0
- package/dist/assets/src/tasks/cacheImage.d.ts +1 -0
- package/dist/assets/src/tasks/findOrCreateCaptions.d.ts +2 -0
- package/dist/assets/src/tasks/generateTrack.d.ts +3 -0
- package/dist/assets/src/tasks/generateTrackFragmentIndex.d.ts +3 -0
- package/dist/forbidRelativePaths.js +4 -0
- package/dist/forbidRelativePaths.js.map +1 -0
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -0
- package/dist/sendTaskResult.js +5 -0
- package/dist/sendTaskResult.js.map +1 -0
- package/package.json +13 -17
- package/tsdown.config.ts +10 -0
- package/dist/forbidRelativePaths.d.ts +0 -2
- package/dist/index.d.ts +0 -9
- package/dist/index.vitest.d.ts +0 -9
- package/dist/sendTaskResult.d.ts +0 -3
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Client } from "../client.js";
|
|
2
|
+
import { ProgressIterator } from "../ProgressIterator.js";
|
|
3
|
+
export interface IsobmffProcessInfoResult {
|
|
4
|
+
id: string;
|
|
5
|
+
created_at: string;
|
|
6
|
+
completed_at: string | null;
|
|
7
|
+
failed_at: string | null;
|
|
8
|
+
isobmff_file_id: string | null;
|
|
9
|
+
unprocessed_file_id: string | null;
|
|
10
|
+
}
|
|
11
|
+
export declare const getIsobmffProcessProgress: (client: Client, id: string) => Promise<ProgressIterator>;
|
|
12
|
+
export declare const getIsobmffProcessInfo: (client: Client, id: string) => Promise<IsobmffProcessInfoResult>;
|
|
@@ -0,0 +1,422 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { Client } from "../client.js";
|
|
3
|
+
import { CompletionIterator } from "../ProgressIterator.js";
|
|
4
|
+
export declare const RenderOutputConfiguration: z.ZodDiscriminatedUnion<"container", [z.ZodObject<{
|
|
5
|
+
container: z.ZodLiteral<"mp4">;
|
|
6
|
+
video: z.ZodObject<{
|
|
7
|
+
codec: z.ZodLiteral<"h264">;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
codec: "h264";
|
|
10
|
+
}, {
|
|
11
|
+
codec: "h264";
|
|
12
|
+
}>;
|
|
13
|
+
audio: z.ZodObject<{
|
|
14
|
+
codec: z.ZodLiteral<"aac">;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
codec: "aac";
|
|
17
|
+
}, {
|
|
18
|
+
codec: "aac";
|
|
19
|
+
}>;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
audio: {
|
|
22
|
+
codec: "aac";
|
|
23
|
+
};
|
|
24
|
+
video: {
|
|
25
|
+
codec: "h264";
|
|
26
|
+
};
|
|
27
|
+
container: "mp4";
|
|
28
|
+
}, {
|
|
29
|
+
audio: {
|
|
30
|
+
codec: "aac";
|
|
31
|
+
};
|
|
32
|
+
video: {
|
|
33
|
+
codec: "h264";
|
|
34
|
+
};
|
|
35
|
+
container: "mp4";
|
|
36
|
+
}>, z.ZodObject<{
|
|
37
|
+
container: z.ZodLiteral<"jpeg">;
|
|
38
|
+
quality: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
|
40
|
+
container: "jpeg";
|
|
41
|
+
quality?: number | undefined;
|
|
42
|
+
}, {
|
|
43
|
+
container: "jpeg";
|
|
44
|
+
quality?: number | undefined;
|
|
45
|
+
}>, z.ZodObject<{
|
|
46
|
+
container: z.ZodLiteral<"png">;
|
|
47
|
+
compression: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
48
|
+
transparency: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
49
|
+
}, "strip", z.ZodTypeAny, {
|
|
50
|
+
container: "png";
|
|
51
|
+
compression?: number | undefined;
|
|
52
|
+
transparency?: boolean | undefined;
|
|
53
|
+
}, {
|
|
54
|
+
container: "png";
|
|
55
|
+
compression?: number | undefined;
|
|
56
|
+
transparency?: boolean | undefined;
|
|
57
|
+
}>, z.ZodObject<{
|
|
58
|
+
container: z.ZodLiteral<"webp">;
|
|
59
|
+
quality: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
60
|
+
compression: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
61
|
+
transparency: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
62
|
+
}, "strip", z.ZodTypeAny, {
|
|
63
|
+
container: "webp";
|
|
64
|
+
quality?: number | undefined;
|
|
65
|
+
compression?: number | undefined;
|
|
66
|
+
transparency?: boolean | undefined;
|
|
67
|
+
}, {
|
|
68
|
+
container: "webp";
|
|
69
|
+
quality?: number | undefined;
|
|
70
|
+
compression?: number | undefined;
|
|
71
|
+
transparency?: boolean | undefined;
|
|
72
|
+
}>]>;
|
|
73
|
+
export type RenderOutputConfiguration = z.infer<typeof RenderOutputConfiguration>;
|
|
74
|
+
export declare const CreateRenderPayload: z.ZodObject<{
|
|
75
|
+
md5: z.ZodOptional<z.ZodString>;
|
|
76
|
+
fps: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
77
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
78
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
79
|
+
work_slice_ms: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
80
|
+
html: z.ZodOptional<z.ZodString>;
|
|
81
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
82
|
+
duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
83
|
+
strategy: z.ZodOptional<z.ZodDefault<z.ZodEnum<["v1"]>>>;
|
|
84
|
+
output: z.ZodOptional<z.ZodDefault<z.ZodDiscriminatedUnion<"container", [z.ZodObject<{
|
|
85
|
+
container: z.ZodLiteral<"mp4">;
|
|
86
|
+
video: z.ZodObject<{
|
|
87
|
+
codec: z.ZodLiteral<"h264">;
|
|
88
|
+
}, "strip", z.ZodTypeAny, {
|
|
89
|
+
codec: "h264";
|
|
90
|
+
}, {
|
|
91
|
+
codec: "h264";
|
|
92
|
+
}>;
|
|
93
|
+
audio: z.ZodObject<{
|
|
94
|
+
codec: z.ZodLiteral<"aac">;
|
|
95
|
+
}, "strip", z.ZodTypeAny, {
|
|
96
|
+
codec: "aac";
|
|
97
|
+
}, {
|
|
98
|
+
codec: "aac";
|
|
99
|
+
}>;
|
|
100
|
+
}, "strip", z.ZodTypeAny, {
|
|
101
|
+
audio: {
|
|
102
|
+
codec: "aac";
|
|
103
|
+
};
|
|
104
|
+
video: {
|
|
105
|
+
codec: "h264";
|
|
106
|
+
};
|
|
107
|
+
container: "mp4";
|
|
108
|
+
}, {
|
|
109
|
+
audio: {
|
|
110
|
+
codec: "aac";
|
|
111
|
+
};
|
|
112
|
+
video: {
|
|
113
|
+
codec: "h264";
|
|
114
|
+
};
|
|
115
|
+
container: "mp4";
|
|
116
|
+
}>, z.ZodObject<{
|
|
117
|
+
container: z.ZodLiteral<"jpeg">;
|
|
118
|
+
quality: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
119
|
+
}, "strip", z.ZodTypeAny, {
|
|
120
|
+
container: "jpeg";
|
|
121
|
+
quality?: number | undefined;
|
|
122
|
+
}, {
|
|
123
|
+
container: "jpeg";
|
|
124
|
+
quality?: number | undefined;
|
|
125
|
+
}>, z.ZodObject<{
|
|
126
|
+
container: z.ZodLiteral<"png">;
|
|
127
|
+
compression: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
128
|
+
transparency: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
129
|
+
}, "strip", z.ZodTypeAny, {
|
|
130
|
+
container: "png";
|
|
131
|
+
compression?: number | undefined;
|
|
132
|
+
transparency?: boolean | undefined;
|
|
133
|
+
}, {
|
|
134
|
+
container: "png";
|
|
135
|
+
compression?: number | undefined;
|
|
136
|
+
transparency?: boolean | undefined;
|
|
137
|
+
}>, z.ZodObject<{
|
|
138
|
+
container: z.ZodLiteral<"webp">;
|
|
139
|
+
quality: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
140
|
+
compression: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
141
|
+
transparency: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
142
|
+
}, "strip", z.ZodTypeAny, {
|
|
143
|
+
container: "webp";
|
|
144
|
+
quality?: number | undefined;
|
|
145
|
+
compression?: number | undefined;
|
|
146
|
+
transparency?: boolean | undefined;
|
|
147
|
+
}, {
|
|
148
|
+
container: "webp";
|
|
149
|
+
quality?: number | undefined;
|
|
150
|
+
compression?: number | undefined;
|
|
151
|
+
transparency?: boolean | undefined;
|
|
152
|
+
}>]>>>;
|
|
153
|
+
}, "strip", z.ZodTypeAny, {
|
|
154
|
+
md5?: string | undefined;
|
|
155
|
+
height?: number | undefined;
|
|
156
|
+
width?: number | undefined;
|
|
157
|
+
duration_ms?: number | undefined;
|
|
158
|
+
fps?: number | undefined;
|
|
159
|
+
work_slice_ms?: number | undefined;
|
|
160
|
+
html?: string | undefined;
|
|
161
|
+
metadata?: Record<string, string> | undefined;
|
|
162
|
+
strategy?: "v1" | undefined;
|
|
163
|
+
output?: {
|
|
164
|
+
audio: {
|
|
165
|
+
codec: "aac";
|
|
166
|
+
};
|
|
167
|
+
video: {
|
|
168
|
+
codec: "h264";
|
|
169
|
+
};
|
|
170
|
+
container: "mp4";
|
|
171
|
+
} | {
|
|
172
|
+
container: "jpeg";
|
|
173
|
+
quality?: number | undefined;
|
|
174
|
+
} | {
|
|
175
|
+
container: "png";
|
|
176
|
+
compression?: number | undefined;
|
|
177
|
+
transparency?: boolean | undefined;
|
|
178
|
+
} | {
|
|
179
|
+
container: "webp";
|
|
180
|
+
quality?: number | undefined;
|
|
181
|
+
compression?: number | undefined;
|
|
182
|
+
transparency?: boolean | undefined;
|
|
183
|
+
} | undefined;
|
|
184
|
+
}, {
|
|
185
|
+
md5?: string | undefined;
|
|
186
|
+
height?: number | undefined;
|
|
187
|
+
width?: number | undefined;
|
|
188
|
+
duration_ms?: number | undefined;
|
|
189
|
+
fps?: number | undefined;
|
|
190
|
+
work_slice_ms?: number | undefined;
|
|
191
|
+
html?: string | undefined;
|
|
192
|
+
metadata?: Record<string, string> | undefined;
|
|
193
|
+
strategy?: "v1" | undefined;
|
|
194
|
+
output?: {
|
|
195
|
+
audio: {
|
|
196
|
+
codec: "aac";
|
|
197
|
+
};
|
|
198
|
+
video: {
|
|
199
|
+
codec: "h264";
|
|
200
|
+
};
|
|
201
|
+
container: "mp4";
|
|
202
|
+
} | {
|
|
203
|
+
container: "jpeg";
|
|
204
|
+
quality?: number | undefined;
|
|
205
|
+
} | {
|
|
206
|
+
container: "png";
|
|
207
|
+
compression?: number | undefined;
|
|
208
|
+
transparency?: boolean | undefined;
|
|
209
|
+
} | {
|
|
210
|
+
container: "webp";
|
|
211
|
+
quality?: number | undefined;
|
|
212
|
+
compression?: number | undefined;
|
|
213
|
+
transparency?: boolean | undefined;
|
|
214
|
+
} | undefined;
|
|
215
|
+
}>;
|
|
216
|
+
export declare const CreateRenderPayloadWithOutput: z.ZodObject<{
|
|
217
|
+
md5: z.ZodOptional<z.ZodString>;
|
|
218
|
+
fps: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
219
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
220
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
221
|
+
work_slice_ms: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
222
|
+
html: z.ZodOptional<z.ZodString>;
|
|
223
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
224
|
+
duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
225
|
+
strategy: z.ZodOptional<z.ZodDefault<z.ZodEnum<["v1"]>>>;
|
|
226
|
+
} & {
|
|
227
|
+
output: z.ZodDiscriminatedUnion<"container", [z.ZodObject<{
|
|
228
|
+
container: z.ZodLiteral<"mp4">;
|
|
229
|
+
video: z.ZodObject<{
|
|
230
|
+
codec: z.ZodLiteral<"h264">;
|
|
231
|
+
}, "strip", z.ZodTypeAny, {
|
|
232
|
+
codec: "h264";
|
|
233
|
+
}, {
|
|
234
|
+
codec: "h264";
|
|
235
|
+
}>;
|
|
236
|
+
audio: z.ZodObject<{
|
|
237
|
+
codec: z.ZodLiteral<"aac">;
|
|
238
|
+
}, "strip", z.ZodTypeAny, {
|
|
239
|
+
codec: "aac";
|
|
240
|
+
}, {
|
|
241
|
+
codec: "aac";
|
|
242
|
+
}>;
|
|
243
|
+
}, "strip", z.ZodTypeAny, {
|
|
244
|
+
audio: {
|
|
245
|
+
codec: "aac";
|
|
246
|
+
};
|
|
247
|
+
video: {
|
|
248
|
+
codec: "h264";
|
|
249
|
+
};
|
|
250
|
+
container: "mp4";
|
|
251
|
+
}, {
|
|
252
|
+
audio: {
|
|
253
|
+
codec: "aac";
|
|
254
|
+
};
|
|
255
|
+
video: {
|
|
256
|
+
codec: "h264";
|
|
257
|
+
};
|
|
258
|
+
container: "mp4";
|
|
259
|
+
}>, z.ZodObject<{
|
|
260
|
+
container: z.ZodLiteral<"jpeg">;
|
|
261
|
+
quality: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
262
|
+
}, "strip", z.ZodTypeAny, {
|
|
263
|
+
container: "jpeg";
|
|
264
|
+
quality?: number | undefined;
|
|
265
|
+
}, {
|
|
266
|
+
container: "jpeg";
|
|
267
|
+
quality?: number | undefined;
|
|
268
|
+
}>, z.ZodObject<{
|
|
269
|
+
container: z.ZodLiteral<"png">;
|
|
270
|
+
compression: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
271
|
+
transparency: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
272
|
+
}, "strip", z.ZodTypeAny, {
|
|
273
|
+
container: "png";
|
|
274
|
+
compression?: number | undefined;
|
|
275
|
+
transparency?: boolean | undefined;
|
|
276
|
+
}, {
|
|
277
|
+
container: "png";
|
|
278
|
+
compression?: number | undefined;
|
|
279
|
+
transparency?: boolean | undefined;
|
|
280
|
+
}>, z.ZodObject<{
|
|
281
|
+
container: z.ZodLiteral<"webp">;
|
|
282
|
+
quality: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
283
|
+
compression: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
284
|
+
transparency: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
285
|
+
}, "strip", z.ZodTypeAny, {
|
|
286
|
+
container: "webp";
|
|
287
|
+
quality?: number | undefined;
|
|
288
|
+
compression?: number | undefined;
|
|
289
|
+
transparency?: boolean | undefined;
|
|
290
|
+
}, {
|
|
291
|
+
container: "webp";
|
|
292
|
+
quality?: number | undefined;
|
|
293
|
+
compression?: number | undefined;
|
|
294
|
+
transparency?: boolean | undefined;
|
|
295
|
+
}>]>;
|
|
296
|
+
}, "strip", z.ZodTypeAny, {
|
|
297
|
+
output: {
|
|
298
|
+
audio: {
|
|
299
|
+
codec: "aac";
|
|
300
|
+
};
|
|
301
|
+
video: {
|
|
302
|
+
codec: "h264";
|
|
303
|
+
};
|
|
304
|
+
container: "mp4";
|
|
305
|
+
} | {
|
|
306
|
+
container: "jpeg";
|
|
307
|
+
quality?: number | undefined;
|
|
308
|
+
} | {
|
|
309
|
+
container: "png";
|
|
310
|
+
compression?: number | undefined;
|
|
311
|
+
transparency?: boolean | undefined;
|
|
312
|
+
} | {
|
|
313
|
+
container: "webp";
|
|
314
|
+
quality?: number | undefined;
|
|
315
|
+
compression?: number | undefined;
|
|
316
|
+
transparency?: boolean | undefined;
|
|
317
|
+
};
|
|
318
|
+
md5?: string | undefined;
|
|
319
|
+
height?: number | undefined;
|
|
320
|
+
width?: number | undefined;
|
|
321
|
+
duration_ms?: number | undefined;
|
|
322
|
+
fps?: number | undefined;
|
|
323
|
+
work_slice_ms?: number | undefined;
|
|
324
|
+
html?: string | undefined;
|
|
325
|
+
metadata?: Record<string, string> | undefined;
|
|
326
|
+
strategy?: "v1" | undefined;
|
|
327
|
+
}, {
|
|
328
|
+
output: {
|
|
329
|
+
audio: {
|
|
330
|
+
codec: "aac";
|
|
331
|
+
};
|
|
332
|
+
video: {
|
|
333
|
+
codec: "h264";
|
|
334
|
+
};
|
|
335
|
+
container: "mp4";
|
|
336
|
+
} | {
|
|
337
|
+
container: "jpeg";
|
|
338
|
+
quality?: number | undefined;
|
|
339
|
+
} | {
|
|
340
|
+
container: "png";
|
|
341
|
+
compression?: number | undefined;
|
|
342
|
+
transparency?: boolean | undefined;
|
|
343
|
+
} | {
|
|
344
|
+
container: "webp";
|
|
345
|
+
quality?: number | undefined;
|
|
346
|
+
compression?: number | undefined;
|
|
347
|
+
transparency?: boolean | undefined;
|
|
348
|
+
};
|
|
349
|
+
md5?: string | undefined;
|
|
350
|
+
height?: number | undefined;
|
|
351
|
+
width?: number | undefined;
|
|
352
|
+
duration_ms?: number | undefined;
|
|
353
|
+
fps?: number | undefined;
|
|
354
|
+
work_slice_ms?: number | undefined;
|
|
355
|
+
html?: string | undefined;
|
|
356
|
+
metadata?: Record<string, string> | undefined;
|
|
357
|
+
strategy?: "v1" | undefined;
|
|
358
|
+
}>;
|
|
359
|
+
export declare class OutputConfiguration {
|
|
360
|
+
readonly output: RenderOutputConfiguration;
|
|
361
|
+
static parse(input?: any): OutputConfiguration;
|
|
362
|
+
constructor(output: RenderOutputConfiguration);
|
|
363
|
+
get isStill(): boolean;
|
|
364
|
+
get isVideo(): boolean;
|
|
365
|
+
get fileExtension(): "mp4" | "jpeg" | "png" | "webp";
|
|
366
|
+
get contentType(): string;
|
|
367
|
+
get container(): "mp4" | "jpeg" | "png" | "webp";
|
|
368
|
+
get jpegConfig(): {
|
|
369
|
+
container: "jpeg";
|
|
370
|
+
quality?: number | undefined;
|
|
371
|
+
} | null;
|
|
372
|
+
get pngConfig(): {
|
|
373
|
+
container: "png";
|
|
374
|
+
compression?: number | undefined;
|
|
375
|
+
transparency?: boolean | undefined;
|
|
376
|
+
} | null;
|
|
377
|
+
get webpConfig(): {
|
|
378
|
+
container: "webp";
|
|
379
|
+
quality?: number | undefined;
|
|
380
|
+
compression?: number | undefined;
|
|
381
|
+
transparency?: boolean | undefined;
|
|
382
|
+
} | null;
|
|
383
|
+
get mp4Config(): {
|
|
384
|
+
audio: {
|
|
385
|
+
codec: "aac";
|
|
386
|
+
};
|
|
387
|
+
video: {
|
|
388
|
+
codec: "h264";
|
|
389
|
+
};
|
|
390
|
+
container: "mp4";
|
|
391
|
+
} | null;
|
|
392
|
+
}
|
|
393
|
+
export interface CreateRenderPayload {
|
|
394
|
+
md5?: string;
|
|
395
|
+
fps?: number;
|
|
396
|
+
width?: number;
|
|
397
|
+
height?: number;
|
|
398
|
+
work_slice_ms?: number;
|
|
399
|
+
html?: string;
|
|
400
|
+
duration_ms?: number;
|
|
401
|
+
metadata?: Record<string, string>;
|
|
402
|
+
strategy?: "v1";
|
|
403
|
+
output?: z.infer<typeof RenderOutputConfiguration>;
|
|
404
|
+
}
|
|
405
|
+
export interface CreateRenderResult {
|
|
406
|
+
id: string;
|
|
407
|
+
md5: string | null;
|
|
408
|
+
status: "complete" | "created" | "failed" | "pending" | "rendering" | string;
|
|
409
|
+
metadata: Record<string, string>;
|
|
410
|
+
}
|
|
411
|
+
export interface LookupRenderByMd5Result {
|
|
412
|
+
id: string;
|
|
413
|
+
md5: string | null;
|
|
414
|
+
status: "complete" | "created" | "failed" | "pending" | "rendering" | string;
|
|
415
|
+
metadata: Record<string, string>;
|
|
416
|
+
}
|
|
417
|
+
export declare const createRender: (client: Client, payload: CreateRenderPayload) => Promise<CreateRenderResult>;
|
|
418
|
+
export declare const uploadRender: (client: Client, renderId: string, fileStream: ReadableStream) => Promise<any>;
|
|
419
|
+
export declare const getRenderInfo: (client: Client, id: string) => Promise<LookupRenderByMd5Result>;
|
|
420
|
+
export declare const lookupRenderByMd5: (client: Client, md5: string) => Promise<LookupRenderByMd5Result | null>;
|
|
421
|
+
export declare const getRenderProgress: (client: Client, id: string) => Promise<CompletionIterator>;
|
|
422
|
+
export declare const downloadRender: (client: Client, id: string) => Promise<Response>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { Client } from "../client.js";
|
|
3
|
+
import { CompletionIterator } from "../ProgressIterator.js";
|
|
4
|
+
export declare const CreateTranscriptionPayload: z.ZodObject<{
|
|
5
|
+
file_id: z.ZodString;
|
|
6
|
+
track_id: z.ZodNumber;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
file_id: string;
|
|
9
|
+
track_id: number;
|
|
10
|
+
}, {
|
|
11
|
+
file_id: string;
|
|
12
|
+
track_id: number;
|
|
13
|
+
}>;
|
|
14
|
+
export type CreateTranscriptionPayload = z.infer<typeof CreateTranscriptionPayload>;
|
|
15
|
+
export interface CreateTranscriptionResult {
|
|
16
|
+
id: string;
|
|
17
|
+
status: "complete" | "created" | "failed" | "pending" | "transcribing";
|
|
18
|
+
}
|
|
19
|
+
export interface TranscriptionInfoResult {
|
|
20
|
+
id: string;
|
|
21
|
+
status: "complete" | "created" | "failed" | "pending" | "transcribing";
|
|
22
|
+
}
|
|
23
|
+
export declare const createTranscription: (client: Client, payload: CreateTranscriptionPayload) => Promise<CreateTranscriptionResult>;
|
|
24
|
+
export declare const getTranscriptionProgress: (client: Client, id: string) => Promise<CompletionIterator>;
|
|
25
|
+
export declare const getTranscriptionInfo: (client: Client, id: string) => Promise<TranscriptionInfoResult>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { Client } from "../client.js";
|
|
3
|
+
export declare const CreateUnprocessedFilePayload: z.ZodObject<{
|
|
4
|
+
md5: z.ZodString;
|
|
5
|
+
filename: z.ZodString;
|
|
6
|
+
byte_size: z.ZodNumber;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
md5: string;
|
|
9
|
+
filename: string;
|
|
10
|
+
byte_size: number;
|
|
11
|
+
}, {
|
|
12
|
+
md5: string;
|
|
13
|
+
filename: string;
|
|
14
|
+
byte_size: number;
|
|
15
|
+
}>;
|
|
16
|
+
export declare const UpdateUnprocessedFilePayload: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
17
|
+
export type CreateUnprocessedFilePayload = z.infer<typeof CreateUnprocessedFilePayload>;
|
|
18
|
+
export interface UnprocessedFile {
|
|
19
|
+
byte_size: number;
|
|
20
|
+
next_byte: number;
|
|
21
|
+
complete: boolean;
|
|
22
|
+
id: string;
|
|
23
|
+
md5: string;
|
|
24
|
+
}
|
|
25
|
+
export interface UnprocessedFileUploadDetails {
|
|
26
|
+
id: string;
|
|
27
|
+
byte_size: number;
|
|
28
|
+
}
|
|
29
|
+
export interface CreateUnprocessedFileResult extends UnprocessedFile {
|
|
30
|
+
}
|
|
31
|
+
export interface LookupUnprocessedFileByMd5Result extends UnprocessedFile {
|
|
32
|
+
}
|
|
33
|
+
export interface UpdateUnprocessedFileResult extends UnprocessedFile {
|
|
34
|
+
}
|
|
35
|
+
export interface ProcessIsobmffFileResult {
|
|
36
|
+
id: string;
|
|
37
|
+
}
|
|
38
|
+
export declare const createUnprocessedFile: (client: Client, payload: CreateUnprocessedFilePayload) => Promise<CreateUnprocessedFileResult>;
|
|
39
|
+
export declare const uploadUnprocessedReadableStream: (client: Client, uploadDetails: UnprocessedFileUploadDetails, fileStream: ReadableStream) => import("../uploadChunks.js").IteratorWithPromise<import("../uploadChunks.js").UploadChunkEvent>;
|
|
40
|
+
export declare const lookupUnprocessedFileByMd5: (client: Client, md5: string) => Promise<LookupUnprocessedFileByMd5Result | null>;
|
|
41
|
+
export declare const processIsobmffFile: (client: Client, id: string) => Promise<ProcessIsobmffFileResult>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const cacheImage: (cacheRoot: string, absolutePath: string) => Promise<import("../idempotentTask.js").TaskResult>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const generateTrackFromPath: (absolutePath: string, trackId: number) => Promise<import("stream").PassThrough>;
|
|
2
|
+
export declare const generateTrackTask: (rootDir: string, absolutePath: string, trackId: number) => Promise<import("../idempotentTask.js").TaskResult>;
|
|
3
|
+
export declare const generateTrack: (cacheRoot: string, absolutePath: string, url: string) => Promise<import("../idempotentTask.js").TaskResult>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { TrackFragmentIndex } from "../Probe.js";
|
|
2
|
+
export declare const generateTrackFragmentIndexFromPath: (absolutePath: string) => Promise<Record<number, TrackFragmentIndex>>;
|
|
3
|
+
export declare const generateTrackFragmentIndex: (cacheRoot: string, absolutePath: string) => Promise<import("../idempotentTask.js").TaskResult>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forbidRelativePaths.js","names":[],"sources":["../src/forbidRelativePaths.ts"],"sourcesContent":["import type { IncomingMessage } from \"connect\";\n\nexport const forbidRelativePaths = (req: IncomingMessage) => {\n if (req.url?.includes(\"..\")) {\n throw new Error(\"Relative paths are forbidden\");\n }\n};\n"],"mappings":";AAEA,MAAa,uBAAuB,QAAyB;AAC3D,KAAI,IAAI,KAAK,SAAS,KAAK,CACzB,OAAM,IAAI,MAAM,+BAA+B"}
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,9 @@ import path, { join } from "node:path";
|
|
|
5
5
|
import { Client, createURLToken } from "@editframe/api";
|
|
6
6
|
import { cacheImage, findOrCreateCaptions, generateTrack, generateTrackFragmentIndex, md5FilePath } from "@editframe/assets";
|
|
7
7
|
import debug from "debug";
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
//#region src/index.ts
|
|
10
|
+
const getEditframeClient = () => {
|
|
9
11
|
const token = process.env.EF_TOKEN;
|
|
10
12
|
const efHost = process.env.EF_HOST;
|
|
11
13
|
if (!token) throw new Error("EF_TOKEN environment variable must be set");
|
|
@@ -115,4 +117,7 @@ const vitePluginEditframe = (options) => {
|
|
|
115
117
|
}
|
|
116
118
|
};
|
|
117
119
|
};
|
|
120
|
+
|
|
121
|
+
//#endregion
|
|
118
122
|
export { vitePluginEditframe };
|
|
123
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["import { rm } from \"node:fs/promises\";\nimport path, { join } from \"node:path\";\nimport { Client, createURLToken } from \"@editframe/api\";\nimport {\n cacheImage,\n findOrCreateCaptions,\n generateTrack,\n generateTrackFragmentIndex,\n md5FilePath,\n} from \"@editframe/assets\";\nimport debug from \"debug\";\nimport type { Plugin } from \"vite\";\n\nimport { forbidRelativePaths } from \"./forbidRelativePaths.js\";\nimport { sendTaskResult } from \"./sendTaskResult.js\";\n\ninterface VitePluginEditframeOptions {\n root: string;\n cacheRoot: string;\n}\n\n// Create editframe client instance\nconst getEditframeClient = () => {\n const token = process.env.EF_TOKEN;\n const efHost = process.env.EF_HOST;\n if (!token) {\n throw new Error(\"EF_TOKEN environment variable must be set\");\n }\n return new Client(token, efHost);\n};\n\nexport const vitePluginEditframe = (options: VitePluginEditframeOptions) => {\n return {\n name: \"vite-plugin-editframe\",\n\n configureServer(server) {\n server.middlewares.use(async (req, res, next) => {\n const log = debug(\"ef:vite-plugin\");\n // Forbid relative paths in any request\n if (req.url?.startsWith(\"/@ef\")) {\n forbidRelativePaths(req);\n } else {\n return next();\n }\n\n log(`Handling ${req.url}`);\n\n const requestPath = req.url.replace(/^\\/@ef-[^/]+\\//, \"\");\n const assetPath = requestPath.replace(/\\?.*$/, \"\");\n\n const absolutePath = assetPath.startsWith(\"http\")\n ? assetPath\n : path.join(options.root, assetPath).replace(\"dist/\", \"src/\");\n\n options.cacheRoot = options.cacheRoot.replace(\"dist/\", \"src/\");\n\n const efPrefix = req.url.split(\"/\")[1];\n\n switch (efPrefix) {\n case \"@ef-clear-cache\": {\n if (req.method !== \"DELETE\") {\n res.writeHead(405, { Allow: \"DELETE\" });\n res.end();\n break;\n }\n log(`Clearing cache for ${options.cacheRoot}`);\n await rm(join(options.cacheRoot, \".cache\"), {\n recursive: true,\n force: true,\n });\n res.writeHead(200, { \"Content-Type\": \"text/plain\" });\n res.end(\"Cache cleared\");\n break;\n }\n case \"@ef-asset\": {\n if (req.method !== \"HEAD\") {\n res.writeHead(405, { Allow: \"HEAD\" });\n res.end();\n }\n md5FilePath(absolutePath)\n .then((md5) => {\n res.writeHead(200, {\n etag: md5,\n });\n res.end();\n })\n .catch(next);\n break;\n }\n case \"@ef-track-fragment-index\": {\n log(`Serving track fragment index for ${absolutePath}`);\n generateTrackFragmentIndex(options.cacheRoot, absolutePath)\n .then((taskResult) => sendTaskResult(req, res, taskResult))\n .catch(next);\n break;\n }\n case \"@ef-track\": {\n log(`Serving track for ${absolutePath}`);\n generateTrack(options.cacheRoot, absolutePath, req.url)\n .then((taskResult) => sendTaskResult(req, res, taskResult))\n .catch(next);\n break;\n }\n case \"@ef-captions\":\n log(`Serving captions for ${absolutePath}`);\n findOrCreateCaptions(options.cacheRoot, absolutePath)\n .then((taskResult) => sendTaskResult(req, res, taskResult))\n .catch(next);\n break;\n case \"@ef-image\":\n log(`Serving image file ${absolutePath}`);\n cacheImage(options.cacheRoot, absolutePath)\n .then((taskResult) => sendTaskResult(req, res, taskResult))\n .catch(next);\n break;\n case \"@ef-sign-url\": {\n if (req.method !== \"POST\") {\n res.writeHead(405, { Allow: \"POST\" });\n res.end();\n break;\n }\n\n log(\"Signing URL token\");\n\n // Parse request body\n let body = \"\";\n req.on(\"data\", (chunk) => {\n body += chunk.toString();\n });\n\n req.on(\"end\", async () => {\n try {\n const payload = JSON.parse(body);\n log(\"Token signing request payload:\", payload);\n\n // Handle both formats: { url } and { url, params }\n const { url, params } = payload;\n if (!url) {\n res.writeHead(400, { \"Content-Type\": \"application/json\" });\n res.end(JSON.stringify({ error: \"URL is required\" }));\n return;\n }\n\n const client = getEditframeClient();\n\n // createURLToken expects just a string URL\n // For transcode URLs with params, we need to reconstruct the full URL\n let fullUrl = url;\n if (params) {\n const urlObj = new URL(url);\n // Add params as query parameters\n Object.entries(params).forEach(([key, value]) => {\n urlObj.searchParams.set(key, String(value));\n });\n fullUrl = urlObj.toString();\n }\n\n log(\"Creating token for full URL:\", fullUrl);\n const token = await createURLToken(client, fullUrl);\n\n res.writeHead(200, { \"Content-Type\": \"application/json\" });\n res.end(JSON.stringify({ token }));\n } catch (error) {\n log(`Error signing URL token: ${error}`);\n res.writeHead(500, { \"Content-Type\": \"application/json\" });\n res.end(JSON.stringify({ error: \"Failed to sign URL token\" }));\n }\n });\n\n break;\n }\n default:\n log(`Unknown asset type ${efPrefix}`);\n break;\n }\n });\n },\n } satisfies Plugin;\n};\n"],"mappings":"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"}
|
package/dist/sendTaskResult.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import debug from "debug";
|
|
2
2
|
import { createReadStream, statSync } from "node:fs";
|
|
3
3
|
import mime from "mime";
|
|
4
|
+
|
|
5
|
+
//#region src/sendTaskResult.ts
|
|
4
6
|
const sendTaskResult = (req, res, taskResult) => {
|
|
5
7
|
const { cachePath, md5Sum } = taskResult;
|
|
6
8
|
const filePath = cachePath;
|
|
@@ -48,4 +50,7 @@ const sendTaskResult = (req, res, taskResult) => {
|
|
|
48
50
|
console.error(error);
|
|
49
51
|
}
|
|
50
52
|
};
|
|
53
|
+
|
|
54
|
+
//#endregion
|
|
51
55
|
export { sendTaskResult };
|
|
56
|
+
//# sourceMappingURL=sendTaskResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendTaskResult.js","names":[],"sources":["../src/sendTaskResult.ts"],"sourcesContent":["import { createReadStream, statSync } from \"node:fs\";\nimport type { IncomingMessage, ServerResponse } from \"node:http\";\nimport type { TaskResult } from \"@editframe/assets\";\nimport debug from \"debug\";\nimport mime from \"mime\";\n\nexport const sendTaskResult = (\n req: IncomingMessage,\n res: ServerResponse<IncomingMessage>,\n taskResult: TaskResult,\n) => {\n const { cachePath, md5Sum } = taskResult;\n const filePath = cachePath;\n const headers = {\n etag: md5Sum,\n };\n const log = debug(\"ef:sendfile\");\n try {\n log(`Sending file ${filePath}`);\n const stats = statSync(filePath);\n\n if (req.headers.range) {\n const [x, y] = req.headers.range.replace(\"bytes=\", \"\").split(\"-\");\n let end = Number.parseInt(y ?? \"0\", 10) || stats.size - 1;\n const start = Number.parseInt(x ?? \"0\", 10) || 0;\n\n if (end >= stats.size) {\n end = stats.size - 1;\n }\n\n if (start >= stats.size) {\n log(\"Range start is greater than file size\");\n res.setHeader(\"Content-Range\", `bytes */${stats.size}`);\n res.statusCode = 416;\n return res.end();\n }\n\n res.writeHead(206, {\n ...headers,\n \"Content-Type\": mime.getType(filePath) || \"text/plain\",\n \"Cache-Control\": \"max-age=3600\",\n \"Content-Range\": `bytes ${start}-${end}/${stats.size}`,\n \"Content-Length\": end - start + 1,\n \"Accept-Ranges\": \"bytes\",\n });\n log(`Sending ${filePath} range ${start}-${end}/${stats.size}`);\n const readStream = createReadStream(filePath, { start, end });\n readStream.pipe(res);\n } else {\n res.writeHead(200, {\n ...headers,\n \"Content-Type\": mime.getType(filePath) || \"text/plain\",\n \"Cache-Control\": \"max-age=3600\",\n \"Content-Length\": stats.size,\n });\n log(`Sending ${filePath}`);\n const readStream = createReadStream(filePath);\n readStream.pipe(res);\n }\n } catch (error) {\n log(\"Error sending file\", error);\n console.error(error);\n }\n};\n"],"mappings":";;;;;AAMA,MAAa,kBACX,KACA,KACA,eACG;CACH,MAAM,EAAE,WAAW,WAAW;CAC9B,MAAM,WAAW;CACjB,MAAM,UAAU,EACd,MAAM,QACP;CACD,MAAM,MAAM,MAAM,cAAc;AAChC,KAAI;AACF,MAAI,gBAAgB,WAAW;EAC/B,MAAM,QAAQ,SAAS,SAAS;AAEhC,MAAI,IAAI,QAAQ,OAAO;GACrB,MAAM,CAAC,GAAG,KAAK,IAAI,QAAQ,MAAM,QAAQ,UAAU,GAAG,CAAC,MAAM,IAAI;GACjE,IAAI,MAAM,OAAO,SAAS,KAAK,KAAK,GAAG,IAAI,MAAM,OAAO;GACxD,MAAM,QAAQ,OAAO,SAAS,KAAK,KAAK,GAAG,IAAI;AAE/C,OAAI,OAAO,MAAM,KACf,OAAM,MAAM,OAAO;AAGrB,OAAI,SAAS,MAAM,MAAM;AACvB,QAAI,wCAAwC;AAC5C,QAAI,UAAU,iBAAiB,WAAW,MAAM,OAAO;AACvD,QAAI,aAAa;AACjB,WAAO,IAAI,KAAK;;AAGlB,OAAI,UAAU,KAAK;IACjB,GAAG;IACH,gBAAgB,KAAK,QAAQ,SAAS,IAAI;IAC1C,iBAAiB;IACjB,iBAAiB,SAAS,MAAM,GAAG,IAAI,GAAG,MAAM;IAChD,kBAAkB,MAAM,QAAQ;IAChC,iBAAiB;IAClB,CAAC;AACF,OAAI,WAAW,SAAS,SAAS,MAAM,GAAG,IAAI,GAAG,MAAM,OAAO;AAE9D,GADmB,iBAAiB,UAAU;IAAE;IAAO;IAAK,CAAC,CAClD,KAAK,IAAI;SACf;AACL,OAAI,UAAU,KAAK;IACjB,GAAG;IACH,gBAAgB,KAAK,QAAQ,SAAS,IAAI;IAC1C,iBAAiB;IACjB,kBAAkB,MAAM;IACzB,CAAC;AACF,OAAI,WAAW,WAAW;AAE1B,GADmB,iBAAiB,SAAS,CAClC,KAAK,IAAI;;UAEf,OAAO;AACd,MAAI,sBAAsB,MAAM;AAChC,UAAQ,MAAM,MAAM"}
|
package/package.json
CHANGED
|
@@ -1,37 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@editframe/vite-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.25.0-beta.0",
|
|
4
4
|
"description": "Editframe vite plugin",
|
|
5
5
|
"exports": {
|
|
6
|
-
".":
|
|
7
|
-
|
|
8
|
-
"types": "./dist/index.d.ts",
|
|
9
|
-
"default": "./dist/index.js"
|
|
10
|
-
}
|
|
11
|
-
}
|
|
6
|
+
".": "./dist/index.js",
|
|
7
|
+
"./package.json": "./package.json"
|
|
12
8
|
},
|
|
13
9
|
"scripts": {
|
|
14
10
|
"typecheck": "tsc --noEmit --emitDeclarationOnly false",
|
|
15
|
-
"build": "
|
|
16
|
-
"build:watch": "
|
|
11
|
+
"build": "tsdown && tsc --emitDeclarationOnly --outDir dist",
|
|
12
|
+
"build:watch": "tsdown --watch"
|
|
17
13
|
},
|
|
18
14
|
"type": "module",
|
|
19
15
|
"author": "",
|
|
20
16
|
"license": "UNLICENSED",
|
|
21
17
|
"dependencies": {
|
|
22
|
-
"@editframe/api": "0.
|
|
23
|
-
"@editframe/assets": "0.
|
|
18
|
+
"@editframe/api": "0.25.0-beta.0",
|
|
19
|
+
"@editframe/assets": "0.25.0-beta.0",
|
|
24
20
|
"connect": "^3.7.0",
|
|
25
21
|
"debug": "^4.3.5",
|
|
26
22
|
"mime": "^4.0.3",
|
|
27
|
-
"
|
|
28
|
-
"rolldown-vite": "^7.1.15"
|
|
23
|
+
"vite": "npm:rolldown-vite@^7.1.15"
|
|
29
24
|
},
|
|
30
25
|
"devDependencies": {
|
|
26
|
+
"@types/connect": "^3.4.38",
|
|
31
27
|
"@types/dom-webcodecs": "^0.1.11",
|
|
32
28
|
"@types/node": "^20.14.13",
|
|
33
|
-
"typescript": "^5.5.4"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
29
|
+
"typescript": "^5.5.4"
|
|
30
|
+
},
|
|
31
|
+
"main": "./dist/index.js",
|
|
32
|
+
"module": "./dist/index.js"
|
|
37
33
|
}
|