mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-19 05:50:47 +00:00
13 lines
246 B
TypeScript
13 lines
246 B
TypeScript
import { z } from "zod";
|
|
|
|
export function buildSecretInputSchema() {
|
|
return z.union([
|
|
z.string(),
|
|
z.object({
|
|
source: z.enum(["env", "file", "exec"]),
|
|
provider: z.string().min(1),
|
|
id: z.string().min(1),
|
|
}),
|
|
]);
|
|
}
|