@nativestudio/cli 0.3.0-rc.1 → 0.3.0-rc.11

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 (185) hide show
  1. package/COMPATIBILITY.json +33 -8
  2. package/LICENSE +201 -21
  3. package/components/runtime.json +29 -4
  4. package/components/runtime.tgz +0 -0
  5. package/dist/_chunks/chunk-37PAJCKA.js +1 -0
  6. package/dist/_chunks/{chunk-G42IS5JF.js → chunk-3AVC742O.js} +1 -1
  7. package/dist/_chunks/chunk-4U4Y2K73.js +1 -0
  8. package/dist/_chunks/chunk-65FQPXKC.js +1 -0
  9. package/dist/_chunks/chunk-6DVZBKNV.js +1 -0
  10. package/dist/_chunks/{chunk-25EDDZQA.js → chunk-6LU6GJKW.js} +1 -1
  11. package/dist/_chunks/chunk-6N433ZWR.js +1 -0
  12. package/dist/_chunks/chunk-EGUJ2YRX.js +1 -0
  13. package/dist/_chunks/{chunk-MSOMVWKN.js → chunk-FU3524Z6.js} +1 -1
  14. package/dist/_chunks/chunk-GZBWA4YN.js +1 -0
  15. package/dist/_chunks/chunk-HR34UMPP.js +1 -0
  16. package/dist/_chunks/chunk-HTUTYIRU.js +1 -0
  17. package/dist/_chunks/chunk-KB2GVAN7.js +1 -0
  18. package/dist/_chunks/chunk-L543FEDK.js +1 -0
  19. package/dist/_chunks/chunk-LISB5W7B.js +1 -0
  20. package/dist/_chunks/chunk-LUAH3KAS.js +1 -0
  21. package/dist/_chunks/chunk-M2KVQQ4X.js +1 -0
  22. package/dist/_chunks/chunk-ODGPV7MM.js +1 -0
  23. package/dist/_chunks/chunk-PUBMDP4E.js +1 -0
  24. package/dist/_chunks/chunk-Q57YFNK5.js +1 -0
  25. package/dist/_chunks/chunk-QAJH4RJQ.js +1 -0
  26. package/dist/_chunks/chunk-WFRRNWO5.js +1 -0
  27. package/dist/_chunks/connect-5YMO6MAR.js +1 -0
  28. package/dist/_chunks/device-management-2OTGEBJQ.js +1 -0
  29. package/dist/_chunks/device-preflight-XPHFZGLO.js +1 -0
  30. package/dist/_chunks/devices-inventory-VWNTU5TE.js +1 -0
  31. package/dist/_chunks/devices-main-VQ4APRVS.js +1 -0
  32. package/dist/_chunks/{files-TBJVDQWU.js → files-TTIQ7LYJ.js} +1 -1
  33. package/dist/_chunks/host-main-H7DPLV7B.js +1 -0
  34. package/dist/_chunks/http-profile-MNJX6OXO.js +1 -0
  35. package/dist/_chunks/library-main-SAC3V2ML.js +1 -0
  36. package/dist/_chunks/local-main-D6B3APK6.js +1 -0
  37. package/dist/_chunks/local-mcp-ONCANLPH.js +1 -0
  38. package/dist/_chunks/main-PW6HB3NC.js +2 -0
  39. package/dist/_chunks/mcp-ZIGBYFUW.js +1 -0
  40. package/dist/_chunks/oauth-HC6TI7HB.js +1 -0
  41. package/dist/_chunks/render-main-GYWKP72O.js +1 -0
  42. package/dist/_chunks/source-import-BC5GNCUZ.js +1 -0
  43. package/dist/_chunks/src-R6DNU336.js +1 -0
  44. package/dist/_chunks/{stdio-main-JEADWO7U.js → stdio-main-RIJS5REB.js} +1 -1
  45. package/dist/_chunks/workspace-main-GNSKHKBG.js +1 -0
  46. package/dist/_types/cli/local/desktop-contract.d.ts +1969 -1
  47. package/dist/_types/cli/local/desktop-device-contract.d.ts +779 -0
  48. package/dist/_types/cli/local/desktop-device-navigation.d.ts +3 -0
  49. package/dist/_types/cli/local/desktop-device-owner.d.ts +244 -0
  50. package/dist/_types/cli/local/desktop-device-state.d.ts +397 -0
  51. package/dist/_types/cli/local/desktop-library.d.ts +853 -0
  52. package/dist/_types/cli/local/desktop-owner.d.ts +735 -1
  53. package/dist/_types/cli/local/ledger.d.ts +64 -10
  54. package/dist/_types/cli/local/manager.d.ts +1146 -43
  55. package/dist/_types/cli/local/mcp-tools.d.ts +287 -46
  56. package/dist/_types/cli/local/releases.d.ts +28 -5
  57. package/dist/_types/cli/local-management.d.ts +5 -0
  58. package/dist/_types/cli/local-navigation.d.ts +1 -0
  59. package/dist/_types/contracts/artifact-discovery.d.ts +76 -4
  60. package/dist/_types/contracts/audio.d.ts +4 -0
  61. package/dist/_types/contracts/composition-authoring.d.ts +8 -8
  62. package/dist/_types/contracts/composition-frame-render.d.ts +4 -4
  63. package/dist/_types/contracts/composition-render-base.d.ts +5 -4
  64. package/dist/_types/contracts/composition-render.d.ts +8 -8
  65. package/dist/_types/contracts/composition-repair.d.ts +10 -10
  66. package/dist/_types/contracts/composition-source-review.d.ts +12 -12
  67. package/dist/_types/contracts/delivery-manifest.d.ts +25 -11729
  68. package/dist/_types/contracts/delivery-operations.d.ts +51 -3909
  69. package/dist/_types/contracts/delivery-summary.d.ts +2 -2
  70. package/dist/_types/contracts/delivery-validation.d.ts +23 -0
  71. package/dist/_types/contracts/device-render.d.ts +77 -0
  72. package/dist/_types/contracts/editor-intelligence.d.ts +114 -2491
  73. package/dist/_types/contracts/exploration-recommendation.d.ts +263 -11607
  74. package/dist/_types/contracts/external-agent-access.d.ts +4 -6
  75. package/dist/_types/contracts/final-ready.d.ts +22 -22
  76. package/dist/_types/contracts/final-render.d.ts +1569 -6940
  77. package/dist/_types/contracts/human-identity.d.ts +13 -0
  78. package/dist/_types/contracts/index.d.ts +4 -0
  79. package/dist/_types/contracts/interface/media-output.d.ts +28 -0
  80. package/dist/_types/contracts/interface/production-snapshot.d.ts +15 -193
  81. package/dist/_types/contracts/keyframe-generation.d.ts +29 -0
  82. package/dist/_types/contracts/local-execution/agent-context.d.ts +365 -0
  83. package/dist/_types/contracts/local-execution/agent-evidence.d.ts +79 -0
  84. package/dist/_types/contracts/local-execution/agent-grant.d.ts +31 -0
  85. package/dist/_types/contracts/local-execution/agent-review.d.ts +496 -64
  86. package/dist/_types/contracts/local-execution/common.d.ts +12 -11
  87. package/dist/_types/contracts/local-execution/completion.d.ts +41 -45
  88. package/dist/_types/contracts/local-execution/components.d.ts +45 -0
  89. package/dist/_types/contracts/local-execution/descriptor.d.ts +38 -0
  90. package/dist/_types/contracts/local-execution/device-authority.d.ts +31 -0
  91. package/dist/_types/contracts/local-execution/device-inventory.d.ts +76 -0
  92. package/dist/_types/contracts/local-execution/device-workspace.d.ts +11 -0
  93. package/dist/_types/contracts/local-execution/device.d.ts +19 -51
  94. package/dist/_types/contracts/local-execution/external-generation.d.ts +199 -0
  95. package/dist/_types/contracts/local-execution/index.d.ts +26 -0
  96. package/dist/_types/contracts/local-execution/ipc.d.ts +2756 -228
  97. package/dist/_types/contracts/local-execution/library-command.d.ts +620 -0
  98. package/dist/_types/contracts/local-execution/library-result.d.ts +408 -0
  99. package/dist/_types/contracts/local-execution/library.d.ts +873 -0
  100. package/dist/_types/contracts/local-execution/lifecycle.d.ts +242 -42
  101. package/dist/_types/contracts/local-execution/local-navigation.d.ts +275 -56
  102. package/dist/_types/contracts/local-execution/management.d.ts +400 -0
  103. package/dist/_types/contracts/local-execution/media-recipe.d.ts +207 -0
  104. package/dist/_types/contracts/local-execution/media-validation-request.d.ts +232 -0
  105. package/dist/_types/contracts/local-execution/media-validation.d.ts +262 -0
  106. package/dist/_types/contracts/local-execution/object-transfer.d.ts +155 -0
  107. package/dist/_types/contracts/local-execution/offline.d.ts +59 -0
  108. package/dist/_types/contracts/local-execution/preview.d.ts +144 -3564
  109. package/dist/_types/contracts/local-execution/processor-capability.d.ts +39 -0
  110. package/dist/_types/contracts/local-execution/processor-direct.d.ts +290 -0
  111. package/dist/_types/contracts/local-execution/processor-recipes.d.ts +1122 -0
  112. package/dist/_types/contracts/local-execution/processor.d.ts +6173 -0
  113. package/dist/_types/contracts/local-execution/project-source-direct.d.ts +201 -0
  114. package/dist/_types/contracts/local-execution/qwen-tts.d.ts +31 -0
  115. package/dist/_types/contracts/local-execution/recognition.d.ts +170 -0
  116. package/dist/_types/contracts/local-execution/speech.d.ts +95 -0
  117. package/dist/_types/contracts/local-execution/tool-selection.d.ts +45 -5
  118. package/dist/_types/contracts/local-execution/whisper.d.ts +24 -0
  119. package/dist/_types/contracts/local-execution/work.d.ts +111 -3403
  120. package/dist/_types/contracts/local-execution/workspace.d.ts +141 -0
  121. package/dist/_types/contracts/media-category.d.ts +11 -0
  122. package/dist/_types/contracts/media-observation.d.ts +929 -8
  123. package/dist/_types/contracts/navigation.d.ts +25 -15
  124. package/dist/_types/contracts/observation-profile.d.ts +3 -3
  125. package/dist/_types/contracts/programmatic-composition.d.ts +24 -24
  126. package/dist/_types/contracts/programmatic-exploration.d.ts +348 -5985
  127. package/dist/_types/contracts/provider-catalog.d.ts +3 -3
  128. package/dist/_types/contracts/provider-models.d.ts +16 -8
  129. package/dist/_types/contracts/provider.d.ts +66 -1
  130. package/dist/_types/contracts/reference-preview.d.ts +19 -0
  131. package/dist/_types/contracts/repair-lifecycle.d.ts +52 -384
  132. package/dist/_types/contracts/repair-plan.d.ts +16 -98
  133. package/dist/_types/contracts/repair-strategy.d.ts +162 -4481
  134. package/dist/_types/contracts/review-intelligence-final-output.d.ts +317 -8139
  135. package/dist/_types/contracts/review-intelligence.d.ts +450 -11420
  136. package/dist/_types/contracts/rough-cut-manifest.d.ts +8 -3
  137. package/dist/_types/contracts/rough-cut-profile.d.ts +12 -3
  138. package/dist/_types/contracts/rough-cut-review.d.ts +134 -12494
  139. package/dist/_types/contracts/rough-cut.d.ts +1073 -5675
  140. package/dist/_types/contracts/sound-making-plan.d.ts +3 -2
  141. package/dist/_types/contracts/speech-cost.d.ts +81 -0
  142. package/dist/_types/contracts/speech.d.ts +149 -0
  143. package/dist/_types/contracts/temporal-evidence-operation.d.ts +1 -0
  144. package/dist/_types/contracts/timeline-audio.d.ts +1 -0
  145. package/dist/_types/contracts/timeline-manifest.d.ts +2 -0
  146. package/dist/_types/contracts/timeline-source-sound.d.ts +1 -0
  147. package/dist/_types/contracts/timeline-v2.d.ts +4 -0
  148. package/dist/_types/contracts/timeline-version-reader.d.ts +10 -0
  149. package/dist/_types/contracts/timeline-visual-layers.d.ts +4 -0
  150. package/dist/_types/contracts/timeline.d.ts +50 -4850
  151. package/dist/_types/contracts/transcription.d.ts +1 -1
  152. package/dist/_types/contracts/video-generation.d.ts +33 -0
  153. package/dist/_types/contracts/visual-layer-render.d.ts +58 -15
  154. package/dist/_types/contracts/visual-sequence.d.ts +22 -0
  155. package/dist/_types/contracts/workspace.d.ts +32 -0
  156. package/dist/_types/sdk/errors.d.ts +8 -3
  157. package/dist/_types/sdk/local-runtime/components.d.ts +2 -0
  158. package/dist/_types/sdk/local-runtime/device-client.d.ts +127 -17
  159. package/dist/_types/sdk/local-runtime/library.d.ts +268 -0
  160. package/dist/_types/sdk/local-runtime/workspace.d.ts +186 -0
  161. package/dist/_types/sdk/local-runtime-client.d.ts +1773 -89
  162. package/dist/entry.js +1 -1
  163. package/dist/local-management.js +1 -1
  164. package/dist/local-navigation.js +1 -1
  165. package/dist/native/JobNative.cs +10 -0
  166. package/dist/native/JobRunner.cs +24 -3
  167. package/dist/native/NativeMain.cs +15 -0
  168. package/package.json +2 -8
  169. package/README.md +0 -78
  170. package/dist/_chunks/chunk-6NVIN2NI.js +0 -1
  171. package/dist/_chunks/chunk-E57YVMQ4.js +0 -1
  172. package/dist/_chunks/chunk-EAZKDCLD.js +0 -1
  173. package/dist/_chunks/chunk-GIEYSDCG.js +0 -1
  174. package/dist/_chunks/chunk-GJ7BZJLW.js +0 -1
  175. package/dist/_chunks/chunk-HLKERZIE.js +0 -1
  176. package/dist/_chunks/chunk-QC7RLTGU.js +0 -1
  177. package/dist/_chunks/chunk-RUMDDTON.js +0 -1
  178. package/dist/_chunks/chunk-U2UKGYGF.js +0 -1
  179. package/dist/_chunks/local-main-SOERK22D.js +0 -1
  180. package/dist/_chunks/local-mcp-JLPXXIDW.js +0 -1
  181. package/dist/_chunks/main-4SNF5EKE.js +0 -2
  182. package/dist/_chunks/mcp-EIMXNRH3.js +0 -1
  183. package/dist/_chunks/oauth-257CEUQH.js +0 -1
  184. package/dist/_chunks/project-connect-6MH2QG6G.js +0 -1
  185. package/dist/_chunks/src-7F6ZEU3U.js +0 -1
