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

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 (92) hide show
  1. package/COMPATIBILITY.json +7 -7
  2. package/README.md +45 -4
  3. package/components/runtime.json +3 -3
  4. package/components/runtime.tgz +0 -0
  5. package/dist/_chunks/{chunk-25EDDZQA.js → chunk-6LU6GJKW.js} +1 -1
  6. package/dist/_chunks/chunk-CA54SKBO.js +1 -0
  7. package/dist/_chunks/chunk-D533YC7J.js +1 -0
  8. package/dist/_chunks/{chunk-G42IS5JF.js → chunk-DXJQWTLG.js} +1 -1
  9. package/dist/_chunks/{chunk-MSOMVWKN.js → chunk-FU3524Z6.js} +1 -1
  10. package/dist/_chunks/chunk-JLOHTDP6.js +1 -0
  11. package/dist/_chunks/chunk-KB2GVAN7.js +1 -0
  12. package/dist/_chunks/{chunk-RUMDDTON.js → chunk-KNFUMWDY.js} +1 -1
  13. package/dist/_chunks/chunk-PBEHCYR7.js +1 -0
  14. package/dist/_chunks/chunk-RNOIRNC3.js +1 -0
  15. package/dist/_chunks/chunk-VDQOSVZY.js +1 -0
  16. package/dist/_chunks/chunk-XZP6RNGC.js +1 -0
  17. package/dist/_chunks/chunk-YKOJPJZR.js +1 -0
  18. package/dist/_chunks/{files-TBJVDQWU.js → files-TTIQ7LYJ.js} +1 -1
  19. package/dist/_chunks/local-main-GSL2FQOG.js +1 -0
  20. package/dist/_chunks/local-mcp-VYHO4ZE3.js +1 -0
  21. package/dist/_chunks/{main-4SNF5EKE.js → main-KLXOK7QK.js} +2 -2
  22. package/dist/_chunks/mcp-P7W623FE.js +1 -0
  23. package/dist/_chunks/oauth-WJ36KWAC.js +1 -0
  24. package/dist/_chunks/project-connect-W7V3OALV.js +1 -0
  25. package/dist/_chunks/render-main-ZW6UJHGN.js +1 -0
  26. package/dist/_chunks/src-BXLFLNRG.js +1 -0
  27. package/dist/_chunks/{stdio-main-JEADWO7U.js → stdio-main-4Z2JVCMO.js} +1 -1
  28. package/dist/_types/cli/local/desktop-contract.d.ts +1455 -0
  29. package/dist/_types/cli/local/desktop-device-contract.d.ts +1165 -0
  30. package/dist/_types/cli/local/desktop-device-navigation.d.ts +3 -0
  31. package/dist/_types/cli/local/desktop-device-owner.d.ts +275 -0
  32. package/dist/_types/cli/local/desktop-device-state.d.ts +230 -0
  33. package/dist/_types/cli/local/desktop-owner.d.ts +554 -1
  34. package/dist/_types/cli/local/ledger.d.ts +62 -10
  35. package/dist/_types/cli/local/manager.d.ts +515 -22
  36. package/dist/_types/cli/local/mcp-tools.d.ts +77 -14
  37. package/dist/_types/cli/local/project-render-tools.d.ts +522 -0
  38. package/dist/_types/cli/local/releases.d.ts +11 -2
  39. package/dist/_types/cli/local-management.d.ts +4 -0
  40. package/dist/_types/cli/local-navigation.d.ts +1 -0
  41. package/dist/_types/contracts/delivery-manifest.d.ts +63 -27
  42. package/dist/_types/contracts/delivery-operations.d.ts +21 -9
  43. package/dist/_types/contracts/device-render.d.ts +10 -0
  44. package/dist/_types/contracts/exploration-recommendation.d.ts +84 -36
  45. package/dist/_types/contracts/final-render.d.ts +9 -0
  46. package/dist/_types/contracts/index.d.ts +1 -0
  47. package/dist/_types/contracts/local-execution/agent-context.d.ts +365 -0
  48. package/dist/_types/contracts/local-execution/agent-evidence.d.ts +79 -0
  49. package/dist/_types/contracts/local-execution/agent-grant.d.ts +31 -0
  50. package/dist/_types/contracts/local-execution/agent-review.d.ts +733 -46
  51. package/dist/_types/contracts/local-execution/device.d.ts +10 -2
  52. package/dist/_types/contracts/local-execution/index.d.ts +6 -0
  53. package/dist/_types/contracts/local-execution/ipc.d.ts +1762 -40
  54. package/dist/_types/contracts/local-execution/lifecycle.d.ts +76 -6
  55. package/dist/_types/contracts/local-execution/local-navigation.d.ts +115 -13
  56. package/dist/_types/contracts/local-execution/management.d.ts +394 -0
  57. package/dist/_types/contracts/local-execution/media-recipe.d.ts +203 -0
  58. package/dist/_types/contracts/local-execution/offline.d.ts +59 -0
  59. package/dist/_types/contracts/local-execution/preview.d.ts +7607 -159
  60. package/dist/_types/contracts/local-execution/work.d.ts +7674 -294
  61. package/dist/_types/contracts/local-execution/workspace.d.ts +136 -0
  62. package/dist/_types/contracts/programmatic-exploration.d.ts +42 -18
  63. package/dist/_types/contracts/repair-strategy.d.ts +42 -18
  64. package/dist/_types/contracts/review-intelligence-final-output.d.ts +42 -18
  65. package/dist/_types/contracts/review-intelligence.d.ts +84 -36
  66. package/dist/_types/contracts/rough-cut-manifest.d.ts +7 -3
  67. package/dist/_types/contracts/rough-cut-profile.d.ts +12 -3
  68. package/dist/_types/contracts/rough-cut-review.d.ts +126 -54
  69. package/dist/_types/contracts/rough-cut.d.ts +85 -32
  70. package/dist/_types/contracts/visual-layer-render.d.ts +21 -9
  71. package/dist/_types/sdk/local-runtime/device-client.d.ts +138 -2
  72. package/dist/_types/sdk/local-runtime/workspace.d.ts +181 -0
  73. package/dist/_types/sdk/local-runtime-client.d.ts +1298 -60
  74. package/dist/entry.js +1 -1
  75. package/dist/local-management.js +1 -1
  76. package/dist/local-navigation.js +1 -1
  77. package/dist/native/JobNative.cs +10 -0
  78. package/dist/native/JobRunner.cs +24 -3
  79. package/dist/native/NativeMain.cs +15 -0
  80. package/package.json +1 -1
  81. package/dist/_chunks/chunk-E57YVMQ4.js +0 -1
  82. package/dist/_chunks/chunk-EAZKDCLD.js +0 -1
  83. package/dist/_chunks/chunk-GIEYSDCG.js +0 -1
  84. package/dist/_chunks/chunk-HLKERZIE.js +0 -1
  85. package/dist/_chunks/chunk-QC7RLTGU.js +0 -1
  86. package/dist/_chunks/chunk-U2UKGYGF.js +0 -1
  87. package/dist/_chunks/local-main-SOERK22D.js +0 -1
  88. package/dist/_chunks/local-mcp-JLPXXIDW.js +0 -1
  89. package/dist/_chunks/mcp-EIMXNRH3.js +0 -1
  90. package/dist/_chunks/oauth-257CEUQH.js +0 -1
  91. package/dist/_chunks/project-connect-6MH2QG6G.js +0 -1
  92. package/dist/_chunks/src-7F6ZEU3U.js +0 -1
