@cueframe/kernel 0.1.2 → 0.1.4

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.
Files changed (126) hide show
  1. package/dist/_members/authoring/agent/errors.d.ts +8 -0
  2. package/dist/_members/authoring/index.d.ts +1 -1
  3. package/dist/_members/authoring/motion/materializeMotionPresetOps.d.ts +4 -0
  4. package/dist/_members/authoring/prompts/index.d.ts +0 -1
  5. package/dist/_members/authoring/types.d.ts +1 -1
  6. package/dist/_members/cloud-import/CloudImportService.d.ts +3 -4
  7. package/dist/_members/cloud-import/ImportProvider.d.ts +3 -7
  8. package/dist/_members/cloud-import/cloudConfig.d.ts +0 -6
  9. package/dist/_members/cloud-import/index.d.ts +2 -4
  10. package/dist/_members/composition/graphics-plan/schemas.d.ts +20 -20
  11. package/dist/_members/composition/primitive-catalog/projection.d.ts +2 -1
  12. package/dist/_members/composition/projection/behind-readiness.d.ts +4 -2
  13. package/dist/_members/composition/validators/brandKit.d.ts +54 -94
  14. package/dist/_members/composition/validators/composePlan.d.ts +52 -52
  15. package/dist/_members/composition/validators/composition.d.ts +213 -253
  16. package/dist/_members/composition/validators/font.d.ts +2 -2
  17. package/dist/_members/composition/validators/index.d.ts +1 -0
  18. package/dist/_members/composition/validators/opaqueId.d.ts +13 -0
  19. package/dist/_members/composition/validators/project.d.ts +11 -15
  20. package/dist/_members/composition/validators/render.d.ts +372 -534
  21. package/dist/_members/composition/validators/session.d.ts +19 -39
  22. package/dist/_members/composition/validators/webhook.d.ts +8 -16
  23. package/dist/_members/composition-ops/index.d.ts +192 -228
  24. package/dist/_members/director/ai-sdk/messages.d.ts +2 -2
  25. package/dist/_members/director/domain/chat.d.ts +4 -4
  26. package/dist/_members/director/testing/contract.d.ts +1 -1
  27. package/dist/_members/errors/registry.d.ts +115 -1
  28. package/dist/_members/mcp/adapter.d.ts +19 -0
  29. package/dist/_members/mcp/core.d.ts +1 -1
  30. package/dist/_members/mcp/curation.d.ts +4 -0
  31. package/dist/_members/mcp/generated/harness.d.ts +1 -1
  32. package/dist/_members/mcp/generated/operations.d.ts +12 -0
  33. package/dist/_members/mcp/wait.d.ts +1 -1
  34. package/dist/_members/media-model/api.d.ts +53 -109
  35. package/dist/_members/media-model/generation.d.ts +2 -2
  36. package/dist/_members/media-model/index.d.ts +1 -0
  37. package/dist/_members/media-model/opaqueId.d.ts +10 -0
  38. package/dist/_members/render-harness/localRender.d.ts +3 -0
  39. package/dist/_members/render-harness/localRender.d.ts.map +1 -1
  40. package/dist/_members/render-harness/remotion-runtime.d.ts +53 -0
  41. package/dist/authoring/build-tools.js +6 -6
  42. package/dist/authoring/context.js +4 -4
  43. package/dist/authoring/prompts.js +1 -5
  44. package/dist/authoring/tools.js +5 -5
  45. package/dist/authoring.js +40 -27
  46. package/dist/chunk-2SNY75AR.js +498 -0
  47. package/dist/{chunk-XQ72DZKJ.js → chunk-7TQCR7AB.js} +1 -1
  48. package/dist/{chunk-QETYXKQQ.js → chunk-7V3F5HO4.js} +97 -14
  49. package/dist/{chunk-BZZTVOGG.js → chunk-D2EGO543.js} +5 -5
  50. package/dist/{chunk-ZPLJ24OV.js → chunk-D6S3ZKIY.js} +1 -1
  51. package/dist/{chunk-K2IUBCND.js → chunk-HFC3MKXA.js} +0 -51
  52. package/dist/{chunk-ICSZF37W.js → chunk-JRIPQ7DN.js} +1 -1
  53. package/dist/{chunk-TFGKUWHY.js → chunk-JTVFIN6H.js} +15 -19
  54. package/dist/{chunk-DCVJWGIA.js → chunk-JY26PIRP.js} +2 -2
  55. package/dist/{chunk-DWLNPNC4.js → chunk-LSP4HN5N.js} +1 -1
  56. package/dist/{chunk-AO744WIK.js → chunk-PJ4R4N4Q.js} +123 -38
  57. package/dist/{chunk-VFMW3JUY.js → chunk-QSDFTYKV.js} +1 -1
  58. package/dist/{chunk-LLUW26BS.js → chunk-R5BMJ2NX.js} +38 -2
  59. package/dist/{chunk-W3SIWT7J.js → chunk-RQ2G4DXI.js} +406 -174
  60. package/dist/{chunk-VHF66LCQ.js → chunk-RXCEPCAQ.js} +102 -41
  61. package/dist/{chunk-LJ5W4ZBU.js → chunk-TLVPDT4R.js} +1 -1
  62. package/dist/{chunk-PIURX6IZ.js → chunk-WTT3GGCA.js} +9 -4
  63. package/dist/{chunk-CAJQ7H5A.js → chunk-YE3F4LNJ.js} +17 -17
  64. package/dist/{chunk-TD347SSX.js → chunk-YXEZ75MB.js} +31 -20
  65. package/dist/{chunk-TPA6PYN2.js → chunk-ZBRPF6GV.js} +25 -10
  66. package/dist/cloud-import.js +20 -116
  67. package/dist/compose/renderer.js +17 -17
  68. package/dist/compose.js +18 -18
  69. package/dist/composition/graphics-plan.js +1 -1
  70. package/dist/composition/ops.js +3 -3
  71. package/dist/composition/primitive-catalog.js +1 -1
  72. package/dist/composition/projection.js +2 -2
  73. package/dist/composition/validators.js +4 -2
  74. package/dist/composition-ops.js +6 -6
  75. package/dist/composition.js +6 -4
  76. package/dist/{context-JLLU3MYD.js → context-XWNT6QZH.js} +4 -4
  77. package/dist/core/render.js +3 -3
  78. package/dist/core/select.js +2 -2
  79. package/dist/core.js +3 -3
  80. package/dist/director/ai-sdk.js +3 -3
  81. package/dist/director/domain.js +2 -2
  82. package/dist/director.js +3 -3
  83. package/dist/errors.js +1 -1
  84. package/dist/mcp/adapter.js +59 -22
  85. package/dist/mcp/core.js +1 -1
  86. package/dist/mcp/curation.js +5 -1
  87. package/dist/mcp/server.js +4 -4
  88. package/dist/mcp.js +4 -4
  89. package/dist/media-model/media-kind.js +98 -9
  90. package/dist/media-model/testing.js +6 -6
  91. package/dist/media-model.js +83 -77
  92. package/dist/nle-export.js +18 -18
  93. package/dist/primitives/backgrounds.js +2 -2
  94. package/dist/primitives/captions.js +3 -3
  95. package/dist/primitives/effects.js +2 -2
  96. package/dist/primitives/hero-text.js +2 -2
  97. package/dist/primitives/layouts.js +2 -2
  98. package/dist/primitives/lib/index.js +12 -12
  99. package/dist/primitives/lib.js +12 -12
  100. package/dist/primitives/scenes.js +2 -2
  101. package/dist/primitives/text.js +2 -2
  102. package/dist/primitives/ui-blocks.js +2 -2
  103. package/dist/primitives.js +19 -19
  104. package/dist/render-harness.js +4 -2
  105. package/package.json +13 -37
  106. package/dist/_members/authoring/prompts/designReviewerPrompt.d.ts +0 -2
  107. package/dist/_members/cloud-import/MediaItemPreprocessor.d.ts +0 -18
  108. package/dist/_members/cloud-import/multipartUpload.d.ts +0 -12
  109. package/dist/_members/convex-api/api.d.ts +0 -2
  110. package/dist/_members/convex-api/dataModel.d.ts +0 -4
  111. package/dist/chunk-6IU2UQI5.js +0 -107
  112. package/dist/chunk-EP2Y6M2J.js +0 -64
  113. package/dist/chunk-WZH57M53.js +0 -494
  114. package/dist/cloud-import/multipart.d.ts +0 -1
  115. package/dist/cloud-import/multipart.js +0 -8
  116. package/dist/convex-api/dataModel.d.ts +0 -1
  117. package/dist/convex-api/dataModel.js +0 -0
  118. package/dist/convex-api.d.ts +0 -1
  119. package/dist/convex-api.js +0 -8
  120. package/dist/{chunk-RP4SXXLJ.js → chunk-3PM6VICZ.js} +3 -3
  121. package/dist/{chunk-UQSOS726.js → chunk-6ABIXGLO.js} +4 -4
  122. package/dist/{chunk-SAMQUUO5.js → chunk-BIBYZJL3.js} +3 -3
  123. package/dist/{chunk-GMD33ZD7.js → chunk-O7GNE4BQ.js} +3 -3
  124. package/dist/{chunk-BKHGL4MB.js → chunk-THJAY7QS.js} +4 -4
  125. package/dist/{chunk-DYZE7JZA.js → chunk-TMIBBD5E.js} +3 -3
  126. package/dist/{chunk-G5BFI32U.js → chunk-XATRRDVG.js} +3 -3
