@iblai/web-utils 1.11.8 → 1.11.10
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/auth/index.esm.js.map +1 -1
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/web-utils/src/__tests__/index.mobile.test.d.ts +7 -0
- package/dist/auth/web-utils/src/__tests__/index.web.test.d.ts +8 -0
- package/dist/auth/web-utils/src/constants/__tests__/chat.test.d.ts +1 -0
- package/dist/auth/web-utils/src/constants/chat.d.ts +8 -0
- package/dist/auth/web-utils/src/features/apple-restriction/__tests__/slice.test.d.ts +1 -0
- package/dist/auth/web-utils/src/features/apple-restriction/slice.d.ts +7 -0
- package/dist/auth/web-utils/src/features/chat/__tests__/slice.test.d.ts +1 -0
- package/dist/auth/web-utils/src/features/chat/slice.d.ts +164 -0
- package/dist/auth/web-utils/src/features/chat-input/__tests__/api-slice.test.d.ts +1 -0
- package/dist/auth/web-utils/src/features/chat-input/api-slice.d.ts +12 -0
- package/dist/auth/web-utils/src/features/csv/combine-csv.d.ts +35 -0
- package/dist/auth/web-utils/src/features/csv/index.d.ts +1 -0
- package/dist/auth/web-utils/src/features/files/__tests__/filesSlice.test.d.ts +1 -0
- package/dist/auth/web-utils/src/features/files/filesSlice.d.ts +23 -0
- package/dist/auth/web-utils/src/features/host-chat/__tests__/slice.test.d.ts +1 -0
- package/dist/auth/web-utils/src/features/host-chat/slice.d.ts +17 -0
- package/dist/auth/web-utils/src/features/index.d.ts +11 -0
- package/dist/auth/web-utils/src/features/monetization/__tests__/slice.test.d.ts +1 -0
- package/dist/auth/web-utils/src/features/monetization/slice.d.ts +16 -0
- package/dist/auth/web-utils/src/features/rbac/__tests__/rbac-slice.test.d.ts +1 -0
- package/dist/auth/web-utils/src/features/rbac/rbac-slice.d.ts +13 -0
- package/dist/auth/web-utils/src/features/subscription/__tests__/slice.test.d.ts +1 -0
- package/dist/auth/web-utils/src/features/subscription/constants.d.ts +12 -0
- package/dist/auth/web-utils/src/features/subscription/slice.d.ts +28 -0
- package/dist/auth/web-utils/src/features/top-banner/__tests__/slice.test.d.ts +1 -0
- package/dist/auth/web-utils/src/features/top-banner/slice.d.ts +24 -0
- package/dist/auth/web-utils/src/features/tracking/__tests__/time-tracker.test.d.ts +1 -0
- package/dist/auth/web-utils/src/features/tracking/examples.d.ts +4 -0
- package/dist/auth/web-utils/src/features/tracking/index.d.ts +6 -0
- package/dist/auth/web-utils/src/features/tracking/time-tracker.d.ts +29 -0
- package/dist/auth/web-utils/src/features/tracking/use-time-tracker-native.d.ts +14 -0
- package/dist/auth/web-utils/src/features/tracking/use-time-tracker.d.ts +14 -0
- package/dist/auth/web-utils/src/hoc/index.d.ts +2 -0
- package/dist/auth/web-utils/src/hoc/with-permissions.d.ts +44 -0
- package/dist/auth/web-utils/src/hooks/__tests__/use-accessing-public-route.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/__tests__/use-cached-session-id.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/__tests__/use-chat-file-upload.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/__tests__/use-embed-mode.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/__tests__/use-event-callback.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/__tests__/use-event-listener.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/__tests__/use-file-drag-drop.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/__tests__/use-local-storage.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/__tests__/use-mentor-settings.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/__tests__/use-model-file-upload-capabilities.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/__tests__/use-os.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/__tests__/use-responsive.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/__tests__/use-show-attachment.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/__tests__/use-show-free-trial-dialog.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/__tests__/use-show-voice-call.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/__tests__/use-show-voice-recorder.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/__tests__/use-timer.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/__tests__/use-tokens.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/__tests__/use-user-agreement.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/__tests__/use-user.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/__tests__/use-voice-chat.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/__tests__/use-welcome-message.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/chat/__tests__/chat-history.utils.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/chat/chat-history.utils.d.ts +10 -0
- package/dist/auth/web-utils/src/hooks/chat/ollama-client.d.ts +57 -0
- package/dist/auth/web-utils/src/hooks/chat/use-advanced-chat.d.ts +61 -0
- package/dist/auth/web-utils/src/hooks/chat/use-advanced-chat.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/chat/use-chat-history.d.ts +17 -0
- package/dist/auth/web-utils/src/hooks/chat/use-chat-v2.d.ts +146 -0
- package/dist/auth/web-utils/src/hooks/chat/use-chat-v2.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/chat/use-chat.d.ts +53 -0
- package/dist/auth/web-utils/src/hooks/chat/use-get-chat-details.d.ts +14 -0
- package/dist/auth/web-utils/src/hooks/chat/use-get-chat-details.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/chat/use-mentor-tools.d.ts +24 -0
- package/dist/auth/web-utils/src/hooks/chat/use-mentor-tools.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/index.d.ts +42 -0
- package/dist/auth/web-utils/src/hooks/profile/use-profile-image-upload.d.ts +13 -0
- package/dist/auth/web-utils/src/hooks/profile/use-user-profile-update.d.ts +28 -0
- package/dist/auth/web-utils/src/hooks/stripe/__tests__/use-stripe-upgrade.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/stripe/use-stripe-upgrade.d.ts +14 -0
- package/dist/auth/web-utils/src/hooks/subscription/class-subscription-flow.d.ts +70 -0
- package/dist/auth/web-utils/src/hooks/subscription/constants.d.ts +4 -0
- package/dist/auth/web-utils/src/hooks/subscription/use-subscription-handler.d.ts +11 -0
- package/dist/auth/web-utils/src/hooks/subscription-v2/__tests__/use-402-error-check.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/subscription-v2/class-subscription-flow.d.ts +78 -0
- package/dist/auth/web-utils/src/hooks/subscription-v2/constants.d.ts +56 -0
- package/dist/auth/web-utils/src/hooks/subscription-v2/use-402-error-check.d.ts +22 -0
- package/dist/auth/web-utils/src/hooks/subscription-v2/use-external-pricing-plan.d.ts +7 -0
- package/dist/auth/web-utils/src/hooks/subscription-v2/use-subscription-handler.d.ts +71 -0
- package/dist/auth/web-utils/src/hooks/tenant-metadata/__tests__/config-loader.test.d.ts +10 -0
- package/dist/auth/web-utils/src/hooks/tenant-metadata/__tests__/use-tenant-metadata.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/tenant-metadata/config-loader.d.ts +41 -0
- package/dist/auth/web-utils/src/hooks/tenant-metadata/constants.d.ts +9 -0
- package/dist/auth/web-utils/src/hooks/tenant-metadata/index.d.ts +5 -0
- package/dist/auth/web-utils/src/hooks/tenant-metadata/types.d.ts +9 -0
- package/dist/auth/web-utils/src/hooks/tenant-metadata/use-tenant-metadata.d.ts +29 -0
- package/dist/auth/web-utils/src/hooks/use-accessing-public-route.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/use-cached-session-id.d.ts +8 -0
- package/dist/auth/web-utils/src/hooks/use-chat-file-upload.d.ts +17 -0
- package/dist/auth/web-utils/src/hooks/use-day-js.d.ts +7 -0
- package/dist/auth/web-utils/src/hooks/use-embed-mode.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/use-event-callback.d.ts +2 -0
- package/dist/auth/web-utils/src/hooks/use-event-listener.d.ts +6 -0
- package/dist/auth/web-utils/src/hooks/use-file-drag-drop.d.ts +15 -0
- package/dist/auth/web-utils/src/hooks/use-isomorphic-layout-effect.d.ts +2 -0
- package/dist/auth/web-utils/src/hooks/use-local-storage.d.ts +13 -0
- package/dist/auth/web-utils/src/hooks/use-mentor-settings.d.ts +46 -0
- package/dist/auth/web-utils/src/hooks/use-model-file-upload-capabilities.d.ts +21 -0
- package/dist/auth/web-utils/src/hooks/use-os.d.ts +8 -0
- package/dist/auth/web-utils/src/hooks/use-responsive.d.ts +13 -0
- package/dist/auth/web-utils/src/hooks/use-show-attachment.d.ts +7 -0
- package/dist/auth/web-utils/src/hooks/use-show-free-trial-dialog.d.ts +31 -0
- package/dist/auth/web-utils/src/hooks/use-show-voice-call.d.ts +7 -0
- package/dist/auth/web-utils/src/hooks/use-show-voice-recorder.d.ts +7 -0
- package/dist/auth/web-utils/src/hooks/use-tenant-switch-sync.d.ts +13 -0
- package/dist/auth/web-utils/src/hooks/use-timer.d.ts +7 -0
- package/dist/auth/web-utils/src/hooks/use-tokens.d.ts +2 -0
- package/dist/auth/web-utils/src/hooks/use-user-agreement.d.ts +18 -0
- package/dist/auth/web-utils/src/hooks/use-user.d.ts +23 -0
- package/dist/auth/web-utils/src/hooks/use-voice-chat.d.ts +11 -0
- package/dist/auth/web-utils/src/hooks/use-welcome-message.d.ts +16 -0
- package/dist/auth/web-utils/src/index.d.ts +8 -0
- package/dist/auth/web-utils/src/index.mobile.d.ts +86 -0
- package/dist/auth/web-utils/src/index.web.d.ts +142 -0
- package/dist/auth/web-utils/src/providers/__tests__/auth-provider.test.d.ts +1 -0
- package/dist/auth/web-utils/src/providers/__tests__/mentor-provider.test.d.ts +1 -0
- package/dist/auth/web-utils/src/providers/__tests__/service-worker-provider.test.d.ts +1 -0
- package/dist/auth/web-utils/src/providers/__tests__/tenant-provider.test.d.ts +1 -0
- package/dist/auth/web-utils/src/providers/auth-provider.d.ts +129 -0
- package/dist/auth/web-utils/src/providers/index.d.ts +4 -0
- package/dist/auth/web-utils/src/providers/mentor-provider.d.ts +44 -0
- package/dist/auth/web-utils/src/providers/service-worker-provider.d.ts +21 -0
- package/dist/auth/web-utils/src/providers/tenant-provider.d.ts +77 -0
- package/dist/auth/web-utils/src/services/__tests__/event-bus.test.d.ts +1 -0
- package/dist/auth/web-utils/src/services/__tests__/file-upload.test.d.ts +1 -0
- package/dist/auth/web-utils/src/services/__tests__/register-sw.test.d.ts +1 -0
- package/dist/auth/web-utils/src/services/event-bus.d.ts +6 -0
- package/dist/auth/web-utils/src/services/file-upload.d.ts +60 -0
- package/dist/auth/web-utils/src/services/index.d.ts +3 -0
- package/dist/auth/web-utils/src/services/register-sw.d.ts +71 -0
- package/dist/auth/web-utils/src/types/chat.d.ts +1 -0
- package/dist/auth/web-utils/src/types/file-upload.d.ts +62 -0
- package/dist/auth/web-utils/src/types/index.d.ts +68 -0
- package/dist/auth/web-utils/src/types/subscription.d.ts +40 -0
- package/dist/auth/web-utils/src/utils/__tests__/auth.test.d.ts +1 -0
- package/dist/auth/web-utils/src/utils/__tests__/constants.test.d.ts +1 -0
- package/dist/auth/web-utils/src/utils/__tests__/helpers.test.d.ts +1 -0
- package/dist/auth/web-utils/src/utils/__tests__/platform.test.d.ts +1 -0
- package/dist/auth/web-utils/src/utils/__tests__/tauri-api-cache.test.d.ts +1 -0
- package/dist/auth/web-utils/src/utils/__tests__/tenant-switch.test.d.ts +1 -0
- package/dist/auth/web-utils/src/utils/constants.d.ts +69 -0
- package/dist/auth/web-utils/src/utils/data/__tests__/advanced-tab.test.d.ts +1 -0
- package/dist/auth/web-utils/src/utils/data/advanced-tab.d.ts +62 -0
- package/dist/auth/web-utils/src/utils/helpers.d.ts +33 -0
- package/dist/auth/web-utils/src/utils/index.d.ts +6 -0
- package/dist/auth/web-utils/src/utils/platform.d.ts +9 -0
- package/dist/auth/web-utils/src/utils/tauri-api-cache.d.ts +19 -0
- package/dist/index.esm.js +575 -262
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +588 -275
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -2
- package/dist/web-utils/src/hooks/chat/use-advanced-chat.d.ts +4 -4
- package/dist/web-utils/src/hooks/subscription-v2/use-subscription-handler.d.ts +3 -3
- package/dist/web-utils/src/hooks/tenant-metadata/use-tenant-metadata.d.ts +3 -3
- package/dist/web-utils/src/hooks/use-isomorphic-layout-effect.d.ts +2 -2
- package/dist/web-utils/src/hooks/use-mentor-settings.d.ts +21 -21
- package/dist/web-utils/src/hooks/use-user-agreement.d.ts +3 -6
- package/dist/web-utils/tsconfig.tsbuildinfo +1 -0
- package/package.json +1 -2
- package/dist/data-layer/src/config.d.ts +0 -8
- package/dist/data-layer/src/constants.d.ts +0 -31
- package/dist/data-layer/src/core/index.d.ts +0 -11
- package/dist/data-layer/src/features/analytics/api-slice.d.ts +0 -3756
- package/dist/data-layer/src/features/analytics/constants.d.ts +0 -133
- package/dist/data-layer/src/features/analytics/custom-api-slice.d.ts +0 -8
- package/dist/data-layer/src/features/analytics/types.d.ts +0 -696
- package/dist/data-layer/src/features/api-keys/api-slice.d.ts +0 -702
- package/dist/data-layer/src/features/apps/api-slice.d.ts +0 -720
- package/dist/data-layer/src/features/artifacts/api-slice.d.ts +0 -1798
- package/dist/data-layer/src/features/artifacts/constants.d.ts +0 -42
- package/dist/data-layer/src/features/artifacts/types.d.ts +0 -37
- package/dist/data-layer/src/features/audit-logs/api-slice.d.ts +0 -268
- package/dist/data-layer/src/features/audit-logs/constants.d.ts +0 -11
- package/dist/data-layer/src/features/audit-logs/types.d.ts +0 -32
- package/dist/data-layer/src/features/auth/api-slice.d.ts +0 -639
- package/dist/data-layer/src/features/auth/constants.d.ts +0 -20
- package/dist/data-layer/src/features/auth/types.d.ts +0 -33
- package/dist/data-layer/src/features/billing/api-slice.d.ts +0 -359
- package/dist/data-layer/src/features/billing/constants.d.ts +0 -16
- package/dist/data-layer/src/features/billing/custom-api-slice.d.ts +0 -634
- package/dist/data-layer/src/features/billing/types.d.ts +0 -36
- package/dist/data-layer/src/features/call-configurations/api-slice.d.ts +0 -855
- package/dist/data-layer/src/features/call-configurations/constants.d.ts +0 -16
- package/dist/data-layer/src/features/call-configurations/types.d.ts +0 -49
- package/dist/data-layer/src/features/career/api-slice.d.ts +0 -3080
- package/dist/data-layer/src/features/catalog/api-slice.d.ts +0 -10260
- package/dist/data-layer/src/features/chat/api-slice.d.ts +0 -1977
- package/dist/data-layer/src/features/chat/constants.d.ts +0 -8
- package/dist/data-layer/src/features/chat/custom-api-slice.d.ts +0 -272
- package/dist/data-layer/src/features/chat-files/api-slice.d.ts +0 -185
- package/dist/data-layer/src/features/chat-files/types.d.ts +0 -32
- package/dist/data-layer/src/features/chat-history/api-slice.d.ts +0 -1528
- package/dist/data-layer/src/features/chat-privacy/api-slice.d.ts +0 -1398
- package/dist/data-layer/src/features/chat-privacy/constants.d.ts +0 -13
- package/dist/data-layer/src/features/claw/api-slice.d.ts +0 -5471
- package/dist/data-layer/src/features/claw/constants.d.ts +0 -126
- package/dist/data-layer/src/features/claw/types.d.ts +0 -275
- package/dist/data-layer/src/features/constants.d.ts +0 -3
- package/dist/data-layer/src/features/core/api-slice.d.ts +0 -9045
- package/dist/data-layer/src/features/core/constants.d.ts +0 -51
- package/dist/data-layer/src/features/core/custom-api-slice.d.ts +0 -1766
- package/dist/data-layer/src/features/core/custom-public-image-asset-api-slice.d.ts +0 -373
- package/dist/data-layer/src/features/core/types.d.ts +0 -73
- package/dist/data-layer/src/features/course-metadata/api-slice.d.ts +0 -1728
- package/dist/data-layer/src/features/course-metadata/types.d.ts +0 -179
- package/dist/data-layer/src/features/courses/api-slice.d.ts +0 -664
- package/dist/data-layer/src/features/courses/types.d.ts +0 -26
- package/dist/data-layer/src/features/credentials/api-slice.d.ts +0 -6360
- package/dist/data-layer/src/features/credentials/constants.d.ts +0 -36
- package/dist/data-layer/src/features/credentials/custom-api-slice.d.ts +0 -1839
- package/dist/data-layer/src/features/credentials/types.d.ts +0 -39
- package/dist/data-layer/src/features/custom-domain/api-slice.d.ts +0 -602
- package/dist/data-layer/src/features/custom-domain/constants.d.ts +0 -20
- package/dist/data-layer/src/features/custom-domain/types.d.ts +0 -46
- package/dist/data-layer/src/features/datasets/api-slice.d.ts +0 -439
- package/dist/data-layer/src/features/disclaimers/api-slice.d.ts +0 -912
- package/dist/data-layer/src/features/disclaimers/constants.d.ts +0 -27
- package/dist/data-layer/src/features/disclaimers/types.d.ts +0 -67
- package/dist/data-layer/src/features/edx-proctoring/api-slice.d.ts +0 -590
- package/dist/data-layer/src/features/edx-proctoring/constants.d.ts +0 -15
- package/dist/data-layer/src/features/edx-proctoring/types.d.ts +0 -61
- package/dist/data-layer/src/features/edx-sso/api-slice.d.ts +0 -334
- package/dist/data-layer/src/features/edx-sso/types.d.ts +0 -10
- package/dist/data-layer/src/features/llms/api-slice.d.ts +0 -373
- package/dist/data-layer/src/features/mcp/api-slice.d.ts +0 -2613
- package/dist/data-layer/src/features/mcp/constants.d.ts +0 -57
- package/dist/data-layer/src/features/mcp/types.d.ts +0 -176
- package/dist/data-layer/src/features/memory/api-slice.d.ts +0 -3462
- package/dist/data-layer/src/features/memory/constants.d.ts +0 -80
- package/dist/data-layer/src/features/memory/types.d.ts +0 -190
- package/dist/data-layer/src/features/mentor/api-slice.d.ts +0 -7984
- package/dist/data-layer/src/features/mentor/constants.d.ts +0 -45
- package/dist/data-layer/src/features/mentor/custom-api-slice.d.ts +0 -957
- package/dist/data-layer/src/features/mentor/privacy.d.ts +0 -61
- package/dist/data-layer/src/features/mentor/types.d.ts +0 -83
- package/dist/data-layer/src/features/mentor-categories/api-slice.d.ts +0 -785
- package/dist/data-layer/src/features/moderation-logs/api-slice.d.ts +0 -705
- package/dist/data-layer/src/features/monetization/constants.d.ts +0 -76
- package/dist/data-layer/src/features/monetization/custom-api-slice.d.ts +0 -5178
- package/dist/data-layer/src/features/monetization/types.d.ts +0 -229
- package/dist/data-layer/src/features/notifications/api-slice.d.ts +0 -1728
- package/dist/data-layer/src/features/notifications/constants.d.ts +0 -26
- package/dist/data-layer/src/features/notifications/custom-api-slice.d.ts +0 -996
- package/dist/data-layer/src/features/notifications/types.d.ts +0 -69
- package/dist/data-layer/src/features/per-learner/api-slice.d.ts +0 -1329
- package/dist/data-layer/src/features/periodic-agents/api-slice.d.ts +0 -2347
- package/dist/data-layer/src/features/platform/api-slice.d.ts +0 -2553
- package/dist/data-layer/src/features/platform/constants.d.ts +0 -17
- package/dist/data-layer/src/features/platform/custom-api-slice.d.ts +0 -493
- package/dist/data-layer/src/features/platform/types.d.ts +0 -61
- package/dist/data-layer/src/features/projects/api-slice.d.ts +0 -2026
- package/dist/data-layer/src/features/projects/constants.d.ts +0 -51
- package/dist/data-layer/src/features/projects/types.d.ts +0 -79
- package/dist/data-layer/src/features/prompts/api-slice.d.ts +0 -2464
- package/dist/data-layer/src/features/reports/api-slice.d.ts +0 -789
- package/dist/data-layer/src/features/retirement/api-slice.d.ts +0 -165
- package/dist/data-layer/src/features/retirement/constants.d.ts +0 -7
- package/dist/data-layer/src/features/retirement/types.d.ts +0 -3
- package/dist/data-layer/src/features/search/ai-search-api-slice.d.ts +0 -1413
- package/dist/data-layer/src/features/search/api-slice.d.ts +0 -2017
- package/dist/data-layer/src/features/search/constants.d.ts +0 -41
- package/dist/data-layer/src/features/search/types.d.ts +0 -161
- package/dist/data-layer/src/features/sessions/api-slice.d.ts +0 -969
- package/dist/data-layer/src/features/sessions/constants.d.ts +0 -3
- package/dist/data-layer/src/features/sessions/url.d.ts +0 -9
- package/dist/data-layer/src/features/skills/api-slice.d.ts +0 -1389
- package/dist/data-layer/src/features/stripe/api-slice.d.ts +0 -803
- package/dist/data-layer/src/features/stripe/constants.d.ts +0 -19
- package/dist/data-layer/src/features/stripe/types.d.ts +0 -19
- package/dist/data-layer/src/features/tenant/api-slice.d.ts +0 -832
- package/dist/data-layer/src/features/tenant/constants.d.ts +0 -11
- package/dist/data-layer/src/features/tenant/types.d.ts +0 -19
- package/dist/data-layer/src/features/tenant-logo/api-slice.d.ts +0 -349
- package/dist/data-layer/src/features/tenant-logo/constants.d.ts +0 -24
- package/dist/data-layer/src/features/tools/api-slice.d.ts +0 -417
- package/dist/data-layer/src/features/training-documents/api-slice.d.ts +0 -1523
- package/dist/data-layer/src/features/user/api-slice.d.ts +0 -2128
- package/dist/data-layer/src/features/user/constants.d.ts +0 -47
- package/dist/data-layer/src/features/user/types.d.ts +0 -134
- package/dist/data-layer/src/features/user-invitations/api-slice.d.ts +0 -762
- package/dist/data-layer/src/features/utils.d.ts +0 -94
- package/dist/data-layer/src/features/watched-groups/api-slice.d.ts +0 -2481
- package/dist/data-layer/src/features/watched-groups/constants.d.ts +0 -66
- package/dist/data-layer/src/features/watched-groups/types.d.ts +0 -143
- package/dist/data-layer/src/features/workflows/api-slice.d.ts +0 -2454
- package/dist/data-layer/src/features/workflows/constants.d.ts +0 -57
- package/dist/data-layer/src/features/workflows/types.d.ts +0 -130
- package/dist/data-layer/src/index.d.ts +0 -121
- package/dist/data-layer/src/reducers/index.d.ts +0 -2
- package/dist/data-layer/src/reducers/mentor.d.ts +0 -2
- package/dist/data-layer/src/reducers/skills.d.ts +0 -2
- package/dist/data-layer/src/services/StorageService.d.ts +0 -5
- package/dist/data-layer/src/utils/index.d.ts +0 -6
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface UseFileDragDropOptions {
|
|
3
|
+
org: string;
|
|
4
|
+
userId: string;
|
|
5
|
+
mentorId: string;
|
|
6
|
+
tenantKey: string;
|
|
7
|
+
isPublicRoute?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function useFileDragDrop({ org, userId, mentorId, tenantKey, isPublicRoute, }: UseFileDragDropOptions): {
|
|
10
|
+
isDraggingFile: boolean;
|
|
11
|
+
handleDragOver: (e: React.DragEvent) => void;
|
|
12
|
+
handleDragLeave: (e: React.DragEvent) => void;
|
|
13
|
+
handleDrop: (e: React.DragEvent) => Promise<void>;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Dispatch, SetStateAction } from "react";
|
|
2
|
+
declare global {
|
|
3
|
+
interface WindowEventMap {
|
|
4
|
+
"local-storage": CustomEvent;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
type UseLocalStorageOptions<T> = {
|
|
8
|
+
serializer?: (value: T) => string;
|
|
9
|
+
deserializer?: (value: string) => T;
|
|
10
|
+
initializeWithValue?: boolean;
|
|
11
|
+
};
|
|
12
|
+
export declare function useLocalStorage<T>(key: string, initialValue: T | (() => T), options?: UseLocalStorageOptions<T>): [T, Dispatch<SetStateAction<T>>, () => void];
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
mentorId: string;
|
|
3
|
+
tenantKey: string;
|
|
4
|
+
/**
|
|
5
|
+
* Whether the caller is on a public route (e.g. a shareable token link).
|
|
6
|
+
* Skips the private mentor-settings query when true.
|
|
7
|
+
*/
|
|
8
|
+
isPublicRoute?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Key of the platform's "main" tenant. When provided, isCommunityMentor
|
|
11
|
+
* resolves to true only if the mentor lives under this tenant. Without it,
|
|
12
|
+
* isCommunityMentor is always false.
|
|
13
|
+
*/
|
|
14
|
+
mainTenantKey?: string;
|
|
15
|
+
};
|
|
16
|
+
export declare function useMentorSettings({ mentorId, tenantKey, isPublicRoute, mainTenantKey, }: Props): {
|
|
17
|
+
isLoading: any;
|
|
18
|
+
data: {
|
|
19
|
+
profileImage: any;
|
|
20
|
+
greetingMethod: any;
|
|
21
|
+
proactiveResponse: any;
|
|
22
|
+
llmProvider: any;
|
|
23
|
+
llmName: any;
|
|
24
|
+
mentorUniqueId: any;
|
|
25
|
+
mentorName: any;
|
|
26
|
+
enableGuidedPrompts: any;
|
|
27
|
+
mentorSlug: any;
|
|
28
|
+
safetyDisclaimer: any;
|
|
29
|
+
isCommunityMentor: boolean;
|
|
30
|
+
disclaimer: any;
|
|
31
|
+
mentorVisibility: any;
|
|
32
|
+
allowAnonymous: any;
|
|
33
|
+
showAttachment: any;
|
|
34
|
+
showVoiceCall: any;
|
|
35
|
+
showVoiceRecord: any;
|
|
36
|
+
embedShowAttachment: any;
|
|
37
|
+
embedShowVoiceCall: any;
|
|
38
|
+
embedShowVoiceRecord: any;
|
|
39
|
+
llmConfig: any;
|
|
40
|
+
mentorDbId: any;
|
|
41
|
+
starterPrompts: string | undefined;
|
|
42
|
+
memoryEnabled: any;
|
|
43
|
+
mentorTools: any;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
interface UseModelFileUploadCapabilitiesProps {
|
|
2
|
+
mentorId: string;
|
|
3
|
+
tenantKey: string;
|
|
4
|
+
isPublicRoute?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export interface FileUploadCapabilities {
|
|
7
|
+
supportsFileUpload: boolean;
|
|
8
|
+
supportsImages: boolean;
|
|
9
|
+
supportsDocuments: boolean;
|
|
10
|
+
supportedImageTypes: string[];
|
|
11
|
+
supportedDocumentTypes: string[];
|
|
12
|
+
allSupportedTypes: string[];
|
|
13
|
+
maxFileSizeMB: number;
|
|
14
|
+
maxFilesPerMessage: number;
|
|
15
|
+
supportsFileUrls: boolean;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Hook to determine file upload capabilities based on the LLM config.
|
|
19
|
+
*/
|
|
20
|
+
export declare function useModelFileUploadCapabilities({ mentorId, tenantKey, isPublicRoute, }: UseModelFileUploadCapabilitiesProps): FileUploadCapabilities;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns OS-derived flags. Currently only detects whether the host is an
|
|
3
|
+
* Apple device (macOS or iOS) via Tauri's plugin-os. In plain browsers
|
|
4
|
+
* (no Tauri runtime) `isAppleDevice` is always false.
|
|
5
|
+
*/
|
|
6
|
+
export declare const useOS: () => {
|
|
7
|
+
isAppleDevice: boolean;
|
|
8
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tracks container width / viewport and returns a small screen-size bag.
|
|
3
|
+
* If a ref is passed, the hook observes that element via ResizeObserver
|
|
4
|
+
* and reacts to its width changes; otherwise it tracks window width.
|
|
5
|
+
*/
|
|
6
|
+
export declare const useResponsive: (containerRef?: React.RefObject<HTMLElement>) => {
|
|
7
|
+
isMobile: boolean;
|
|
8
|
+
isTablet: boolean;
|
|
9
|
+
isLaptop: boolean;
|
|
10
|
+
isDesktop: boolean;
|
|
11
|
+
screenSize: "sm" | "md" | "lg" | "xl";
|
|
12
|
+
containerWidth: number;
|
|
13
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { ComponentType } from "react";
|
|
2
|
+
interface FreeTrialDialogProps {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
}
|
|
6
|
+
interface UseShowFreeTrialDialogReturn {
|
|
7
|
+
FreeTrialDialog: ComponentType<FreeTrialDialogProps> | null;
|
|
8
|
+
closeModal: () => void;
|
|
9
|
+
isModalOpen: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Run a callback, optionally gated by the trial check. The second
|
|
12
|
+
* `enforceTrialCheck` flag mirrors the mentor app's signature so call
|
|
13
|
+
* sites that pass `false` (i.e. opt-out of gating) typecheck against
|
|
14
|
+
* the stub. The stub ignores the flag and always runs the callback.
|
|
15
|
+
*/
|
|
16
|
+
executeWithTrialCheck: (callback: () => void, enforceTrialCheck?: boolean) => void;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Stub implementation of the mentor app's free-trial gate.
|
|
20
|
+
*
|
|
21
|
+
* Always reports the gate as inactive (`isModalOpen: false`,
|
|
22
|
+
* `FreeTrialDialog: null`) and executes any guarded callback immediately.
|
|
23
|
+
* Mirrors the call-site shape of the mentor app's
|
|
24
|
+
* `useShowFreeTrialDialog` so the reusable Chat can render without
|
|
25
|
+
* pulling in the entire subscription / Apple-restriction flow.
|
|
26
|
+
*
|
|
27
|
+
* Host apps that want a real gate should replace this hook with their
|
|
28
|
+
* own implementation that wires up the subscription flow they use.
|
|
29
|
+
*/
|
|
30
|
+
export declare function useShowFreeTrialDialog(): UseShowFreeTrialDialogReturn;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface UseTenantSwitchSyncOptions {
|
|
2
|
+
/** Called when ANOTHER tab broadcasts a tenant switch (self-echo filtered out). */
|
|
3
|
+
onRemoteSwitch?: (tenant: string) => void;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Subscribe to cross-tab tenant-switch broadcasts. Ignores this tab's own echo
|
|
7
|
+
* (BroadcastChannel delivers to sibling instances in the same tab) and refreshes
|
|
8
|
+
* the shared switch lock so this tab won't auto-revert during the switch window.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* useTenantSwitchSync();
|
|
12
|
+
*/
|
|
13
|
+
export declare function useTenantSwitchSync(options?: UseTenantSwitchSyncOptions): void;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
interface UseUserAgreementProps {
|
|
2
|
+
mentorId: string;
|
|
3
|
+
tenantKey: string;
|
|
4
|
+
}
|
|
5
|
+
export declare function useUserAgreement({ mentorId, tenantKey, }: UseUserAgreementProps): {
|
|
6
|
+
showDisclaimerModal: boolean;
|
|
7
|
+
setShowDisclaimerModal: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
8
|
+
isAgreeing: boolean;
|
|
9
|
+
pendingSubmitContent: string;
|
|
10
|
+
userAgreement: any;
|
|
11
|
+
hasUserAgreement: boolean;
|
|
12
|
+
hasUserAgreedToDisclaimer: any;
|
|
13
|
+
isDisclaimersLoading: any;
|
|
14
|
+
handleDisclaimerAgree: () => Promise<void>;
|
|
15
|
+
checkAgreementAndExecute: (content: string, executeCallback: (content: string) => void) => void;
|
|
16
|
+
executePendingSubmit: (executeCallback: (content: string) => void) => void;
|
|
17
|
+
};
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type Tenant } from "../types";
|
|
2
|
+
export declare function useUserData(): {
|
|
3
|
+
user_display_name: string;
|
|
4
|
+
user_email: string;
|
|
5
|
+
user_fullname: string;
|
|
6
|
+
user_id: number;
|
|
7
|
+
user_nicename: string;
|
|
8
|
+
} | null;
|
|
9
|
+
export declare function useUsername(): string | null;
|
|
10
|
+
export declare function useVisitingTenant(): {
|
|
11
|
+
visitingTenant: Tenant | undefined;
|
|
12
|
+
saveVisitingTenant: import("react").Dispatch<import("react").SetStateAction<Tenant | undefined>>;
|
|
13
|
+
removeVisitingTenant: () => void;
|
|
14
|
+
};
|
|
15
|
+
export declare function useUserTenants(): {
|
|
16
|
+
userTenants: Tenant[];
|
|
17
|
+
saveUserTenants: import("react").Dispatch<import("react").SetStateAction<Tenant[]>>;
|
|
18
|
+
};
|
|
19
|
+
export declare function useCurrentTenant(): {
|
|
20
|
+
currentTenant: Tenant | null;
|
|
21
|
+
saveCurrentTenant: import("react").Dispatch<import("react").SetStateAction<Tenant | null>>;
|
|
22
|
+
};
|
|
23
|
+
export declare function useIsAdmin(): boolean;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
sendMessage: (message: string) => void;
|
|
3
|
+
tenantKey: string;
|
|
4
|
+
}
|
|
5
|
+
export declare function useVoiceChat({ sendMessage, tenantKey }: Props): {
|
|
6
|
+
handleMicrophoneBtnClick: () => Promise<void>;
|
|
7
|
+
recording: boolean;
|
|
8
|
+
processing: boolean;
|
|
9
|
+
time: number;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
sessionId: string;
|
|
3
|
+
username: string;
|
|
4
|
+
tenantKey: string;
|
|
5
|
+
mentorId: string;
|
|
6
|
+
mentorUniqueId: string;
|
|
7
|
+
token: string;
|
|
8
|
+
wsUrl: string;
|
|
9
|
+
isPublicRoute?: boolean;
|
|
10
|
+
isNewSession?: boolean;
|
|
11
|
+
};
|
|
12
|
+
export default function useWelcome({ sessionId, username, tenantKey, mentorId, mentorUniqueId, token, wsUrl, isPublicRoute, isNewSession, }: Props): {
|
|
13
|
+
welcomeMessage: string;
|
|
14
|
+
handleSendProactivePrompt: () => void;
|
|
15
|
+
};
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { useGetChatDetails as _useGetChatDetails } from "./hooks/chat/use-get-chat-details";
|
|
2
|
+
import { useAdvancedChat as _useAdvancedChat } from "./hooks/chat/use-advanced-chat";
|
|
3
|
+
import { useTimeTracker as _useTimeTracker } from "./features/tracking/use-time-tracker";
|
|
4
|
+
import { useMentorSettings as _useMentorSettings } from "./hooks/use-mentor-settings";
|
|
5
|
+
import { getTimeAgo as _getTimeAgo } from "./utils";
|
|
6
|
+
import { useCachedSessionId as _useCachedSessionId } from "./hooks/use-cached-session-id";
|
|
7
|
+
export declare const useGetChatDetails: typeof _useGetChatDetails;
|
|
8
|
+
export declare const useAdvancedChat: typeof _useAdvancedChat;
|
|
9
|
+
export declare const useTimeTracker: typeof _useTimeTracker;
|
|
10
|
+
export declare const useMentorSettings: typeof _useMentorSettings;
|
|
11
|
+
export declare const advancedTabsProperties: {
|
|
12
|
+
chat: {
|
|
13
|
+
display: string;
|
|
14
|
+
name: string;
|
|
15
|
+
tag: string;
|
|
16
|
+
showHeader: boolean;
|
|
17
|
+
prompts: {
|
|
18
|
+
type: string;
|
|
19
|
+
icon: string;
|
|
20
|
+
summary: string;
|
|
21
|
+
content: string;
|
|
22
|
+
}[];
|
|
23
|
+
};
|
|
24
|
+
summarize: {
|
|
25
|
+
display: string;
|
|
26
|
+
showHeader: boolean;
|
|
27
|
+
name: string;
|
|
28
|
+
tag: string;
|
|
29
|
+
prompts: {
|
|
30
|
+
type: string;
|
|
31
|
+
proactive: boolean;
|
|
32
|
+
hide: boolean;
|
|
33
|
+
content: string;
|
|
34
|
+
}[];
|
|
35
|
+
};
|
|
36
|
+
translate: {
|
|
37
|
+
display: string;
|
|
38
|
+
showHeader: boolean;
|
|
39
|
+
name: string;
|
|
40
|
+
tag: string;
|
|
41
|
+
description: string;
|
|
42
|
+
metaDescription: string;
|
|
43
|
+
prompts: ({
|
|
44
|
+
type: string;
|
|
45
|
+
hide: boolean;
|
|
46
|
+
tag: string;
|
|
47
|
+
summary: string;
|
|
48
|
+
content: string;
|
|
49
|
+
} | {
|
|
50
|
+
type: string;
|
|
51
|
+
summary: string;
|
|
52
|
+
content: string;
|
|
53
|
+
hide?: undefined;
|
|
54
|
+
tag?: undefined;
|
|
55
|
+
})[];
|
|
56
|
+
};
|
|
57
|
+
expand: {
|
|
58
|
+
display: string;
|
|
59
|
+
showHeader: boolean;
|
|
60
|
+
name: string;
|
|
61
|
+
tag: string;
|
|
62
|
+
prompts: {
|
|
63
|
+
type: string;
|
|
64
|
+
proactive: boolean;
|
|
65
|
+
hide: boolean;
|
|
66
|
+
content: string;
|
|
67
|
+
}[];
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
export declare const ANONYMOUS_USERNAME = "anonymous";
|
|
71
|
+
export declare const isAlphaNumeric32: (text: string) => boolean;
|
|
72
|
+
export declare const getTimeAgo: typeof _getTimeAgo;
|
|
73
|
+
export declare const getInitials: (fullName: string) => string;
|
|
74
|
+
export declare const chatActions: import("@reduxjs/toolkit").CaseReducerActions<import("@reduxjs/toolkit").SliceCaseReducers<import("./features/chat/slice").ChatSliceState>, string>;
|
|
75
|
+
export declare const selectSessionId: (state: {
|
|
76
|
+
chatSliceShared: import("./features/chat/slice").ChatSliceState;
|
|
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;
|
|
85
|
+
export type { ChatMode } from "./types";
|
|
86
|
+
export type { OAuthRequiredData, OAuthResolvedData, } from "./hooks/chat/use-chat-v2";
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { useGetChatDetails as _useGetChatDetails } from "./hooks/chat/use-get-chat-details";
|
|
2
|
+
import { useAdvancedChat as _useAdvancedChat } from "./hooks/chat/use-advanced-chat";
|
|
3
|
+
import { useTimeTracker as _useTimeTracker } from "./features/tracking/use-time-tracker";
|
|
4
|
+
import { useMentorSettings as _useMentorSettings } from "./hooks/use-mentor-settings";
|
|
5
|
+
import { getTimeAgo as _getTimeAgo } from "./utils";
|
|
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
|
+
import { useTenantSwitchSync as _useTenantSwitchSync } from "./hooks/use-tenant-switch-sync";
|
|
8
|
+
import { useCachedSessionId as _useCachedSessionId } from "./hooks/use-cached-session-id";
|
|
9
|
+
import { AuthProvider as _AuthProvider, TenantProvider as _TenantProvider, MentorProvider as _MentorProvider } from "./providers";
|
|
10
|
+
import { useSearchParams as _useSearchParams, useParams as _useParams, useRouter as _useRouter, usePathname as _usePathname } from "next/navigation";
|
|
11
|
+
export declare const useGetChatDetails: typeof _useGetChatDetails;
|
|
12
|
+
export declare const useAdvancedChat: typeof _useAdvancedChat;
|
|
13
|
+
export declare const useTimeTracker: typeof _useTimeTracker;
|
|
14
|
+
export declare const useMentorSettings: typeof _useMentorSettings;
|
|
15
|
+
export declare const advancedTabsProperties: {
|
|
16
|
+
chat: {
|
|
17
|
+
display: string;
|
|
18
|
+
name: string;
|
|
19
|
+
tag: string;
|
|
20
|
+
showHeader: boolean;
|
|
21
|
+
prompts: {
|
|
22
|
+
type: string;
|
|
23
|
+
icon: string;
|
|
24
|
+
summary: string;
|
|
25
|
+
content: string;
|
|
26
|
+
}[];
|
|
27
|
+
};
|
|
28
|
+
summarize: {
|
|
29
|
+
display: string;
|
|
30
|
+
showHeader: boolean;
|
|
31
|
+
name: string;
|
|
32
|
+
tag: string;
|
|
33
|
+
prompts: {
|
|
34
|
+
type: string;
|
|
35
|
+
proactive: boolean;
|
|
36
|
+
hide: boolean;
|
|
37
|
+
content: string;
|
|
38
|
+
}[];
|
|
39
|
+
};
|
|
40
|
+
translate: {
|
|
41
|
+
display: string;
|
|
42
|
+
showHeader: boolean;
|
|
43
|
+
name: string;
|
|
44
|
+
tag: string;
|
|
45
|
+
description: string;
|
|
46
|
+
metaDescription: string;
|
|
47
|
+
prompts: ({
|
|
48
|
+
type: string;
|
|
49
|
+
hide: boolean;
|
|
50
|
+
tag: string;
|
|
51
|
+
summary: string;
|
|
52
|
+
content: string;
|
|
53
|
+
} | {
|
|
54
|
+
type: string;
|
|
55
|
+
summary: string;
|
|
56
|
+
content: string;
|
|
57
|
+
hide?: undefined;
|
|
58
|
+
tag?: undefined;
|
|
59
|
+
})[];
|
|
60
|
+
};
|
|
61
|
+
expand: {
|
|
62
|
+
display: string;
|
|
63
|
+
showHeader: boolean;
|
|
64
|
+
name: string;
|
|
65
|
+
tag: string;
|
|
66
|
+
prompts: {
|
|
67
|
+
type: string;
|
|
68
|
+
proactive: boolean;
|
|
69
|
+
hide: boolean;
|
|
70
|
+
content: string;
|
|
71
|
+
}[];
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
export declare const ANONYMOUS_USERNAME = "anonymous";
|
|
75
|
+
export declare const isAlphaNumeric32: (text: string) => boolean;
|
|
76
|
+
export declare const getTimeAgo: typeof _getTimeAgo;
|
|
77
|
+
export declare const getInitials: (fullName: string) => string;
|
|
78
|
+
export declare const isInIframe: typeof _isInIframe;
|
|
79
|
+
export declare const sendMessageToParentWebsite: typeof _sendMessageToParentWebsite;
|
|
80
|
+
export declare const deleteCookie: typeof _deleteCookie;
|
|
81
|
+
export declare const getDomainParts: typeof _getDomainParts;
|
|
82
|
+
export declare const deleteCookieOnAllDomains: typeof _deleteCookieOnAllDomains;
|
|
83
|
+
export declare const getParentDomain: typeof _getParentDomain;
|
|
84
|
+
export declare const setCookieForAuth: typeof _setCookieForAuth;
|
|
85
|
+
export declare const clearCookies: typeof _clearCookies;
|
|
86
|
+
export declare const isLoggedIn: typeof _isLoggedIn;
|
|
87
|
+
export declare const getPlatformKey: typeof _getPlatformKey;
|
|
88
|
+
export declare const redirectToAuthSpa: typeof _redirectToAuthSpa;
|
|
89
|
+
export declare const getAuthSpaJoinUrl: typeof _getAuthSpaJoinUrl;
|
|
90
|
+
export declare const redirectToAuthSpaJoinTenant: typeof _redirectToAuthSpaJoinTenant;
|
|
91
|
+
export declare const handleLogout: typeof _handleLogout;
|
|
92
|
+
export declare const handleTenantSwitch: typeof _handleTenantSwitch;
|
|
93
|
+
export declare const getTabId: typeof _getTabId;
|
|
94
|
+
export declare const readTenantSwitchLock: typeof _readTenantSwitchLock;
|
|
95
|
+
export declare const writeTenantSwitchLock: typeof _writeTenantSwitchLock;
|
|
96
|
+
export declare const refreshTenantSwitchLock: typeof _refreshTenantSwitchLock;
|
|
97
|
+
export declare const clearTenantSwitchLock: typeof _clearTenantSwitchLock;
|
|
98
|
+
export declare const isTenantSwitchInProgress: typeof _isTenantSwitchInProgress;
|
|
99
|
+
export declare const useTenantSwitchSync: typeof _useTenantSwitchSync;
|
|
100
|
+
export declare const chatActions: import("@reduxjs/toolkit").CaseReducerActions<import("@reduxjs/toolkit").SliceCaseReducers<import("./features/chat/slice").ChatSliceState>, string>;
|
|
101
|
+
export declare const selectSessionId: (state: {
|
|
102
|
+
chatSliceShared: import("./features/chat/slice").ChatSliceState;
|
|
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;
|
|
111
|
+
export declare const AuthProvider: typeof _AuthProvider;
|
|
112
|
+
export declare const TenantProvider: typeof _TenantProvider;
|
|
113
|
+
export declare const MentorProvider: typeof _MentorProvider;
|
|
114
|
+
export declare const WithFormPermissions: import("react").FC<{
|
|
115
|
+
name: string | string[];
|
|
116
|
+
permissions: Record<string, {
|
|
117
|
+
read?: boolean;
|
|
118
|
+
write: boolean;
|
|
119
|
+
delete?: boolean;
|
|
120
|
+
}>;
|
|
121
|
+
children: (props: {
|
|
122
|
+
disabled: boolean;
|
|
123
|
+
canDelete?: boolean;
|
|
124
|
+
}) => React.ReactNode;
|
|
125
|
+
enableRBAC?: boolean;
|
|
126
|
+
}>;
|
|
127
|
+
export declare const WithPermissions: ({ rbacResource, rbacPermissions, children, }: {
|
|
128
|
+
rbacResource: string;
|
|
129
|
+
rbacPermissions: object;
|
|
130
|
+
children: (props: {
|
|
131
|
+
hasPermission: boolean;
|
|
132
|
+
}) => React.ReactNode;
|
|
133
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
134
|
+
export declare const checkRbacPermission: (rbacPermissions: object, rbacResource: string, enableRBAC?: boolean) => boolean;
|
|
135
|
+
export declare const useSearchParams: typeof _useSearchParams;
|
|
136
|
+
export declare const useParams: typeof _useParams;
|
|
137
|
+
export declare const useRouter: typeof _useRouter;
|
|
138
|
+
export declare const usePathname: typeof _usePathname;
|
|
139
|
+
export type { ChatMode } from "./types";
|
|
140
|
+
export type { OAuthRequiredData, OAuthResolvedData, } from "./hooks/chat/use-chat-v2";
|
|
141
|
+
export type { RedirectToAuthSpaOptions, HandleLogoutOptions, TenantSwitchLock, HandleTenantSwitchOptions, } from "./utils/auth";
|
|
142
|
+
export type { UseTenantSwitchSyncOptions } from "./hooks/use-tenant-switch-sync";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|