@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,62 @@
1
+ import { z } from "zod";
2
+ /** Workspace 是 tenant 的公开导航投影,不能成为第二套租户或权限模型。 */
3
+ export declare const WorkspaceScopeSchema: z.ZodObject<{
4
+ tenantId: z.core.$ZodBranded<z.ZodUUID, "TenantId", "out">;
5
+ }, z.core.$strict>;
6
+ export declare const WorkspaceViewSchema: z.ZodObject<{
7
+ id: z.ZodUUID;
8
+ displayName: z.ZodString;
9
+ }, z.core.$strict>;
10
+ /** 当前授权的最小调用者投影;固定服务来源用于复用本机 Owner,不返回任何令牌。 */
11
+ export declare const WorkspaceCallerSchema: z.ZodObject<{
12
+ humanLinks: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
13
+ status: z.ZodLiteral<"AVAILABLE">;
14
+ items: z.ZodArray<z.ZodObject<{
15
+ rel: z.ZodEnum<{
16
+ delivery: "delivery";
17
+ workspace: "workspace";
18
+ project: "project";
19
+ production: "production";
20
+ artifact: "artifact";
21
+ voice_profile: "voice_profile";
22
+ }>;
23
+ href: z.ZodURL;
24
+ }, z.core.$strict>>;
25
+ }, z.core.$strict>, z.ZodObject<{
26
+ status: z.ZodEnum<{
27
+ UNAVAILABLE: "UNAVAILABLE";
28
+ UNCONFIGURED: "UNCONFIGURED";
29
+ }>;
30
+ items: z.ZodArray<z.ZodObject<{
31
+ rel: z.ZodEnum<{
32
+ delivery: "delivery";
33
+ workspace: "workspace";
34
+ project: "project";
35
+ production: "production";
36
+ artifact: "artifact";
37
+ voice_profile: "voice_profile";
38
+ }>;
39
+ href: z.ZodURL;
40
+ }, z.core.$strict>>;
41
+ }, z.core.$strict>], "status">>;
42
+ tenantId: z.ZodUUID;
43
+ principalId: z.ZodUUID;
44
+ serverOrigin: z.ZodURL;
45
+ skill: z.ZodDiscriminatedUnion<[z.ZodObject<{
46
+ status: z.ZodLiteral<"AVAILABLE">;
47
+ url: z.ZodURL;
48
+ }, z.core.$strict>, z.ZodObject<{
49
+ status: z.ZodEnum<{
50
+ UNAVAILABLE: "UNAVAILABLE";
51
+ UNCONFIGURED: "UNCONFIGURED";
52
+ }>;
53
+ url: z.ZodNull;
54
+ }, z.core.$strict>], "status">;
55
+ }, z.core.$strict>;
56
+ export declare const WorkspacePageSchema: z.ZodObject<{
57
+ items: z.ZodArray<z.ZodObject<{
58
+ id: z.ZodUUID;
59
+ displayName: z.ZodString;
60
+ }, z.core.$strict>>;
61
+ possiblyTruncated: z.ZodBoolean;
62
+ }, z.core.$strict>;
@@ -1,9 +1,14 @@
1
- import type { InterfaceSemanticStatus } from "../contracts/index.js";
1
+ import type { InterfaceSemanticStatus } from "../contracts/interface/common.js";
2
+ export interface SdkInputIssue {
3
+ field: string;
4
+ code: string;
5
+ }
2
6
  export declare class NativeStudioSdkError extends Error {
3
7
  readonly code: string;
4
8
  readonly semanticStatus: InterfaceSemanticStatus;
5
9
  readonly outcome: "NO_WRITE" | "UNKNOWN" | "REJECTED";
6
10
  readonly status: number | null;
7
- constructor(code: string, semanticStatus: InterfaceSemanticStatus, outcome: "NO_WRITE" | "UNKNOWN" | "REJECTED", status?: number | null);
11
+ readonly issues: readonly SdkInputIssue[];
12
+ constructor(code: string, semanticStatus: InterfaceSemanticStatus, outcome: "NO_WRITE" | "UNKNOWN" | "REJECTED", status?: number | null, issues?: readonly SdkInputIssue[]);
8
13
  }
