@nativestudio/sdk 0.3.0-rc.6 → 0.3.0-rc.7

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