UNPKG

@becomes/cms

Version:

Simple CMS for building APIs.

28 lines (27 loc) 784 B
import { Key, KeyAccess } from './models/key.model'; export declare class KeyHandler { private static logger; static getAccessList(method: string, url: string, body: any, signature: { key: string; nonce: string; timestamp: number; signature: string; }): { access: KeyAccess; }; static getAll(authorization: string): Promise<{ keys: Key[]; }>; static getById(authorization: string, id: string): Promise<{ key: Key; }>; static add(authorization: string, body: any): Promise<{ key: Key; }>; static update(authorization: string, body: any): Promise<{ key: Key; }>; static deleteById(authorization: string, id: string): Promise<{ message: string; }>; }