Skip to main content

Variable: GatewayConfigUpdateRequestSchema

const GatewayConfigUpdateRequestSchema: ZodEffects<ZodObject<{
name: ZodOptional<ZodString>;
workspace_id: ZodOptional<ZodString>;
config: ZodOptional<ZodObject<{
retry: ZodOptional<ZodObject<{
attempts: ZodOptional<ZodNumber>;
on_status_codes: ZodOptional<ZodArray<..., ...>>;
}, "strip", ZodType<GatewayJsonValue, ZodTypeDef, GatewayJsonValue>, {
attempts?: number;
on_status_codes?: ...[];
}, {
attempts?: number;
on_status_codes?: ...[];
}>>;
cache: ZodOptional<ZodObject<{
mode: ZodOptional<ZodType<..., ..., ...>>;
max_age: ZodOptional<ZodNumber>;
}, "strip", ZodType<GatewayJsonValue, ZodTypeDef, GatewayJsonValue>, {
mode?: GatewayOpenValue<...>;
max_age?: number;
}, {
mode?: GatewayOpenValue<...>;
max_age?: number;
}>>;
strategy: ZodOptional<ZodObject<{
mode: ZodType<GatewayOpenValue<...>, ZodTypeDef, GatewayOpenValue<...>>;
}, "strip", ZodType<GatewayJsonValue, ZodTypeDef, GatewayJsonValue>, {
mode: GatewayOpenValue<... | ... | ...>;
}, {
mode: GatewayOpenValue<... | ... | ...>;
}>>;
targets: ZodOptional<ZodArray<ZodObject<{
provider: ZodOptional<...>;
virtual_key: ZodOptional<...>;
}, "strip", ZodType<GatewayJsonValue, ZodTypeDef, GatewayJsonValue>, {
provider?: ... | ...;
virtual_key?: ... | ...;
}, {
provider?: ... | ...;
virtual_key?: ... | ...;
}>, "many">>;
provider: ZodOptional<ZodString>;
virtual_key: ZodOptional<ZodString>;
}, "strip", ZodType<GatewayJsonValue, ZodTypeDef, GatewayJsonValue>, {
retry?: {
attempts?: number;
on_status_codes?: number[];
};
cache?: {
mode?: GatewayOpenValue<... | ...>;
max_age?: number;
};
strategy?: {
mode: GatewayOpenValue<"fallback" | "loadbalance" | "single">;
};
targets?: {
provider?: string;
virtual_key?: string;
}[];
provider?: string;
virtual_key?: string;
}, {
retry?: {
attempts?: number;
on_status_codes?: number[];
};
cache?: {
mode?: GatewayOpenValue<... | ...>;
max_age?: number;
};
strategy?: {
mode: GatewayOpenValue<"fallback" | "loadbalance" | "single">;
};
targets?: {
provider?: string;
virtual_key?: string;
}[];
provider?: string;
virtual_key?: string;
}>>;
status: ZodOptional<ZodString>;
}, "strict", ZodTypeAny, {
name?: string;
workspace_id?: string;
config?: {
retry?: {
attempts?: number;
on_status_codes?: number[];
};
cache?: {
mode?: GatewayOpenValue<"semantic" | "simple">;
max_age?: number;
};
strategy?: {
mode: GatewayOpenValue<"fallback" | "loadbalance" | "single">;
};
targets?: {
provider?: string;
virtual_key?: string;
}[];
provider?: string;
virtual_key?: string;
};
status?: string;
}, {
name?: string;
workspace_id?: string;
config?: {
retry?: {
attempts?: number;
on_status_codes?: number[];
};
cache?: {
mode?: GatewayOpenValue<"semantic" | "simple">;
max_age?: number;
};
strategy?: {
mode: GatewayOpenValue<"fallback" | "loadbalance" | "single">;
};
targets?: {
provider?: string;
virtual_key?: string;
}[];
provider?: string;
virtual_key?: string;
};
status?: string;
}>, {
[key: string]: any;
}, {
[key: string]: any;
}>;

Defined in: src/models/ai-gateway-requests.ts:141