@nativestudio/sdk 0.3.0-rc.2 → 0.3.0-rc.21

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 (282) hide show
  1. package/COMPATIBILITY.json +4 -4
  2. package/LICENSE +201 -21
  3. package/dist/_chunks/chunk-2QDPFLIO.js +1 -0
  4. package/dist/_chunks/chunk-7DXSLHXW.js +1 -0
  5. package/dist/_chunks/chunk-AFUVP2DC.js +1 -0
  6. package/dist/_chunks/chunk-ASUZJSEP.js +1 -0
  7. package/dist/_chunks/chunk-K3TIFCD3.js +1 -0
  8. package/dist/_chunks/chunk-NNDKZ5H5.js +1 -0
  9. package/dist/_chunks/chunk-Q53Q74OP.js +1 -0
  10. package/dist/_chunks/chunk-QVP4AMRJ.js +1 -0
  11. package/dist/_chunks/chunk-TT7IA5HB.js +1 -0
  12. package/dist/_chunks/chunk-UKPD77FB.js +1 -0
  13. package/dist/_chunks/chunk-V636KA7B.js +1 -0
  14. package/dist/_chunks/chunk-VXBIT7XN.js +1 -0
  15. package/dist/_chunks/chunk-WNXKJRZ6.js +1 -0
  16. package/dist/_types/contracts/agent-execution-lifecycle.d.ts +55 -43
  17. package/dist/_types/contracts/agent-execution-oauth.d.ts +2 -2
  18. package/dist/_types/contracts/agent-execution-registration.d.ts +59 -15
  19. package/dist/_types/contracts/agent-execution-selection.d.ts +7 -7
  20. package/dist/_types/contracts/agent-host-contract.d.ts +189 -0
  21. package/dist/_types/contracts/agent-host-execution.d.ts +92 -61
  22. package/dist/_types/contracts/agent-host-generic-transport.d.ts +4 -4
  23. package/dist/_types/contracts/agent-host-legacy-release.d.ts +31 -0
  24. package/dist/_types/contracts/agent-host-protocol.d.ts +71 -0
  25. package/dist/_types/contracts/agent-host-wire.d.ts +263 -0
  26. package/dist/_types/contracts/agent-host.d.ts +126 -65
  27. package/dist/_types/contracts/artifact-discovery.d.ts +143 -11
  28. package/dist/_types/contracts/audio.d.ts +166 -0
  29. package/dist/_types/contracts/component-status.d.ts +241 -0
  30. package/dist/_types/contracts/composition-authoring.d.ts +8 -8
  31. package/dist/_types/contracts/composition-frame-render.d.ts +4 -4
  32. package/dist/_types/contracts/composition-observation.d.ts +1 -1
  33. package/dist/_types/contracts/composition-render-base.d.ts +5 -4
  34. package/dist/_types/contracts/composition-render.d.ts +8 -8
  35. package/dist/_types/contracts/composition-repair.d.ts +10 -10
  36. package/dist/_types/contracts/composition-source-review.d.ts +13 -13
  37. package/dist/_types/contracts/consistency-profile.d.ts +102 -6
  38. package/dist/_types/contracts/continuity-evaluation.d.ts +1 -1
  39. package/dist/_types/contracts/delivery-completion.d.ts +1 -1
  40. package/dist/_types/contracts/delivery-manifest.d.ts +25 -11729
  41. package/dist/_types/contracts/delivery-operations.d.ts +207 -3915
  42. package/dist/_types/contracts/delivery-summary.d.ts +4 -4
  43. package/dist/_types/contracts/delivery-validation.d.ts +25 -2
  44. package/dist/_types/contracts/device-onboarding.d.ts +35 -0
  45. package/dist/_types/contracts/device-render.d.ts +113 -0
  46. package/dist/_types/contracts/editor-intelligence.d.ts +392 -2531
  47. package/dist/_types/contracts/enterprise-brand.d.ts +302 -0
  48. package/dist/_types/contracts/exploration-recommendation.d.ts +263 -11607
  49. package/dist/_types/contracts/external-agent-access.d.ts +4 -6
  50. package/dist/_types/contracts/federation-event-link-receiver.d.ts +200 -0
  51. package/dist/_types/contracts/federation-event-link.d.ts +485 -0
  52. package/dist/_types/contracts/federation-result.d.ts +239 -0
  53. package/dist/_types/contracts/final-ready.d.ts +24 -24
  54. package/dist/_types/contracts/final-render.d.ts +1742 -6949
  55. package/dist/_types/contracts/human-identity.d.ts +13 -0
  56. package/dist/_types/contracts/human-links.d.ts +58 -0
  57. package/dist/_types/contracts/index.d.ts +26 -0
  58. package/dist/_types/contracts/interface/common.d.ts +18 -0
  59. package/dist/_types/contracts/interface/execution-output.d.ts +9 -6
  60. package/dist/_types/contracts/interface/media-output.d.ts +118 -0
  61. package/dist/_types/contracts/interface/operation.d.ts +89 -0
  62. package/dist/_types/contracts/interface/production-snapshot.d.ts +106 -199
  63. package/dist/_types/contracts/interface/query.d.ts +85 -0
  64. package/dist/_types/contracts/keyframe-generation.d.ts +31 -2
  65. package/dist/_types/contracts/keyframe-review.d.ts +7 -7
  66. package/dist/_types/contracts/lifecycle-event-projections.d.ts +19 -4
  67. package/dist/_types/contracts/lifecycle-events.d.ts +54 -2
  68. package/dist/_types/contracts/local-execution/agent-component-status.d.ts +109 -0
  69. package/dist/_types/contracts/local-execution/agent-context.d.ts +385 -0
  70. package/dist/_types/contracts/local-execution/agent-evidence.d.ts +79 -0
  71. package/dist/_types/contracts/local-execution/agent-grant.d.ts +31 -0
  72. package/dist/_types/contracts/local-execution/agent-review.d.ts +529 -71
  73. package/dist/_types/contracts/local-execution/audio-profile.d.ts +6 -0
  74. package/dist/_types/contracts/local-execution/common.d.ts +12 -11
  75. package/dist/_types/contracts/local-execution/completion.d.ts +41 -45
  76. package/dist/_types/contracts/local-execution/components.d.ts +45 -0
  77. package/dist/_types/contracts/local-execution/cpu-preparation.d.ts +46 -0
  78. package/dist/_types/contracts/local-execution/cpu-resources.d.ts +55 -0
  79. package/dist/_types/contracts/local-execution/cpu-speech-job.d.ts +70 -0
  80. package/dist/_types/contracts/local-execution/cpu-speech.d.ts +161 -0
  81. package/dist/_types/contracts/local-execution/descriptor.d.ts +38 -0
  82. package/dist/_types/contracts/local-execution/device-authority.d.ts +31 -0
  83. package/dist/_types/contracts/local-execution/device-inventory.d.ts +108 -0
  84. package/dist/_types/contracts/local-execution/device-workspace.d.ts +11 -0
  85. package/dist/_types/contracts/local-execution/device.d.ts +24 -55
  86. package/dist/_types/contracts/local-execution/enrollment-credential.d.ts +141 -0
  87. package/dist/_types/contracts/local-execution/enrollment-handoff.d.ts +44 -0
  88. package/dist/_types/contracts/local-execution/external-generation.d.ts +199 -0
  89. package/dist/_types/contracts/local-execution/index.d.ts +36 -0
  90. package/dist/_types/contracts/local-execution/ipc.d.ts +2809 -231
  91. package/dist/_types/contracts/local-execution/library-command.d.ts +620 -0
  92. package/dist/_types/contracts/local-execution/library-result.d.ts +428 -0
  93. package/dist/_types/contracts/local-execution/library.d.ts +873 -0
  94. package/dist/_types/contracts/local-execution/lifecycle.d.ts +262 -48
  95. package/dist/_types/contracts/local-execution/local-navigation.d.ts +304 -67
  96. package/dist/_types/contracts/local-execution/management.d.ts +407 -0
  97. package/dist/_types/contracts/local-execution/media-recipe.d.ts +207 -0
  98. package/dist/_types/contracts/local-execution/media-validation-request.d.ts +232 -0
  99. package/dist/_types/contracts/local-execution/media-validation.d.ts +262 -0
  100. package/dist/_types/contracts/local-execution/object-transfer.d.ts +155 -0
  101. package/dist/_types/contracts/local-execution/offline.d.ts +59 -0
  102. package/dist/_types/contracts/local-execution/preview.d.ts +177 -3561
  103. package/dist/_types/contracts/local-execution/processor-capability.d.ts +49 -0
  104. package/dist/_types/contracts/local-execution/processor-direct.d.ts +290 -0
  105. package/dist/_types/contracts/local-execution/processor-recipes.d.ts +1194 -0
  106. package/dist/_types/contracts/local-execution/processor-toolchain.d.ts +47 -0
  107. package/dist/_types/contracts/local-execution/processor.d.ts +6424 -0
  108. package/dist/_types/contracts/local-execution/project-source-direct.d.ts +201 -0
  109. package/dist/_types/contracts/local-execution/qwen-tts.d.ts +31 -0
  110. package/dist/_types/contracts/local-execution/recognition.d.ts +170 -0
  111. package/dist/_types/contracts/local-execution/speech.d.ts +95 -0
  112. package/dist/_types/contracts/local-execution/tool-selection.d.ts +71 -5
  113. package/dist/_types/contracts/local-execution/whisper.d.ts +24 -0
  114. package/dist/_types/contracts/local-execution/work.d.ts +124 -3402
  115. package/dist/_types/contracts/local-execution/workspace.d.ts +141 -0
  116. package/dist/_types/contracts/mcp-capabilities.d.ts +16 -0
  117. package/dist/_types/contracts/media-category.d.ts +11 -0
  118. package/dist/_types/contracts/media-observation.d.ts +930 -9
  119. package/dist/_types/contracts/native-speech-model.d.ts +53 -0
  120. package/dist/_types/contracts/native-speech-options.d.ts +25 -0
  121. package/dist/_types/contracts/native-tool-authority.d.ts +25 -21
  122. package/dist/_types/contracts/native-tool-execution.d.ts +60 -39
  123. package/dist/_types/contracts/navigation-context.d.ts +76 -8
  124. package/dist/_types/contracts/navigation-groups.d.ts +2 -2
  125. package/dist/_types/contracts/navigation.d.ts +79 -26
  126. package/dist/_types/contracts/observation-profile.d.ts +3 -3
  127. package/dist/_types/contracts/production-creation.d.ts +30 -0
  128. package/dist/_types/contracts/production-feedback.d.ts +452 -0
  129. package/dist/_types/contracts/production.d.ts +30 -0
  130. package/dist/_types/contracts/programmatic-composition.d.ts +24 -24
  131. package/dist/_types/contracts/programmatic-exploration.d.ts +362 -5999
  132. package/dist/_types/contracts/programmatic-video-review.d.ts +5 -5
  133. package/dist/_types/contracts/project-library.d.ts +30 -0
  134. package/dist/_types/contracts/project.d.ts +30 -0
  135. package/dist/_types/contracts/provider-catalog.d.ts +3 -3
  136. package/dist/_types/contracts/provider-models.d.ts +209 -8
  137. package/dist/_types/contracts/provider.d.ts +66 -1
  138. package/dist/_types/contracts/reference-preview.d.ts +20 -0
  139. package/dist/_types/contracts/render-readiness.d.ts +175 -0
  140. package/dist/_types/contracts/repair-lifecycle.d.ts +64 -396
  141. package/dist/_types/contracts/repair-plan.d.ts +18 -100
  142. package/dist/_types/contracts/repair-strategy.d.ts +163 -4478
  143. package/dist/_types/contracts/review-intelligence-final-output.d.ts +418 -8150
  144. package/dist/_types/contracts/review-intelligence.d.ts +455 -11423
  145. package/dist/_types/contracts/review1-repair-source.d.ts +6 -6
  146. package/dist/_types/contracts/review1-repair-strategy.d.ts +4 -4
  147. package/dist/_types/contracts/rough-cut-manifest.d.ts +27 -7
  148. package/dist/_types/contracts/rough-cut-profile.d.ts +12 -3
  149. package/dist/_types/contracts/rough-cut-review.d.ts +144 -12495
  150. package/dist/_types/contracts/rough-cut.d.ts +1170 -5673
  151. package/dist/_types/contracts/series-canon.d.ts +97 -0
  152. package/dist/_types/contracts/series-character.d.ts +23 -0
  153. package/dist/_types/contracts/series-improvement.d.ts +1639 -0
  154. package/dist/_types/contracts/series-standard.d.ts +1641 -0
  155. package/dist/_types/contracts/shares.d.ts +135 -0
  156. package/dist/_types/contracts/shot-preparation-basis.d.ts +2 -2
  157. package/dist/_types/contracts/shot-preparation.d.ts +4 -4
  158. package/dist/_types/contracts/sound-making-plan.d.ts +210 -2
  159. package/dist/_types/contracts/speech-cost.d.ts +96 -0
  160. package/dist/_types/contracts/speech-parameters.d.ts +39 -0
  161. package/dist/_types/contracts/speech.d.ts +603 -23
  162. package/dist/_types/contracts/temporal-evidence-operation.d.ts +2 -1
  163. package/dist/_types/contracts/timeline-audio.d.ts +20 -4
  164. package/dist/_types/contracts/timeline-manifest.d.ts +40 -8
  165. package/dist/_types/contracts/timeline-source-sound.d.ts +42 -4
  166. package/dist/_types/contracts/timeline-v2.d.ts +124 -16
  167. package/dist/_types/contracts/timeline-version-reader.d.ts +288 -40
  168. package/dist/_types/contracts/timeline-visual-layers.d.ts +124 -16
  169. package/dist/_types/contracts/timeline.d.ts +50 -4850
  170. package/dist/_types/contracts/transcription.d.ts +1 -1
  171. package/dist/_types/contracts/video-generation.d.ts +35 -2
  172. package/dist/_types/contracts/video-review.d.ts +7 -7
  173. package/dist/_types/contracts/visual-exploration.d.ts +3 -3
  174. package/dist/_types/contracts/visual-layer-render.d.ts +298 -47
  175. package/dist/_types/contracts/visual-sequence.d.ts +22 -0
  176. package/dist/_types/contracts/voice-consistency.d.ts +183 -0
  177. package/dist/_types/contracts/voice-profile/contracts.d.ts +821 -0
  178. package/dist/_types/contracts/voice-profile/identity.d.ts +27 -0
  179. package/dist/_types/contracts/voice-profile/interface.d.ts +89 -0
  180. package/dist/_types/contracts/voice-profile/reference.d.ts +106 -0
  181. package/dist/_types/contracts/voice-review.d.ts +1194 -0
  182. package/dist/_types/contracts/workspace.d.ts +83 -0
  183. package/dist/_types/sdk/account.d.ts +13 -0
  184. package/dist/_types/sdk/auxiliary-media.d.ts +1 -0
  185. package/dist/_types/sdk/catalog/agent-host-execution.d.ts +324 -112
  186. package/dist/_types/sdk/catalog/agent-host.d.ts +222 -70
  187. package/dist/_types/sdk/catalog/assembly.d.ts +26 -37628
  188. package/dist/_types/sdk/catalog/audio-caption.d.ts +126 -22
  189. package/dist/_types/sdk/catalog/canonical-repair.d.ts +132 -132
  190. package/dist/_types/sdk/catalog/carriers.d.ts +59 -0
  191. package/dist/_types/sdk/catalog/composition-source.d.ts +14 -14
  192. package/dist/_types/sdk/catalog/composition.d.ts +17 -2813
  193. package/dist/_types/sdk/catalog/core.d.ts +636 -18
  194. package/dist/_types/sdk/catalog/delivery.d.ts +12 -14167
  195. package/dist/_types/sdk/catalog/device-library.d.ts +1024 -0
  196. package/dist/_types/sdk/catalog/device-management.d.ts +921 -0
  197. package/dist/_types/sdk/catalog/discovery.d.ts +38 -4
  198. package/dist/_types/sdk/catalog/editor.d.ts +23 -6538
  199. package/dist/_types/sdk/catalog/enterprise-brand.d.ts +462 -0
  200. package/dist/_types/sdk/catalog/federation.d.ts +4164 -0
  201. package/dist/_types/sdk/catalog/generation.d.ts +284 -8
  202. package/dist/_types/sdk/catalog/imported-visual.d.ts +246 -816
  203. package/dist/_types/sdk/catalog/keyframe-review.d.ts +10 -10
  204. package/dist/_types/sdk/catalog/lifecycle-events.d.ts +442 -16
  205. package/dist/_types/sdk/catalog/mcp.d.ts +115 -7
  206. package/dist/_types/sdk/catalog/media-descriptors.d.ts +214 -11
  207. package/dist/_types/sdk/catalog/media-observation.d.ts +1031 -14
  208. package/dist/_types/sdk/catalog/native-tool-authority.d.ts +54 -24
  209. package/dist/_types/sdk/catalog/navigation.d.ts +379 -28
  210. package/dist/_types/sdk/catalog/planning-intelligence.d.ts +136 -8
  211. package/dist/_types/sdk/catalog/programmatic-exploration.d.ts +327 -9853
  212. package/dist/_types/sdk/catalog/programmatic-review.d.ts +8 -8
  213. package/dist/_types/sdk/catalog/provider.d.ts +394 -20
  214. package/dist/_types/sdk/catalog/reference-preview.d.ts +94 -30
  215. package/dist/_types/sdk/catalog/repair-strategy.d.ts +180 -8914
  216. package/dist/_types/sdk/catalog/reviewer.d.ts +276 -23131
  217. package/dist/_types/sdk/catalog/series-standard.d.ts +5402 -0
  218. package/dist/_types/sdk/catalog/shares.d.ts +305 -0
  219. package/dist/_types/sdk/catalog/shot-preparation.d.ts +51 -2972
  220. package/dist/_types/sdk/catalog/sound-making-plan.d.ts +6 -1776
  221. package/dist/_types/sdk/catalog/source-sync.d.ts +8 -498
  222. package/dist/_types/sdk/catalog/spec.d.ts +10 -2
  223. package/dist/_types/sdk/catalog/speech.d.ts +856 -4
  224. package/dist/_types/sdk/catalog/temporal-evidence.d.ts +4 -2
  225. package/dist/_types/sdk/catalog/video-review.d.ts +10 -10
  226. package/dist/_types/sdk/catalog/visual-exploration.d.ts +556 -440
  227. package/dist/_types/sdk/catalog/voice-profile.d.ts +1547 -0
  228. package/dist/_types/sdk/catalog/voice-review.d.ts +1125 -0
  229. package/dist/_types/sdk/client.d.ts +30 -3
  230. package/dist/_types/sdk/desktop-previews.d.ts +3 -3
  231. package/dist/_types/sdk/desktop-releases.d.ts +2 -2
  232. package/dist/_types/sdk/device-enrollment-handoff.d.ts +249 -0
  233. package/dist/_types/sdk/device-renders.d.ts +3751 -0
  234. package/dist/_types/sdk/direct-source.d.ts +147 -0
  235. package/dist/_types/sdk/errors.d.ts +9 -3
  236. package/dist/_types/sdk/federation-notice-result.d.ts +22 -0
  237. package/dist/_types/sdk/feedback-observer.d.ts +10 -0
  238. package/dist/_types/sdk/host-protocol.d.ts +8 -0
  239. package/dist/_types/sdk/image-media.d.ts +2 -2
  240. package/dist/_types/sdk/immutable-media.d.ts +24 -0
  241. package/dist/_types/sdk/index.d.ts +16 -1
  242. package/dist/_types/sdk/local-runtime/components.d.ts +2 -0
  243. package/dist/_types/sdk/local-runtime/device-client.d.ts +181 -19
  244. package/dist/_types/sdk/local-runtime/library.d.ts +268 -0
  245. package/dist/_types/sdk/local-runtime/workspace.d.ts +186 -0
  246. package/dist/_types/sdk/local-runtime-client.d.ts +1934 -96
  247. package/dist/_types/sdk/mcp-client.d.ts +13 -5
  248. package/dist/_types/sdk/mcp-discovery.d.ts +14 -0
  249. package/dist/_types/sdk/mcp-image.d.ts +4 -4
  250. package/dist/_types/sdk/mcp-port.d.ts +73 -0
  251. package/dist/_types/sdk/media.d.ts +11 -9
  252. package/dist/_types/sdk/navigation-client.d.ts +56 -122
  253. package/dist/_types/sdk/navigation-facade.d.ts +191 -17
  254. package/dist/_types/sdk/observe.d.ts +31 -0
  255. package/dist/_types/sdk/runtime-authority.d.ts +18 -8
  256. package/dist/_types/sdk/transport/http.d.ts +2 -0
  257. package/dist/_types/sdk/webhook-receiver.d.ts +38 -0
  258. package/dist/account.js +1 -1
  259. package/dist/errors.js +1 -1
  260. package/dist/host-protocol.d.ts +1 -0
  261. package/dist/host-protocol.js +1 -0
  262. package/dist/index.d.ts +2 -2
  263. package/dist/index.js +1 -1
  264. package/dist/local-runtime.js +1 -1
  265. package/dist/mcp-discovery.d.ts +1 -0
  266. package/dist/mcp-discovery.js +1 -0
  267. package/dist/native/helper.exe +0 -0
  268. package/dist/native/helper.json +1 -0
  269. package/dist/runtime-authority.js +1 -1
  270. package/package.json +10 -8
  271. package/README.md +0 -75
  272. package/dist/_chunks/chunk-34KSWLCI.js +0 -1
  273. package/dist/_chunks/chunk-4IOFVNFG.js +0 -1
  274. package/dist/_chunks/chunk-4M3AGNTZ.js +0 -1
  275. package/dist/_chunks/chunk-6NVIN2NI.js +0 -1
  276. package/dist/_chunks/chunk-7YCEMDNZ.js +0 -1
  277. package/dist/native/Bootstrap.ps1 +0 -90
  278. package/dist/native/JobNative.cs +0 -127
  279. package/dist/native/JobRunner.cs +0 -360
  280. package/dist/native/NativeMain.cs +0 -146
  281. package/dist/native/PipeBridge.cs +0 -260
  282. package/dist/native/PrivateAccess.cs +0 -152
