mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 01:20:43 +00:00
38 lines
1.0 KiB
TypeScript
38 lines
1.0 KiB
TypeScript
import { z } from "zod";
|
|
import {
|
|
hasConfiguredSecretInput,
|
|
isSecretRef,
|
|
coerceSecretRef,
|
|
resolveSecretInputString,
|
|
normalizeResolvedSecretInputString,
|
|
normalizeSecretInputString,
|
|
} from "../config/types.secrets.js";
|
|
import { normalizeSecretInput } from "../utils/normalize-secret-input.js";
|
|
import { buildSecretInputSchema } from "./secret-input-schema.js";
|
|
|
|
export type {
|
|
SecretInput,
|
|
SecretInputStringResolution,
|
|
SecretInputStringResolutionMode,
|
|
} from "../config/types.secrets.js";
|
|
export {
|
|
buildSecretInputSchema,
|
|
coerceSecretRef,
|
|
hasConfiguredSecretInput,
|
|
isSecretRef,
|
|
resolveSecretInputString,
|
|
normalizeResolvedSecretInputString,
|
|
normalizeSecretInput,
|
|
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());
|
|
}
|