@iblai/iblai-js 2.32.0 → 2.33.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.
@@ -73,10 +73,12 @@ export declare function expectChatPrivacySource(scope: Page | Locator, source: C
73
73
  */
74
74
  export declare function expectChatPrivacyLocked(scope: Page | Locator, locked: boolean): Promise<void>;
75
75
  /**
76
- * Click the toggle. Covers two scenarios:
77
- * - Off → on (with no user messages) → starts a fresh private session.
78
- * - On (user-initiated, no user messages) → starts a fresh normal session.
79
- * Use `confirmEnableChatPrivacyMidSession` for the mid-conversation flow.
76
+ * Click the toggle. Covers the no-dialog transitions:
77
+ * - Off → on (no user messages) → starts a fresh private session.
78
+ * - On → off (no user messages) → starts a fresh normal session.
79
+ * - On → off (user messages sent) → resumes history on the same session;
80
+ * `turnOffChatPrivacyMidSession` wraps this with the state assertion.
81
+ * Use `confirmEnableChatPrivacyMidSession` for the mid-conversation enable.
80
82
  */
81
83
  export declare function clickChatPrivacyToggle(scope: Page | Locator): Promise<void>;
82
84
  /** Locator for the AlertDialog content that the mid-session enable opens. */
@@ -86,10 +88,23 @@ export declare function expectChatPrivacyConfirmDialogOpen(scope: Page | Locator
86
88
  * Mid-conversation enable flow:
87
89
  * 1. Click the toggle (opens the confirm dialog).
88
90
  * 2. Click the "Enable Incognito" action.
89
- * The session-level disable-chathistory POST is one-way per spec; the
90
- * helper resolves once the dialog closes after a successful confirm.
91
+ * Waits for any in-flight reply first (the toggle is `aria-disabled`
92
+ * meanwhile). Earlier messages stay in history and the flip is reversible
93
+ * (see `turnOffChatPrivacyMidSession`); the helper resolves once the dialog
94
+ * closes — which it also does when the backend refuses.
91
95
  */
92
96
  export declare function confirmEnableChatPrivacyMidSession(scope: Page | Locator): Promise<void>;
97
+ /**
98
+ * Mid-conversation turn-off: with Incognito on and user messages sent, one
99
+ * click POSTs `disable_chathistory: false` on the same session — no dialog —
100
+ * and history resumes. Resolves once the backend accepted the flip and the
101
+ * effective mode refetched; fails with the response status when it refuses.
102
+ * The toggle flips to `off` optimistically before the answer, so `data-state`
103
+ * alone proves nothing. It unmounts after a successful off on an agent with
104
+ * Never Incognito; that counts as off. A conversation that started in
105
+ * Incognito never gets here: its toggle is locked on.
106
+ */
107
+ export declare function turnOffChatPrivacyMidSession(scope: Page | Locator): Promise<void>;
93
108
  /** Cancel the confirm dialog without enabling. */
94
109
  export declare function cancelEnableChatPrivacyMidSession(scope: Page | Locator): Promise<void>;
95
110
  /**
@@ -27,7 +27,7 @@ export { getCurrentTenantShowPaywall, creditBalanceTrigger, creditBalancePanel,
27
27
  export type { CreditBalancePlan } from './credit-balance-helpers';
28
28
  export { PRIVACY_LABELS, isPrivacyTabVisible, switchToPrivacyTab, expectPrivacyFieldsHidden, expectPrivacyFieldsVisible, selectPrivacyAction, setBlockMessage, getEntityChip, setEntitySelected, expectEntitySelected, getOutputFilterSwitch, setOutputFilterEnabled, expectOutputFilterEnabled, } from './privacy-tab-helpers';
29
29
  export type { PrivacyAction, PrivacyEntity } from './privacy-tab-helpers';
30
- export { CHAT_PRIVACY_LABELS, getChatPrivacyToggle, expectChatPrivacyToggleVisible, expectChatPrivacyState, expectChatPrivacySource, expectChatPrivacyLocked, clickChatPrivacyToggle, getChatPrivacyConfirmDialog, expectChatPrivacyConfirmDialogOpen, confirmEnableChatPrivacyMidSession, cancelEnableChatPrivacyMidSession, isPrivateModeTabVisible, switchToPrivateModeTab, getPrivateModeCard, selectPrivateMode, expectPrivateModeSelected, expectPrivateModeTabReady, getTenantChatPrivacySwitch, getTenantChatPrivacyRow, expectTenantChatPrivacyVisible, expectTenantChatPrivacyEnabled, setTenantChatPrivacyEnabled, } from './chat-privacy-helpers';
30
+ export { CHAT_PRIVACY_LABELS, getChatPrivacyToggle, expectChatPrivacyToggleVisible, expectChatPrivacyState, expectChatPrivacySource, expectChatPrivacyLocked, clickChatPrivacyToggle, getChatPrivacyConfirmDialog, expectChatPrivacyConfirmDialogOpen, confirmEnableChatPrivacyMidSession, turnOffChatPrivacyMidSession, cancelEnableChatPrivacyMidSession, isPrivateModeTabVisible, switchToPrivateModeTab, getPrivateModeCard, selectPrivateMode, expectPrivateModeSelected, expectPrivateModeTabReady, getTenantChatPrivacySwitch, getTenantChatPrivacyRow, expectTenantChatPrivacyVisible, expectTenantChatPrivacyEnabled, setTenantChatPrivacyEnabled, } from './chat-privacy-helpers';
31
31
  export type { ChatPrivacyMode, ChatPrivacySource, ChatPrivacyToggleState, } from './chat-privacy-helpers';
32
32
  export { VOICE_LABELS, isVoiceTabVisible, switchToVoiceTab, switchToVoiceSubTab, getVoiceProviderCard, selectVoiceProvider, expectVoiceProviderSelected, openMentorVoicePicker, openCallConfigVoicePicker, previewMentorVoiceInline, previewCallConfigVoiceInline, expectMentorVoiceTriggerShows, expectCallConfigVoiceTriggerShows, searchVoices, getVoiceRow, expectVoiceVisible, selectVoice, previewVoice, openVoiceInstructionsEditor, setVoiceInstructions, expectVoiceInstructionsValue, applyVoiceInstructionsPreset, saveVoiceSettings, getCallConfigForm, expectCallConfigVisible, selectCallMode, setCallLanguage, selectLlmProvider, selectTtsProvider, selectSttProvider, expectTtsSelectDisabled, expectSttSelectDisabled, setUseFunctionCallingEnabled, setEnableVideo, saveCallConfig, resetCallConfig, } from './voice-tab-helpers';
33
33
  export type { VoiceProvider, VoiceInstructionsPreset, CallMode, TtsProvider, SttProvider, LlmProvider, } from './voice-tab-helpers';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iblai/iblai-js",
3
- "version": "2.32.0",
3
+ "version": "2.33.1",
4
4
  "description": "Unified JavaScript SDK for IBL.ai — re-exports data-layer, web-containers, and web-utils under a single package",
5
5
  "type": "module",
6
6
  "engines": {
@@ -76,9 +76,9 @@
76
76
  "axios": "1.13.6",
77
77
  "dotenv": "16.6.1",
78
78
  "winston": "3.19.0",
79
- "@iblai/data-layer": "1.28.0",
80
- "@iblai/mcp": "1.27.0",
81
- "@iblai/web-containers": "1.37.0",
79
+ "@iblai/data-layer": "1.29.1",
80
+ "@iblai/mcp": "1.28.0",
81
+ "@iblai/web-containers": "1.38.0",
82
82
  "@iblai/web-utils": "2.6.1"
83
83
  },
84
84
  "peerDependencies": {