import { AIMSAccount, AIMSUser, AIMSLicenseAcceptanceStatus } from "../../aims-client"; import { AlTriggeredEvent } from "../../common/utility"; import { AlEntitlementCollection } from "../../subscriptions-client/types"; /** * AlSessionStartedEvent is broadcast by an AlSessionInstance whenever a new session is created by a successful authentication. */ export declare class AlSessionStartedEvent extends AlTriggeredEvent { user: AIMSUser; primaryAccount: AIMSAccount; constructor(user: AIMSUser, primaryAccount: AIMSAccount); } /** * AlSessionEndedEvent is broadcast by an AlSessionInstance whenever an existing session is destroyed. */ export declare class AlSessionEndedEvent extends AlTriggeredEvent { constructor(); } /** * AlActingAccountChangedEvent is broadcast by an AlSessionInstance whenever the acting account is initially changed. * This event should be regarded as the *beginning* of the account change process, and provides attentive services to opportunity to * flush any account-specific stateful data and any views to evaluate whether they are still valid. */ export declare class AlActingAccountChangedEvent extends AlTriggeredEvent { previousAccount: AIMSAccount; actingAccount: AIMSAccount; constructor(previousAccount: AIMSAccount, actingAccount: AIMSAccount); } /** * AlActingAccountResolvedEvent is broadcast by an AlSessionInstance whenever the acting account has been changed * and its roles, entitlements (acting and primary), and other state data have been retrieved from their respective services. * This event is the second half of the process whose beginning is indicated by AlActingAccountChangedEvent. */ export declare class AlActingAccountResolvedEvent extends AlTriggeredEvent { actingAccount: AIMSAccount; entitlements: AlEntitlementCollection; primaryEntitlements: AlEntitlementCollection; licenseAcceptance?: AIMSLicenseAcceptanceStatus; coreServiceError?: string; constructor(actingAccount: AIMSAccount, entitlements: AlEntitlementCollection, primaryEntitlements: AlEntitlementCollection, licenseAcceptance?: AIMSLicenseAcceptanceStatus, coreServiceError?: string); } /** * AlActiveDatacenterChangedEvent is broadcast by an AlSessionInstance whenever the active datacenter has been changed. */ export declare class AlActiveDatacenterChangedEvent extends AlTriggeredEvent { insightLocationId: string; residency: string; metadata: unknown; constructor(insightLocationId: string, residency: string, metadata: unknown); } /** * AlDatacenterSessionAvailable event is used by navigation layer to indicate when a given datacenter is ready to interact with. */ export declare class AlDatacenterSessionEstablishedEvent extends AlTriggeredEvent { insightLocationId: string; constructor(insightLocationId: string); } /** * AlDatacenterSessionError event is used to indicate when there is a problem establishing or persisting a session in an external datacenter. */ export declare class AlDatacenterSessionErrorEvent extends AlTriggeredEvent { insightLocationId: string; errorType: string; errorDetails: unknown; constructor(insightLocationId: string, errorType: string, errorDetails: unknown); } /** * AlExternalTrackableEvent is used to catch runtime metrics from embedded defender views and relay them to google analytics. */ export declare class AlExternalTrackableEvent extends AlTriggeredEvent { data: unknown; constructor(data: unknown); } /** * AlFortraTokenChangedEvent is emitted by an AlSessionInstance each time the Fortra token is refreshed. */ export declare class AlFortraTokenChangedEvent extends AlTriggeredEvent { token: string; constructor(token: string); }