@nativestudio/sdk 0.0.0-stage → 0.3.0-rc.2

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 (235) hide show
  1. package/COMPATIBILITY.json +14 -0
  2. package/LICENSE +21 -0
  3. package/README.md +74 -2
  4. package/dist/BUNDLED_DEPENDENCIES.json +1 -0
  5. package/dist/_chunks/chunk-34KSWLCI.js +1 -0
  6. package/dist/_chunks/chunk-4IOFVNFG.js +1 -0
  7. package/dist/_chunks/chunk-4M3AGNTZ.js +1 -0
  8. package/dist/_chunks/chunk-6NVIN2NI.js +1 -0
  9. package/dist/_chunks/chunk-7YCEMDNZ.js +1 -0
  10. package/dist/_chunks/chunk-RK3YLCZP.js +1 -0
  11. package/dist/_types/contracts/accepted-shot.d.ts +27 -0
  12. package/dist/_types/contracts/accepted-visual-source.d.ts +120 -0
  13. package/dist/_types/contracts/agent-execution-lifecycle.d.ts +749 -0
  14. package/dist/_types/contracts/agent-execution-oauth.d.ts +71 -0
  15. package/dist/_types/contracts/agent-execution-registration.d.ts +240 -0
  16. package/dist/_types/contracts/agent-execution-selection.d.ts +107 -0
  17. package/dist/_types/contracts/agent-host-execution.d.ts +706 -0
  18. package/dist/_types/contracts/agent-host-generic-transport.d.ts +12 -0
  19. package/dist/_types/contracts/agent-host.d.ts +226 -0
  20. package/dist/_types/contracts/artifact-discovery.d.ts +170 -0
  21. package/dist/_types/contracts/artifact.d.ts +188 -0
  22. package/dist/_types/contracts/audio.d.ts +331 -0
  23. package/dist/_types/contracts/brief.d.ts +178 -0
  24. package/dist/_types/contracts/caption-render.d.ts +20 -0
  25. package/dist/_types/contracts/caption-transcript.d.ts +102 -0
  26. package/dist/_types/contracts/captions.d.ts +420 -0
  27. package/dist/_types/contracts/clip-framing.d.ts +14 -0
  28. package/dist/_types/contracts/clip-transition.d.ts +6 -0
  29. package/dist/_types/contracts/composition-authoring-guide.d.ts +160 -0
  30. package/dist/_types/contracts/composition-authoring.d.ts +744 -0
  31. package/dist/_types/contracts/composition-finding-locality.d.ts +24 -0
  32. package/dist/_types/contracts/composition-frame-render.d.ts +226 -0
  33. package/dist/_types/contracts/composition-making.d.ts +390 -0
  34. package/dist/_types/contracts/composition-observation.d.ts +239 -0
  35. package/dist/_types/contracts/composition-render-base.d.ts +292 -0
  36. package/dist/_types/contracts/composition-render-observation.d.ts +278 -0
  37. package/dist/_types/contracts/composition-render.d.ts +406 -0
  38. package/dist/_types/contracts/composition-repair.d.ts +451 -0
  39. package/dist/_types/contracts/composition-source-review.d.ts +1042 -0
  40. package/dist/_types/contracts/consistency-profile.d.ts +845 -0
  41. package/dist/_types/contracts/continuity-evaluation.d.ts +48 -0
  42. package/dist/_types/contracts/delivery-completion.d.ts +210 -0
  43. package/dist/_types/contracts/delivery-manifest.d.ts +11776 -0
  44. package/dist/_types/contracts/delivery-operations.d.ts +5009 -0
  45. package/dist/_types/contracts/delivery-output-profile.d.ts +12 -0
  46. package/dist/_types/contracts/delivery-summary.d.ts +220 -0
  47. package/dist/_types/contracts/delivery-validation.d.ts +183 -0
  48. package/dist/_types/contracts/director-proposal.d.ts +1067 -0
  49. package/dist/_types/contracts/editor-intelligence.d.ts +5751 -0
  50. package/dist/_types/contracts/exploration-recommendation.d.ts +11863 -0
  51. package/dist/_types/contracts/external-agent-access.d.ts +95 -0
  52. package/dist/_types/contracts/final-ready.d.ts +301 -0
  53. package/dist/_types/contracts/final-render-profile.d.ts +59 -0
  54. package/dist/_types/contracts/final-render.d.ts +8181 -0
  55. package/dist/_types/contracts/foundation.d.ts +1 -0
  56. package/dist/_types/contracts/generation-contract.d.ts +268 -0
  57. package/dist/_types/contracts/generation-cost.d.ts +70 -0
  58. package/dist/_types/contracts/health.d.ts +6 -0
  59. package/dist/_types/contracts/human-identity.d.ts +149 -0
  60. package/dist/_types/contracts/hyperframe-profile.d.ts +5 -0
  61. package/dist/_types/contracts/ids.d.ts +41 -0
  62. package/dist/_types/contracts/index.d.ts +122 -0
  63. package/dist/_types/contracts/interface/common.d.ts +56 -0
  64. package/dist/_types/contracts/interface/execution-output.d.ts +99 -0
  65. package/dist/_types/contracts/interface/index.d.ts +7 -0
  66. package/dist/_types/contracts/interface/media-output.d.ts +62 -0
  67. package/dist/_types/contracts/interface/operation.d.ts +61 -0
  68. package/dist/_types/contracts/interface/output.d.ts +15 -0
  69. package/dist/_types/contracts/interface/production-snapshot.d.ts +832 -0
  70. package/dist/_types/contracts/interface/query.d.ts +315 -0
  71. package/dist/_types/contracts/keyframe-generation.d.ts +349 -0
  72. package/dist/_types/contracts/keyframe-reference.d.ts +31 -0
  73. package/dist/_types/contracts/keyframe-review.d.ts +753 -0
  74. package/dist/_types/contracts/lifecycle-event-projections.d.ts +191 -0
  75. package/dist/_types/contracts/lifecycle-events.d.ts +156 -0
  76. package/dist/_types/contracts/listening-evidence.d.ts +37 -0
  77. package/dist/_types/contracts/local-execution/agent-review.d.ts +560 -0
  78. package/dist/_types/contracts/local-execution/canonical.d.ts +2 -0
  79. package/dist/_types/contracts/local-execution/common.d.ts +48 -0
  80. package/dist/_types/contracts/local-execution/completion.d.ts +128 -0
  81. package/dist/_types/contracts/local-execution/device.d.ts +134 -0
  82. package/dist/_types/contracts/local-execution/index.d.ts +11 -0
  83. package/dist/_types/contracts/local-execution/ipc.d.ts +1202 -0
  84. package/dist/_types/contracts/local-execution/lifecycle.d.ts +347 -0
  85. package/dist/_types/contracts/local-execution/local-navigation.d.ts +710 -0
  86. package/dist/_types/contracts/local-execution/preview.d.ts +3663 -0
  87. package/dist/_types/contracts/local-execution/tool-selection.d.ts +15 -0
  88. package/dist/_types/contracts/local-execution/work.d.ts +3441 -0
  89. package/dist/_types/contracts/matrix-parameter-rule.d.ts +23 -0
  90. package/dist/_types/contracts/media-export.d.ts +23 -0
  91. package/dist/_types/contracts/media-observation.d.ts +1159 -0
  92. package/dist/_types/contracts/model-capability-matrix.d.ts +118 -0
  93. package/dist/_types/contracts/native-tool-authority-failure.d.ts +38 -0
  94. package/dist/_types/contracts/native-tool-authority.d.ts +110 -0
  95. package/dist/_types/contracts/native-tool-execution.d.ts +287 -0
  96. package/dist/_types/contracts/native-tool-gateway.d.ts +41 -0
  97. package/dist/_types/contracts/native-video-audio.d.ts +62 -0
  98. package/dist/_types/contracts/navigation-context.d.ts +253 -0
  99. package/dist/_types/contracts/navigation-groups.d.ts +51 -0
  100. package/dist/_types/contracts/navigation.d.ts +238 -0
  101. package/dist/_types/contracts/observation-profile.d.ts +99 -0
  102. package/dist/_types/contracts/planning-input.d.ts +177 -0
  103. package/dist/_types/contracts/principal.d.ts +26 -0
  104. package/dist/_types/contracts/production-creation.d.ts +66 -0
  105. package/dist/_types/contracts/production-termination.d.ts +51 -0
  106. package/dist/_types/contracts/production.d.ts +111 -0
  107. package/dist/_types/contracts/programmatic-composition.d.ts +762 -0
  108. package/dist/_types/contracts/programmatic-exploration.d.ts +7459 -0
  109. package/dist/_types/contracts/programmatic-video-review.d.ts +894 -0
  110. package/dist/_types/contracts/project-library.d.ts +173 -0
  111. package/dist/_types/contracts/project.d.ts +93 -0
  112. package/dist/_types/contracts/provider-catalog.d.ts +421 -0
  113. package/dist/_types/contracts/provider-models.d.ts +3380 -0
  114. package/dist/_types/contracts/provider.d.ts +142 -0
  115. package/dist/_types/contracts/reference-preview.d.ts +36 -0
  116. package/dist/_types/contracts/repair-lifecycle.d.ts +2896 -0
  117. package/dist/_types/contracts/repair-plan.d.ts +728 -0
  118. package/dist/_types/contracts/repair-strategy.d.ts +5751 -0
  119. package/dist/_types/contracts/review-intelligence-evidence.d.ts +136 -0
  120. package/dist/_types/contracts/review-intelligence-final-output.d.ts +8705 -0
  121. package/dist/_types/contracts/review-intelligence.d.ts +11543 -0
  122. package/dist/_types/contracts/review1-repair-source.d.ts +452 -0
  123. package/dist/_types/contracts/review1-repair-strategy.d.ts +491 -0
  124. package/dist/_types/contracts/review1-repair.d.ts +36 -0
  125. package/dist/_types/contracts/rough-cut-manifest.d.ts +347 -0
  126. package/dist/_types/contracts/rough-cut-profile.d.ts +37 -0
  127. package/dist/_types/contracts/rough-cut-review.d.ts +12819 -0
  128. package/dist/_types/contracts/rough-cut.d.ts +5862 -0
  129. package/dist/_types/contracts/scene-shot-plan.d.ts +882 -0
  130. package/dist/_types/contracts/sdk-discovery.d.ts +66 -0
  131. package/dist/_types/contracts/shot-direction.d.ts +113 -0
  132. package/dist/_types/contracts/shot-preparation-basis.d.ts +356 -0
  133. package/dist/_types/contracts/shot-preparation.d.ts +2285 -0
  134. package/dist/_types/contracts/shot-sound-instruction.d.ts +58 -0
  135. package/dist/_types/contracts/sound-making-plan.d.ts +1585 -0
  136. package/dist/_types/contracts/source-sound-policy.d.ts +10 -0
  137. package/dist/_types/contracts/source-workspace.d.ts +62 -0
  138. package/dist/_types/contracts/speech.d.ts +424 -0
  139. package/dist/_types/contracts/story.d.ts +98 -0
  140. package/dist/_types/contracts/temporal-evidence-operation.d.ts +379 -0
  141. package/dist/_types/contracts/temporal-evidence-reference.d.ts +18 -0
  142. package/dist/_types/contracts/temporal-evidence.d.ts +248 -0
  143. package/dist/_types/contracts/tenant.d.ts +7 -0
  144. package/dist/_types/contracts/timeline-audio.d.ts +97 -0
  145. package/dist/_types/contracts/timeline-graphics.d.ts +80 -0
  146. package/dist/_types/contracts/timeline-manifest.d.ts +702 -0
  147. package/dist/_types/contracts/timeline-source-sound.d.ts +352 -0
  148. package/dist/_types/contracts/timeline-v2.d.ts +1263 -0
  149. package/dist/_types/contracts/timeline-version-reader.d.ts +2945 -0
  150. package/dist/_types/contracts/timeline-visual-layers.d.ts +1245 -0
  151. package/dist/_types/contracts/timeline.d.ts +4942 -0
  152. package/dist/_types/contracts/transcription.d.ts +80 -0
  153. package/dist/_types/contracts/video-generation.d.ts +643 -0
  154. package/dist/_types/contracts/video-review.d.ts +1871 -0
  155. package/dist/_types/contracts/visual-exploration.d.ts +1586 -0
  156. package/dist/_types/contracts/visual-layer-render.d.ts +2777 -0
  157. package/dist/_types/contracts/visual-layer.d.ts +112 -0
  158. package/dist/_types/contracts/visual-sequence.d.ts +121 -0
  159. package/dist/_types/contracts/writer-proposal.d.ts +268 -0
  160. package/dist/_types/sdk/account.d.ts +109 -0
  161. package/dist/_types/sdk/auxiliary-media.d.ts +43 -0
  162. package/dist/_types/sdk/catalog/agent-host-execution.d.ts +1551 -0
  163. package/dist/_types/sdk/catalog/agent-host.d.ts +344 -0
  164. package/dist/_types/sdk/catalog/assembly.d.ts +37634 -0
  165. package/dist/_types/sdk/catalog/audio-caption.d.ts +1374 -0
  166. package/dist/_types/sdk/catalog/canonical-repair.d.ts +4584 -0
  167. package/dist/_types/sdk/catalog/composition-source.d.ts +1556 -0
  168. package/dist/_types/sdk/catalog/composition.d.ts +2815 -0
  169. package/dist/_types/sdk/catalog/core.d.ts +3049 -0
  170. package/dist/_types/sdk/catalog/delivery.d.ts +14169 -0
  171. package/dist/_types/sdk/catalog/discovery.d.ts +75 -0
  172. package/dist/_types/sdk/catalog/editor.d.ts +6540 -0
  173. package/dist/_types/sdk/catalog/generation.d.ts +942 -0
  174. package/dist/_types/sdk/catalog/imported-visual.d.ts +3111 -0
  175. package/dist/_types/sdk/catalog/keyframe-review.d.ts +859 -0
  176. package/dist/_types/sdk/catalog/lifecycle-events.d.ts +329 -0
  177. package/dist/_types/sdk/catalog/mcp.d.ts +245 -0
  178. package/dist/_types/sdk/catalog/media-descriptors.d.ts +139 -0
  179. package/dist/_types/sdk/catalog/media-observation.d.ts +958 -0
  180. package/dist/_types/sdk/catalog/native-tool-authority.d.ts +281 -0
  181. package/dist/_types/sdk/catalog/navigation.d.ts +559 -0
  182. package/dist/_types/sdk/catalog/planning-intelligence.d.ts +2031 -0
  183. package/dist/_types/sdk/catalog/programmatic-exploration.d.ts +9855 -0
  184. package/dist/_types/sdk/catalog/programmatic-review.d.ts +1106 -0
  185. package/dist/_types/sdk/catalog/provider.d.ts +4439 -0
  186. package/dist/_types/sdk/catalog/reference-preview.d.ts +180 -0
  187. package/dist/_types/sdk/catalog/repair-strategy.d.ts +8916 -0
  188. package/dist/_types/sdk/catalog/reviewer.d.ts +23133 -0
  189. package/dist/_types/sdk/catalog/shot-preparation.d.ts +2974 -0
  190. package/dist/_types/sdk/catalog/sound-making-plan.d.ts +1778 -0
  191. package/dist/_types/sdk/catalog/source-sync.d.ts +1313 -0
  192. package/dist/_types/sdk/catalog/spec.d.ts +37 -0
  193. package/dist/_types/sdk/catalog/speech.d.ts +397 -0
  194. package/dist/_types/sdk/catalog/temporal-evidence.d.ts +391 -0
  195. package/dist/_types/sdk/catalog/video-review.d.ts +2149 -0
  196. package/dist/_types/sdk/catalog/visual-exploration.d.ts +10838 -0
  197. package/dist/_types/sdk/client.d.ts +75 -0
  198. package/dist/_types/sdk/desktop-catalogue.d.ts +25 -0
  199. package/dist/_types/sdk/desktop-previews.d.ts +118 -0
  200. package/dist/_types/sdk/desktop-releases.d.ts +75 -0
  201. package/dist/_types/sdk/errors.d.ts +9 -0
  202. package/dist/_types/sdk/evidence-image.d.ts +22 -0
  203. package/dist/_types/sdk/image-media.d.ts +43 -0
  204. package/dist/_types/sdk/index.d.ts +16 -0
  205. package/dist/_types/sdk/local-runtime/device-client.d.ts +77 -0
  206. package/dist/_types/sdk/local-runtime-client.d.ts +932 -0
  207. package/dist/_types/sdk/mcp-client.d.ts +55 -0
  208. package/dist/_types/sdk/mcp-image.d.ts +52 -0
  209. package/dist/_types/sdk/media.d.ts +104 -0
  210. package/dist/_types/sdk/navigation-client.d.ts +141 -0
  211. package/dist/_types/sdk/navigation-facade.d.ts +458 -0
  212. package/dist/_types/sdk/observe.d.ts +51 -0
  213. package/dist/_types/sdk/runtime-authority.d.ts +103 -0
  214. package/dist/_types/sdk/transport/http.d.ts +39 -0
  215. package/dist/account.d.ts +1 -0
  216. package/dist/account.js +1 -0
  217. package/dist/desktop-previews.d.ts +1 -0
  218. package/dist/desktop-previews.js +1 -0
  219. package/dist/desktop-releases.d.ts +1 -0
  220. package/dist/desktop-releases.js +1 -0
  221. package/dist/errors.d.ts +1 -0
  222. package/dist/errors.js +1 -0
  223. package/dist/index.d.ts +2 -0
  224. package/dist/index.js +1 -0
  225. package/dist/local-runtime.d.ts +1 -0
  226. package/dist/local-runtime.js +1 -0
  227. package/dist/native/Bootstrap.ps1 +90 -0
  228. package/dist/native/JobNative.cs +127 -0
  229. package/dist/native/JobRunner.cs +360 -0
  230. package/dist/native/NativeMain.cs +146 -0
  231. package/dist/native/PipeBridge.cs +260 -0
  232. package/dist/native/PrivateAccess.cs +152 -0
  233. package/dist/runtime-authority.d.ts +1 -0
  234. package/dist/runtime-authority.js +1 -0
  235. package/package.json +50 -3
