@nativestudio/cli 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 (162) hide show
  1. package/COMPATIBILITY.json +7 -7
  2. package/LICENSE +201 -21
  3. package/components/runtime.json +3 -3
  4. package/components/runtime.tgz +0 -0
  5. package/dist/_chunks/{chunk-CA54SKBO.js → chunk-6SYHA2B4.js} +1 -1
  6. package/dist/_chunks/{chunk-GJ7BZJLW.js → chunk-A7EUJNCL.js} +1 -1
  7. package/dist/_chunks/chunk-AJ7S73M4.js +1 -0
  8. package/dist/_chunks/chunk-DRHPICBU.js +1 -0
  9. package/dist/_chunks/chunk-FCHO4AVP.js +1 -0
  10. package/dist/_chunks/chunk-JH5QP6PC.js +1 -0
  11. package/dist/_chunks/chunk-LF442QV6.js +1 -0
  12. package/dist/_chunks/chunk-LUBHPAPW.js +1 -0
  13. package/dist/_chunks/chunk-OZ5KZSTM.js +1 -0
  14. package/dist/_chunks/chunk-RJ4QQF7E.js +1 -0
  15. package/dist/_chunks/chunk-RT5PFKYS.js +1 -0
  16. package/dist/_chunks/chunk-SIJPJIBO.js +1 -0
  17. package/dist/_chunks/{chunk-KNFUMWDY.js → chunk-TCZJLYSR.js} +1 -1
  18. package/dist/_chunks/chunk-TTFDNLQE.js +1 -0
  19. package/dist/_chunks/chunk-URKX77KR.js +1 -0
  20. package/dist/_chunks/chunk-XRYARPEL.js +1 -0
  21. package/dist/_chunks/device-management-4XIITODX.js +1 -0
  22. package/dist/_chunks/device-preflight-SDA7Q3LH.js +1 -0
  23. package/dist/_chunks/devices-inventory-RVHGI2YW.js +1 -0
  24. package/dist/_chunks/devices-main-WOILNAGY.js +1 -0
  25. package/dist/_chunks/http-profile-XCHTSJV4.js +1 -0
  26. package/dist/_chunks/library-main-ZQKJQNHE.js +1 -0
  27. package/dist/_chunks/local-main-DX47PKHX.js +1 -0
  28. package/dist/_chunks/local-mcp-HMS5ODZN.js +1 -0
  29. package/dist/_chunks/main-HQGVZ2O2.js +2 -0
  30. package/dist/_chunks/mcp-6Q4ALHN6.js +1 -0
  31. package/dist/_chunks/project-connect-U2IHGC5W.js +1 -0
  32. package/dist/_chunks/render-main-A2AABFAG.js +1 -0
  33. package/dist/_chunks/source-import-5N4KZMTC.js +1 -0
  34. package/dist/_chunks/src-NIMTPR5W.js +1 -0
  35. package/dist/_chunks/{stdio-main-4Z2JVCMO.js → stdio-main-JJCNIY4H.js} +1 -1
  36. package/dist/_chunks/workspace-main-ZIZO4WRI.js +1 -0
  37. package/dist/_types/cli/local/desktop-contract.d.ts +1077 -564
  38. package/dist/_types/cli/local/desktop-device-contract.d.ts +170 -556
  39. package/dist/_types/cli/local/desktop-device-owner.d.ts +16 -50
  40. package/dist/_types/cli/local/desktop-device-state.d.ts +198 -31
  41. package/dist/_types/cli/local/desktop-library.d.ts +853 -0
  42. package/dist/_types/cli/local/desktop-owner.d.ts +220 -39
  43. package/dist/_types/cli/local/ledger.d.ts +2 -0
  44. package/dist/_types/cli/local/manager.d.ts +352 -22
  45. package/dist/_types/cli/local/mcp-tools.d.ts +218 -39
  46. package/dist/_types/cli/local/project-render-tools.d.ts +8742 -77
  47. package/dist/_types/cli/local-management.d.ts +2 -1
  48. package/dist/_types/contracts/artifact-discovery.d.ts +76 -4
  49. package/dist/_types/contracts/audio.d.ts +4 -0
  50. package/dist/_types/contracts/composition-authoring.d.ts +8 -8
  51. package/dist/_types/contracts/composition-frame-render.d.ts +4 -4
  52. package/dist/_types/contracts/composition-render-base.d.ts +5 -4
  53. package/dist/_types/contracts/composition-render.d.ts +8 -8
  54. package/dist/_types/contracts/composition-repair.d.ts +10 -10
  55. package/dist/_types/contracts/composition-source-review.d.ts +12 -12
  56. package/dist/_types/contracts/delivery-manifest.d.ts +25 -11765
  57. package/dist/_types/contracts/delivery-operations.d.ts +51 -3921
  58. package/dist/_types/contracts/delivery-summary.d.ts +2 -2
  59. package/dist/_types/contracts/delivery-validation.d.ts +23 -0
  60. package/dist/_types/contracts/device-render.d.ts +67 -0
  61. package/dist/_types/contracts/editor-intelligence.d.ts +114 -2491
  62. package/dist/_types/contracts/exploration-recommendation.d.ts +263 -11655
  63. package/dist/_types/contracts/external-agent-access.d.ts +9 -3
  64. package/dist/_types/contracts/final-ready.d.ts +22 -22
  65. package/dist/_types/contracts/final-render.d.ts +1569 -6949
  66. package/dist/_types/contracts/human-identity.d.ts +13 -0
  67. package/dist/_types/contracts/index.d.ts +3 -0
  68. package/dist/_types/contracts/interface/media-output.d.ts +28 -0
  69. package/dist/_types/contracts/interface/production-snapshot.d.ts +15 -193
  70. package/dist/_types/contracts/keyframe-generation.d.ts +29 -0
  71. package/dist/_types/contracts/local-execution/agent-evidence.d.ts +2 -2
  72. package/dist/_types/contracts/local-execution/agent-grant.d.ts +2 -2
  73. package/dist/_types/contracts/local-execution/agent-review.d.ts +30 -285
  74. package/dist/_types/contracts/local-execution/common.d.ts +12 -11
  75. package/dist/_types/contracts/local-execution/completion.d.ts +41 -45
  76. package/dist/_types/contracts/local-execution/device-authority.d.ts +31 -0
  77. package/dist/_types/contracts/local-execution/device-inventory.d.ts +76 -0
  78. package/dist/_types/contracts/local-execution/device-workspace.d.ts +11 -0
  79. package/dist/_types/contracts/local-execution/device.d.ts +19 -59
  80. package/dist/_types/contracts/local-execution/external-generation.d.ts +199 -0
  81. package/dist/_types/contracts/local-execution/index.d.ts +19 -0
  82. package/dist/_types/contracts/local-execution/ipc.d.ts +1517 -711
  83. package/dist/_types/contracts/local-execution/library-command.d.ts +620 -0
  84. package/dist/_types/contracts/local-execution/library-result.d.ts +408 -0
  85. package/dist/_types/contracts/local-execution/library.d.ts +873 -0
  86. package/dist/_types/contracts/local-execution/lifecycle.d.ts +21 -5
  87. package/dist/_types/contracts/local-execution/local-navigation.d.ts +161 -44
  88. package/dist/_types/contracts/local-execution/management.d.ts +214 -208
  89. package/dist/_types/contracts/local-execution/media-recipe.d.ts +5 -1
  90. package/dist/_types/contracts/local-execution/media-validation-request.d.ts +232 -0
  91. package/dist/_types/contracts/local-execution/media-validation.d.ts +262 -0
  92. package/dist/_types/contracts/local-execution/object-transfer.d.ts +155 -0
  93. package/dist/_types/contracts/local-execution/preview.d.ts +120 -10988
  94. package/dist/_types/contracts/local-execution/processor-capability.d.ts +39 -0
  95. package/dist/_types/contracts/local-execution/processor-direct.d.ts +290 -0
  96. package/dist/_types/contracts/local-execution/processor-recipes.d.ts +1122 -0
  97. package/dist/_types/contracts/local-execution/processor.d.ts +6173 -0
  98. package/dist/_types/contracts/local-execution/project-source-direct.d.ts +201 -0
  99. package/dist/_types/contracts/local-execution/qwen-tts.d.ts +31 -0
  100. package/dist/_types/contracts/local-execution/recognition.d.ts +170 -0
  101. package/dist/_types/contracts/local-execution/speech.d.ts +95 -0
  102. package/dist/_types/contracts/local-execution/tool-selection.d.ts +45 -5
  103. package/dist/_types/contracts/local-execution/whisper.d.ts +24 -0
  104. package/dist/_types/contracts/local-execution/work.d.ts +69 -10741
  105. package/dist/_types/contracts/local-execution/workspace.d.ts +5 -0
  106. package/dist/_types/contracts/media-category.d.ts +11 -0
  107. package/dist/_types/contracts/media-observation.d.ts +929 -8
  108. package/dist/_types/contracts/observation-profile.d.ts +3 -3
  109. package/dist/_types/contracts/programmatic-composition.d.ts +24 -24
  110. package/dist/_types/contracts/programmatic-exploration.d.ts +348 -6009
  111. package/dist/_types/contracts/provider-catalog.d.ts +3 -3
  112. package/dist/_types/contracts/provider-models.d.ts +16 -8
  113. package/dist/_types/contracts/provider.d.ts +66 -1
  114. package/dist/_types/contracts/reference-preview.d.ts +19 -0
  115. package/dist/_types/contracts/repair-lifecycle.d.ts +52 -384
  116. package/dist/_types/contracts/repair-plan.d.ts +16 -98
  117. package/dist/_types/contracts/repair-strategy.d.ts +162 -4505
  118. package/dist/_types/contracts/review-intelligence-final-output.d.ts +317 -8163
  119. package/dist/_types/contracts/review-intelligence.d.ts +450 -11468
  120. package/dist/_types/contracts/rough-cut-manifest.d.ts +1 -0
  121. package/dist/_types/contracts/rough-cut-review.d.ts +134 -12566
  122. package/dist/_types/contracts/rough-cut.d.ts +1076 -5731
  123. package/dist/_types/contracts/sound-making-plan.d.ts +3 -2
  124. package/dist/_types/contracts/speech-cost.d.ts +81 -0
  125. package/dist/_types/contracts/speech.d.ts +149 -0
  126. package/dist/_types/contracts/temporal-evidence-operation.d.ts +1 -0
  127. package/dist/_types/contracts/timeline-audio.d.ts +1 -0
  128. package/dist/_types/contracts/timeline-manifest.d.ts +2 -0
  129. package/dist/_types/contracts/timeline-source-sound.d.ts +1 -0
  130. package/dist/_types/contracts/timeline-v2.d.ts +4 -0
  131. package/dist/_types/contracts/timeline-version-reader.d.ts +10 -0
  132. package/dist/_types/contracts/timeline-visual-layers.d.ts +4 -0
  133. package/dist/_types/contracts/timeline.d.ts +50 -4850
  134. package/dist/_types/contracts/transcription.d.ts +1 -1
  135. package/dist/_types/contracts/video-generation.d.ts +33 -0
  136. package/dist/_types/contracts/visual-layer-render.d.ts +37 -6
  137. package/dist/_types/contracts/visual-sequence.d.ts +22 -0
  138. package/dist/_types/contracts/workspace.d.ts +22 -0
  139. package/dist/_types/sdk/errors.d.ts +1 -1
  140. package/dist/_types/sdk/local-runtime/device-client.d.ts +7 -33
  141. package/dist/_types/sdk/local-runtime/library.d.ts +268 -0
  142. package/dist/_types/sdk/local-runtime/workspace.d.ts +9 -4
  143. package/dist/_types/sdk/local-runtime-client.d.ts +477 -32
  144. package/dist/entry.js +1 -1
  145. package/dist/local-management.js +1 -1
  146. package/dist/local-navigation.js +1 -1
  147. package/package.json +2 -8
  148. package/README.md +0 -119
  149. package/dist/_chunks/chunk-D533YC7J.js +0 -1
  150. package/dist/_chunks/chunk-HKD6F6M6.js +0 -1
  151. package/dist/_chunks/chunk-INLSOHAK.js +0 -1
  152. package/dist/_chunks/chunk-N6S6HCWE.js +0 -1
  153. package/dist/_chunks/chunk-PBEHCYR7.js +0 -1
  154. package/dist/_chunks/chunk-RVGDXRPK.js +0 -1
  155. package/dist/_chunks/chunk-YKOJPJZR.js +0 -1
  156. package/dist/_chunks/local-main-J2G7OU5E.js +0 -1
  157. package/dist/_chunks/local-mcp-LCHXL2IE.js +0 -1
  158. package/dist/_chunks/main-PPA76ARV.js +0 -2
  159. package/dist/_chunks/mcp-P7W623FE.js +0 -1
  160. package/dist/_chunks/project-connect-7L2HRJUN.js +0 -1
  161. package/dist/_chunks/render-main-ZW6UJHGN.js +0 -1
  162. package/dist/_chunks/src-BXLFLNRG.js +0 -1
