@medusajs/api-key
Version:
Medusa API Key module
26 lines • 691 B
TypeScript
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