@qvac/sdk 0.10.2 → 0.11.0
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/NOTICE +92 -54
- package/dist/client/api/cancel.d.ts +24 -32
- package/dist/client/api/cancel.js +58 -31
- package/dist/client/api/client-request-id.d.ts +17 -0
- package/dist/client/api/client-request-id.js +27 -0
- package/dist/client/api/completion-stream.d.ts +1 -1
- package/dist/client/api/completion-stream.js +34 -3
- package/dist/client/api/diffusion.d.ts +46 -0
- package/dist/client/api/diffusion.js +50 -1
- package/dist/client/api/download-asset.d.ts +12 -2
- package/dist/client/api/download-asset.js +21 -3
- package/dist/client/api/embed.d.ts +8 -4
- package/dist/client/api/embed.js +14 -1
- package/dist/client/api/get-model-info.d.ts +1 -1
- package/dist/client/api/index.d.ts +1 -0
- package/dist/client/api/index.js +1 -0
- package/dist/client/api/load-model.d.ts +12 -4
- package/dist/client/api/load-model.js +25 -1
- package/dist/client/api/rag.d.ts +9 -3
- package/dist/client/api/rag.js +23 -3
- package/dist/client/api/transcribe.d.ts +20 -8
- package/dist/client/api/transcribe.js +58 -4
- package/dist/client/api/unload-model.d.ts +5 -2
- package/dist/client/api/unload-model.js +9 -4
- package/dist/client/api/upscale.d.ts +45 -0
- package/dist/client/api/upscale.js +99 -0
- package/dist/client/rpc/expo-rpc-client.js +2 -1
- package/dist/client/rpc/node-rpc-client.js +18 -7
- package/dist/client/rpc/rpc-client.d.ts +2 -2
- package/dist/client/rpc/rpc-client.js +10 -4
- package/dist/client/rpc/rpc-error.d.ts +9 -0
- package/dist/client/rpc/rpc-error.js +92 -0
- package/dist/examples/cancel-by-request-id.d.ts +38 -0
- package/dist/examples/cancel-by-request-id.js +103 -0
- package/dist/examples/diffusion-esrgan-upscale.d.ts +2 -0
- package/dist/examples/diffusion-esrgan-upscale.js +78 -0
- package/dist/examples/download-with-cancel.js +10 -10
- package/dist/examples/embed-multi-gpu.d.ts +2 -0
- package/dist/examples/embed-multi-gpu.js +46 -0
- package/dist/examples/llamacpp-multi-gpu.d.ts +2 -0
- package/dist/examples/llamacpp-multi-gpu.js +57 -0
- package/dist/examples/rag/rag-hyperdb/cancellation.js +20 -17
- package/dist/examples/tools/llamacpp-tools-gemma4.d.ts +2 -0
- package/dist/examples/tools/llamacpp-tools-gemma4.js +76 -0
- package/dist/examples/tools/llamacpp-tools-qwen35.d.ts +2 -0
- package/dist/examples/tools/llamacpp-tools-qwen35.js +70 -0
- package/dist/examples/transcription/whispercpp-microphone-conversation.d.ts +2 -0
- package/dist/examples/transcription/whispercpp-microphone-conversation.js +102 -0
- package/dist/examples/tts/supertonic.js +1 -1
- package/dist/expo/plugins/withMobileBundle.d.ts +20 -4
- package/dist/expo/plugins/withMobileBundle.js +44 -6
- package/dist/index.d.ts +5 -2
- package/dist/index.js +21 -1
- package/dist/models/registry/models.d.ts +186 -318
- package/dist/models/registry/models.js +1522 -1667
- package/dist/pear/pre.d.ts +3 -0
- package/dist/pear/pre.js +3 -0
- package/dist/schemas/cancel.d.ts +167 -28
- package/dist/schemas/cancel.js +119 -19
- package/dist/schemas/common.d.ts +427 -208
- package/dist/schemas/common.js +3 -1
- package/dist/schemas/completion-event.d.ts +14 -0
- package/dist/schemas/completion-event.js +11 -1
- package/dist/schemas/completion-stream.d.ts +15 -1
- package/dist/schemas/completion-stream.js +25 -7
- package/dist/schemas/download-asset.d.ts +15 -9
- package/dist/schemas/download-asset.js +17 -6
- package/dist/schemas/embed.d.ts +1 -0
- package/dist/schemas/embed.js +5 -0
- package/dist/schemas/error.d.ts +31 -0
- package/dist/schemas/error.js +29 -1
- package/dist/schemas/finetune.d.ts +2 -0
- package/dist/schemas/finetune.js +5 -0
- package/dist/schemas/get-model-info.d.ts +6 -6
- package/dist/schemas/llamacpp-config.d.ts +54 -8
- package/dist/schemas/llamacpp-config.js +12 -0
- package/dist/schemas/load-model.d.ts +1911 -1260
- package/dist/schemas/load-model.js +15 -0
- package/dist/schemas/model-src-utils.d.ts +14 -14
- package/dist/schemas/model-types.d.ts +10 -10
- package/dist/schemas/ocr.d.ts +3 -3
- package/dist/schemas/plugin.d.ts +40 -1
- package/dist/schemas/plugin.js +10 -1
- package/dist/schemas/rag.d.ts +9 -0
- package/dist/schemas/rag.js +17 -9
- package/dist/schemas/registry.d.ts +30 -30
- package/dist/schemas/reload-config.d.ts +14 -14
- package/dist/schemas/sdcpp-config.d.ts +131 -17
- package/dist/schemas/sdcpp-config.js +163 -1
- package/dist/schemas/sdk-config.d.ts +649 -271
- package/dist/schemas/sdk-errors-client.d.ts +1 -0
- package/dist/schemas/sdk-errors-client.js +5 -0
- package/dist/schemas/sdk-errors-server.d.ts +5 -0
- package/dist/schemas/sdk-errors-server.js +25 -0
- package/dist/schemas/text-to-speech.d.ts +78 -78
- package/dist/schemas/transcription-config.d.ts +24 -24
- package/dist/schemas/transcription.d.ts +56 -2
- package/dist/schemas/transcription.js +27 -0
- package/dist/schemas/translate.d.ts +2 -0
- package/dist/schemas/translate.js +13 -2
- package/dist/schemas/translation-config.d.ts +40 -40
- package/dist/schemas/unload-model.d.ts +2 -1
- package/dist/schemas/unload-model.js +4 -1
- package/dist/scripts/run-unit-tests.js +15 -2
- package/dist/server/bare/ops/cancel.d.ts +27 -1
- package/dist/server/bare/ops/cancel.js +36 -10
- package/dist/server/bare/ops/embed.d.ts +3 -3
- package/dist/server/bare/ops/embed.js +144 -28
- package/dist/server/bare/ops/kv-cache-utils.d.ts +0 -7
- package/dist/server/bare/ops/kv-cache-utils.js +8 -47
- package/dist/server/bare/ops/transcribe.d.ts +10 -5
- package/dist/server/bare/ops/transcribe.js +196 -41
- package/dist/server/bare/ops/translate.d.ts +1 -1
- package/dist/server/bare/ops/translate.js +197 -88
- package/dist/server/bare/plugins/llamacpp-completion/ops/completion-stream.d.ts +12 -3
- package/dist/server/bare/plugins/llamacpp-completion/ops/completion-stream.js +170 -172
- package/dist/server/bare/plugins/llamacpp-completion/ops/finetune.js +125 -21
- package/dist/server/bare/plugins/llamacpp-completion/ops/kv-cache-session.d.ts +154 -0
- package/dist/server/bare/plugins/llamacpp-completion/ops/kv-cache-session.js +448 -0
- package/dist/server/bare/plugins/llamacpp-completion/ops/kv-cache-state.d.ts +21 -73
- package/dist/server/bare/plugins/llamacpp-completion/ops/kv-cache-state.js +18 -101
- package/dist/server/bare/plugins/llamacpp-completion/plugin.d.ts +30 -3
- package/dist/server/bare/plugins/llamacpp-completion/plugin.js +157 -85
- package/dist/server/bare/plugins/llamacpp-completion/transform.d.ts +10 -0
- package/dist/server/bare/plugins/llamacpp-completion/transform.js +34 -0
- package/dist/server/bare/plugins/llamacpp-embedding/plugin.d.ts +7 -0
- package/dist/server/bare/plugins/llamacpp-embedding/plugin.js +10 -1
- package/dist/server/bare/plugins/nmtcpp-translation/plugin.d.ts +17 -15
- package/dist/server/bare/plugins/nmtcpp-translation/plugin.js +5 -1
- package/dist/server/bare/plugins/onnx-ocr/plugin.d.ts +3 -3
- package/dist/server/bare/plugins/onnx-ocr/plugin.js +3 -0
- package/dist/server/bare/plugins/onnx-tts/plugin.d.ts +39 -39
- package/dist/server/bare/plugins/onnx-tts/plugin.js +6 -0
- package/dist/server/bare/plugins/parakeet-transcription/plugin.d.ts +29 -21
- package/dist/server/bare/plugins/parakeet-transcription/plugin.js +4 -1
- package/dist/server/bare/plugins/sdcpp-generation/ops/diffusion.js +8 -0
- package/dist/server/bare/plugins/sdcpp-generation/ops/upscale.d.ts +3 -0
- package/dist/server/bare/plugins/sdcpp-generation/ops/upscale.js +40 -0
- package/dist/server/bare/plugins/sdcpp-generation/plugin.d.ts +91 -16
- package/dist/server/bare/plugins/sdcpp-generation/plugin.js +97 -7
- package/dist/server/bare/plugins/whispercpp-transcription/plugin.d.ts +22 -3
- package/dist/server/bare/plugins/whispercpp-transcription/plugin.js +50 -14
- package/dist/server/bare/rag-hyperdb/index.d.ts +1 -1
- package/dist/server/bare/rag-hyperdb/index.js +1 -1
- package/dist/server/bare/rag-hyperdb/rag-operation-manager.d.ts +26 -4
- package/dist/server/bare/rag-hyperdb/rag-operation-manager.js +65 -28
- package/dist/server/bare/runtime/disposable-scope.d.ts +36 -0
- package/dist/server/bare/runtime/disposable-scope.js +69 -0
- package/dist/server/bare/runtime/index.d.ts +8 -0
- package/dist/server/bare/runtime/index.js +3 -0
- package/dist/server/bare/runtime/request-context.d.ts +49 -0
- package/dist/server/bare/runtime/request-context.js +1 -0
- package/dist/server/bare/runtime/request-id.d.ts +12 -0
- package/dist/server/bare/runtime/request-id.js +14 -0
- package/dist/server/bare/runtime/request-registry-singleton.d.ts +4 -0
- package/dist/server/bare/runtime/request-registry-singleton.js +27 -0
- package/dist/server/bare/runtime/request-registry.d.ts +136 -0
- package/dist/server/bare/runtime/request-registry.js +297 -0
- package/dist/server/bare/runtime/with-request-context.d.ts +22 -0
- package/dist/server/bare/runtime/with-request-context.js +53 -0
- package/dist/server/bare/types/addon-responses.d.ts +11 -1
- package/dist/server/rpc/handler-registry.js +26 -7
- package/dist/server/rpc/handlers/cancel-delegated.js +28 -31
- package/dist/server/rpc/handlers/cancelHandler.d.ts +30 -1
- package/dist/server/rpc/handlers/cancelHandler.js +54 -22
- package/dist/server/rpc/handlers/delete-cache.d.ts +9 -0
- package/dist/server/rpc/handlers/delete-cache.js +13 -15
- package/dist/server/rpc/handlers/download-asset.js +133 -40
- package/dist/server/rpc/handlers/index.d.ts +2 -0
- package/dist/server/rpc/handlers/index.js +2 -0
- package/dist/server/rpc/handlers/load-model/download-manager.d.ts +60 -2
- package/dist/server/rpc/handlers/load-model/download-manager.js +141 -8
- package/dist/server/rpc/handlers/load-model/handler.js +213 -98
- package/dist/server/rpc/handlers/load-model/http.js +3 -3
- package/dist/server/rpc/handlers/load-model/hyperdrive.js +1 -1
- package/dist/server/rpc/handlers/load-model/registry.js +1 -1
- package/dist/server/rpc/handlers/load-model/resolve-session.d.ts +20 -1
- package/dist/server/rpc/handlers/load-model/resolve-session.js +6 -5
- package/dist/server/rpc/handlers/load-model/resolve.d.ts +3 -2
- package/dist/server/rpc/handlers/load-model/resolve.js +9 -6
- package/dist/server/rpc/handlers/load-model/types.d.ts +24 -0
- package/dist/server/rpc/handlers/rag.js +133 -15
- package/dist/server/rpc/handlers/upscale-stream.d.ts +3 -0
- package/dist/server/rpc/handlers/upscale-stream.js +4 -0
- package/dist/server/utils/completion-normalizer.js +8 -0
- package/dist/server/utils/tools/dialect.js +4 -0
- package/dist/server/utils/tools/parser.js +16 -1
- package/dist/server/utils/tools/parsers/gemma4native.d.ts +4 -0
- package/dist/server/utils/tools/parsers/gemma4native.js +60 -0
- package/dist/server/utils/tools/parsers/qwen35.d.ts +4 -0
- package/dist/server/utils/tools/parsers/qwen35.js +120 -0
- package/dist/utils/aggregate-events.d.ts +9 -0
- package/dist/utils/aggregate-events.js +18 -3
- package/dist/utils/decorate-promise.d.ts +34 -0
- package/dist/utils/decorate-promise.js +35 -0
- package/dist/utils/errors-client.d.ts +3 -0
- package/dist/utils/errors-client.js +5 -0
- package/dist/utils/errors-server.d.ts +85 -0
- package/dist/utils/errors-server.js +97 -0
- package/package.json +20 -15
|
@@ -77,6 +77,9 @@ export declare const whisperConfigSchema: z.ZodObject<{
|
|
|
77
77
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
78
78
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
79
79
|
embeddings: "embeddings";
|
|
80
|
+
diffusion: "diffusion";
|
|
81
|
+
tts: "tts";
|
|
82
|
+
ocr: "ocr";
|
|
80
83
|
"llamacpp-completion": "llamacpp-completion";
|
|
81
84
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
82
85
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
@@ -89,9 +92,6 @@ export declare const whisperConfigSchema: z.ZodObject<{
|
|
|
89
92
|
whisper: "whisper";
|
|
90
93
|
nmt: "nmt";
|
|
91
94
|
parakeet: "parakeet";
|
|
92
|
-
tts: "tts";
|
|
93
|
-
ocr: "ocr";
|
|
94
|
-
diffusion: "diffusion";
|
|
95
95
|
}>, z.ZodLiteral<"vad">]>>;
|
|
96
96
|
}, z.core.$strip>]>>;
|
|
97
97
|
}, z.core.$strip>;
|
|
@@ -140,6 +140,9 @@ export declare const parakeetConfigSchema: z.ZodObject<{
|
|
|
140
140
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
141
141
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
142
142
|
embeddings: "embeddings";
|
|
143
|
+
diffusion: "diffusion";
|
|
144
|
+
tts: "tts";
|
|
145
|
+
ocr: "ocr";
|
|
143
146
|
"llamacpp-completion": "llamacpp-completion";
|
|
144
147
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
145
148
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
@@ -152,9 +155,6 @@ export declare const parakeetConfigSchema: z.ZodObject<{
|
|
|
152
155
|
whisper: "whisper";
|
|
153
156
|
nmt: "nmt";
|
|
154
157
|
parakeet: "parakeet";
|
|
155
|
-
tts: "tts";
|
|
156
|
-
ocr: "ocr";
|
|
157
|
-
diffusion: "diffusion";
|
|
158
158
|
}>, z.ZodLiteral<"vad">]>>;
|
|
159
159
|
}, z.core.$strip>]>>;
|
|
160
160
|
parakeetDecoderSrc: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -170,6 +170,9 @@ export declare const parakeetConfigSchema: z.ZodObject<{
|
|
|
170
170
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
171
171
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
172
172
|
embeddings: "embeddings";
|
|
173
|
+
diffusion: "diffusion";
|
|
174
|
+
tts: "tts";
|
|
175
|
+
ocr: "ocr";
|
|
173
176
|
"llamacpp-completion": "llamacpp-completion";
|
|
174
177
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
175
178
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
@@ -182,9 +185,6 @@ export declare const parakeetConfigSchema: z.ZodObject<{
|
|
|
182
185
|
whisper: "whisper";
|
|
183
186
|
nmt: "nmt";
|
|
184
187
|
parakeet: "parakeet";
|
|
185
|
-
tts: "tts";
|
|
186
|
-
ocr: "ocr";
|
|
187
|
-
diffusion: "diffusion";
|
|
188
188
|
}>, z.ZodLiteral<"vad">]>>;
|
|
189
189
|
}, z.core.$strip>]>>;
|
|
190
190
|
parakeetVocabSrc: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -200,6 +200,9 @@ export declare const parakeetConfigSchema: z.ZodObject<{
|
|
|
200
200
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
201
201
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
202
202
|
embeddings: "embeddings";
|
|
203
|
+
diffusion: "diffusion";
|
|
204
|
+
tts: "tts";
|
|
205
|
+
ocr: "ocr";
|
|
203
206
|
"llamacpp-completion": "llamacpp-completion";
|
|
204
207
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
205
208
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
@@ -212,9 +215,6 @@ export declare const parakeetConfigSchema: z.ZodObject<{
|
|
|
212
215
|
whisper: "whisper";
|
|
213
216
|
nmt: "nmt";
|
|
214
217
|
parakeet: "parakeet";
|
|
215
|
-
tts: "tts";
|
|
216
|
-
ocr: "ocr";
|
|
217
|
-
diffusion: "diffusion";
|
|
218
218
|
}>, z.ZodLiteral<"vad">]>>;
|
|
219
219
|
}, z.core.$strip>]>>;
|
|
220
220
|
parakeetPreprocessorSrc: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -230,6 +230,9 @@ export declare const parakeetConfigSchema: z.ZodObject<{
|
|
|
230
230
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
231
231
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
232
232
|
embeddings: "embeddings";
|
|
233
|
+
diffusion: "diffusion";
|
|
234
|
+
tts: "tts";
|
|
235
|
+
ocr: "ocr";
|
|
233
236
|
"llamacpp-completion": "llamacpp-completion";
|
|
234
237
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
235
238
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
@@ -242,9 +245,6 @@ export declare const parakeetConfigSchema: z.ZodObject<{
|
|
|
242
245
|
whisper: "whisper";
|
|
243
246
|
nmt: "nmt";
|
|
244
247
|
parakeet: "parakeet";
|
|
245
|
-
tts: "tts";
|
|
246
|
-
ocr: "ocr";
|
|
247
|
-
diffusion: "diffusion";
|
|
248
248
|
}>, z.ZodLiteral<"vad">]>>;
|
|
249
249
|
}, z.core.$strip>]>>;
|
|
250
250
|
parakeetCtcModelSrc: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -260,6 +260,9 @@ export declare const parakeetConfigSchema: z.ZodObject<{
|
|
|
260
260
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
261
261
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
262
262
|
embeddings: "embeddings";
|
|
263
|
+
diffusion: "diffusion";
|
|
264
|
+
tts: "tts";
|
|
265
|
+
ocr: "ocr";
|
|
263
266
|
"llamacpp-completion": "llamacpp-completion";
|
|
264
267
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
265
268
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
@@ -272,9 +275,6 @@ export declare const parakeetConfigSchema: z.ZodObject<{
|
|
|
272
275
|
whisper: "whisper";
|
|
273
276
|
nmt: "nmt";
|
|
274
277
|
parakeet: "parakeet";
|
|
275
|
-
tts: "tts";
|
|
276
|
-
ocr: "ocr";
|
|
277
|
-
diffusion: "diffusion";
|
|
278
278
|
}>, z.ZodLiteral<"vad">]>>;
|
|
279
279
|
}, z.core.$strip>]>>;
|
|
280
280
|
parakeetTokenizerSrc: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -290,6 +290,9 @@ export declare const parakeetConfigSchema: z.ZodObject<{
|
|
|
290
290
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
291
291
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
292
292
|
embeddings: "embeddings";
|
|
293
|
+
diffusion: "diffusion";
|
|
294
|
+
tts: "tts";
|
|
295
|
+
ocr: "ocr";
|
|
293
296
|
"llamacpp-completion": "llamacpp-completion";
|
|
294
297
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
295
298
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
@@ -302,9 +305,6 @@ export declare const parakeetConfigSchema: z.ZodObject<{
|
|
|
302
305
|
whisper: "whisper";
|
|
303
306
|
nmt: "nmt";
|
|
304
307
|
parakeet: "parakeet";
|
|
305
|
-
tts: "tts";
|
|
306
|
-
ocr: "ocr";
|
|
307
|
-
diffusion: "diffusion";
|
|
308
308
|
}>, z.ZodLiteral<"vad">]>>;
|
|
309
309
|
}, z.core.$strip>]>>;
|
|
310
310
|
parakeetSortformerSrc: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -320,6 +320,9 @@ export declare const parakeetConfigSchema: z.ZodObject<{
|
|
|
320
320
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
321
321
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
322
322
|
embeddings: "embeddings";
|
|
323
|
+
diffusion: "diffusion";
|
|
324
|
+
tts: "tts";
|
|
325
|
+
ocr: "ocr";
|
|
323
326
|
"llamacpp-completion": "llamacpp-completion";
|
|
324
327
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
325
328
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
@@ -332,9 +335,6 @@ export declare const parakeetConfigSchema: z.ZodObject<{
|
|
|
332
335
|
whisper: "whisper";
|
|
333
336
|
nmt: "nmt";
|
|
334
337
|
parakeet: "parakeet";
|
|
335
|
-
tts: "tts";
|
|
336
|
-
ocr: "ocr";
|
|
337
|
-
diffusion: "diffusion";
|
|
338
338
|
}>, z.ZodLiteral<"vad">]>>;
|
|
339
339
|
}, z.core.$strip>]>>;
|
|
340
340
|
}, z.core.$strip>;
|
|
@@ -37,6 +37,13 @@ export declare const transcribeSegmentSchema: z.ZodObject<{
|
|
|
37
37
|
append: z.ZodBoolean;
|
|
38
38
|
id: z.ZodNumber;
|
|
39
39
|
}, z.core.$strip>;
|
|
40
|
+
export declare const vadStateEventSchema: z.ZodObject<{
|
|
41
|
+
speaking: z.ZodBoolean;
|
|
42
|
+
probability: z.ZodNumber;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
export declare const endOfTurnEventSchema: z.ZodObject<{
|
|
45
|
+
silenceDurationMs: z.ZodNumber;
|
|
46
|
+
}, z.core.$strip>;
|
|
40
47
|
export declare const transcribeRequestSchema: z.ZodObject<{
|
|
41
48
|
modelId: z.ZodString;
|
|
42
49
|
prompt: z.ZodOptional<z.ZodString>;
|
|
@@ -49,6 +56,7 @@ export declare const transcribeRequestSchema: z.ZodObject<{
|
|
|
49
56
|
value: z.ZodString;
|
|
50
57
|
}, z.core.$strip>], "type">;
|
|
51
58
|
type: z.ZodLiteral<"transcribe">;
|
|
59
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
52
60
|
}, z.core.$strip>;
|
|
53
61
|
export declare const transcribeResponseSchema: z.ZodObject<{
|
|
54
62
|
text: z.ZodOptional<z.ZodString>;
|
|
@@ -73,6 +81,13 @@ export declare const transcribeResponseSchema: z.ZodObject<{
|
|
|
73
81
|
append: z.ZodBoolean;
|
|
74
82
|
id: z.ZodNumber;
|
|
75
83
|
}, z.core.$strip>>;
|
|
84
|
+
vad: z.ZodOptional<z.ZodObject<{
|
|
85
|
+
speaking: z.ZodBoolean;
|
|
86
|
+
probability: z.ZodNumber;
|
|
87
|
+
}, z.core.$strip>>;
|
|
88
|
+
endOfTurn: z.ZodOptional<z.ZodObject<{
|
|
89
|
+
silenceDurationMs: z.ZodNumber;
|
|
90
|
+
}, z.core.$strip>>;
|
|
76
91
|
type: z.ZodLiteral<"transcribe">;
|
|
77
92
|
}, z.core.$strip>;
|
|
78
93
|
export type AudioInput = z.infer<typeof audioInputSchema>;
|
|
@@ -91,6 +106,10 @@ export declare const transcribeStreamRequestSchema: z.ZodObject<{
|
|
|
91
106
|
prompt: z.ZodOptional<z.ZodString>;
|
|
92
107
|
metadata: z.ZodOptional<z.ZodBoolean>;
|
|
93
108
|
type: z.ZodLiteral<"transcribeStream">;
|
|
109
|
+
emitVadEvents: z.ZodOptional<z.ZodBoolean>;
|
|
110
|
+
endOfTurnSilenceMs: z.ZodOptional<z.ZodNumber>;
|
|
111
|
+
vadRunIntervalMs: z.ZodOptional<z.ZodNumber>;
|
|
112
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
94
113
|
}, z.core.$strip>;
|
|
95
114
|
export declare const transcribeStreamResponseSchema: z.ZodObject<{
|
|
96
115
|
text: z.ZodOptional<z.ZodString>;
|
|
@@ -115,6 +134,13 @@ export declare const transcribeStreamResponseSchema: z.ZodObject<{
|
|
|
115
134
|
append: z.ZodBoolean;
|
|
116
135
|
id: z.ZodNumber;
|
|
117
136
|
}, z.core.$strip>>;
|
|
137
|
+
vad: z.ZodOptional<z.ZodObject<{
|
|
138
|
+
speaking: z.ZodBoolean;
|
|
139
|
+
probability: z.ZodNumber;
|
|
140
|
+
}, z.core.$strip>>;
|
|
141
|
+
endOfTurn: z.ZodOptional<z.ZodObject<{
|
|
142
|
+
silenceDurationMs: z.ZodNumber;
|
|
143
|
+
}, z.core.$strip>>;
|
|
118
144
|
type: z.ZodLiteral<"transcribeStream">;
|
|
119
145
|
}, z.core.$strip>;
|
|
120
146
|
export type TranscribeStreamRequest = z.infer<typeof transcribeStreamRequestSchema>;
|
|
@@ -123,18 +149,46 @@ export type TranscribeStreamClientParams = {
|
|
|
123
149
|
modelId: string;
|
|
124
150
|
prompt?: string;
|
|
125
151
|
metadata?: boolean;
|
|
152
|
+
emitVadEvents?: boolean;
|
|
153
|
+
/**
|
|
154
|
+
* Silence (ms) before an `endOfTurn` event fires. `0` or unset disables
|
|
155
|
+
* end-of-turn detection entirely — no `endOfTurn` events will be emitted
|
|
156
|
+
* even when `emitVadEvents` is `true`. Pass a positive value (e.g. `800`)
|
|
157
|
+
* to enable.
|
|
158
|
+
*/
|
|
159
|
+
endOfTurnSilenceMs?: number;
|
|
160
|
+
vadRunIntervalMs?: number;
|
|
126
161
|
};
|
|
127
162
|
export interface TranscribeStreamSession {
|
|
128
|
-
write(audioChunk:
|
|
163
|
+
write(audioChunk: Uint8Array): void;
|
|
129
164
|
end(): void;
|
|
130
165
|
destroy(): void;
|
|
131
166
|
[Symbol.asyncIterator](): AsyncIterator<string>;
|
|
132
167
|
}
|
|
133
168
|
export interface TranscribeStreamMetadataSession {
|
|
134
|
-
write(audioChunk:
|
|
169
|
+
write(audioChunk: Uint8Array): void;
|
|
135
170
|
end(): void;
|
|
136
171
|
destroy(): void;
|
|
137
172
|
[Symbol.asyncIterator](): AsyncIterator<TranscribeSegment>;
|
|
138
173
|
}
|
|
174
|
+
export type VadStateEvent = z.infer<typeof vadStateEventSchema>;
|
|
175
|
+
export type EndOfTurnEvent = z.infer<typeof endOfTurnEventSchema>;
|
|
176
|
+
export type TranscribeStreamEvent = {
|
|
177
|
+
type: "text";
|
|
178
|
+
text: string;
|
|
179
|
+
} | {
|
|
180
|
+
type: "segment";
|
|
181
|
+
segment: TranscribeSegment;
|
|
182
|
+
} | ({
|
|
183
|
+
type: "vad";
|
|
184
|
+
} & VadStateEvent) | ({
|
|
185
|
+
type: "endOfTurn";
|
|
186
|
+
} & EndOfTurnEvent);
|
|
187
|
+
export interface TranscribeStreamConversationSession {
|
|
188
|
+
write(audioChunk: Uint8Array): void;
|
|
189
|
+
end(): void;
|
|
190
|
+
destroy(): void;
|
|
191
|
+
[Symbol.asyncIterator](): AsyncIterator<TranscribeStreamEvent>;
|
|
192
|
+
}
|
|
139
193
|
export type TranscribeStats = z.infer<typeof transcribeStatsSchema>;
|
|
140
194
|
//# sourceMappingURL=transcription.d.ts.map
|
|
@@ -36,8 +36,20 @@ export const transcribeSegmentSchema = z.object({
|
|
|
36
36
|
append: z.boolean(),
|
|
37
37
|
id: z.number(),
|
|
38
38
|
});
|
|
39
|
+
export const vadStateEventSchema = z.object({
|
|
40
|
+
speaking: z.boolean(),
|
|
41
|
+
probability: z.number(),
|
|
42
|
+
});
|
|
43
|
+
export const endOfTurnEventSchema = z.object({
|
|
44
|
+
silenceDurationMs: z.number(),
|
|
45
|
+
});
|
|
39
46
|
export const transcribeRequestSchema = transcribeParamsSchema.extend({
|
|
40
47
|
type: z.literal("transcribe"),
|
|
48
|
+
requestId: z
|
|
49
|
+
.string()
|
|
50
|
+
.min(1)
|
|
51
|
+
.optional()
|
|
52
|
+
.describe("Stable identifier for this in-flight transcription, generated by the client at call time. Surfaces on the registry so callers can target it with `cancel({ requestId })`. Optional on the wire — the server falls back to a server-generated id when the field is missing."),
|
|
41
53
|
});
|
|
42
54
|
const transcriptionResultBase = z.object({
|
|
43
55
|
text: z.string().optional(),
|
|
@@ -45,12 +57,27 @@ const transcriptionResultBase = z.object({
|
|
|
45
57
|
stats: transcribeStatsSchema.optional(),
|
|
46
58
|
error: z.string().optional(),
|
|
47
59
|
segment: transcribeSegmentSchema.optional(),
|
|
60
|
+
vad: vadStateEventSchema.optional(),
|
|
61
|
+
endOfTurn: endOfTurnEventSchema.optional(),
|
|
48
62
|
});
|
|
49
63
|
export const transcribeResponseSchema = transcriptionResultBase.extend({
|
|
50
64
|
type: z.literal("transcribe"),
|
|
51
65
|
});
|
|
52
66
|
export const transcribeStreamRequestSchema = transcribeBaseSchema.extend({
|
|
53
67
|
type: z.literal("transcribeStream"),
|
|
68
|
+
emitVadEvents: z.boolean().optional(),
|
|
69
|
+
endOfTurnSilenceMs: z
|
|
70
|
+
.number()
|
|
71
|
+
.int()
|
|
72
|
+
.nonnegative()
|
|
73
|
+
.optional()
|
|
74
|
+
.describe("Silence (ms) before an endOfTurn event fires. 0 or unset disables end-of-turn detection entirely."),
|
|
75
|
+
vadRunIntervalMs: z.number().int().positive().optional(),
|
|
76
|
+
requestId: z
|
|
77
|
+
.string()
|
|
78
|
+
.min(1)
|
|
79
|
+
.optional()
|
|
80
|
+
.describe("Stable identifier for this in-flight duplex transcription, generated by the client at call time. Surfaces on the registry so callers can target it with `cancel({ requestId })`. Optional on the wire — the server falls back to a server-generated id when the field is missing."),
|
|
54
81
|
});
|
|
55
82
|
export const transcribeStreamResponseSchema = transcriptionResultBase.extend({
|
|
56
83
|
type: z.literal("transcribeStream"),
|
|
@@ -39,6 +39,7 @@ export declare const translateRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
39
39
|
nmt: "nmt";
|
|
40
40
|
}>;
|
|
41
41
|
type: z.ZodLiteral<"translate">;
|
|
42
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
42
43
|
}, z.core.$strip>, z.ZodObject<{
|
|
43
44
|
modelId: z.ZodString;
|
|
44
45
|
text: z.ZodString;
|
|
@@ -51,6 +52,7 @@ export declare const translateRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
51
52
|
to: z.ZodString;
|
|
52
53
|
context: z.ZodOptional<z.ZodString>;
|
|
53
54
|
type: z.ZodLiteral<"translate">;
|
|
55
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
54
56
|
}, z.core.$strip>]>;
|
|
55
57
|
export declare const translateServerParamsSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
|
|
56
58
|
modelId: z.ZodString;
|
|
@@ -77,9 +77,20 @@ export const translationStatsSchema = z.object({
|
|
|
77
77
|
.optional()
|
|
78
78
|
.describe("Tokens served from the KV cache during LLM translation."),
|
|
79
79
|
});
|
|
80
|
+
const translateRequestIdField = z
|
|
81
|
+
.string()
|
|
82
|
+
.min(1)
|
|
83
|
+
.optional()
|
|
84
|
+
.describe("Stable identifier for this in-flight translation, generated by the client at call time. Surfaces on the registry so callers can target it with `cancel({ requestId })`. Optional on the wire — the server falls back to a server-generated id when the field is missing.");
|
|
80
85
|
export const translateRequestSchema = z.union([
|
|
81
|
-
translateParamsNmtSchema.extend({
|
|
82
|
-
|
|
86
|
+
translateParamsNmtSchema.extend({
|
|
87
|
+
type: z.literal("translate"),
|
|
88
|
+
requestId: translateRequestIdField,
|
|
89
|
+
}),
|
|
90
|
+
translateParamsLlmSchema.extend({
|
|
91
|
+
type: z.literal("translate"),
|
|
92
|
+
requestId: translateRequestIdField,
|
|
93
|
+
}),
|
|
83
94
|
]);
|
|
84
95
|
// Valid model types for translation (aliases and canonical)
|
|
85
96
|
const validTranslationModelTypes = [
|
|
@@ -141,6 +141,9 @@ export declare const nmtConfigBaseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
141
141
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
142
142
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
143
143
|
embeddings: "embeddings";
|
|
144
|
+
diffusion: "diffusion";
|
|
145
|
+
tts: "tts";
|
|
146
|
+
ocr: "ocr";
|
|
144
147
|
"llamacpp-completion": "llamacpp-completion";
|
|
145
148
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
146
149
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
@@ -153,9 +156,6 @@ export declare const nmtConfigBaseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
153
156
|
whisper: "whisper";
|
|
154
157
|
nmt: "nmt";
|
|
155
158
|
parakeet: "parakeet";
|
|
156
|
-
tts: "tts";
|
|
157
|
-
ocr: "ocr";
|
|
158
|
-
diffusion: "diffusion";
|
|
159
159
|
}>, z.ZodLiteral<"vad">]>>;
|
|
160
160
|
}, z.core.$strip>]>>;
|
|
161
161
|
dstVocabSrc: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -171,6 +171,9 @@ export declare const nmtConfigBaseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
171
171
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
172
172
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
173
173
|
embeddings: "embeddings";
|
|
174
|
+
diffusion: "diffusion";
|
|
175
|
+
tts: "tts";
|
|
176
|
+
ocr: "ocr";
|
|
174
177
|
"llamacpp-completion": "llamacpp-completion";
|
|
175
178
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
176
179
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
@@ -183,9 +186,6 @@ export declare const nmtConfigBaseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
183
186
|
whisper: "whisper";
|
|
184
187
|
nmt: "nmt";
|
|
185
188
|
parakeet: "parakeet";
|
|
186
|
-
tts: "tts";
|
|
187
|
-
ocr: "ocr";
|
|
188
|
-
diffusion: "diffusion";
|
|
189
189
|
}>, z.ZodLiteral<"vad">]>>;
|
|
190
190
|
}, z.core.$strip>]>>;
|
|
191
191
|
normalize: z.ZodOptional<z.ZodNumber>;
|
|
@@ -214,6 +214,9 @@ export declare const nmtConfigBaseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
214
214
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
215
215
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
216
216
|
embeddings: "embeddings";
|
|
217
|
+
diffusion: "diffusion";
|
|
218
|
+
tts: "tts";
|
|
219
|
+
ocr: "ocr";
|
|
217
220
|
"llamacpp-completion": "llamacpp-completion";
|
|
218
221
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
219
222
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
@@ -226,9 +229,6 @@ export declare const nmtConfigBaseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
226
229
|
whisper: "whisper";
|
|
227
230
|
nmt: "nmt";
|
|
228
231
|
parakeet: "parakeet";
|
|
229
|
-
tts: "tts";
|
|
230
|
-
ocr: "ocr";
|
|
231
|
-
diffusion: "diffusion";
|
|
232
232
|
}>, z.ZodLiteral<"vad">]>>;
|
|
233
233
|
}, z.core.$strip>]>;
|
|
234
234
|
srcVocabSrc: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -244,6 +244,9 @@ export declare const nmtConfigBaseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
244
244
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
245
245
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
246
246
|
embeddings: "embeddings";
|
|
247
|
+
diffusion: "diffusion";
|
|
248
|
+
tts: "tts";
|
|
249
|
+
ocr: "ocr";
|
|
247
250
|
"llamacpp-completion": "llamacpp-completion";
|
|
248
251
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
249
252
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
@@ -256,9 +259,6 @@ export declare const nmtConfigBaseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
256
259
|
whisper: "whisper";
|
|
257
260
|
nmt: "nmt";
|
|
258
261
|
parakeet: "parakeet";
|
|
259
|
-
tts: "tts";
|
|
260
|
-
ocr: "ocr";
|
|
261
|
-
diffusion: "diffusion";
|
|
262
262
|
}>, z.ZodLiteral<"vad">]>>;
|
|
263
263
|
}, z.core.$strip>]>>;
|
|
264
264
|
dstVocabSrc: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -274,6 +274,9 @@ export declare const nmtConfigBaseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
274
274
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
275
275
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
276
276
|
embeddings: "embeddings";
|
|
277
|
+
diffusion: "diffusion";
|
|
278
|
+
tts: "tts";
|
|
279
|
+
ocr: "ocr";
|
|
277
280
|
"llamacpp-completion": "llamacpp-completion";
|
|
278
281
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
279
282
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
@@ -286,9 +289,6 @@ export declare const nmtConfigBaseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
286
289
|
whisper: "whisper";
|
|
287
290
|
nmt: "nmt";
|
|
288
291
|
parakeet: "parakeet";
|
|
289
|
-
tts: "tts";
|
|
290
|
-
ocr: "ocr";
|
|
291
|
-
diffusion: "diffusion";
|
|
292
292
|
}>, z.ZodLiteral<"vad">]>>;
|
|
293
293
|
}, z.core.$strip>]>>;
|
|
294
294
|
normalize: z.ZodOptional<z.ZodNumber>;
|
|
@@ -497,6 +497,9 @@ export declare const nmtConfigSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
497
497
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
498
498
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
499
499
|
embeddings: "embeddings";
|
|
500
|
+
diffusion: "diffusion";
|
|
501
|
+
tts: "tts";
|
|
502
|
+
ocr: "ocr";
|
|
500
503
|
"llamacpp-completion": "llamacpp-completion";
|
|
501
504
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
502
505
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
@@ -509,9 +512,6 @@ export declare const nmtConfigSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
509
512
|
whisper: "whisper";
|
|
510
513
|
nmt: "nmt";
|
|
511
514
|
parakeet: "parakeet";
|
|
512
|
-
tts: "tts";
|
|
513
|
-
ocr: "ocr";
|
|
514
|
-
diffusion: "diffusion";
|
|
515
515
|
}>, z.ZodLiteral<"vad">]>>;
|
|
516
516
|
}, z.core.$strip>]>>;
|
|
517
517
|
dstVocabSrc: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -527,6 +527,9 @@ export declare const nmtConfigSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
527
527
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
528
528
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
529
529
|
embeddings: "embeddings";
|
|
530
|
+
diffusion: "diffusion";
|
|
531
|
+
tts: "tts";
|
|
532
|
+
ocr: "ocr";
|
|
530
533
|
"llamacpp-completion": "llamacpp-completion";
|
|
531
534
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
532
535
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
@@ -539,9 +542,6 @@ export declare const nmtConfigSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
539
542
|
whisper: "whisper";
|
|
540
543
|
nmt: "nmt";
|
|
541
544
|
parakeet: "parakeet";
|
|
542
|
-
tts: "tts";
|
|
543
|
-
ocr: "ocr";
|
|
544
|
-
diffusion: "diffusion";
|
|
545
545
|
}>, z.ZodLiteral<"vad">]>>;
|
|
546
546
|
}, z.core.$strip>]>>;
|
|
547
547
|
normalize: z.ZodOptional<z.ZodNumber>;
|
|
@@ -570,6 +570,9 @@ export declare const nmtConfigSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
570
570
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
571
571
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
572
572
|
embeddings: "embeddings";
|
|
573
|
+
diffusion: "diffusion";
|
|
574
|
+
tts: "tts";
|
|
575
|
+
ocr: "ocr";
|
|
573
576
|
"llamacpp-completion": "llamacpp-completion";
|
|
574
577
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
575
578
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
@@ -582,9 +585,6 @@ export declare const nmtConfigSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
582
585
|
whisper: "whisper";
|
|
583
586
|
nmt: "nmt";
|
|
584
587
|
parakeet: "parakeet";
|
|
585
|
-
tts: "tts";
|
|
586
|
-
ocr: "ocr";
|
|
587
|
-
diffusion: "diffusion";
|
|
588
588
|
}>, z.ZodLiteral<"vad">]>>;
|
|
589
589
|
}, z.core.$strip>]>;
|
|
590
590
|
srcVocabSrc: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -600,6 +600,9 @@ export declare const nmtConfigSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
600
600
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
601
601
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
602
602
|
embeddings: "embeddings";
|
|
603
|
+
diffusion: "diffusion";
|
|
604
|
+
tts: "tts";
|
|
605
|
+
ocr: "ocr";
|
|
603
606
|
"llamacpp-completion": "llamacpp-completion";
|
|
604
607
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
605
608
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
@@ -612,9 +615,6 @@ export declare const nmtConfigSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
612
615
|
whisper: "whisper";
|
|
613
616
|
nmt: "nmt";
|
|
614
617
|
parakeet: "parakeet";
|
|
615
|
-
tts: "tts";
|
|
616
|
-
ocr: "ocr";
|
|
617
|
-
diffusion: "diffusion";
|
|
618
618
|
}>, z.ZodLiteral<"vad">]>>;
|
|
619
619
|
}, z.core.$strip>]>>;
|
|
620
620
|
dstVocabSrc: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -630,6 +630,9 @@ export declare const nmtConfigSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
630
630
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
631
631
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
632
632
|
embeddings: "embeddings";
|
|
633
|
+
diffusion: "diffusion";
|
|
634
|
+
tts: "tts";
|
|
635
|
+
ocr: "ocr";
|
|
633
636
|
"llamacpp-completion": "llamacpp-completion";
|
|
634
637
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
635
638
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
@@ -642,9 +645,6 @@ export declare const nmtConfigSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
642
645
|
whisper: "whisper";
|
|
643
646
|
nmt: "nmt";
|
|
644
647
|
parakeet: "parakeet";
|
|
645
|
-
tts: "tts";
|
|
646
|
-
ocr: "ocr";
|
|
647
|
-
diffusion: "diffusion";
|
|
648
648
|
}>, z.ZodLiteral<"vad">]>>;
|
|
649
649
|
}, z.core.$strip>]>>;
|
|
650
650
|
normalize: z.ZodOptional<z.ZodNumber>;
|
|
@@ -742,7 +742,7 @@ export declare const nmtConfigSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
742
742
|
engine?: string | undefined;
|
|
743
743
|
expectedSize?: number | undefined;
|
|
744
744
|
sha256Checksum?: string | undefined;
|
|
745
|
-
addon?: "embeddings" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "llm" | "whisper" | "nmt" | "parakeet" | "
|
|
745
|
+
addon?: "embeddings" | "diffusion" | "tts" | "ocr" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "llm" | "whisper" | "nmt" | "parakeet" | "vad" | undefined;
|
|
746
746
|
} | undefined;
|
|
747
747
|
dstVocabSrc?: string | {
|
|
748
748
|
src: string;
|
|
@@ -755,7 +755,7 @@ export declare const nmtConfigSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
755
755
|
engine?: string | undefined;
|
|
756
756
|
expectedSize?: number | undefined;
|
|
757
757
|
sha256Checksum?: string | undefined;
|
|
758
|
-
addon?: "embeddings" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "llm" | "whisper" | "nmt" | "parakeet" | "
|
|
758
|
+
addon?: "embeddings" | "diffusion" | "tts" | "ocr" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "llm" | "whisper" | "nmt" | "parakeet" | "vad" | undefined;
|
|
759
759
|
} | undefined;
|
|
760
760
|
normalize?: number | undefined;
|
|
761
761
|
pivotModel?: {
|
|
@@ -770,7 +770,7 @@ export declare const nmtConfigSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
770
770
|
engine?: string | undefined;
|
|
771
771
|
expectedSize?: number | undefined;
|
|
772
772
|
sha256Checksum?: string | undefined;
|
|
773
|
-
addon?: "embeddings" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "llm" | "whisper" | "nmt" | "parakeet" | "
|
|
773
|
+
addon?: "embeddings" | "diffusion" | "tts" | "ocr" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "llm" | "whisper" | "nmt" | "parakeet" | "vad" | undefined;
|
|
774
774
|
};
|
|
775
775
|
mode?: "full" | undefined;
|
|
776
776
|
beamsize?: number | undefined;
|
|
@@ -792,7 +792,7 @@ export declare const nmtConfigSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
792
792
|
engine?: string | undefined;
|
|
793
793
|
expectedSize?: number | undefined;
|
|
794
794
|
sha256Checksum?: string | undefined;
|
|
795
|
-
addon?: "embeddings" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "llm" | "whisper" | "nmt" | "parakeet" | "
|
|
795
|
+
addon?: "embeddings" | "diffusion" | "tts" | "ocr" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "llm" | "whisper" | "nmt" | "parakeet" | "vad" | undefined;
|
|
796
796
|
} | undefined;
|
|
797
797
|
dstVocabSrc?: string | {
|
|
798
798
|
src: string;
|
|
@@ -805,7 +805,7 @@ export declare const nmtConfigSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
805
805
|
engine?: string | undefined;
|
|
806
806
|
expectedSize?: number | undefined;
|
|
807
807
|
sha256Checksum?: string | undefined;
|
|
808
|
-
addon?: "embeddings" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "llm" | "whisper" | "nmt" | "parakeet" | "
|
|
808
|
+
addon?: "embeddings" | "diffusion" | "tts" | "ocr" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "llm" | "whisper" | "nmt" | "parakeet" | "vad" | undefined;
|
|
809
809
|
} | undefined;
|
|
810
810
|
normalize?: number | undefined;
|
|
811
811
|
} | undefined;
|
|
@@ -846,7 +846,7 @@ export declare const nmtConfigSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
846
846
|
engine?: string | undefined;
|
|
847
847
|
expectedSize?: number | undefined;
|
|
848
848
|
sha256Checksum?: string | undefined;
|
|
849
|
-
addon?: "embeddings" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "llm" | "whisper" | "nmt" | "parakeet" | "
|
|
849
|
+
addon?: "embeddings" | "diffusion" | "tts" | "ocr" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "llm" | "whisper" | "nmt" | "parakeet" | "vad" | undefined;
|
|
850
850
|
} | undefined;
|
|
851
851
|
dstVocabSrc?: string | {
|
|
852
852
|
src: string;
|
|
@@ -859,7 +859,7 @@ export declare const nmtConfigSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
859
859
|
engine?: string | undefined;
|
|
860
860
|
expectedSize?: number | undefined;
|
|
861
861
|
sha256Checksum?: string | undefined;
|
|
862
|
-
addon?: "embeddings" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "llm" | "whisper" | "nmt" | "parakeet" | "
|
|
862
|
+
addon?: "embeddings" | "diffusion" | "tts" | "ocr" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "llm" | "whisper" | "nmt" | "parakeet" | "vad" | undefined;
|
|
863
863
|
} | undefined;
|
|
864
864
|
normalize?: number | undefined;
|
|
865
865
|
pivotModel?: {
|
|
@@ -874,7 +874,7 @@ export declare const nmtConfigSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
874
874
|
engine?: string | undefined;
|
|
875
875
|
expectedSize?: number | undefined;
|
|
876
876
|
sha256Checksum?: string | undefined;
|
|
877
|
-
addon?: "embeddings" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "llm" | "whisper" | "nmt" | "parakeet" | "
|
|
877
|
+
addon?: "embeddings" | "diffusion" | "tts" | "ocr" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "llm" | "whisper" | "nmt" | "parakeet" | "vad" | undefined;
|
|
878
878
|
};
|
|
879
879
|
mode?: "full" | undefined;
|
|
880
880
|
beamsize?: number | undefined;
|
|
@@ -896,7 +896,7 @@ export declare const nmtConfigSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
896
896
|
engine?: string | undefined;
|
|
897
897
|
expectedSize?: number | undefined;
|
|
898
898
|
sha256Checksum?: string | undefined;
|
|
899
|
-
addon?: "embeddings" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "llm" | "whisper" | "nmt" | "parakeet" | "
|
|
899
|
+
addon?: "embeddings" | "diffusion" | "tts" | "ocr" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "llm" | "whisper" | "nmt" | "parakeet" | "vad" | undefined;
|
|
900
900
|
} | undefined;
|
|
901
901
|
dstVocabSrc?: string | {
|
|
902
902
|
src: string;
|
|
@@ -909,7 +909,7 @@ export declare const nmtConfigSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
909
909
|
engine?: string | undefined;
|
|
910
910
|
expectedSize?: number | undefined;
|
|
911
911
|
sha256Checksum?: string | undefined;
|
|
912
|
-
addon?: "embeddings" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "llm" | "whisper" | "nmt" | "parakeet" | "
|
|
912
|
+
addon?: "embeddings" | "diffusion" | "tts" | "ocr" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "llm" | "whisper" | "nmt" | "parakeet" | "vad" | undefined;
|
|
913
913
|
} | undefined;
|
|
914
914
|
normalize?: number | undefined;
|
|
915
915
|
} | undefined;
|
|
@@ -2,11 +2,12 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const unloadModelParamsSchema: z.ZodObject<{
|
|
3
3
|
modelId: z.ZodString;
|
|
4
4
|
clearStorage: z.ZodDefault<z.ZodBoolean>;
|
|
5
|
+
autoClose: z.ZodOptional<z.ZodBoolean>;
|
|
5
6
|
}, z.core.$strip>;
|
|
6
7
|
export declare const unloadModelRequestSchema: z.ZodObject<{
|
|
8
|
+
type: z.ZodLiteral<"unloadModel">;
|
|
7
9
|
modelId: z.ZodString;
|
|
8
10
|
clearStorage: z.ZodDefault<z.ZodBoolean>;
|
|
9
|
-
type: z.ZodLiteral<"unloadModel">;
|
|
10
11
|
}, z.core.$strip>;
|
|
11
12
|
export declare const unloadModelResponseSchema: z.ZodObject<{
|
|
12
13
|
type: z.ZodLiteral<"unloadModel">;
|