@iblai/iblai-js 2.31.0 → 2.33.0
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.
- package/dist/data-layer/playwright/chat-privacy-helpers.d.ts +30 -15
- package/dist/data-layer/playwright/index.d.ts +1 -1
- package/dist/playwright/index.cjs +62 -21
- package/dist/playwright/index.cjs.map +1 -1
- package/dist/playwright/index.d.ts +31 -16
- package/dist/playwright/index.esm.js +62 -22
- package/dist/playwright/index.esm.js.map +1 -1
- package/dist/playwright/playwright/chat-privacy-helpers.d.ts +30 -15
- package/dist/playwright/playwright/index.d.ts +1 -1
- package/dist/security/playwright/chat-privacy-helpers.d.ts +30 -15
- package/dist/security/playwright/index.d.ts +1 -1
- package/dist/web-containers/playwright/chat-privacy-helpers.d.ts +30 -15
- package/dist/web-containers/playwright/index.d.ts +1 -1
- package/dist/web-containers/source/index.esm.js +45448 -44616
- package/dist/web-containers/source/next/index.esm.js +45346 -44564
- package/dist/web-utils/playwright/chat-privacy-helpers.d.ts +30 -15
- package/dist/web-utils/playwright/index.d.ts +1 -1
- package/package.json +4 -4
|
@@ -5,8 +5,8 @@ import { Locator, Page } from '@playwright/test';
|
|
|
5
5
|
* Three surfaces, three groups of helpers:
|
|
6
6
|
*
|
|
7
7
|
* 1. **Header toggle** — the nav-bar `ChatPrivacyToggle` (`<HatGlasses />`
|
|
8
|
-
* icon-button that morphs into the "
|
|
9
|
-
* 2. **User profile** — the "
|
|
8
|
+
* icon-button that morphs into the "Incognito" pill).
|
|
9
|
+
* 2. **User profile** — the "Privacy" tab in `UserProfileModal`
|
|
10
10
|
* (three radio-card options: Normal / Anonymized / Disabled).
|
|
11
11
|
* 3. **Tenant admin** — the "Allow users to control chat privacy" row in
|
|
12
12
|
* the Advanced settings tab (`<Switch>`).
|
|
@@ -20,21 +20,21 @@ import { Locator, Page } from '@playwright/test';
|
|
|
20
20
|
export declare const CHAT_PRIVACY_LABELS: {
|
|
21
21
|
readonly toggle: {
|
|
22
22
|
/** Title of the mid-session confirmation dialog. */
|
|
23
|
-
readonly dialogTitle: "Enable
|
|
23
|
+
readonly dialogTitle: "Enable Incognito for this chat?";
|
|
24
24
|
/** Label on the dialog's confirm button (matches both idle + busy state via regex). */
|
|
25
25
|
readonly dialogConfirm: RegExp;
|
|
26
26
|
};
|
|
27
27
|
readonly profileTab: {
|
|
28
|
-
/**
|
|
29
|
-
readonly tabName: "
|
|
28
|
+
/** Rail entry in the user profile modal (the feature inside is called Incognito). */
|
|
29
|
+
readonly tabName: "Privacy";
|
|
30
30
|
/** Section heading inside the tab body. */
|
|
31
|
-
readonly sectionHeading: "Default
|
|
31
|
+
readonly sectionHeading: "Default Incognito Setting";
|
|
32
32
|
/** Label text on each radio card. Kept in case the test wants to assert
|
|
33
33
|
* copy explicitly — the click + read paths use the testid instead. */
|
|
34
34
|
readonly cards: {
|
|
35
35
|
readonly normal: "Normal";
|
|
36
36
|
readonly anonymized: "Anonymized";
|
|
37
|
-
readonly disabled: "
|
|
37
|
+
readonly disabled: "Incognito";
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
40
|
readonly tenantToggle: {
|
|
@@ -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
|
|
77
|
-
* - Off → on (
|
|
78
|
-
* - On (
|
|
79
|
-
*
|
|
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. */
|
|
@@ -85,15 +87,28 @@ export declare function expectChatPrivacyConfirmDialogOpen(scope: Page | Locator
|
|
|
85
87
|
/**
|
|
86
88
|
* Mid-conversation enable flow:
|
|
87
89
|
* 1. Click the toggle (opens the confirm dialog).
|
|
88
|
-
* 2. Click the "Enable
|
|
89
|
-
*
|
|
90
|
-
*
|
|
90
|
+
* 2. Click the "Enable Incognito" action.
|
|
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
|
/**
|
|
96
|
-
* Switch to the
|
|
111
|
+
* Switch to the Privacy tab inside the user profile modal. Assumes
|
|
97
112
|
* the modal is already open. The tab only appears when the tenant has
|
|
98
113
|
* `allow_user_chat_privacy_control` on, so a `false` return from
|
|
99
114
|
* `isPrivateModeTabVisible` is a meaningful state, not an error.
|
|
@@ -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';
|
|
@@ -5,8 +5,8 @@ import { Locator, Page } from '@playwright/test';
|
|
|
5
5
|
* Three surfaces, three groups of helpers:
|
|
6
6
|
*
|
|
7
7
|
* 1. **Header toggle** — the nav-bar `ChatPrivacyToggle` (`<HatGlasses />`
|
|
8
|
-
* icon-button that morphs into the "
|
|
9
|
-
* 2. **User profile** — the "
|
|
8
|
+
* icon-button that morphs into the "Incognito" pill).
|
|
9
|
+
* 2. **User profile** — the "Privacy" tab in `UserProfileModal`
|
|
10
10
|
* (three radio-card options: Normal / Anonymized / Disabled).
|
|
11
11
|
* 3. **Tenant admin** — the "Allow users to control chat privacy" row in
|
|
12
12
|
* the Advanced settings tab (`<Switch>`).
|
|
@@ -20,21 +20,21 @@ import { Locator, Page } from '@playwright/test';
|
|
|
20
20
|
export declare const CHAT_PRIVACY_LABELS: {
|
|
21
21
|
readonly toggle: {
|
|
22
22
|
/** Title of the mid-session confirmation dialog. */
|
|
23
|
-
readonly dialogTitle: "Enable
|
|
23
|
+
readonly dialogTitle: "Enable Incognito for this chat?";
|
|
24
24
|
/** Label on the dialog's confirm button (matches both idle + busy state via regex). */
|
|
25
25
|
readonly dialogConfirm: RegExp;
|
|
26
26
|
};
|
|
27
27
|
readonly profileTab: {
|
|
28
|
-
/**
|
|
29
|
-
readonly tabName: "
|
|
28
|
+
/** Rail entry in the user profile modal (the feature inside is called Incognito). */
|
|
29
|
+
readonly tabName: "Privacy";
|
|
30
30
|
/** Section heading inside the tab body. */
|
|
31
|
-
readonly sectionHeading: "Default
|
|
31
|
+
readonly sectionHeading: "Default Incognito Setting";
|
|
32
32
|
/** Label text on each radio card. Kept in case the test wants to assert
|
|
33
33
|
* copy explicitly — the click + read paths use the testid instead. */
|
|
34
34
|
readonly cards: {
|
|
35
35
|
readonly normal: "Normal";
|
|
36
36
|
readonly anonymized: "Anonymized";
|
|
37
|
-
readonly disabled: "
|
|
37
|
+
readonly disabled: "Incognito";
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
40
|
readonly tenantToggle: {
|
|
@@ -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
|
|
77
|
-
* - Off → on (
|
|
78
|
-
* - On (
|
|
79
|
-
*
|
|
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. */
|
|
@@ -85,15 +87,28 @@ export declare function expectChatPrivacyConfirmDialogOpen(scope: Page | Locator
|
|
|
85
87
|
/**
|
|
86
88
|
* Mid-conversation enable flow:
|
|
87
89
|
* 1. Click the toggle (opens the confirm dialog).
|
|
88
|
-
* 2. Click the "Enable
|
|
89
|
-
*
|
|
90
|
-
*
|
|
90
|
+
* 2. Click the "Enable Incognito" action.
|
|
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
|
/**
|
|
96
|
-
* Switch to the
|
|
111
|
+
* Switch to the Privacy tab inside the user profile modal. Assumes
|
|
97
112
|
* the modal is already open. The tab only appears when the tenant has
|
|
98
113
|
* `allow_user_chat_privacy_control` on, so a `false` return from
|
|
99
114
|
* `isPrivateModeTabVisible` is a meaningful state, not an error.
|
|
@@ -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';
|
|
@@ -5,8 +5,8 @@ import { Locator, Page } from '@playwright/test';
|
|
|
5
5
|
* Three surfaces, three groups of helpers:
|
|
6
6
|
*
|
|
7
7
|
* 1. **Header toggle** — the nav-bar `ChatPrivacyToggle` (`<HatGlasses />`
|
|
8
|
-
* icon-button that morphs into the "
|
|
9
|
-
* 2. **User profile** — the "
|
|
8
|
+
* icon-button that morphs into the "Incognito" pill).
|
|
9
|
+
* 2. **User profile** — the "Privacy" tab in `UserProfileModal`
|
|
10
10
|
* (three radio-card options: Normal / Anonymized / Disabled).
|
|
11
11
|
* 3. **Tenant admin** — the "Allow users to control chat privacy" row in
|
|
12
12
|
* the Advanced settings tab (`<Switch>`).
|
|
@@ -20,21 +20,21 @@ import { Locator, Page } from '@playwright/test';
|
|
|
20
20
|
export declare const CHAT_PRIVACY_LABELS: {
|
|
21
21
|
readonly toggle: {
|
|
22
22
|
/** Title of the mid-session confirmation dialog. */
|
|
23
|
-
readonly dialogTitle: "Enable
|
|
23
|
+
readonly dialogTitle: "Enable Incognito for this chat?";
|
|
24
24
|
/** Label on the dialog's confirm button (matches both idle + busy state via regex). */
|
|
25
25
|
readonly dialogConfirm: RegExp;
|
|
26
26
|
};
|
|
27
27
|
readonly profileTab: {
|
|
28
|
-
/**
|
|
29
|
-
readonly tabName: "
|
|
28
|
+
/** Rail entry in the user profile modal (the feature inside is called Incognito). */
|
|
29
|
+
readonly tabName: "Privacy";
|
|
30
30
|
/** Section heading inside the tab body. */
|
|
31
|
-
readonly sectionHeading: "Default
|
|
31
|
+
readonly sectionHeading: "Default Incognito Setting";
|
|
32
32
|
/** Label text on each radio card. Kept in case the test wants to assert
|
|
33
33
|
* copy explicitly — the click + read paths use the testid instead. */
|
|
34
34
|
readonly cards: {
|
|
35
35
|
readonly normal: "Normal";
|
|
36
36
|
readonly anonymized: "Anonymized";
|
|
37
|
-
readonly disabled: "
|
|
37
|
+
readonly disabled: "Incognito";
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
40
|
readonly tenantToggle: {
|
|
@@ -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
|
|
77
|
-
* - Off → on (
|
|
78
|
-
* - On (
|
|
79
|
-
*
|
|
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. */
|
|
@@ -85,15 +87,28 @@ export declare function expectChatPrivacyConfirmDialogOpen(scope: Page | Locator
|
|
|
85
87
|
/**
|
|
86
88
|
* Mid-conversation enable flow:
|
|
87
89
|
* 1. Click the toggle (opens the confirm dialog).
|
|
88
|
-
* 2. Click the "Enable
|
|
89
|
-
*
|
|
90
|
-
*
|
|
90
|
+
* 2. Click the "Enable Incognito" action.
|
|
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
|
/**
|
|
96
|
-
* Switch to the
|
|
111
|
+
* Switch to the Privacy tab inside the user profile modal. Assumes
|
|
97
112
|
* the modal is already open. The tab only appears when the tenant has
|
|
98
113
|
* `allow_user_chat_privacy_control` on, so a `false` return from
|
|
99
114
|
* `isPrivateModeTabVisible` is a meaningful state, not an error.
|
|
@@ -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';
|