Skip to main content

Variable: GatewayProviderCreateRequestSchema

const GatewayProviderCreateRequestSchema: ZodObject<{
workspace_id: ZodString;
ai_provider_id: ZodString;
name: ZodString;
integration_id: ZodString;
slug: ZodString;
note: ZodOptional<ZodNullable<ZodString>>;
usage_limits: ZodOptional<ZodNullable<ZodEffects<ZodEffects<ZodObject<{
credit_limit: ZodOptional<ZodNumber>;
type: ZodOptional<ZodEnum<[..., ...]>>;
alert_threshold: ZodOptional<ZodNumber>;
periodic_reset: ZodOptional<ZodNullable<ZodEnum<...>>>;
periodic_reset_days: ZodOptional<ZodNullable<ZodNumber>>;
next_usage_reset_at: ZodOptional<ZodNullable<ZodString>>;
}, "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;
}>>>;
rate_limits: ZodOptional<ZodNullable<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;
}>>>;
expires_at: ZodOptional<ZodNullable<ZodString>>;
}, "strict", ZodTypeAny, {
workspace_id: string;
ai_provider_id: string;
name: string;
integration_id: string;
slug: string;
note?: string | null;
usage_limits?: | {
[key: string]: any;
}
| null;
rate_limits?: | {
type: GatewayOpenValue<"requests" | "tokens">;
unit: GatewayOpenValue<"rpd" | "rph" | "rpm" | "rps" | "rpw">;
value: number;
}
| null;
expires_at?: string | null;
}, {
workspace_id: string;
ai_provider_id: string;
name: string;
integration_id: string;
slug: string;
note?: string | null;
usage_limits?: | {
[key: string]: any;
}
| null;
rate_limits?: | {
type: GatewayOpenValue<"requests" | "tokens">;
unit: GatewayOpenValue<"rpd" | "rph" | "rpm" | "rps" | "rpw">;
value: number;
}
| null;
expires_at?: string | null;
}>;

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