import "reflect-metadata"; import * as typeorm0 from "typeorm"; import { Relation } from "typeorm"; import { ApiKey as ApiKey$1, DatabaseAdapter, Identity as Identity$1, Permission, Replicant as Replicant$1, Role as Role$1, User as User$1 } from "@nodecg/database-adapter-types"; //#region src/connection.d.ts declare function getConnection(): Promise; //#endregion //#region src/entity/Identity.d.ts declare class Identity implements Identity$1 { id: string; provider_type: "twitch" | "steam" | "local" | "discord"; /** * Hashed password for local, auth token from twitch, etc. */ provider_hash: string; /** * Only used by Twitch and Discord providers. */ provider_access_token: string | null; /** * Only used by Twitch and Discord providers. */ provider_refresh_token: string | null; user: Relation; } //#endregion //#region src/entity/Permission.d.ts declare class Permission$1 implements Permission { id: string; name: string; role: Relation; entityId: string; actions: number; } //#endregion //#region src/entity/Role.d.ts declare class Role implements Role$1 { id: string; name: string; permissions: Permission$1[]; } //#endregion //#region src/entity/User.d.ts declare class User implements User$1 { id: string; created_at: number; name: string; roles: Role[]; identities: Identity[]; apiKeys: ApiKey[]; } //#endregion //#region src/entity/ApiKey.d.ts declare class ApiKey implements ApiKey$1 { secret_key: string; user: User; } //#endregion //#region src/entity/Replicant.d.ts declare class Replicant implements Replicant$1 { namespace: string; name: string; value: string; } //#endregion //#region src/database-adapter.d.ts declare const databaseAdapter: DatabaseAdapter; //#endregion export { ApiKey, Identity, Replicant, Role, User, databaseAdapter, getConnection }; //# sourceMappingURL=database-adapter.d.ts.map