UNPKG

@medusajs/api-key

Version:
26 lines 691 B
import { ApiKeyType, IEventBusModuleService, Logger, RevokeApiKeyDTO, UpdateApiKeyDTO } from "@medusajs/framework/types"; export type InitializeModuleInjectableDependencies = { logger?: Logger; EventBus?: IEventBusModuleService; }; export type CreateApiKeyDTO = { token: string; salt: string; redacted: string; title: string; type: ApiKeyType; created_by: string; }; export type TokenDTO = { rawToken: string; hashedToken: string; salt: string; redacted: string; }; export type UpdateApiKeyInput = UpdateApiKeyDTO & { id: string; }; export type RevokeApiKeyInput = RevokeApiKeyDTO & { id: string; }; //# sourceMappingURL=index.d.ts.map