/** * AgentAI Web SDK - Node.js Entry Point * * This is the headless version of the SDK designed for Node.js environments. * It provides socket connection and messaging capabilities without UI components. * * Usage: * ```typescript * import { AAWindowHeadless, AAConfig } from '@koreai/agentai-web-sdk/node'; * * const sdk = new AAWindowHeadless(); * * await sdk.connect({ * connectionDetails: { * conversationId: 'your-conversation-id', * botId: 'your-bot-id', * domainURL: 'https://your-domain.kore.ai', * token: 'your-jwt-token', * channel: 'chat' * } * }); * * // Listen for events * sdk.on('READY', () => { * console.log('SDK is ready'); * }); * * // Send messages * sdk.sendUserMessage({ * author: { type: 'user', firstName: 'John' }, * message: 'Hello!' * }); * * sdk.sendAgentMessage({ * author: { type: 'agent', firstName: 'Support' }, * message: 'How can I help you?' * }); * ``` */ import AAWindowHeadless, { AAWindowHeadlessConfig } from './components/aaWindow/aaWindowHeadless'; import AAConfig from './components/aaWindow/config/kore-config'; import { IStorageAdapter, InMemoryStorageAdapter, getStorageAdapter } from './components/common/services/storage-adapter'; import { EVENTS, SDK_EVENTS, DATA_EVENTS, INTERNAL_EVENTS, EVENTS_TO_SDK } from './components/common/constants/events.cnst'; export { AAWindowHeadless, AAConfig, IStorageAdapter, InMemoryStorageAdapter, getStorageAdapter, EVENTS, SDK_EVENTS, DATA_EVENTS, INTERNAL_EVENTS, EVENTS_TO_SDK }; export type { AAWindowHeadlessConfig }; declare const _default: { AAWindowHeadless: typeof AAWindowHeadless; AAConfig: any; InMemoryStorageAdapter: typeof InMemoryStorageAdapter; getStorageAdapter: typeof getStorageAdapter; EVENTS: typeof EVENTS; SDK_EVENTS: typeof SDK_EVENTS; DATA_EVENTS: typeof DATA_EVENTS; INTERNAL_EVENTS: typeof INTERNAL_EVENTS; EVENTS_TO_SDK: typeof EVENTS_TO_SDK; }; export default _default;