unleash-server
Version:
Unleash is an enterprise ready feature flag service. It provides different strategies for handling feature flags.
31 lines • 906 B
TypeScript
import type { ApiTokenType } from './model.js';
export interface IApiUserData {
permissions?: string[];
projects?: string[];
project?: string;
environment: string;
type: ApiTokenType;
secret: string;
tokenName: string;
}
export interface IApiUser {
internalAdminTokenUserId?: number;
username: string;
permissions: string[];
projects: string[];
environment: string;
type: ApiTokenType;
secret: string;
}
export declare class ApiUser implements IApiUser {
readonly isAPI: boolean;
readonly permissions: string[];
readonly projects: string[];
readonly environment: string;
readonly type: ApiTokenType;
readonly secret: string;
readonly username: string;
constructor({ permissions, projects, project, environment, type, secret, tokenName, }: IApiUserData);
}
export default ApiUser;
//# sourceMappingURL=api-user.d.ts.map