mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-25 17:02:46 +00:00
26 lines
742 B
TypeScript
26 lines
742 B
TypeScript
import { z } from "zod";
|
|
import {
|
|
hasConfiguredSecretInput,
|
|
normalizeResolvedSecretInputString,
|
|
normalizeSecretInputString,
|
|
} from "../config/types.secrets.js";
|
|
import { buildSecretInputSchema } from "./secret-input-schema.js";
|
|
|
|
export type { SecretInput } from "../config/types.secrets.js";
|
|
export {
|
|
buildSecretInputSchema,
|
|
hasConfiguredSecretInput,
|
|
normalizeResolvedSecretInputString,
|
|
normalizeSecretInputString,
|
|
};
|
|
|
|
/** Optional version of the shared secret-input schema. */
|
|
export function buildOptionalSecretInputSchema() {
|
|
return buildSecretInputSchema().optional();
|
|
}
|
|
|
|
/** Array version of the shared secret-input schema. */
|
|
export function buildSecretInputArraySchema() {
|
|
return z.array(buildSecretInputSchema());
|
|
}
|