@@ -1,3 +1,11 @@
1
1
  import { type LanguageModelUsage } from 'ai';
2
+ /**
3
+ * Turn a provider failure into a message that says what actually went wrong.
4
+ *
5
+ * The status-specific branches are the actionable ones — a 401 needs no body.
6
+ * Everything else used to end at `err.message`, which for the commonest gateway
7
+ * failure is the bare string "Invalid JSON response", discarding the status and
8
+ * body the APICallError carries.
9
+ */
2
10
  export declare function extractProviderError(err: unknown): string;
3
11
  export declare const ZERO_USAGE: LanguageModelUsage;
@@ -19,7 +19,7 @@ export { COMPOSE_PLANNER_TOOLS, COMPOSE_PLANNER_REPAIR_TOOLS, COMPOSE_MOTION_TOO
19
19
  export type { ApprovalFn } from './types.js';
20
20
  export type { PipelineTraceInterface as PipelineTrace } from './pipelineTrace.js';
21
21
  export type { PipelineTraceInterface as RequestTraceInterface } from './pipelineTrace.js';
22
- export { type PlanStep, formatPlanSteps, buildExecutionTask, buildPlannerUserMessage, PLANNING_INSTRUCTIONS, DESIGN_REVIEWER_PROMPT, DESIGN_REVIEWER_TOOLS, CODE_GEN_FEW_SHOT_EXAMPLES, COMPONENT_CONTRACT, TOOLKIT_REFERENCE, DESIGN_QUALITY_RULES, type ManagedPrompt, initCodeGenPrompts, EVALUATOR_PROMPT, } from './prompts/index.js';
22
+ export { type PlanStep, formatPlanSteps, buildExecutionTask, buildPlannerUserMessage, PLANNING_INSTRUCTIONS, CODE_GEN_FEW_SHOT_EXAMPLES, COMPONENT_CONTRACT, TOOLKIT_REFERENCE, DESIGN_QUALITY_RULES, type ManagedPrompt, initCodeGenPrompts, EVALUATOR_PROMPT, } from './prompts/index.js';
23
23
  export { PipelineTrace as RequestTrace } from './pipelineTrace.js';
24
24
  export { generateMotionShell, MOTION_PRESETS, resolveMotionPresetCard, MotionPresetError, materializeMotionPresetOpsCore, isMotionPresetOp, hasMotionPresetOp } from './motion/index.js';
25
25
  export type { MotionPresetName, MotionShellOptions, MotionPresetErrorCode, ApplyMotionPresetOp, MaterializedMotionShell, MaterializeMotionPresetDeps } from './motion/index.js';
@@ -25,6 +25,10 @@ export interface MaterializeMotionPresetDeps {
25
25
  jsSource: string;
26
26
  }>;
27
27
  sink: (shell: MaterializedMotionShell) => Promise<unknown> | unknown;
28
+ /** Fold one already-materialized operation into an in-memory composition.
29
+ * Supplying this gives batch-order semantics: a preset can target a card
30
+ * added or updated by an earlier operation in the same request. */
31
+ apply?: (composition: MotionPresetComposition, op: unknown) => MotionPresetComposition;
28
32
  }
