@nativestudio/cli 0.3.0-rc.5 → 0.3.0-rc.7
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.
- package/COMPATIBILITY.json +7 -7
- package/LICENSE +201 -21
- package/components/runtime.json +3 -3
- package/components/runtime.tgz +0 -0
- package/dist/_chunks/{chunk-CA54SKBO.js → chunk-6SYHA2B4.js} +1 -1
- package/dist/_chunks/{chunk-GJ7BZJLW.js → chunk-A7EUJNCL.js} +1 -1
- package/dist/_chunks/chunk-AJ7S73M4.js +1 -0
- package/dist/_chunks/chunk-DRHPICBU.js +1 -0
- package/dist/_chunks/chunk-FCHO4AVP.js +1 -0
- package/dist/_chunks/chunk-JH5QP6PC.js +1 -0
- package/dist/_chunks/chunk-LF442QV6.js +1 -0
- package/dist/_chunks/chunk-LUBHPAPW.js +1 -0
- package/dist/_chunks/chunk-OZ5KZSTM.js +1 -0
- package/dist/_chunks/chunk-RJ4QQF7E.js +1 -0
- package/dist/_chunks/chunk-RT5PFKYS.js +1 -0
- package/dist/_chunks/chunk-SIJPJIBO.js +1 -0
- package/dist/_chunks/{chunk-KNFUMWDY.js → chunk-TCZJLYSR.js} +1 -1
- package/dist/_chunks/chunk-TTFDNLQE.js +1 -0
- package/dist/_chunks/chunk-URKX77KR.js +1 -0
- package/dist/_chunks/chunk-XRYARPEL.js +1 -0
- package/dist/_chunks/device-management-4XIITODX.js +1 -0
- package/dist/_chunks/device-preflight-SDA7Q3LH.js +1 -0
- package/dist/_chunks/devices-inventory-RVHGI2YW.js +1 -0
- package/dist/_chunks/devices-main-WOILNAGY.js +1 -0
- package/dist/_chunks/http-profile-XCHTSJV4.js +1 -0
- package/dist/_chunks/library-main-ZQKJQNHE.js +1 -0
- package/dist/_chunks/local-main-DX47PKHX.js +1 -0
- package/dist/_chunks/local-mcp-HMS5ODZN.js +1 -0
- package/dist/_chunks/main-HQGVZ2O2.js +2 -0
- package/dist/_chunks/mcp-6Q4ALHN6.js +1 -0
- package/dist/_chunks/project-connect-U2IHGC5W.js +1 -0
- package/dist/_chunks/render-main-A2AABFAG.js +1 -0
- package/dist/_chunks/source-import-5N4KZMTC.js +1 -0
- package/dist/_chunks/src-NIMTPR5W.js +1 -0
- package/dist/_chunks/{stdio-main-4Z2JVCMO.js → stdio-main-JJCNIY4H.js} +1 -1
- package/dist/_chunks/workspace-main-ZIZO4WRI.js +1 -0
- package/dist/_types/cli/local/desktop-contract.d.ts +1077 -564
- package/dist/_types/cli/local/desktop-device-contract.d.ts +170 -556
- package/dist/_types/cli/local/desktop-device-owner.d.ts +16 -50
- package/dist/_types/cli/local/desktop-device-state.d.ts +198 -31
- package/dist/_types/cli/local/desktop-library.d.ts +853 -0
- package/dist/_types/cli/local/desktop-owner.d.ts +220 -39
- package/dist/_types/cli/local/ledger.d.ts +2 -0
- package/dist/_types/cli/local/manager.d.ts +352 -22
- package/dist/_types/cli/local/mcp-tools.d.ts +218 -39
- package/dist/_types/cli/local/project-render-tools.d.ts +8742 -77
- package/dist/_types/cli/local-management.d.ts +2 -1
- package/dist/_types/contracts/artifact-discovery.d.ts +76 -4
- package/dist/_types/contracts/audio.d.ts +4 -0
- package/dist/_types/contracts/composition-authoring.d.ts +8 -8
- package/dist/_types/contracts/composition-frame-render.d.ts +4 -4
- package/dist/_types/contracts/composition-render-base.d.ts +5 -4
- package/dist/_types/contracts/composition-render.d.ts +8 -8
- package/dist/_types/contracts/composition-repair.d.ts +10 -10
- package/dist/_types/contracts/composition-source-review.d.ts +12 -12
- package/dist/_types/contracts/delivery-manifest.d.ts +25 -11765
- package/dist/_types/contracts/delivery-operations.d.ts +51 -3921
- package/dist/_types/contracts/delivery-summary.d.ts +2 -2
- package/dist/_types/contracts/delivery-validation.d.ts +23 -0
- package/dist/_types/contracts/device-render.d.ts +67 -0
- package/dist/_types/contracts/editor-intelligence.d.ts +114 -2491
- package/dist/_types/contracts/exploration-recommendation.d.ts +263 -11655
- package/dist/_types/contracts/external-agent-access.d.ts +9 -3
- package/dist/_types/contracts/final-ready.d.ts +22 -22
- package/dist/_types/contracts/final-render.d.ts +1569 -6949
- package/dist/_types/contracts/human-identity.d.ts +13 -0
- package/dist/_types/contracts/index.d.ts +3 -0
- package/dist/_types/contracts/interface/media-output.d.ts +28 -0
- package/dist/_types/contracts/interface/production-snapshot.d.ts +15 -193
- package/dist/_types/contracts/keyframe-generation.d.ts +29 -0
- package/dist/_types/contracts/local-execution/agent-evidence.d.ts +2 -2
- package/dist/_types/contracts/local-execution/agent-grant.d.ts +2 -2
- package/dist/_types/contracts/local-execution/agent-review.d.ts +30 -285
- package/dist/_types/contracts/local-execution/common.d.ts +12 -11
- package/dist/_types/contracts/local-execution/completion.d.ts +41 -45
- package/dist/_types/contracts/local-execution/device-authority.d.ts +31 -0
- package/dist/_types/contracts/local-execution/device-inventory.d.ts +76 -0
- package/dist/_types/contracts/local-execution/device-workspace.d.ts +11 -0
- package/dist/_types/contracts/local-execution/device.d.ts +19 -59
- package/dist/_types/contracts/local-execution/external-generation.d.ts +199 -0
- package/dist/_types/contracts/local-execution/index.d.ts +19 -0
- package/dist/_types/contracts/local-execution/ipc.d.ts +1517 -711
- package/dist/_types/contracts/local-execution/library-command.d.ts +620 -0
- package/dist/_types/contracts/local-execution/library-result.d.ts +408 -0
- package/dist/_types/contracts/local-execution/library.d.ts +873 -0
- package/dist/_types/contracts/local-execution/lifecycle.d.ts +21 -5
- package/dist/_types/contracts/local-execution/local-navigation.d.ts +161 -44
- package/dist/_types/contracts/local-execution/management.d.ts +214 -208
- package/dist/_types/contracts/local-execution/media-recipe.d.ts +5 -1
- package/dist/_types/contracts/local-execution/media-validation-request.d.ts +232 -0
- package/dist/_types/contracts/local-execution/media-validation.d.ts +262 -0
- package/dist/_types/contracts/local-execution/object-transfer.d.ts +155 -0
- package/dist/_types/contracts/local-execution/preview.d.ts +120 -10988
- package/dist/_types/contracts/local-execution/processor-capability.d.ts +39 -0
- package/dist/_types/contracts/local-execution/processor-direct.d.ts +290 -0
- package/dist/_types/contracts/local-execution/processor-recipes.d.ts +1122 -0
- package/dist/_types/contracts/local-execution/processor.d.ts +6173 -0
- package/dist/_types/contracts/local-execution/project-source-direct.d.ts +201 -0
- package/dist/_types/contracts/local-execution/qwen-tts.d.ts +31 -0
- package/dist/_types/contracts/local-execution/recognition.d.ts +170 -0
- package/dist/_types/contracts/local-execution/speech.d.ts +95 -0
- package/dist/_types/contracts/local-execution/tool-selection.d.ts +45 -5
- package/dist/_types/contracts/local-execution/whisper.d.ts +24 -0
- package/dist/_types/contracts/local-execution/work.d.ts +69 -10741
- package/dist/_types/contracts/local-execution/workspace.d.ts +5 -0
- package/dist/_types/contracts/media-category.d.ts +11 -0
- package/dist/_types/contracts/media-observation.d.ts +929 -8
- package/dist/_types/contracts/observation-profile.d.ts +3 -3
- package/dist/_types/contracts/programmatic-composition.d.ts +24 -24
- package/dist/_types/contracts/programmatic-exploration.d.ts +348 -6009
- package/dist/_types/contracts/provider-catalog.d.ts +3 -3
- package/dist/_types/contracts/provider-models.d.ts +16 -8
- package/dist/_types/contracts/provider.d.ts +66 -1
- package/dist/_types/contracts/reference-preview.d.ts +19 -0
- package/dist/_types/contracts/repair-lifecycle.d.ts +52 -384
- package/dist/_types/contracts/repair-plan.d.ts +16 -98
- package/dist/_types/contracts/repair-strategy.d.ts +162 -4505
- package/dist/_types/contracts/review-intelligence-final-output.d.ts +317 -8163
- package/dist/_types/contracts/review-intelligence.d.ts +450 -11468
- package/dist/_types/contracts/rough-cut-manifest.d.ts +1 -0
- package/dist/_types/contracts/rough-cut-review.d.ts +134 -12566
- package/dist/_types/contracts/rough-cut.d.ts +1076 -5731
- package/dist/_types/contracts/sound-making-plan.d.ts +3 -2
- package/dist/_types/contracts/speech-cost.d.ts +81 -0
- package/dist/_types/contracts/speech.d.ts +149 -0
- package/dist/_types/contracts/temporal-evidence-operation.d.ts +1 -0
- package/dist/_types/contracts/timeline-audio.d.ts +1 -0
- package/dist/_types/contracts/timeline-manifest.d.ts +2 -0
- package/dist/_types/contracts/timeline-source-sound.d.ts +1 -0
- package/dist/_types/contracts/timeline-v2.d.ts +4 -0
- package/dist/_types/contracts/timeline-version-reader.d.ts +10 -0
- package/dist/_types/contracts/timeline-visual-layers.d.ts +4 -0
- package/dist/_types/contracts/timeline.d.ts +50 -4850
- package/dist/_types/contracts/transcription.d.ts +1 -1
- package/dist/_types/contracts/video-generation.d.ts +33 -0
- package/dist/_types/contracts/visual-layer-render.d.ts +37 -6
- package/dist/_types/contracts/visual-sequence.d.ts +22 -0
- package/dist/_types/contracts/workspace.d.ts +22 -0
- package/dist/_types/sdk/errors.d.ts +1 -1
- package/dist/_types/sdk/local-runtime/device-client.d.ts +7 -33
- package/dist/_types/sdk/local-runtime/library.d.ts +268 -0
- package/dist/_types/sdk/local-runtime/workspace.d.ts +9 -4
- package/dist/_types/sdk/local-runtime-client.d.ts +477 -32
- package/dist/entry.js +1 -1
- package/dist/local-management.js +1 -1
- package/dist/local-navigation.js +1 -1
- package/package.json +2 -8
- package/README.md +0 -119
- package/dist/_chunks/chunk-D533YC7J.js +0 -1
- package/dist/_chunks/chunk-INLSOHAK.js +0 -1
- package/dist/_chunks/chunk-JPH576UL.js +0 -1
- package/dist/_chunks/chunk-N6S6HCWE.js +0 -1
- package/dist/_chunks/chunk-PBEHCYR7.js +0 -1
- package/dist/_chunks/chunk-RVGDXRPK.js +0 -1
- package/dist/_chunks/chunk-YKOJPJZR.js +0 -1
- package/dist/_chunks/local-main-S2K34Y2F.js +0 -1
- package/dist/_chunks/local-mcp-LCHXL2IE.js +0 -1
- package/dist/_chunks/main-KLXOK7QK.js +0 -2
- package/dist/_chunks/mcp-P7W623FE.js +0 -1
- package/dist/_chunks/project-connect-W7V3OALV.js +0 -1
- package/dist/_chunks/render-main-ZW6UJHGN.js +0 -1
- package/dist/_chunks/src-BXLFLNRG.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
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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>;
|