UNPKG

@unkey/api

Version:

Developer-friendly & type-safe Typescript SDK specifically catered to leverage *@unkey/api* API.

30 lines 1.15 kB
import * as z from "zod/v3"; export type KeysVerifyKeyRatelimit = { /** * References an existing ratelimit by its name. Key Ratelimits will take precedence over identifier-based limits. */ name: string; /** * Optionally override how expensive this operation is and how many tokens are deducted from the current limit. */ cost?: number | undefined; /** * Optionally override the maximum number of requests allowed within the specified interval. */ limit?: number | undefined; /** * Optionally override the duration of the rate limit window duration. */ duration?: number | undefined; }; /** @internal */ export type KeysVerifyKeyRatelimit$Outbound = { name: string; cost: number; limit?: number | undefined; duration?: number | undefined; }; /** @internal */ export declare const KeysVerifyKeyRatelimit$outboundSchema: z.ZodType<KeysVerifyKeyRatelimit$Outbound, z.ZodTypeDef, KeysVerifyKeyRatelimit>; export declare function keysVerifyKeyRatelimitToJSON(keysVerifyKeyRatelimit: KeysVerifyKeyRatelimit): string; //# sourceMappingURL=keysverifykeyratelimit.d.ts.map