Skip to main content

Variable: GatewayGuardrailUpdateRequestSchema

const GatewayGuardrailUpdateRequestSchema: ZodEffects<ZodObject<{
name: ZodOptional<ZodString>;
checks: ZodOptional<ZodArray<ZodObject<{
id: ZodString;
parameters: ZodOptional<ZodIntersection<ZodType<
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ..., ZodTypeDef,
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...
| ...>, ZodType<GatewayJsonObject, ZodTypeDef, GatewayJsonObject>>>;
is_enabled: ZodOptional<ZodBoolean>;
name: ZodOptional<ZodString>;
}, "strict", ZodTypeAny, {
id: string;
parameters?: ({ [key: string]: unknown; jwksUri: string; headerKey: string; cacheMaxAge?: number | undefined; clockTolerance?: number | undefined; maxTokenAge?: string | undefined; algorithms?: string[] | undefined; } | ... 30 more ... | { ...; }) & GatewayJsonObject;
is_enabled?: boolean;
name?: string;
}, {
id: string;
parameters?: ({ [key: string]: unknown; jwksUri: string; headerKey: string; cacheMaxAge?: number | undefined; clockTolerance?: number | undefined; maxTokenAge?: string | undefined; algorithms?: string[] | undefined; } | ... 30 more ... | { ...; }) & GatewayJsonObject;
is_enabled?: boolean;
name?: string;
}>, "many">>;
actions: ZodOptional<ZodEffects<ZodObject<{
deny: ZodOptional<ZodBoolean>;
async: ZodOptional<ZodBoolean>;
on_success: ZodOptional<ZodObject<{
feedback: ZodOptional<...>;
}, "strip", ZodType<GatewayJsonValue, ZodTypeDef, GatewayJsonValue>, {
feedback?: ... | ...;
}, {
feedback?: ... | ...;
}>>;
on_fail: ZodOptional<ZodObject<{
feedback: ZodOptional<...>;
}, "strip", ZodType<GatewayJsonValue, ZodTypeDef, GatewayJsonValue>, {
feedback?: ... | ...;
}, {
feedback?: ... | ...;
}>>;
}, "strip", ZodType<GatewayJsonValue, ZodTypeDef, GatewayJsonValue>, {
deny?: boolean;
async?: boolean;
on_success?: {
feedback?: {
value: ...;
weight: ...;
metadata: ...;
};
};
on_fail?: {
feedback?: {
value: ...;
weight: ...;
metadata: ...;
};
};
}, {
deny?: boolean;
async?: boolean;
on_success?: {
feedback?: {
value: ...;
weight: ...;
metadata: ...;
};
};
on_fail?: {
feedback?: {
value: ...;
weight: ...;
metadata: ...;
};
};
}>, {
[key: string]: any;
}, {
[key: string]: any;
}>>;
}, "strict", ZodTypeAny, {
name?: string;
checks?: {
id: string;
parameters?: ({ [key: string]: unknown; jwksUri: string; headerKey: string; cacheMaxAge?: number | undefined; clockTolerance?: number | undefined; maxTokenAge?: string | undefined; algorithms?: string[] | undefined; } | ... 30 more ... | { ...; }) & GatewayJsonObject;
is_enabled?: boolean;
name?: string;
}[];
actions?: {
[key: string]: any;
};
}, {
name?: string;
checks?: {
id: string;
parameters?: ({ [key: string]: unknown; jwksUri: string; headerKey: string; cacheMaxAge?: number | undefined; clockTolerance?: number | undefined; maxTokenAge?: string | undefined; algorithms?: string[] | undefined; } | ... 30 more ... | { ...; }) & GatewayJsonObject;
is_enabled?: boolean;
name?: string;
}[];
actions?: {
[key: string]: any;
};
}>, {
[key: string]: any;
}, {
[key: string]: any;
}>;

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