Skip to main content

Variable: GatewayWorkspaceBindingSchema

const GatewayWorkspaceBindingSchema: ZodObject<{
id: ZodString;
enabled: ZodBoolean;
usage_limits: ZodOptional<ZodNullable<ZodArray<ZodEffects<ZodEffects<ZodObject<{
credit_limit: ZodOptional<ZodNumber>;
type: ZodOptional<ZodEnum<...>>;
alert_threshold: ZodOptional<ZodNumber>;
periodic_reset: ZodOptional<ZodNullable<...>>;
periodic_reset_days: ZodOptional<ZodNullable<...>>;
next_usage_reset_at: ZodOptional<ZodNullable<...>>;
}, "strict", ZodTypeAny, {
credit_limit?: number;
type?: "cost" | "tokens";
alert_threshold?: number;
periodic_reset?: "monthly" | "weekly" | null;
periodic_reset_days?: number | null;
next_usage_reset_at?: string | null;
}, {
credit_limit?: number;
type?: "cost" | "tokens";
alert_threshold?: number;
periodic_reset?: "monthly" | "weekly" | null;
periodic_reset_days?: number | null;
next_usage_reset_at?: string | null;
}>, {
[key: string]: any;
}, {
[key: string]: any;
}>, {
[key: string]: any;
}, {
[key: string]: any;
}>, "many">>>;
rate_limits: ZodOptional<ZodNullable<ZodArray<ZodObject<{
type: ZodType<GatewayOpenValue<"requests" | "tokens">, ZodTypeDef, GatewayOpenValue<"requests" | "tokens">>;
unit: ZodType<GatewayOpenValue<"rpd" | "rph" | "rpm" | "rps" | "rpw">, ZodTypeDef, GatewayOpenValue<"rpd" | "rph" | "rpm" | "rps" | "rpw">>;
value: ZodNumber;
}, "strict", ZodTypeAny, {
type: GatewayOpenValue<"requests" | "tokens">;
unit: GatewayOpenValue<"rpd" | "rph" | "rpm" | "rps" | "rpw">;
value: number;
}, {
type: GatewayOpenValue<"requests" | "tokens">;
unit: GatewayOpenValue<"rpd" | "rph" | "rpm" | "rps" | "rpw">;
value: number;
}>, "many">>>;
reset_usage: ZodOptional<ZodBoolean>;
create_default_provider: ZodOptional<ZodBoolean>;
default_provider_slug: ZodOptional<ZodString>;
}, "strict", ZodTypeAny, {
id: string;
enabled: boolean;
usage_limits?: | {
[key: string]: any;
}[]
| null;
rate_limits?: | {
type: GatewayOpenValue<"requests" | "tokens">;
unit: GatewayOpenValue<"rpd" | "rph" | "rpm" | "rps" | "rpw">;
value: number;
}[]
| null;
reset_usage?: boolean;
create_default_provider?: boolean;
default_provider_slug?: string;
}, {
id: string;
enabled: boolean;
usage_limits?: | {
[key: string]: any;
}[]
| null;
rate_limits?: | {
type: GatewayOpenValue<"requests" | "tokens">;
unit: GatewayOpenValue<"rpd" | "rph" | "rpm" | "rps" | "rpw">;
value: number;
}[]
| null;
reset_usage?: boolean;
create_default_provider?: boolean;
default_provider_slug?: string;
}>;

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