1 | import { CredentialRepository } from './auth.repository';
|
2 | import { AuthService } from './auth.service';
|
3 | import { InviteUserService } from './invite-user.service';
|
4 | import { PasswordResetService } from './password-reset.service';
|
5 | import { Context, IUser } from '..';
|
6 | export declare class AuthResolver {
|
7 | private readonly credentialsRepository;
|
8 | private readonly authService;
|
9 | private readonly passwordResetService;
|
10 | private readonly inviteUserService;
|
11 | constructor(credentialsRepository: CredentialRepository, authService: AuthService, passwordResetService: PasswordResetService, inviteUserService: InviteUserService);
|
12 | credentials({ id }: IUser, _args: {}, context: Context): Promise<{
|
13 | username: string;
|
14 | type: "google" | "saml" | "auth0" | "oidc" | "password";
|
15 | } | undefined>;
|
16 | me(_req: void, _args: void, context: Context<IUser>): Promise<IUser | undefined>;
|
17 | resetPassword(_req: void, { email }: {
|
18 | email: string;
|
19 | }, context: Context): Promise<void>;
|
20 | confirmResetPassword(_req: void, { code, newPassword }: {
|
21 | code: string;
|
22 | newPassword: string;
|
23 | }, context: Context): Promise<void>;
|
24 | inviteUser(_req: void, { email, roles }: {
|
25 | email: string;
|
26 | roles: string[];
|
27 | }, context: Context): Promise<string>;
|
28 | checkActivationCode(_req: void, { code }: {
|
29 | code: string;
|
30 | }, context: Context): Promise<string | null>;
|
31 | activateAccount(_req: void, { code, name, password }: {
|
32 | code: string;
|
33 | name: string;
|
34 | password: string;
|
35 | }, context: Context): Promise<void>;
|
36 | }
|