@datalayer/core 1.1.66 → 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/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/connectedAgents.d.ts +29 -0
- package/lib/api/iam/connectedAgents.js +35 -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 +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/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/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 +25 -9
- package/lib/api/mcp/observability.js +63 -50
- 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/constants.d.ts +1 -0
- package/lib/client/constants.js +1 -0
- 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/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/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 +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/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/useBillingEntityStore.js +3 -0
- package/lib/hooks/useCache.d.ts +168 -25
- package/lib/hooks/useCache.js +1424 -307
- 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 +247 -12
- 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/useSpaceCacheStore.d.ts +50 -0
- package/lib/hooks/useSpaceCacheStore.js +85 -0
- package/lib/models/CreditsDTO.d.ts +6 -5
- package/lib/models/CreditsDTO.js +7 -5
- 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/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 -3
- package/lib/state/substates/IAMState.js +7 -0
- package/lib/state/substates/LayoutState.js +12 -0
- package/lib/state/substates/ProfileState.d.ts +1 -0
- package/lib/state/substates/ProfileState.js +1 -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/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/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 +269 -264
- package/scripts/generate-mcp-types.py +1 -1
- package/scripts/generate-orchestration-types.py +920 -0
|
@@ -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';
|
|
@@ -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, {
|
|
@@ -667,7 +698,6 @@ export declare const useCache: ({ loginRoute }?: CacheProps) => {
|
|
|
667
698
|
name: string;
|
|
668
699
|
description: string;
|
|
669
700
|
}, unknown>;
|
|
670
|
-
usePublicCourses: () => import("@tanstack/react-query").UseQueryResult<any, Error>;
|
|
671
701
|
useInstructorCourses: (userId?: string) => import("@tanstack/react-query").UseQueryResult<any, Error>;
|
|
672
702
|
useCourseEnrollments: () => import("@tanstack/react-query").UseQueryResult<any, Error>;
|
|
673
703
|
useEnrollStudentToCourse: () => import("@tanstack/react-query").UseMutationResult<any, Error, {
|
|
@@ -691,7 +721,6 @@ export declare const useCache: ({ loginRoute }?: CacheProps) => {
|
|
|
691
721
|
itemIds: string[];
|
|
692
722
|
}, unknown>;
|
|
693
723
|
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
724
|
useRefreshInstructorCourses: (options?: UseMutationOptions<unknown, Error, void>) => import("@tanstack/react-query").UseMutationResult<unknown, Error, void, unknown>;
|
|
696
725
|
useRefreshCoursesEnrollments: (options?: UseMutationOptions<unknown, Error, void>) => import("@tanstack/react-query").UseMutationResult<unknown, Error, void, unknown>;
|
|
697
726
|
useRefreshStudent: (options?: UseMutationOptions<unknown, Error, {
|
|
@@ -722,6 +751,25 @@ export declare const useCache: ({ loginRoute }?: CacheProps) => {
|
|
|
722
751
|
useCloneNotebook: () => import("@tanstack/react-query").UseMutationResult<any, Error, string, unknown>;
|
|
723
752
|
useRefreshNotebook: (options?: UseMutationOptions<unknown, Error, string>) => import("@tanstack/react-query").UseMutationResult<unknown, Error, string, unknown>;
|
|
724
753
|
useRefreshSpaceNotebooks: (options?: UseMutationOptions<unknown, Error, string>) => import("@tanstack/react-query").UseMutationResult<unknown, Error, string, unknown>;
|
|
754
|
+
useDeck: (deckId: string) => import("@tanstack/react-query").UseQueryResult<any, Error>;
|
|
755
|
+
useDecksBySpace: (spaceId: string) => import("@tanstack/react-query").UseQueryResult<any, Error>;
|
|
756
|
+
useCreateDeck: () => import("@tanstack/react-query").UseMutationResult<any, Error, {
|
|
757
|
+
spaceId: string;
|
|
758
|
+
name: string;
|
|
759
|
+
description?: string;
|
|
760
|
+
deckType?: string;
|
|
761
|
+
file?: File;
|
|
762
|
+
}, unknown>;
|
|
763
|
+
useUpdateDeck: () => import("@tanstack/react-query").UseMutationResult<any, Error, {
|
|
764
|
+
id: string;
|
|
765
|
+
name: string;
|
|
766
|
+
description: string;
|
|
767
|
+
}, unknown>;
|
|
768
|
+
useUpdateDeckModel: () => import("@tanstack/react-query").UseMutationResult<any, Error, {
|
|
769
|
+
deckId: string;
|
|
770
|
+
spec: unknown;
|
|
771
|
+
}, unknown>;
|
|
772
|
+
useCloneDeck: () => import("@tanstack/react-query").UseMutationResult<any, Error, string, unknown>;
|
|
725
773
|
useDocument: (documentId: string) => import("@tanstack/react-query").UseQueryResult<any, Error>;
|
|
726
774
|
useDocumentsBySpace: (spaceId: string) => import("@tanstack/react-query").UseQueryResult<any, Error>;
|
|
727
775
|
useCreateDocument: () => import("@tanstack/react-query").UseMutationResult<any, Error, {
|
|
@@ -822,25 +870,106 @@ export declare const useCache: ({ loginRoute }?: CacheProps) => {
|
|
|
822
870
|
}, Error>;
|
|
823
871
|
useMakeItemPublic: () => import("@tanstack/react-query").UseMutationResult<any, Error, string, unknown>;
|
|
824
872
|
useMakeItemPrivate: () => import("@tanstack/react-query").UseMutationResult<any, Error, string, unknown>;
|
|
825
|
-
useSearchPublicItems: () => import("@tanstack/react-query").UseMutationResult<
|
|
873
|
+
useSearchPublicItems: () => import("@tanstack/react-query").UseMutationResult<{
|
|
874
|
+
items: any;
|
|
875
|
+
total: number;
|
|
876
|
+
offset: number;
|
|
877
|
+
}, Error, {
|
|
826
878
|
q?: string;
|
|
827
879
|
types?: string[];
|
|
828
880
|
max?: number;
|
|
829
|
-
|
|
830
|
-
|
|
881
|
+
offset?: number;
|
|
882
|
+
/** `relevance`, `recent` or `orbits`. */
|
|
883
|
+
sort?: string;
|
|
884
|
+
featured?: boolean;
|
|
885
|
+
/** Only this account's artifacts: what a public profile page lists. */
|
|
886
|
+
owner?: string;
|
|
887
|
+
}, unknown>;
|
|
888
|
+
useLibraryArtifacts: (max?: number, options?: UseQueryOptions<any, Error>) => import("@tanstack/react-query").DefinedUseQueryResult<unknown, Error>;
|
|
831
889
|
usePublications: (options?: UseQueryOptions<unknown, Error>) => import("@tanstack/react-query").UseQueryResult<unknown, Error>;
|
|
832
|
-
|
|
890
|
+
useFeaturedItems: (max?: number, options?: UseQueryOptions<any, Error>) => import("@tanstack/react-query").DefinedUseQueryResult<unknown, Error>;
|
|
891
|
+
useAllFeaturedItems: (options?: UseQueryOptions<any, Error>) => import("@tanstack/react-query").DefinedUseQueryResult<unknown, Error>;
|
|
892
|
+
usePublicItem: (itemId?: string, options?: UseQueryOptions<any, Error>) => import("@tanstack/react-query").DefinedUseQueryResult<unknown, Error>;
|
|
893
|
+
useAccountPublications: (handle?: string, options?: UseQueryOptions<any, Error>) => import("@tanstack/react-query").DefinedUseQueryResult<unknown, Error>;
|
|
894
|
+
useMyOrbits: (offset?: number, max?: number, options?: UseQueryOptions<any, Error>) => import("@tanstack/react-query").DefinedUseQueryResult<unknown, Error>;
|
|
895
|
+
useAccountOrbits: (handle?: string, offset?: number, max?: number, options?: UseQueryOptions<any, Error>) => import("@tanstack/react-query").DefinedUseQueryResult<unknown, Error>;
|
|
896
|
+
useItemOrbiters: (itemId?: string, offset?: number, max?: number, options?: UseQueryOptions<any, Error>) => import("@tanstack/react-query").DefinedUseQueryResult<unknown, Error>;
|
|
897
|
+
useItemDerivations: (itemId?: string, offset?: number, max?: number, options?: UseQueryOptions<any, Error>) => import("@tanstack/react-query").DefinedUseQueryResult<unknown, Error>;
|
|
898
|
+
useOrbitItem: () => import("@tanstack/react-query").UseMutationResult<{
|
|
899
|
+
itemId: string;
|
|
900
|
+
orbits: number;
|
|
901
|
+
orbited: boolean;
|
|
902
|
+
}, Error, string, {
|
|
903
|
+
itemId: string;
|
|
904
|
+
}>;
|
|
905
|
+
useUnorbitItem: () => import("@tanstack/react-query").UseMutationResult<{
|
|
906
|
+
itemId: string;
|
|
907
|
+
orbits: number;
|
|
908
|
+
orbited: boolean;
|
|
909
|
+
}, Error, string, {
|
|
910
|
+
itemId: string;
|
|
911
|
+
}>;
|
|
912
|
+
useFeatureItem: () => import("@tanstack/react-query").UseMutationResult<any, Error, {
|
|
913
|
+
itemId: string;
|
|
914
|
+
rank?: number;
|
|
915
|
+
}, unknown>;
|
|
916
|
+
useUnfeatureItem: () => import("@tanstack/react-query").UseMutationResult<any, Error, string, unknown>;
|
|
917
|
+
useSetFeaturedRank: () => import("@tanstack/react-query").UseMutationResult<any, Error, {
|
|
918
|
+
itemId: string;
|
|
919
|
+
rank: number;
|
|
920
|
+
}, unknown>;
|
|
921
|
+
useSetItemImage: () => import("@tanstack/react-query").UseMutationResult<any, Error, {
|
|
922
|
+
itemId: string;
|
|
923
|
+
kind: "capture" | "box" | "icon";
|
|
924
|
+
ref?: string;
|
|
925
|
+
data?: string;
|
|
926
|
+
}, unknown>;
|
|
927
|
+
useResetItemImage: () => import("@tanstack/react-query").UseMutationResult<any, Error, string, unknown>;
|
|
928
|
+
useCountItemReuse: () => import("@tanstack/react-query").UseMutationResult<any, Error, {
|
|
929
|
+
itemId: string;
|
|
930
|
+
kind: "clone" | "instantiate";
|
|
931
|
+
}, unknown>;
|
|
932
|
+
useSyncArtifactCatalogue: () => import("@tanstack/react-query").UseMutationResult<any, Error, {
|
|
933
|
+
artifacts: Array<Record<string, any>>;
|
|
934
|
+
artifactType?: string;
|
|
935
|
+
}, unknown>;
|
|
936
|
+
usePublishArtifact: () => import("@tanstack/react-query").UseMutationResult<any, Error, {
|
|
937
|
+
itemId: string;
|
|
938
|
+
image?: {
|
|
939
|
+
kind: "capture" | "box" | "icon";
|
|
940
|
+
ref?: string;
|
|
941
|
+
data?: string;
|
|
942
|
+
};
|
|
943
|
+
/**
|
|
944
|
+
* The publisher's own words for their work, which is what somebody
|
|
945
|
+
* else will search for.
|
|
946
|
+
*
|
|
947
|
+
* Sent with the visibility rather than in a write of their own: the
|
|
948
|
+
* service writes them onto the artifact in the same operation that
|
|
949
|
+
* makes it public, so publishing still costs what it cost. Omitted
|
|
950
|
+
* entirely, they are left as they were — which is what withdrawing
|
|
951
|
+
* wants, and what an older caller gets.
|
|
952
|
+
*/
|
|
953
|
+
tags?: string[];
|
|
954
|
+
/**
|
|
955
|
+
* What the artifact says about itself, in the publisher's words.
|
|
956
|
+
*
|
|
957
|
+
* Sent with the visibility for the same reason the tags are: the
|
|
958
|
+
* service writes it onto the artifact in the operation that makes it
|
|
959
|
+
* public. Omitted entirely, it is left as it was.
|
|
960
|
+
*/
|
|
961
|
+
description?: string;
|
|
962
|
+
}, unknown>;
|
|
963
|
+
useUnpublishArtifact: () => import("@tanstack/react-query").UseMutationResult<any, Error, string, unknown>;
|
|
964
|
+
useUpdateArtifactDetails: () => import("@tanstack/react-query").UseMutationResult<any, Error, {
|
|
965
|
+
itemId: string;
|
|
966
|
+
name?: string;
|
|
967
|
+
description?: string;
|
|
968
|
+
tags?: string[];
|
|
969
|
+
}, unknown>;
|
|
833
970
|
useRefreshSpaceItems: (options?: UseMutationOptions<unknown, Error, string>) => import("@tanstack/react-query").UseMutationResult<unknown, Error, string, unknown>;
|
|
834
971
|
useClearCachedPublicItems: (options?: UseMutationOptions<void, Error, void>) => import("@tanstack/react-query").UseMutationResult<void, Error, void, unknown>;
|
|
835
972
|
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
973
|
useSecret: (secretId: string, options?: {
|
|
845
974
|
principalUid?: string;
|
|
846
975
|
principalKind?: "personal" | "organization" | "team";
|
|
@@ -1156,6 +1285,9 @@ export declare const useCache: ({ loginRoute }?: CacheProps) => {
|
|
|
1156
1285
|
readonly serviceAgents: (orgUid: string) => readonly ["mcp", "service-agents", string];
|
|
1157
1286
|
readonly policyLayer: (scope: string, subjectUid: string) => readonly ["mcp", "policy-layer", string, string];
|
|
1158
1287
|
readonly alertRules: (orgUid: string) => readonly ["mcp", "alert-rules", string];
|
|
1288
|
+
readonly identityProviders: (orgUid: string) => readonly ["mcp", "identity-providers", string];
|
|
1289
|
+
readonly scimTokens: (orgUid: string) => readonly ["mcp", "scim-tokens", string];
|
|
1290
|
+
readonly admittedClients: (scope: string, subjectUid: string) => readonly ["mcp", "admitted-clients", string, string];
|
|
1159
1291
|
readonly forwarding: (orgUid: string) => readonly ["mcp", "audit-forwarding", string];
|
|
1160
1292
|
readonly auditSettings: (orgUid: string) => readonly ["mcp", "audit-settings", string];
|
|
1161
1293
|
readonly organizationTeams: (orgUid: string) => readonly ["mcp", "organization-teams", string];
|
|
@@ -1235,6 +1367,13 @@ export declare const useCache: ({ loginRoute }?: CacheProps) => {
|
|
|
1235
1367
|
readonly bySpace: (spaceId: string) => readonly ["documents", "space", string];
|
|
1236
1368
|
readonly model: (documentId: string) => readonly ["documents", "detail", string, "model"];
|
|
1237
1369
|
};
|
|
1370
|
+
readonly decks: {
|
|
1371
|
+
readonly all: () => readonly ["decks"];
|
|
1372
|
+
readonly details: () => readonly ["decks", "detail"];
|
|
1373
|
+
readonly detail: (id: string) => readonly ["decks", "detail", string];
|
|
1374
|
+
readonly bySpace: (spaceId: string) => readonly ["decks", "space", string];
|
|
1375
|
+
readonly model: (deckId: string) => readonly ["decks", "detail", string, "model"];
|
|
1376
|
+
};
|
|
1238
1377
|
readonly cells: {
|
|
1239
1378
|
readonly all: () => readonly ["cells"];
|
|
1240
1379
|
readonly details: () => readonly ["cells", "detail"];
|
|
@@ -1267,11 +1406,6 @@ export declare const useCache: ({ loginRoute }?: CacheProps) => {
|
|
|
1267
1406
|
readonly detail: (id: string) => readonly ["environments", "detail", string];
|
|
1268
1407
|
readonly bySpace: (spaceId: string) => readonly ["environments", "space", string];
|
|
1269
1408
|
};
|
|
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
1409
|
readonly secrets: {
|
|
1276
1410
|
readonly all: () => readonly ["secrets"];
|
|
1277
1411
|
readonly details: () => readonly ["secrets", "detail"];
|
|
@@ -1320,8 +1454,14 @@ export declare const useCache: ({ loginRoute }?: CacheProps) => {
|
|
|
1320
1454
|
readonly items: {
|
|
1321
1455
|
readonly all: () => readonly ["items"];
|
|
1322
1456
|
readonly public: () => readonly ["items", "public"];
|
|
1457
|
+
readonly publicItem: (uid: string) => readonly ["items", "public", string];
|
|
1323
1458
|
readonly bySpace: (spaceId: string) => readonly ["items", "space", string];
|
|
1324
1459
|
readonly search: (opts: ISearchOpts) => readonly ["items", "search", ISearchOpts];
|
|
1460
|
+
readonly featured: () => readonly ["items", "featured"];
|
|
1461
|
+
readonly orbits: () => readonly ["items", "orbits"];
|
|
1462
|
+
readonly orbiters: (uid: string) => readonly ["items", "orbiters", string];
|
|
1463
|
+
readonly derivations: (uid: string) => readonly ["items", "derivations", string];
|
|
1464
|
+
readonly byOwner: (handle: string) => readonly ["items", "owner", string];
|
|
1325
1465
|
};
|
|
1326
1466
|
readonly layout: {
|
|
1327
1467
|
readonly byAccount: (accountHandle: string, spaceHandle?: string) => readonly ["layout", string, string] | readonly ["layout", string];
|
|
@@ -1362,5 +1502,8 @@ export declare const useCache: ({ loginRoute }?: CacheProps) => {
|
|
|
1362
1502
|
documentUploadLoading: boolean;
|
|
1363
1503
|
documentUploadProgress: number;
|
|
1364
1504
|
resetDocumentUpload: () => void;
|
|
1505
|
+
deckUploadLoading: boolean;
|
|
1506
|
+
deckUploadProgress: number;
|
|
1507
|
+
resetDeckUpload: () => void;
|
|
1365
1508
|
};
|
|
1366
1509
|
export default useCache;
|