@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
@@ -3,12 +3,12 @@ export declare function runDesktopDeviceRequest(home: string, raw: unknown): Pro
3
3
  view: {
4
4
  revision: number;
5
5
  connection: {
6
- phase: "READY" | "CONNECTING" | "CONNECTED";
6
+ phase: "READY" | "CONNECTED" | "CONNECTING";
7
7
  expiresAt: string;
8
- projects: {
9
- tenantId: string;
10
- projectId: string;
11
- }[];
8
+ deviceRevision: number;
9
+ tenantMediaProcessing?: true | undefined;
10
+ 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" | "TRANSCRIBE_AUDIO" | "TRANSCRIBE_EXTERNAL_QWEN")[] | undefined;
11
+ tenantMediaValidation?: true | undefined;
12
12
  } | null;
13
13
  previews: ({
14
14
  semanticStatus: "ACCEPTED";
@@ -37,6 +37,7 @@ export declare function runDesktopDeviceRequest(home: string, raw: unknown): Pro
37
37
  mode: "tenant-device-only";
38
38
  deviceId: string;
39
39
  runtimeJobId: string;
40
+ validationMode?: "TENANT_TRUSTED_VALIDATOR" | undefined;
40
41
  } | undefined;
41
42
  } | {
42
43
  semanticStatus: "ACCEPTED";
@@ -68,28 +69,17 @@ export declare function runDesktopDeviceRequest(home: string, raw: unknown): Pro
68
69
  mode: "tenant-device-only";
69
70
  deviceId: string;
70
71
  runtimeJobId: string;
72
+ validationMode?: "TENANT_TRUSTED_VALIDATOR" | undefined;
71
73
  } | undefined;
72
74
  })[];
73
- grants: {
74
- tenantId: string;
75
- projectId: string;
76
- capability: "ROUGH_CUT_PREVIEW_V1" | "STUDIO_MEDIA_V2";
77
- expiresAt: string;
78
- deviceId: string;
79
- deviceRevision: number;
80
- grantId: string;
81
- revision: number;
82
- approvedByPrincipalId: string;
83
- createdAt: string;
84
- revokedAt: string | null;
85
- executionPolicy?: "DEVICE_ONLY" | undefined;
86
- }[];
87
75
  device: {
88
76
  deviceId: string;
89
77
  label: string;
78
+ revision: number;
79
+ revokedAt: string | null;
90
80
  } | null;
91
81
  pending: {
92
- kind: "FINAL_RENDER" | "ENROLL" | "GRANT" | "REVOKE_GRANT" | "PREVIEW";
82
+ kind: "FINAL_RENDER" | "ENROLL" | "REVOKE_DEVICE" | "PREVIEW";
93
83
  phase: "SENDING" | "PREPARED" | "REFUSED";
94
84
  fingerprint: string;
95
85
  } | null;
@@ -119,24 +109,10 @@ export declare function runDesktopDeviceRequest(home: string, raw: unknown): Pro
119
109
  };
120
110
  };
121
111
  } | {
122
- kind: "GRANT";
112
+ kind: "REVOKE_DEVICE";
123
113
  input: {
124
114
  tenantId: string;
125
- projectId: string;
126
- requestId: string;
127
115
  deviceId: string;
128
- deviceRevision: number;
129
- expectedRevision: number;
130
- expiresAt: string;
131
- capability: "ROUGH_CUT_PREVIEW_V1" | "STUDIO_MEDIA_V2";
132
- executionPolicy?: "DEVICE_ONLY" | undefined;
133
- };
134
- } | {
135
- kind: "REVOKE_GRANT";
136
- input: {
137
- tenantId: string;
138
- projectId: string;
139
- grantId: string;
140
116
  requestId: string;
141
117
  expectedRevision: number;
142
118
  };
@@ -186,6 +162,10 @@ export declare function runDesktopDeviceRequest(home: string, raw: unknown): Pro
186
162
  };
187
163
  };
188
164
  } | undefined;
165
+ mediaValidationSupported?: boolean | undefined;
166
+ mediaProcessingSupported?: boolean | undefined;
167
+ localLibrarySupported?: boolean | undefined;
168
+ compositionProcessingSupported?: boolean | undefined;
189
169
  }>;