29
33
  export declare function materializeMotionPresetOpsCore(composition: MotionPresetComposition, ops: readonly unknown[], opts: {
30
34
  dryRun: boolean;
@@ -1,4 +1,3 @@
1
1
  export { type PlanStep, formatPlanSteps, buildExecutionTask, buildPlannerUserMessage, PLANNING_INSTRUCTIONS, } from './plannerPrompt.js';
2
- export { DESIGN_REVIEWER_PROMPT, DESIGN_REVIEWER_TOOLS, } from './designReviewerPrompt.js';
3
2
  export { CODE_GEN_FEW_SHOT_EXAMPLES, COMPONENT_CONTRACT, TOOLKIT_REFERENCE, DESIGN_QUALITY_RULES, type ManagedPrompt, initCodeGenPrompts, } from './graphics.js';
4
3
  export { EVALUATOR_PROMPT } from './evaluatorPrompt.js';
@@ -87,7 +87,7 @@ export interface DirectorContext {
87
87
  fps: number;
88
88
  format?: {
89
89
  aspectRatio: '16:9' | '9:16' | '1:1' | '4:5';
90
- fps?: 24 | 30 | 60;
90
+ fps?: 24 | 25 | 30 | 60;
91
91
  resolution?: 'hd' | 'fhd' | '4k';
92
92
  };
93
93
  transcript?: string;
@@ -1,7 +1,8 @@
1
1
  import Uppy from '@uppy/core';
2
- import { MediaItemPreprocessor } from './MediaItemPreprocessor.js';
3
2
  interface CloudImportConfig {
4
- uploadSigningUrl: string;
3
+ uploadFile: (file: Blob & {
4
+ name: string;
5
+ }, onProgress: (fraction: number) => void) => Promise<string>;
5
6
  }
6
7
  export interface CloudUploadResult {
7
8
  uploadURL: string;
@@ -13,8 +14,6 @@ declare class CloudImportService {
13
14
  private config;
14
15
  init(config: CloudImportConfig): Uppy;
15
16
  getUppy(): Uppy;
16
- getPreprocessor(): MediaItemPreprocessor;
17
- setMeta(meta: Record<string, string>): void;
18
17
  }
19
18
  export declare const cloudImportService: CloudImportService;
20
19
  export {};
@@ -12,17 +12,13 @@ export interface ImportProviderProps {
12
12
  children: ReactNode;
13
13
  available: boolean;
14
14
  dialogSlot?: ReactNode;
15
- uploadSigningUrl: string;
16
- getUploadMeta?: () => Promise<Record<string, string>>;
17
- createMediaItem?: (file: {
15
+ uploadFile: (file: Blob & {
18
16
  name: string;
19
- size: number;
20
- mimeType: string;
21
- }) => Promise<string>;
17
+ }, onProgress: (fraction: number) => void) => Promise<string>;
22
18
  onUploadComplete?: (results: CloudUploadResult[]) => void;
23
19
  onError?: (error: Error) => void;
24
20
  }
25
- export declare function ImportProvider({ children, available, dialogSlot, uploadSigningUrl, getUploadMeta, createMediaItem, onUploadComplete, onError, }: ImportProviderProps): import("react").JSX.Element;
21
+ export declare function ImportProvider({ children, available, dialogSlot, uploadFile, onUploadComplete, onError, }: ImportProviderProps): import("react").JSX.Element;
26
22
  export declare function useImport(): ImportContextValue;
27
23
  export declare function useImportIfAvailable(): ImportContextValue | null;
28
24
  export {};
@@ -1,8 +1,2 @@
1
1
  export type CloudEnvironment = 'dev' | 'staging' | 'production';
2
- export interface CloudEndpoints {
3
- convexUrl: string;
4
- uploadSigningUrl: string;
5
- }
6
- export declare const ENVIRONMENTS: Record<CloudEnvironment, CloudEndpoints>;
7
2
  export declare function detectEnvironment(convexUrl?: string): CloudEnvironment;
8
- export declare function getEndpoints(convexUrl: string): CloudEndpoints;
@@ -2,8 +2,6 @@ export { ImportProvider, useImport, useImportIfAvailable } from './ImportProvide
2
2
  export type { ImportProviderProps } from './ImportProvider.js';
3
3
  export { cloudImportService } from './CloudImportService.js';
4
4
  export type { CloudUploadResult } from './CloudImportService.js';
5
- export { ENVIRONMENTS, detectEnvironment, getEndpoints } from './cloudConfig.js';
6
- export type { CloudEnvironment, CloudEndpoints } from './cloudConfig.js';
7
- export { multipartUpload } from './multipartUpload.js';
8
- export type { MultipartUploadOptions, MultipartUploadResult } from './multipartUpload.js';
5
+ export { detectEnvironment } from './cloudConfig.js';
6
+ export type { CloudEnvironment } from './cloudConfig.js';
9
7
  export { useDropzone, useUppyState, useUppyEvent, } from '@uppy/react';
@@ -37,8 +37,8 @@ export declare const Copy: z.ZodObject<{
37
37
  }>, "many">>;
38
38
  }, "strict", z.ZodTypeAny, {
39
39
  value?: string | undefined;
40
- sub?: string | undefined;
41
40
  headline?: string | undefined;
41
+ sub?: string | undefined;
42
42
  label?: string | undefined;
43
43
  items?: string[] | undefined;
44
44
  series?: {
@@ -47,8 +47,8 @@ export declare const Copy: z.ZodObject<{
47
47
  }[] | undefined;
48
48
  }, {
49
49
  value?: string | undefined;
50
- sub?: string | undefined;
51
50
  headline?: string | undefined;
51
+ sub?: string | undefined;
52
52
  label?: string | undefined;
53
53
  items?: string[] | undefined;
54
54
  series?: {
@@ -80,8 +80,8 @@ export declare const ContentBeat: z.ZodObject<{
80
80
  }>, "many">>;
81
81
  }, "strict", z.ZodTypeAny, {
82
82
  value?: string | undefined;
83
- sub?: string | undefined;
84
83
  headline?: string | undefined;
84
+ sub?: string | undefined;
85
85
  label?: string | undefined;
86
86
  items?: string[] | undefined;
87
87
  series?: {
@@ -90,8 +90,8 @@ export declare const ContentBeat: z.ZodObject<{
90
90
  }[] | undefined;
91
91
  }, {
92
92
  value?: string | undefined;
93
- sub?: string | undefined;
94
93
  headline?: string | undefined;
94
+ sub?: string | undefined;
95
95
  label?: string | undefined;
96
96
  items?: string[] | undefined;
97
97
  series?: {
@@ -109,8 +109,8 @@ export declare const ContentBeat: z.ZodObject<{
109
109
  role: "title-card" | "stat" | "lower-third" | "pull-quote" | "hero" | "logo-tag" | "enumeration" | "sequence" | "comparison";
110
110
  copy: {
111
111
  value?: string | undefined;
112
- sub?: string | undefined;
113
112
  headline?: string | undefined;
113
+ sub?: string | undefined;
114
114
  label?: string | undefined;
115
115
  items?: string[] | undefined;
116
116
  series?: {
@@ -127,8 +127,8 @@ export declare const ContentBeat: z.ZodObject<{
127
127
  role: "title-card" | "stat" | "lower-third" | "pull-quote" | "hero" | "logo-tag" | "enumeration" | "sequence" | "comparison";
128
128
  copy: {
129
129
  value?: string | undefined;
130
- sub?: string | undefined;
131
130
  headline?: string | undefined;
131
+ sub?: string | undefined;
132
132
  label?: string | undefined;
133
133
  items?: string[] | undefined;
134
134
  series?: {
@@ -164,8 +164,8 @@ export declare const ContentPlan: z.ZodObject<{
164
164
  }>, "many">>;
165
165
  }, "strict", z.ZodTypeAny, {
166
166
  value?: string | undefined;
167
- sub?: string | undefined;
168
167
  headline?: string | undefined;
168
+ sub?: string | undefined;
169
169
  label?: string | undefined;
170
170
  items?: string[] | undefined;
171
171
  series?: {
@@ -174,8 +174,8 @@ export declare const ContentPlan: z.ZodObject<{
174
174
  }[] | undefined;
175
175
  }, {
176
176
  value?: string | undefined;
177
- sub?: string | undefined;
178
177
  headline?: string | undefined;
178
+ sub?: string | undefined;
179
179
  label?: string | undefined;
180
180
  items?: string[] | undefined;
181
181
  series?: {
@@ -193,8 +193,8 @@ export declare const ContentPlan: z.ZodObject<{
193
193
  role: "title-card" | "stat" | "lower-third" | "pull-quote" | "hero" | "logo-tag" | "enumeration" | "sequence" | "comparison";
194
194
  copy: {
195
195
  value?: string | undefined;
196
- sub?: string | undefined;
197
196
  headline?: string | undefined;
197
+ sub?: string | undefined;
198
198
  label?: string | undefined;
199
199
  items?: string[] | undefined;
200
200
  series?: {
@@ -211,8 +211,8 @@ export declare const ContentPlan: z.ZodObject<{
211
211
  role: "title-card" | "stat" | "lower-third" | "pull-quote" | "hero" | "logo-tag" | "enumeration" | "sequence" | "comparison";
212
212
  copy: {
213
213
  value?: string | undefined;
214
- sub?: string | undefined;
215
214
  headline?: string | undefined;
215
+ sub?: string | undefined;
216
216
  label?: string | undefined;
217
217
  items?: string[] | undefined;
218
218
  series?: {
@@ -232,8 +232,8 @@ export declare const ContentPlan: z.ZodObject<{
232
232
  role: "title-card" | "stat" | "lower-third" | "pull-quote" | "hero" | "logo-tag" | "enumeration" | "sequence" | "comparison";
233
233
  copy: {
234
234
  value?: string | undefined;
235
- sub?: string | undefined;
236
235
  headline?: string | undefined;
236
+ sub?: string | undefined;
237
237
  label?: string | undefined;
238
238
  items?: string[] | undefined;
239
239
  series?: {
@@ -253,8 +253,8 @@ export declare const ContentPlan: z.ZodObject<{
253
253
  role: "title-card" | "stat" | "lower-third" | "pull-quote" | "hero" | "logo-tag" | "enumeration" | "sequence" | "comparison";
254
254
  copy: {
255
255
  value?: string | undefined;
256
- sub?: string | undefined;
257
256
  headline?: string | undefined;
257
+ sub?: string | undefined;
258
258
  label?: string | undefined;
259
259
  items?: string[] | undefined;
260
260
  series?: {
@@ -861,8 +861,8 @@ export declare const GraphicsPlan: z.ZodObject<{
861
861
  }>, "many">>;
862
862
  }, "strict", z.ZodTypeAny, {
863
863
  value?: string | undefined;
864
- sub?: string | undefined;
865
864
  headline?: string | undefined;
865
+ sub?: string | undefined;
866
866
  label?: string | undefined;
867
867
  items?: string[] | undefined;
868
868
  series?: {
@@ -871,8 +871,8 @@ export declare const GraphicsPlan: z.ZodObject<{
871
871
  }[] | undefined;
872
872
  }, {
873
873
  value?: string | undefined;
874
- sub?: string | undefined;
875
874
  headline?: string | undefined;
875
+ sub?: string | undefined;
876
876
  label?: string | undefined;
877
877
  items?: string[] | undefined;
878
878
  series?: {
@@ -890,8 +890,8 @@ export declare const GraphicsPlan: z.ZodObject<{
890
890
  role: "title-card" | "stat" | "lower-third" | "pull-quote" | "hero" | "logo-tag" | "enumeration" | "sequence" | "comparison";
891
891
  copy: {
892
892
  value?: string | undefined;
893
- sub?: string | undefined;
894
893
  headline?: string | undefined;
894
+ sub?: string | undefined;
895
895
  label?: string | undefined;
896
896
  items?: string[] | undefined;
897
897
  series?: {
@@ -908,8 +908,8 @@ export declare const GraphicsPlan: z.ZodObject<{
908
908
  role: "title-card" | "stat" | "lower-third" | "pull-quote" | "hero" | "logo-tag" | "enumeration" | "sequence" | "comparison";
909
909
  copy: {
910
910
  value?: string | undefined;
911
- sub?: string | undefined;
912
911
  headline?: string | undefined;
912
+ sub?: string | undefined;
913
913
  label?: string | undefined;
914
914
  items?: string[] | undefined;
915
915
  series?: {
@@ -929,8 +929,8 @@ export declare const GraphicsPlan: z.ZodObject<{
929
929
  role: "title-card" | "stat" | "lower-third" | "pull-quote" | "hero" | "logo-tag" | "enumeration" | "sequence" | "comparison";
930
930
  copy: {
931
931
  value?: string | undefined;
932
- sub?: string | undefined;
933
932
  headline?: string | undefined;
933
+ sub?: string | undefined;
934
934
  label?: string | undefined;
935
935
  items?: string[] | undefined;
936
936
  series?: {
@@ -950,8 +950,8 @@ export declare const GraphicsPlan: z.ZodObject<{
950
950
  role: "title-card" | "stat" | "lower-third" | "pull-quote" | "hero" | "logo-tag" | "enumeration" | "sequence" | "comparison";
951
951
  copy: {
952
952
  value?: string | undefined;
953
- sub?: string | undefined;
954
953
  headline?: string | undefined;
954
+ sub?: string | undefined;
955
955
  label?: string | undefined;
956
956
  items?: string[] | undefined;
957
957
  series?: {
@@ -1343,8 +1343,8 @@ export declare const GraphicsPlan: z.ZodObject<{
1343
1343
  role: "title-card" | "stat" | "lower-third" | "pull-quote" | "hero" | "logo-tag" | "enumeration" | "sequence" | "comparison";
1344
1344
  copy: {
1345
1345
  value?: string | undefined;
1346
- sub?: string | undefined;
1347
1346
  headline?: string | undefined;
1347
+ sub?: string | undefined;
1348
1348
  label?: string | undefined;
1349
1349
  items?: string[] | undefined;
1350
1350
  series?: {
@@ -1426,8 +1426,8 @@ export declare const GraphicsPlan: z.ZodObject<{
1426
1426
  role: "title-card" | "stat" | "lower-third" | "pull-quote" | "hero" | "logo-tag" | "enumeration" | "sequence" | "comparison";
1427
1427
  copy: {
1428
1428
  value?: string | undefined;
1429
- sub?: string | undefined;
1430
1429
  headline?: string | undefined;
1430
+ sub?: string | undefined;
1431
1431
  label?: string | undefined;
1432
1432
  items?: string[] | undefined;
1433
1433
  series?: {
@@ -5,7 +5,7 @@ export type ComponentBrandBinding = {
5
5
  };
6
6
  export type SceneFormat = {
7
7
  aspectRatio: '16:9' | '9:16' | '1:1' | '4:5';
8
- fps?: 24 | 30 | 60;
8
+ fps?: 24 | 25 | 30 | 60;
9
9
  resolution?: 'hd' | 'fhd' | '4k';
10
10
  };
11
11
  export type ComponentPlacement = {
@@ -30,6 +30,7 @@ export type ComponentCatalogEntry = {
30
30
  subtextParam?: string | null;
31
31
  format?: SceneFormat;
32
32
  durationInFrames?: number;
33
+ alphaPolicy?: 'requires-transparency' | 'allows-opaque';
33
34
  intent?: string;
34
35
  useWhen?: string;
35
36
  pairsWith?: string[];
@@ -4,6 +4,7 @@ export interface MatteIntentLike {
4
4
  subjectClass: "person" | "product";
5
5
  }
6
6
  export interface MatteEntryLike {
7
+ geometryUrl?: string;
7
8
  geometryR2Key?: string;
8
9
  presenceFraction?: number;
9
10
  matteR2Key?: string;
@@ -44,9 +45,10 @@ export interface BehindWindowLike {
44
45
  endMs: number;
45
46
  }
46
47
  export declare function clipOverlapsBehind(clipStartSec: number, clipDurationSec: number, windows: readonly BehindWindowLike[]): boolean;
47
- export declare function matteWindowsByMediaId(composition: unknown, behindWindows: readonly BehindWindowLike[]): Map<string, {
48
+ export declare function matteWindowsByMediaId(composition: unknown, behindWindows: readonly BehindWindowLike[]): Map<string, Array<{
49
+ clipId: string;
48
50
  startSec: number;
49
51
  endSec: number;
50
- }>;
52
+ }>>;
51
53
  export declare function behindWindowsOf(composition: unknown): BehindWindowLike[];
52
54
  export declare function captionBehindWindowsOf(composition: unknown): BehindWindowLike[];
@@ -43,19 +43,15 @@ export declare const FontRef: z.ZodUnion<[z.ZodObject<{
43
43
  url?: string | undefined;
44
44
  }>, z.ZodObject<{
45
45
  kind: z.ZodLiteral<"uploaded">;
46
- fontId: import("convex-helpers/server/zod3").Zid<"fonts">;
46
+ fontId: z.ZodString;
47
47
  family: z.ZodOptional<z.ZodString>;
48
48
  }, "strip", z.ZodTypeAny, {
49
49
  kind: "uploaded";
50
- fontId: string & {
51
- __tableName: "fonts";
52
- };
50
+ fontId: string;
53
51
  family?: string | undefined;
54
52
  }, {
55
53
  kind: "uploaded";
56
- fontId: string & {
57
- __tableName: "fonts";
58
- };
54
+ fontId: string;
59
55
  family?: string | undefined;
60
56
  }>]>;
61
57
  export type FontRef = z.infer<typeof FontRef>;
@@ -279,19 +275,15 @@ export declare const BrandKit: z.ZodObject<{
279
275
  url?: string | undefined;
280
276
  }>, z.ZodObject<{
281
277
  kind: z.ZodLiteral<"uploaded">;
282
- fontId: import("convex-helpers/server/zod3").Zid<"fonts">;
278
+ fontId: z.ZodString;
283
279
  family: z.ZodOptional<z.ZodString>;
284
280
  }, "strip", z.ZodTypeAny, {
285
281
  kind: "uploaded";
286
- fontId: string & {
287
- __tableName: "fonts";
288
- };
282
+ fontId: string;
289
283
  family?: string | undefined;
290
284
  }, {
291
285
  kind: "uploaded";
292
- fontId: string & {
293
- __tableName: "fonts";
294
- };
286
+ fontId: string;
295
287
  family?: string | undefined;
296
288
  }>]>;
297
289
  body: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
@@ -317,19 +309,15 @@ export declare const BrandKit: z.ZodObject<{
317
309
  url?: string | undefined;
318
310
  }>, z.ZodObject<{
319
311
  kind: z.ZodLiteral<"uploaded">;
320
- fontId: import("convex-helpers/server/zod3").Zid<"fonts">;
312
+ fontId: z.ZodString;
321
313
  family: z.ZodOptional<z.ZodString>;
322
314
  }, "strip", z.ZodTypeAny, {
323
315
  kind: "uploaded";
324
- fontId: string & {
325
- __tableName: "fonts";
326
- };
316
+ fontId: string;
327
317
  family?: string | undefined;
328
318
  }, {
329
319
  kind: "uploaded";
330
- fontId: string & {
331
- __tableName: "fonts";
332
- };
320
+ fontId: string;
333
321
  family?: string | undefined;
334
322
  }>]>>;
335
323
  caption: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
@@ -355,19 +343,15 @@ export declare const BrandKit: z.ZodObject<{
355
343
  url?: string | undefined;
356
344
  }>, z.ZodObject<{
357
345
  kind: z.ZodLiteral<"uploaded">;
358
- fontId: import("convex-helpers/server/zod3").Zid<"fonts">;
346
+ fontId: z.ZodString;
359
347
  family: z.ZodOptional<z.ZodString>;
360
348
  }, "strip", z.ZodTypeAny, {
361
349
  kind: "uploaded";
362
- fontId: string & {
363
- __tableName: "fonts";
364
- };
350
+ fontId: string;
365
351
  family?: string | undefined;
366
352
  }, {
367
353
  kind: "uploaded";
368
- fontId: string & {
369
- __tableName: "fonts";
370
- };
354
+ fontId: string;
371
355
  family?: string | undefined;
372
356
  }>]>>;
373
357
  }, "strip", z.ZodTypeAny, {
@@ -380,9 +364,7 @@ export declare const BrandKit: z.ZodObject<{
380
364
  url?: string | undefined;
381
365
  } | {
382
366
  kind: "uploaded";
383
- fontId: string & {
384
- __tableName: "fonts";
385
- };
367
+ fontId: string;
386
368
  family?: string | undefined;
387
369
  };
388
370
  body?: {
@@ -394,9 +376,7 @@ export declare const BrandKit: z.ZodObject<{
394
376
  url?: string | undefined;
395
377
  } | {
396
378
  kind: "uploaded";
397
- fontId: string & {
398
- __tableName: "fonts";
399
- };
379
+ fontId: string;
400
380
  family?: string | undefined;
401
381
  } | undefined;
402
382
  caption?: {
@@ -408,9 +388,7 @@ export declare const BrandKit: z.ZodObject<{
408
388
  url?: string | undefined;
409
389
  } | {
410
390
  kind: "uploaded";
411
- fontId: string & {
412
- __tableName: "fonts";
413
- };
391
+ fontId: string;
414
392
  family?: string | undefined;
415
393
  } | undefined;
416
394
  }, {
@@ -423,9 +401,7 @@ export declare const BrandKit: z.ZodObject<{
423
401
  url?: string | undefined;
424
402
  } | {
425
403
  kind: "uploaded";
426
- fontId: string & {
427
- __tableName: "fonts";
428
- };
404
+ fontId: string;
429
405
  family?: string | undefined;
430
406
  };
431
407
  body?: {
@@ -437,9 +413,7 @@ export declare const BrandKit: z.ZodObject<{
437
413
  url?: string | undefined;
438
414
  } | {
439
415
  kind: "uploaded";
440
- fontId: string & {
441
- __tableName: "fonts";
442
- };
416
+ fontId: string;
443
417
  family?: string | undefined;
444
418
  } | undefined;
445
419
  caption?: {
@@ -451,9 +425,7 @@ export declare const BrandKit: z.ZodObject<{
451
425
  url?: string | undefined;
452
426
  } | {
453
427
  kind: "uploaded";
454
- fontId: string & {
455
- __tableName: "fonts";
456
- };
428
+ fontId: string;
457
429
  family?: string | undefined;
458
430
  } | undefined;
459
431
  }>;
@@ -1002,6 +974,21 @@ export declare const BrandKit: z.ZodObject<{
1002
974
  }, "strip", z.ZodTypeAny, {
1003
975
  id: string;
1004
976
  name: string;
977
+ colors: {
978
+ text: string;
979
+ accent: string;
980
+ primary: string;
981
+ background: string;
982
+ card?: string | undefined;
983
+ surface?: string | undefined;
984
+ secondary?: string | undefined;
985
+ textMuted?: string | undefined;
986
+ border?: string | undefined;
987
+ gridLine?: string | undefined;
988
+ accentMuted?: string | undefined;
989
+ textOnAccent?: string | undefined;
990
+ textOnSurface?: string | undefined;
991
+ };
1005
992
  fonts: {
1006
993
  heading: {
1007
994
  kind: "system";
@@ -1012,9 +999,7 @@ export declare const BrandKit: z.ZodObject<{
1012
999
  url?: string | undefined;
1013
1000
  } | {
1014
1001
  kind: "uploaded";
1015
- fontId: string & {
1016
- __tableName: "fonts";
1017
- };
1002
+ fontId: string;
1018
1003
  family?: string | undefined;
1019
1004
  };
1020
1005
  body?: {
@@ -1026,9 +1011,7 @@ export declare const BrandKit: z.ZodObject<{
1026
1011
  url?: string | undefined;
1027
1012
  } | {
1028
1013
  kind: "uploaded";
1029
- fontId: string & {
1030
- __tableName: "fonts";
1031
- };
1014
+ fontId: string;
1032
1015
  family?: string | undefined;
1033
1016
  } | undefined;
1034
1017
  caption?: {
@@ -1040,27 +1023,10 @@ export declare const BrandKit: z.ZodObject<{
1040
1023
  url?: string | undefined;
1041
1024
  } | {
1042
1025
  kind: "uploaded";
1043
- fontId: string & {
1044
- __tableName: "fonts";
1045
- };
1026
+ fontId: string;
1046
1027
  family?: string | undefined;
1047
1028
  } | undefined;
1048
1029
  };
1049
- colors: {
1050
- text: string;
1051
- accent: string;
1052
- primary: string;
1053
- background: string;
1054
- card?: string | undefined;
1055
- surface?: string | undefined;
1056
- secondary?: string | undefined;
1057
- textMuted?: string | undefined;
1058
- border?: string | undefined;
1059
- gridLine?: string | undefined;
1060
- accentMuted?: string | undefined;
1061
- textOnAccent?: string | undefined;
1062
- textOnSurface?: string | undefined;
1063
- };
1064
1030
  audio?: {
1065
1031
  sfxIntensity?: "standard" | "off" | "light" | "dense" | undefined;
1066
1032
  musicEnabled?: boolean | undefined;
@@ -1222,6 +1188,21 @@ export declare const BrandKit: z.ZodObject<{
1222
1188
  }, {
1223
1189
  id: string;
1224
1190
  name: string;
1191
+ colors: {
1192
+ text: string;
1193
+ accent: string;
1194
+ primary: string;
1195
+ background: string;
1196
+ card?: string | undefined;
1197
+ surface?: string | undefined;
1198
+ secondary?: string | undefined;
1199
+ textMuted?: string | undefined;
1200
+ border?: string | undefined;
1201
+ gridLine?: string | undefined;
1202
+ accentMuted?: string | undefined;
1203
+ textOnAccent?: string | undefined;
1204
+ textOnSurface?: string | undefined;
1205
+ };
1225
1206
  fonts: {
1226
1207
  heading: {
1227
1208
  kind: "system";
@@ -1232,9 +1213,7 @@ export declare const BrandKit: z.ZodObject<{
1232
1213
  url?: string | undefined;
1233
1214
  } | {
1234
1215
  kind: "uploaded";
1235
- fontId: string & {
1236
- __tableName: "fonts";
1237
- };
1216
+ fontId: string;
1238
1217
  family?: string | undefined;
1239
1218
  };
1240
1219
  body?: {
@@ -1246,9 +1225,7 @@ export declare const BrandKit: z.ZodObject<{
1246
1225
  url?: string | undefined;
1247
1226
  } | {
1248
1227
  kind: "uploaded";
1249
- fontId: string & {
1250
- __tableName: "fonts";
1251
- };
1228
+ fontId: string;
1252
1229
  family?: string | undefined;
1253
1230
  } | undefined;
1254
1231
  caption?: {
@@ -1260,27 +1237,10 @@ export declare const BrandKit: z.ZodObject<{
1260
1237
  url?: string | undefined;
1261
1238
  } | {
1262
1239
  kind: "uploaded";
1263
- fontId: string & {
1264
- __tableName: "fonts";
1265
- };
1240
+ fontId: string;
1266
1241
  family?: string | undefined;
1267
1242
  } | undefined;
1268
1243
  };
1269
- colors: {
1270
- text: string;
1271
- accent: string;
1272
- primary: string;
1273
- background: string;
1274
- card?: string | undefined;
1275
- surface?: string | undefined;
1276
- secondary?: string | undefined;
1277
- textMuted?: string | undefined;
1278
- border?: string | undefined;
1279
- gridLine?: string | undefined;
1280
- accentMuted?: string | undefined;
1281
- textOnAccent?: string | undefined;
1282
- textOnSurface?: string | undefined;
1283
- };
1284
1244
  audio?: {
1285
1245
  sfxIntensity?: "standard" | "off" | "light" | "dense" | undefined;
1286
1246
  musicEnabled?: boolean | undefined;