@@ -1,5 +1,361 @@
1
1
  /** Human installation owner adapter. It is never composed into scoped MCP. */
2
2
  export declare function runDesktopOwnerRequest(home: string, raw: unknown, bundledChannel?: unknown): Promise<{
3
+ historical: true;
4
+ items: {
5
+ snapshot: {
6
+ projectId: string;
7
+ title: string;
8
+ savedAt: string;
9
+ expiresAt: string;
10
+ productions: {
11
+ id: string;
12
+ title: string;
13
+ }[];
14
+ possiblyTruncated: boolean;
15
+ };
16
+ draft: {
17
+ text: string;
18
+ revision: number;
19
+ };
20
+ }[];
21
+ } | {
22
+ settings: {
23
+ revision: number;
24
+ policy: {
25
+ mode: "CONTINUOUS" | "IDLE_ONLY";
26
+ idleAfterSeconds: number;
27
+ maxConcurrentJobs: number;
28
+ cpuCores: 2 | 1;
29
+ memoryMiB: number;
30
+ cacheQuotaBytes: number;
31
+ };
32
+ };
33
+ storage: {
34
+ cacheBytes: number;
35
+ protectedBytes: number;
36
+ reclaimableBytes: number;
37
+ transferBytes: number;
38
+ journalBytes: number;
39
+ availableDiskBytes: number;
40
+ quotaBytes: number;
41
+ overQuota: boolean;
42
+ reviewBytes?: number | undefined;
43
+ ownerStagingBytes?: number | undefined;
44
+ };
45
+ scheduling: {
46
+ state: "READY" | "WAITING_FOR_IDLE" | "AT_CAPACITY" | "DRAINING";
47
+ activeJobs: number;
48
+ idleObservationCurrent: boolean;
49
+ };
50
+ } | {
51
+ protocol: "NVS_LOCAL_DIAGNOSTICS_V1";
52
+ createdAt: string;
53
+ runtimeVersion: string;
54
+ runtimeRevision: number;
55
+ settings: {
56
+ revision: number;
57
+ policy: {
58
+ mode: "CONTINUOUS" | "IDLE_ONLY";
59
+ idleAfterSeconds: number;
60
+ maxConcurrentJobs: number;
61
+ cpuCores: 2 | 1;
62
+ memoryMiB: number;
63
+ cacheQuotaBytes: number;
64
+ };
65
+ };
66
+ storage: {
67
+ cacheBytes: number;
68
+ protectedBytes: number;
69
+ reclaimableBytes: number;
70
+ transferBytes: number;
71
+ journalBytes: number;
72
+ availableDiskBytes: number;
73
+ quotaBytes: number;
74
+ overQuota: boolean;
75
+ reviewBytes?: number | undefined;
76
+ ownerStagingBytes?: number | undefined;
77
+ };
78
+ recordCounts: Record<string, number>;
79
+ failures: {
80
+ taskFingerprint: string;
81
+ code: string;
82
+ observedAt: string;
83
+ }[];
84
+ } | {
85
+ history: {
86
+ id: string;
87
+ projectId: string;
88
+ kind: "PROGRAMMATIC" | "ROUGH_CUT" | "IMAGE" | "VIDEO";
89
+ productionId: string;
90
+ pendingMedia: boolean;
91
+ }[];
92
+ pendingGrant: boolean;
93
+ probe?: {
94
+ configured: boolean;
95
+ available: boolean;
96
+ reason: "READY" | "GRANT_EXPIRED" | "GRANT_REQUIRED" | "RUNTIME_UNAVAILABLE";
97
+ grantFingerprint: string | null;
98
+ inference: "REMOTE_OPENAI";
99
+ } | undefined;
100
+ discovery?: {
101
+ candidate: {
102
+ binary: string;
103
+ binaryDigest: string;
104
+ version: string;
105
+ qualified: boolean;
106
+ } | null;
107
+ configured: {
108
+ protocol: "NVS_CODEX_REVIEW_GRANT_V1";
109
+ binary: string;
110
+ binaryDigest: string;
111
+ version: "0.164.0" | "0.165.0";
112
+ model: string;
113
+ reviewerLabel: string;
114
+ inference: "REMOTE_OPENAI";
115
+ remoteUseApproved: true;
116
+ projects: {
117
+ tenantId: string;
118
+ projectId: string;
119
+ }[];
120
+ expiresAt: string;
121
+ reasoningEffort?: "medium" | "low" | "high" | "xhigh" | undefined;
122
+ imageDisclosureApproved?: true | undefined;
123
+ mediaDisclosureApproved?: true | undefined;
124
+ } | null;
125
+ } | undefined;
126
+ review?: {
127
+ plan: {
128
+ protocol: "NVS_LOCAL_AGENT_REVIEW_V1" | "NVS_LOCAL_AGENT_REVIEW_V2";
129
+ id: string;
130
+ grantFingerprint: string;
131
+ snapshot: {
132
+ basis: {
133
+ scope: {
134
+ tenantId: string & import("zod").$brand<"TenantId">;
135
+ projectId: string & import("zod").$brand<"ProjectId">;
136
+ productionId: string & import("zod").$brand<"ProductionId">;
137
+ };
138
+ target: {
139
+ kind: "IMAGE";
140
+ generationId: string;
141
+ } | {
142
+ kind: "VIDEO";
143
+ generationId: string;
144
+ } | {
145
+ kind: "ROUGH_CUT";
146
+ renderId: string;
147
+ } | {
148
+ kind: "PROGRAMMATIC";
149
+ renderId: string;
150
+ };
151
+ contextFingerprint: string;
152
+ };
153
+ productionRevision: number;
154
+ reviewVersion: number;
155
+ executionClass: "LIVE" | "TEST_ONLY";
156
+ media: {
157
+ artifactId: string;
158
+ representationId: string;
159
+ checksumSha256: string;
160
+ };
161
+ requirements: ({
162
+ key: string;
163
+ dimension: "TRANSITION" | "STYLE" | "PRODUCT_PRESENTATION" | "CANONICAL_FACT" | "NARRATIVE" | "PACING" | "REPETITION" | "TECHNICAL";
164
+ expected: string;
165
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
166
+ scope: "TRANSITION" | "PRODUCTION";
167
+ interval: {
168
+ startMs: number;
169
+ endMs: number;
170
+ };
171
+ shotIds: string[];
172
+ continuity?: {
173
+ kind: "STATE";
174
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
175
+ entry: string;
176
+ exit: string;
177
+ changes?: {
178
+ atPermille: number;
179
+ from: string;
180
+ to: string;
181
+ reason: string;
182
+ }[] | undefined;
183
+ } | {
184
+ kind: "TIME";
185
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
186
+ entryMs: number;
187
+ exitMs: number;
188
+ jumps?: {
189
+ atPermille: number;
190
+ fromMs: number;
191
+ toMs: number;
192
+ reason: string;
193
+ }[] | undefined;
194
+ } | undefined;
195
+ consistencyScale?: "INTRA_SHOT" | "INTER_SHOT" | "PRODUCTION" | undefined;
196
+ consistencyFamily?: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "BOUNDARY_CONTINUITY" | undefined;
197
+ consistencySubject?: {
198
+ id: string;
199
+ kind: "CHARACTER" | "VOICE";
200
+ displayName: string;
201
+ facts: {
202
+ dimension: string;
203
+ value: string;
204
+ }[];
205
+ master: {
206
+ artifactId: string & import("zod").$brand<"ArtifactId">;
207
+ representationId: string & import("zod").$brand<"ArtifactRepresentationId">;
208
+ checksumSha256: string;
209
+ artifactChecksumSha256: string;
210
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "audio/wav";
211
+ };
212
+ } | undefined;
213
+ consistencyReference?: {
214
+ artifactId: string & import("zod").$brand<"ArtifactId">;
215
+ representationId: string & import("zod").$brand<"ArtifactRepresentationId">;
216
+ checksumSha256: string;
217
+ artifactChecksumSha256: string;
218
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "audio/wav";
219
+ } | undefined;
220
+ } | {
221
+ key: string;
222
+ family: "PRODUCT_IDENTITY" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "SHOT_INTENT" | "BOUNDARY_CONTINUITY" | "SOUND";
223
+ expected: string;
224
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
225
+ evidenceWindow: "START" | "END" | "WHOLE_VIDEO" | "TEMPORAL";
226
+ intentPath?: string | undefined;
227
+ continuity?: {
228
+ kind: "STATE";
229
+ mode: "PRESERVE" | "PLANNED_TRANSITIONS";
230
+ entry: string;
231
+ exit: string;
232
+ changes?: {
233
+ atPermille: number;
234
+ from: string;
235
+ to: string;
236
+ reason: string;
237
+ }[] | undefined;
238
+ } | {
239
+ kind: "TIME";
240
+ mode: "MONOTONIC" | "PLANNED_JUMPS";
241
+ entryMs: number;
242
+ exitMs: number;
243
+ jumps?: {
244
+ atPermille: number;
245
+ fromMs: number;
246
+ toMs: number;
247
+ reason: string;
248
+ }[] | undefined;
249
+ } | undefined;
250
+ interval?: {
251
+ startMs: number;
252
+ endMs: number;
253
+ } | undefined;
254
+ } | {
255
+ key: string;
256
+ expected: string;
257
+ enforcement: "LOCKED" | "REQUIRED" | "PREFERRED";
258
+ intentPath?: string | undefined;
259
+ })[];
260
+ evidence?: {
261
+ profile: "NVS_AGENT_DERIVED_EVIDENCE_V1";
262
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "video/mp4";
263
+ byteSize: number;
264
+ width: number;
265
+ height: number;
266
+ durationMs?: number | undefined;
267
+ frameRate?: 30 | 24 | undefined;
268
+ hasAudio?: boolean | undefined;
269
+ } | undefined;
270
+ image?: {
271
+ contentType: "image/png";
272
+ byteSize: number;
273
+ width: number;
274
+ height: number;
275
+ } | undefined;
276
+ };
277
+ expiresAt: string;
278
+ fingerprint: string;
279
+ };
280
+ revision: number;
281
+ phase: "RUNNING" | "UNKNOWN" | "PREPARED" | "RESULT_PENDING";
282
+ answer: {
283
+ summary: string;
284
+ observations: {
285
+ key: string;
286
+ observed: string;
287
+ }[];
288
+ } | {
289
+ summary: string;
290
+ imageReadback: string;
291
+ observations: {
292
+ status: "SATISFIED" | "VIOLATED" | "NOT_OBSERVABLE" | "NOT_APPLICABLE";
293
+ confidence: "CLEAR" | "UNCERTAIN";
294
+ observed: string;
295
+ key: string;
296
+ }[];
297
+ } | null;
298
+ provenance: {
299
+ adapter: "CODEX_METADATA_V1" | "CODEX_MEDIA_V2";
300
+ binaryDigest: string;
301
+ version: "0.164.0" | "0.165.0";
302
+ model: string;
303
+ reviewerLabel: string;
304
+ inference: "REMOTE_OPENAI";
305
+ evidence: "IMAGE_PIXELS" | "VIDEO_FRAMES" | "METADATA_ONLY";
306
+ reasoningEffort?: "medium" | "low" | "high" | "xhigh" | undefined;
307
+ };
308
+ imageReceipt?: {
309
+ protocol: "NVS_LOCAL_AGENT_IMAGE_V1";
310
+ draftId: string;
311
+ media: {
312
+ artifactId: string;
313
+ representationId: string;
314
+ checksumSha256: string;
315
+ };
316
+ byteSize: number;
317
+ contentType: "image/png";
318
+ width: number;
319
+ height: number;
320
+ } | undefined;
321
+ evidenceReceipt?: {
322
+ protocol: "NVS_AGENT_DERIVED_EVIDENCE_V1";
323
+ draftId: string;
324
+ media: {
325
+ artifactId: string;
326
+ representationId: string;
327
+ checksumSha256: string;
328
+ };
329
+ ffmpegDigest: string;
330
+ ffprobeDigest: string;
331
+ attachment: {
332
+ checksumSha256: string;
333
+ byteSize: number;
334
+ width: number;
335
+ height: number;
336
+ };
337
+ timestampsMs: number[];
338
+ audio: {
339
+ sampleRateHz: 48000;
340
+ channels: 1;
341
+ samples: number;
342
+ peak: number;
343
+ rms: number;
344
+ clippedSamples: number;
345
+ } | null;
346
+ limitations: ["SAMPLED_FRAMES_ARE_NOT_FULL_PLAYBACK", "AUDIO_STATISTICS_ARE_NOT_LISTENING_OR_TRANSCRIPTION"];
347
+ } | undefined;
348
+ } | undefined;
349
+ } | {
350
+ id: string;
351
+ mode: "BACKUP" | "MIGRATE";
352
+ revision: number;
353
+ phase: "CANCELLED" | "COMPLETE" | "PREPARED" | "DRAINING" | "VERIFYING" | "COPYING" | "COPIED";
354
+ expiresAt: string;
355
+ fingerprint: string;
356
+ bytes: number;
357
+ installationFingerprint: string;
358
+ } | {
3
359
  protocol: "NVS_DESKTOP_OWNER_PLAN_V1";
4
360
  plan: {
5
361
  kind: "APPLY" | "RECOVER";
@@ -9,6 +365,7 @@ export declare function runDesktopOwnerRequest(home: string, raw: unknown, bundl
9
365
  previousVersion: string | null;
10
366
  expiresAt: string;
11
367
  phase: string;
368
+ toolMode?: "MANAGED" | "INSTALLED" | undefined;
12
369
  } | null;
13
370
  } | {
14
371
  protocol: "NVS_DESKTOP_CHANNEL_INFO_V1";
@@ -21,6 +378,202 @@ export declare function runDesktopOwnerRequest(home: string, raw: unknown, bundl
21
378
  state: "UNAVAILABLE" | "RUNNING" | "INSTALL_REQUIRED" | "STOPPED";
22
379
  activeVersion: string | null;
23
380
  phase: string;
381
+ toolMode?: "MANAGED" | "INSTALLED" | null | undefined;
382
+ } | {
383
+ id: string;
384
+ fingerprint: string;
385
+ version: string;
386
+ host: string;
387
+ bytes: number;
388
+ expiresAt: string;
389
+ installed: boolean;
390
+ } | {
391
+ view: {
392
+ revision: number;
393
+ connection: {
394
+ phase: "READY" | "CONNECTING" | "CONNECTED";
395
+ expiresAt: string;
396
+ projects: {
397
+ tenantId: string;
398
+ projectId: string;
399
+ }[];
400
+ } | null;
401
+ previews: ({
402
+ semanticStatus: "ACCEPTED";
403
+ renderId: string;
404
+ operationId: string & import("zod").$brand<"OperationId">;
405
+ productionId: string;
406
+ timelineVersionId: string;
407
+ timelineFingerprint: string;
408
+ executionClass: "LIVE" | "TEST_ONLY";
409
+ manifestFingerprint: string;
410
+ productionRevision: number;
411
+ placement: {
412
+ target: "DEVICE" | "SERVER";
413
+ reason: "OFFLINE" | "UNQUALIFIED" | "BUSY" | "LOCAL_AVAILABLE" | "CLOUD_ONLY" | "LEASE_RECOVERY";
414
+ policy: {
415
+ mode: "local-only";
416
+ deviceId: string;
417
+ } | {
418
+ mode: "local-preferred";
419
+ deviceId: string;
420
+ } | {
421
+ mode: "cloud-only";
422
+ };
423
+ };
424
+ deviceExecution?: {
425
+ mode: "tenant-device-only";
426
+ deviceId: string;
427
+ runtimeJobId: string;
428
+ } | undefined;
429
+ } | {
430
+ semanticStatus: "ACCEPTED";
431
+ renderId: string;
432
+ operationId: string & import("zod").$brand<"OperationId">;
433
+ productionId: string;
434
+ timelineVersionId: string;
435
+ timelineFingerprint: string;
436
+ executionClass: "LIVE" | "TEST_ONLY";
437
+ manifestFingerprint: string;
438
+ productionRevision: number;
439
+ selectionId: string;
440
+ selectionVersion: number;
441
+ profileId: "FINAL_H264_1080P_V1" | "FINAL_H264_720P_V1" | "FINAL_H264_480P_V1";
442
+ placement: {
443
+ target: "DEVICE" | "SERVER";
444
+ reason: "OFFLINE" | "UNQUALIFIED" | "BUSY" | "LOCAL_AVAILABLE" | "CLOUD_ONLY" | "LEASE_RECOVERY";
445
+ policy: {
446
+ mode: "local-only";
447
+ deviceId: string;
448
+ } | {
449
+ mode: "local-preferred";
450
+ deviceId: string;
451
+ } | {
452
+ mode: "cloud-only";
453
+ };
454
+ };
455
+ deviceExecution?: {
456
+ mode: "tenant-device-only";
457
+ deviceId: string;
458
+ runtimeJobId: string;
459
+ } | undefined;
460
+ })[];
461
+ grants: {
462
+ tenantId: string;
463
+ projectId: string;
464
+ capability: "ROUGH_CUT_PREVIEW_V1" | "STUDIO_MEDIA_V2";
465
+ expiresAt: string;
466
+ deviceId: string;
467
+ deviceRevision: number;
468
+ grantId: string;
469
+ revision: number;
470
+ approvedByPrincipalId: string;
471
+ createdAt: string;
472
+ revokedAt: string | null;
473
+ executionPolicy?: "DEVICE_ONLY" | undefined;
474
+ }[];
475
+ device: {
476
+ deviceId: string;
477
+ label: string;
478
+ } | null;
479
+ pending: {
480
+ kind: "FINAL_RENDER" | "ENROLL" | "GRANT" | "REVOKE_GRANT" | "PREVIEW";
481
+ phase: "SENDING" | "PREPARED" | "REFUSED";
482
+ fingerprint: string;
483
+ } | null;
484
+ installation?: {
485
+ version: string;
486
+ fingerprint: string;
487
+ workProtocol?: "NVS_LOCAL_WORK_V1" | "NVS_LOCAL_WORK_V2" | undefined;
488
+ } | null | undefined;
489
+ automaticConnection?: boolean | undefined;
490
+ };
491
+ command?: {
492
+ kind: "ENROLL";
493
+ input: {
494
+ tenantId: string;
495
+ requestId: string;
496
+ label: string;
497
+ platform: {
498
+ os: "darwin" | "linux" | "win32";
499
+ architecture: "x64" | "arm64";
500
+ };
501
+ runtimeVersion: string;
502
+ publicKey: {
503
+ kty: "EC";
504
+ crv: "P-256";
505
+ x: string;
506
+ y: string;
507
+ };
508
+ };
509
+ } | {
510
+ kind: "GRANT";
511
+ input: {
512
+ tenantId: string;
513
+ projectId: string;
514
+ requestId: string;
515
+ deviceId: string;
516
+ deviceRevision: number;
517
+ expectedRevision: number;
518
+ expiresAt: string;
519
+ capability: "ROUGH_CUT_PREVIEW_V1" | "STUDIO_MEDIA_V2";
520
+ executionPolicy?: "DEVICE_ONLY" | undefined;
521
+ };
522
+ } | {
523
+ kind: "REVOKE_GRANT";
524
+ input: {
525
+ tenantId: string;
526
+ projectId: string;
527
+ grantId: string;
528
+ requestId: string;
529
+ expectedRevision: number;
530
+ };
531
+ } | {
532
+ kind: "PREVIEW";
533
+ input: {
534
+ tenantId: string & import("zod").$brand<"TenantId">;
535
+ idempotencyKey: string;
536
+ productionId: string & import("zod").$brand<"ProductionId">;
537
+ expectedProductionRevision: number;
538
+ timelineVersionId: string;
539
+ profileId: "PREVIEW_H264_480P_V1" | "PREVIEW_H264_720P_V1" | "PREVIEW_H264_1080P_V1";
540
+ timelineFingerprint: string;
541
+ placement: {
542
+ mode: "local-only";
543
+ deviceId: string;
544
+ } | {
545
+ mode: "local-preferred";
546
+ deviceId: string;
547
+ } | {
548
+ mode: "cloud-only";
549
+ };
550
+ localProfile?: "STUDIO_MEDIA_V2" | undefined;
551
+ };
552
+ } | {
553
+ kind: "FINAL_RENDER";
554
+ input: {
555
+ tenantId: string & import("zod").$brand<"TenantId">;
556
+ idempotencyKey: string;
557
+ productionId: string & import("zod").$brand<"ProductionId">;
558
+ expectedProductionRevision: number;
559
+ timelineVersionId: string;
560
+ profileId: "FINAL_H264_1080P_V1" | "FINAL_H264_720P_V1" | "FINAL_H264_480P_V1";
561
+ timelineFingerprint: string;
562
+ selectionId: string;
563
+ audioPolicy: "SILENT" | "MIXED";
564
+ captionPolicy: "NONE" | "BURN_IN";
565
+ expectedFinalReadyVersion: number;
566
+ placement: {
567
+ mode: "local-only";
568
+ deviceId: string;
569
+ } | {
570
+ mode: "local-preferred";
571
+ deviceId: string;
572
+ } | {
573
+ mode: "cloud-only";
574
+ };
575
+ };
576
+ } | undefined;
24
577
  } | {
25
578
  protocol: "NVS_DESKTOP_RUNTIME_UPDATES_V1";
26
579
  activeVersion: string | null;
@@ -29,4 +582,4 @@ export declare function runDesktopOwnerRequest(home: string, raw: unknown, bundl
29
582
  rejected: boolean;
30
583
  }[];
31
584
  notifications: boolean;
32
- }>;
585
+ } | null>;