@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,6 @@
1
+ export declare const LOCAL_AUDIO_PROFILE_SPEC: {
2
+ readonly protocol: "NVS_LOCAL_AUDIO_MEDIA_V1";
3
+ readonly source: "PCM_S16LE_24000_MONO";
4
+ readonly output: "PCM_S16LE_48000_MONO_WHOLE_MILLISECOND";
5
+ readonly verification: "FULL_PCM_NORMALIZATION_READBACK_V1";
6
+ };
@@ -1,34 +1,35 @@
1
1
  import { z } from "zod";
2
- export declare const LocalIdSchema: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
2
+ /** UUID 只做保持类型的大小写归一,HTTP/MCP 可声明同一输出 JSON Schema。 */
3
+ export declare const LocalIdSchema: z.ZodUUID;
3
4
  export declare const LocalDigestSchema: z.ZodString;
4
5
  export declare const LocalRevisionSchema: z.ZodInt;
5
6
  export declare const LocalTimeSchema: z.ZodISODateTime;
6
7
  export declare const LocalPackageVersionSchema: z.ZodString;
7
8
  export declare const LocalProjectScopeSchema: z.ZodObject<{
8
- tenantId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
9
- projectId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
9
+ tenantId: z.ZodUUID;
10
+ projectId: z.ZodUUID;
10
11
  }, z.core.$strict>;
11
12
  export declare const LocalWorkScopeSchema: z.ZodObject<{
12
- tenantId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
13
- projectId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
14
- productionId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
15
- runtimeJobId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
13
+ tenantId: z.ZodUUID;
14
+ projectId: z.ZodUUID;
15
+ productionId: z.ZodUUID;
16
+ runtimeJobId: z.ZodUUID;
16
17
  }, z.core.$strict>;
17
18
  export declare const LocalPlacementPolicySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
18
19
  mode: z.ZodLiteral<"local-only">;
19
- deviceId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
20
+ deviceId: z.ZodUUID;
20
21
  }, z.core.$strict>, z.ZodObject<{
21
22
  mode: z.ZodLiteral<"local-preferred">;
22
- deviceId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
23
+ deviceId: z.ZodUUID;
23
24
  }, z.core.$strict>, z.ZodObject<{
24
25
  mode: z.ZodLiteral<"cloud-only">;
25
26
  }, z.core.$strict>], "mode">;
26
27
  export declare const LocalPlacementAvailabilitySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
27
28
  status: z.ZodLiteral<"AVAILABLE">;
