@datalayer/core 0.0.27 → 1.0.2
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/lib/api/index.d.ts +1 -1
- package/lib/api/index.js +1 -1
- package/lib/api/spacer/index.d.ts +1 -2
- package/lib/api/spacer/index.js +1 -2
- package/lib/client/utils/spacerUtils.d.ts +2 -2
- package/lib/client/utils/spacerUtils.js +4 -4
- package/lib/components/avatars/BoringAvatar.d.ts +3 -1
- package/lib/components/avatars/BoringAvatar.js +15 -14
- package/lib/components/avatars/BoringAvatar.stories.d.ts +2 -1
- package/lib/components/storage/ContentsBrowser.d.ts +6 -0
- package/lib/components/storage/ContentsBrowser.js +9 -10
- package/lib/hooks/index.d.ts +2 -0
- package/lib/hooks/index.js +2 -0
- package/lib/hooks/useCache.d.ts +11 -32
- package/lib/hooks/useCache.js +54 -226
- package/lib/hooks/useProjectStore.d.ts +58 -0
- package/lib/hooks/useProjectStore.js +64 -0
- package/lib/hooks/useProjects.d.ts +590 -0
- package/lib/hooks/useProjects.js +166 -0
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -2
- package/lib/models/CreditsDTO.d.ts +1 -1
- package/lib/models/CreditsDTO.js +1 -1
- package/lib/models/Datasource.d.ts +4 -4
- package/lib/models/Datasource.js +7 -7
- package/lib/models/EnvironmentDTO.d.ts +3 -3
- package/lib/models/EnvironmentDTO.js +3 -3
- package/lib/models/HealthCheck.d.ts +2 -2
- package/lib/models/HealthCheck.js +2 -2
- package/lib/models/ItemDTO.d.ts +3 -3
- package/lib/models/ItemDTO.js +10 -10
- package/lib/models/LexicalDTO.d.ts +3 -3
- package/lib/models/LexicalDTO.js +4 -4
- package/lib/models/NotebookDTO.d.ts +3 -3
- package/lib/models/NotebookDTO.js +6 -6
- package/lib/models/Page.d.ts +2 -0
- package/lib/models/RuntimeDTO.d.ts +4 -4
- package/lib/models/RuntimeDTO.js +9 -9
- package/lib/models/RuntimeSnapshotDTO.d.ts +3 -3
- package/lib/models/RuntimeSnapshotDTO.js +7 -7
- package/lib/models/Secret.d.ts +4 -4
- package/lib/models/Secret.js +7 -7
- package/lib/models/Space.js +3 -0
- package/lib/models/SpaceDTO.d.ts +3 -3
- package/lib/models/SpaceDTO.js +14 -14
- package/lib/models/UserDTO.d.ts +2 -2
- package/lib/models/UserDTO.js +2 -2
- package/lib/views/iam-tokens/Tokens.js +1 -1
- package/lib/views/secrets/Secrets.js +1 -1
- package/package.json +1 -1
- package/lib/api/spacer/agentSpaces.d.ts +0 -193
- package/lib/api/spacer/agentSpaces.js +0 -127
- package/lib/theme/DatalayerTheme.d.ts +0 -52
- package/lib/theme/DatalayerTheme.js +0 -228
- package/lib/theme/DatalayerThemeProvider.d.ts +0 -29
- package/lib/theme/DatalayerThemeProvider.js +0 -54
- package/lib/theme/Palette.d.ts +0 -4
- package/lib/theme/Palette.js +0 -10
- package/lib/theme/index.d.ts +0 -4
- package/lib/theme/index.js +0 -8
- package/lib/theme/useSystemColorMode.d.ts +0 -9
- package/lib/theme/useSystemColorMode.js +0 -26
package/lib/api/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Minimal API layer for the Datalayer platform providing base HTTP client and functional API methods.
|
|
3
3
|
*
|
|
4
4
|
* This module contains the low-level API functionality. For high-level object-oriented
|
|
5
|
-
* Client classes, use @datalayer/core/
|
|
5
|
+
* Client classes, use @datalayer/core/client instead.
|
|
6
6
|
*
|
|
7
7
|
* @module @datalayer/core/api
|
|
8
8
|
*/
|
package/lib/api/index.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Minimal API layer for the Datalayer platform providing base HTTP client and functional API methods.
|
|
7
7
|
*
|
|
8
8
|
* This module contains the low-level API functionality. For high-level object-oriented
|
|
9
|
-
* Client classes, use @datalayer/core/
|
|
9
|
+
* Client classes, use @datalayer/core/client instead.
|
|
10
10
|
*
|
|
11
11
|
* @module @datalayer/core/api
|
|
12
12
|
*/
|
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
* Spacer API exports.
|
|
3
3
|
*
|
|
4
4
|
* Provides organized access to spacer functionality including
|
|
5
|
-
* spaces, notebooks, cells, lexical documents, and agent
|
|
5
|
+
* spaces, notebooks, cells, lexical documents, and agent runtimes.
|
|
6
6
|
*
|
|
7
7
|
* @module api/spacer
|
|
8
8
|
*/
|
|
9
|
-
export * as agentSpaces from './agentSpaces';
|
|
10
9
|
export * as documents from './documents';
|
|
11
10
|
export * as healthz from './healthz';
|
|
12
11
|
export * as items from './items';
|
package/lib/api/spacer/index.js
CHANGED
|
@@ -6,11 +6,10 @@
|
|
|
6
6
|
* Spacer API exports.
|
|
7
7
|
*
|
|
8
8
|
* Provides organized access to spacer functionality including
|
|
9
|
-
* spaces, notebooks, cells, lexical documents, and agent
|
|
9
|
+
* spaces, notebooks, cells, lexical documents, and agent runtimes.
|
|
10
10
|
*
|
|
11
11
|
* @module api/spacer
|
|
12
12
|
*/
|
|
13
|
-
export * as agentSpaces from './agentSpaces';
|
|
14
13
|
export * as documents from './documents';
|
|
15
14
|
export * as healthz from './healthz';
|
|
16
15
|
export * as items from './items';
|
|
@@ -12,7 +12,7 @@ import { LexicalDTO } from '../../models/LexicalDTO';
|
|
|
12
12
|
* to avoid code duplication.
|
|
13
13
|
*
|
|
14
14
|
* @param response - Raw API response containing space items
|
|
15
|
-
* @param
|
|
15
|
+
* @param client - Client instance to pass to model constructors
|
|
16
16
|
* @returns Array of Notebook and Lexical model instances
|
|
17
17
|
*/
|
|
18
|
-
export declare function convertSpaceItemsToModels(items: GetSpaceItemsResponse['items'],
|
|
18
|
+
export declare function convertSpaceItemsToModels(items: GetSpaceItemsResponse['items'], client: DatalayerClient): (NotebookDTO | LexicalDTO)[];
|
|
@@ -11,20 +11,20 @@ import { ItemTypes } from '../constants';
|
|
|
11
11
|
* to avoid code duplication.
|
|
12
12
|
*
|
|
13
13
|
* @param response - Raw API response containing space items
|
|
14
|
-
* @param
|
|
14
|
+
* @param client - Client instance to pass to model constructors
|
|
15
15
|
* @returns Array of Notebook and Lexical model instances
|
|
16
16
|
*/
|
|
17
|
-
export function convertSpaceItemsToModels(items,
|
|
17
|
+
export function convertSpaceItemsToModels(items, client) {
|
|
18
18
|
const modelItems = [];
|
|
19
19
|
for (const item of items) {
|
|
20
20
|
// Check various possible type fields
|
|
21
21
|
const itemType = item.type_s;
|
|
22
22
|
// Only include notebooks and lexicals
|
|
23
23
|
if (itemType === ItemTypes.NOTEBOOK) {
|
|
24
|
-
modelItems.push(new NotebookDTO(item,
|
|
24
|
+
modelItems.push(new NotebookDTO(item, client));
|
|
25
25
|
}
|
|
26
26
|
else if (itemType === ItemTypes.LEXICAL) {
|
|
27
|
-
modelItems.push(new LexicalDTO(item,
|
|
27
|
+
modelItems.push(new LexicalDTO(item, client));
|
|
28
28
|
}
|
|
29
29
|
// Skip everything else (exercises, cells, etc.)
|
|
30
30
|
}
|
|
@@ -5,6 +5,8 @@ type IBoringAvatarProps = {
|
|
|
5
5
|
size?: number;
|
|
6
6
|
square?: boolean;
|
|
7
7
|
style?: object;
|
|
8
|
+
/** Custom color palette passed to boring-avatars. When omitted the default Datalayer palette is used. */
|
|
9
|
+
colors?: string[];
|
|
8
10
|
};
|
|
9
|
-
export declare const BoringAvatar: ({ displayName, variant, size, square, style, }: IBoringAvatarProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const BoringAvatar: ({ displayName, variant, size, square, style, colors, }: IBoringAvatarProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
12
|
export default BoringAvatar;
|
|
@@ -7,23 +7,24 @@ import BoringAvatars from 'boring-avatars';
|
|
|
7
7
|
// export const getRandomBoringAvatarVariant = () => VARIANTS[Math.floor(Math.random() * VARIANTS.length)] as VariantType;
|
|
8
8
|
const getRandomBoringAvatarVariant = () => 'bauhaus';
|
|
9
9
|
const RANDOM_BORING_AVATOR_VARIANT = getRandomBoringAvatarVariant();
|
|
10
|
-
|
|
10
|
+
const DEFAULT_COLORS = [
|
|
11
|
+
'#000000',
|
|
12
|
+
'#146A7C',
|
|
13
|
+
'#16A085',
|
|
14
|
+
'#1ABC9C',
|
|
15
|
+
'#2ECC71',
|
|
16
|
+
'#59595C',
|
|
17
|
+
'#92A1C6',
|
|
18
|
+
'#C20D90',
|
|
19
|
+
'#C271B4',
|
|
20
|
+
'#F0AB3D',
|
|
21
|
+
];
|
|
22
|
+
export const BoringAvatar = ({ displayName = '', variant, size = 40, square = false, style, colors, }) => {
|
|
11
23
|
const resolvedVariant = variant ?? RANDOM_BORING_AVATOR_VARIANT;
|
|
12
24
|
const safeName = String(displayName ?? '');
|
|
25
|
+
const resolvedColors = colors ?? DEFAULT_COLORS;
|
|
13
26
|
try {
|
|
14
|
-
return (_jsx("span", { style: { ...(style || {}) }, children: _jsx(BoringAvatars, { size: size, name: safeName, variant: resolvedVariant, square: square, colors:
|
|
15
|
-
'#000000',
|
|
16
|
-
'#146A7C',
|
|
17
|
-
'#16A085',
|
|
18
|
-
'#1ABC9C',
|
|
19
|
-
'#2ECC71',
|
|
20
|
-
'#59595C',
|
|
21
|
-
'#92A1C6',
|
|
22
|
-
'#C20D90',
|
|
23
|
-
'#C271B4',
|
|
24
|
-
'#F0AB3D',
|
|
25
|
-
// '#FFFFFF',
|
|
26
|
-
] }) }));
|
|
27
|
+
return (_jsx("span", { style: { ...(style || {}) }, children: _jsx(BoringAvatars, { size: size, name: safeName, variant: resolvedVariant, square: square, colors: resolvedColors }) }));
|
|
27
28
|
}
|
|
28
29
|
catch (error) {
|
|
29
30
|
console.error('BoringAvatar error:', error);
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: ({ displayName, variant, size, square, style, }: {
|
|
4
|
+
component: ({ displayName, variant, size, square, style, colors, }: {
|
|
5
5
|
displayName?: string;
|
|
6
6
|
variant?: "marble" | "beam" | "pixel" | "sunset" | "ring" | "bauhaus" | undefined;
|
|
7
7
|
size?: number;
|
|
8
8
|
square?: boolean;
|
|
9
9
|
style?: object;
|
|
10
|
+
colors?: string[];
|
|
10
11
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
12
|
tags: string[];
|
|
12
13
|
parameters: {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
1
2
|
import { DocumentRegistry } from '@jupyterlab/docregistry';
|
|
2
3
|
import { Contents } from '@jupyterlab/services';
|
|
3
4
|
/**
|
|
@@ -24,6 +25,11 @@ export interface IContentsBrowserProps {
|
|
|
24
25
|
* Document registry.
|
|
25
26
|
*/
|
|
26
27
|
documentRegistry?: DocumentRegistry;
|
|
28
|
+
/**
|
|
29
|
+
* Optional title for the browser heading.
|
|
30
|
+
* Defaults to "Contents Browser".
|
|
31
|
+
*/
|
|
32
|
+
title?: ReactNode;
|
|
27
33
|
}
|
|
28
34
|
/**
|
|
29
35
|
* Storage browser component.
|
|
@@ -3,7 +3,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
3
3
|
* Copyright (c) 2023-2025 Datalayer, Inc.
|
|
4
4
|
* Distributed under the terms of the Modified BSD License.
|
|
5
5
|
*/
|
|
6
|
-
import { useCallback, useEffect, useState } from 'react';
|
|
6
|
+
import { useCallback, useEffect, useState, } from 'react';
|
|
7
7
|
import { PathExt } from '@jupyterlab/coreutils';
|
|
8
8
|
import { PromiseDelegate } from '@lumino/coreutils';
|
|
9
9
|
import { ActionList, ActionMenu, Heading, IconButton, Spinner, TreeView, } from '@primer/react';
|
|
@@ -26,7 +26,11 @@ export const CHUNK_SIZE = 1024 * 1024;
|
|
|
26
26
|
* Storage browser component.
|
|
27
27
|
*/
|
|
28
28
|
export function ContentsBrowser(props) {
|
|
29
|
-
const { contents, localContents, documentRegistry
|
|
29
|
+
const { contents, localContents, documentRegistry, title = (_jsx(Heading, { as: "h4", sx: {
|
|
30
|
+
fontSize: 'var(--text-title-size-small)',
|
|
31
|
+
lineHeight: 'var(--text-title-lineHeight-medium)',
|
|
32
|
+
fontWeight: 'var(--text-title-weight-medium)',
|
|
33
|
+
}, children: "Contents Browser" })), } = props;
|
|
30
34
|
const isMounted = useIsMounted();
|
|
31
35
|
const { trackAsyncTask } = useToast();
|
|
32
36
|
const [children, setChildren] = useState(null);
|
|
@@ -205,12 +209,7 @@ export function ContentsBrowser(props) {
|
|
|
205
209
|
const onSelect = useCallback((item, refresh) => {
|
|
206
210
|
setSelectedItem(item.path === selectedItem?.path ? null : { ...item, refresh });
|
|
207
211
|
}, [selectedItem]);
|
|
208
|
-
return (_jsxs(Box, { sx: { display: 'grid', gridTemplateAreas: `"header" "content"` }, children: [_jsxs(Box, { sx: { gridArea: 'header', display: 'flex', alignItems: 'center' }, children: [_jsx(
|
|
209
|
-
fontSize: 'var(--text-title-size-small)',
|
|
210
|
-
lineHeight: 'var(--text-title-lineHeight-medium)',
|
|
211
|
-
fontWeight: 'var(--text-title-weight-medium)',
|
|
212
|
-
flex: '1 1 auto',
|
|
213
|
-
}, children: "Contents Browser" }), _jsxs(Box, { children: [_jsx(IconButton, { variant: "invisible", "aria-label": 'Refresh contents browser.', title: 'Refresh contents browser.', icon: CounterClockWiseIcon, onClick: refresh }), _jsx(UploadIconButton, { label: 'Upload a file', multiple: true, upload: upload })] })] }), isLoading ? (_jsx(Box, { sx: {
|
|
212
|
+
return (_jsxs(Box, { sx: { display: 'grid', gridTemplateAreas: `"header" "content"` }, children: [_jsxs(Box, { sx: { gridArea: 'header', display: 'flex', alignItems: 'center' }, children: [_jsx(Box, { sx: { flex: '1 1 auto' }, children: title }), _jsxs(Box, { children: [_jsx(IconButton, { variant: "invisible", "aria-label": 'Refresh contents browser.', title: 'Refresh contents browser.', icon: CounterClockWiseIcon, onClick: refresh }), _jsx(UploadIconButton, { label: 'Upload a file', multiple: true, upload: upload })] })] }), isLoading ? (_jsx(Box, { sx: {
|
|
214
213
|
gridArea: 'content',
|
|
215
214
|
display: 'flex',
|
|
216
215
|
alignItems: 'center',
|
|
@@ -221,9 +220,9 @@ export function ContentsBrowser(props) {
|
|
|
221
220
|
return child.type === 'directory' ? (_jsx(DirectoryItem, { item: child, contents: contents, current: selectedItem, documentRegistry: documentRegistry, onContextMenu: onContextMenu, onSelect: onSelect }, child.name)) : (_jsx(TreeItem, { item: child, current: selectedItem?.path === child.path, onSelect: item => {
|
|
222
221
|
onSelect(item, refresh);
|
|
223
222
|
}, onContextMenu: onContextMenu }, child.name));
|
|
224
|
-
}) }), _jsx(ActionMenu, { anchorRef: contextMenuAnchor ?? undefined, open: contextMenuAnchor?.current !== null, onOpenChange: () => {
|
|
223
|
+
}) }), contextMenuAnchor !== null && (_jsx(ActionMenu, { anchorRef: contextMenuAnchor ?? undefined, open: contextMenuAnchor?.current !== null, onOpenChange: () => {
|
|
225
224
|
setContextMenuAnchor(null);
|
|
226
|
-
}, children: _jsx(ActionMenu.Overlay, { children: _jsxs(ActionList, { children: [_jsx(ActionList.Item, { title: "Delete the active item.", onSelect: onSelectDelete, children: "Delete\u2026" }), localContents && (_jsx(ActionList.Item, { title: "Copy the active item to the local drive.", onSelect: onSelectCopyToLocal, children: "Copy to local drive\u2026" }))] }) }) }), openDeleteConfirmation && (_jsx(Dialog, { title: _jsx("span", { style: { color: 'var(--fgColor-default)' }, children: "Confirm deletion" }), onClose: () => {
|
|
225
|
+
}, children: _jsx(ActionMenu.Overlay, { children: _jsxs(ActionList, { children: [_jsx(ActionList.Item, { title: "Delete the active item.", onSelect: onSelectDelete, children: "Delete\u2026" }), localContents && (_jsx(ActionList.Item, { title: "Copy the active item to the local drive.", onSelect: onSelectCopyToLocal, children: "Copy to local drive\u2026" }))] }) }) })), openDeleteConfirmation && (_jsx(Dialog, { title: _jsx("span", { style: { color: 'var(--fgColor-default)' }, children: "Confirm deletion" }), onClose: () => {
|
|
227
226
|
setOpenDeleteConfirmation(false);
|
|
228
227
|
}, footerButtons: [
|
|
229
228
|
{
|
package/lib/hooks/index.d.ts
CHANGED
|
@@ -23,5 +23,7 @@ export * from './useScreencapture';
|
|
|
23
23
|
export * from './useToast';
|
|
24
24
|
export * from './useUpload';
|
|
25
25
|
export * from './useUser';
|
|
26
|
+
export * from './useProjects';
|
|
27
|
+
export * from './useProjectStore';
|
|
26
28
|
export * from './useVisibilityObserver';
|
|
27
29
|
export * from './useWindowSize';
|
package/lib/hooks/index.js
CHANGED
|
@@ -28,5 +28,7 @@ export * from './useScreencapture';
|
|
|
28
28
|
export * from './useToast';
|
|
29
29
|
export * from './useUpload';
|
|
30
30
|
export * from './useUser';
|
|
31
|
+
export * from './useProjects';
|
|
32
|
+
export * from './useProjectStore';
|
|
31
33
|
export * from './useVisibilityObserver';
|
|
32
34
|
export * from './useWindowSize';
|
package/lib/hooks/useCache.d.ts
CHANGED
|
@@ -36,7 +36,6 @@
|
|
|
36
36
|
*/
|
|
37
37
|
import { UseQueryOptions, UseMutationOptions } from '@tanstack/react-query';
|
|
38
38
|
import { IAnyOrganization, IAnySpace, IAssignment, ICell, IContact, ICourse, IDataset, IDatasource, IDocument, IEnvironment, IExercise, IIAMToken, ILesson, INotebook, IOrganization, IPage, ISchool, ISecret, ITeam, IUser, IUserOnboarding, IUserSettings } from '../models';
|
|
39
|
-
import type { AgentSpaceData, CreateAgentSpaceRequest, UpdateAgentSpaceRequest } from '../api/spacer/agentSpaces';
|
|
40
39
|
export type CacheProps = {
|
|
41
40
|
loginRoute?: string;
|
|
42
41
|
};
|
|
@@ -213,13 +212,6 @@ export declare const queryKeys: {
|
|
|
213
212
|
readonly bySpace: (spaceId: string) => readonly ["items", "space", string];
|
|
214
213
|
readonly search: (opts: ISearchOpts) => readonly ["items", "search", ISearchOpts];
|
|
215
214
|
};
|
|
216
|
-
readonly agentSpaces: {
|
|
217
|
-
readonly all: () => readonly ["agentSpaces"];
|
|
218
|
-
readonly lists: () => readonly ["agentSpaces", "list"];
|
|
219
|
-
readonly details: () => readonly ["agentSpaces", "detail"];
|
|
220
|
-
readonly detail: (id: string) => readonly ["agentSpaces", "detail", string];
|
|
221
|
-
readonly public: () => readonly ["agentSpaces", "public"];
|
|
222
|
-
};
|
|
223
215
|
readonly agentRuntimes: {
|
|
224
216
|
readonly all: () => readonly ["agentRuntimes"];
|
|
225
217
|
readonly lists: () => readonly ["agentRuntimes", "list"];
|
|
@@ -451,7 +443,8 @@ export declare const useCache: ({ loginRoute }?: CacheProps) => {
|
|
|
451
443
|
space: Partial<IAnySpace>;
|
|
452
444
|
organization?: IAnyOrganization;
|
|
453
445
|
}, unknown>;
|
|
454
|
-
useUpdateSpace: () => import("@tanstack/react-query").UseMutationResult<any, Error, Partial<IAnySpace>, unknown>;
|
|
446
|
+
useUpdateSpace: () => import("@tanstack/react-query").UseMutationResult<any, Error, Partial<IAnySpace> & Record<string, unknown>, unknown>;
|
|
447
|
+
useDeleteSpace: () => import("@tanstack/react-query").UseMutationResult<any, Error, string, unknown>;
|
|
455
448
|
useUpdateOrganizationSpace: () => import("@tanstack/react-query").UseMutationResult<any, Error, {
|
|
456
449
|
organizationId: string;
|
|
457
450
|
spaceId: string;
|
|
@@ -487,26 +480,13 @@ export declare const useCache: ({ loginRoute }?: CacheProps) => {
|
|
|
487
480
|
spaceHandle?: string;
|
|
488
481
|
}, unknown>;
|
|
489
482
|
useExportSpace: () => import("@tanstack/react-query").UseMutationResult<any, Error, string, unknown>;
|
|
490
|
-
useAgentSpace: (uid: string | undefined) => import("@tanstack/react-query").UseQueryResult<AgentSpaceData, Error>;
|
|
491
|
-
useAgentSpaces: () => import("@tanstack/react-query").UseQueryResult<AgentSpaceData[], Error>;
|
|
492
|
-
usePublicAgentSpaces: () => import("@tanstack/react-query").UseQueryResult<AgentSpaceData[], Error>;
|
|
493
|
-
useCreateAgentSpace: () => import("@tanstack/react-query").UseMutationResult<any, Error, CreateAgentSpaceRequest, unknown>;
|
|
494
|
-
useUpdateAgentSpace: () => import("@tanstack/react-query").UseMutationResult<any, Error, {
|
|
495
|
-
uid: string;
|
|
496
|
-
data: UpdateAgentSpaceRequest;
|
|
497
|
-
}, unknown>;
|
|
498
|
-
useDeleteAgentSpace: () => import("@tanstack/react-query").UseMutationResult<any, Error, string, unknown>;
|
|
499
|
-
useMakeAgentSpacePublic: () => import("@tanstack/react-query").UseMutationResult<any, Error, string, unknown>;
|
|
500
|
-
useMakeAgentSpacePrivate: () => import("@tanstack/react-query").UseMutationResult<any, Error, string, unknown>;
|
|
501
|
-
useRefreshAgentSpace: () => (uid: string) => void;
|
|
502
|
-
useRefreshAgentSpaces: () => () => void;
|
|
503
|
-
useRefreshPublicAgentSpaces: () => () => void;
|
|
504
483
|
useAgentRuntime: (podName: string | undefined) => import("@tanstack/react-query").UseQueryResult<{
|
|
505
484
|
status: "running" | "paused" | "starting" | "terminated" | "archived";
|
|
506
485
|
name: string;
|
|
507
486
|
id: string;
|
|
508
487
|
url: string | undefined;
|
|
509
488
|
messageCount: number;
|
|
489
|
+
agent_spec_id: string | undefined;
|
|
510
490
|
pod_name: string;
|
|
511
491
|
environment_name: string;
|
|
512
492
|
environment_title?: string;
|
|
@@ -518,7 +498,7 @@ export declare const useCache: ({ loginRoute }?: CacheProps) => {
|
|
|
518
498
|
burning_rate?: number;
|
|
519
499
|
ingress?: string;
|
|
520
500
|
token?: string;
|
|
521
|
-
agentSpec?:
|
|
501
|
+
agentSpec?: any;
|
|
522
502
|
}, Error>;
|
|
523
503
|
useAgentRuntimes: () => import("@tanstack/react-query").UseQueryResult<{
|
|
524
504
|
status: "running" | "paused" | "starting" | "terminated" | "archived";
|
|
@@ -526,6 +506,7 @@ export declare const useCache: ({ loginRoute }?: CacheProps) => {
|
|
|
526
506
|
id: string;
|
|
527
507
|
url: string | undefined;
|
|
528
508
|
messageCount: number;
|
|
509
|
+
agent_spec_id: string | undefined;
|
|
529
510
|
pod_name: string;
|
|
530
511
|
environment_name: string;
|
|
531
512
|
environment_title?: string;
|
|
@@ -537,7 +518,7 @@ export declare const useCache: ({ loginRoute }?: CacheProps) => {
|
|
|
537
518
|
burning_rate?: number;
|
|
538
519
|
ingress?: string;
|
|
539
520
|
token?: string;
|
|
540
|
-
agentSpec?:
|
|
521
|
+
agentSpec?: any;
|
|
541
522
|
}[], Error>;
|
|
542
523
|
useCreateAgentRuntime: () => import("@tanstack/react-query").UseMutationResult<any, Error, {
|
|
543
524
|
environmentName?: string;
|
|
@@ -546,6 +527,7 @@ export declare const useCache: ({ loginRoute }?: CacheProps) => {
|
|
|
546
527
|
type?: string;
|
|
547
528
|
editorVariant?: string;
|
|
548
529
|
enableCodemode?: boolean;
|
|
530
|
+
agentSpecId?: string;
|
|
549
531
|
}, unknown>;
|
|
550
532
|
useDeleteAgentRuntime: () => import("@tanstack/react-query").UseMutationResult<any, Error, string, unknown>;
|
|
551
533
|
useRefreshAgentRuntimes: () => () => void;
|
|
@@ -712,6 +694,10 @@ export declare const useCache: ({ loginRoute }?: CacheProps) => {
|
|
|
712
694
|
useRefreshSpaceAssignments: (options?: UseMutationOptions<unknown, Error, string>) => import("@tanstack/react-query").UseMutationResult<unknown, Error, string, unknown>;
|
|
713
695
|
useDeleteItem: () => import("@tanstack/react-query").UseMutationResult<any, Error, string, unknown>;
|
|
714
696
|
useSpaceItems: (spaceId: string) => import("@tanstack/react-query").UseQueryResult<any[], Error>;
|
|
697
|
+
useSpaceDefaultItems: (spaceId: string | undefined) => import("@tanstack/react-query").UseQueryResult<{
|
|
698
|
+
defaultNotebookUid: string | null;
|
|
699
|
+
defaultDocumentUid: string | null;
|
|
700
|
+
}, Error>;
|
|
715
701
|
useMakeItemPublic: () => import("@tanstack/react-query").UseMutationResult<any, Error, string, unknown>;
|
|
716
702
|
useMakeItemPrivate: () => import("@tanstack/react-query").UseMutationResult<any, Error, string, unknown>;
|
|
717
703
|
useSearchPublicItems: () => import("@tanstack/react-query").UseMutationResult<any, Error, {
|
|
@@ -1028,13 +1014,6 @@ export declare const useCache: ({ loginRoute }?: CacheProps) => {
|
|
|
1028
1014
|
readonly bySpace: (spaceId: string) => readonly ["items", "space", string];
|
|
1029
1015
|
readonly search: (opts: ISearchOpts) => readonly ["items", "search", ISearchOpts];
|
|
1030
1016
|
};
|
|
1031
|
-
readonly agentSpaces: {
|
|
1032
|
-
readonly all: () => readonly ["agentSpaces"];
|
|
1033
|
-
readonly lists: () => readonly ["agentSpaces", "list"];
|
|
1034
|
-
readonly details: () => readonly ["agentSpaces", "detail"];
|
|
1035
|
-
readonly detail: (id: string) => readonly ["agentSpaces", "detail", string];
|
|
1036
|
-
readonly public: () => readonly ["agentSpaces", "public"];
|
|
1037
|
-
};
|
|
1038
1017
|
readonly agentRuntimes: {
|
|
1039
1018
|
readonly all: () => readonly ["agentRuntimes"];
|
|
1040
1019
|
readonly lists: () => readonly ["agentRuntimes", "list"];
|