190
170
  export declare function desktopDevicePending(home: string, scope: unknown): Promise<{
191
171
  kind: "ENROLL";
@@ -206,24 +186,10 @@ export declare function desktopDevicePending(home: string, scope: unknown): Prom
206
186
  };
207
187
  };
208
188
  } | {
209
- kind: "GRANT";
189
+ kind: "REVOKE_DEVICE";
210
190
  input: {
211
191
  tenantId: string;
212
- projectId: string;
213
- requestId: string;
214
192
  deviceId: string;
215
- deviceRevision: number;
216
- expectedRevision: number;
217
- expiresAt: string;
218
- capability: "ROUGH_CUT_PREVIEW_V1" | "STUDIO_MEDIA_V2";
219
- executionPolicy?: "DEVICE_ONLY" | undefined;
220
- };
221
- } | {
222
- kind: "REVOKE_GRANT";
223
- input: {
224
- tenantId: string;
225
- projectId: string;
226
- grantId: string;
227
193
  requestId: string;
228
194
  expectedRevision: number;
229
195
  };
@@ -5,8 +5,8 @@ export declare class DesktopDeviceRecords {
5
5
  readonly scope: DesktopDeviceScope;
6
6
  private constructor();
7
7
  static open(home: string, raw: unknown): Promise<DesktopDeviceRecords>;
8
- current(): Promise<DesktopDeviceState>;
9
- save(before: DesktopDeviceState, fields: Partial<DesktopDeviceState>): Promise<{
8
+ /** 无设备记录时保留空状态,不创建登记目录或密钥。 */
9
+ static inspect(home: string, raw: unknown): Promise<{
10
10
  revision: number;
11
11
  scope: {
12
12
  origin: string;
@@ -50,20 +50,6 @@ export declare class DesktopDeviceRecords {
50
50
  verifiedAt: string | null;
51
51
  revokedAt: string | null;
52
52
  } | null;
53
- grants: {
54
- tenantId: string;
55
- projectId: string;
56
- capability: "ROUGH_CUT_PREVIEW_V1" | "STUDIO_MEDIA_V2";
57
- expiresAt: string;
58
- deviceId: string;
59
- deviceRevision: number;
60
- grantId: string;
61
- revision: number;
62
- approvedByPrincipalId: string;
63
- createdAt: string;
64
- revokedAt: string | null;
65
- executionPolicy?: "DEVICE_ONLY" | undefined;
66
- }[];
67
53
  previews: ({
68
54
  semanticStatus: "ACCEPTED";
69
55
  renderId: string;
@@ -91,6 +77,7 @@ export declare class DesktopDeviceRecords {
91
77
  mode: "tenant-device-only";
92
78
  deviceId: string;
93
79
  runtimeJobId: string;
80
+ validationMode?: "TENANT_TRUSTED_VALIDATOR" | undefined;
94
81
  } | undefined;
95
82
  } | {
96
83
  semanticStatus: "ACCEPTED";
@@ -122,16 +109,17 @@ export declare class DesktopDeviceRecords {
122
109
  mode: "tenant-device-only";
123
110
  deviceId: string;
124
111
  runtimeJobId: string;
112
+ validationMode?: "TENANT_TRUSTED_VALIDATOR" | undefined;
125
113
  } | undefined;
126
114
  })[];
127
115
  connectorId: string | null;
128
116
  connection: {
129
- phase: "READY" | "CONNECTING" | "CONNECTED";
117
+ phase: "READY" | "CONNECTED" | "CONNECTING";
130
118
  expiresAt: string;
131
- projects: {
132
- tenantId: string;
133
- projectId: string;
134
- }[];
119
+ deviceRevision: number;
120
+ tenantMediaProcessing?: true | undefined;
121
+ 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" | "TRANSCRIBE_AUDIO" | "TRANSCRIBE_EXTERNAL_QWEN")[] | undefined;
122
+ tenantMediaValidation?: true | undefined;
135
123
  } | null;
136
124
  pending: {
137
125
  command: {
@@ -153,24 +141,203 @@ export declare class DesktopDeviceRecords {
153
141
  };
154
142
  };
155
143
  } | {
156
- kind: "GRANT";
144
+ kind: "REVOKE_DEVICE";
157
145
  input: {
158
146
  tenantId: string;
159
- projectId: string;
160
- requestId: string;
161
147
  deviceId: string;
162
- deviceRevision: number;
148
+ requestId: string;
163
149
  expectedRevision: number;
164
- expiresAt: string;
165
- capability: "ROUGH_CUT_PREVIEW_V1" | "STUDIO_MEDIA_V2";
166
- executionPolicy?: "DEVICE_ONLY" | undefined;
167
150
  };
168
151
  } | {
169
- kind: "REVOKE_GRANT";
152
+ kind: "PREVIEW";
153
+ input: {
154
+ tenantId: string & import("zod").$brand<"TenantId">;
155
+ idempotencyKey: string;
156
+ productionId: string & import("zod").$brand<"ProductionId">;
157
+ expectedProductionRevision: number;
158
+ timelineVersionId: string;
159
+ profileId: "PREVIEW_H264_480P_V1" | "PREVIEW_H264_720P_V1" | "PREVIEW_H264_1080P_V1";
160
+ timelineFingerprint: string;
161
+ placement: {
162
+ mode: "local-only";
163
+ deviceId: string;
164
+ } | {
165
+ mode: "local-preferred";
166
+ deviceId: string;
167
+ } | {
168
+ mode: "cloud-only";
169
+ };
170
+ localProfile?: "STUDIO_MEDIA_V2" | undefined;
171
+ };
172
+ } | {
173
+ kind: "FINAL_RENDER";
174
+ input: {
175
+ tenantId: string & import("zod").$brand<"TenantId">;
176
+ idempotencyKey: string;
177
+ productionId: string & import("zod").$brand<"ProductionId">;
178
+ expectedProductionRevision: number;
179
+ timelineVersionId: string;
180
+ profileId: "FINAL_H264_1080P_V1" | "FINAL_H264_720P_V1" | "FINAL_H264_480P_V1";
181
+ timelineFingerprint: string;
182
+ selectionId: string;
183
+ audioPolicy: "SILENT" | "MIXED";
184
+ captionPolicy: "NONE" | "BURN_IN";
185
+ expectedFinalReadyVersion: number;
186
+ placement: {
187
+ mode: "local-only";
188
+ deviceId: string;
189
+ } | {
190
+ mode: "local-preferred";
191
+ deviceId: string;
192
+ } | {
193
+ mode: "cloud-only";
194
+ };
195
+ };
196
+ };
197
+ fingerprint: string;
198
+ phase: "SENDING" | "PREPARED" | "REFUSED";
199
+ } | null;
200
+ } | null>;
201
+ current(): Promise<DesktopDeviceState>;
202
+ save(before: DesktopDeviceState, fields: Partial<DesktopDeviceState>): Promise<{
203
+ revision: number;
204
+ scope: {
205
+ origin: string;
206
+ tenantId: string;
207
+ principalId: string;
208
+ };
209
+ enrollment: {
210
+ tenantId: string;
211
+ requestId: string;
212
+ label: string;
213
+ platform: {
214
+ os: "darwin" | "linux" | "win32";
215
+ architecture: "x64" | "arm64";
216
+ };
217
+ runtimeVersion: string;
218
+ publicKey: {
219
+ kty: "EC";
220
+ crv: "P-256";
221
+ x: string;
222
+ y: string;
223
+ };
224
+ } | null;
225
+ device: {
226
+ tenantId: string;
227
+ publicKey: {
228
+ kty: "EC";
229
+ crv: "P-256";
230
+ x: string;
231
+ y: string;
232
+ };
233
+ label: string;
234
+ platform: {
235
+ os: "darwin" | "linux" | "win32";
236
+ architecture: "x64" | "arm64";
237
+ };
238
+ runtimeVersion: string;
239
+ deviceId: string;
240
+ revision: number;
241
+ enrolledByPrincipalId: string;
242
+ createdAt: string;
243
+ verifiedAt: string | null;
244
+ revokedAt: string | null;
245
+ } | null;
246
+ previews: ({
247
+ semanticStatus: "ACCEPTED";
248
+ renderId: string;
249
+ operationId: string & import("zod").$brand<"OperationId">;
250
+ productionId: string;
251
+ timelineVersionId: string;
252
+ timelineFingerprint: string;
253
+ executionClass: "LIVE" | "TEST_ONLY";
254
+ manifestFingerprint: string;
255
+ productionRevision: number;
256
+ placement: {
257
+ target: "DEVICE" | "SERVER";
258
+ reason: "OFFLINE" | "UNQUALIFIED" | "BUSY" | "LOCAL_AVAILABLE" | "CLOUD_ONLY" | "LEASE_RECOVERY";
259
+ policy: {
260
+ mode: "local-only";
261
+ deviceId: string;
262
+ } | {
263
+ mode: "local-preferred";
264
+ deviceId: string;
265
+ } | {
266
+ mode: "cloud-only";
267
+ };
268
+ };
269
+ deviceExecution?: {
270
+ mode: "tenant-device-only";
271
+ deviceId: string;
272
+ runtimeJobId: string;
273
+ validationMode?: "TENANT_TRUSTED_VALIDATOR" | undefined;
274
+ } | undefined;
275
+ } | {
276
+ semanticStatus: "ACCEPTED";
277
+ renderId: string;
278
+ operationId: string & import("zod").$brand<"OperationId">;
279
+ productionId: string;
280
+ timelineVersionId: string;
281
+ timelineFingerprint: string;
282
+ executionClass: "LIVE" | "TEST_ONLY";
283
+ manifestFingerprint: string;
284
+ productionRevision: number;
285
+ selectionId: string;
286
+ selectionVersion: number;
287
+ profileId: "FINAL_H264_1080P_V1" | "FINAL_H264_720P_V1" | "FINAL_H264_480P_V1";
288
+ placement: {
289
+ target: "DEVICE" | "SERVER";
290
+ reason: "OFFLINE" | "UNQUALIFIED" | "BUSY" | "LOCAL_AVAILABLE" | "CLOUD_ONLY" | "LEASE_RECOVERY";
291
+ policy: {
292
+ mode: "local-only";
293
+ deviceId: string;
294
+ } | {
295
+ mode: "local-preferred";
296
+ deviceId: string;
297
+ } | {
298
+ mode: "cloud-only";
299
+ };
300
+ };
301
+ deviceExecution?: {
302
+ mode: "tenant-device-only";
303
+ deviceId: string;
304
+ runtimeJobId: string;
305
+ validationMode?: "TENANT_TRUSTED_VALIDATOR" | undefined;
306
+ } | undefined;
307
+ })[];
308
+ connectorId: string | null;
309
+ connection: {
310
+ phase: "READY" | "CONNECTED" | "CONNECTING";
311
+ expiresAt: string;
312
+ deviceRevision: number;
313
+ tenantMediaProcessing?: true | undefined;
314
+ 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" | "TRANSCRIBE_AUDIO" | "TRANSCRIBE_EXTERNAL_QWEN")[] | undefined;
315
+ tenantMediaValidation?: true | undefined;
316
+ } | null;
317
+ pending: {
318
+ command: {
319
+ kind: "ENROLL";
170
320
  input: {
171
321
  tenantId: string;
172
- projectId: string;
173
- grantId: string;
322
+ requestId: string;
323
+ label: string;
324
+ platform: {
325
+ os: "darwin" | "linux" | "win32";
326
+ architecture: "x64" | "arm64";
327
+ };
328
+ runtimeVersion: string;
329
+ publicKey: {
330
+ kty: "EC";
331
+ crv: "P-256";
332
+ x: string;
333
+ y: string;
334
+ };
335
+ };
336
+ } | {
337
+ kind: "REVOKE_DEVICE";
338
+ input: {
339
+ tenantId: string;
340
+ deviceId: string;
174
341
  requestId: string;
175
342
  expectedRevision: number;
176
343
  };