@@ -0,0 +1,4584 @@
1
+ export declare const canonicalRepairOperations: {
2
+ readonly "canonical-repair.author-review1": import("./spec.js").HttpOperationSpec<{
3
+ tenantId: string;
4
+ projectId: string;
5
+ productionId: string;
6
+ mediaType: "IMAGE" | "VIDEO";
7
+ generationId: string;
8
+ reviewId: string;
9
+ requirementKey: string;
10
+ reason: string;
11
+ expectedProductionRevision: number;
12
+ expectedCaseVersion: number;
13
+ budget: {
14
+ maxSemanticAttempts: number;
15
+ maxElapsedMs: number;
16
+ currency: "USD";
17
+ maxCostMicros: number;
18
+ maxConsecutiveNoImprovement: number;
19
+ };
20
+ idempotencyKey: string;
21
+ }, {
22
+ tenantId: string & import("zod").$brand<"TenantId">;
23
+ projectId: string & import("zod").$brand<"ProjectId">;
24
+ productionId: string & import("zod").$brand<"ProductionId">;
25
+ mediaType: "IMAGE" | "VIDEO";
26
+ generationId: string;
27
+ reviewId: string;
28
+ requirementKey: string;
29
+ reason: string;
30
+ expectedProductionRevision: number;
31
+ expectedCaseVersion: number;
32
+ budget: {
33
+ maxSemanticAttempts: number;
34
+ maxElapsedMs: number;
35
+ currency: "USD";
36
+ maxCostMicros: number;
37
+ maxConsecutiveNoImprovement: number;
38
+ };
39
+ idempotencyKey: string;
40
+ }, {
41
+ semanticStatus: "SUCCESS";
42
+ decision: {
43
+ id: string;
44
+ tenantId: string & import("zod").$brand<"TenantId">;
45
+ projectId: string & import("zod").$brand<"ProjectId">;
46
+ productionId: string & import("zod").$brand<"ProductionId">;
47
+ caseId: string;
48
+ caseVersion: number;
49
+ basis: {
50
+ scope: {
51
+ tenantId: string & import("zod").$brand<"TenantId">;
52
+ projectId: string & import("zod").$brand<"ProjectId">;
53
+ productionId: string & import("zod").$brand<"ProductionId">;
54
+ };
55
+ findingId: string;
56
+ contextFingerprint: string;
57
+ };
58
+ sourceReviewId: string;
59
+ sourceRenderId: string | null;
60
+ sourceBasisFingerprint: string;
61
+ affectedScopeFingerprint: string;
62
+ obligationFingerprint: string;
63
+ proposal: {
64
+ origin: {
65
+ kind: "EXTERNAL_AGENT_HOST";
66
+ label: string;
67
+ };
68
+ summary: string;
69
+ alternatives: {
70
+ id: string;
71
+ rationale: string;
72
+ whySmallerChangeInsufficient: string;
73
+ action: {
74
+ kind: "REVISE_COMPOSITION";
75
+ localityIndex: number;
76
+ patches: ({
77
+ kind: "PARAMETER_VALUE";
78
+ name: string;
79
+ value: string | number | boolean;
80
+ } | {
81
+ kind: "BINDING_REPLACE";
82
+ binding: {
83
+ name: string;
84
+ artifactId: string;
85
+ representationId: string;
86
+ checksumSha256: string;
87
+ declaredOrigin: "IMPORTED" | "UNKNOWN" | "CODE" | "AI" | "HUMAN";
88
+ purpose: "SOURCE" | "DATA" | "FONT" | "IMAGE" | "VIDEO";
89
+ };
90
+ })[];
91
+ coordinatedConsumers?: ({
92
+ role: "PRIMARY_VISUAL";
93
+ clipOrdinal: number;
94
+ } | {
95
+ role: "VISUAL_LAYER";
96
+ visualLayerId: string;
97
+ })[] | undefined;
98
+ } | {
99
+ kind: "TRIM_CLIP";
100
+ ordinal: number;
101
+ sourceInMs: number;
102
+ sourceOutMs: number;
103
+ } | {
104
+ kind: "REVISE_CAPTIONS";
105
+ content: {
106
+ language: string;
107
+ durationMs: number;
108
+ cues: {
109
+ startMs: number;
110
+ endMs: number;
111
+ text: string;
112
+ }[];
113
+ };
114
+ } | {
115
+ kind: "ADJUST_TRANSITION";
116
+ ordinal: number;
117
+ transition: "CUT" | {
118
+ kind: "CROSS_DISSOLVE_V1";
119
+ durationFrames: number;
120
+ };
121
+ } | {
122
+ kind: "ADJUST_AUDIO_COMPOSITION";
123
+ audio: {
124
+ tracks: {
125
+ sourceInMs: number;
126
+ sourceOutMs: number;
127
+ startMs: number;
128
+ gainPermille: number;
129
+ purpose: "VOICEOVER" | "MUSIC";
130
+ versionId: string;
131
+ }[];
132
+ duckingMusicPermille: number;
133
+ };
134
+ } | {
135
+ kind: "ACKNOWLEDGE_WARNINGS";
136
+ acknowledgements: {
137
+ key: string;
138
+ reason: string;
139
+ }[];
140
+ } | {
141
+ kind: "REGENERATE_SHOT";
142
+ shotId: string;
143
+ } | {
144
+ kind: "REQUEST_HUMAN_INPUT";
145
+ question: string;
146
+ } | {
147
+ kind: "REQUEST_CANONICAL_CHANGE";
148
+ requestedChange: string;
149
+ };
150
+ }[];
151
+ selectedAlternativeId: string;
152
+ };
153
+ selectedAlternativeId: string;
154
+ handoff: {
155
+ kind: "COMPOSITION_REVISE";
156
+ locality: {
157
+ schemaVersion: 1;
158
+ sourceKind: "CODE";
159
+ role: "PRIMARY_VISUAL" | "VISUAL_LAYER";
160
+ compositionId: string;
161
+ compositionVersionId: string;
162
+ compositionVersion: number;
163
+ compositionFingerprint: string;
164
+ renderId: string;
165
+ renderManifestFingerprint: string;
166
+ artifactId: string;
167
+ representationId: string;
168
+ checksumSha256: string;
169
+ clipOrdinal: number | null;
170
+ visualLayerId: string | null;
171
+ sourceInFrame: number;
172
+ sourceOutFrame: number;
173
+ mapping: "INTERSECTING_NATIVE_30FPS_FRAME_CELLS";
174
+ };
175
+ input: {
176
+ tenantId: string;
177
+ productionId: string;
178
+ expectedProductionRevision: number;
179
+ basis: {
180
+ briefVersionId: string;
181
+ storyVersionId: string;
182
+ planVersionId: string;
183
+ shotId: string | null;
184
+ };
185
+ content: {
186
+ schemaVersion: 1;
187
+ provider: "HYPERFRAME";
188
+ dialect: "HYPERFRAME_HTML_GSAP_V1";
189
+ role: "PRIMARY_VISUAL" | "VISUAL_LAYER";
190
+ executionClass: "LIVE" | "TEST_ONLY";
191
+ intent: string;
192
+ viewport: {
193
+ width: number;
194
+ height: number;
195
+ };
196
+ clock: {
197
+ numerator: number;
198
+ denominator: number;
199
+ frameCount: number;
200
+ };
201
+ entrypoint: string;
202
+ parameterSchemaVersion: 1;
203
+ parameters: ({
204
+ name: string;
205
+ type: "STRING";
206
+ value: string;
207
+ maxLength: number;
208
+ } | {
209
+ name: string;
210
+ type: "NUMBER";
211
+ value: number;
212
+ minimum: number;
213
+ maximum: number;
214
+ } | {
215
+ name: string;
216
+ type: "BOOLEAN";
217
+ value: boolean;
218
+ })[];
219
+ bindings: {
220
+ name: string;
221
+ purpose: "SOURCE" | "DEPENDENCY_MANIFEST" | "DEPENDENCY_LOCK" | "DATA" | "FONT" | "IMAGE" | "VIDEO";
222
+ artifactId: string;
223
+ representationId: string;
224
+ checksumSha256: string;
225
+ declaredOrigin: "IMPORTED" | "UNKNOWN" | "CODE" | "AI" | "HUMAN";
226
+ }[];
227
+ dependencies: {
228
+ name: string;
229
+ version: string;
230
+ integrity: string;
231
+ }[];
232
+ randomSeed: number | null;
233
+ };
234
+ compositionId: string;
235
+ expectedVersion: number;
236
+ previousVersionId: string;
237
+ };
238
+ renderProfileId: "HYPERFRAME_1080P30_FRAME_CACHE_V2" | "HYPERFRAME_1080P30_FULL_PAINT_V1" | "HYPERFRAME_RGBA_PNG30_FULL_PAINT_V1";
239
+ sourceReviewRequired: boolean;
240
+ coordinatedConsumers?: ({
241
+ role: "PRIMARY_VISUAL";
242
+ clipOrdinal: number;
243
+ } | {
244
+ role: "VISUAL_LAYER";
245
+ visualLayerId: string;
246
+ })[] | undefined;
247
+ } | {
248
+ kind: "TIMELINE_BUILD";
249
+ input: {
250
+ tenantId: string & import("zod").$brand<"TenantId">;
251
+ productionId: string & import("zod").$brand<"ProductionId">;
252
+ expectedProductionRevision: number;
253
+ clips: {
254
+ shotId: string & import("zod").$brand<"ShotId">;
255
+ acceptanceId: string;
256
+ sourceInMs: number;
257
+ sourceOutMs: number;
258
+ framing?: {
259
+ algorithm: "CROP_PAD_V1";
260
+ crop: {
261
+ x: number;
262
+ y: number;
263
+ width: number;
264
+ height: number;
265
+ };
266
+ anchorXPermille: number;
267
+ anchorYPermille: number;
268
+ } | undefined;
269
+ transition?: "CUT" | {
270
+ kind: "CROSS_DISSOLVE_V1";
271
+ durationFrames: number;
272
+ } | undefined;
273
+ }[];
274
+ expectedTimelineVersion: number;
275
+ schemaVersion?: 2 | 3 | undefined;
276
+ audio?: {
277
+ tracks: {
278
+ sourceInMs: number;
279
+ sourceOutMs: number;
280
+ startMs: number;
281
+ gainPermille: number;
282
+ purpose: "VOICEOVER" | "MUSIC";
283
+ versionId: string;
284
+ }[];
285
+ duckingMusicPermille: number;
286
+ } | undefined;
287
+ graphics?: {
288
+ artifactId: string & import("zod").$brand<"ArtifactId">;
289
+ placement: {
290
+ startFrame: number;
291
+ endFrame: number;
292
+ anchor: "TOP_LEFT" | "TOP_RIGHT" | "BOTTOM_LEFT" | "BOTTOM_RIGHT";
293
+ widthPermille: number;
294
+ marginXPermille: number;
295
+ marginYPermille: number;
296
+ opacityPermille: number;
297
+ };
298
+ }[] | undefined;
299
+ sourceSound?: {
300
+ soundPlanVersionId: string;
301
+ clips: {
302
+ ordinal: number;
303
+ treatment: {
304
+ policy: "KEEP" | "MUTE" | "DUCK";
305
+ gainPermille: number;
306
+ duckingPermille: number;
307
+ };
308
+ importedAudioVersionId?: string | undefined;
309
+ }[];
310
+ speechCues: {
311
+ cueId: string;
312
+ audioVersionId: string;
313
+ }[];
314
+ duckingMusicPermille?: number | undefined;
315
+ } | undefined;
316
+ visualLayers?: {
317
+ id: string;
318
+ artifactId: string & import("zod").$brand<"ArtifactId">;
319
+ sourceInFrame: number;
320
+ sourceOutFrame: number;
321
+ startFrame: number;
322
+ zIndex: number;
323
+ opacityPermille: number;
324
+ placement: {
325
+ xPermille: number;
326
+ yPermille: number;
327
+ widthPermille: number;
328
+ heightPermille: number;
329
+ };
330
+ }[] | undefined;
331
+ captionVersionId?: string | undefined;
332
+ };
333
+ } | {
334
+ kind: "CAPTION_AUTHOR";
335
+ input: {
336
+ tenantId: string & import("zod").$brand<"TenantId">;
337
+ productionId: string & import("zod").$brand<"ProductionId">;
338
+ expectedProductionRevision: number;
339
+ content: {
340
+ language: string;
341
+ durationMs: number;
342
+ cues: {
343
+ startMs: number;
344
+ endMs: number;
345
+ text: string;
346
+ }[];
347
+ };
348
+ expectedCaptionVersion: number;
349
+ };
350
+ } | {
351
+ kind: "FINAL_READY_DECIDE";
352
+ input: {
353
+ reviewId: string;
354
+ renderId: string;
355
+ tenantId: string & import("zod").$brand<"TenantId">;
356
+ reason: string;
357
+ productionId: string & import("zod").$brand<"ProductionId">;
358
+ expectedProductionRevision: number;
359
+ action: "REJECT" | "SELECT";
360
+ acknowledgeWarnings: boolean;
361
+ basisFingerprint: string;
362
+ expectedFinalReadyVersion: number;
363
+ };
364
+ } | {
365
+ kind: "REGENERATION_INTENT";
366
+ preparationQuery: {
367
+ tenantId: string & import("zod").$brand<"TenantId">;
368
+ productionId: string & import("zod").$brand<"ProductionId">;
369
+ shotId: string & import("zod").$brand<"ShotId">;
370
+ mediaType: "IMAGE" | "VIDEO";
371
+ };
372
+ admission: "EXPLICIT_NATIVE_PREPARATION_AND_SELECTION_REQUIRED";
373
+ } | {
374
+ kind: "HUMAN_INPUT_INTENT";
375
+ question: string;
376
+ } | {
377
+ kind: "CANONICAL_CHANGE_INTENT";
378
+ requestedChange: string;
379
+ };
380
+ budget: {
381
+ maxSemanticAttempts: number;
382
+ maxElapsedMs: number;
383
+ currency: "USD";
384
+ maxCostMicros: number;
385
+ maxConsecutiveNoImprovement: number;
386
+ };
387
+ createdByPrincipalId: string & import("zod").$brand<"PrincipalId">;
388
+ createdAt: string;
389
+ review1Source?: {
390
+ id: string;
391
+ tenantId: string & import("zod").$brand<"TenantId">;
392
+ projectId: string & import("zod").$brand<"ProjectId">;
393
+ productionId: string & import("zod").$brand<"ProductionId">;
394
+ shotId: string & import("zod").$brand<"ShotId">;
395
+ mediaType: "IMAGE" | "VIDEO";
396
+ generationId: string;
397
+ candidateId: string;
398
+ reviewId: string;
399
+ artifactId: string;
400
+ representationId: string;
401
+ checksumSha256: string;
402
+ preparationId: string;
403
+ contractId: string;
404
+ contractFingerprint: string;
405
+ executionClass: "LIVE" | "TEST_ONLY";
406
+ requirement: {
407
+ key: string;
408
+ family: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "SHOT_INTENT" | "BOUNDARY_CONTINUITY" | "SOUND";
409
+ expected: string;
410
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
411
+ evidenceWindow: "START" | "END" | "WHOLE_VIDEO" | "TEMPORAL";
412
+ intentPath?: string | undefined;
413
+ continuity?: {
414
+ kind: "STATE";
415
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
416
+ entry: string;
417
+ exit: string;
418
+ changes?: {
419
+ atPermille: number;
420
+ from: string;
421
+ to: string;
422
+ reason: string;
423
+ }[] | undefined;
424
+ } | {
425
+ kind: "TIME";
426
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
427
+ entryMs: number;
428
+ exitMs: number;
429
+ jumps?: {
430
+ atPermille: number;
431
+ fromMs: number;
432
+ toMs: number;
433
+ reason: string;
434
+ }[] | undefined;
435
+ } | undefined;
436
+ interval?: {
437
+ startMs: number;
438
+ endMs: number;
439
+ } | undefined;
440
+ } | {
441
+ key: string;
442
+ expected: string;
443
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
444
+ intentPath?: string | undefined;
445
+ };
446
+ observation: {
447
+ key: string;
448
+ status: "SATISFIED" | "VIOLATED" | "NOT_OBSERVABLE" | "NOT_APPLICABLE";
449
+ confidence: "CLEAR" | "UNCERTAIN";
450
+ observed: string;
451
+ listeningEvidenceIds?: string[] | undefined;
452
+ continuitySamples?: {
453
+ atMs: number;
454
+ state?: string | undefined;
455
+ storyTimeMs?: number | undefined;
456
+ }[] | undefined;
457
+ temporalEvidenceIds?: string[] | undefined;
458
+ interval?: {
459
+ startMs: number;
460
+ endMs: number;
461
+ } | undefined;
462
+ } | {
463
+ key: string;
464
+ status: "SATISFIED" | "VIOLATED" | "NOT_OBSERVABLE" | "NOT_APPLICABLE";
465
+ confidence: "CLEAR" | "UNCERTAIN";
466
+ observed: string;
467
+ region?: {
468
+ x: number;
469
+ y: number;
470
+ width: number;
471
+ height: number;
472
+ } | undefined;
473
+ };
474
+ blocking: boolean;
475
+ severity: "WARNING" | "BLOCKING";
476
+ basisFingerprint: string;
477
+ createdAt: string;
478
+ framePurpose?: string | undefined;
479
+ } | undefined;
480
+ };
481
+ productionRevision: number;
482
+ }, {
483
+ semanticStatus: "SUCCESS";
484
+ decision: {
485
+ id: string;
486
+ tenantId: string;
487
+ projectId: string;
488
+ productionId: string;
489
+ caseId: string;
490
+ caseVersion: number;
491
+ basis: {
492
+ scope: {
493
+ tenantId: string;
494
+ projectId: string;
495
+ productionId: string;
496
+ };
497
+ findingId: string;
498
+ contextFingerprint: string;
499
+ };
500
+ sourceReviewId: string;
501
+ sourceRenderId: string | null;
502
+ sourceBasisFingerprint: string;
503
+ affectedScopeFingerprint: string;
504
+ obligationFingerprint: string;
505
+ proposal: {
506
+ origin: {
507
+ kind: "EXTERNAL_AGENT_HOST";
508
+ label: string;
509
+ };
510
+ summary: string;
511
+ alternatives: {
512
+ id: string;
513
+ rationale: string;
514
+ whySmallerChangeInsufficient: string;
515
+ action: {
516
+ kind: "REVISE_COMPOSITION";
517
+ localityIndex: number;
518
+ patches: ({
519
+ kind: "PARAMETER_VALUE";
520
+ name: string;
521
+ value: string | number | boolean;
522
+ } | {
523
+ kind: "BINDING_REPLACE";
524
+ binding: {
525
+ name: string;
526
+ artifactId: string;
527
+ representationId: string;
528
+ checksumSha256: string;
529
+ declaredOrigin: "IMPORTED" | "UNKNOWN" | "CODE" | "AI" | "HUMAN";
530
+ purpose: "SOURCE" | "DATA" | "FONT" | "IMAGE" | "VIDEO";
531
+ };
532
+ })[];
533
+ coordinatedConsumers?: ({
534
+ role: "PRIMARY_VISUAL";
535
+ clipOrdinal: number;
536
+ } | {
537
+ role: "VISUAL_LAYER";
538
+ visualLayerId: string;
539
+ })[] | undefined;
540
+ } | {
541
+ kind: "TRIM_CLIP";
542
+ ordinal: number;
543
+ sourceInMs: number;
544
+ sourceOutMs: number;
545
+ } | {
546
+ kind: "REVISE_CAPTIONS";
547
+ content: {
548
+ language: string;
549
+ durationMs: number;
550
+ cues: {
551
+ startMs: number;
552
+ endMs: number;
553
+ text: string;
554
+ }[];
555
+ };
556
+ } | {
557
+ kind: "ADJUST_TRANSITION";
558
+ ordinal: number;
559
+ transition: "CUT" | {
560
+ kind: "CROSS_DISSOLVE_V1";
561
+ durationFrames: number;
562
+ };
563
+ } | {
564
+ kind: "ADJUST_AUDIO_COMPOSITION";
565
+ audio: {
566
+ tracks: {
567
+ sourceInMs: number;
568
+ sourceOutMs: number;
569
+ startMs: number;
570
+ gainPermille: number;
571
+ purpose: "VOICEOVER" | "MUSIC";
572
+ versionId: string;
573
+ }[];
574
+ duckingMusicPermille?: number | undefined;
575
+ };
576
+ } | {
577
+ kind: "ACKNOWLEDGE_WARNINGS";
578
+ acknowledgements: {
579
+ key: string;
580
+ reason: string;
581
+ }[];
582
+ } | {
583
+ kind: "REGENERATE_SHOT";
584
+ shotId: string;
585
+ } | {
586
+ kind: "REQUEST_HUMAN_INPUT";
587
+ question: string;
588
+ } | {
589
+ kind: "REQUEST_CANONICAL_CHANGE";
590
+ requestedChange: string;
591
+ };
592
+ }[];
593
+ selectedAlternativeId: string;
594
+ };
595
+ selectedAlternativeId: string;
596
+ handoff: {
597
+ kind: "COMPOSITION_REVISE";
598
+ locality: {
599
+ schemaVersion: 1;
600
+ sourceKind: "CODE";
601
+ role: "PRIMARY_VISUAL" | "VISUAL_LAYER";
602
+ compositionId: string;
603
+ compositionVersionId: string;
604
+ compositionVersion: number;
605
+ compositionFingerprint: string;
606
+ renderId: string;
607
+ renderManifestFingerprint: string;
608
+ artifactId: string;
609
+ representationId: string;
610
+ checksumSha256: string;
611
+ clipOrdinal: number | null;
612
+ visualLayerId: string | null;
613
+ sourceInFrame: number;
614
+ sourceOutFrame: number;
615
+ mapping: "INTERSECTING_NATIVE_30FPS_FRAME_CELLS";
616
+ };
617
+ input: {
618
+ tenantId: string;
619
+ productionId: string;
620
+ expectedProductionRevision: number;
621
+ basis: {
622
+ briefVersionId: string;
623
+ storyVersionId: string;
624
+ planVersionId: string;
625
+ shotId: string | null;
626
+ };
627
+ content: {
628
+ schemaVersion: 1;
629
+ provider: "HYPERFRAME";
630
+ dialect: "HYPERFRAME_HTML_GSAP_V1";
631
+ role: "PRIMARY_VISUAL" | "VISUAL_LAYER";
632
+ executionClass: "LIVE" | "TEST_ONLY";
633
+ intent: string;
634
+ viewport: {
635
+ width: number;
636
+ height: number;
637
+ };
638
+ clock: {
639
+ numerator: number;
640
+ denominator: number;
641
+ frameCount: number;
642
+ };
643
+ entrypoint: string;
644
+ parameterSchemaVersion: 1;
645
+ parameters: ({
646
+ name: string;
647
+ type: "STRING";
648
+ value: string;
649
+ maxLength: number;
650
+ } | {
651
+ name: string;
652
+ type: "NUMBER";
653
+ value: number;
654
+ minimum: number;
655
+ maximum: number;
656
+ } | {
657
+ name: string;
658
+ type: "BOOLEAN";
659
+ value: boolean;
660
+ })[];
661
+ bindings: {
662
+ name: string;
663
+ purpose: "SOURCE" | "DEPENDENCY_MANIFEST" | "DEPENDENCY_LOCK" | "DATA" | "FONT" | "IMAGE" | "VIDEO";
664
+ artifactId: string;
665
+ representationId: string;
666
+ checksumSha256: string;
667
+ declaredOrigin: "IMPORTED" | "UNKNOWN" | "CODE" | "AI" | "HUMAN";
668
+ }[];
669
+ dependencies: {
670
+ name: string;
671
+ version: string;
672
+ integrity: string;
673
+ }[];
674
+ randomSeed: number | null;
675
+ };
676
+ compositionId: string;
677
+ expectedVersion: number;
678
+ previousVersionId: string;
679
+ };
680
+ renderProfileId: "HYPERFRAME_1080P30_FRAME_CACHE_V2" | "HYPERFRAME_1080P30_FULL_PAINT_V1" | "HYPERFRAME_RGBA_PNG30_FULL_PAINT_V1";
681
+ sourceReviewRequired: boolean;
682
+ coordinatedConsumers?: ({
683
+ role: "PRIMARY_VISUAL";
684
+ clipOrdinal: number;
685
+ } | {
686
+ role: "VISUAL_LAYER";
687
+ visualLayerId: string;
688
+ })[] | undefined;
689
+ } | {
690
+ kind: "TIMELINE_BUILD";
691
+ input: {
692
+ tenantId: string;
693
+ productionId: string;
694
+ expectedProductionRevision: number;
695
+ clips: {
696
+ shotId: string;
697
+ acceptanceId: string;
698
+ sourceInMs: number;
699
+ sourceOutMs: number;
700
+ framing?: {
701
+ algorithm: "CROP_PAD_V1";
702
+ crop: {
703
+ x: number;
704
+ y: number;
705
+ width: number;
706
+ height: number;
707
+ };
708
+ anchorXPermille: number;
709
+ anchorYPermille: number;
710
+ } | undefined;
711
+ transition?: "CUT" | {
712
+ kind: "CROSS_DISSOLVE_V1";
713
+ durationFrames: number;
714
+ } | undefined;
715
+ }[];
716
+ expectedTimelineVersion: number;
717
+ schemaVersion?: 2 | 3 | undefined;
718
+ audio?: {
719
+ tracks: {
720
+ sourceInMs: number;
721
+ sourceOutMs: number;
722
+ startMs: number;
723
+ gainPermille: number;
724
+ purpose: "VOICEOVER" | "MUSIC";
725
+ versionId: string;
726
+ }[];
727
+ duckingMusicPermille?: number | undefined;
728
+ } | undefined;
729
+ graphics?: {
730
+ artifactId: string;
731
+ placement: {
732
+ startFrame: number;
733
+ endFrame: number;
734
+ anchor: "TOP_LEFT" | "TOP_RIGHT" | "BOTTOM_LEFT" | "BOTTOM_RIGHT";
735
+ widthPermille: number;
736
+ marginXPermille: number;
737
+ marginYPermille: number;
738
+ opacityPermille: number;
739
+ };
740
+ }[] | undefined;
741
+ sourceSound?: {
742
+ soundPlanVersionId: string;
743
+ clips: {
744
+ ordinal: number;
745
+ treatment: {
746
+ policy: "KEEP" | "MUTE" | "DUCK";
747
+ gainPermille: number;
748
+ duckingPermille: number;
749
+ };
750
+ importedAudioVersionId?: string | undefined;
751
+ }[];
752
+ speechCues: {
753
+ cueId: string;
754
+ audioVersionId: string;
755
+ }[];
756
+ duckingMusicPermille?: number | undefined;
757
+ } | undefined;
758
+ visualLayers?: {
759
+ id: string;
760
+ artifactId: string;
761
+ sourceInFrame: number;
762
+ sourceOutFrame: number;
763
+ startFrame: number;
764
+ zIndex: number;
765
+ opacityPermille: number;
766
+ placement: {
767
+ xPermille: number;
768
+ yPermille: number;
769
+ widthPermille: number;
770
+ heightPermille: number;
771
+ };
772
+ }[] | undefined;
773
+ captionVersionId?: string | undefined;
774
+ };
775
+ } | {
776
+ kind: "CAPTION_AUTHOR";
777
+ input: {
778
+ tenantId: string;
779
+ productionId: string;
780
+ expectedProductionRevision: number;
781
+ content: {
782
+ language: string;
783
+ durationMs: number;
784
+ cues: {
785
+ startMs: number;
786
+ endMs: number;
787
+ text: string;
788
+ }[];
789
+ };
790
+ expectedCaptionVersion: number;
791
+ };
792
+ } | {
793
+ kind: "FINAL_READY_DECIDE";
794
+ input: {
795
+ reviewId: string;
796
+ renderId: string;
797
+ tenantId: string;
798
+ reason: string;
799
+ productionId: string;
800
+ expectedProductionRevision: number;
801
+ action: "REJECT" | "SELECT";
802
+ basisFingerprint: string;
803
+ expectedFinalReadyVersion: number;
804
+ acknowledgeWarnings?: boolean | undefined;
805
+ };
806
+ } | {
807
+ kind: "REGENERATION_INTENT";
808
+ preparationQuery: {
809
+ tenantId: string;
810
+ productionId: string;
811
+ shotId: string;
812
+ mediaType: "IMAGE" | "VIDEO";
813
+ };
814
+ admission: "EXPLICIT_NATIVE_PREPARATION_AND_SELECTION_REQUIRED";
815
+ } | {
816
+ kind: "HUMAN_INPUT_INTENT";
817
+ question: string;
818
+ } | {
819
+ kind: "CANONICAL_CHANGE_INTENT";
820
+ requestedChange: string;
821
+ };
822
+ budget: {
823
+ maxSemanticAttempts: number;
824
+ maxElapsedMs: number;
825
+ currency: "USD";
826
+ maxCostMicros: number;
827
+ maxConsecutiveNoImprovement: number;
828
+ };
829
+ createdByPrincipalId: string;
830
+ createdAt: string;
831
+ review1Source?: {
832
+ id: string;
833
+ tenantId: string;
834
+ projectId: string;
835
+ productionId: string;
836
+ shotId: string;
837
+ mediaType: "IMAGE" | "VIDEO";
838
+ generationId: string;
839
+ candidateId: string;
840
+ reviewId: string;
841
+ artifactId: string;
842
+ representationId: string;
843
+ checksumSha256: string;
844
+ preparationId: string;
845
+ contractId: string;
846
+ contractFingerprint: string;
847
+ executionClass: "LIVE" | "TEST_ONLY";
848
+ requirement: {
849
+ key: string;
850
+ expected: string;
851
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
852
+ intentPath?: string | undefined;
853
+ } | {
854
+ key: string;
855
+ family: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "SHOT_INTENT" | "BOUNDARY_CONTINUITY" | "SOUND";
856
+ expected: string;
857
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
858
+ evidenceWindow: "START" | "END" | "WHOLE_VIDEO" | "TEMPORAL";
859
+ intentPath?: string | undefined;
860
+ continuity?: {
861
+ kind: "STATE";
862
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
863
+ entry: string;
864
+ exit: string;
865
+ changes?: {
866
+ atPermille: number;
867
+ from: string;
868
+ to: string;
869
+ reason: string;
870
+ }[] | undefined;
871
+ } | {
872
+ kind: "TIME";
873
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
874
+ entryMs: number;
875
+ exitMs: number;
876
+ jumps?: {
877
+ atPermille: number;
878
+ fromMs: number;
879
+ toMs: number;
880
+ reason: string;
881
+ }[] | undefined;
882
+ } | undefined;
883
+ interval?: {
884
+ startMs: number;
885
+ endMs: number;
886
+ } | undefined;
887
+ };
888
+ observation: {
889
+ key: string;
890
+ status: "SATISFIED" | "VIOLATED" | "NOT_OBSERVABLE" | "NOT_APPLICABLE";
891
+ confidence: "CLEAR" | "UNCERTAIN";
892
+ observed: string;
893
+ region?: {
894
+ x: number;
895
+ y: number;
896
+ width: number;
897
+ height: number;
898
+ } | undefined;
899
+ } | {
900
+ key: string;
901
+ status: "SATISFIED" | "VIOLATED" | "NOT_OBSERVABLE" | "NOT_APPLICABLE";
902
+ confidence: "CLEAR" | "UNCERTAIN";
903
+ observed: string;
904
+ listeningEvidenceIds?: string[] | undefined;
905
+ continuitySamples?: {
906
+ atMs: number;
907
+ state?: string | undefined;
908
+ storyTimeMs?: number | undefined;
909
+ }[] | undefined;
910
+ temporalEvidenceIds?: string[] | undefined;
911
+ interval?: {
912
+ startMs: number;
913
+ endMs: number;
914
+ } | undefined;
915
+ };
916
+ blocking: boolean;
917
+ severity: "WARNING" | "BLOCKING";
918
+ basisFingerprint: string;
919
+ createdAt: string;
920
+ framePurpose?: string | undefined;
921
+ } | undefined;
922
+ };
923
+ productionRevision: number;
924
+ }>;
925
+ readonly "canonical-repair.proof-review1": import("./spec.js").HttpOperationSpec<{
926
+ tenantId: string;
927
+ productionId: string;
928
+ planId: string;
929
+ attemptId: string;
930
+ generationId: string;
931
+ reviewId: string;
932
+ expectedProductionRevision: number;
933
+ idempotencyKey: string;
934
+ projectId: string;
935
+ }, {
936
+ tenantId: string & import("zod").$brand<"TenantId">;
937
+ productionId: string & import("zod").$brand<"ProductionId">;
938
+ planId: string;
939
+ attemptId: string;
940
+ generationId: string;
941
+ reviewId: string;
942
+ expectedProductionRevision: number;
943
+ idempotencyKey: string;
944
+ projectId: string & import("zod").$brand<"ProjectId">;
945
+ }, {
946
+ semanticStatus: "SUCCESS";
947
+ event: {
948
+ id: string;
949
+ attemptId: string;
950
+ version: number;
951
+ outcome: "WAIVED" | "AWAITING_REVIEW" | "IMPROVED" | "NO_IMPROVEMENT" | "OPERATIONAL_FAILURE";
952
+ renderId: string | null;
953
+ reviewId: string | null;
954
+ recordedAt: string;
955
+ generationId?: string | undefined;
956
+ };
957
+ productionRevision: number;
958
+ }, {
959
+ semanticStatus: "SUCCESS";
960
+ event: {
961
+ id: string;
962
+ attemptId: string;
963
+ version: number;
964
+ outcome: "WAIVED" | "AWAITING_REVIEW" | "IMPROVED" | "NO_IMPROVEMENT" | "OPERATIONAL_FAILURE";
965
+ renderId: string | null;
966
+ reviewId: string | null;
967
+ recordedAt: string;
968
+ generationId?: string | undefined;
969
+ };
970
+ productionRevision: number;
971
+ }>;
972
+ readonly "canonical-repair.author": import("./spec.js").HttpOperationSpec<{
973
+ strategy: {
974
+ basis: {
975
+ scope: {
976
+ tenantId: string;
977
+ projectId: string;
978
+ productionId: string;
979
+ };
980
+ findingId: string;
981
+ contextFingerprint: string;
982
+ };
983
+ proposal: {
984
+ origin: {
985
+ kind: "EXTERNAL_AGENT_HOST";
986
+ label: string;
987
+ };
988
+ summary: string;
989
+ alternatives: {
990
+ id: string;
991
+ rationale: string;
992
+ whySmallerChangeInsufficient: string;
993
+ action: {
994
+ kind: "REVISE_COMPOSITION";
995
+ localityIndex: number;
996
+ patches: ({
997
+ kind: "PARAMETER_VALUE";
998
+ name: string;
999
+ value: string | number | boolean;
1000
+ } | {
1001
+ kind: "BINDING_REPLACE";
1002
+ binding: {
1003
+ name: string;
1004
+ artifactId: string;
1005
+ representationId: string;
1006
+ checksumSha256: string;
1007
+ declaredOrigin: "IMPORTED" | "UNKNOWN" | "CODE" | "AI" | "HUMAN";
1008
+ purpose: "SOURCE" | "DATA" | "FONT" | "IMAGE" | "VIDEO";
1009
+ };
1010
+ })[];
1011
+ coordinatedConsumers?: ({
1012
+ role: "PRIMARY_VISUAL";
1013
+ clipOrdinal: number;
1014
+ } | {
1015
+ role: "VISUAL_LAYER";
1016
+ visualLayerId: string;
1017
+ })[] | undefined;
1018
+ } | {
1019
+ kind: "TRIM_CLIP";
1020
+ ordinal: number;
1021
+ sourceInMs: number;
1022
+ sourceOutMs: number;
1023
+ } | {
1024
+ kind: "REVISE_CAPTIONS";
1025
+ content: {
1026
+ language: string;
1027
+ durationMs: number;
1028
+ cues: {
1029
+ startMs: number;
1030
+ endMs: number;
1031
+ text: string;
1032
+ }[];
1033
+ };
1034
+ } | {
1035
+ kind: "ADJUST_TRANSITION";
1036
+ ordinal: number;
1037
+ transition: "CUT" | {
1038
+ kind: "CROSS_DISSOLVE_V1";
1039
+ durationFrames: number;
1040
+ };
1041
+ } | {
1042
+ kind: "ADJUST_AUDIO_COMPOSITION";
1043
+ audio: {
1044
+ tracks: {
1045
+ sourceInMs: number;
1046
+ sourceOutMs: number;
1047
+ startMs: number;
1048
+ gainPermille: number;
1049
+ purpose: "VOICEOVER" | "MUSIC";
1050
+ versionId: string;
1051
+ }[];
1052
+ duckingMusicPermille?: number | undefined;
1053
+ };
1054
+ } | {
1055
+ kind: "ACKNOWLEDGE_WARNINGS";
1056
+ acknowledgements: {
1057
+ key: string;
1058
+ reason: string;
1059
+ }[];
1060
+ } | {
1061
+ kind: "REGENERATE_SHOT";
1062
+ shotId: string;
1063
+ } | {
1064
+ kind: "REQUEST_HUMAN_INPUT";
1065
+ question: string;
1066
+ } | {
1067
+ kind: "REQUEST_CANONICAL_CHANGE";
1068
+ requestedChange: string;
1069
+ };
1070
+ }[];
1071
+ selectedAlternativeId: string;
1072
+ };
1073
+ };
1074
+ expectedProductionRevision: number;
1075
+ expectedCaseVersion: number;
1076
+ budget: {
1077
+ maxSemanticAttempts: number;
1078
+ maxElapsedMs: number;
1079
+ currency: "USD";
1080
+ maxCostMicros: number;
1081
+ maxConsecutiveNoImprovement: number;
1082
+ };
1083
+ idempotencyKey: string;
1084
+ tenantId: string;
1085
+ }, {
1086
+ strategy: {
1087
+ basis: {
1088
+ scope: {
1089
+ tenantId: string & import("zod").$brand<"TenantId">;
1090
+ projectId: string & import("zod").$brand<"ProjectId">;
1091
+ productionId: string & import("zod").$brand<"ProductionId">;
1092
+ };
1093
+ findingId: string;
1094
+ contextFingerprint: string;
1095
+ };
1096
+ proposal: {
1097
+ origin: {
1098
+ kind: "EXTERNAL_AGENT_HOST";
1099
+ label: string;
1100
+ };
1101
+ summary: string;
1102
+ alternatives: {
1103
+ id: string;
1104
+ rationale: string;
1105
+ whySmallerChangeInsufficient: string;
1106
+ action: {
1107
+ kind: "REVISE_COMPOSITION";
1108
+ localityIndex: number;
1109
+ patches: ({
1110
+ kind: "PARAMETER_VALUE";
1111
+ name: string;
1112
+ value: string | number | boolean;
1113
+ } | {
1114
+ kind: "BINDING_REPLACE";
1115
+ binding: {
1116
+ name: string;
1117
+ artifactId: string;
1118
+ representationId: string;
1119
+ checksumSha256: string;
1120
+ declaredOrigin: "IMPORTED" | "UNKNOWN" | "CODE" | "AI" | "HUMAN";
1121
+ purpose: "SOURCE" | "DATA" | "FONT" | "IMAGE" | "VIDEO";
1122
+ };
1123
+ })[];
1124
+ coordinatedConsumers?: ({
1125
+ role: "PRIMARY_VISUAL";
1126
+ clipOrdinal: number;
1127
+ } | {
1128
+ role: "VISUAL_LAYER";
1129
+ visualLayerId: string;
1130
+ })[] | undefined;
1131
+ } | {
1132
+ kind: "TRIM_CLIP";
1133
+ ordinal: number;
1134
+ sourceInMs: number;
1135
+ sourceOutMs: number;
1136
+ } | {
1137
+ kind: "REVISE_CAPTIONS";
1138
+ content: {
1139
+ language: string;
1140
+ durationMs: number;
1141
+ cues: {
1142
+ startMs: number;
1143
+ endMs: number;
1144
+ text: string;
1145
+ }[];
1146
+ };
1147
+ } | {
1148
+ kind: "ADJUST_TRANSITION";
1149
+ ordinal: number;
1150
+ transition: "CUT" | {
1151
+ kind: "CROSS_DISSOLVE_V1";
1152
+ durationFrames: number;
1153
+ };
1154
+ } | {
1155
+ kind: "ADJUST_AUDIO_COMPOSITION";
1156
+ audio: {
1157
+ tracks: {
1158
+ sourceInMs: number;
1159
+ sourceOutMs: number;
1160
+ startMs: number;
1161
+ gainPermille: number;
1162
+ purpose: "VOICEOVER" | "MUSIC";
1163
+ versionId: string;
1164
+ }[];
1165
+ duckingMusicPermille: number;
1166
+ };
1167
+ } | {
1168
+ kind: "ACKNOWLEDGE_WARNINGS";
1169
+ acknowledgements: {
1170
+ key: string;
1171
+ reason: string;
1172
+ }[];
1173
+ } | {
1174
+ kind: "REGENERATE_SHOT";
1175
+ shotId: string;
1176
+ } | {
1177
+ kind: "REQUEST_HUMAN_INPUT";
1178
+ question: string;
1179
+ } | {
1180
+ kind: "REQUEST_CANONICAL_CHANGE";
1181
+ requestedChange: string;
1182
+ };
1183
+ }[];
1184
+ selectedAlternativeId: string;
1185
+ };
1186
+ };
1187
+ expectedProductionRevision: number;
1188
+ expectedCaseVersion: number;
1189
+ budget: {
1190
+ maxSemanticAttempts: number;
1191
+ maxElapsedMs: number;
1192
+ currency: "USD";
1193
+ maxCostMicros: number;
1194
+ maxConsecutiveNoImprovement: number;
1195
+ };
1196
+ idempotencyKey: string;
1197
+ tenantId: string & import("zod").$brand<"TenantId">;
1198
+ }, {
1199
+ semanticStatus: "SUCCESS";
1200
+ decision: {
1201
+ id: string;
1202
+ tenantId: string & import("zod").$brand<"TenantId">;
1203
+ projectId: string & import("zod").$brand<"ProjectId">;
1204
+ productionId: string & import("zod").$brand<"ProductionId">;
1205
+ caseId: string;
1206
+ caseVersion: number;
1207
+ basis: {
1208
+ scope: {
1209
+ tenantId: string & import("zod").$brand<"TenantId">;
1210
+ projectId: string & import("zod").$brand<"ProjectId">;
1211
+ productionId: string & import("zod").$brand<"ProductionId">;
1212
+ };
1213
+ findingId: string;
1214
+ contextFingerprint: string;
1215
+ };
1216
+ sourceReviewId: string;
1217
+ sourceRenderId: string | null;
1218
+ sourceBasisFingerprint: string;
1219
+ affectedScopeFingerprint: string;
1220
+ obligationFingerprint: string;
1221
+ proposal: {
1222
+ origin: {
1223
+ kind: "EXTERNAL_AGENT_HOST";
1224
+ label: string;
1225
+ };
1226
+ summary: string;
1227
+ alternatives: {
1228
+ id: string;
1229
+ rationale: string;
1230
+ whySmallerChangeInsufficient: string;
1231
+ action: {
1232
+ kind: "REVISE_COMPOSITION";
1233
+ localityIndex: number;
1234
+ patches: ({
1235
+ kind: "PARAMETER_VALUE";
1236
+ name: string;
1237
+ value: string | number | boolean;
1238
+ } | {
1239
+ kind: "BINDING_REPLACE";
1240
+ binding: {
1241
+ name: string;
1242
+ artifactId: string;
1243
+ representationId: string;
1244
+ checksumSha256: string;
1245
+ declaredOrigin: "IMPORTED" | "UNKNOWN" | "CODE" | "AI" | "HUMAN";
1246
+ purpose: "SOURCE" | "DATA" | "FONT" | "IMAGE" | "VIDEO";
1247
+ };
1248
+ })[];
1249
+ coordinatedConsumers?: ({
1250
+ role: "PRIMARY_VISUAL";
1251
+ clipOrdinal: number;
1252
+ } | {
1253
+ role: "VISUAL_LAYER";
1254
+ visualLayerId: string;
1255
+ })[] | undefined;
1256
+ } | {
1257
+ kind: "TRIM_CLIP";
1258
+ ordinal: number;
1259
+ sourceInMs: number;
1260
+ sourceOutMs: number;
1261
+ } | {
1262
+ kind: "REVISE_CAPTIONS";
1263
+ content: {
1264
+ language: string;
1265
+ durationMs: number;
1266
+ cues: {
1267
+ startMs: number;
1268
+ endMs: number;
1269
+ text: string;
1270
+ }[];
1271
+ };
1272
+ } | {
1273
+ kind: "ADJUST_TRANSITION";
1274
+ ordinal: number;
1275
+ transition: "CUT" | {
1276
+ kind: "CROSS_DISSOLVE_V1";
1277
+ durationFrames: number;
1278
+ };
1279
+ } | {
1280
+ kind: "ADJUST_AUDIO_COMPOSITION";
1281
+ audio: {
1282
+ tracks: {
1283
+ sourceInMs: number;
1284
+ sourceOutMs: number;
1285
+ startMs: number;
1286
+ gainPermille: number;
1287
+ purpose: "VOICEOVER" | "MUSIC";
1288
+ versionId: string;
1289
+ }[];
1290
+ duckingMusicPermille: number;
1291
+ };
1292
+ } | {
1293
+ kind: "ACKNOWLEDGE_WARNINGS";
1294
+ acknowledgements: {
1295
+ key: string;
1296
+ reason: string;
1297
+ }[];
1298
+ } | {
1299
+ kind: "REGENERATE_SHOT";
1300
+ shotId: string;
1301
+ } | {
1302
+ kind: "REQUEST_HUMAN_INPUT";
1303
+ question: string;
1304
+ } | {
1305
+ kind: "REQUEST_CANONICAL_CHANGE";
1306
+ requestedChange: string;
1307
+ };
1308
+ }[];
1309
+ selectedAlternativeId: string;
1310
+ };
1311
+ selectedAlternativeId: string;
1312
+ handoff: {
1313
+ kind: "COMPOSITION_REVISE";
1314
+ locality: {
1315
+ schemaVersion: 1;
1316
+ sourceKind: "CODE";
1317
+ role: "PRIMARY_VISUAL" | "VISUAL_LAYER";
1318
+ compositionId: string;
1319
+ compositionVersionId: string;
1320
+ compositionVersion: number;
1321
+ compositionFingerprint: string;
1322
+ renderId: string;
1323
+ renderManifestFingerprint: string;
1324
+ artifactId: string;
1325
+ representationId: string;
1326
+ checksumSha256: string;
1327
+ clipOrdinal: number | null;
1328
+ visualLayerId: string | null;
1329
+ sourceInFrame: number;
1330
+ sourceOutFrame: number;
1331
+ mapping: "INTERSECTING_NATIVE_30FPS_FRAME_CELLS";
1332
+ };
1333
+ input: {
1334
+ tenantId: string;
1335
+ productionId: string;
1336
+ expectedProductionRevision: number;
1337
+ basis: {
1338
+ briefVersionId: string;
1339
+ storyVersionId: string;
1340
+ planVersionId: string;
1341
+ shotId: string | null;
1342
+ };
1343
+ content: {
1344
+ schemaVersion: 1;
1345
+ provider: "HYPERFRAME";
1346
+ dialect: "HYPERFRAME_HTML_GSAP_V1";
1347
+ role: "PRIMARY_VISUAL" | "VISUAL_LAYER";
1348
+ executionClass: "LIVE" | "TEST_ONLY";
1349
+ intent: string;
1350
+ viewport: {
1351
+ width: number;
1352
+ height: number;
1353
+ };
1354
+ clock: {
1355
+ numerator: number;
1356
+ denominator: number;
1357
+ frameCount: number;
1358
+ };
1359
+ entrypoint: string;
1360
+ parameterSchemaVersion: 1;
1361
+ parameters: ({
1362
+ name: string;
1363
+ type: "STRING";
1364
+ value: string;
1365
+ maxLength: number;
1366
+ } | {
1367
+ name: string;
1368
+ type: "NUMBER";
1369
+ value: number;
1370
+ minimum: number;
1371
+ maximum: number;
1372
+ } | {
1373
+ name: string;
1374
+ type: "BOOLEAN";
1375
+ value: boolean;
1376
+ })[];
1377
+ bindings: {
1378
+ name: string;
1379
+ purpose: "SOURCE" | "DEPENDENCY_MANIFEST" | "DEPENDENCY_LOCK" | "DATA" | "FONT" | "IMAGE" | "VIDEO";
1380
+ artifactId: string;
1381
+ representationId: string;
1382
+ checksumSha256: string;
1383
+ declaredOrigin: "IMPORTED" | "UNKNOWN" | "CODE" | "AI" | "HUMAN";
1384
+ }[];
1385
+ dependencies: {
1386
+ name: string;
1387
+ version: string;
1388
+ integrity: string;
1389
+ }[];
1390
+ randomSeed: number | null;
1391
+ };
1392
+ compositionId: string;
1393
+ expectedVersion: number;
1394
+ previousVersionId: string;
1395
+ };
1396
+ renderProfileId: "HYPERFRAME_1080P30_FRAME_CACHE_V2" | "HYPERFRAME_1080P30_FULL_PAINT_V1" | "HYPERFRAME_RGBA_PNG30_FULL_PAINT_V1";
1397
+ sourceReviewRequired: boolean;
1398
+ coordinatedConsumers?: ({
1399
+ role: "PRIMARY_VISUAL";
1400
+ clipOrdinal: number;
1401
+ } | {
1402
+ role: "VISUAL_LAYER";
1403
+ visualLayerId: string;
1404
+ })[] | undefined;
1405
+ } | {
1406
+ kind: "TIMELINE_BUILD";
1407
+ input: {
1408
+ tenantId: string & import("zod").$brand<"TenantId">;
1409
+ productionId: string & import("zod").$brand<"ProductionId">;
1410
+ expectedProductionRevision: number;
1411
+ clips: {
1412
+ shotId: string & import("zod").$brand<"ShotId">;
1413
+ acceptanceId: string;
1414
+ sourceInMs: number;
1415
+ sourceOutMs: number;
1416
+ framing?: {
1417
+ algorithm: "CROP_PAD_V1";
1418
+ crop: {
1419
+ x: number;
1420
+ y: number;
1421
+ width: number;
1422
+ height: number;
1423
+ };
1424
+ anchorXPermille: number;
1425
+ anchorYPermille: number;
1426
+ } | undefined;
1427
+ transition?: "CUT" | {
1428
+ kind: "CROSS_DISSOLVE_V1";
1429
+ durationFrames: number;
1430
+ } | undefined;
1431
+ }[];
1432
+ expectedTimelineVersion: number;
1433
+ schemaVersion?: 2 | 3 | undefined;
1434
+ audio?: {
1435
+ tracks: {
1436
+ sourceInMs: number;
1437
+ sourceOutMs: number;
1438
+ startMs: number;
1439
+ gainPermille: number;
1440
+ purpose: "VOICEOVER" | "MUSIC";
1441
+ versionId: string;
1442
+ }[];
1443
+ duckingMusicPermille: number;
1444
+ } | undefined;
1445
+ graphics?: {
1446
+ artifactId: string & import("zod").$brand<"ArtifactId">;
1447
+ placement: {
1448
+ startFrame: number;
1449
+ endFrame: number;
1450
+ anchor: "TOP_LEFT" | "TOP_RIGHT" | "BOTTOM_LEFT" | "BOTTOM_RIGHT";
1451
+ widthPermille: number;
1452
+ marginXPermille: number;
1453
+ marginYPermille: number;
1454
+ opacityPermille: number;
1455
+ };
1456
+ }[] | undefined;
1457
+ sourceSound?: {
1458
+ soundPlanVersionId: string;
1459
+ clips: {
1460
+ ordinal: number;
1461
+ treatment: {
1462
+ policy: "KEEP" | "MUTE" | "DUCK";
1463
+ gainPermille: number;
1464
+ duckingPermille: number;
1465
+ };
1466
+ importedAudioVersionId?: string | undefined;
1467
+ }[];
1468
+ speechCues: {
1469
+ cueId: string;
1470
+ audioVersionId: string;
1471
+ }[];
1472
+ duckingMusicPermille?: number | undefined;
1473
+ } | undefined;
1474
+ visualLayers?: {
1475
+ id: string;
1476
+ artifactId: string & import("zod").$brand<"ArtifactId">;
1477
+ sourceInFrame: number;
1478
+ sourceOutFrame: number;
1479
+ startFrame: number;
1480
+ zIndex: number;
1481
+ opacityPermille: number;
1482
+ placement: {
1483
+ xPermille: number;
1484
+ yPermille: number;
1485
+ widthPermille: number;
1486
+ heightPermille: number;
1487
+ };
1488
+ }[] | undefined;
1489
+ captionVersionId?: string | undefined;
1490
+ };
1491
+ } | {
1492
+ kind: "CAPTION_AUTHOR";
1493
+ input: {
1494
+ tenantId: string & import("zod").$brand<"TenantId">;
1495
+ productionId: string & import("zod").$brand<"ProductionId">;
1496
+ expectedProductionRevision: number;
1497
+ content: {
1498
+ language: string;
1499
+ durationMs: number;
1500
+ cues: {
1501
+ startMs: number;
1502
+ endMs: number;
1503
+ text: string;
1504
+ }[];
1505
+ };
1506
+ expectedCaptionVersion: number;
1507
+ };
1508
+ } | {
1509
+ kind: "FINAL_READY_DECIDE";
1510
+ input: {
1511
+ reviewId: string;
1512
+ renderId: string;
1513
+ tenantId: string & import("zod").$brand<"TenantId">;
1514
+ reason: string;
1515
+ productionId: string & import("zod").$brand<"ProductionId">;
1516
+ expectedProductionRevision: number;
1517
+ action: "REJECT" | "SELECT";
1518
+ acknowledgeWarnings: boolean;
1519
+ basisFingerprint: string;
1520
+ expectedFinalReadyVersion: number;
1521
+ };
1522
+ } | {
1523
+ kind: "REGENERATION_INTENT";
1524
+ preparationQuery: {
1525
+ tenantId: string & import("zod").$brand<"TenantId">;
1526
+ productionId: string & import("zod").$brand<"ProductionId">;
1527
+ shotId: string & import("zod").$brand<"ShotId">;
1528
+ mediaType: "IMAGE" | "VIDEO";
1529
+ };
1530
+ admission: "EXPLICIT_NATIVE_PREPARATION_AND_SELECTION_REQUIRED";
1531
+ } | {
1532
+ kind: "HUMAN_INPUT_INTENT";
1533
+ question: string;
1534
+ } | {
1535
+ kind: "CANONICAL_CHANGE_INTENT";
1536
+ requestedChange: string;
1537
+ };
1538
+ budget: {
1539
+ maxSemanticAttempts: number;
1540
+ maxElapsedMs: number;
1541
+ currency: "USD";
1542
+ maxCostMicros: number;
1543
+ maxConsecutiveNoImprovement: number;
1544
+ };
1545
+ createdByPrincipalId: string & import("zod").$brand<"PrincipalId">;
1546
+ createdAt: string;
1547
+ review1Source?: {
1548
+ id: string;
1549
+ tenantId: string & import("zod").$brand<"TenantId">;
1550
+ projectId: string & import("zod").$brand<"ProjectId">;
1551
+ productionId: string & import("zod").$brand<"ProductionId">;
1552
+ shotId: string & import("zod").$brand<"ShotId">;
1553
+ mediaType: "IMAGE" | "VIDEO";
1554
+ generationId: string;
1555
+ candidateId: string;
1556
+ reviewId: string;
1557
+ artifactId: string;
1558
+ representationId: string;
1559
+ checksumSha256: string;
1560
+ preparationId: string;
1561
+ contractId: string;
1562
+ contractFingerprint: string;
1563
+ executionClass: "LIVE" | "TEST_ONLY";
1564
+ requirement: {
1565
+ key: string;
1566
+ family: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "SHOT_INTENT" | "BOUNDARY_CONTINUITY" | "SOUND";
1567
+ expected: string;
1568
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
1569
+ evidenceWindow: "START" | "END" | "WHOLE_VIDEO" | "TEMPORAL";
1570
+ intentPath?: string | undefined;
1571
+ continuity?: {
1572
+ kind: "STATE";
1573
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
1574
+ entry: string;
1575
+ exit: string;
1576
+ changes?: {
1577
+ atPermille: number;
1578
+ from: string;
1579
+ to: string;
1580
+ reason: string;
1581
+ }[] | undefined;
1582
+ } | {
1583
+ kind: "TIME";
1584
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
1585
+ entryMs: number;
1586
+ exitMs: number;
1587
+ jumps?: {
1588
+ atPermille: number;
1589
+ fromMs: number;
1590
+ toMs: number;
1591
+ reason: string;
1592
+ }[] | undefined;
1593
+ } | undefined;
1594
+ interval?: {
1595
+ startMs: number;
1596
+ endMs: number;
1597
+ } | undefined;
1598
+ } | {
1599
+ key: string;
1600
+ expected: string;
1601
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
1602
+ intentPath?: string | undefined;
1603
+ };
1604
+ observation: {
1605
+ key: string;
1606
+ status: "SATISFIED" | "VIOLATED" | "NOT_OBSERVABLE" | "NOT_APPLICABLE";
1607
+ confidence: "CLEAR" | "UNCERTAIN";
1608
+ observed: string;
1609
+ listeningEvidenceIds?: string[] | undefined;
1610
+ continuitySamples?: {
1611
+ atMs: number;
1612
+ state?: string | undefined;
1613
+ storyTimeMs?: number | undefined;
1614
+ }[] | undefined;
1615
+ temporalEvidenceIds?: string[] | undefined;
1616
+ interval?: {
1617
+ startMs: number;
1618
+ endMs: number;
1619
+ } | undefined;
1620
+ } | {
1621
+ key: string;
1622
+ status: "SATISFIED" | "VIOLATED" | "NOT_OBSERVABLE" | "NOT_APPLICABLE";
1623
+ confidence: "CLEAR" | "UNCERTAIN";
1624
+ observed: string;
1625
+ region?: {
1626
+ x: number;
1627
+ y: number;
1628
+ width: number;
1629
+ height: number;
1630
+ } | undefined;
1631
+ };
1632
+ blocking: boolean;
1633
+ severity: "WARNING" | "BLOCKING";
1634
+ basisFingerprint: string;
1635
+ createdAt: string;
1636
+ framePurpose?: string | undefined;
1637
+ } | undefined;
1638
+ };
1639
+ productionRevision: number;
1640
+ }, {
1641
+ semanticStatus: "SUCCESS";
1642
+ decision: {
1643
+ id: string;
1644
+ tenantId: string;
1645
+ projectId: string;
1646
+ productionId: string;
1647
+ caseId: string;
1648
+ caseVersion: number;
1649
+ basis: {
1650
+ scope: {
1651
+ tenantId: string;
1652
+ projectId: string;
1653
+ productionId: string;
1654
+ };
1655
+ findingId: string;
1656
+ contextFingerprint: string;
1657
+ };
1658
+ sourceReviewId: string;
1659
+ sourceRenderId: string | null;
1660
+ sourceBasisFingerprint: string;
1661
+ affectedScopeFingerprint: string;
1662
+ obligationFingerprint: string;
1663
+ proposal: {
1664
+ origin: {
1665
+ kind: "EXTERNAL_AGENT_HOST";
1666
+ label: string;
1667
+ };
1668
+ summary: string;
1669
+ alternatives: {
1670
+ id: string;
1671
+ rationale: string;
1672
+ whySmallerChangeInsufficient: string;
1673
+ action: {
1674
+ kind: "REVISE_COMPOSITION";
1675
+ localityIndex: number;
1676
+ patches: ({
1677
+ kind: "PARAMETER_VALUE";
1678
+ name: string;
1679
+ value: string | number | boolean;
1680
+ } | {
1681
+ kind: "BINDING_REPLACE";
1682
+ binding: {
1683
+ name: string;
1684
+ artifactId: string;
1685
+ representationId: string;
1686
+ checksumSha256: string;
1687
+ declaredOrigin: "IMPORTED" | "UNKNOWN" | "CODE" | "AI" | "HUMAN";
1688
+ purpose: "SOURCE" | "DATA" | "FONT" | "IMAGE" | "VIDEO";
1689
+ };
1690
+ })[];
1691
+ coordinatedConsumers?: ({
1692
+ role: "PRIMARY_VISUAL";
1693
+ clipOrdinal: number;
1694
+ } | {
1695
+ role: "VISUAL_LAYER";
1696
+ visualLayerId: string;
1697
+ })[] | undefined;
1698
+ } | {
1699
+ kind: "TRIM_CLIP";
1700
+ ordinal: number;
1701
+ sourceInMs: number;
1702
+ sourceOutMs: number;
1703
+ } | {
1704
+ kind: "REVISE_CAPTIONS";
1705
+ content: {
1706
+ language: string;
1707
+ durationMs: number;
1708
+ cues: {
1709
+ startMs: number;
1710
+ endMs: number;
1711
+ text: string;
1712
+ }[];
1713
+ };
1714
+ } | {
1715
+ kind: "ADJUST_TRANSITION";
1716
+ ordinal: number;
1717
+ transition: "CUT" | {
1718
+ kind: "CROSS_DISSOLVE_V1";
1719
+ durationFrames: number;
1720
+ };
1721
+ } | {
1722
+ kind: "ADJUST_AUDIO_COMPOSITION";
1723
+ audio: {
1724
+ tracks: {
1725
+ sourceInMs: number;
1726
+ sourceOutMs: number;
1727
+ startMs: number;
1728
+ gainPermille: number;
1729
+ purpose: "VOICEOVER" | "MUSIC";
1730
+ versionId: string;
1731
+ }[];
1732
+ duckingMusicPermille?: number | undefined;
1733
+ };
1734
+ } | {
1735
+ kind: "ACKNOWLEDGE_WARNINGS";
1736
+ acknowledgements: {
1737
+ key: string;
1738
+ reason: string;
1739
+ }[];
1740
+ } | {
1741
+ kind: "REGENERATE_SHOT";
1742
+ shotId: string;
1743
+ } | {
1744
+ kind: "REQUEST_HUMAN_INPUT";
1745
+ question: string;
1746
+ } | {
1747
+ kind: "REQUEST_CANONICAL_CHANGE";
1748
+ requestedChange: string;
1749
+ };
1750
+ }[];
1751
+ selectedAlternativeId: string;
1752
+ };
1753
+ selectedAlternativeId: string;
1754
+ handoff: {
1755
+ kind: "COMPOSITION_REVISE";
1756
+ locality: {
1757
+ schemaVersion: 1;
1758
+ sourceKind: "CODE";
1759
+ role: "PRIMARY_VISUAL" | "VISUAL_LAYER";
1760
+ compositionId: string;
1761
+ compositionVersionId: string;
1762
+ compositionVersion: number;
1763
+ compositionFingerprint: string;
1764
+ renderId: string;
1765
+ renderManifestFingerprint: string;
1766
+ artifactId: string;
1767
+ representationId: string;
1768
+ checksumSha256: string;
1769
+ clipOrdinal: number | null;
1770
+ visualLayerId: string | null;
1771
+ sourceInFrame: number;
1772
+ sourceOutFrame: number;
1773
+ mapping: "INTERSECTING_NATIVE_30FPS_FRAME_CELLS";
1774
+ };
1775
+ input: {
1776
+ tenantId: string;
1777
+ productionId: string;
1778
+ expectedProductionRevision: number;
1779
+ basis: {
1780
+ briefVersionId: string;
1781
+ storyVersionId: string;
1782
+ planVersionId: string;
1783
+ shotId: string | null;
1784
+ };
1785
+ content: {
1786
+ schemaVersion: 1;
1787
+ provider: "HYPERFRAME";
1788
+ dialect: "HYPERFRAME_HTML_GSAP_V1";
1789
+ role: "PRIMARY_VISUAL" | "VISUAL_LAYER";
1790
+ executionClass: "LIVE" | "TEST_ONLY";
1791
+ intent: string;
1792
+ viewport: {
1793
+ width: number;
1794
+ height: number;
1795
+ };
1796
+ clock: {
1797
+ numerator: number;
1798
+ denominator: number;
1799
+ frameCount: number;
1800
+ };
1801
+ entrypoint: string;
1802
+ parameterSchemaVersion: 1;
1803
+ parameters: ({
1804
+ name: string;
1805
+ type: "STRING";
1806
+ value: string;
1807
+ maxLength: number;
1808
+ } | {
1809
+ name: string;
1810
+ type: "NUMBER";
1811
+ value: number;
1812
+ minimum: number;
1813
+ maximum: number;
1814
+ } | {
1815
+ name: string;
1816
+ type: "BOOLEAN";
1817
+ value: boolean;
1818
+ })[];
1819
+ bindings: {
1820
+ name: string;
1821
+ purpose: "SOURCE" | "DEPENDENCY_MANIFEST" | "DEPENDENCY_LOCK" | "DATA" | "FONT" | "IMAGE" | "VIDEO";
1822
+ artifactId: string;
1823
+ representationId: string;
1824
+ checksumSha256: string;
1825
+ declaredOrigin: "IMPORTED" | "UNKNOWN" | "CODE" | "AI" | "HUMAN";
1826
+ }[];
1827
+ dependencies: {
1828
+ name: string;
1829
+ version: string;
1830
+ integrity: string;
1831
+ }[];
1832
+ randomSeed: number | null;
1833
+ };
1834
+ compositionId: string;
1835
+ expectedVersion: number;
1836
+ previousVersionId: string;
1837
+ };
1838
+ renderProfileId: "HYPERFRAME_1080P30_FRAME_CACHE_V2" | "HYPERFRAME_1080P30_FULL_PAINT_V1" | "HYPERFRAME_RGBA_PNG30_FULL_PAINT_V1";
1839
+ sourceReviewRequired: boolean;
1840
+ coordinatedConsumers?: ({
1841
+ role: "PRIMARY_VISUAL";
1842
+ clipOrdinal: number;
1843
+ } | {
1844
+ role: "VISUAL_LAYER";
1845
+ visualLayerId: string;
1846
+ })[] | undefined;
1847
+ } | {
1848
+ kind: "TIMELINE_BUILD";
1849
+ input: {
1850
+ tenantId: string;
1851
+ productionId: string;
1852
+ expectedProductionRevision: number;
1853
+ clips: {
1854
+ shotId: string;
1855
+ acceptanceId: string;
1856
+ sourceInMs: number;
1857
+ sourceOutMs: number;
1858
+ framing?: {
1859
+ algorithm: "CROP_PAD_V1";
1860
+ crop: {
1861
+ x: number;
1862
+ y: number;
1863
+ width: number;
1864
+ height: number;
1865
+ };
1866
+ anchorXPermille: number;
1867
+ anchorYPermille: number;
1868
+ } | undefined;
1869
+ transition?: "CUT" | {
1870
+ kind: "CROSS_DISSOLVE_V1";
1871
+ durationFrames: number;
1872
+ } | undefined;
1873
+ }[];
1874
+ expectedTimelineVersion: number;
1875
+ schemaVersion?: 2 | 3 | undefined;
1876
+ audio?: {
1877
+ tracks: {
1878
+ sourceInMs: number;
1879
+ sourceOutMs: number;
1880
+ startMs: number;
1881
+ gainPermille: number;
1882
+ purpose: "VOICEOVER" | "MUSIC";
1883
+ versionId: string;
1884
+ }[];
1885
+ duckingMusicPermille?: number | undefined;
1886
+ } | undefined;
1887
+ graphics?: {
1888
+ artifactId: string;
1889
+ placement: {
1890
+ startFrame: number;
1891
+ endFrame: number;
1892
+ anchor: "TOP_LEFT" | "TOP_RIGHT" | "BOTTOM_LEFT" | "BOTTOM_RIGHT";
1893
+ widthPermille: number;
1894
+ marginXPermille: number;
1895
+ marginYPermille: number;
1896
+ opacityPermille: number;
1897
+ };
1898
+ }[] | undefined;
1899
+ sourceSound?: {
1900
+ soundPlanVersionId: string;
1901
+ clips: {
1902
+ ordinal: number;
1903
+ treatment: {
1904
+ policy: "KEEP" | "MUTE" | "DUCK";
1905
+ gainPermille: number;
1906
+ duckingPermille: number;
1907
+ };
1908
+ importedAudioVersionId?: string | undefined;
1909
+ }[];
1910
+ speechCues: {
1911
+ cueId: string;
1912
+ audioVersionId: string;
1913
+ }[];
1914
+ duckingMusicPermille?: number | undefined;
1915
+ } | undefined;
1916
+ visualLayers?: {
1917
+ id: string;
1918
+ artifactId: string;
1919
+ sourceInFrame: number;
1920
+ sourceOutFrame: number;
1921
+ startFrame: number;
1922
+ zIndex: number;
1923
+ opacityPermille: number;
1924
+ placement: {
1925
+ xPermille: number;
1926
+ yPermille: number;
1927
+ widthPermille: number;
1928
+ heightPermille: number;
1929
+ };
1930
+ }[] | undefined;
1931
+ captionVersionId?: string | undefined;
1932
+ };
1933
+ } | {
1934
+ kind: "CAPTION_AUTHOR";
1935
+ input: {
1936
+ tenantId: string;
1937
+ productionId: string;
1938
+ expectedProductionRevision: number;
1939
+ content: {
1940
+ language: string;
1941
+ durationMs: number;
1942
+ cues: {
1943
+ startMs: number;
1944
+ endMs: number;
1945
+ text: string;
1946
+ }[];
1947
+ };
1948
+ expectedCaptionVersion: number;
1949
+ };
1950
+ } | {
1951
+ kind: "FINAL_READY_DECIDE";
1952
+ input: {
1953
+ reviewId: string;
1954
+ renderId: string;
1955
+ tenantId: string;
1956
+ reason: string;
1957
+ productionId: string;
1958
+ expectedProductionRevision: number;
1959
+ action: "REJECT" | "SELECT";
1960
+ basisFingerprint: string;
1961
+ expectedFinalReadyVersion: number;
1962
+ acknowledgeWarnings?: boolean | undefined;
1963
+ };
1964
+ } | {
1965
+ kind: "REGENERATION_INTENT";
1966
+ preparationQuery: {
1967
+ tenantId: string;
1968
+ productionId: string;
1969
+ shotId: string;
1970
+ mediaType: "IMAGE" | "VIDEO";
1971
+ };
1972
+ admission: "EXPLICIT_NATIVE_PREPARATION_AND_SELECTION_REQUIRED";
1973
+ } | {
1974
+ kind: "HUMAN_INPUT_INTENT";
1975
+ question: string;
1976
+ } | {
1977
+ kind: "CANONICAL_CHANGE_INTENT";
1978
+ requestedChange: string;
1979
+ };
1980
+ budget: {
1981
+ maxSemanticAttempts: number;
1982
+ maxElapsedMs: number;
1983
+ currency: "USD";
1984
+ maxCostMicros: number;
1985
+ maxConsecutiveNoImprovement: number;
1986
+ };
1987
+ createdByPrincipalId: string;
1988
+ createdAt: string;
1989
+ review1Source?: {
1990
+ id: string;
1991
+ tenantId: string;
1992
+ projectId: string;
1993
+ productionId: string;
1994
+ shotId: string;
1995
+ mediaType: "IMAGE" | "VIDEO";
1996
+ generationId: string;
1997
+ candidateId: string;
1998
+ reviewId: string;
1999
+ artifactId: string;
2000
+ representationId: string;
2001
+ checksumSha256: string;
2002
+ preparationId: string;
2003
+ contractId: string;
2004
+ contractFingerprint: string;
2005
+ executionClass: "LIVE" | "TEST_ONLY";
2006
+ requirement: {
2007
+ key: string;
2008
+ expected: string;
2009
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
2010
+ intentPath?: string | undefined;
2011
+ } | {
2012
+ key: string;
2013
+ family: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "SHOT_INTENT" | "BOUNDARY_CONTINUITY" | "SOUND";
2014
+ expected: string;
2015
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
2016
+ evidenceWindow: "START" | "END" | "WHOLE_VIDEO" | "TEMPORAL";
2017
+ intentPath?: string | undefined;
2018
+ continuity?: {
2019
+ kind: "STATE";
2020
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
2021
+ entry: string;
2022
+ exit: string;
2023
+ changes?: {
2024
+ atPermille: number;
2025
+ from: string;
2026
+ to: string;
2027
+ reason: string;
2028
+ }[] | undefined;
2029
+ } | {
2030
+ kind: "TIME";
2031
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
2032
+ entryMs: number;
2033
+ exitMs: number;
2034
+ jumps?: {
2035
+ atPermille: number;
2036
+ fromMs: number;
2037
+ toMs: number;
2038
+ reason: string;
2039
+ }[] | undefined;
2040
+ } | undefined;
2041
+ interval?: {
2042
+ startMs: number;
2043
+ endMs: number;
2044
+ } | undefined;
2045
+ };
2046
+ observation: {
2047
+ key: string;
2048
+ status: "SATISFIED" | "VIOLATED" | "NOT_OBSERVABLE" | "NOT_APPLICABLE";
2049
+ confidence: "CLEAR" | "UNCERTAIN";
2050
+ observed: string;
2051
+ region?: {
2052
+ x: number;
2053
+ y: number;
2054
+ width: number;
2055
+ height: number;
2056
+ } | undefined;
2057
+ } | {
2058
+ key: string;
2059
+ status: "SATISFIED" | "VIOLATED" | "NOT_OBSERVABLE" | "NOT_APPLICABLE";
2060
+ confidence: "CLEAR" | "UNCERTAIN";
2061
+ observed: string;
2062
+ listeningEvidenceIds?: string[] | undefined;
2063
+ continuitySamples?: {
2064
+ atMs: number;
2065
+ state?: string | undefined;
2066
+ storyTimeMs?: number | undefined;
2067
+ }[] | undefined;
2068
+ temporalEvidenceIds?: string[] | undefined;
2069
+ interval?: {
2070
+ startMs: number;
2071
+ endMs: number;
2072
+ } | undefined;
2073
+ };
2074
+ blocking: boolean;
2075
+ severity: "WARNING" | "BLOCKING";
2076
+ basisFingerprint: string;
2077
+ createdAt: string;
2078
+ framePurpose?: string | undefined;
2079
+ } | undefined;
2080
+ };
2081
+ productionRevision: number;
2082
+ }>;
2083
+ readonly "canonical-repair.get": import("./spec.js").HttpOperationSpec<{
2084
+ tenantId: string;
2085
+ productionId: string;
2086
+ planId: string;
2087
+ projectId: string;
2088
+ }, {
2089
+ tenantId: string & import("zod").$brand<"TenantId">;
2090
+ productionId: string & import("zod").$brand<"ProductionId">;
2091
+ planId: string;
2092
+ projectId: string & import("zod").$brand<"ProjectId">;
2093
+ }, {
2094
+ decision: {
2095
+ id: string;
2096
+ tenantId: string & import("zod").$brand<"TenantId">;
2097
+ projectId: string & import("zod").$brand<"ProjectId">;
2098
+ productionId: string & import("zod").$brand<"ProductionId">;
2099
+ caseId: string;
2100
+ caseVersion: number;
2101
+ basis: {
2102
+ scope: {
2103
+ tenantId: string & import("zod").$brand<"TenantId">;
2104
+ projectId: string & import("zod").$brand<"ProjectId">;
2105
+ productionId: string & import("zod").$brand<"ProductionId">;
2106
+ };
2107
+ findingId: string;
2108
+ contextFingerprint: string;
2109
+ };
2110
+ sourceReviewId: string;
2111
+ sourceRenderId: string | null;
2112
+ sourceBasisFingerprint: string;
2113
+ affectedScopeFingerprint: string;
2114
+ obligationFingerprint: string;
2115
+ proposal: {
2116
+ origin: {
2117
+ kind: "EXTERNAL_AGENT_HOST";
2118
+ label: string;
2119
+ };
2120
+ summary: string;
2121
+ alternatives: {
2122
+ id: string;
2123
+ rationale: string;
2124
+ whySmallerChangeInsufficient: string;
2125
+ action: {
2126
+ kind: "REVISE_COMPOSITION";
2127
+ localityIndex: number;
2128
+ patches: ({
2129
+ kind: "PARAMETER_VALUE";
2130
+ name: string;
2131
+ value: string | number | boolean;
2132
+ } | {
2133
+ kind: "BINDING_REPLACE";
2134
+ binding: {
2135
+ name: string;
2136
+ artifactId: string;
2137
+ representationId: string;
2138
+ checksumSha256: string;
2139
+ declaredOrigin: "IMPORTED" | "UNKNOWN" | "CODE" | "AI" | "HUMAN";
2140
+ purpose: "SOURCE" | "DATA" | "FONT" | "IMAGE" | "VIDEO";
2141
+ };
2142
+ })[];
2143
+ coordinatedConsumers?: ({
2144
+ role: "PRIMARY_VISUAL";
2145
+ clipOrdinal: number;
2146
+ } | {
2147
+ role: "VISUAL_LAYER";
2148
+ visualLayerId: string;
2149
+ })[] | undefined;
2150
+ } | {
2151
+ kind: "TRIM_CLIP";
2152
+ ordinal: number;
2153
+ sourceInMs: number;
2154
+ sourceOutMs: number;
2155
+ } | {
2156
+ kind: "REVISE_CAPTIONS";
2157
+ content: {
2158
+ language: string;
2159
+ durationMs: number;
2160
+ cues: {
2161
+ startMs: number;
2162
+ endMs: number;
2163
+ text: string;
2164
+ }[];
2165
+ };
2166
+ } | {
2167
+ kind: "ADJUST_TRANSITION";
2168
+ ordinal: number;
2169
+ transition: "CUT" | {
2170
+ kind: "CROSS_DISSOLVE_V1";
2171
+ durationFrames: number;
2172
+ };
2173
+ } | {
2174
+ kind: "ADJUST_AUDIO_COMPOSITION";
2175
+ audio: {
2176
+ tracks: {
2177
+ sourceInMs: number;
2178
+ sourceOutMs: number;
2179
+ startMs: number;
2180
+ gainPermille: number;
2181
+ purpose: "VOICEOVER" | "MUSIC";
2182
+ versionId: string;
2183
+ }[];
2184
+ duckingMusicPermille: number;
2185
+ };
2186
+ } | {
2187
+ kind: "ACKNOWLEDGE_WARNINGS";
2188
+ acknowledgements: {
2189
+ key: string;
2190
+ reason: string;
2191
+ }[];
2192
+ } | {
2193
+ kind: "REGENERATE_SHOT";
2194
+ shotId: string;
2195
+ } | {
2196
+ kind: "REQUEST_HUMAN_INPUT";
2197
+ question: string;
2198
+ } | {
2199
+ kind: "REQUEST_CANONICAL_CHANGE";
2200
+ requestedChange: string;
2201
+ };
2202
+ }[];
2203
+ selectedAlternativeId: string;
2204
+ };
2205
+ selectedAlternativeId: string;
2206
+ handoff: {
2207
+ kind: "COMPOSITION_REVISE";
2208
+ locality: {
2209
+ schemaVersion: 1;
2210
+ sourceKind: "CODE";
2211
+ role: "PRIMARY_VISUAL" | "VISUAL_LAYER";
2212
+ compositionId: string;
2213
+ compositionVersionId: string;
2214
+ compositionVersion: number;
2215
+ compositionFingerprint: string;
2216
+ renderId: string;
2217
+ renderManifestFingerprint: string;
2218
+ artifactId: string;
2219
+ representationId: string;
2220
+ checksumSha256: string;
2221
+ clipOrdinal: number | null;
2222
+ visualLayerId: string | null;
2223
+ sourceInFrame: number;
2224
+ sourceOutFrame: number;
2225
+ mapping: "INTERSECTING_NATIVE_30FPS_FRAME_CELLS";
2226
+ };
2227
+ input: {
2228
+ tenantId: string;
2229
+ productionId: string;
2230
+ expectedProductionRevision: number;
2231
+ basis: {
2232
+ briefVersionId: string;
2233
+ storyVersionId: string;
2234
+ planVersionId: string;
2235
+ shotId: string | null;
2236
+ };
2237
+ content: {
2238
+ schemaVersion: 1;
2239
+ provider: "HYPERFRAME";
2240
+ dialect: "HYPERFRAME_HTML_GSAP_V1";
2241
+ role: "PRIMARY_VISUAL" | "VISUAL_LAYER";
2242
+ executionClass: "LIVE" | "TEST_ONLY";
2243
+ intent: string;
2244
+ viewport: {
2245
+ width: number;
2246
+ height: number;
2247
+ };
2248
+ clock: {
2249
+ numerator: number;
2250
+ denominator: number;
2251
+ frameCount: number;
2252
+ };
2253
+ entrypoint: string;
2254
+ parameterSchemaVersion: 1;
2255
+ parameters: ({
2256
+ name: string;
2257
+ type: "STRING";
2258
+ value: string;
2259
+ maxLength: number;
2260
+ } | {
2261
+ name: string;
2262
+ type: "NUMBER";
2263
+ value: number;
2264
+ minimum: number;
2265
+ maximum: number;
2266
+ } | {
2267
+ name: string;
2268
+ type: "BOOLEAN";
2269
+ value: boolean;
2270
+ })[];
2271
+ bindings: {
2272
+ name: string;
2273
+ purpose: "SOURCE" | "DEPENDENCY_MANIFEST" | "DEPENDENCY_LOCK" | "DATA" | "FONT" | "IMAGE" | "VIDEO";
2274
+ artifactId: string;
2275
+ representationId: string;
2276
+ checksumSha256: string;
2277
+ declaredOrigin: "IMPORTED" | "UNKNOWN" | "CODE" | "AI" | "HUMAN";
2278
+ }[];
2279
+ dependencies: {
2280
+ name: string;
2281
+ version: string;
2282
+ integrity: string;
2283
+ }[];
2284
+ randomSeed: number | null;
2285
+ };
2286
+ compositionId: string;
2287
+ expectedVersion: number;
2288
+ previousVersionId: string;
2289
+ };
2290
+ renderProfileId: "HYPERFRAME_1080P30_FRAME_CACHE_V2" | "HYPERFRAME_1080P30_FULL_PAINT_V1" | "HYPERFRAME_RGBA_PNG30_FULL_PAINT_V1";
2291
+ sourceReviewRequired: boolean;
2292
+ coordinatedConsumers?: ({
2293
+ role: "PRIMARY_VISUAL";
2294
+ clipOrdinal: number;
2295
+ } | {
2296
+ role: "VISUAL_LAYER";
2297
+ visualLayerId: string;
2298
+ })[] | undefined;
2299
+ } | {
2300
+ kind: "TIMELINE_BUILD";
2301
+ input: {
2302
+ tenantId: string & import("zod").$brand<"TenantId">;
2303
+ productionId: string & import("zod").$brand<"ProductionId">;
2304
+ expectedProductionRevision: number;
2305
+ clips: {
2306
+ shotId: string & import("zod").$brand<"ShotId">;
2307
+ acceptanceId: string;
2308
+ sourceInMs: number;
2309
+ sourceOutMs: number;
2310
+ framing?: {
2311
+ algorithm: "CROP_PAD_V1";
2312
+ crop: {
2313
+ x: number;
2314
+ y: number;
2315
+ width: number;
2316
+ height: number;
2317
+ };
2318
+ anchorXPermille: number;
2319
+ anchorYPermille: number;
2320
+ } | undefined;
2321
+ transition?: "CUT" | {
2322
+ kind: "CROSS_DISSOLVE_V1";
2323
+ durationFrames: number;
2324
+ } | undefined;
2325
+ }[];
2326
+ expectedTimelineVersion: number;
2327
+ schemaVersion?: 2 | 3 | undefined;
2328
+ audio?: {
2329
+ tracks: {
2330
+ sourceInMs: number;
2331
+ sourceOutMs: number;
2332
+ startMs: number;
2333
+ gainPermille: number;
2334
+ purpose: "VOICEOVER" | "MUSIC";
2335
+ versionId: string;
2336
+ }[];
2337
+ duckingMusicPermille: number;
2338
+ } | undefined;
2339
+ graphics?: {
2340
+ artifactId: string & import("zod").$brand<"ArtifactId">;
2341
+ placement: {
2342
+ startFrame: number;
2343
+ endFrame: number;
2344
+ anchor: "TOP_LEFT" | "TOP_RIGHT" | "BOTTOM_LEFT" | "BOTTOM_RIGHT";
2345
+ widthPermille: number;
2346
+ marginXPermille: number;
2347
+ marginYPermille: number;
2348
+ opacityPermille: number;
2349
+ };
2350
+ }[] | undefined;
2351
+ sourceSound?: {
2352
+ soundPlanVersionId: string;
2353
+ clips: {
2354
+ ordinal: number;
2355
+ treatment: {
2356
+ policy: "KEEP" | "MUTE" | "DUCK";
2357
+ gainPermille: number;
2358
+ duckingPermille: number;
2359
+ };
2360
+ importedAudioVersionId?: string | undefined;
2361
+ }[];
2362
+ speechCues: {
2363
+ cueId: string;
2364
+ audioVersionId: string;
2365
+ }[];
2366
+ duckingMusicPermille?: number | undefined;
2367
+ } | undefined;
2368
+ visualLayers?: {
2369
+ id: string;
2370
+ artifactId: string & import("zod").$brand<"ArtifactId">;
2371
+ sourceInFrame: number;
2372
+ sourceOutFrame: number;
2373
+ startFrame: number;
2374
+ zIndex: number;
2375
+ opacityPermille: number;
2376
+ placement: {
2377
+ xPermille: number;
2378
+ yPermille: number;
2379
+ widthPermille: number;
2380
+ heightPermille: number;
2381
+ };
2382
+ }[] | undefined;
2383
+ captionVersionId?: string | undefined;
2384
+ };
2385
+ } | {
2386
+ kind: "CAPTION_AUTHOR";
2387
+ input: {
2388
+ tenantId: string & import("zod").$brand<"TenantId">;
2389
+ productionId: string & import("zod").$brand<"ProductionId">;
2390
+ expectedProductionRevision: number;
2391
+ content: {
2392
+ language: string;
2393
+ durationMs: number;
2394
+ cues: {
2395
+ startMs: number;
2396
+ endMs: number;
2397
+ text: string;
2398
+ }[];
2399
+ };
2400
+ expectedCaptionVersion: number;
2401
+ };
2402
+ } | {
2403
+ kind: "FINAL_READY_DECIDE";
2404
+ input: {
2405
+ reviewId: string;
2406
+ renderId: string;
2407
+ tenantId: string & import("zod").$brand<"TenantId">;
2408
+ reason: string;
2409
+ productionId: string & import("zod").$brand<"ProductionId">;
2410
+ expectedProductionRevision: number;
2411
+ action: "REJECT" | "SELECT";
2412
+ acknowledgeWarnings: boolean;
2413
+ basisFingerprint: string;
2414
+ expectedFinalReadyVersion: number;
2415
+ };
2416
+ } | {
2417
+ kind: "REGENERATION_INTENT";
2418
+ preparationQuery: {
2419
+ tenantId: string & import("zod").$brand<"TenantId">;
2420
+ productionId: string & import("zod").$brand<"ProductionId">;
2421
+ shotId: string & import("zod").$brand<"ShotId">;
2422
+ mediaType: "IMAGE" | "VIDEO";
2423
+ };
2424
+ admission: "EXPLICIT_NATIVE_PREPARATION_AND_SELECTION_REQUIRED";
2425
+ } | {
2426
+ kind: "HUMAN_INPUT_INTENT";
2427
+ question: string;
2428
+ } | {
2429
+ kind: "CANONICAL_CHANGE_INTENT";
2430
+ requestedChange: string;
2431
+ };
2432
+ budget: {
2433
+ maxSemanticAttempts: number;
2434
+ maxElapsedMs: number;
2435
+ currency: "USD";
2436
+ maxCostMicros: number;
2437
+ maxConsecutiveNoImprovement: number;
2438
+ };
2439
+ createdByPrincipalId: string & import("zod").$brand<"PrincipalId">;
2440
+ createdAt: string;
2441
+ review1Source?: {
2442
+ id: string;
2443
+ tenantId: string & import("zod").$brand<"TenantId">;
2444
+ projectId: string & import("zod").$brand<"ProjectId">;
2445
+ productionId: string & import("zod").$brand<"ProductionId">;
2446
+ shotId: string & import("zod").$brand<"ShotId">;
2447
+ mediaType: "IMAGE" | "VIDEO";
2448
+ generationId: string;
2449
+ candidateId: string;
2450
+ reviewId: string;
2451
+ artifactId: string;
2452
+ representationId: string;
2453
+ checksumSha256: string;
2454
+ preparationId: string;
2455
+ contractId: string;
2456
+ contractFingerprint: string;
2457
+ executionClass: "LIVE" | "TEST_ONLY";
2458
+ requirement: {
2459
+ key: string;
2460
+ family: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "SHOT_INTENT" | "BOUNDARY_CONTINUITY" | "SOUND";
2461
+ expected: string;
2462
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
2463
+ evidenceWindow: "START" | "END" | "WHOLE_VIDEO" | "TEMPORAL";
2464
+ intentPath?: string | undefined;
2465
+ continuity?: {
2466
+ kind: "STATE";
2467
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
2468
+ entry: string;
2469
+ exit: string;
2470
+ changes?: {
2471
+ atPermille: number;
2472
+ from: string;
2473
+ to: string;
2474
+ reason: string;
2475
+ }[] | undefined;
2476
+ } | {
2477
+ kind: "TIME";
2478
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
2479
+ entryMs: number;
2480
+ exitMs: number;
2481
+ jumps?: {
2482
+ atPermille: number;
2483
+ fromMs: number;
2484
+ toMs: number;
2485
+ reason: string;
2486
+ }[] | undefined;
2487
+ } | undefined;
2488
+ interval?: {
2489
+ startMs: number;
2490
+ endMs: number;
2491
+ } | undefined;
2492
+ } | {
2493
+ key: string;
2494
+ expected: string;
2495
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
2496
+ intentPath?: string | undefined;
2497
+ };
2498
+ observation: {
2499
+ key: string;
2500
+ status: "SATISFIED" | "VIOLATED" | "NOT_OBSERVABLE" | "NOT_APPLICABLE";
2501
+ confidence: "CLEAR" | "UNCERTAIN";
2502
+ observed: string;
2503
+ listeningEvidenceIds?: string[] | undefined;
2504
+ continuitySamples?: {
2505
+ atMs: number;
2506
+ state?: string | undefined;
2507
+ storyTimeMs?: number | undefined;
2508
+ }[] | undefined;
2509
+ temporalEvidenceIds?: string[] | undefined;
2510
+ interval?: {
2511
+ startMs: number;
2512
+ endMs: number;
2513
+ } | undefined;
2514
+ } | {
2515
+ key: string;
2516
+ status: "SATISFIED" | "VIOLATED" | "NOT_OBSERVABLE" | "NOT_APPLICABLE";
2517
+ confidence: "CLEAR" | "UNCERTAIN";
2518
+ observed: string;
2519
+ region?: {
2520
+ x: number;
2521
+ y: number;
2522
+ width: number;
2523
+ height: number;
2524
+ } | undefined;
2525
+ };
2526
+ blocking: boolean;
2527
+ severity: "WARNING" | "BLOCKING";
2528
+ basisFingerprint: string;
2529
+ createdAt: string;
2530
+ framePurpose?: string | undefined;
2531
+ } | undefined;
2532
+ };
2533
+ repairCase: {
2534
+ id: string;
2535
+ version: number;
2536
+ issueKey: string;
2537
+ budget: {
2538
+ maxSemanticAttempts: number;
2539
+ maxElapsedMs: number;
2540
+ currency: "USD";
2541
+ maxCostMicros: number;
2542
+ maxConsecutiveNoImprovement: number;
2543
+ };
2544
+ openedAt: string;
2545
+ };
2546
+ attempts: {
2547
+ id: string;
2548
+ planId: string;
2549
+ caseId: string;
2550
+ ordinal: number;
2551
+ executionIdentity: string;
2552
+ strategyFingerprint: string;
2553
+ startedAt: string;
2554
+ reservedCostMicros: number;
2555
+ chargedCostMicros: number | null;
2556
+ currency: "USD";
2557
+ outcome: "WAIVED" | "IN_FLIGHT" | "AWAITING_REVIEW" | "IMPROVED" | "NO_IMPROVEMENT" | "OPERATIONAL_FAILURE";
2558
+ events: {
2559
+ id: string;
2560
+ attemptId: string;
2561
+ version: number;
2562
+ outcome: "WAIVED" | "AWAITING_REVIEW" | "IMPROVED" | "NO_IMPROVEMENT" | "OPERATIONAL_FAILURE";
2563
+ renderId: string | null;
2564
+ reviewId: string | null;
2565
+ recordedAt: string;
2566
+ generationId?: string | undefined;
2567
+ }[];
2568
+ costQuote?: {
2569
+ currency: "USD";
2570
+ upperBoundMicros: number;
2571
+ selection: {
2572
+ connectionId: string & import("zod").$brand<"ProviderConnectionId">;
2573
+ modelProfileId: string;
2574
+ };
2575
+ expectedExecution: {
2576
+ connectionVersion: number;
2577
+ modelProfileVersion: number;
2578
+ quoteValidUntil: string;
2579
+ };
2580
+ sourceUrl: string;
2581
+ ruleIds: string[];
2582
+ preparationId: string;
2583
+ contractFingerprint: string;
2584
+ } | undefined;
2585
+ }[];
2586
+ review1Finding?: {
2587
+ id: string;
2588
+ tenantId: string & import("zod").$brand<"TenantId">;
2589
+ projectId: string & import("zod").$brand<"ProjectId">;
2590
+ productionId: string & import("zod").$brand<"ProductionId">;
2591
+ shotId: string & import("zod").$brand<"ShotId">;
2592
+ mediaType: "IMAGE" | "VIDEO";
2593
+ generationId: string;
2594
+ candidateId: string;
2595
+ reviewId: string;
2596
+ artifactId: string;
2597
+ representationId: string;
2598
+ checksumSha256: string;
2599
+ preparationId: string;
2600
+ contractId: string;
2601
+ contractFingerprint: string;
2602
+ executionClass: "LIVE" | "TEST_ONLY";
2603
+ requirement: {
2604
+ key: string;
2605
+ family: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "SHOT_INTENT" | "BOUNDARY_CONTINUITY" | "SOUND";
2606
+ expected: string;
2607
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
2608
+ evidenceWindow: "START" | "END" | "WHOLE_VIDEO" | "TEMPORAL";
2609
+ intentPath?: string | undefined;
2610
+ continuity?: {
2611
+ kind: "STATE";
2612
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
2613
+ entry: string;
2614
+ exit: string;
2615
+ changes?: {
2616
+ atPermille: number;
2617
+ from: string;
2618
+ to: string;
2619
+ reason: string;
2620
+ }[] | undefined;
2621
+ } | {
2622
+ kind: "TIME";
2623
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
2624
+ entryMs: number;
2625
+ exitMs: number;
2626
+ jumps?: {
2627
+ atPermille: number;
2628
+ fromMs: number;
2629
+ toMs: number;
2630
+ reason: string;
2631
+ }[] | undefined;
2632
+ } | undefined;
2633
+ interval?: {
2634
+ startMs: number;
2635
+ endMs: number;
2636
+ } | undefined;
2637
+ } | {
2638
+ key: string;
2639
+ expected: string;
2640
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
2641
+ intentPath?: string | undefined;
2642
+ };
2643
+ observation: {
2644
+ key: string;
2645
+ status: "SATISFIED" | "VIOLATED" | "NOT_OBSERVABLE" | "NOT_APPLICABLE";
2646
+ confidence: "CLEAR" | "UNCERTAIN";
2647
+ observed: string;
2648
+ listeningEvidenceIds?: string[] | undefined;
2649
+ continuitySamples?: {
2650
+ atMs: number;
2651
+ state?: string | undefined;
2652
+ storyTimeMs?: number | undefined;
2653
+ }[] | undefined;
2654
+ temporalEvidenceIds?: string[] | undefined;
2655
+ interval?: {
2656
+ startMs: number;
2657
+ endMs: number;
2658
+ } | undefined;
2659
+ } | {
2660
+ key: string;
2661
+ status: "SATISFIED" | "VIOLATED" | "NOT_OBSERVABLE" | "NOT_APPLICABLE";
2662
+ confidence: "CLEAR" | "UNCERTAIN";
2663
+ observed: string;
2664
+ region?: {
2665
+ x: number;
2666
+ y: number;
2667
+ width: number;
2668
+ height: number;
2669
+ } | undefined;
2670
+ };
2671
+ blocking: boolean;
2672
+ severity: "WARNING" | "BLOCKING";
2673
+ basisFingerprint: string;
2674
+ createdAt: string;
2675
+ lifecycle: "SUPERSEDED" | "OPEN" | "REMEDIATION_PLANNED" | "RESOLVED";
2676
+ proofReviewId: string | null;
2677
+ framePurpose?: string | undefined;
2678
+ } | undefined;
2679
+ }, {
2680
+ decision: {
2681
+ id: string;
2682
+ tenantId: string;
2683
+ projectId: string;
2684
+ productionId: string;
2685
+ caseId: string;
2686
+ caseVersion: number;
2687
+ basis: {
2688
+ scope: {
2689
+ tenantId: string;
2690
+ projectId: string;
2691
+ productionId: string;
2692
+ };
2693
+ findingId: string;
2694
+ contextFingerprint: string;
2695
+ };
2696
+ sourceReviewId: string;
2697
+ sourceRenderId: string | null;
2698
+ sourceBasisFingerprint: string;
2699
+ affectedScopeFingerprint: string;
2700
+ obligationFingerprint: string;
2701
+ proposal: {
2702
+ origin: {
2703
+ kind: "EXTERNAL_AGENT_HOST";
2704
+ label: string;
2705
+ };
2706
+ summary: string;
2707
+ alternatives: {
2708
+ id: string;
2709
+ rationale: string;
2710
+ whySmallerChangeInsufficient: string;
2711
+ action: {
2712
+ kind: "REVISE_COMPOSITION";
2713
+ localityIndex: number;
2714
+ patches: ({
2715
+ kind: "PARAMETER_VALUE";
2716
+ name: string;
2717
+ value: string | number | boolean;
2718
+ } | {
2719
+ kind: "BINDING_REPLACE";
2720
+ binding: {
2721
+ name: string;
2722
+ artifactId: string;
2723
+ representationId: string;
2724
+ checksumSha256: string;
2725
+ declaredOrigin: "IMPORTED" | "UNKNOWN" | "CODE" | "AI" | "HUMAN";
2726
+ purpose: "SOURCE" | "DATA" | "FONT" | "IMAGE" | "VIDEO";
2727
+ };
2728
+ })[];
2729
+ coordinatedConsumers?: ({
2730
+ role: "PRIMARY_VISUAL";
2731
+ clipOrdinal: number;
2732
+ } | {
2733
+ role: "VISUAL_LAYER";
2734
+ visualLayerId: string;
2735
+ })[] | undefined;
2736
+ } | {
2737
+ kind: "TRIM_CLIP";
2738
+ ordinal: number;
2739
+ sourceInMs: number;
2740
+ sourceOutMs: number;
2741
+ } | {
2742
+ kind: "REVISE_CAPTIONS";
2743
+ content: {
2744
+ language: string;
2745
+ durationMs: number;
2746
+ cues: {
2747
+ startMs: number;
2748
+ endMs: number;
2749
+ text: string;
2750
+ }[];
2751
+ };
2752
+ } | {
2753
+ kind: "ADJUST_TRANSITION";
2754
+ ordinal: number;
2755
+ transition: "CUT" | {
2756
+ kind: "CROSS_DISSOLVE_V1";
2757
+ durationFrames: number;
2758
+ };
2759
+ } | {
2760
+ kind: "ADJUST_AUDIO_COMPOSITION";
2761
+ audio: {
2762
+ tracks: {
2763
+ sourceInMs: number;
2764
+ sourceOutMs: number;
2765
+ startMs: number;
2766
+ gainPermille: number;
2767
+ purpose: "VOICEOVER" | "MUSIC";
2768
+ versionId: string;
2769
+ }[];
2770
+ duckingMusicPermille?: number | undefined;
2771
+ };
2772
+ } | {
2773
+ kind: "ACKNOWLEDGE_WARNINGS";
2774
+ acknowledgements: {
2775
+ key: string;
2776
+ reason: string;
2777
+ }[];
2778
+ } | {
2779
+ kind: "REGENERATE_SHOT";
2780
+ shotId: string;
2781
+ } | {
2782
+ kind: "REQUEST_HUMAN_INPUT";
2783
+ question: string;
2784
+ } | {
2785
+ kind: "REQUEST_CANONICAL_CHANGE";
2786
+ requestedChange: string;
2787
+ };
2788
+ }[];
2789
+ selectedAlternativeId: string;
2790
+ };
2791
+ selectedAlternativeId: string;
2792
+ handoff: {
2793
+ kind: "COMPOSITION_REVISE";
2794
+ locality: {
2795
+ schemaVersion: 1;
2796
+ sourceKind: "CODE";
2797
+ role: "PRIMARY_VISUAL" | "VISUAL_LAYER";
2798
+ compositionId: string;
2799
+ compositionVersionId: string;
2800
+ compositionVersion: number;
2801
+ compositionFingerprint: string;
2802
+ renderId: string;
2803
+ renderManifestFingerprint: string;
2804
+ artifactId: string;
2805
+ representationId: string;
2806
+ checksumSha256: string;
2807
+ clipOrdinal: number | null;
2808
+ visualLayerId: string | null;
2809
+ sourceInFrame: number;
2810
+ sourceOutFrame: number;
2811
+ mapping: "INTERSECTING_NATIVE_30FPS_FRAME_CELLS";
2812
+ };
2813
+ input: {
2814
+ tenantId: string;
2815
+ productionId: string;
2816
+ expectedProductionRevision: number;
2817
+ basis: {
2818
+ briefVersionId: string;
2819
+ storyVersionId: string;
2820
+ planVersionId: string;
2821
+ shotId: string | null;
2822
+ };
2823
+ content: {
2824
+ schemaVersion: 1;
2825
+ provider: "HYPERFRAME";
2826
+ dialect: "HYPERFRAME_HTML_GSAP_V1";
2827
+ role: "PRIMARY_VISUAL" | "VISUAL_LAYER";
2828
+ executionClass: "LIVE" | "TEST_ONLY";
2829
+ intent: string;
2830
+ viewport: {
2831
+ width: number;
2832
+ height: number;
2833
+ };
2834
+ clock: {
2835
+ numerator: number;
2836
+ denominator: number;
2837
+ frameCount: number;
2838
+ };
2839
+ entrypoint: string;
2840
+ parameterSchemaVersion: 1;
2841
+ parameters: ({
2842
+ name: string;
2843
+ type: "STRING";
2844
+ value: string;
2845
+ maxLength: number;
2846
+ } | {
2847
+ name: string;
2848
+ type: "NUMBER";
2849
+ value: number;
2850
+ minimum: number;
2851
+ maximum: number;
2852
+ } | {
2853
+ name: string;
2854
+ type: "BOOLEAN";
2855
+ value: boolean;
2856
+ })[];
2857
+ bindings: {
2858
+ name: string;
2859
+ purpose: "SOURCE" | "DEPENDENCY_MANIFEST" | "DEPENDENCY_LOCK" | "DATA" | "FONT" | "IMAGE" | "VIDEO";
2860
+ artifactId: string;
2861
+ representationId: string;
2862
+ checksumSha256: string;
2863
+ declaredOrigin: "IMPORTED" | "UNKNOWN" | "CODE" | "AI" | "HUMAN";
2864
+ }[];
2865
+ dependencies: {
2866
+ name: string;
2867
+ version: string;
2868
+ integrity: string;
2869
+ }[];
2870
+ randomSeed: number | null;
2871
+ };
2872
+ compositionId: string;
2873
+ expectedVersion: number;
2874
+ previousVersionId: string;
2875
+ };
2876
+ renderProfileId: "HYPERFRAME_1080P30_FRAME_CACHE_V2" | "HYPERFRAME_1080P30_FULL_PAINT_V1" | "HYPERFRAME_RGBA_PNG30_FULL_PAINT_V1";
2877
+ sourceReviewRequired: boolean;
2878
+ coordinatedConsumers?: ({
2879
+ role: "PRIMARY_VISUAL";
2880
+ clipOrdinal: number;
2881
+ } | {
2882
+ role: "VISUAL_LAYER";
2883
+ visualLayerId: string;
2884
+ })[] | undefined;
2885
+ } | {
2886
+ kind: "TIMELINE_BUILD";
2887
+ input: {
2888
+ tenantId: string;
2889
+ productionId: string;
2890
+ expectedProductionRevision: number;
2891
+ clips: {
2892
+ shotId: string;
2893
+ acceptanceId: string;
2894
+ sourceInMs: number;
2895
+ sourceOutMs: number;
2896
+ framing?: {
2897
+ algorithm: "CROP_PAD_V1";
2898
+ crop: {
2899
+ x: number;
2900
+ y: number;
2901
+ width: number;
2902
+ height: number;
2903
+ };
2904
+ anchorXPermille: number;
2905
+ anchorYPermille: number;
2906
+ } | undefined;
2907
+ transition?: "CUT" | {
2908
+ kind: "CROSS_DISSOLVE_V1";
2909
+ durationFrames: number;
2910
+ } | undefined;
2911
+ }[];
2912
+ expectedTimelineVersion: number;
2913
+ schemaVersion?: 2 | 3 | undefined;
2914
+ audio?: {
2915
+ tracks: {
2916
+ sourceInMs: number;
2917
+ sourceOutMs: number;
2918
+ startMs: number;
2919
+ gainPermille: number;
2920
+ purpose: "VOICEOVER" | "MUSIC";
2921
+ versionId: string;
2922
+ }[];
2923
+ duckingMusicPermille?: number | undefined;
2924
+ } | undefined;
2925
+ graphics?: {
2926
+ artifactId: string;
2927
+ placement: {
2928
+ startFrame: number;
2929
+ endFrame: number;
2930
+ anchor: "TOP_LEFT" | "TOP_RIGHT" | "BOTTOM_LEFT" | "BOTTOM_RIGHT";
2931
+ widthPermille: number;
2932
+ marginXPermille: number;
2933
+ marginYPermille: number;
2934
+ opacityPermille: number;
2935
+ };
2936
+ }[] | undefined;
2937
+ sourceSound?: {
2938
+ soundPlanVersionId: string;
2939
+ clips: {
2940
+ ordinal: number;
2941
+ treatment: {
2942
+ policy: "KEEP" | "MUTE" | "DUCK";
2943
+ gainPermille: number;
2944
+ duckingPermille: number;
2945
+ };
2946
+ importedAudioVersionId?: string | undefined;
2947
+ }[];
2948
+ speechCues: {
2949
+ cueId: string;
2950
+ audioVersionId: string;
2951
+ }[];
2952
+ duckingMusicPermille?: number | undefined;
2953
+ } | undefined;
2954
+ visualLayers?: {
2955
+ id: string;
2956
+ artifactId: string;
2957
+ sourceInFrame: number;
2958
+ sourceOutFrame: number;
2959
+ startFrame: number;
2960
+ zIndex: number;
2961
+ opacityPermille: number;
2962
+ placement: {
2963
+ xPermille: number;
2964
+ yPermille: number;
2965
+ widthPermille: number;
2966
+ heightPermille: number;
2967
+ };
2968
+ }[] | undefined;
2969
+ captionVersionId?: string | undefined;
2970
+ };
2971
+ } | {
2972
+ kind: "CAPTION_AUTHOR";
2973
+ input: {
2974
+ tenantId: string;
2975
+ productionId: string;
2976
+ expectedProductionRevision: number;
2977
+ content: {
2978
+ language: string;
2979
+ durationMs: number;
2980
+ cues: {
2981
+ startMs: number;
2982
+ endMs: number;
2983
+ text: string;
2984
+ }[];
2985
+ };
2986
+ expectedCaptionVersion: number;
2987
+ };
2988
+ } | {
2989
+ kind: "FINAL_READY_DECIDE";
2990
+ input: {
2991
+ reviewId: string;
2992
+ renderId: string;
2993
+ tenantId: string;
2994
+ reason: string;
2995
+ productionId: string;
2996
+ expectedProductionRevision: number;
2997
+ action: "REJECT" | "SELECT";
2998
+ basisFingerprint: string;
2999
+ expectedFinalReadyVersion: number;
3000
+ acknowledgeWarnings?: boolean | undefined;
3001
+ };
3002
+ } | {
3003
+ kind: "REGENERATION_INTENT";
3004
+ preparationQuery: {
3005
+ tenantId: string;
3006
+ productionId: string;
3007
+ shotId: string;
3008
+ mediaType: "IMAGE" | "VIDEO";
3009
+ };
3010
+ admission: "EXPLICIT_NATIVE_PREPARATION_AND_SELECTION_REQUIRED";
3011
+ } | {
3012
+ kind: "HUMAN_INPUT_INTENT";
3013
+ question: string;
3014
+ } | {
3015
+ kind: "CANONICAL_CHANGE_INTENT";
3016
+ requestedChange: string;
3017
+ };
3018
+ budget: {
3019
+ maxSemanticAttempts: number;
3020
+ maxElapsedMs: number;
3021
+ currency: "USD";
3022
+ maxCostMicros: number;
3023
+ maxConsecutiveNoImprovement: number;
3024
+ };
3025
+ createdByPrincipalId: string;
3026
+ createdAt: string;
3027
+ review1Source?: {
3028
+ id: string;
3029
+ tenantId: string;
3030
+ projectId: string;
3031
+ productionId: string;
3032
+ shotId: string;
3033
+ mediaType: "IMAGE" | "VIDEO";
3034
+ generationId: string;
3035
+ candidateId: string;
3036
+ reviewId: string;
3037
+ artifactId: string;
3038
+ representationId: string;
3039
+ checksumSha256: string;
3040
+ preparationId: string;
3041
+ contractId: string;
3042
+ contractFingerprint: string;
3043
+ executionClass: "LIVE" | "TEST_ONLY";
3044
+ requirement: {
3045
+ key: string;
3046
+ expected: string;
3047
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
3048
+ intentPath?: string | undefined;
3049
+ } | {
3050
+ key: string;
3051
+ family: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "SHOT_INTENT" | "BOUNDARY_CONTINUITY" | "SOUND";
3052
+ expected: string;
3053
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
3054
+ evidenceWindow: "START" | "END" | "WHOLE_VIDEO" | "TEMPORAL";
3055
+ intentPath?: string | undefined;
3056
+ continuity?: {
3057
+ kind: "STATE";
3058
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
3059
+ entry: string;
3060
+ exit: string;
3061
+ changes?: {
3062
+ atPermille: number;
3063
+ from: string;
3064
+ to: string;
3065
+ reason: string;
3066
+ }[] | undefined;
3067
+ } | {
3068
+ kind: "TIME";
3069
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
3070
+ entryMs: number;
3071
+ exitMs: number;
3072
+ jumps?: {
3073
+ atPermille: number;
3074
+ fromMs: number;
3075
+ toMs: number;
3076
+ reason: string;
3077
+ }[] | undefined;
3078
+ } | undefined;
3079
+ interval?: {
3080
+ startMs: number;
3081
+ endMs: number;
3082
+ } | undefined;
3083
+ };
3084
+ observation: {
3085
+ key: string;
3086
+ status: "SATISFIED" | "VIOLATED" | "NOT_OBSERVABLE" | "NOT_APPLICABLE";
3087
+ confidence: "CLEAR" | "UNCERTAIN";
3088
+ observed: string;
3089
+ region?: {
3090
+ x: number;
3091
+ y: number;
3092
+ width: number;
3093
+ height: number;
3094
+ } | undefined;
3095
+ } | {
3096
+ key: string;
3097
+ status: "SATISFIED" | "VIOLATED" | "NOT_OBSERVABLE" | "NOT_APPLICABLE";
3098
+ confidence: "CLEAR" | "UNCERTAIN";
3099
+ observed: string;
3100
+ listeningEvidenceIds?: string[] | undefined;
3101
+ continuitySamples?: {
3102
+ atMs: number;
3103
+ state?: string | undefined;
3104
+ storyTimeMs?: number | undefined;
3105
+ }[] | undefined;
3106
+ temporalEvidenceIds?: string[] | undefined;
3107
+ interval?: {
3108
+ startMs: number;
3109
+ endMs: number;
3110
+ } | undefined;
3111
+ };
3112
+ blocking: boolean;
3113
+ severity: "WARNING" | "BLOCKING";
3114
+ basisFingerprint: string;
3115
+ createdAt: string;
3116
+ framePurpose?: string | undefined;
3117
+ } | undefined;
3118
+ };
3119
+ repairCase: {
3120
+ id: string;
3121
+ version: number;
3122
+ issueKey: string;
3123
+ budget: {
3124
+ maxSemanticAttempts: number;
3125
+ maxElapsedMs: number;
3126
+ currency: "USD";
3127
+ maxCostMicros: number;
3128
+ maxConsecutiveNoImprovement: number;
3129
+ };
3130
+ openedAt: string;
3131
+ };
3132
+ attempts: {
3133
+ id: string;
3134
+ planId: string;
3135
+ caseId: string;
3136
+ ordinal: number;
3137
+ executionIdentity: string;
3138
+ strategyFingerprint: string;
3139
+ startedAt: string;
3140
+ reservedCostMicros: number;
3141
+ chargedCostMicros: number | null;
3142
+ currency: "USD";
3143
+ outcome: "WAIVED" | "IN_FLIGHT" | "AWAITING_REVIEW" | "IMPROVED" | "NO_IMPROVEMENT" | "OPERATIONAL_FAILURE";
3144
+ events: {
3145
+ id: string;
3146
+ attemptId: string;
3147
+ version: number;
3148
+ outcome: "WAIVED" | "AWAITING_REVIEW" | "IMPROVED" | "NO_IMPROVEMENT" | "OPERATIONAL_FAILURE";
3149
+ renderId: string | null;
3150
+ reviewId: string | null;
3151
+ recordedAt: string;
3152
+ generationId?: string | undefined;
3153
+ }[];
3154
+ costQuote?: {
3155
+ currency: "USD";
3156
+ upperBoundMicros: number;
3157
+ selection: {
3158
+ connectionId: string;
3159
+ modelProfileId: string;
3160
+ };
3161
+ expectedExecution: {
3162
+ connectionVersion: number;
3163
+ modelProfileVersion: number;
3164
+ quoteValidUntil: string;
3165
+ };
3166
+ sourceUrl: string;
3167
+ ruleIds: string[];
3168
+ preparationId: string;
3169
+ contractFingerprint: string;
3170
+ } | undefined;
3171
+ }[];
3172
+ review1Finding?: {
3173
+ id: string;
3174
+ tenantId: string;
3175
+ projectId: string;
3176
+ productionId: string;
3177
+ shotId: string;
3178
+ mediaType: "IMAGE" | "VIDEO";
3179
+ generationId: string;
3180
+ candidateId: string;
3181
+ reviewId: string;
3182
+ artifactId: string;
3183
+ representationId: string;
3184
+ checksumSha256: string;
3185
+ preparationId: string;
3186
+ contractId: string;
3187
+ contractFingerprint: string;
3188
+ executionClass: "LIVE" | "TEST_ONLY";
3189
+ requirement: {
3190
+ key: string;
3191
+ expected: string;
3192
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
3193
+ intentPath?: string | undefined;
3194
+ } | {
3195
+ key: string;
3196
+ family: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "SHOT_INTENT" | "BOUNDARY_CONTINUITY" | "SOUND";
3197
+ expected: string;
3198
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
3199
+ evidenceWindow: "START" | "END" | "WHOLE_VIDEO" | "TEMPORAL";
3200
+ intentPath?: string | undefined;
3201
+ continuity?: {
3202
+ kind: "STATE";
3203
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
3204
+ entry: string;
3205
+ exit: string;
3206
+ changes?: {
3207
+ atPermille: number;
3208
+ from: string;
3209
+ to: string;
3210
+ reason: string;
3211
+ }[] | undefined;
3212
+ } | {
3213
+ kind: "TIME";
3214
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
3215
+ entryMs: number;
3216
+ exitMs: number;
3217
+ jumps?: {
3218
+ atPermille: number;
3219
+ fromMs: number;
3220
+ toMs: number;
3221
+ reason: string;
3222
+ }[] | undefined;
3223
+ } | undefined;
3224
+ interval?: {
3225
+ startMs: number;
3226
+ endMs: number;
3227
+ } | undefined;
3228
+ };
3229
+ observation: {
3230
+ key: string;
3231
+ status: "SATISFIED" | "VIOLATED" | "NOT_OBSERVABLE" | "NOT_APPLICABLE";
3232
+ confidence: "CLEAR" | "UNCERTAIN";
3233
+ observed: string;
3234
+ region?: {
3235
+ x: number;
3236
+ y: number;
3237
+ width: number;
3238
+ height: number;
3239
+ } | undefined;
3240
+ } | {
3241
+ key: string;
3242
+ status: "SATISFIED" | "VIOLATED" | "NOT_OBSERVABLE" | "NOT_APPLICABLE";
3243
+ confidence: "CLEAR" | "UNCERTAIN";
3244
+ observed: string;
3245
+ listeningEvidenceIds?: string[] | undefined;
3246
+ continuitySamples?: {
3247
+ atMs: number;
3248
+ state?: string | undefined;
3249
+ storyTimeMs?: number | undefined;
3250
+ }[] | undefined;
3251
+ temporalEvidenceIds?: string[] | undefined;
3252
+ interval?: {
3253
+ startMs: number;
3254
+ endMs: number;
3255
+ } | undefined;
3256
+ };
3257
+ blocking: boolean;
3258
+ severity: "WARNING" | "BLOCKING";
3259
+ basisFingerprint: string;
3260
+ createdAt: string;
3261
+ lifecycle: "SUPERSEDED" | "OPEN" | "REMEDIATION_PLANNED" | "RESOLVED";
3262
+ proofReviewId: string | null;
3263
+ framePurpose?: string | undefined;
3264
+ } | undefined;
3265
+ }>;
3266
+ readonly "canonical-repair.execute": import("./spec.js").HttpOperationSpec<{
3267
+ tenantId: string;
3268
+ productionId: string;
3269
+ planId: string;
3270
+ expectedProductionRevision: number;
3271
+ expectedCaseVersion: number;
3272
+ idempotencyKey: string;
3273
+ projectId: string;
3274
+ generation?: {
3275
+ shotId: string;
3276
+ preparationId: string;
3277
+ contractId: string;
3278
+ contractFingerprint: string;
3279
+ tenantId: string;
3280
+ projectId: string;
3281
+ selection: {
3282
+ connectionId: string;
3283
+ modelProfileId: string;
3284
+ };
3285
+ productionId: string;
3286
+ expectedExecution?: {
3287
+ connectionVersion: number;
3288
+ modelProfileVersion: number;
3289
+ quoteValidUntil: string;
3290
+ } | undefined;
3291
+ } | undefined;
3292
+ keyframeGeneration?: {
3293
+ shotId: string;
3294
+ preparationId: string;
3295
+ contractId: string;
3296
+ contractFingerprint: string;
3297
+ tenantId: string;
3298
+ projectId: string;
3299
+ productionId: string;
3300
+ selection?: {
3301
+ connectionId: string;
3302
+ modelProfileId: string;
3303
+ } | undefined;
3304
+ expectedExecution?: {
3305
+ connectionVersion: number;
3306
+ modelProfileVersion: number;
3307
+ quoteValidUntil: string;
3308
+ } | undefined;
3309
+ } | undefined;
3310
+ }, {
3311
+ tenantId: string & import("zod").$brand<"TenantId">;
3312
+ productionId: string & import("zod").$brand<"ProductionId">;
3313
+ planId: string;
3314
+ expectedProductionRevision: number;
3315
+ expectedCaseVersion: number;
3316
+ idempotencyKey: string;
3317
+ projectId: string & import("zod").$brand<"ProjectId">;
3318
+ generation?: {
3319
+ shotId: string & import("zod").$brand<"ShotId">;
3320
+ preparationId: string & import("zod").$brand<"PreparationId">;
3321
+ contractId: string & import("zod").$brand<"GenerationContractId">;
3322
+ contractFingerprint: string;
3323
+ tenantId: string & import("zod").$brand<"TenantId">;
3324
+ projectId: string & import("zod").$brand<"ProjectId">;
3325
+ selection: {
3326
+ connectionId: string & import("zod").$brand<"ProviderConnectionId">;
3327
+ modelProfileId: string;
3328
+ };
3329
+ productionId: string & import("zod").$brand<"ProductionId">;
3330
+ expectedExecution?: {
3331
+ connectionVersion: number;
3332
+ modelProfileVersion: number;
3333
+ quoteValidUntil: string;
3334
+ } | undefined;
3335
+ } | undefined;
3336
+ keyframeGeneration?: {
3337
+ shotId: string & import("zod").$brand<"ShotId">;
3338
+ preparationId: string & import("zod").$brand<"PreparationId">;
3339
+ contractId: string & import("zod").$brand<"GenerationContractId">;
3340
+ contractFingerprint: string;
3341
+ tenantId: string & import("zod").$brand<"TenantId">;
3342
+ projectId: string & import("zod").$brand<"ProjectId">;
3343
+ productionId: string & import("zod").$brand<"ProductionId">;
3344
+ selection?: {
3345
+ connectionId: string & import("zod").$brand<"ProviderConnectionId">;
3346
+ modelProfileId: string;
3347
+ } | undefined;
3348
+ expectedExecution?: {
3349
+ connectionVersion: number;
3350
+ modelProfileVersion: number;
3351
+ quoteValidUntil: string;
3352
+ } | undefined;
3353
+ } | undefined;
3354
+ }, {
3355
+ view: {
3356
+ decision: {
3357
+ id: string;
3358
+ tenantId: string & import("zod").$brand<"TenantId">;
3359
+ projectId: string & import("zod").$brand<"ProjectId">;
3360
+ productionId: string & import("zod").$brand<"ProductionId">;
3361
+ caseId: string;
3362
+ caseVersion: number;
3363
+ basis: {
3364
+ scope: {
3365
+ tenantId: string & import("zod").$brand<"TenantId">;
3366
+ projectId: string & import("zod").$brand<"ProjectId">;
3367
+ productionId: string & import("zod").$brand<"ProductionId">;
3368
+ };
3369
+ findingId: string;
3370
+ contextFingerprint: string;
3371
+ };
3372
+ sourceReviewId: string;
3373
+ sourceRenderId: string | null;
3374
+ sourceBasisFingerprint: string;
3375
+ affectedScopeFingerprint: string;
3376
+ obligationFingerprint: string;
3377
+ proposal: {
3378
+ origin: {
3379
+ kind: "EXTERNAL_AGENT_HOST";
3380
+ label: string;
3381
+ };
3382
+ summary: string;
3383
+ alternatives: {
3384
+ id: string;
3385
+ rationale: string;
3386
+ whySmallerChangeInsufficient: string;
3387
+ action: {
3388
+ kind: "REVISE_COMPOSITION";
3389
+ localityIndex: number;
3390
+ patches: ({
3391
+ kind: "PARAMETER_VALUE";
3392
+ name: string;
3393
+ value: string | number | boolean;
3394
+ } | {
3395
+ kind: "BINDING_REPLACE";
3396
+ binding: {
3397
+ name: string;
3398
+ artifactId: string;
3399
+ representationId: string;
3400
+ checksumSha256: string;
3401
+ declaredOrigin: "IMPORTED" | "UNKNOWN" | "CODE" | "AI" | "HUMAN";
3402
+ purpose: "SOURCE" | "DATA" | "FONT" | "IMAGE" | "VIDEO";
3403
+ };
3404
+ })[];
3405
+ coordinatedConsumers?: ({
3406
+ role: "PRIMARY_VISUAL";
3407
+ clipOrdinal: number;
3408
+ } | {
3409
+ role: "VISUAL_LAYER";
3410
+ visualLayerId: string;
3411
+ })[] | undefined;
3412
+ } | {
3413
+ kind: "TRIM_CLIP";
3414
+ ordinal: number;
3415
+ sourceInMs: number;
3416
+ sourceOutMs: number;
3417
+ } | {
3418
+ kind: "REVISE_CAPTIONS";
3419
+ content: {
3420
+ language: string;
3421
+ durationMs: number;
3422
+ cues: {
3423
+ startMs: number;
3424
+ endMs: number;
3425
+ text: string;
3426
+ }[];
3427
+ };
3428
+ } | {
3429
+ kind: "ADJUST_TRANSITION";
3430
+ ordinal: number;
3431
+ transition: "CUT" | {
3432
+ kind: "CROSS_DISSOLVE_V1";
3433
+ durationFrames: number;
3434
+ };
3435
+ } | {
3436
+ kind: "ADJUST_AUDIO_COMPOSITION";
3437
+ audio: {
3438
+ tracks: {
3439
+ sourceInMs: number;
3440
+ sourceOutMs: number;
3441
+ startMs: number;
3442
+ gainPermille: number;
3443
+ purpose: "VOICEOVER" | "MUSIC";
3444
+ versionId: string;
3445
+ }[];
3446
+ duckingMusicPermille: number;
3447
+ };
3448
+ } | {
3449
+ kind: "ACKNOWLEDGE_WARNINGS";
3450
+ acknowledgements: {
3451
+ key: string;
3452
+ reason: string;
3453
+ }[];
3454
+ } | {
3455
+ kind: "REGENERATE_SHOT";
3456
+ shotId: string;
3457
+ } | {
3458
+ kind: "REQUEST_HUMAN_INPUT";
3459
+ question: string;
3460
+ } | {
3461
+ kind: "REQUEST_CANONICAL_CHANGE";
3462
+ requestedChange: string;
3463
+ };
3464
+ }[];
3465
+ selectedAlternativeId: string;
3466
+ };
3467
+ selectedAlternativeId: string;
3468
+ handoff: {
3469
+ kind: "COMPOSITION_REVISE";
3470
+ locality: {
3471
+ schemaVersion: 1;
3472
+ sourceKind: "CODE";
3473
+ role: "PRIMARY_VISUAL" | "VISUAL_LAYER";
3474
+ compositionId: string;
3475
+ compositionVersionId: string;
3476
+ compositionVersion: number;
3477
+ compositionFingerprint: string;
3478
+ renderId: string;
3479
+ renderManifestFingerprint: string;
3480
+ artifactId: string;
3481
+ representationId: string;
3482
+ checksumSha256: string;
3483
+ clipOrdinal: number | null;
3484
+ visualLayerId: string | null;
3485
+ sourceInFrame: number;
3486
+ sourceOutFrame: number;
3487
+ mapping: "INTERSECTING_NATIVE_30FPS_FRAME_CELLS";
3488
+ };
3489
+ input: {
3490
+ tenantId: string;
3491
+ productionId: string;
3492
+ expectedProductionRevision: number;
3493
+ basis: {
3494
+ briefVersionId: string;
3495
+ storyVersionId: string;
3496
+ planVersionId: string;
3497
+ shotId: string | null;
3498
+ };
3499
+ content: {
3500
+ schemaVersion: 1;
3501
+ provider: "HYPERFRAME";
3502
+ dialect: "HYPERFRAME_HTML_GSAP_V1";
3503
+ role: "PRIMARY_VISUAL" | "VISUAL_LAYER";
3504
+ executionClass: "LIVE" | "TEST_ONLY";
3505
+ intent: string;
3506
+ viewport: {
3507
+ width: number;
3508
+ height: number;
3509
+ };
3510
+ clock: {
3511
+ numerator: number;
3512
+ denominator: number;
3513
+ frameCount: number;
3514
+ };
3515
+ entrypoint: string;
3516
+ parameterSchemaVersion: 1;
3517
+ parameters: ({
3518
+ name: string;
3519
+ type: "STRING";
3520
+ value: string;
3521
+ maxLength: number;
3522
+ } | {
3523
+ name: string;
3524
+ type: "NUMBER";
3525
+ value: number;
3526
+ minimum: number;
3527
+ maximum: number;
3528
+ } | {
3529
+ name: string;
3530
+ type: "BOOLEAN";
3531
+ value: boolean;
3532
+ })[];
3533
+ bindings: {
3534
+ name: string;
3535
+ purpose: "SOURCE" | "DEPENDENCY_MANIFEST" | "DEPENDENCY_LOCK" | "DATA" | "FONT" | "IMAGE" | "VIDEO";
3536
+ artifactId: string;
3537
+ representationId: string;
3538
+ checksumSha256: string;
3539
+ declaredOrigin: "IMPORTED" | "UNKNOWN" | "CODE" | "AI" | "HUMAN";
3540
+ }[];
3541
+ dependencies: {
3542
+ name: string;
3543
+ version: string;
3544
+ integrity: string;
3545
+ }[];
3546
+ randomSeed: number | null;
3547
+ };
3548
+ compositionId: string;
3549
+ expectedVersion: number;
3550
+ previousVersionId: string;
3551
+ };
3552
+ renderProfileId: "HYPERFRAME_1080P30_FRAME_CACHE_V2" | "HYPERFRAME_1080P30_FULL_PAINT_V1" | "HYPERFRAME_RGBA_PNG30_FULL_PAINT_V1";
3553
+ sourceReviewRequired: boolean;
3554
+ coordinatedConsumers?: ({
3555
+ role: "PRIMARY_VISUAL";
3556
+ clipOrdinal: number;
3557
+ } | {
3558
+ role: "VISUAL_LAYER";
3559
+ visualLayerId: string;
3560
+ })[] | undefined;
3561
+ } | {
3562
+ kind: "TIMELINE_BUILD";
3563
+ input: {
3564
+ tenantId: string & import("zod").$brand<"TenantId">;
3565
+ productionId: string & import("zod").$brand<"ProductionId">;
3566
+ expectedProductionRevision: number;
3567
+ clips: {
3568
+ shotId: string & import("zod").$brand<"ShotId">;
3569
+ acceptanceId: string;
3570
+ sourceInMs: number;
3571
+ sourceOutMs: number;
3572
+ framing?: {
3573
+ algorithm: "CROP_PAD_V1";
3574
+ crop: {
3575
+ x: number;
3576
+ y: number;
3577
+ width: number;
3578
+ height: number;
3579
+ };
3580
+ anchorXPermille: number;
3581
+ anchorYPermille: number;
3582
+ } | undefined;
3583
+ transition?: "CUT" | {
3584
+ kind: "CROSS_DISSOLVE_V1";
3585
+ durationFrames: number;
3586
+ } | undefined;
3587
+ }[];
3588
+ expectedTimelineVersion: number;
3589
+ schemaVersion?: 2 | 3 | undefined;
3590
+ audio?: {
3591
+ tracks: {
3592
+ sourceInMs: number;
3593
+ sourceOutMs: number;
3594
+ startMs: number;
3595
+ gainPermille: number;
3596
+ purpose: "VOICEOVER" | "MUSIC";
3597
+ versionId: string;
3598
+ }[];
3599
+ duckingMusicPermille: number;
3600
+ } | undefined;
3601
+ graphics?: {
3602
+ artifactId: string & import("zod").$brand<"ArtifactId">;
3603
+ placement: {
3604
+ startFrame: number;
3605
+ endFrame: number;
3606
+ anchor: "TOP_LEFT" | "TOP_RIGHT" | "BOTTOM_LEFT" | "BOTTOM_RIGHT";
3607
+ widthPermille: number;
3608
+ marginXPermille: number;
3609
+ marginYPermille: number;
3610
+ opacityPermille: number;
3611
+ };
3612
+ }[] | undefined;
3613
+ sourceSound?: {
3614
+ soundPlanVersionId: string;
3615
+ clips: {
3616
+ ordinal: number;
3617
+ treatment: {
3618
+ policy: "KEEP" | "MUTE" | "DUCK";
3619
+ gainPermille: number;
3620
+ duckingPermille: number;
3621
+ };
3622
+ importedAudioVersionId?: string | undefined;
3623
+ }[];
3624
+ speechCues: {
3625
+ cueId: string;
3626
+ audioVersionId: string;
3627
+ }[];
3628
+ duckingMusicPermille?: number | undefined;
3629
+ } | undefined;
3630
+ visualLayers?: {
3631
+ id: string;
3632
+ artifactId: string & import("zod").$brand<"ArtifactId">;
3633
+ sourceInFrame: number;
3634
+ sourceOutFrame: number;
3635
+ startFrame: number;
3636
+ zIndex: number;
3637
+ opacityPermille: number;
3638
+ placement: {
3639
+ xPermille: number;
3640
+ yPermille: number;
3641
+ widthPermille: number;
3642
+ heightPermille: number;
3643
+ };
3644
+ }[] | undefined;
3645
+ captionVersionId?: string | undefined;
3646
+ };
3647
+ } | {
3648
+ kind: "CAPTION_AUTHOR";
3649
+ input: {
3650
+ tenantId: string & import("zod").$brand<"TenantId">;
3651
+ productionId: string & import("zod").$brand<"ProductionId">;
3652
+ expectedProductionRevision: number;
3653
+ content: {
3654
+ language: string;
3655
+ durationMs: number;
3656
+ cues: {
3657
+ startMs: number;
3658
+ endMs: number;
3659
+ text: string;
3660
+ }[];
3661
+ };
3662
+ expectedCaptionVersion: number;
3663
+ };
3664
+ } | {
3665
+ kind: "FINAL_READY_DECIDE";
3666
+ input: {
3667
+ reviewId: string;
3668
+ renderId: string;
3669
+ tenantId: string & import("zod").$brand<"TenantId">;
3670
+ reason: string;
3671
+ productionId: string & import("zod").$brand<"ProductionId">;
3672
+ expectedProductionRevision: number;
3673
+ action: "REJECT" | "SELECT";
3674
+ acknowledgeWarnings: boolean;
3675
+ basisFingerprint: string;
3676
+ expectedFinalReadyVersion: number;
3677
+ };
3678
+ } | {
3679
+ kind: "REGENERATION_INTENT";
3680
+ preparationQuery: {
3681
+ tenantId: string & import("zod").$brand<"TenantId">;
3682
+ productionId: string & import("zod").$brand<"ProductionId">;
3683
+ shotId: string & import("zod").$brand<"ShotId">;
3684
+ mediaType: "IMAGE" | "VIDEO";
3685
+ };
3686
+ admission: "EXPLICIT_NATIVE_PREPARATION_AND_SELECTION_REQUIRED";
3687
+ } | {
3688
+ kind: "HUMAN_INPUT_INTENT";
3689
+ question: string;
3690
+ } | {
3691
+ kind: "CANONICAL_CHANGE_INTENT";
3692
+ requestedChange: string;
3693
+ };
3694
+ budget: {
3695
+ maxSemanticAttempts: number;
3696
+ maxElapsedMs: number;
3697
+ currency: "USD";
3698
+ maxCostMicros: number;
3699
+ maxConsecutiveNoImprovement: number;
3700
+ };
3701
+ createdByPrincipalId: string & import("zod").$brand<"PrincipalId">;
3702
+ createdAt: string;
3703
+ review1Source?: {
3704
+ id: string;
3705
+ tenantId: string & import("zod").$brand<"TenantId">;
3706
+ projectId: string & import("zod").$brand<"ProjectId">;
3707
+ productionId: string & import("zod").$brand<"ProductionId">;
3708
+ shotId: string & import("zod").$brand<"ShotId">;
3709
+ mediaType: "IMAGE" | "VIDEO";
3710
+ generationId: string;
3711
+ candidateId: string;
3712
+ reviewId: string;
3713
+ artifactId: string;
3714
+ representationId: string;
3715
+ checksumSha256: string;
3716
+ preparationId: string;
3717
+ contractId: string;
3718
+ contractFingerprint: string;
3719
+ executionClass: "LIVE" | "TEST_ONLY";
3720
+ requirement: {
3721
+ key: string;
3722
+ family: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "SHOT_INTENT" | "BOUNDARY_CONTINUITY" | "SOUND";
3723
+ expected: string;
3724
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
3725
+ evidenceWindow: "START" | "END" | "WHOLE_VIDEO" | "TEMPORAL";
3726
+ intentPath?: string | undefined;
3727
+ continuity?: {
3728
+ kind: "STATE";
3729
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
3730
+ entry: string;
3731
+ exit: string;
3732
+ changes?: {
3733
+ atPermille: number;
3734
+ from: string;
3735
+ to: string;
3736
+ reason: string;
3737
+ }[] | undefined;
3738
+ } | {
3739
+ kind: "TIME";
3740
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
3741
+ entryMs: number;
3742
+ exitMs: number;
3743
+ jumps?: {
3744
+ atPermille: number;
3745
+ fromMs: number;
3746
+ toMs: number;
3747
+ reason: string;
3748
+ }[] | undefined;
3749
+ } | undefined;
3750
+ interval?: {
3751
+ startMs: number;
3752
+ endMs: number;
3753
+ } | undefined;
3754
+ } | {
3755
+ key: string;
3756
+ expected: string;
3757
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
3758
+ intentPath?: string | undefined;
3759
+ };
3760
+ observation: {
3761
+ key: string;
3762
+ status: "SATISFIED" | "VIOLATED" | "NOT_OBSERVABLE" | "NOT_APPLICABLE";
3763
+ confidence: "CLEAR" | "UNCERTAIN";
3764
+ observed: string;
3765
+ listeningEvidenceIds?: string[] | undefined;
3766
+ continuitySamples?: {
3767
+ atMs: number;
3768
+ state?: string | undefined;
3769
+ storyTimeMs?: number | undefined;
3770
+ }[] | undefined;
3771
+ temporalEvidenceIds?: string[] | undefined;
3772
+ interval?: {
3773
+ startMs: number;
3774
+ endMs: number;
3775
+ } | undefined;
3776
+ } | {
3777
+ key: string;
3778
+ status: "SATISFIED" | "VIOLATED" | "NOT_OBSERVABLE" | "NOT_APPLICABLE";
3779
+ confidence: "CLEAR" | "UNCERTAIN";
3780
+ observed: string;
3781
+ region?: {
3782
+ x: number;
3783
+ y: number;
3784
+ width: number;
3785
+ height: number;
3786
+ } | undefined;
3787
+ };
3788
+ blocking: boolean;
3789
+ severity: "WARNING" | "BLOCKING";
3790
+ basisFingerprint: string;
3791
+ createdAt: string;
3792
+ framePurpose?: string | undefined;
3793
+ } | undefined;
3794
+ };
3795
+ repairCase: {
3796
+ id: string;
3797
+ version: number;
3798
+ issueKey: string;
3799
+ budget: {
3800
+ maxSemanticAttempts: number;
3801
+ maxElapsedMs: number;
3802
+ currency: "USD";
3803
+ maxCostMicros: number;
3804
+ maxConsecutiveNoImprovement: number;
3805
+ };
3806
+ openedAt: string;
3807
+ };
3808
+ attempts: {
3809
+ id: string;
3810
+ planId: string;
3811
+ caseId: string;
3812
+ ordinal: number;
3813
+ executionIdentity: string;
3814
+ strategyFingerprint: string;
3815
+ startedAt: string;
3816
+ reservedCostMicros: number;
3817
+ chargedCostMicros: number | null;
3818
+ currency: "USD";
3819
+ outcome: "WAIVED" | "IN_FLIGHT" | "AWAITING_REVIEW" | "IMPROVED" | "NO_IMPROVEMENT" | "OPERATIONAL_FAILURE";
3820
+ events: {
3821
+ id: string;
3822
+ attemptId: string;
3823
+ version: number;
3824
+ outcome: "WAIVED" | "AWAITING_REVIEW" | "IMPROVED" | "NO_IMPROVEMENT" | "OPERATIONAL_FAILURE";
3825
+ renderId: string | null;
3826
+ reviewId: string | null;
3827
+ recordedAt: string;
3828
+ generationId?: string | undefined;
3829
+ }[];
3830
+ costQuote?: {
3831
+ currency: "USD";
3832
+ upperBoundMicros: number;
3833
+ selection: {
3834
+ connectionId: string & import("zod").$brand<"ProviderConnectionId">;
3835
+ modelProfileId: string;
3836
+ };
3837
+ expectedExecution: {
3838
+ connectionVersion: number;
3839
+ modelProfileVersion: number;
3840
+ quoteValidUntil: string;
3841
+ };
3842
+ sourceUrl: string;
3843
+ ruleIds: string[];
3844
+ preparationId: string;
3845
+ contractFingerprint: string;
3846
+ } | undefined;
3847
+ }[];
3848
+ review1Finding?: {
3849
+ id: string;
3850
+ tenantId: string & import("zod").$brand<"TenantId">;
3851
+ projectId: string & import("zod").$brand<"ProjectId">;
3852
+ productionId: string & import("zod").$brand<"ProductionId">;
3853
+ shotId: string & import("zod").$brand<"ShotId">;
3854
+ mediaType: "IMAGE" | "VIDEO";
3855
+ generationId: string;
3856
+ candidateId: string;
3857
+ reviewId: string;
3858
+ artifactId: string;
3859
+ representationId: string;
3860
+ checksumSha256: string;
3861
+ preparationId: string;
3862
+ contractId: string;
3863
+ contractFingerprint: string;
3864
+ executionClass: "LIVE" | "TEST_ONLY";
3865
+ requirement: {
3866
+ key: string;
3867
+ family: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "SHOT_INTENT" | "BOUNDARY_CONTINUITY" | "SOUND";
3868
+ expected: string;
3869
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
3870
+ evidenceWindow: "START" | "END" | "WHOLE_VIDEO" | "TEMPORAL";
3871
+ intentPath?: string | undefined;
3872
+ continuity?: {
3873
+ kind: "STATE";
3874
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
3875
+ entry: string;
3876
+ exit: string;
3877
+ changes?: {
3878
+ atPermille: number;
3879
+ from: string;
3880
+ to: string;
3881
+ reason: string;
3882
+ }[] | undefined;
3883
+ } | {
3884
+ kind: "TIME";
3885
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
3886
+ entryMs: number;
3887
+ exitMs: number;
3888
+ jumps?: {
3889
+ atPermille: number;
3890
+ fromMs: number;
3891
+ toMs: number;
3892
+ reason: string;
3893
+ }[] | undefined;
3894
+ } | undefined;
3895
+ interval?: {
3896
+ startMs: number;
3897
+ endMs: number;
3898
+ } | undefined;
3899
+ } | {
3900
+ key: string;
3901
+ expected: string;
3902
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
3903
+ intentPath?: string | undefined;
3904
+ };
3905
+ observation: {
3906
+ key: string;
3907
+ status: "SATISFIED" | "VIOLATED" | "NOT_OBSERVABLE" | "NOT_APPLICABLE";
3908
+ confidence: "CLEAR" | "UNCERTAIN";
3909
+ observed: string;
3910
+ listeningEvidenceIds?: string[] | undefined;
3911
+ continuitySamples?: {
3912
+ atMs: number;
3913
+ state?: string | undefined;
3914
+ storyTimeMs?: number | undefined;
3915
+ }[] | undefined;
3916
+ temporalEvidenceIds?: string[] | undefined;
3917
+ interval?: {
3918
+ startMs: number;
3919
+ endMs: number;
3920
+ } | undefined;
3921
+ } | {
3922
+ key: string;
3923
+ status: "SATISFIED" | "VIOLATED" | "NOT_OBSERVABLE" | "NOT_APPLICABLE";
3924
+ confidence: "CLEAR" | "UNCERTAIN";
3925
+ observed: string;
3926
+ region?: {
3927
+ x: number;
3928
+ y: number;
3929
+ width: number;
3930
+ height: number;
3931
+ } | undefined;
3932
+ };
3933
+ blocking: boolean;
3934
+ severity: "WARNING" | "BLOCKING";
3935
+ basisFingerprint: string;
3936
+ createdAt: string;
3937
+ lifecycle: "SUPERSEDED" | "OPEN" | "REMEDIATION_PLANNED" | "RESOLVED";
3938
+ proofReviewId: string | null;
3939
+ framePurpose?: string | undefined;
3940
+ } | undefined;
3941
+ };
3942
+ stage: "WAITING_INPUT" | "WAIVED" | "AWAITING_REVIEW" | "IMPROVED" | "NO_IMPROVEMENT" | "OPERATIONAL_FAILURE" | "WAITING_GENERATION" | "WAITING_COMPOSITION_RENDER" | "WAITING_SOURCE_ACCEPTANCE" | "WAITING_RENDER";
3943
+ renderId: string | null;
3944
+ generationId: string | null;
3945
+ }, {
3946
+ view: {
3947
+ decision: {
3948
+ id: string;
3949
+ tenantId: string;
3950
+ projectId: string;
3951
+ productionId: string;
3952
+ caseId: string;
3953
+ caseVersion: number;
3954
+ basis: {
3955
+ scope: {
3956
+ tenantId: string;
3957
+ projectId: string;
3958
+ productionId: string;
3959
+ };
3960
+ findingId: string;
3961
+ contextFingerprint: string;
3962
+ };
3963
+ sourceReviewId: string;
3964
+ sourceRenderId: string | null;
3965
+ sourceBasisFingerprint: string;
3966
+ affectedScopeFingerprint: string;
3967
+ obligationFingerprint: string;
3968
+ proposal: {
3969
+ origin: {
3970
+ kind: "EXTERNAL_AGENT_HOST";
3971
+ label: string;
3972
+ };
3973
+ summary: string;
3974
+ alternatives: {
3975
+ id: string;
3976
+ rationale: string;
3977
+ whySmallerChangeInsufficient: string;
3978
+ action: {
3979
+ kind: "REVISE_COMPOSITION";
3980
+ localityIndex: number;
3981
+ patches: ({
3982
+ kind: "PARAMETER_VALUE";
3983
+ name: string;
3984
+ value: string | number | boolean;
3985
+ } | {
3986
+ kind: "BINDING_REPLACE";
3987
+ binding: {
3988
+ name: string;
3989
+ artifactId: string;
3990
+ representationId: string;
3991
+ checksumSha256: string;
3992
+ declaredOrigin: "IMPORTED" | "UNKNOWN" | "CODE" | "AI" | "HUMAN";
3993
+ purpose: "SOURCE" | "DATA" | "FONT" | "IMAGE" | "VIDEO";
3994
+ };
3995
+ })[];
3996
+ coordinatedConsumers?: ({
3997
+ role: "PRIMARY_VISUAL";
3998
+ clipOrdinal: number;
3999
+ } | {
4000
+ role: "VISUAL_LAYER";
4001
+ visualLayerId: string;
4002
+ })[] | undefined;
4003
+ } | {
4004
+ kind: "TRIM_CLIP";
4005
+ ordinal: number;
4006
+ sourceInMs: number;
4007
+ sourceOutMs: number;
4008
+ } | {
4009
+ kind: "REVISE_CAPTIONS";
4010
+ content: {
4011
+ language: string;
4012
+ durationMs: number;
4013
+ cues: {
4014
+ startMs: number;
4015
+ endMs: number;
4016
+ text: string;
4017
+ }[];
4018
+ };
4019
+ } | {
4020
+ kind: "ADJUST_TRANSITION";
4021
+ ordinal: number;
4022
+ transition: "CUT" | {
4023
+ kind: "CROSS_DISSOLVE_V1";
4024
+ durationFrames: number;
4025
+ };
4026
+ } | {
4027
+ kind: "ADJUST_AUDIO_COMPOSITION";
4028
+ audio: {
4029
+ tracks: {
4030
+ sourceInMs: number;
4031
+ sourceOutMs: number;
4032
+ startMs: number;
4033
+ gainPermille: number;
4034
+ purpose: "VOICEOVER" | "MUSIC";
4035
+ versionId: string;
4036
+ }[];
4037
+ duckingMusicPermille?: number | undefined;
4038
+ };
4039
+ } | {
4040
+ kind: "ACKNOWLEDGE_WARNINGS";
4041
+ acknowledgements: {
4042
+ key: string;
4043
+ reason: string;
4044
+ }[];
4045
+ } | {
4046
+ kind: "REGENERATE_SHOT";
4047
+ shotId: string;
4048
+ } | {
4049
+ kind: "REQUEST_HUMAN_INPUT";
4050
+ question: string;
4051
+ } | {
4052
+ kind: "REQUEST_CANONICAL_CHANGE";
4053
+ requestedChange: string;
4054
+ };
4055
+ }[];
4056
+ selectedAlternativeId: string;
4057
+ };
4058
+ selectedAlternativeId: string;
4059
+ handoff: {
4060
+ kind: "COMPOSITION_REVISE";
4061
+ locality: {
4062
+ schemaVersion: 1;
4063
+ sourceKind: "CODE";
4064
+ role: "PRIMARY_VISUAL" | "VISUAL_LAYER";
4065
+ compositionId: string;
4066
+ compositionVersionId: string;
4067
+ compositionVersion: number;
4068
+ compositionFingerprint: string;
4069
+ renderId: string;
4070
+ renderManifestFingerprint: string;
4071
+ artifactId: string;
4072
+ representationId: string;
4073
+ checksumSha256: string;
4074
+ clipOrdinal: number | null;
4075
+ visualLayerId: string | null;
4076
+ sourceInFrame: number;
4077
+ sourceOutFrame: number;
4078
+ mapping: "INTERSECTING_NATIVE_30FPS_FRAME_CELLS";
4079
+ };
4080
+ input: {
4081
+ tenantId: string;
4082
+ productionId: string;
4083
+ expectedProductionRevision: number;
4084
+ basis: {
4085
+ briefVersionId: string;
4086
+ storyVersionId: string;
4087
+ planVersionId: string;
4088
+ shotId: string | null;
4089
+ };
4090
+ content: {
4091
+ schemaVersion: 1;
4092
+ provider: "HYPERFRAME";
4093
+ dialect: "HYPERFRAME_HTML_GSAP_V1";
4094
+ role: "PRIMARY_VISUAL" | "VISUAL_LAYER";
4095
+ executionClass: "LIVE" | "TEST_ONLY";
4096
+ intent: string;
4097
+ viewport: {
4098
+ width: number;
4099
+ height: number;
4100
+ };
4101
+ clock: {
4102
+ numerator: number;
4103
+ denominator: number;
4104
+ frameCount: number;
4105
+ };
4106
+ entrypoint: string;
4107
+ parameterSchemaVersion: 1;
4108
+ parameters: ({
4109
+ name: string;
4110
+ type: "STRING";
4111
+ value: string;
4112
+ maxLength: number;
4113
+ } | {
4114
+ name: string;
4115
+ type: "NUMBER";
4116
+ value: number;
4117
+ minimum: number;
4118
+ maximum: number;
4119
+ } | {
4120
+ name: string;
4121
+ type: "BOOLEAN";
4122
+ value: boolean;
4123
+ })[];
4124
+ bindings: {
4125
+ name: string;
4126
+ purpose: "SOURCE" | "DEPENDENCY_MANIFEST" | "DEPENDENCY_LOCK" | "DATA" | "FONT" | "IMAGE" | "VIDEO";
4127
+ artifactId: string;
4128
+ representationId: string;
4129
+ checksumSha256: string;
4130
+ declaredOrigin: "IMPORTED" | "UNKNOWN" | "CODE" | "AI" | "HUMAN";
4131
+ }[];
4132
+ dependencies: {
4133
+ name: string;
4134
+ version: string;
4135
+ integrity: string;
4136
+ }[];
4137
+ randomSeed: number | null;
4138
+ };
4139
+ compositionId: string;
4140
+ expectedVersion: number;
4141
+ previousVersionId: string;
4142
+ };
4143
+ renderProfileId: "HYPERFRAME_1080P30_FRAME_CACHE_V2" | "HYPERFRAME_1080P30_FULL_PAINT_V1" | "HYPERFRAME_RGBA_PNG30_FULL_PAINT_V1";
4144
+ sourceReviewRequired: boolean;
4145
+ coordinatedConsumers?: ({
4146
+ role: "PRIMARY_VISUAL";
4147
+ clipOrdinal: number;
4148
+ } | {
4149
+ role: "VISUAL_LAYER";
4150
+ visualLayerId: string;
4151
+ })[] | undefined;
4152
+ } | {
4153
+ kind: "TIMELINE_BUILD";
4154
+ input: {
4155
+ tenantId: string;
4156
+ productionId: string;
4157
+ expectedProductionRevision: number;
4158
+ clips: {
4159
+ shotId: string;
4160
+ acceptanceId: string;
4161
+ sourceInMs: number;
4162
+ sourceOutMs: number;
4163
+ framing?: {
4164
+ algorithm: "CROP_PAD_V1";
4165
+ crop: {
4166
+ x: number;
4167
+ y: number;
4168
+ width: number;
4169
+ height: number;
4170
+ };
4171
+ anchorXPermille: number;
4172
+ anchorYPermille: number;
4173
+ } | undefined;
4174
+ transition?: "CUT" | {
4175
+ kind: "CROSS_DISSOLVE_V1";
4176
+ durationFrames: number;
4177
+ } | undefined;
4178
+ }[];
4179
+ expectedTimelineVersion: number;
4180
+ schemaVersion?: 2 | 3 | undefined;
4181
+ audio?: {
4182
+ tracks: {
4183
+ sourceInMs: number;
4184
+ sourceOutMs: number;
4185
+ startMs: number;
4186
+ gainPermille: number;
4187
+ purpose: "VOICEOVER" | "MUSIC";
4188
+ versionId: string;
4189
+ }[];
4190
+ duckingMusicPermille?: number | undefined;
4191
+ } | undefined;
4192
+ graphics?: {
4193
+ artifactId: string;
4194
+ placement: {
4195
+ startFrame: number;
4196
+ endFrame: number;
4197
+ anchor: "TOP_LEFT" | "TOP_RIGHT" | "BOTTOM_LEFT" | "BOTTOM_RIGHT";
4198
+ widthPermille: number;
4199
+ marginXPermille: number;
4200
+ marginYPermille: number;
4201
+ opacityPermille: number;
4202
+ };
4203
+ }[] | undefined;
4204
+ sourceSound?: {
4205
+ soundPlanVersionId: string;
4206
+ clips: {
4207
+ ordinal: number;
4208
+ treatment: {
4209
+ policy: "KEEP" | "MUTE" | "DUCK";
4210
+ gainPermille: number;
4211
+ duckingPermille: number;
4212
+ };
4213
+ importedAudioVersionId?: string | undefined;
4214
+ }[];
4215
+ speechCues: {
4216
+ cueId: string;
4217
+ audioVersionId: string;
4218
+ }[];
4219
+ duckingMusicPermille?: number | undefined;
4220
+ } | undefined;
4221
+ visualLayers?: {
4222
+ id: string;
4223
+ artifactId: string;
4224
+ sourceInFrame: number;
4225
+ sourceOutFrame: number;
4226
+ startFrame: number;
4227
+ zIndex: number;
4228
+ opacityPermille: number;
4229
+ placement: {
4230
+ xPermille: number;
4231
+ yPermille: number;
4232
+ widthPermille: number;
4233
+ heightPermille: number;
4234
+ };
4235
+ }[] | undefined;
4236
+ captionVersionId?: string | undefined;
4237
+ };
4238
+ } | {
4239
+ kind: "CAPTION_AUTHOR";
4240
+ input: {
4241
+ tenantId: string;
4242
+ productionId: string;
4243
+ expectedProductionRevision: number;
4244
+ content: {
4245
+ language: string;
4246
+ durationMs: number;
4247
+ cues: {
4248
+ startMs: number;
4249
+ endMs: number;
4250
+ text: string;
4251
+ }[];
4252
+ };
4253
+ expectedCaptionVersion: number;
4254
+ };
4255
+ } | {
4256
+ kind: "FINAL_READY_DECIDE";
4257
+ input: {
4258
+ reviewId: string;
4259
+ renderId: string;
4260
+ tenantId: string;
4261
+ reason: string;
4262
+ productionId: string;
4263
+ expectedProductionRevision: number;
4264
+ action: "REJECT" | "SELECT";
4265
+ basisFingerprint: string;
4266
+ expectedFinalReadyVersion: number;
4267
+ acknowledgeWarnings?: boolean | undefined;
4268
+ };
4269
+ } | {
4270
+ kind: "REGENERATION_INTENT";
4271
+ preparationQuery: {
4272
+ tenantId: string;
4273
+ productionId: string;
4274
+ shotId: string;
4275
+ mediaType: "IMAGE" | "VIDEO";
4276
+ };
4277
+ admission: "EXPLICIT_NATIVE_PREPARATION_AND_SELECTION_REQUIRED";
4278
+ } | {
4279
+ kind: "HUMAN_INPUT_INTENT";
4280
+ question: string;
4281
+ } | {
4282
+ kind: "CANONICAL_CHANGE_INTENT";
4283
+ requestedChange: string;
4284
+ };
4285
+ budget: {
4286
+ maxSemanticAttempts: number;
4287
+ maxElapsedMs: number;
4288
+ currency: "USD";
4289
+ maxCostMicros: number;
4290
+ maxConsecutiveNoImprovement: number;
4291
+ };
4292
+ createdByPrincipalId: string;
4293
+ createdAt: string;
4294
+ review1Source?: {
4295
+ id: string;
4296
+ tenantId: string;
4297
+ projectId: string;
4298
+ productionId: string;
4299
+ shotId: string;
4300
+ mediaType: "IMAGE" | "VIDEO";
4301
+ generationId: string;
4302
+ candidateId: string;
4303
+ reviewId: string;
4304
+ artifactId: string;
4305
+ representationId: string;
4306
+ checksumSha256: string;
4307
+ preparationId: string;
4308
+ contractId: string;
4309
+ contractFingerprint: string;
4310
+ executionClass: "LIVE" | "TEST_ONLY";
4311
+ requirement: {
4312
+ key: string;
4313
+ expected: string;
4314
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
4315
+ intentPath?: string | undefined;
4316
+ } | {
4317
+ key: string;
4318
+ family: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "SHOT_INTENT" | "BOUNDARY_CONTINUITY" | "SOUND";
4319
+ expected: string;
4320
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
4321
+ evidenceWindow: "START" | "END" | "WHOLE_VIDEO" | "TEMPORAL";
4322
+ intentPath?: string | undefined;
4323
+ continuity?: {
4324
+ kind: "STATE";
4325
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
4326
+ entry: string;
4327
+ exit: string;
4328
+ changes?: {
4329
+ atPermille: number;
4330
+ from: string;
4331
+ to: string;
4332
+ reason: string;
4333
+ }[] | undefined;
4334
+ } | {
4335
+ kind: "TIME";
4336
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
4337
+ entryMs: number;
4338
+ exitMs: number;
4339
+ jumps?: {
4340
+ atPermille: number;
4341
+ fromMs: number;
4342
+ toMs: number;
4343
+ reason: string;
4344
+ }[] | undefined;
4345
+ } | undefined;
4346
+ interval?: {
4347
+ startMs: number;
4348
+ endMs: number;
4349
+ } | undefined;
4350
+ };
4351
+ observation: {
4352
+ key: string;
4353
+ status: "SATISFIED" | "VIOLATED" | "NOT_OBSERVABLE" | "NOT_APPLICABLE";
4354
+ confidence: "CLEAR" | "UNCERTAIN";
4355
+ observed: string;
4356
+ region?: {
4357
+ x: number;
4358
+ y: number;
4359
+ width: number;
4360
+ height: number;
4361
+ } | undefined;
4362
+ } | {
4363
+ key: string;
4364
+ status: "SATISFIED" | "VIOLATED" | "NOT_OBSERVABLE" | "NOT_APPLICABLE";
4365
+ confidence: "CLEAR" | "UNCERTAIN";
4366
+ observed: string;
4367
+ listeningEvidenceIds?: string[] | undefined;
4368
+ continuitySamples?: {
4369
+ atMs: number;
4370
+ state?: string | undefined;
4371
+ storyTimeMs?: number | undefined;
4372
+ }[] | undefined;
4373
+ temporalEvidenceIds?: string[] | undefined;
4374
+ interval?: {
4375
+ startMs: number;
4376
+ endMs: number;
4377
+ } | undefined;
4378
+ };
4379
+ blocking: boolean;
4380
+ severity: "WARNING" | "BLOCKING";
4381
+ basisFingerprint: string;
4382
+ createdAt: string;
4383
+ framePurpose?: string | undefined;
4384
+ } | undefined;
4385
+ };
4386
+ repairCase: {
4387
+ id: string;
4388
+ version: number;
4389
+ issueKey: string;
4390
+ budget: {
4391
+ maxSemanticAttempts: number;
4392
+ maxElapsedMs: number;
4393
+ currency: "USD";
4394
+ maxCostMicros: number;
4395
+ maxConsecutiveNoImprovement: number;
4396
+ };
4397
+ openedAt: string;
4398
+ };
4399
+ attempts: {
4400
+ id: string;
4401
+ planId: string;
4402
+ caseId: string;
4403
+ ordinal: number;
4404
+ executionIdentity: string;
4405
+ strategyFingerprint: string;
4406
+ startedAt: string;
4407
+ reservedCostMicros: number;
4408
+ chargedCostMicros: number | null;
4409
+ currency: "USD";
4410
+ outcome: "WAIVED" | "IN_FLIGHT" | "AWAITING_REVIEW" | "IMPROVED" | "NO_IMPROVEMENT" | "OPERATIONAL_FAILURE";
4411
+ events: {
4412
+ id: string;
4413
+ attemptId: string;
4414
+ version: number;
4415
+ outcome: "WAIVED" | "AWAITING_REVIEW" | "IMPROVED" | "NO_IMPROVEMENT" | "OPERATIONAL_FAILURE";
4416
+ renderId: string | null;
4417
+ reviewId: string | null;
4418
+ recordedAt: string;
4419
+ generationId?: string | undefined;
4420
+ }[];
4421
+ costQuote?: {
4422
+ currency: "USD";
4423
+ upperBoundMicros: number;
4424
+ selection: {
4425
+ connectionId: string;
4426
+ modelProfileId: string;
4427
+ };
4428
+ expectedExecution: {
4429
+ connectionVersion: number;
4430
+ modelProfileVersion: number;
4431
+ quoteValidUntil: string;
4432
+ };
4433
+ sourceUrl: string;
4434
+ ruleIds: string[];
4435
+ preparationId: string;
4436
+ contractFingerprint: string;
4437
+ } | undefined;
4438
+ }[];
4439
+ review1Finding?: {
4440
+ id: string;
4441
+ tenantId: string;
4442
+ projectId: string;
4443
+ productionId: string;
4444
+ shotId: string;
4445
+ mediaType: "IMAGE" | "VIDEO";
4446
+ generationId: string;
4447
+ candidateId: string;
4448
+ reviewId: string;
4449
+ artifactId: string;
4450
+ representationId: string;
4451
+ checksumSha256: string;
4452
+ preparationId: string;
4453
+ contractId: string;
4454
+ contractFingerprint: string;
4455
+ executionClass: "LIVE" | "TEST_ONLY";
4456
+ requirement: {
4457
+ key: string;
4458
+ expected: string;
4459
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
4460
+ intentPath?: string | undefined;
4461
+ } | {
4462
+ key: string;
4463
+ family: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "SHOT_INTENT" | "BOUNDARY_CONTINUITY" | "SOUND";
4464
+ expected: string;
4465
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
4466
+ evidenceWindow: "START" | "END" | "WHOLE_VIDEO" | "TEMPORAL";
4467
+ intentPath?: string | undefined;
4468
+ continuity?: {
4469
+ kind: "STATE";
4470
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
4471
+ entry: string;
4472
+ exit: string;
4473
+ changes?: {
4474
+ atPermille: number;
4475
+ from: string;
4476
+ to: string;
4477
+ reason: string;
4478
+ }[] | undefined;
4479
+ } | {
4480
+ kind: "TIME";
4481
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
4482
+ entryMs: number;
4483
+ exitMs: number;
4484
+ jumps?: {
4485
+ atPermille: number;
4486
+ fromMs: number;
4487
+ toMs: number;
4488
+ reason: string;
4489
+ }[] | undefined;
4490
+ } | undefined;
4491
+ interval?: {
4492
+ startMs: number;
4493
+ endMs: number;
4494
+ } | undefined;
4495
+ };
4496
+ observation: {
4497
+ key: string;
4498
+ status: "SATISFIED" | "VIOLATED" | "NOT_OBSERVABLE" | "NOT_APPLICABLE";
4499
+ confidence: "CLEAR" | "UNCERTAIN";
4500
+ observed: string;
4501
+ region?: {
4502
+ x: number;
4503
+ y: number;
4504
+ width: number;
4505
+ height: number;
4506
+ } | undefined;
4507
+ } | {
4508
+ key: string;
4509
+ status: "SATISFIED" | "VIOLATED" | "NOT_OBSERVABLE" | "NOT_APPLICABLE";
4510
+ confidence: "CLEAR" | "UNCERTAIN";
4511
+ observed: string;
4512
+ listeningEvidenceIds?: string[] | undefined;
4513
+ continuitySamples?: {
4514
+ atMs: number;
4515
+ state?: string | undefined;
4516
+ storyTimeMs?: number | undefined;
4517
+ }[] | undefined;
4518
+ temporalEvidenceIds?: string[] | undefined;
4519
+ interval?: {
4520
+ startMs: number;
4521
+ endMs: number;
4522
+ } | undefined;
4523
+ };
4524
+ blocking: boolean;
4525
+ severity: "WARNING" | "BLOCKING";
4526
+ basisFingerprint: string;
4527
+ createdAt: string;
4528
+ lifecycle: "SUPERSEDED" | "OPEN" | "REMEDIATION_PLANNED" | "RESOLVED";
4529
+ proofReviewId: string | null;
4530
+ framePurpose?: string | undefined;
4531
+ } | undefined;
4532
+ };
4533
+ stage: "WAITING_INPUT" | "WAIVED" | "AWAITING_REVIEW" | "IMPROVED" | "NO_IMPROVEMENT" | "OPERATIONAL_FAILURE" | "WAITING_GENERATION" | "WAITING_COMPOSITION_RENDER" | "WAITING_SOURCE_ACCEPTANCE" | "WAITING_RENDER";
4534
+ renderId: string | null;
4535
+ generationId: string | null;
4536
+ }>;
4537
+ readonly "canonical-repair.proof": import("./spec.js").HttpOperationSpec<{
4538
+ tenantId: string;
4539
+ productionId: string;
4540
+ planId: string;
4541
+ attemptId: string;
4542
+ renderId: string;
4543
+ reviewId: string;
4544
+ expectedProductionRevision: number;
4545
+ idempotencyKey: string;
4546
+ projectId: string;
4547
+ }, {
4548
+ tenantId: string & import("zod").$brand<"TenantId">;
4549
+ productionId: string & import("zod").$brand<"ProductionId">;
4550
+ planId: string;
4551
+ attemptId: string;
4552
+ renderId: string;
4553
+ reviewId: string;
4554
+ expectedProductionRevision: number;
4555
+ idempotencyKey: string;
4556
+ projectId: string & import("zod").$brand<"ProjectId">;
4557
+ }, {
4558
+ semanticStatus: "SUCCESS";
4559
+ event: {
4560
+ id: string;
4561
+ attemptId: string;
4562
+ version: number;
4563
+ outcome: "WAIVED" | "AWAITING_REVIEW" | "IMPROVED" | "NO_IMPROVEMENT" | "OPERATIONAL_FAILURE";
4564
+ renderId: string | null;
4565
+ reviewId: string | null;
4566
+ recordedAt: string;
4567
+ generationId?: string | undefined;
4568
+ };
4569
+ productionRevision: number;
4570
+ }, {
4571
+ semanticStatus: "SUCCESS";
4572
+ event: {
4573
+ id: string;
4574
+ attemptId: string;
4575
+ version: number;
4576
+ outcome: "WAIVED" | "AWAITING_REVIEW" | "IMPROVED" | "NO_IMPROVEMENT" | "OPERATIONAL_FAILURE";
4577
+ renderId: string | null;
4578
+ reviewId: string | null;
4579
+ recordedAt: string;
4580
+ generationId?: string | undefined;
4581
+ };
4582
+ productionRevision: number;
4583
+ }>;
4584
+ };