@developer.notchatbot/webchat 1.4.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,6 +12,7 @@ export declare const api: {
12
12
  readonly webchat: {
13
13
  readonly get: {
14
14
  readonly getConversationWithMessages: any;
15
+ readonly isWebchatActive: any;
15
16
  };
16
17
  };
17
18
  };
@@ -19,6 +20,7 @@ export declare const internal: {
19
20
  readonly webchat: {
20
21
  readonly get: {
21
22
  readonly getConversationWithMessages: any;
23
+ readonly isWebchatActive: any;
22
24
  };
23
25
  };
24
26
  };
@@ -21,6 +21,14 @@ export declare const initializeConvexConnection: (realtimeEndpoint: string, _cha
21
21
  * @returns Promise that resolves to conversation data with messages
22
22
  */
23
23
  export declare const fetchConversationFromConvex: (realtimeEndpoint: string, conversationId: string) => Promise<any>;
24
+ /**
25
+ * Watches webchat activation status for a given API key
26
+ * @param realtimeEndpoint Realtime service deployment URL
27
+ * @param apiKey API Key (chatbot UID)
28
+ * @param onActiveChange Callback when activation status changes
29
+ * @returns Promise that resolves to connection data with unsubscribe function
30
+ */
31
+ export declare const watchWebchatActive: (realtimeEndpoint: string, apiKey: string, onActiveChange: (isActive: boolean) => void) => Promise<ConvexConnectionData>;
24
32
  /**
25
33
  * Closes Convex connection safely
26
34
  * @param connectionData Convex connection data to close