/** * @license * Copyright 2026 Steven Roussey * SPDX-License-Identifier: Apache-2.0 */ import type { WithModelPricing } from "@workglow/ai/worker"; import type { FromSchema } from "@workglow/util/worker"; export declare const DeepSeekModelSchema: { readonly type: "object"; readonly properties: { readonly provider: { readonly const: "DEEPSEEK"; readonly description: "Discriminator: DeepSeek cloud provider."; }; readonly provider_config: { readonly type: "object"; readonly description: "DeepSeek-specific configuration."; readonly properties: { readonly model_name: { readonly type: "string"; readonly description: "The DeepSeek model identifier (e.g., 'deepseek-flash', 'deepseek-v4-pro')."; }; readonly credential_key: { readonly type: "string"; readonly format: "credential"; readonly description: "Key to look up in the credential store for the API key."; readonly "x-ui-hidden": true; }; readonly base_url: { readonly type: "string"; readonly description: "Base URL for the DeepSeek API. Useful for proxy servers."; readonly default: "https://api.deepseek.com"; }; readonly trustedBaseUrl: { readonly type: "boolean"; readonly description: "When true, accept a base_url whose hostname is not in the built-in allow-list. Use only for known-good custom enterprise gateways — otherwise an attacker can exfiltrate the API key by pointing base_url at their own server."; readonly default: false; readonly "x-ui-hidden": true; }; readonly reasoning_allowance: { readonly type: "number"; readonly minimum: 0; readonly description: "Tokens added to the answer budget to leave room for reasoning. Set 0 for a non-thinking model; omit for the default."; }; readonly replay_reasoning: { readonly type: "boolean"; readonly description: "Send each assistant turn's reasoning back on later rounds of a tool-calling loop (default true). Off saves the prompt tokens it costs, at the price of the model working its plan out again each round."; readonly "x-ui-hidden": true; }; }; readonly required: readonly ["model_name"]; readonly additionalProperties: false; }; }; readonly required: readonly ["provider", "provider_config"]; readonly additionalProperties: true; }; export declare const DeepSeekModelRecordSchema: { readonly type: "object"; readonly properties: { readonly model_id: { readonly type: "string"; }; readonly capabilities: { readonly type: "array"; readonly items: { readonly type: "string"; }; readonly "x-ui-editor": "multiselect"; }; readonly title: { readonly type: "string"; }; readonly description: { readonly type: "string"; readonly "x-ui-editor": "textarea"; }; readonly effort: { readonly type: "string"; readonly enum: readonly ["none", "low", "medium", "high", "extra", "ultra"]; readonly description: "Coarse thinking/reasoning dial. Native provider_config thinking knobs always win when set."; }; readonly effort_options: { readonly type: "array"; readonly items: { readonly type: "string"; readonly enum: readonly ["none", "low", "medium", "high", "extra", "ultra"]; }; readonly description: "Enabled coarse effort levels for this model. When present (including empty), overrides provider.effortPolicy for UI."; }; readonly metadata: { readonly type: "object"; readonly default: {}; readonly "x-ui-hidden": true; }; readonly pricing: { readonly type: "object"; }; readonly provider: { readonly const: "DEEPSEEK"; readonly description: "Discriminator: DeepSeek cloud provider."; }; readonly provider_config: { readonly type: "object"; readonly description: "DeepSeek-specific configuration."; readonly properties: { readonly model_name: { readonly type: "string"; readonly description: "The DeepSeek model identifier (e.g., 'deepseek-flash', 'deepseek-v4-pro')."; }; readonly credential_key: { readonly type: "string"; readonly format: "credential"; readonly description: "Key to look up in the credential store for the API key."; readonly "x-ui-hidden": true; }; readonly base_url: { readonly type: "string"; readonly description: "Base URL for the DeepSeek API. Useful for proxy servers."; readonly default: "https://api.deepseek.com"; }; readonly trustedBaseUrl: { readonly type: "boolean"; readonly description: "When true, accept a base_url whose hostname is not in the built-in allow-list. Use only for known-good custom enterprise gateways — otherwise an attacker can exfiltrate the API key by pointing base_url at their own server."; readonly default: false; readonly "x-ui-hidden": true; }; readonly reasoning_allowance: { readonly type: "number"; readonly minimum: 0; readonly description: "Tokens added to the answer budget to leave room for reasoning. Set 0 for a non-thinking model; omit for the default."; }; readonly replay_reasoning: { readonly type: "boolean"; readonly description: "Send each assistant turn's reasoning back on later rounds of a tool-calling loop (default true). Off saves the prompt tokens it costs, at the price of the model working its plan out again each round."; readonly "x-ui-hidden": true; }; }; readonly required: readonly ["model_name"]; readonly additionalProperties: false; }; }; readonly required: readonly ["model_id", "capabilities", "provider", "title", "description", "provider_config", "metadata", "provider", "provider_config"]; readonly additionalProperties: false; }; export type DeepSeekModelRecord = WithModelPricing>; export declare const DeepSeekModelConfigSchema: { readonly type: "object"; readonly properties: { readonly model_id: { readonly type: "string"; }; readonly capabilities: { readonly type: "array"; readonly items: { readonly type: "string"; }; readonly "x-ui-editor": "multiselect"; }; readonly title: { readonly type: "string"; }; readonly description: { readonly type: "string"; readonly "x-ui-editor": "textarea"; }; readonly effort: { readonly type: "string"; readonly enum: readonly ["none", "low", "medium", "high", "extra", "ultra"]; readonly description: "Coarse thinking/reasoning dial. Native provider_config thinking knobs always win when set."; }; readonly effort_options: { readonly type: "array"; readonly items: { readonly type: "string"; readonly enum: readonly ["none", "low", "medium", "high", "extra", "ultra"]; }; readonly description: "Enabled coarse effort levels for this model. When present (including empty), overrides provider.effortPolicy for UI."; }; readonly metadata: { readonly type: "object"; readonly default: {}; readonly "x-ui-hidden": true; }; readonly pricing: { readonly type: "object"; }; readonly provider: { readonly const: "DEEPSEEK"; readonly description: "Discriminator: DeepSeek cloud provider."; }; readonly provider_config: { readonly type: "object"; readonly description: "DeepSeek-specific configuration."; readonly properties: { readonly model_name: { readonly type: "string"; readonly description: "The DeepSeek model identifier (e.g., 'deepseek-flash', 'deepseek-v4-pro')."; }; readonly credential_key: { readonly type: "string"; readonly format: "credential"; readonly description: "Key to look up in the credential store for the API key."; readonly "x-ui-hidden": true; }; readonly base_url: { readonly type: "string"; readonly description: "Base URL for the DeepSeek API. Useful for proxy servers."; readonly default: "https://api.deepseek.com"; }; readonly trustedBaseUrl: { readonly type: "boolean"; readonly description: "When true, accept a base_url whose hostname is not in the built-in allow-list. Use only for known-good custom enterprise gateways — otherwise an attacker can exfiltrate the API key by pointing base_url at their own server."; readonly default: false; readonly "x-ui-hidden": true; }; readonly reasoning_allowance: { readonly type: "number"; readonly minimum: 0; readonly description: "Tokens added to the answer budget to leave room for reasoning. Set 0 for a non-thinking model; omit for the default."; }; readonly replay_reasoning: { readonly type: "boolean"; readonly description: "Send each assistant turn's reasoning back on later rounds of a tool-calling loop (default true). Off saves the prompt tokens it costs, at the price of the model working its plan out again each round."; readonly "x-ui-hidden": true; }; }; readonly required: readonly ["model_name"]; readonly additionalProperties: false; }; }; readonly required: readonly ["provider", "provider_config", "provider", "provider_config"]; readonly additionalProperties: false; }; export type DeepSeekModelConfig = WithModelPricing>;