import { BaseDynamoTable } from './aws.dynamo.table'; /** * The database format for the ApiKey Table */ export interface ApiKeyTableRecord extends BaseDynamoTable { /** Enable / disable a API Key */ enabled: boolean; /** Timestamp for when this limit expires */ minuteExpireAt: number; /** Number of api requests this minute */ minuteCount: number; /** Allow custom limits set per API Key */ minuteLimit?: number; /** Lock this API Key to a referrer host */ lockToReferrer?: string; /** Lock this API Key to a list of ips */ lockToIp?: string[]; } export declare class ApiKeyTable { private dynamo; constructor(); /** * Fetch a ApiKey Record from the database * @param apiKey The API Key to fetch */ get(apiKey: string): Promise; create(apiKey: string): Promise; } //# sourceMappingURL=api.key.table.d.ts.map