@editframe/api 0.15.0-beta.15 → 0.15.0-beta.18
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.
|
@@ -8,6 +8,7 @@ export declare const CreateRenderPayload: z.ZodObject<{
|
|
|
8
8
|
height: z.ZodOptional<z.ZodNumber>;
|
|
9
9
|
work_slice_ms: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
10
10
|
html: z.ZodOptional<z.ZodString>;
|
|
11
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
11
12
|
duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
12
13
|
strategy: z.ZodOptional<z.ZodDefault<z.ZodEnum<["v1"]>>>;
|
|
13
14
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -19,6 +20,7 @@ export declare const CreateRenderPayload: z.ZodObject<{
|
|
|
19
20
|
fps?: number | undefined;
|
|
20
21
|
work_slice_ms?: number | undefined;
|
|
21
22
|
html?: string | undefined;
|
|
23
|
+
metadata?: Record<string, string> | undefined;
|
|
22
24
|
}, {
|
|
23
25
|
width?: number | undefined;
|
|
24
26
|
height?: number | undefined;
|
|
@@ -28,6 +30,7 @@ export declare const CreateRenderPayload: z.ZodObject<{
|
|
|
28
30
|
fps?: number | undefined;
|
|
29
31
|
work_slice_ms?: number | undefined;
|
|
30
32
|
html?: string | undefined;
|
|
33
|
+
metadata?: Record<string, string> | undefined;
|
|
31
34
|
}>;
|
|
32
35
|
export interface CreateRenderPayload {
|
|
33
36
|
md5?: string;
|
|
@@ -37,12 +40,14 @@ export interface CreateRenderPayload {
|
|
|
37
40
|
work_slice_ms?: number;
|
|
38
41
|
html?: string;
|
|
39
42
|
duration_ms?: number;
|
|
43
|
+
metadata?: Record<string, string>;
|
|
40
44
|
strategy?: "v1";
|
|
41
45
|
}
|
|
42
46
|
export interface CreateRenderResult {
|
|
43
47
|
id: string;
|
|
44
48
|
md5: string | null;
|
|
45
49
|
status: "complete" | "created" | "failed" | "pending" | "rendering" | string;
|
|
50
|
+
metadata: Record<string, string>;
|
|
46
51
|
}
|
|
47
52
|
export interface LookupRenderByMd5Result {
|
|
48
53
|
id: string;
|
|
@@ -9,6 +9,7 @@ const CreateRenderPayload = z.object({
|
|
|
9
9
|
height: z.number().int().min(2).optional(),
|
|
10
10
|
work_slice_ms: z.number().int().min(1e3).max(1e4).default(4e3).optional(),
|
|
11
11
|
html: z.string().optional(),
|
|
12
|
+
metadata: z.record(z.string(), z.string()).optional(),
|
|
12
13
|
duration_ms: z.number().int().optional(),
|
|
13
14
|
strategy: z.enum(["v1"]).default("v1").optional()
|
|
14
15
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@editframe/api",
|
|
3
|
-
"version": "0.15.0-beta.
|
|
3
|
+
"version": "0.15.0-beta.18",
|
|
4
4
|
"description": "API functions for EditFrame",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"vite-plugin-dts": "^4.0.3"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@editframe/assets": "0.15.0-beta.
|
|
47
|
+
"@editframe/assets": "0.15.0-beta.18",
|
|
48
48
|
"@vitejs/plugin-react": "^4.3.4",
|
|
49
49
|
"vite-tsconfig-paths": "^4.3.2",
|
|
50
50
|
"vite": "^5.4.11",
|
package/src/resources/renders.ts
CHANGED
|
@@ -20,6 +20,7 @@ export const CreateRenderPayload = z.object({
|
|
|
20
20
|
.default(4_000)
|
|
21
21
|
.optional(),
|
|
22
22
|
html: z.string().optional(),
|
|
23
|
+
metadata: z.record(z.string(), z.string()).optional(),
|
|
23
24
|
duration_ms: z.number().int().optional(),
|
|
24
25
|
strategy: z.enum(["v1"]).default("v1").optional(),
|
|
25
26
|
});
|
|
@@ -32,6 +33,7 @@ export interface CreateRenderPayload {
|
|
|
32
33
|
work_slice_ms?: number;
|
|
33
34
|
html?: string;
|
|
34
35
|
duration_ms?: number;
|
|
36
|
+
metadata?: Record<string, string>;
|
|
35
37
|
strategy?: "v1";
|
|
36
38
|
}
|
|
37
39
|
|
|
@@ -43,6 +45,7 @@ export interface CreateRenderResult {
|
|
|
43
45
|
id: string;
|
|
44
46
|
md5: string | null;
|
|
45
47
|
status: "complete" | "created" | "failed" | "pending" | "rendering" | string;
|
|
48
|
+
metadata: Record<string, string>;
|
|
46
49
|
}
|
|
47
50
|
|
|
48
51
|
export interface LookupRenderByMd5Result {
|