28
- deviceId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
29
+ deviceId: z.ZodUUID;
29
30
  }, z.core.$strict>, z.ZodObject<{
30
31
  status: z.ZodLiteral<"UNAVAILABLE">;
31
- deviceId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
32
+ deviceId: z.ZodUUID;
32
33
  reason: z.ZodEnum<{
33
34
  OFFLINE: "OFFLINE";
34
35
  UNQUALIFIED: "UNQUALIFIED";
@@ -1,24 +1,25 @@
1
1
  import { z } from "zod";
2
+ import { LocalDigestSchema, LocalIdSchema } from "./common.js";
2
3
  export declare const LocalCompletionSubmissionSchema: z.ZodObject<{
3
- tenantId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
4
- projectId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
5
- productionId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
6
- runtimeJobId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
7
- attemptId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
8
- assignmentRevision: z.ZodInt;
4
+ tenantId: z.ZodUUID;
5
+ projectId: z.ZodUUID;
6
+ productionId: z.ZodUUID;
7
+ runtimeJobId: z.ZodUUID;
8
+ attemptId: typeof LocalIdSchema;
9
+ assignmentRevision: typeof import("./common.js").LocalRevisionSchema;
9
10
  workerId: z.ZodString;
10
- workFingerprint: z.ZodString;
11
- toolchainFingerprint: z.ZodString;
12
- requestId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
11
+ workFingerprint: typeof LocalDigestSchema;
12
+ toolchainFingerprint: typeof LocalDigestSchema;
13
+ requestId: z.ZodUUID;
13
14
  outputs: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
14
15
  role: z.ZodLiteral<"VIDEO">;
15
- receiptId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
16
+ receiptId: z.ZodUUID;
16
17
  checksumSha256: z.ZodString;
17
18
  byteSize: z.ZodInt;
18
19
  contentType: z.ZodLiteral<"video/mp4">;
19
20
  }, z.core.$strict>, z.ZodObject<{
20
21
  role: z.ZodLiteral<"POSTER">;
21
- receiptId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
22
+ receiptId: z.ZodUUID;
22
23
  checksumSha256: z.ZodString;
23
24
  byteSize: z.ZodInt;
24
25
  contentType: z.ZodLiteral<"image/png">;
@@ -55,12 +56,7 @@ export declare const LocalCompletionSubmissionSchema: z.ZodObject<{
55
56
  checksumSha256: z.ZodString;
56
57
  }, z.core.$strict>>;
57
58
  hasAudio: z.ZodBoolean;
58
- audio: z.ZodOptional<z.ZodObject<{
59
- audioCodec: z.ZodLiteral<"aac">;
60
- sampleRateHz: z.ZodLiteral<48000>;
61
- audioChannels: z.ZodLiteral<2>;
62
- sampleCount: z.ZodInt;
63
- }, z.core.$strict>>;
59
+ audio: z.ZodOptional<typeof import("../timeline-audio.js").RenderedAudioSchema>;
64
60
  durationMs: z.ZodInt;
65
61
  frameRate: z.ZodLiteral<30>;
66
62
  frameCount: z.ZodInt;
@@ -69,25 +65,25 @@ export declare const LocalCompletionSubmissionSchema: z.ZodObject<{
69
65
  }, z.core.$strict>;
70
66
  export declare const LocalVerifiedUploadSchema: z.ZodObject<{
71
67
  binding: z.ZodObject<{
72
- tenantId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
73
- projectId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
74
- productionId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
75
- runtimeJobId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
76
- attemptId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
77
- assignmentRevision: z.ZodInt;
68
+ tenantId: z.ZodUUID;
69
+ projectId: z.ZodUUID;
70
+ productionId: z.ZodUUID;
71
+ runtimeJobId: z.ZodUUID;
72
+ attemptId: typeof LocalIdSchema;
73
+ assignmentRevision: typeof import("./common.js").LocalRevisionSchema;
78
74
  workerId: z.ZodString;
79
- workFingerprint: z.ZodString;
80
- toolchainFingerprint: z.ZodString;
75
+ workFingerprint: typeof LocalDigestSchema;
76
+ toolchainFingerprint: typeof LocalDigestSchema;
81
77
  }, z.core.$strict>;
82
78
  output: z.ZodDiscriminatedUnion<[z.ZodObject<{
83
79
  role: z.ZodLiteral<"VIDEO">;
84
- receiptId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
80
+ receiptId: z.ZodUUID;
85
81
  checksumSha256: z.ZodString;
86
82
  byteSize: z.ZodInt;
87
83
  contentType: z.ZodLiteral<"video/mp4">;
88
84
  }, z.core.$strict>, z.ZodObject<{
89
85
  role: z.ZodLiteral<"POSTER">;
90
- receiptId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
86
+ receiptId: z.ZodUUID;
91
87
  checksumSha256: z.ZodString;
92
88
  byteSize: z.ZodInt;
93
89
  contentType: z.ZodLiteral<"image/png">;
@@ -96,32 +92,32 @@ export declare const LocalVerifiedUploadSchema: z.ZodObject<{
96
92
  }, z.core.$strict>;
97
93
  /** Only the native owner returns this after atomic acceptance and durable byte validation. */
98
94
  export declare const LocalCompletionReceiptSchema: z.ZodObject<{
99
- tenantId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
100
- projectId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
101
- productionId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
102
- runtimeJobId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
103
- attemptId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
104
- assignmentRevision: z.ZodInt;
95
+ tenantId: z.ZodUUID;
96
+ projectId: z.ZodUUID;
97
+ productionId: z.ZodUUID;
98
+ runtimeJobId: z.ZodUUID;
99
+ attemptId: typeof LocalIdSchema;
100
+ assignmentRevision: typeof import("./common.js").LocalRevisionSchema;
105
101
  workerId: z.ZodString;
106
- workFingerprint: z.ZodString;
107
- toolchainFingerprint: z.ZodString;
102
+ workFingerprint: typeof LocalDigestSchema;
103
+ toolchainFingerprint: typeof LocalDigestSchema;
108
104
  submissionFingerprint: z.ZodOptional<z.ZodString>;
109
105
  semanticStatus: z.ZodLiteral<"SUCCESS">;
110
- requestId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
111
- renderId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
106
+ requestId: z.ZodUUID;
107
+ renderId: z.ZodUUID;
112
108
  operationId: z.core.$ZodBranded<z.ZodString, "OperationId", "out">;
113
- artifactId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
114
- videoRepresentationId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
115
- posterRepresentationId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
109
+ artifactId: z.ZodUUID;
110
+ videoRepresentationId: z.ZodUUID;
111
+ posterRepresentationId: z.ZodUUID;
116
112
  checksumSha256: z.ZodString;
117
113
  acceptedAt: z.ZodISODateTime;
118
114
  }, z.core.$strict>;
119
115
  export declare const GetLocalCompletionReceiptSchema: z.ZodObject<{
120
- tenantId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
121
- projectId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
122
- productionId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
123
- runtimeJobId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
124
- requestId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
116
+ tenantId: z.ZodUUID;
117
+ projectId: z.ZodUUID;
118
+ productionId: z.ZodUUID;
119
+ runtimeJobId: z.ZodUUID;
120
+ requestId: z.ZodUUID;
125
121
  }, z.core.$strict>;
126
122
  export type LocalCompletionSubmission = z.infer<typeof LocalCompletionSubmissionSchema>;
127
123
  export type LocalVerifiedUpload = z.infer<typeof LocalVerifiedUploadSchema>;
@@ -0,0 +1,45 @@
1
+ import { z } from "zod";
2
+ /** 资源字节沿既有字幕合同固定;纯数据包不能夹带新的执行程序。 */
3
+ export declare const RuntimeCaptionAssets: {
4
+ readonly "NotoSansSC.ttf": "a3041811a78c361b1de50f953c805e0244951c21c5bd412f7232ef0d899af0da";
5
+ readonly "NativeStudioSC-Regular.ttf": "e5a51f41fc1b827da651afee3975e07a182ff4f8e04d9dfc0a3cecd6177a52b6";
6
+ readonly "OFL.txt": "092c580f54ee69841e94731e91f63f5d2d2a793550f4827cec485656e462f1bd";
7
+ };
8
+ export declare const LocalComponentBytesSchema: z.ZodObject<{
9
+ byteSize: z.ZodInt;
10
+ sha512: z.ZodString;
11
+ }, z.core.$strict>;
12
+ /** CLI 携带跨平台 Node 代码,安装时才投影实际主机平台;资源摘要不携带部署 URL。 */
13
+ export declare const LocalRuntimeComponentSchema: z.ZodObject<{
14
+ byteSize: z.ZodInt;
15
+ sha512: z.ZodString;
16
+ protocol: z.ZodLiteral<"NVS_PRODUCT_COMPONENT_V2">;
17
+ version: z.ZodString;
18
+ descriptor: z.ZodObject<{
19
+ version: z.ZodString;
20
+ protocol: z.ZodLiteral<"NVS_RUNTIME_DESCRIPTOR_V1">;
21
+ node: z.ZodObject<{
22
+ major: z.ZodLiteral<24>;
23
+ minMinor: z.ZodLiteral<12>;
24
+ }, z.core.$strict>;
25
+ rendererDigest: z.ZodString;
26
+ ipcProtocol: z.ZodLiteral<"NVS_LOCAL_IPC_V1">;
27
+ workProtocol: z.ZodEnum<{
28
+ NVS_LOCAL_WORK_V1: "NVS_LOCAL_WORK_V1";
29
+ NVS_LOCAL_WORK_V2: "NVS_LOCAL_WORK_V2";
30
+ }>;
31
+ journalSchema: z.ZodLiteral<1>;
32
+ profileDigest: z.ZodString;
33
+ compatibleRenderers: z.ZodOptional<z.ZodArray<z.ZodObject<{
34
+ rendererDigest: z.ZodString;
35
+ profileDigest: z.ZodString;
36
+ }, z.core.$strict>>>;
37
+ }, z.core.$strict>;
38
+ resources: z.ZodObject<{
39
+ captions: z.ZodObject<{
40
+ byteSize: z.ZodInt;
41
+ sha512: z.ZodString;
42
+ }, z.core.$strict>;
43
+ }, z.core.$strict>;
44
+ }, z.core.$strict>;
45
+ export type LocalRuntimeComponent = z.infer<typeof LocalRuntimeComponentSchema>;
@@ -0,0 +1,46 @@
1
+ import { z } from "zod";
2
+ export declare const CpuSpeechPrepareInputSchema: z.ZodObject<{
3
+ profileId: z.ZodDefault<z.ZodLiteral<"KOKORO_INT8_ZH_EN_V1">>;
4
+ voiceIds: z.ZodDefault<z.ZodArray<z.ZodInt>>;
5
+ }, z.core.$strict>;
6
+ export declare const CpuSpeechPreparedSchema: z.ZodObject<{
7
+ semanticStatus: z.ZodLiteral<"PREPARED">;
8
+ selection: z.ZodObject<{
9
+ engineDirectory: z.ZodString;
10
+ modelDirectory: z.ZodString;
11
+ voiceIds: z.ZodArray<z.ZodInt>;
12
+ }, z.core.$strict>;
13
+ capability: z.ZodObject<{
14
+ identity: z.ZodObject<{
15
+ profileId: z.ZodLiteral<"KOKORO_INT8_ZH_EN_V1">;
16
+ adapter: z.ZodLiteral<"KOKORO_ONNX_CPU_V1">;
17
+ platform: z.ZodObject<{
18
+ os: z.ZodEnum<{
19
+ darwin: "darwin";
20
+ linux: "linux";
21
+ }>;
22
+ architecture: z.ZodEnum<{
23
+ arm64: "arm64";
24
+ x64: "x64";
25
+ }>;
26
+ }, z.core.$strict>;
27
+ engineVersion: z.ZodLiteral<"1.12.33">;
28
+ engineDigest: z.ZodString;
29
+ modelDigest: z.ZodLiteral<"ebd0959580940e20dbb10a55775ec94e47229c7c503f65932403fe0764667126">;
30
+ bridgeSha256: z.ZodString;
31
+ nodeSha256: z.ZodString;
32
+ }, z.core.$strict>;
33
+ voices: z.ZodArray<z.ZodObject<{
34
+ voiceId: z.ZodInt;
35
+ languages: z.ZodArray<z.ZodEnum<{
36
+ zh: "zh";
37
+ en: "en";
38
+ }>>;
39
+ }, z.core.$strict>>;
40
+ }, z.core.$strict>;
41
+ reused: z.ZodObject<{
42
+ engine: z.ZodBoolean;
43
+ model: z.ZodBoolean;
44
+ }, z.core.$strict>;
45
+ }, z.core.$strict>;
46
+ export type CpuSpeechPrepareInput = z.infer<typeof CpuSpeechPrepareInputSchema>;
@@ -0,0 +1,55 @@
1
+ export declare const cpuSpeechResources: {
2
+ readonly schemaVersion: 1;
3
+ readonly wrapper: {
4
+ readonly name: "sherpa-onnx-node";
5
+ readonly url: "https://registry.npmjs.org/sherpa-onnx-node/-/sherpa-onnx-node-1.12.33.tgz";
6
+ readonly byteSize: 10289;
7
+ readonly sha256: "c56a08c884dcd3ec4b4d815edea4aabbff62fbcd1b0176e88480b5d9b920fa03";
8
+ };
9
+ readonly engines: readonly [{
10
+ readonly platform: "linux-x64";
11
+ readonly package: "sherpa-onnx-linux-x64";
12
+ readonly url: "https://registry.npmjs.org/sherpa-onnx-linux-x64/-/sherpa-onnx-linux-x64-1.12.33.tgz";
13
+ readonly byteSize: 10137208;
14
+ readonly sha256: "651f529869249628c3e304744ab21d658f880be3684e8ead93702f2055bfb5d1";
15
+ readonly engineDigest: "dbc8c7bcdcd9dc24183894eabb945001ae001fe69cd16c427f01cf41e598c33a";
16
+ readonly fileCount: 25;
17
+ readonly unpackedBytes: 30623890;
18
+ }, {
19
+ readonly platform: "linux-arm64";
20
+ readonly package: "sherpa-onnx-linux-arm64";
21
+ readonly url: "https://registry.npmjs.org/sherpa-onnx-linux-arm64/-/sherpa-onnx-linux-arm64-1.12.33.tgz";
22
+ readonly byteSize: 12826691;
23
+ readonly sha256: "fec1be880a3e6a79e30db4075690759218a28923fafda51983649bcae3efdfbf";
24
+ readonly engineDigest: "447387941363150362e034f0e8bceb11922b95f11d8553882b7386ad24f1e92f";
25
+ readonly fileCount: 25;
26
+ readonly unpackedBytes: 37679333;
27
+ }, {
28
+ readonly platform: "darwin-x64";
29
+ readonly package: "sherpa-onnx-darwin-x64";
30
+ readonly url: "https://registry.npmjs.org/sherpa-onnx-darwin-x64/-/sherpa-onnx-darwin-x64-1.12.33.tgz";
31
+ readonly byteSize: 25289549;
32
+ readonly sha256: "137082336fa9bf721385c85828b29766dd0d8e0ce67dcc8691d9a5daa7171ce9";
33
+ readonly engineDigest: "a298b1bd79b690a7cc26eed975980ff69262967627340525a9ef66a8ca45b091";
34
+ readonly fileCount: 26;
35
+ readonly unpackedBytes: 85413811;
36
+ }, {
37
+ readonly platform: "darwin-arm64";
38
+ readonly package: "sherpa-onnx-darwin-arm64";
39
+ readonly url: "https://registry.npmjs.org/sherpa-onnx-darwin-arm64/-/sherpa-onnx-darwin-arm64-1.12.33.tgz";
40
+ readonly byteSize: 22164444;
41
+ readonly sha256: "c5d96d89deadb042f603a83dd0b93b9f147ca635ae3316e83718cd5566c0b61a";
42
+ readonly engineDigest: "f409d0ef9b864983c784b27369b40a20a988347ecfdbc27a34ea8a8533ccb589";
43
+ readonly fileCount: 26;
44
+ readonly unpackedBytes: 75969095;
45
+ }];
46
+ readonly model: {
47
+ readonly url: "https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/kokoro-int8-multi-lang-v1_1.tar.bz2";
48
+ readonly byteSize: 147052523;
49
+ readonly sha256: "259c9c8bc906d6078e4e0570421885dabb68b539c2f970fcbb890a58eeaf3e9c";
50
+ readonly directory: "kokoro-int8-multi-lang-v1_1";
51
+ readonly treeDigest: "ebd0959580940e20dbb10a55775ec94e47229c7c503f65932403fe0764667126";
52
+ readonly fileCount: 377;
53
+ readonly unpackedBytes: 215227172;
54
+ };
55
+ };
@@ -0,0 +1,70 @@
1
+ import { z } from "zod";
2
+ export declare const CpuSpeechRecipeSchema: z.ZodObject<{
3
+ text: z.ZodString;
4
+ voiceId: z.ZodInt;
5
+ language: z.ZodEnum<{
6
+ zh: "zh";
7
+ en: "en";
8
+ }>;
9
+ speed: z.ZodDefault<z.ZodNumber>;
10
+ processor: z.ZodLiteral<"SPEECH_SYNTHESIZE_CPU">;
11
+ identity: z.ZodObject<{
12
+ profileId: z.ZodLiteral<"KOKORO_INT8_ZH_EN_V1">;
13
+ adapter: z.ZodLiteral<"KOKORO_ONNX_CPU_V1">;
14
+ platform: z.ZodObject<{
15
+ os: z.ZodEnum<{
16
+ darwin: "darwin";
17
+ linux: "linux";
18
+ }>;
19
+ architecture: z.ZodEnum<{
20
+ arm64: "arm64";
21
+ x64: "x64";
22
+ }>;
23
+ }, z.core.$strict>;
24
+ engineVersion: z.ZodLiteral<"1.12.33">;
25
+ engineDigest: z.ZodString;
26
+ modelDigest: z.ZodLiteral<"ebd0959580940e20dbb10a55775ec94e47229c7c503f65932403fe0764667126">;
27
+ bridgeSha256: z.ZodString;
28
+ nodeSha256: z.ZodString;
29
+ }, z.core.$strict>;
30
+ voiceProfile: z.ZodObject<{
31
+ ref: z.ZodObject<{
32
+ ownerSystem: z.ZodString;
33
+ ownerTenantRef: z.ZodString;
34
+ voiceProfileRef: z.ZodString;
35
+ version: z.ZodInt;
36
+ digest: z.ZodString;
37
+ }, z.core.$strict>;
38
+ bindingKey: z.ZodString;
39
+ language: z.ZodString;
40
+ usage: z.ZodEnum<{
41
+ AUDITION: "AUDITION";
42
+ PRODUCTION: "PRODUCTION";
43
+ }>;
44
+ }, z.core.$strict>;
45
+ }, z.core.$strict>;
46
+ export declare const CpuSpeechEvidenceSchema: z.ZodObject<{
47
+ source: z.ZodObject<{
48
+ checksumSha256: z.ZodString;
49
+ byteSize: z.ZodInt;
50
+ }, z.core.$strict>;
51
+ normalized: z.ZodObject<{
52
+ checksumSha256: z.ZodString;
53
+ byteSize: z.ZodInt;
54
+ }, z.core.$strict>;
55
+ media: z.ZodObject<{
56
+ profile: z.ZodLiteral<"PCM_S16LE_48000_V1">;
57
+ audioCodec: z.ZodLiteral<"pcm_s16le">;
58
+ sampleRateHz: z.ZodLiteral<48000>;
59
+ audioChannels: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>;
60
+ sampleCount: z.ZodInt;
61
+ durationMs: z.ZodInt;
62
+ }, z.core.$strict>;
63
+ padSamples: z.ZodInt;
64
+ processor: z.ZodLiteral<"SPEECH_SYNTHESIZE_CPU">;
65
+ sourceMedia: z.ZodObject<{
66
+ sampleRateHz: z.ZodLiteral<24000>;
67
+ audioChannels: z.ZodLiteral<1>;
68
+ sampleCount: z.ZodInt;
69
+ }, z.core.$strict>;
70
+ }, z.core.$strict>;
@@ -0,0 +1,161 @@
1
+ import { z } from "zod";
2
+ export declare const kokoroCpuProfile: Readonly<{
3
+ readonly id: "KOKORO_INT8_ZH_EN_V1";
4
+ readonly adapter: "KOKORO_ONNX_CPU_V1";
5
+ readonly engineVersion: "1.12.33";
6
+ readonly engineDigest: "f409d0ef9b864983c784b27369b40a20a988347ecfdbc27a34ea8a8533ccb589";
7
+ readonly modelDigest: "ebd0959580940e20dbb10a55775ec94e47229c7c503f65932403fe0764667126";
8
+ readonly modelArchiveSha256: "259c9c8bc906d6078e4e0570421885dabb68b539c2f970fcbb890a58eeaf3e9c";
9
+ readonly sampleRateHz: 24000;
10
+ readonly speakerCount: 103;
11
+ readonly maxCharacters: 600;
12
+ readonly maxDurationMs: 60000;
13
+ }>;
14
+ export declare const CpuSpeechToolSelectionSchema: z.ZodObject<{
15
+ engineDirectory: z.ZodString;
16
+ modelDirectory: z.ZodString;
17
+ }, z.core.$strict>;
18
+ export type CpuSpeechToolSelection = z.infer<typeof CpuSpeechToolSelectionSchema>;
19
+ export declare const CpuSpeechInputSchema: z.ZodObject<{
20
+ text: z.ZodString;
21
+ voiceId: z.ZodInt;
22
+ language: z.ZodEnum<{
23
+ zh: "zh";
24
+ en: "en";
25
+ }>;
26
+ speed: z.ZodDefault<z.ZodNumber>;
27
+ }, z.core.$strict>;
28
+ export type CpuSpeechInput = z.infer<typeof CpuSpeechInputSchema>;
29
+ export declare const SpeechDeliverySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
30
+ mode: z.ZodLiteral<"NON_STREAMING">;
31
+ output: z.ZodLiteral<"COMPLETE_AUDIO">;
32
+ }, z.core.$strict>, z.ZodObject<{
33
+ mode: z.ZodLiteral<"SENTENCE_CHUNKED">;
34
+ output: z.ZodLiteral<"ORDERED_SENTENCES">;
35
+ }, z.core.$strict>, z.ZodObject<{
36
+ mode: z.ZodLiteral<"TRUE_STREAMING">;
37
+ output: z.ZodLiteral<"CONTINUOUS_AUDIO">;
38
+ }, z.core.$strict>], "mode">;
39
+ export declare const CpuSpeechIdentitySchema: z.ZodObject<{
40
+ profileId: z.ZodLiteral<"KOKORO_INT8_ZH_EN_V1">;
41
+ adapter: z.ZodLiteral<"KOKORO_ONNX_CPU_V1">;
42
+ platform: z.ZodObject<{
43
+ os: z.ZodEnum<{
44
+ darwin: "darwin";
45
+ linux: "linux";
46
+ }>;
47
+ architecture: z.ZodEnum<{
48
+ arm64: "arm64";
49
+ x64: "x64";
50
+ }>;
51
+ }, z.core.$strict>;
52
+ engineVersion: z.ZodLiteral<"1.12.33">;
53
+ engineDigest: z.ZodString;
54
+ modelDigest: z.ZodLiteral<"ebd0959580940e20dbb10a55775ec94e47229c7c503f65932403fe0764667126">;
55
+ bridgeSha256: z.ZodString;
56
+ nodeSha256: z.ZodString;
57
+ }, z.core.$strict>;
58
+ export type CpuSpeechIdentity = z.infer<typeof CpuSpeechIdentitySchema>;
59
+ export declare const CpuSpeechObservationSchema: z.ZodObject<{
60
+ inputSha256: z.ZodString;
61
+ voiceId: z.ZodInt;
62
+ language: z.ZodEnum<{
63
+ zh: "zh";
64
+ en: "en";
65
+ }>;
66
+ outputSha256: z.ZodString;
67
+ outputBytes: z.ZodInt;
68
+ sampleRateHz: z.ZodLiteral<24000>;
69
+ sampleCount: z.ZodInt;
70
+ durationMs: z.ZodNumber;
71
+ modelLoadMs: z.ZodNumber;
72
+ synthesisMs: z.ZodNumber;
73
+ outputReadyMs: z.ZodNumber;
74
+ realTimeFactor: z.ZodNumber;
75
+ cpuMs: z.ZodNumber;
76
+ peakRssBytes: z.ZodInt;
77
+ }, z.core.$strict>;
78
+ export declare const CpuSpeechQualificationSchema: z.ZodObject<{
79
+ identity: z.ZodObject<{
80
+ profileId: z.ZodLiteral<"KOKORO_INT8_ZH_EN_V1">;
81
+ adapter: z.ZodLiteral<"KOKORO_ONNX_CPU_V1">;
82
+ platform: z.ZodObject<{
83
+ os: z.ZodEnum<{
84
+ darwin: "darwin";
85
+ linux: "linux";
86
+ }>;
87
+ architecture: z.ZodEnum<{
88
+ arm64: "arm64";
89
+ x64: "x64";
90
+ }>;
91
+ }, z.core.$strict>;
92
+ engineVersion: z.ZodLiteral<"1.12.33">;
93
+ engineDigest: z.ZodString;
94
+ modelDigest: z.ZodLiteral<"ebd0959580940e20dbb10a55775ec94e47229c7c503f65932403fe0764667126">;
95
+ bridgeSha256: z.ZodString;
96
+ nodeSha256: z.ZodString;
97
+ }, z.core.$strict>;
98
+ delivery: z.ZodObject<{
99
+ mode: z.ZodLiteral<"NON_STREAMING">;
100
+ output: z.ZodLiteral<"COMPLETE_AUDIO">;
101
+ }, z.core.$strict>;
102
+ cancellation: z.ZodLiteral<"OWNED_PROCESS">;
103
+ technicalStatus: z.ZodLiteral<"TECHNICALLY_OBSERVED">;
104
+ listeningStatus: z.ZodLiteral<"NOT_PROVEN">;
105
+ observations: z.ZodArray<z.ZodObject<{
106
+ inputSha256: z.ZodString;
107
+ voiceId: z.ZodInt;
108
+ language: z.ZodEnum<{
109
+ zh: "zh";
110
+ en: "en";
111
+ }>;
112
+ outputSha256: z.ZodString;
113
+ outputBytes: z.ZodInt;
114
+ sampleRateHz: z.ZodLiteral<24000>;
115
+ sampleCount: z.ZodInt;
116
+ durationMs: z.ZodNumber;
117
+ modelLoadMs: z.ZodNumber;
118
+ synthesisMs: z.ZodNumber;
119
+ outputReadyMs: z.ZodNumber;
120
+ realTimeFactor: z.ZodNumber;
121
+ cpuMs: z.ZodNumber;
122
+ peakRssBytes: z.ZodInt;
123
+ }, z.core.$strict>>;
124
+ observedAt: z.ZodISODateTime;
125
+ }, z.core.$strict>;
126
+ export type CpuSpeechObservation = z.infer<typeof CpuSpeechObservationSchema>;
127
+ export type CpuSpeechQualification = z.infer<typeof CpuSpeechQualificationSchema>;
128
+ export declare const CpuSpeechCapabilitySchema: z.ZodObject<{
129
+ identity: z.ZodObject<{
130
+ profileId: z.ZodLiteral<"KOKORO_INT8_ZH_EN_V1">;
131
+ adapter: z.ZodLiteral<"KOKORO_ONNX_CPU_V1">;
132
+ platform: z.ZodObject<{
133
+ os: z.ZodEnum<{
134
+ darwin: "darwin";
135
+ linux: "linux";
136
+ }>;
137
+ architecture: z.ZodEnum<{
138
+ arm64: "arm64";
139
+ x64: "x64";
140
+ }>;
141
+ }, z.core.$strict>;
142
+ engineVersion: z.ZodLiteral<"1.12.33">;
143
+ engineDigest: z.ZodString;
144
+ modelDigest: z.ZodLiteral<"ebd0959580940e20dbb10a55775ec94e47229c7c503f65932403fe0764667126">;
145
+ bridgeSha256: z.ZodString;
146
+ nodeSha256: z.ZodString;
147
+ }, z.core.$strict>;
148
+ voices: z.ZodArray<z.ZodObject<{
149
+ voiceId: z.ZodInt;
150
+ languages: z.ZodArray<z.ZodEnum<{
151
+ zh: "zh";
152
+ en: "en";
153
+ }>>;
154
+ }, z.core.$strict>>;
155
+ }, z.core.$strict>;
156
+ export type CpuSpeechCapability = z.infer<typeof CpuSpeechCapabilitySchema>;
157
+ export declare const CpuSpeechInstallationSchema: z.ZodObject<{
158
+ engineDirectory: z.ZodString;
159
+ modelDirectory: z.ZodString;
160
+ voiceIds: z.ZodArray<z.ZodInt>;
161
+ }, z.core.$strict>;
@@ -0,0 +1,38 @@
1
+ import { z } from "zod";
2
+ /** 代码身份和下载字节身份独立于安装来源,供 CLI、桌面和同一安装 Owner 复用。 */
3
+ export declare const LocalRuntimeDescriptorSchema: z.ZodObject<{
4
+ protocol: z.ZodLiteral<"NVS_RUNTIME_DESCRIPTOR_V1">;
5
+ version: z.ZodString;
6
+ node: z.ZodObject<{
7
+ major: z.ZodLiteral<24>;
8
+ minMinor: z.ZodLiteral<12>;
9
+ }, z.core.$strict>;
10
+ platform: z.ZodObject<{
11
+ os: z.ZodEnum<{
12
+ darwin: "darwin";
13
+ linux: "linux";
14
+ win32: "win32";
15
+ }>;
16
+ architecture: z.ZodEnum<{
17
+ arm64: "arm64";
18
+ x64: "x64";
19
+ }>;
20
+ }, z.core.$strict>;
21
+ ipcProtocol: z.ZodLiteral<"NVS_LOCAL_IPC_V1">;
22
+ workProtocol: z.ZodEnum<{
23
+ NVS_LOCAL_WORK_V1: "NVS_LOCAL_WORK_V1";
24
+ NVS_LOCAL_WORK_V2: "NVS_LOCAL_WORK_V2";
25
+ }>;
26
+ journalSchema: z.ZodLiteral<1>;
27
+ rendererDigest: z.ZodString;
28
+ profileDigest: z.ZodString;
29
+ compatibleRenderers: z.ZodOptional<z.ZodArray<z.ZodObject<{
30
+ rendererDigest: z.ZodString;
31
+ profileDigest: z.ZodString;
32
+ }, z.core.$strict>>>;
33
+ }, z.core.$strict>;
34
+ export declare const LocalReleaseAssetSchema: z.ZodObject<{
35
+ url: z.ZodString;
36
+ byteSize: z.ZodInt;
37
+ sha512: z.ZodString;
38
+ }, z.core.$strict>;
@@ -0,0 +1,31 @@
1
+ import { z } from "zod";
2
+ /** 当前设备身份属于工作空间,没有项目授权或项目清单字段。 */
3
+ export declare const WorkspaceDeviceAuthoritySchema: z.ZodObject<{
4
+ authority: z.ZodLiteral<"WORKSPACE_DEVICE_V1">;
5
+ deviceId: z.ZodUUID;
6
+ deviceRevision: z.ZodInt;
7
+ }, z.core.$strict>;
8
+ export declare const LocalDeviceAuthoritySchema: z.ZodObject<{
9
+ authority: z.ZodLiteral<"WORKSPACE_DEVICE_V1">;
10
+ deviceId: z.ZodUUID;
11
+ deviceRevision: z.ZodInt;
12
+ }, z.core.$strict>;
13
+ export type LocalDeviceAuthority = z.infer<typeof LocalDeviceAuthoritySchema>;
14
+ /** 原生租约仅接受工作空间设备或服务器,不读取旧项目授权身份。 */
15
+ export declare const LocalDeviceExecutionTargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
16
+ authority: z.ZodLiteral<"WORKSPACE_DEVICE_V1">;
17
+ deviceId: z.ZodUUID;
18
+ deviceRevision: z.ZodInt;
19
+ kind: z.ZodLiteral<"DEVICE">;
20
+ }, z.core.$strict>, z.ZodObject<{
21
+ kind: z.ZodLiteral<"SERVER">;
22
+ }, z.core.$strict>], "kind">;
23
+ /** 设备报告额外绑定真实公钥摘要;工作及输出仍保留各自项目上下文。 */
24
+ export declare const TenantDeviceTargetSchema: z.ZodObject<{
25
+ authority: z.ZodLiteral<"WORKSPACE_DEVICE_V1">;
26
+ deviceId: z.ZodUUID;
27
+ deviceRevision: z.ZodInt;
28
+ keyFingerprint: z.ZodString;
29
+ }, z.core.$strict>;
30
+ /** 工作与租约绑定同一设备修订;项目只属于业务上下文。 */
31
+ export declare function sameDeviceAuthority(a: LocalDeviceAuthority, b: LocalDeviceAuthority): boolean;