session
const session: { getDeviceEvents: Promise<unknown[]>; get hitSessionId(): string | null;};Defined in: domains/session.ts:5
Type Declaration
Section titled “Type Declaration”getDeviceEvents()
Section titled “getDeviceEvents()”getDeviceEvents(): Promise<unknown[]>;Get all analytics events recorded during the current device session.
In the iOS app, fetches events from the server scoped to the current session. Outside the app (local development), returns events buffered in IndexedDB via localforage.
Returns
Section titled “Returns”Promise<unknown[]>
Array of raw event objects.
hitSessionId
Section titled “hitSessionId”Get Signature
Section titled “Get Signature”get hitSessionId(): string | null;The session id created from the JWT’s hit_uuid when the presentation was opened
via a shared link on the CDN, or null if not applicable or not yet created.
Returns
Section titled “Returns”string | null