export declare enum PuiAccessControlLevel { allow, deny, } export interface PuiAccessControl { name: string; level?: PuiAccessControlLevel; } export interface PuiUserProfile { firstName: string; lastName: string; email?: string; data?: any; } export interface PuiAuthData { authenticated: boolean; accessToken?: string; idToken?: string; userId?: string; } export declare enum PuiAuthStatus { Success, Forbidden, Unauthorized, } export interface PuiAuthRequest { username: string; password: string; } export interface PuiAuthResponse { userId: string; status: PuiAuthStatus; message: string; } export interface PuiOAuthConfig { clientId: string; audience: string; domain: string; } export interface PuiWiaConfig { identityUrl: string; } /** * Auth Events */ /** * Auth Event Types to be emitted by the @see PuiAuthService */ export declare enum PuiAuthEventType { /** * Occurs when the OAuth token has been received by the Identity provider */ OAuthTokenProvided, /** * Occurs when the OAuth token has been refreshed by the Identity provider */ OAuthTokenRefreshed, /** * Occurs when the OAuth token */ OAuthTokenRefreshError, } /** * @description Auth Service message format for events occuring during the authentication process * @event */ export interface PuiAuthEvent { /** * Type of event that has occured */ type: PuiAuthEventType; /** * Potential error message */ error?: string; [propname: string]: any; }