@datalayer/core 1.1.59 → 1.1.66
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/README.md +2 -2
- package/lib/api/DatalayerApi.d.ts +42 -1
- package/lib/api/DatalayerApi.js +90 -3
- package/lib/api/constants.d.ts +18 -0
- package/lib/api/constants.js +18 -0
- package/lib/api/contents/attachments.d.ts +9 -0
- package/lib/api/contents/attachments.js +43 -0
- package/lib/api/contents/bridges.d.ts +22 -0
- package/lib/api/contents/bridges.js +79 -0
- package/lib/api/contents/capabilities.d.ts +11 -0
- package/lib/api/contents/capabilities.js +21 -0
- package/lib/api/contents/cloudStorage.d.ts +31 -0
- package/lib/api/contents/cloudStorage.js +89 -0
- package/lib/api/contents/dataservers.d.ts +37 -0
- package/lib/api/contents/dataservers.js +121 -0
- package/lib/api/contents/datasets.d.ts +15 -0
- package/lib/api/contents/datasets.js +45 -0
- package/lib/api/contents/datasources.d.ts +70 -0
- package/lib/api/contents/datasources.js +149 -0
- package/lib/api/contents/generated.d.ts +1070 -0
- package/lib/api/contents/index.d.ts +16 -0
- package/lib/api/contents/index.js +20 -0
- package/lib/api/contents/mcp.d.ts +46 -0
- package/lib/api/contents/mcp.js +157 -0
- package/lib/api/contents/objects.d.ts +31 -0
- package/lib/api/contents/objects.js +88 -0
- package/lib/api/contents/operations.d.ts +3 -0
- package/lib/api/contents/operations.js +19 -0
- package/lib/api/contents/runtimeMounts.d.ts +40 -0
- package/lib/api/contents/runtimeMounts.js +59 -0
- package/lib/api/contents/sandboxUid.d.ts +53 -0
- package/lib/api/contents/sandboxUid.js +78 -0
- package/lib/api/contents/sources.d.ts +19 -0
- package/lib/api/contents/sources.js +119 -0
- package/lib/api/contents/sync.d.ts +18 -0
- package/lib/api/contents/sync.js +69 -0
- package/lib/api/contents/transfers.d.ts +38 -0
- package/lib/api/contents/transfers.js +123 -0
- package/lib/api/iam/connectedAgents.d.ts +39 -0
- package/lib/api/iam/connectedAgents.js +52 -0
- package/lib/api/iam/index.d.ts +2 -1
- package/lib/api/iam/index.js +2 -1
- package/lib/api/iam/mcpAlertRules.d.ts +51 -0
- package/lib/api/iam/mcpAlertRules.js +198 -0
- package/lib/api/iam/mcpAuditSettings.d.ts +46 -0
- package/lib/api/iam/mcpAuditSettings.js +120 -0
- package/lib/api/iam/mcpPolicy.d.ts +80 -0
- package/lib/api/iam/mcpPolicy.js +132 -0
- package/lib/api/iam/organizationTeams.d.ts +13 -0
- package/lib/api/iam/organizationTeams.js +43 -0
- package/lib/api/iam/serviceAgents.d.ts +68 -0
- package/lib/api/iam/serviceAgents.js +119 -0
- package/lib/api/index.d.ts +4 -1
- package/lib/api/index.js +3 -1
- package/lib/api/mcp/activity.d.ts +37 -0
- package/lib/api/mcp/activity.js +26 -0
- package/lib/api/mcp/alerts.d.ts +25 -0
- package/lib/api/mcp/alerts.js +51 -0
- package/lib/api/mcp/audit.d.ts +29 -0
- package/lib/api/mcp/audit.js +55 -0
- package/lib/api/mcp/bindings.d.ts +18 -0
- package/lib/api/mcp/bindings.js +42 -0
- package/lib/api/mcp/forwarding.d.ts +25 -0
- package/lib/api/mcp/forwarding.js +46 -0
- package/lib/api/mcp/gateway.d.ts +16 -0
- package/lib/api/mcp/gateway.js +70 -0
- package/lib/api/mcp/generated.d.ts +22 -0
- package/lib/api/mcp/generated.js +213 -0
- package/lib/api/mcp/index.d.ts +17 -0
- package/lib/api/mcp/index.js +25 -0
- package/lib/api/mcp/observability.d.ts +125 -0
- package/lib/api/mcp/observability.js +254 -0
- package/lib/api/mcp/operations.d.ts +83 -0
- package/lib/api/mcp/operations.js +50 -0
- package/lib/api/mcp/organizations.d.ts +102 -0
- package/lib/api/mcp/organizations.js +46 -0
- package/lib/api/mcp/policy.d.ts +9 -0
- package/lib/api/mcp/policy.js +23 -0
- package/lib/api/mcp/tasks.d.ts +49 -0
- package/lib/api/mcp/tasks.js +147 -0
- package/lib/api/utils/validation.d.ts +1 -1
- package/lib/api/utils/validation.js +1 -1
- package/lib/client/auth/index.js +0 -5
- package/lib/client/auth/storage.js +0 -5
- package/lib/client/auth/strategies.js +0 -5
- package/lib/client/base.d.ts +6 -0
- package/lib/client/base.js +8 -0
- package/lib/client/index.d.ts +0 -10
- package/lib/client/index.js +2 -2
- package/lib/client/mixins/ContentsMixin.d.ts +71 -0
- package/lib/client/mixins/ContentsMixin.js +157 -0
- package/lib/client/mixins/IAMMixin.d.ts +0 -31
- package/lib/client/mixins/IAMMixin.js +0 -58
- package/lib/components/animation/AnimatedText.d.ts +1 -0
- package/lib/components/animation/AnimatedText.js +0 -4
- package/lib/components/auth/SigInAPIKey.d.ts +1 -0
- package/lib/components/auth/SigInAPIKey.js +0 -6
- package/lib/components/auth/SignIn.d.ts +1 -0
- package/lib/components/auth/SignIn.js +0 -4
- package/lib/components/auth/SignIn.stories.d.ts +2 -2
- package/lib/components/avatars/BoringAvatar.d.ts +1 -1
- package/lib/components/avatars/BoringAvatar.stories.d.ts +1 -1
- package/lib/components/avatars/DLAvatar.d.ts +1 -1
- package/lib/components/avatars/DLAvatar.js +0 -4
- package/lib/components/avatars/UserAvatar.d.ts +18 -1
- package/lib/components/avatars/UserAvatar.js +14 -14
- package/lib/components/avatars/UserProfileAvatar.d.ts +1 -1
- package/lib/components/banners/NoAutomationBanner.d.ts +1 -1
- package/lib/components/billing/BillingEntitySelect.d.ts +10 -0
- package/lib/components/billing/BillingEntitySelect.js +0 -17
- package/lib/components/billing/index.js +0 -4
- package/lib/components/buttons/DownloadCSVButton.d.ts +1 -1
- package/lib/components/buttons/DownloadJsonButton.d.ts +1 -1
- package/lib/components/buttons/LongActionButton.d.ts +1 -0
- package/lib/components/buttons/LongActionButton.js +0 -4
- package/lib/components/buttons/UploadButton.d.ts +1 -0
- package/lib/components/buttons/UploadButton.js +0 -4
- package/lib/components/checkout/StripeCheckout.d.ts +1 -1
- package/lib/components/collaboration/LiveEditorCollaborators.d.ts +31 -0
- package/lib/components/collaboration/LiveEditorCollaborators.js +98 -53
- package/lib/components/collaboration/index.js +0 -4
- package/lib/components/confetti/ConfettiSuccess.d.ts +1 -1
- package/lib/components/contents/ContentSourceCard.d.ts +8 -0
- package/lib/components/contents/ContentSourceCard.js +23 -0
- package/lib/components/contents/HomeFolderObjectsBrowser.d.ts +10 -0
- package/lib/components/contents/HomeFolderObjectsBrowser.js +148 -0
- package/lib/components/contents/index.d.ts +2 -0
- package/lib/components/contents/index.js +6 -0
- package/lib/components/context/OrganizationSelect.d.ts +1 -1
- package/lib/components/display/AvatarSkeleton.d.ts +1 -1
- package/lib/components/display/BusyDots.d.ts +1 -1
- package/lib/components/display/CenteredSpinner.d.ts +1 -1
- package/lib/components/display/CodePreview.d.ts +1 -1
- package/lib/components/display/DatalayerBox.d.ts +7 -2
- package/lib/components/display/DatalayerBox.js +6 -6
- package/lib/components/display/HorizontalCenter.d.ts +1 -1
- package/lib/components/display/JupyterDialog.d.ts +1 -0
- package/lib/components/display/JupyterDialog.js +1 -7
- package/lib/components/display/Markdown.d.ts +1 -0
- package/lib/components/display/NotebookSkeleton.d.ts +1 -1
- package/lib/components/display/Placeholder.d.ts +1 -1
- package/lib/components/display/ToTopBranded.d.ts +1 -1
- package/lib/components/echarts/EChartsReact.d.ts +1 -1
- package/lib/components/flashes/FlashClosable.d.ts +1 -0
- package/lib/components/flashes/FlashClosable.js +0 -4
- package/lib/components/flashes/FlashGuest.d.ts +1 -1
- package/lib/components/flashes/FlashSurveys.d.ts +1 -1
- package/lib/components/flashes/FlashUnauthorized.d.ts +1 -0
- package/lib/components/flashes/FlashUnauthorized.js +0 -6
- package/lib/components/flashes/surveys/Survey2025_1.d.ts +1 -1
- package/lib/components/iam/ExternalTokenSilentLogin.d.ts +1 -1
- package/lib/components/index.d.ts +2 -0
- package/lib/components/index.js +2 -0
- package/lib/components/labels/StatusLabels.d.ts +10 -0
- package/lib/components/labels/StatusLabels.js +30 -1
- package/lib/components/labels/VisibilityLabel.d.ts +1 -1
- package/lib/components/landings/StepBlock.d.ts +1 -1
- package/lib/components/mcp/ClientBadge.d.ts +41 -0
- package/lib/components/mcp/ClientBadge.js +33 -0
- package/lib/components/mcp/McpErrorBlankslate.d.ts +21 -0
- package/lib/components/mcp/McpErrorBlankslate.js +17 -0
- package/lib/components/mcp/ScopeList.d.ts +28 -0
- package/lib/components/mcp/ScopeList.js +14 -0
- package/lib/components/mcp/index.d.ts +10 -0
- package/lib/components/mcp/index.js +18 -0
- package/lib/components/navbar/NavigationVisbilityObserver.d.ts +2 -1
- package/lib/components/navbar/SubdomainNavBar.d.ts +10 -5
- package/lib/components/navbar/SubdomainNavBar.js +2 -1
- package/lib/components/notebooks/JupyterNotebook.d.ts +1 -1
- package/lib/components/notebooks/JupyterNotebookToolbar.d.ts +1 -1
- package/lib/components/principal/PrincipalAppearance.d.ts +1 -0
- package/lib/components/principal/PrincipalAppearance.js +0 -8
- package/lib/components/principal/PrincipalAvatar.d.ts +9 -1
- package/lib/components/principal/PrincipalAvatar.js +25 -10
- package/lib/components/principal/PrincipalBadge.d.ts +1 -1
- package/lib/components/principal/PrincipalBanner.d.ts +1 -1
- package/lib/components/principal/PrincipalDetailsOverlay.d.ts +31 -1
- package/lib/components/principal/PrincipalDetailsOverlay.js +64 -33
- package/lib/components/principal/PrincipalHoverCard.d.ts +31 -0
- package/lib/components/principal/PrincipalHoverCard.js +52 -0
- package/lib/components/principal/PrincipalSwitcherMenu.d.ts +1 -0
- package/lib/components/principal/PrincipalSwitcherMenu.js +7 -15
- package/lib/components/principal/index.d.ts +2 -1
- package/lib/components/principal/index.js +2 -1
- package/lib/components/progress/ConsumptionBar.d.ts +1 -0
- package/lib/components/progress/ConsumptionBar.js +0 -4
- package/lib/components/progress/ProgressRing.d.ts +1 -0
- package/lib/components/progress/SpinnerBar.d.ts +1 -1
- package/lib/components/progress/Timer.d.ts +1 -0
- package/lib/components/progress/Timer.js +0 -4
- package/lib/components/screencapture/ScreencaptureButton.d.ts +1 -1
- package/lib/components/sharing/ShareAccessComponent.d.ts +15 -1
- package/lib/components/sharing/ShareAccessComponent.js +36 -23
- package/lib/components/sharing/SharingEditor.d.ts +17 -0
- package/lib/components/sharing/SharingEditor.js +0 -24
- package/lib/components/sparklines/Sparklines.js +3 -4
- package/lib/components/sparklines/index.js +0 -4
- package/lib/components/storage/ContentsBrowser.d.ts +25 -1
- package/lib/components/storage/ContentsBrowser.js +145 -52
- package/lib/components/storage/ContentsBrowserMock.d.ts +3 -0
- package/lib/components/storage/ContentsBrowserMock.js +75 -0
- package/lib/components/storage/ContentsItems.d.ts +2 -1
- package/lib/components/storage/ContentsItems.js +0 -4
- package/lib/components/storage/ContentsTable.d.ts +50 -0
- package/lib/components/storage/ContentsTable.js +134 -0
- package/lib/components/storage/HomeFolderDrive.d.ts +71 -0
- package/lib/components/storage/HomeFolderDrive.js +248 -0
- package/lib/components/storage/index.d.ts +2 -0
- package/lib/components/storage/index.js +2 -0
- package/lib/components/students/StudentItemStatus.d.ts +1 -1
- package/lib/components/students/StudentResultCircle.d.ts +1 -1
- package/lib/components/subnav/SubNav.d.ts +5 -5
- package/lib/components/subnav/SubNav.js +11 -9
- package/lib/components/tables/DataTable.d.ts +1 -1
- package/lib/components/text-reveal/TextRevealAnimation.d.ts +2 -2
- package/lib/components/text-reveal/useTextRevealAnimationLines.d.ts +1 -1
- package/lib/components/time/LiveRelativeTime.d.ts +1 -0
- package/lib/components/time/LiveRelativeTime.js +0 -8
- package/lib/components/time/index.js +0 -4
- package/lib/components/timeline/Timeline.d.ts +1 -1
- package/lib/components/timeline/index.js +0 -4
- package/lib/components/users/PeerIndicator.d.ts +1 -0
- package/lib/components/users/PeerIndicator.js +0 -4
- package/lib/config/Configuration.d.ts +15 -17
- package/lib/config/Configuration.js +7 -0
- package/lib/hooks/index.d.ts +2 -0
- package/lib/hooks/index.js +2 -0
- package/lib/hooks/layouts/LayoutBackdrop.d.ts +1 -1
- package/lib/hooks/layouts/LayoutScreencapture.d.ts +1 -1
- package/lib/hooks/useBackdrop.d.ts +1 -1
- package/lib/hooks/useBackdropJupyterLab.d.ts +3 -2
- package/lib/hooks/useBackdropJupyterLab.js +0 -4
- package/lib/hooks/useCache.d.ts +310 -105
- package/lib/hooks/useCache.js +142 -355
- package/lib/hooks/useContainsFocus.d.ts +1 -1
- package/lib/hooks/useContents.d.ts +313 -0
- package/lib/hooks/useContents.js +964 -0
- package/lib/hooks/useFocusTrap.d.ts +4 -4
- package/lib/hooks/useFocusTrap.js +1 -1
- package/lib/hooks/useMcp.d.ts +229 -0
- package/lib/hooks/useMcp.js +656 -0
- package/lib/hooks/useMobile.js +0 -5
- package/lib/hooks/useProjectStore.d.ts +3 -3
- package/lib/hooks/useProjectStore.js +4 -4
- package/lib/hooks/useRef.d.ts +1 -1
- package/lib/hooks/useRef.js +3 -0
- package/lib/hooks/useScreencapture.d.ts +2 -1
- package/lib/hooks/useScreencapture.js +0 -4
- package/lib/hooks/useToast.js +0 -4
- package/lib/hooks/useUser.js +42 -0
- package/lib/hooks/useVisibilityObserver.d.ts +1 -1
- package/lib/index.d.ts +4 -1
- package/lib/index.js +3 -1
- package/lib/mocks/components/FlashMock.d.ts +1 -1
- package/lib/mocks/views/ActionMenuMock.d.ts +1 -1
- package/lib/mocks/views/ChartMock.d.ts +1 -1
- package/lib/mocks/views/DashboardMock.d.ts +1 -1
- package/lib/mocks/views/FormMock.d.ts +1 -1
- package/lib/mocks/views/TableMock.d.ts +1 -1
- package/lib/mocks/views/WipMock.d.ts +1 -1
- package/lib/models/Credits.d.ts +16 -0
- package/lib/models/Credits.js +22 -0
- package/lib/models/McpAuditEvent.d.ts +52 -0
- package/lib/models/McpAuditEvent.js +5 -0
- package/lib/models/McpBinding.d.ts +51 -0
- package/lib/models/McpBinding.js +5 -0
- package/lib/models/McpPolicy.d.ts +77 -0
- package/lib/models/McpPolicy.js +5 -0
- package/lib/models/McpTask.d.ts +94 -0
- package/lib/models/McpTask.js +7 -0
- package/lib/models/StartedBy.d.ts +57 -0
- package/lib/models/StartedBy.js +81 -0
- package/lib/models/UserDTO.js +4 -2
- package/lib/models/contents/__fixtures__/solr-codec.json +57 -0
- package/lib/models/contents/__fixtures__/v1-contracts.json +66 -0
- package/lib/models/contents/fieldCase.d.ts +8 -0
- package/lib/models/contents/fieldCase.js +37 -0
- package/lib/models/contents/index.d.ts +2 -0
- package/lib/models/contents/index.js +6 -0
- package/lib/models/contents/permissions.d.ts +16 -0
- package/lib/models/contents/permissions.js +34 -0
- package/lib/models/index.d.ts +5 -1
- package/lib/models/index.js +5 -1
- package/lib/state/substates/CoreState.d.ts +15 -7
- package/lib/state/substates/CoreState.js +18 -14
- package/lib/state/substates/IAMState.d.ts +1 -1
- package/lib/state/substates/IAMState.js +5 -5
- package/lib/state/substates/ProfileState.js +0 -4
- package/lib/state/substates/index.d.ts +0 -1
- package/lib/state/substates/index.js +0 -1
- package/lib/utils/Jwt.d.ts +26 -0
- package/lib/utils/Jwt.js +37 -0
- package/lib/utils/WithSuspense.d.ts +1 -1
- package/lib/views/api-keys/APIKeyEdit.d.ts +1 -1
- package/lib/views/api-keys/APIKeyNew.d.ts +1 -1
- package/lib/views/api-keys/APIKeys.d.ts +1 -1
- package/lib/views/api-keys/APIKeys.js +30 -4
- package/lib/views/api-keys/APIKeysStandalone.d.ts +5 -1
- package/lib/views/api-keys/APIKeysStandalone.js +2 -2
- package/lib/views/datasources/DatasourceDetail.d.ts +12 -5
- package/lib/views/datasources/DatasourceDetail.js +80 -110
- package/lib/views/datasources/DatasourceNew.d.ts +14 -8
- package/lib/views/datasources/DatasourceNew.js +129 -118
- package/lib/views/datasources/Datasources.d.ts +39 -7
- package/lib/views/datasources/Datasources.js +95 -40
- package/lib/views/datasources/DatasourcesMock.d.ts +3 -0
- package/lib/views/datasources/DatasourcesMock.js +57 -0
- package/lib/views/iam/SignInSimple.d.ts +12 -0
- package/lib/views/iam/SignInSimple.js +4 -4
- package/lib/views/index.d.ts +1 -0
- package/lib/views/index.js +1 -0
- package/lib/views/mcp/AlertDestinations.d.ts +34 -0
- package/lib/views/mcp/AlertDestinations.js +75 -0
- package/lib/views/mcp/AlertRules.d.ts +32 -0
- package/lib/views/mcp/AlertRules.js +245 -0
- package/lib/views/mcp/AuditLog.d.ts +42 -0
- package/lib/views/mcp/AuditLog.js +144 -0
- package/lib/views/mcp/ConnectedAgents.d.ts +34 -0
- package/lib/views/mcp/ConnectedAgents.js +100 -0
- package/lib/views/mcp/EnterpriseConsole.d.ts +74 -0
- package/lib/views/mcp/EnterpriseConsole.js +173 -0
- package/lib/views/mcp/McpDashboard.d.ts +50 -0
- package/lib/views/mcp/McpDashboard.js +347 -0
- package/lib/views/mcp/McpHome.d.ts +92 -0
- package/lib/views/mcp/McpHome.js +153 -0
- package/lib/views/mcp/McpObservability.d.ts +50 -0
- package/lib/views/mcp/McpObservability.js +150 -0
- package/lib/views/mcp/OrganizationPolicy.d.ts +45 -0
- package/lib/views/mcp/OrganizationPolicy.js +107 -0
- package/lib/views/mcp/OrganizationUsage.d.ts +69 -0
- package/lib/views/mcp/OrganizationUsage.js +113 -0
- package/lib/views/mcp/PersonalPolicy.d.ts +54 -0
- package/lib/views/mcp/PersonalPolicy.js +125 -0
- package/lib/views/mcp/Policies.d.ts +53 -0
- package/lib/views/mcp/Policies.js +210 -0
- package/lib/views/mcp/PolicyForm.d.ts +67 -0
- package/lib/views/mcp/PolicyForm.js +91 -0
- package/lib/views/mcp/PolicyHistory.d.ts +45 -0
- package/lib/views/mcp/PolicyHistory.js +62 -0
- package/lib/views/mcp/ServiceAgents.d.ts +46 -0
- package/lib/views/mcp/ServiceAgents.js +194 -0
- package/lib/views/mcp/TeamPolicies.d.ts +33 -0
- package/lib/views/mcp/TeamPolicies.js +98 -0
- package/lib/views/mcp/format.d.ts +25 -0
- package/lib/views/mcp/format.js +77 -0
- package/lib/views/mcp/index.d.ts +29 -0
- package/lib/views/mcp/index.js +37 -0
- package/lib/views/mcp/types.d.ts +66 -0
- package/lib/views/mcp/types.js +5 -0
- package/lib/views/secrets/SecretEdit.d.ts +5 -1
- package/lib/views/secrets/SecretEdit.js +2 -2
- package/lib/views/secrets/SecretNew.d.ts +11 -1
- package/lib/views/secrets/SecretNew.js +2 -2
- package/lib/views/secrets/Secrets.d.ts +12 -1
- package/lib/views/secrets/Secrets.js +2 -2
- package/package.json +28 -24
- package/scripts/generate-contents-types.py +169 -0
- package/scripts/generate-mcp-types.py +233 -0
- package/lib/api/iam/datasources.d.ts +0 -86
- package/lib/api/iam/datasources.js +0 -185
- package/lib/components/toolbars/index.d.ts +0 -1
- package/lib/models/Datasource.d.ts +0 -181
- package/lib/models/Datasource.js +0 -154
- package/lib/state/substates/DatasourceState.d.ts +0 -11
- package/lib/state/substates/DatasourceState.js +0 -16
- /package/lib/{components/toolbars/index.js → api/contents/generated.js} +0 -0
|
@@ -4,12 +4,12 @@ export interface FocusTrapHookSettings {
|
|
|
4
4
|
* Ref that will be used for the trapping container. If not provided, one will
|
|
5
5
|
* be created by this hook and returned.
|
|
6
6
|
*/
|
|
7
|
-
containerRef: React.RefObject<HTMLElement>;
|
|
7
|
+
containerRef: React.RefObject<HTMLElement | null>;
|
|
8
8
|
/**
|
|
9
9
|
* Ref for the element that should receive focus when the focus trap is first enabled.
|
|
10
10
|
* If not provided, one will be created by this hook and returned. Its use is optional.
|
|
11
11
|
*/
|
|
12
|
-
initialFocusRef?: React.RefObject<HTMLElement>;
|
|
12
|
+
initialFocusRef?: React.RefObject<HTMLElement | null>;
|
|
13
13
|
/**
|
|
14
14
|
* Set to true to disable the focus trap and clean up listeners. Can be re-enabled at any time.
|
|
15
15
|
*/
|
|
@@ -25,6 +25,6 @@ export interface FocusTrapHookSettings {
|
|
|
25
25
|
* @param settings {FocusTrapHookSettings}
|
|
26
26
|
*/
|
|
27
27
|
export declare function useFocusTrap(settings?: FocusTrapHookSettings, dependencies?: React.DependencyList): {
|
|
28
|
-
containerRef: React.RefObject<HTMLElement> | undefined;
|
|
29
|
-
initialFocusRef: React.RefObject<HTMLElement> | undefined;
|
|
28
|
+
containerRef: React.RefObject<HTMLElement | null> | undefined;
|
|
29
|
+
initialFocusRef: React.RefObject<HTMLElement | null> | undefined;
|
|
30
30
|
};
|
|
@@ -13,7 +13,7 @@ export function useFocusTrap(settings, dependencies = []) {
|
|
|
13
13
|
const containerRef = settings?.containerRef;
|
|
14
14
|
const initialFocusRef = settings?.initialFocusRef;
|
|
15
15
|
const disabled = settings?.disabled;
|
|
16
|
-
const abortController = React.useRef();
|
|
16
|
+
const abortController = React.useRef(undefined);
|
|
17
17
|
const previousFocusedElement = React.useRef(null);
|
|
18
18
|
// If we are enabling a focus trap and haven't already stored the previously focused element
|
|
19
19
|
// go ahead an do that so we can restore later when the trap is disabled.
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import { type McpActivity, type McpActivityFilters, type McpAuditFilters, type McpBindingListFilters, type McpGatewayVersion, type McpMetricsFilters, type McpMetricsSnapshot, type McpOrganizationOverview, type McpOrganizationUsage, type McpOrganizationOverviewFilters, type McpPolicyFilters, type McpRunLogs, type McpRunTrace, type McpTaskEvent, type McpTaskListFilters, type McpWorkerList, type McpWorkflowsHealth } from '../api/mcp';
|
|
2
|
+
import { type ConnectedAgent } from '../api/iam/connectedAgents';
|
|
3
|
+
import { type OrganizationTeam } from '../api/iam/organizationTeams';
|
|
4
|
+
import { setAuditSettings, type McpAuditSettings } from '../api/iam/mcpAuditSettings';
|
|
5
|
+
import { type McpForwarding } from '../api/mcp/forwarding';
|
|
6
|
+
import { type McpAlertRuleTrial } from '../api/mcp/alerts';
|
|
7
|
+
import { type McpAlertRule, type McpAlertRuleDraft } from '../api/iam/mcpAlertRules';
|
|
8
|
+
import { type McpPolicy, type McpPolicyRules, type McpPolicyScope } from '../api/iam/mcpPolicy';
|
|
9
|
+
import { type ServiceAgent, type ServiceAgentWithKey } from '../api/iam/serviceAgents';
|
|
10
|
+
import type { McpAuditEventList, McpAuditExportFormat } from '../models/McpAuditEvent';
|
|
11
|
+
import type { McpBinding, McpBindingList } from '../models/McpBinding';
|
|
12
|
+
import type { McpEffectivePolicy } from '../models/McpPolicy';
|
|
13
|
+
import type { McpTask, McpTaskList } from '../models/McpTask';
|
|
14
|
+
export declare const useTasks: (filters?: McpTaskListFilters, options?: {
|
|
15
|
+
enabled?: boolean;
|
|
16
|
+
}) => import("@tanstack/react-query").UseQueryResult<McpTaskList, Error>;
|
|
17
|
+
/** One task, polled every two seconds until it is terminal. */
|
|
18
|
+
export declare const useTask: (taskUid?: string) => import("@tanstack/react-query").UseQueryResult<McpTask, Error>;
|
|
19
|
+
export declare const useNotebookTasks: (notebookUid?: string, filters?: Pick<McpTaskListFilters, "status" | "cursor" | "limit">) => import("@tanstack/react-query").UseQueryResult<McpTaskList, Error>;
|
|
20
|
+
/**
|
|
21
|
+
* The task's server-sent events, patched into the task's cache entry so
|
|
22
|
+
* every `useTask` of it updates without polling. Ends by itself when the
|
|
23
|
+
* task is terminal; the subscription closes with the component.
|
|
24
|
+
*/
|
|
25
|
+
export declare const useTaskEvents: (taskUid?: string, options?: {
|
|
26
|
+
enabled?: boolean;
|
|
27
|
+
onEvent?: (event: McpTaskEvent) => void;
|
|
28
|
+
}) => void;
|
|
29
|
+
export declare const useCancelTask: () => import("@tanstack/react-query").UseMutationResult<McpTask, Error, string, unknown>;
|
|
30
|
+
export declare const useAnswerTask: () => import("@tanstack/react-query").UseMutationResult<McpTask, Error, {
|
|
31
|
+
taskUid: string;
|
|
32
|
+
input: Record<string, unknown>;
|
|
33
|
+
}, unknown>;
|
|
34
|
+
export declare const useBindings: (filters?: McpBindingListFilters, options?: {
|
|
35
|
+
enabled?: boolean;
|
|
36
|
+
}) => import("@tanstack/react-query").UseQueryResult<McpBindingList, Error>;
|
|
37
|
+
export declare const useTerminateBinding: () => import("@tanstack/react-query").UseMutationResult<McpBinding, Error, string, unknown>;
|
|
38
|
+
/**
|
|
39
|
+
* What is going on for the caller, refetched every ten seconds as the
|
|
40
|
+
* fallback under the ai-agents websocket, which patches the same entry.
|
|
41
|
+
*/
|
|
42
|
+
export declare const useMcpActivity: (filters?: McpActivityFilters, options?: {
|
|
43
|
+
enabled?: boolean;
|
|
44
|
+
pollIntervalMs?: number | false;
|
|
45
|
+
}) => import("@tanstack/react-query").UseQueryResult<McpActivity, Error>;
|
|
46
|
+
/** One page of the audit log; the cursor is one of the filters, as the URL keeps it. */
|
|
47
|
+
export declare const useAuditEvents: (filters?: McpAuditFilters, options?: {
|
|
48
|
+
enabled?: boolean;
|
|
49
|
+
}) => import("@tanstack/react-query").UseQueryResult<McpAuditEventList, Error>;
|
|
50
|
+
/** The whole selection as one JSONL or CSV document, on demand. */
|
|
51
|
+
export declare const useAuditExport: () => import("@tanstack/react-query").UseMutationResult<string, Error, {
|
|
52
|
+
filters?: Omit<McpAuditFilters, "cursor" | "limit">;
|
|
53
|
+
format?: McpAuditExportFormat;
|
|
54
|
+
}, unknown>;
|
|
55
|
+
/** The effective policy for the caller, or previewed as one agent. */
|
|
56
|
+
export declare const useEffectivePolicy: (agent?: string, filters?: Omit<McpPolicyFilters, "agent">, options?: {
|
|
57
|
+
enabled?: boolean;
|
|
58
|
+
}) => import("@tanstack/react-query").UseQueryResult<McpEffectivePolicy, Error>;
|
|
59
|
+
/**
|
|
60
|
+
* The organization's MCP overview, for the console's first page.
|
|
61
|
+
*
|
|
62
|
+
* Read on demand and kept for a minute: an administrator reads it, acts, and
|
|
63
|
+
* comes back — it is not a live pane, and a page that re-asked every ten
|
|
64
|
+
* seconds would cost the gateway three bounded queries for nothing.
|
|
65
|
+
*/
|
|
66
|
+
export declare const useOrgMcpOverview: (orgUid?: string, filters?: McpOrganizationOverviewFilters, options?: {
|
|
67
|
+
enabled?: boolean;
|
|
68
|
+
}) => import("@tanstack/react-query").UseQueryResult<McpOrganizationOverview, Error>;
|
|
69
|
+
/**
|
|
70
|
+
* The organization's use against its quotas, and which agents spent it.
|
|
71
|
+
*
|
|
72
|
+
* Kept for a minute like the overview, and for the same reason: an
|
|
73
|
+
* administrator reads it, acts, and comes back. A budget that re-asked every
|
|
74
|
+
* ten seconds would cost IAM a ledger query for a number that moves in
|
|
75
|
+
* credits, not in milliseconds.
|
|
76
|
+
*/
|
|
77
|
+
export declare const useOrgMcpUsage: (orgUid?: string, filters?: McpOrganizationOverviewFilters, options?: {
|
|
78
|
+
enabled?: boolean;
|
|
79
|
+
}) => import("@tanstack/react-query").UseQueryResult<McpOrganizationUsage, Error>;
|
|
80
|
+
export declare const useConnectedAgents: (options?: {
|
|
81
|
+
enabled?: boolean;
|
|
82
|
+
}) => import("@tanstack/react-query").UseQueryResult<ConnectedAgent[], Error>;
|
|
83
|
+
/** Revoke a grant; the list and the activity are refreshed, never guessed. */
|
|
84
|
+
export declare const useDisconnectAgent: () => import("@tanstack/react-query").UseMutationResult<{
|
|
85
|
+
success: boolean;
|
|
86
|
+
message?: string;
|
|
87
|
+
}, Error, string, unknown>;
|
|
88
|
+
/** One organization's teams, for the console's team policy page. */
|
|
89
|
+
export declare const useOrganizationTeams: (orgUid: string, options?: {
|
|
90
|
+
enabled?: boolean;
|
|
91
|
+
}) => import("@tanstack/react-query").UseQueryResult<OrganizationTeam[], Error>;
|
|
92
|
+
/**
|
|
93
|
+
* Whether the audit is reaching the organization's own system of record.
|
|
94
|
+
*
|
|
95
|
+
* Polled rather than read once: a destination that stops answering does so
|
|
96
|
+
* while somebody is looking at the page, and the point of the panel is to
|
|
97
|
+
* say when that happens.
|
|
98
|
+
*/
|
|
99
|
+
export declare const useMcpForwarding: (org?: string, options?: {
|
|
100
|
+
enabled?: boolean;
|
|
101
|
+
}) => import("@tanstack/react-query").UseQueryResult<McpForwarding, Error>;
|
|
102
|
+
/** One organization's settings, or `null` where it has decided nothing. */
|
|
103
|
+
export declare const useAuditSettings: (orgUid: string, options?: {
|
|
104
|
+
enabled?: boolean;
|
|
105
|
+
}) => import("@tanstack/react-query").UseQueryResult<McpAuditSettings | null, Error>;
|
|
106
|
+
/**
|
|
107
|
+
* Change some of them. Only what is passed is sent, because IAM merges: a
|
|
108
|
+
* page editing the alert destinations must not clear a retention it never
|
|
109
|
+
* showed.
|
|
110
|
+
*/
|
|
111
|
+
export declare const useSetAuditSettings: (orgUid: string) => import("@tanstack/react-query").UseMutationResult<McpAuditSettings, Error, {
|
|
112
|
+
settings: Parameters<typeof setAuditSettings>[2];
|
|
113
|
+
expectedVersion?: number;
|
|
114
|
+
}, unknown>;
|
|
115
|
+
/**
|
|
116
|
+
* Try a rule against current values.
|
|
117
|
+
*
|
|
118
|
+
* A mutation rather than a query: it is something somebody asks for, once,
|
|
119
|
+
* by pressing a button — and caching "what does this see now" would answer
|
|
120
|
+
* the second press with the first press's numbers.
|
|
121
|
+
*/
|
|
122
|
+
export declare const useTestAlertRule: () => import("@tanstack/react-query").UseMutationResult<McpAlertRuleTrial, Error, {
|
|
123
|
+
condition: string;
|
|
124
|
+
operator: string;
|
|
125
|
+
threshold: number;
|
|
126
|
+
windowSeconds: number;
|
|
127
|
+
scopeKind?: string;
|
|
128
|
+
scopeUid?: string;
|
|
129
|
+
}, unknown>;
|
|
130
|
+
/** One organization's alert rules, disabled ones included. */
|
|
131
|
+
export declare const useAlertRules: (orgUid: string, options?: {
|
|
132
|
+
enabled?: boolean;
|
|
133
|
+
}) => import("@tanstack/react-query").UseQueryResult<McpAlertRule[], Error>;
|
|
134
|
+
export declare const useCreateAlertRule: (orgUid: string) => import("@tanstack/react-query").UseMutationResult<McpAlertRule, Error, McpAlertRuleDraft, unknown>;
|
|
135
|
+
export declare const useUpdateAlertRule: (orgUid: string) => import("@tanstack/react-query").UseMutationResult<McpAlertRule, Error, {
|
|
136
|
+
uid: string;
|
|
137
|
+
rule: McpAlertRuleDraft;
|
|
138
|
+
}, unknown>;
|
|
139
|
+
export declare const useDeleteAlertRule: (orgUid: string) => import("@tanstack/react-query").UseMutationResult<void, Error, string, unknown>;
|
|
140
|
+
/**
|
|
141
|
+
* One layer's rules, or `null` where nobody has written one.
|
|
142
|
+
*
|
|
143
|
+
* `null` is a real answer and not an error: most organizations have never
|
|
144
|
+
* written a policy, and a form needs to tell "narrows nothing" from "does
|
|
145
|
+
* not exist" — only the second has nothing to remove.
|
|
146
|
+
*/
|
|
147
|
+
export declare const useMcpPolicyLayer: (scope: McpPolicyScope, subjectUid: string, options?: {
|
|
148
|
+
enabled?: boolean;
|
|
149
|
+
}) => import("@tanstack/react-query").UseQueryResult<McpPolicy | null, Error>;
|
|
150
|
+
/**
|
|
151
|
+
* Several layers at once, for a page that has to compare against them all.
|
|
152
|
+
*
|
|
153
|
+
* The personal policy page needs every organization a person belongs to in
|
|
154
|
+
* order to say which of their values will have no effect. One hook per
|
|
155
|
+
* organization is not something a component can do — the count changes — so
|
|
156
|
+
* they are fetched together and answered in the order asked.
|
|
157
|
+
*
|
|
158
|
+
* A layer that could not be read comes back `null`, the same as one nobody
|
|
159
|
+
* has written. That is the safe direction here: the page would rather say
|
|
160
|
+
* nothing about narrowing than invent a cap somebody does not have.
|
|
161
|
+
*/
|
|
162
|
+
export declare const useMcpPolicyLayers: (scope: McpPolicyScope, subjectUids: string[]) => import("@tanstack/react-query").UseQueryResult<McpPolicy | null, Error>[];
|
|
163
|
+
/**
|
|
164
|
+
* Replace one layer's rules.
|
|
165
|
+
*
|
|
166
|
+
* The **effective** policy is invalidated alongside the layer: the two are
|
|
167
|
+
* the same fact read two ways, and a page still showing the old effective
|
|
168
|
+
* policy after a write is a page saying the change did not take.
|
|
169
|
+
*/
|
|
170
|
+
export declare const useSetMcpPolicyLayer: (scope: McpPolicyScope, subjectUid: string) => import("@tanstack/react-query").UseMutationResult<McpPolicy, Error, {
|
|
171
|
+
rules: McpPolicyRules;
|
|
172
|
+
expectedVersion?: number;
|
|
173
|
+
}, unknown>;
|
|
174
|
+
/** Remove one layer, so it narrows nothing again. */
|
|
175
|
+
export declare const useDeleteMcpPolicyLayer: (scope: McpPolicyScope, subjectUid: string) => import("@tanstack/react-query").UseMutationResult<void, Error, void, unknown>;
|
|
176
|
+
/**
|
|
177
|
+
* One organization's service agents, revoked ones included.
|
|
178
|
+
*
|
|
179
|
+
* Keyed by the organization: two organizations' lists must never share a
|
|
180
|
+
* cache entry, or an owner of both would see one under the other's name.
|
|
181
|
+
*/
|
|
182
|
+
export declare const useServiceAgents: (orgUid: string, options?: {
|
|
183
|
+
enabled?: boolean;
|
|
184
|
+
}) => import("@tanstack/react-query").UseQueryResult<ServiceAgent[], Error>;
|
|
185
|
+
/**
|
|
186
|
+
* Create one. The answer carries the key, and it is the only place it
|
|
187
|
+
* exists — so the caller must render it before doing anything else with it.
|
|
188
|
+
*/
|
|
189
|
+
export declare const useCreateServiceAgent: (orgUid: string) => import("@tanstack/react-query").UseMutationResult<ServiceAgentWithKey, Error, {
|
|
190
|
+
name: string;
|
|
191
|
+
scopes: string[];
|
|
192
|
+
description?: string;
|
|
193
|
+
teamUid?: string;
|
|
194
|
+
}, unknown>;
|
|
195
|
+
/** Replace an agent's key; the old one stops working with the call. */
|
|
196
|
+
export declare const useRotateServiceAgentKey: (orgUid: string) => import("@tanstack/react-query").UseMutationResult<ServiceAgentWithKey, Error, string, unknown>;
|
|
197
|
+
/** Stop an agent. The list is refetched rather than edited in place. */
|
|
198
|
+
export declare const useRevokeServiceAgent: (orgUid: string) => import("@tanstack/react-query").UseMutationResult<ServiceAgent, Error, string, unknown>;
|
|
199
|
+
/** The spans of a run, from the task's trace id; asked again while the task runs. */
|
|
200
|
+
export declare const useRunTrace: (taskUid?: string, options?: {
|
|
201
|
+
enabled?: boolean;
|
|
202
|
+
}) => import("@tanstack/react-query").UseQueryResult<McpRunTrace, Error>;
|
|
203
|
+
/**
|
|
204
|
+
* The spans of one trace, for a call that finished inside its own request.
|
|
205
|
+
*
|
|
206
|
+
* Read once and kept: a finished trace does not change, and the pane that
|
|
207
|
+
* shows it is opened from an audit row rather than watched.
|
|
208
|
+
*/
|
|
209
|
+
export declare const useMcpTrace: (traceId?: string, options?: {
|
|
210
|
+
enabled?: boolean;
|
|
211
|
+
}) => import("@tanstack/react-query").UseQueryResult<McpRunTrace, Error>;
|
|
212
|
+
/** The four SLIs and the catalog, platform-wide or for one agent or organization. */
|
|
213
|
+
export declare const useMcpMetrics: (filters?: McpMetricsFilters, options?: {
|
|
214
|
+
enabled?: boolean;
|
|
215
|
+
}) => import("@tanstack/react-query").UseQueryResult<McpMetricsSnapshot, Error>;
|
|
216
|
+
/** The log lines of a run, gateway and worker alike, by its trace. */
|
|
217
|
+
export declare const useMcpLogs: (taskUid?: string, options?: {
|
|
218
|
+
enabled?: boolean;
|
|
219
|
+
limit?: number;
|
|
220
|
+
severity?: string;
|
|
221
|
+
}) => import("@tanstack/react-query").UseQueryResult<McpRunLogs, Error>;
|
|
222
|
+
export declare const useMcpWorkers: (options?: {
|
|
223
|
+
enabled?: boolean;
|
|
224
|
+
}) => import("@tanstack/react-query").UseQueryResult<McpWorkerList, Error>;
|
|
225
|
+
export declare const useMcpWorkflowsHealth: (options?: {
|
|
226
|
+
enabled?: boolean;
|
|
227
|
+
}) => import("@tanstack/react-query").UseQueryResult<McpWorkflowsHealth, Error>;
|
|
228
|
+
/** The gateway's version and resource; no token needed. */
|
|
229
|
+
export declare const useMcpGatewayVersion: () => import("@tanstack/react-query").UseQueryResult<McpGatewayVersion, Error>;
|