@iblai/web-utils 1.11.0 → 1.11.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.
- package/dist/data-layer/src/features/chat-privacy/api-slice.d.ts +1398 -0
- package/dist/data-layer/src/features/chat-privacy/constants.d.ts +13 -0
- package/dist/data-layer/src/index.d.ts +2 -0
- package/dist/index.d.ts +1 -1
- package/dist/package.json +1 -1
- package/dist/web-utils/src/index.mobile.d.ts +8 -0
- package/dist/web-utils/src/index.web.d.ts +8 -0
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Chat-privacy modes mirror the backend `ChatPrivacyModeEnum`. Kept as
|
|
3
|
+
* string-literal constants here so the data-layer doesn't depend on the
|
|
4
|
+
* generated `@iblai/iblai-api` types for this feature — swap to the
|
|
5
|
+
* generated enum once the client is regenerated.
|
|
6
|
+
*/
|
|
7
|
+
export type ChatPrivacyMode = 'normal' | 'anonymized' | 'disabled';
|
|
8
|
+
export declare const ChatPrivacyModeEnum: {
|
|
9
|
+
readonly NORMAL: "normal";
|
|
10
|
+
readonly ANONYMIZED: "anonymized";
|
|
11
|
+
readonly DISABLED: "disabled";
|
|
12
|
+
};
|
|
13
|
+
export declare const CHAT_PRIVACY_MODES: ChatPrivacyMode[];
|
|
@@ -21,6 +21,8 @@ export * from './features/core/constants';
|
|
|
21
21
|
export * from './features/skills/api-slice';
|
|
22
22
|
export * from './features/credentials/api-slice';
|
|
23
23
|
export * from './features/credentials/types';
|
|
24
|
+
export * from './features/chat-privacy/api-slice';
|
|
25
|
+
export * from './features/chat-privacy/constants';
|
|
24
26
|
export * from './features/user-invitations/api-slice';
|
|
25
27
|
export * from './features/apps/api-slice';
|
|
26
28
|
export * from './features/billing/api-slice';
|
package/dist/index.d.ts
CHANGED
|
@@ -1101,7 +1101,7 @@ declare const isNode: () => string | false;
|
|
|
1101
1101
|
declare const isExpo: () => any;
|
|
1102
1102
|
declare const isTauri: () => boolean;
|
|
1103
1103
|
declare function isSafariBrowser(): boolean;
|
|
1104
|
-
declare const getPlatform: () => "
|
|
1104
|
+
declare const getPlatform: () => "react-native" | "web" | "node" | "unknown";
|
|
1105
1105
|
declare const safeRequire: (moduleName: string) => any;
|
|
1106
1106
|
declare const getNextNavigation: () => any;
|
|
1107
1107
|
|
package/dist/package.json
CHANGED
|
@@ -3,6 +3,7 @@ import { useAdvancedChat as _useAdvancedChat } from "./hooks/chat/use-advanced-c
|
|
|
3
3
|
import { useTimeTracker as _useTimeTracker } from "./features/tracking/use-time-tracker";
|
|
4
4
|
import { useMentorSettings as _useMentorSettings } from "./hooks/use-mentor-settings";
|
|
5
5
|
import { getTimeAgo as _getTimeAgo } from "./utils";
|
|
6
|
+
import { useCachedSessionId as _useCachedSessionId } from "./hooks/use-cached-session-id";
|
|
6
7
|
export declare const useGetChatDetails: typeof _useGetChatDetails;
|
|
7
8
|
export declare const useAdvancedChat: typeof _useAdvancedChat;
|
|
8
9
|
export declare const useTimeTracker: typeof _useTimeTracker;
|
|
@@ -74,5 +75,12 @@ export declare const chatActions: import("@reduxjs/toolkit").CaseReducerActions<
|
|
|
74
75
|
export declare const selectSessionId: (state: {
|
|
75
76
|
chatSliceShared: import("./features/chat/slice").ChatSliceState;
|
|
76
77
|
}) => string;
|
|
78
|
+
export declare const selectNumberOfActiveChatMessages: (state: {
|
|
79
|
+
chatSliceShared: import("./features/chat/slice").ChatSliceState;
|
|
80
|
+
}) => number;
|
|
81
|
+
export declare const selectActiveChatMessages: (state: {
|
|
82
|
+
chatSliceShared: import("./features/chat/slice").ChatSliceState;
|
|
83
|
+
}) => import("./hooks/chat/use-chat-v2").Message[];
|
|
84
|
+
export declare const useCachedSessionId: typeof _useCachedSessionId;
|
|
77
85
|
export type { ChatMode } from "./types";
|
|
78
86
|
export type { OAuthRequiredData, OAuthResolvedData, } from "./hooks/chat/use-chat-v2";
|
|
@@ -5,6 +5,7 @@ import { useMentorSettings as _useMentorSettings } from "./hooks/use-mentor-sett
|
|
|
5
5
|
import { getTimeAgo as _getTimeAgo } from "./utils";
|
|
6
6
|
import { isInIframe as _isInIframe, sendMessageToParentWebsite as _sendMessageToParentWebsite, deleteCookie as _deleteCookie, getDomainParts as _getDomainParts, deleteCookieOnAllDomains as _deleteCookieOnAllDomains, getParentDomain as _getParentDomain, setCookieForAuth as _setCookieForAuth, clearCookies as _clearCookies, isLoggedIn as _isLoggedIn, getPlatformKey as _getPlatformKey, redirectToAuthSpa as _redirectToAuthSpa, getAuthSpaJoinUrl as _getAuthSpaJoinUrl, redirectToAuthSpaJoinTenant as _redirectToAuthSpaJoinTenant, handleLogout as _handleLogout, handleTenantSwitch as _handleTenantSwitch, getTabId as _getTabId, readTenantSwitchLock as _readTenantSwitchLock, writeTenantSwitchLock as _writeTenantSwitchLock, refreshTenantSwitchLock as _refreshTenantSwitchLock, clearTenantSwitchLock as _clearTenantSwitchLock, isTenantSwitchInProgress as _isTenantSwitchInProgress } from "./utils/auth";
|
|
7
7
|
import { useTenantSwitchSync as _useTenantSwitchSync } from "./hooks/use-tenant-switch-sync";
|
|
8
|
+
import { useCachedSessionId as _useCachedSessionId } from "./hooks/use-cached-session-id";
|
|
8
9
|
import { AuthProvider as _AuthProvider, TenantProvider as _TenantProvider, MentorProvider as _MentorProvider } from "./providers";
|
|
9
10
|
import { useSearchParams as _useSearchParams, useParams as _useParams, useRouter as _useRouter, usePathname as _usePathname } from "next/navigation";
|
|
10
11
|
export declare const useGetChatDetails: typeof _useGetChatDetails;
|
|
@@ -100,6 +101,13 @@ export declare const chatActions: import("@reduxjs/toolkit").CaseReducerActions<
|
|
|
100
101
|
export declare const selectSessionId: (state: {
|
|
101
102
|
chatSliceShared: import("./features/chat/slice").ChatSliceState;
|
|
102
103
|
}) => string;
|
|
104
|
+
export declare const selectNumberOfActiveChatMessages: (state: {
|
|
105
|
+
chatSliceShared: import("./features/chat/slice").ChatSliceState;
|
|
106
|
+
}) => number;
|
|
107
|
+
export declare const selectActiveChatMessages: (state: {
|
|
108
|
+
chatSliceShared: import("./features/chat/slice").ChatSliceState;
|
|
109
|
+
}) => import("./hooks/chat/use-chat-v2").Message[];
|
|
110
|
+
export declare const useCachedSessionId: typeof _useCachedSessionId;
|
|
103
111
|
export declare const AuthProvider: typeof _AuthProvider;
|
|
104
112
|
export declare const TenantProvider: typeof _TenantProvider;
|
|
105
113
|
export declare const MentorProvider: typeof _MentorProvider;
|