@@ -0,0 +1,400 @@
1
+ import { z } from "zod";
2
+ /** 持久保存精确成员指令;回执查询不重发写入,也不接受项目设备授予。 */
3
+ export declare const LocalManagementCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4
+ kind: z.ZodLiteral<"ENROLL">;
5
+ input: z.ZodObject<{
6
+ tenantId: z.ZodUUID;
7
+ requestId: z.ZodUUID;
8
+ label: z.ZodString;
9
+ platform: z.ZodObject<{
10
+ os: z.ZodEnum<{
11
+ darwin: "darwin";
12
+ linux: "linux";
13
+ win32: "win32";
14
+ }>;
15
+ architecture: z.ZodEnum<{
16
+ x64: "x64";
17
+ arm64: "arm64";
18
+ }>;
19
+ }, z.core.$strict>;
20
+ runtimeVersion: z.ZodString;
21
+ publicKey: z.ZodObject<{
22
+ kty: z.ZodLiteral<"EC">;
23
+ crv: z.ZodLiteral<"P-256">;
24
+ x: z.ZodString;
25
+ y: z.ZodString;
26
+ }, z.core.$strict>;
27
+ }, z.core.$strict>;
28
+ }, z.core.$strict>, z.ZodObject<{
29
+ kind: z.ZodLiteral<"REVOKE_DEVICE">;
30
+ input: z.ZodObject<{
31
+ tenantId: z.ZodUUID;
32
+ deviceId: z.ZodUUID;
33
+ requestId: z.ZodUUID;
34
+ expectedRevision: z.ZodInt;
35
+ }, z.core.$strict>;
36
+ }, z.core.$strict>, z.ZodObject<{
37
+ kind: z.ZodLiteral<"PREVIEW">;
38
+ input: z.ZodObject<{
39
+ tenantId: typeof import("../ids.js").TenantIdSchema;
40
+ idempotencyKey: z.ZodString;
41
+ productionId: typeof import("../ids.js").ProductionIdSchema;
42
+ expectedProductionRevision: z.ZodInt;
43
+ timelineVersionId: z.ZodUUID;
44
+ profileId: typeof import("../rough-cut-profile.js").RoughCutProfileIdSchema;
45
+ timelineFingerprint: z.ZodString;
46
+ placement: z.ZodDiscriminatedUnion<[z.ZodObject<{
47
+ mode: z.ZodLiteral<"local-only">;
48
+ deviceId: z.ZodUUID;
49
+ }, z.core.$strict>, z.ZodObject<{
50
+ mode: z.ZodLiteral<"local-preferred">;
51
+ deviceId: z.ZodUUID;
52
+ }, z.core.$strict>, z.ZodObject<{
53
+ mode: z.ZodLiteral<"cloud-only">;
54
+ }, z.core.$strict>], "mode">;
55
+ localProfile: z.ZodOptional<z.ZodLiteral<"STUDIO_MEDIA_V2">>;
56
+ }, z.core.$strict>;
57
+ }, z.core.$strict>, z.ZodObject<{
58
+ kind: z.ZodLiteral<"FINAL_RENDER">;
59
+ input: z.ZodObject<{
60
+ tenantId: typeof import("../ids.js").TenantIdSchema;
61
+ idempotencyKey: z.ZodString;
62
+ productionId: typeof import("../ids.js").ProductionIdSchema;
63
+ expectedProductionRevision: z.ZodInt;
64
+ timelineVersionId: z.ZodUUID;
65
+ profileId: typeof import("../final-render-profile.js").FinalRenderProfileIdSchema;
66
+ timelineFingerprint: z.ZodString;
67
+ selectionId: z.ZodUUID;
68
+ audioPolicy: z.ZodEnum<{
69
+ SILENT: "SILENT";
70
+ MIXED: "MIXED";
71
+ }>;
72
+ captionPolicy: z.ZodEnum<{
73
+ NONE: "NONE";
74
+ BURN_IN: "BURN_IN";
75
+ }>;
76
+ expectedFinalReadyVersion: z.ZodInt;
77
+ placement: z.ZodDiscriminatedUnion<[z.ZodObject<{
78
+ mode: z.ZodLiteral<"local-only">;
79
+ deviceId: z.ZodUUID;
80
+ }, z.core.$strict>, z.ZodObject<{
81
+ mode: z.ZodLiteral<"local-preferred">;
82
+ deviceId: z.ZodUUID;
83
+ }, z.core.$strict>, z.ZodObject<{
84
+ mode: z.ZodLiteral<"cloud-only">;
85
+ }, z.core.$strict>], "mode">;
86
+ }, z.core.$strict>;
87
+ }, z.core.$strict>], "kind">;
88
+ export declare const LocalManagementResultSchema: z.ZodUnion<readonly [z.ZodObject<{
89
+ tenantId: z.ZodUUID;
90
+ publicKey: z.ZodObject<{
91
+ kty: z.ZodLiteral<"EC">;
92
+ crv: z.ZodLiteral<"P-256">;
93
+ x: z.ZodString;
94
+ y: z.ZodString;
95
+ }, z.core.$strict>;
96
+ label: z.ZodString;
97
+ platform: z.ZodObject<{
98
+ os: z.ZodEnum<{
99
+ darwin: "darwin";
100
+ linux: "linux";
101
+ win32: "win32";
102
+ }>;
103
+ architecture: z.ZodEnum<{
104
+ x64: "x64";
105
+ arm64: "arm64";
106
+ }>;
107
+ }, z.core.$strict>;
108
+ runtimeVersion: z.ZodString;
109
+ deviceId: z.ZodUUID;
110
+ revision: z.ZodInt;
111
+ enrolledByPrincipalId: z.ZodUUID;
112
+ createdAt: z.ZodISODateTime;
113
+ verifiedAt: z.ZodNullable<z.ZodISODateTime>;
114
+ revokedAt: z.ZodNullable<z.ZodISODateTime>;
115
+ }, z.core.$strict>, z.ZodObject<{
116
+ deviceExecution: z.ZodOptional<typeof import("../device-render.js").DeviceRenderReceiptSchema>;
117
+ semanticStatus: z.ZodLiteral<"ACCEPTED">;
118
+ renderId: z.ZodUUID;
119
+ operationId: typeof import("../ids.js").OperationIdSchema;
120
+ productionId: z.ZodUUID;
121
+ timelineVersionId: z.ZodUUID;
122
+ timelineFingerprint: z.ZodString;
123
+ executionClass: z.ZodEnum<{
124
+ LIVE: "LIVE";
125
+ TEST_ONLY: "TEST_ONLY";
126
+ }>;
127
+ manifestFingerprint: z.ZodString;
128
+ productionRevision: z.ZodInt;
129
+ placement: typeof import("./preview.js").LocalPreviewPlacementViewSchema;
130
+ }, z.core.$strict>, z.ZodObject<{
131
+ deviceExecution: z.ZodOptional<typeof import("../device-render.js").DeviceRenderReceiptSchema>;
132
+ semanticStatus: z.ZodLiteral<"ACCEPTED">;
133
+ renderId: z.ZodUUID;
134
+ operationId: typeof import("../ids.js").OperationIdSchema;
135
+ productionId: z.ZodUUID;
136
+ timelineVersionId: z.ZodUUID;
137
+ timelineFingerprint: z.ZodString;
138
+ executionClass: z.ZodEnum<{
139
+ LIVE: "LIVE";
140
+ TEST_ONLY: "TEST_ONLY";
141
+ }>;
142
+ manifestFingerprint: z.ZodString;
143
+ productionRevision: z.ZodInt;
144
+ selectionId: z.ZodUUID;
145
+ selectionVersion: z.ZodInt;
146
+ profileId: typeof import("../final-render-profile.js").FinalRenderProfileIdSchema;
147
+ placement: typeof import("./preview.js").LocalPreviewPlacementViewSchema;
148
+ }, z.core.$strict>, z.ZodObject<{
149
+ semanticStatus: z.ZodLiteral<"SUCCESS">;
150
+ }, z.core.$strict>]>;
151
+ export declare const LocalManagementReceiptSchema: z.ZodObject<{
152
+ fingerprint: z.ZodString;
153
+ result: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
154
+ tenantId: z.ZodUUID;
155
+ publicKey: z.ZodObject<{
156
+ kty: z.ZodLiteral<"EC">;
157
+ crv: z.ZodLiteral<"P-256">;
158
+ x: z.ZodString;
159
+ y: z.ZodString;
160
+ }, z.core.$strict>;
161
+ label: z.ZodString;
162
+ platform: z.ZodObject<{
163
+ os: z.ZodEnum<{
164
+ darwin: "darwin";
165
+ linux: "linux";
166
+ win32: "win32";
167
+ }>;
168
+ architecture: z.ZodEnum<{
169
+ x64: "x64";
170
+ arm64: "arm64";
171
+ }>;
172
+ }, z.core.$strict>;
173
+ runtimeVersion: z.ZodString;
174
+ deviceId: z.ZodUUID;
175
+ revision: z.ZodInt;
176
+ enrolledByPrincipalId: z.ZodUUID;
177
+ createdAt: z.ZodISODateTime;
178
+ verifiedAt: z.ZodNullable<z.ZodISODateTime>;
179
+ revokedAt: z.ZodNullable<z.ZodISODateTime>;
180
+ }, z.core.$strict>, z.ZodObject<{
181
+ deviceExecution: z.ZodOptional<typeof import("../device-render.js").DeviceRenderReceiptSchema>;
182
+ semanticStatus: z.ZodLiteral<"ACCEPTED">;
183
+ renderId: z.ZodUUID;
184
+ operationId: typeof import("../ids.js").OperationIdSchema;
185
+ productionId: z.ZodUUID;
186
+ timelineVersionId: z.ZodUUID;
187
+ timelineFingerprint: z.ZodString;
188
+ executionClass: z.ZodEnum<{
189
+ LIVE: "LIVE";
190
+ TEST_ONLY: "TEST_ONLY";
191
+ }>;
192
+ manifestFingerprint: z.ZodString;
193
+ productionRevision: z.ZodInt;
194
+ placement: typeof import("./preview.js").LocalPreviewPlacementViewSchema;
195
+ }, z.core.$strict>, z.ZodObject<{
196
+ deviceExecution: z.ZodOptional<typeof import("../device-render.js").DeviceRenderReceiptSchema>;
197
+ semanticStatus: z.ZodLiteral<"ACCEPTED">;
198
+ renderId: z.ZodUUID;
199
+ operationId: typeof import("../ids.js").OperationIdSchema;
200
+ productionId: z.ZodUUID;
201
+ timelineVersionId: z.ZodUUID;
202
+ timelineFingerprint: z.ZodString;
203
+ executionClass: z.ZodEnum<{
204
+ LIVE: "LIVE";
205
+ TEST_ONLY: "TEST_ONLY";
206
+ }>;
207
+ manifestFingerprint: z.ZodString;
208
+ productionRevision: z.ZodInt;
209
+ selectionId: z.ZodUUID;
210
+ selectionVersion: z.ZodInt;
211
+ profileId: typeof import("../final-render-profile.js").FinalRenderProfileIdSchema;
212
+ placement: typeof import("./preview.js").LocalPreviewPlacementViewSchema;
213
+ }, z.core.$strict>, z.ZodObject<{
214
+ semanticStatus: z.ZodLiteral<"SUCCESS">;
215
+ }, z.core.$strict>]>>;
216
+ }, z.core.$strict>;
217
+ export type LocalManagementCommand = z.infer<typeof LocalManagementCommandSchema>;
218
+ export type LocalManagementReceipt = z.infer<typeof LocalManagementReceiptSchema>;
219
+ export declare const localManagementRoutes: {
220
+ readonly ENROLL: "devices/enroll";
221
+ readonly REVOKE_DEVICE: "devices/revoke";
222
+ readonly PREVIEW: "previews";
223
+ readonly FINAL_RENDER: "final-renders";
224
+ };
225
+ /** 设备管理与桌面恢复共用唯一命令合同。 */
226
+ export declare const LocalDeviceManagementCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
227
+ kind: z.ZodLiteral<"ENROLL">;
228
+ input: z.ZodObject<{
229
+ tenantId: z.ZodUUID;
230
+ requestId: z.ZodUUID;
231
+ label: z.ZodString;
232
+ platform: z.ZodObject<{
233
+ os: z.ZodEnum<{
234
+ darwin: "darwin";
235
+ linux: "linux";
236
+ win32: "win32";
237
+ }>;
238
+ architecture: z.ZodEnum<{
239
+ x64: "x64";
240
+ arm64: "arm64";
241
+ }>;
242
+ }, z.core.$strict>;
243
+ runtimeVersion: z.ZodString;
244
+ publicKey: z.ZodObject<{
245
+ kty: z.ZodLiteral<"EC">;
246
+ crv: z.ZodLiteral<"P-256">;
247
+ x: z.ZodString;
248
+ y: z.ZodString;
249
+ }, z.core.$strict>;
250
+ }, z.core.$strict>;
251
+ }, z.core.$strict>, z.ZodObject<{
252
+ kind: z.ZodLiteral<"REVOKE_DEVICE">;
253
+ input: z.ZodObject<{
254
+ tenantId: z.ZodUUID;
255
+ deviceId: z.ZodUUID;
256
+ requestId: z.ZodUUID;
257
+ expectedRevision: z.ZodInt;
258
+ }, z.core.$strict>;
259
+ }, z.core.$strict>, z.ZodObject<{
260
+ kind: z.ZodLiteral<"PREVIEW">;
261
+ input: z.ZodObject<{
262
+ tenantId: typeof import("../ids.js").TenantIdSchema;
263
+ idempotencyKey: z.ZodString;
264
+ productionId: typeof import("../ids.js").ProductionIdSchema;
265
+ expectedProductionRevision: z.ZodInt;
266
+ timelineVersionId: z.ZodUUID;
267
+ profileId: typeof import("../rough-cut-profile.js").RoughCutProfileIdSchema;
268
+ timelineFingerprint: z.ZodString;
269
+ placement: z.ZodDiscriminatedUnion<[z.ZodObject<{
270
+ mode: z.ZodLiteral<"local-only">;
271
+ deviceId: z.ZodUUID;
272
+ }, z.core.$strict>, z.ZodObject<{
273
+ mode: z.ZodLiteral<"local-preferred">;
274
+ deviceId: z.ZodUUID;
275
+ }, z.core.$strict>, z.ZodObject<{
276
+ mode: z.ZodLiteral<"cloud-only">;
277
+ }, z.core.$strict>], "mode">;
278
+ localProfile: z.ZodOptional<z.ZodLiteral<"STUDIO_MEDIA_V2">>;
279
+ }, z.core.$strict>;
280
+ }, z.core.$strict>, z.ZodObject<{
281
+ kind: z.ZodLiteral<"FINAL_RENDER">;
282
+ input: z.ZodObject<{
283
+ tenantId: typeof import("../ids.js").TenantIdSchema;
284
+ idempotencyKey: z.ZodString;
285
+ productionId: typeof import("../ids.js").ProductionIdSchema;
286
+ expectedProductionRevision: z.ZodInt;
287
+ timelineVersionId: z.ZodUUID;
288
+ profileId: typeof import("../final-render-profile.js").FinalRenderProfileIdSchema;
289
+ timelineFingerprint: z.ZodString;
290
+ selectionId: z.ZodUUID;
291
+ audioPolicy: z.ZodEnum<{
292
+ SILENT: "SILENT";
293
+ MIXED: "MIXED";
294
+ }>;
295
+ captionPolicy: z.ZodEnum<{
296
+ NONE: "NONE";
297
+ BURN_IN: "BURN_IN";
298
+ }>;
299
+ expectedFinalReadyVersion: z.ZodInt;
300
+ placement: z.ZodDiscriminatedUnion<[z.ZodObject<{
301
+ mode: z.ZodLiteral<"local-only">;
302
+ deviceId: z.ZodUUID;
303
+ }, z.core.$strict>, z.ZodObject<{
304
+ mode: z.ZodLiteral<"local-preferred">;
305
+ deviceId: z.ZodUUID;
306
+ }, z.core.$strict>, z.ZodObject<{
307
+ mode: z.ZodLiteral<"cloud-only">;
308
+ }, z.core.$strict>], "mode">;
309
+ }, z.core.$strict>;
310
+ }, z.core.$strict>], "kind">;
311
+ export type LocalDeviceManagementCommand = z.infer<typeof LocalDeviceManagementCommandSchema>;
312
+ /** 普通 Agent 回执查询显式绑定 tenant,原指令按精确身份保存和核对。 */
313
+ export declare const ScopedLocalManagementReceiptSchema: z.ZodObject<{
314
+ tenantId: z.ZodUUID;
315
+ command: z.ZodDiscriminatedUnion<[z.ZodObject<{
316
+ kind: z.ZodLiteral<"ENROLL">;
317
+ input: z.ZodObject<{
318
+ tenantId: z.ZodUUID;
319
+ requestId: z.ZodUUID;
320
+ label: z.ZodString;
321
+ platform: z.ZodObject<{
322
+ os: z.ZodEnum<{
323
+ darwin: "darwin";
324
+ linux: "linux";
325
+ win32: "win32";
326
+ }>;
327
+ architecture: z.ZodEnum<{
328
+ x64: "x64";
329
+ arm64: "arm64";
330
+ }>;
331
+ }, z.core.$strict>;
332
+ runtimeVersion: z.ZodString;
333
+ publicKey: z.ZodObject<{
334
+ kty: z.ZodLiteral<"EC">;
335
+ crv: z.ZodLiteral<"P-256">;
336
+ x: z.ZodString;
337
+ y: z.ZodString;
338
+ }, z.core.$strict>;
339
+ }, z.core.$strict>;
340
+ }, z.core.$strict>, z.ZodObject<{
341
+ kind: z.ZodLiteral<"REVOKE_DEVICE">;
342
+ input: z.ZodObject<{
343
+ tenantId: z.ZodUUID;
344
+ deviceId: z.ZodUUID;
345
+ requestId: z.ZodUUID;
346
+ expectedRevision: z.ZodInt;
347
+ }, z.core.$strict>;
348
+ }, z.core.$strict>, z.ZodObject<{
349
+ kind: z.ZodLiteral<"PREVIEW">;
350
+ input: z.ZodObject<{
351
+ tenantId: typeof import("../ids.js").TenantIdSchema;
352
+ idempotencyKey: z.ZodString;
353
+ productionId: typeof import("../ids.js").ProductionIdSchema;
354
+ expectedProductionRevision: z.ZodInt;
355
+ timelineVersionId: z.ZodUUID;
356
+ profileId: typeof import("../rough-cut-profile.js").RoughCutProfileIdSchema;
357
+ timelineFingerprint: z.ZodString;
358
+ placement: z.ZodDiscriminatedUnion<[z.ZodObject<{
359
+ mode: z.ZodLiteral<"local-only">;
360
+ deviceId: z.ZodUUID;
361
+ }, z.core.$strict>, z.ZodObject<{
362
+ mode: z.ZodLiteral<"local-preferred">;
363
+ deviceId: z.ZodUUID;
364
+ }, z.core.$strict>, z.ZodObject<{
365
+ mode: z.ZodLiteral<"cloud-only">;
366
+ }, z.core.$strict>], "mode">;
367
+ localProfile: z.ZodOptional<z.ZodLiteral<"STUDIO_MEDIA_V2">>;
368
+ }, z.core.$strict>;
369
+ }, z.core.$strict>, z.ZodObject<{
370
+ kind: z.ZodLiteral<"FINAL_RENDER">;
371
+ input: z.ZodObject<{
372
+ tenantId: typeof import("../ids.js").TenantIdSchema;
373
+ idempotencyKey: z.ZodString;
374
+ productionId: typeof import("../ids.js").ProductionIdSchema;
375
+ expectedProductionRevision: z.ZodInt;
376
+ timelineVersionId: z.ZodUUID;
377
+ profileId: typeof import("../final-render-profile.js").FinalRenderProfileIdSchema;
378
+ timelineFingerprint: z.ZodString;
379
+ selectionId: z.ZodUUID;
380
+ audioPolicy: z.ZodEnum<{
381
+ SILENT: "SILENT";
382
+ MIXED: "MIXED";
383
+ }>;
384
+ captionPolicy: z.ZodEnum<{
385
+ NONE: "NONE";
386
+ BURN_IN: "BURN_IN";
387
+ }>;
388
+ expectedFinalReadyVersion: z.ZodInt;
389
+ placement: z.ZodDiscriminatedUnion<[z.ZodObject<{
390
+ mode: z.ZodLiteral<"local-only">;
391
+ deviceId: z.ZodUUID;
392
+ }, z.core.$strict>, z.ZodObject<{
393
+ mode: z.ZodLiteral<"local-preferred">;
394
+ deviceId: z.ZodUUID;
395
+ }, z.core.$strict>, z.ZodObject<{
396
+ mode: z.ZodLiteral<"cloud-only">;
397
+ }, z.core.$strict>], "mode">;
398
+ }, z.core.$strict>;
399
+ }, z.core.$strict>], "kind">;
400
+ }, z.core.$strict>;
@@ -0,0 +1,207 @@
1
+ import { z } from "zod";
2
+ export declare const LocalMediaRecipeSchema: z.ZodObject<{
3
+ protocol: z.ZodLiteral<"NVS_RESOLVED_MEDIA_RECIPE_V2">;
4
+ family: z.ZodEnum<{
5
+ ROUGH_CUT_RENDER: "ROUGH_CUT_RENDER";
6
+ FINAL_RENDER: "FINAL_RENDER";
7
+ }>;
8
+ width: z.ZodInt;
9
+ height: z.ZodInt;
10
+ totalFrames: z.ZodInt;
11
+ crf: z.ZodUnion<readonly [z.ZodLiteral<18>, z.ZodLiteral<23>]>;
12
+ algorithm: z.ZodEnum<{
13
+ ORDERED_TRIM_CUT_V1: "ORDERED_TRIM_CUT_V1";
14
+ ORDERED_COMPOSE_V2: "ORDERED_COMPOSE_V2";
15
+ }>;
16
+ clips: z.ZodArray<z.ZodObject<{
17
+ representationId: z.ZodUUID;
18
+ technical: z.ZodObject<{
19
+ contentType: z.ZodLiteral<"video/mp4">;
20
+ checksumSha256: z.ZodString;
21
+ byteSize: z.ZodInt;
22
+ width: z.ZodInt;
23
+ height: z.ZodInt;
24
+ durationMs: z.ZodInt;
25
+ frameRate: z.ZodNumber;
26
+ videoCodec: z.ZodEnum<{
27
+ h264: "h264";
28
+ hevc: "hevc";
29
+ }>;
30
+ pixelFormat: z.ZodOptional<z.ZodLiteral<"yuv420p10le">>;
31
+ hasAudio: z.ZodBoolean;
32
+ nativeAudio: z.ZodOptional<z.ZodObject<{
33
+ normalizationVersion: z.ZodLiteral<"VIDEO_AUDIO_PCM_V1">;
34
+ sourceCodec: z.ZodLiteral<"aac">;
35
+ sourceSampleRateHz: z.ZodInt;
36
+ sourceChannels: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>;
37
+ sourceFrameRateHz: z.ZodUnion<readonly [z.ZodLiteral<24>, z.ZodLiteral<30>]>;
38
+ sourceFrameCount: z.ZodInt;
39
+ sourceStartOffsetMs: z.ZodNumber;
40
+ sourceDeclaredDurationMs: z.ZodNumber;
41
+ alignment: z.ZodLiteral<"TRIM_PAD_PCM_TO_VIDEO_ZERO_V1">;
42
+ media: z.ZodObject<{
43
+ profile: z.ZodLiteral<"PCM_S16LE_48000_NATIVE_VIDEO_V1">;
44
+ audioCodec: z.ZodLiteral<"pcm_s16le">;
45
+ sampleRateHz: z.ZodLiteral<48000>;
46
+ audioChannels: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>;
47
+ sampleCount: z.ZodInt;
48
+ durationMs: z.ZodNumber;
49
+ }, z.core.$strict>;
50
+ checksumSha256: z.ZodString;
51
+ }, z.core.$strict>>;
52
+ }, z.core.$strict>;
53
+ sourceInMs: z.ZodInt;
54
+ sourceOutMs: z.ZodInt;
55
+ startFrame: z.ZodInt;
56
+ frameCount: z.ZodInt;
57
+ overlapFrames: z.ZodInt;
58
+ crop: z.ZodNullable<z.ZodObject<{
59
+ x: z.ZodInt;
60
+ y: z.ZodInt;
61
+ width: z.ZodInt;
62
+ height: z.ZodInt;
63
+ }, z.core.$strict>>;
64
+ viewport: z.ZodObject<{
65
+ x: z.ZodInt;
66
+ y: z.ZodInt;
67
+ width: z.ZodInt;
68
+ height: z.ZodInt;
69
+ }, z.core.$strict>;
70
+ }, z.core.$strict>>;
71
+ caption: z.ZodNullable<z.ZodObject<{
72
+ style: z.ZodDiscriminatedUnion<[z.ZodObject<{
73
+ id: z.ZodLiteral<"PLAIN_TEXT_NOTO_SANS_SC_V1">;
74
+ fontSha256: z.ZodLiteral<"a3041811a78c361b1de50f953c805e0244951c21c5bd412f7232ef0d899af0da">;
75
+ framePolicy: z.ZodLiteral<"PTS_HALF_OPEN_CEIL_V1">;
76
+ }, z.core.$strict>, z.ZodObject<{
77
+ id: z.ZodLiteral<"PLAIN_TEXT_NATIVE_SC_REGULAR_V2">;
78
+ fontSha256: z.ZodLiteral<"e5a51f41fc1b827da651afee3975e07a182ff4f8e04d9dfc0a3cecd6177a52b6">;
79
+ framePolicy: z.ZodLiteral<"PTS_HALF_OPEN_CEIL_V1">;
80
+ }, z.core.$strict>], "id">;
81
+ references: z.ZodArray<z.ZodObject<{
82
+ representationId: z.ZodUUID;
83
+ expectedUtf8: z.ZodString;
84
+ }, z.core.$strict>>;
85
+ cues: z.ZodArray<z.ZodObject<{
86
+ ordinal: z.ZodInt;
87
+ startFrame: z.ZodInt;
88
+ endFrame: z.ZodInt;
89
+ fontSize: z.ZodInt;
90
+ margin: z.ZodInt;
91
+ text: z.ZodString;
92
+ }, z.core.$strict>>;
93
+ }, z.core.$strict>>;
94
+ audio: z.ZodNullable<z.ZodObject<{
95
+ algorithm: z.ZodLiteral<"PCM_WINDOW_MIX_AAC_V1">;
96
+ tracks: z.ZodArray<z.ZodObject<{
97
+ representationId: z.ZodUUID;
98
+ checksum: z.ZodString;
99
+ byteSize: z.ZodInt;
100
+ channels: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>;
101
+ sampleCount: z.ZodInt;
102
+ sourceIn: z.ZodInt;
103
+ sourceOut: z.ZodInt;
104
+ start: z.ZodInt;
105
+ count: z.ZodInt;
106
+ gain: z.ZodInt;
107
+ duck: z.ZodInt;
108
+ duckWindows: z.ZodArray<z.ZodObject<{
109
+ start: z.ZodInt;
110
+ count: z.ZodInt;
111
+ }, z.core.$strict>>;
112
+ }, z.core.$strict>>;
113
+ }, z.core.$strict>>;
114
+ graphics: z.ZodArray<z.ZodObject<{
115
+ representationId: z.ZodUUID;
116
+ checksum: z.ZodString;
117
+ byteSize: z.ZodInt;
118
+ contentType: z.ZodEnum<{
119
+ "image/png": "image/png";
120
+ "image/webp": "image/webp";
121
+ }>;
122
+ sourceWidth: z.ZodInt;
123
+ sourceHeight: z.ZodInt;
124
+ width: z.ZodInt;
125
+ height: z.ZodInt;
126
+ x: z.ZodInt;
127
+ y: z.ZodInt;
128
+ startFrame: z.ZodInt;
129
+ endFrame: z.ZodInt;
130
+ opacity: z.ZodNumber;
131
+ }, z.core.$strict>>;
132
+ visual: z.ZodNullable<z.ZodObject<{
133
+ policy: z.ZodOptional<z.ZodEnum<{
134
+ STRAIGHT_ALPHA_FRAME_OVERLAY_30_V1: "STRAIGHT_ALPHA_FRAME_OVERLAY_30_V1";
135
+ STRAIGHT_ALPHA_FRAME_OVERLAY_30_V2: "STRAIGHT_ALPHA_FRAME_OVERLAY_30_V2";
136
+ }>>;
137
+ composition: z.ZodObject<{
138
+ schemaVersion: z.ZodLiteral<1>;
139
+ profileId: z.ZodLiteral<"STRAIGHT_ALPHA_FRAME_OVERLAY_30_V1">;
140
+ tenantId: z.core.$ZodBranded<z.ZodUUID, "TenantId", "out">;
141
+ projectId: z.core.$ZodBranded<z.ZodUUID, "ProjectId", "out">;
142
+ productionId: z.core.$ZodBranded<z.ZodUUID, "ProductionId", "out">;
143
+ totalFrames: z.ZodInt;
144
+ layers: z.ZodArray<z.ZodObject<{
145
+ id: z.ZodUUID;
146
+ source: z.ZodObject<{
147
+ schemaVersion: z.ZodLiteral<1>;
148
+ profileId: z.ZodLiteral<"RGBA_PNG_SEQUENCE_30_V1">;
149
+ tenantId: z.core.$ZodBranded<z.ZodUUID, "TenantId", "out">;
150
+ projectId: z.core.$ZodBranded<z.ZodUUID, "ProjectId", "out">;
151
+ productionId: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "ProductionId", "out">>;
152
+ artifactId: z.core.$ZodBranded<z.ZodUUID, "ArtifactId", "out">;
153
+ representationId: z.core.$ZodBranded<z.ZodUUID, "ArtifactRepresentationId", "out">;
154
+ checksumSha256: z.ZodString;
155
+ width: z.ZodInt;
156
+ height: z.ZodInt;
157
+ frameRate: z.ZodLiteral<30>;
158
+ frameCount: z.ZodInt;
159
+ alpha: z.ZodLiteral<"STRAIGHT_RGBA">;
160
+ frames: z.ZodArray<z.ZodObject<{
161
+ ordinal: z.ZodInt;
162
+ artifactId: z.core.$ZodBranded<z.ZodUUID, "ArtifactId", "out">;
163
+ representationId: z.core.$ZodBranded<z.ZodUUID, "ArtifactRepresentationId", "out">;
164
+ checksumSha256: z.ZodString;
165
+ byteSize: z.ZodInt;
166
+ }, z.core.$strict>>;
167
+ }, z.core.$strict>;
168
+ sourceInFrame: z.ZodInt;
169
+ sourceOutFrame: z.ZodInt;
170
+ startFrame: z.ZodInt;
171
+ zIndex: z.ZodInt;
172
+ opacityPermille: z.ZodInt;
173
+ placement: z.ZodObject<{
174
+ xPermille: z.ZodInt;
175
+ yPermille: z.ZodInt;
176
+ widthPermille: z.ZodInt;
177
+ heightPermille: z.ZodInt;
178
+ }, z.core.$strict>;
179
+ }, z.core.$strict>>;
180
+ }, z.core.$strict>;
181
+ plans: z.ZodArray<z.ZodObject<{
182
+ id: z.ZodUUID;
183
+ startFrame: z.ZodInt;
184
+ endFrame: z.ZodInt;
185
+ width: z.ZodInt;
186
+ height: z.ZodInt;
187
+ x: z.ZodInt;
188
+ y: z.ZodInt;
189
+ opacityPermille: z.ZodInt;
190
+ }, z.core.$strict>>;
191
+ }, z.core.$strict>>;
192
+ }, z.core.$strict>;
193
+ export type LocalMediaRecipe = z.infer<typeof LocalMediaRecipeSchema>;
194
+ export declare const LOCAL_STUDIO_PROFILE_SPEC: {
195
+ readonly protocol: "NVS_LOCAL_STUDIO_MEDIA_V2";
196
+ readonly algorithm: "RESOLVED_RECIPE_V2";
197
+ readonly profiles: readonly ["PREVIEW_H264_480P_V1", "PREVIEW_H264_720P_V1", "PREVIEW_H264_1080P_V1", "FINAL_H264_480P_V1", "FINAL_H264_720P_V1", "FINAL_H264_1080P_V1"];
198
+ readonly audio: "PCM_WINDOW_MIX_AAC_V1";
199
+ readonly captions: "PINNED_PLAIN_TEXT";
200
+ readonly framing: "CROP_PAD_V1";
201
+ readonly transitions: "CROSS_DISSOLVE_V1";
202
+ readonly graphics: "OVERLAY_V1";
203
+ readonly visual: readonly ["STRAIGHT_ALPHA_FRAME_OVERLAY_30_V1", "STRAIGHT_ALPHA_FRAME_OVERLAY_30_V2"];
204
+ readonly maxSourceBytesTotal: 268435456;
205
+ readonly maxOutputBytes: 134217728;
206
+ readonly maxClips: 32;
207
+ };