UNPKG

@awhere/api

Version:

The awesome aWhere API for JavaScript.

30 lines (29 loc) 998 B
import { IAPIKey } from '@awhere/interfaces'; import PrototypeBase from '../PrototypeBase'; declare class APIKey extends PrototypeBase implements IAPIKey { static generateId(): string; static generateKey(): string; private _name; get name(): string; set name(value: string); private _description?; get description(): IAPIKey['description']; set description(value: IAPIKey['description']); private _key; get key(): string; set key(value: string); private _user; get user(): IAPIKey['owner']; set user(value: IAPIKey['owner']); private _scope?; get scope(): IAPIKey['scope']; set scope(value: IAPIKey['scope']); private _restrictionType; get restrictionType(): IAPIKey['restrictionType']; set restrictionType(value: IAPIKey['restrictionType']); private _expiresAt?; get expiresAt(): IAPIKey['expiresAt']; set expiresAt(value: IAPIKey['expiresAt']); constructor(props?: IAPIKey); } export default APIKey;