⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
feat(web): add api key types
Andrej Acevski3bd855f97007
diff --git a/apps/web/src/types/api-key.ts b/apps/web/src/types/api-key.tsnew file mode 100644index 000000000..dc1cd8197--- /dev/null+++ b/apps/web/src/types/api-key.ts@@ -0,0 +1,34 @@+export type ApiKey = {+ id: string;+ name: string | null;+ prefix: string | null;+ start: string | null;+ enabled: boolean;+ createdAt: Date;+ expiresAt: Date | null;+ permissions: Record<string, string[]> | null;+ userId: string;+ refillInterval: number | null;+ refillAmount: number | null;+ lastRefillAt: Date | null;+ rateLimitEnabled: boolean;+ rateLimitTimeWindow: number | null;+ rateLimitMax: number | null;+ requestCount: number;+ remaining: number | null;+ lastRequest: Date | null;+ updatedAt: Date;+ metadata: any;+};++export type CreateApiKeyRequest = {+ name?: string;+ expiresIn?: number;+ prefix?: string;+ metadata?: any;+};++export type CreateApiKeyResponse = ApiKey & {+ key: string; // Full key, only shown once+};+