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

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 (217) hide show
  1. package/COMPATIBILITY.json +37 -8
  2. package/LICENSE +201 -21
  3. package/components/runtime.json +33 -4
  4. package/components/runtime.tgz +0 -0
  5. package/dist/_chunks/chunk-2AI3WF2O.js +1 -0
  6. package/dist/_chunks/{chunk-G42IS5JF.js → chunk-3AVC742O.js} +1 -1
  7. package/dist/_chunks/chunk-5DY7LSZZ.js +1 -0
  8. package/dist/_chunks/{chunk-25EDDZQA.js → chunk-6LU6GJKW.js} +1 -1
  9. package/dist/_chunks/chunk-6LY4JYSG.js +1 -0
  10. package/dist/_chunks/chunk-6UYY5KHI.js +1 -0
  11. package/dist/_chunks/chunk-77IAHNM2.js +1 -0
  12. package/dist/_chunks/chunk-C62JAWRQ.js +1 -0
  13. package/dist/_chunks/{chunk-MSOMVWKN.js → chunk-FU3524Z6.js} +1 -1
  14. package/dist/_chunks/chunk-HTUTYIRU.js +1 -0
  15. package/dist/_chunks/chunk-HY7NXJYX.js +1 -0
  16. package/dist/_chunks/chunk-KB2GVAN7.js +1 -0
  17. package/dist/_chunks/chunk-PDQYFIQQ.js +1 -0
  18. package/dist/_chunks/chunk-RDIMORUT.js +1 -0
  19. package/dist/_chunks/chunk-RK2P3UVF.js +1 -0
  20. package/dist/_chunks/chunk-ROBBF33U.js +1 -0
  21. package/dist/_chunks/chunk-S74X4KIC.js +1 -0
  22. package/dist/_chunks/chunk-SV3NF7GO.js +1 -0
  23. package/dist/_chunks/chunk-TLPI6P7L.js +1 -0
  24. package/dist/_chunks/chunk-U7ECMITP.js +1 -0
  25. package/dist/_chunks/chunk-VD3OQ743.js +1 -0
  26. package/dist/_chunks/chunk-VKLS4QK5.js +1 -0
  27. package/dist/_chunks/chunk-W6C63ZN7.js +1 -0
  28. package/dist/_chunks/chunk-ZRSYOFMX.js +1 -0
  29. package/dist/_chunks/connect-6UH7ZFAC.js +1 -0
  30. package/dist/_chunks/device-management-H3NIDIPY.js +1 -0
  31. package/dist/_chunks/device-preflight-LHFLPVAB.js +1 -0
  32. package/dist/_chunks/devices-inventory-I2E3Q4DA.js +1 -0
  33. package/dist/_chunks/devices-main-VV2VYU4T.js +1 -0
  34. package/dist/_chunks/{files-TBJVDQWU.js → files-TTIQ7LYJ.js} +1 -1
  35. package/dist/_chunks/host-main-3JFGVU5P.js +1 -0
  36. package/dist/_chunks/http-profile-NIQDCFPU.js +1 -0
  37. package/dist/_chunks/library-main-CTBW7DAI.js +1 -0
  38. package/dist/_chunks/local-main-227MNGEC.js +1 -0
  39. package/dist/_chunks/local-mcp-XB6E3V2W.js +1 -0
  40. package/dist/_chunks/main-W6NNZFLK.js +2 -0
  41. package/dist/_chunks/mcp-EXQ5UAHB.js +1 -0
  42. package/dist/_chunks/oauth-HC6TI7HB.js +1 -0
  43. package/dist/_chunks/render-main-VTM6WGFP.js +1 -0
  44. package/dist/_chunks/source-import-KKV2UWJO.js +1 -0
  45. package/dist/_chunks/src-OIY5TBQT.js +1 -0
  46. package/dist/_chunks/{stdio-main-JEADWO7U.js → stdio-main-Y7N4NVKU.js} +1 -1
  47. package/dist/_chunks/workspace-main-Y7ZVBRJJ.js +1 -0
  48. package/dist/_types/cli/local/desktop-contract.d.ts +2027 -1
  49. package/dist/_types/cli/local/desktop-device-contract.d.ts +792 -0
  50. package/dist/_types/cli/local/desktop-device-navigation.d.ts +3 -0
  51. package/dist/_types/cli/local/desktop-device-owner.d.ts +270 -0
  52. package/dist/_types/cli/local/desktop-device-state.d.ts +449 -0
  53. package/dist/_types/cli/local/desktop-library.d.ts +853 -0
  54. package/dist/_types/cli/local/desktop-owner.d.ts +784 -1
  55. package/dist/_types/cli/local/ledger.d.ts +74 -20
  56. package/dist/_types/cli/local/manager.d.ts +1255 -49
  57. package/dist/_types/cli/local/mcp-tools.d.ts +296 -54
  58. package/dist/_types/cli/local/releases.d.ts +30 -7
  59. package/dist/_types/cli/local-management.d.ts +8 -0
  60. package/dist/_types/cli/local-navigation.d.ts +1 -0
  61. package/dist/_types/contracts/artifact-discovery.d.ts +136 -4
  62. package/dist/_types/contracts/audio.d.ts +166 -0
  63. package/dist/_types/contracts/composition-authoring.d.ts +8 -8
  64. package/dist/_types/contracts/composition-frame-render.d.ts +4 -4
  65. package/dist/_types/contracts/composition-render-base.d.ts +5 -4
  66. package/dist/_types/contracts/composition-render.d.ts +8 -8
  67. package/dist/_types/contracts/composition-repair.d.ts +10 -10
  68. package/dist/_types/contracts/composition-source-review.d.ts +12 -12
  69. package/dist/_types/contracts/consistency-profile.d.ts +102 -6
  70. package/dist/_types/contracts/continuity-evaluation.d.ts +1 -1
  71. package/dist/_types/contracts/delivery-manifest.d.ts +25 -11729
  72. package/dist/_types/contracts/delivery-operations.d.ts +201 -3909
  73. package/dist/_types/contracts/delivery-summary.d.ts +2 -2
  74. package/dist/_types/contracts/delivery-validation.d.ts +23 -0
  75. package/dist/_types/contracts/device-render.d.ts +79 -0
  76. package/dist/_types/contracts/editor-intelligence.d.ts +392 -2531
  77. package/dist/_types/contracts/exploration-recommendation.d.ts +263 -11607
  78. package/dist/_types/contracts/external-agent-access.d.ts +4 -6
  79. package/dist/_types/contracts/final-ready.d.ts +22 -22
  80. package/dist/_types/contracts/final-render.d.ts +1742 -6949
  81. package/dist/_types/contracts/human-identity.d.ts +13 -0
  82. package/dist/_types/contracts/human-links.d.ts +58 -0
  83. package/dist/_types/contracts/index.d.ts +10 -0
  84. package/dist/_types/contracts/interface/media-output.d.ts +118 -0
  85. package/dist/_types/contracts/interface/operation.d.ts +30 -0
  86. package/dist/_types/contracts/interface/production-snapshot.d.ts +75 -193
  87. package/dist/_types/contracts/interface/query.d.ts +60 -0
  88. package/dist/_types/contracts/keyframe-generation.d.ts +29 -0
  89. package/dist/_types/contracts/local-execution/agent-context.d.ts +385 -0
  90. package/dist/_types/contracts/local-execution/agent-evidence.d.ts +79 -0
  91. package/dist/_types/contracts/local-execution/agent-grant.d.ts +31 -0
  92. package/dist/_types/contracts/local-execution/agent-review.d.ts +522 -64
  93. package/dist/_types/contracts/local-execution/audio-profile.d.ts +6 -0
  94. package/dist/_types/contracts/local-execution/common.d.ts +12 -11
  95. package/dist/_types/contracts/local-execution/completion.d.ts +41 -45
  96. package/dist/_types/contracts/local-execution/components.d.ts +45 -0
  97. package/dist/_types/contracts/local-execution/cpu-preparation.d.ts +46 -0
  98. package/dist/_types/contracts/local-execution/cpu-resources.d.ts +55 -0
  99. package/dist/_types/contracts/local-execution/cpu-speech-job.d.ts +70 -0
  100. package/dist/_types/contracts/local-execution/cpu-speech.d.ts +161 -0
  101. package/dist/_types/contracts/local-execution/descriptor.d.ts +38 -0
  102. package/dist/_types/contracts/local-execution/device-authority.d.ts +31 -0
  103. package/dist/_types/contracts/local-execution/device-inventory.d.ts +76 -0
  104. package/dist/_types/contracts/local-execution/device-workspace.d.ts +11 -0
  105. package/dist/_types/contracts/local-execution/device.d.ts +22 -54
  106. package/dist/_types/contracts/local-execution/external-generation.d.ts +199 -0
  107. package/dist/_types/contracts/local-execution/index.d.ts +32 -0
  108. package/dist/_types/contracts/local-execution/ipc.d.ts +2774 -230
  109. package/dist/_types/contracts/local-execution/library-command.d.ts +620 -0
  110. package/dist/_types/contracts/local-execution/library-result.d.ts +424 -0
  111. package/dist/_types/contracts/local-execution/library.d.ts +873 -0
  112. package/dist/_types/contracts/local-execution/lifecycle.d.ts +289 -47
  113. package/dist/_types/contracts/local-execution/local-navigation.d.ts +285 -65
  114. package/dist/_types/contracts/local-execution/management.d.ts +404 -0
  115. package/dist/_types/contracts/local-execution/media-recipe.d.ts +207 -0
  116. package/dist/_types/contracts/local-execution/media-validation-request.d.ts +232 -0
  117. package/dist/_types/contracts/local-execution/media-validation.d.ts +262 -0
  118. package/dist/_types/contracts/local-execution/object-transfer.d.ts +155 -0
  119. package/dist/_types/contracts/local-execution/offline.d.ts +59 -0
  120. package/dist/_types/contracts/local-execution/preview.d.ts +176 -3561
  121. package/dist/_types/contracts/local-execution/processor-capability.d.ts +41 -0
  122. package/dist/_types/contracts/local-execution/processor-direct.d.ts +290 -0
  123. package/dist/_types/contracts/local-execution/processor-recipes.d.ts +1165 -0
  124. package/dist/_types/contracts/local-execution/processor-toolchain.d.ts +47 -0
  125. package/dist/_types/contracts/local-execution/processor.d.ts +6354 -0
  126. package/dist/_types/contracts/local-execution/project-source-direct.d.ts +201 -0
  127. package/dist/_types/contracts/local-execution/qwen-tts.d.ts +31 -0
  128. package/dist/_types/contracts/local-execution/recognition.d.ts +170 -0
  129. package/dist/_types/contracts/local-execution/speech.d.ts +95 -0
  130. package/dist/_types/contracts/local-execution/tool-selection.d.ts +71 -5
  131. package/dist/_types/contracts/local-execution/whisper.d.ts +24 -0
  132. package/dist/_types/contracts/local-execution/work.d.ts +124 -3402
  133. package/dist/_types/contracts/local-execution/workspace.d.ts +141 -0
  134. package/dist/_types/contracts/media-category.d.ts +11 -0
  135. package/dist/_types/contracts/media-observation.d.ts +929 -8
  136. package/dist/_types/contracts/native-speech-model.d.ts +53 -0
  137. package/dist/_types/contracts/native-speech-options.d.ts +25 -0
  138. package/dist/_types/contracts/navigation-context.d.ts +2 -2
  139. package/dist/_types/contracts/navigation-groups.d.ts +1 -1
  140. package/dist/_types/contracts/navigation.d.ts +60 -20
  141. package/dist/_types/contracts/observation-profile.d.ts +3 -3
  142. package/dist/_types/contracts/production-creation.d.ts +30 -0
  143. package/dist/_types/contracts/production.d.ts +30 -0
  144. package/dist/_types/contracts/programmatic-composition.d.ts +24 -24
  145. package/dist/_types/contracts/programmatic-exploration.d.ts +348 -5985
  146. package/dist/_types/contracts/project-library.d.ts +30 -0
  147. package/dist/_types/contracts/project.d.ts +30 -0
  148. package/dist/_types/contracts/provider-catalog.d.ts +3 -3
  149. package/dist/_types/contracts/provider-models.d.ts +209 -8
  150. package/dist/_types/contracts/provider.d.ts +66 -1
  151. package/dist/_types/contracts/reference-preview.d.ts +19 -0
  152. package/dist/_types/contracts/repair-lifecycle.d.ts +52 -384
  153. package/dist/_types/contracts/repair-plan.d.ts +16 -98
  154. package/dist/_types/contracts/repair-strategy.d.ts +164 -4479
  155. package/dist/_types/contracts/review-intelligence-final-output.d.ts +417 -8149
  156. package/dist/_types/contracts/review-intelligence.d.ts +452 -11420
  157. package/dist/_types/contracts/rough-cut-manifest.d.ts +27 -7
  158. package/dist/_types/contracts/rough-cut-profile.d.ts +12 -3
  159. package/dist/_types/contracts/rough-cut-review.d.ts +144 -12495
  160. package/dist/_types/contracts/rough-cut.d.ts +1170 -5673
  161. package/dist/_types/contracts/shot-preparation-basis.d.ts +2 -2
  162. package/dist/_types/contracts/shot-preparation.d.ts +4 -4
  163. package/dist/_types/contracts/sound-making-plan.d.ts +210 -2
  164. package/dist/_types/contracts/speech-cost.d.ts +96 -0
  165. package/dist/_types/contracts/speech-parameters.d.ts +39 -0
  166. package/dist/_types/contracts/speech.d.ts +602 -22
  167. package/dist/_types/contracts/temporal-evidence-operation.d.ts +1 -0
  168. package/dist/_types/contracts/timeline-audio.d.ts +20 -4
  169. package/dist/_types/contracts/timeline-manifest.d.ts +40 -8
  170. package/dist/_types/contracts/timeline-source-sound.d.ts +42 -4
  171. package/dist/_types/contracts/timeline-v2.d.ts +124 -16
  172. package/dist/_types/contracts/timeline-version-reader.d.ts +288 -40
  173. package/dist/_types/contracts/timeline-visual-layers.d.ts +124 -16
  174. package/dist/_types/contracts/timeline.d.ts +50 -4850
  175. package/dist/_types/contracts/transcription.d.ts +1 -1
  176. package/dist/_types/contracts/video-generation.d.ts +33 -0
  177. package/dist/_types/contracts/visual-exploration.d.ts +1 -1
  178. package/dist/_types/contracts/visual-layer-render.d.ts +298 -47
  179. package/dist/_types/contracts/visual-sequence.d.ts +22 -0
  180. package/dist/_types/contracts/voice-consistency.d.ts +183 -0
  181. package/dist/_types/contracts/voice-profile/contracts.d.ts +821 -0
  182. package/dist/_types/contracts/voice-profile/identity.d.ts +27 -0
  183. package/dist/_types/contracts/voice-profile/interface.d.ts +89 -0
  184. package/dist/_types/contracts/voice-profile/reference.d.ts +106 -0
  185. package/dist/_types/contracts/voice-review.d.ts +1194 -0
  186. package/dist/_types/contracts/workspace.d.ts +62 -0
  187. package/dist/_types/sdk/errors.d.ts +8 -3
  188. package/dist/_types/sdk/local-runtime/components.d.ts +2 -0
  189. package/dist/_types/sdk/local-runtime/device-client.d.ts +180 -18
  190. package/dist/_types/sdk/local-runtime/library.d.ts +268 -0
  191. package/dist/_types/sdk/local-runtime/workspace.d.ts +186 -0
  192. package/dist/_types/sdk/local-runtime-client.d.ts +1917 -92
  193. package/dist/entry.js +1 -1
  194. package/dist/local-management.js +1 -1
  195. package/dist/local-navigation.js +1 -1
  196. package/dist/native/JobNative.cs +10 -0
  197. package/dist/native/JobRunner.cs +24 -3
  198. package/dist/native/NativeMain.cs +15 -0
  199. package/package.json +2 -8
  200. package/README.md +0 -78
  201. package/dist/_chunks/chunk-6NVIN2NI.js +0 -1
  202. package/dist/_chunks/chunk-E57YVMQ4.js +0 -1
  203. package/dist/_chunks/chunk-EAZKDCLD.js +0 -1
  204. package/dist/_chunks/chunk-GIEYSDCG.js +0 -1
  205. package/dist/_chunks/chunk-GJ7BZJLW.js +0 -1
  206. package/dist/_chunks/chunk-HLKERZIE.js +0 -1
  207. package/dist/_chunks/chunk-QC7RLTGU.js +0 -1
  208. package/dist/_chunks/chunk-RUMDDTON.js +0 -1
  209. package/dist/_chunks/chunk-U2UKGYGF.js +0 -1
  210. package/dist/_chunks/chunk-VPYAXWXY.js +0 -1
  211. package/dist/_chunks/local-main-SOERK22D.js +0 -1
  212. package/dist/_chunks/local-mcp-JLPXXIDW.js +0 -1
  213. package/dist/_chunks/main-4SNF5EKE.js +0 -2
  214. package/dist/_chunks/mcp-EIMXNRH3.js +0 -1
  215. package/dist/_chunks/oauth-257CEUQH.js +0 -1
  216. package/dist/_chunks/project-connect-6MH2QG6G.js +0 -1
  217. package/dist/_chunks/src-7F6ZEU3U.js +0 -1