@@ -1,10 +1,10 @@
1
1
  import { z } from "zod";
2
- /** Exact saved member commands; receipt lookup never dispatches them. */
2
+ /** 持久保存精确成员指令;回执查询不重发写入,也不接受项目设备授予。 */
3
3
  export declare const LocalManagementCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4
4
  kind: z.ZodLiteral<"ENROLL">;
5
5
  input: z.ZodObject<{
6
- tenantId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
7
- requestId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
6
+ tenantId: z.ZodUUID;
7
+ requestId: z.ZodUUID;
8
8
  label: z.ZodString;
9
9
  platform: z.ZodObject<{
10
10
  os: z.ZodEnum<{
@@ -26,50 +26,29 @@ export declare const LocalManagementCommandSchema: z.ZodDiscriminatedUnion<[z.Zo
26
26
  }, z.core.$strict>;
27
27
  }, z.core.$strict>;
28
28
  }, z.core.$strict>, z.ZodObject<{
29
- kind: z.ZodLiteral<"GRANT">;
29
+ kind: z.ZodLiteral<"REVOKE_DEVICE">;
30
30
  input: z.ZodObject<{
31
- tenantId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
32
- projectId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
33
- requestId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
34
- executionPolicy: z.ZodOptional<z.ZodLiteral<"DEVICE_ONLY">>;
35
- deviceId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
36
- deviceRevision: z.ZodInt;
37
- expectedRevision: z.ZodInt;
38
- expiresAt: z.ZodISODateTime;
39
- capability: z.ZodEnum<{
40
- ROUGH_CUT_PREVIEW_V1: "ROUGH_CUT_PREVIEW_V1";
41
- STUDIO_MEDIA_V2: "STUDIO_MEDIA_V2";
42
- }>;
43
- }, z.core.$strict>;
44
- }, z.core.$strict>, z.ZodObject<{
45
- kind: z.ZodLiteral<"REVOKE_GRANT">;
46
- input: z.ZodObject<{
47
- tenantId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
48
- projectId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
49
- grantId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
50
- requestId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
31
+ tenantId: z.ZodUUID;
32
+ deviceId: z.ZodUUID;
33
+ requestId: z.ZodUUID;
51
34
  expectedRevision: z.ZodInt;
52
35
  }, z.core.$strict>;
53
36
  }, z.core.$strict>, z.ZodObject<{
54
37
  kind: z.ZodLiteral<"PREVIEW">;
55
38
  input: z.ZodObject<{
56
- tenantId: z.core.$ZodBranded<z.ZodUUID, "TenantId", "out">;
39
+ tenantId: typeof import("../ids.js").TenantIdSchema;
57
40
  idempotencyKey: z.ZodString;
58
- productionId: z.core.$ZodBranded<z.ZodUUID, "ProductionId", "out">;
41
+ productionId: typeof import("../ids.js").ProductionIdSchema;
59
42
  expectedProductionRevision: z.ZodInt;
60
43
  timelineVersionId: z.ZodUUID;
61
- profileId: z.ZodEnum<{
62
- PREVIEW_H264_480P_V1: "PREVIEW_H264_480P_V1";
63
- PREVIEW_H264_720P_V1: "PREVIEW_H264_720P_V1";
64
- PREVIEW_H264_1080P_V1: "PREVIEW_H264_1080P_V1";
65
- }>;
44
+ profileId: typeof import("../rough-cut-profile.js").RoughCutProfileIdSchema;
66
45
  timelineFingerprint: z.ZodString;
67
46
  placement: z.ZodDiscriminatedUnion<[z.ZodObject<{
68
47
  mode: z.ZodLiteral<"local-only">;
69
- deviceId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
48
+ deviceId: z.ZodUUID;
70
49
  }, z.core.$strict>, z.ZodObject<{
71
50
  mode: z.ZodLiteral<"local-preferred">;
72
- deviceId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
51
+ deviceId: z.ZodUUID;
73
52
  }, z.core.$strict>, z.ZodObject<{
74
53
  mode: z.ZodLiteral<"cloud-only">;
75
54
  }, z.core.$strict>], "mode">;
@@ -78,16 +57,12 @@ export declare const LocalManagementCommandSchema: z.ZodDiscriminatedUnion<[z.Zo
78
57
  }, z.core.$strict>, z.ZodObject<{
79
58
  kind: z.ZodLiteral<"FINAL_RENDER">;
80
59
  input: z.ZodObject<{
81
- tenantId: z.core.$ZodBranded<z.ZodUUID, "TenantId", "out">;
60
+ tenantId: typeof import("../ids.js").TenantIdSchema;
82
61
  idempotencyKey: z.ZodString;
83
- productionId: z.core.$ZodBranded<z.ZodUUID, "ProductionId", "out">;
62
+ productionId: typeof import("../ids.js").ProductionIdSchema;
84
63
  expectedProductionRevision: z.ZodInt;
85
64
  timelineVersionId: z.ZodUUID;
86
- profileId: z.ZodEnum<{
87
- FINAL_H264_1080P_V1: "FINAL_H264_1080P_V1";
88
- FINAL_H264_720P_V1: "FINAL_H264_720P_V1";
89
- FINAL_H264_480P_V1: "FINAL_H264_480P_V1";
90
- }>;
65
+ profileId: typeof import("../final-render-profile.js").FinalRenderProfileIdSchema;
91
66
  timelineFingerprint: z.ZodString;
92
67
  selectionId: z.ZodUUID;
93
68
  audioPolicy: z.ZodEnum<{
@@ -101,17 +76,17 @@ export declare const LocalManagementCommandSchema: z.ZodDiscriminatedUnion<[z.Zo
101
76
  expectedFinalReadyVersion: z.ZodInt;
102
77
  placement: z.ZodDiscriminatedUnion<[z.ZodObject<{
103
78
  mode: z.ZodLiteral<"local-only">;
104
- deviceId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
79
+ deviceId: z.ZodUUID;
105
80
  }, z.core.$strict>, z.ZodObject<{
106
81
  mode: z.ZodLiteral<"local-preferred">;
107
- deviceId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
82
+ deviceId: z.ZodUUID;
108
83
  }, z.core.$strict>, z.ZodObject<{
109
84
  mode: z.ZodLiteral<"cloud-only">;
110
85
  }, z.core.$strict>], "mode">;
111
86
  }, z.core.$strict>;
112
87
  }, z.core.$strict>], "kind">;
113
88
  export declare const LocalManagementResultSchema: z.ZodUnion<readonly [z.ZodObject<{
114
- tenantId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
89
+ tenantId: z.ZodUUID;
115
90
  publicKey: z.ZodObject<{
116
91
  kty: z.ZodLiteral<"EC">;
117
92
  crv: z.ZodLiteral<"P-256">;
@@ -131,37 +106,17 @@ export declare const LocalManagementResultSchema: z.ZodUnion<readonly [z.ZodObje
131
106
  }>;
132
107
  }, z.core.$strict>;
133
108
  runtimeVersion: z.ZodString;
134
- deviceId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
109
+ deviceId: z.ZodUUID;
135
110
  revision: z.ZodInt;
136
- enrolledByPrincipalId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
111
+ enrolledByPrincipalId: z.ZodUUID;
137
112
  createdAt: z.ZodISODateTime;
138
113
  verifiedAt: z.ZodNullable<z.ZodISODateTime>;
139
114
  revokedAt: z.ZodNullable<z.ZodISODateTime>;
140
115
  }, z.core.$strict>, z.ZodObject<{
141
- tenantId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
142
- projectId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
143
- capability: z.ZodEnum<{
144
- ROUGH_CUT_PREVIEW_V1: "ROUGH_CUT_PREVIEW_V1";
145
- STUDIO_MEDIA_V2: "STUDIO_MEDIA_V2";
146
- }>;
147
- expiresAt: z.ZodISODateTime;
148
- deviceId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
149
- deviceRevision: z.ZodInt;
150
- executionPolicy: z.ZodOptional<z.ZodLiteral<"DEVICE_ONLY">>;
151
- grantId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
152
- revision: z.ZodInt;
153
- approvedByPrincipalId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
154
- createdAt: z.ZodISODateTime;
155
- revokedAt: z.ZodNullable<z.ZodISODateTime>;
156
- }, z.core.$strict>, z.ZodObject<{
157
- deviceExecution: z.ZodOptional<z.ZodObject<{
158
- mode: z.ZodLiteral<"tenant-device-only">;
159
- deviceId: z.ZodUUID;
160
- runtimeJobId: z.ZodUUID;
161
- }, z.core.$strict>>;
116
+ deviceExecution: z.ZodOptional<typeof import("../device-render.js").DeviceRenderReceiptSchema>;
162
117
  semanticStatus: z.ZodLiteral<"ACCEPTED">;
163
118
  renderId: z.ZodUUID;
164
- operationId: z.core.$ZodBranded<z.ZodString, "OperationId", "out">;
119
+ operationId: typeof import("../ids.js").OperationIdSchema;
165
120
  productionId: z.ZodUUID;
166
121
  timelineVersionId: z.ZodUUID;
167
122
  timelineFingerprint: z.ZodString;
@@ -171,38 +126,12 @@ export declare const LocalManagementResultSchema: z.ZodUnion<readonly [z.ZodObje
171
126
  }>;
172
127
  manifestFingerprint: z.ZodString;
173
128
  productionRevision: z.ZodInt;
174
- placement: z.ZodObject<{
175
- target: z.ZodEnum<{
176
- DEVICE: "DEVICE";
177
- SERVER: "SERVER";
178
- }>;
179
- reason: z.ZodEnum<{
180
- OFFLINE: "OFFLINE";
181
- UNQUALIFIED: "UNQUALIFIED";
182
- BUSY: "BUSY";
183
- LOCAL_AVAILABLE: "LOCAL_AVAILABLE";
184
- CLOUD_ONLY: "CLOUD_ONLY";
185
- LEASE_RECOVERY: "LEASE_RECOVERY";
186
- }>;
187
- policy: z.ZodDiscriminatedUnion<[z.ZodObject<{
188
- mode: z.ZodLiteral<"local-only">;
189
- deviceId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
190
- }, z.core.$strict>, z.ZodObject<{
191
- mode: z.ZodLiteral<"local-preferred">;
192
- deviceId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
193
- }, z.core.$strict>, z.ZodObject<{
194
- mode: z.ZodLiteral<"cloud-only">;
195
- }, z.core.$strict>], "mode">;
196
- }, z.core.$strict>;
129
+ placement: typeof import("./preview.js").LocalPreviewPlacementViewSchema;
197
130
  }, z.core.$strict>, z.ZodObject<{
198
- deviceExecution: z.ZodOptional<z.ZodObject<{
199
- mode: z.ZodLiteral<"tenant-device-only">;
200
- deviceId: z.ZodUUID;
201
- runtimeJobId: z.ZodUUID;
202
- }, z.core.$strict>>;
131
+ deviceExecution: z.ZodOptional<typeof import("../device-render.js").DeviceRenderReceiptSchema>;
203
132
  semanticStatus: z.ZodLiteral<"ACCEPTED">;
204
133
  renderId: z.ZodUUID;
205
- operationId: z.core.$ZodBranded<z.ZodString, "OperationId", "out">;
134
+ operationId: typeof import("../ids.js").OperationIdSchema;
206
135
  productionId: z.ZodUUID;
207
136
  timelineVersionId: z.ZodUUID;
208
137
  timelineFingerprint: z.ZodString;
@@ -214,41 +143,15 @@ export declare const LocalManagementResultSchema: z.ZodUnion<readonly [z.ZodObje
214
143
  productionRevision: z.ZodInt;
215
144
  selectionId: z.ZodUUID;
216
145
  selectionVersion: z.ZodInt;
217
- profileId: z.ZodEnum<{
218
- FINAL_H264_1080P_V1: "FINAL_H264_1080P_V1";
219
- FINAL_H264_720P_V1: "FINAL_H264_720P_V1";
220
- FINAL_H264_480P_V1: "FINAL_H264_480P_V1";
221
- }>;
222
- placement: z.ZodObject<{
223
- target: z.ZodEnum<{
224
- DEVICE: "DEVICE";
225
- SERVER: "SERVER";
226
- }>;
227
- reason: z.ZodEnum<{
228
- OFFLINE: "OFFLINE";
229
- UNQUALIFIED: "UNQUALIFIED";
230
- BUSY: "BUSY";
231
- LOCAL_AVAILABLE: "LOCAL_AVAILABLE";
232
- CLOUD_ONLY: "CLOUD_ONLY";
233
- LEASE_RECOVERY: "LEASE_RECOVERY";
234
- }>;
235
- policy: z.ZodDiscriminatedUnion<[z.ZodObject<{
236
- mode: z.ZodLiteral<"local-only">;
237
- deviceId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
238
- }, z.core.$strict>, z.ZodObject<{
239
- mode: z.ZodLiteral<"local-preferred">;
240
- deviceId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
241
- }, z.core.$strict>, z.ZodObject<{
242
- mode: z.ZodLiteral<"cloud-only">;
243
- }, z.core.$strict>], "mode">;
244
- }, z.core.$strict>;
146
+ profileId: typeof import("../final-render-profile.js").FinalRenderProfileIdSchema;
147
+ placement: typeof import("./preview.js").LocalPreviewPlacementViewSchema;
245
148
  }, z.core.$strict>, z.ZodObject<{
246
149
  semanticStatus: z.ZodLiteral<"SUCCESS">;
247
150
  }, z.core.$strict>]>;
248
151
  export declare const LocalManagementReceiptSchema: z.ZodObject<{
249
152
  fingerprint: z.ZodString;
250
153
  result: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
251
- tenantId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
154
+ tenantId: z.ZodUUID;
252
155
  publicKey: z.ZodObject<{
253
156
  kty: z.ZodLiteral<"EC">;
254
157
  crv: z.ZodLiteral<"P-256">;
@@ -268,37 +171,17 @@ export declare const LocalManagementReceiptSchema: z.ZodObject<{
268
171
  }>;
269
172
  }, z.core.$strict>;
270
173
  runtimeVersion: z.ZodString;
271
- deviceId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
174
+ deviceId: z.ZodUUID;
272
175
  revision: z.ZodInt;
273
- enrolledByPrincipalId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
176
+ enrolledByPrincipalId: z.ZodUUID;
274
177
  createdAt: z.ZodISODateTime;
275
178
  verifiedAt: z.ZodNullable<z.ZodISODateTime>;
276
179
  revokedAt: z.ZodNullable<z.ZodISODateTime>;
277
180
  }, z.core.$strict>, z.ZodObject<{
278
- tenantId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
279
- projectId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
280
- capability: z.ZodEnum<{
281
- ROUGH_CUT_PREVIEW_V1: "ROUGH_CUT_PREVIEW_V1";
282
- STUDIO_MEDIA_V2: "STUDIO_MEDIA_V2";
283
- }>;
284
- expiresAt: z.ZodISODateTime;
285
- deviceId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
286
- deviceRevision: z.ZodInt;
287
- executionPolicy: z.ZodOptional<z.ZodLiteral<"DEVICE_ONLY">>;
288
- grantId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
289
- revision: z.ZodInt;
290
- approvedByPrincipalId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
291
- createdAt: z.ZodISODateTime;
292
- revokedAt: z.ZodNullable<z.ZodISODateTime>;
293
- }, z.core.$strict>, z.ZodObject<{
294
- deviceExecution: z.ZodOptional<z.ZodObject<{
295
- mode: z.ZodLiteral<"tenant-device-only">;
296
- deviceId: z.ZodUUID;
297
- runtimeJobId: z.ZodUUID;
298
- }, z.core.$strict>>;
181
+ deviceExecution: z.ZodOptional<typeof import("../device-render.js").DeviceRenderReceiptSchema>;
299
182
  semanticStatus: z.ZodLiteral<"ACCEPTED">;
300
183
  renderId: z.ZodUUID;
301
- operationId: z.core.$ZodBranded<z.ZodString, "OperationId", "out">;
184
+ operationId: typeof import("../ids.js").OperationIdSchema;
302
185
  productionId: z.ZodUUID;
303
186
  timelineVersionId: z.ZodUUID;
304
187
  timelineFingerprint: z.ZodString;
@@ -308,38 +191,12 @@ export declare const LocalManagementReceiptSchema: z.ZodObject<{
308
191
  }>;
309
192
  manifestFingerprint: z.ZodString;
310
193
  productionRevision: z.ZodInt;
311
- placement: z.ZodObject<{
312
- target: z.ZodEnum<{
313
- DEVICE: "DEVICE";
314
- SERVER: "SERVER";
315
- }>;
316
- reason: z.ZodEnum<{
317
- OFFLINE: "OFFLINE";
318
- UNQUALIFIED: "UNQUALIFIED";
319
- BUSY: "BUSY";
320
- LOCAL_AVAILABLE: "LOCAL_AVAILABLE";
321
- CLOUD_ONLY: "CLOUD_ONLY";
322
- LEASE_RECOVERY: "LEASE_RECOVERY";
323
- }>;
324
- policy: z.ZodDiscriminatedUnion<[z.ZodObject<{
325
- mode: z.ZodLiteral<"local-only">;
326
- deviceId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
327
- }, z.core.$strict>, z.ZodObject<{
328
- mode: z.ZodLiteral<"local-preferred">;
329
- deviceId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
330
- }, z.core.$strict>, z.ZodObject<{
331
- mode: z.ZodLiteral<"cloud-only">;
332
- }, z.core.$strict>], "mode">;
333
- }, z.core.$strict>;
194
+ placement: typeof import("./preview.js").LocalPreviewPlacementViewSchema;
334
195
  }, z.core.$strict>, z.ZodObject<{
335
- deviceExecution: z.ZodOptional<z.ZodObject<{
336
- mode: z.ZodLiteral<"tenant-device-only">;
337
- deviceId: z.ZodUUID;
338
- runtimeJobId: z.ZodUUID;
339
- }, z.core.$strict>>;
196
+ deviceExecution: z.ZodOptional<typeof import("../device-render.js").DeviceRenderReceiptSchema>;
340
197
  semanticStatus: z.ZodLiteral<"ACCEPTED">;
341
198
  renderId: z.ZodUUID;
342
- operationId: z.core.$ZodBranded<z.ZodString, "OperationId", "out">;
199
+ operationId: typeof import("../ids.js").OperationIdSchema;
343
200
  productionId: z.ZodUUID;
344
201
  timelineVersionId: z.ZodUUID;
345
202
  timelineFingerprint: z.ZodString;
@@ -351,34 +208,8 @@ export declare const LocalManagementReceiptSchema: z.ZodObject<{
351
208
  productionRevision: z.ZodInt;
352
209
  selectionId: z.ZodUUID;
353
210
  selectionVersion: z.ZodInt;
354
- profileId: z.ZodEnum<{
355
- FINAL_H264_1080P_V1: "FINAL_H264_1080P_V1";
356
- FINAL_H264_720P_V1: "FINAL_H264_720P_V1";
357
- FINAL_H264_480P_V1: "FINAL_H264_480P_V1";
358
- }>;
359
- placement: z.ZodObject<{
360
- target: z.ZodEnum<{
361
- DEVICE: "DEVICE";
362
- SERVER: "SERVER";
363
- }>;
364
- reason: z.ZodEnum<{
365
- OFFLINE: "OFFLINE";
366
- UNQUALIFIED: "UNQUALIFIED";
367
- BUSY: "BUSY";
368
- LOCAL_AVAILABLE: "LOCAL_AVAILABLE";
369
- CLOUD_ONLY: "CLOUD_ONLY";
370
- LEASE_RECOVERY: "LEASE_RECOVERY";
371
- }>;
372
- policy: z.ZodDiscriminatedUnion<[z.ZodObject<{
373
- mode: z.ZodLiteral<"local-only">;
374
- deviceId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
375
- }, z.core.$strict>, z.ZodObject<{
376
- mode: z.ZodLiteral<"local-preferred">;
377
- deviceId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
378
- }, z.core.$strict>, z.ZodObject<{
379
- mode: z.ZodLiteral<"cloud-only">;
380
- }, z.core.$strict>], "mode">;
381
- }, z.core.$strict>;
211
+ profileId: typeof import("../final-render-profile.js").FinalRenderProfileIdSchema;
212
+ placement: typeof import("./preview.js").LocalPreviewPlacementViewSchema;
382
213
  }, z.core.$strict>, z.ZodObject<{
383
214
  semanticStatus: z.ZodLiteral<"SUCCESS">;
384
215
  }, z.core.$strict>]>>;
@@ -387,8 +218,183 @@ export type LocalManagementCommand = z.infer<typeof LocalManagementCommandSchema
387
218
  export type LocalManagementReceipt = z.infer<typeof LocalManagementReceiptSchema>;
388
219
  export declare const localManagementRoutes: {
389
220
  readonly ENROLL: "devices/enroll";
390
- readonly GRANT: "devices/grant";
391
- readonly REVOKE_GRANT: "devices/revoke-grant";
221
+ readonly REVOKE_DEVICE: "devices/revoke";
392
222
  readonly PREVIEW: "previews";
393
223
  readonly FINAL_RENDER: "final-renders";
394
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>;
@@ -130,6 +130,10 @@ export declare const LocalMediaRecipeSchema: z.ZodObject<{
130
130
  opacity: z.ZodNumber;
131
131
  }, z.core.$strict>>;
132
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
+ }>>;
133
137
  composition: z.ZodObject<{
134
138
  schemaVersion: z.ZodLiteral<1>;
135
139
  profileId: z.ZodLiteral<"STRAIGHT_ALPHA_FRAME_OVERLAY_30_V1">;
@@ -196,7 +200,7 @@ export declare const LOCAL_STUDIO_PROFILE_SPEC: {
196
200
  readonly framing: "CROP_PAD_V1";
197
201
  readonly transitions: "CROSS_DISSOLVE_V1";
198
202
  readonly graphics: "OVERLAY_V1";
199
- readonly visual: "STRAIGHT_ALPHA_FRAME_OVERLAY_30_V1";
203
+ readonly visual: readonly ["STRAIGHT_ALPHA_FRAME_OVERLAY_30_V1", "STRAIGHT_ALPHA_FRAME_OVERLAY_30_V2"];
200
204
  readonly maxSourceBytesTotal: 268435456;
201
205
  readonly maxOutputBytes: 134217728;
202
206
  readonly maxClips: 32;