Mirror of https://github.com/roostorg/coop
github.com/roostorg/coop
1import type { ApiKeyMetadata } from './apiKeyService.js';
2
3export {
4 type ApiKeyMetadata,
5 type ApiKeyService,
6 default as makeApiKeyService,
7} from './apiKeyService.js';
8export { type ApiKeyServicePg } from './dbTypes.js';
9
10export interface ApiKeyStorage {
11 store(key: string, orgId: string, meta: ApiKeyMetadata): Promise<{ keyId: string }>;
12 fetch(orgId: string): Promise<{ key: string; metadata: ApiKeyMetadata } | false>;
13}