@editframe/api 0.15.0-beta.9 → 0.16.0-beta.1

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.
@@ -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
 
@@ -41,14 +43,16 @@ assertTypesMatch<CreateRenderPayload, z.infer<typeof CreateRenderPayload>>(
41
43
 
42
44
  export interface CreateRenderResult {
43
45
  id: string;
44
- md5: string;
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 {
49
52
  id: string;
50
- md5: string;
53
+ md5: string | null;
51
54
  status: "complete" | "created" | "failed" | "pending" | "rendering" | string;
55
+ metadata: Record<string, string>;
52
56
  }
53
57
 
54
58
  export const createRender = async (