spb/cancerindex
Public
TypeScript 97.2%
SQL 1.5%
CSS 0.6%
JavaScript 0.5%
1import type { Database } from '@cancerindex/database';23export interface ApiKeyInfo {4 id: number;5 prefix: string;6 tier: string;7 rateLimitPerMinute: number;8 label: string | null;9}1011declare module 'fastify' {12 interface FastifyInstance {13 db: Database;14 /** True when the database answered the last liveness probe. */15 dbHealthy(): Promise<boolean>;16 }17 interface FastifyRequest {18 apiKey: ApiKeyInfo | null;19 }20}21