@cimulate/copilot-widget 1.12.1 → 1.12.2

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.
@@ -292,6 +292,12 @@ export declare interface MessagingContextType {
292
292
  /** Whether the messaging is currently loading */
293
293
  loading: boolean;
294
294
  error: string | null;
295
+ /**
296
+ * True when an idle session expired in the background and its restart was
297
+ * deferred until the user interacts. The composer stays enabled in this
298
+ * state so the next message can trigger a fresh session.
299
+ */
300
+ sessionExpired: boolean;
295
301
  sendMessage: (text: string) => void;
296
302
  resetConversation: () => void;
297
303
  }
@@ -391,6 +397,13 @@ declare interface MessagingState {
391
397
  progressMessage: string;
392
398
  routingResult: AgentforceRoutingResultEvent | null;
393
399
  error: string | null;
400
+ /**
401
+ * True when the anonymous session/token expired in the background (idle) and
402
+ * we deferred restarting it. The restart is postponed until the user actually
403
+ * interacts (sends a message), rather than silently spinning up a new
404
+ * server-side conversation while the widget sits idle.
405
+ */
406
+ sessionExpired: boolean;
394
407
  }
395
408
 
396
409
  declare type ProductCarouselProduct = {