@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,3049 @@
1
+ import { z } from "zod";
2
+ export declare const coreOperations: {
3
+ readonly "visual-sequence.register": import("./spec.js").HttpOperationSpec<{
4
+ tenantId: string;
5
+ projectId: string;
6
+ productionId: string | null;
7
+ idempotencyKey: string;
8
+ width: number;
9
+ height: number;
10
+ frameArtifactIds: string[];
11
+ }, {
12
+ tenantId: string & z.core.$brand<"TenantId">;
13
+ projectId: string & z.core.$brand<"ProjectId">;
14
+ productionId: (string & z.core.$brand<"ProductionId">) | null;
15
+ idempotencyKey: string;
16
+ width: number;
17
+ height: number;
18
+ frameArtifactIds: (string & z.core.$brand<"ArtifactId">)[];
19
+ }, {
20
+ sequence: {
21
+ schemaVersion: 1;
22
+ profileId: "RGBA_PNG_SEQUENCE_30_V1";
23
+ tenantId: string & z.core.$brand<"TenantId">;
24
+ projectId: string & z.core.$brand<"ProjectId">;
25
+ productionId: (string & z.core.$brand<"ProductionId">) | null;
26
+ artifactId: string & z.core.$brand<"ArtifactId">;
27
+ representationId: string & z.core.$brand<"ArtifactRepresentationId">;
28
+ checksumSha256: string;
29
+ width: number;
30
+ height: number;
31
+ frameRate: 30;
32
+ frameCount: number;
33
+ alpha: "STRAIGHT_RGBA";
34
+ frames: {
35
+ ordinal: number;
36
+ artifactId: string & z.core.$brand<"ArtifactId">;
37
+ representationId: string & z.core.$brand<"ArtifactRepresentationId">;
38
+ checksumSha256: string;
39
+ byteSize: number;
40
+ }[];
41
+ };
42
+ freshness: "STALE_BASIS" | "CURRENT_BASIS";
43
+ staleReasons: ("SEQUENCE_UNAVAILABLE" | "FRAME_UNAVAILABLE")[];
44
+ createdAt: string;
45
+ }, {
46
+ sequence: {
47
+ schemaVersion: 1;
48
+ profileId: "RGBA_PNG_SEQUENCE_30_V1";
49
+ tenantId: string;
50
+ projectId: string;
51
+ productionId: string | null;
52
+ artifactId: string;
53
+ representationId: string;
54
+ checksumSha256: string;
55
+ width: number;
56
+ height: number;
57
+ frameRate: 30;
58
+ frameCount: number;
59
+ alpha: "STRAIGHT_RGBA";
60
+ frames: {
61
+ ordinal: number;
62
+ artifactId: string;
63
+ representationId: string;
64
+ checksumSha256: string;
65
+ byteSize: number;
66
+ }[];
67
+ };
68
+ freshness: "STALE_BASIS" | "CURRENT_BASIS";
69
+ staleReasons: ("SEQUENCE_UNAVAILABLE" | "FRAME_UNAVAILABLE")[];
70
+ createdAt: string;
71
+ }>;
72
+ readonly "visual-sequence.get": import("./spec.js").HttpOperationSpec<{
73
+ tenantId: string;
74
+ projectId: string;
75
+ artifactId: string;
76
+ }, {
77
+ tenantId: string & z.core.$brand<"TenantId">;
78
+ projectId: string & z.core.$brand<"ProjectId">;
79
+ artifactId: string & z.core.$brand<"ArtifactId">;
80
+ }, {
81
+ sequence: {
82
+ schemaVersion: 1;
83
+ profileId: "RGBA_PNG_SEQUENCE_30_V1";
84
+ tenantId: string & z.core.$brand<"TenantId">;
85
+ projectId: string & z.core.$brand<"ProjectId">;
86
+ productionId: (string & z.core.$brand<"ProductionId">) | null;
87
+ artifactId: string & z.core.$brand<"ArtifactId">;
88
+ representationId: string & z.core.$brand<"ArtifactRepresentationId">;
89
+ checksumSha256: string;
90
+ width: number;
91
+ height: number;
92
+ frameRate: 30;
93
+ frameCount: number;
94
+ alpha: "STRAIGHT_RGBA";
95
+ frames: {
96
+ ordinal: number;
97
+ artifactId: string & z.core.$brand<"ArtifactId">;
98
+ representationId: string & z.core.$brand<"ArtifactRepresentationId">;
99
+ checksumSha256: string;
100
+ byteSize: number;
101
+ }[];
102
+ };
103
+ freshness: "STALE_BASIS" | "CURRENT_BASIS";
104
+ staleReasons: ("SEQUENCE_UNAVAILABLE" | "FRAME_UNAVAILABLE")[];
105
+ createdAt: string;
106
+ }, {
107
+ sequence: {
108
+ schemaVersion: 1;
109
+ profileId: "RGBA_PNG_SEQUENCE_30_V1";
110
+ tenantId: string;
111
+ projectId: string;
112
+ productionId: string | null;
113
+ artifactId: string;
114
+ representationId: string;
115
+ checksumSha256: string;
116
+ width: number;
117
+ height: number;
118
+ frameRate: 30;
119
+ frameCount: number;
120
+ alpha: "STRAIGHT_RGBA";
121
+ frames: {
122
+ ordinal: number;
123
+ artifactId: string;
124
+ representationId: string;
125
+ checksumSha256: string;
126
+ byteSize: number;
127
+ }[];
128
+ };
129
+ freshness: "STALE_BASIS" | "CURRENT_BASIS";
130
+ staleReasons: ("SEQUENCE_UNAVAILABLE" | "FRAME_UNAVAILABLE")[];
131
+ createdAt: string;
132
+ }>;
133
+ readonly "visual-sequence.query": import("./spec.js").HttpOperationSpec<{
134
+ tenantId: string;
135
+ projectId: string;
136
+ limit?: number | undefined;
137
+ next?: string | undefined;
138
+ }, {
139
+ tenantId: string & z.core.$brand<"TenantId">;
140
+ projectId: string & z.core.$brand<"ProjectId">;
141
+ limit: number;
142
+ next?: string | undefined;
143
+ }, {
144
+ items: {
145
+ sequence: {
146
+ schemaVersion: 1;
147
+ profileId: "RGBA_PNG_SEQUENCE_30_V1";
148
+ tenantId: string & z.core.$brand<"TenantId">;
149
+ projectId: string & z.core.$brand<"ProjectId">;
150
+ productionId: (string & z.core.$brand<"ProductionId">) | null;
151
+ artifactId: string & z.core.$brand<"ArtifactId">;
152
+ representationId: string & z.core.$brand<"ArtifactRepresentationId">;
153
+ checksumSha256: string;
154
+ width: number;
155
+ height: number;
156
+ frameRate: 30;
157
+ frameCount: number;
158
+ alpha: "STRAIGHT_RGBA";
159
+ frames: {
160
+ ordinal: number;
161
+ artifactId: string & z.core.$brand<"ArtifactId">;
162
+ representationId: string & z.core.$brand<"ArtifactRepresentationId">;
163
+ checksumSha256: string;
164
+ byteSize: number;
165
+ }[];
166
+ };
167
+ freshness: "STALE_BASIS" | "CURRENT_BASIS";
168
+ staleReasons: ("SEQUENCE_UNAVAILABLE" | "FRAME_UNAVAILABLE")[];
169
+ createdAt: string;
170
+ }[];
171
+ page: {
172
+ hasMore: boolean;
173
+ next: string | null;
174
+ };
175
+ }, {
176
+ items: {
177
+ sequence: {
178
+ schemaVersion: 1;
179
+ profileId: "RGBA_PNG_SEQUENCE_30_V1";
180
+ tenantId: string;
181
+ projectId: string;
182
+ productionId: string | null;
183
+ artifactId: string;
184
+ representationId: string;
185
+ checksumSha256: string;
186
+ width: number;
187
+ height: number;
188
+ frameRate: 30;
189
+ frameCount: number;
190
+ alpha: "STRAIGHT_RGBA";
191
+ frames: {
192
+ ordinal: number;
193
+ artifactId: string;
194
+ representationId: string;
195
+ checksumSha256: string;
196
+ byteSize: number;
197
+ }[];
198
+ };
199
+ freshness: "STALE_BASIS" | "CURRENT_BASIS";
200
+ staleReasons: ("SEQUENCE_UNAVAILABLE" | "FRAME_UNAVAILABLE")[];
201
+ createdAt: string;
202
+ }[];
203
+ page: {
204
+ hasMore: boolean;
205
+ next: string | null;
206
+ };
207
+ }>;
208
+ readonly "project.create": import("./spec.js").HttpOperationSpec<{
209
+ name: string;
210
+ tenantId: string;
211
+ idempotencyKey: string;
212
+ }, {
213
+ name: string;
214
+ tenantId: string & z.core.$brand<"TenantId">;
215
+ idempotencyKey: string;
216
+ }, {
217
+ project: {
218
+ id: string & z.core.$brand<"ProjectId">;
219
+ tenantId: string & z.core.$brand<"TenantId">;
220
+ name: string;
221
+ lifecycle: "ACTIVE" | "ARCHIVED";
222
+ defaultActiveProductionId: (string & z.core.$brand<"ProductionId">) | null;
223
+ revision: number;
224
+ createdByPrincipalId: string & z.core.$brand<"PrincipalId">;
225
+ createdAt: string;
226
+ updatedAt: string;
227
+ };
228
+ production: {
229
+ id: string & z.core.$brand<"ProductionId">;
230
+ tenantId: string & z.core.$brand<"TenantId">;
231
+ projectId: string & z.core.$brand<"ProjectId">;
232
+ state: {
233
+ lifecycle: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED";
234
+ phase: "INTAKE" | "PLANNING" | "PREPARING_GENERATION" | "GENERATING" | "SHOT_REVIEW" | "ASSEMBLING" | "ROUGH_CUT_REVIEW" | "FINAL_READY" | "FINAL_RENDERING" | "DELIVERY_VALIDATION";
235
+ condition: "BLOCKED" | "RUNNABLE" | "RUNNING" | "WAITING_PROVIDER" | "WAITING_HUMAN" | "RETRYING";
236
+ revision: number;
237
+ blockingReason: string | null;
238
+ waitingReason: string | null;
239
+ };
240
+ activeBriefVersion: number | null;
241
+ activeStoryVersion: number | null;
242
+ activeSceneShotPlanVersion: number | null;
243
+ createdByPrincipalId: string & z.core.$brand<"PrincipalId">;
244
+ createdAt: string;
245
+ updatedAt: string;
246
+ };
247
+ }, {
248
+ project: {
249
+ id: string;
250
+ tenantId: string;
251
+ name: string;
252
+ lifecycle: "ACTIVE" | "ARCHIVED";
253
+ defaultActiveProductionId: string | null;
254
+ revision: number;
255
+ createdByPrincipalId: string;
256
+ createdAt: string;
257
+ updatedAt: string;
258
+ };
259
+ production: {
260
+ id: string;
261
+ tenantId: string;
262
+ projectId: string;
263
+ state: {
264
+ lifecycle: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED";
265
+ phase: "INTAKE" | "PLANNING" | "PREPARING_GENERATION" | "GENERATING" | "SHOT_REVIEW" | "ASSEMBLING" | "ROUGH_CUT_REVIEW" | "FINAL_READY" | "FINAL_RENDERING" | "DELIVERY_VALIDATION";
266
+ condition: "BLOCKED" | "RUNNABLE" | "RUNNING" | "WAITING_PROVIDER" | "WAITING_HUMAN" | "RETRYING";
267
+ revision: number;
268
+ blockingReason: string | null;
269
+ waitingReason: string | null;
270
+ };
271
+ createdByPrincipalId: string;
272
+ createdAt: string;
273
+ updatedAt: string;
274
+ activeBriefVersion?: number | null | undefined;
275
+ activeStoryVersion?: number | null | undefined;
276
+ activeSceneShotPlanVersion?: number | null | undefined;
277
+ };
278
+ }>;
279
+ readonly "production.create": import("./spec.js").HttpOperationSpec<{
280
+ tenantId: string;
281
+ projectId: string;
282
+ idempotencyKey: string;
283
+ }, {
284
+ tenantId: string & z.core.$brand<"TenantId">;
285
+ projectId: string & z.core.$brand<"ProjectId">;
286
+ idempotencyKey: string;
287
+ }, {
288
+ project: {
289
+ id: string & z.core.$brand<"ProjectId">;
290
+ tenantId: string & z.core.$brand<"TenantId">;
291
+ name: string;
292
+ lifecycle: "ACTIVE" | "ARCHIVED";
293
+ defaultActiveProductionId: (string & z.core.$brand<"ProductionId">) | null;
294
+ revision: number;
295
+ createdByPrincipalId: string & z.core.$brand<"PrincipalId">;
296
+ createdAt: string;
297
+ updatedAt: string;
298
+ };
299
+ production: {
300
+ id: string & z.core.$brand<"ProductionId">;
301
+ tenantId: string & z.core.$brand<"TenantId">;
302
+ projectId: string & z.core.$brand<"ProjectId">;
303
+ state: {
304
+ lifecycle: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED";
305
+ phase: "INTAKE" | "PLANNING" | "PREPARING_GENERATION" | "GENERATING" | "SHOT_REVIEW" | "ASSEMBLING" | "ROUGH_CUT_REVIEW" | "FINAL_READY" | "FINAL_RENDERING" | "DELIVERY_VALIDATION";
306
+ condition: "BLOCKED" | "RUNNABLE" | "RUNNING" | "WAITING_PROVIDER" | "WAITING_HUMAN" | "RETRYING";
307
+ revision: number;
308
+ blockingReason: string | null;
309
+ waitingReason: string | null;
310
+ };
311
+ activeBriefVersion: number | null;
312
+ activeStoryVersion: number | null;
313
+ activeSceneShotPlanVersion: number | null;
314
+ createdByPrincipalId: string & z.core.$brand<"PrincipalId">;
315
+ createdAt: string;
316
+ updatedAt: string;
317
+ };
318
+ }, {
319
+ project: {
320
+ id: string;
321
+ tenantId: string;
322
+ name: string;
323
+ lifecycle: "ACTIVE" | "ARCHIVED";
324
+ defaultActiveProductionId: string | null;
325
+ revision: number;
326
+ createdByPrincipalId: string;
327
+ createdAt: string;
328
+ updatedAt: string;
329
+ };
330
+ production: {
331
+ id: string;
332
+ tenantId: string;
333
+ projectId: string;
334
+ state: {
335
+ lifecycle: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED";
336
+ phase: "INTAKE" | "PLANNING" | "PREPARING_GENERATION" | "GENERATING" | "SHOT_REVIEW" | "ASSEMBLING" | "ROUGH_CUT_REVIEW" | "FINAL_READY" | "FINAL_RENDERING" | "DELIVERY_VALIDATION";
337
+ condition: "BLOCKED" | "RUNNABLE" | "RUNNING" | "WAITING_PROVIDER" | "WAITING_HUMAN" | "RETRYING";
338
+ revision: number;
339
+ blockingReason: string | null;
340
+ waitingReason: string | null;
341
+ };
342
+ createdByPrincipalId: string;
343
+ createdAt: string;
344
+ updatedAt: string;
345
+ activeBriefVersion?: number | null | undefined;
346
+ activeStoryVersion?: number | null | undefined;
347
+ activeSceneShotPlanVersion?: number | null | undefined;
348
+ };
349
+ }>;
350
+ readonly "production.terminate": import("./spec.js").HttpOperationSpec<{
351
+ tenantId: string;
352
+ projectId: string;
353
+ productionId: string;
354
+ outcome: "FAILED" | "CANCELLED";
355
+ expectedProductionRevision: number;
356
+ reason: string;
357
+ idempotencyKey: string;
358
+ }, {
359
+ tenantId: string & z.core.$brand<"TenantId">;
360
+ projectId: string & z.core.$brand<"ProjectId">;
361
+ productionId: string & z.core.$brand<"ProductionId">;
362
+ outcome: "FAILED" | "CANCELLED";
363
+ expectedProductionRevision: number;
364
+ reason: string;
365
+ idempotencyKey: string;
366
+ }, {
367
+ decisionId: string;
368
+ productionId: string & z.core.$brand<"ProductionId">;
369
+ projectId: string & z.core.$brand<"ProjectId">;
370
+ state: {
371
+ lifecycle: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED";
372
+ phase: "INTAKE" | "PLANNING" | "PREPARING_GENERATION" | "GENERATING" | "SHOT_REVIEW" | "ASSEMBLING" | "ROUGH_CUT_REVIEW" | "FINAL_READY" | "FINAL_RENDERING" | "DELIVERY_VALIDATION";
373
+ condition: "BLOCKED" | "RUNNABLE" | "RUNNING" | "WAITING_PROVIDER" | "WAITING_HUMAN" | "RETRYING";
374
+ revision: number;
375
+ blockingReason: string | null;
376
+ waitingReason: string | null;
377
+ };
378
+ }, {
379
+ decisionId: string;
380
+ productionId: string;
381
+ projectId: string;
382
+ state: {
383
+ lifecycle: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED";
384
+ phase: "INTAKE" | "PLANNING" | "PREPARING_GENERATION" | "GENERATING" | "SHOT_REVIEW" | "ASSEMBLING" | "ROUGH_CUT_REVIEW" | "FINAL_READY" | "FINAL_RENDERING" | "DELIVERY_VALIDATION";
385
+ condition: "BLOCKED" | "RUNNABLE" | "RUNNING" | "WAITING_PROVIDER" | "WAITING_HUMAN" | "RETRYING";
386
+ revision: number;
387
+ blockingReason: string | null;
388
+ waitingReason: string | null;
389
+ };
390
+ }>;
391
+ readonly "project.query": import("./spec.js").HttpOperationSpec<{
392
+ tenantId: string;
393
+ limit?: number | undefined;
394
+ next?: string | undefined;
395
+ }, {
396
+ tenantId: string & z.core.$brand<"TenantId">;
397
+ limit: number;
398
+ next?: string | undefined;
399
+ }, {
400
+ items: {
401
+ id: string & z.core.$brand<"ProjectId">;
402
+ tenantId: string & z.core.$brand<"TenantId">;
403
+ name: string;
404
+ lifecycle: "ACTIVE" | "ARCHIVED";
405
+ defaultActiveProductionId: (string & z.core.$brand<"ProductionId">) | null;
406
+ revision: number;
407
+ createdByPrincipalId: string & z.core.$brand<"PrincipalId">;
408
+ createdAt: string;
409
+ updatedAt: string;
410
+ }[];
411
+ page: {
412
+ hasMore: boolean;
413
+ next: string | null;
414
+ };
415
+ }, {
416
+ items: {
417
+ id: string;
418
+ tenantId: string;
419
+ name: string;
420
+ lifecycle: "ACTIVE" | "ARCHIVED";
421
+ defaultActiveProductionId: string | null;
422
+ revision: number;
423
+ createdByPrincipalId: string;
424
+ createdAt: string;
425
+ updatedAt: string;
426
+ }[];
427
+ page: {
428
+ hasMore: boolean;
429
+ next: string | null;
430
+ };
431
+ }>;
432
+ readonly "project.get": import("./spec.js").HttpOperationSpec<{
433
+ tenantId: string;
434
+ projectId: string;
435
+ }, {
436
+ tenantId: string & z.core.$brand<"TenantId">;
437
+ projectId: string & z.core.$brand<"ProjectId">;
438
+ }, {
439
+ project: {
440
+ id: string & z.core.$brand<"ProjectId">;
441
+ tenantId: string & z.core.$brand<"TenantId">;
442
+ name: string;
443
+ lifecycle: "ACTIVE" | "ARCHIVED";
444
+ defaultActiveProductionId: (string & z.core.$brand<"ProductionId">) | null;
445
+ revision: number;
446
+ createdByPrincipalId: string & z.core.$brand<"PrincipalId">;
447
+ createdAt: string;
448
+ updatedAt: string;
449
+ };
450
+ productions: {
451
+ id: string & z.core.$brand<"ProductionId">;
452
+ tenantId: string & z.core.$brand<"TenantId">;
453
+ projectId: string & z.core.$brand<"ProjectId">;
454
+ state: {
455
+ lifecycle: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED";
456
+ phase: "INTAKE" | "PLANNING" | "PREPARING_GENERATION" | "GENERATING" | "SHOT_REVIEW" | "ASSEMBLING" | "ROUGH_CUT_REVIEW" | "FINAL_READY" | "FINAL_RENDERING" | "DELIVERY_VALIDATION";
457
+ condition: "BLOCKED" | "RUNNABLE" | "RUNNING" | "WAITING_PROVIDER" | "WAITING_HUMAN" | "RETRYING";
458
+ revision: number;
459
+ blockingReason: string | null;
460
+ waitingReason: string | null;
461
+ };
462
+ activeBriefVersion: number | null;
463
+ activeStoryVersion: number | null;
464
+ activeSceneShotPlanVersion: number | null;
465
+ createdByPrincipalId: string & z.core.$brand<"PrincipalId">;
466
+ createdAt: string;
467
+ updatedAt: string;
468
+ }[];
469
+ possiblyTruncated: boolean;
470
+ }, {
471
+ project: {
472
+ id: string;
473
+ tenantId: string;
474
+ name: string;
475
+ lifecycle: "ACTIVE" | "ARCHIVED";
476
+ defaultActiveProductionId: string | null;
477
+ revision: number;
478
+ createdByPrincipalId: string;
479
+ createdAt: string;
480
+ updatedAt: string;
481
+ };
482
+ productions: {
483
+ id: string;
484
+ tenantId: string;
485
+ projectId: string;
486
+ state: {
487
+ lifecycle: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED";
488
+ phase: "INTAKE" | "PLANNING" | "PREPARING_GENERATION" | "GENERATING" | "SHOT_REVIEW" | "ASSEMBLING" | "ROUGH_CUT_REVIEW" | "FINAL_READY" | "FINAL_RENDERING" | "DELIVERY_VALIDATION";
489
+ condition: "BLOCKED" | "RUNNABLE" | "RUNNING" | "WAITING_PROVIDER" | "WAITING_HUMAN" | "RETRYING";
490
+ revision: number;
491
+ blockingReason: string | null;
492
+ waitingReason: string | null;
493
+ };
494
+ createdByPrincipalId: string;
495
+ createdAt: string;
496
+ updatedAt: string;
497
+ activeBriefVersion?: number | null | undefined;
498
+ activeStoryVersion?: number | null | undefined;
499
+ activeSceneShotPlanVersion?: number | null | undefined;
500
+ }[];
501
+ possiblyTruncated: boolean;
502
+ }>;
503
+ readonly "source.query": import("./spec.js").HttpOperationSpec<{
504
+ tenantId: string;
505
+ limit?: number | undefined;
506
+ next?: string | undefined;
507
+ projectId?: string | undefined;
508
+ }, {
509
+ tenantId: string & z.core.$brand<"TenantId">;
510
+ limit: number;
511
+ next?: string | undefined;
512
+ projectId?: (string & z.core.$brand<"ProjectId">) | undefined;
513
+ }, {
514
+ items: {
515
+ artifactId: string;
516
+ representationId: string;
517
+ projectId: string & z.core.$brand<"ProjectId">;
518
+ kind: "REFERENCE_IMAGE" | "REFERENCE_VIDEO" | "PRODUCT_INFORMATION";
519
+ originalName: string;
520
+ checksumSha256: string;
521
+ contentType: "application/json" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "video/mp4";
522
+ byteSize: number;
523
+ width: number | null;
524
+ height: number | null;
525
+ createdAt: string;
526
+ }[];
527
+ page: {
528
+ hasMore: boolean;
529
+ next: string | null;
530
+ };
531
+ }, {
532
+ items: {
533
+ artifactId: string;
534
+ representationId: string;
535
+ projectId: string;
536
+ kind: "REFERENCE_IMAGE" | "REFERENCE_VIDEO" | "PRODUCT_INFORMATION";
537
+ originalName: string;
538
+ checksumSha256: string;
539
+ contentType: "application/json" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "video/mp4";
540
+ byteSize: number;
541
+ width: number | null;
542
+ height: number | null;
543
+ createdAt: string;
544
+ }[];
545
+ page: {
546
+ hasMore: boolean;
547
+ next: string | null;
548
+ };
549
+ }>;
550
+ readonly "source.ingest": import("./spec.js").HttpOperationSpec<{
551
+ tenantId: string;
552
+ kind: "REFERENCE_IMAGE" | "REFERENCE_VIDEO" | "PRODUCT_INFORMATION";
553
+ contentType: "application/json" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "video/mp4";
554
+ contentBase64: string;
555
+ projectId: string;
556
+ idempotencyKey: string;
557
+ originalName?: string | undefined;
558
+ }, {
559
+ tenantId: string & z.core.$brand<"TenantId">;
560
+ kind: "REFERENCE_IMAGE" | "REFERENCE_VIDEO" | "PRODUCT_INFORMATION";
561
+ contentType: "application/json" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "video/mp4";
562
+ contentBase64: string;
563
+ projectId: string & z.core.$brand<"ProjectId">;
564
+ idempotencyKey: string;
565
+ originalName?: string | undefined;
566
+ }, {
567
+ artifact: {
568
+ id: string & z.core.$brand<"ArtifactId">;
569
+ tenantId: string & z.core.$brand<"TenantId">;
570
+ projectId: string & z.core.$brand<"ProjectId">;
571
+ productionId: (string & z.core.$brand<"ProductionId">) | null;
572
+ family: string;
573
+ origin: string;
574
+ lifecycle: "ARCHIVED" | "READY" | "CREATING" | "PROCESSING" | "INVALID";
575
+ createdByPrincipalId: string & z.core.$brand<"PrincipalId">;
576
+ checksumSha256: string | null;
577
+ contentType: string | null;
578
+ primaryRepresentationId: (string & z.core.$brand<"ArtifactRepresentationId">) | null;
579
+ mediaMetadata: Record<string, unknown>;
580
+ createdAt: string;
581
+ readyAt: string | null;
582
+ };
583
+ primaryRepresentation: {
584
+ id: string & z.core.$brand<"ArtifactRepresentationId">;
585
+ tenantId: string & z.core.$brand<"TenantId">;
586
+ artifactId: string & z.core.$brand<"ArtifactId">;
587
+ role: string;
588
+ storageDriver: string;
589
+ storageLocator: Record<string, unknown>;
590
+ checksumSha256: string;
591
+ contentType: string;
592
+ byteSize: string;
593
+ width: number | null;
594
+ height: number | null;
595
+ durationMs: string | null;
596
+ frameRate: string | null;
597
+ videoCodec: string | null;
598
+ audioCodec: string | null;
599
+ hasAudio: boolean | null;
600
+ sampleRateHz: number | null;
601
+ audioChannels: number | null;
602
+ createdAt: string;
603
+ };
604
+ relations: {
605
+ id: string & z.core.$brand<"ArtifactRelationId">;
606
+ tenantId: string & z.core.$brand<"TenantId">;
607
+ sourceArtifactId: string & z.core.$brand<"ArtifactId">;
608
+ targetArtifactId: string & z.core.$brand<"ArtifactId">;
609
+ relationType: string;
610
+ createdByPrincipalId: string & z.core.$brand<"PrincipalId">;
611
+ createdAt: string;
612
+ }[];
613
+ }, {
614
+ artifact: {
615
+ id: string;
616
+ tenantId: string;
617
+ projectId: string;
618
+ productionId: string | null;
619
+ family: string;
620
+ origin: string;
621
+ lifecycle: "ARCHIVED" | "READY" | "CREATING" | "PROCESSING" | "INVALID";
622
+ createdByPrincipalId: string;
623
+ checksumSha256: string | null;
624
+ contentType: string | null;
625
+ primaryRepresentationId: string | null;
626
+ mediaMetadata: Record<string, unknown>;
627
+ createdAt: string;
628
+ readyAt: string | null;
629
+ };
630
+ primaryRepresentation: {
631
+ id: string;
632
+ tenantId: string;
633
+ artifactId: string;
634
+ role: string;
635
+ storageDriver: string;
636
+ storageLocator: Record<string, unknown>;
637
+ checksumSha256: string;
638
+ contentType: string;
639
+ byteSize: string;
640
+ width: number | null;
641
+ height: number | null;
642
+ durationMs: string | null;
643
+ frameRate: string | null;
644
+ videoCodec: string | null;
645
+ audioCodec: string | null;
646
+ hasAudio: boolean | null;
647
+ sampleRateHz: number | null;
648
+ audioChannels: number | null;
649
+ createdAt: string;
650
+ };
651
+ relations: {
652
+ id: string;
653
+ tenantId: string;
654
+ sourceArtifactId: string;
655
+ targetArtifactId: string;
656
+ relationType: string;
657
+ createdByPrincipalId: string;
658
+ createdAt: string;
659
+ }[];
660
+ }>;
661
+ readonly "source.text": import("./spec.js").HttpOperationSpec<{
662
+ tenantId: string;
663
+ projectId: string;
664
+ artifactId: string;
665
+ offsetBytes?: number | undefined;
666
+ maxTextBytes?: number | undefined;
667
+ }, {
668
+ tenantId: string & z.core.$brand<"TenantId">;
669
+ projectId: string & z.core.$brand<"ProjectId">;
670
+ artifactId: string;
671
+ offsetBytes: number;
672
+ maxTextBytes: number;
673
+ }, {
674
+ tenantId: string & z.core.$brand<"TenantId">;
675
+ projectId: string & z.core.$brand<"ProjectId">;
676
+ artifactId: string;
677
+ contentType: "application/json" | "text/plain";
678
+ checksumSha256: string;
679
+ totalBytes: number;
680
+ offsetBytes: number;
681
+ byteLength: number;
682
+ nextOffsetBytes: number | null;
683
+ text: string;
684
+ }, {
685
+ tenantId: string;
686
+ projectId: string;
687
+ artifactId: string;
688
+ contentType: "application/json" | "text/plain";
689
+ checksumSha256: string;
690
+ totalBytes: number;
691
+ offsetBytes: number;
692
+ byteLength: number;
693
+ nextOffsetBytes: number | null;
694
+ text: string;
695
+ }>;
696
+ readonly "production.query": import("./spec.js").HttpOperationSpec<{
697
+ tenantId: string;
698
+ projectId?: string | undefined;
699
+ search?: string | undefined;
700
+ attention?: "FINISHED" | "NEEDS_YOU" | "WORKING" | undefined;
701
+ limit?: number | undefined;
702
+ next?: string | undefined;
703
+ }, {
704
+ tenantId: string & z.core.$brand<"TenantId">;
705
+ limit: number;
706
+ projectId?: (string & z.core.$brand<"ProjectId">) | undefined;
707
+ search?: string | undefined;
708
+ attention?: "FINISHED" | "NEEDS_YOU" | "WORKING" | undefined;
709
+ next?: string | undefined;
710
+ }, {
711
+ items: {
712
+ id: string & z.core.$brand<"ProductionId">;
713
+ tenantId: string & z.core.$brand<"TenantId">;
714
+ projectId: string & z.core.$brand<"ProjectId">;
715
+ state: {
716
+ lifecycle: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED";
717
+ phase: "INTAKE" | "PLANNING" | "PREPARING_GENERATION" | "GENERATING" | "SHOT_REVIEW" | "ASSEMBLING" | "ROUGH_CUT_REVIEW" | "FINAL_READY" | "FINAL_RENDERING" | "DELIVERY_VALIDATION";
718
+ condition: "BLOCKED" | "RUNNABLE" | "RUNNING" | "WAITING_PROVIDER" | "WAITING_HUMAN" | "RETRYING";
719
+ revision: number;
720
+ blockingReason: string | null;
721
+ waitingReason: string | null;
722
+ };
723
+ activeBriefVersion: number | null;
724
+ activeStoryVersion: number | null;
725
+ activeSceneShotPlanVersion: number | null;
726
+ createdByPrincipalId: string & z.core.$brand<"PrincipalId">;
727
+ createdAt: string;
728
+ updatedAt: string;
729
+ }[];
730
+ page: {
731
+ hasMore: boolean;
732
+ next: string | null;
733
+ };
734
+ }, {
735
+ items: {
736
+ id: string;
737
+ tenantId: string;
738
+ projectId: string;
739
+ state: {
740
+ lifecycle: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED";
741
+ phase: "INTAKE" | "PLANNING" | "PREPARING_GENERATION" | "GENERATING" | "SHOT_REVIEW" | "ASSEMBLING" | "ROUGH_CUT_REVIEW" | "FINAL_READY" | "FINAL_RENDERING" | "DELIVERY_VALIDATION";
742
+ condition: "BLOCKED" | "RUNNABLE" | "RUNNING" | "WAITING_PROVIDER" | "WAITING_HUMAN" | "RETRYING";
743
+ revision: number;
744
+ blockingReason: string | null;
745
+ waitingReason: string | null;
746
+ };
747
+ createdByPrincipalId: string;
748
+ createdAt: string;
749
+ updatedAt: string;
750
+ activeBriefVersion?: number | null | undefined;
751
+ activeStoryVersion?: number | null | undefined;
752
+ activeSceneShotPlanVersion?: number | null | undefined;
753
+ }[];
754
+ page: {
755
+ hasMore: boolean;
756
+ next: string | null;
757
+ };
758
+ }>;
759
+ readonly "production.snapshot": import("./spec.js").HttpOperationSpec<{
760
+ tenantId: string;
761
+ productionId: string;
762
+ }, {
763
+ tenantId: string & z.core.$brand<"TenantId">;
764
+ productionId: string & z.core.$brand<"ProductionId">;
765
+ }, {
766
+ tenantId: string & z.core.$brand<"TenantId">;
767
+ projectId: string & z.core.$brand<"ProjectId">;
768
+ productionId: string & z.core.$brand<"ProductionId">;
769
+ state: {
770
+ lifecycle: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED";
771
+ phase: "INTAKE" | "PLANNING" | "PREPARING_GENERATION" | "GENERATING" | "SHOT_REVIEW" | "ASSEMBLING" | "ROUGH_CUT_REVIEW" | "FINAL_READY" | "FINAL_RENDERING" | "DELIVERY_VALIDATION";
772
+ condition: "BLOCKED" | "RUNNABLE" | "RUNNING" | "WAITING_PROVIDER" | "WAITING_HUMAN" | "RETRYING";
773
+ revision: number;
774
+ blockingReason: string | null;
775
+ waitingReason: string | null;
776
+ };
777
+ planning: {
778
+ activeBriefVersion: number | null;
779
+ activeStoryVersion: number | null;
780
+ activeSceneShotPlanVersion: number | null;
781
+ };
782
+ shots: {
783
+ planned: number;
784
+ ready: number;
785
+ generating: number;
786
+ candidates: number;
787
+ accepted: number;
788
+ blocked: number;
789
+ stale: number;
790
+ };
791
+ findings: {
792
+ open: number;
793
+ blocking: number;
794
+ warnings: number;
795
+ };
796
+ timeline: {
797
+ currentVersion: number | null;
798
+ stale: boolean;
799
+ versionId?: string | null | undefined;
800
+ timelineId?: string | null | undefined;
801
+ staleReasons?: ("BRIEF_CHANGED" | "STORY_CHANGED" | "PLAN_CHANGED" | "SHOT_ACCEPTANCE_CHANGED" | "PRODUCTION_UNAVAILABLE" | "CAPTION_VERSION_CHANGED" | "CAPTION_UNAVAILABLE" | "AUDIO_VERSION_CHANGED" | "AUDIO_UNAVAILABLE" | "GRAPHIC_UNAVAILABLE" | "VISUAL_LAYER_UNAVAILABLE" | "SOUND_PLAN_CHANGED" | "SOURCE_SOUND_UNAVAILABLE")[] | undefined;
802
+ assemblyStatus?: "DRAFT" | "ASSEMBLY_READY" | null | undefined;
803
+ totalDurationMs?: number | null | undefined;
804
+ durationClassification?: "TOO_SHORT" | "WITHIN_TARGET" | "TOO_LONG" | null | undefined;
805
+ missingPlannedShots?: number | undefined;
806
+ };
807
+ roughCut: {
808
+ latestVersion: number | null;
809
+ reviewState: "PASS" | "WARNING" | "UNREVIEWED" | "FAIL" | null;
810
+ latestRenderId?: string | null | undefined;
811
+ runtimeStatus?: "FAILED" | "CANCELLED" | "RUNNING" | "SUPERSEDED" | "READY" | "PENDING" | "WAITING" | "SUCCEEDED" | null | undefined;
812
+ currentRenderId?: string | null | undefined;
813
+ currentArtifactId?: string | null | undefined;
814
+ currentTimelineVersionId?: string | null | undefined;
815
+ stale?: boolean | undefined;
816
+ };
817
+ final: {
818
+ renderState: string | null;
819
+ deliveryValidationState: string | null;
820
+ ready?: {
821
+ tenantId: string & z.core.$brand<"TenantId">;
822
+ productionId: string & z.core.$brand<"ProductionId">;
823
+ version: number;
824
+ status: "NONE" | "CURRENT" | "STALE";
825
+ selection: {
826
+ tenantId: string & z.core.$brand<"TenantId">;
827
+ productionId: string & z.core.$brand<"ProductionId">;
828
+ id: string;
829
+ projectId: string & z.core.$brand<"ProjectId">;
830
+ version: number;
831
+ action: "REJECT" | "REVOKE" | "SELECT";
832
+ renderId: string;
833
+ reviewId: string;
834
+ basisFingerprint: string;
835
+ timelineVersionId: string;
836
+ timelineFingerprint: string;
837
+ artifactId: string;
838
+ representationId: string;
839
+ checksumSha256: string;
840
+ outputProfile: "MP4_H264_1080P" | "MP4_H264_720P" | "MP4_H264_480P";
841
+ executionClass: "LIVE" | "TEST_ONLY";
842
+ previousSelectionId: string | null;
843
+ acknowledgeWarnings: boolean;
844
+ warningKeys: string[];
845
+ reason: string;
846
+ createdByPrincipalId: string & z.core.$brand<"PrincipalId">;
847
+ createdAt: string;
848
+ } | null;
849
+ staleReasons: string[];
850
+ } | undefined;
851
+ render?: {
852
+ latestRenderId: string | null;
853
+ runtimeStatus: "FAILED" | "CANCELLED" | "RUNNING" | "SUPERSEDED" | "READY" | "PENDING" | "WAITING" | "SUCCEEDED" | null;
854
+ currentRenderId: string | null;
855
+ currentArtifactId: string | null;
856
+ stale: boolean;
857
+ eligibility: {
858
+ tenantId: string & z.core.$brand<"TenantId">;
859
+ productionId: string & z.core.$brand<"ProductionId">;
860
+ productionRevision: number;
861
+ finalReady: {
862
+ tenantId: string & z.core.$brand<"TenantId">;
863
+ productionId: string & z.core.$brand<"ProductionId">;
864
+ version: number;
865
+ status: "NONE" | "CURRENT" | "STALE";
866
+ selection: {
867
+ tenantId: string & z.core.$brand<"TenantId">;
868
+ productionId: string & z.core.$brand<"ProductionId">;
869
+ id: string;
870
+ projectId: string & z.core.$brand<"ProjectId">;
871
+ version: number;
872
+ action: "REJECT" | "REVOKE" | "SELECT";
873
+ renderId: string;
874
+ reviewId: string;
875
+ basisFingerprint: string;
876
+ timelineVersionId: string;
877
+ timelineFingerprint: string;
878
+ artifactId: string;
879
+ representationId: string;
880
+ checksumSha256: string;
881
+ outputProfile: "MP4_H264_1080P" | "MP4_H264_720P" | "MP4_H264_480P";
882
+ executionClass: "LIVE" | "TEST_ONLY";
883
+ previousSelectionId: string | null;
884
+ acknowledgeWarnings: boolean;
885
+ warningKeys: string[];
886
+ reason: string;
887
+ createdByPrincipalId: string & z.core.$brand<"PrincipalId">;
888
+ createdAt: string;
889
+ } | null;
890
+ staleReasons: string[];
891
+ };
892
+ profile: {
893
+ id: "FINAL_H264_1080P_V1" | "FINAL_H264_720P_V1" | "FINAL_H264_480P_V1";
894
+ algorithm: "ORDERED_TRIM_CUT_V1" | "ORDERED_COMPOSE_V2";
895
+ width: 1920 | 1080 | 1280 | 720 | 854 | 480;
896
+ height: 1920 | 1080 | 1280 | 720 | 854 | 480;
897
+ frameRate: 30;
898
+ codec: "h264";
899
+ pixelFormat: "yuv420p";
900
+ fit: "PAD";
901
+ hasAudio: boolean;
902
+ framePolicy: "CUMULATIVE_NEAREST_FRAME";
903
+ encoder: "libx264";
904
+ crf: 18;
905
+ preset: "veryfast";
906
+ gopFrames: 30;
907
+ bFrames: 0;
908
+ audioPolicy: "SILENT" | "MIXED";
909
+ captionPolicy: "NONE" | "BURN_IN";
910
+ sourceQualityPolicy: "NO_UPSCALE_V1";
911
+ picturePolicy?: "CROP_PAD_V1" | undefined;
912
+ audioMix?: {
913
+ id: "PCM_WINDOW_MIX_AAC_V1";
914
+ sampleRateHz: 48000;
915
+ audioChannels: 2;
916
+ audioCodec: "aac";
917
+ bitrate: 192000;
918
+ peakPermille: 950;
919
+ duckingMusicPermille: number;
920
+ } | undefined;
921
+ captionStyle?: {
922
+ id: "PLAIN_TEXT_NOTO_SANS_SC_V1";
923
+ fontSha256: "a3041811a78c361b1de50f953c805e0244951c21c5bd412f7232ef0d899af0da";
924
+ framePolicy: "PTS_HALF_OPEN_CEIL_V1";
925
+ } | {
926
+ id: "PLAIN_TEXT_NATIVE_SC_REGULAR_V2";
927
+ fontSha256: "e5a51f41fc1b827da651afee3975e07a182ff4f8e04d9dfc0a3cecd6177a52b6";
928
+ framePolicy: "PTS_HALF_OPEN_CEIL_V1";
929
+ } | undefined;
930
+ graphicsPolicy?: "OVERLAY_V1" | undefined;
931
+ } | {
932
+ id: "FINAL_H264_1080P_V1" | "FINAL_H264_720P_V1" | "FINAL_H264_480P_V1";
933
+ algorithm: "ORDERED_TRIM_CUT_V1" | "ORDERED_COMPOSE_V2";
934
+ width: 1920 | 1080 | 1280 | 720 | 854 | 480;
935
+ height: 1920 | 1080 | 1280 | 720 | 854 | 480;
936
+ frameRate: 30;
937
+ codec: "h264";
938
+ pixelFormat: "yuv420p";
939
+ fit: "PAD";
940
+ hasAudio: boolean;
941
+ framePolicy: "CUMULATIVE_NEAREST_FRAME";
942
+ encoder: "libx264";
943
+ crf: 18;
944
+ preset: "veryfast";
945
+ gopFrames: 30;
946
+ bFrames: 0;
947
+ audioPolicy: "SILENT" | "MIXED";
948
+ captionPolicy: "NONE" | "BURN_IN";
949
+ sourceQualityPolicy: "NO_UPSCALE_V1";
950
+ visualLayerPolicy: "STRAIGHT_ALPHA_FRAME_OVERLAY_30_V1";
951
+ visualLayerSourceQualityPolicy: "NO_UPSCALE_V1";
952
+ picturePolicy?: "CROP_PAD_V1" | undefined;
953
+ audioMix?: {
954
+ id: "PCM_WINDOW_MIX_AAC_V1";
955
+ sampleRateHz: 48000;
956
+ audioChannels: 2;
957
+ audioCodec: "aac";
958
+ bitrate: 192000;
959
+ peakPermille: 950;
960
+ duckingMusicPermille: number;
961
+ } | undefined;
962
+ captionStyle?: {
963
+ id: "PLAIN_TEXT_NOTO_SANS_SC_V1";
964
+ fontSha256: "a3041811a78c361b1de50f953c805e0244951c21c5bd412f7232ef0d899af0da";
965
+ framePolicy: "PTS_HALF_OPEN_CEIL_V1";
966
+ } | {
967
+ id: "PLAIN_TEXT_NATIVE_SC_REGULAR_V2";
968
+ fontSha256: "e5a51f41fc1b827da651afee3975e07a182ff4f8e04d9dfc0a3cecd6177a52b6";
969
+ framePolicy: "PTS_HALF_OPEN_CEIL_V1";
970
+ } | undefined;
971
+ graphicsPolicy?: "OVERLAY_V1" | undefined;
972
+ } | null;
973
+ renderable: boolean;
974
+ blockers: string[];
975
+ sourceBlockers: {
976
+ code: "SOURCE_RESOLUTION_INSUFFICIENT" | "SOURCE_MEDIA_UNSUPPORTED";
977
+ shotId: string;
978
+ ordinal: number;
979
+ actualWidth: number;
980
+ actualHeight: number;
981
+ requiredWidth: number;
982
+ requiredHeight: number;
983
+ }[];
984
+ supportedAudioPolicy: "SILENT" | "MIXED";
985
+ supportedCaptionPolicy: "NONE" | "BURN_IN";
986
+ };
987
+ } | undefined;
988
+ delivery?: {
989
+ policy: {
990
+ tenantId: string & z.core.$brand<"TenantId">;
991
+ productionId: string & z.core.$brand<"ProductionId">;
992
+ id: string;
993
+ projectId: string;
994
+ version: number;
995
+ policy: {
996
+ schemaVersion: 1;
997
+ requiredAudio: boolean;
998
+ requiredCaptions: boolean;
999
+ requiredGraphics: boolean;
1000
+ finalApproval: "HUMAN" | "AUTOMATIC";
1001
+ };
1002
+ policyFingerprint: string;
1003
+ createdByPrincipalId: string;
1004
+ createdAt: string;
1005
+ } | null;
1006
+ validation: {
1007
+ id: string;
1008
+ runtimeStatus: "FAILED" | "CANCELLED" | "RUNNING" | "SUPERSEDED" | "READY" | "PENDING" | "WAITING" | "SUCCEEDED";
1009
+ current: boolean;
1010
+ reviewId: string | null;
1011
+ result: "PASS" | "FAIL" | null;
1012
+ action: "WAITING_HUMAN" | "COMPLETE" | "BLOCK" | null;
1013
+ blockingChecks: ("FILE_READABLE" | "CHECKSUM" | "CONTAINER_PROFILE" | "DURATION" | "VIDEO_DECODE" | "AUDIO_DECODE" | "REQUIRED_AUDIO" | "REQUIRED_CAPTIONS" | "REQUIRED_GRAPHICS" | "MISSING_MEDIA" | "BLACK_FRAMES" | "ARTIFACT_REGISTRATION" | "PROVENANCE" | "MANIFEST_INTEGRITY" | "EXACT_BASIS" | "BLOCKING_FINDINGS")[];
1014
+ approvalAction: "REJECT" | "APPROVE" | null;
1015
+ } | null;
1016
+ finalDelivery: {
1017
+ id: string;
1018
+ deliveryRole: "FINAL_ARTIFACT";
1019
+ review: {
1020
+ id: string;
1021
+ target: {
1022
+ tenantId: string;
1023
+ projectId: string;
1024
+ productionId: string;
1025
+ renderId: string;
1026
+ timelineVersionId: string;
1027
+ timelineFingerprint: string;
1028
+ selectionId: string;
1029
+ selectionVersion: number;
1030
+ renderManifestFingerprint: string;
1031
+ artifactId: string;
1032
+ representationId: string;
1033
+ checksumSha256: string;
1034
+ byteSize: number;
1035
+ executionClass: "LIVE" | "TEST_ONLY";
1036
+ };
1037
+ policy: {
1038
+ schemaVersion: 1;
1039
+ requiredAudio: boolean;
1040
+ requiredCaptions: boolean;
1041
+ requiredGraphics: boolean;
1042
+ finalApproval: "HUMAN" | "AUTOMATIC";
1043
+ };
1044
+ policyFingerprint: string;
1045
+ composition: {
1046
+ hasAudio: boolean;
1047
+ hasCaptions: boolean;
1048
+ hasGraphics: boolean;
1049
+ };
1050
+ checks: {
1051
+ key: "FILE_READABLE" | "CHECKSUM" | "CONTAINER_PROFILE" | "DURATION" | "VIDEO_DECODE" | "AUDIO_DECODE" | "REQUIRED_AUDIO" | "REQUIRED_CAPTIONS" | "REQUIRED_GRAPHICS" | "MISSING_MEDIA" | "BLACK_FRAMES" | "ARTIFACT_REGISTRATION" | "PROVENANCE" | "MANIFEST_INTEGRITY" | "EXACT_BASIS" | "BLOCKING_FINDINGS";
1052
+ status: "PASS" | "UNVERIFIED" | "FAIL" | "NOT_APPLICABLE";
1053
+ detail: string;
1054
+ }[];
1055
+ result: "PASS" | "FAIL";
1056
+ blockingChecks: ("FILE_READABLE" | "CHECKSUM" | "CONTAINER_PROFILE" | "DURATION" | "VIDEO_DECODE" | "AUDIO_DECODE" | "REQUIRED_AUDIO" | "REQUIRED_CAPTIONS" | "REQUIRED_GRAPHICS" | "MISSING_MEDIA" | "BLACK_FRAMES" | "ARTIFACT_REGISTRATION" | "PROVENANCE" | "MANIFEST_INTEGRITY" | "EXACT_BASIS" | "BLOCKING_FINDINGS")[];
1057
+ createdAt: string;
1058
+ };
1059
+ manifest: {
1060
+ id: string;
1061
+ checksumSha256: string;
1062
+ target: {
1063
+ tenantId: string;
1064
+ projectId: string;
1065
+ productionId: string;
1066
+ renderId: string;
1067
+ timelineVersionId: string;
1068
+ timelineFingerprint: string;
1069
+ selectionId: string;
1070
+ selectionVersion: number;
1071
+ renderManifestFingerprint: string;
1072
+ artifactId: string;
1073
+ representationId: string;
1074
+ checksumSha256: string;
1075
+ byteSize: number;
1076
+ executionClass: "LIVE" | "TEST_ONLY";
1077
+ };
1078
+ policyFingerprint: string;
1079
+ reviewId: string;
1080
+ };
1081
+ approval: {
1082
+ id: string;
1083
+ reviewId: string;
1084
+ target: {
1085
+ tenantId: string;
1086
+ projectId: string;
1087
+ productionId: string;
1088
+ renderId: string;
1089
+ timelineVersionId: string;
1090
+ timelineFingerprint: string;
1091
+ selectionId: string;
1092
+ selectionVersion: number;
1093
+ renderManifestFingerprint: string;
1094
+ artifactId: string;
1095
+ representationId: string;
1096
+ checksumSha256: string;
1097
+ byteSize: number;
1098
+ executionClass: "LIVE" | "TEST_ONLY";
1099
+ };
1100
+ policyFingerprint: string;
1101
+ authority: "HUMAN";
1102
+ action: "REJECT" | "APPROVE";
1103
+ principalId: string;
1104
+ createdAt: string;
1105
+ } | null;
1106
+ productionRevision: number;
1107
+ completedAt: string;
1108
+ } | null;
1109
+ } | undefined;
1110
+ };
1111
+ work: {
1112
+ total: number;
1113
+ pending: number;
1114
+ ready: number;
1115
+ running: number;
1116
+ waiting: number;
1117
+ succeeded: number;
1118
+ failed: number;
1119
+ cancelled: number;
1120
+ superseded: number;
1121
+ attempts: number;
1122
+ };
1123
+ activeOperations: {
1124
+ id: string & z.core.$brand<"OperationId">;
1125
+ productionId: string & z.core.$brand<"ProductionId">;
1126
+ semanticStatus: "INVALID_INPUT" | "NOT_FOUND" | "BLOCKED" | "REVISION_CONFLICT" | "CAPABILITY_UNAVAILABLE" | "INTERNAL_OPERATIONAL_FAILURE" | "CANCELLED" | "WAITING_PROVIDER" | "RETRYING" | "SUCCESS" | "ACCEPTED" | "NO_CHANGE" | "STALE_BASIS" | "WAITING_INPUT" | "PROVIDER_UNAVAILABLE" | "BUDGET_BLOCKED" | "SUPERSEDED";
1127
+ targets: {
1128
+ type: string;
1129
+ id: string;
1130
+ version: number | null;
1131
+ }[];
1132
+ work: {
1133
+ total: number;
1134
+ pending: number;
1135
+ ready: number;
1136
+ running: number;
1137
+ waiting: number;
1138
+ succeeded: number;
1139
+ failed: number;
1140
+ cancelled: number;
1141
+ superseded: number;
1142
+ attempts: number;
1143
+ };
1144
+ blockers: string[];
1145
+ nextActions: {
1146
+ capability: string;
1147
+ targetType: string;
1148
+ targetId: string;
1149
+ availability: "UNAVAILABLE" | "AVAILABLE";
1150
+ reason: string | null;
1151
+ }[];
1152
+ startedAt: string;
1153
+ updatedAt: string;
1154
+ }[];
1155
+ blockers: {
1156
+ code: string;
1157
+ summary: string;
1158
+ targetType: string;
1159
+ targetId: string;
1160
+ }[];
1161
+ latestDecisions: string[];
1162
+ nextActions: {
1163
+ capability: string;
1164
+ targetType: string;
1165
+ targetId: string;
1166
+ availability: "UNAVAILABLE" | "AVAILABLE";
1167
+ reason: string | null;
1168
+ }[];
1169
+ generatedAt: string;
1170
+ preparation?: {
1171
+ latest: number;
1172
+ current: number;
1173
+ stale: number;
1174
+ contractValid: number;
1175
+ preflightBlocked: number;
1176
+ executionAvailable: number;
1177
+ } | undefined;
1178
+ keyframes?: {
1179
+ generations: number;
1180
+ running: number;
1181
+ waiting: number;
1182
+ registeredCandidates: number;
1183
+ testCandidates: number;
1184
+ liveCandidates: number;
1185
+ } | undefined;
1186
+ keyframeReview?: {
1187
+ reviewedCandidates: number;
1188
+ unreviewedCandidates: number;
1189
+ decisionCount: number;
1190
+ } | undefined;
1191
+ videos?: {
1192
+ generations: number;
1193
+ running: number;
1194
+ waiting: number;
1195
+ registeredCandidates: number;
1196
+ testCandidates: number;
1197
+ liveCandidates: number;
1198
+ } | undefined;
1199
+ captions?: {
1200
+ currentVersion: number | null;
1201
+ currentVersionId: string | null;
1202
+ artifactId: string | null;
1203
+ availability: "UNAVAILABLE" | "AVAILABLE" | "NONE";
1204
+ cueCount: number;
1205
+ durationMs: number | null;
1206
+ attachedToTimeline: boolean;
1207
+ attachedCaptionVersionId?: string | null | undefined;
1208
+ attachedTimelineVersionId?: string | null | undefined;
1209
+ } | undefined;
1210
+ audio?: {
1211
+ tracks: {
1212
+ purpose: "VOICEOVER" | "MUSIC";
1213
+ currentVersion: number | null;
1214
+ currentVersionId: string | null;
1215
+ artifactId: string | null;
1216
+ availability: "UNAVAILABLE" | "AVAILABLE" | "NONE";
1217
+ durationMs: number | null;
1218
+ audioChannels: 2 | 1 | null;
1219
+ attachedToTimeline: boolean;
1220
+ }[];
1221
+ } | undefined;
1222
+ review2?: {
1223
+ currentRenderId: string | null;
1224
+ latestReviewId: string | null;
1225
+ reviewVersion: number;
1226
+ result: "PASS" | "WARNING" | "FAIL" | null;
1227
+ current: boolean;
1228
+ inspectable: boolean;
1229
+ executionClass: "LIVE" | "TEST_ONLY" | null;
1230
+ findings: {
1231
+ open: number;
1232
+ blocking: number;
1233
+ warnings: number;
1234
+ };
1235
+ finalReady: {
1236
+ tenantId: string & z.core.$brand<"TenantId">;
1237
+ productionId: string & z.core.$brand<"ProductionId">;
1238
+ version: number;
1239
+ status: "NONE" | "CURRENT" | "STALE";
1240
+ selection: {
1241
+ tenantId: string & z.core.$brand<"TenantId">;
1242
+ productionId: string & z.core.$brand<"ProductionId">;
1243
+ id: string;
1244
+ projectId: string & z.core.$brand<"ProjectId">;
1245
+ version: number;
1246
+ action: "REJECT" | "REVOKE" | "SELECT";
1247
+ renderId: string;
1248
+ reviewId: string;
1249
+ basisFingerprint: string;
1250
+ timelineVersionId: string;
1251
+ timelineFingerprint: string;
1252
+ artifactId: string;
1253
+ representationId: string;
1254
+ checksumSha256: string;
1255
+ outputProfile: "MP4_H264_1080P" | "MP4_H264_720P" | "MP4_H264_480P";
1256
+ executionClass: "LIVE" | "TEST_ONLY";
1257
+ previousSelectionId: string | null;
1258
+ acknowledgeWarnings: boolean;
1259
+ warningKeys: string[];
1260
+ reason: string;
1261
+ createdByPrincipalId: string & z.core.$brand<"PrincipalId">;
1262
+ createdAt: string;
1263
+ } | null;
1264
+ staleReasons: string[];
1265
+ };
1266
+ latestDecision: {
1267
+ tenantId: string & z.core.$brand<"TenantId">;
1268
+ productionId: string & z.core.$brand<"ProductionId">;
1269
+ id: string;
1270
+ projectId: string & z.core.$brand<"ProjectId">;
1271
+ version: number;
1272
+ action: "REJECT" | "REVOKE" | "SELECT";
1273
+ renderId: string;
1274
+ reviewId: string;
1275
+ basisFingerprint: string;
1276
+ timelineVersionId: string;
1277
+ timelineFingerprint: string;
1278
+ artifactId: string;
1279
+ representationId: string;
1280
+ checksumSha256: string;
1281
+ outputProfile: "MP4_H264_1080P" | "MP4_H264_720P" | "MP4_H264_480P";
1282
+ executionClass: "LIVE" | "TEST_ONLY";
1283
+ previousSelectionId: string | null;
1284
+ acknowledgeWarnings: boolean;
1285
+ warningKeys: string[];
1286
+ reason: string;
1287
+ createdByPrincipalId: string & z.core.$brand<"PrincipalId">;
1288
+ createdAt: string;
1289
+ } | null;
1290
+ } | undefined;
1291
+ }, {
1292
+ tenantId: string;
1293
+ projectId: string;
1294
+ productionId: string;
1295
+ state: {
1296
+ lifecycle: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED";
1297
+ phase: "INTAKE" | "PLANNING" | "PREPARING_GENERATION" | "GENERATING" | "SHOT_REVIEW" | "ASSEMBLING" | "ROUGH_CUT_REVIEW" | "FINAL_READY" | "FINAL_RENDERING" | "DELIVERY_VALIDATION";
1298
+ condition: "BLOCKED" | "RUNNABLE" | "RUNNING" | "WAITING_PROVIDER" | "WAITING_HUMAN" | "RETRYING";
1299
+ revision: number;
1300
+ blockingReason: string | null;
1301
+ waitingReason: string | null;
1302
+ };
1303
+ planning: {
1304
+ activeBriefVersion: number | null;
1305
+ activeStoryVersion: number | null;
1306
+ activeSceneShotPlanVersion: number | null;
1307
+ };
1308
+ shots: {
1309
+ planned: number;
1310
+ ready: number;
1311
+ generating: number;
1312
+ candidates: number;
1313
+ accepted: number;
1314
+ blocked: number;
1315
+ stale: number;
1316
+ };
1317
+ findings: {
1318
+ open: number;
1319
+ blocking: number;
1320
+ warnings: number;
1321
+ };
1322
+ timeline: {
1323
+ currentVersion: number | null;
1324
+ stale: boolean;
1325
+ versionId?: string | null | undefined;
1326
+ timelineId?: string | null | undefined;
1327
+ staleReasons?: ("BRIEF_CHANGED" | "STORY_CHANGED" | "PLAN_CHANGED" | "SHOT_ACCEPTANCE_CHANGED" | "PRODUCTION_UNAVAILABLE" | "CAPTION_VERSION_CHANGED" | "CAPTION_UNAVAILABLE" | "AUDIO_VERSION_CHANGED" | "AUDIO_UNAVAILABLE" | "GRAPHIC_UNAVAILABLE" | "VISUAL_LAYER_UNAVAILABLE" | "SOUND_PLAN_CHANGED" | "SOURCE_SOUND_UNAVAILABLE")[] | undefined;
1328
+ assemblyStatus?: "DRAFT" | "ASSEMBLY_READY" | null | undefined;
1329
+ totalDurationMs?: number | null | undefined;
1330
+ durationClassification?: "TOO_SHORT" | "WITHIN_TARGET" | "TOO_LONG" | null | undefined;
1331
+ missingPlannedShots?: number | undefined;
1332
+ };
1333
+ roughCut: {
1334
+ latestVersion: number | null;
1335
+ reviewState: "PASS" | "WARNING" | "UNREVIEWED" | "FAIL" | null;
1336
+ latestRenderId?: string | null | undefined;
1337
+ runtimeStatus?: "FAILED" | "CANCELLED" | "RUNNING" | "SUPERSEDED" | "READY" | "PENDING" | "WAITING" | "SUCCEEDED" | null | undefined;
1338
+ currentRenderId?: string | null | undefined;
1339
+ currentArtifactId?: string | null | undefined;
1340
+ currentTimelineVersionId?: string | null | undefined;
1341
+ stale?: boolean | undefined;
1342
+ };
1343
+ final: {
1344
+ renderState: string | null;
1345
+ deliveryValidationState: string | null;
1346
+ ready?: {
1347
+ tenantId: string;
1348
+ productionId: string;
1349
+ version: number;
1350
+ status: "NONE" | "CURRENT" | "STALE";
1351
+ selection: {
1352
+ tenantId: string;
1353
+ productionId: string;
1354
+ id: string;
1355
+ projectId: string;
1356
+ version: number;
1357
+ action: "REJECT" | "REVOKE" | "SELECT";
1358
+ renderId: string;
1359
+ reviewId: string;
1360
+ basisFingerprint: string;
1361
+ timelineVersionId: string;
1362
+ timelineFingerprint: string;
1363
+ artifactId: string;
1364
+ representationId: string;
1365
+ checksumSha256: string;
1366
+ outputProfile: "MP4_H264_1080P" | "MP4_H264_720P" | "MP4_H264_480P";
1367
+ executionClass: "LIVE" | "TEST_ONLY";
1368
+ previousSelectionId: string | null;
1369
+ acknowledgeWarnings: boolean;
1370
+ warningKeys: string[];
1371
+ reason: string;
1372
+ createdByPrincipalId: string;
1373
+ createdAt: string;
1374
+ } | null;
1375
+ staleReasons: string[];
1376
+ } | undefined;
1377
+ render?: {
1378
+ latestRenderId: string | null;
1379
+ runtimeStatus: "FAILED" | "CANCELLED" | "RUNNING" | "SUPERSEDED" | "READY" | "PENDING" | "WAITING" | "SUCCEEDED" | null;
1380
+ currentRenderId: string | null;
1381
+ currentArtifactId: string | null;
1382
+ stale: boolean;
1383
+ eligibility: {
1384
+ tenantId: string;
1385
+ productionId: string;
1386
+ productionRevision: number;
1387
+ finalReady: {
1388
+ tenantId: string;
1389
+ productionId: string;
1390
+ version: number;
1391
+ status: "NONE" | "CURRENT" | "STALE";
1392
+ selection: {
1393
+ tenantId: string;
1394
+ productionId: string;
1395
+ id: string;
1396
+ projectId: string;
1397
+ version: number;
1398
+ action: "REJECT" | "REVOKE" | "SELECT";
1399
+ renderId: string;
1400
+ reviewId: string;
1401
+ basisFingerprint: string;
1402
+ timelineVersionId: string;
1403
+ timelineFingerprint: string;
1404
+ artifactId: string;
1405
+ representationId: string;
1406
+ checksumSha256: string;
1407
+ outputProfile: "MP4_H264_1080P" | "MP4_H264_720P" | "MP4_H264_480P";
1408
+ executionClass: "LIVE" | "TEST_ONLY";
1409
+ previousSelectionId: string | null;
1410
+ acknowledgeWarnings: boolean;
1411
+ warningKeys: string[];
1412
+ reason: string;
1413
+ createdByPrincipalId: string;
1414
+ createdAt: string;
1415
+ } | null;
1416
+ staleReasons: string[];
1417
+ };
1418
+ profile: {
1419
+ id: "FINAL_H264_1080P_V1" | "FINAL_H264_720P_V1" | "FINAL_H264_480P_V1";
1420
+ algorithm: "ORDERED_TRIM_CUT_V1" | "ORDERED_COMPOSE_V2";
1421
+ width: 1920 | 1080 | 1280 | 720 | 854 | 480;
1422
+ height: 1920 | 1080 | 1280 | 720 | 854 | 480;
1423
+ frameRate: 30;
1424
+ codec: "h264";
1425
+ pixelFormat: "yuv420p";
1426
+ fit: "PAD";
1427
+ hasAudio: boolean;
1428
+ framePolicy: "CUMULATIVE_NEAREST_FRAME";
1429
+ encoder: "libx264";
1430
+ crf: 18;
1431
+ preset: "veryfast";
1432
+ gopFrames: 30;
1433
+ bFrames: 0;
1434
+ audioPolicy: "SILENT" | "MIXED";
1435
+ captionPolicy: "NONE" | "BURN_IN";
1436
+ sourceQualityPolicy: "NO_UPSCALE_V1";
1437
+ visualLayerPolicy: "STRAIGHT_ALPHA_FRAME_OVERLAY_30_V1";
1438
+ visualLayerSourceQualityPolicy: "NO_UPSCALE_V1";
1439
+ picturePolicy?: "CROP_PAD_V1" | undefined;
1440
+ audioMix?: {
1441
+ id: "PCM_WINDOW_MIX_AAC_V1";
1442
+ sampleRateHz: 48000;
1443
+ audioChannels: 2;
1444
+ audioCodec: "aac";
1445
+ bitrate: 192000;
1446
+ peakPermille: 950;
1447
+ duckingMusicPermille: number;
1448
+ } | undefined;
1449
+ captionStyle?: {
1450
+ id: "PLAIN_TEXT_NOTO_SANS_SC_V1";
1451
+ fontSha256: "a3041811a78c361b1de50f953c805e0244951c21c5bd412f7232ef0d899af0da";
1452
+ framePolicy: "PTS_HALF_OPEN_CEIL_V1";
1453
+ } | {
1454
+ id: "PLAIN_TEXT_NATIVE_SC_REGULAR_V2";
1455
+ fontSha256: "e5a51f41fc1b827da651afee3975e07a182ff4f8e04d9dfc0a3cecd6177a52b6";
1456
+ framePolicy: "PTS_HALF_OPEN_CEIL_V1";
1457
+ } | undefined;
1458
+ graphicsPolicy?: "OVERLAY_V1" | undefined;
1459
+ } | {
1460
+ id: "FINAL_H264_1080P_V1" | "FINAL_H264_720P_V1" | "FINAL_H264_480P_V1";
1461
+ algorithm: "ORDERED_TRIM_CUT_V1" | "ORDERED_COMPOSE_V2";
1462
+ width: 1920 | 1080 | 1280 | 720 | 854 | 480;
1463
+ height: 1920 | 1080 | 1280 | 720 | 854 | 480;
1464
+ frameRate: 30;
1465
+ codec: "h264";
1466
+ pixelFormat: "yuv420p";
1467
+ fit: "PAD";
1468
+ hasAudio: boolean;
1469
+ framePolicy: "CUMULATIVE_NEAREST_FRAME";
1470
+ encoder: "libx264";
1471
+ crf: 18;
1472
+ preset: "veryfast";
1473
+ gopFrames: 30;
1474
+ bFrames: 0;
1475
+ audioPolicy: "SILENT" | "MIXED";
1476
+ captionPolicy: "NONE" | "BURN_IN";
1477
+ sourceQualityPolicy: "NO_UPSCALE_V1";
1478
+ picturePolicy?: "CROP_PAD_V1" | undefined;
1479
+ audioMix?: {
1480
+ id: "PCM_WINDOW_MIX_AAC_V1";
1481
+ sampleRateHz: 48000;
1482
+ audioChannels: 2;
1483
+ audioCodec: "aac";
1484
+ bitrate: 192000;
1485
+ peakPermille: 950;
1486
+ duckingMusicPermille: number;
1487
+ } | undefined;
1488
+ captionStyle?: {
1489
+ id: "PLAIN_TEXT_NOTO_SANS_SC_V1";
1490
+ fontSha256: "a3041811a78c361b1de50f953c805e0244951c21c5bd412f7232ef0d899af0da";
1491
+ framePolicy: "PTS_HALF_OPEN_CEIL_V1";
1492
+ } | {
1493
+ id: "PLAIN_TEXT_NATIVE_SC_REGULAR_V2";
1494
+ fontSha256: "e5a51f41fc1b827da651afee3975e07a182ff4f8e04d9dfc0a3cecd6177a52b6";
1495
+ framePolicy: "PTS_HALF_OPEN_CEIL_V1";
1496
+ } | undefined;
1497
+ graphicsPolicy?: "OVERLAY_V1" | undefined;
1498
+ } | null;
1499
+ renderable: boolean;
1500
+ blockers: string[];
1501
+ sourceBlockers: {
1502
+ code: "SOURCE_RESOLUTION_INSUFFICIENT" | "SOURCE_MEDIA_UNSUPPORTED";
1503
+ shotId: string;
1504
+ ordinal: number;
1505
+ actualWidth: number;
1506
+ actualHeight: number;
1507
+ requiredWidth: number;
1508
+ requiredHeight: number;
1509
+ }[];
1510
+ supportedAudioPolicy: "SILENT" | "MIXED";
1511
+ supportedCaptionPolicy: "NONE" | "BURN_IN";
1512
+ };
1513
+ } | undefined;
1514
+ delivery?: {
1515
+ policy: {
1516
+ tenantId: string;
1517
+ productionId: string;
1518
+ id: string;
1519
+ projectId: string;
1520
+ version: number;
1521
+ policy: {
1522
+ schemaVersion: 1;
1523
+ requiredAudio: boolean;
1524
+ requiredCaptions: boolean;
1525
+ requiredGraphics: boolean;
1526
+ finalApproval: "HUMAN" | "AUTOMATIC";
1527
+ };
1528
+ policyFingerprint: string;
1529
+ createdByPrincipalId: string;
1530
+ createdAt: string;
1531
+ } | null;
1532
+ validation: {
1533
+ id: string;
1534
+ runtimeStatus: "FAILED" | "CANCELLED" | "RUNNING" | "SUPERSEDED" | "READY" | "PENDING" | "WAITING" | "SUCCEEDED";
1535
+ current: boolean;
1536
+ reviewId: string | null;
1537
+ result: "PASS" | "FAIL" | null;
1538
+ action: "WAITING_HUMAN" | "COMPLETE" | "BLOCK" | null;
1539
+ blockingChecks: ("FILE_READABLE" | "CHECKSUM" | "CONTAINER_PROFILE" | "DURATION" | "VIDEO_DECODE" | "AUDIO_DECODE" | "REQUIRED_AUDIO" | "REQUIRED_CAPTIONS" | "REQUIRED_GRAPHICS" | "MISSING_MEDIA" | "BLACK_FRAMES" | "ARTIFACT_REGISTRATION" | "PROVENANCE" | "MANIFEST_INTEGRITY" | "EXACT_BASIS" | "BLOCKING_FINDINGS")[];
1540
+ approvalAction: "REJECT" | "APPROVE" | null;
1541
+ } | null;
1542
+ finalDelivery: {
1543
+ id: string;
1544
+ deliveryRole: "FINAL_ARTIFACT";
1545
+ review: {
1546
+ id: string;
1547
+ target: {
1548
+ tenantId: string;
1549
+ projectId: string;
1550
+ productionId: string;
1551
+ renderId: string;
1552
+ timelineVersionId: string;
1553
+ timelineFingerprint: string;
1554
+ selectionId: string;
1555
+ selectionVersion: number;
1556
+ renderManifestFingerprint: string;
1557
+ artifactId: string;
1558
+ representationId: string;
1559
+ checksumSha256: string;
1560
+ byteSize: number;
1561
+ executionClass: "LIVE" | "TEST_ONLY";
1562
+ };
1563
+ policy: {
1564
+ schemaVersion: 1;
1565
+ requiredAudio: boolean;
1566
+ requiredCaptions: boolean;
1567
+ requiredGraphics: boolean;
1568
+ finalApproval: "HUMAN" | "AUTOMATIC";
1569
+ };
1570
+ policyFingerprint: string;
1571
+ composition: {
1572
+ hasAudio: boolean;
1573
+ hasCaptions: boolean;
1574
+ hasGraphics: boolean;
1575
+ };
1576
+ checks: {
1577
+ key: "FILE_READABLE" | "CHECKSUM" | "CONTAINER_PROFILE" | "DURATION" | "VIDEO_DECODE" | "AUDIO_DECODE" | "REQUIRED_AUDIO" | "REQUIRED_CAPTIONS" | "REQUIRED_GRAPHICS" | "MISSING_MEDIA" | "BLACK_FRAMES" | "ARTIFACT_REGISTRATION" | "PROVENANCE" | "MANIFEST_INTEGRITY" | "EXACT_BASIS" | "BLOCKING_FINDINGS";
1578
+ status: "PASS" | "UNVERIFIED" | "FAIL" | "NOT_APPLICABLE";
1579
+ detail: string;
1580
+ }[];
1581
+ result: "PASS" | "FAIL";
1582
+ blockingChecks: ("FILE_READABLE" | "CHECKSUM" | "CONTAINER_PROFILE" | "DURATION" | "VIDEO_DECODE" | "AUDIO_DECODE" | "REQUIRED_AUDIO" | "REQUIRED_CAPTIONS" | "REQUIRED_GRAPHICS" | "MISSING_MEDIA" | "BLACK_FRAMES" | "ARTIFACT_REGISTRATION" | "PROVENANCE" | "MANIFEST_INTEGRITY" | "EXACT_BASIS" | "BLOCKING_FINDINGS")[];
1583
+ createdAt: string;
1584
+ };
1585
+ manifest: {
1586
+ id: string;
1587
+ checksumSha256: string;
1588
+ target: {
1589
+ tenantId: string;
1590
+ projectId: string;
1591
+ productionId: string;
1592
+ renderId: string;
1593
+ timelineVersionId: string;
1594
+ timelineFingerprint: string;
1595
+ selectionId: string;
1596
+ selectionVersion: number;
1597
+ renderManifestFingerprint: string;
1598
+ artifactId: string;
1599
+ representationId: string;
1600
+ checksumSha256: string;
1601
+ byteSize: number;
1602
+ executionClass: "LIVE" | "TEST_ONLY";
1603
+ };
1604
+ policyFingerprint: string;
1605
+ reviewId: string;
1606
+ };
1607
+ approval: {
1608
+ id: string;
1609
+ reviewId: string;
1610
+ target: {
1611
+ tenantId: string;
1612
+ projectId: string;
1613
+ productionId: string;
1614
+ renderId: string;
1615
+ timelineVersionId: string;
1616
+ timelineFingerprint: string;
1617
+ selectionId: string;
1618
+ selectionVersion: number;
1619
+ renderManifestFingerprint: string;
1620
+ artifactId: string;
1621
+ representationId: string;
1622
+ checksumSha256: string;
1623
+ byteSize: number;
1624
+ executionClass: "LIVE" | "TEST_ONLY";
1625
+ };
1626
+ policyFingerprint: string;
1627
+ authority: "HUMAN";
1628
+ action: "REJECT" | "APPROVE";
1629
+ principalId: string;
1630
+ createdAt: string;
1631
+ } | null;
1632
+ productionRevision: number;
1633
+ completedAt: string;
1634
+ } | null;
1635
+ } | undefined;
1636
+ };
1637
+ work: {
1638
+ total: number;
1639
+ pending: number;
1640
+ ready: number;
1641
+ running: number;
1642
+ waiting: number;
1643
+ succeeded: number;
1644
+ failed: number;
1645
+ cancelled: number;
1646
+ superseded: number;
1647
+ attempts: number;
1648
+ };
1649
+ activeOperations: {
1650
+ id: string;
1651
+ productionId: string;
1652
+ semanticStatus: "INVALID_INPUT" | "NOT_FOUND" | "BLOCKED" | "REVISION_CONFLICT" | "CAPABILITY_UNAVAILABLE" | "INTERNAL_OPERATIONAL_FAILURE" | "CANCELLED" | "WAITING_PROVIDER" | "RETRYING" | "SUCCESS" | "ACCEPTED" | "NO_CHANGE" | "STALE_BASIS" | "WAITING_INPUT" | "PROVIDER_UNAVAILABLE" | "BUDGET_BLOCKED" | "SUPERSEDED";
1653
+ targets: {
1654
+ type: string;
1655
+ id: string;
1656
+ version: number | null;
1657
+ }[];
1658
+ work: {
1659
+ total: number;
1660
+ pending: number;
1661
+ ready: number;
1662
+ running: number;
1663
+ waiting: number;
1664
+ succeeded: number;
1665
+ failed: number;
1666
+ cancelled: number;
1667
+ superseded: number;
1668
+ attempts: number;
1669
+ };
1670
+ blockers: string[];
1671
+ nextActions: {
1672
+ capability: string;
1673
+ targetType: string;
1674
+ targetId: string;
1675
+ availability: "UNAVAILABLE" | "AVAILABLE";
1676
+ reason: string | null;
1677
+ }[];
1678
+ startedAt: string;
1679
+ updatedAt: string;
1680
+ }[];
1681
+ blockers: {
1682
+ code: string;
1683
+ summary: string;
1684
+ targetType: string;
1685
+ targetId: string;
1686
+ }[];
1687
+ latestDecisions: string[];
1688
+ nextActions: {
1689
+ capability: string;
1690
+ targetType: string;
1691
+ targetId: string;
1692
+ availability: "UNAVAILABLE" | "AVAILABLE";
1693
+ reason: string | null;
1694
+ }[];
1695
+ generatedAt: string;
1696
+ preparation?: {
1697
+ latest: number;
1698
+ current: number;
1699
+ stale: number;
1700
+ contractValid: number;
1701
+ preflightBlocked: number;
1702
+ executionAvailable: number;
1703
+ } | undefined;
1704
+ keyframes?: {
1705
+ generations: number;
1706
+ running: number;
1707
+ waiting: number;
1708
+ registeredCandidates: number;
1709
+ testCandidates: number;
1710
+ liveCandidates: number;
1711
+ } | undefined;
1712
+ keyframeReview?: {
1713
+ reviewedCandidates: number;
1714
+ unreviewedCandidates: number;
1715
+ decisionCount: number;
1716
+ } | undefined;
1717
+ videos?: {
1718
+ generations: number;
1719
+ running: number;
1720
+ waiting: number;
1721
+ registeredCandidates: number;
1722
+ testCandidates: number;
1723
+ liveCandidates: number;
1724
+ } | undefined;
1725
+ captions?: {
1726
+ currentVersion: number | null;
1727
+ currentVersionId: string | null;
1728
+ artifactId: string | null;
1729
+ availability: "UNAVAILABLE" | "AVAILABLE" | "NONE";
1730
+ cueCount: number;
1731
+ durationMs: number | null;
1732
+ attachedToTimeline: boolean;
1733
+ attachedCaptionVersionId?: string | null | undefined;
1734
+ attachedTimelineVersionId?: string | null | undefined;
1735
+ } | undefined;
1736
+ audio?: {
1737
+ tracks: {
1738
+ purpose: "VOICEOVER" | "MUSIC";
1739
+ currentVersion: number | null;
1740
+ currentVersionId: string | null;
1741
+ artifactId: string | null;
1742
+ availability: "UNAVAILABLE" | "AVAILABLE" | "NONE";
1743
+ durationMs: number | null;
1744
+ audioChannels: 2 | 1 | null;
1745
+ attachedToTimeline: boolean;
1746
+ }[];
1747
+ } | undefined;
1748
+ review2?: {
1749
+ currentRenderId: string | null;
1750
+ latestReviewId: string | null;
1751
+ reviewVersion: number;
1752
+ result: "PASS" | "WARNING" | "FAIL" | null;
1753
+ current: boolean;
1754
+ inspectable: boolean;
1755
+ executionClass: "LIVE" | "TEST_ONLY" | null;
1756
+ findings: {
1757
+ open: number;
1758
+ blocking: number;
1759
+ warnings: number;
1760
+ };
1761
+ finalReady: {
1762
+ tenantId: string;
1763
+ productionId: string;
1764
+ version: number;
1765
+ status: "NONE" | "CURRENT" | "STALE";
1766
+ selection: {
1767
+ tenantId: string;
1768
+ productionId: string;
1769
+ id: string;
1770
+ projectId: string;
1771
+ version: number;
1772
+ action: "REJECT" | "REVOKE" | "SELECT";
1773
+ renderId: string;
1774
+ reviewId: string;
1775
+ basisFingerprint: string;
1776
+ timelineVersionId: string;
1777
+ timelineFingerprint: string;
1778
+ artifactId: string;
1779
+ representationId: string;
1780
+ checksumSha256: string;
1781
+ outputProfile: "MP4_H264_1080P" | "MP4_H264_720P" | "MP4_H264_480P";
1782
+ executionClass: "LIVE" | "TEST_ONLY";
1783
+ previousSelectionId: string | null;
1784
+ acknowledgeWarnings: boolean;
1785
+ warningKeys: string[];
1786
+ reason: string;
1787
+ createdByPrincipalId: string;
1788
+ createdAt: string;
1789
+ } | null;
1790
+ staleReasons: string[];
1791
+ };
1792
+ latestDecision: {
1793
+ tenantId: string;
1794
+ productionId: string;
1795
+ id: string;
1796
+ projectId: string;
1797
+ version: number;
1798
+ action: "REJECT" | "REVOKE" | "SELECT";
1799
+ renderId: string;
1800
+ reviewId: string;
1801
+ basisFingerprint: string;
1802
+ timelineVersionId: string;
1803
+ timelineFingerprint: string;
1804
+ artifactId: string;
1805
+ representationId: string;
1806
+ checksumSha256: string;
1807
+ outputProfile: "MP4_H264_1080P" | "MP4_H264_720P" | "MP4_H264_480P";
1808
+ executionClass: "LIVE" | "TEST_ONLY";
1809
+ previousSelectionId: string | null;
1810
+ acknowledgeWarnings: boolean;
1811
+ warningKeys: string[];
1812
+ reason: string;
1813
+ createdByPrincipalId: string;
1814
+ createdAt: string;
1815
+ } | null;
1816
+ } | undefined;
1817
+ }>;
1818
+ readonly "brief.accept": import("./spec.js").HttpOperationSpec<{
1819
+ tenantId: string;
1820
+ expectedProductionRevision: number;
1821
+ content: {
1822
+ objective: string;
1823
+ productPresentationGoal: string;
1824
+ targetDurationSeconds: number;
1825
+ aspectRatio: "16:9" | "9:16";
1826
+ outputProfile: "MP4_H264_1080P" | "MP4_H264_720P" | "MP4_H264_480P";
1827
+ audience?: string | undefined;
1828
+ styleTone?: string | undefined;
1829
+ callToAction?: string | undefined;
1830
+ canonicalFacts?: {
1831
+ key: string;
1832
+ value: string;
1833
+ sourceArtifactId: string;
1834
+ evidence: {
1835
+ kind: "JSON_POINTER";
1836
+ pointer: string;
1837
+ } | {
1838
+ kind: "EXACT_TEXT_LINE";
1839
+ };
1840
+ }[] | undefined;
1841
+ };
1842
+ projectId: string;
1843
+ productionId: string;
1844
+ revisionReason?: string | undefined;
1845
+ sourceArtifactIds?: string[] | undefined;
1846
+ }, {
1847
+ tenantId: string & z.core.$brand<"TenantId">;
1848
+ expectedProductionRevision: number;
1849
+ sourceArtifactIds: (string & z.core.$brand<"ArtifactId">)[];
1850
+ content: {
1851
+ objective: string;
1852
+ productPresentationGoal: string;
1853
+ targetDurationSeconds: number;
1854
+ aspectRatio: "16:9" | "9:16";
1855
+ outputProfile: "MP4_H264_1080P" | "MP4_H264_720P" | "MP4_H264_480P";
1856
+ canonicalFacts: {
1857
+ key: string;
1858
+ value: string;
1859
+ sourceArtifactId: string & z.core.$brand<"ArtifactId">;
1860
+ evidence: {
1861
+ kind: "JSON_POINTER";
1862
+ pointer: string;
1863
+ } | {
1864
+ kind: "EXACT_TEXT_LINE";
1865
+ };
1866
+ }[];
1867
+ audience?: string | undefined;
1868
+ styleTone?: string | undefined;
1869
+ callToAction?: string | undefined;
1870
+ };
1871
+ projectId: string & z.core.$brand<"ProjectId">;
1872
+ productionId: string & z.core.$brand<"ProductionId">;
1873
+ revisionReason?: string | undefined;
1874
+ }, {
1875
+ semanticStatus: "SUCCESS";
1876
+ briefVersion: {
1877
+ id: string & z.core.$brand<"BriefVersionId">;
1878
+ briefId: string & z.core.$brand<"BriefId">;
1879
+ tenantId: string & z.core.$brand<"TenantId">;
1880
+ projectId: string & z.core.$brand<"ProjectId">;
1881
+ productionId: string & z.core.$brand<"ProductionId">;
1882
+ version: number;
1883
+ content: {
1884
+ objective: string;
1885
+ productPresentationGoal: string;
1886
+ targetDurationSeconds: number;
1887
+ aspectRatio: "16:9" | "9:16";
1888
+ outputProfile: "MP4_H264_1080P" | "MP4_H264_720P" | "MP4_H264_480P";
1889
+ canonicalFacts: {
1890
+ key: string;
1891
+ value: string;
1892
+ sourceArtifactId: string & z.core.$brand<"ArtifactId">;
1893
+ evidence: {
1894
+ kind: "JSON_POINTER";
1895
+ pointer: string;
1896
+ } | {
1897
+ kind: "EXACT_TEXT_LINE";
1898
+ };
1899
+ }[];
1900
+ audience?: string | undefined;
1901
+ styleTone?: string | undefined;
1902
+ callToAction?: string | undefined;
1903
+ };
1904
+ sources: {
1905
+ artifactId: string & z.core.$brand<"ArtifactId">;
1906
+ checksumSha256: string;
1907
+ }[];
1908
+ createdByPrincipalId: string & z.core.$brand<"PrincipalId">;
1909
+ createdAt: string;
1910
+ };
1911
+ productionRevision: number;
1912
+ activeBriefVersion: number;
1913
+ } | {
1914
+ semanticStatus: "NEEDS_INPUT";
1915
+ missingFacts: ("PRODUCT_INFORMATION_SOURCE" | "PRODUCT_NAME")[];
1916
+ }, {
1917
+ semanticStatus: "SUCCESS";
1918
+ briefVersion: {
1919
+ id: string;
1920
+ briefId: string;
1921
+ tenantId: string;
1922
+ projectId: string;
1923
+ productionId: string;
1924
+ version: number;
1925
+ content: {
1926
+ objective: string;
1927
+ productPresentationGoal: string;
1928
+ targetDurationSeconds: number;
1929
+ aspectRatio: "16:9" | "9:16";
1930
+ outputProfile: "MP4_H264_1080P" | "MP4_H264_720P" | "MP4_H264_480P";
1931
+ audience?: string | undefined;
1932
+ styleTone?: string | undefined;
1933
+ callToAction?: string | undefined;
1934
+ canonicalFacts?: {
1935
+ key: string;
1936
+ value: string;
1937
+ sourceArtifactId: string;
1938
+ evidence: {
1939
+ kind: "JSON_POINTER";
1940
+ pointer: string;
1941
+ } | {
1942
+ kind: "EXACT_TEXT_LINE";
1943
+ };
1944
+ }[] | undefined;
1945
+ };
1946
+ sources: {
1947
+ artifactId: string;
1948
+ checksumSha256: string;
1949
+ }[];
1950
+ createdByPrincipalId: string;
1951
+ createdAt: string;
1952
+ };
1953
+ productionRevision: number;
1954
+ activeBriefVersion: number;
1955
+ } | {
1956
+ semanticStatus: "NEEDS_INPUT";
1957
+ missingFacts: ("PRODUCT_INFORMATION_SOURCE" | "PRODUCT_NAME")[];
1958
+ }>;
1959
+ readonly "story.accept": import("./spec.js").HttpOperationSpec<{
1960
+ tenantId: string;
1961
+ expectedProductionRevision: number;
1962
+ expectedBriefVersion: number;
1963
+ idempotencyKey: string;
1964
+ content: {
1965
+ narrativeIntent: string;
1966
+ beats: {
1967
+ summary: string;
1968
+ sceneRequirements?: string[] | undefined;
1969
+ }[];
1970
+ factualClaims?: {
1971
+ key: string;
1972
+ value: string;
1973
+ }[] | undefined;
1974
+ };
1975
+ projectId: string;
1976
+ productionId: string;
1977
+ revisionReason?: string | undefined;
1978
+ }, {
1979
+ tenantId: string & z.core.$brand<"TenantId">;
1980
+ expectedProductionRevision: number;
1981
+ expectedBriefVersion: number;
1982
+ idempotencyKey: string;
1983
+ content: {
1984
+ narrativeIntent: string;
1985
+ beats: {
1986
+ summary: string;
1987
+ sceneRequirements: string[];
1988
+ }[];
1989
+ factualClaims: {
1990
+ key: string;
1991
+ value: string;
1992
+ }[];
1993
+ };
1994
+ projectId: string & z.core.$brand<"ProjectId">;
1995
+ productionId: string & z.core.$brand<"ProductionId">;
1996
+ revisionReason?: string | undefined;
1997
+ }, {
1998
+ semanticStatus: "SUCCESS";
1999
+ storyVersion: {
2000
+ id: string & z.core.$brand<"StoryVersionId">;
2001
+ storyId: string & z.core.$brand<"StoryId">;
2002
+ tenantId: string & z.core.$brand<"TenantId">;
2003
+ projectId: string & z.core.$brand<"ProjectId">;
2004
+ productionId: string & z.core.$brand<"ProductionId">;
2005
+ version: number;
2006
+ briefVersionId: string & z.core.$brand<"BriefVersionId">;
2007
+ briefVersion: number;
2008
+ content: {
2009
+ narrativeIntent: string;
2010
+ beats: {
2011
+ summary: string;
2012
+ sceneRequirements: string[];
2013
+ }[];
2014
+ factualClaims: {
2015
+ key: string;
2016
+ value: string;
2017
+ }[];
2018
+ };
2019
+ createdByPrincipalId: string & z.core.$brand<"PrincipalId">;
2020
+ createdAt: string;
2021
+ };
2022
+ productionRevision: number;
2023
+ activeStoryVersion: number;
2024
+ } | {
2025
+ semanticStatus: "NEEDS_INPUT";
2026
+ missingPrerequisites: "ACTIVE_BRIEF"[];
2027
+ }, {
2028
+ semanticStatus: "SUCCESS";
2029
+ storyVersion: {
2030
+ id: string;
2031
+ storyId: string;
2032
+ tenantId: string;
2033
+ projectId: string;
2034
+ productionId: string;
2035
+ version: number;
2036
+ briefVersionId: string;
2037
+ briefVersion: number;
2038
+ content: {
2039
+ narrativeIntent: string;
2040
+ beats: {
2041
+ summary: string;
2042
+ sceneRequirements?: string[] | undefined;
2043
+ }[];
2044
+ factualClaims?: {
2045
+ key: string;
2046
+ value: string;
2047
+ }[] | undefined;
2048
+ };
2049
+ createdByPrincipalId: string;
2050
+ createdAt: string;
2051
+ };
2052
+ productionRevision: number;
2053
+ activeStoryVersion: number;
2054
+ } | {
2055
+ semanticStatus: "NEEDS_INPUT";
2056
+ missingPrerequisites: "ACTIVE_BRIEF"[];
2057
+ }>;
2058
+ readonly "scene-shot-plan.accept": import("./spec.js").HttpOperationSpec<{
2059
+ tenantId: string;
2060
+ expectedProductionRevision: number;
2061
+ expectedStoryVersion: number;
2062
+ idempotencyKey: string;
2063
+ scenes: {
2064
+ clientKey: string;
2065
+ purpose: string;
2066
+ shots: {
2067
+ clientKey: string;
2068
+ intent: {
2069
+ narrativePurpose: string;
2070
+ subjectAction: string;
2071
+ targetDurationSeconds: number;
2072
+ subjectRequirements?: string[] | undefined;
2073
+ cameraComposition?: string | undefined;
2074
+ factualClaims?: {
2075
+ key: string;
2076
+ value: string;
2077
+ }[] | undefined;
2078
+ requiresGeneratedKeyframe?: boolean | undefined;
2079
+ sourceMediaAllowed?: boolean | undefined;
2080
+ direction?: {
2081
+ camera: {
2082
+ scale: "EXTREME_CLOSE_UP" | "CLOSE_UP" | "MEDIUM" | "WIDE" | "EXTREME_WIDE";
2083
+ framing: "CENTERED" | "OFF_CENTER" | "SYMMETRICAL" | "OVER_SHOULDER";
2084
+ angle: "EYE_LEVEL" | "HIGH" | "LOW" | "TOP_DOWN";
2085
+ movement: "STATIC" | "PAN" | "TILT" | "DOLLY" | "TRACK" | "ORBIT" | "CRANE" | "ZOOM";
2086
+ stability: "LOCKED" | "STABILIZED" | "HANDHELD";
2087
+ direction?: "LEFT" | "RIGHT" | "UP" | "DOWN" | "FORWARD" | "BACKWARD" | "CLOCKWISE" | "COUNTERCLOCKWISE" | undefined;
2088
+ lensIntent?: string | undefined;
2089
+ };
2090
+ temporalBeats: {
2091
+ startSeconds: number;
2092
+ endSeconds: number;
2093
+ action: string;
2094
+ }[];
2095
+ environmentIntent?: string | undefined;
2096
+ lightingIntent?: string | undefined;
2097
+ styleIntent?: string | undefined;
2098
+ audioIntent?: string | undefined;
2099
+ } | undefined;
2100
+ };
2101
+ shotId?: string | undefined;
2102
+ entryBoundary?: {
2103
+ attribute: string;
2104
+ value: string;
2105
+ }[] | undefined;
2106
+ exitBoundary?: {
2107
+ attribute: string;
2108
+ value: string;
2109
+ }[] | undefined;
2110
+ }[];
2111
+ sceneId?: string | undefined;
2112
+ locationContext?: string | undefined;
2113
+ timeContext?: string | undefined;
2114
+ entryBoundary?: {
2115
+ attribute: string;
2116
+ value: string;
2117
+ }[] | undefined;
2118
+ exitBoundary?: {
2119
+ attribute: string;
2120
+ value: string;
2121
+ }[] | undefined;
2122
+ }[];
2123
+ projectId: string;
2124
+ productionId: string;
2125
+ revisionReason?: string | undefined;
2126
+ continuityEdges?: {
2127
+ fromShotKey: string;
2128
+ toShotKey: string;
2129
+ requirements: {
2130
+ mode: "PERSIST" | "TRANSITION" | "REESTABLISH" | "REVIEW";
2131
+ attribute: string;
2132
+ description: string;
2133
+ }[];
2134
+ }[] | undefined;
2135
+ }, {
2136
+ tenantId: string & z.core.$brand<"TenantId">;
2137
+ expectedProductionRevision: number;
2138
+ expectedStoryVersion: number;
2139
+ idempotencyKey: string;
2140
+ scenes: {
2141
+ clientKey: string;
2142
+ purpose: string;
2143
+ entryBoundary: {
2144
+ attribute: string;
2145
+ value: string;
2146
+ }[];
2147
+ exitBoundary: {
2148
+ attribute: string;
2149
+ value: string;
2150
+ }[];
2151
+ shots: {
2152
+ clientKey: string;
2153
+ intent: {
2154
+ narrativePurpose: string;
2155
+ subjectAction: string;
2156
+ targetDurationSeconds: number;
2157
+ subjectRequirements: string[];
2158
+ factualClaims: {
2159
+ key: string;
2160
+ value: string;
2161
+ }[];
2162
+ requiresGeneratedKeyframe: boolean;
2163
+ sourceMediaAllowed: boolean;
2164
+ cameraComposition?: string | undefined;
2165
+ direction?: {
2166
+ camera: {
2167
+ scale: "EXTREME_CLOSE_UP" | "CLOSE_UP" | "MEDIUM" | "WIDE" | "EXTREME_WIDE";
2168
+ framing: "CENTERED" | "OFF_CENTER" | "SYMMETRICAL" | "OVER_SHOULDER";
2169
+ angle: "EYE_LEVEL" | "HIGH" | "LOW" | "TOP_DOWN";
2170
+ movement: "STATIC" | "PAN" | "TILT" | "DOLLY" | "TRACK" | "ORBIT" | "CRANE" | "ZOOM";
2171
+ stability: "LOCKED" | "STABILIZED" | "HANDHELD";
2172
+ direction?: "LEFT" | "RIGHT" | "UP" | "DOWN" | "FORWARD" | "BACKWARD" | "CLOCKWISE" | "COUNTERCLOCKWISE" | undefined;
2173
+ lensIntent?: string | undefined;
2174
+ };
2175
+ temporalBeats: {
2176
+ startSeconds: number;
2177
+ endSeconds: number;
2178
+ action: string;
2179
+ }[];
2180
+ environmentIntent?: string | undefined;
2181
+ lightingIntent?: string | undefined;
2182
+ styleIntent?: string | undefined;
2183
+ audioIntent?: string | undefined;
2184
+ } | undefined;
2185
+ };
2186
+ entryBoundary: {
2187
+ attribute: string;
2188
+ value: string;
2189
+ }[];
2190
+ exitBoundary: {
2191
+ attribute: string;
2192
+ value: string;
2193
+ }[];
2194
+ shotId?: (string & z.core.$brand<"ShotId">) | undefined;
2195
+ }[];
2196
+ sceneId?: (string & z.core.$brand<"SceneId">) | undefined;
2197
+ locationContext?: string | undefined;
2198
+ timeContext?: string | undefined;
2199
+ }[];
2200
+ continuityEdges: {
2201
+ fromShotKey: string;
2202
+ toShotKey: string;
2203
+ requirements: {
2204
+ mode: "PERSIST" | "TRANSITION" | "REESTABLISH" | "REVIEW";
2205
+ attribute: string;
2206
+ description: string;
2207
+ }[];
2208
+ }[];
2209
+ projectId: string & z.core.$brand<"ProjectId">;
2210
+ productionId: string & z.core.$brand<"ProductionId">;
2211
+ revisionReason?: string | undefined;
2212
+ }, {
2213
+ semanticStatus: "SUCCESS";
2214
+ planVersion: {
2215
+ id: string & z.core.$brand<"SceneShotPlanVersionId">;
2216
+ planId: string & z.core.$brand<"SceneShotPlanId">;
2217
+ tenantId: string & z.core.$brand<"TenantId">;
2218
+ projectId: string & z.core.$brand<"ProjectId">;
2219
+ productionId: string & z.core.$brand<"ProductionId">;
2220
+ version: number;
2221
+ storyVersionId: string & z.core.$brand<"StoryVersionId">;
2222
+ storyVersion: number;
2223
+ briefVersionId: string & z.core.$brand<"BriefVersionId">;
2224
+ briefVersion: number;
2225
+ scenes: {
2226
+ sceneId: string & z.core.$brand<"SceneId">;
2227
+ clientKey: string;
2228
+ ordinal: number;
2229
+ purpose: string;
2230
+ entryBoundary: {
2231
+ attribute: string;
2232
+ value: string;
2233
+ }[];
2234
+ exitBoundary: {
2235
+ attribute: string;
2236
+ value: string;
2237
+ }[];
2238
+ shots: {
2239
+ shotId: string & z.core.$brand<"ShotId">;
2240
+ clientKey: string;
2241
+ ordinal: number;
2242
+ planningRevision: number;
2243
+ intent: {
2244
+ narrativePurpose: string;
2245
+ subjectAction: string;
2246
+ targetDurationSeconds: number;
2247
+ subjectRequirements: string[];
2248
+ factualClaims: {
2249
+ key: string;
2250
+ value: string;
2251
+ }[];
2252
+ requiresGeneratedKeyframe: boolean;
2253
+ sourceMediaAllowed: boolean;
2254
+ cameraComposition?: string | undefined;
2255
+ direction?: {
2256
+ camera: {
2257
+ scale: "EXTREME_CLOSE_UP" | "CLOSE_UP" | "MEDIUM" | "WIDE" | "EXTREME_WIDE";
2258
+ framing: "CENTERED" | "OFF_CENTER" | "SYMMETRICAL" | "OVER_SHOULDER";
2259
+ angle: "EYE_LEVEL" | "HIGH" | "LOW" | "TOP_DOWN";
2260
+ movement: "STATIC" | "PAN" | "TILT" | "DOLLY" | "TRACK" | "ORBIT" | "CRANE" | "ZOOM";
2261
+ stability: "LOCKED" | "STABILIZED" | "HANDHELD";
2262
+ direction?: "LEFT" | "RIGHT" | "UP" | "DOWN" | "FORWARD" | "BACKWARD" | "CLOCKWISE" | "COUNTERCLOCKWISE" | undefined;
2263
+ lensIntent?: string | undefined;
2264
+ };
2265
+ temporalBeats: {
2266
+ startSeconds: number;
2267
+ endSeconds: number;
2268
+ action: string;
2269
+ }[];
2270
+ environmentIntent?: string | undefined;
2271
+ lightingIntent?: string | undefined;
2272
+ styleIntent?: string | undefined;
2273
+ audioIntent?: string | undefined;
2274
+ } | undefined;
2275
+ };
2276
+ entryBoundary: {
2277
+ attribute: string;
2278
+ value: string;
2279
+ }[];
2280
+ exitBoundary: {
2281
+ attribute: string;
2282
+ value: string;
2283
+ }[];
2284
+ }[];
2285
+ locationContext?: string | undefined;
2286
+ timeContext?: string | undefined;
2287
+ }[];
2288
+ continuityEdges: {
2289
+ id: string & z.core.$brand<"ContinuityEdgeId">;
2290
+ fromShotId: string & z.core.$brand<"ShotId">;
2291
+ toShotId: string & z.core.$brand<"ShotId">;
2292
+ requirements: {
2293
+ mode: "PERSIST" | "TRANSITION" | "REESTABLISH" | "REVIEW";
2294
+ attribute: string;
2295
+ description: string;
2296
+ }[];
2297
+ }[];
2298
+ createdByPrincipalId: string & z.core.$brand<"PrincipalId">;
2299
+ createdAt: string;
2300
+ };
2301
+ productionRevision: number;
2302
+ activeSceneShotPlanVersion: number;
2303
+ } | {
2304
+ semanticStatus: "NEEDS_INPUT";
2305
+ missingPrerequisites: "ACTIVE_STORY"[];
2306
+ }, {
2307
+ semanticStatus: "SUCCESS";
2308
+ planVersion: {
2309
+ id: string;
2310
+ planId: string;
2311
+ tenantId: string;
2312
+ projectId: string;
2313
+ productionId: string;
2314
+ version: number;
2315
+ storyVersionId: string;
2316
+ storyVersion: number;
2317
+ briefVersionId: string;
2318
+ briefVersion: number;
2319
+ scenes: {
2320
+ sceneId: string;
2321
+ clientKey: string;
2322
+ ordinal: number;
2323
+ purpose: string;
2324
+ entryBoundary: {
2325
+ attribute: string;
2326
+ value: string;
2327
+ }[];
2328
+ exitBoundary: {
2329
+ attribute: string;
2330
+ value: string;
2331
+ }[];
2332
+ shots: {
2333
+ shotId: string;
2334
+ clientKey: string;
2335
+ ordinal: number;
2336
+ planningRevision: number;
2337
+ intent: {
2338
+ narrativePurpose: string;
2339
+ subjectAction: string;
2340
+ targetDurationSeconds: number;
2341
+ subjectRequirements?: string[] | undefined;
2342
+ cameraComposition?: string | undefined;
2343
+ factualClaims?: {
2344
+ key: string;
2345
+ value: string;
2346
+ }[] | undefined;
2347
+ requiresGeneratedKeyframe?: boolean | undefined;
2348
+ sourceMediaAllowed?: boolean | undefined;
2349
+ direction?: {
2350
+ camera: {
2351
+ scale: "EXTREME_CLOSE_UP" | "CLOSE_UP" | "MEDIUM" | "WIDE" | "EXTREME_WIDE";
2352
+ framing: "CENTERED" | "OFF_CENTER" | "SYMMETRICAL" | "OVER_SHOULDER";
2353
+ angle: "EYE_LEVEL" | "HIGH" | "LOW" | "TOP_DOWN";
2354
+ movement: "STATIC" | "PAN" | "TILT" | "DOLLY" | "TRACK" | "ORBIT" | "CRANE" | "ZOOM";
2355
+ stability: "LOCKED" | "STABILIZED" | "HANDHELD";
2356
+ direction?: "LEFT" | "RIGHT" | "UP" | "DOWN" | "FORWARD" | "BACKWARD" | "CLOCKWISE" | "COUNTERCLOCKWISE" | undefined;
2357
+ lensIntent?: string | undefined;
2358
+ };
2359
+ temporalBeats: {
2360
+ startSeconds: number;
2361
+ endSeconds: number;
2362
+ action: string;
2363
+ }[];
2364
+ environmentIntent?: string | undefined;
2365
+ lightingIntent?: string | undefined;
2366
+ styleIntent?: string | undefined;
2367
+ audioIntent?: string | undefined;
2368
+ } | undefined;
2369
+ };
2370
+ entryBoundary: {
2371
+ attribute: string;
2372
+ value: string;
2373
+ }[];
2374
+ exitBoundary: {
2375
+ attribute: string;
2376
+ value: string;
2377
+ }[];
2378
+ }[];
2379
+ locationContext?: string | undefined;
2380
+ timeContext?: string | undefined;
2381
+ }[];
2382
+ continuityEdges: {
2383
+ id: string;
2384
+ fromShotId: string;
2385
+ toShotId: string;
2386
+ requirements: {
2387
+ mode: "PERSIST" | "TRANSITION" | "REESTABLISH" | "REVIEW";
2388
+ attribute: string;
2389
+ description: string;
2390
+ }[];
2391
+ }[];
2392
+ createdByPrincipalId: string;
2393
+ createdAt: string;
2394
+ };
2395
+ productionRevision: number;
2396
+ activeSceneShotPlanVersion: number;
2397
+ } | {
2398
+ semanticStatus: "NEEDS_INPUT";
2399
+ missingPrerequisites: "ACTIVE_STORY"[];
2400
+ }>;
2401
+ readonly "story.query": import("./spec.js").HttpOperationSpec<{
2402
+ tenantId: string;
2403
+ productionId: string;
2404
+ limit?: number | undefined;
2405
+ next?: string | undefined;
2406
+ }, {
2407
+ tenantId: string & z.core.$brand<"TenantId">;
2408
+ productionId: string & z.core.$brand<"ProductionId">;
2409
+ limit: number;
2410
+ next?: string | undefined;
2411
+ }, {
2412
+ items: {
2413
+ id: string & z.core.$brand<"StoryVersionId">;
2414
+ storyId: string & z.core.$brand<"StoryId">;
2415
+ tenantId: string & z.core.$brand<"TenantId">;
2416
+ projectId: string & z.core.$brand<"ProjectId">;
2417
+ productionId: string & z.core.$brand<"ProductionId">;
2418
+ version: number;
2419
+ briefVersionId: string & z.core.$brand<"BriefVersionId">;
2420
+ briefVersion: number;
2421
+ content: {
2422
+ narrativeIntent: string;
2423
+ beats: {
2424
+ summary: string;
2425
+ sceneRequirements: string[];
2426
+ }[];
2427
+ factualClaims: {
2428
+ key: string;
2429
+ value: string;
2430
+ }[];
2431
+ };
2432
+ createdByPrincipalId: string & z.core.$brand<"PrincipalId">;
2433
+ createdAt: string;
2434
+ }[];
2435
+ page: {
2436
+ hasMore: boolean;
2437
+ next: string | null;
2438
+ };
2439
+ }, {
2440
+ items: {
2441
+ id: string;
2442
+ storyId: string;
2443
+ tenantId: string;
2444
+ projectId: string;
2445
+ productionId: string;
2446
+ version: number;
2447
+ briefVersionId: string;
2448
+ briefVersion: number;
2449
+ content: {
2450
+ narrativeIntent: string;
2451
+ beats: {
2452
+ summary: string;
2453
+ sceneRequirements?: string[] | undefined;
2454
+ }[];
2455
+ factualClaims?: {
2456
+ key: string;
2457
+ value: string;
2458
+ }[] | undefined;
2459
+ };
2460
+ createdByPrincipalId: string;
2461
+ createdAt: string;
2462
+ }[];
2463
+ page: {
2464
+ hasMore: boolean;
2465
+ next: string | null;
2466
+ };
2467
+ }>;
2468
+ readonly "story.active": import("./spec.js").HttpOperationSpec<{
2469
+ tenantId: string;
2470
+ productionId: string;
2471
+ }, {
2472
+ tenantId: string & z.core.$brand<"TenantId">;
2473
+ productionId: string & z.core.$brand<"ProductionId">;
2474
+ }, {
2475
+ id: string & z.core.$brand<"StoryVersionId">;
2476
+ storyId: string & z.core.$brand<"StoryId">;
2477
+ tenantId: string & z.core.$brand<"TenantId">;
2478
+ projectId: string & z.core.$brand<"ProjectId">;
2479
+ productionId: string & z.core.$brand<"ProductionId">;
2480
+ version: number;
2481
+ briefVersionId: string & z.core.$brand<"BriefVersionId">;
2482
+ briefVersion: number;
2483
+ content: {
2484
+ narrativeIntent: string;
2485
+ beats: {
2486
+ summary: string;
2487
+ sceneRequirements: string[];
2488
+ }[];
2489
+ factualClaims: {
2490
+ key: string;
2491
+ value: string;
2492
+ }[];
2493
+ };
2494
+ createdByPrincipalId: string & z.core.$brand<"PrincipalId">;
2495
+ createdAt: string;
2496
+ }, {
2497
+ id: string;
2498
+ storyId: string;
2499
+ tenantId: string;
2500
+ projectId: string;
2501
+ productionId: string;
2502
+ version: number;
2503
+ briefVersionId: string;
2504
+ briefVersion: number;
2505
+ content: {
2506
+ narrativeIntent: string;
2507
+ beats: {
2508
+ summary: string;
2509
+ sceneRequirements?: string[] | undefined;
2510
+ }[];
2511
+ factualClaims?: {
2512
+ key: string;
2513
+ value: string;
2514
+ }[] | undefined;
2515
+ };
2516
+ createdByPrincipalId: string;
2517
+ createdAt: string;
2518
+ }>;
2519
+ readonly "scene-shot-plan.query": import("./spec.js").HttpOperationSpec<{
2520
+ tenantId: string;
2521
+ productionId: string;
2522
+ limit?: number | undefined;
2523
+ next?: string | undefined;
2524
+ }, {
2525
+ tenantId: string & z.core.$brand<"TenantId">;
2526
+ productionId: string & z.core.$brand<"ProductionId">;
2527
+ limit: number;
2528
+ next?: string | undefined;
2529
+ }, {
2530
+ items: {
2531
+ id: string & z.core.$brand<"SceneShotPlanVersionId">;
2532
+ planId: string & z.core.$brand<"SceneShotPlanId">;
2533
+ tenantId: string & z.core.$brand<"TenantId">;
2534
+ projectId: string & z.core.$brand<"ProjectId">;
2535
+ productionId: string & z.core.$brand<"ProductionId">;
2536
+ version: number;
2537
+ storyVersionId: string & z.core.$brand<"StoryVersionId">;
2538
+ storyVersion: number;
2539
+ briefVersionId: string & z.core.$brand<"BriefVersionId">;
2540
+ briefVersion: number;
2541
+ scenes: {
2542
+ sceneId: string & z.core.$brand<"SceneId">;
2543
+ clientKey: string;
2544
+ ordinal: number;
2545
+ purpose: string;
2546
+ entryBoundary: {
2547
+ attribute: string;
2548
+ value: string;
2549
+ }[];
2550
+ exitBoundary: {
2551
+ attribute: string;
2552
+ value: string;
2553
+ }[];
2554
+ shots: {
2555
+ shotId: string & z.core.$brand<"ShotId">;
2556
+ clientKey: string;
2557
+ ordinal: number;
2558
+ planningRevision: number;
2559
+ intent: {
2560
+ narrativePurpose: string;
2561
+ subjectAction: string;
2562
+ targetDurationSeconds: number;
2563
+ subjectRequirements: string[];
2564
+ factualClaims: {
2565
+ key: string;
2566
+ value: string;
2567
+ }[];
2568
+ requiresGeneratedKeyframe: boolean;
2569
+ sourceMediaAllowed: boolean;
2570
+ cameraComposition?: string | undefined;
2571
+ direction?: {
2572
+ camera: {
2573
+ scale: "EXTREME_CLOSE_UP" | "CLOSE_UP" | "MEDIUM" | "WIDE" | "EXTREME_WIDE";
2574
+ framing: "CENTERED" | "OFF_CENTER" | "SYMMETRICAL" | "OVER_SHOULDER";
2575
+ angle: "EYE_LEVEL" | "HIGH" | "LOW" | "TOP_DOWN";
2576
+ movement: "STATIC" | "PAN" | "TILT" | "DOLLY" | "TRACK" | "ORBIT" | "CRANE" | "ZOOM";
2577
+ stability: "LOCKED" | "STABILIZED" | "HANDHELD";
2578
+ direction?: "LEFT" | "RIGHT" | "UP" | "DOWN" | "FORWARD" | "BACKWARD" | "CLOCKWISE" | "COUNTERCLOCKWISE" | undefined;
2579
+ lensIntent?: string | undefined;
2580
+ };
2581
+ temporalBeats: {
2582
+ startSeconds: number;
2583
+ endSeconds: number;
2584
+ action: string;
2585
+ }[];
2586
+ environmentIntent?: string | undefined;
2587
+ lightingIntent?: string | undefined;
2588
+ styleIntent?: string | undefined;
2589
+ audioIntent?: string | undefined;
2590
+ } | undefined;
2591
+ };
2592
+ entryBoundary: {
2593
+ attribute: string;
2594
+ value: string;
2595
+ }[];
2596
+ exitBoundary: {
2597
+ attribute: string;
2598
+ value: string;
2599
+ }[];
2600
+ }[];
2601
+ locationContext?: string | undefined;
2602
+ timeContext?: string | undefined;
2603
+ }[];
2604
+ continuityEdges: {
2605
+ id: string & z.core.$brand<"ContinuityEdgeId">;
2606
+ fromShotId: string & z.core.$brand<"ShotId">;
2607
+ toShotId: string & z.core.$brand<"ShotId">;
2608
+ requirements: {
2609
+ mode: "PERSIST" | "TRANSITION" | "REESTABLISH" | "REVIEW";
2610
+ attribute: string;
2611
+ description: string;
2612
+ }[];
2613
+ }[];
2614
+ createdByPrincipalId: string & z.core.$brand<"PrincipalId">;
2615
+ createdAt: string;
2616
+ }[];
2617
+ page: {
2618
+ hasMore: boolean;
2619
+ next: string | null;
2620
+ };
2621
+ }, {
2622
+ items: {
2623
+ id: string;
2624
+ planId: string;
2625
+ tenantId: string;
2626
+ projectId: string;
2627
+ productionId: string;
2628
+ version: number;
2629
+ storyVersionId: string;
2630
+ storyVersion: number;
2631
+ briefVersionId: string;
2632
+ briefVersion: number;
2633
+ scenes: {
2634
+ sceneId: string;
2635
+ clientKey: string;
2636
+ ordinal: number;
2637
+ purpose: string;
2638
+ entryBoundary: {
2639
+ attribute: string;
2640
+ value: string;
2641
+ }[];
2642
+ exitBoundary: {
2643
+ attribute: string;
2644
+ value: string;
2645
+ }[];
2646
+ shots: {
2647
+ shotId: string;
2648
+ clientKey: string;
2649
+ ordinal: number;
2650
+ planningRevision: number;
2651
+ intent: {
2652
+ narrativePurpose: string;
2653
+ subjectAction: string;
2654
+ targetDurationSeconds: number;
2655
+ subjectRequirements?: string[] | undefined;
2656
+ cameraComposition?: string | undefined;
2657
+ factualClaims?: {
2658
+ key: string;
2659
+ value: string;
2660
+ }[] | undefined;
2661
+ requiresGeneratedKeyframe?: boolean | undefined;
2662
+ sourceMediaAllowed?: boolean | undefined;
2663
+ direction?: {
2664
+ camera: {
2665
+ scale: "EXTREME_CLOSE_UP" | "CLOSE_UP" | "MEDIUM" | "WIDE" | "EXTREME_WIDE";
2666
+ framing: "CENTERED" | "OFF_CENTER" | "SYMMETRICAL" | "OVER_SHOULDER";
2667
+ angle: "EYE_LEVEL" | "HIGH" | "LOW" | "TOP_DOWN";
2668
+ movement: "STATIC" | "PAN" | "TILT" | "DOLLY" | "TRACK" | "ORBIT" | "CRANE" | "ZOOM";
2669
+ stability: "LOCKED" | "STABILIZED" | "HANDHELD";
2670
+ direction?: "LEFT" | "RIGHT" | "UP" | "DOWN" | "FORWARD" | "BACKWARD" | "CLOCKWISE" | "COUNTERCLOCKWISE" | undefined;
2671
+ lensIntent?: string | undefined;
2672
+ };
2673
+ temporalBeats: {
2674
+ startSeconds: number;
2675
+ endSeconds: number;
2676
+ action: string;
2677
+ }[];
2678
+ environmentIntent?: string | undefined;
2679
+ lightingIntent?: string | undefined;
2680
+ styleIntent?: string | undefined;
2681
+ audioIntent?: string | undefined;
2682
+ } | undefined;
2683
+ };
2684
+ entryBoundary: {
2685
+ attribute: string;
2686
+ value: string;
2687
+ }[];
2688
+ exitBoundary: {
2689
+ attribute: string;
2690
+ value: string;
2691
+ }[];
2692
+ }[];
2693
+ locationContext?: string | undefined;
2694
+ timeContext?: string | undefined;
2695
+ }[];
2696
+ continuityEdges: {
2697
+ id: string;
2698
+ fromShotId: string;
2699
+ toShotId: string;
2700
+ requirements: {
2701
+ mode: "PERSIST" | "TRANSITION" | "REESTABLISH" | "REVIEW";
2702
+ attribute: string;
2703
+ description: string;
2704
+ }[];
2705
+ }[];
2706
+ createdByPrincipalId: string;
2707
+ createdAt: string;
2708
+ }[];
2709
+ page: {
2710
+ hasMore: boolean;
2711
+ next: string | null;
2712
+ };
2713
+ }>;
2714
+ readonly "scene-shot-plan.active": import("./spec.js").HttpOperationSpec<{
2715
+ tenantId: string;
2716
+ productionId: string;
2717
+ }, {
2718
+ tenantId: string & z.core.$brand<"TenantId">;
2719
+ productionId: string & z.core.$brand<"ProductionId">;
2720
+ }, {
2721
+ id: string & z.core.$brand<"SceneShotPlanVersionId">;
2722
+ planId: string & z.core.$brand<"SceneShotPlanId">;
2723
+ tenantId: string & z.core.$brand<"TenantId">;
2724
+ projectId: string & z.core.$brand<"ProjectId">;
2725
+ productionId: string & z.core.$brand<"ProductionId">;
2726
+ version: number;
2727
+ storyVersionId: string & z.core.$brand<"StoryVersionId">;
2728
+ storyVersion: number;
2729
+ briefVersionId: string & z.core.$brand<"BriefVersionId">;
2730
+ briefVersion: number;
2731
+ scenes: {
2732
+ sceneId: string & z.core.$brand<"SceneId">;
2733
+ clientKey: string;
2734
+ ordinal: number;
2735
+ purpose: string;
2736
+ entryBoundary: {
2737
+ attribute: string;
2738
+ value: string;
2739
+ }[];
2740
+ exitBoundary: {
2741
+ attribute: string;
2742
+ value: string;
2743
+ }[];
2744
+ shots: {
2745
+ shotId: string & z.core.$brand<"ShotId">;
2746
+ clientKey: string;
2747
+ ordinal: number;
2748
+ planningRevision: number;
2749
+ intent: {
2750
+ narrativePurpose: string;
2751
+ subjectAction: string;
2752
+ targetDurationSeconds: number;
2753
+ subjectRequirements: string[];
2754
+ factualClaims: {
2755
+ key: string;
2756
+ value: string;
2757
+ }[];
2758
+ requiresGeneratedKeyframe: boolean;
2759
+ sourceMediaAllowed: boolean;
2760
+ cameraComposition?: string | undefined;
2761
+ direction?: {
2762
+ camera: {
2763
+ scale: "EXTREME_CLOSE_UP" | "CLOSE_UP" | "MEDIUM" | "WIDE" | "EXTREME_WIDE";
2764
+ framing: "CENTERED" | "OFF_CENTER" | "SYMMETRICAL" | "OVER_SHOULDER";
2765
+ angle: "EYE_LEVEL" | "HIGH" | "LOW" | "TOP_DOWN";
2766
+ movement: "STATIC" | "PAN" | "TILT" | "DOLLY" | "TRACK" | "ORBIT" | "CRANE" | "ZOOM";
2767
+ stability: "LOCKED" | "STABILIZED" | "HANDHELD";
2768
+ direction?: "LEFT" | "RIGHT" | "UP" | "DOWN" | "FORWARD" | "BACKWARD" | "CLOCKWISE" | "COUNTERCLOCKWISE" | undefined;
2769
+ lensIntent?: string | undefined;
2770
+ };
2771
+ temporalBeats: {
2772
+ startSeconds: number;
2773
+ endSeconds: number;
2774
+ action: string;
2775
+ }[];
2776
+ environmentIntent?: string | undefined;
2777
+ lightingIntent?: string | undefined;
2778
+ styleIntent?: string | undefined;
2779
+ audioIntent?: string | undefined;
2780
+ } | undefined;
2781
+ };
2782
+ entryBoundary: {
2783
+ attribute: string;
2784
+ value: string;
2785
+ }[];
2786
+ exitBoundary: {
2787
+ attribute: string;
2788
+ value: string;
2789
+ }[];
2790
+ }[];
2791
+ locationContext?: string | undefined;
2792
+ timeContext?: string | undefined;
2793
+ }[];
2794
+ continuityEdges: {
2795
+ id: string & z.core.$brand<"ContinuityEdgeId">;
2796
+ fromShotId: string & z.core.$brand<"ShotId">;
2797
+ toShotId: string & z.core.$brand<"ShotId">;
2798
+ requirements: {
2799
+ mode: "PERSIST" | "TRANSITION" | "REESTABLISH" | "REVIEW";
2800
+ attribute: string;
2801
+ description: string;
2802
+ }[];
2803
+ }[];
2804
+ createdByPrincipalId: string & z.core.$brand<"PrincipalId">;
2805
+ createdAt: string;
2806
+ }, {
2807
+ id: string;
2808
+ planId: string;
2809
+ tenantId: string;
2810
+ projectId: string;
2811
+ productionId: string;
2812
+ version: number;
2813
+ storyVersionId: string;
2814
+ storyVersion: number;
2815
+ briefVersionId: string;
2816
+ briefVersion: number;
2817
+ scenes: {
2818
+ sceneId: string;
2819
+ clientKey: string;
2820
+ ordinal: number;
2821
+ purpose: string;
2822
+ entryBoundary: {
2823
+ attribute: string;
2824
+ value: string;
2825
+ }[];
2826
+ exitBoundary: {
2827
+ attribute: string;
2828
+ value: string;
2829
+ }[];
2830
+ shots: {
2831
+ shotId: string;
2832
+ clientKey: string;
2833
+ ordinal: number;
2834
+ planningRevision: number;
2835
+ intent: {
2836
+ narrativePurpose: string;
2837
+ subjectAction: string;
2838
+ targetDurationSeconds: number;
2839
+ subjectRequirements?: string[] | undefined;
2840
+ cameraComposition?: string | undefined;
2841
+ factualClaims?: {
2842
+ key: string;
2843
+ value: string;
2844
+ }[] | undefined;
2845
+ requiresGeneratedKeyframe?: boolean | undefined;
2846
+ sourceMediaAllowed?: boolean | undefined;
2847
+ direction?: {
2848
+ camera: {
2849
+ scale: "EXTREME_CLOSE_UP" | "CLOSE_UP" | "MEDIUM" | "WIDE" | "EXTREME_WIDE";
2850
+ framing: "CENTERED" | "OFF_CENTER" | "SYMMETRICAL" | "OVER_SHOULDER";
2851
+ angle: "EYE_LEVEL" | "HIGH" | "LOW" | "TOP_DOWN";
2852
+ movement: "STATIC" | "PAN" | "TILT" | "DOLLY" | "TRACK" | "ORBIT" | "CRANE" | "ZOOM";
2853
+ stability: "LOCKED" | "STABILIZED" | "HANDHELD";
2854
+ direction?: "LEFT" | "RIGHT" | "UP" | "DOWN" | "FORWARD" | "BACKWARD" | "CLOCKWISE" | "COUNTERCLOCKWISE" | undefined;
2855
+ lensIntent?: string | undefined;
2856
+ };
2857
+ temporalBeats: {
2858
+ startSeconds: number;
2859
+ endSeconds: number;
2860
+ action: string;
2861
+ }[];
2862
+ environmentIntent?: string | undefined;
2863
+ lightingIntent?: string | undefined;
2864
+ styleIntent?: string | undefined;
2865
+ audioIntent?: string | undefined;
2866
+ } | undefined;
2867
+ };
2868
+ entryBoundary: {
2869
+ attribute: string;
2870
+ value: string;
2871
+ }[];
2872
+ exitBoundary: {
2873
+ attribute: string;
2874
+ value: string;
2875
+ }[];
2876
+ }[];
2877
+ locationContext?: string | undefined;
2878
+ timeContext?: string | undefined;
2879
+ }[];
2880
+ continuityEdges: {
2881
+ id: string;
2882
+ fromShotId: string;
2883
+ toShotId: string;
2884
+ requirements: {
2885
+ mode: "PERSIST" | "TRANSITION" | "REESTABLISH" | "REVIEW";
2886
+ attribute: string;
2887
+ description: string;
2888
+ }[];
2889
+ }[];
2890
+ createdByPrincipalId: string;
2891
+ createdAt: string;
2892
+ }>;
2893
+ readonly "operation.query": import("./spec.js").HttpOperationSpec<{
2894
+ tenantId: string;
2895
+ productionId: string;
2896
+ limit?: number | undefined;
2897
+ next?: string | undefined;
2898
+ }, {
2899
+ tenantId: string & z.core.$brand<"TenantId">;
2900
+ productionId: string & z.core.$brand<"ProductionId">;
2901
+ limit: number;
2902
+ next?: string | undefined;
2903
+ }, {
2904
+ items: {
2905
+ id: string & z.core.$brand<"OperationId">;
2906
+ productionId: string & z.core.$brand<"ProductionId">;
2907
+ semanticStatus: "INVALID_INPUT" | "NOT_FOUND" | "BLOCKED" | "REVISION_CONFLICT" | "CAPABILITY_UNAVAILABLE" | "INTERNAL_OPERATIONAL_FAILURE" | "CANCELLED" | "WAITING_PROVIDER" | "RETRYING" | "SUCCESS" | "ACCEPTED" | "NO_CHANGE" | "STALE_BASIS" | "WAITING_INPUT" | "PROVIDER_UNAVAILABLE" | "BUDGET_BLOCKED" | "SUPERSEDED";
2908
+ targets: {
2909
+ type: string;
2910
+ id: string;
2911
+ version: number | null;
2912
+ }[];
2913
+ work: {
2914
+ total: number;
2915
+ pending: number;
2916
+ ready: number;
2917
+ running: number;
2918
+ waiting: number;
2919
+ succeeded: number;
2920
+ failed: number;
2921
+ cancelled: number;
2922
+ superseded: number;
2923
+ attempts: number;
2924
+ };
2925
+ blockers: string[];
2926
+ nextActions: {
2927
+ capability: string;
2928
+ targetType: string;
2929
+ targetId: string;
2930
+ availability: "UNAVAILABLE" | "AVAILABLE";
2931
+ reason: string | null;
2932
+ }[];
2933
+ startedAt: string;
2934
+ updatedAt: string;
2935
+ }[];
2936
+ page: {
2937
+ hasMore: boolean;
2938
+ next: string | null;
2939
+ };
2940
+ }, {
2941
+ items: {
2942
+ id: string;
2943
+ productionId: string;
2944
+ semanticStatus: "INVALID_INPUT" | "NOT_FOUND" | "BLOCKED" | "REVISION_CONFLICT" | "CAPABILITY_UNAVAILABLE" | "INTERNAL_OPERATIONAL_FAILURE" | "CANCELLED" | "WAITING_PROVIDER" | "RETRYING" | "SUCCESS" | "ACCEPTED" | "NO_CHANGE" | "STALE_BASIS" | "WAITING_INPUT" | "PROVIDER_UNAVAILABLE" | "BUDGET_BLOCKED" | "SUPERSEDED";
2945
+ targets: {
2946
+ type: string;
2947
+ id: string;
2948
+ version: number | null;
2949
+ }[];
2950
+ work: {
2951
+ total: number;
2952
+ pending: number;
2953
+ ready: number;
2954
+ running: number;
2955
+ waiting: number;
2956
+ succeeded: number;
2957
+ failed: number;
2958
+ cancelled: number;
2959
+ superseded: number;
2960
+ attempts: number;
2961
+ };
2962
+ blockers: string[];
2963
+ nextActions: {
2964
+ capability: string;
2965
+ targetType: string;
2966
+ targetId: string;
2967
+ availability: "UNAVAILABLE" | "AVAILABLE";
2968
+ reason: string | null;
2969
+ }[];
2970
+ startedAt: string;
2971
+ updatedAt: string;
2972
+ }[];
2973
+ page: {
2974
+ hasMore: boolean;
2975
+ next: string | null;
2976
+ };
2977
+ }>;
2978
+ readonly "operation.get": import("./spec.js").HttpOperationSpec<{
2979
+ tenantId: string;
2980
+ productionId: string;
2981
+ operationId: string;
2982
+ }, {
2983
+ tenantId: string & z.core.$brand<"TenantId">;
2984
+ productionId: string & z.core.$brand<"ProductionId">;
2985
+ operationId: string & z.core.$brand<"OperationId">;
2986
+ }, {
2987
+ id: string & z.core.$brand<"OperationId">;
2988
+ productionId: string & z.core.$brand<"ProductionId">;
2989
+ semanticStatus: "INVALID_INPUT" | "NOT_FOUND" | "BLOCKED" | "REVISION_CONFLICT" | "CAPABILITY_UNAVAILABLE" | "INTERNAL_OPERATIONAL_FAILURE" | "CANCELLED" | "WAITING_PROVIDER" | "RETRYING" | "SUCCESS" | "ACCEPTED" | "NO_CHANGE" | "STALE_BASIS" | "WAITING_INPUT" | "PROVIDER_UNAVAILABLE" | "BUDGET_BLOCKED" | "SUPERSEDED";
2990
+ targets: {
2991
+ type: string;
2992
+ id: string;
2993
+ version: number | null;
2994
+ }[];
2995
+ work: {
2996
+ total: number;
2997
+ pending: number;
2998
+ ready: number;
2999
+ running: number;
3000
+ waiting: number;
3001
+ succeeded: number;
3002
+ failed: number;
3003
+ cancelled: number;
3004
+ superseded: number;
3005
+ attempts: number;
3006
+ };
3007
+ blockers: string[];
3008
+ nextActions: {
3009
+ capability: string;
3010
+ targetType: string;
3011
+ targetId: string;
3012
+ availability: "UNAVAILABLE" | "AVAILABLE";
3013
+ reason: string | null;
3014
+ }[];
3015
+ startedAt: string;
3016
+ updatedAt: string;
3017
+ }, {
3018
+ id: string;
3019
+ productionId: string;
3020
+ semanticStatus: "INVALID_INPUT" | "NOT_FOUND" | "BLOCKED" | "REVISION_CONFLICT" | "CAPABILITY_UNAVAILABLE" | "INTERNAL_OPERATIONAL_FAILURE" | "CANCELLED" | "WAITING_PROVIDER" | "RETRYING" | "SUCCESS" | "ACCEPTED" | "NO_CHANGE" | "STALE_BASIS" | "WAITING_INPUT" | "PROVIDER_UNAVAILABLE" | "BUDGET_BLOCKED" | "SUPERSEDED";
3021
+ targets: {
3022
+ type: string;
3023
+ id: string;
3024
+ version: number | null;
3025
+ }[];
3026
+ work: {
3027
+ total: number;
3028
+ pending: number;
3029
+ ready: number;
3030
+ running: number;
3031
+ waiting: number;
3032
+ succeeded: number;
3033
+ failed: number;
3034
+ cancelled: number;
3035
+ superseded: number;
3036
+ attempts: number;
3037
+ };
3038
+ blockers: string[];
3039
+ nextActions: {
3040
+ capability: string;
3041
+ targetType: string;
3042
+ targetId: string;
3043
+ availability: "UNAVAILABLE" | "AVAILABLE";
3044
+ reason: string | null;
3045
+ }[];
3046
+ startedAt: string;
3047
+ updatedAt: string;
3048
+ }>;
3049
+ };