/** * Create a new API key. * Returns the full key - this is the only time it will be visible! */ export declare const create: import("convex/server").RegisteredMutation<"public", { expiresAt?: number; name: string; }, Promise<{ key: string; keyPrefix: string; name: string; expiresAt: number; createdAt: number; }>>; /** * List all API keys (without the actual key values). */ export declare const list: import("convex/server").RegisteredQuery<"public", {}, Promise<{ _id: import("convex/values").GenericId<"apiKeys">; keyPrefix: string; name: string; expiresAt: number; isRevoked: boolean; revokedAt: number; createdAt: number; isExpired: boolean; }[]>>; /** * Revoke an API key by its prefix. */ export declare const revoke: import("convex/server").RegisteredMutation<"public", { keyPrefix: string; }, Promise>; /** * Rotate an API key - revokes the old key and creates a new one. * Returns the new key (only time it will be visible!). */ export declare const rotate: import("convex/server").RegisteredMutation<"public", { name?: string; expiresAt?: number; keyPrefix: string; }, Promise<{ key: string; keyPrefix: string; name: string; expiresAt: number; createdAt: number; }>>; /** * Validate an API key (public - for use by consumer apps via component API). * Returns true if valid and not expired/revoked. */ export declare const validate: import("convex/server").RegisteredQuery<"public", { apiKey: string; }, Promise>; /** * Validate an API key (internal use for HTTP endpoint). * Returns true if valid and not expired/revoked. */ export declare const validateKey: import("convex/server").RegisteredQuery<"internal", { key: string; }, Promise>; //# sourceMappingURL=apiKeys.d.ts.map