/** * @hidden * Constants */ export declare class Constants { static readonly claims: string; static readonly clientId: string; static readonly adalIdToken: string; static readonly cachePrefix: string; static readonly scopes: string; static readonly no_account: string; static readonly consumersUtid: string; static readonly upn: string; static readonly prompt_select_account: string; static readonly prompt_none: string; static readonly prompt: string; static readonly response_mode_fragment: string; static readonly resourceDelimiter: string; static readonly cacheDelimiter: string; private static _popUpWidth; static popUpWidth: number; private static _popUpHeight; static popUpHeight: number; static readonly login: string; static readonly renewToken: string; static readonly unknown: string; static readonly homeAccountIdentifier: string; static readonly common: string; static readonly openidScope: string; static readonly profileScope: string; static readonly interactionTypeRedirect: InteractionType; static readonly interactionTypePopup: InteractionType; static readonly inProgress: string; } /** * Keys in the hashParams */ export declare enum ServerHashParamKeys { SCOPE = "scope", ERROR = "error", ERROR_DESCRIPTION = "error_description", ACCESS_TOKEN = "access_token", ID_TOKEN = "id_token", EXPIRES_IN = "expires_in", SESSION_STATE = "session_state", CLIENT_INFO = "client_info" } /** * @hidden * CacheKeys for MSAL */ export declare enum TemporaryCacheKeys { AUTHORITY = "authority", ACQUIRE_TOKEN_ACCOUNT = "acquireTokenAccount", SESSION_STATE = "session.state", STATE_LOGIN = "state.login", STATE_ACQ_TOKEN = "state.acquireToken", STATE_RENEW = "state.renew", NONCE_IDTOKEN = "nonce.idtoken", LOGIN_REQUEST = "login.request", RENEW_STATUS = "token.renew.status", URL_HASH = "urlHash", ANGULAR_LOGIN_REQUEST = "angular.login.request", INTERACTION_STATUS = "interaction_status", REDIRECT_REQUEST = "redirect_request" } export declare enum PersistentCacheKeys { IDTOKEN = "idtoken", CLIENT_INFO = "client.info" } export declare enum ErrorCacheKeys { LOGIN_ERROR = "login.error", ERROR = "error", ERROR_DESC = "error.description" } export declare const AADTrustedHostList: { "login.windows.net": string; "login.chinacloudapi.cn": string; "login.cloudgovapi.us": string; "login.microsoftonline.com": string; "login.microsoftonline.de": string; "login.microsoftonline.us": string; }; /** * @hidden * SSO Types - generated to populate hints */ export declare enum SSOTypes { ACCOUNT = "account", SID = "sid", LOGIN_HINT = "login_hint", ID_TOKEN = "id_token", DOMAIN_HINT = "domain_hint", ORGANIZATIONS = "organizations", CONSUMERS = "consumers", ACCOUNT_ID = "accountIdentifier", HOMEACCOUNT_ID = "homeAccountIdentifier", LOGIN_REQ = "login_req", DOMAIN_REQ = "domain_req" } /** * @hidden */ export declare const BlacklistedEQParams: SSOTypes[]; export declare type InteractionType = "redirectInteraction" | "popupInteraction"; /** * we considered making this "enum" in the request instead of string, however it looks like the allowed list of * prompt values kept changing over past couple of years. There are some undocumented prompt values for some * internal partners too, hence the choice of generic "string" type instead of the "enum" * @hidden */ export declare const PromptState: { LOGIN: string; SELECT_ACCOUNT: string; CONSENT: string; NONE: string; }; /** * MSAL JS Library Version */ export declare function libraryVersion(): string;