@qvac/sdk 0.10.2 → 0.12.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 +1455 -29
- package/README.md +2 -0
- package/dist/client/api/cancel.d.ts +24 -32
- package/dist/client/api/cancel.js +58 -31
- package/dist/client/api/classify.d.ts +23 -0
- package/dist/client/api/classify.js +43 -0
- 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 +5 -0
- package/dist/client/api/index.js +5 -0
- package/dist/client/api/load-model.d.ts +12 -4
- package/dist/client/api/load-model.js +49 -2
- package/dist/client/api/rag.d.ts +9 -3
- package/dist/client/api/rag.js +23 -3
- package/dist/client/api/transcribe.d.ts +23 -8
- package/dist/client/api/transcribe.js +69 -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/api/video.d.ts +64 -0
- package/dist/client/api/video.js +147 -0
- package/dist/client/api/vla-helpers.d.ts +45 -0
- package/dist/client/api/vla-helpers.js +130 -0
- package/dist/client/api/vla.d.ts +65 -0
- package/dist/client/api/vla.js +109 -0
- package/dist/client/config-loader/resolve-config.node.d.ts +16 -0
- package/dist/client/config-loader/resolve-config.node.js +77 -23
- package/dist/client/plugins-factory.d.ts +8 -0
- package/dist/client/plugins-factory.js +10 -0
- package/dist/client/rpc/bare-client.js +62 -66
- package/dist/client/rpc/ensure-worker-ready.d.ts +9 -0
- package/dist/client/rpc/ensure-worker-ready.js +17 -0
- package/dist/client/rpc/expo-rpc-client.js +2 -1
- package/dist/client/rpc/node-rpc-client.js +22 -8
- 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 +105 -0
- package/dist/commands/bundle/bare-pack.d.ts +13 -0
- package/dist/commands/bundle/bare-pack.js +54 -0
- package/dist/commands/bundle/constants.d.ts +7 -0
- package/dist/commands/bundle/constants.js +23 -0
- package/dist/commands/bundle/entry-gen.d.ts +2 -0
- package/dist/commands/bundle/entry-gen.js +48 -0
- package/dist/commands/bundle/index.d.ts +20 -0
- package/dist/commands/bundle/index.js +141 -0
- package/dist/commands/bundle/manifest.d.ts +21 -0
- package/dist/commands/bundle/manifest.js +193 -0
- package/dist/commands/bundle/plugins.d.ts +9 -0
- package/dist/commands/bundle/plugins.js +51 -0
- package/dist/commands/index.d.ts +5 -0
- package/dist/commands/index.js +2 -0
- package/dist/commands/verify/abi.d.ts +52 -0
- package/dist/commands/verify/abi.js +125 -0
- package/dist/commands/verify/addon-source.d.ts +43 -0
- package/dist/commands/verify/addon-source.js +75 -0
- package/dist/commands/verify/bundle-source.d.ts +12 -0
- package/dist/commands/verify/bundle-source.js +53 -0
- package/dist/commands/verify/index.d.ts +59 -0
- package/dist/commands/verify/index.js +371 -0
- package/dist/commands/verify/node-modules-source.d.ts +11 -0
- package/dist/commands/verify/node-modules-source.js +76 -0
- package/dist/commands/verify/prebuilds.d.ts +15 -0
- package/dist/commands/verify/prebuilds.js +39 -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/classification/classify-image.d.ts +2 -0
- package/dist/examples/classification/classify-image.js +23 -0
- package/dist/examples/diffusion-esrgan-upscale.d.ts +2 -0
- package/dist/examples/diffusion-esrgan-upscale.js +78 -0
- package/dist/examples/diffusion-txt2vid.d.ts +2 -0
- package/dist/examples/diffusion-txt2vid.js +81 -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/plugins.js +3 -7
- 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 +73 -0
- package/dist/examples/tools/llamacpp-tools-qwen35.d.ts +2 -0
- package/dist/examples/tools/llamacpp-tools-qwen35.js +69 -0
- package/dist/examples/transcription/parakeet-ctc-filesystem.js +18 -12
- package/dist/examples/transcription/parakeet-microphone-record.js +7 -12
- package/dist/examples/transcription/parakeet-microphone-stream.d.ts +2 -0
- package/dist/examples/transcription/parakeet-microphone-stream.js +79 -0
- package/dist/examples/transcription/parakeet-sortformer-streaming.d.ts +2 -0
- package/dist/examples/transcription/parakeet-sortformer-streaming.js +121 -0
- package/dist/examples/transcription/parakeet-sortformer.js +58 -55
- package/dist/examples/transcription/parakeet-tdt-filesystem.js +18 -15
- package/dist/examples/transcription/whispercpp-microphone-conversation.d.ts +2 -0
- package/dist/examples/transcription/whispercpp-microphone-conversation.js +107 -0
- package/dist/examples/tts/chatterbox.js +7 -16
- package/dist/examples/tts/llm-to-tts-streaming.js +3 -10
- package/dist/examples/tts/supertonic-multilingual.js +4 -12
- package/dist/examples/tts/supertonic.js +5 -12
- package/dist/examples/vla-smolvla.d.ts +2 -0
- package/dist/examples/vla-smolvla.js +75 -0
- package/dist/examples/voice-assistant/voice-assistant.js +3 -10
- package/dist/expo/plugins/find-in-ancestor-node-modules.d.ts +14 -0
- package/dist/expo/plugins/find-in-ancestor-node-modules.js +24 -0
- package/dist/expo/plugins/get-project-root.d.ts +22 -0
- package/dist/expo/plugins/get-project-root.js +23 -0
- package/dist/expo/plugins/index.d.ts +4 -0
- package/dist/expo/plugins/index.js +4 -0
- package/dist/expo/plugins/resolve-sdk-package-dir.d.ts +9 -2
- package/dist/expo/plugins/resolve-sdk-package-dir.js +38 -11
- package/dist/expo/plugins/withDeviceInfo.js +2 -1
- package/dist/expo/plugins/withMobileBundle.d.ts +5 -4
- package/dist/expo/plugins/withMobileBundle.js +42 -58
- package/dist/index.d.ts +6 -2
- package/dist/index.js +23 -2
- package/dist/models/registry/models.d.ts +3725 -514
- package/dist/models/registry/models.js +7269 -3910
- package/dist/models/update-models/naming.js +22 -8
- package/dist/pear/pre.d.ts +3 -0
- package/dist/pear/pre.js +9 -2
- package/dist/schemas/cancel.d.ts +172 -28
- package/dist/schemas/cancel.js +120 -19
- package/dist/schemas/classification.d.ts +53 -0
- package/dist/schemas/classification.js +33 -0
- package/dist/schemas/common.d.ts +860 -1379
- package/dist/schemas/common.js +8 -1
- package/dist/schemas/completion-event.d.ts +17 -0
- package/dist/schemas/completion-event.js +12 -1
- package/dist/schemas/completion-stream.d.ts +16 -1
- package/dist/schemas/completion-stream.js +25 -7
- package/dist/schemas/download-asset.d.ts +25 -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/engine-addon-map.d.ts +3 -0
- package/dist/schemas/engine-addon-map.js +18 -5
- 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 +10 -6
- package/dist/schemas/get-model-info.js +2 -0
- package/dist/schemas/index.d.ts +3 -0
- package/dist/schemas/index.js +3 -0
- package/dist/schemas/llamacpp-config.d.ts +64 -8
- package/dist/schemas/llamacpp-config.js +12 -0
- package/dist/schemas/load-model.d.ts +4644 -8605
- package/dist/schemas/load-model.js +90 -7
- package/dist/schemas/model-src-utils.d.ts +34 -14
- package/dist/schemas/model-types.d.ts +54 -14
- package/dist/schemas/model-types.js +28 -5
- package/dist/schemas/ocr.d.ts +8 -3
- package/dist/schemas/plugin.d.ts +60 -6
- package/dist/schemas/plugin.js +31 -5
- package/dist/schemas/rag.d.ts +9 -0
- package/dist/schemas/rag.js +17 -9
- package/dist/schemas/registry.d.ts +74 -30
- package/dist/schemas/registry.js +5 -0
- package/dist/schemas/reload-config.d.ts +34 -14
- package/dist/schemas/sdcpp-config.d.ts +445 -16
- package/dist/schemas/sdcpp-config.js +387 -26
- package/dist/schemas/sdk-config.d.ts +2431 -2723
- package/dist/schemas/sdk-config.js +16 -1
- package/dist/schemas/sdk-errors-client.d.ts +6 -0
- package/dist/schemas/sdk-errors-client.js +31 -1
- package/dist/schemas/sdk-errors-server.d.ts +8 -1
- package/dist/schemas/sdk-errors-server.js +45 -5
- package/dist/schemas/text-to-speech.d.ts +81 -698
- package/dist/schemas/text-to-speech.js +46 -19
- package/dist/schemas/transcription-config.d.ts +40 -229
- package/dist/schemas/transcription-config.js +76 -15
- package/dist/schemas/transcription.d.ts +108 -2
- package/dist/schemas/transcription.js +81 -0
- package/dist/schemas/translate.d.ts +2 -0
- package/dist/schemas/translate.js +13 -2
- package/dist/schemas/translation-config.d.ts +90 -40
- package/dist/schemas/unload-model.d.ts +2 -1
- package/dist/schemas/unload-model.js +4 -1
- package/dist/schemas/vla.d.ts +87 -0
- package/dist/schemas/vla.js +108 -0
- package/dist/scripts/run-unit-tests.js +22 -3
- 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 +11 -5
- package/dist/server/bare/ops/transcribe.js +230 -50
- package/dist/server/bare/ops/translate.d.ts +1 -1
- package/dist/server/bare/ops/translate.js +197 -88
- package/dist/server/bare/plugins/ggml-classification/ops/classify.d.ts +6 -0
- package/dist/server/bare/plugins/ggml-classification/ops/classify.js +30 -0
- package/dist/server/bare/plugins/ggml-classification/plugin.d.ts +32 -0
- package/dist/server/bare/plugins/ggml-classification/plugin.js +55 -0
- package/dist/server/bare/plugins/ggml-vla/ops/vla-hparams.d.ts +3 -0
- package/dist/server/bare/plugins/ggml-vla/ops/vla-hparams.js +12 -0
- package/dist/server/bare/plugins/ggml-vla/ops/vla-run.d.ts +3 -0
- package/dist/server/bare/plugins/ggml-vla/ops/vla-run.js +75 -0
- package/dist/server/bare/plugins/ggml-vla/plugin.d.ts +54 -0
- package/dist/server/bare/plugins/ggml-vla/plugin.js +57 -0
- package/dist/server/bare/plugins/index.d.ts +3 -1
- package/dist/server/bare/plugins/index.js +3 -1
- 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 +173 -172
- package/dist/server/bare/plugins/llamacpp-completion/ops/context-overflow.d.ts +29 -0
- package/dist/server/bare/plugins/llamacpp-completion/ops/context-overflow.js +65 -0
- 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 +36 -3
- package/dist/server/bare/plugins/llamacpp-completion/plugin.js +183 -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 +42 -15
- package/dist/server/bare/plugins/nmtcpp-translation/plugin.js +5 -1
- package/dist/server/bare/plugins/onnx-ocr/plugin.d.ts +8 -3
- package/dist/server/bare/plugins/onnx-ocr/plugin.js +3 -0
- package/dist/server/bare/plugins/parakeet-transcription/plugin.d.ts +73 -244
- package/dist/server/bare/plugins/parakeet-transcription/plugin.js +68 -96
- 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/ops/video.d.ts +3 -0
- package/dist/server/bare/plugins/sdcpp-generation/ops/video.js +199 -0
- package/dist/server/bare/plugins/sdcpp-generation/plugin.d.ts +288 -15
- package/dist/server/bare/plugins/sdcpp-generation/plugin.js +150 -7
- package/dist/server/bare/plugins/{onnx-tts → tts-ggml}/ops/text-to-speech-stream.js +2 -15
- package/dist/server/bare/plugins/{onnx-tts → tts-ggml}/ops/text-to-speech.js +2 -1
- package/dist/server/bare/plugins/tts-ggml/plugin.d.ts +75 -0
- package/dist/server/bare/plugins/tts-ggml/plugin.js +189 -0
- package/dist/server/bare/plugins/whispercpp-transcription/plugin.d.ts +47 -3
- package/dist/server/bare/plugins/whispercpp-transcription/plugin.js +61 -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/registry/model-config-utils.js +7 -0
- 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/runtime-lifecycle.js +9 -9
- package/dist/server/bare/types/addon-responses.d.ts +12 -1
- package/dist/server/env.js +4 -1
- package/dist/server/plugins/index.d.ts +1 -1
- package/dist/server/plugins/index.js +1 -1
- package/dist/server/plugins/registry.d.ts +1 -0
- package/dist/server/plugins/registry.js +5 -0
- package/dist/server/rpc/handler-registry.js +30 -7
- package/dist/server/rpc/handler-selection.d.ts +9 -0
- package/dist/server/rpc/handler-selection.js +14 -0
- package/dist/server/rpc/handler-utils.js +5 -13
- 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/classify.d.ts +3 -0
- package/dist/server/rpc/handlers/classify.js +4 -0
- 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 +4 -0
- package/dist/server/rpc/handlers/index.js +4 -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 +216 -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 +18 -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/rpc/handlers/video-stream.d.ts +3 -0
- package/dist/server/rpc/handlers/video-stream.js +4 -0
- package/dist/server/rpc/profiling/operation-metrics.js +23 -0
- package/dist/server/utils/completion-normalizer.js +8 -0
- package/dist/server/utils/config-transform.js +1 -1
- 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/server/worker.js +14 -11
- 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 +18 -0
- package/dist/utils/errors-client.js +31 -0
- package/dist/utils/errors-server.d.ts +115 -2
- package/dist/utils/errors-server.js +148 -3
- package/package.json +68 -77
- package/dist/server/bare/plugins/onnx-tts/plugin.d.ts +0 -490
- package/dist/server/bare/plugins/onnx-tts/plugin.js +0 -266
- package/dist/server/bare/plugins/onnx-tts/wav-helper.d.ts +0 -14
- package/dist/server/bare/plugins/onnx-tts/wav-helper.js +0 -107
- /package/dist/server/bare/plugins/{onnx-tts → tts-ggml}/ops/text-to-speech-stream.d.ts +0 -0
- /package/dist/server/bare/plugins/{onnx-tts → tts-ggml}/ops/text-to-speech.d.ts +0 -0
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const sdcppConfigSchema: z.ZodObject<{
|
|
3
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
4
|
+
diffusion: "diffusion";
|
|
5
|
+
upscale: "upscale";
|
|
6
|
+
video: "video";
|
|
7
|
+
}>>;
|
|
3
8
|
threads: z.ZodOptional<z.ZodNumber>;
|
|
4
9
|
device: z.ZodOptional<z.ZodEnum<{
|
|
5
10
|
cpu: "cpu";
|
|
@@ -11,7 +16,6 @@ export declare const sdcppConfigSchema: z.ZodObject<{
|
|
|
11
16
|
v: "v";
|
|
12
17
|
edm_v: "edm_v";
|
|
13
18
|
flow: "flow";
|
|
14
|
-
flux_flow: "flux_flow";
|
|
15
19
|
flux2_flow: "flux2_flow";
|
|
16
20
|
}>>;
|
|
17
21
|
type: z.ZodOptional<z.ZodEnum<{
|
|
@@ -43,7 +47,14 @@ export declare const sdcppConfigSchema: z.ZodObject<{
|
|
|
43
47
|
clip_on_cpu: z.ZodOptional<z.ZodBoolean>;
|
|
44
48
|
vae_on_cpu: z.ZodOptional<z.ZodBoolean>;
|
|
45
49
|
vae_tiling: z.ZodOptional<z.ZodBoolean>;
|
|
50
|
+
offload_to_cpu: z.ZodOptional<z.ZodBoolean>;
|
|
46
51
|
flash_attn: z.ZodOptional<z.ZodBoolean>;
|
|
52
|
+
diffusion_fa: z.ZodOptional<z.ZodBoolean>;
|
|
53
|
+
lora_apply_mode: z.ZodOptional<z.ZodEnum<{
|
|
54
|
+
auto: "auto";
|
|
55
|
+
immediately: "immediately";
|
|
56
|
+
at_runtime: "at_runtime";
|
|
57
|
+
}>>;
|
|
47
58
|
verbosity: z.ZodOptional<z.ZodNumber>;
|
|
48
59
|
clipLModelSrc: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
49
60
|
src: z.ZodString;
|
|
@@ -58,21 +69,26 @@ export declare const sdcppConfigSchema: z.ZodObject<{
|
|
|
58
69
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
59
70
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
60
71
|
embeddings: "embeddings";
|
|
72
|
+
diffusion: "diffusion";
|
|
73
|
+
tts: "tts";
|
|
74
|
+
ocr: "ocr";
|
|
75
|
+
vla: "vla";
|
|
61
76
|
"llamacpp-completion": "llamacpp-completion";
|
|
62
77
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
63
78
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
64
79
|
"nmtcpp-translation": "nmtcpp-translation";
|
|
65
80
|
"onnx-tts": "onnx-tts";
|
|
81
|
+
"tts-ggml": "tts-ggml";
|
|
66
82
|
"parakeet-transcription": "parakeet-transcription";
|
|
67
83
|
"onnx-ocr": "onnx-ocr";
|
|
68
84
|
"sdcpp-generation": "sdcpp-generation";
|
|
85
|
+
"ggml-vla": "ggml-vla";
|
|
86
|
+
"ggml-classification": "ggml-classification";
|
|
69
87
|
llm: "llm";
|
|
70
88
|
whisper: "whisper";
|
|
71
89
|
nmt: "nmt";
|
|
72
90
|
parakeet: "parakeet";
|
|
73
|
-
|
|
74
|
-
ocr: "ocr";
|
|
75
|
-
diffusion: "diffusion";
|
|
91
|
+
classification: "classification";
|
|
76
92
|
}>, z.ZodLiteral<"vad">]>>;
|
|
77
93
|
}, z.core.$strip>]>>;
|
|
78
94
|
clipGModelSrc: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -88,21 +104,26 @@ export declare const sdcppConfigSchema: z.ZodObject<{
|
|
|
88
104
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
89
105
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
90
106
|
embeddings: "embeddings";
|
|
107
|
+
diffusion: "diffusion";
|
|
108
|
+
tts: "tts";
|
|
109
|
+
ocr: "ocr";
|
|
110
|
+
vla: "vla";
|
|
91
111
|
"llamacpp-completion": "llamacpp-completion";
|
|
92
112
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
93
113
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
94
114
|
"nmtcpp-translation": "nmtcpp-translation";
|
|
95
115
|
"onnx-tts": "onnx-tts";
|
|
116
|
+
"tts-ggml": "tts-ggml";
|
|
96
117
|
"parakeet-transcription": "parakeet-transcription";
|
|
97
118
|
"onnx-ocr": "onnx-ocr";
|
|
98
119
|
"sdcpp-generation": "sdcpp-generation";
|
|
120
|
+
"ggml-vla": "ggml-vla";
|
|
121
|
+
"ggml-classification": "ggml-classification";
|
|
99
122
|
llm: "llm";
|
|
100
123
|
whisper: "whisper";
|
|
101
124
|
nmt: "nmt";
|
|
102
125
|
parakeet: "parakeet";
|
|
103
|
-
|
|
104
|
-
ocr: "ocr";
|
|
105
|
-
diffusion: "diffusion";
|
|
126
|
+
classification: "classification";
|
|
106
127
|
}>, z.ZodLiteral<"vad">]>>;
|
|
107
128
|
}, z.core.$strip>]>>;
|
|
108
129
|
t5XxlModelSrc: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -118,21 +139,26 @@ export declare const sdcppConfigSchema: z.ZodObject<{
|
|
|
118
139
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
119
140
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
120
141
|
embeddings: "embeddings";
|
|
142
|
+
diffusion: "diffusion";
|
|
143
|
+
tts: "tts";
|
|
144
|
+
ocr: "ocr";
|
|
145
|
+
vla: "vla";
|
|
121
146
|
"llamacpp-completion": "llamacpp-completion";
|
|
122
147
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
123
148
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
124
149
|
"nmtcpp-translation": "nmtcpp-translation";
|
|
125
150
|
"onnx-tts": "onnx-tts";
|
|
151
|
+
"tts-ggml": "tts-ggml";
|
|
126
152
|
"parakeet-transcription": "parakeet-transcription";
|
|
127
153
|
"onnx-ocr": "onnx-ocr";
|
|
128
154
|
"sdcpp-generation": "sdcpp-generation";
|
|
155
|
+
"ggml-vla": "ggml-vla";
|
|
156
|
+
"ggml-classification": "ggml-classification";
|
|
129
157
|
llm: "llm";
|
|
130
158
|
whisper: "whisper";
|
|
131
159
|
nmt: "nmt";
|
|
132
160
|
parakeet: "parakeet";
|
|
133
|
-
|
|
134
|
-
ocr: "ocr";
|
|
135
|
-
diffusion: "diffusion";
|
|
161
|
+
classification: "classification";
|
|
136
162
|
}>, z.ZodLiteral<"vad">]>>;
|
|
137
163
|
}, z.core.$strip>]>>;
|
|
138
164
|
llmModelSrc: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -148,21 +174,26 @@ export declare const sdcppConfigSchema: z.ZodObject<{
|
|
|
148
174
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
149
175
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
150
176
|
embeddings: "embeddings";
|
|
177
|
+
diffusion: "diffusion";
|
|
178
|
+
tts: "tts";
|
|
179
|
+
ocr: "ocr";
|
|
180
|
+
vla: "vla";
|
|
151
181
|
"llamacpp-completion": "llamacpp-completion";
|
|
152
182
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
153
183
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
154
184
|
"nmtcpp-translation": "nmtcpp-translation";
|
|
155
185
|
"onnx-tts": "onnx-tts";
|
|
186
|
+
"tts-ggml": "tts-ggml";
|
|
156
187
|
"parakeet-transcription": "parakeet-transcription";
|
|
157
188
|
"onnx-ocr": "onnx-ocr";
|
|
158
189
|
"sdcpp-generation": "sdcpp-generation";
|
|
190
|
+
"ggml-vla": "ggml-vla";
|
|
191
|
+
"ggml-classification": "ggml-classification";
|
|
159
192
|
llm: "llm";
|
|
160
193
|
whisper: "whisper";
|
|
161
194
|
nmt: "nmt";
|
|
162
195
|
parakeet: "parakeet";
|
|
163
|
-
|
|
164
|
-
ocr: "ocr";
|
|
165
|
-
diffusion: "diffusion";
|
|
196
|
+
classification: "classification";
|
|
166
197
|
}>, z.ZodLiteral<"vad">]>>;
|
|
167
198
|
}, z.core.$strip>]>>;
|
|
168
199
|
vaeModelSrc: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -178,25 +209,107 @@ export declare const sdcppConfigSchema: z.ZodObject<{
|
|
|
178
209
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
179
210
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
180
211
|
embeddings: "embeddings";
|
|
212
|
+
diffusion: "diffusion";
|
|
213
|
+
tts: "tts";
|
|
214
|
+
ocr: "ocr";
|
|
215
|
+
vla: "vla";
|
|
181
216
|
"llamacpp-completion": "llamacpp-completion";
|
|
182
217
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
183
218
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
184
219
|
"nmtcpp-translation": "nmtcpp-translation";
|
|
185
220
|
"onnx-tts": "onnx-tts";
|
|
221
|
+
"tts-ggml": "tts-ggml";
|
|
186
222
|
"parakeet-transcription": "parakeet-transcription";
|
|
187
223
|
"onnx-ocr": "onnx-ocr";
|
|
188
224
|
"sdcpp-generation": "sdcpp-generation";
|
|
225
|
+
"ggml-vla": "ggml-vla";
|
|
226
|
+
"ggml-classification": "ggml-classification";
|
|
189
227
|
llm: "llm";
|
|
190
228
|
whisper: "whisper";
|
|
191
229
|
nmt: "nmt";
|
|
192
230
|
parakeet: "parakeet";
|
|
231
|
+
classification: "classification";
|
|
232
|
+
}>, z.ZodLiteral<"vad">]>>;
|
|
233
|
+
}, z.core.$strip>]>>;
|
|
234
|
+
highNoiseDiffusionModelSrc: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
235
|
+
src: z.ZodString;
|
|
236
|
+
name: z.ZodOptional<z.ZodString>;
|
|
237
|
+
modelId: z.ZodOptional<z.ZodString>;
|
|
238
|
+
registryPath: z.ZodOptional<z.ZodString>;
|
|
239
|
+
registrySource: z.ZodOptional<z.ZodString>;
|
|
240
|
+
blobCoreKey: z.ZodOptional<z.ZodString>;
|
|
241
|
+
blobIndex: z.ZodOptional<z.ZodNumber>;
|
|
242
|
+
engine: z.ZodOptional<z.ZodString>;
|
|
243
|
+
expectedSize: z.ZodOptional<z.ZodNumber>;
|
|
244
|
+
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
245
|
+
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
246
|
+
embeddings: "embeddings";
|
|
247
|
+
diffusion: "diffusion";
|
|
193
248
|
tts: "tts";
|
|
194
249
|
ocr: "ocr";
|
|
195
|
-
|
|
250
|
+
vla: "vla";
|
|
251
|
+
"llamacpp-completion": "llamacpp-completion";
|
|
252
|
+
"whispercpp-transcription": "whispercpp-transcription";
|
|
253
|
+
"llamacpp-embedding": "llamacpp-embedding";
|
|
254
|
+
"nmtcpp-translation": "nmtcpp-translation";
|
|
255
|
+
"onnx-tts": "onnx-tts";
|
|
256
|
+
"tts-ggml": "tts-ggml";
|
|
257
|
+
"parakeet-transcription": "parakeet-transcription";
|
|
258
|
+
"onnx-ocr": "onnx-ocr";
|
|
259
|
+
"sdcpp-generation": "sdcpp-generation";
|
|
260
|
+
"ggml-vla": "ggml-vla";
|
|
261
|
+
"ggml-classification": "ggml-classification";
|
|
262
|
+
llm: "llm";
|
|
263
|
+
whisper: "whisper";
|
|
264
|
+
nmt: "nmt";
|
|
265
|
+
parakeet: "parakeet";
|
|
266
|
+
classification: "classification";
|
|
196
267
|
}>, z.ZodLiteral<"vad">]>>;
|
|
197
268
|
}, z.core.$strip>]>>;
|
|
269
|
+
upscaler: z.ZodOptional<z.ZodObject<{
|
|
270
|
+
type: z.ZodOptional<z.ZodLiteral<"esrgan">>;
|
|
271
|
+
model_src: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
272
|
+
src: z.ZodString;
|
|
273
|
+
name: z.ZodOptional<z.ZodString>;
|
|
274
|
+
modelId: z.ZodOptional<z.ZodString>;
|
|
275
|
+
registryPath: z.ZodOptional<z.ZodString>;
|
|
276
|
+
registrySource: z.ZodOptional<z.ZodString>;
|
|
277
|
+
blobCoreKey: z.ZodOptional<z.ZodString>;
|
|
278
|
+
blobIndex: z.ZodOptional<z.ZodNumber>;
|
|
279
|
+
engine: z.ZodOptional<z.ZodString>;
|
|
280
|
+
expectedSize: z.ZodOptional<z.ZodNumber>;
|
|
281
|
+
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
282
|
+
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
283
|
+
embeddings: "embeddings";
|
|
284
|
+
diffusion: "diffusion";
|
|
285
|
+
tts: "tts";
|
|
286
|
+
ocr: "ocr";
|
|
287
|
+
vla: "vla";
|
|
288
|
+
"llamacpp-completion": "llamacpp-completion";
|
|
289
|
+
"whispercpp-transcription": "whispercpp-transcription";
|
|
290
|
+
"llamacpp-embedding": "llamacpp-embedding";
|
|
291
|
+
"nmtcpp-translation": "nmtcpp-translation";
|
|
292
|
+
"onnx-tts": "onnx-tts";
|
|
293
|
+
"tts-ggml": "tts-ggml";
|
|
294
|
+
"parakeet-transcription": "parakeet-transcription";
|
|
295
|
+
"onnx-ocr": "onnx-ocr";
|
|
296
|
+
"sdcpp-generation": "sdcpp-generation";
|
|
297
|
+
"ggml-vla": "ggml-vla";
|
|
298
|
+
"ggml-classification": "ggml-classification";
|
|
299
|
+
llm: "llm";
|
|
300
|
+
whisper: "whisper";
|
|
301
|
+
nmt: "nmt";
|
|
302
|
+
parakeet: "parakeet";
|
|
303
|
+
classification: "classification";
|
|
304
|
+
}>, z.ZodLiteral<"vad">]>>;
|
|
305
|
+
}, z.core.$strip>]>>;
|
|
306
|
+
tile_size: z.ZodOptional<z.ZodNumber>;
|
|
307
|
+
direct: z.ZodOptional<z.ZodBoolean>;
|
|
308
|
+
offload_params_to_cpu: z.ZodOptional<z.ZodBoolean>;
|
|
309
|
+
threads: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<-1>, z.ZodNumber]>>;
|
|
310
|
+
}, z.core.$strict>>;
|
|
198
311
|
}, z.core.$strip>;
|
|
199
|
-
export type SdcppConfig = z.
|
|
312
|
+
export type SdcppConfig = z.input<typeof sdcppConfigSchema>;
|
|
200
313
|
export declare const diffusionStatsSchema: z.ZodObject<{
|
|
201
314
|
modelLoadMs: z.ZodOptional<z.ZodNumber>;
|
|
202
315
|
generationMs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -211,6 +324,24 @@ export declare const diffusionStatsSchema: z.ZodObject<{
|
|
|
211
324
|
seed: z.ZodOptional<z.ZodNumber>;
|
|
212
325
|
}, z.core.$strip>;
|
|
213
326
|
export type DiffusionStats = z.infer<typeof diffusionStatsSchema>;
|
|
327
|
+
export declare const videoStatsSchema: z.ZodObject<{
|
|
328
|
+
seed: z.ZodOptional<z.ZodNumber>;
|
|
329
|
+
modelLoadMs: z.ZodOptional<z.ZodNumber>;
|
|
330
|
+
generationMs: z.ZodOptional<z.ZodNumber>;
|
|
331
|
+
totalGenerationMs: z.ZodOptional<z.ZodNumber>;
|
|
332
|
+
totalWallMs: z.ZodOptional<z.ZodNumber>;
|
|
333
|
+
totalSteps: z.ZodOptional<z.ZodNumber>;
|
|
334
|
+
totalGenerations: z.ZodOptional<z.ZodNumber>;
|
|
335
|
+
totalImages: z.ZodOptional<z.ZodNumber>;
|
|
336
|
+
totalPixels: z.ZodOptional<z.ZodNumber>;
|
|
337
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
338
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
339
|
+
totalVideos: z.ZodOptional<z.ZodNumber>;
|
|
340
|
+
totalVideoFrames: z.ZodOptional<z.ZodNumber>;
|
|
341
|
+
videoFrames: z.ZodOptional<z.ZodNumber>;
|
|
342
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
343
|
+
}, z.core.$strip>;
|
|
344
|
+
export type VideoStats = z.infer<typeof videoStatsSchema>;
|
|
214
345
|
export declare const diffusionStreamResponseSchema: z.ZodObject<{
|
|
215
346
|
type: z.ZodLiteral<"diffusionStream">;
|
|
216
347
|
step: z.ZodOptional<z.ZodNumber>;
|
|
@@ -234,6 +365,33 @@ export declare const diffusionStreamResponseSchema: z.ZodObject<{
|
|
|
234
365
|
}, z.core.$strip>>;
|
|
235
366
|
}, z.core.$strip>;
|
|
236
367
|
export type DiffusionStreamResponse = z.infer<typeof diffusionStreamResponseSchema>;
|
|
368
|
+
export declare const videoStreamResponseSchema: z.ZodObject<{
|
|
369
|
+
type: z.ZodLiteral<"videoStream">;
|
|
370
|
+
step: z.ZodOptional<z.ZodNumber>;
|
|
371
|
+
totalSteps: z.ZodOptional<z.ZodNumber>;
|
|
372
|
+
elapsedMs: z.ZodOptional<z.ZodNumber>;
|
|
373
|
+
data: z.ZodOptional<z.ZodString>;
|
|
374
|
+
outputIndex: z.ZodOptional<z.ZodNumber>;
|
|
375
|
+
done: z.ZodOptional<z.ZodBoolean>;
|
|
376
|
+
stats: z.ZodOptional<z.ZodObject<{
|
|
377
|
+
seed: z.ZodOptional<z.ZodNumber>;
|
|
378
|
+
modelLoadMs: z.ZodOptional<z.ZodNumber>;
|
|
379
|
+
generationMs: z.ZodOptional<z.ZodNumber>;
|
|
380
|
+
totalGenerationMs: z.ZodOptional<z.ZodNumber>;
|
|
381
|
+
totalWallMs: z.ZodOptional<z.ZodNumber>;
|
|
382
|
+
totalSteps: z.ZodOptional<z.ZodNumber>;
|
|
383
|
+
totalGenerations: z.ZodOptional<z.ZodNumber>;
|
|
384
|
+
totalImages: z.ZodOptional<z.ZodNumber>;
|
|
385
|
+
totalPixels: z.ZodOptional<z.ZodNumber>;
|
|
386
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
387
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
388
|
+
totalVideos: z.ZodOptional<z.ZodNumber>;
|
|
389
|
+
totalVideoFrames: z.ZodOptional<z.ZodNumber>;
|
|
390
|
+
videoFrames: z.ZodOptional<z.ZodNumber>;
|
|
391
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
392
|
+
}, z.core.$strip>>;
|
|
393
|
+
}, z.core.$strip>;
|
|
394
|
+
export type VideoStreamResponse = z.infer<typeof videoStreamResponseSchema>;
|
|
237
395
|
export declare const diffusionRequestSchema: z.ZodObject<{
|
|
238
396
|
modelId: z.ZodString;
|
|
239
397
|
prompt: z.ZodString;
|
|
@@ -278,7 +436,14 @@ export declare const diffusionRequestSchema: z.ZodObject<{
|
|
|
278
436
|
vae_tiling: z.ZodOptional<z.ZodBoolean>;
|
|
279
437
|
cache_preset: z.ZodOptional<z.ZodString>;
|
|
280
438
|
init_image: z.ZodOptional<z.ZodString>;
|
|
439
|
+
init_images: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
440
|
+
increase_ref_index: z.ZodOptional<z.ZodBoolean>;
|
|
441
|
+
auto_resize_ref_image: z.ZodOptional<z.ZodBoolean>;
|
|
442
|
+
lora: z.ZodOptional<z.ZodString>;
|
|
281
443
|
strength: z.ZodOptional<z.ZodNumber>;
|
|
444
|
+
upscale: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
445
|
+
repeats: z.ZodOptional<z.ZodNumber>;
|
|
446
|
+
}, z.core.$strict>]>>;
|
|
282
447
|
}, z.core.$strip>;
|
|
283
448
|
export type DiffusionRequest = z.input<typeof diffusionRequestSchema>;
|
|
284
449
|
export declare const diffusionStreamRequestSchema: z.ZodObject<{
|
|
@@ -325,11 +490,275 @@ export declare const diffusionStreamRequestSchema: z.ZodObject<{
|
|
|
325
490
|
vae_tiling: z.ZodOptional<z.ZodBoolean>;
|
|
326
491
|
cache_preset: z.ZodOptional<z.ZodString>;
|
|
327
492
|
init_image: z.ZodOptional<z.ZodString>;
|
|
493
|
+
init_images: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
494
|
+
increase_ref_index: z.ZodOptional<z.ZodBoolean>;
|
|
495
|
+
auto_resize_ref_image: z.ZodOptional<z.ZodBoolean>;
|
|
496
|
+
lora: z.ZodOptional<z.ZodString>;
|
|
328
497
|
strength: z.ZodOptional<z.ZodNumber>;
|
|
498
|
+
upscale: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
499
|
+
repeats: z.ZodOptional<z.ZodNumber>;
|
|
500
|
+
}, z.core.$strict>]>>;
|
|
329
501
|
type: z.ZodLiteral<"diffusionStream">;
|
|
330
502
|
}, z.core.$strip>;
|
|
331
503
|
export type DiffusionStreamRequest = z.input<typeof diffusionStreamRequestSchema>;
|
|
332
|
-
|
|
504
|
+
type DiffusionClientParamsBase = Omit<DiffusionRequest, "init_image" | "init_images">;
|
|
505
|
+
export type DiffusionClientParams = DiffusionClientParamsBase & ({
|
|
333
506
|
init_image?: Uint8Array;
|
|
507
|
+
init_images?: never;
|
|
508
|
+
} | {
|
|
509
|
+
init_image?: never;
|
|
510
|
+
init_images?: Uint8Array[];
|
|
511
|
+
});
|
|
512
|
+
export declare const videoRequestSchema: z.ZodObject<{
|
|
513
|
+
modelId: z.ZodString;
|
|
514
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
515
|
+
mode: z.ZodEnum<{
|
|
516
|
+
txt2vid: "txt2vid";
|
|
517
|
+
}>;
|
|
518
|
+
prompt: z.ZodString;
|
|
519
|
+
negative_prompt: z.ZodOptional<z.ZodString>;
|
|
520
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
521
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
522
|
+
video_frames: z.ZodOptional<z.ZodNumber>;
|
|
523
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
524
|
+
seed: z.ZodOptional<z.ZodNumber>;
|
|
525
|
+
steps: z.ZodOptional<z.ZodNumber>;
|
|
526
|
+
sampling_method: z.ZodOptional<z.ZodEnum<{
|
|
527
|
+
euler: "euler";
|
|
528
|
+
euler_a: "euler_a";
|
|
529
|
+
heun: "heun";
|
|
530
|
+
dpm2: "dpm2";
|
|
531
|
+
"dpm++2m": "dpm++2m";
|
|
532
|
+
"dpm++2mv2": "dpm++2mv2";
|
|
533
|
+
"dpm++2s_a": "dpm++2s_a";
|
|
534
|
+
lcm: "lcm";
|
|
535
|
+
ipndm: "ipndm";
|
|
536
|
+
ipndm_v: "ipndm_v";
|
|
537
|
+
ddim_trailing: "ddim_trailing";
|
|
538
|
+
tcd: "tcd";
|
|
539
|
+
res_multistep: "res_multistep";
|
|
540
|
+
res_2s: "res_2s";
|
|
541
|
+
}>>;
|
|
542
|
+
scheduler: z.ZodOptional<z.ZodEnum<{
|
|
543
|
+
lcm: "lcm";
|
|
544
|
+
discrete: "discrete";
|
|
545
|
+
karras: "karras";
|
|
546
|
+
exponential: "exponential";
|
|
547
|
+
ays: "ays";
|
|
548
|
+
gits: "gits";
|
|
549
|
+
sgm_uniform: "sgm_uniform";
|
|
550
|
+
simple: "simple";
|
|
551
|
+
smoothstep: "smoothstep";
|
|
552
|
+
kl_optimal: "kl_optimal";
|
|
553
|
+
bong_tangent: "bong_tangent";
|
|
554
|
+
}>>;
|
|
555
|
+
cfg_scale: z.ZodOptional<z.ZodNumber>;
|
|
556
|
+
flow_shift: z.ZodOptional<z.ZodNumber>;
|
|
557
|
+
high_noise_steps: z.ZodOptional<z.ZodNumber>;
|
|
558
|
+
high_noise_sampler: z.ZodOptional<z.ZodEnum<{
|
|
559
|
+
euler: "euler";
|
|
560
|
+
euler_a: "euler_a";
|
|
561
|
+
heun: "heun";
|
|
562
|
+
dpm2: "dpm2";
|
|
563
|
+
"dpm++2m": "dpm++2m";
|
|
564
|
+
"dpm++2mv2": "dpm++2mv2";
|
|
565
|
+
"dpm++2s_a": "dpm++2s_a";
|
|
566
|
+
lcm: "lcm";
|
|
567
|
+
ipndm: "ipndm";
|
|
568
|
+
ipndm_v: "ipndm_v";
|
|
569
|
+
ddim_trailing: "ddim_trailing";
|
|
570
|
+
tcd: "tcd";
|
|
571
|
+
res_multistep: "res_multistep";
|
|
572
|
+
res_2s: "res_2s";
|
|
573
|
+
}>>;
|
|
574
|
+
high_noise_scheduler: z.ZodOptional<z.ZodEnum<{
|
|
575
|
+
lcm: "lcm";
|
|
576
|
+
discrete: "discrete";
|
|
577
|
+
karras: "karras";
|
|
578
|
+
exponential: "exponential";
|
|
579
|
+
ays: "ays";
|
|
580
|
+
gits: "gits";
|
|
581
|
+
sgm_uniform: "sgm_uniform";
|
|
582
|
+
simple: "simple";
|
|
583
|
+
smoothstep: "smoothstep";
|
|
584
|
+
kl_optimal: "kl_optimal";
|
|
585
|
+
bong_tangent: "bong_tangent";
|
|
586
|
+
}>>;
|
|
587
|
+
high_noise_cfg_scale: z.ZodOptional<z.ZodNumber>;
|
|
588
|
+
high_noise_flow_shift: z.ZodOptional<z.ZodNumber>;
|
|
589
|
+
moe_boundary: z.ZodOptional<z.ZodNumber>;
|
|
590
|
+
vace_strength: z.ZodOptional<z.ZodNumber>;
|
|
591
|
+
control_frames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
592
|
+
vae_tiling: z.ZodOptional<z.ZodBoolean>;
|
|
593
|
+
vae_tile_size: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
594
|
+
vae_tile_overlap: z.ZodOptional<z.ZodNumber>;
|
|
595
|
+
cache_mode: z.ZodOptional<z.ZodEnum<{
|
|
596
|
+
disabled: "disabled";
|
|
597
|
+
easycache: "easycache";
|
|
598
|
+
ucache: "ucache";
|
|
599
|
+
dbcache: "dbcache";
|
|
600
|
+
taylorseer: "taylorseer";
|
|
601
|
+
"cache-dit": "cache-dit";
|
|
602
|
+
}>>;
|
|
603
|
+
cache_preset: z.ZodOptional<z.ZodString>;
|
|
604
|
+
cache_threshold: z.ZodOptional<z.ZodNumber>;
|
|
605
|
+
}, z.core.$strip>;
|
|
606
|
+
export type VideoRequest = z.input<typeof videoRequestSchema>;
|
|
607
|
+
export declare const videoStreamRequestSchema: z.ZodObject<{
|
|
608
|
+
modelId: z.ZodString;
|
|
609
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
610
|
+
mode: z.ZodEnum<{
|
|
611
|
+
txt2vid: "txt2vid";
|
|
612
|
+
}>;
|
|
613
|
+
prompt: z.ZodString;
|
|
614
|
+
negative_prompt: z.ZodOptional<z.ZodString>;
|
|
615
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
616
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
617
|
+
video_frames: z.ZodOptional<z.ZodNumber>;
|
|
618
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
619
|
+
seed: z.ZodOptional<z.ZodNumber>;
|
|
620
|
+
steps: z.ZodOptional<z.ZodNumber>;
|
|
621
|
+
sampling_method: z.ZodOptional<z.ZodEnum<{
|
|
622
|
+
euler: "euler";
|
|
623
|
+
euler_a: "euler_a";
|
|
624
|
+
heun: "heun";
|
|
625
|
+
dpm2: "dpm2";
|
|
626
|
+
"dpm++2m": "dpm++2m";
|
|
627
|
+
"dpm++2mv2": "dpm++2mv2";
|
|
628
|
+
"dpm++2s_a": "dpm++2s_a";
|
|
629
|
+
lcm: "lcm";
|
|
630
|
+
ipndm: "ipndm";
|
|
631
|
+
ipndm_v: "ipndm_v";
|
|
632
|
+
ddim_trailing: "ddim_trailing";
|
|
633
|
+
tcd: "tcd";
|
|
634
|
+
res_multistep: "res_multistep";
|
|
635
|
+
res_2s: "res_2s";
|
|
636
|
+
}>>;
|
|
637
|
+
scheduler: z.ZodOptional<z.ZodEnum<{
|
|
638
|
+
lcm: "lcm";
|
|
639
|
+
discrete: "discrete";
|
|
640
|
+
karras: "karras";
|
|
641
|
+
exponential: "exponential";
|
|
642
|
+
ays: "ays";
|
|
643
|
+
gits: "gits";
|
|
644
|
+
sgm_uniform: "sgm_uniform";
|
|
645
|
+
simple: "simple";
|
|
646
|
+
smoothstep: "smoothstep";
|
|
647
|
+
kl_optimal: "kl_optimal";
|
|
648
|
+
bong_tangent: "bong_tangent";
|
|
649
|
+
}>>;
|
|
650
|
+
cfg_scale: z.ZodOptional<z.ZodNumber>;
|
|
651
|
+
flow_shift: z.ZodOptional<z.ZodNumber>;
|
|
652
|
+
high_noise_steps: z.ZodOptional<z.ZodNumber>;
|
|
653
|
+
high_noise_sampler: z.ZodOptional<z.ZodEnum<{
|
|
654
|
+
euler: "euler";
|
|
655
|
+
euler_a: "euler_a";
|
|
656
|
+
heun: "heun";
|
|
657
|
+
dpm2: "dpm2";
|
|
658
|
+
"dpm++2m": "dpm++2m";
|
|
659
|
+
"dpm++2mv2": "dpm++2mv2";
|
|
660
|
+
"dpm++2s_a": "dpm++2s_a";
|
|
661
|
+
lcm: "lcm";
|
|
662
|
+
ipndm: "ipndm";
|
|
663
|
+
ipndm_v: "ipndm_v";
|
|
664
|
+
ddim_trailing: "ddim_trailing";
|
|
665
|
+
tcd: "tcd";
|
|
666
|
+
res_multistep: "res_multistep";
|
|
667
|
+
res_2s: "res_2s";
|
|
668
|
+
}>>;
|
|
669
|
+
high_noise_scheduler: z.ZodOptional<z.ZodEnum<{
|
|
670
|
+
lcm: "lcm";
|
|
671
|
+
discrete: "discrete";
|
|
672
|
+
karras: "karras";
|
|
673
|
+
exponential: "exponential";
|
|
674
|
+
ays: "ays";
|
|
675
|
+
gits: "gits";
|
|
676
|
+
sgm_uniform: "sgm_uniform";
|
|
677
|
+
simple: "simple";
|
|
678
|
+
smoothstep: "smoothstep";
|
|
679
|
+
kl_optimal: "kl_optimal";
|
|
680
|
+
bong_tangent: "bong_tangent";
|
|
681
|
+
}>>;
|
|
682
|
+
high_noise_cfg_scale: z.ZodOptional<z.ZodNumber>;
|
|
683
|
+
high_noise_flow_shift: z.ZodOptional<z.ZodNumber>;
|
|
684
|
+
moe_boundary: z.ZodOptional<z.ZodNumber>;
|
|
685
|
+
vace_strength: z.ZodOptional<z.ZodNumber>;
|
|
686
|
+
control_frames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
687
|
+
vae_tiling: z.ZodOptional<z.ZodBoolean>;
|
|
688
|
+
vae_tile_size: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
689
|
+
vae_tile_overlap: z.ZodOptional<z.ZodNumber>;
|
|
690
|
+
cache_mode: z.ZodOptional<z.ZodEnum<{
|
|
691
|
+
disabled: "disabled";
|
|
692
|
+
easycache: "easycache";
|
|
693
|
+
ucache: "ucache";
|
|
694
|
+
dbcache: "dbcache";
|
|
695
|
+
taylorseer: "taylorseer";
|
|
696
|
+
"cache-dit": "cache-dit";
|
|
697
|
+
}>>;
|
|
698
|
+
cache_preset: z.ZodOptional<z.ZodString>;
|
|
699
|
+
cache_threshold: z.ZodOptional<z.ZodNumber>;
|
|
700
|
+
type: z.ZodLiteral<"videoStream">;
|
|
701
|
+
}, z.core.$strip>;
|
|
702
|
+
export type VideoStreamRequest = z.input<typeof videoStreamRequestSchema>;
|
|
703
|
+
type VideoClientParamsBase = Omit<VideoRequest, "requestId" | "control_frames">;
|
|
704
|
+
export type VideoClientParams = VideoClientParamsBase & {
|
|
705
|
+
control_frames?: Uint8Array[];
|
|
706
|
+
};
|
|
707
|
+
export declare const upscaleStatsSchema: z.ZodObject<{
|
|
708
|
+
modelLoadMs: z.ZodOptional<z.ZodNumber>;
|
|
709
|
+
upscaleMs: z.ZodOptional<z.ZodNumber>;
|
|
710
|
+
totalUpscaleMs: z.ZodOptional<z.ZodNumber>;
|
|
711
|
+
totalWallMs: z.ZodOptional<z.ZodNumber>;
|
|
712
|
+
totalUpscales: z.ZodOptional<z.ZodNumber>;
|
|
713
|
+
totalImages: z.ZodOptional<z.ZodNumber>;
|
|
714
|
+
totalPixels: z.ZodOptional<z.ZodNumber>;
|
|
715
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
716
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
717
|
+
repeats: z.ZodOptional<z.ZodNumber>;
|
|
718
|
+
backendDevice: z.ZodOptional<z.ZodEnum<{
|
|
719
|
+
cpu: "cpu";
|
|
720
|
+
gpu: "gpu";
|
|
721
|
+
}>>;
|
|
722
|
+
}, z.core.$strip>;
|
|
723
|
+
export type UpscaleStats = z.infer<typeof upscaleStatsSchema>;
|
|
724
|
+
export declare const upscaleRequestSchema: z.ZodObject<{
|
|
725
|
+
modelId: z.ZodString;
|
|
726
|
+
image: z.ZodString;
|
|
727
|
+
repeats: z.ZodOptional<z.ZodNumber>;
|
|
728
|
+
}, z.core.$strip>;
|
|
729
|
+
export type UpscaleRequest = z.input<typeof upscaleRequestSchema>;
|
|
730
|
+
export declare const upscaleStreamRequestSchema: z.ZodObject<{
|
|
731
|
+
modelId: z.ZodString;
|
|
732
|
+
image: z.ZodString;
|
|
733
|
+
repeats: z.ZodOptional<z.ZodNumber>;
|
|
734
|
+
type: z.ZodLiteral<"upscaleStream">;
|
|
735
|
+
}, z.core.$strip>;
|
|
736
|
+
export type UpscaleStreamRequest = z.input<typeof upscaleStreamRequestSchema>;
|
|
737
|
+
export declare const upscaleStreamResponseSchema: z.ZodObject<{
|
|
738
|
+
type: z.ZodLiteral<"upscaleStream">;
|
|
739
|
+
data: z.ZodOptional<z.ZodString>;
|
|
740
|
+
outputIndex: z.ZodOptional<z.ZodNumber>;
|
|
741
|
+
done: z.ZodOptional<z.ZodBoolean>;
|
|
742
|
+
stats: z.ZodOptional<z.ZodObject<{
|
|
743
|
+
modelLoadMs: z.ZodOptional<z.ZodNumber>;
|
|
744
|
+
upscaleMs: z.ZodOptional<z.ZodNumber>;
|
|
745
|
+
totalUpscaleMs: z.ZodOptional<z.ZodNumber>;
|
|
746
|
+
totalWallMs: z.ZodOptional<z.ZodNumber>;
|
|
747
|
+
totalUpscales: z.ZodOptional<z.ZodNumber>;
|
|
748
|
+
totalImages: z.ZodOptional<z.ZodNumber>;
|
|
749
|
+
totalPixels: z.ZodOptional<z.ZodNumber>;
|
|
750
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
751
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
752
|
+
repeats: z.ZodOptional<z.ZodNumber>;
|
|
753
|
+
backendDevice: z.ZodOptional<z.ZodEnum<{
|
|
754
|
+
cpu: "cpu";
|
|
755
|
+
gpu: "gpu";
|
|
756
|
+
}>>;
|
|
757
|
+
}, z.core.$strip>>;
|
|
758
|
+
}, z.core.$strip>;
|
|
759
|
+
export type UpscaleStreamResponse = z.infer<typeof upscaleStreamResponseSchema>;
|
|
760
|
+
export type UpscaleClientParams = Omit<UpscaleRequest, "image"> & {
|
|
761
|
+
image: Uint8Array;
|
|
334
762
|
};
|
|
763
|
+
export {};
|
|
335
764
|
//# sourceMappingURL=sdcpp-config.d.ts.map
|