@nativestudio/cli 0.3.0-rc.1 → 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 (185) hide show
  1. package/COMPATIBILITY.json +33 -8
  2. package/LICENSE +201 -21
  3. package/components/runtime.json +29 -4
  4. package/components/runtime.tgz +0 -0
  5. package/dist/_chunks/chunk-37PAJCKA.js +1 -0
  6. package/dist/_chunks/{chunk-G42IS5JF.js → chunk-3AVC742O.js} +1 -1
  7. package/dist/_chunks/chunk-4U4Y2K73.js +1 -0
  8. package/dist/_chunks/chunk-65FQPXKC.js +1 -0
  9. package/dist/_chunks/chunk-6DVZBKNV.js +1 -0
  10. package/dist/_chunks/{chunk-25EDDZQA.js → chunk-6LU6GJKW.js} +1 -1
  11. package/dist/_chunks/chunk-6N433ZWR.js +1 -0
  12. package/dist/_chunks/chunk-EGUJ2YRX.js +1 -0
  13. package/dist/_chunks/{chunk-MSOMVWKN.js → chunk-FU3524Z6.js} +1 -1
  14. package/dist/_chunks/chunk-GZBWA4YN.js +1 -0
  15. package/dist/_chunks/chunk-HR34UMPP.js +1 -0
  16. package/dist/_chunks/chunk-HTUTYIRU.js +1 -0
  17. package/dist/_chunks/chunk-KB2GVAN7.js +1 -0
  18. package/dist/_chunks/chunk-L543FEDK.js +1 -0
  19. package/dist/_chunks/chunk-LISB5W7B.js +1 -0
  20. package/dist/_chunks/chunk-LUAH3KAS.js +1 -0
  21. package/dist/_chunks/chunk-M2KVQQ4X.js +1 -0
  22. package/dist/_chunks/chunk-ODGPV7MM.js +1 -0
  23. package/dist/_chunks/chunk-PUBMDP4E.js +1 -0
  24. package/dist/_chunks/chunk-Q57YFNK5.js +1 -0
  25. package/dist/_chunks/chunk-QAJH4RJQ.js +1 -0
  26. package/dist/_chunks/chunk-WFRRNWO5.js +1 -0
  27. package/dist/_chunks/connect-5YMO6MAR.js +1 -0
  28. package/dist/_chunks/device-management-2OTGEBJQ.js +1 -0
  29. package/dist/_chunks/device-preflight-XPHFZGLO.js +1 -0
  30. package/dist/_chunks/devices-inventory-VWNTU5TE.js +1 -0
  31. package/dist/_chunks/devices-main-VQ4APRVS.js +1 -0
  32. package/dist/_chunks/{files-TBJVDQWU.js → files-TTIQ7LYJ.js} +1 -1
  33. package/dist/_chunks/host-main-H7DPLV7B.js +1 -0
  34. package/dist/_chunks/http-profile-MNJX6OXO.js +1 -0
  35. package/dist/_chunks/library-main-SAC3V2ML.js +1 -0
  36. package/dist/_chunks/local-main-D6B3APK6.js +1 -0
  37. package/dist/_chunks/local-mcp-ONCANLPH.js +1 -0
  38. package/dist/_chunks/main-PW6HB3NC.js +2 -0
  39. package/dist/_chunks/mcp-ZIGBYFUW.js +1 -0
  40. package/dist/_chunks/oauth-HC6TI7HB.js +1 -0
  41. package/dist/_chunks/render-main-GYWKP72O.js +1 -0
  42. package/dist/_chunks/source-import-BC5GNCUZ.js +1 -0
  43. package/dist/_chunks/src-R6DNU336.js +1 -0
  44. package/dist/_chunks/{stdio-main-JEADWO7U.js → stdio-main-RIJS5REB.js} +1 -1
  45. package/dist/_chunks/workspace-main-GNSKHKBG.js +1 -0
  46. package/dist/_types/cli/local/desktop-contract.d.ts +1969 -1
  47. package/dist/_types/cli/local/desktop-device-contract.d.ts +779 -0
  48. package/dist/_types/cli/local/desktop-device-navigation.d.ts +3 -0
  49. package/dist/_types/cli/local/desktop-device-owner.d.ts +244 -0
  50. package/dist/_types/cli/local/desktop-device-state.d.ts +397 -0
  51. package/dist/_types/cli/local/desktop-library.d.ts +853 -0
  52. package/dist/_types/cli/local/desktop-owner.d.ts +735 -1
  53. package/dist/_types/cli/local/ledger.d.ts +64 -10
  54. package/dist/_types/cli/local/manager.d.ts +1146 -43
  55. package/dist/_types/cli/local/mcp-tools.d.ts +287 -46
  56. package/dist/_types/cli/local/releases.d.ts +28 -5
  57. package/dist/_types/cli/local-management.d.ts +5 -0
  58. package/dist/_types/cli/local-navigation.d.ts +1 -0
  59. package/dist/_types/contracts/artifact-discovery.d.ts +76 -4
  60. package/dist/_types/contracts/audio.d.ts +4 -0
  61. package/dist/_types/contracts/composition-authoring.d.ts +8 -8
  62. package/dist/_types/contracts/composition-frame-render.d.ts +4 -4
  63. package/dist/_types/contracts/composition-render-base.d.ts +5 -4
  64. package/dist/_types/contracts/composition-render.d.ts +8 -8
  65. package/dist/_types/contracts/composition-repair.d.ts +10 -10
  66. package/dist/_types/contracts/composition-source-review.d.ts +12 -12
  67. package/dist/_types/contracts/delivery-manifest.d.ts +25 -11729
  68. package/dist/_types/contracts/delivery-operations.d.ts +51 -3909
  69. package/dist/_types/contracts/delivery-summary.d.ts +2 -2
  70. package/dist/_types/contracts/delivery-validation.d.ts +23 -0
  71. package/dist/_types/contracts/device-render.d.ts +77 -0
  72. package/dist/_types/contracts/editor-intelligence.d.ts +114 -2491
  73. package/dist/_types/contracts/exploration-recommendation.d.ts +263 -11607
  74. package/dist/_types/contracts/external-agent-access.d.ts +4 -6
  75. package/dist/_types/contracts/final-ready.d.ts +22 -22
  76. package/dist/_types/contracts/final-render.d.ts +1569 -6940
  77. package/dist/_types/contracts/human-identity.d.ts +13 -0
  78. package/dist/_types/contracts/index.d.ts +4 -0
  79. package/dist/_types/contracts/interface/media-output.d.ts +28 -0
  80. package/dist/_types/contracts/interface/production-snapshot.d.ts +15 -193
  81. package/dist/_types/contracts/keyframe-generation.d.ts +29 -0
  82. package/dist/_types/contracts/local-execution/agent-context.d.ts +365 -0
  83. package/dist/_types/contracts/local-execution/agent-evidence.d.ts +79 -0
  84. package/dist/_types/contracts/local-execution/agent-grant.d.ts +31 -0
  85. package/dist/_types/contracts/local-execution/agent-review.d.ts +496 -64
  86. package/dist/_types/contracts/local-execution/common.d.ts +12 -11
  87. package/dist/_types/contracts/local-execution/completion.d.ts +41 -45
  88. package/dist/_types/contracts/local-execution/components.d.ts +45 -0
  89. package/dist/_types/contracts/local-execution/descriptor.d.ts +38 -0
  90. package/dist/_types/contracts/local-execution/device-authority.d.ts +31 -0
  91. package/dist/_types/contracts/local-execution/device-inventory.d.ts +76 -0
  92. package/dist/_types/contracts/local-execution/device-workspace.d.ts +11 -0
  93. package/dist/_types/contracts/local-execution/device.d.ts +19 -51
  94. package/dist/_types/contracts/local-execution/external-generation.d.ts +199 -0
  95. package/dist/_types/contracts/local-execution/index.d.ts +26 -0
  96. package/dist/_types/contracts/local-execution/ipc.d.ts +2756 -228
  97. package/dist/_types/contracts/local-execution/library-command.d.ts +620 -0
  98. package/dist/_types/contracts/local-execution/library-result.d.ts +408 -0
  99. package/dist/_types/contracts/local-execution/library.d.ts +873 -0
  100. package/dist/_types/contracts/local-execution/lifecycle.d.ts +242 -42
  101. package/dist/_types/contracts/local-execution/local-navigation.d.ts +275 -56
  102. package/dist/_types/contracts/local-execution/management.d.ts +400 -0
  103. package/dist/_types/contracts/local-execution/media-recipe.d.ts +207 -0
  104. package/dist/_types/contracts/local-execution/media-validation-request.d.ts +232 -0
  105. package/dist/_types/contracts/local-execution/media-validation.d.ts +262 -0
  106. package/dist/_types/contracts/local-execution/object-transfer.d.ts +155 -0
  107. package/dist/_types/contracts/local-execution/offline.d.ts +59 -0
  108. package/dist/_types/contracts/local-execution/preview.d.ts +144 -3564
  109. package/dist/_types/contracts/local-execution/processor-capability.d.ts +39 -0
  110. package/dist/_types/contracts/local-execution/processor-direct.d.ts +290 -0
  111. package/dist/_types/contracts/local-execution/processor-recipes.d.ts +1122 -0
  112. package/dist/_types/contracts/local-execution/processor.d.ts +6173 -0
  113. package/dist/_types/contracts/local-execution/project-source-direct.d.ts +201 -0
  114. package/dist/_types/contracts/local-execution/qwen-tts.d.ts +31 -0
  115. package/dist/_types/contracts/local-execution/recognition.d.ts +170 -0
  116. package/dist/_types/contracts/local-execution/speech.d.ts +95 -0
  117. package/dist/_types/contracts/local-execution/tool-selection.d.ts +45 -5
  118. package/dist/_types/contracts/local-execution/whisper.d.ts +24 -0
  119. package/dist/_types/contracts/local-execution/work.d.ts +111 -3403
  120. package/dist/_types/contracts/local-execution/workspace.d.ts +141 -0
  121. package/dist/_types/contracts/media-category.d.ts +11 -0
  122. package/dist/_types/contracts/media-observation.d.ts +929 -8
  123. package/dist/_types/contracts/navigation.d.ts +25 -15
  124. package/dist/_types/contracts/observation-profile.d.ts +3 -3
  125. package/dist/_types/contracts/programmatic-composition.d.ts +24 -24
  126. package/dist/_types/contracts/programmatic-exploration.d.ts +348 -5985
  127. package/dist/_types/contracts/provider-catalog.d.ts +3 -3
  128. package/dist/_types/contracts/provider-models.d.ts +16 -8
  129. package/dist/_types/contracts/provider.d.ts +66 -1
  130. package/dist/_types/contracts/reference-preview.d.ts +19 -0
  131. package/dist/_types/contracts/repair-lifecycle.d.ts +52 -384
  132. package/dist/_types/contracts/repair-plan.d.ts +16 -98
  133. package/dist/_types/contracts/repair-strategy.d.ts +162 -4481
  134. package/dist/_types/contracts/review-intelligence-final-output.d.ts +317 -8139
  135. package/dist/_types/contracts/review-intelligence.d.ts +450 -11420
  136. package/dist/_types/contracts/rough-cut-manifest.d.ts +8 -3
  137. package/dist/_types/contracts/rough-cut-profile.d.ts +12 -3
  138. package/dist/_types/contracts/rough-cut-review.d.ts +134 -12494
  139. package/dist/_types/contracts/rough-cut.d.ts +1073 -5675
  140. package/dist/_types/contracts/sound-making-plan.d.ts +3 -2
  141. package/dist/_types/contracts/speech-cost.d.ts +81 -0
  142. package/dist/_types/contracts/speech.d.ts +149 -0
  143. package/dist/_types/contracts/temporal-evidence-operation.d.ts +1 -0
  144. package/dist/_types/contracts/timeline-audio.d.ts +1 -0
  145. package/dist/_types/contracts/timeline-manifest.d.ts +2 -0
  146. package/dist/_types/contracts/timeline-source-sound.d.ts +1 -0
  147. package/dist/_types/contracts/timeline-v2.d.ts +4 -0
  148. package/dist/_types/contracts/timeline-version-reader.d.ts +10 -0
  149. package/dist/_types/contracts/timeline-visual-layers.d.ts +4 -0
  150. package/dist/_types/contracts/timeline.d.ts +50 -4850
  151. package/dist/_types/contracts/transcription.d.ts +1 -1
  152. package/dist/_types/contracts/video-generation.d.ts +33 -0
  153. package/dist/_types/contracts/visual-layer-render.d.ts +58 -15
  154. package/dist/_types/contracts/visual-sequence.d.ts +22 -0
  155. package/dist/_types/contracts/workspace.d.ts +32 -0
  156. package/dist/_types/sdk/errors.d.ts +8 -3
  157. package/dist/_types/sdk/local-runtime/components.d.ts +2 -0
  158. package/dist/_types/sdk/local-runtime/device-client.d.ts +127 -17
  159. package/dist/_types/sdk/local-runtime/library.d.ts +268 -0
  160. package/dist/_types/sdk/local-runtime/workspace.d.ts +186 -0
  161. package/dist/_types/sdk/local-runtime-client.d.ts +1773 -89
  162. package/dist/entry.js +1 -1
  163. package/dist/local-management.js +1 -1
  164. package/dist/local-navigation.js +1 -1
  165. package/dist/native/JobNative.cs +10 -0
  166. package/dist/native/JobRunner.cs +24 -3
  167. package/dist/native/NativeMain.cs +15 -0
  168. package/package.json +2 -8
  169. package/README.md +0 -78
  170. package/dist/_chunks/chunk-6NVIN2NI.js +0 -1
  171. package/dist/_chunks/chunk-E57YVMQ4.js +0 -1
  172. package/dist/_chunks/chunk-EAZKDCLD.js +0 -1
  173. package/dist/_chunks/chunk-GIEYSDCG.js +0 -1
  174. package/dist/_chunks/chunk-GJ7BZJLW.js +0 -1
  175. package/dist/_chunks/chunk-HLKERZIE.js +0 -1
  176. package/dist/_chunks/chunk-QC7RLTGU.js +0 -1
  177. package/dist/_chunks/chunk-RUMDDTON.js +0 -1
  178. package/dist/_chunks/chunk-U2UKGYGF.js +0 -1
  179. package/dist/_chunks/local-main-SOERK22D.js +0 -1
  180. package/dist/_chunks/local-mcp-JLPXXIDW.js +0 -1
  181. package/dist/_chunks/main-4SNF5EKE.js +0 -2
  182. package/dist/_chunks/mcp-EIMXNRH3.js +0 -1
  183. package/dist/_chunks/oauth-257CEUQH.js +0 -1
  184. package/dist/_chunks/project-connect-6MH2QG6G.js +0 -1
  185. package/dist/_chunks/src-7F6ZEU3U.js +0 -1
