mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-16 12:30:49 +00:00
20 lines
498 B
TypeScript
20 lines
498 B
TypeScript
import {
|
|
hasConfiguredSecretInput,
|
|
normalizeResolvedSecretInputString,
|
|
normalizeSecretInputString,
|
|
} from "openclaw/plugin-sdk/nextcloud-talk";
|
|
import { z } from "zod";
|
|
|
|
export { hasConfiguredSecretInput, normalizeResolvedSecretInputString, normalizeSecretInputString };
|
|
|
|
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),
|
|
}),
|
|
]);
|
|
}
|