@unkey/api
Version:
Developer-friendly & type-safe Typescript SDK specifically catered to leverage *@unkey/api* API.
29 lines • 972 B
TypeScript
import * as z from "zod/v3";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
export type RatelimitResponse = {
/**
* Unique identifier for this rate limit configuration.
*/
id: string;
/**
* Human-readable name for this rate limit.
*/
name: string;
/**
* Maximum requests allowed within the time window.
*/
limit: number;
/**
* Rate limit window duration in milliseconds.
*/
duration: number;
/**
* Whether this rate limit was automatically applied when verifying the key.
*/
autoApply: boolean;
};
/** @internal */
export declare const RatelimitResponse$inboundSchema: z.ZodType<RatelimitResponse, z.ZodTypeDef, unknown>;
export declare function ratelimitResponseFromJSON(jsonString: string): SafeParseResult<RatelimitResponse, SDKValidationError>;
//# sourceMappingURL=ratelimitresponse.d.ts.map