@datalayer/core 1.1.60 → 1.2.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/README.md +41 -18
- package/lib/api/DatalayerApi.d.ts +42 -1
- package/lib/api/DatalayerApi.js +90 -3
- package/lib/api/constants.d.ts +19 -1
- package/lib/api/constants.js +19 -1
- package/lib/api/contents/attachments.d.ts +9 -0
- package/lib/api/contents/attachments.js +39 -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 +63 -0
- package/lib/api/contents/datasets.js +82 -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 +21 -0
- package/lib/api/contents/sandboxUid.js +27 -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/evals/client.d.ts +402 -0
- package/lib/api/evals/client.js +359 -0
- package/lib/api/evals/index.d.ts +10 -0
- package/lib/api/evals/index.js +18 -0
- package/lib/api/evals/request.d.ts +43 -0
- package/lib/api/evals/request.js +67 -0
- package/lib/api/evals/status.d.ts +27 -0
- package/lib/api/evals/status.js +122 -0
- package/lib/api/evals/types.d.ts +1335 -0
- package/lib/api/evals/types.js +5 -0
- package/lib/api/iam/connectedAgents.d.ts +68 -0
- package/lib/api/iam/connectedAgents.js +87 -0
- package/lib/api/iam/identityProviders.d.ts +76 -0
- package/lib/api/iam/identityProviders.js +187 -0
- package/lib/api/iam/index.d.ts +3 -1
- package/lib/api/iam/index.js +3 -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 +181 -0
- package/lib/api/iam/mcpPolicy.js +168 -0
- package/lib/api/iam/organizationTeams.d.ts +13 -0
- package/lib/api/iam/organizationTeams.js +43 -0
- package/lib/api/iam/profile.d.ts +17 -1
- package/lib/api/iam/profile.js +27 -0
- package/lib/api/iam/scimTokens.d.ts +79 -0
- package/lib/api/iam/scimTokens.js +141 -0
- package/lib/api/iam/secrets.js +9 -21
- package/lib/api/iam/serviceAgents.d.ts +68 -0
- package/lib/api/iam/serviceAgents.js +119 -0
- package/lib/api/iam/trials.d.ts +38 -0
- package/lib/api/iam/trials.js +66 -0
- package/lib/api/index.d.ts +8 -1
- package/lib/api/index.js +7 -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 +141 -0
- package/lib/api/mcp/observability.js +267 -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/orchestration/client.d.ts +53 -0
- package/lib/api/orchestration/client.js +105 -0
- package/lib/api/orchestration/events.d.ts +88 -0
- package/lib/api/orchestration/events.js +245 -0
- package/lib/api/orchestration/generated.d.ts +693 -0
- package/lib/api/orchestration/generated.js +687 -0
- package/lib/api/orchestration/index.d.ts +30 -0
- package/lib/api/orchestration/index.js +34 -0
- package/lib/api/orchestration/lifecycle.d.ts +39 -0
- package/lib/api/orchestration/lifecycle.js +57 -0
- package/lib/api/orchestration/measures.d.ts +55 -0
- package/lib/api/orchestration/measures.js +99 -0
- package/lib/api/otel/dashboards.d.ts +56 -0
- package/lib/api/otel/dashboards.js +50 -0
- package/lib/api/otel/index.d.ts +1 -0
- package/lib/api/otel/index.js +1 -0
- package/lib/api/otel/metrics.d.ts +16 -0
- package/lib/api/otel/metrics.js +15 -0
- package/lib/api/scheduler/client.d.ts +32 -0
- package/lib/api/scheduler/client.js +42 -0
- package/lib/api/scheduler/index.d.ts +8 -0
- package/lib/api/scheduler/index.js +16 -0
- package/lib/api/scheduler/request.d.ts +28 -0
- package/lib/api/scheduler/request.js +50 -0
- package/lib/api/scheduler/types.d.ts +88 -0
- package/lib/api/scheduler/types.js +5 -0
- package/lib/api/spacer/comments.d.ts +97 -0
- package/lib/api/spacer/comments.js +45 -0
- package/lib/api/spacer/index.d.ts +9 -0
- package/lib/api/spacer/index.js +17 -0
- package/lib/api/spacer/notebooks.d.ts +33 -0
- package/lib/api/spacer/notebooks.js +39 -0
- package/lib/api/spacer/request.d.ts +25 -0
- package/lib/api/spacer/request.js +46 -0
- package/lib/api/spacer/spaces.d.ts +68 -0
- package/lib/api/spacer/spaces.js +45 -0
- package/lib/api/utils/validation.d.ts +4 -4
- package/lib/api/utils/validation.js +10 -7
- 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/constants.d.ts +1 -0
- package/lib/client/constants.js +1 -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 +2 -44
- package/lib/components/animation/AnimatedText.js +6 -126
- package/lib/components/anonymous/AnonymousKeyExpired.d.ts +56 -0
- package/lib/components/anonymous/AnonymousKeyExpired.js +96 -0
- package/lib/components/anonymous/AnonymousKeyTimer.d.ts +63 -0
- package/lib/components/anonymous/AnonymousKeyTimer.js +140 -0
- package/lib/components/anonymous/index.d.ts +7 -0
- package/lib/components/anonymous/index.js +15 -0
- 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 +16 -1
- package/lib/components/avatars/UserAvatar.js +15 -13
- 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 +16 -0
- package/lib/components/billing/BillingEntitySelect.js +49 -27
- package/lib/components/billing/eligibility.d.ts +22 -0
- package/lib/components/billing/eligibility.js +27 -0
- package/lib/components/billing/index.d.ts +1 -0
- package/lib/components/billing/index.js +1 -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 +36 -0
- package/lib/components/collaboration/LiveEditorCollaborators.js +88 -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 -3
- package/lib/components/display/DatalayerBox.js +7 -7
- 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/NavLink.js +3 -2
- 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 +2 -9
- package/lib/components/labels/StatusLabels.js +2 -26
- 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 +22 -42
- package/lib/components/principal/PrincipalAppearance.js +232 -182
- package/lib/components/principal/PrincipalAvatar.d.ts +9 -1
- package/lib/components/principal/PrincipalAvatar.js +18 -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 +38 -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 +5 -14
- 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/Screencapture.js +46 -3
- package/lib/components/screencapture/ScreencaptureButton.d.ts +1 -1
- package/lib/components/sharing/ShareAccessComponent.d.ts +58 -3
- package/lib/components/sharing/ShareAccessComponent.js +143 -98
- package/lib/components/sharing/SharingEditor.d.ts +21 -0
- package/lib/components/sharing/SharingEditor.js +9 -28
- package/lib/components/sharing/index.d.ts +1 -0
- package/lib/components/sharing/index.js +1 -0
- package/lib/components/sharing/sandboxSharing.d.ts +26 -0
- package/lib/components/sharing/sandboxSharing.js +41 -0
- package/lib/components/spaces/SpaceDetailsOverlay.d.ts +39 -0
- package/lib/components/spaces/SpaceDetailsOverlay.js +80 -0
- package/lib/components/spaces/SpaceDisplay.d.ts +38 -0
- package/lib/components/spaces/SpaceDisplay.js +92 -0
- package/lib/components/spaces/index.d.ts +4 -0
- package/lib/components/spaces/index.js +7 -0
- package/lib/components/spaces/spaceDisplayModel.d.ts +93 -0
- package/lib/components/spaces/spaceDisplayModel.js +170 -0
- 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/cacheConverters.d.ts +0 -7
- package/lib/hooks/cacheConverters.js +0 -25
- package/lib/hooks/index.d.ts +3 -0
- package/lib/hooks/index.js +3 -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/useBillingEntityStore.js +3 -0
- package/lib/hooks/useCache.d.ts +478 -130
- package/lib/hooks/useCache.js +1580 -676
- package/lib/hooks/useContainsFocus.d.ts +1 -1
- package/lib/hooks/useContents.d.ts +334 -0
- package/lib/hooks/useContents.js +1033 -0
- package/lib/hooks/useFocusTrap.d.ts +4 -4
- package/lib/hooks/useFocusTrap.js +1 -1
- package/lib/hooks/useMcp.d.ts +315 -0
- package/lib/hooks/useMcp.js +891 -0
- package/lib/hooks/useMobile.js +0 -5
- package/lib/hooks/useNavigate.d.ts +41 -3
- package/lib/hooks/useNavigate.js +106 -52
- package/lib/hooks/usePrincipalCacheStore.js +3 -0
- package/lib/hooks/usePrincipalStore.js +3 -0
- 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/useSpaceCacheStore.d.ts +50 -0
- package/lib/hooks/useSpaceCacheStore.js +85 -0
- package/lib/hooks/useToast.js +0 -4
- 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/CreditsDTO.d.ts +6 -5
- package/lib/models/CreditsDTO.js +7 -5
- package/lib/models/McpAuditEvent.d.ts +52 -0
- package/lib/models/McpAuditEvent.js +5 -0
- package/lib/models/McpBinding.d.ts +57 -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/Organization.d.ts +69 -0
- package/lib/models/Organization.js +96 -0
- package/lib/models/Secret.d.ts +1 -2
- package/lib/models/Secret.js +2 -18
- package/lib/models/StartedBy.d.ts +91 -0
- package/lib/models/StartedBy.js +117 -0
- package/lib/models/Team.d.ts +2 -0
- package/lib/models/Team.js +2 -0
- package/lib/models/User.d.ts +4 -0
- package/lib/models/User.js +3 -0
- package/lib/models/UserDTO.js +4 -2
- package/lib/models/UserSettings.d.ts +13 -0
- package/lib/models/UserSettings.js +9 -0
- package/lib/models/contents/__fixtures__/solr-codec.json +57 -0
- package/lib/models/contents/__fixtures__/v1-contracts.json +194 -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/navigation/components.js +2 -3
- package/lib/routes/publicPaths.js +4 -0
- package/lib/state/index.d.ts +1 -0
- package/lib/state/index.js +1 -0
- package/lib/state/sessionEnd.d.ts +55 -0
- package/lib/state/sessionEnd.js +162 -0
- package/lib/state/substates/CoreState.d.ts +15 -7
- package/lib/state/substates/CoreState.js +21 -17
- package/lib/state/substates/IAMState.d.ts +1 -1
- package/lib/state/substates/IAMState.js +12 -5
- package/lib/state/substates/LayoutState.js +12 -0
- package/lib/state/substates/ProfileState.d.ts +1 -0
- package/lib/state/substates/ProfileState.js +1 -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/Lazy.d.ts +20 -0
- package/lib/utils/Lazy.js +32 -6
- package/lib/utils/Screencapture.js +3 -0
- package/lib/utils/WithSuspense.d.ts +11 -1
- package/lib/utils/WithSuspense.js +11 -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/AdmittedClients.d.ts +44 -0
- package/lib/views/mcp/AdmittedClients.js +59 -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/ApprovalQueue.d.ts +66 -0
- package/lib/views/mcp/ApprovalQueue.js +95 -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 +135 -0
- package/lib/views/mcp/EnterpriseConsole.d.ts +74 -0
- package/lib/views/mcp/EnterpriseConsole.js +195 -0
- package/lib/views/mcp/IdentityProviders.d.ts +33 -0
- package/lib/views/mcp/IdentityProviders.js +299 -0
- package/lib/views/mcp/McpDashboard.d.ts +50 -0
- package/lib/views/mcp/McpDashboard.js +430 -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 +79 -0
- package/lib/views/mcp/McpObservability.js +236 -0
- package/lib/views/mcp/NotebookRuns.d.ts +39 -0
- package/lib/views/mcp/NotebookRuns.js +44 -0
- package/lib/views/mcp/OrganizationPolicy.d.ts +45 -0
- package/lib/views/mcp/OrganizationPolicy.js +108 -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 +126 -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 +83 -0
- package/lib/views/mcp/PolicyForm.js +113 -0
- package/lib/views/mcp/PolicyHistory.d.ts +58 -0
- package/lib/views/mcp/PolicyHistory.js +75 -0
- package/lib/views/mcp/RunDetail.d.ts +87 -0
- package/lib/views/mcp/RunDetail.js +186 -0
- package/lib/views/mcp/ScimProvisioning.d.ts +54 -0
- package/lib/views/mcp/ScimProvisioning.js +173 -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 +159 -0
- package/lib/views/mcp/ToolAccess.d.ts +60 -0
- package/lib/views/mcp/ToolAccess.js +101 -0
- package/lib/views/mcp/TraceTimeline.d.ts +81 -0
- package/lib/views/mcp/TraceTimeline.js +132 -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 +34 -0
- package/lib/views/mcp/index.js +42 -0
- package/lib/views/mcp/types.d.ts +66 -0
- package/lib/views/mcp/types.js +5 -0
- package/lib/views/otel/simpleAuthStore.js +3 -0
- package/lib/views/secrets/SecretEdit.d.ts +5 -1
- package/lib/views/secrets/SecretEdit.js +5 -4
- package/lib/views/secrets/SecretNew.d.ts +11 -1
- package/lib/views/secrets/SecretNew.js +7 -3
- package/lib/views/secrets/Secrets.d.ts +12 -1
- package/lib/views/secrets/Secrets.js +2 -2
- package/package.json +269 -260
- package/scripts/generate-contents-types.py +169 -0
- package/scripts/generate-mcp-types.py +233 -0
- package/scripts/generate-orchestration-types.py +920 -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
package/lib/client/base.d.ts
CHANGED
|
@@ -19,6 +19,8 @@ export interface DatalayerClientConfig {
|
|
|
19
19
|
runtimesUrl?: string;
|
|
20
20
|
/** URL for the Spacer service */
|
|
21
21
|
spacerUrl?: string;
|
|
22
|
+
/** URL for the Contents service */
|
|
23
|
+
contentsUrl?: string;
|
|
22
24
|
/** Custom token storage backend (optional, defaults to auto-detected) */
|
|
23
25
|
storage?: TokenStorage;
|
|
24
26
|
/** Handlers for intercepting Client method calls */
|
|
@@ -32,6 +34,8 @@ export declare class DatalayerClientBase {
|
|
|
32
34
|
readonly runtimesUrl: string;
|
|
33
35
|
/** URL for Spacer service */
|
|
34
36
|
readonly spacerUrl: string;
|
|
37
|
+
/** URL for Contents service */
|
|
38
|
+
readonly contentsUrl: string;
|
|
35
39
|
/** Authentication token */
|
|
36
40
|
token?: string;
|
|
37
41
|
/** Method lifecycle handlers */
|
|
@@ -54,6 +58,8 @@ export declare class DatalayerClientBase {
|
|
|
54
58
|
getRuntimesUrl(): string;
|
|
55
59
|
/** Get the Spacer service URL. */
|
|
56
60
|
getSpacerUrl(): string;
|
|
61
|
+
/** Get the Contents service URL. */
|
|
62
|
+
getContentsUrl(): string;
|
|
57
63
|
/** Get the current authentication token. */
|
|
58
64
|
getToken(): string | undefined;
|
|
59
65
|
/**
|
package/lib/client/base.js
CHANGED
|
@@ -16,6 +16,8 @@ export class DatalayerClientBase {
|
|
|
16
16
|
runtimesUrl;
|
|
17
17
|
/** URL for Spacer service */
|
|
18
18
|
spacerUrl;
|
|
19
|
+
/** URL for Contents service */
|
|
20
|
+
contentsUrl;
|
|
19
21
|
/** Authentication token */
|
|
20
22
|
token;
|
|
21
23
|
/** Method lifecycle handlers */
|
|
@@ -31,6 +33,7 @@ export class DatalayerClientBase {
|
|
|
31
33
|
this.runtimesUrl =
|
|
32
34
|
config.runtimesUrl || DEFAULT_SERVICE_URLS.RUNTIMES;
|
|
33
35
|
this.spacerUrl = config.spacerUrl || DEFAULT_SERVICE_URLS.SPACER;
|
|
36
|
+
this.contentsUrl = config.contentsUrl || DEFAULT_SERVICE_URLS.CONTENTS;
|
|
34
37
|
this.token = config.token;
|
|
35
38
|
this.handlers = config.handlers;
|
|
36
39
|
// Initialize authentication manager with custom storage if provided
|
|
@@ -49,6 +52,7 @@ export class DatalayerClientBase {
|
|
|
49
52
|
iamUrl: this.iamUrl,
|
|
50
53
|
runtimesUrl: this.runtimesUrl,
|
|
51
54
|
spacerUrl: this.spacerUrl,
|
|
55
|
+
contentsUrl: this.contentsUrl,
|
|
52
56
|
token: this.token,
|
|
53
57
|
};
|
|
54
58
|
}
|
|
@@ -64,6 +68,10 @@ export class DatalayerClientBase {
|
|
|
64
68
|
getSpacerUrl() {
|
|
65
69
|
return this.spacerUrl;
|
|
66
70
|
}
|
|
71
|
+
/** Get the Contents service URL. */
|
|
72
|
+
getContentsUrl() {
|
|
73
|
+
return this.contentsUrl;
|
|
74
|
+
}
|
|
67
75
|
/** Get the current authentication token. */
|
|
68
76
|
getToken() {
|
|
69
77
|
return this.token;
|
package/lib/client/constants.js
CHANGED
package/lib/client/index.d.ts
CHANGED
|
@@ -20,8 +20,6 @@ import type { CreditsDTO } from '../models/CreditsDTO';
|
|
|
20
20
|
import type { HealthCheck } from '../models/HealthCheck';
|
|
21
21
|
import type { SecretDTO } from '../models/Secret';
|
|
22
22
|
import type { CreateSecretRequest, UpdateSecretRequest } from '../models/Secret';
|
|
23
|
-
import type { DatasourceDTO } from '../models/Datasource';
|
|
24
|
-
import type { CreateDatasourceRequest, UpdateDatasourceRequest } from '../models/Datasource';
|
|
25
23
|
declare const DatalayerCoreClientWithMixins: typeof DatalayerClientBase;
|
|
26
24
|
/**
|
|
27
25
|
* Core Datalayer Client providing access to identity, plans and account
|
|
@@ -57,13 +55,10 @@ export { HealthCheck } from '../models/HealthCheck';
|
|
|
57
55
|
export type { HealthCheckJSON } from '../models/HealthCheck';
|
|
58
56
|
export { SecretDTO as Secret } from './../models/Secret';
|
|
59
57
|
export type { SecretJSON, SecretData, CreateSecretRequest, UpdateSecretRequest, CreateSecretResponse, GetSecretResponse, ListSecretsResponse, UpdateSecretResponse, DeleteSecretResponse, } from './../models/Secret';
|
|
60
|
-
export { DatasourceDTO as Datasource } from './../models/Datasource';
|
|
61
|
-
export type { DatasourceJSON, DatasourceData, DatasourceType, CreateDatasourceRequest, UpdateDatasourceRequest, CreateDatasourceResponse, GetDatasourceResponse, ListDatasourcesResponse, UpdateDatasourceResponse, } from './../models/Datasource';
|
|
62
58
|
export type { LoginRequest, LoginResponse, UserMeResponse, MembershipsResponse, WhoAmIResponse, } from '../models/IAM';
|
|
63
59
|
export type { HealthzPingResponse } from '../models/Common';
|
|
64
60
|
export { AuthenticationManager } from './auth/AuthenticationManager';
|
|
65
61
|
export type { IUser, IBaseUser } from '../models/User';
|
|
66
|
-
export type { IDatasource, IDatasourceVariant } from '../models/Datasource';
|
|
67
62
|
export type { ICredits, ICreditsReservation } from '../models/Credits';
|
|
68
63
|
export type { ISurvey } from '../models/Survey';
|
|
69
64
|
export type { IBaseTeam, IAnyTeam } from '../models/Team';
|
|
@@ -111,10 +106,5 @@ export interface DatalayerCoreClient {
|
|
|
111
106
|
getSecret(secretId: string): Promise<SecretDTO>;
|
|
112
107
|
updateSecret(secretId: string, updates: UpdateSecretRequest): Promise<SecretDTO>;
|
|
113
108
|
deleteSecret(secretId: string): Promise<void>;
|
|
114
|
-
createDatasource(data: CreateDatasourceRequest): Promise<DatasourceDTO>;
|
|
115
|
-
listDatasources(): Promise<DatasourceDTO[]>;
|
|
116
|
-
getDatasource(datasourceId: string): Promise<DatasourceDTO>;
|
|
117
|
-
updateDatasource(datasourceId: string, updates: UpdateDatasourceRequest): Promise<DatasourceDTO>;
|
|
118
|
-
deleteDatasource(datasourceId: string): Promise<void>;
|
|
119
109
|
calculateCreditsFromMinutes(minutes: number, burningRate: number): number;
|
|
120
110
|
}
|
package/lib/client/index.js
CHANGED
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
*/
|
|
21
21
|
import { DatalayerClientBase, } from './base.js';
|
|
22
22
|
import { IAMMixin } from './mixins/IAMMixin.js';
|
|
23
|
+
import { ContentsMixin } from './mixins/ContentsMixin.js';
|
|
23
24
|
/**
|
|
24
25
|
* Helper function to compose mixins in a more readable way.
|
|
25
26
|
* Applies mixins in the order provided.
|
|
@@ -33,7 +34,7 @@ function composeMixins(...mixins) {
|
|
|
33
34
|
// Apply the IAM mixin to the base class. Runtime and content (Spacer) features
|
|
34
35
|
// live in @datalayer/agent-runtimes, which composes AgentRuntimesClient on top
|
|
35
36
|
// of this core client.
|
|
36
|
-
const DatalayerCoreClientWithMixins = composeMixins(IAMMixin);
|
|
37
|
+
const DatalayerCoreClientWithMixins = composeMixins(IAMMixin, ContentsMixin);
|
|
37
38
|
/**
|
|
38
39
|
* Core Datalayer Client providing access to identity, plans and account
|
|
39
40
|
* services (IAM). Runtime and workspace/content features are provided by
|
|
@@ -68,7 +69,6 @@ export { UserDTO as User } from './../models/UserDTO.js';
|
|
|
68
69
|
export { CreditsDTO as Credits } from '../models/CreditsDTO.js';
|
|
69
70
|
export { HealthCheck } from '../models/HealthCheck.js';
|
|
70
71
|
export { SecretDTO as Secret } from './../models/Secret.js';
|
|
71
|
-
export { DatasourceDTO as Datasource } from './../models/Datasource.js';
|
|
72
72
|
// Export auth types
|
|
73
73
|
export { AuthenticationManager } from './auth/AuthenticationManager.js';
|
|
74
74
|
// Constants
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/** Contents mixin providing the typed source catalog API. */
|
|
2
|
+
import { type ConditionalCatalogSource, type AttachmentCreate, type AttachmentList, type ContentAttachment, type ContentAttachmentManifest, type DatasetRevision, type DatasetRevisionCreate, type DatasetRevisionList, type DatasetPublication, type DatasetPublicationCreate, type DatasetPublicationList, type ContentSourceCreate, type ContentSourceUpdate, type EffectivePermissions, type ContentObject, type DownloadedObject, type ObjectList, type OperationView, type RestoreRequest, type Sharing, type SourceList, type TransferCreate, type TransferList, type TransferView, type UploadProgress, type HomeFolderObjectListOptions, type HomeFolderQuota, type VersionList } from '../../api/contents';
|
|
3
|
+
import type { Constructor } from '../utils/mixins';
|
|
4
|
+
export declare function ContentsMixin<TBase extends Constructor>(Base: TBase): {
|
|
5
|
+
new (...args: any[]): {
|
|
6
|
+
contentsRequestContext(): {
|
|
7
|
+
token: string;
|
|
8
|
+
baseUrl: string;
|
|
9
|
+
};
|
|
10
|
+
listContentSources(options?: {
|
|
11
|
+
kind?: string;
|
|
12
|
+
spaceUid?: string;
|
|
13
|
+
cursor?: string;
|
|
14
|
+
limit?: number;
|
|
15
|
+
}): Promise<SourceList>;
|
|
16
|
+
createContentAttachment(request: AttachmentCreate, idempotencyKey: string): Promise<ContentAttachment>;
|
|
17
|
+
createDatasetRevision(sourceUid: string, request: DatasetRevisionCreate, idempotencyKey: string): Promise<DatasetRevision>;
|
|
18
|
+
listDatasetRevisions(sourceUid: string): Promise<DatasetRevisionList>;
|
|
19
|
+
getDatasetRevision(sourceUid: string, revisionUid: string): Promise<DatasetRevision>;
|
|
20
|
+
createDatasetPublication(sourceUid: string, request: DatasetPublicationCreate, idempotencyKey: string): Promise<DatasetPublication>;
|
|
21
|
+
listDatasetPublications(sourceUid: string): Promise<DatasetPublicationList>;
|
|
22
|
+
unpublishDataset(sourceUid: string, publicationUid: string): Promise<DatasetPublication>;
|
|
23
|
+
listContentAttachments(options?: {
|
|
24
|
+
sandboxUid?: string;
|
|
25
|
+
sourceUid?: string;
|
|
26
|
+
active?: boolean;
|
|
27
|
+
}): Promise<AttachmentList>;
|
|
28
|
+
getContentAttachmentManifest(sandboxUid: string): Promise<ContentAttachmentManifest>;
|
|
29
|
+
revokeContentAttachment(attachmentUid: string): Promise<ContentAttachment>;
|
|
30
|
+
createContentSource(source: ContentSourceCreate, idempotencyKey: string): Promise<ConditionalCatalogSource>;
|
|
31
|
+
getContentSource(sourceUid: string): Promise<ConditionalCatalogSource>;
|
|
32
|
+
getHomeFolder(): Promise<ConditionalCatalogSource>;
|
|
33
|
+
listHomeFolderObjects(options?: HomeFolderObjectListOptions): Promise<ObjectList>;
|
|
34
|
+
getHomeFolderQuota(): Promise<HomeFolderQuota>;
|
|
35
|
+
statHomeFolderObject(path: string): Promise<ContentObject>;
|
|
36
|
+
listHomeFolderObjectVersions(objectUid: string, options?: {
|
|
37
|
+
cursor?: string;
|
|
38
|
+
limit?: number;
|
|
39
|
+
}): Promise<VersionList>;
|
|
40
|
+
deleteHomeFolderObject(objectUid: string, idempotencyKey: string): Promise<ContentObject>;
|
|
41
|
+
restoreHomeFolderObject(objectUid: string, request: RestoreRequest, idempotencyKey: string): Promise<ContentObject>;
|
|
42
|
+
createContentTransfer(request: TransferCreate, idempotencyKey: string): Promise<TransferView>;
|
|
43
|
+
getContentTransfer(transferUid: string): Promise<TransferView>;
|
|
44
|
+
listContentTransfers(options?: {
|
|
45
|
+
active?: boolean;
|
|
46
|
+
cursor?: string;
|
|
47
|
+
limit?: number;
|
|
48
|
+
}): Promise<TransferList>;
|
|
49
|
+
uploadContentTransferPart(transferUid: string, partNumber: number, content: Uint8Array, checksum: string): Promise<TransferView>;
|
|
50
|
+
completeContentTransfer(transferUid: string): Promise<TransferView>;
|
|
51
|
+
cancelContentTransfer(transferUid: string): Promise<TransferView>;
|
|
52
|
+
uploadHomeFolderFile(path: string, content: Blob | Uint8Array | ArrayBuffer, options: {
|
|
53
|
+
idempotencyKey: string;
|
|
54
|
+
mediaType?: string;
|
|
55
|
+
overwrite?: "reject" | "replace" | "new-version";
|
|
56
|
+
chunkSize?: number;
|
|
57
|
+
onProgress?: (progress: UploadProgress) => void;
|
|
58
|
+
}): Promise<TransferView>;
|
|
59
|
+
downloadHomeFolderObject(objectUid: string, options?: {
|
|
60
|
+
versionUid?: string;
|
|
61
|
+
range?: string;
|
|
62
|
+
}): Promise<DownloadedObject>;
|
|
63
|
+
updateContentSource(sourceUid: string, update: ContentSourceUpdate, etag: string): Promise<ConditionalCatalogSource>;
|
|
64
|
+
archiveContentSource(sourceUid: string, etag: string): Promise<ConditionalCatalogSource>;
|
|
65
|
+
getContentSourcePermissions(sourceUid: string): Promise<EffectivePermissions>;
|
|
66
|
+
getContentSourceSharing(sourceUid: string): Promise<Sharing>;
|
|
67
|
+
replaceContentSourceSharing(sourceUid: string, sharing: Sharing, etag: string): Promise<ConditionalCatalogSource>;
|
|
68
|
+
getContentOperation(operationUid: string): Promise<OperationView>;
|
|
69
|
+
cancelContentOperation(operationUid: string): Promise<OperationView>;
|
|
70
|
+
};
|
|
71
|
+
} & TBase;
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2023-2025 Datalayer, Inc.
|
|
3
|
+
* Distributed under the terms of the Modified BSD License.
|
|
4
|
+
*/
|
|
5
|
+
/** Contents mixin providing the typed source catalog API. */
|
|
6
|
+
import { createAttachment, createDatasetRevision, createDatasetPublication, archiveSource, cancelOperation, cancelTransfer, completeTransfer, createSource, createTransfer, downloadHomeFolderObject, getSource, getHomeFolderQuota, getHomeFolder, getAttachmentManifest, getDatasetRevision, getOperation, getTransfer, getSourcePermissions, getSourceSharing, listHomeFolderObjects, listHomeFolderObjectVersions, listSources, listTransfers, listAttachments, listDatasetRevisions, listDatasetPublications, deleteHomeFolderObject, replaceSourceSharing, restoreHomeFolderObject, revokeAttachment, unpublishDataset, statHomeFolderObject, uploadTransferPart, uploadHomeFolderFile, updateSource, } from '../../api/contents/index.js';
|
|
7
|
+
export function ContentsMixin(Base) {
|
|
8
|
+
return class extends Base {
|
|
9
|
+
contentsRequestContext() {
|
|
10
|
+
const client = this;
|
|
11
|
+
return {
|
|
12
|
+
token: client.getToken() ?? '',
|
|
13
|
+
baseUrl: client.getContentsUrl(),
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
async listContentSources(options = {}) {
|
|
17
|
+
const { token, baseUrl } = this.contentsRequestContext();
|
|
18
|
+
return listSources(token, options, baseUrl);
|
|
19
|
+
}
|
|
20
|
+
async createContentAttachment(request, idempotencyKey) {
|
|
21
|
+
const { token, baseUrl } = this.contentsRequestContext();
|
|
22
|
+
return createAttachment(token, request, idempotencyKey, baseUrl);
|
|
23
|
+
}
|
|
24
|
+
async createDatasetRevision(sourceUid, request, idempotencyKey) {
|
|
25
|
+
const { token, baseUrl } = this.contentsRequestContext();
|
|
26
|
+
return createDatasetRevision(token, sourceUid, request, idempotencyKey, baseUrl);
|
|
27
|
+
}
|
|
28
|
+
async listDatasetRevisions(sourceUid) {
|
|
29
|
+
const { token, baseUrl } = this.contentsRequestContext();
|
|
30
|
+
return listDatasetRevisions(token, sourceUid, baseUrl);
|
|
31
|
+
}
|
|
32
|
+
async getDatasetRevision(sourceUid, revisionUid) {
|
|
33
|
+
const { token, baseUrl } = this.contentsRequestContext();
|
|
34
|
+
return getDatasetRevision(token, sourceUid, revisionUid, baseUrl);
|
|
35
|
+
}
|
|
36
|
+
async createDatasetPublication(sourceUid, request, idempotencyKey) {
|
|
37
|
+
const { token, baseUrl } = this.contentsRequestContext();
|
|
38
|
+
return createDatasetPublication(token, sourceUid, request, idempotencyKey, baseUrl);
|
|
39
|
+
}
|
|
40
|
+
async listDatasetPublications(sourceUid) {
|
|
41
|
+
const { token, baseUrl } = this.contentsRequestContext();
|
|
42
|
+
return listDatasetPublications(token, sourceUid, baseUrl);
|
|
43
|
+
}
|
|
44
|
+
async unpublishDataset(sourceUid, publicationUid) {
|
|
45
|
+
const { token, baseUrl } = this.contentsRequestContext();
|
|
46
|
+
return unpublishDataset(token, sourceUid, publicationUid, baseUrl);
|
|
47
|
+
}
|
|
48
|
+
async listContentAttachments(options = {}) {
|
|
49
|
+
const { token, baseUrl } = this.contentsRequestContext();
|
|
50
|
+
return listAttachments(token, options, baseUrl);
|
|
51
|
+
}
|
|
52
|
+
async getContentAttachmentManifest(sandboxUid) {
|
|
53
|
+
const { token, baseUrl } = this.contentsRequestContext();
|
|
54
|
+
return getAttachmentManifest(token, sandboxUid, baseUrl);
|
|
55
|
+
}
|
|
56
|
+
async revokeContentAttachment(attachmentUid) {
|
|
57
|
+
const { token, baseUrl } = this.contentsRequestContext();
|
|
58
|
+
return revokeAttachment(token, attachmentUid, baseUrl);
|
|
59
|
+
}
|
|
60
|
+
async createContentSource(source, idempotencyKey) {
|
|
61
|
+
const { token, baseUrl } = this.contentsRequestContext();
|
|
62
|
+
return createSource(token, source, idempotencyKey, baseUrl);
|
|
63
|
+
}
|
|
64
|
+
async getContentSource(sourceUid) {
|
|
65
|
+
const { token, baseUrl } = this.contentsRequestContext();
|
|
66
|
+
return getSource(token, sourceUid, baseUrl);
|
|
67
|
+
}
|
|
68
|
+
async getHomeFolder() {
|
|
69
|
+
const { token, baseUrl } = this.contentsRequestContext();
|
|
70
|
+
return getHomeFolder(token, baseUrl);
|
|
71
|
+
}
|
|
72
|
+
async listHomeFolderObjects(options = {}) {
|
|
73
|
+
const { token, baseUrl } = this.contentsRequestContext();
|
|
74
|
+
return listHomeFolderObjects(token, options, baseUrl);
|
|
75
|
+
}
|
|
76
|
+
async getHomeFolderQuota() {
|
|
77
|
+
const { token, baseUrl } = this.contentsRequestContext();
|
|
78
|
+
return getHomeFolderQuota(token, baseUrl);
|
|
79
|
+
}
|
|
80
|
+
async statHomeFolderObject(path) {
|
|
81
|
+
const { token, baseUrl } = this.contentsRequestContext();
|
|
82
|
+
return statHomeFolderObject(token, path, baseUrl);
|
|
83
|
+
}
|
|
84
|
+
async listHomeFolderObjectVersions(objectUid, options = {}) {
|
|
85
|
+
const { token, baseUrl } = this.contentsRequestContext();
|
|
86
|
+
return listHomeFolderObjectVersions(token, objectUid, options, baseUrl);
|
|
87
|
+
}
|
|
88
|
+
async deleteHomeFolderObject(objectUid, idempotencyKey) {
|
|
89
|
+
const { token, baseUrl } = this.contentsRequestContext();
|
|
90
|
+
return deleteHomeFolderObject(token, objectUid, idempotencyKey, baseUrl);
|
|
91
|
+
}
|
|
92
|
+
async restoreHomeFolderObject(objectUid, request, idempotencyKey) {
|
|
93
|
+
const { token, baseUrl } = this.contentsRequestContext();
|
|
94
|
+
return restoreHomeFolderObject(token, objectUid, request, idempotencyKey, baseUrl);
|
|
95
|
+
}
|
|
96
|
+
async createContentTransfer(request, idempotencyKey) {
|
|
97
|
+
const { token, baseUrl } = this.contentsRequestContext();
|
|
98
|
+
return createTransfer(token, request, idempotencyKey, baseUrl);
|
|
99
|
+
}
|
|
100
|
+
async getContentTransfer(transferUid) {
|
|
101
|
+
const { token, baseUrl } = this.contentsRequestContext();
|
|
102
|
+
return getTransfer(token, transferUid, baseUrl);
|
|
103
|
+
}
|
|
104
|
+
async listContentTransfers(options = {}) {
|
|
105
|
+
const { token, baseUrl } = this.contentsRequestContext();
|
|
106
|
+
return listTransfers(token, options, baseUrl);
|
|
107
|
+
}
|
|
108
|
+
async uploadContentTransferPart(transferUid, partNumber, content, checksum) {
|
|
109
|
+
const { token, baseUrl } = this.contentsRequestContext();
|
|
110
|
+
return uploadTransferPart(token, transferUid, partNumber, content, checksum, baseUrl);
|
|
111
|
+
}
|
|
112
|
+
async completeContentTransfer(transferUid) {
|
|
113
|
+
const { token, baseUrl } = this.contentsRequestContext();
|
|
114
|
+
return completeTransfer(token, transferUid, baseUrl);
|
|
115
|
+
}
|
|
116
|
+
async cancelContentTransfer(transferUid) {
|
|
117
|
+
const { token, baseUrl } = this.contentsRequestContext();
|
|
118
|
+
return cancelTransfer(token, transferUid, baseUrl);
|
|
119
|
+
}
|
|
120
|
+
async uploadHomeFolderFile(path, content, options) {
|
|
121
|
+
const { token, baseUrl } = this.contentsRequestContext();
|
|
122
|
+
return uploadHomeFolderFile(token, path, content, options, baseUrl);
|
|
123
|
+
}
|
|
124
|
+
async downloadHomeFolderObject(objectUid, options = {}) {
|
|
125
|
+
const { token, baseUrl } = this.contentsRequestContext();
|
|
126
|
+
return downloadHomeFolderObject(token, objectUid, options, baseUrl);
|
|
127
|
+
}
|
|
128
|
+
async updateContentSource(sourceUid, update, etag) {
|
|
129
|
+
const { token, baseUrl } = this.contentsRequestContext();
|
|
130
|
+
return updateSource(token, sourceUid, update, etag, baseUrl);
|
|
131
|
+
}
|
|
132
|
+
async archiveContentSource(sourceUid, etag) {
|
|
133
|
+
const { token, baseUrl } = this.contentsRequestContext();
|
|
134
|
+
return archiveSource(token, sourceUid, etag, baseUrl);
|
|
135
|
+
}
|
|
136
|
+
async getContentSourcePermissions(sourceUid) {
|
|
137
|
+
const { token, baseUrl } = this.contentsRequestContext();
|
|
138
|
+
return getSourcePermissions(token, sourceUid, baseUrl);
|
|
139
|
+
}
|
|
140
|
+
async getContentSourceSharing(sourceUid) {
|
|
141
|
+
const { token, baseUrl } = this.contentsRequestContext();
|
|
142
|
+
return getSourceSharing(token, sourceUid, baseUrl);
|
|
143
|
+
}
|
|
144
|
+
async replaceContentSourceSharing(sourceUid, sharing, etag) {
|
|
145
|
+
const { token, baseUrl } = this.contentsRequestContext();
|
|
146
|
+
return replaceSourceSharing(token, sourceUid, sharing, etag, baseUrl);
|
|
147
|
+
}
|
|
148
|
+
async getContentOperation(operationUid) {
|
|
149
|
+
const { token, baseUrl } = this.contentsRequestContext();
|
|
150
|
+
return getOperation(token, operationUid, baseUrl);
|
|
151
|
+
}
|
|
152
|
+
async cancelContentOperation(operationUid) {
|
|
153
|
+
const { token, baseUrl } = this.contentsRequestContext();
|
|
154
|
+
return cancelOperation(token, operationUid, baseUrl);
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
}
|
|
@@ -4,8 +4,6 @@ import { CreditsDTO } from '../../models/CreditsDTO';
|
|
|
4
4
|
import { HealthCheck } from '../../models/HealthCheck';
|
|
5
5
|
import { SecretDTO } from '../../models/Secret';
|
|
6
6
|
import type { CreateSecretRequest, UpdateSecretRequest } from '../../models/Secret';
|
|
7
|
-
import { DatasourceDTO } from '../../models/Datasource';
|
|
8
|
-
import type { CreateDatasourceRequest, UpdateDatasourceRequest } from '../../models/Datasource';
|
|
9
7
|
/** IAM mixin providing authentication and user management. */
|
|
10
8
|
export declare function IAMMixin<TBase extends Constructor>(Base: TBase): {
|
|
11
9
|
new (...args: any[]): {
|
|
@@ -83,34 +81,5 @@ export declare function IAMMixin<TBase extends Constructor>(Base: TBase): {
|
|
|
83
81
|
* @param secretId - Secret unique identifier
|
|
84
82
|
*/
|
|
85
83
|
deleteSecret(secretId: string): Promise<void>;
|
|
86
|
-
/**
|
|
87
|
-
* Create a new datasource.
|
|
88
|
-
* @param data - Datasource configuration
|
|
89
|
-
* @returns Created datasource instance
|
|
90
|
-
*/
|
|
91
|
-
createDatasource(data: CreateDatasourceRequest): Promise<DatasourceDTO>;
|
|
92
|
-
/**
|
|
93
|
-
* List all datasources.
|
|
94
|
-
* @returns Array of datasource instances
|
|
95
|
-
*/
|
|
96
|
-
listDatasources(): Promise<DatasourceDTO[]>;
|
|
97
|
-
/**
|
|
98
|
-
* Get a specific datasource by ID.
|
|
99
|
-
* @param datasourceId - Datasource unique identifier
|
|
100
|
-
* @returns Datasource instance
|
|
101
|
-
*/
|
|
102
|
-
getDatasource(datasourceId: string): Promise<DatasourceDTO>;
|
|
103
|
-
/**
|
|
104
|
-
* Update a datasource.
|
|
105
|
-
* @param datasourceId - Datasource unique identifier
|
|
106
|
-
* @param updates - Fields to update
|
|
107
|
-
* @returns Updated datasource instance
|
|
108
|
-
*/
|
|
109
|
-
updateDatasource(datasourceId: string, updates: UpdateDatasourceRequest): Promise<DatasourceDTO>;
|
|
110
|
-
/**
|
|
111
|
-
* Delete a datasource.
|
|
112
|
-
* @param datasourceId - Datasource unique identifier
|
|
113
|
-
*/
|
|
114
|
-
deleteDatasource(datasourceId: string): Promise<void>;
|
|
115
84
|
};
|
|
116
85
|
} & TBase;
|
|
@@ -10,12 +10,10 @@ import * as authentication from '../../api/iam/authentication.js';
|
|
|
10
10
|
import * as profile from '../../api/iam/profile.js';
|
|
11
11
|
import * as usage from '../../api/iam/usage.js';
|
|
12
12
|
import * as secrets from '../../api/iam/secrets.js';
|
|
13
|
-
import * as datasources from '../../api/iam/datasources.js';
|
|
14
13
|
import { UserDTO } from '../../models/UserDTO.js';
|
|
15
14
|
import { CreditsDTO } from '../../models/CreditsDTO.js';
|
|
16
15
|
import { HealthCheck } from '../../models/HealthCheck.js';
|
|
17
16
|
import { SecretDTO } from '../../models/Secret.js';
|
|
18
|
-
import { DatasourceDTO } from '../../models/Datasource.js';
|
|
19
17
|
/** IAM mixin providing authentication and user management. */
|
|
20
18
|
export function IAMMixin(Base) {
|
|
21
19
|
return class extends Base {
|
|
@@ -237,61 +235,5 @@ export function IAMMixin(Base) {
|
|
|
237
235
|
const iamUrl = this.getIamUrl();
|
|
238
236
|
await secrets.deleteSecret(token, secretId, iamUrl);
|
|
239
237
|
}
|
|
240
|
-
// ========================================================================
|
|
241
|
-
// Datasources Management
|
|
242
|
-
// ========================================================================
|
|
243
|
-
/**
|
|
244
|
-
* Create a new datasource.
|
|
245
|
-
* @param data - Datasource configuration
|
|
246
|
-
* @returns Created datasource instance
|
|
247
|
-
*/
|
|
248
|
-
async createDatasource(data) {
|
|
249
|
-
const token = this.getToken();
|
|
250
|
-
const iamUrl = this.getIamUrl();
|
|
251
|
-
const response = await datasources.createDatasource(token, data, iamUrl);
|
|
252
|
-
return new DatasourceDTO(response.datasource, this);
|
|
253
|
-
}
|
|
254
|
-
/**
|
|
255
|
-
* List all datasources.
|
|
256
|
-
* @returns Array of datasource instances
|
|
257
|
-
*/
|
|
258
|
-
async listDatasources() {
|
|
259
|
-
const token = this.getToken();
|
|
260
|
-
const iamUrl = this.getIamUrl();
|
|
261
|
-
const response = await datasources.listDatasources(token, iamUrl);
|
|
262
|
-
return response.datasources.map(d => new DatasourceDTO(d, this));
|
|
263
|
-
}
|
|
264
|
-
/**
|
|
265
|
-
* Get a specific datasource by ID.
|
|
266
|
-
* @param datasourceId - Datasource unique identifier
|
|
267
|
-
* @returns Datasource instance
|
|
268
|
-
*/
|
|
269
|
-
async getDatasource(datasourceId) {
|
|
270
|
-
const token = this.getToken();
|
|
271
|
-
const iamUrl = this.getIamUrl();
|
|
272
|
-
const response = await datasources.getDatasource(token, datasourceId, iamUrl);
|
|
273
|
-
return new DatasourceDTO(response.datasource, this);
|
|
274
|
-
}
|
|
275
|
-
/**
|
|
276
|
-
* Update a datasource.
|
|
277
|
-
* @param datasourceId - Datasource unique identifier
|
|
278
|
-
* @param updates - Fields to update
|
|
279
|
-
* @returns Updated datasource instance
|
|
280
|
-
*/
|
|
281
|
-
async updateDatasource(datasourceId, updates) {
|
|
282
|
-
const token = this.getToken();
|
|
283
|
-
const iamUrl = this.getIamUrl();
|
|
284
|
-
const response = await datasources.updateDatasource(token, datasourceId, updates, iamUrl);
|
|
285
|
-
return new DatasourceDTO(response.datasource, this);
|
|
286
|
-
}
|
|
287
|
-
/**
|
|
288
|
-
* Delete a datasource.
|
|
289
|
-
* @param datasourceId - Datasource unique identifier
|
|
290
|
-
*/
|
|
291
|
-
async deleteDatasource(datasourceId) {
|
|
292
|
-
const token = this.getToken();
|
|
293
|
-
const iamUrl = this.getIamUrl();
|
|
294
|
-
await datasources.deleteDatasource(token, datasourceId, iamUrl);
|
|
295
|
-
}
|
|
296
238
|
};
|
|
297
239
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { JSX } from 'react';
|
|
1
2
|
/**
|
|
2
3
|
* One piece of an animated line.
|
|
3
4
|
*
|
|
@@ -17,8 +18,6 @@ export type AnimatedTextWords = {
|
|
|
17
18
|
* it resolves to the CSS variable Primer sets.
|
|
18
19
|
*/
|
|
19
20
|
color?: AnimatedTextColor;
|
|
20
|
-
/** Overrides the background of this piece alone. */
|
|
21
|
-
background?: string;
|
|
22
21
|
};
|
|
23
22
|
export type AnimatedTextColor = 'accent' | 'success' | 'attention' | 'severe' | 'done' | 'muted' | 'default' | (string & {});
|
|
24
23
|
export interface AnimatedTextProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, 'children' | 'color'> {
|
|
@@ -35,39 +34,6 @@ export interface AnimatedTextProps extends Omit<React.HTMLAttributes<HTMLSpanEle
|
|
|
35
34
|
parts?: AnimatedTextPart[];
|
|
36
35
|
/** Colour applied to cycling pieces that do not name their own. */
|
|
37
36
|
color?: AnimatedTextColor;
|
|
38
|
-
/**
|
|
39
|
-
* The colours to draw cycling words in when neither the piece nor `color`
|
|
40
|
-
* names one. Each word takes a different colour, and changes colour as it
|
|
41
|
-
* changes word.
|
|
42
|
-
*/
|
|
43
|
-
palette?: string[];
|
|
44
|
-
/**
|
|
45
|
-
* What sits behind the cycling words. White by default so a coloured word
|
|
46
|
-
* stays readable over artwork; pass `'transparent'` for a plain background
|
|
47
|
-
* where the plate is not wanted.
|
|
48
|
-
*/
|
|
49
|
-
background?: string;
|
|
50
|
-
/**
|
|
51
|
-
* Hold every cycling piece at the width of the longest word it can show,
|
|
52
|
-
* instead of letting it size itself to whichever word is currently up.
|
|
53
|
-
*
|
|
54
|
-
* Off by default, because it changes the look: a piece is then as wide as
|
|
55
|
-
* its longest word even when a short one is showing, which is right for a
|
|
56
|
-
* line that reads as a slot being filled and wrong for one meant to read as
|
|
57
|
-
* an ordinary sentence.
|
|
58
|
-
*
|
|
59
|
-
* Turn it on when the line is set large, or is close to the width it has.
|
|
60
|
-
* Words of different lengths otherwise shove the rest of the sentence
|
|
61
|
-
* sideways on every tick, and the longest combination can take a line that
|
|
62
|
-
* fits on one row and drop it onto two — which, since a theme may set any
|
|
63
|
-
* typeface, is not something a caller can rule out by measuring.
|
|
64
|
-
*
|
|
65
|
-
* The reservation is made by the browser, not by a measurement: all of the
|
|
66
|
-
* words are laid into one grid cell and the ones not showing are hidden, so
|
|
67
|
-
* the piece is exactly as wide as the widest of them in the font and size it
|
|
68
|
-
* actually ends up with.
|
|
69
|
-
*/
|
|
70
|
-
reserveWidth?: boolean;
|
|
71
37
|
intervalMs?: number;
|
|
72
38
|
transitionMs?: number;
|
|
73
39
|
}
|
|
@@ -85,14 +51,6 @@ export interface AnimatedTextProps extends Omit<React.HTMLAttributes<HTMLSpanEle
|
|
|
85
51
|
* ]}
|
|
86
52
|
* />
|
|
87
53
|
* ```
|
|
88
|
-
*
|
|
89
|
-
* Set large, or set close to the width available, pass `reserveWidth` so the
|
|
90
|
-
* cycling pieces hold the width of their longest word and the line neither
|
|
91
|
-
* shifts on each tick nor wraps on its longest combination:
|
|
92
|
-
*
|
|
93
|
-
* ```tsx
|
|
94
|
-
* <AnimatedText reserveWidth parts={[...]} background="transparent" />
|
|
95
|
-
* ```
|
|
96
54
|
*/
|
|
97
|
-
export declare function AnimatedText({ prefix, words, suffix, parts, color,
|
|
55
|
+
export declare function AnimatedText({ prefix, words, suffix, parts, color, intervalMs, transitionMs, style, ...rest }: AnimatedTextProps): JSX.Element;
|
|
98
56
|
export default AnimatedText;
|