@nativestudio/cli 0.0.0-stage → 0.3.0-rc.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (266) hide show
  1. package/COMPATIBILITY.json +45 -0
  2. package/LICENSE +201 -0
  3. package/components/runtime.json +31 -0
  4. package/components/runtime.tgz +0 -0
  5. package/dist/BUNDLED_DEPENDENCIES.json +1 -0
  6. package/dist/_chunks/chunk-2UYKJ6YN.js +1 -0
  7. package/dist/_chunks/chunk-37PAJCKA.js +1 -0
  8. package/dist/_chunks/chunk-3AVC742O.js +1 -0
  9. package/dist/_chunks/chunk-4U4Y2K73.js +1 -0
  10. package/dist/_chunks/chunk-65FQPXKC.js +1 -0
  11. package/dist/_chunks/chunk-6DVZBKNV.js +1 -0
  12. package/dist/_chunks/chunk-6LU6GJKW.js +1 -0
  13. package/dist/_chunks/chunk-6N433ZWR.js +1 -0
  14. package/dist/_chunks/chunk-EGUJ2YRX.js +1 -0
  15. package/dist/_chunks/chunk-FU3524Z6.js +1 -0
  16. package/dist/_chunks/chunk-GZBWA4YN.js +1 -0
  17. package/dist/_chunks/chunk-HR34UMPP.js +1 -0
  18. package/dist/_chunks/chunk-HTUTYIRU.js +1 -0
  19. package/dist/_chunks/chunk-JFC6ZIGA.js +1 -0
  20. package/dist/_chunks/chunk-KB2GVAN7.js +1 -0
  21. package/dist/_chunks/chunk-L543FEDK.js +1 -0
  22. package/dist/_chunks/chunk-LISB5W7B.js +1 -0
  23. package/dist/_chunks/chunk-LUAH3KAS.js +1 -0
  24. package/dist/_chunks/chunk-M2KVQQ4X.js +1 -0
  25. package/dist/_chunks/chunk-ODGPV7MM.js +1 -0
  26. package/dist/_chunks/chunk-PUBMDP4E.js +1 -0
  27. package/dist/_chunks/chunk-PUNG4ND7.js +1 -0
  28. package/dist/_chunks/chunk-Q57YFNK5.js +1 -0
  29. package/dist/_chunks/chunk-QAJH4RJQ.js +1 -0
  30. package/dist/_chunks/chunk-VDNNFVTZ.js +3 -0
  31. package/dist/_chunks/chunk-VPYAXWXY.js +1 -0
  32. package/dist/_chunks/chunk-WFRRNWO5.js +1 -0
  33. package/dist/_chunks/connect-5YMO6MAR.js +1 -0
  34. package/dist/_chunks/device-management-2OTGEBJQ.js +1 -0
  35. package/dist/_chunks/device-preflight-XPHFZGLO.js +1 -0
  36. package/dist/_chunks/devices-inventory-VWNTU5TE.js +1 -0
  37. package/dist/_chunks/devices-main-VQ4APRVS.js +1 -0
  38. package/dist/_chunks/files-TTIQ7LYJ.js +1 -0
  39. package/dist/_chunks/host-main-H7DPLV7B.js +1 -0
  40. package/dist/_chunks/http-profile-MNJX6OXO.js +1 -0
  41. package/dist/_chunks/library-main-SAC3V2ML.js +1 -0
  42. package/dist/_chunks/local-main-D6B3APK6.js +1 -0
  43. package/dist/_chunks/local-mcp-ONCANLPH.js +1 -0
  44. package/dist/_chunks/main-PW6HB3NC.js +2 -0
  45. package/dist/_chunks/mcp-ZIGBYFUW.js +1 -0
  46. package/dist/_chunks/oauth-HC6TI7HB.js +1 -0
  47. package/dist/_chunks/render-main-GYWKP72O.js +1 -0
  48. package/dist/_chunks/source-import-BC5GNCUZ.js +1 -0
  49. package/dist/_chunks/src-R6DNU336.js +1 -0
  50. package/dist/_chunks/stdio-main-RIJS5REB.js +1 -0
  51. package/dist/_chunks/workspace-main-GNSKHKBG.js +1 -0
  52. package/dist/_types/cli/local/desktop-channel.d.ts +18 -0
  53. package/dist/_types/cli/local/desktop-contract.d.ts +2176 -0
  54. package/dist/_types/cli/local/desktop-device-contract.d.ts +779 -0
  55. package/dist/_types/cli/local/desktop-device-navigation.d.ts +3 -0
  56. package/dist/_types/cli/local/desktop-device-owner.d.ts +244 -0
  57. package/dist/_types/cli/local/desktop-device-state.d.ts +397 -0
  58. package/dist/_types/cli/local/desktop-library.d.ts +853 -0
  59. package/dist/_types/cli/local/desktop-node.d.ts +1 -0
  60. package/dist/_types/cli/local/desktop-owner.d.ts +766 -0
  61. package/dist/_types/cli/local/ledger.d.ts +363 -0
  62. package/dist/_types/cli/local/manager.d.ts +1695 -0
  63. package/dist/_types/cli/local/mcp-tools.d.ts +660 -0
  64. package/dist/_types/cli/local/releases.d.ts +123 -0
  65. package/dist/_types/cli/local-management.d.ts +16 -0
  66. package/dist/_types/cli/local-navigation.d.ts +4 -0
  67. package/dist/_types/contracts/accepted-shot.d.ts +27 -0
  68. package/dist/_types/contracts/accepted-visual-source.d.ts +120 -0
  69. package/dist/_types/contracts/agent-execution-lifecycle.d.ts +749 -0
  70. package/dist/_types/contracts/agent-execution-oauth.d.ts +71 -0
  71. package/dist/_types/contracts/agent-execution-registration.d.ts +240 -0
  72. package/dist/_types/contracts/agent-execution-selection.d.ts +107 -0
  73. package/dist/_types/contracts/agent-host-execution.d.ts +706 -0
  74. package/dist/_types/contracts/agent-host-generic-transport.d.ts +12 -0
  75. package/dist/_types/contracts/agent-host.d.ts +226 -0
  76. package/dist/_types/contracts/artifact-discovery.d.ts +242 -0
  77. package/dist/_types/contracts/artifact.d.ts +188 -0
  78. package/dist/_types/contracts/audio.d.ts +335 -0
  79. package/dist/_types/contracts/brief.d.ts +178 -0
  80. package/dist/_types/contracts/caption-render.d.ts +20 -0
  81. package/dist/_types/contracts/caption-transcript.d.ts +102 -0
  82. package/dist/_types/contracts/captions.d.ts +420 -0
  83. package/dist/_types/contracts/clip-framing.d.ts +14 -0
  84. package/dist/_types/contracts/clip-transition.d.ts +6 -0
  85. package/dist/_types/contracts/composition-authoring-guide.d.ts +160 -0
  86. package/dist/_types/contracts/composition-authoring.d.ts +744 -0
  87. package/dist/_types/contracts/composition-finding-locality.d.ts +24 -0
  88. package/dist/_types/contracts/composition-frame-render.d.ts +226 -0
  89. package/dist/_types/contracts/composition-making.d.ts +390 -0
  90. package/dist/_types/contracts/composition-observation.d.ts +239 -0
  91. package/dist/_types/contracts/composition-render-base.d.ts +293 -0
  92. package/dist/_types/contracts/composition-render-observation.d.ts +278 -0
  93. package/dist/_types/contracts/composition-render.d.ts +406 -0
  94. package/dist/_types/contracts/composition-repair.d.ts +451 -0
  95. package/dist/_types/contracts/composition-source-review.d.ts +1042 -0
  96. package/dist/_types/contracts/consistency-profile.d.ts +845 -0
  97. package/dist/_types/contracts/continuity-evaluation.d.ts +48 -0
  98. package/dist/_types/contracts/delivery-completion.d.ts +210 -0
  99. package/dist/_types/contracts/delivery-manifest.d.ts +72 -0
  100. package/dist/_types/contracts/delivery-operations.d.ts +1151 -0
  101. package/dist/_types/contracts/delivery-output-profile.d.ts +12 -0
  102. package/dist/_types/contracts/delivery-summary.d.ts +220 -0
  103. package/dist/_types/contracts/delivery-validation.d.ts +206 -0
  104. package/dist/_types/contracts/device-render.d.ts +77 -0
  105. package/dist/_types/contracts/director-proposal.d.ts +1067 -0
  106. package/dist/_types/contracts/editor-intelligence.d.ts +3374 -0
  107. package/dist/_types/contracts/exploration-recommendation.d.ts +519 -0
  108. package/dist/_types/contracts/external-agent-access.d.ts +93 -0
  109. package/dist/_types/contracts/final-ready.d.ts +301 -0
  110. package/dist/_types/contracts/final-render-profile.d.ts +59 -0
  111. package/dist/_types/contracts/final-render.d.ts +2810 -0
  112. package/dist/_types/contracts/foundation.d.ts +1 -0
  113. package/dist/_types/contracts/generation-contract.d.ts +268 -0
  114. package/dist/_types/contracts/generation-cost.d.ts +70 -0
  115. package/dist/_types/contracts/health.d.ts +6 -0
  116. package/dist/_types/contracts/human-identity.d.ts +162 -0
  117. package/dist/_types/contracts/hyperframe-profile.d.ts +5 -0
  118. package/dist/_types/contracts/ids.d.ts +41 -0
  119. package/dist/_types/contracts/index.d.ts +126 -0
  120. package/dist/_types/contracts/interface/common.d.ts +56 -0
  121. package/dist/_types/contracts/interface/execution-output.d.ts +99 -0
  122. package/dist/_types/contracts/interface/index.d.ts +7 -0
  123. package/dist/_types/contracts/interface/media-output.d.ts +90 -0
  124. package/dist/_types/contracts/interface/operation.d.ts +61 -0
  125. package/dist/_types/contracts/interface/output.d.ts +15 -0
  126. package/dist/_types/contracts/interface/production-snapshot.d.ts +654 -0
  127. package/dist/_types/contracts/interface/query.d.ts +315 -0
  128. package/dist/_types/contracts/keyframe-generation.d.ts +378 -0
  129. package/dist/_types/contracts/keyframe-reference.d.ts +31 -0
  130. package/dist/_types/contracts/keyframe-review.d.ts +753 -0
  131. package/dist/_types/contracts/lifecycle-event-projections.d.ts +191 -0
  132. package/dist/_types/contracts/lifecycle-events.d.ts +156 -0
  133. package/dist/_types/contracts/listening-evidence.d.ts +37 -0
  134. package/dist/_types/contracts/local-execution/agent-context.d.ts +365 -0
  135. package/dist/_types/contracts/local-execution/agent-evidence.d.ts +79 -0
  136. package/dist/_types/contracts/local-execution/agent-grant.d.ts +31 -0
  137. package/dist/_types/contracts/local-execution/agent-review.d.ts +992 -0
  138. package/dist/_types/contracts/local-execution/canonical.d.ts +2 -0
  139. package/dist/_types/contracts/local-execution/common.d.ts +49 -0
  140. package/dist/_types/contracts/local-execution/completion.d.ts +124 -0
  141. package/dist/_types/contracts/local-execution/components.d.ts +45 -0
  142. package/dist/_types/contracts/local-execution/descriptor.d.ts +38 -0
  143. package/dist/_types/contracts/local-execution/device-authority.d.ts +31 -0
  144. package/dist/_types/contracts/local-execution/device-inventory.d.ts +76 -0
  145. package/dist/_types/contracts/local-execution/device-workspace.d.ts +11 -0
  146. package/dist/_types/contracts/local-execution/device.d.ts +102 -0
  147. package/dist/_types/contracts/local-execution/external-generation.d.ts +199 -0
  148. package/dist/_types/contracts/local-execution/index.d.ts +37 -0
  149. package/dist/_types/contracts/local-execution/ipc.d.ts +3730 -0
  150. package/dist/_types/contracts/local-execution/library-command.d.ts +620 -0
  151. package/dist/_types/contracts/local-execution/library-result.d.ts +408 -0
  152. package/dist/_types/contracts/local-execution/library.d.ts +873 -0
  153. package/dist/_types/contracts/local-execution/lifecycle.d.ts +519 -0
  154. package/dist/_types/contracts/local-execution/local-navigation.d.ts +929 -0
  155. package/dist/_types/contracts/local-execution/management.d.ts +400 -0
  156. package/dist/_types/contracts/local-execution/media-recipe.d.ts +207 -0
  157. package/dist/_types/contracts/local-execution/media-validation-request.d.ts +232 -0
  158. package/dist/_types/contracts/local-execution/media-validation.d.ts +262 -0
  159. package/dist/_types/contracts/local-execution/object-transfer.d.ts +155 -0
  160. package/dist/_types/contracts/local-execution/offline.d.ts +59 -0
  161. package/dist/_types/contracts/local-execution/preview.d.ts +243 -0
  162. package/dist/_types/contracts/local-execution/processor-capability.d.ts +39 -0
  163. package/dist/_types/contracts/local-execution/processor-direct.d.ts +290 -0
  164. package/dist/_types/contracts/local-execution/processor-recipes.d.ts +1122 -0
  165. package/dist/_types/contracts/local-execution/processor.d.ts +6173 -0
  166. package/dist/_types/contracts/local-execution/project-source-direct.d.ts +201 -0
  167. package/dist/_types/contracts/local-execution/qwen-tts.d.ts +31 -0
  168. package/dist/_types/contracts/local-execution/recognition.d.ts +170 -0
  169. package/dist/_types/contracts/local-execution/speech.d.ts +95 -0
  170. package/dist/_types/contracts/local-execution/tool-selection.d.ts +55 -0
  171. package/dist/_types/contracts/local-execution/whisper.d.ts +24 -0
  172. package/dist/_types/contracts/local-execution/work.d.ts +149 -0
  173. package/dist/_types/contracts/local-execution/workspace.d.ts +141 -0
  174. package/dist/_types/contracts/matrix-parameter-rule.d.ts +23 -0
  175. package/dist/_types/contracts/media-category.d.ts +11 -0
  176. package/dist/_types/contracts/media-export.d.ts +23 -0
  177. package/dist/_types/contracts/media-observation.d.ts +2080 -0
  178. package/dist/_types/contracts/model-capability-matrix.d.ts +118 -0
  179. package/dist/_types/contracts/native-tool-authority-failure.d.ts +38 -0
  180. package/dist/_types/contracts/native-tool-authority.d.ts +110 -0
  181. package/dist/_types/contracts/native-tool-execution.d.ts +287 -0
  182. package/dist/_types/contracts/native-tool-gateway.d.ts +41 -0
  183. package/dist/_types/contracts/native-video-audio.d.ts +62 -0
  184. package/dist/_types/contracts/navigation-context.d.ts +253 -0
  185. package/dist/_types/contracts/navigation-groups.d.ts +51 -0
  186. package/dist/_types/contracts/navigation.d.ts +248 -0
  187. package/dist/_types/contracts/observation-profile.d.ts +99 -0
  188. package/dist/_types/contracts/planning-input.d.ts +177 -0
  189. package/dist/_types/contracts/principal.d.ts +26 -0
  190. package/dist/_types/contracts/production-creation.d.ts +66 -0
  191. package/dist/_types/contracts/production-termination.d.ts +51 -0
  192. package/dist/_types/contracts/production.d.ts +111 -0
  193. package/dist/_types/contracts/programmatic-composition.d.ts +762 -0
  194. package/dist/_types/contracts/programmatic-exploration.d.ts +1822 -0
  195. package/dist/_types/contracts/programmatic-video-review.d.ts +894 -0
  196. package/dist/_types/contracts/project-library.d.ts +173 -0
  197. package/dist/_types/contracts/project.d.ts +93 -0
  198. package/dist/_types/contracts/provider-catalog.d.ts +421 -0
  199. package/dist/_types/contracts/provider-models.d.ts +3388 -0
  200. package/dist/_types/contracts/provider.d.ts +207 -0
  201. package/dist/_types/contracts/reference-preview.d.ts +55 -0
  202. package/dist/_types/contracts/repair-lifecycle.d.ts +2564 -0
  203. package/dist/_types/contracts/repair-plan.d.ts +646 -0
  204. package/dist/_types/contracts/repair-strategy.d.ts +1432 -0
  205. package/dist/_types/contracts/review-intelligence-evidence.d.ts +136 -0
  206. package/dist/_types/contracts/review-intelligence-final-output.d.ts +883 -0
  207. package/dist/_types/contracts/review-intelligence.d.ts +573 -0
  208. package/dist/_types/contracts/review1-repair-source.d.ts +452 -0
  209. package/dist/_types/contracts/review1-repair-strategy.d.ts +491 -0
  210. package/dist/_types/contracts/review1-repair.d.ts +36 -0
  211. package/dist/_types/contracts/rough-cut-manifest.d.ts +352 -0
  212. package/dist/_types/contracts/rough-cut-profile.d.ts +46 -0
  213. package/dist/_types/contracts/rough-cut-review.d.ts +459 -0
  214. package/dist/_types/contracts/rough-cut.d.ts +1260 -0
  215. package/dist/_types/contracts/scene-shot-plan.d.ts +882 -0
  216. package/dist/_types/contracts/sdk-discovery.d.ts +66 -0
  217. package/dist/_types/contracts/shot-direction.d.ts +113 -0
  218. package/dist/_types/contracts/shot-preparation-basis.d.ts +356 -0
  219. package/dist/_types/contracts/shot-preparation.d.ts +2285 -0
  220. package/dist/_types/contracts/shot-sound-instruction.d.ts +58 -0
  221. package/dist/_types/contracts/sound-making-plan.d.ts +1586 -0
  222. package/dist/_types/contracts/source-sound-policy.d.ts +10 -0
  223. package/dist/_types/contracts/source-workspace.d.ts +62 -0
  224. package/dist/_types/contracts/speech-cost.d.ts +81 -0
  225. package/dist/_types/contracts/speech.d.ts +573 -0
  226. package/dist/_types/contracts/story.d.ts +98 -0
  227. package/dist/_types/contracts/temporal-evidence-operation.d.ts +380 -0
  228. package/dist/_types/contracts/temporal-evidence-reference.d.ts +18 -0
  229. package/dist/_types/contracts/temporal-evidence.d.ts +248 -0
  230. package/dist/_types/contracts/tenant.d.ts +7 -0
  231. package/dist/_types/contracts/timeline-audio.d.ts +98 -0
  232. package/dist/_types/contracts/timeline-graphics.d.ts +80 -0
  233. package/dist/_types/contracts/timeline-manifest.d.ts +704 -0
  234. package/dist/_types/contracts/timeline-source-sound.d.ts +353 -0
  235. package/dist/_types/contracts/timeline-v2.d.ts +1267 -0
  236. package/dist/_types/contracts/timeline-version-reader.d.ts +2955 -0
  237. package/dist/_types/contracts/timeline-visual-layers.d.ts +1249 -0
  238. package/dist/_types/contracts/timeline.d.ts +142 -0
  239. package/dist/_types/contracts/transcription.d.ts +80 -0
  240. package/dist/_types/contracts/video-generation.d.ts +676 -0
  241. package/dist/_types/contracts/video-review.d.ts +1871 -0
  242. package/dist/_types/contracts/visual-exploration.d.ts +1586 -0
  243. package/dist/_types/contracts/visual-layer-render.d.ts +2820 -0
  244. package/dist/_types/contracts/visual-layer.d.ts +112 -0
  245. package/dist/_types/contracts/visual-sequence.d.ts +143 -0
  246. package/dist/_types/contracts/workspace.d.ts +32 -0
  247. package/dist/_types/contracts/writer-proposal.d.ts +268 -0
  248. package/dist/_types/sdk/errors.d.ts +14 -0
  249. package/dist/_types/sdk/local-runtime/components.d.ts +2 -0
  250. package/dist/_types/sdk/local-runtime/device-client.d.ts +187 -0
  251. package/dist/_types/sdk/local-runtime/library.d.ts +268 -0
  252. package/dist/_types/sdk/local-runtime/workspace.d.ts +186 -0
  253. package/dist/_types/sdk/local-runtime-client.d.ts +2616 -0
  254. package/dist/entry.js +2 -0
  255. package/dist/local-management.d.ts +1 -0
  256. package/dist/local-management.js +1 -0
  257. package/dist/local-navigation.d.ts +1 -0
  258. package/dist/local-navigation.js +1 -0
  259. package/dist/native/Bootstrap.ps1 +90 -0
  260. package/dist/native/JobNative.cs +137 -0
  261. package/dist/native/JobRunner.cs +381 -0
  262. package/dist/native/NativeMain.cs +161 -0
  263. package/dist/native/PipeBridge.cs +260 -0
  264. package/dist/native/PrivateAccess.cs +152 -0
  265. package/package.json +27 -3
  266. package/README.md +0 -3