@@ -0,0 +1,3751 @@
1
+ import { z } from "zod";
2
+ import { RoughCutProfileIdSchema } from "../contracts/index.js";
3
+ import type { NavigationCaller } from "./navigation-facade.js";
4
+ import type { SdkRequestOptions } from "./transport/http.js";
5
+ export declare const DeviceDiscoveryInputSchema: z.ZodObject<{
6
+ projectId: z.ZodUUID;
7
+ kind: z.ZodEnum<{
8
+ KEYFRAME_GENERATE: "KEYFRAME_GENERATE";
9
+ VIDEO_GENERATE: "VIDEO_GENERATE";
10
+ SPEECH_SYNTHESIZE: "SPEECH_SYNTHESIZE";
11
+ SPEECH_EXTERNAL_QWEN: "SPEECH_EXTERNAL_QWEN";
12
+ TEMPORAL_SAMPLE: "TEMPORAL_SAMPLE";
13
+ DELIVERY_VALIDATE: "DELIVERY_VALIDATE";
14
+ COMPOSITION_RENDER: "COMPOSITION_RENDER";
15
+ IMPORTED_VISUAL_NORMALIZE: "IMPORTED_VISUAL_NORMALIZE";
16
+ SOURCE_SYNC_AUDIO: "SOURCE_SYNC_AUDIO";
17
+ IMPORT_ORIGINAL: "IMPORT_ORIGINAL";
18
+ LOCAL_MEDIA_INSPECT: "LOCAL_MEDIA_INSPECT";
19
+ LOCAL_MEDIA_PUBLISH: "LOCAL_MEDIA_PUBLISH";
20
+ IMPORT_PROJECT_SOURCE: "IMPORT_PROJECT_SOURCE";
21
+ REGISTER_VISUAL_SEQUENCE: "REGISTER_VISUAL_SEQUENCE";
22
+ REFERENCE_PREVIEW: "REFERENCE_PREVIEW";
23
+ SPEECH_SYNTHESIZE_CPU: "SPEECH_SYNTHESIZE_CPU";
24
+ TRANSCRIBE_AUDIO: "TRANSCRIBE_AUDIO";
25
+ TRANSCRIBE_EXTERNAL_QWEN: "TRANSCRIBE_EXTERNAL_QWEN";
26
+ preview: "preview";
27
+ final: "final";
28
+ library: "library";
29
+ }>;
30
+ deviceId: z.ZodOptional<z.ZodUUID>;
31
+ }, z.core.$strict>;
32
+ export declare const DeviceRenderIntentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
33
+ productionId: z.ZodUUID;
34
+ idempotencyKey: z.ZodString;
35
+ deviceId: z.ZodOptional<z.ZodUUID>;
36
+ validationMode: z.ZodOptional<z.ZodLiteral<"TENANT_TRUSTED_VALIDATOR">>;
37
+ kind: z.ZodLiteral<"preview">;
38
+ profileId: z.ZodOptional<z.ZodEnum<{
39
+ PREVIEW_H264_480P_V1: "PREVIEW_H264_480P_V1";
40
+ PREVIEW_H264_720P_V1: "PREVIEW_H264_720P_V1";
41
+ PREVIEW_H264_1080P_V1: "PREVIEW_H264_1080P_V1";
42
+ }>>;
43
+ }, z.core.$strict>, z.ZodObject<{
44
+ productionId: z.ZodUUID;
45
+ idempotencyKey: z.ZodString;
46
+ deviceId: z.ZodOptional<z.ZodUUID>;
47
+ validationMode: z.ZodOptional<z.ZodLiteral<"TENANT_TRUSTED_VALIDATOR">>;
48
+ kind: z.ZodLiteral<"final">;
49
+ }, z.core.$strict>], "kind">;
50
+ export declare const DeviceRenderReadSchema: z.ZodObject<{
51
+ kind: z.ZodEnum<{
52
+ preview: "preview";
53
+ final: "final";
54
+ }>;
55
+ productionId: z.ZodUUID;
56
+ renderId: z.ZodUUID;
57
+ }, z.core.$strict>;
58
+ declare const basisInput: z.ZodObject<{
59
+ productionId: z.ZodUUID;
60
+ kind: z.ZodEnum<{
61
+ preview: "preview";
62
+ final: "final";
63
+ }>;
64
+ }, z.core.$strict>;
65
+ export declare const DeviceRenderDownloadSchema: z.ZodObject<{
66
+ kind: z.ZodEnum<{
67
+ preview: "preview";
68
+ final: "final";
69
+ }>;
70
+ productionId: z.ZodUUID;
71
+ renderId: z.ZodUUID;
72
+ role: z.ZodEnum<{
73
+ VIDEO: "VIDEO";
74
+ POSTER: "POSTER";
75
+ }>;
76
+ }, z.core.$strict>;
77
+ export declare const PreparedDeviceRenderSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
78
+ kind: z.ZodLiteral<"preview">;
79
+ command: z.ZodObject<{
80
+ tenantId: typeof import("../contracts/index.js").TenantIdSchema;
81
+ productionId: typeof import("../contracts/index.js").ProductionIdSchema;
82
+ timelineVersionId: z.ZodUUID;
83
+ timelineFingerprint: z.ZodString;
84
+ expectedProductionRevision: z.ZodInt;
85
+ profileId: typeof RoughCutProfileIdSchema;
86
+ idempotencyKey: z.ZodString;
87
+ deviceExecution: z.ZodObject<{
88
+ mode: z.ZodLiteral<"tenant-device-only">;
89
+ deviceId: z.ZodOptional<z.ZodUUID>;
90
+ validationMode: z.ZodOptional<z.ZodLiteral<"TENANT_TRUSTED_VALIDATOR">>;
91
+ }, z.core.$strict>;
92
+ }, z.core.$strict>;
93
+ }, z.core.$strict>, z.ZodObject<{
94
+ kind: z.ZodLiteral<"final">;
95
+ command: z.ZodObject<{
96
+ tenantId: typeof import("../contracts/index.js").TenantIdSchema;
97
+ productionId: typeof import("../contracts/index.js").ProductionIdSchema;
98
+ selectionId: z.ZodUUID;
99
+ expectedFinalReadyVersion: z.ZodInt;
100
+ timelineVersionId: z.ZodUUID;
101
+ timelineFingerprint: z.ZodString;
102
+ expectedProductionRevision: z.ZodInt;
103
+ profileId: typeof import("../contracts/index.js").FinalRenderProfileIdSchema;
104
+ audioPolicy: z.ZodEnum<{
105
+ SILENT: "SILENT";
106
+ MIXED: "MIXED";
107
+ }>;
108
+ captionPolicy: z.ZodEnum<{
109
+ NONE: "NONE";
110
+ BURN_IN: "BURN_IN";
111
+ }>;
112
+ idempotencyKey: z.ZodString;
113
+ deviceExecution: z.ZodObject<{
114
+ mode: z.ZodLiteral<"tenant-device-only">;
115
+ deviceId: z.ZodOptional<z.ZodUUID>;
116
+ validationMode: z.ZodOptional<z.ZodLiteral<"TENANT_TRUSTED_VALIDATOR">>;
117
+ }, z.core.$strict>;
118
+ }, z.core.$strict>;
119
+ }, z.core.$strict>], "kind">;
120
+ export declare const DeviceRenderReceiptHandoffSchema: z.ZodObject<{
121
+ protocol: z.ZodLiteral<"NVS_RENDER_RECEIPT_V1">;
122
+ scope: z.ZodObject<{
123
+ resource: z.ZodString;
124
+ tenantId: z.ZodUUID;
125
+ projectId: z.ZodUUID;
126
+ principalId: z.ZodUUID;
127
+ grantId: z.ZodUUID;
128
+ }, z.core.$strict>;
129
+ prepared: z.ZodDiscriminatedUnion<[z.ZodObject<{
130
+ kind: z.ZodLiteral<"preview">;
131
+ command: z.ZodObject<{
132
+ tenantId: typeof import("../contracts/index.js").TenantIdSchema;
133
+ productionId: typeof import("../contracts/index.js").ProductionIdSchema;
134
+ timelineVersionId: z.ZodUUID;
135
+ timelineFingerprint: z.ZodString;
136
+ expectedProductionRevision: z.ZodInt;
137
+ profileId: typeof RoughCutProfileIdSchema;
138
+ idempotencyKey: z.ZodString;
139
+ deviceExecution: z.ZodObject<{
140
+ mode: z.ZodLiteral<"tenant-device-only">;
141
+ deviceId: z.ZodOptional<z.ZodUUID>;
142
+ validationMode: z.ZodOptional<z.ZodLiteral<"TENANT_TRUSTED_VALIDATOR">>;
143
+ }, z.core.$strict>;
144
+ }, z.core.$strict>;
145
+ }, z.core.$strict>, z.ZodObject<{
146
+ kind: z.ZodLiteral<"final">;
147
+ command: z.ZodObject<{
148
+ tenantId: typeof import("../contracts/index.js").TenantIdSchema;
149
+ productionId: typeof import("../contracts/index.js").ProductionIdSchema;
150
+ selectionId: z.ZodUUID;
151
+ expectedFinalReadyVersion: z.ZodInt;
152
+ timelineVersionId: z.ZodUUID;
153
+ timelineFingerprint: z.ZodString;
154
+ expectedProductionRevision: z.ZodInt;
155
+ profileId: typeof import("../contracts/index.js").FinalRenderProfileIdSchema;
156
+ audioPolicy: z.ZodEnum<{
157
+ SILENT: "SILENT";
158
+ MIXED: "MIXED";
159
+ }>;
160
+ captionPolicy: z.ZodEnum<{
161
+ NONE: "NONE";
162
+ BURN_IN: "BURN_IN";
163
+ }>;
164
+ idempotencyKey: z.ZodString;
165
+ deviceExecution: z.ZodObject<{
166
+ mode: z.ZodLiteral<"tenant-device-only">;
167
+ deviceId: z.ZodOptional<z.ZodUUID>;
168
+ validationMode: z.ZodOptional<z.ZodLiteral<"TENANT_TRUSTED_VALIDATOR">>;
169
+ }, z.core.$strict>;
170
+ }, z.core.$strict>;
171
+ }, z.core.$strict>], "kind">;
172
+ }, z.core.$strict>;
173
+ export declare const DeviceRenderAdmissionSchema: z.ZodUnion<readonly [z.ZodObject<{
174
+ humanLinks: z.ZodOptional<typeof import("../contracts/index.js").HumanLinksSchema>;
175
+ semanticStatus: z.ZodLiteral<"ACCEPTED">;
176
+ renderId: z.ZodUUID;
177
+ operationId: typeof import("../contracts/index.js").OperationIdSchema;
178
+ productionId: z.ZodUUID;
179
+ timelineVersionId: z.ZodUUID;
180
+ timelineFingerprint: z.ZodString;
181
+ executionClass: z.ZodEnum<{
182
+ LIVE: "LIVE";
183
+ TEST_ONLY: "TEST_ONLY";
184
+ }>;
185
+ manifestFingerprint: z.ZodString;
186
+ productionRevision: z.ZodInt;
187
+ deviceExecution: z.ZodObject<{
188
+ mode: z.ZodLiteral<"tenant-device-only">;
189
+ deviceId: z.ZodUUID;
190
+ runtimeJobId: z.ZodUUID;
191
+ validationMode: z.ZodOptional<z.ZodLiteral<"TENANT_TRUSTED_VALIDATOR">>;
192
+ }, z.core.$strict>;
193
+ }, z.core.$strict>, z.ZodObject<{
194
+ humanLinks: z.ZodOptional<typeof import("../contracts/index.js").HumanLinksSchema>;
195
+ semanticStatus: z.ZodLiteral<"ACCEPTED">;
196
+ renderId: z.ZodUUID;
197
+ operationId: typeof import("../contracts/index.js").OperationIdSchema;
198
+ productionId: z.ZodUUID;
199
+ timelineVersionId: z.ZodUUID;
200
+ timelineFingerprint: z.ZodString;
201
+ executionClass: z.ZodEnum<{
202
+ LIVE: "LIVE";
203
+ TEST_ONLY: "TEST_ONLY";
204
+ }>;
205
+ manifestFingerprint: z.ZodString;
206
+ productionRevision: z.ZodInt;
207
+ selectionId: z.ZodUUID;
208
+ selectionVersion: z.ZodInt;
209
+ profileId: typeof import("../contracts/index.js").FinalRenderProfileIdSchema;
210
+ deviceExecution: z.ZodObject<{
211
+ mode: z.ZodLiteral<"tenant-device-only">;
212
+ deviceId: z.ZodUUID;
213
+ runtimeJobId: z.ZodUUID;
214
+ validationMode: z.ZodOptional<z.ZodLiteral<"TENANT_TRUSTED_VALIDATOR">>;
215
+ }, z.core.$strict>;
216
+ }, z.core.$strict>]>;
217
+ type Prepared = z.output<typeof PreparedDeviceRenderSchema>;
218
+ export declare class NativeStudioDeviceRenders {
219
+ private readonly caller;
220
+ constructor(caller: NavigationCaller & {
221
+ readonly tenantId: string;
222
+ });
223
+ /** 读取当前项目设备候选,结果只用于选择,受理时仍由服务端复核。 */
224
+ list(raw: z.input<typeof DeviceDiscoveryInputSchema>, options?: SdkRequestOptions): Promise<{
225
+ tenantId: string;
226
+ projectId: string;
227
+ kind: "KEYFRAME_GENERATE" | "VIDEO_GENERATE" | "SPEECH_SYNTHESIZE" | "SPEECH_EXTERNAL_QWEN" | "TEMPORAL_SAMPLE" | "DELIVERY_VALIDATE" | "COMPOSITION_RENDER" | "IMPORTED_VISUAL_NORMALIZE" | "SOURCE_SYNC_AUDIO" | "IMPORT_ORIGINAL" | "LOCAL_MEDIA_INSPECT" | "LOCAL_MEDIA_PUBLISH" | "IMPORT_PROJECT_SOURCE" | "REGISTER_VISUAL_SEQUENCE" | "REFERENCE_PREVIEW" | "SPEECH_SYNTHESIZE_CPU" | "TRANSCRIBE_AUDIO" | "TRANSCRIBE_EXTERNAL_QWEN" | "preview" | "final" | "library";
228
+ items: {
229
+ deviceId: string;
230
+ label: string;
231
+ availability: "AVAILABLE" | "OFFLINE" | "UNQUALIFIED" | "BUSY";
232
+ }[];
233
+ truncated: boolean;
234
+ validationMode: "TENANT_TRUSTED_VALIDATOR" | null;
235
+ recovery?: {
236
+ reason: "NO_REGISTERED_DEVICE" | "NO_SUITABLE_DEVICE" | "CAPABILITY_MISSING" | "DEVICE_DISCONNECTED" | "DEVICE_BUSY" | "INCOMPLETE_INVENTORY";
237
+ action: "PREPARE_OR_REPAIR_HOST" | "RECONNECT_EXISTING_HOST" | "WAIT" | "INSPECT_EXISTING";
238
+ inspect: {
239
+ tool: "workspace_caller";
240
+ arguments: {
241
+ tenantId: string;
242
+ };
243
+ } | {
244
+ tool: "studio_capability_query";
245
+ arguments: {
246
+ tenantId: string;
247
+ tool: "workspace_devices_list";
248
+ arguments: {
249
+ tenantId: string;
250
+ };
251
+ };
252
+ };
253
+ guidance: string;
254
+ } | undefined;
255
+ }>;
256
+ /** 当前制作依据。设备和受理资格由各自的原生 Owner 核对。 */
257
+ basis(raw: z.input<typeof basisInput>, options?: SdkRequestOptions): Promise<{
258
+ kind: "final";
259
+ basis: {
260
+ selectionId: string;
261
+ expectedFinalReadyVersion: number;
262
+ timelineVersionId: string;
263
+ timelineFingerprint: string;
264
+ expectedProductionRevision: number;
265
+ profileId: "FINAL_H264_1080P_V1" | "FINAL_H264_720P_V1" | "FINAL_H264_480P_V1";
266
+ audioPolicy: "SILENT" | "MIXED";
267
+ captionPolicy: "NONE" | "BURN_IN";
268
+ } | null;
269
+ blockers: string[];
270
+ sourceBlockers: {
271
+ code: "SOURCE_RESOLUTION_INSUFFICIENT" | "SOURCE_MEDIA_UNSUPPORTED";
272
+ shotId: string;
273
+ ordinal: number;
274
+ actualWidth: number;
275
+ actualHeight: number;
276
+ requiredWidth: number;
277
+ requiredHeight: number;
278
+ }[];
279
+ } | {
280
+ kind: "preview";
281
+ basis: {
282
+ timelineVersionId: string;
283
+ timelineFingerprint: string;
284
+ expectedProductionRevision: number;
285
+ } | null;
286
+ blockers: string[];
287
+ sourceBlockers?: never;
288
+ }>;
289
+ /** Read an exact basis. Preserve the returned command before issuing its single write. */
290
+ prepare(raw: z.input<typeof DeviceRenderIntentSchema>, options?: SdkRequestOptions): Promise<Prepared>;
291
+ get(raw: z.input<typeof DeviceRenderReadSchema>, options?: SdkRequestOptions): Promise<{
292
+ tenantId: string & z.core.$brand<"TenantId">;
293
+ productionId: string & z.core.$brand<"ProductionId">;
294
+ renderId: string;
295
+ projectId: string & z.core.$brand<"ProjectId">;
296
+ runtimeJobId: string;
297
+ operationId: string & z.core.$brand<"OperationId">;
298
+ manifest: {
299
+ frames: {
300
+ ordinal: number;
301
+ startFrame: number;
302
+ frameCount: number;
303
+ overlapFrames: number;
304
+ }[];
305
+ totalFrames: number;
306
+ profile: {
307
+ id: "PREVIEW_H264_480P_V1" | "PREVIEW_H264_720P_V1" | "PREVIEW_H264_1080P_V1";
308
+ algorithm: "ORDERED_TRIM_CUT_V1" | "ORDERED_COMPOSE_V2";
309
+ width: 1920 | 1080 | 1280 | 720 | 854 | 480;
310
+ height: 1920 | 1080 | 1280 | 720 | 854 | 480;
311
+ frameRate: 30;
312
+ codec: "h264";
313
+ pixelFormat: "yuv420p";
314
+ fit: "PAD";
315
+ hasAudio: boolean;
316
+ framePolicy: "CUMULATIVE_NEAREST_FRAME";
317
+ visualLayerPolicy: "STRAIGHT_ALPHA_FRAME_OVERLAY_30_V1" | "STRAIGHT_ALPHA_FRAME_OVERLAY_30_V2";
318
+ captionPolicy?: "BURN_IN" | undefined;
319
+ captionStyle?: {
320
+ id: "PLAIN_TEXT_NOTO_SANS_SC_V1";
321
+ fontSha256: "a3041811a78c361b1de50f953c805e0244951c21c5bd412f7232ef0d899af0da";
322
+ framePolicy: "PTS_HALF_OPEN_CEIL_V1";
323
+ } | {
324
+ id: "PLAIN_TEXT_NATIVE_SC_REGULAR_V2";
325
+ fontSha256: "e5a51f41fc1b827da651afee3975e07a182ff4f8e04d9dfc0a3cecd6177a52b6";
326
+ framePolicy: "PTS_HALF_OPEN_CEIL_V1";
327
+ } | undefined;
328
+ graphicsPolicy?: "OVERLAY_V1" | undefined;
329
+ picturePolicy?: "CROP_PAD_V1" | undefined;
330
+ audioMix?: {
331
+ id: "PCM_WINDOW_MIX_AAC_V1";
332
+ sampleRateHz: 48000;
333
+ audioChannels: 2;
334
+ audioCodec: "aac";
335
+ bitrate: 192000;
336
+ peakPermille: 950;
337
+ duckingMusicPermille: number;
338
+ } | undefined;
339
+ };
340
+ schemaVersion: 3;
341
+ timeline: {
342
+ basis: {
343
+ briefVersionId: string & z.core.$brand<"BriefVersionId">;
344
+ briefVersion: number;
345
+ storyVersion: number;
346
+ planVersionId: string & z.core.$brand<"SceneShotPlanVersionId">;
347
+ planVersion: number;
348
+ };
349
+ output: {
350
+ aspectRatio: "16:9" | "9:16";
351
+ profile: "MP4_H264_1080P" | "MP4_H264_720P" | "MP4_H264_480P";
352
+ };
353
+ duration: {
354
+ totalMs: number;
355
+ targetMs: number;
356
+ minMs: 30000;
357
+ maxMs: 60000;
358
+ deltaTargetMs: number;
359
+ classification: "TOO_SHORT" | "WITHIN_TARGET" | "TOO_LONG";
360
+ };
361
+ missingPlannedShotIds: (string & z.core.$brand<"ShotId">)[];
362
+ executionClass: "LIVE" | "TEST_ONLY";
363
+ clips: {
364
+ ordinal: number;
365
+ technical: {
366
+ contentType: "video/mp4";
367
+ checksumSha256: string;
368
+ byteSize: number;
369
+ width: number;
370
+ height: number;
371
+ durationMs: number;
372
+ frameRate: number;
373
+ videoCodec: "h264" | "hevc";
374
+ hasAudio: boolean;
375
+ pixelFormat?: "yuv420p10le" | undefined;
376
+ nativeAudio?: {
377
+ normalizationVersion: "VIDEO_AUDIO_PCM_V1";
378
+ sourceCodec: "aac";
379
+ sourceSampleRateHz: number;
380
+ sourceChannels: 2 | 1;
381
+ sourceFrameRateHz: 30 | 24;
382
+ sourceFrameCount: number;
383
+ sourceStartOffsetMs: number;
384
+ sourceDeclaredDurationMs: number;
385
+ alignment: "TRIM_PAD_PCM_TO_VIDEO_ZERO_V1";
386
+ media: {
387
+ profile: "PCM_S16LE_48000_NATIVE_VIDEO_V1";
388
+ audioCodec: "pcm_s16le";
389
+ sampleRateHz: 48000;
390
+ audioChannels: 2 | 1;
391
+ sampleCount: number;
392
+ durationMs: number;
393
+ };
394
+ checksumSha256: string;
395
+ } | undefined;
396
+ };
397
+ sourceInMs: number;
398
+ sourceOutMs: number;
399
+ startMs: number;
400
+ durationMs: number;
401
+ transition: "CUT" | {
402
+ kind: "CROSS_DISSOLVE_V1";
403
+ durationFrames: number;
404
+ };
405
+ source: {
406
+ acceptanceId: string;
407
+ reviewId: string;
408
+ generationId: string;
409
+ candidateId: string;
410
+ shotId: string & z.core.$brand<"ShotId">;
411
+ artifactId: string & z.core.$brand<"ArtifactId">;
412
+ representationId: string & z.core.$brand<"ArtifactRepresentationId">;
413
+ checksumSha256: string;
414
+ artifactChecksumSha256: string;
415
+ preparationId: string;
416
+ contractId: string;
417
+ contractFingerprint: string;
418
+ planVersionId: string & z.core.$brand<"SceneShotPlanVersionId">;
419
+ planVersion: number;
420
+ shotPlanningRevision: number;
421
+ executionClass: "LIVE" | "TEST_ONLY";
422
+ reviewResult: "PASS" | "WARNING";
423
+ } | {
424
+ sourceKind: "PROGRAMMATIC";
425
+ acceptanceId: string;
426
+ reviewId: string;
427
+ renderId: string;
428
+ compositionId: string;
429
+ compositionVersionId: string;
430
+ compositionVersion: number;
431
+ compositionFingerprint: string;
432
+ renderManifestFingerprint: string;
433
+ shotId: string & z.core.$brand<"ShotId">;
434
+ artifactId: string & z.core.$brand<"ArtifactId">;
435
+ representationId: string & z.core.$brand<"ArtifactRepresentationId">;
436
+ checksumSha256: string;
437
+ artifactChecksumSha256: string;
438
+ planVersionId: string & z.core.$brand<"SceneShotPlanVersionId">;
439
+ planVersion: number;
440
+ shotPlanningRevision: number;
441
+ executionClass: "LIVE" | "TEST_ONLY";
442
+ reviewResult: "PASS" | "WARNING";
443
+ } | {
444
+ sourceKind: "IMPORTED";
445
+ acceptanceId: string;
446
+ reviewId: string;
447
+ normalizationId: string;
448
+ sourceId: string;
449
+ sourceVersionId: string;
450
+ shotId: string & z.core.$brand<"ShotId">;
451
+ artifactId: string & z.core.$brand<"ArtifactId">;
452
+ representationId: string & z.core.$brand<"ArtifactRepresentationId">;
453
+ checksumSha256: string;
454
+ executionClass: "LIVE" | "TEST_ONLY";
455
+ reviewResult: "PASS" | "WARNING";
456
+ };
457
+ framing?: {
458
+ algorithm: "CROP_PAD_V1";
459
+ crop: {
460
+ x: number;
461
+ y: number;
462
+ width: number;
463
+ height: number;
464
+ };
465
+ anchorXPermille: number;
466
+ anchorYPermille: number;
467
+ } | undefined;
468
+ }[];
469
+ schemaVersion: 3;
470
+ visualLayers: {
471
+ schemaVersion: 1;
472
+ profileId: "STRAIGHT_ALPHA_FRAME_OVERLAY_30_V1";
473
+ tenantId: string & z.core.$brand<"TenantId">;
474
+ projectId: string & z.core.$brand<"ProjectId">;
475
+ productionId: string & z.core.$brand<"ProductionId">;
476
+ totalFrames: number;
477
+ layers: {
478
+ id: string;
479
+ source: {
480
+ schemaVersion: 1;
481
+ profileId: "RGBA_PNG_SEQUENCE_30_V1";
482
+ tenantId: string & z.core.$brand<"TenantId">;
483
+ projectId: string & z.core.$brand<"ProjectId">;
484
+ productionId: (string & z.core.$brand<"ProductionId">) | null;
485
+ artifactId: string & z.core.$brand<"ArtifactId">;
486
+ representationId: string & z.core.$brand<"ArtifactRepresentationId">;
487
+ checksumSha256: string;
488
+ width: number;
489
+ height: number;
490
+ frameRate: 30;
491
+ frameCount: number;
492
+ alpha: "STRAIGHT_RGBA";
493
+ frames: {
494
+ ordinal: number;
495
+ artifactId: string & z.core.$brand<"ArtifactId">;
496
+ representationId: string & z.core.$brand<"ArtifactRepresentationId">;
497
+ checksumSha256: string;
498
+ byteSize: number;
499
+ }[];
500
+ };
501
+ sourceInFrame: number;
502
+ sourceOutFrame: number;
503
+ startFrame: number;
504
+ zIndex: number;
505
+ opacityPermille: number;
506
+ placement: {
507
+ xPermille: number;
508
+ yPermille: number;
509
+ widthPermille: number;
510
+ heightPermille: number;
511
+ };
512
+ }[];
513
+ };
514
+ id: string;
515
+ timelineId: string;
516
+ tenantId: string & z.core.$brand<"TenantId">;
517
+ projectId: string & z.core.$brand<"ProjectId">;
518
+ productionId: string & z.core.$brand<"ProductionId">;
519
+ version: number;
520
+ fingerprint: string;
521
+ createdByPrincipalId: string & z.core.$brand<"PrincipalId">;
522
+ createdAt: string;
523
+ caption?: {
524
+ tenantId: string & z.core.$brand<"TenantId">;
525
+ productionId: string & z.core.$brand<"ProductionId">;
526
+ id: string;
527
+ captionId: string;
528
+ projectId: string;
529
+ version: number;
530
+ artifactId: string;
531
+ content: {
532
+ language: string;
533
+ durationMs: number;
534
+ cues: {
535
+ startMs: number;
536
+ endMs: number;
537
+ text: string;
538
+ }[];
539
+ };
540
+ fingerprint: string;
541
+ original: {
542
+ id: string;
543
+ checksumSha256: string;
544
+ byteSize: number;
545
+ };
546
+ subtitle: {
547
+ id: string;
548
+ checksumSha256: string;
549
+ byteSize: number;
550
+ };
551
+ previousVersionId: string | null;
552
+ createdByPrincipalId: string;
553
+ createdAt: string;
554
+ transcriptProvenance?: {
555
+ schemaVersion: 1;
556
+ advisory: true;
557
+ timing: "PROVIDER_REPORTED";
558
+ timelineVersionId: string;
559
+ timingFingerprint: string;
560
+ sources: {
561
+ observationId: string;
562
+ artifactId: string;
563
+ representationId: string;
564
+ checksumSha256: string;
565
+ placement: {
566
+ kind: "AUDIO_TRACK";
567
+ purpose: "VOICEOVER" | "MUSIC";
568
+ } | {
569
+ kind: "SPEECH_CUE";
570
+ cueId: string;
571
+ } | {
572
+ kind: "TIMELINE_OUTPUT";
573
+ };
574
+ granularity: "word" | "segment";
575
+ sourceInMs: number;
576
+ sourceOutMs: number;
577
+ startMs: number;
578
+ spanIndices: number[];
579
+ excludedSpans: number;
580
+ }[];
581
+ } | undefined;
582
+ } | undefined;
583
+ captionStyle?: {
584
+ id: "PLAIN_TEXT_NOTO_SANS_SC_V1";
585
+ fontSha256: "a3041811a78c361b1de50f953c805e0244951c21c5bd412f7232ef0d899af0da";
586
+ framePolicy: "PTS_HALF_OPEN_CEIL_V1";
587
+ } | {
588
+ id: "PLAIN_TEXT_NATIVE_SC_REGULAR_V2";
589
+ fontSha256: "e5a51f41fc1b827da651afee3975e07a182ff4f8e04d9dfc0a3cecd6177a52b6";
590
+ framePolicy: "PTS_HALF_OPEN_CEIL_V1";
591
+ } | undefined;
592
+ audio?: {
593
+ mix: {
594
+ id: "PCM_WINDOW_MIX_AAC_V1";
595
+ sampleRateHz: 48000;
596
+ audioChannels: 2;
597
+ audioCodec: "aac";
598
+ bitrate: 192000;
599
+ peakPermille: 950;
600
+ duckingMusicPermille: number;
601
+ };
602
+ tracks: {
603
+ sourceInMs: number;
604
+ sourceOutMs: number;
605
+ startMs: number;
606
+ gainPermille: number;
607
+ source: {
608
+ tenantId: string & z.core.$brand<"TenantId">;
609
+ productionId: string & z.core.$brand<"ProductionId">;
610
+ id: string;
611
+ audioId: string;
612
+ projectId: string;
613
+ version: number;
614
+ artifactId: string;
615
+ original: {
616
+ id: string;
617
+ checksumSha256: string;
618
+ byteSize: number;
619
+ };
620
+ media: {
621
+ profile: "PCM_S16LE_48000_V1";
622
+ audioCodec: "pcm_s16le";
623
+ sampleRateHz: 48000;
624
+ audioChannels: 2 | 1;
625
+ sampleCount: number;
626
+ durationMs: number;
627
+ };
628
+ originalName: string | null;
629
+ previousVersionId: string | null;
630
+ createdByPrincipalId: string;
631
+ createdAt: string;
632
+ purpose: "VOICEOVER" | "MUSIC";
633
+ generation?: {
634
+ generationId: string;
635
+ executionClass: "LIVE" | "TEST_ONLY";
636
+ sourceArtifactId: string;
637
+ sourceRepresentationId: string;
638
+ sourceChecksumSha256: string;
639
+ sourceByteSize: number;
640
+ sourceMedia: {
641
+ sampleRateHz: number;
642
+ audioChannels: 2 | 1;
643
+ sampleCount: number;
644
+ };
645
+ normalizationVersion: "SPEECH_PCM_V1";
646
+ padSamples: number;
647
+ voiceProfile?: {
648
+ ref: {
649
+ ownerSystem: string;
650
+ ownerTenantRef: string;
651
+ voiceProfileRef: string;
652
+ version: number;
653
+ digest: string;
654
+ };
655
+ bindingKey: string;
656
+ language: string;
657
+ usage: "AUDITION" | "PRODUCTION";
658
+ } | undefined;
659
+ executionTarget?: "TENANT_DEVICE" | undefined;
660
+ } | undefined;
661
+ };
662
+ }[];
663
+ } | undefined;
664
+ graphics?: {
665
+ source: {
666
+ tenantId: string & z.core.$brand<"TenantId">;
667
+ projectId: string & z.core.$brand<"ProjectId">;
668
+ productionId: (string & z.core.$brand<"ProductionId">) | null;
669
+ artifactId: string & z.core.$brand<"ArtifactId">;
670
+ representationId: string & z.core.$brand<"ArtifactRepresentationId">;
671
+ checksumSha256: string;
672
+ contentType: "image/png" | "image/webp";
673
+ byteSize: number;
674
+ width: number;
675
+ height: number;
676
+ };
677
+ placement: {
678
+ startFrame: number;
679
+ endFrame: number;
680
+ anchor: "TOP_LEFT" | "TOP_RIGHT" | "BOTTOM_LEFT" | "BOTTOM_RIGHT";
681
+ widthPermille: number;
682
+ marginXPermille: number;
683
+ marginYPermille: number;
684
+ opacityPermille: number;
685
+ };
686
+ }[] | undefined;
687
+ sourceSound?: {
688
+ schemaVersion: 1;
689
+ soundPlanVersionId: string;
690
+ soundPlanFingerprint: string;
691
+ plannedCues: {
692
+ id: string;
693
+ role: "MUSIC" | "NARRATION" | "DIALOGUE" | "AMBIENCE" | "SOUND_EFFECT";
694
+ source: "TTS" | "NATIVE_VIDEO" | "IMPORTED_AUDIO" | "EXISTING_AUDIO";
695
+ shotIds: string[];
696
+ startMs: number;
697
+ endMs: number;
698
+ lipSync: "NONE" | "REQUIRED";
699
+ exactSpeech: boolean;
700
+ text?: string | undefined;
701
+ voice?: string | undefined;
702
+ voiceProfile?: {
703
+ ref: {
704
+ ownerSystem: string;
705
+ ownerTenantRef: string;
706
+ voiceProfileRef: string;
707
+ version: number;
708
+ digest: string;
709
+ };
710
+ bindingKey: string;
711
+ language: string;
712
+ usage: "PRODUCTION";
713
+ } | undefined;
714
+ model?: {
715
+ modelProfileId: string;
716
+ modelProfileVersion: number;
717
+ connectionId: string;
718
+ } | undefined;
719
+ nativeModel?: {
720
+ modelProfileId: string;
721
+ modelProfileVersion: number;
722
+ schemaVersion: 1;
723
+ execution: {
724
+ schemaVersion: 1;
725
+ profileId: "KOKORO_INT8_ZH_EN_V1";
726
+ modelDigest: "ebd0959580940e20dbb10a55775ec94e47229c7c503f65932403fe0764667126";
727
+ };
728
+ } | undefined;
729
+ parameters?: Record<string, string | number | boolean | string[] | Record<string, string>> | undefined;
730
+ audio?: {
731
+ purpose: "VOICEOVER" | "MUSIC";
732
+ versionId: string;
733
+ } | undefined;
734
+ }[];
735
+ mix: {
736
+ id: "PCM_WINDOW_MIX_AAC_V1";
737
+ sampleRateHz: 48000;
738
+ audioChannels: 2;
739
+ audioCodec: "aac";
740
+ bitrate: 192000;
741
+ peakPermille: 950;
742
+ duckingMusicPermille: number;
743
+ };
744
+ clips: {
745
+ ordinal: number;
746
+ treatment: {
747
+ policy: "KEEP" | "MUTE" | "DUCK";
748
+ gainPermille: number;
749
+ duckingPermille: number;
750
+ };
751
+ sourceInSample: number;
752
+ sourceOutSample: number;
753
+ startSample: number;
754
+ outputSampleCount: number;
755
+ source?: {
756
+ kind: "NATIVE_GENERATED";
757
+ version: {
758
+ id: string;
759
+ tenantId: string;
760
+ projectId: string;
761
+ productionId: string;
762
+ shotId: string;
763
+ generationId: string;
764
+ videoArtifactId: string;
765
+ videoRepresentationId: string;
766
+ videoChecksumSha256: string;
767
+ artifactId: string;
768
+ representationId: string;
769
+ checksumSha256: string;
770
+ byteSize: number;
771
+ metadata: {
772
+ normalizationVersion: "VIDEO_AUDIO_PCM_V1";
773
+ sourceCodec: "aac";
774
+ sourceSampleRateHz: number;
775
+ sourceChannels: 2 | 1;
776
+ sourceFrameRateHz: 30 | 24;
777
+ sourceFrameCount: number;
778
+ sourceStartOffsetMs: number;
779
+ sourceDeclaredDurationMs: number;
780
+ alignment: "TRIM_PAD_PCM_TO_VIDEO_ZERO_V1";
781
+ media: {
782
+ profile: "PCM_S16LE_48000_NATIVE_VIDEO_V1";
783
+ audioCodec: "pcm_s16le";
784
+ sampleRateHz: 48000;
785
+ audioChannels: 2 | 1;
786
+ sampleCount: number;
787
+ durationMs: number;
788
+ };
789
+ checksumSha256: string;
790
+ };
791
+ executionClass: "LIVE" | "TEST_ONLY";
792
+ };
793
+ } | {
794
+ kind: "IMPORTED_SYNC";
795
+ version: {
796
+ schemaVersion: 1;
797
+ purpose: "SOURCE_SYNC";
798
+ id: string;
799
+ audioId: string;
800
+ version: number;
801
+ tenantId: string;
802
+ projectId: string;
803
+ productionId: string;
804
+ shotId: string;
805
+ normalizationId: string;
806
+ artifactId: string;
807
+ representationId: string;
808
+ provenance: {
809
+ schemaVersion: 1;
810
+ purpose: "SOURCE_SYNC";
811
+ tenantId: string;
812
+ projectId: string;
813
+ productionId: string;
814
+ shotId: string;
815
+ sourceId: string;
816
+ sourceVersionId: string;
817
+ normalizationId: string;
818
+ originalArtifactId: string;
819
+ originalRepresentationId: string;
820
+ originalChecksumSha256: string;
821
+ sourceRange: {
822
+ clock: "SOURCE_ZERO_BASED_CFR30";
823
+ startFrame: number;
824
+ endFrame: number;
825
+ };
826
+ destinationStartSample: number;
827
+ media: {
828
+ profile: "PCM_S16LE_48000_V1";
829
+ audioCodec: "pcm_s16le";
830
+ sampleRateHz: 48000;
831
+ audioChannels: 2 | 1;
832
+ sampleCount: number;
833
+ durationMs: number;
834
+ } | {
835
+ profile: "PCM_S16LE_48000_SOURCE_SYNC_V1";
836
+ audioCodec: "pcm_s16le";
837
+ sampleRateHz: 48000;
838
+ audioChannels: 2 | 1;
839
+ sampleCount: number;
840
+ durationMs: number;
841
+ };
842
+ wavChecksumSha256: string;
843
+ wavByteSize: number;
844
+ };
845
+ previousVersionId: string | null;
846
+ executionClass: "LIVE" | "TEST_ONLY";
847
+ createdByPrincipalId: string;
848
+ createdAt: string;
849
+ };
850
+ } | undefined;
851
+ }[];
852
+ speechCues: {
853
+ cueId: string;
854
+ source: {
855
+ tenantId: string & z.core.$brand<"TenantId">;
856
+ productionId: string & z.core.$brand<"ProductionId">;
857
+ id: string;
858
+ audioId: string;
859
+ projectId: string;
860
+ version: number;
861
+ artifactId: string;
862
+ original: {
863
+ id: string;
864
+ checksumSha256: string;
865
+ byteSize: number;
866
+ };
867
+ media: {
868
+ profile: "PCM_S16LE_48000_V1";
869
+ audioCodec: "pcm_s16le";
870
+ sampleRateHz: 48000;
871
+ audioChannels: 2 | 1;
872
+ sampleCount: number;
873
+ durationMs: number;
874
+ };
875
+ originalName: string | null;
876
+ previousVersionId: string | null;
877
+ createdByPrincipalId: string;
878
+ createdAt: string;
879
+ purpose: "VOICEOVER" | "MUSIC";
880
+ generation?: {
881
+ generationId: string;
882
+ executionClass: "LIVE" | "TEST_ONLY";
883
+ sourceArtifactId: string;
884
+ sourceRepresentationId: string;
885
+ sourceChecksumSha256: string;
886
+ sourceByteSize: number;
887
+ sourceMedia: {
888
+ sampleRateHz: number;
889
+ audioChannels: 2 | 1;
890
+ sampleCount: number;
891
+ };
892
+ normalizationVersion: "SPEECH_PCM_V1";
893
+ padSamples: number;
894
+ voiceProfile?: {
895
+ ref: {
896
+ ownerSystem: string;
897
+ ownerTenantRef: string;
898
+ voiceProfileRef: string;
899
+ version: number;
900
+ digest: string;
901
+ };
902
+ bindingKey: string;
903
+ language: string;
904
+ usage: "AUDITION" | "PRODUCTION";
905
+ } | undefined;
906
+ executionTarget?: "TENANT_DEVICE" | undefined;
907
+ } | undefined;
908
+ };
909
+ sourceInMs: 0;
910
+ sourceOutMs: number;
911
+ startMs: number;
912
+ gainPermille: 1000;
913
+ }[];
914
+ } | undefined;
915
+ };
916
+ } | {
917
+ schemaVersion: 1;
918
+ timeline: {
919
+ schemaVersion: 1;
920
+ basis: {
921
+ briefVersionId: string & z.core.$brand<"BriefVersionId">;
922
+ briefVersion: number;
923
+ storyVersion: number;
924
+ planVersionId: string & z.core.$brand<"SceneShotPlanVersionId">;
925
+ planVersion: number;
926
+ };
927
+ output: {
928
+ aspectRatio: "16:9" | "9:16";
929
+ profile: "MP4_H264_1080P" | "MP4_H264_720P" | "MP4_H264_480P";
930
+ };
931
+ clips: {
932
+ ordinal: number;
933
+ source: {
934
+ acceptanceId: string;
935
+ reviewId: string;
936
+ generationId: string;
937
+ candidateId: string;
938
+ shotId: string & z.core.$brand<"ShotId">;
939
+ artifactId: string & z.core.$brand<"ArtifactId">;
940
+ representationId: string & z.core.$brand<"ArtifactRepresentationId">;
941
+ checksumSha256: string;
942
+ artifactChecksumSha256: string;
943
+ preparationId: string;
944
+ contractId: string;
945
+ contractFingerprint: string;
946
+ planVersionId: string & z.core.$brand<"SceneShotPlanVersionId">;
947
+ planVersion: number;
948
+ shotPlanningRevision: number;
949
+ executionClass: "LIVE" | "TEST_ONLY";
950
+ reviewResult: "PASS" | "WARNING";
951
+ };
952
+ technical: {
953
+ contentType: "video/mp4";
954
+ checksumSha256: string;
955
+ byteSize: number;
956
+ width: number;
957
+ height: number;
958
+ durationMs: number;
959
+ frameRate: number;
960
+ videoCodec: "h264" | "hevc";
961
+ hasAudio: boolean;
962
+ pixelFormat?: "yuv420p10le" | undefined;
963
+ nativeAudio?: {
964
+ normalizationVersion: "VIDEO_AUDIO_PCM_V1";
965
+ sourceCodec: "aac";
966
+ sourceSampleRateHz: number;
967
+ sourceChannels: 2 | 1;
968
+ sourceFrameRateHz: 30 | 24;
969
+ sourceFrameCount: number;
970
+ sourceStartOffsetMs: number;
971
+ sourceDeclaredDurationMs: number;
972
+ alignment: "TRIM_PAD_PCM_TO_VIDEO_ZERO_V1";
973
+ media: {
974
+ profile: "PCM_S16LE_48000_NATIVE_VIDEO_V1";
975
+ audioCodec: "pcm_s16le";
976
+ sampleRateHz: 48000;
977
+ audioChannels: 2 | 1;
978
+ sampleCount: number;
979
+ durationMs: number;
980
+ };
981
+ checksumSha256: string;
982
+ } | undefined;
983
+ };
984
+ sourceInMs: number;
985
+ sourceOutMs: number;
986
+ startMs: number;
987
+ durationMs: number;
988
+ transition: "CUT" | {
989
+ kind: "CROSS_DISSOLVE_V1";
990
+ durationFrames: number;
991
+ };
992
+ framing?: {
993
+ algorithm: "CROP_PAD_V1";
994
+ crop: {
995
+ x: number;
996
+ y: number;
997
+ width: number;
998
+ height: number;
999
+ };
1000
+ anchorXPermille: number;
1001
+ anchorYPermille: number;
1002
+ } | undefined;
1003
+ }[];
1004
+ duration: {
1005
+ totalMs: number;
1006
+ targetMs: number;
1007
+ minMs: 30000;
1008
+ maxMs: 60000;
1009
+ deltaTargetMs: number;
1010
+ classification: "TOO_SHORT" | "WITHIN_TARGET" | "TOO_LONG";
1011
+ };
1012
+ missingPlannedShotIds: (string & z.core.$brand<"ShotId">)[];
1013
+ executionClass: "LIVE" | "TEST_ONLY";
1014
+ id: string;
1015
+ timelineId: string;
1016
+ tenantId: string & z.core.$brand<"TenantId">;
1017
+ projectId: string & z.core.$brand<"ProjectId">;
1018
+ productionId: string & z.core.$brand<"ProductionId">;
1019
+ version: number;
1020
+ fingerprint: string;
1021
+ createdByPrincipalId: string & z.core.$brand<"PrincipalId">;
1022
+ createdAt: string;
1023
+ caption?: {
1024
+ tenantId: string & z.core.$brand<"TenantId">;
1025
+ productionId: string & z.core.$brand<"ProductionId">;
1026
+ id: string;
1027
+ captionId: string;
1028
+ projectId: string;
1029
+ version: number;
1030
+ artifactId: string;
1031
+ content: {
1032
+ language: string;
1033
+ durationMs: number;
1034
+ cues: {
1035
+ startMs: number;
1036
+ endMs: number;
1037
+ text: string;
1038
+ }[];
1039
+ };
1040
+ fingerprint: string;
1041
+ original: {
1042
+ id: string;
1043
+ checksumSha256: string;
1044
+ byteSize: number;
1045
+ };
1046
+ subtitle: {
1047
+ id: string;
1048
+ checksumSha256: string;
1049
+ byteSize: number;
1050
+ };
1051
+ previousVersionId: string | null;
1052
+ createdByPrincipalId: string;
1053
+ createdAt: string;
1054
+ transcriptProvenance?: {
1055
+ schemaVersion: 1;
1056
+ advisory: true;
1057
+ timing: "PROVIDER_REPORTED";
1058
+ timelineVersionId: string;
1059
+ timingFingerprint: string;
1060
+ sources: {
1061
+ observationId: string;
1062
+ artifactId: string;
1063
+ representationId: string;
1064
+ checksumSha256: string;
1065
+ placement: {
1066
+ kind: "AUDIO_TRACK";
1067
+ purpose: "VOICEOVER" | "MUSIC";
1068
+ } | {
1069
+ kind: "SPEECH_CUE";
1070
+ cueId: string;
1071
+ } | {
1072
+ kind: "TIMELINE_OUTPUT";
1073
+ };
1074
+ granularity: "word" | "segment";
1075
+ sourceInMs: number;
1076
+ sourceOutMs: number;
1077
+ startMs: number;
1078
+ spanIndices: number[];
1079
+ excludedSpans: number;
1080
+ }[];
1081
+ } | undefined;
1082
+ } | undefined;
1083
+ captionStyle?: {
1084
+ id: "PLAIN_TEXT_NOTO_SANS_SC_V1";
1085
+ fontSha256: "a3041811a78c361b1de50f953c805e0244951c21c5bd412f7232ef0d899af0da";
1086
+ framePolicy: "PTS_HALF_OPEN_CEIL_V1";
1087
+ } | {
1088
+ id: "PLAIN_TEXT_NATIVE_SC_REGULAR_V2";
1089
+ fontSha256: "e5a51f41fc1b827da651afee3975e07a182ff4f8e04d9dfc0a3cecd6177a52b6";
1090
+ framePolicy: "PTS_HALF_OPEN_CEIL_V1";
1091
+ } | undefined;
1092
+ audio?: {
1093
+ mix: {
1094
+ id: "PCM_WINDOW_MIX_AAC_V1";
1095
+ sampleRateHz: 48000;
1096
+ audioChannels: 2;
1097
+ audioCodec: "aac";
1098
+ bitrate: 192000;
1099
+ peakPermille: 950;
1100
+ duckingMusicPermille: number;
1101
+ };
1102
+ tracks: {
1103
+ sourceInMs: number;
1104
+ sourceOutMs: number;
1105
+ startMs: number;
1106
+ gainPermille: number;
1107
+ source: {
1108
+ tenantId: string & z.core.$brand<"TenantId">;
1109
+ productionId: string & z.core.$brand<"ProductionId">;
1110
+ id: string;
1111
+ audioId: string;
1112
+ projectId: string;
1113
+ version: number;
1114
+ artifactId: string;
1115
+ original: {
1116
+ id: string;
1117
+ checksumSha256: string;
1118
+ byteSize: number;
1119
+ };
1120
+ media: {
1121
+ profile: "PCM_S16LE_48000_V1";
1122
+ audioCodec: "pcm_s16le";
1123
+ sampleRateHz: 48000;
1124
+ audioChannels: 2 | 1;
1125
+ sampleCount: number;
1126
+ durationMs: number;
1127
+ };
1128
+ originalName: string | null;
1129
+ previousVersionId: string | null;
1130
+ createdByPrincipalId: string;
1131
+ createdAt: string;
1132
+ purpose: "VOICEOVER" | "MUSIC";
1133
+ generation?: {
1134
+ generationId: string;
1135
+ executionClass: "LIVE" | "TEST_ONLY";
1136
+ sourceArtifactId: string;
1137
+ sourceRepresentationId: string;
1138
+ sourceChecksumSha256: string;
1139
+ sourceByteSize: number;
1140
+ sourceMedia: {
1141
+ sampleRateHz: number;
1142
+ audioChannels: 2 | 1;
1143
+ sampleCount: number;
1144
+ };
1145
+ normalizationVersion: "SPEECH_PCM_V1";
1146
+ padSamples: number;
1147
+ voiceProfile?: {
1148
+ ref: {
1149
+ ownerSystem: string;
1150
+ ownerTenantRef: string;
1151
+ voiceProfileRef: string;
1152
+ version: number;
1153
+ digest: string;
1154
+ };
1155
+ bindingKey: string;
1156
+ language: string;
1157
+ usage: "AUDITION" | "PRODUCTION";
1158
+ } | undefined;
1159
+ executionTarget?: "TENANT_DEVICE" | undefined;
1160
+ } | undefined;
1161
+ };
1162
+ }[];
1163
+ } | undefined;
1164
+ graphics?: {
1165
+ source: {
1166
+ tenantId: string & z.core.$brand<"TenantId">;
1167
+ projectId: string & z.core.$brand<"ProjectId">;
1168
+ productionId: (string & z.core.$brand<"ProductionId">) | null;
1169
+ artifactId: string & z.core.$brand<"ArtifactId">;
1170
+ representationId: string & z.core.$brand<"ArtifactRepresentationId">;
1171
+ checksumSha256: string;
1172
+ contentType: "image/png" | "image/webp";
1173
+ byteSize: number;
1174
+ width: number;
1175
+ height: number;
1176
+ };
1177
+ placement: {
1178
+ startFrame: number;
1179
+ endFrame: number;
1180
+ anchor: "TOP_LEFT" | "TOP_RIGHT" | "BOTTOM_LEFT" | "BOTTOM_RIGHT";
1181
+ widthPermille: number;
1182
+ marginXPermille: number;
1183
+ marginYPermille: number;
1184
+ opacityPermille: number;
1185
+ };
1186
+ }[] | undefined;
1187
+ };
1188
+ profile: {
1189
+ id: "PREVIEW_H264_480P_V1" | "PREVIEW_H264_720P_V1" | "PREVIEW_H264_1080P_V1";
1190
+ algorithm: "ORDERED_TRIM_CUT_V1" | "ORDERED_COMPOSE_V2";
1191
+ width: 1920 | 1080 | 1280 | 720 | 854 | 480;
1192
+ height: 1920 | 1080 | 1280 | 720 | 854 | 480;
1193
+ frameRate: 30;
1194
+ codec: "h264";
1195
+ pixelFormat: "yuv420p";
1196
+ fit: "PAD";
1197
+ hasAudio: boolean;
1198
+ framePolicy: "CUMULATIVE_NEAREST_FRAME";
1199
+ captionPolicy?: "BURN_IN" | undefined;
1200
+ captionStyle?: {
1201
+ id: "PLAIN_TEXT_NOTO_SANS_SC_V1";
1202
+ fontSha256: "a3041811a78c361b1de50f953c805e0244951c21c5bd412f7232ef0d899af0da";
1203
+ framePolicy: "PTS_HALF_OPEN_CEIL_V1";
1204
+ } | {
1205
+ id: "PLAIN_TEXT_NATIVE_SC_REGULAR_V2";
1206
+ fontSha256: "e5a51f41fc1b827da651afee3975e07a182ff4f8e04d9dfc0a3cecd6177a52b6";
1207
+ framePolicy: "PTS_HALF_OPEN_CEIL_V1";
1208
+ } | undefined;
1209
+ graphicsPolicy?: "OVERLAY_V1" | undefined;
1210
+ picturePolicy?: "CROP_PAD_V1" | undefined;
1211
+ audioMix?: {
1212
+ id: "PCM_WINDOW_MIX_AAC_V1";
1213
+ sampleRateHz: 48000;
1214
+ audioChannels: 2;
1215
+ audioCodec: "aac";
1216
+ bitrate: 192000;
1217
+ peakPermille: 950;
1218
+ duckingMusicPermille: number;
1219
+ } | undefined;
1220
+ };
1221
+ frames: {
1222
+ ordinal: number;
1223
+ startFrame: number;
1224
+ frameCount: number;
1225
+ overlapFrames: number;
1226
+ }[];
1227
+ totalFrames: number;
1228
+ } | {
1229
+ profile: {
1230
+ id: "PREVIEW_H264_480P_V1" | "PREVIEW_H264_720P_V1" | "PREVIEW_H264_1080P_V1";
1231
+ algorithm: "ORDERED_TRIM_CUT_V1" | "ORDERED_COMPOSE_V2";
1232
+ width: 1920 | 1080 | 1280 | 720 | 854 | 480;
1233
+ height: 1920 | 1080 | 1280 | 720 | 854 | 480;
1234
+ frameRate: 30;
1235
+ codec: "h264";
1236
+ pixelFormat: "yuv420p";
1237
+ fit: "PAD";
1238
+ hasAudio: boolean;
1239
+ framePolicy: "CUMULATIVE_NEAREST_FRAME";
1240
+ captionPolicy?: "BURN_IN" | undefined;
1241
+ captionStyle?: {
1242
+ id: "PLAIN_TEXT_NOTO_SANS_SC_V1";
1243
+ fontSha256: "a3041811a78c361b1de50f953c805e0244951c21c5bd412f7232ef0d899af0da";
1244
+ framePolicy: "PTS_HALF_OPEN_CEIL_V1";
1245
+ } | {
1246
+ id: "PLAIN_TEXT_NATIVE_SC_REGULAR_V2";
1247
+ fontSha256: "e5a51f41fc1b827da651afee3975e07a182ff4f8e04d9dfc0a3cecd6177a52b6";
1248
+ framePolicy: "PTS_HALF_OPEN_CEIL_V1";
1249
+ } | undefined;
1250
+ graphicsPolicy?: "OVERLAY_V1" | undefined;
1251
+ picturePolicy?: "CROP_PAD_V1" | undefined;
1252
+ audioMix?: {
1253
+ id: "PCM_WINDOW_MIX_AAC_V1";
1254
+ sampleRateHz: 48000;
1255
+ audioChannels: 2;
1256
+ audioCodec: "aac";
1257
+ bitrate: 192000;
1258
+ peakPermille: 950;
1259
+ duckingMusicPermille: number;
1260
+ } | undefined;
1261
+ };
1262
+ frames: {
1263
+ ordinal: number;
1264
+ startFrame: number;
1265
+ frameCount: number;
1266
+ overlapFrames: number;
1267
+ }[];
1268
+ totalFrames: number;
1269
+ schemaVersion: 2;
1270
+ timeline: {
1271
+ basis: {
1272
+ briefVersionId: string & z.core.$brand<"BriefVersionId">;
1273
+ briefVersion: number;
1274
+ storyVersion: number;
1275
+ planVersionId: string & z.core.$brand<"SceneShotPlanVersionId">;
1276
+ planVersion: number;
1277
+ };
1278
+ output: {
1279
+ aspectRatio: "16:9" | "9:16";
1280
+ profile: "MP4_H264_1080P" | "MP4_H264_720P" | "MP4_H264_480P";
1281
+ };
1282
+ duration: {
1283
+ totalMs: number;
1284
+ targetMs: number;
1285
+ minMs: 30000;
1286
+ maxMs: 60000;
1287
+ deltaTargetMs: number;
1288
+ classification: "TOO_SHORT" | "WITHIN_TARGET" | "TOO_LONG";
1289
+ };
1290
+ missingPlannedShotIds: (string & z.core.$brand<"ShotId">)[];
1291
+ executionClass: "LIVE" | "TEST_ONLY";
1292
+ schemaVersion: 2;
1293
+ clips: {
1294
+ ordinal: number;
1295
+ technical: {
1296
+ contentType: "video/mp4";
1297
+ checksumSha256: string;
1298
+ byteSize: number;
1299
+ width: number;
1300
+ height: number;
1301
+ durationMs: number;
1302
+ frameRate: number;
1303
+ videoCodec: "h264" | "hevc";
1304
+ hasAudio: boolean;
1305
+ pixelFormat?: "yuv420p10le" | undefined;
1306
+ nativeAudio?: {
1307
+ normalizationVersion: "VIDEO_AUDIO_PCM_V1";
1308
+ sourceCodec: "aac";
1309
+ sourceSampleRateHz: number;
1310
+ sourceChannels: 2 | 1;
1311
+ sourceFrameRateHz: 30 | 24;
1312
+ sourceFrameCount: number;
1313
+ sourceStartOffsetMs: number;
1314
+ sourceDeclaredDurationMs: number;
1315
+ alignment: "TRIM_PAD_PCM_TO_VIDEO_ZERO_V1";
1316
+ media: {
1317
+ profile: "PCM_S16LE_48000_NATIVE_VIDEO_V1";
1318
+ audioCodec: "pcm_s16le";
1319
+ sampleRateHz: 48000;
1320
+ audioChannels: 2 | 1;
1321
+ sampleCount: number;
1322
+ durationMs: number;
1323
+ };
1324
+ checksumSha256: string;
1325
+ } | undefined;
1326
+ };
1327
+ sourceInMs: number;
1328
+ sourceOutMs: number;
1329
+ startMs: number;
1330
+ durationMs: number;
1331
+ transition: "CUT" | {
1332
+ kind: "CROSS_DISSOLVE_V1";
1333
+ durationFrames: number;
1334
+ };
1335
+ source: {
1336
+ acceptanceId: string;
1337
+ reviewId: string;
1338
+ generationId: string;
1339
+ candidateId: string;
1340
+ shotId: string & z.core.$brand<"ShotId">;
1341
+ artifactId: string & z.core.$brand<"ArtifactId">;
1342
+ representationId: string & z.core.$brand<"ArtifactRepresentationId">;
1343
+ checksumSha256: string;
1344
+ artifactChecksumSha256: string;
1345
+ preparationId: string;
1346
+ contractId: string;
1347
+ contractFingerprint: string;
1348
+ planVersionId: string & z.core.$brand<"SceneShotPlanVersionId">;
1349
+ planVersion: number;
1350
+ shotPlanningRevision: number;
1351
+ executionClass: "LIVE" | "TEST_ONLY";
1352
+ reviewResult: "PASS" | "WARNING";
1353
+ } | {
1354
+ sourceKind: "PROGRAMMATIC";
1355
+ acceptanceId: string;
1356
+ reviewId: string;
1357
+ renderId: string;
1358
+ compositionId: string;
1359
+ compositionVersionId: string;
1360
+ compositionVersion: number;
1361
+ compositionFingerprint: string;
1362
+ renderManifestFingerprint: string;
1363
+ shotId: string & z.core.$brand<"ShotId">;
1364
+ artifactId: string & z.core.$brand<"ArtifactId">;
1365
+ representationId: string & z.core.$brand<"ArtifactRepresentationId">;
1366
+ checksumSha256: string;
1367
+ artifactChecksumSha256: string;
1368
+ planVersionId: string & z.core.$brand<"SceneShotPlanVersionId">;
1369
+ planVersion: number;
1370
+ shotPlanningRevision: number;
1371
+ executionClass: "LIVE" | "TEST_ONLY";
1372
+ reviewResult: "PASS" | "WARNING";
1373
+ } | {
1374
+ sourceKind: "IMPORTED";
1375
+ acceptanceId: string;
1376
+ reviewId: string;
1377
+ normalizationId: string;
1378
+ sourceId: string;
1379
+ sourceVersionId: string;
1380
+ shotId: string & z.core.$brand<"ShotId">;
1381
+ artifactId: string & z.core.$brand<"ArtifactId">;
1382
+ representationId: string & z.core.$brand<"ArtifactRepresentationId">;
1383
+ checksumSha256: string;
1384
+ executionClass: "LIVE" | "TEST_ONLY";
1385
+ reviewResult: "PASS" | "WARNING";
1386
+ };
1387
+ framing?: {
1388
+ algorithm: "CROP_PAD_V1";
1389
+ crop: {
1390
+ x: number;
1391
+ y: number;
1392
+ width: number;
1393
+ height: number;
1394
+ };
1395
+ anchorXPermille: number;
1396
+ anchorYPermille: number;
1397
+ } | undefined;
1398
+ }[];
1399
+ id: string;
1400
+ timelineId: string;
1401
+ tenantId: string & z.core.$brand<"TenantId">;
1402
+ projectId: string & z.core.$brand<"ProjectId">;
1403
+ productionId: string & z.core.$brand<"ProductionId">;
1404
+ version: number;
1405
+ fingerprint: string;
1406
+ createdByPrincipalId: string & z.core.$brand<"PrincipalId">;
1407
+ createdAt: string;
1408
+ caption?: {
1409
+ tenantId: string & z.core.$brand<"TenantId">;
1410
+ productionId: string & z.core.$brand<"ProductionId">;
1411
+ id: string;
1412
+ captionId: string;
1413
+ projectId: string;
1414
+ version: number;
1415
+ artifactId: string;
1416
+ content: {
1417
+ language: string;
1418
+ durationMs: number;
1419
+ cues: {
1420
+ startMs: number;
1421
+ endMs: number;
1422
+ text: string;
1423
+ }[];
1424
+ };
1425
+ fingerprint: string;
1426
+ original: {
1427
+ id: string;
1428
+ checksumSha256: string;
1429
+ byteSize: number;
1430
+ };
1431
+ subtitle: {
1432
+ id: string;
1433
+ checksumSha256: string;
1434
+ byteSize: number;
1435
+ };
1436
+ previousVersionId: string | null;
1437
+ createdByPrincipalId: string;
1438
+ createdAt: string;
1439
+ transcriptProvenance?: {
1440
+ schemaVersion: 1;
1441
+ advisory: true;
1442
+ timing: "PROVIDER_REPORTED";
1443
+ timelineVersionId: string;
1444
+ timingFingerprint: string;
1445
+ sources: {
1446
+ observationId: string;
1447
+ artifactId: string;
1448
+ representationId: string;
1449
+ checksumSha256: string;
1450
+ placement: {
1451
+ kind: "AUDIO_TRACK";
1452
+ purpose: "VOICEOVER" | "MUSIC";
1453
+ } | {
1454
+ kind: "SPEECH_CUE";
1455
+ cueId: string;
1456
+ } | {
1457
+ kind: "TIMELINE_OUTPUT";
1458
+ };
1459
+ granularity: "word" | "segment";
1460
+ sourceInMs: number;
1461
+ sourceOutMs: number;
1462
+ startMs: number;
1463
+ spanIndices: number[];
1464
+ excludedSpans: number;
1465
+ }[];
1466
+ } | undefined;
1467
+ } | undefined;
1468
+ captionStyle?: {
1469
+ id: "PLAIN_TEXT_NOTO_SANS_SC_V1";
1470
+ fontSha256: "a3041811a78c361b1de50f953c805e0244951c21c5bd412f7232ef0d899af0da";
1471
+ framePolicy: "PTS_HALF_OPEN_CEIL_V1";
1472
+ } | {
1473
+ id: "PLAIN_TEXT_NATIVE_SC_REGULAR_V2";
1474
+ fontSha256: "e5a51f41fc1b827da651afee3975e07a182ff4f8e04d9dfc0a3cecd6177a52b6";
1475
+ framePolicy: "PTS_HALF_OPEN_CEIL_V1";
1476
+ } | undefined;
1477
+ audio?: {
1478
+ mix: {
1479
+ id: "PCM_WINDOW_MIX_AAC_V1";
1480
+ sampleRateHz: 48000;
1481
+ audioChannels: 2;
1482
+ audioCodec: "aac";
1483
+ bitrate: 192000;
1484
+ peakPermille: 950;
1485
+ duckingMusicPermille: number;
1486
+ };
1487
+ tracks: {
1488
+ sourceInMs: number;
1489
+ sourceOutMs: number;
1490
+ startMs: number;
1491
+ gainPermille: number;
1492
+ source: {
1493
+ tenantId: string & z.core.$brand<"TenantId">;
1494
+ productionId: string & z.core.$brand<"ProductionId">;
1495
+ id: string;
1496
+ audioId: string;
1497
+ projectId: string;
1498
+ version: number;
1499
+ artifactId: string;
1500
+ original: {
1501
+ id: string;
1502
+ checksumSha256: string;
1503
+ byteSize: number;
1504
+ };
1505
+ media: {
1506
+ profile: "PCM_S16LE_48000_V1";
1507
+ audioCodec: "pcm_s16le";
1508
+ sampleRateHz: 48000;
1509
+ audioChannels: 2 | 1;
1510
+ sampleCount: number;
1511
+ durationMs: number;
1512
+ };
1513
+ originalName: string | null;
1514
+ previousVersionId: string | null;
1515
+ createdByPrincipalId: string;
1516
+ createdAt: string;
1517
+ purpose: "VOICEOVER" | "MUSIC";
1518
+ generation?: {
1519
+ generationId: string;
1520
+ executionClass: "LIVE" | "TEST_ONLY";
1521
+ sourceArtifactId: string;
1522
+ sourceRepresentationId: string;
1523
+ sourceChecksumSha256: string;
1524
+ sourceByteSize: number;
1525
+ sourceMedia: {
1526
+ sampleRateHz: number;
1527
+ audioChannels: 2 | 1;
1528
+ sampleCount: number;
1529
+ };
1530
+ normalizationVersion: "SPEECH_PCM_V1";
1531
+ padSamples: number;
1532
+ voiceProfile?: {
1533
+ ref: {
1534
+ ownerSystem: string;
1535
+ ownerTenantRef: string;
1536
+ voiceProfileRef: string;
1537
+ version: number;
1538
+ digest: string;
1539
+ };
1540
+ bindingKey: string;
1541
+ language: string;
1542
+ usage: "AUDITION" | "PRODUCTION";
1543
+ } | undefined;
1544
+ executionTarget?: "TENANT_DEVICE" | undefined;
1545
+ } | undefined;
1546
+ };
1547
+ }[];
1548
+ } | undefined;
1549
+ graphics?: {
1550
+ source: {
1551
+ tenantId: string & z.core.$brand<"TenantId">;
1552
+ projectId: string & z.core.$brand<"ProjectId">;
1553
+ productionId: (string & z.core.$brand<"ProductionId">) | null;
1554
+ artifactId: string & z.core.$brand<"ArtifactId">;
1555
+ representationId: string & z.core.$brand<"ArtifactRepresentationId">;
1556
+ checksumSha256: string;
1557
+ contentType: "image/png" | "image/webp";
1558
+ byteSize: number;
1559
+ width: number;
1560
+ height: number;
1561
+ };
1562
+ placement: {
1563
+ startFrame: number;
1564
+ endFrame: number;
1565
+ anchor: "TOP_LEFT" | "TOP_RIGHT" | "BOTTOM_LEFT" | "BOTTOM_RIGHT";
1566
+ widthPermille: number;
1567
+ marginXPermille: number;
1568
+ marginYPermille: number;
1569
+ opacityPermille: number;
1570
+ };
1571
+ }[] | undefined;
1572
+ sourceSound?: {
1573
+ schemaVersion: 1;
1574
+ soundPlanVersionId: string;
1575
+ soundPlanFingerprint: string;
1576
+ plannedCues: {
1577
+ id: string;
1578
+ role: "MUSIC" | "NARRATION" | "DIALOGUE" | "AMBIENCE" | "SOUND_EFFECT";
1579
+ source: "TTS" | "NATIVE_VIDEO" | "IMPORTED_AUDIO" | "EXISTING_AUDIO";
1580
+ shotIds: string[];
1581
+ startMs: number;
1582
+ endMs: number;
1583
+ lipSync: "NONE" | "REQUIRED";
1584
+ exactSpeech: boolean;
1585
+ text?: string | undefined;
1586
+ voice?: string | undefined;
1587
+ voiceProfile?: {
1588
+ ref: {
1589
+ ownerSystem: string;
1590
+ ownerTenantRef: string;
1591
+ voiceProfileRef: string;
1592
+ version: number;
1593
+ digest: string;
1594
+ };
1595
+ bindingKey: string;
1596
+ language: string;
1597
+ usage: "PRODUCTION";
1598
+ } | undefined;
1599
+ model?: {
1600
+ modelProfileId: string;
1601
+ modelProfileVersion: number;
1602
+ connectionId: string;
1603
+ } | undefined;
1604
+ nativeModel?: {
1605
+ modelProfileId: string;
1606
+ modelProfileVersion: number;
1607
+ schemaVersion: 1;
1608
+ execution: {
1609
+ schemaVersion: 1;
1610
+ profileId: "KOKORO_INT8_ZH_EN_V1";
1611
+ modelDigest: "ebd0959580940e20dbb10a55775ec94e47229c7c503f65932403fe0764667126";
1612
+ };
1613
+ } | undefined;
1614
+ parameters?: Record<string, string | number | boolean | string[] | Record<string, string>> | undefined;
1615
+ audio?: {
1616
+ purpose: "VOICEOVER" | "MUSIC";
1617
+ versionId: string;
1618
+ } | undefined;
1619
+ }[];
1620
+ mix: {
1621
+ id: "PCM_WINDOW_MIX_AAC_V1";
1622
+ sampleRateHz: 48000;
1623
+ audioChannels: 2;
1624
+ audioCodec: "aac";
1625
+ bitrate: 192000;
1626
+ peakPermille: 950;
1627
+ duckingMusicPermille: number;
1628
+ };
1629
+ clips: {
1630
+ ordinal: number;
1631
+ treatment: {
1632
+ policy: "KEEP" | "MUTE" | "DUCK";
1633
+ gainPermille: number;
1634
+ duckingPermille: number;
1635
+ };
1636
+ sourceInSample: number;
1637
+ sourceOutSample: number;
1638
+ startSample: number;
1639
+ outputSampleCount: number;
1640
+ source?: {
1641
+ kind: "NATIVE_GENERATED";
1642
+ version: {
1643
+ id: string;
1644
+ tenantId: string;
1645
+ projectId: string;
1646
+ productionId: string;
1647
+ shotId: string;
1648
+ generationId: string;
1649
+ videoArtifactId: string;
1650
+ videoRepresentationId: string;
1651
+ videoChecksumSha256: string;
1652
+ artifactId: string;
1653
+ representationId: string;
1654
+ checksumSha256: string;
1655
+ byteSize: number;
1656
+ metadata: {
1657
+ normalizationVersion: "VIDEO_AUDIO_PCM_V1";
1658
+ sourceCodec: "aac";
1659
+ sourceSampleRateHz: number;
1660
+ sourceChannels: 2 | 1;
1661
+ sourceFrameRateHz: 30 | 24;
1662
+ sourceFrameCount: number;
1663
+ sourceStartOffsetMs: number;
1664
+ sourceDeclaredDurationMs: number;
1665
+ alignment: "TRIM_PAD_PCM_TO_VIDEO_ZERO_V1";
1666
+ media: {
1667
+ profile: "PCM_S16LE_48000_NATIVE_VIDEO_V1";
1668
+ audioCodec: "pcm_s16le";
1669
+ sampleRateHz: 48000;
1670
+ audioChannels: 2 | 1;
1671
+ sampleCount: number;
1672
+ durationMs: number;
1673
+ };
1674
+ checksumSha256: string;
1675
+ };
1676
+ executionClass: "LIVE" | "TEST_ONLY";
1677
+ };
1678
+ } | {
1679
+ kind: "IMPORTED_SYNC";
1680
+ version: {
1681
+ schemaVersion: 1;
1682
+ purpose: "SOURCE_SYNC";
1683
+ id: string;
1684
+ audioId: string;
1685
+ version: number;
1686
+ tenantId: string;
1687
+ projectId: string;
1688
+ productionId: string;
1689
+ shotId: string;
1690
+ normalizationId: string;
1691
+ artifactId: string;
1692
+ representationId: string;
1693
+ provenance: {
1694
+ schemaVersion: 1;
1695
+ purpose: "SOURCE_SYNC";
1696
+ tenantId: string;
1697
+ projectId: string;
1698
+ productionId: string;
1699
+ shotId: string;
1700
+ sourceId: string;
1701
+ sourceVersionId: string;
1702
+ normalizationId: string;
1703
+ originalArtifactId: string;
1704
+ originalRepresentationId: string;
1705
+ originalChecksumSha256: string;
1706
+ sourceRange: {
1707
+ clock: "SOURCE_ZERO_BASED_CFR30";
1708
+ startFrame: number;
1709
+ endFrame: number;
1710
+ };
1711
+ destinationStartSample: number;
1712
+ media: {
1713
+ profile: "PCM_S16LE_48000_V1";
1714
+ audioCodec: "pcm_s16le";
1715
+ sampleRateHz: 48000;
1716
+ audioChannels: 2 | 1;
1717
+ sampleCount: number;
1718
+ durationMs: number;
1719
+ } | {
1720
+ profile: "PCM_S16LE_48000_SOURCE_SYNC_V1";
1721
+ audioCodec: "pcm_s16le";
1722
+ sampleRateHz: 48000;
1723
+ audioChannels: 2 | 1;
1724
+ sampleCount: number;
1725
+ durationMs: number;
1726
+ };
1727
+ wavChecksumSha256: string;
1728
+ wavByteSize: number;
1729
+ };
1730
+ previousVersionId: string | null;
1731
+ executionClass: "LIVE" | "TEST_ONLY";
1732
+ createdByPrincipalId: string;
1733
+ createdAt: string;
1734
+ };
1735
+ } | undefined;
1736
+ }[];
1737
+ speechCues: {
1738
+ cueId: string;
1739
+ source: {
1740
+ tenantId: string & z.core.$brand<"TenantId">;
1741
+ productionId: string & z.core.$brand<"ProductionId">;
1742
+ id: string;
1743
+ audioId: string;
1744
+ projectId: string;
1745
+ version: number;
1746
+ artifactId: string;
1747
+ original: {
1748
+ id: string;
1749
+ checksumSha256: string;
1750
+ byteSize: number;
1751
+ };
1752
+ media: {
1753
+ profile: "PCM_S16LE_48000_V1";
1754
+ audioCodec: "pcm_s16le";
1755
+ sampleRateHz: 48000;
1756
+ audioChannels: 2 | 1;
1757
+ sampleCount: number;
1758
+ durationMs: number;
1759
+ };
1760
+ originalName: string | null;
1761
+ previousVersionId: string | null;
1762
+ createdByPrincipalId: string;
1763
+ createdAt: string;
1764
+ purpose: "VOICEOVER" | "MUSIC";
1765
+ generation?: {
1766
+ generationId: string;
1767
+ executionClass: "LIVE" | "TEST_ONLY";
1768
+ sourceArtifactId: string;
1769
+ sourceRepresentationId: string;
1770
+ sourceChecksumSha256: string;
1771
+ sourceByteSize: number;
1772
+ sourceMedia: {
1773
+ sampleRateHz: number;
1774
+ audioChannels: 2 | 1;
1775
+ sampleCount: number;
1776
+ };
1777
+ normalizationVersion: "SPEECH_PCM_V1";
1778
+ padSamples: number;
1779
+ voiceProfile?: {
1780
+ ref: {
1781
+ ownerSystem: string;
1782
+ ownerTenantRef: string;
1783
+ voiceProfileRef: string;
1784
+ version: number;
1785
+ digest: string;
1786
+ };
1787
+ bindingKey: string;
1788
+ language: string;
1789
+ usage: "AUDITION" | "PRODUCTION";
1790
+ } | undefined;
1791
+ executionTarget?: "TENANT_DEVICE" | undefined;
1792
+ } | undefined;
1793
+ };
1794
+ sourceInMs: 0;
1795
+ sourceOutMs: number;
1796
+ startMs: number;
1797
+ gainPermille: 1000;
1798
+ }[];
1799
+ } | undefined;
1800
+ };
1801
+ };
1802
+ manifestFingerprint: string;
1803
+ runtimeStatus: "FAILED" | "CANCELLED" | "RUNNING" | "SUPERSEDED" | "PENDING" | "READY" | "WAITING" | "SUCCEEDED";
1804
+ cancellationRequested: boolean;
1805
+ isCurrentTimeline: boolean;
1806
+ freshness: "STALE_BASIS" | "CURRENT_BASIS";
1807
+ staleReasons: string[];
1808
+ executionClass: "LIVE" | "TEST_ONLY";
1809
+ roughCut: {
1810
+ contentType: "video/mp4";
1811
+ checksumSha256: string;
1812
+ byteSize: number;
1813
+ width: number;
1814
+ height: number;
1815
+ videoCodec: "h264" | "hevc";
1816
+ hasAudio: boolean;
1817
+ durationMs: number;
1818
+ frameRate: 30;
1819
+ frameCount: number;
1820
+ engineVersion: string;
1821
+ artifactId: string;
1822
+ representationId: string;
1823
+ version: number;
1824
+ poster: {
1825
+ representationId: string & z.core.$brand<"ArtifactRepresentationId">;
1826
+ contentType: "image/png";
1827
+ checksumSha256: string;
1828
+ byteSize: number;
1829
+ width: number;
1830
+ height: number;
1831
+ };
1832
+ availability: "AVAILABLE" | "INVALID";
1833
+ reviewState: "PASS" | "WARNING" | "UNREVIEWED" | "FAIL";
1834
+ pixelFormat?: "yuv420p10le" | undefined;
1835
+ nativeAudio?: {
1836
+ normalizationVersion: "VIDEO_AUDIO_PCM_V1";
1837
+ sourceCodec: "aac";
1838
+ sourceSampleRateHz: number;
1839
+ sourceChannels: 2 | 1;
1840
+ sourceFrameRateHz: 30 | 24;
1841
+ sourceFrameCount: number;
1842
+ sourceStartOffsetMs: number;
1843
+ sourceDeclaredDurationMs: number;
1844
+ alignment: "TRIM_PAD_PCM_TO_VIDEO_ZERO_V1";
1845
+ media: {
1846
+ profile: "PCM_S16LE_48000_NATIVE_VIDEO_V1";
1847
+ audioCodec: "pcm_s16le";
1848
+ sampleRateHz: 48000;
1849
+ audioChannels: 2 | 1;
1850
+ sampleCount: number;
1851
+ durationMs: number;
1852
+ };
1853
+ checksumSha256: string;
1854
+ } | undefined;
1855
+ audio?: {
1856
+ audioCodec: "aac";
1857
+ sampleRateHz: 48000;
1858
+ audioChannels: 2;
1859
+ sampleCount: number;
1860
+ } | undefined;
1861
+ } | null;
1862
+ createdByPrincipalId: string & z.core.$brand<"PrincipalId">;
1863
+ createdAt: string;
1864
+ humanLinks?: {
1865
+ status: "AVAILABLE";
1866
+ items: {
1867
+ rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
1868
+ href: string;
1869
+ }[];
1870
+ } | {
1871
+ status: "UNAVAILABLE" | "UNCONFIGURED";
1872
+ items: {
1873
+ rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
1874
+ href: string;
1875
+ }[];
1876
+ } | undefined;
1877
+ }> | Promise<{
1878
+ executionClass: "LIVE" | "TEST_ONLY";
1879
+ renderId: string;
1880
+ tenantId: string & z.core.$brand<"TenantId">;
1881
+ projectId: string & z.core.$brand<"ProjectId">;
1882
+ createdByPrincipalId: string & z.core.$brand<"PrincipalId">;
1883
+ createdAt: string;
1884
+ productionId: string & z.core.$brand<"ProductionId">;
1885
+ operationId: string & z.core.$brand<"OperationId">;
1886
+ runtimeJobId: string;
1887
+ manifestFingerprint: string;
1888
+ cancellationRequested: boolean;
1889
+ freshness: "STALE_BASIS" | "CURRENT_BASIS";
1890
+ runtimeStatus: "FAILED" | "CANCELLED" | "RUNNING" | "SUPERSEDED" | "PENDING" | "READY" | "WAITING" | "SUCCEEDED";
1891
+ isCurrentTimeline: boolean;
1892
+ manifest: {
1893
+ schemaVersion: 1;
1894
+ timeline: {
1895
+ schemaVersion: 1;
1896
+ basis: {
1897
+ briefVersionId: string & z.core.$brand<"BriefVersionId">;
1898
+ briefVersion: number;
1899
+ storyVersion: number;
1900
+ planVersionId: string & z.core.$brand<"SceneShotPlanVersionId">;
1901
+ planVersion: number;
1902
+ };
1903
+ output: {
1904
+ aspectRatio: "16:9" | "9:16";
1905
+ profile: "MP4_H264_1080P" | "MP4_H264_720P" | "MP4_H264_480P";
1906
+ };
1907
+ clips: {
1908
+ ordinal: number;
1909
+ source: {
1910
+ acceptanceId: string;
1911
+ reviewId: string;
1912
+ generationId: string;
1913
+ candidateId: string;
1914
+ shotId: string & z.core.$brand<"ShotId">;
1915
+ artifactId: string & z.core.$brand<"ArtifactId">;
1916
+ representationId: string & z.core.$brand<"ArtifactRepresentationId">;
1917
+ checksumSha256: string;
1918
+ artifactChecksumSha256: string;
1919
+ preparationId: string;
1920
+ contractId: string;
1921
+ contractFingerprint: string;
1922
+ planVersionId: string & z.core.$brand<"SceneShotPlanVersionId">;
1923
+ planVersion: number;
1924
+ shotPlanningRevision: number;
1925
+ executionClass: "LIVE" | "TEST_ONLY";
1926
+ reviewResult: "PASS" | "WARNING";
1927
+ };
1928
+ technical: {
1929
+ contentType: "video/mp4";
1930
+ checksumSha256: string;
1931
+ byteSize: number;
1932
+ width: number;
1933
+ height: number;
1934
+ durationMs: number;
1935
+ frameRate: number;
1936
+ videoCodec: "h264" | "hevc";
1937
+ hasAudio: boolean;
1938
+ pixelFormat?: "yuv420p10le" | undefined;
1939
+ nativeAudio?: {
1940
+ normalizationVersion: "VIDEO_AUDIO_PCM_V1";
1941
+ sourceCodec: "aac";
1942
+ sourceSampleRateHz: number;
1943
+ sourceChannels: 2 | 1;
1944
+ sourceFrameRateHz: 30 | 24;
1945
+ sourceFrameCount: number;
1946
+ sourceStartOffsetMs: number;
1947
+ sourceDeclaredDurationMs: number;
1948
+ alignment: "TRIM_PAD_PCM_TO_VIDEO_ZERO_V1";
1949
+ media: {
1950
+ profile: "PCM_S16LE_48000_NATIVE_VIDEO_V1";
1951
+ audioCodec: "pcm_s16le";
1952
+ sampleRateHz: 48000;
1953
+ audioChannels: 2 | 1;
1954
+ sampleCount: number;
1955
+ durationMs: number;
1956
+ };
1957
+ checksumSha256: string;
1958
+ } | undefined;
1959
+ };
1960
+ sourceInMs: number;
1961
+ sourceOutMs: number;
1962
+ startMs: number;
1963
+ durationMs: number;
1964
+ transition: "CUT" | {
1965
+ kind: "CROSS_DISSOLVE_V1";
1966
+ durationFrames: number;
1967
+ };
1968
+ framing?: {
1969
+ algorithm: "CROP_PAD_V1";
1970
+ crop: {
1971
+ x: number;
1972
+ y: number;
1973
+ width: number;
1974
+ height: number;
1975
+ };
1976
+ anchorXPermille: number;
1977
+ anchorYPermille: number;
1978
+ } | undefined;
1979
+ }[];
1980
+ duration: {
1981
+ totalMs: number;
1982
+ targetMs: number;
1983
+ minMs: 30000;
1984
+ maxMs: 60000;
1985
+ deltaTargetMs: number;
1986
+ classification: "TOO_SHORT" | "WITHIN_TARGET" | "TOO_LONG";
1987
+ };
1988
+ missingPlannedShotIds: (string & z.core.$brand<"ShotId">)[];
1989
+ executionClass: "LIVE" | "TEST_ONLY";
1990
+ id: string;
1991
+ timelineId: string;
1992
+ tenantId: string & z.core.$brand<"TenantId">;
1993
+ projectId: string & z.core.$brand<"ProjectId">;
1994
+ productionId: string & z.core.$brand<"ProductionId">;
1995
+ version: number;
1996
+ fingerprint: string;
1997
+ createdByPrincipalId: string & z.core.$brand<"PrincipalId">;
1998
+ createdAt: string;
1999
+ caption?: {
2000
+ tenantId: string & z.core.$brand<"TenantId">;
2001
+ productionId: string & z.core.$brand<"ProductionId">;
2002
+ id: string;
2003
+ captionId: string;
2004
+ projectId: string;
2005
+ version: number;
2006
+ artifactId: string;
2007
+ content: {
2008
+ language: string;
2009
+ durationMs: number;
2010
+ cues: {
2011
+ startMs: number;
2012
+ endMs: number;
2013
+ text: string;
2014
+ }[];
2015
+ };
2016
+ fingerprint: string;
2017
+ original: {
2018
+ id: string;
2019
+ checksumSha256: string;
2020
+ byteSize: number;
2021
+ };
2022
+ subtitle: {
2023
+ id: string;
2024
+ checksumSha256: string;
2025
+ byteSize: number;
2026
+ };
2027
+ previousVersionId: string | null;
2028
+ createdByPrincipalId: string;
2029
+ createdAt: string;
2030
+ transcriptProvenance?: {
2031
+ schemaVersion: 1;
2032
+ advisory: true;
2033
+ timing: "PROVIDER_REPORTED";
2034
+ timelineVersionId: string;
2035
+ timingFingerprint: string;
2036
+ sources: {
2037
+ observationId: string;
2038
+ artifactId: string;
2039
+ representationId: string;
2040
+ checksumSha256: string;
2041
+ placement: {
2042
+ kind: "AUDIO_TRACK";
2043
+ purpose: "VOICEOVER" | "MUSIC";
2044
+ } | {
2045
+ kind: "SPEECH_CUE";
2046
+ cueId: string;
2047
+ } | {
2048
+ kind: "TIMELINE_OUTPUT";
2049
+ };
2050
+ granularity: "word" | "segment";
2051
+ sourceInMs: number;
2052
+ sourceOutMs: number;
2053
+ startMs: number;
2054
+ spanIndices: number[];
2055
+ excludedSpans: number;
2056
+ }[];
2057
+ } | undefined;
2058
+ } | undefined;
2059
+ captionStyle?: {
2060
+ id: "PLAIN_TEXT_NOTO_SANS_SC_V1";
2061
+ fontSha256: "a3041811a78c361b1de50f953c805e0244951c21c5bd412f7232ef0d899af0da";
2062
+ framePolicy: "PTS_HALF_OPEN_CEIL_V1";
2063
+ } | {
2064
+ id: "PLAIN_TEXT_NATIVE_SC_REGULAR_V2";
2065
+ fontSha256: "e5a51f41fc1b827da651afee3975e07a182ff4f8e04d9dfc0a3cecd6177a52b6";
2066
+ framePolicy: "PTS_HALF_OPEN_CEIL_V1";
2067
+ } | undefined;
2068
+ audio?: {
2069
+ mix: {
2070
+ id: "PCM_WINDOW_MIX_AAC_V1";
2071
+ sampleRateHz: 48000;
2072
+ audioChannels: 2;
2073
+ audioCodec: "aac";
2074
+ bitrate: 192000;
2075
+ peakPermille: 950;
2076
+ duckingMusicPermille: number;
2077
+ };
2078
+ tracks: {
2079
+ sourceInMs: number;
2080
+ sourceOutMs: number;
2081
+ startMs: number;
2082
+ gainPermille: number;
2083
+ source: {
2084
+ tenantId: string & z.core.$brand<"TenantId">;
2085
+ productionId: string & z.core.$brand<"ProductionId">;
2086
+ id: string;
2087
+ audioId: string;
2088
+ projectId: string;
2089
+ version: number;
2090
+ artifactId: string;
2091
+ original: {
2092
+ id: string;
2093
+ checksumSha256: string;
2094
+ byteSize: number;
2095
+ };
2096
+ media: {
2097
+ profile: "PCM_S16LE_48000_V1";
2098
+ audioCodec: "pcm_s16le";
2099
+ sampleRateHz: 48000;
2100
+ audioChannels: 2 | 1;
2101
+ sampleCount: number;
2102
+ durationMs: number;
2103
+ };
2104
+ originalName: string | null;
2105
+ previousVersionId: string | null;
2106
+ createdByPrincipalId: string;
2107
+ createdAt: string;
2108
+ purpose: "VOICEOVER" | "MUSIC";
2109
+ generation?: {
2110
+ generationId: string;
2111
+ executionClass: "LIVE" | "TEST_ONLY";
2112
+ sourceArtifactId: string;
2113
+ sourceRepresentationId: string;
2114
+ sourceChecksumSha256: string;
2115
+ sourceByteSize: number;
2116
+ sourceMedia: {
2117
+ sampleRateHz: number;
2118
+ audioChannels: 2 | 1;
2119
+ sampleCount: number;
2120
+ };
2121
+ normalizationVersion: "SPEECH_PCM_V1";
2122
+ padSamples: number;
2123
+ voiceProfile?: {
2124
+ ref: {
2125
+ ownerSystem: string;
2126
+ ownerTenantRef: string;
2127
+ voiceProfileRef: string;
2128
+ version: number;
2129
+ digest: string;
2130
+ };
2131
+ bindingKey: string;
2132
+ language: string;
2133
+ usage: "AUDITION" | "PRODUCTION";
2134
+ } | undefined;
2135
+ executionTarget?: "TENANT_DEVICE" | undefined;
2136
+ } | undefined;
2137
+ };
2138
+ }[];
2139
+ } | undefined;
2140
+ graphics?: {
2141
+ source: {
2142
+ tenantId: string & z.core.$brand<"TenantId">;
2143
+ projectId: string & z.core.$brand<"ProjectId">;
2144
+ productionId: (string & z.core.$brand<"ProductionId">) | null;
2145
+ artifactId: string & z.core.$brand<"ArtifactId">;
2146
+ representationId: string & z.core.$brand<"ArtifactRepresentationId">;
2147
+ checksumSha256: string;
2148
+ contentType: "image/png" | "image/webp";
2149
+ byteSize: number;
2150
+ width: number;
2151
+ height: number;
2152
+ };
2153
+ placement: {
2154
+ startFrame: number;
2155
+ endFrame: number;
2156
+ anchor: "TOP_LEFT" | "TOP_RIGHT" | "BOTTOM_LEFT" | "BOTTOM_RIGHT";
2157
+ widthPermille: number;
2158
+ marginXPermille: number;
2159
+ marginYPermille: number;
2160
+ opacityPermille: number;
2161
+ };
2162
+ }[] | undefined;
2163
+ };
2164
+ frames: {
2165
+ ordinal: number;
2166
+ startFrame: number;
2167
+ frameCount: number;
2168
+ overlapFrames: number;
2169
+ }[];
2170
+ totalFrames: number;
2171
+ selection: {
2172
+ tenantId: string & z.core.$brand<"TenantId">;
2173
+ productionId: string & z.core.$brand<"ProductionId">;
2174
+ id: string;
2175
+ projectId: string & z.core.$brand<"ProjectId">;
2176
+ version: number;
2177
+ action: "REJECT" | "REVOKE" | "SELECT";
2178
+ renderId: string;
2179
+ reviewId: string;
2180
+ basisFingerprint: string;
2181
+ timelineVersionId: string;
2182
+ timelineFingerprint: string;
2183
+ artifactId: string;
2184
+ representationId: string;
2185
+ checksumSha256: string;
2186
+ outputProfile: "MP4_H264_1080P" | "MP4_H264_720P" | "MP4_H264_480P";
2187
+ executionClass: "LIVE" | "TEST_ONLY";
2188
+ previousSelectionId: string | null;
2189
+ acknowledgeWarnings: boolean;
2190
+ warningKeys: string[];
2191
+ reason: string;
2192
+ createdByPrincipalId: string & z.core.$brand<"PrincipalId">;
2193
+ createdAt: string;
2194
+ };
2195
+ selectionVersion: number;
2196
+ profile: {
2197
+ id: "FINAL_H264_1080P_V1" | "FINAL_H264_720P_V1" | "FINAL_H264_480P_V1";
2198
+ algorithm: "ORDERED_TRIM_CUT_V1" | "ORDERED_COMPOSE_V2";
2199
+ width: 1920 | 1080 | 1280 | 720 | 854 | 480;
2200
+ height: 1920 | 1080 | 1280 | 720 | 854 | 480;
2201
+ frameRate: 30;
2202
+ codec: "h264";
2203
+ pixelFormat: "yuv420p";
2204
+ fit: "PAD";
2205
+ hasAudio: boolean;
2206
+ framePolicy: "CUMULATIVE_NEAREST_FRAME";
2207
+ encoder: "libx264";
2208
+ crf: 18;
2209
+ preset: "veryfast";
2210
+ gopFrames: 30;
2211
+ bFrames: 0;
2212
+ audioPolicy: "SILENT" | "MIXED";
2213
+ captionPolicy: "NONE" | "BURN_IN";
2214
+ sourceQualityPolicy: "NO_UPSCALE_V1";
2215
+ picturePolicy?: "CROP_PAD_V1" | undefined;
2216
+ audioMix?: {
2217
+ id: "PCM_WINDOW_MIX_AAC_V1";
2218
+ sampleRateHz: 48000;
2219
+ audioChannels: 2;
2220
+ audioCodec: "aac";
2221
+ bitrate: 192000;
2222
+ peakPermille: 950;
2223
+ duckingMusicPermille: number;
2224
+ } | undefined;
2225
+ captionStyle?: {
2226
+ id: "PLAIN_TEXT_NOTO_SANS_SC_V1";
2227
+ fontSha256: "a3041811a78c361b1de50f953c805e0244951c21c5bd412f7232ef0d899af0da";
2228
+ framePolicy: "PTS_HALF_OPEN_CEIL_V1";
2229
+ } | {
2230
+ id: "PLAIN_TEXT_NATIVE_SC_REGULAR_V2";
2231
+ fontSha256: "e5a51f41fc1b827da651afee3975e07a182ff4f8e04d9dfc0a3cecd6177a52b6";
2232
+ framePolicy: "PTS_HALF_OPEN_CEIL_V1";
2233
+ } | undefined;
2234
+ graphicsPolicy?: "OVERLAY_V1" | undefined;
2235
+ };
2236
+ } | {
2237
+ frames: {
2238
+ ordinal: number;
2239
+ startFrame: number;
2240
+ frameCount: number;
2241
+ overlapFrames: number;
2242
+ }[];
2243
+ totalFrames: number;
2244
+ schemaVersion: 2;
2245
+ timeline: {
2246
+ basis: {
2247
+ briefVersionId: string & z.core.$brand<"BriefVersionId">;
2248
+ briefVersion: number;
2249
+ storyVersion: number;
2250
+ planVersionId: string & z.core.$brand<"SceneShotPlanVersionId">;
2251
+ planVersion: number;
2252
+ };
2253
+ output: {
2254
+ aspectRatio: "16:9" | "9:16";
2255
+ profile: "MP4_H264_1080P" | "MP4_H264_720P" | "MP4_H264_480P";
2256
+ };
2257
+ duration: {
2258
+ totalMs: number;
2259
+ targetMs: number;
2260
+ minMs: 30000;
2261
+ maxMs: 60000;
2262
+ deltaTargetMs: number;
2263
+ classification: "TOO_SHORT" | "WITHIN_TARGET" | "TOO_LONG";
2264
+ };
2265
+ missingPlannedShotIds: (string & z.core.$brand<"ShotId">)[];
2266
+ executionClass: "LIVE" | "TEST_ONLY";
2267
+ schemaVersion: 2;
2268
+ clips: {
2269
+ ordinal: number;
2270
+ technical: {
2271
+ contentType: "video/mp4";
2272
+ checksumSha256: string;
2273
+ byteSize: number;
2274
+ width: number;
2275
+ height: number;
2276
+ durationMs: number;
2277
+ frameRate: number;
2278
+ videoCodec: "h264" | "hevc";
2279
+ hasAudio: boolean;
2280
+ pixelFormat?: "yuv420p10le" | undefined;
2281
+ nativeAudio?: {
2282
+ normalizationVersion: "VIDEO_AUDIO_PCM_V1";
2283
+ sourceCodec: "aac";
2284
+ sourceSampleRateHz: number;
2285
+ sourceChannels: 2 | 1;
2286
+ sourceFrameRateHz: 30 | 24;
2287
+ sourceFrameCount: number;
2288
+ sourceStartOffsetMs: number;
2289
+ sourceDeclaredDurationMs: number;
2290
+ alignment: "TRIM_PAD_PCM_TO_VIDEO_ZERO_V1";
2291
+ media: {
2292
+ profile: "PCM_S16LE_48000_NATIVE_VIDEO_V1";
2293
+ audioCodec: "pcm_s16le";
2294
+ sampleRateHz: 48000;
2295
+ audioChannels: 2 | 1;
2296
+ sampleCount: number;
2297
+ durationMs: number;
2298
+ };
2299
+ checksumSha256: string;
2300
+ } | undefined;
2301
+ };
2302
+ sourceInMs: number;
2303
+ sourceOutMs: number;
2304
+ startMs: number;
2305
+ durationMs: number;
2306
+ transition: "CUT" | {
2307
+ kind: "CROSS_DISSOLVE_V1";
2308
+ durationFrames: number;
2309
+ };
2310
+ source: {
2311
+ acceptanceId: string;
2312
+ reviewId: string;
2313
+ generationId: string;
2314
+ candidateId: string;
2315
+ shotId: string & z.core.$brand<"ShotId">;
2316
+ artifactId: string & z.core.$brand<"ArtifactId">;
2317
+ representationId: string & z.core.$brand<"ArtifactRepresentationId">;
2318
+ checksumSha256: string;
2319
+ artifactChecksumSha256: string;
2320
+ preparationId: string;
2321
+ contractId: string;
2322
+ contractFingerprint: string;
2323
+ planVersionId: string & z.core.$brand<"SceneShotPlanVersionId">;
2324
+ planVersion: number;
2325
+ shotPlanningRevision: number;
2326
+ executionClass: "LIVE" | "TEST_ONLY";
2327
+ reviewResult: "PASS" | "WARNING";
2328
+ } | {
2329
+ sourceKind: "PROGRAMMATIC";
2330
+ acceptanceId: string;
2331
+ reviewId: string;
2332
+ renderId: string;
2333
+ compositionId: string;
2334
+ compositionVersionId: string;
2335
+ compositionVersion: number;
2336
+ compositionFingerprint: string;
2337
+ renderManifestFingerprint: string;
2338
+ shotId: string & z.core.$brand<"ShotId">;
2339
+ artifactId: string & z.core.$brand<"ArtifactId">;
2340
+ representationId: string & z.core.$brand<"ArtifactRepresentationId">;
2341
+ checksumSha256: string;
2342
+ artifactChecksumSha256: string;
2343
+ planVersionId: string & z.core.$brand<"SceneShotPlanVersionId">;
2344
+ planVersion: number;
2345
+ shotPlanningRevision: number;
2346
+ executionClass: "LIVE" | "TEST_ONLY";
2347
+ reviewResult: "PASS" | "WARNING";
2348
+ } | {
2349
+ sourceKind: "IMPORTED";
2350
+ acceptanceId: string;
2351
+ reviewId: string;
2352
+ normalizationId: string;
2353
+ sourceId: string;
2354
+ sourceVersionId: string;
2355
+ shotId: string & z.core.$brand<"ShotId">;
2356
+ artifactId: string & z.core.$brand<"ArtifactId">;
2357
+ representationId: string & z.core.$brand<"ArtifactRepresentationId">;
2358
+ checksumSha256: string;
2359
+ executionClass: "LIVE" | "TEST_ONLY";
2360
+ reviewResult: "PASS" | "WARNING";
2361
+ };
2362
+ framing?: {
2363
+ algorithm: "CROP_PAD_V1";
2364
+ crop: {
2365
+ x: number;
2366
+ y: number;
2367
+ width: number;
2368
+ height: number;
2369
+ };
2370
+ anchorXPermille: number;
2371
+ anchorYPermille: number;
2372
+ } | undefined;
2373
+ }[];
2374
+ id: string;
2375
+ timelineId: string;
2376
+ tenantId: string & z.core.$brand<"TenantId">;
2377
+ projectId: string & z.core.$brand<"ProjectId">;
2378
+ productionId: string & z.core.$brand<"ProductionId">;
2379
+ version: number;
2380
+ fingerprint: string;
2381
+ createdByPrincipalId: string & z.core.$brand<"PrincipalId">;
2382
+ createdAt: string;
2383
+ caption?: {
2384
+ tenantId: string & z.core.$brand<"TenantId">;
2385
+ productionId: string & z.core.$brand<"ProductionId">;
2386
+ id: string;
2387
+ captionId: string;
2388
+ projectId: string;
2389
+ version: number;
2390
+ artifactId: string;
2391
+ content: {
2392
+ language: string;
2393
+ durationMs: number;
2394
+ cues: {
2395
+ startMs: number;
2396
+ endMs: number;
2397
+ text: string;
2398
+ }[];
2399
+ };
2400
+ fingerprint: string;
2401
+ original: {
2402
+ id: string;
2403
+ checksumSha256: string;
2404
+ byteSize: number;
2405
+ };
2406
+ subtitle: {
2407
+ id: string;
2408
+ checksumSha256: string;
2409
+ byteSize: number;
2410
+ };
2411
+ previousVersionId: string | null;
2412
+ createdByPrincipalId: string;
2413
+ createdAt: string;
2414
+ transcriptProvenance?: {
2415
+ schemaVersion: 1;
2416
+ advisory: true;
2417
+ timing: "PROVIDER_REPORTED";
2418
+ timelineVersionId: string;
2419
+ timingFingerprint: string;
2420
+ sources: {
2421
+ observationId: string;
2422
+ artifactId: string;
2423
+ representationId: string;
2424
+ checksumSha256: string;
2425
+ placement: {
2426
+ kind: "AUDIO_TRACK";
2427
+ purpose: "VOICEOVER" | "MUSIC";
2428
+ } | {
2429
+ kind: "SPEECH_CUE";
2430
+ cueId: string;
2431
+ } | {
2432
+ kind: "TIMELINE_OUTPUT";
2433
+ };
2434
+ granularity: "word" | "segment";
2435
+ sourceInMs: number;
2436
+ sourceOutMs: number;
2437
+ startMs: number;
2438
+ spanIndices: number[];
2439
+ excludedSpans: number;
2440
+ }[];
2441
+ } | undefined;
2442
+ } | undefined;
2443
+ captionStyle?: {
2444
+ id: "PLAIN_TEXT_NOTO_SANS_SC_V1";
2445
+ fontSha256: "a3041811a78c361b1de50f953c805e0244951c21c5bd412f7232ef0d899af0da";
2446
+ framePolicy: "PTS_HALF_OPEN_CEIL_V1";
2447
+ } | {
2448
+ id: "PLAIN_TEXT_NATIVE_SC_REGULAR_V2";
2449
+ fontSha256: "e5a51f41fc1b827da651afee3975e07a182ff4f8e04d9dfc0a3cecd6177a52b6";
2450
+ framePolicy: "PTS_HALF_OPEN_CEIL_V1";
2451
+ } | undefined;
2452
+ audio?: {
2453
+ mix: {
2454
+ id: "PCM_WINDOW_MIX_AAC_V1";
2455
+ sampleRateHz: 48000;
2456
+ audioChannels: 2;
2457
+ audioCodec: "aac";
2458
+ bitrate: 192000;
2459
+ peakPermille: 950;
2460
+ duckingMusicPermille: number;
2461
+ };
2462
+ tracks: {
2463
+ sourceInMs: number;
2464
+ sourceOutMs: number;
2465
+ startMs: number;
2466
+ gainPermille: number;
2467
+ source: {
2468
+ tenantId: string & z.core.$brand<"TenantId">;
2469
+ productionId: string & z.core.$brand<"ProductionId">;
2470
+ id: string;
2471
+ audioId: string;
2472
+ projectId: string;
2473
+ version: number;
2474
+ artifactId: string;
2475
+ original: {
2476
+ id: string;
2477
+ checksumSha256: string;
2478
+ byteSize: number;
2479
+ };
2480
+ media: {
2481
+ profile: "PCM_S16LE_48000_V1";
2482
+ audioCodec: "pcm_s16le";
2483
+ sampleRateHz: 48000;
2484
+ audioChannels: 2 | 1;
2485
+ sampleCount: number;
2486
+ durationMs: number;
2487
+ };
2488
+ originalName: string | null;
2489
+ previousVersionId: string | null;
2490
+ createdByPrincipalId: string;
2491
+ createdAt: string;
2492
+ purpose: "VOICEOVER" | "MUSIC";
2493
+ generation?: {
2494
+ generationId: string;
2495
+ executionClass: "LIVE" | "TEST_ONLY";
2496
+ sourceArtifactId: string;
2497
+ sourceRepresentationId: string;
2498
+ sourceChecksumSha256: string;
2499
+ sourceByteSize: number;
2500
+ sourceMedia: {
2501
+ sampleRateHz: number;
2502
+ audioChannels: 2 | 1;
2503
+ sampleCount: number;
2504
+ };
2505
+ normalizationVersion: "SPEECH_PCM_V1";
2506
+ padSamples: number;
2507
+ voiceProfile?: {
2508
+ ref: {
2509
+ ownerSystem: string;
2510
+ ownerTenantRef: string;
2511
+ voiceProfileRef: string;
2512
+ version: number;
2513
+ digest: string;
2514
+ };
2515
+ bindingKey: string;
2516
+ language: string;
2517
+ usage: "AUDITION" | "PRODUCTION";
2518
+ } | undefined;
2519
+ executionTarget?: "TENANT_DEVICE" | undefined;
2520
+ } | undefined;
2521
+ };
2522
+ }[];
2523
+ } | undefined;
2524
+ graphics?: {
2525
+ source: {
2526
+ tenantId: string & z.core.$brand<"TenantId">;
2527
+ projectId: string & z.core.$brand<"ProjectId">;
2528
+ productionId: (string & z.core.$brand<"ProductionId">) | null;
2529
+ artifactId: string & z.core.$brand<"ArtifactId">;
2530
+ representationId: string & z.core.$brand<"ArtifactRepresentationId">;
2531
+ checksumSha256: string;
2532
+ contentType: "image/png" | "image/webp";
2533
+ byteSize: number;
2534
+ width: number;
2535
+ height: number;
2536
+ };
2537
+ placement: {
2538
+ startFrame: number;
2539
+ endFrame: number;
2540
+ anchor: "TOP_LEFT" | "TOP_RIGHT" | "BOTTOM_LEFT" | "BOTTOM_RIGHT";
2541
+ widthPermille: number;
2542
+ marginXPermille: number;
2543
+ marginYPermille: number;
2544
+ opacityPermille: number;
2545
+ };
2546
+ }[] | undefined;
2547
+ sourceSound?: {
2548
+ schemaVersion: 1;
2549
+ soundPlanVersionId: string;
2550
+ soundPlanFingerprint: string;
2551
+ plannedCues: {
2552
+ id: string;
2553
+ role: "MUSIC" | "NARRATION" | "DIALOGUE" | "AMBIENCE" | "SOUND_EFFECT";
2554
+ source: "TTS" | "NATIVE_VIDEO" | "IMPORTED_AUDIO" | "EXISTING_AUDIO";
2555
+ shotIds: string[];
2556
+ startMs: number;
2557
+ endMs: number;
2558
+ lipSync: "NONE" | "REQUIRED";
2559
+ exactSpeech: boolean;
2560
+ text?: string | undefined;
2561
+ voice?: string | undefined;
2562
+ voiceProfile?: {
2563
+ ref: {
2564
+ ownerSystem: string;
2565
+ ownerTenantRef: string;
2566
+ voiceProfileRef: string;
2567
+ version: number;
2568
+ digest: string;
2569
+ };
2570
+ bindingKey: string;
2571
+ language: string;
2572
+ usage: "PRODUCTION";
2573
+ } | undefined;
2574
+ model?: {
2575
+ modelProfileId: string;
2576
+ modelProfileVersion: number;
2577
+ connectionId: string;
2578
+ } | undefined;
2579
+ nativeModel?: {
2580
+ modelProfileId: string;
2581
+ modelProfileVersion: number;
2582
+ schemaVersion: 1;
2583
+ execution: {
2584
+ schemaVersion: 1;
2585
+ profileId: "KOKORO_INT8_ZH_EN_V1";
2586
+ modelDigest: "ebd0959580940e20dbb10a55775ec94e47229c7c503f65932403fe0764667126";
2587
+ };
2588
+ } | undefined;
2589
+ parameters?: Record<string, string | number | boolean | string[] | Record<string, string>> | undefined;
2590
+ audio?: {
2591
+ purpose: "VOICEOVER" | "MUSIC";
2592
+ versionId: string;
2593
+ } | undefined;
2594
+ }[];
2595
+ mix: {
2596
+ id: "PCM_WINDOW_MIX_AAC_V1";
2597
+ sampleRateHz: 48000;
2598
+ audioChannels: 2;
2599
+ audioCodec: "aac";
2600
+ bitrate: 192000;
2601
+ peakPermille: 950;
2602
+ duckingMusicPermille: number;
2603
+ };
2604
+ clips: {
2605
+ ordinal: number;
2606
+ treatment: {
2607
+ policy: "KEEP" | "MUTE" | "DUCK";
2608
+ gainPermille: number;
2609
+ duckingPermille: number;
2610
+ };
2611
+ sourceInSample: number;
2612
+ sourceOutSample: number;
2613
+ startSample: number;
2614
+ outputSampleCount: number;
2615
+ source?: {
2616
+ kind: "NATIVE_GENERATED";
2617
+ version: {
2618
+ id: string;
2619
+ tenantId: string;
2620
+ projectId: string;
2621
+ productionId: string;
2622
+ shotId: string;
2623
+ generationId: string;
2624
+ videoArtifactId: string;
2625
+ videoRepresentationId: string;
2626
+ videoChecksumSha256: string;
2627
+ artifactId: string;
2628
+ representationId: string;
2629
+ checksumSha256: string;
2630
+ byteSize: number;
2631
+ metadata: {
2632
+ normalizationVersion: "VIDEO_AUDIO_PCM_V1";
2633
+ sourceCodec: "aac";
2634
+ sourceSampleRateHz: number;
2635
+ sourceChannels: 2 | 1;
2636
+ sourceFrameRateHz: 30 | 24;
2637
+ sourceFrameCount: number;
2638
+ sourceStartOffsetMs: number;
2639
+ sourceDeclaredDurationMs: number;
2640
+ alignment: "TRIM_PAD_PCM_TO_VIDEO_ZERO_V1";
2641
+ media: {
2642
+ profile: "PCM_S16LE_48000_NATIVE_VIDEO_V1";
2643
+ audioCodec: "pcm_s16le";
2644
+ sampleRateHz: 48000;
2645
+ audioChannels: 2 | 1;
2646
+ sampleCount: number;
2647
+ durationMs: number;
2648
+ };
2649
+ checksumSha256: string;
2650
+ };
2651
+ executionClass: "LIVE" | "TEST_ONLY";
2652
+ };
2653
+ } | {
2654
+ kind: "IMPORTED_SYNC";
2655
+ version: {
2656
+ schemaVersion: 1;
2657
+ purpose: "SOURCE_SYNC";
2658
+ id: string;
2659
+ audioId: string;
2660
+ version: number;
2661
+ tenantId: string;
2662
+ projectId: string;
2663
+ productionId: string;
2664
+ shotId: string;
2665
+ normalizationId: string;
2666
+ artifactId: string;
2667
+ representationId: string;
2668
+ provenance: {
2669
+ schemaVersion: 1;
2670
+ purpose: "SOURCE_SYNC";
2671
+ tenantId: string;
2672
+ projectId: string;
2673
+ productionId: string;
2674
+ shotId: string;
2675
+ sourceId: string;
2676
+ sourceVersionId: string;
2677
+ normalizationId: string;
2678
+ originalArtifactId: string;
2679
+ originalRepresentationId: string;
2680
+ originalChecksumSha256: string;
2681
+ sourceRange: {
2682
+ clock: "SOURCE_ZERO_BASED_CFR30";
2683
+ startFrame: number;
2684
+ endFrame: number;
2685
+ };
2686
+ destinationStartSample: number;
2687
+ media: {
2688
+ profile: "PCM_S16LE_48000_V1";
2689
+ audioCodec: "pcm_s16le";
2690
+ sampleRateHz: 48000;
2691
+ audioChannels: 2 | 1;
2692
+ sampleCount: number;
2693
+ durationMs: number;
2694
+ } | {
2695
+ profile: "PCM_S16LE_48000_SOURCE_SYNC_V1";
2696
+ audioCodec: "pcm_s16le";
2697
+ sampleRateHz: 48000;
2698
+ audioChannels: 2 | 1;
2699
+ sampleCount: number;
2700
+ durationMs: number;
2701
+ };
2702
+ wavChecksumSha256: string;
2703
+ wavByteSize: number;
2704
+ };
2705
+ previousVersionId: string | null;
2706
+ executionClass: "LIVE" | "TEST_ONLY";
2707
+ createdByPrincipalId: string;
2708
+ createdAt: string;
2709
+ };
2710
+ } | undefined;
2711
+ }[];
2712
+ speechCues: {
2713
+ cueId: string;
2714
+ source: {
2715
+ tenantId: string & z.core.$brand<"TenantId">;
2716
+ productionId: string & z.core.$brand<"ProductionId">;
2717
+ id: string;
2718
+ audioId: string;
2719
+ projectId: string;
2720
+ version: number;
2721
+ artifactId: string;
2722
+ original: {
2723
+ id: string;
2724
+ checksumSha256: string;
2725
+ byteSize: number;
2726
+ };
2727
+ media: {
2728
+ profile: "PCM_S16LE_48000_V1";
2729
+ audioCodec: "pcm_s16le";
2730
+ sampleRateHz: 48000;
2731
+ audioChannels: 2 | 1;
2732
+ sampleCount: number;
2733
+ durationMs: number;
2734
+ };
2735
+ originalName: string | null;
2736
+ previousVersionId: string | null;
2737
+ createdByPrincipalId: string;
2738
+ createdAt: string;
2739
+ purpose: "VOICEOVER" | "MUSIC";
2740
+ generation?: {
2741
+ generationId: string;
2742
+ executionClass: "LIVE" | "TEST_ONLY";
2743
+ sourceArtifactId: string;
2744
+ sourceRepresentationId: string;
2745
+ sourceChecksumSha256: string;
2746
+ sourceByteSize: number;
2747
+ sourceMedia: {
2748
+ sampleRateHz: number;
2749
+ audioChannels: 2 | 1;
2750
+ sampleCount: number;
2751
+ };
2752
+ normalizationVersion: "SPEECH_PCM_V1";
2753
+ padSamples: number;
2754
+ voiceProfile?: {
2755
+ ref: {
2756
+ ownerSystem: string;
2757
+ ownerTenantRef: string;
2758
+ voiceProfileRef: string;
2759
+ version: number;
2760
+ digest: string;
2761
+ };
2762
+ bindingKey: string;
2763
+ language: string;
2764
+ usage: "AUDITION" | "PRODUCTION";
2765
+ } | undefined;
2766
+ executionTarget?: "TENANT_DEVICE" | undefined;
2767
+ } | undefined;
2768
+ };
2769
+ sourceInMs: 0;
2770
+ sourceOutMs: number;
2771
+ startMs: number;
2772
+ gainPermille: 1000;
2773
+ }[];
2774
+ } | undefined;
2775
+ };
2776
+ selection: {
2777
+ tenantId: string & z.core.$brand<"TenantId">;
2778
+ productionId: string & z.core.$brand<"ProductionId">;
2779
+ id: string;
2780
+ projectId: string & z.core.$brand<"ProjectId">;
2781
+ version: number;
2782
+ action: "REJECT" | "REVOKE" | "SELECT";
2783
+ renderId: string;
2784
+ reviewId: string;
2785
+ basisFingerprint: string;
2786
+ timelineVersionId: string;
2787
+ timelineFingerprint: string;
2788
+ artifactId: string;
2789
+ representationId: string;
2790
+ checksumSha256: string;
2791
+ outputProfile: "MP4_H264_1080P" | "MP4_H264_720P" | "MP4_H264_480P";
2792
+ executionClass: "LIVE" | "TEST_ONLY";
2793
+ previousSelectionId: string | null;
2794
+ acknowledgeWarnings: boolean;
2795
+ warningKeys: string[];
2796
+ reason: string;
2797
+ createdByPrincipalId: string & z.core.$brand<"PrincipalId">;
2798
+ createdAt: string;
2799
+ };
2800
+ selectionVersion: number;
2801
+ profile: {
2802
+ id: "FINAL_H264_1080P_V1" | "FINAL_H264_720P_V1" | "FINAL_H264_480P_V1";
2803
+ algorithm: "ORDERED_TRIM_CUT_V1" | "ORDERED_COMPOSE_V2";
2804
+ width: 1920 | 1080 | 1280 | 720 | 854 | 480;
2805
+ height: 1920 | 1080 | 1280 | 720 | 854 | 480;
2806
+ frameRate: 30;
2807
+ codec: "h264";
2808
+ pixelFormat: "yuv420p";
2809
+ fit: "PAD";
2810
+ hasAudio: boolean;
2811
+ framePolicy: "CUMULATIVE_NEAREST_FRAME";
2812
+ encoder: "libx264";
2813
+ crf: 18;
2814
+ preset: "veryfast";
2815
+ gopFrames: 30;
2816
+ bFrames: 0;
2817
+ audioPolicy: "SILENT" | "MIXED";
2818
+ captionPolicy: "NONE" | "BURN_IN";
2819
+ sourceQualityPolicy: "NO_UPSCALE_V1";
2820
+ picturePolicy?: "CROP_PAD_V1" | undefined;
2821
+ audioMix?: {
2822
+ id: "PCM_WINDOW_MIX_AAC_V1";
2823
+ sampleRateHz: 48000;
2824
+ audioChannels: 2;
2825
+ audioCodec: "aac";
2826
+ bitrate: 192000;
2827
+ peakPermille: 950;
2828
+ duckingMusicPermille: number;
2829
+ } | undefined;
2830
+ captionStyle?: {
2831
+ id: "PLAIN_TEXT_NOTO_SANS_SC_V1";
2832
+ fontSha256: "a3041811a78c361b1de50f953c805e0244951c21c5bd412f7232ef0d899af0da";
2833
+ framePolicy: "PTS_HALF_OPEN_CEIL_V1";
2834
+ } | {
2835
+ id: "PLAIN_TEXT_NATIVE_SC_REGULAR_V2";
2836
+ fontSha256: "e5a51f41fc1b827da651afee3975e07a182ff4f8e04d9dfc0a3cecd6177a52b6";
2837
+ framePolicy: "PTS_HALF_OPEN_CEIL_V1";
2838
+ } | undefined;
2839
+ graphicsPolicy?: "OVERLAY_V1" | undefined;
2840
+ };
2841
+ } | {
2842
+ frames: {
2843
+ ordinal: number;
2844
+ startFrame: number;
2845
+ frameCount: number;
2846
+ overlapFrames: number;
2847
+ }[];
2848
+ totalFrames: number;
2849
+ schemaVersion: 3;
2850
+ timeline: {
2851
+ basis: {
2852
+ briefVersionId: string & z.core.$brand<"BriefVersionId">;
2853
+ briefVersion: number;
2854
+ storyVersion: number;
2855
+ planVersionId: string & z.core.$brand<"SceneShotPlanVersionId">;
2856
+ planVersion: number;
2857
+ };
2858
+ output: {
2859
+ aspectRatio: "16:9" | "9:16";
2860
+ profile: "MP4_H264_1080P" | "MP4_H264_720P" | "MP4_H264_480P";
2861
+ };
2862
+ duration: {
2863
+ totalMs: number;
2864
+ targetMs: number;
2865
+ minMs: 30000;
2866
+ maxMs: 60000;
2867
+ deltaTargetMs: number;
2868
+ classification: "TOO_SHORT" | "WITHIN_TARGET" | "TOO_LONG";
2869
+ };
2870
+ missingPlannedShotIds: (string & z.core.$brand<"ShotId">)[];
2871
+ executionClass: "LIVE" | "TEST_ONLY";
2872
+ clips: {
2873
+ ordinal: number;
2874
+ technical: {
2875
+ contentType: "video/mp4";
2876
+ checksumSha256: string;
2877
+ byteSize: number;
2878
+ width: number;
2879
+ height: number;
2880
+ durationMs: number;
2881
+ frameRate: number;
2882
+ videoCodec: "h264" | "hevc";
2883
+ hasAudio: boolean;
2884
+ pixelFormat?: "yuv420p10le" | undefined;
2885
+ nativeAudio?: {
2886
+ normalizationVersion: "VIDEO_AUDIO_PCM_V1";
2887
+ sourceCodec: "aac";
2888
+ sourceSampleRateHz: number;
2889
+ sourceChannels: 2 | 1;
2890
+ sourceFrameRateHz: 30 | 24;
2891
+ sourceFrameCount: number;
2892
+ sourceStartOffsetMs: number;
2893
+ sourceDeclaredDurationMs: number;
2894
+ alignment: "TRIM_PAD_PCM_TO_VIDEO_ZERO_V1";
2895
+ media: {
2896
+ profile: "PCM_S16LE_48000_NATIVE_VIDEO_V1";
2897
+ audioCodec: "pcm_s16le";
2898
+ sampleRateHz: 48000;
2899
+ audioChannels: 2 | 1;
2900
+ sampleCount: number;
2901
+ durationMs: number;
2902
+ };
2903
+ checksumSha256: string;
2904
+ } | undefined;
2905
+ };
2906
+ sourceInMs: number;
2907
+ sourceOutMs: number;
2908
+ startMs: number;
2909
+ durationMs: number;
2910
+ transition: "CUT" | {
2911
+ kind: "CROSS_DISSOLVE_V1";
2912
+ durationFrames: number;
2913
+ };
2914
+ source: {
2915
+ acceptanceId: string;
2916
+ reviewId: string;
2917
+ generationId: string;
2918
+ candidateId: string;
2919
+ shotId: string & z.core.$brand<"ShotId">;
2920
+ artifactId: string & z.core.$brand<"ArtifactId">;
2921
+ representationId: string & z.core.$brand<"ArtifactRepresentationId">;
2922
+ checksumSha256: string;
2923
+ artifactChecksumSha256: string;
2924
+ preparationId: string;
2925
+ contractId: string;
2926
+ contractFingerprint: string;
2927
+ planVersionId: string & z.core.$brand<"SceneShotPlanVersionId">;
2928
+ planVersion: number;
2929
+ shotPlanningRevision: number;
2930
+ executionClass: "LIVE" | "TEST_ONLY";
2931
+ reviewResult: "PASS" | "WARNING";
2932
+ } | {
2933
+ sourceKind: "PROGRAMMATIC";
2934
+ acceptanceId: string;
2935
+ reviewId: string;
2936
+ renderId: string;
2937
+ compositionId: string;
2938
+ compositionVersionId: string;
2939
+ compositionVersion: number;
2940
+ compositionFingerprint: string;
2941
+ renderManifestFingerprint: string;
2942
+ shotId: string & z.core.$brand<"ShotId">;
2943
+ artifactId: string & z.core.$brand<"ArtifactId">;
2944
+ representationId: string & z.core.$brand<"ArtifactRepresentationId">;
2945
+ checksumSha256: string;
2946
+ artifactChecksumSha256: string;
2947
+ planVersionId: string & z.core.$brand<"SceneShotPlanVersionId">;
2948
+ planVersion: number;
2949
+ shotPlanningRevision: number;
2950
+ executionClass: "LIVE" | "TEST_ONLY";
2951
+ reviewResult: "PASS" | "WARNING";
2952
+ } | {
2953
+ sourceKind: "IMPORTED";
2954
+ acceptanceId: string;
2955
+ reviewId: string;
2956
+ normalizationId: string;
2957
+ sourceId: string;
2958
+ sourceVersionId: string;
2959
+ shotId: string & z.core.$brand<"ShotId">;
2960
+ artifactId: string & z.core.$brand<"ArtifactId">;
2961
+ representationId: string & z.core.$brand<"ArtifactRepresentationId">;
2962
+ checksumSha256: string;
2963
+ executionClass: "LIVE" | "TEST_ONLY";
2964
+ reviewResult: "PASS" | "WARNING";
2965
+ };
2966
+ framing?: {
2967
+ algorithm: "CROP_PAD_V1";
2968
+ crop: {
2969
+ x: number;
2970
+ y: number;
2971
+ width: number;
2972
+ height: number;
2973
+ };
2974
+ anchorXPermille: number;
2975
+ anchorYPermille: number;
2976
+ } | undefined;
2977
+ }[];
2978
+ schemaVersion: 3;
2979
+ visualLayers: {
2980
+ schemaVersion: 1;
2981
+ profileId: "STRAIGHT_ALPHA_FRAME_OVERLAY_30_V1";
2982
+ tenantId: string & z.core.$brand<"TenantId">;
2983
+ projectId: string & z.core.$brand<"ProjectId">;
2984
+ productionId: string & z.core.$brand<"ProductionId">;
2985
+ totalFrames: number;
2986
+ layers: {
2987
+ id: string;
2988
+ source: {
2989
+ schemaVersion: 1;
2990
+ profileId: "RGBA_PNG_SEQUENCE_30_V1";
2991
+ tenantId: string & z.core.$brand<"TenantId">;
2992
+ projectId: string & z.core.$brand<"ProjectId">;
2993
+ productionId: (string & z.core.$brand<"ProductionId">) | null;
2994
+ artifactId: string & z.core.$brand<"ArtifactId">;
2995
+ representationId: string & z.core.$brand<"ArtifactRepresentationId">;
2996
+ checksumSha256: string;
2997
+ width: number;
2998
+ height: number;
2999
+ frameRate: 30;
3000
+ frameCount: number;
3001
+ alpha: "STRAIGHT_RGBA";
3002
+ frames: {
3003
+ ordinal: number;
3004
+ artifactId: string & z.core.$brand<"ArtifactId">;
3005
+ representationId: string & z.core.$brand<"ArtifactRepresentationId">;
3006
+ checksumSha256: string;
3007
+ byteSize: number;
3008
+ }[];
3009
+ };
3010
+ sourceInFrame: number;
3011
+ sourceOutFrame: number;
3012
+ startFrame: number;
3013
+ zIndex: number;
3014
+ opacityPermille: number;
3015
+ placement: {
3016
+ xPermille: number;
3017
+ yPermille: number;
3018
+ widthPermille: number;
3019
+ heightPermille: number;
3020
+ };
3021
+ }[];
3022
+ };
3023
+ id: string;
3024
+ timelineId: string;
3025
+ tenantId: string & z.core.$brand<"TenantId">;
3026
+ projectId: string & z.core.$brand<"ProjectId">;
3027
+ productionId: string & z.core.$brand<"ProductionId">;
3028
+ version: number;
3029
+ fingerprint: string;
3030
+ createdByPrincipalId: string & z.core.$brand<"PrincipalId">;
3031
+ createdAt: string;
3032
+ caption?: {
3033
+ tenantId: string & z.core.$brand<"TenantId">;
3034
+ productionId: string & z.core.$brand<"ProductionId">;
3035
+ id: string;
3036
+ captionId: string;
3037
+ projectId: string;
3038
+ version: number;
3039
+ artifactId: string;
3040
+ content: {
3041
+ language: string;
3042
+ durationMs: number;
3043
+ cues: {
3044
+ startMs: number;
3045
+ endMs: number;
3046
+ text: string;
3047
+ }[];
3048
+ };
3049
+ fingerprint: string;
3050
+ original: {
3051
+ id: string;
3052
+ checksumSha256: string;
3053
+ byteSize: number;
3054
+ };
3055
+ subtitle: {
3056
+ id: string;
3057
+ checksumSha256: string;
3058
+ byteSize: number;
3059
+ };
3060
+ previousVersionId: string | null;
3061
+ createdByPrincipalId: string;
3062
+ createdAt: string;
3063
+ transcriptProvenance?: {
3064
+ schemaVersion: 1;
3065
+ advisory: true;
3066
+ timing: "PROVIDER_REPORTED";
3067
+ timelineVersionId: string;
3068
+ timingFingerprint: string;
3069
+ sources: {
3070
+ observationId: string;
3071
+ artifactId: string;
3072
+ representationId: string;
3073
+ checksumSha256: string;
3074
+ placement: {
3075
+ kind: "AUDIO_TRACK";
3076
+ purpose: "VOICEOVER" | "MUSIC";
3077
+ } | {
3078
+ kind: "SPEECH_CUE";
3079
+ cueId: string;
3080
+ } | {
3081
+ kind: "TIMELINE_OUTPUT";
3082
+ };
3083
+ granularity: "word" | "segment";
3084
+ sourceInMs: number;
3085
+ sourceOutMs: number;
3086
+ startMs: number;
3087
+ spanIndices: number[];
3088
+ excludedSpans: number;
3089
+ }[];
3090
+ } | undefined;
3091
+ } | undefined;
3092
+ captionStyle?: {
3093
+ id: "PLAIN_TEXT_NOTO_SANS_SC_V1";
3094
+ fontSha256: "a3041811a78c361b1de50f953c805e0244951c21c5bd412f7232ef0d899af0da";
3095
+ framePolicy: "PTS_HALF_OPEN_CEIL_V1";
3096
+ } | {
3097
+ id: "PLAIN_TEXT_NATIVE_SC_REGULAR_V2";
3098
+ fontSha256: "e5a51f41fc1b827da651afee3975e07a182ff4f8e04d9dfc0a3cecd6177a52b6";
3099
+ framePolicy: "PTS_HALF_OPEN_CEIL_V1";
3100
+ } | undefined;
3101
+ audio?: {
3102
+ mix: {
3103
+ id: "PCM_WINDOW_MIX_AAC_V1";
3104
+ sampleRateHz: 48000;
3105
+ audioChannels: 2;
3106
+ audioCodec: "aac";
3107
+ bitrate: 192000;
3108
+ peakPermille: 950;
3109
+ duckingMusicPermille: number;
3110
+ };
3111
+ tracks: {
3112
+ sourceInMs: number;
3113
+ sourceOutMs: number;
3114
+ startMs: number;
3115
+ gainPermille: number;
3116
+ source: {
3117
+ tenantId: string & z.core.$brand<"TenantId">;
3118
+ productionId: string & z.core.$brand<"ProductionId">;
3119
+ id: string;
3120
+ audioId: string;
3121
+ projectId: string;
3122
+ version: number;
3123
+ artifactId: string;
3124
+ original: {
3125
+ id: string;
3126
+ checksumSha256: string;
3127
+ byteSize: number;
3128
+ };
3129
+ media: {
3130
+ profile: "PCM_S16LE_48000_V1";
3131
+ audioCodec: "pcm_s16le";
3132
+ sampleRateHz: 48000;
3133
+ audioChannels: 2 | 1;
3134
+ sampleCount: number;
3135
+ durationMs: number;
3136
+ };
3137
+ originalName: string | null;
3138
+ previousVersionId: string | null;
3139
+ createdByPrincipalId: string;
3140
+ createdAt: string;
3141
+ purpose: "VOICEOVER" | "MUSIC";
3142
+ generation?: {
3143
+ generationId: string;
3144
+ executionClass: "LIVE" | "TEST_ONLY";
3145
+ sourceArtifactId: string;
3146
+ sourceRepresentationId: string;
3147
+ sourceChecksumSha256: string;
3148
+ sourceByteSize: number;
3149
+ sourceMedia: {
3150
+ sampleRateHz: number;
3151
+ audioChannels: 2 | 1;
3152
+ sampleCount: number;
3153
+ };
3154
+ normalizationVersion: "SPEECH_PCM_V1";
3155
+ padSamples: number;
3156
+ voiceProfile?: {
3157
+ ref: {
3158
+ ownerSystem: string;
3159
+ ownerTenantRef: string;
3160
+ voiceProfileRef: string;
3161
+ version: number;
3162
+ digest: string;
3163
+ };
3164
+ bindingKey: string;
3165
+ language: string;
3166
+ usage: "AUDITION" | "PRODUCTION";
3167
+ } | undefined;
3168
+ executionTarget?: "TENANT_DEVICE" | undefined;
3169
+ } | undefined;
3170
+ };
3171
+ }[];
3172
+ } | undefined;
3173
+ graphics?: {
3174
+ source: {
3175
+ tenantId: string & z.core.$brand<"TenantId">;
3176
+ projectId: string & z.core.$brand<"ProjectId">;
3177
+ productionId: (string & z.core.$brand<"ProductionId">) | null;
3178
+ artifactId: string & z.core.$brand<"ArtifactId">;
3179
+ representationId: string & z.core.$brand<"ArtifactRepresentationId">;
3180
+ checksumSha256: string;
3181
+ contentType: "image/png" | "image/webp";
3182
+ byteSize: number;
3183
+ width: number;
3184
+ height: number;
3185
+ };
3186
+ placement: {
3187
+ startFrame: number;
3188
+ endFrame: number;
3189
+ anchor: "TOP_LEFT" | "TOP_RIGHT" | "BOTTOM_LEFT" | "BOTTOM_RIGHT";
3190
+ widthPermille: number;
3191
+ marginXPermille: number;
3192
+ marginYPermille: number;
3193
+ opacityPermille: number;
3194
+ };
3195
+ }[] | undefined;
3196
+ sourceSound?: {
3197
+ schemaVersion: 1;
3198
+ soundPlanVersionId: string;
3199
+ soundPlanFingerprint: string;
3200
+ plannedCues: {
3201
+ id: string;
3202
+ role: "MUSIC" | "NARRATION" | "DIALOGUE" | "AMBIENCE" | "SOUND_EFFECT";
3203
+ source: "TTS" | "NATIVE_VIDEO" | "IMPORTED_AUDIO" | "EXISTING_AUDIO";
3204
+ shotIds: string[];
3205
+ startMs: number;
3206
+ endMs: number;
3207
+ lipSync: "NONE" | "REQUIRED";
3208
+ exactSpeech: boolean;
3209
+ text?: string | undefined;
3210
+ voice?: string | undefined;
3211
+ voiceProfile?: {
3212
+ ref: {
3213
+ ownerSystem: string;
3214
+ ownerTenantRef: string;
3215
+ voiceProfileRef: string;
3216
+ version: number;
3217
+ digest: string;
3218
+ };
3219
+ bindingKey: string;
3220
+ language: string;
3221
+ usage: "PRODUCTION";
3222
+ } | undefined;
3223
+ model?: {
3224
+ modelProfileId: string;
3225
+ modelProfileVersion: number;
3226
+ connectionId: string;
3227
+ } | undefined;
3228
+ nativeModel?: {
3229
+ modelProfileId: string;
3230
+ modelProfileVersion: number;
3231
+ schemaVersion: 1;
3232
+ execution: {
3233
+ schemaVersion: 1;
3234
+ profileId: "KOKORO_INT8_ZH_EN_V1";
3235
+ modelDigest: "ebd0959580940e20dbb10a55775ec94e47229c7c503f65932403fe0764667126";
3236
+ };
3237
+ } | undefined;
3238
+ parameters?: Record<string, string | number | boolean | string[] | Record<string, string>> | undefined;
3239
+ audio?: {
3240
+ purpose: "VOICEOVER" | "MUSIC";
3241
+ versionId: string;
3242
+ } | undefined;
3243
+ }[];
3244
+ mix: {
3245
+ id: "PCM_WINDOW_MIX_AAC_V1";
3246
+ sampleRateHz: 48000;
3247
+ audioChannels: 2;
3248
+ audioCodec: "aac";
3249
+ bitrate: 192000;
3250
+ peakPermille: 950;
3251
+ duckingMusicPermille: number;
3252
+ };
3253
+ clips: {
3254
+ ordinal: number;
3255
+ treatment: {
3256
+ policy: "KEEP" | "MUTE" | "DUCK";
3257
+ gainPermille: number;
3258
+ duckingPermille: number;
3259
+ };
3260
+ sourceInSample: number;
3261
+ sourceOutSample: number;
3262
+ startSample: number;
3263
+ outputSampleCount: number;
3264
+ source?: {
3265
+ kind: "NATIVE_GENERATED";
3266
+ version: {
3267
+ id: string;
3268
+ tenantId: string;
3269
+ projectId: string;
3270
+ productionId: string;
3271
+ shotId: string;
3272
+ generationId: string;
3273
+ videoArtifactId: string;
3274
+ videoRepresentationId: string;
3275
+ videoChecksumSha256: string;
3276
+ artifactId: string;
3277
+ representationId: string;
3278
+ checksumSha256: string;
3279
+ byteSize: number;
3280
+ metadata: {
3281
+ normalizationVersion: "VIDEO_AUDIO_PCM_V1";
3282
+ sourceCodec: "aac";
3283
+ sourceSampleRateHz: number;
3284
+ sourceChannels: 2 | 1;
3285
+ sourceFrameRateHz: 30 | 24;
3286
+ sourceFrameCount: number;
3287
+ sourceStartOffsetMs: number;
3288
+ sourceDeclaredDurationMs: number;
3289
+ alignment: "TRIM_PAD_PCM_TO_VIDEO_ZERO_V1";
3290
+ media: {
3291
+ profile: "PCM_S16LE_48000_NATIVE_VIDEO_V1";
3292
+ audioCodec: "pcm_s16le";
3293
+ sampleRateHz: 48000;
3294
+ audioChannels: 2 | 1;
3295
+ sampleCount: number;
3296
+ durationMs: number;
3297
+ };
3298
+ checksumSha256: string;
3299
+ };
3300
+ executionClass: "LIVE" | "TEST_ONLY";
3301
+ };
3302
+ } | {
3303
+ kind: "IMPORTED_SYNC";
3304
+ version: {
3305
+ schemaVersion: 1;
3306
+ purpose: "SOURCE_SYNC";
3307
+ id: string;
3308
+ audioId: string;
3309
+ version: number;
3310
+ tenantId: string;
3311
+ projectId: string;
3312
+ productionId: string;
3313
+ shotId: string;
3314
+ normalizationId: string;
3315
+ artifactId: string;
3316
+ representationId: string;
3317
+ provenance: {
3318
+ schemaVersion: 1;
3319
+ purpose: "SOURCE_SYNC";
3320
+ tenantId: string;
3321
+ projectId: string;
3322
+ productionId: string;
3323
+ shotId: string;
3324
+ sourceId: string;
3325
+ sourceVersionId: string;
3326
+ normalizationId: string;
3327
+ originalArtifactId: string;
3328
+ originalRepresentationId: string;
3329
+ originalChecksumSha256: string;
3330
+ sourceRange: {
3331
+ clock: "SOURCE_ZERO_BASED_CFR30";
3332
+ startFrame: number;
3333
+ endFrame: number;
3334
+ };
3335
+ destinationStartSample: number;
3336
+ media: {
3337
+ profile: "PCM_S16LE_48000_V1";
3338
+ audioCodec: "pcm_s16le";
3339
+ sampleRateHz: 48000;
3340
+ audioChannels: 2 | 1;
3341
+ sampleCount: number;
3342
+ durationMs: number;
3343
+ } | {
3344
+ profile: "PCM_S16LE_48000_SOURCE_SYNC_V1";
3345
+ audioCodec: "pcm_s16le";
3346
+ sampleRateHz: 48000;
3347
+ audioChannels: 2 | 1;
3348
+ sampleCount: number;
3349
+ durationMs: number;
3350
+ };
3351
+ wavChecksumSha256: string;
3352
+ wavByteSize: number;
3353
+ };
3354
+ previousVersionId: string | null;
3355
+ executionClass: "LIVE" | "TEST_ONLY";
3356
+ createdByPrincipalId: string;
3357
+ createdAt: string;
3358
+ };
3359
+ } | undefined;
3360
+ }[];
3361
+ speechCues: {
3362
+ cueId: string;
3363
+ source: {
3364
+ tenantId: string & z.core.$brand<"TenantId">;
3365
+ productionId: string & z.core.$brand<"ProductionId">;
3366
+ id: string;
3367
+ audioId: string;
3368
+ projectId: string;
3369
+ version: number;
3370
+ artifactId: string;
3371
+ original: {
3372
+ id: string;
3373
+ checksumSha256: string;
3374
+ byteSize: number;
3375
+ };
3376
+ media: {
3377
+ profile: "PCM_S16LE_48000_V1";
3378
+ audioCodec: "pcm_s16le";
3379
+ sampleRateHz: 48000;
3380
+ audioChannels: 2 | 1;
3381
+ sampleCount: number;
3382
+ durationMs: number;
3383
+ };
3384
+ originalName: string | null;
3385
+ previousVersionId: string | null;
3386
+ createdByPrincipalId: string;
3387
+ createdAt: string;
3388
+ purpose: "VOICEOVER" | "MUSIC";
3389
+ generation?: {
3390
+ generationId: string;
3391
+ executionClass: "LIVE" | "TEST_ONLY";
3392
+ sourceArtifactId: string;
3393
+ sourceRepresentationId: string;
3394
+ sourceChecksumSha256: string;
3395
+ sourceByteSize: number;
3396
+ sourceMedia: {
3397
+ sampleRateHz: number;
3398
+ audioChannels: 2 | 1;
3399
+ sampleCount: number;
3400
+ };
3401
+ normalizationVersion: "SPEECH_PCM_V1";
3402
+ padSamples: number;
3403
+ voiceProfile?: {
3404
+ ref: {
3405
+ ownerSystem: string;
3406
+ ownerTenantRef: string;
3407
+ voiceProfileRef: string;
3408
+ version: number;
3409
+ digest: string;
3410
+ };
3411
+ bindingKey: string;
3412
+ language: string;
3413
+ usage: "AUDITION" | "PRODUCTION";
3414
+ } | undefined;
3415
+ executionTarget?: "TENANT_DEVICE" | undefined;
3416
+ } | undefined;
3417
+ };
3418
+ sourceInMs: 0;
3419
+ sourceOutMs: number;
3420
+ startMs: number;
3421
+ gainPermille: 1000;
3422
+ }[];
3423
+ } | undefined;
3424
+ };
3425
+ profile: {
3426
+ id: "FINAL_H264_1080P_V1" | "FINAL_H264_720P_V1" | "FINAL_H264_480P_V1";
3427
+ algorithm: "ORDERED_TRIM_CUT_V1" | "ORDERED_COMPOSE_V2";
3428
+ width: 1920 | 1080 | 1280 | 720 | 854 | 480;
3429
+ height: 1920 | 1080 | 1280 | 720 | 854 | 480;
3430
+ frameRate: 30;
3431
+ codec: "h264";
3432
+ pixelFormat: "yuv420p";
3433
+ fit: "PAD";
3434
+ hasAudio: boolean;
3435
+ framePolicy: "CUMULATIVE_NEAREST_FRAME";
3436
+ encoder: "libx264";
3437
+ crf: 18;
3438
+ preset: "veryfast";
3439
+ gopFrames: 30;
3440
+ bFrames: 0;
3441
+ audioPolicy: "SILENT" | "MIXED";
3442
+ captionPolicy: "NONE" | "BURN_IN";
3443
+ sourceQualityPolicy: "NO_UPSCALE_V1";
3444
+ visualLayerPolicy: "STRAIGHT_ALPHA_FRAME_OVERLAY_30_V1" | "STRAIGHT_ALPHA_FRAME_OVERLAY_30_V2";
3445
+ visualLayerSourceQualityPolicy: "NO_UPSCALE_V1";
3446
+ picturePolicy?: "CROP_PAD_V1" | undefined;
3447
+ audioMix?: {
3448
+ id: "PCM_WINDOW_MIX_AAC_V1";
3449
+ sampleRateHz: 48000;
3450
+ audioChannels: 2;
3451
+ audioCodec: "aac";
3452
+ bitrate: 192000;
3453
+ peakPermille: 950;
3454
+ duckingMusicPermille: number;
3455
+ } | undefined;
3456
+ captionStyle?: {
3457
+ id: "PLAIN_TEXT_NOTO_SANS_SC_V1";
3458
+ fontSha256: "a3041811a78c361b1de50f953c805e0244951c21c5bd412f7232ef0d899af0da";
3459
+ framePolicy: "PTS_HALF_OPEN_CEIL_V1";
3460
+ } | {
3461
+ id: "PLAIN_TEXT_NATIVE_SC_REGULAR_V2";
3462
+ fontSha256: "e5a51f41fc1b827da651afee3975e07a182ff4f8e04d9dfc0a3cecd6177a52b6";
3463
+ framePolicy: "PTS_HALF_OPEN_CEIL_V1";
3464
+ } | undefined;
3465
+ graphicsPolicy?: "OVERLAY_V1" | undefined;
3466
+ };
3467
+ selection: {
3468
+ tenantId: string & z.core.$brand<"TenantId">;
3469
+ productionId: string & z.core.$brand<"ProductionId">;
3470
+ id: string;
3471
+ projectId: string & z.core.$brand<"ProjectId">;
3472
+ version: number;
3473
+ action: "REJECT" | "REVOKE" | "SELECT";
3474
+ renderId: string;
3475
+ reviewId: string;
3476
+ basisFingerprint: string;
3477
+ timelineVersionId: string;
3478
+ timelineFingerprint: string;
3479
+ artifactId: string;
3480
+ representationId: string;
3481
+ checksumSha256: string;
3482
+ outputProfile: "MP4_H264_1080P" | "MP4_H264_720P" | "MP4_H264_480P";
3483
+ executionClass: "LIVE" | "TEST_ONLY";
3484
+ previousSelectionId: string | null;
3485
+ acknowledgeWarnings: boolean;
3486
+ warningKeys: string[];
3487
+ reason: string;
3488
+ createdByPrincipalId: string & z.core.$brand<"PrincipalId">;
3489
+ createdAt: string;
3490
+ };
3491
+ selectionVersion: number;
3492
+ };
3493
+ finalOutput: {
3494
+ contentType: "video/mp4";
3495
+ checksumSha256: string;
3496
+ byteSize: number;
3497
+ width: number;
3498
+ height: number;
3499
+ videoCodec: "h264" | "hevc";
3500
+ hasAudio: boolean;
3501
+ durationMs: number;
3502
+ frameRate: 30;
3503
+ frameCount: number;
3504
+ engineVersion: string;
3505
+ artifactId: string;
3506
+ representationId: string;
3507
+ version: number;
3508
+ poster: {
3509
+ representationId: string & z.core.$brand<"ArtifactRepresentationId">;
3510
+ contentType: "image/png";
3511
+ checksumSha256: string;
3512
+ byteSize: number;
3513
+ width: number;
3514
+ height: number;
3515
+ };
3516
+ availability: "AVAILABLE" | "INVALID";
3517
+ reviewState: "UNREVIEWED";
3518
+ deliveryRole: "NONE";
3519
+ pixelFormat?: "yuv420p10le" | undefined;
3520
+ nativeAudio?: {
3521
+ normalizationVersion: "VIDEO_AUDIO_PCM_V1";
3522
+ sourceCodec: "aac";
3523
+ sourceSampleRateHz: number;
3524
+ sourceChannels: 2 | 1;
3525
+ sourceFrameRateHz: 30 | 24;
3526
+ sourceFrameCount: number;
3527
+ sourceStartOffsetMs: number;
3528
+ sourceDeclaredDurationMs: number;
3529
+ alignment: "TRIM_PAD_PCM_TO_VIDEO_ZERO_V1";
3530
+ media: {
3531
+ profile: "PCM_S16LE_48000_NATIVE_VIDEO_V1";
3532
+ audioCodec: "pcm_s16le";
3533
+ sampleRateHz: 48000;
3534
+ audioChannels: 2 | 1;
3535
+ sampleCount: number;
3536
+ durationMs: number;
3537
+ };
3538
+ checksumSha256: string;
3539
+ } | undefined;
3540
+ audio?: {
3541
+ audioCodec: "aac";
3542
+ sampleRateHz: 48000;
3543
+ audioChannels: 2;
3544
+ sampleCount: number;
3545
+ } | undefined;
3546
+ } | null;
3547
+ finalDelivery: {
3548
+ id: string;
3549
+ deliveryRole: "FINAL_ARTIFACT";
3550
+ review: {
3551
+ id: string;
3552
+ target: {
3553
+ tenantId: string;
3554
+ projectId: string;
3555
+ productionId: string;
3556
+ renderId: string;
3557
+ timelineVersionId: string;
3558
+ timelineFingerprint: string;
3559
+ selectionId: string;
3560
+ selectionVersion: number;
3561
+ renderManifestFingerprint: string;
3562
+ artifactId: string;
3563
+ representationId: string;
3564
+ checksumSha256: string;
3565
+ byteSize: number;
3566
+ executionClass: "LIVE" | "TEST_ONLY";
3567
+ };
3568
+ policy: {
3569
+ schemaVersion: 1;
3570
+ requiredAudio: boolean;
3571
+ requiredCaptions: boolean;
3572
+ requiredGraphics: boolean;
3573
+ finalApproval: "HUMAN" | "AUTOMATIC";
3574
+ };
3575
+ policyFingerprint: string;
3576
+ composition: {
3577
+ hasAudio: boolean;
3578
+ hasCaptions: boolean;
3579
+ hasGraphics: boolean;
3580
+ };
3581
+ checks: {
3582
+ 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";
3583
+ status: "PASS" | "UNVERIFIED" | "NOT_APPLICABLE" | "FAIL";
3584
+ detail: string;
3585
+ }[];
3586
+ result: "PASS" | "FAIL";
3587
+ 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")[];
3588
+ createdAt: string;
3589
+ };
3590
+ manifest: {
3591
+ id: string;
3592
+ checksumSha256: string;
3593
+ target: {
3594
+ tenantId: string;
3595
+ projectId: string;
3596
+ productionId: string;
3597
+ renderId: string;
3598
+ timelineVersionId: string;
3599
+ timelineFingerprint: string;
3600
+ selectionId: string;
3601
+ selectionVersion: number;
3602
+ renderManifestFingerprint: string;
3603
+ artifactId: string;
3604
+ representationId: string;
3605
+ checksumSha256: string;
3606
+ byteSize: number;
3607
+ executionClass: "LIVE" | "TEST_ONLY";
3608
+ };
3609
+ policyFingerprint: string;
3610
+ reviewId: string;
3611
+ };
3612
+ approval: {
3613
+ id: string;
3614
+ reviewId: string;
3615
+ target: {
3616
+ tenantId: string;
3617
+ projectId: string;
3618
+ productionId: string;
3619
+ renderId: string;
3620
+ timelineVersionId: string;
3621
+ timelineFingerprint: string;
3622
+ selectionId: string;
3623
+ selectionVersion: number;
3624
+ renderManifestFingerprint: string;
3625
+ artifactId: string;
3626
+ representationId: string;
3627
+ checksumSha256: string;
3628
+ byteSize: number;
3629
+ executionClass: "LIVE" | "TEST_ONLY";
3630
+ };
3631
+ policyFingerprint: string;
3632
+ authority: "HUMAN";
3633
+ action: "REJECT" | "APPROVE";
3634
+ principalId: string;
3635
+ createdAt: string;
3636
+ } | null;
3637
+ productionRevision: number;
3638
+ completedAt: string;
3639
+ } | null;
3640
+ staleReasons: string[];
3641
+ humanLinks?: {
3642
+ status: "AVAILABLE";
3643
+ items: {
3644
+ rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
3645
+ href: string;
3646
+ }[];
3647
+ } | {
3648
+ status: "UNAVAILABLE" | "UNCONFIGURED";
3649
+ items: {
3650
+ rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
3651
+ href: string;
3652
+ }[];
3653
+ } | undefined;
3654
+ }>;
3655
+ mediaTicket(raw: z.input<typeof DeviceRenderDownloadSchema>, options?: SdkRequestOptions): Promise<{
3656
+ tenantId: string & z.core.$brand<"TenantId">;
3657
+ productionId: string & z.core.$brand<"ProductionId">;
3658
+ renderId: string;
3659
+ role: "VIDEO" | "POSTER";
3660
+ representationId: string;
3661
+ ticket: {
3662
+ endpoint: string;
3663
+ credential: string;
3664
+ method: "GET" | "PUT";
3665
+ object: {
3666
+ role: "VIDEO" | "AUDIO" | "SOURCE" | "POSTER" | "FRAME" | "SHEET" | "MANIFEST";
3667
+ byteSize: number;
3668
+ checksumSha256: string;
3669
+ tenantId: string;
3670
+ projectId: string;
3671
+ versionId: string;
3672
+ };
3673
+ };
3674
+ }>;
3675
+ download(raw: z.input<typeof DeviceRenderDownloadSchema>, options?: SdkRequestOptions, expectedProjectId?: string): Promise<{
3676
+ representationId: string;
3677
+ renderId: string;
3678
+ contentType: string;
3679
+ bytes: Uint8Array<ArrayBufferLike>;
3680
+ object: {
3681
+ tenantId: string;
3682
+ projectId: string;
3683
+ versionId: string;
3684
+ role: "VIDEO" | "AUDIO" | "SOURCE" | "POSTER" | "FRAME" | "SHEET" | "MANIFEST";
3685
+ byteSize: number;
3686
+ checksumSha256: string;
3687
+ };
3688
+ }>;
3689
+ /** 用原始请求查询原生回执,查不到时不触发新的渲染。 */
3690
+ receipt(raw: z.input<typeof PreparedDeviceRenderSchema>, options?: SdkRequestOptions): Promise<{
3691
+ semanticStatus: "ACCEPTED";
3692
+ renderId: string;
3693
+ operationId: string & z.core.$brand<"OperationId">;
3694
+ productionId: string;
3695
+ timelineVersionId: string;
3696
+ timelineFingerprint: string;
3697
+ executionClass: "LIVE" | "TEST_ONLY";
3698
+ manifestFingerprint: string;
3699
+ productionRevision: number;
3700
+ humanLinks?: {
3701
+ status: "AVAILABLE";
3702
+ items: {
3703
+ rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
3704
+ href: string;
3705
+ }[];
3706
+ } | {
3707
+ status: "UNAVAILABLE" | "UNCONFIGURED";
3708
+ items: {
3709
+ rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
3710
+ href: string;
3711
+ }[];
3712
+ } | undefined;
3713
+ deviceExecution?: {
3714
+ mode: "tenant-device-only";
3715
+ deviceId: string;
3716
+ runtimeJobId: string;
3717
+ validationMode?: "TENANT_TRUSTED_VALIDATOR" | undefined;
3718
+ } | undefined;
3719
+ }>;
3720
+ start(raw: z.input<typeof PreparedDeviceRenderSchema>, options?: SdkRequestOptions): Promise<{
3721
+ semanticStatus: "ACCEPTED";
3722
+ renderId: string;
3723
+ operationId: string & z.core.$brand<"OperationId">;
3724
+ productionId: string;
3725
+ timelineVersionId: string;
3726
+ timelineFingerprint: string;
3727
+ executionClass: "LIVE" | "TEST_ONLY";
3728
+ manifestFingerprint: string;
3729
+ productionRevision: number;
3730
+ humanLinks?: {
3731
+ status: "AVAILABLE";
3732
+ items: {
3733
+ rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
3734
+ href: string;
3735
+ }[];
3736
+ } | {
3737
+ status: "UNAVAILABLE" | "UNCONFIGURED";
3738
+ items: {
3739
+ rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
3740
+ href: string;
3741
+ }[];
3742
+ } | undefined;
3743
+ deviceExecution?: {
3744
+ mode: "tenant-device-only";
3745
+ deviceId: string;
3746
+ runtimeJobId: string;
3747
+ validationMode?: "TENANT_TRUSTED_VALIDATOR" | undefined;
3748
+ } | undefined;
3749
+ }>;
3750
+ }
3751
+ export {};