admesh-ui-sdk
Version:
Beautiful, modern React components for displaying AI-powered product recommendations with citation-based conversation ads, auto-triggered widgets, floating chat, conversational interfaces, persistent sidebar, and built-in tracking. Includes zero-code SDK
41 lines • 1.58 kB
TypeScript
/**
* AdMesh Session Manager - PLATFORM UTILITY ONLY
*
* IMPORTANT: This is a utility class for PLATFORMS to use. The SDK itself
* NEVER instantiates or calls this class automatically.
*
* This manager is STATELESS regarding session storage.
* It only generates session IDs. Session storage and lifecycle management
* are the responsibility of the integrating application.
*
* The SDK does NOT store sessions in localStorage. Third-party applications
* (like Perplexica) are responsible for storing and managing session IDs
* in their own storage layer.
*
* CRITICAL: The SDK will throw an error if sessionId is not provided - it
* will NEVER auto-generate one using this manager.
*
* This design ensures:
* - The SDK remains stateless and portable
* - Applications have full control over session management
* - No conflicts with application-level session management
* - Better separation of concerns
*/
export declare class AdMeshSessionManager {
constructor();
/**
* PLATFORM UTILITY: Generate a unique session ID
*
* IMPORTANT: This method is for PLATFORMS to call. The SDK never calls this.
* Platforms must:
* 1. Call this method (or generate their own sessionId)
* 2. Store the sessionId in their own storage
* 3. Pass sessionId to AdMeshProvider and SDK methods
*
* The generated ID should be stored by the integrating application.
*
* @returns A unique session ID (platform must store and manage this)
*/
createSession(): string;
}
//# sourceMappingURL=AdMeshSessionManager.d.ts.map