@@ -0,0 +1,187 @@
1
+ import { z } from "zod";
2
+ import { EnrollLocalDeviceSchema, RevokeLocalDeviceSchema, StartLocalPreviewSchema, StartLocalFinalRenderSchema, LocalDeviceManagementCommandSchema } from "../../contracts/local-execution/index.js";
3
+ /** 成员设备管理沿当前 tenant;设备会话和本机执行连接不构成成员权限。 */
4
+ export declare class NativeStudioLocalDeviceClient {
5
+ private readonly options;
6
+ private readonly origin;
7
+ constructor(options: {
8
+ baseUrl: string;
9
+ tenantId: string;
10
+ authorization: () => Promise<string> | string;
11
+ });
12
+ private command;
13
+ enroll(input: z.infer<typeof EnrollLocalDeviceSchema>, signal?: AbortSignal): Promise<{
14
+ tenantId: string;
15
+ publicKey: {
16
+ kty: "EC";
17
+ crv: "P-256";
18
+ x: string;
19
+ y: string;
20
+ };
21
+ label: string;
22
+ platform: {
23
+ os: "darwin" | "linux" | "win32";
24
+ architecture: "x64" | "arm64";
25
+ };
26
+ runtimeVersion: string;
27
+ deviceId: string;
28
+ revision: number;
29
+ enrolledByPrincipalId: string;
30
+ createdAt: string;
31
+ verifiedAt: string | null;
32
+ revokedAt: string | null;
33
+ }>;
34
+ managementReceipt(input: z.infer<typeof LocalDeviceManagementCommandSchema>, signal?: AbortSignal): Promise<{
35
+ fingerprint: string;
36
+ result: {
37
+ tenantId: string;
38
+ publicKey: {
39
+ kty: "EC";
40
+ crv: "P-256";
41
+ x: string;
42
+ y: string;
43
+ };
44
+ label: string;
45
+ platform: {
46
+ os: "darwin" | "linux" | "win32";
47
+ architecture: "x64" | "arm64";
48
+ };
49
+ runtimeVersion: string;
50
+ deviceId: string;
51
+ revision: number;
52
+ enrolledByPrincipalId: string;
53
+ createdAt: string;
54
+ verifiedAt: string | null;
55
+ revokedAt: string | null;
56
+ } | {
57
+ semanticStatus: "ACCEPTED";
58
+ renderId: string;
59
+ operationId: string & z.core.$brand<"OperationId">;
60
+ productionId: string;
61
+ timelineVersionId: string;
62
+ timelineFingerprint: string;
63
+ executionClass: "LIVE" | "TEST_ONLY";
64
+ manifestFingerprint: string;
65
+ productionRevision: number;
66
+ placement: {
67
+ target: "DEVICE" | "SERVER";
68
+ reason: "OFFLINE" | "UNQUALIFIED" | "BUSY" | "LOCAL_AVAILABLE" | "CLOUD_ONLY" | "LEASE_RECOVERY";
69
+ policy: {
70
+ mode: "local-only";
71
+ deviceId: string;
72
+ } | {
73
+ mode: "local-preferred";
74
+ deviceId: string;
75
+ } | {
76
+ mode: "cloud-only";
77
+ };
78
+ };
79
+ deviceExecution?: {
80
+ mode: "tenant-device-only";
81
+ deviceId: string;
82
+ runtimeJobId: string;
83
+ validationMode?: "TENANT_TRUSTED_VALIDATOR" | undefined;
84
+ } | undefined;
85
+ } | {
86
+ semanticStatus: "ACCEPTED";
87
+ renderId: string;
88
+ operationId: string & z.core.$brand<"OperationId">;
89
+ productionId: string;
90
+ timelineVersionId: string;
91
+ timelineFingerprint: string;
92
+ executionClass: "LIVE" | "TEST_ONLY";
93
+ manifestFingerprint: string;
94
+ productionRevision: number;
95
+ selectionId: string;
96
+ selectionVersion: number;
97
+ profileId: "FINAL_H264_1080P_V1" | "FINAL_H264_720P_V1" | "FINAL_H264_480P_V1";
98
+ placement: {
99
+ target: "DEVICE" | "SERVER";
100
+ reason: "OFFLINE" | "UNQUALIFIED" | "BUSY" | "LOCAL_AVAILABLE" | "CLOUD_ONLY" | "LEASE_RECOVERY";
101
+ policy: {
102
+ mode: "local-only";
103
+ deviceId: string;
104
+ } | {
105
+ mode: "local-preferred";
106
+ deviceId: string;
107
+ } | {
108
+ mode: "cloud-only";
109
+ };
110
+ };
111
+ deviceExecution?: {
112
+ mode: "tenant-device-only";
113
+ deviceId: string;
114
+ runtimeJobId: string;
115
+ validationMode?: "TENANT_TRUSTED_VALIDATOR" | undefined;
116
+ } | undefined;
117
+ } | {
118
+ semanticStatus: "SUCCESS";
119
+ } | null;
120
+ }>;
121
+ revokeDevice(input: z.infer<typeof RevokeLocalDeviceSchema>, signal?: AbortSignal): Promise<{
122
+ semanticStatus: "SUCCESS";
123
+ }>;
124
+ startPreview(input: z.infer<typeof StartLocalPreviewSchema>, signal?: AbortSignal): Promise<{
125
+ semanticStatus: "ACCEPTED";
126
+ renderId: string;
127
+ operationId: string & z.core.$brand<"OperationId">;
128
+ productionId: string;
129
+ timelineVersionId: string;
130
+ timelineFingerprint: string;
131
+ executionClass: "LIVE" | "TEST_ONLY";
132
+ manifestFingerprint: string;
133
+ productionRevision: number;
134
+ placement: {
135
+ target: "DEVICE" | "SERVER";
136
+ reason: "OFFLINE" | "UNQUALIFIED" | "BUSY" | "LOCAL_AVAILABLE" | "CLOUD_ONLY" | "LEASE_RECOVERY";
137
+ policy: {
138
+ mode: "local-only";
139
+ deviceId: string;
140
+ } | {
141
+ mode: "local-preferred";
142
+ deviceId: string;
143
+ } | {
144
+ mode: "cloud-only";
145
+ };
146
+ };
147
+ deviceExecution?: {
148
+ mode: "tenant-device-only";
149
+ deviceId: string;
150
+ runtimeJobId: string;
151
+ validationMode?: "TENANT_TRUSTED_VALIDATOR" | undefined;
152
+ } | undefined;
153
+ }>;
154
+ startFinal(input: z.infer<typeof StartLocalFinalRenderSchema>, signal?: AbortSignal): Promise<{
155
+ semanticStatus: "ACCEPTED";
156
+ renderId: string;
157
+ operationId: string & z.core.$brand<"OperationId">;
158
+ productionId: string;
159
+ timelineVersionId: string;
160
+ timelineFingerprint: string;
161
+ executionClass: "LIVE" | "TEST_ONLY";
162
+ manifestFingerprint: string;
163
+ productionRevision: number;
164
+ selectionId: string;
165
+ selectionVersion: number;
166
+ profileId: "FINAL_H264_1080P_V1" | "FINAL_H264_720P_V1" | "FINAL_H264_480P_V1";
167
+ placement: {
168
+ target: "DEVICE" | "SERVER";
169
+ reason: "OFFLINE" | "UNQUALIFIED" | "BUSY" | "LOCAL_AVAILABLE" | "CLOUD_ONLY" | "LEASE_RECOVERY";
170
+ policy: {
171
+ mode: "local-only";
172
+ deviceId: string;
173
+ } | {
174
+ mode: "local-preferred";
175
+ deviceId: string;
176
+ } | {
177
+ mode: "cloud-only";
178
+ };
179
+ };
180
+ deviceExecution?: {
181
+ mode: "tenant-device-only";
182
+ deviceId: string;
183
+ runtimeJobId: string;
184
+ validationMode?: "TENANT_TRUSTED_VALIDATOR" | undefined;
185
+ } | undefined;
186
+ }>;
187
+ }
@@ -0,0 +1,268 @@
1
+ import { Readable } from "node:stream";
2
+ import type { NativeStudioLocalRuntimeClient } from "../local-runtime-client.js";
3
+ /** Owner 与受限调用使用同一 Runtime 接口,最终权限由 Runtime 逐次校验。 */
4
+ export declare class NativeStudioLocalLibraryClient {
5
+ private readonly client;
6
+ constructor(client: NativeStudioLocalRuntimeClient);
7
+ capability(signal?: AbortSignal): Promise<{
8
+ protocol: "NVS_LOCAL_LIBRARY_V1";
9
+ available: boolean;
10
+ profileDigest: string;
11
+ }>;
12
+ call(raw: unknown, signal?: AbortSignal): Promise<{
13
+ reference: {
14
+ tenantId: string;
15
+ projectId: string;
16
+ fileId: string;
17
+ versionId: string;
18
+ checksumSha256: string;
19
+ byteSize: number;
20
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
21
+ deviceId: string;
22
+ };
23
+ ownerKey: string;
24
+ title: string;
25
+ createdAt: string;
26
+ revision: number;
27
+ access: {
28
+ state: "REJECTED" | "UNKNOWN" | "PENDING" | "LOCAL_ONLY" | "SYNCED";
29
+ desired: {
30
+ reference: {
31
+ tenantId: string;
32
+ projectId: string;
33
+ fileId: string;
34
+ versionId: string;
35
+ checksumSha256: string;
36
+ byteSize: number;
37
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
38
+ deviceId: string;
39
+ };
40
+ requestId: string;
41
+ expectedRevision: number;
42
+ metadata: {
43
+ label: string;
44
+ } | null;
45
+ allowInspect: boolean;
46
+ allowPublish: boolean;
47
+ expiresAt: string;
48
+ } | null;
49
+ confirmed: {
50
+ reference: {
51
+ tenantId: string;
52
+ projectId: string;
53
+ fileId: string;
54
+ versionId: string;
55
+ checksumSha256: string;
56
+ byteSize: number;
57
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
58
+ deviceId: string;
59
+ };
60
+ requestId: string;
61
+ expectedRevision: number;
62
+ metadata: {
63
+ label: string;
64
+ } | null;
65
+ allowInspect: boolean;
66
+ allowPublish: boolean;
67
+ expiresAt: string;
68
+ revision: number;
69
+ recordedAt: string;
70
+ } | null;
71
+ };
72
+ } | {
73
+ items: {
74
+ reference: {
75
+ tenantId: string;
76
+ projectId: string;
77
+ fileId: string;
78
+ versionId: string;
79
+ checksumSha256: string;
80
+ byteSize: number;
81
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
82
+ deviceId: string;
83
+ };
84
+ metadata: {
85
+ label: string;
86
+ } | null;
87
+ accessRevision: number;
88
+ allowInspect: boolean;
89
+ allowPublish: boolean;
90
+ expiresAt: string;
91
+ }[];
92
+ nextCursor: string | null;
93
+ } | {
94
+ items: {
95
+ reference: {
96
+ tenantId: string;
97
+ projectId: string;
98
+ fileId: string;
99
+ versionId: string;
100
+ checksumSha256: string;
101
+ byteSize: number;
102
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
103
+ deviceId: string;
104
+ };
105
+ ownerKey: string;
106
+ title: string;
107
+ createdAt: string;
108
+ revision: number;
109
+ access: {
110
+ state: "REJECTED" | "UNKNOWN" | "PENDING" | "LOCAL_ONLY" | "SYNCED";
111
+ desired: {
112
+ reference: {
113
+ tenantId: string;
114
+ projectId: string;
115
+ fileId: string;
116
+ versionId: string;
117
+ checksumSha256: string;
118
+ byteSize: number;
119
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
120
+ deviceId: string;
121
+ };
122
+ requestId: string;
123
+ expectedRevision: number;
124
+ metadata: {
125
+ label: string;
126
+ } | null;
127
+ allowInspect: boolean;
128
+ allowPublish: boolean;
129
+ expiresAt: string;
130
+ } | null;
131
+ confirmed: {
132
+ reference: {
133
+ tenantId: string;
134
+ projectId: string;
135
+ fileId: string;
136
+ versionId: string;
137
+ checksumSha256: string;
138
+ byteSize: number;
139
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
140
+ deviceId: string;
141
+ };
142
+ requestId: string;
143
+ expectedRevision: number;
144
+ metadata: {
145
+ label: string;
146
+ } | null;
147
+ allowInspect: boolean;
148
+ allowPublish: boolean;
149
+ expiresAt: string;
150
+ revision: number;
151
+ recordedAt: string;
152
+ } | null;
153
+ };
154
+ }[];
155
+ nextCursor: string | null;
156
+ } | {
157
+ reference: {
158
+ tenantId: string;
159
+ projectId: string;
160
+ fileId: string;
161
+ versionId: string;
162
+ checksumSha256: string;
163
+ byteSize: number;
164
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
165
+ deviceId: string;
166
+ };
167
+ metadata: {
168
+ label: string;
169
+ } | null;
170
+ accessRevision: number;
171
+ allowInspect: boolean;
172
+ allowPublish: boolean;
173
+ expiresAt: string;
174
+ } | {
175
+ reference: {
176
+ tenantId: string;
177
+ projectId: string;
178
+ fileId: string;
179
+ versionId: string;
180
+ checksumSha256: string;
181
+ byteSize: number;
182
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
183
+ deviceId: string;
184
+ };
185
+ offset: number;
186
+ contentBase64: string;
187
+ complete: boolean;
188
+ } | {
189
+ fileCount: number;
190
+ totalBytes: number;
191
+ quotaBytes: number;
192
+ availableDiskBytes: number;
193
+ } | null>;
194
+ import(raw: unknown, bytes: Readable, signal?: AbortSignal): Promise<{
195
+ reference: {
196
+ tenantId: string;
197
+ projectId: string;
198
+ fileId: string;
199
+ versionId: string;
200
+ checksumSha256: string;
201
+ byteSize: number;
202
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
203
+ deviceId: string;
204
+ };
205
+ ownerKey: string;
206
+ title: string;
207
+ createdAt: string;
208
+ revision: number;
209
+ access: {
210
+ state: "REJECTED" | "UNKNOWN" | "PENDING" | "LOCAL_ONLY" | "SYNCED";
211
+ desired: {
212
+ reference: {
213
+ tenantId: string;
214
+ projectId: string;
215
+ fileId: string;
216
+ versionId: string;
217
+ checksumSha256: string;
218
+ byteSize: number;
219
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
220
+ deviceId: string;
221
+ };
222
+ requestId: string;
223
+ expectedRevision: number;
224
+ metadata: {
225
+ label: string;
226
+ } | null;
227
+ allowInspect: boolean;
228
+ allowPublish: boolean;
229
+ expiresAt: string;
230
+ } | null;
231
+ confirmed: {
232
+ reference: {
233
+ tenantId: string;
234
+ projectId: string;
235
+ fileId: string;
236
+ versionId: string;
237
+ checksumSha256: string;
238
+ byteSize: number;
239
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
240
+ deviceId: string;
241
+ };
242
+ requestId: string;
243
+ expectedRevision: number;
244
+ metadata: {
245
+ label: string;
246
+ } | null;
247
+ allowInspect: boolean;
248
+ allowPublish: boolean;
249
+ expiresAt: string;
250
+ revision: number;
251
+ recordedAt: string;
252
+ } | null;
253
+ };
254
+ }>;
255
+ media(raw: unknown, input?: {
256
+ method?: "GET" | "HEAD";
257
+ range?: string;
258
+ }, signal?: AbortSignal): Promise<{
259
+ contentRange?: string;
260
+ stream: Readable;
261
+ contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
262
+ byteSize: number;
263
+ contentLength: number;
264
+ httpStatus: 200 | 206;
265
+ }>;
266
+ }
267
+ export { LocalLibraryCallSchema, LocalLibraryCapabilitySchema, LocalLibraryImportSchema, LocalLibraryItemSchema, LocalLibraryPageSchema, LocalLibraryProjectionPageSchema, LocalLibraryProjectionSchema, LocalLibraryReadReplySchema, LocalLibraryUsageSchema, LocalLibraryGetSchema, LocalLibraryQuerySchema, LocalLibraryProjectionQuerySchema, LocalLibraryReferenceSchema, LocalLibraryImportReceiptQuerySchema, LocalLibraryContentTypeSchema, } from "../../contracts/local-execution/index.js";
268
+ export { localLibraryProfile } from "../../contracts/local-execution/index.js";
@@ -0,0 +1,186 @@
1
+ import type { NativeStudioLocalRuntimeClient } from "../local-runtime-client.js";
2
+ /** Owner-only mechanics. Scoped connectors are still denied by the Runtime. */
3
+ export declare class NativeStudioLocalWorkspaceClient {
4
+ private readonly client;
5
+ constructor(client: Pick<NativeStudioLocalRuntimeClient, "call">);
6
+ offline(raw: unknown, signal?: AbortSignal): Promise<{
7
+ historical: true;
8
+ items: {
9
+ snapshot: {
10
+ projectId: string;
11
+ title: string;
12
+ savedAt: string;
13
+ expiresAt: string;
14
+ productions: {
15
+ id: string;
16
+ title: string;
17
+ }[];
18
+ possiblyTruncated: boolean;
19
+ };
20
+ draft: {
21
+ text: string;
22
+ revision: number;
23
+ };
24
+ }[];
25
+ }>;
26
+ inspect(signal?: AbortSignal): Promise<{
27
+ settings: {
28
+ revision: number;
29
+ policy: {
30
+ acceptNewWork: boolean;
31
+ mode: "CONTINUOUS" | "IDLE_ONLY";
32
+ idleAfterSeconds: number;
33
+ maxConcurrentJobs: number;
34
+ cpuCores: 2 | 1;
35
+ memoryMiB: number;
36
+ cacheQuotaBytes: number;
37
+ };
38
+ };
39
+ storage: {
40
+ cacheBytes: number;
41
+ protectedBytes: number;
42
+ reclaimableBytes: number;
43
+ transferBytes: number;
44
+ journalBytes: number;
45
+ availableDiskBytes: number;
46
+ quotaBytes: number;
47
+ overQuota: boolean;
48
+ reviewBytes?: number | undefined;
49
+ ownerStagingBytes?: number | undefined;
50
+ };
51
+ scheduling: {
52
+ state: "READY" | "PAUSED" | "WAITING_FOR_IDLE" | "AT_CAPACITY" | "DRAINING";
53
+ activeJobs: number;
54
+ idleObservationCurrent: boolean;
55
+ };
56
+ }>;
57
+ configure(raw: unknown, expectedRevision: number, signal?: AbortSignal): Promise<{
58
+ settings: {
59
+ revision: number;
60
+ policy: {
61
+ acceptNewWork: boolean;
62
+ mode: "CONTINUOUS" | "IDLE_ONLY";
63
+ idleAfterSeconds: number;
64
+ maxConcurrentJobs: number;
65
+ cpuCores: 2 | 1;
66
+ memoryMiB: number;
67
+ cacheQuotaBytes: number;
68
+ };
69
+ };
70
+ storage: {
71
+ cacheBytes: number;
72
+ protectedBytes: number;
73
+ reclaimableBytes: number;
74
+ transferBytes: number;
75
+ journalBytes: number;
76
+ availableDiskBytes: number;
77
+ quotaBytes: number;
78
+ overQuota: boolean;
79
+ reviewBytes?: number | undefined;
80
+ ownerStagingBytes?: number | undefined;
81
+ };
82
+ scheduling: {
83
+ state: "READY" | "PAUSED" | "WAITING_FOR_IDLE" | "AT_CAPACITY" | "DRAINING";
84
+ activeJobs: number;
85
+ idleObservationCurrent: boolean;
86
+ };
87
+ }>;
88
+ observeActivity(idleSeconds: number, observedAt: string, signal?: AbortSignal): Promise<{
89
+ settings: {
90
+ revision: number;
91
+ policy: {
92
+ acceptNewWork: boolean;
93
+ mode: "CONTINUOUS" | "IDLE_ONLY";
94
+ idleAfterSeconds: number;
95
+ maxConcurrentJobs: number;
96
+ cpuCores: 2 | 1;
97
+ memoryMiB: number;
98
+ cacheQuotaBytes: number;
99
+ };
100
+ };
101
+ storage: {
102
+ cacheBytes: number;
103
+ protectedBytes: number;
104
+ reclaimableBytes: number;
105
+ transferBytes: number;
106
+ journalBytes: number;
107
+ availableDiskBytes: number;
108
+ quotaBytes: number;
109
+ overQuota: boolean;
110
+ reviewBytes?: number | undefined;
111
+ ownerStagingBytes?: number | undefined;
112
+ };
113
+ scheduling: {
114
+ state: "READY" | "PAUSED" | "WAITING_FOR_IDLE" | "AT_CAPACITY" | "DRAINING";
115
+ activeJobs: number;
116
+ idleObservationCurrent: boolean;
117
+ };
118
+ }>;
119
+ clean(signal?: AbortSignal): Promise<{
120
+ settings: {
121
+ revision: number;
122
+ policy: {
123
+ acceptNewWork: boolean;
124
+ mode: "CONTINUOUS" | "IDLE_ONLY";
125
+ idleAfterSeconds: number;
126
+ maxConcurrentJobs: number;
127
+ cpuCores: 2 | 1;
128
+ memoryMiB: number;
129
+ cacheQuotaBytes: number;
130
+ };
131
+ };
132
+ storage: {
133
+ cacheBytes: number;
134
+ protectedBytes: number;
135
+ reclaimableBytes: number;
136
+ transferBytes: number;
137
+ journalBytes: number;
138
+ availableDiskBytes: number;
139
+ quotaBytes: number;
140
+ overQuota: boolean;
141
+ reviewBytes?: number | undefined;
142
+ ownerStagingBytes?: number | undefined;
143
+ };
144
+ scheduling: {
145
+ state: "READY" | "PAUSED" | "WAITING_FOR_IDLE" | "AT_CAPACITY" | "DRAINING";
146
+ activeJobs: number;
147
+ idleObservationCurrent: boolean;
148
+ };
149
+ }>;
150
+ diagnostics(signal?: AbortSignal): Promise<{
151
+ protocol: "NVS_LOCAL_DIAGNOSTICS_V1";
152
+ createdAt: string;
153
+ runtimeVersion: string;
154
+ runtimeRevision: number;
155
+ settings: {
156
+ revision: number;
157
+ policy: {
158
+ acceptNewWork: boolean;
159
+ mode: "CONTINUOUS" | "IDLE_ONLY";
160
+ idleAfterSeconds: number;
161
+ maxConcurrentJobs: number;
162
+ cpuCores: 2 | 1;
163
+ memoryMiB: number;
164
+ cacheQuotaBytes: number;
165
+ };
166
+ };
167
+ storage: {
168
+ cacheBytes: number;
169
+ protectedBytes: number;
170
+ reclaimableBytes: number;
171
+ transferBytes: number;
172
+ journalBytes: number;
173
+ availableDiskBytes: number;
174
+ quotaBytes: number;
175
+ overQuota: boolean;
176
+ reviewBytes?: number | undefined;
177
+ ownerStagingBytes?: number | undefined;
178
+ };
179
+ recordCounts: Record<string, number>;
180
+ failures: {
181
+ taskFingerprint: string;
182
+ code: string;
183
+ observedAt: string;
184
+ }[];
185
+ }>;
186
+ }