@datalayer/core 1.1.66 → 1.2.12
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 +43 -20
- package/lib/api/constants.d.ts +1 -1
- package/lib/api/constants.js +1 -1
- package/lib/api/contents/attachments.js +3 -7
- package/lib/api/contents/datasets.d.ts +48 -0
- package/lib/api/contents/datasets.js +44 -7
- package/lib/api/contents/runtimeMounts.js +1 -1
- package/lib/api/contents/sandboxUid.d.ts +13 -45
- package/lib/api/contents/sandboxUid.js +14 -65
- 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/authentication.js +6 -4
- package/lib/api/iam/connectedAgents.d.ts +29 -0
- package/lib/api/iam/connectedAgents.js +35 -0
- package/lib/api/iam/healthz.js +2 -2
- package/lib/api/iam/identityProviders.d.ts +76 -0
- package/lib/api/iam/identityProviders.js +187 -0
- package/lib/api/iam/index.d.ts +1 -0
- package/lib/api/iam/index.js +1 -0
- package/lib/api/iam/mcpPolicy.d.ts +102 -1
- package/lib/api/iam/mcpPolicy.js +38 -2
- package/lib/api/iam/oauth2.js +18 -12
- 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 +10 -23
- package/lib/api/iam/trials.d.ts +38 -0
- package/lib/api/iam/trials.js +66 -0
- package/lib/api/index.d.ts +4 -0
- package/lib/api/index.js +4 -0
- package/lib/api/mcp/observability.d.ts +34 -11
- package/lib/api/mcp/observability.js +97 -59
- 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/strategies.js +1 -1
- package/lib/client/constants.d.ts +1 -0
- package/lib/client/constants.js +1 -0
- package/lib/client/mixins/IAMMixin.js +2 -2
- package/lib/components/animation/AnimatedText.d.ts +1 -44
- package/lib/components/animation/AnimatedText.js +6 -122
- 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/avatars/UserAvatar.d.ts +7 -1
- package/lib/components/avatars/UserAvatar.js +15 -1
- package/lib/components/billing/BillingEntitySelect.d.ts +6 -0
- package/lib/components/billing/BillingEntitySelect.js +49 -10
- 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 -0
- package/lib/components/checkout/StripeCheckout.d.ts +1 -1
- package/lib/components/checkout/StripeCheckout.js +1 -1
- package/lib/components/collaboration/LiveEditorCollaborators.d.ts +5 -0
- package/lib/components/collaboration/LiveEditorCollaborators.js +3 -1
- package/lib/components/display/DatalayerBox.d.ts +2 -3
- package/lib/components/display/DatalayerBox.js +1 -1
- package/lib/components/display/NavLink.js +3 -2
- package/lib/components/display/VisuallyHidden.d.ts +1 -2
- package/lib/components/labels/StatusLabels.d.ts +2 -10
- package/lib/components/labels/StatusLabels.js +2 -26
- package/lib/components/principal/PrincipalAppearance.d.ts +21 -42
- package/lib/components/principal/PrincipalAppearance.js +232 -174
- package/lib/components/principal/PrincipalAvatar.d.ts +8 -1
- package/lib/components/principal/PrincipalAvatar.js +2 -2
- package/lib/components/principal/PrincipalDetailsOverlay.d.ts +8 -1
- package/lib/components/principal/PrincipalDetailsOverlay.js +2 -2
- package/lib/components/screencapture/Screencapture.js +46 -3
- package/lib/components/sharing/ShareAccessComponent.d.ts +45 -4
- package/lib/components/sharing/ShareAccessComponent.js +110 -78
- package/lib/components/sharing/SharingEditor.d.ts +5 -1
- package/lib/components/sharing/SharingEditor.js +9 -4
- 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 +47 -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/config/Configuration.d.ts +4 -4
- package/lib/config/Configuration.js +7 -7
- package/lib/config/index.d.ts +1 -0
- package/lib/config/index.js +1 -0
- package/lib/config/planes.d.ts +45 -0
- package/lib/config/planes.js +53 -0
- package/lib/hooks/cacheConverters.d.ts +0 -7
- package/lib/hooks/cacheConverters.js +0 -25
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/index.js +1 -0
- package/lib/hooks/useBackdrop.d.ts +4 -5
- package/lib/hooks/useBillingEntityStore.js +3 -0
- package/lib/hooks/useCache.d.ts +197 -44
- package/lib/hooks/useCache.js +1586 -494
- package/lib/hooks/useContents.d.ts +22 -1
- package/lib/hooks/useContents.js +90 -21
- package/lib/hooks/useMcp.d.ts +87 -1
- package/lib/hooks/useMcp.js +248 -13
- package/lib/hooks/useNavigate.d.ts +41 -3
- package/lib/hooks/useNavigate.js +116 -52
- package/lib/hooks/usePrincipalCacheStore.js +3 -0
- package/lib/hooks/usePrincipalStore.js +3 -0
- package/lib/hooks/useSpaceCacheStore.d.ts +50 -0
- package/lib/hooks/useSpaceCacheStore.js +85 -0
- package/lib/hooks/useWindowSize.js +1 -1
- package/lib/models/CreditsDTO.d.ts +6 -5
- package/lib/models/CreditsDTO.js +7 -5
- package/lib/models/IAMProvidersSpecs.d.ts +10 -5
- package/lib/models/IAMProvidersSpecs.js +0 -23
- package/lib/models/McpBinding.d.ts +6 -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 +34 -0
- package/lib/models/StartedBy.js +36 -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/UserSettings.d.ts +13 -0
- package/lib/models/UserSettings.js +9 -0
- package/lib/models/contents/__fixtures__/v1-contracts.json +158 -30
- package/lib/navigation/adapters/react-router.d.ts +1 -1
- package/lib/navigation/adapters/react-router.js +3 -0
- 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.js +3 -16
- package/lib/state/substates/IAMState.d.ts +3 -3
- package/lib/state/substates/IAMState.js +7 -0
- package/lib/state/substates/LayoutState.js +12 -0
- package/lib/state/substates/NavigationState.d.ts +82 -0
- package/lib/state/substates/NavigationState.js +255 -0
- package/lib/state/substates/ProfileState.d.ts +1 -0
- package/lib/state/substates/ProfileState.js +1 -0
- package/lib/state/substates/index.d.ts +1 -0
- package/lib/state/substates/index.js +1 -0
- package/lib/utils/Lazy.d.ts +20 -0
- package/lib/utils/Lazy.js +32 -6
- package/lib/utils/Screencapture.d.ts +15 -0
- package/lib/utils/Screencapture.js +26 -20
- package/lib/utils/WithSuspense.d.ts +11 -1
- package/lib/utils/WithSuspense.js +11 -1
- package/lib/views/mcp/AdmittedClients.d.ts +44 -0
- package/lib/views/mcp/AdmittedClients.js +59 -0
- package/lib/views/mcp/ApprovalQueue.d.ts +66 -0
- package/lib/views/mcp/ApprovalQueue.js +95 -0
- package/lib/views/mcp/ConnectedAgents.js +38 -3
- package/lib/views/mcp/EnterpriseConsole.d.ts +1 -1
- package/lib/views/mcp/EnterpriseConsole.js +23 -1
- package/lib/views/mcp/IdentityProviders.d.ts +33 -0
- package/lib/views/mcp/IdentityProviders.js +299 -0
- package/lib/views/mcp/McpDashboard.js +90 -7
- package/lib/views/mcp/McpHome.js +1 -1
- package/lib/views/mcp/McpObservability.d.ts +30 -1
- package/lib/views/mcp/McpObservability.js +105 -19
- package/lib/views/mcp/NotebookRuns.d.ts +39 -0
- package/lib/views/mcp/NotebookRuns.js +44 -0
- package/lib/views/mcp/OrganizationPolicy.js +2 -1
- package/lib/views/mcp/PersonalPolicy.js +2 -1
- package/lib/views/mcp/PolicyForm.d.ts +17 -1
- package/lib/views/mcp/PolicyForm.js +25 -3
- package/lib/views/mcp/PolicyHistory.d.ts +13 -0
- package/lib/views/mcp/PolicyHistory.js +14 -1
- 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/TeamPolicies.js +66 -5
- 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/index.d.ts +5 -0
- package/lib/views/mcp/index.js +5 -0
- package/lib/views/otel/simpleAuthStore.js +3 -0
- package/lib/views/secrets/SecretEdit.js +3 -2
- package/lib/views/secrets/SecretNew.js +5 -1
- package/package.json +271 -264
- package/scripts/generate-mcp-types.py +16 -10
- package/scripts/generate-orchestration-types.py +920 -0
|
@@ -76,7 +76,7 @@ export type IDatalayerCoreConfig = {
|
|
|
76
76
|
/**
|
|
77
77
|
* Jupyter MCP Server URL.
|
|
78
78
|
*/
|
|
79
|
-
|
|
79
|
+
datalayerMcpServerUrl: string;
|
|
80
80
|
/**
|
|
81
81
|
* OTEL (OpenTelemetry) API URL.
|
|
82
82
|
*
|
|
@@ -170,10 +170,10 @@ export declare class DatalayerConfiguration {
|
|
|
170
170
|
* Default configuration values for Datalayer
|
|
171
171
|
*/
|
|
172
172
|
/**
|
|
173
|
-
* Where a service lives when nothing says otherwise.
|
|
173
|
+
* Where a service lives when nothing says otherwise: the control plane.
|
|
174
174
|
*
|
|
175
|
-
*
|
|
176
|
-
*
|
|
175
|
+
* Kept under its old name for the callers that have it; the table every
|
|
176
|
+
* service is read from is `DEFAULT_PLANE_URLS` in `config/planes`.
|
|
177
177
|
*/
|
|
178
178
|
export declare const DEFAULT_DATALAYER_SERVICE_URL = "https://prod1.datalayer.run";
|
|
179
179
|
/**
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { Signal } from '@lumino/signaling';
|
|
6
6
|
import { coreStore } from '../state/index.js';
|
|
7
|
+
import { CONTROL_PLANE_URL, DEFAULT_PLANE_URLS, RUNTIMES_PLANE_URL, } from './planes.js';
|
|
7
8
|
export const FORCE_ACTIVATE_RUNTIMES_PLUGINS = false;
|
|
8
9
|
export class DatalayerConfiguration {
|
|
9
10
|
_configuration = coreStore.getState().configuration;
|
|
@@ -26,21 +27,20 @@ export class DatalayerConfiguration {
|
|
|
26
27
|
* Default configuration values for Datalayer
|
|
27
28
|
*/
|
|
28
29
|
/**
|
|
29
|
-
* Where a service lives when nothing says otherwise.
|
|
30
|
+
* Where a service lives when nothing says otherwise: the control plane.
|
|
30
31
|
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
32
|
+
* Kept under its old name for the callers that have it; the table every
|
|
33
|
+
* service is read from is `DEFAULT_PLANE_URLS` in `config/planes`.
|
|
33
34
|
*/
|
|
34
|
-
export const DEFAULT_DATALAYER_SERVICE_URL =
|
|
35
|
+
export const DEFAULT_DATALAYER_SERVICE_URL = CONTROL_PLANE_URL;
|
|
35
36
|
/**
|
|
36
37
|
* Where the Contents service lives when nothing says otherwise.
|
|
37
38
|
*
|
|
38
39
|
* Not the generic default: Contents runs on the runtimes plane, where the NFS that backs the Home Folder and Volumes lives.
|
|
39
40
|
*/
|
|
40
|
-
export const DEFAULT_DATALAYER_CONTENTS_URL =
|
|
41
|
+
export const DEFAULT_DATALAYER_CONTENTS_URL = RUNTIMES_PLANE_URL;
|
|
41
42
|
export const DEFAULT_DATALAYER_CONFIG = {
|
|
42
|
-
|
|
43
|
-
contentsUrl: DEFAULT_DATALAYER_CONTENTS_URL,
|
|
43
|
+
...DEFAULT_PLANE_URLS,
|
|
44
44
|
credits: 100,
|
|
45
45
|
cpuEnvironment: 'ai-agents-env',
|
|
46
46
|
gpuEnvironment: 'ai-env',
|
package/lib/config/index.d.ts
CHANGED
package/lib/config/index.js
CHANGED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where each Datalayer service lives when nothing says otherwise.
|
|
3
|
+
*
|
|
4
|
+
* Two planes. The control plane (`prod1`) holds identity, the library, the
|
|
5
|
+
* spaces and the platform's own services. The runtimes plane (`r1`) holds
|
|
6
|
+
* what runs close to compute: the runtimes, the scheduler, the agents, the
|
|
7
|
+
* contents that back the Home Folder — and inference, which moved there
|
|
8
|
+
* with the agents that call it.
|
|
9
|
+
*
|
|
10
|
+
* One table, imported by everything that needs a default host: the core
|
|
11
|
+
* store's initial configuration, the configuration helpers, and any host
|
|
12
|
+
* that wants to know where to point. It used to be a literal in each of
|
|
13
|
+
* those, and the examples' Makefile besides, so a service that changed plane
|
|
14
|
+
* was corrected in some places and not others — inference was still pinned
|
|
15
|
+
* to the control plane by the examples after it moved, and every in-page
|
|
16
|
+
* agent there failed to reach it.
|
|
17
|
+
*
|
|
18
|
+
* No imports, so anything may import it without a cycle.
|
|
19
|
+
*
|
|
20
|
+
* @module config/planes
|
|
21
|
+
*/
|
|
22
|
+
/** The control plane. */
|
|
23
|
+
export declare const CONTROL_PLANE_URL = "https://prod1.datalayer.run";
|
|
24
|
+
/** The runtimes plane. */
|
|
25
|
+
export declare const RUNTIMES_PLANE_URL = "https://r1.datalayer.run";
|
|
26
|
+
/** The MCP gateway, on its own host. */
|
|
27
|
+
export declare const MCP_SERVER_URL = "https://mcp.datalayer.run/mcp";
|
|
28
|
+
/** Every service's default host, by the configuration key that names it. */
|
|
29
|
+
export declare const DEFAULT_PLANE_URLS: {
|
|
30
|
+
readonly iamUrl: "https://prod1.datalayer.run";
|
|
31
|
+
readonly managerUrl: "https://prod1.datalayer.run";
|
|
32
|
+
readonly libraryUrl: "https://prod1.datalayer.run";
|
|
33
|
+
readonly spacerUrl: "https://prod1.datalayer.run";
|
|
34
|
+
readonly otelUrl: "https://prod1.datalayer.run";
|
|
35
|
+
readonly growthUrl: "https://prod1.datalayer.run";
|
|
36
|
+
readonly inboundsUrl: "https://prod1.datalayer.run";
|
|
37
|
+
readonly successUrl: "https://prod1.datalayer.run";
|
|
38
|
+
readonly supportUrl: "https://prod1.datalayer.run";
|
|
39
|
+
readonly contentsUrl: "https://r1.datalayer.run";
|
|
40
|
+
readonly runtimesUrl: "https://r1.datalayer.run";
|
|
41
|
+
readonly schedulerUrl: "https://r1.datalayer.run";
|
|
42
|
+
readonly aiAgentsUrl: "https://r1.datalayer.run";
|
|
43
|
+
readonly aiInferenceUrl: "https://r1.datalayer.run";
|
|
44
|
+
readonly datalayerMcpServerUrl: "https://mcp.datalayer.run/mcp";
|
|
45
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2023-2025 Datalayer, Inc.
|
|
3
|
+
* Distributed under the terms of the Modified BSD License.
|
|
4
|
+
*/
|
|
5
|
+
/*
|
|
6
|
+
* Copyright (c) 2023-2026 Datalayer, Inc.
|
|
7
|
+
* Distributed under the terms of the Modified BSD License.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Where each Datalayer service lives when nothing says otherwise.
|
|
11
|
+
*
|
|
12
|
+
* Two planes. The control plane (`prod1`) holds identity, the library, the
|
|
13
|
+
* spaces and the platform's own services. The runtimes plane (`r1`) holds
|
|
14
|
+
* what runs close to compute: the runtimes, the scheduler, the agents, the
|
|
15
|
+
* contents that back the Home Folder — and inference, which moved there
|
|
16
|
+
* with the agents that call it.
|
|
17
|
+
*
|
|
18
|
+
* One table, imported by everything that needs a default host: the core
|
|
19
|
+
* store's initial configuration, the configuration helpers, and any host
|
|
20
|
+
* that wants to know where to point. It used to be a literal in each of
|
|
21
|
+
* those, and the examples' Makefile besides, so a service that changed plane
|
|
22
|
+
* was corrected in some places and not others — inference was still pinned
|
|
23
|
+
* to the control plane by the examples after it moved, and every in-page
|
|
24
|
+
* agent there failed to reach it.
|
|
25
|
+
*
|
|
26
|
+
* No imports, so anything may import it without a cycle.
|
|
27
|
+
*
|
|
28
|
+
* @module config/planes
|
|
29
|
+
*/
|
|
30
|
+
/** The control plane. */
|
|
31
|
+
export const CONTROL_PLANE_URL = 'https://prod1.datalayer.run';
|
|
32
|
+
/** The runtimes plane. */
|
|
33
|
+
export const RUNTIMES_PLANE_URL = 'https://r1.datalayer.run';
|
|
34
|
+
/** The MCP gateway, on its own host. */
|
|
35
|
+
export const MCP_SERVER_URL = 'https://mcp.datalayer.run/mcp';
|
|
36
|
+
/** Every service's default host, by the configuration key that names it. */
|
|
37
|
+
export const DEFAULT_PLANE_URLS = {
|
|
38
|
+
iamUrl: CONTROL_PLANE_URL,
|
|
39
|
+
managerUrl: CONTROL_PLANE_URL,
|
|
40
|
+
libraryUrl: CONTROL_PLANE_URL,
|
|
41
|
+
spacerUrl: CONTROL_PLANE_URL,
|
|
42
|
+
otelUrl: CONTROL_PLANE_URL,
|
|
43
|
+
growthUrl: CONTROL_PLANE_URL,
|
|
44
|
+
inboundsUrl: CONTROL_PLANE_URL,
|
|
45
|
+
successUrl: CONTROL_PLANE_URL,
|
|
46
|
+
supportUrl: CONTROL_PLANE_URL,
|
|
47
|
+
contentsUrl: RUNTIMES_PLANE_URL,
|
|
48
|
+
runtimesUrl: RUNTIMES_PLANE_URL,
|
|
49
|
+
schedulerUrl: RUNTIMES_PLANE_URL,
|
|
50
|
+
aiAgentsUrl: RUNTIMES_PLANE_URL,
|
|
51
|
+
aiInferenceUrl: RUNTIMES_PLANE_URL,
|
|
52
|
+
datalayerMcpServerUrl: MCP_SERVER_URL,
|
|
53
|
+
};
|
|
@@ -5,13 +5,6 @@
|
|
|
5
5
|
* @returns The converted snapshot object.
|
|
6
6
|
*/
|
|
7
7
|
export declare function asCodeSandboxSnapshot(s: any): any;
|
|
8
|
-
/**
|
|
9
|
-
* Convert a raw page payload into its client shape.
|
|
10
|
-
*
|
|
11
|
-
* @param s - The raw page payload from the API.
|
|
12
|
-
* @returns The converted page object.
|
|
13
|
-
*/
|
|
14
|
-
export declare const asPage: (s: any) => any;
|
|
15
8
|
/**
|
|
16
9
|
* Convert a raw space payload into its client shape.
|
|
17
10
|
*
|
|
@@ -30,31 +30,6 @@ export function asCodeSandboxSnapshot(s) {
|
|
|
30
30
|
formatVersion: format_version,
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
/**
|
|
34
|
-
* Convert a raw page payload into its client shape.
|
|
35
|
-
*
|
|
36
|
-
* @param s - The raw page payload from the API.
|
|
37
|
-
* @returns The converted page object.
|
|
38
|
-
*/
|
|
39
|
-
export const asPage = (s) => {
|
|
40
|
-
return {
|
|
41
|
-
id: s.uid,
|
|
42
|
-
type: 'page',
|
|
43
|
-
variant: s.variant_s,
|
|
44
|
-
name: s.name_t,
|
|
45
|
-
description: s.description_t,
|
|
46
|
-
theme: s.theme_s,
|
|
47
|
-
nbformat: s.nbformat_s ? JSON.parse(s.nbformat_s) : undefined,
|
|
48
|
-
screenCapture: s.screen_capture_cdn_url_s || s.screen_capture_s,
|
|
49
|
-
tags: s.tags_ss ?? [],
|
|
50
|
-
creator: s.creator ? asUser(s.creator) : undefined,
|
|
51
|
-
creatorId: s.creator_uid,
|
|
52
|
-
kernelSnapshot: s.kernel_snapshot
|
|
53
|
-
? asCodeSandboxSnapshot(s.kernel_snapshot)
|
|
54
|
-
: undefined,
|
|
55
|
-
kernelSnapshotId: s.kernel_snapshot_uid,
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
33
|
/**
|
|
59
34
|
* Convert a raw space payload into its client shape.
|
|
60
35
|
*
|
package/lib/hooks/index.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ export * from './useMobile';
|
|
|
31
31
|
export * from './useUsageRefreshStore';
|
|
32
32
|
export * from './usePrincipalStore';
|
|
33
33
|
export * from './usePrincipalCacheStore';
|
|
34
|
+
export * from './useSpaceCacheStore';
|
|
34
35
|
export * from './useBillingEntityStore';
|
|
35
36
|
export * from './useSelectedPrincipal';
|
|
36
37
|
export * from './useSelectedBillingEntity';
|
package/lib/hooks/index.js
CHANGED
|
@@ -36,6 +36,7 @@ export * from './useMobile.js';
|
|
|
36
36
|
export * from './useUsageRefreshStore.js';
|
|
37
37
|
export * from './usePrincipalStore.js';
|
|
38
38
|
export * from './usePrincipalCacheStore.js';
|
|
39
|
+
export * from './useSpaceCacheStore.js';
|
|
39
40
|
export * from './useBillingEntityStore.js';
|
|
40
41
|
export * from './useSelectedPrincipal.js';
|
|
41
42
|
export * from './useSelectedBillingEntity.js';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
2
|
export type BackdropContextType = {
|
|
4
3
|
closeBackdrop: () => void;
|
|
5
4
|
displayBackdrop: (nextBackdrop: any) => void;
|
|
@@ -19,9 +18,9 @@ export type IBackdropProviderProps = {
|
|
|
19
18
|
export declare function BackdropProvider({ children, zIndex, disableDarken, backdropSurface, }: IBackdropProviderProps): import("react").JSX.Element;
|
|
20
19
|
export declare namespace BackdropProvider {
|
|
21
20
|
var propTypes: {
|
|
22
|
-
children:
|
|
23
|
-
zIndex:
|
|
24
|
-
disableDarken:
|
|
25
|
-
backdropSurface:
|
|
21
|
+
children: any;
|
|
22
|
+
zIndex: any;
|
|
23
|
+
disableDarken: any;
|
|
24
|
+
backdropSurface: any;
|
|
26
25
|
};
|
|
27
26
|
}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { create } from 'zustand';
|
|
6
6
|
import { createJSONStorage, persist } from 'zustand/middleware';
|
|
7
7
|
import { useUsageRefreshStore } from './useUsageRefreshStore.js';
|
|
8
|
+
import { registerSessionState } from '../state/sessionEnd.js';
|
|
8
9
|
export const useBillingEntityStore = create()(persist(set => ({
|
|
9
10
|
billingEntityKind: 'user',
|
|
10
11
|
billingEntityUid: undefined,
|
|
@@ -51,3 +52,5 @@ export const useBillingEntityStore = create()(persist(set => ({
|
|
|
51
52
|
}),
|
|
52
53
|
}));
|
|
53
54
|
export default useBillingEntityStore;
|
|
55
|
+
// The billing entity is the signed-in person's: forgotten when the session ends.
|
|
56
|
+
registerSessionState({ forget: () => useBillingEntityStore.getState().resetBillingEntity() });
|
package/lib/hooks/useCache.d.ts
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
* }
|
|
33
33
|
* ```
|
|
34
34
|
*/
|
|
35
|
-
import { UseQueryOptions, UseMutationOptions } from '@tanstack/react-query';
|
|
35
|
+
import { QueryClient, UseQueryOptions, UseMutationOptions } from '@tanstack/react-query';
|
|
36
36
|
import { IAnyOrganization, IContact, IIAMToken, IOrganization, ISchool, ISecret, IStudent, ITeam, IUser, IUserOnboarding, IUserSettings } from '../models';
|
|
37
37
|
type IAnySpace = any;
|
|
38
38
|
export type CacheProps = {
|
|
@@ -44,6 +44,25 @@ export type ISearchOpts = {
|
|
|
44
44
|
max: number;
|
|
45
45
|
public: boolean;
|
|
46
46
|
};
|
|
47
|
+
/**
|
|
48
|
+
* Forget everything a session was told, without orphaning what is on screen.
|
|
49
|
+
*
|
|
50
|
+
* `queryClient.clear()` is the obvious way to end a session and the wrong
|
|
51
|
+
* one. It destroys the query objects themselves, and an observer whose query
|
|
52
|
+
* is destroyed while its fetch is in flight is never answered and never asks
|
|
53
|
+
* again: it sits at `isLoading` for as long as the page stays open.
|
|
54
|
+
*
|
|
55
|
+
* Signing out is exactly that race. Ending the session swaps the whole tree
|
|
56
|
+
* for the anonymous one, which mounts the home page and starts fetching the
|
|
57
|
+
* featured ribbon; the logout response then lands on top of that fetch. The
|
|
58
|
+
* ribbon stayed a row of empty placeholders until the reader reloaded.
|
|
59
|
+
*
|
|
60
|
+
* So: drop what nobody is looking at, and reset what is on screen. A reset
|
|
61
|
+
* forgets the answer the person who has left was given and asks the question
|
|
62
|
+
* again as whoever is here now, which is what signing out means for a page
|
|
63
|
+
* that is still open.
|
|
64
|
+
*/
|
|
65
|
+
export declare const forgetSession: (client: QueryClient) => void;
|
|
47
66
|
/**
|
|
48
67
|
* Centralized query key factories for all entities
|
|
49
68
|
* Following TanStack Query best practices for key structure
|
|
@@ -174,6 +193,9 @@ export declare const queryKeys: {
|
|
|
174
193
|
readonly serviceAgents: (orgUid: string) => readonly ["mcp", "service-agents", string];
|
|
175
194
|
readonly policyLayer: (scope: string, subjectUid: string) => readonly ["mcp", "policy-layer", string, string];
|
|
176
195
|
readonly alertRules: (orgUid: string) => readonly ["mcp", "alert-rules", string];
|
|
196
|
+
readonly identityProviders: (orgUid: string) => readonly ["mcp", "identity-providers", string];
|
|
197
|
+
readonly scimTokens: (orgUid: string) => readonly ["mcp", "scim-tokens", string];
|
|
198
|
+
readonly admittedClients: (scope: string, subjectUid: string) => readonly ["mcp", "admitted-clients", string, string];
|
|
177
199
|
readonly forwarding: (orgUid: string) => readonly ["mcp", "audit-forwarding", string];
|
|
178
200
|
readonly auditSettings: (orgUid: string) => readonly ["mcp", "audit-settings", string];
|
|
179
201
|
readonly organizationTeams: (orgUid: string) => readonly ["mcp", "organization-teams", string];
|
|
@@ -253,6 +275,13 @@ export declare const queryKeys: {
|
|
|
253
275
|
readonly bySpace: (spaceId: string) => readonly ["documents", "space", string];
|
|
254
276
|
readonly model: (documentId: string) => readonly ["documents", "detail", string, "model"];
|
|
255
277
|
};
|
|
278
|
+
readonly decks: {
|
|
279
|
+
readonly all: () => readonly ["decks"];
|
|
280
|
+
readonly details: () => readonly ["decks", "detail"];
|
|
281
|
+
readonly detail: (id: string) => readonly ["decks", "detail", string];
|
|
282
|
+
readonly bySpace: (spaceId: string) => readonly ["decks", "space", string];
|
|
283
|
+
readonly model: (deckId: string) => readonly ["decks", "detail", string, "model"];
|
|
284
|
+
};
|
|
256
285
|
readonly cells: {
|
|
257
286
|
readonly all: () => readonly ["cells"];
|
|
258
287
|
readonly details: () => readonly ["cells", "detail"];
|
|
@@ -285,11 +314,6 @@ export declare const queryKeys: {
|
|
|
285
314
|
readonly detail: (id: string) => readonly ["environments", "detail", string];
|
|
286
315
|
readonly bySpace: (spaceId: string) => readonly ["environments", "space", string];
|
|
287
316
|
};
|
|
288
|
-
readonly pages: {
|
|
289
|
-
readonly all: () => readonly ["pages"];
|
|
290
|
-
readonly details: () => readonly ["pages", "detail"];
|
|
291
|
-
readonly detail: (id: string) => readonly ["pages", "detail", string];
|
|
292
|
-
};
|
|
293
317
|
readonly secrets: {
|
|
294
318
|
readonly all: () => readonly ["secrets"];
|
|
295
319
|
readonly details: () => readonly ["secrets", "detail"];
|
|
@@ -338,8 +362,14 @@ export declare const queryKeys: {
|
|
|
338
362
|
readonly items: {
|
|
339
363
|
readonly all: () => readonly ["items"];
|
|
340
364
|
readonly public: () => readonly ["items", "public"];
|
|
365
|
+
readonly publicItem: (uid: string) => readonly ["items", "public", string];
|
|
341
366
|
readonly bySpace: (spaceId: string) => readonly ["items", "space", string];
|
|
342
367
|
readonly search: (opts: ISearchOpts) => readonly ["items", "search", ISearchOpts];
|
|
368
|
+
readonly featured: () => readonly ["items", "featured"];
|
|
369
|
+
readonly orbits: () => readonly ["items", "orbits"];
|
|
370
|
+
readonly orbiters: (uid: string) => readonly ["items", "orbiters", string];
|
|
371
|
+
readonly derivations: (uid: string) => readonly ["items", "derivations", string];
|
|
372
|
+
readonly byOwner: (handle: string) => readonly ["items", "owner", string];
|
|
343
373
|
};
|
|
344
374
|
readonly layout: {
|
|
345
375
|
readonly byAccount: (accountHandle: string, spaceHandle?: string) => readonly ["layout", string, string] | readonly ["layout", string];
|
|
@@ -399,6 +429,7 @@ export declare const useCache: ({ loginRoute }?: CacheProps) => {
|
|
|
399
429
|
lastName: string;
|
|
400
430
|
avatarIcon?: string;
|
|
401
431
|
banner?: string;
|
|
432
|
+
showOrbits?: boolean;
|
|
402
433
|
}, unknown>;
|
|
403
434
|
useWhoami: () => import("@tanstack/react-query").UseQueryResult<any, Error>;
|
|
404
435
|
useChangePassword: () => import("@tanstack/react-query").UseMutationResult<any, Error, {
|
|
@@ -453,38 +484,46 @@ export declare const useCache: ({ loginRoute }?: CacheProps) => {
|
|
|
453
484
|
}, Error, Record<string, string>, unknown>;
|
|
454
485
|
useGetGitHubProfile: () => import("@tanstack/react-query").UseMutationResult<any, Error, string, unknown>;
|
|
455
486
|
useGetGoogleProfile: () => import("@tanstack/react-query").UseMutationResult<any, Error, string, unknown>;
|
|
456
|
-
useGetLinkedinProfile: () => import("@tanstack/react-query").UseMutationResult<any, Error,
|
|
487
|
+
useGetLinkedinProfile: () => import("@tanstack/react-query").UseMutationResult<any, Error, void, unknown>;
|
|
457
488
|
usePostLinkedinShare: () => import("@tanstack/react-query").UseMutationResult<any, Error, {
|
|
458
|
-
linkedinUserUrn: string;
|
|
459
489
|
postText: string;
|
|
460
|
-
accessToken: string;
|
|
461
490
|
}, unknown>;
|
|
462
491
|
usePostLinkedinShareWithUpload: () => import("@tanstack/react-query").UseMutationResult<any, Error, {
|
|
463
|
-
linkedinUserUrn: string;
|
|
464
492
|
postText: string;
|
|
465
493
|
uploadObject?: string;
|
|
466
|
-
accessToken: string;
|
|
467
494
|
}, unknown>;
|
|
495
|
+
useGetBlueskyConnection: () => import("@tanstack/react-query").UseMutationResult<any, Error, void, unknown>;
|
|
496
|
+
useConnectBluesky: () => import("@tanstack/react-query").UseMutationResult<any, Error, string | {
|
|
497
|
+
identifier: string;
|
|
498
|
+
returnOrigin?: string;
|
|
499
|
+
}, unknown>;
|
|
500
|
+
useDisconnectBluesky: () => import("@tanstack/react-query").UseMutationResult<any, Error, void, unknown>;
|
|
501
|
+
usePublishLinkedInShare: () => import("@tanstack/react-query").UseMutationResult<any, Error, {
|
|
502
|
+
itemId: string;
|
|
503
|
+
commentary: string;
|
|
504
|
+
idempotencyKey: string;
|
|
505
|
+
imageDataUrl?: string;
|
|
506
|
+
imageAltText?: string;
|
|
507
|
+
}, unknown>;
|
|
508
|
+
useUnpublishLinkedInShare: () => import("@tanstack/react-query").UseMutationResult<any, Error, string, unknown>;
|
|
509
|
+
useLinkedInShares: (itemId: string, enabled?: boolean) => import("@tanstack/react-query").UseQueryResult<any, Error>;
|
|
510
|
+
usePublishBlueskyShare: () => import("@tanstack/react-query").UseMutationResult<any, Error, {
|
|
511
|
+
itemId: string;
|
|
512
|
+
finding: string;
|
|
513
|
+
cellId: string;
|
|
514
|
+
outputIndex: number;
|
|
515
|
+
idempotencyKey: string;
|
|
516
|
+
imageDataUrl: string;
|
|
517
|
+
imageAltText: string;
|
|
518
|
+
}, unknown>;
|
|
519
|
+
useUnpublishBlueskyShare: () => import("@tanstack/react-query").UseMutationResult<any, Error, string, unknown>;
|
|
520
|
+
useBlueskyShares: (itemId: string, enabled?: boolean) => import("@tanstack/react-query").UseQueryResult<any, Error>;
|
|
468
521
|
useRegisterToWaitingList: () => import("@tanstack/react-query").UseMutationResult<any, Error, {
|
|
469
522
|
firstName: string;
|
|
470
523
|
lastName: string;
|
|
471
524
|
email: string;
|
|
472
525
|
affiliation?: string;
|
|
473
526
|
}, unknown>;
|
|
474
|
-
useProxyGET: () => import("@tanstack/react-query").UseMutationResult<any, Error, {
|
|
475
|
-
url: string;
|
|
476
|
-
token: string;
|
|
477
|
-
}, unknown>;
|
|
478
|
-
useProxyPOST: () => import("@tanstack/react-query").UseMutationResult<any, Error, {
|
|
479
|
-
url: string;
|
|
480
|
-
body: object;
|
|
481
|
-
token: string;
|
|
482
|
-
}, unknown>;
|
|
483
|
-
useProxyPUT: () => import("@tanstack/react-query").UseMutationResult<any, Error, {
|
|
484
|
-
url: string;
|
|
485
|
-
body: object;
|
|
486
|
-
token: string;
|
|
487
|
-
}, unknown>;
|
|
488
527
|
useUser: (userId: string) => import("@tanstack/react-query").UseQueryResult<IUser | undefined, Error>;
|
|
489
528
|
useUserByHandle: (handle: string) => import("@tanstack/react-query").UseQueryResult<any, Error>;
|
|
490
529
|
useUserPublicProfileByHandle: (handle: string) => import("@tanstack/react-query").UseQueryResult<any, Error>;
|
|
@@ -667,7 +706,6 @@ export declare const useCache: ({ loginRoute }?: CacheProps) => {
|
|
|
667
706
|
name: string;
|
|
668
707
|
description: string;
|
|
669
708
|
}, unknown>;
|
|
670
|
-
usePublicCourses: () => import("@tanstack/react-query").UseQueryResult<any, Error>;
|
|
671
709
|
useInstructorCourses: (userId?: string) => import("@tanstack/react-query").UseQueryResult<any, Error>;
|
|
672
710
|
useCourseEnrollments: () => import("@tanstack/react-query").UseQueryResult<any, Error>;
|
|
673
711
|
useEnrollStudentToCourse: () => import("@tanstack/react-query").UseMutationResult<any, Error, {
|
|
@@ -691,7 +729,6 @@ export declare const useCache: ({ loginRoute }?: CacheProps) => {
|
|
|
691
729
|
itemIds: string[];
|
|
692
730
|
}, unknown>;
|
|
693
731
|
useRefreshCourse: (options?: UseMutationOptions<unknown, Error, string>) => import("@tanstack/react-query").UseMutationResult<unknown, Error, string, unknown>;
|
|
694
|
-
useRefreshPublicCourses: (options?: UseMutationOptions<unknown, Error, void>) => import("@tanstack/react-query").UseMutationResult<unknown, Error, void, unknown>;
|
|
695
732
|
useRefreshInstructorCourses: (options?: UseMutationOptions<unknown, Error, void>) => import("@tanstack/react-query").UseMutationResult<unknown, Error, void, unknown>;
|
|
696
733
|
useRefreshCoursesEnrollments: (options?: UseMutationOptions<unknown, Error, void>) => import("@tanstack/react-query").UseMutationResult<unknown, Error, void, unknown>;
|
|
697
734
|
useRefreshStudent: (options?: UseMutationOptions<unknown, Error, {
|
|
@@ -722,6 +759,25 @@ export declare const useCache: ({ loginRoute }?: CacheProps) => {
|
|
|
722
759
|
useCloneNotebook: () => import("@tanstack/react-query").UseMutationResult<any, Error, string, unknown>;
|
|
723
760
|
useRefreshNotebook: (options?: UseMutationOptions<unknown, Error, string>) => import("@tanstack/react-query").UseMutationResult<unknown, Error, string, unknown>;
|
|
724
761
|
useRefreshSpaceNotebooks: (options?: UseMutationOptions<unknown, Error, string>) => import("@tanstack/react-query").UseMutationResult<unknown, Error, string, unknown>;
|
|
762
|
+
useDeck: (deckId: string) => import("@tanstack/react-query").UseQueryResult<any, Error>;
|
|
763
|
+
useDecksBySpace: (spaceId: string) => import("@tanstack/react-query").UseQueryResult<any, Error>;
|
|
764
|
+
useCreateDeck: () => import("@tanstack/react-query").UseMutationResult<any, Error, {
|
|
765
|
+
spaceId: string;
|
|
766
|
+
name: string;
|
|
767
|
+
description?: string;
|
|
768
|
+
deckType?: string;
|
|
769
|
+
file?: File;
|
|
770
|
+
}, unknown>;
|
|
771
|
+
useUpdateDeck: () => import("@tanstack/react-query").UseMutationResult<any, Error, {
|
|
772
|
+
id: string;
|
|
773
|
+
name: string;
|
|
774
|
+
description: string;
|
|
775
|
+
}, unknown>;
|
|
776
|
+
useUpdateDeckModel: () => import("@tanstack/react-query").UseMutationResult<any, Error, {
|
|
777
|
+
deckId: string;
|
|
778
|
+
spec: unknown;
|
|
779
|
+
}, unknown>;
|
|
780
|
+
useCloneDeck: () => import("@tanstack/react-query").UseMutationResult<any, Error, string, unknown>;
|
|
725
781
|
useDocument: (documentId: string) => import("@tanstack/react-query").UseQueryResult<any, Error>;
|
|
726
782
|
useDocumentsBySpace: (spaceId: string) => import("@tanstack/react-query").UseQueryResult<any, Error>;
|
|
727
783
|
useCreateDocument: () => import("@tanstack/react-query").UseMutationResult<any, Error, {
|
|
@@ -822,25 +878,108 @@ export declare const useCache: ({ loginRoute }?: CacheProps) => {
|
|
|
822
878
|
}, Error>;
|
|
823
879
|
useMakeItemPublic: () => import("@tanstack/react-query").UseMutationResult<any, Error, string, unknown>;
|
|
824
880
|
useMakeItemPrivate: () => import("@tanstack/react-query").UseMutationResult<any, Error, string, unknown>;
|
|
825
|
-
useSearchPublicItems: () => import("@tanstack/react-query").UseMutationResult<
|
|
881
|
+
useSearchPublicItems: () => import("@tanstack/react-query").UseMutationResult<{
|
|
882
|
+
items: any;
|
|
883
|
+
total: number;
|
|
884
|
+
offset: number;
|
|
885
|
+
}, Error, {
|
|
826
886
|
q?: string;
|
|
827
887
|
types?: string[];
|
|
828
888
|
max?: number;
|
|
829
|
-
|
|
830
|
-
|
|
889
|
+
offset?: number;
|
|
890
|
+
/** `relevance`, `recent` or `orbits`. */
|
|
891
|
+
sort?: string;
|
|
892
|
+
featured?: boolean;
|
|
893
|
+
/** Only this account's artifacts: what a public profile page lists. */
|
|
894
|
+
owner?: string;
|
|
895
|
+
}, unknown>;
|
|
896
|
+
useLibraryArtifacts: (max?: number, options?: UseQueryOptions<any, Error>) => import("@tanstack/react-query").DefinedUseQueryResult<unknown, Error>;
|
|
831
897
|
usePublications: (options?: UseQueryOptions<unknown, Error>) => import("@tanstack/react-query").UseQueryResult<unknown, Error>;
|
|
832
|
-
|
|
898
|
+
useFeaturedItems: (max?: number, options?: UseQueryOptions<any, Error>) => import("@tanstack/react-query").DefinedUseQueryResult<unknown, Error>;
|
|
899
|
+
useAllFeaturedItems: (options?: UseQueryOptions<any, Error>) => import("@tanstack/react-query").DefinedUseQueryResult<unknown, Error>;
|
|
900
|
+
usePublicItem: (itemId?: string, options?: UseQueryOptions<any, Error>) => import("@tanstack/react-query").DefinedUseQueryResult<unknown, Error>;
|
|
901
|
+
useAccountPublications: (handle?: string, options?: UseQueryOptions<any, Error>) => import("@tanstack/react-query").DefinedUseQueryResult<unknown, Error>;
|
|
902
|
+
useMyOrbits: (offset?: number, max?: number, options?: UseQueryOptions<any, Error>) => import("@tanstack/react-query").DefinedUseQueryResult<unknown, Error>;
|
|
903
|
+
useAccountOrbits: (handle?: string, offset?: number, max?: number, options?: UseQueryOptions<any, Error>) => import("@tanstack/react-query").DefinedUseQueryResult<unknown, Error>;
|
|
904
|
+
useItemOrbiters: (itemId?: string, offset?: number, max?: number, options?: UseQueryOptions<any, Error>) => import("@tanstack/react-query").DefinedUseQueryResult<unknown, Error>;
|
|
905
|
+
useItemDerivations: (itemId?: string, offset?: number, max?: number, options?: UseQueryOptions<any, Error>) => import("@tanstack/react-query").DefinedUseQueryResult<unknown, Error>;
|
|
906
|
+
useOrbitItem: () => import("@tanstack/react-query").UseMutationResult<{
|
|
907
|
+
itemId: string;
|
|
908
|
+
orbits: number;
|
|
909
|
+
orbited: boolean;
|
|
910
|
+
}, Error, string, {
|
|
911
|
+
itemId: string;
|
|
912
|
+
}>;
|
|
913
|
+
useUnorbitItem: () => import("@tanstack/react-query").UseMutationResult<{
|
|
914
|
+
itemId: string;
|
|
915
|
+
orbits: number;
|
|
916
|
+
orbited: boolean;
|
|
917
|
+
}, Error, string, {
|
|
918
|
+
itemId: string;
|
|
919
|
+
}>;
|
|
920
|
+
useFeatureItem: () => import("@tanstack/react-query").UseMutationResult<any, Error, {
|
|
921
|
+
itemId: string;
|
|
922
|
+
rank?: number;
|
|
923
|
+
}, unknown>;
|
|
924
|
+
useUnfeatureItem: () => import("@tanstack/react-query").UseMutationResult<any, Error, string, unknown>;
|
|
925
|
+
useSetFeaturedRank: () => import("@tanstack/react-query").UseMutationResult<any, Error, {
|
|
926
|
+
itemId: string;
|
|
927
|
+
rank: number;
|
|
928
|
+
}, unknown>;
|
|
929
|
+
useSetItemImage: () => import("@tanstack/react-query").UseMutationResult<any, Error, {
|
|
930
|
+
itemId: string;
|
|
931
|
+
kind: "capture" | "box" | "icon";
|
|
932
|
+
ref?: string;
|
|
933
|
+
data?: string;
|
|
934
|
+
}, unknown>;
|
|
935
|
+
useResetItemImage: () => import("@tanstack/react-query").UseMutationResult<any, Error, string, unknown>;
|
|
936
|
+
useCountItemReuse: () => import("@tanstack/react-query").UseMutationResult<any, Error, {
|
|
937
|
+
itemId: string;
|
|
938
|
+
kind: "clone" | "instantiate";
|
|
939
|
+
signupSource?: "copy" | "linkedin" | "x" | "bluesky";
|
|
940
|
+
shareRef?: string;
|
|
941
|
+
}, unknown>;
|
|
942
|
+
useSyncArtifactCatalogue: () => import("@tanstack/react-query").UseMutationResult<any, Error, {
|
|
943
|
+
artifacts: Array<Record<string, any>>;
|
|
944
|
+
artifactType?: string;
|
|
945
|
+
}, unknown>;
|
|
946
|
+
usePublishArtifact: () => import("@tanstack/react-query").UseMutationResult<any, Error, {
|
|
947
|
+
itemId: string;
|
|
948
|
+
image?: {
|
|
949
|
+
kind: "capture" | "box" | "icon";
|
|
950
|
+
ref?: string;
|
|
951
|
+
data?: string;
|
|
952
|
+
};
|
|
953
|
+
/**
|
|
954
|
+
* The publisher's own words for their work, which is what somebody
|
|
955
|
+
* else will search for.
|
|
956
|
+
*
|
|
957
|
+
* Sent with the visibility rather than in a write of their own: the
|
|
958
|
+
* service writes them onto the artifact in the same operation that
|
|
959
|
+
* makes it public, so publishing still costs what it cost. Omitted
|
|
960
|
+
* entirely, they are left as they were — which is what withdrawing
|
|
961
|
+
* wants, and what an older caller gets.
|
|
962
|
+
*/
|
|
963
|
+
tags?: string[];
|
|
964
|
+
/**
|
|
965
|
+
* What the artifact says about itself, in the publisher's words.
|
|
966
|
+
*
|
|
967
|
+
* Sent with the visibility for the same reason the tags are: the
|
|
968
|
+
* service writes it onto the artifact in the operation that makes it
|
|
969
|
+
* public. Omitted entirely, it is left as it was.
|
|
970
|
+
*/
|
|
971
|
+
description?: string;
|
|
972
|
+
}, unknown>;
|
|
973
|
+
useUnpublishArtifact: () => import("@tanstack/react-query").UseMutationResult<any, Error, string, unknown>;
|
|
974
|
+
useUpdateArtifactDetails: () => import("@tanstack/react-query").UseMutationResult<any, Error, {
|
|
975
|
+
itemId: string;
|
|
976
|
+
name?: string;
|
|
977
|
+
description?: string;
|
|
978
|
+
tags?: string[];
|
|
979
|
+
}, unknown>;
|
|
833
980
|
useRefreshSpaceItems: (options?: UseMutationOptions<unknown, Error, string>) => import("@tanstack/react-query").UseMutationResult<unknown, Error, string, unknown>;
|
|
834
981
|
useClearCachedPublicItems: (options?: UseMutationOptions<void, Error, void>) => import("@tanstack/react-query").UseMutationResult<void, Error, void, unknown>;
|
|
835
982
|
useClearCachedItems: (options?: UseMutationOptions<void, Error, void>) => import("@tanstack/react-query").UseMutationResult<void, Error, void, unknown>;
|
|
836
|
-
usePage: (pageId: string) => import("@tanstack/react-query").UseQueryResult<any, Error>;
|
|
837
|
-
usePages: (scope?: {
|
|
838
|
-
selectedPrincipalUid?: string;
|
|
839
|
-
selectedPrincipalKind?: "personal" | "organization" | "team";
|
|
840
|
-
}) => import("@tanstack/react-query").UseQueryResult<any, Error>;
|
|
841
|
-
useCreatePage: () => import("@tanstack/react-query").UseMutationResult<any, Error, Omit<any, "id">, unknown>;
|
|
842
|
-
useUpdatePage: () => import("@tanstack/react-query").UseMutationResult<any, Error, Pick<any, "name" | "id" | "tags" | "description">, unknown>;
|
|
843
|
-
useDeletePage: () => import("@tanstack/react-query").UseMutationResult<any, Error, string, unknown>;
|
|
844
983
|
useSecret: (secretId: string, options?: {
|
|
845
984
|
principalUid?: string;
|
|
846
985
|
principalKind?: "personal" | "organization" | "team";
|
|
@@ -1156,6 +1295,9 @@ export declare const useCache: ({ loginRoute }?: CacheProps) => {
|
|
|
1156
1295
|
readonly serviceAgents: (orgUid: string) => readonly ["mcp", "service-agents", string];
|
|
1157
1296
|
readonly policyLayer: (scope: string, subjectUid: string) => readonly ["mcp", "policy-layer", string, string];
|
|
1158
1297
|
readonly alertRules: (orgUid: string) => readonly ["mcp", "alert-rules", string];
|
|
1298
|
+
readonly identityProviders: (orgUid: string) => readonly ["mcp", "identity-providers", string];
|
|
1299
|
+
readonly scimTokens: (orgUid: string) => readonly ["mcp", "scim-tokens", string];
|
|
1300
|
+
readonly admittedClients: (scope: string, subjectUid: string) => readonly ["mcp", "admitted-clients", string, string];
|
|
1159
1301
|
readonly forwarding: (orgUid: string) => readonly ["mcp", "audit-forwarding", string];
|
|
1160
1302
|
readonly auditSettings: (orgUid: string) => readonly ["mcp", "audit-settings", string];
|
|
1161
1303
|
readonly organizationTeams: (orgUid: string) => readonly ["mcp", "organization-teams", string];
|
|
@@ -1235,6 +1377,13 @@ export declare const useCache: ({ loginRoute }?: CacheProps) => {
|
|
|
1235
1377
|
readonly bySpace: (spaceId: string) => readonly ["documents", "space", string];
|
|
1236
1378
|
readonly model: (documentId: string) => readonly ["documents", "detail", string, "model"];
|
|
1237
1379
|
};
|
|
1380
|
+
readonly decks: {
|
|
1381
|
+
readonly all: () => readonly ["decks"];
|
|
1382
|
+
readonly details: () => readonly ["decks", "detail"];
|
|
1383
|
+
readonly detail: (id: string) => readonly ["decks", "detail", string];
|
|
1384
|
+
readonly bySpace: (spaceId: string) => readonly ["decks", "space", string];
|
|
1385
|
+
readonly model: (deckId: string) => readonly ["decks", "detail", string, "model"];
|
|
1386
|
+
};
|
|
1238
1387
|
readonly cells: {
|
|
1239
1388
|
readonly all: () => readonly ["cells"];
|
|
1240
1389
|
readonly details: () => readonly ["cells", "detail"];
|
|
@@ -1267,11 +1416,6 @@ export declare const useCache: ({ loginRoute }?: CacheProps) => {
|
|
|
1267
1416
|
readonly detail: (id: string) => readonly ["environments", "detail", string];
|
|
1268
1417
|
readonly bySpace: (spaceId: string) => readonly ["environments", "space", string];
|
|
1269
1418
|
};
|
|
1270
|
-
readonly pages: {
|
|
1271
|
-
readonly all: () => readonly ["pages"];
|
|
1272
|
-
readonly details: () => readonly ["pages", "detail"];
|
|
1273
|
-
readonly detail: (id: string) => readonly ["pages", "detail", string];
|
|
1274
|
-
};
|
|
1275
1419
|
readonly secrets: {
|
|
1276
1420
|
readonly all: () => readonly ["secrets"];
|
|
1277
1421
|
readonly details: () => readonly ["secrets", "detail"];
|
|
@@ -1320,8 +1464,14 @@ export declare const useCache: ({ loginRoute }?: CacheProps) => {
|
|
|
1320
1464
|
readonly items: {
|
|
1321
1465
|
readonly all: () => readonly ["items"];
|
|
1322
1466
|
readonly public: () => readonly ["items", "public"];
|
|
1467
|
+
readonly publicItem: (uid: string) => readonly ["items", "public", string];
|
|
1323
1468
|
readonly bySpace: (spaceId: string) => readonly ["items", "space", string];
|
|
1324
1469
|
readonly search: (opts: ISearchOpts) => readonly ["items", "search", ISearchOpts];
|
|
1470
|
+
readonly featured: () => readonly ["items", "featured"];
|
|
1471
|
+
readonly orbits: () => readonly ["items", "orbits"];
|
|
1472
|
+
readonly orbiters: (uid: string) => readonly ["items", "orbiters", string];
|
|
1473
|
+
readonly derivations: (uid: string) => readonly ["items", "derivations", string];
|
|
1474
|
+
readonly byOwner: (handle: string) => readonly ["items", "owner", string];
|
|
1325
1475
|
};
|
|
1326
1476
|
readonly layout: {
|
|
1327
1477
|
readonly byAccount: (accountHandle: string, spaceHandle?: string) => readonly ["layout", string, string] | readonly ["layout", string];
|
|
@@ -1362,5 +1512,8 @@ export declare const useCache: ({ loginRoute }?: CacheProps) => {
|
|
|
1362
1512
|
documentUploadLoading: boolean;
|
|
1363
1513
|
documentUploadProgress: number;
|
|
1364
1514
|
resetDocumentUpload: () => void;
|
|
1515
|
+
deckUploadLoading: boolean;
|
|
1516
|
+
deckUploadProgress: number;
|
|
1517
|
+
resetDeckUpload: () => void;
|
|
1365
1518
|
};
|
|
1366
1519
|
export default useCache;
|