Skip to main content

Variable: AdapterUpdateRequestSchema

const AdapterUpdateRequestSchema: ZodObject<{
name: ZodString;
description: ZodOptional<ZodNullable<ZodString>>;
script_b64: ZodString;
network_broker_channel_uuid: ZodOptional<ZodNullable<ZodString>>;
variables: ZodOptional<ZodArray<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";
}>, "many">>;
prompt: ZodString;
}, "strict", ZodTypeAny, {
name: string;
description?: string | null;
script_b64: string;
network_broker_channel_uuid?: string | null;
variables?: {
key: string;
value?: string | null;
type: "VAR" | "SECRET";
}[];
prompt: string;
}, {
name: string;
description?: string | null;
script_b64: string;
network_broker_channel_uuid?: string | null;
variables?: {
key: string;
value?: string | null;
type: "VAR" | "SECRET";
}[];
prompt: string;
}>;

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

Update is a full replacement (PUT): name, script_b64, and prompt are required, exactly as on create — this is not a partial patch.

variables defines the complete desired key set:

  • value provided → set/add the value
  • value null → keep the existing value (unchanged secrets)
  • key omitted → delete the variable