UNPKG

@alwaysai/cloud-api

Version:

A library for defining the alwaysAI Cloud API

27 lines 1.35 kB
export declare const testAuthenticationClientStorage: import("./authentication-client").AuthenticationStorage & { listItems: () => [string, string][]; }; export declare function TestAuthenticationClient(): { isSignedIn(): boolean; signOut(): void; getAuthorizationHeader(): Promise<{ Authorization: string; }>; getIdAuthorizationHeader(): Promise<{ Authorization: string; }>; getInfo(): Promise<{ username: string; uuid: string; email: string; }>; signIn(email: string, password: string): Promise<{ authenticationState: "NON_TEMPORARY_PASSWORD_REQUIRED"; setNonTemporaryPassword(password: string): Promise<{ authenticationState: "CUSTOM_CHALLENGE" | "MFA_SETUP" | "SELECT_MFA_TYPE" | "AUTHENTICATED" | "USER_CONFIRMATION_REQUIRED" | "PASSWORD_RESET_REQUIRED" | "INCORRECT_PASSWORD" | "USER_NOT_FOUND" | "NON_TEMPORARY_PASSWORD_REQUIRED" | "INVALID_PASSWORD" | "MFA_REQUIRED" | "TOTP_REQUIRED"; }>; } | { authenticationState: "CUSTOM_CHALLENGE" | "MFA_SETUP" | "SELECT_MFA_TYPE" | "AUTHENTICATED" | "USER_CONFIRMATION_REQUIRED" | "PASSWORD_RESET_REQUIRED" | "INCORRECT_PASSWORD" | "USER_NOT_FOUND" | "INVALID_PASSWORD" | "MFA_REQUIRED" | "TOTP_REQUIRED"; }>; }; //# sourceMappingURL=test-authentication-client.d.ts.map