9
- export declare function sdkInputError(): never;
14
+ export declare function sdkInputError(issues?: readonly SdkInputIssue[]): never;
@@ -0,0 +1,2 @@
1
+ export { LocalRuntimeComponentSchema, LocalComponentBytesSchema, RuntimeCaptionAssets, } from "../../contracts/local-execution/index.js";
2
+ export type { LocalRuntimeComponent } from "../../contracts/local-execution/index.js";
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
- import { EnrollLocalDeviceSchema, GrantLocalDeviceSchema, RevokeLocalDeviceSchema, RevokeLocalDeviceGrantSchema, StartLocalPreviewSchema } from "../../contracts/local-execution/index.js";
3
- /** Human/member-authorized native management; never composed with an MCP execution connector. */
2
+ import { EnrollLocalDeviceSchema, RevokeLocalDeviceSchema, StartLocalPreviewSchema, StartLocalFinalRenderSchema, LocalDeviceManagementCommandSchema } from "../../contracts/local-execution/index.js";
3
+ /** 成员设备管理沿当前 tenant;设备会话和本机执行连接不构成成员权限。 */
4
4
  export declare class NativeStudioLocalDeviceClient {
5
5
  private readonly options;
6
6
  private readonly origin;
@@ -21,7 +21,7 @@ export declare class NativeStudioLocalDeviceClient {
21
21
  label: string;
22
22
  platform: {
23
23
  os: "darwin" | "linux" | "win32";
24
- architecture: "x64" | "arm64";
24
+ architecture: "arm64" | "x64";
25
25
  };
26
26
  runtimeVersion: string;
27
27
  deviceId: string;
@@ -31,25 +31,122 @@ export declare class NativeStudioLocalDeviceClient {
31
31
  verifiedAt: string | null;
32
32
  revokedAt: string | null;
33
33
  }>;
34
- grant(input: z.infer<typeof GrantLocalDeviceSchema>, signal?: AbortSignal): Promise<{
35
- tenantId: string;
36
- projectId: string;
37
- capability: "ROUGH_CUT_PREVIEW_V1";
38
- expiresAt: string;
39
- deviceId: string;
40
- deviceRevision: number;
41
- grantId: string;
42
- revision: number;
43
- approvedByPrincipalId: string;
44
- createdAt: string;
45
- revokedAt: string | null;
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: "arm64" | "x64";
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
+ humanLinks?: {
80
+ status: "AVAILABLE";
81
+ items: {
82
+ rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
83
+ href: string;
84
+ }[];
85
+ } | {
86
+ status: "UNAVAILABLE" | "UNCONFIGURED";
87
+ items: {
88
+ rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
89
+ href: string;
90
+ }[];
91
+ } | undefined;
92
+ deviceExecution?: {
93
+ mode: "tenant-device-only";
94
+ deviceId: string;
95
+ runtimeJobId: string;
96
+ validationMode?: "TENANT_TRUSTED_VALIDATOR" | undefined;
97
+ } | undefined;
98
+ } | {
99
+ semanticStatus: "ACCEPTED";
100
+ renderId: string;
101
+ operationId: string & z.core.$brand<"OperationId">;
102
+ productionId: string;
103
+ timelineVersionId: string;
104
+ timelineFingerprint: string;
105
+ executionClass: "LIVE" | "TEST_ONLY";
106
+ manifestFingerprint: string;
107
+ productionRevision: number;
108
+ selectionId: string;
109
+ selectionVersion: number;
110
+ profileId: "FINAL_H264_1080P_V1" | "FINAL_H264_720P_V1" | "FINAL_H264_480P_V1";
111
+ placement: {
112
+ target: "DEVICE" | "SERVER";
113
+ reason: "OFFLINE" | "UNQUALIFIED" | "BUSY" | "LOCAL_AVAILABLE" | "CLOUD_ONLY" | "LEASE_RECOVERY";
114
+ policy: {
115
+ mode: "local-only";
116
+ deviceId: string;
117
+ } | {
118
+ mode: "local-preferred";
119
+ deviceId: string;
120
+ } | {
121
+ mode: "cloud-only";
122
+ };
123
+ };
124
+ humanLinks?: {
125
+ status: "AVAILABLE";
126
+ items: {
127
+ rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
128
+ href: string;
129
+ }[];
130
+ } | {
131
+ status: "UNAVAILABLE" | "UNCONFIGURED";
132
+ items: {
133
+ rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
134
+ href: string;
135
+ }[];
136
+ } | undefined;
137
+ deviceExecution?: {
138
+ mode: "tenant-device-only";
139
+ deviceId: string;
140
+ runtimeJobId: string;
141
+ validationMode?: "TENANT_TRUSTED_VALIDATOR" | undefined;
142
+ } | undefined;
143
+ } | {
144
+ semanticStatus: "SUCCESS";
145
+ } | null;
46
146
  }>;
47
147
  revokeDevice(input: z.infer<typeof RevokeLocalDeviceSchema>, signal?: AbortSignal): Promise<{
48
148
  semanticStatus: "SUCCESS";
49
149
  }>;
50
- revokeGrant(input: z.infer<typeof RevokeLocalDeviceGrantSchema>, signal?: AbortSignal): Promise<{
51
- semanticStatus: "SUCCESS";
52
- }>;
53
150
  startPreview(input: z.infer<typeof StartLocalPreviewSchema>, signal?: AbortSignal): Promise<{
54
151
  semanticStatus: "ACCEPTED";
55
152
  renderId: string;
@@ -73,5 +170,70 @@ export declare class NativeStudioLocalDeviceClient {
73
170
  mode: "cloud-only";
74
171
  };
75
172
  };
173
+ humanLinks?: {
174
+ status: "AVAILABLE";
175
+ items: {
176
+ rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
177
+ href: string;
178
+ }[];
179
+ } | {
180
+ status: "UNAVAILABLE" | "UNCONFIGURED";
181
+ items: {
182
+ rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
183
+ href: string;
184
+ }[];
185
+ } | undefined;
186
+ deviceExecution?: {
187
+ mode: "tenant-device-only";
188
+ deviceId: string;
189
+ runtimeJobId: string;
190
+ validationMode?: "TENANT_TRUSTED_VALIDATOR" | undefined;
191
+ } | undefined;
192
+ }>;
193
+ startFinal(input: z.infer<typeof StartLocalFinalRenderSchema>, signal?: AbortSignal): Promise<{
194
+ semanticStatus: "ACCEPTED";
195
+ renderId: string;
196
+ operationId: string & z.core.$brand<"OperationId">;
197
+ productionId: string;
198
+ timelineVersionId: string;
199
+ timelineFingerprint: string;
200
+ executionClass: "LIVE" | "TEST_ONLY";
201
+ manifestFingerprint: string;
202
+ productionRevision: number;
203
+ selectionId: string;
204
+ selectionVersion: number;
205
+ profileId: "FINAL_H264_1080P_V1" | "FINAL_H264_720P_V1" | "FINAL_H264_480P_V1";
206
+ placement: {
207
+ target: "DEVICE" | "SERVER";
208
+ reason: "OFFLINE" | "UNQUALIFIED" | "BUSY" | "LOCAL_AVAILABLE" | "CLOUD_ONLY" | "LEASE_RECOVERY";
209
+ policy: {
210
+ mode: "local-only";
211
+ deviceId: string;
212
+ } | {
213
+ mode: "local-preferred";
214
+ deviceId: string;
215
+ } | {
216
+ mode: "cloud-only";
217
+ };
218
+ };
219
+ humanLinks?: {
220
+ status: "AVAILABLE";
221
+ items: {
222
+ rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
223
+ href: string;
224
+ }[];
225
+ } | {
226
+ status: "UNAVAILABLE" | "UNCONFIGURED";
227
+ items: {
228
+ rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
229
+ href: string;
230
+ }[];
231
+ } | undefined;
232
+ deviceExecution?: {
233
+ mode: "tenant-device-only";
234
+ deviceId: string;
235
+ runtimeJobId: string;
236
+ validationMode?: "TENANT_TRUSTED_VALIDATOR" | undefined;
237
+ } | undefined;
76
238
  }>;
77
239
  }
@@ -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";