@@ -0,0 +1,201 @@
1
+ import { z } from "zod";
2
+ /** Project 素材上传只冻结字节身份与原登记意图,正式 SOURCE 由原生任务接纳。 */
3
+ export declare const DirectProjectSourceCommandSchema: z.ZodObject<{
4
+ projectId: z.ZodUUID;
5
+ metadata: z.ZodObject<{
6
+ kind: z.ZodEnum<{
7
+ REFERENCE_IMAGE: "REFERENCE_IMAGE";
8
+ REFERENCE_VIDEO: "REFERENCE_VIDEO";
9
+ PRODUCT_INFORMATION: "PRODUCT_INFORMATION";
10
+ }>;
11
+ contentType: z.ZodEnum<{
12
+ "application/json": "application/json";
13
+ "text/plain": "text/plain";
14
+ "image/png": "image/png";
15
+ "image/jpeg": "image/jpeg";
16
+ "image/webp": "image/webp";
17
+ "video/mp4": "video/mp4";
18
+ }>;
19
+ originalName: z.ZodOptional<z.ZodString>;
20
+ tenantId: z.ZodPipe<z.ZodUUID, z.core.$ZodBranded<z.ZodUUID, "TenantId", "out">>;
21
+ idempotencyKey: z.ZodString;
22
+ }, z.core.$strict>;
23
+ checksumSha256: z.ZodString;
24
+ byteSize: z.ZodInt;
25
+ requestedDeviceId: z.ZodOptional<z.ZodUUID>;
26
+ }, z.core.$strict>;
27
+ export type DirectProjectSourceCommand = z.infer<typeof DirectProjectSourceCommandSchema>;
28
+ export declare const DirectProjectSourceKeySchema: z.ZodObject<{
29
+ tenantId: z.ZodUUID;
30
+ projectId: z.ZodUUID;
31
+ intakeId: z.ZodUUID;
32
+ }, z.core.$strict>;
33
+ export declare const DirectProjectSourceAdmissionSchema: z.ZodObject<{
34
+ tenantId: z.ZodUUID;
35
+ projectId: z.ZodUUID;
36
+ intakeId: z.ZodUUID;
37
+ state: z.ZodLiteral<"SUBMITTED">;
38
+ productionId: z.ZodUUID;
39
+ runtimeJobId: z.ZodUUID;
40
+ operationId: z.core.$ZodBranded<z.ZodString, "OperationId", "out">;
41
+ }, z.core.$strict>;
42
+ export declare const DirectProjectSourceStageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
43
+ state: z.ZodLiteral<"ACCEPTED">;
44
+ registration: z.ZodObject<{
45
+ artifact: z.ZodObject<{
46
+ id: z.core.$ZodBranded<z.ZodUUID, "ArtifactId", "out">;
47
+ tenantId: z.core.$ZodBranded<z.ZodUUID, "TenantId", "out">;
48
+ projectId: z.core.$ZodBranded<z.ZodUUID, "ProjectId", "out">;
49
+ productionId: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "ProductionId", "out">>;
50
+ family: z.ZodString;
51
+ origin: z.ZodString;
52
+ lifecycle: z.ZodEnum<{
53
+ ARCHIVED: "ARCHIVED";
54
+ READY: "READY";
55
+ CREATING: "CREATING";
56
+ PROCESSING: "PROCESSING";
57
+ INVALID: "INVALID";
58
+ }>;
59
+ createdByPrincipalId: z.core.$ZodBranded<z.ZodUUID, "PrincipalId", "out">;
60
+ checksumSha256: z.ZodNullable<z.ZodString>;
61
+ contentType: z.ZodNullable<z.ZodString>;
62
+ primaryRepresentationId: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "ArtifactRepresentationId", "out">>;
63
+ mediaMetadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
64
+ createdAt: z.ZodISODateTime;
65
+ readyAt: z.ZodNullable<z.ZodISODateTime>;
66
+ }, z.core.$strip>;
67
+ primaryRepresentation: z.ZodObject<{
68
+ id: z.core.$ZodBranded<z.ZodUUID, "ArtifactRepresentationId", "out">;
69
+ tenantId: z.core.$ZodBranded<z.ZodUUID, "TenantId", "out">;
70
+ artifactId: z.core.$ZodBranded<z.ZodUUID, "ArtifactId", "out">;
71
+ role: z.ZodString;
72
+ storageDriver: z.ZodString;
73
+ storageLocator: z.ZodRecord<z.ZodString, z.ZodUnknown>;
74
+ checksumSha256: z.ZodString;
75
+ contentType: z.ZodString;
76
+ byteSize: z.ZodString;
77
+ width: z.ZodNullable<z.ZodInt>;
78
+ height: z.ZodNullable<z.ZodInt>;
79
+ durationMs: z.ZodNullable<z.ZodString>;
80
+ frameRate: z.ZodNullable<z.ZodString>;
81
+ videoCodec: z.ZodNullable<z.ZodString>;
82
+ audioCodec: z.ZodNullable<z.ZodString>;
83
+ hasAudio: z.ZodNullable<z.ZodBoolean>;
84
+ sampleRateHz: z.ZodNullable<z.ZodInt>;
85
+ audioChannels: z.ZodNullable<z.ZodInt>;
86
+ createdAt: z.ZodISODateTime;
87
+ }, z.core.$strip>;
88
+ relations: z.ZodArray<z.ZodObject<{
89
+ id: z.core.$ZodBranded<z.ZodUUID, "ArtifactRelationId", "out">;
90
+ tenantId: z.core.$ZodBranded<z.ZodUUID, "TenantId", "out">;
91
+ sourceArtifactId: z.core.$ZodBranded<z.ZodUUID, "ArtifactId", "out">;
92
+ targetArtifactId: z.core.$ZodBranded<z.ZodUUID, "ArtifactId", "out">;
93
+ relationType: z.ZodString;
94
+ createdByPrincipalId: z.core.$ZodBranded<z.ZodUUID, "PrincipalId", "out">;
95
+ createdAt: z.ZodISODateTime;
96
+ }, z.core.$strip>>;
97
+ }, z.core.$strip>;
98
+ }, z.core.$strict>, z.ZodObject<{
99
+ tenantId: z.ZodUUID;
100
+ projectId: z.ZodUUID;
101
+ intakeId: z.ZodUUID;
102
+ state: z.ZodLiteral<"SUBMITTED">;
103
+ productionId: z.ZodUUID;
104
+ runtimeJobId: z.ZodUUID;
105
+ operationId: z.core.$ZodBranded<z.ZodString, "OperationId", "out">;
106
+ }, z.core.$strict>, z.ZodObject<{
107
+ tenantId: z.ZodUUID;
108
+ projectId: z.ZodUUID;
109
+ intakeId: z.ZodUUID;
110
+ state: z.ZodLiteral<"UPLOAD">;
111
+ ticket: z.ZodObject<{
112
+ endpoint: z.ZodURL;
113
+ credential: z.ZodString;
114
+ method: z.ZodEnum<{
115
+ GET: "GET";
116
+ PUT: "PUT";
117
+ }>;
118
+ object: z.ZodObject<{
119
+ tenantId: z.ZodUUID;
120
+ projectId: z.ZodUUID;
121
+ versionId: z.ZodUUID;
122
+ role: z.ZodEnum<{
123
+ VIDEO: "VIDEO";
124
+ AUDIO: "AUDIO";
125
+ SOURCE: "SOURCE";
126
+ POSTER: "POSTER";
127
+ FRAME: "FRAME";
128
+ SHEET: "SHEET";
129
+ MANIFEST: "MANIFEST";
130
+ }>;
131
+ byteSize: z.ZodInt;
132
+ checksumSha256: z.ZodString;
133
+ }, z.core.$strict>;
134
+ }, z.core.$strict>;
135
+ uploaded: z.ZodBoolean;
136
+ }, z.core.$strict>], "state">;
137
+ export declare const DirectProjectSourceSubmitSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
138
+ state: z.ZodLiteral<"ACCEPTED">;
139
+ registration: z.ZodObject<{
140
+ artifact: z.ZodObject<{
141
+ id: z.core.$ZodBranded<z.ZodUUID, "ArtifactId", "out">;
142
+ tenantId: z.core.$ZodBranded<z.ZodUUID, "TenantId", "out">;
143
+ projectId: z.core.$ZodBranded<z.ZodUUID, "ProjectId", "out">;
144
+ productionId: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "ProductionId", "out">>;
145
+ family: z.ZodString;
146
+ origin: z.ZodString;
147
+ lifecycle: z.ZodEnum<{
148
+ ARCHIVED: "ARCHIVED";
149
+ READY: "READY";
150
+ CREATING: "CREATING";
151
+ PROCESSING: "PROCESSING";
152
+ INVALID: "INVALID";
153
+ }>;
154
+ createdByPrincipalId: z.core.$ZodBranded<z.ZodUUID, "PrincipalId", "out">;
155
+ checksumSha256: z.ZodNullable<z.ZodString>;
156
+ contentType: z.ZodNullable<z.ZodString>;
157
+ primaryRepresentationId: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "ArtifactRepresentationId", "out">>;
158
+ mediaMetadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
159
+ createdAt: z.ZodISODateTime;
160
+ readyAt: z.ZodNullable<z.ZodISODateTime>;
161
+ }, z.core.$strip>;
162
+ primaryRepresentation: z.ZodObject<{
163
+ id: z.core.$ZodBranded<z.ZodUUID, "ArtifactRepresentationId", "out">;
164
+ tenantId: z.core.$ZodBranded<z.ZodUUID, "TenantId", "out">;
165
+ artifactId: z.core.$ZodBranded<z.ZodUUID, "ArtifactId", "out">;
166
+ role: z.ZodString;
167
+ storageDriver: z.ZodString;
168
+ storageLocator: z.ZodRecord<z.ZodString, z.ZodUnknown>;
169
+ checksumSha256: z.ZodString;
170
+ contentType: z.ZodString;
171
+ byteSize: z.ZodString;
172
+ width: z.ZodNullable<z.ZodInt>;
173
+ height: z.ZodNullable<z.ZodInt>;
174
+ durationMs: z.ZodNullable<z.ZodString>;
175
+ frameRate: z.ZodNullable<z.ZodString>;
176
+ videoCodec: z.ZodNullable<z.ZodString>;
177
+ audioCodec: z.ZodNullable<z.ZodString>;
178
+ hasAudio: z.ZodNullable<z.ZodBoolean>;
179
+ sampleRateHz: z.ZodNullable<z.ZodInt>;
180
+ audioChannels: z.ZodNullable<z.ZodInt>;
181
+ createdAt: z.ZodISODateTime;
182
+ }, z.core.$strip>;
183
+ relations: z.ZodArray<z.ZodObject<{
184
+ id: z.core.$ZodBranded<z.ZodUUID, "ArtifactRelationId", "out">;
185
+ tenantId: z.core.$ZodBranded<z.ZodUUID, "TenantId", "out">;
186
+ sourceArtifactId: z.core.$ZodBranded<z.ZodUUID, "ArtifactId", "out">;
187
+ targetArtifactId: z.core.$ZodBranded<z.ZodUUID, "ArtifactId", "out">;
188
+ relationType: z.ZodString;
189
+ createdByPrincipalId: z.core.$ZodBranded<z.ZodUUID, "PrincipalId", "out">;
190
+ createdAt: z.ZodISODateTime;
191
+ }, z.core.$strip>>;
192
+ }, z.core.$strip>;
193
+ }, z.core.$strict>, z.ZodObject<{
194
+ tenantId: z.ZodUUID;
195
+ projectId: z.ZodUUID;
196
+ intakeId: z.ZodUUID;
197
+ state: z.ZodLiteral<"SUBMITTED">;
198
+ productionId: z.ZodUUID;
199
+ runtimeJobId: z.ZodUUID;
200
+ operationId: z.core.$ZodBranded<z.ZodString, "OperationId", "out">;
201
+ }, z.core.$strict>], "state">;
@@ -0,0 +1,31 @@
1
+ import { z } from "zod";
2
+ export declare const maxQwenTtsAudioBytes: number;
3
+ /** 供应商回执的 URL 可能自带短期签名,仅允许北京 OSS 的 WAV。 */
4
+ export declare const QwenTtsReceiptSchema: z.ZodObject<{
5
+ providerRequestId: z.ZodString;
6
+ audioId: z.ZodString;
7
+ audioUrl: z.ZodURL;
8
+ expiresAt: z.ZodISODateTime;
9
+ usage: z.ZodOptional<z.ZodObject<{
10
+ characters: z.ZodInt;
11
+ }, z.core.$strict>>;
12
+ }, z.core.$strict>;
13
+ export type QwenTtsReceipt = z.infer<typeof QwenTtsReceiptSchema>;
14
+ /** 原提交无明确答复时,设备继续保留任务,并且不会代发文本。 */
15
+ export declare const QwenSpeechProviderStateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
16
+ state: z.ZodLiteral<"RECEIVED">;
17
+ receipt: z.ZodObject<{
18
+ providerRequestId: z.ZodString;
19
+ audioId: z.ZodString;
20
+ audioUrl: z.ZodURL;
21
+ expiresAt: z.ZodISODateTime;
22
+ usage: z.ZodOptional<z.ZodObject<{
23
+ characters: z.ZodInt;
24
+ }, z.core.$strict>>;
25
+ }, z.core.$strict>;
26
+ }, z.core.$strict>, z.ZodObject<{
27
+ state: z.ZodLiteral<"UNKNOWN">;
28
+ }, z.core.$strict>, z.ZodObject<{
29
+ state: z.ZodLiteral<"REJECTED">;
30
+ }, z.core.$strict>], "state">;
31
+ export type QwenSpeechProviderState = z.infer<typeof QwenSpeechProviderStateSchema>;
@@ -0,0 +1,170 @@
1
+ import { z } from "zod";
2
+ /** 识别读取同一已登记的原生音频版本,输出保留为参考转录。 */
3
+ export declare const TranscribeAudioRecipeSchema: z.ZodObject<{
4
+ processor: z.ZodLiteral<"TRANSCRIBE_AUDIO">;
5
+ source: z.ZodObject<{
6
+ artifactId: z.ZodUUID;
7
+ representationId: z.ZodUUID;
8
+ checksumSha256: z.ZodString;
9
+ tenantId: z.ZodUUID;
10
+ projectId: z.ZodUUID;
11
+ productionId: z.ZodUUID;
12
+ byteSize: z.ZodInt;
13
+ durationMs: z.ZodNumber;
14
+ frameRate: z.ZodOptional<z.ZodNumber>;
15
+ executionClass: z.ZodEnum<{
16
+ LIVE: "LIVE";
17
+ TEST_ONLY: "TEST_ONLY";
18
+ }>;
19
+ contentType: z.ZodLiteral<"audio/wav">;
20
+ }, z.core.$strict>;
21
+ identity: z.ZodObject<{
22
+ profileId: z.ZodLiteral<"WHISPER_CPP_TINY_EN_Q5_1_PCM16K_V1">;
23
+ binarySha256: z.ZodString;
24
+ modelSha256: z.ZodLiteral<"c77c5766f1cef09b6b7d47f21b546cbddd4157886b3b5d6d4f709e91e66c7c2b">;
25
+ }, z.core.$strict>;
26
+ }, z.core.$strict>;
27
+ export declare const TranscribeAudioEvidenceSchema: z.ZodObject<{
28
+ processor: z.ZodLiteral<"TRANSCRIBE_AUDIO">;
29
+ identity: z.ZodObject<{
30
+ profileId: z.ZodLiteral<"WHISPER_CPP_TINY_EN_Q5_1_PCM16K_V1">;
31
+ binarySha256: z.ZodString;
32
+ modelSha256: z.ZodLiteral<"c77c5766f1cef09b6b7d47f21b546cbddd4157886b3b5d6d4f709e91e66c7c2b">;
33
+ }, z.core.$strict>;
34
+ transcript: z.ZodDiscriminatedUnion<[z.ZodObject<{
35
+ timing: z.ZodLiteral<"UNAVAILABLE">;
36
+ schemaVersion: z.ZodLiteral<1>;
37
+ text: z.ZodString;
38
+ languages: z.ZodArray<z.ZodString>;
39
+ }, z.core.$strict>, z.ZodObject<{
40
+ timing: z.ZodLiteral<"PROVIDER_REPORTED">;
41
+ timeBase: z.ZodLiteral<"ORIGINAL_MEDIA_MS">;
42
+ granularities: z.ZodArray<z.ZodEnum<{
43
+ word: "word";
44
+ segment: "segment";
45
+ }>>;
46
+ words: z.ZodArray<z.ZodObject<{
47
+ text: z.ZodString;
48
+ startMs: z.ZodInt;
49
+ endMs: z.ZodInt;
50
+ }, z.core.$strict>>;
51
+ segments: z.ZodArray<z.ZodObject<{
52
+ text: z.ZodString;
53
+ startMs: z.ZodInt;
54
+ endMs: z.ZodInt;
55
+ }, z.core.$strict>>;
56
+ schemaVersion: z.ZodLiteral<1>;
57
+ text: z.ZodString;
58
+ languages: z.ZodArray<z.ZodString>;
59
+ }, z.core.$strict>], "timing"> & z.ZodType<{
60
+ timing: "UNAVAILABLE";
61
+ schemaVersion: 1;
62
+ text: string;
63
+ languages: string[];
64
+ }, {
65
+ timing: "UNAVAILABLE";
66
+ schemaVersion: 1;
67
+ text: string;
68
+ languages: string[];
69
+ } | {
70
+ timing: "PROVIDER_REPORTED";
71
+ timeBase: "ORIGINAL_MEDIA_MS";
72
+ granularities: ("word" | "segment")[];
73
+ words: {
74
+ text: string;
75
+ startMs: number;
76
+ endMs: number;
77
+ }[];
78
+ segments: {
79
+ text: string;
80
+ startMs: number;
81
+ endMs: number;
82
+ }[];
83
+ schemaVersion: 1;
84
+ text: string;
85
+ languages: string[];
86
+ }, z.core.$ZodTypeInternals<{
87
+ timing: "UNAVAILABLE";
88
+ schemaVersion: 1;
89
+ text: string;
90
+ languages: string[];
91
+ }, {
92
+ timing: "UNAVAILABLE";
93
+ schemaVersion: 1;
94
+ text: string;
95
+ languages: string[];
96
+ } | {
97
+ timing: "PROVIDER_REPORTED";
98
+ timeBase: "ORIGINAL_MEDIA_MS";
99
+ granularities: ("word" | "segment")[];
100
+ words: {
101
+ text: string;
102
+ startMs: number;
103
+ endMs: number;
104
+ }[];
105
+ segments: {
106
+ text: string;
107
+ startMs: number;
108
+ endMs: number;
109
+ }[];
110
+ schemaVersion: 1;
111
+ text: string;
112
+ languages: string[];
113
+ }>>;
114
+ inputPcmSha256: z.ZodString;
115
+ inputPcmByteSize: z.ZodInt;
116
+ }, z.core.$strict>;
117
+ /** 外部识别只能读取原登记音轨,提交参数和工作区随原生报价冻结。 */
118
+ export declare const QwenAsrRecipeSchema: z.ZodObject<{
119
+ processor: z.ZodLiteral<"TRANSCRIBE_EXTERNAL_QWEN">;
120
+ observationId: z.ZodUUID;
121
+ quoteFingerprint: z.ZodString;
122
+ credential: z.ZodObject<{
123
+ tenantId: z.ZodUUID;
124
+ connectionId: z.ZodUUID;
125
+ connectionVersion: z.ZodInt;
126
+ workspace: z.ZodString;
127
+ proofSha256: z.ZodString;
128
+ }, z.core.$strict>;
129
+ source: z.ZodObject<{
130
+ artifactId: z.ZodUUID;
131
+ representationId: z.ZodUUID;
132
+ checksumSha256: z.ZodString;
133
+ tenantId: z.ZodUUID;
134
+ projectId: z.ZodUUID;
135
+ productionId: z.ZodUUID;
136
+ byteSize: z.ZodInt;
137
+ durationMs: z.ZodNumber;
138
+ frameRate: z.ZodOptional<z.ZodNumber>;
139
+ executionClass: z.ZodEnum<{
140
+ LIVE: "LIVE";
141
+ TEST_ONLY: "TEST_ONLY";
142
+ }>;
143
+ contentType: z.ZodLiteral<"audio/wav">;
144
+ }, z.core.$strict>;
145
+ parameters: z.ZodObject<{
146
+ context: z.ZodOptional<z.ZodString>;
147
+ language: z.ZodOptional<z.ZodString>;
148
+ enable_itn: z.ZodOptional<z.ZodBoolean>;
149
+ }, z.core.$strict>;
150
+ }, z.core.$strict>;
151
+ /** 保留供应商原请求、已报告用量和参考文字,转录不产生任何时间码。 */
152
+ export declare const QwenAsrEvidenceSchema: z.ZodObject<{
153
+ processor: z.ZodLiteral<"TRANSCRIBE_EXTERNAL_QWEN">;
154
+ providerRequestId: z.ZodString;
155
+ model: z.ZodLiteral<"qwen3-asr-flash-2026-02-10">;
156
+ usage: z.ZodObject<{
157
+ seconds: z.ZodOptional<z.ZodInt>;
158
+ prompt_tokens: z.ZodOptional<z.ZodInt>;
159
+ completion_tokens: z.ZodOptional<z.ZodInt>;
160
+ total_tokens: z.ZodOptional<z.ZodInt>;
161
+ }, z.core.$strict>;
162
+ transcript: z.ZodObject<{
163
+ timing: z.ZodLiteral<"UNAVAILABLE">;
164
+ schemaVersion: z.ZodLiteral<1>;
165
+ text: z.ZodString;
166
+ languages: z.ZodArray<z.ZodString>;
167
+ }, z.core.$strict>;
168
+ }, z.core.$strict>;
169
+ export type QwenAsrRecipe = z.infer<typeof QwenAsrRecipeSchema>;
170
+ export type QwenAsrEvidence = z.infer<typeof QwenAsrEvidenceSchema>;
@@ -0,0 +1,95 @@
1
+ import { z } from "zod";
2
+ /** 系统发声只使用已安装且通过离线探针的精确语音。 */
3
+ export declare const MacSpeechIdentitySchema: z.ZodObject<{
4
+ adapter: z.ZodLiteral<"MACOS_SAY_V1">;
5
+ voiceId: z.ZodLiteral<"com.apple.speech.synthesis.voice.Albert">;
6
+ locale: z.ZodLiteral<"en-US">;
7
+ systemBuild: z.ZodString;
8
+ saySha256: z.ZodString;
9
+ sandboxSha256: z.ZodString;
10
+ synthesizerSha256: z.ZodString;
11
+ voiceCatalogSha256: z.ZodString;
12
+ voiceProbeSha256: z.ZodString;
13
+ }, z.core.$strict>;
14
+ export type MacSpeechIdentity = z.infer<typeof MacSpeechIdentitySchema>;
15
+ export declare const MacSpeechInputSchema: z.ZodObject<{
16
+ text: z.ZodString;
17
+ rateWordsPerMinute: z.ZodInt;
18
+ }, z.core.$strict>;
19
+ /** 合成文本、语速和语音身份共同冻结在原生语音任务中。 */
20
+ export declare const SpeechSynthesisRecipeSchema: z.ZodObject<{
21
+ text: z.ZodString;
22
+ rateWordsPerMinute: z.ZodInt;
23
+ processor: z.ZodLiteral<"SPEECH_SYNTHESIZE">;
24
+ identity: z.ZodObject<{
25
+ adapter: z.ZodLiteral<"MACOS_SAY_V1">;
26
+ voiceId: z.ZodLiteral<"com.apple.speech.synthesis.voice.Albert">;
27
+ locale: z.ZodLiteral<"en-US">;
28
+ systemBuild: z.ZodString;
29
+ saySha256: z.ZodString;
30
+ sandboxSha256: z.ZodString;
31
+ synthesizerSha256: z.ZodString;
32
+ voiceCatalogSha256: z.ZodString;
33
+ voiceProbeSha256: z.ZodString;
34
+ }, z.core.$strict>;
35
+ }, z.core.$strict>;
36
+ /** 原声和规范化 PCM 都绑定已提交字节,音轨 Owner 才能登记来源关系。 */
37
+ export declare const SpeechSynthesisEvidenceSchema: z.ZodObject<{
38
+ processor: z.ZodLiteral<"SPEECH_SYNTHESIZE">;
39
+ source: z.ZodObject<{
40
+ checksumSha256: z.ZodString;
41
+ byteSize: z.ZodInt;
42
+ }, z.core.$strict>;
43
+ normalized: z.ZodObject<{
44
+ checksumSha256: z.ZodString;
45
+ byteSize: z.ZodInt;
46
+ }, z.core.$strict>;
47
+ sourceMedia: z.ZodObject<{
48
+ sampleRateHz: z.ZodLiteral<22050>;
49
+ audioChannels: z.ZodLiteral<1>;
50
+ sampleCount: z.ZodInt;
51
+ }, z.core.$strict>;
52
+ media: z.ZodObject<{
53
+ profile: z.ZodLiteral<"PCM_S16LE_48000_V1">;
54
+ audioCodec: z.ZodLiteral<"pcm_s16le">;
55
+ sampleRateHz: z.ZodLiteral<48000>;
56
+ audioChannels: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>;
57
+ sampleCount: z.ZodInt;
58
+ durationMs: z.ZodInt;
59
+ }, z.core.$strict>;
60
+ padSamples: z.ZodInt;
61
+ }, z.core.$strict>;
62
+ /** 冻结原语音 Owner 和报价,供应商签名地址只在当前租约中读取。 */
63
+ export declare const QwenSpeechRecipeSchema: z.ZodObject<{
64
+ processor: z.ZodLiteral<"SPEECH_EXTERNAL_QWEN">;
65
+ generationId: z.ZodUUID;
66
+ quoteFingerprint: z.ZodString;
67
+ }, z.core.$strict>;
68
+ /** 读回原始语音和正式 PCM 后,提交与原供应商回执相关的两份对象证据。 */
69
+ export declare const QwenSpeechEvidenceSchema: z.ZodObject<{
70
+ source: z.ZodObject<{
71
+ checksumSha256: z.ZodString;
72
+ byteSize: z.ZodInt;
73
+ }, z.core.$strict>;
74
+ normalized: z.ZodObject<{
75
+ checksumSha256: z.ZodString;
76
+ byteSize: z.ZodInt;
77
+ }, z.core.$strict>;
78
+ media: z.ZodObject<{
79
+ profile: z.ZodLiteral<"PCM_S16LE_48000_V1">;
80
+ audioCodec: z.ZodLiteral<"pcm_s16le">;
81
+ sampleRateHz: z.ZodLiteral<48000>;
82
+ audioChannels: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>;
83
+ sampleCount: z.ZodInt;
84
+ durationMs: z.ZodInt;
85
+ }, z.core.$strict>;
86
+ padSamples: z.ZodInt;
87
+ processor: z.ZodLiteral<"SPEECH_EXTERNAL_QWEN">;
88
+ providerRequestId: z.ZodString;
89
+ audioId: z.ZodString;
90
+ sourceMedia: z.ZodObject<{
91
+ sampleRateHz: z.ZodLiteral<48000 | 8000 | 12000 | 22050 | 16000 | 24000 | 32000 | 44100>;
92
+ audioChannels: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>;
93
+ sampleCount: z.ZodInt;
94
+ }, z.core.$strict>;
95
+ }, z.core.$strict>;
@@ -1,9 +1,18 @@
1
1
  import { z } from "zod";
