@chaseleto/sessions-sdk
Version:
Privacy-conscious session recording SDK for self-hosted session tracking
34 lines • 1.24 kB
TypeScript
import { SessionSDK } from './session-sdk';
import { SessionSDKOptions } from './types';
/**
* Initialize the session SDK with the given API key and options
*/
export declare function init(apiKey: string, options?: SessionSDKOptions): SessionSDK;
/**
* Get the global SDK instance
*/
export declare function getInstance(): SessionSDK | null;
/**
* Stop recording and destroy the SDK instance
*/
export declare function destroy(): void;
/**
* Set custom attributes for the current session
*/
export declare function setAttributes(attributes: Record<string, any>): void;
/**
* Set user ID for the current session
*/
export declare function setUserId(userId: string): void;
/**
* Get the current session ID
*/
export declare function getSessionId(): string | null;
/**
* Check if recording is currently active
*/
export declare function isActive(): boolean;
export { SessionSDK };
export type { SessionSDKOptions, SessionData, SessionEvent, ConsoleLog, NetworkRequest } from './types';
export { useSessionRecording, SessionRecorder, withSessionRecording, initSessionRecording, updateUserId, updateAttributes, getCurrentSessionId, isRecordingActive, destroySessionRecording } from './nextjs';
//# sourceMappingURL=index.d.ts.map