@@ -0,0 +1,449 @@
1
+ import { type DesktopDeviceScope, type DesktopDeviceState } from "./desktop-device-contract.js";
2
+ /** Mechanical receipts only; current cloud authority is checked by every native call. */
3
+ export declare class DesktopDeviceRecords {
4
+ readonly root: string;
5
+ readonly scope: DesktopDeviceScope;
6
+ private constructor();
7
+ static open(home: string, raw: unknown): Promise<DesktopDeviceRecords>;
8
+ /** 无设备记录时保留空状态,不创建登记目录或密钥。 */
9
+ static inspect(home: string, raw: unknown): Promise<{
10
+ revision: number;
11
+ scope: {
12
+ origin: string;
13
+ tenantId: string;
14
+ principalId: string;
15
+ };
16
+ enrollment: {
17
+ tenantId: string;
18
+ requestId: string;
19
+ label: string;
20
+ platform: {
21
+ os: "darwin" | "linux" | "win32";
22
+ architecture: "arm64" | "x64";
23
+ };
24
+ runtimeVersion: string;
25
+ publicKey: {
26
+ kty: "EC";
27
+ crv: "P-256";
28
+ x: string;
29
+ y: string;
30
+ };
31
+ } | null;
32
+ device: {
33
+ tenantId: string;
34
+ publicKey: {
35
+ kty: "EC";
36
+ crv: "P-256";
37
+ x: string;
38
+ y: string;
39
+ };
40
+ label: string;
41
+ platform: {
42
+ os: "darwin" | "linux" | "win32";
43
+ architecture: "arm64" | "x64";
44
+ };
45
+ runtimeVersion: string;
46
+ deviceId: string;
47
+ revision: number;
48
+ enrolledByPrincipalId: string;
49
+ createdAt: string;
50
+ verifiedAt: string | null;
51
+ revokedAt: string | null;
52
+ } | null;
53
+ previews: ({
54
+ semanticStatus: "ACCEPTED";
55
+ renderId: string;
56
+ operationId: string & import("zod").$brand<"OperationId">;
57
+ productionId: string;
58
+ timelineVersionId: string;
59
+ timelineFingerprint: string;
60
+ executionClass: "LIVE" | "TEST_ONLY";
61
+ manifestFingerprint: string;
62
+ productionRevision: number;
63
+ placement: {
64
+ target: "DEVICE" | "SERVER";
65
+ reason: "OFFLINE" | "UNQUALIFIED" | "BUSY" | "LOCAL_AVAILABLE" | "CLOUD_ONLY" | "LEASE_RECOVERY";
66
+ policy: {
67
+ mode: "local-only";
68
+ deviceId: string;
69
+ } | {
70
+ mode: "local-preferred";
71
+ deviceId: string;
72
+ } | {
73
+ mode: "cloud-only";
74
+ };
75
+ };
76
+ humanLinks?: {
77
+ status: "AVAILABLE";
78
+ items: {
79
+ rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
80
+ href: string;
81
+ }[];
82
+ } | {
83
+ status: "UNAVAILABLE" | "UNCONFIGURED";
84
+ items: {
85
+ rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
86
+ href: string;
87
+ }[];
88
+ } | undefined;
89
+ deviceExecution?: {
90
+ mode: "tenant-device-only";
91
+ deviceId: string;
92
+ runtimeJobId: string;
93
+ validationMode?: "TENANT_TRUSTED_VALIDATOR" | undefined;
94
+ } | undefined;
95
+ } | {
96
+ semanticStatus: "ACCEPTED";
97
+ renderId: string;
98
+ operationId: string & import("zod").$brand<"OperationId">;
99
+ productionId: string;
100
+ timelineVersionId: string;
101
+ timelineFingerprint: string;
102
+ executionClass: "LIVE" | "TEST_ONLY";
103
+ manifestFingerprint: string;
104
+ productionRevision: number;
105
+ selectionId: string;
106
+ selectionVersion: number;
107
+ profileId: "FINAL_H264_1080P_V1" | "FINAL_H264_720P_V1" | "FINAL_H264_480P_V1";
108
+ placement: {
109
+ target: "DEVICE" | "SERVER";
110
+ reason: "OFFLINE" | "UNQUALIFIED" | "BUSY" | "LOCAL_AVAILABLE" | "CLOUD_ONLY" | "LEASE_RECOVERY";
111
+ policy: {
112
+ mode: "local-only";
113
+ deviceId: string;
114
+ } | {
115
+ mode: "local-preferred";
116
+ deviceId: string;
117
+ } | {
118
+ mode: "cloud-only";
119
+ };
120
+ };
121
+ humanLinks?: {
122
+ status: "AVAILABLE";
123
+ items: {
124
+ rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
125
+ href: string;
126
+ }[];
127
+ } | {
128
+ status: "UNAVAILABLE" | "UNCONFIGURED";
129
+ items: {
130
+ rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
131
+ href: string;
132
+ }[];
133
+ } | undefined;
134
+ deviceExecution?: {
135
+ mode: "tenant-device-only";
136
+ deviceId: string;
137
+ runtimeJobId: string;
138
+ validationMode?: "TENANT_TRUSTED_VALIDATOR" | undefined;
139
+ } | undefined;
140
+ })[];
141
+ connectorId: string | null;
142
+ connection: {
143
+ phase: "READY" | "CONNECTED" | "CONNECTING";
144
+ expiresAt: string;
145
+ deviceRevision: number;
146
+ tenantMediaProcessing?: true | undefined;
147
+ processorCapabilities?: ("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" | "SPEECH_SYNTHESIZE_CPU" | "TRANSCRIBE_AUDIO" | "TRANSCRIBE_EXTERNAL_QWEN")[] | undefined;
148
+ tenantMediaValidation?: true | undefined;
149
+ } | null;
150
+ pending: {
151
+ command: {
152
+ kind: "ENROLL";
153
+ input: {
154
+ tenantId: string;
155
+ requestId: string;
156
+ label: string;
157
+ platform: {
158
+ os: "darwin" | "linux" | "win32";
159
+ architecture: "arm64" | "x64";
160
+ };
161
+ runtimeVersion: string;
162
+ publicKey: {
163
+ kty: "EC";
164
+ crv: "P-256";
165
+ x: string;
166
+ y: string;
167
+ };
168
+ };
169
+ } | {
170
+ kind: "REVOKE_DEVICE";
171
+ input: {
172
+ tenantId: string;
173
+ deviceId: string;
174
+ requestId: string;
175
+ expectedRevision: number;
176
+ };
177
+ } | {
178
+ kind: "PREVIEW";
179
+ input: {
180
+ tenantId: string & import("zod").$brand<"TenantId">;
181
+ productionId: string & import("zod").$brand<"ProductionId">;
182
+ idempotencyKey: string;
183
+ expectedProductionRevision: number;
184
+ timelineVersionId: string;
185
+ profileId: "PREVIEW_H264_480P_V1" | "PREVIEW_H264_720P_V1" | "PREVIEW_H264_1080P_V1";
186
+ timelineFingerprint: string;
187
+ placement: {
188
+ mode: "local-only";
189
+ deviceId: string;
190
+ } | {
191
+ mode: "local-preferred";
192
+ deviceId: string;
193
+ } | {
194
+ mode: "cloud-only";
195
+ };
196
+ localProfile?: "STUDIO_MEDIA_V2" | undefined;
197
+ };
198
+ } | {
199
+ kind: "FINAL_RENDER";
200
+ input: {
201
+ tenantId: string & import("zod").$brand<"TenantId">;
202
+ productionId: string & import("zod").$brand<"ProductionId">;
203
+ idempotencyKey: string;
204
+ expectedProductionRevision: number;
205
+ timelineVersionId: string;
206
+ profileId: "FINAL_H264_1080P_V1" | "FINAL_H264_720P_V1" | "FINAL_H264_480P_V1";
207
+ timelineFingerprint: string;
208
+ selectionId: string;
209
+ audioPolicy: "SILENT" | "MIXED";
210
+ captionPolicy: "NONE" | "BURN_IN";
211
+ expectedFinalReadyVersion: number;
212
+ placement: {
213
+ mode: "local-only";
214
+ deviceId: string;
215
+ } | {
216
+ mode: "local-preferred";
217
+ deviceId: string;
218
+ } | {
219
+ mode: "cloud-only";
220
+ };
221
+ };
222
+ };
223
+ fingerprint: string;
224
+ phase: "SENDING" | "PREPARED" | "REFUSED";
225
+ } | null;
226
+ } | null>;
227
+ current(): Promise<DesktopDeviceState>;
228
+ save(before: DesktopDeviceState, fields: Partial<DesktopDeviceState>): Promise<{
229
+ revision: number;
230
+ scope: {
231
+ origin: string;
232
+ tenantId: string;
233
+ principalId: string;
234
+ };
235
+ enrollment: {
236
+ tenantId: string;
237
+ requestId: string;
238
+ label: string;
239
+ platform: {
240
+ os: "darwin" | "linux" | "win32";
241
+ architecture: "arm64" | "x64";
242
+ };
243
+ runtimeVersion: string;
244
+ publicKey: {
245
+ kty: "EC";
246
+ crv: "P-256";
247
+ x: string;
248
+ y: string;
249
+ };
250
+ } | null;
251
+ device: {
252
+ tenantId: string;
253
+ publicKey: {
254
+ kty: "EC";
255
+ crv: "P-256";
256
+ x: string;
257
+ y: string;
258
+ };
259
+ label: string;
260
+ platform: {
261
+ os: "darwin" | "linux" | "win32";
262
+ architecture: "arm64" | "x64";
263
+ };
264
+ runtimeVersion: string;
265
+ deviceId: string;
266
+ revision: number;
267
+ enrolledByPrincipalId: string;
268
+ createdAt: string;
269
+ verifiedAt: string | null;
270
+ revokedAt: string | null;
271
+ } | null;
272
+ previews: ({
273
+ semanticStatus: "ACCEPTED";
274
+ renderId: string;
275
+ operationId: string & import("zod").$brand<"OperationId">;
276
+ productionId: string;
277
+ timelineVersionId: string;
278
+ timelineFingerprint: string;
279
+ executionClass: "LIVE" | "TEST_ONLY";
280
+ manifestFingerprint: string;
281
+ productionRevision: number;
282
+ placement: {
283
+ target: "DEVICE" | "SERVER";
284
+ reason: "OFFLINE" | "UNQUALIFIED" | "BUSY" | "LOCAL_AVAILABLE" | "CLOUD_ONLY" | "LEASE_RECOVERY";
285
+ policy: {
286
+ mode: "local-only";
287
+ deviceId: string;
288
+ } | {
289
+ mode: "local-preferred";
290
+ deviceId: string;
291
+ } | {
292
+ mode: "cloud-only";
293
+ };
294
+ };
295
+ humanLinks?: {
296
+ status: "AVAILABLE";
297
+ items: {
298
+ rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
299
+ href: string;
300
+ }[];
301
+ } | {
302
+ status: "UNAVAILABLE" | "UNCONFIGURED";
303
+ items: {
304
+ rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
305
+ href: string;
306
+ }[];
307
+ } | undefined;
308
+ deviceExecution?: {
309
+ mode: "tenant-device-only";
310
+ deviceId: string;
311
+ runtimeJobId: string;
312
+ validationMode?: "TENANT_TRUSTED_VALIDATOR" | undefined;
313
+ } | undefined;
314
+ } | {
315
+ semanticStatus: "ACCEPTED";
316
+ renderId: string;
317
+ operationId: string & import("zod").$brand<"OperationId">;
318
+ productionId: string;
319
+ timelineVersionId: string;
320
+ timelineFingerprint: string;
321
+ executionClass: "LIVE" | "TEST_ONLY";
322
+ manifestFingerprint: string;
323
+ productionRevision: number;
324
+ selectionId: string;
325
+ selectionVersion: number;
326
+ profileId: "FINAL_H264_1080P_V1" | "FINAL_H264_720P_V1" | "FINAL_H264_480P_V1";
327
+ placement: {
328
+ target: "DEVICE" | "SERVER";
329
+ reason: "OFFLINE" | "UNQUALIFIED" | "BUSY" | "LOCAL_AVAILABLE" | "CLOUD_ONLY" | "LEASE_RECOVERY";
330
+ policy: {
331
+ mode: "local-only";
332
+ deviceId: string;
333
+ } | {
334
+ mode: "local-preferred";
335
+ deviceId: string;
336
+ } | {
337
+ mode: "cloud-only";
338
+ };
339
+ };
340
+ humanLinks?: {
341
+ status: "AVAILABLE";
342
+ items: {
343
+ rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
344
+ href: string;
345
+ }[];
346
+ } | {
347
+ status: "UNAVAILABLE" | "UNCONFIGURED";
348
+ items: {
349
+ rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
350
+ href: string;
351
+ }[];
352
+ } | undefined;
353
+ deviceExecution?: {
354
+ mode: "tenant-device-only";
355
+ deviceId: string;
356
+ runtimeJobId: string;
357
+ validationMode?: "TENANT_TRUSTED_VALIDATOR" | undefined;
358
+ } | undefined;
359
+ })[];
360
+ connectorId: string | null;
361
+ connection: {
362
+ phase: "READY" | "CONNECTED" | "CONNECTING";
363
+ expiresAt: string;
364
+ deviceRevision: number;
365
+ tenantMediaProcessing?: true | undefined;
366
+ processorCapabilities?: ("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" | "SPEECH_SYNTHESIZE_CPU" | "TRANSCRIBE_AUDIO" | "TRANSCRIBE_EXTERNAL_QWEN")[] | undefined;
367
+ tenantMediaValidation?: true | undefined;
368
+ } | null;
369
+ pending: {
370
+ command: {
371
+ kind: "ENROLL";
372
+ input: {
373
+ tenantId: string;
374
+ requestId: string;
375
+ label: string;
376
+ platform: {
377
+ os: "darwin" | "linux" | "win32";
378
+ architecture: "arm64" | "x64";
379
+ };
380
+ runtimeVersion: string;
381
+ publicKey: {
382
+ kty: "EC";
383
+ crv: "P-256";
384
+ x: string;
385
+ y: string;
386
+ };
387
+ };
388
+ } | {
389
+ kind: "REVOKE_DEVICE";
390
+ input: {
391
+ tenantId: string;
392
+ deviceId: string;
393
+ requestId: string;
394
+ expectedRevision: number;
395
+ };
396
+ } | {
397
+ kind: "PREVIEW";
398
+ input: {
399
+ tenantId: string & import("zod").$brand<"TenantId">;
400
+ productionId: string & import("zod").$brand<"ProductionId">;
401
+ idempotencyKey: string;
402
+ expectedProductionRevision: number;
403
+ timelineVersionId: string;
404
+ profileId: "PREVIEW_H264_480P_V1" | "PREVIEW_H264_720P_V1" | "PREVIEW_H264_1080P_V1";
405
+ timelineFingerprint: string;
406
+ placement: {
407
+ mode: "local-only";
408
+ deviceId: string;
409
+ } | {
410
+ mode: "local-preferred";
411
+ deviceId: string;
412
+ } | {
413
+ mode: "cloud-only";
414
+ };
415
+ localProfile?: "STUDIO_MEDIA_V2" | undefined;
416
+ };
417
+ } | {
418
+ kind: "FINAL_RENDER";
419
+ input: {
420
+ tenantId: string & import("zod").$brand<"TenantId">;
421
+ productionId: string & import("zod").$brand<"ProductionId">;
422
+ idempotencyKey: string;
423
+ expectedProductionRevision: number;
424
+ timelineVersionId: string;
425
+ profileId: "FINAL_H264_1080P_V1" | "FINAL_H264_720P_V1" | "FINAL_H264_480P_V1";
426
+ timelineFingerprint: string;
427
+ selectionId: string;
428
+ audioPolicy: "SILENT" | "MIXED";
429
+ captionPolicy: "NONE" | "BURN_IN";
430
+ expectedFinalReadyVersion: number;
431
+ placement: {
432
+ mode: "local-only";
433
+ deviceId: string;
434
+ } | {
435
+ mode: "local-preferred";
436
+ deviceId: string;
437
+ } | {
438
+ mode: "cloud-only";
439
+ };
440
+ };
441
+ };
442
+ fingerprint: string;
443
+ phase: "SENDING" | "PREPARED" | "REFUSED";
444
+ } | null;
445
+ }>;
446
+ keyPath(): string;
447
+ connectorPath(id: string): string;
448
+ }
449
+ export declare function desktopDeviceConnector(home: string, scope: DesktopDeviceScope): Promise<string>;