2
- export declare const LocalToolSelectionSchema: z.ZodObject<{
3
- mode: z.ZodEnum<{
4
- MANAGED: "MANAGED";
5
- INSTALLED: "INSTALLED";
6
- }>;
2
+ export declare const LocalCompositionBrowserSelectionSchema: z.ZodObject<{
3
+ path: z.ZodString;
4
+ digest: z.ZodLiteral<string>;
5
+ }, z.core.$strict>;
6
+ export declare const LocalInstalledToolSelectionSchema: z.ZodObject<{
7
+ compositionBrowser: z.ZodOptional<z.ZodObject<{
8
+ path: z.ZodString;
9
+ digest: z.ZodLiteral<string>;
10
+ }, z.core.$strict>>;
11
+ whisper: z.ZodOptional<z.ZodObject<{
12
+ binaryPath: z.ZodString;
13
+ binarySha256: z.ZodString;
14
+ modelPath: z.ZodString;
15
+ }, z.core.$strict>>;
7
16
  ffmpeg: z.ZodObject<{
8
17
  path: z.ZodString;
9
18
  digest: z.ZodString;
@@ -12,4 +21,35 @@ export declare const LocalToolSelectionSchema: z.ZodObject<{
12
21
  path: z.ZodString;
13
22
  digest: z.ZodString;
14
23
  }, z.core.$strict>;
24
+ mode: z.ZodLiteral<"INSTALLED">;
15
25
  }, z.core.$strict>;
26
+ export declare const LocalToolSelectionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
27
+ ffmpeg: z.ZodObject<{
28
+ path: z.ZodString;
29
+ digest: z.ZodString;
30
+ }, z.core.$strict>;
31
+ ffprobe: z.ZodObject<{
32
+ path: z.ZodString;
33
+ digest: z.ZodString;
34
+ }, z.core.$strict>;
35
+ mode: z.ZodLiteral<"MANAGED">;
36
+ }, z.core.$strict>, z.ZodObject<{
37
+ compositionBrowser: z.ZodOptional<z.ZodObject<{
38
+ path: z.ZodString;
39
+ digest: z.ZodLiteral<string>;
40
+ }, z.core.$strict>>;
41
+ whisper: z.ZodOptional<z.ZodObject<{
42
+ binaryPath: z.ZodString;
43
+ binarySha256: z.ZodString;
44
+ modelPath: z.ZodString;
45
+ }, z.core.$strict>>;
46
+ ffmpeg: z.ZodObject<{
47
+ path: z.ZodString;
48
+ digest: z.ZodString;
49
+ }, z.core.$strict>;
50
+ ffprobe: z.ZodObject<{
51
+ path: z.ZodString;
52
+ digest: z.ZodString;
53
+ }, z.core.$strict>;
54
+ mode: z.ZodLiteral<"INSTALLED">;
55
+ }, z.core.$strict>], "mode">;
@@ -0,0 +1,24 @@
1
+ import { z } from "zod";
2
+ /** 首个本机识别配方固定上游版本、权重和 PCM 输入,资格探针和业务合同共享。 */
3
+ export declare const whisperCppRecognitionProfile: Readonly<{
4
+ readonly id: "WHISPER_CPP_TINY_EN_Q5_1_PCM16K_V1";
5
+ readonly sourceRevision: "2eeeba56e9edd762b4b38467bab96c2517163158";
6
+ readonly modelSha256: "c77c5766f1cef09b6b7d47f21b546cbddd4157886b3b5d6d4f709e91e66c7c2b";
7
+ readonly language: "en";
8
+ readonly sampleRateHz: 16000;
9
+ readonly maxDurationMs: 60000;
10
+ }>;
11
+ /** 声音识别只冻结工具和模型的实际身份,设备绝对路径留在私有安装配置。 */
12
+ export declare const LocalWhisperIdentitySchema: z.ZodObject<{
13
+ profileId: z.ZodLiteral<"WHISPER_CPP_TINY_EN_Q5_1_PCM16K_V1">;
14
+ binarySha256: z.ZodString;
15
+ modelSha256: z.ZodLiteral<"c77c5766f1cef09b6b7d47f21b546cbddd4157886b3b5d6d4f709e91e66c7c2b">;
16
+ }, z.core.$strict>;
17
+ export type LocalWhisperIdentity = z.infer<typeof LocalWhisperIdentitySchema>;
18
+ /** 设备所有者指定已安装文件;业务命令和服务器不接触这些本机路径。 */
19
+ export declare const LocalWhisperToolSelectionSchema: z.ZodObject<{
20
+ binaryPath: z.ZodString;
21
+ binarySha256: z.ZodString;
22
+ modelPath: z.ZodString;
23
+ }, z.core.$strict>;
24
+ export type LocalWhisperToolSelection = z.infer<typeof LocalWhisperToolSelectionSchema>;