Skip to main content

Variable: AdapterVarSchema

const AdapterVarSchema: ZodObject<{
key: ZodString;
value: ZodOptional<ZodNullable<ZodString>>;
type: ZodEnum<["VAR", "SECRET"]>;
}, "strip", ZodTypeAny, {
key: string;
value?: string | null;
type: "VAR" | "SECRET";
}, {
key: string;
value?: string | null;
type: "VAR" | "SECRET";
}>;

Defined in: src/models/red-team.ts:1066

A single adapter configuration variable, as sent in requests (spec AdapterVarBase). Also the shape of TargetCreateRequest.adapter_variable_overrides entries.

On update, value: null means "keep the existing value" — the mechanism for leaving a secret unchanged, since secret values are never returned.