Module exposing: persistedProviderAuthModeSchema, modelApiSchema, providerOauthRegionSchema, providerSecretRefSchema, providerSecretInputSchema, modelProviderModelInputSchema, modelProviderModelCostSchema, modelProviderModelEntrySchema
// Source: https://github.com/nexu-io/nexu | License: MIT | Copyright 2026 Powerformer, Inc
// Provided via justclaw.it.com; keep this notice with the code.
import { z } from "zod";
export const persistedProviderAuthModeSchema = z.enum([
"api-key",
"aws-sdk",
"oauth",
"token",
]);
export const modelApiSchema = z.enum([
"openai-completions",
"openai-responses",
"openai-codex-responses",
"anthropic-messages",
"google-generative-ai",
"github-copilot",
"bedrock-converse-stream",
"ollama",
]);
export const providerOauthRegionSchema = z.enum(["global", "cn"]);
export const providerSecretRefSchema = z.object({
source: z.enum(["env", "file", "exec"]),
provider: z.string().min(1),
id: z.string().min(1),
});
export const providerSecretInputSchema = z.union([
z.st
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key