@datalayer/core 1.0.2 → 1.0.11

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.
Files changed (145) hide show
  1. package/README.md +1 -1
  2. package/lib/api/constants.d.ts +6 -0
  3. package/lib/api/constants.js +6 -0
  4. package/lib/api/index.d.ts +1 -0
  5. package/lib/api/index.js +1 -0
  6. package/lib/api/otel/index.d.ts +12 -0
  7. package/lib/api/otel/index.js +16 -0
  8. package/lib/api/otel/logs.d.ts +19 -0
  9. package/lib/api/otel/logs.js +43 -0
  10. package/lib/api/otel/metrics.d.ts +31 -0
  11. package/lib/api/otel/metrics.js +65 -0
  12. package/lib/api/otel/query.d.ts +16 -0
  13. package/lib/api/otel/query.js +37 -0
  14. package/lib/api/otel/services.d.ts +39 -0
  15. package/lib/api/otel/services.js +81 -0
  16. package/lib/api/otel/traces.d.ts +24 -0
  17. package/lib/api/otel/traces.js +53 -0
  18. package/lib/api/otel/types.d.ts +112 -0
  19. package/lib/api/otel/types.js +5 -0
  20. package/lib/api/runtimes/checkpoints.d.ts +122 -0
  21. package/lib/api/runtimes/checkpoints.js +118 -0
  22. package/lib/api/runtimes/index.d.ts +1 -0
  23. package/lib/api/runtimes/index.js +1 -0
  24. package/lib/api/runtimes/runtimes.d.ts +84 -0
  25. package/lib/api/runtimes/runtimes.js +50 -0
  26. package/lib/components/auth/Login.js +1 -1
  27. package/lib/components/display/BusyDots.d.ts +9 -0
  28. package/lib/components/display/BusyDots.js +31 -0
  29. package/lib/components/display/LiveRelativeTime.d.ts +10 -0
  30. package/lib/components/display/LiveRelativeTime.js +21 -0
  31. package/lib/components/display/index.d.ts +2 -0
  32. package/lib/components/display/index.js +2 -0
  33. package/lib/components/flashes/FlashSurveys.js +1 -1
  34. package/lib/components/index.d.ts +1 -0
  35. package/lib/components/index.js +1 -0
  36. package/lib/components/navbar/SubdomainNavBar.js +1 -1
  37. package/lib/components/progress/ConsumptionBar.js +6 -7
  38. package/lib/components/progress/CreditsIndicator.js +2 -2
  39. package/lib/components/progress/consumption.d.ts +12 -0
  40. package/lib/components/progress/consumption.js +31 -0
  41. package/lib/components/progress/index.d.ts +1 -0
  42. package/lib/components/progress/index.js +1 -0
  43. package/lib/components/sparklines/Sparklines.d.ts +16 -0
  44. package/lib/components/sparklines/Sparklines.js +65 -0
  45. package/lib/components/sparklines/SparklinesLine.d.ts +8 -0
  46. package/lib/components/sparklines/SparklinesLine.js +37 -0
  47. package/lib/components/sparklines/dataProcessing.d.ts +25 -0
  48. package/lib/components/sparklines/dataProcessing.js +35 -0
  49. package/lib/components/sparklines/index.d.ts +4 -0
  50. package/lib/components/sparklines/index.js +7 -0
  51. package/lib/components/sparklines/types.d.ts +36 -0
  52. package/lib/components/sparklines/types.js +5 -0
  53. package/lib/components/storage/ContentsBrowser.js +17 -1
  54. package/lib/components/subnav/SubNav.js +1 -1
  55. package/lib/config/Configuration.d.ts +4 -0
  56. package/lib/hooks/useCache.d.ts +6 -63
  57. package/lib/hooks/useCache.js +35 -205
  58. package/lib/hooks/useProjects.d.ts +1 -1
  59. package/lib/index.d.ts +2 -0
  60. package/lib/index.js +4 -0
  61. package/lib/models/ItemDTO.js +1 -1
  62. package/lib/models/RolesPlatform.js +2 -2
  63. package/lib/models/User.d.ts +2 -0
  64. package/lib/models/User.js +4 -1
  65. package/lib/otel/client/OtelClient.d.ts +93 -0
  66. package/lib/otel/client/OtelClient.js +232 -0
  67. package/lib/otel/client/index.d.ts +2 -0
  68. package/lib/otel/client/index.js +5 -0
  69. package/lib/otel/hooks/index.d.ts +186 -0
  70. package/lib/otel/hooks/index.js +532 -0
  71. package/lib/otel/index.d.ts +34 -0
  72. package/lib/otel/index.js +23 -0
  73. package/lib/otel/types.d.ts +190 -0
  74. package/lib/otel/types.js +5 -0
  75. package/lib/otel/utils.d.ts +33 -0
  76. package/lib/otel/utils.js +181 -0
  77. package/lib/otel/views/OtelLive.d.ts +12 -0
  78. package/lib/otel/views/OtelLive.js +372 -0
  79. package/lib/otel/views/OtelLogsList.d.ts +11 -0
  80. package/lib/otel/views/OtelLogsList.js +137 -0
  81. package/lib/otel/views/OtelMetricsChart.d.ts +22 -0
  82. package/lib/otel/views/OtelMetricsChart.js +300 -0
  83. package/lib/otel/views/OtelMetricsList.d.ts +15 -0
  84. package/lib/otel/views/OtelMetricsList.js +213 -0
  85. package/lib/otel/views/OtelSearchBar.d.ts +11 -0
  86. package/lib/otel/views/OtelSearchBar.js +22 -0
  87. package/lib/otel/views/OtelSpanDetail.d.ts +11 -0
  88. package/lib/otel/views/OtelSpanDetail.js +172 -0
  89. package/lib/otel/views/OtelSpanTree.d.ts +11 -0
  90. package/lib/otel/views/OtelSpanTree.js +176 -0
  91. package/lib/otel/views/OtelSqlView.d.ts +16 -0
  92. package/lib/otel/views/OtelSqlView.js +239 -0
  93. package/lib/otel/views/OtelSystemView.d.ts +15 -0
  94. package/lib/otel/views/OtelSystemView.js +75 -0
  95. package/lib/otel/views/OtelTimeline.d.ts +11 -0
  96. package/lib/otel/views/OtelTimeline.js +101 -0
  97. package/lib/otel/views/OtelTimelineRangeSlider.d.ts +16 -0
  98. package/lib/otel/views/OtelTimelineRangeSlider.js +338 -0
  99. package/lib/otel/views/OtelTracesList.d.ts +13 -0
  100. package/lib/otel/views/OtelTracesList.js +199 -0
  101. package/lib/otel/views/index.d.ts +20 -0
  102. package/lib/otel/views/index.js +21 -0
  103. package/lib/state/storage/IAMStorage.d.ts +2 -1
  104. package/lib/state/substates/CoreState.js +7 -6
  105. package/lib/utils/Date.d.ts +6 -0
  106. package/lib/utils/Date.js +37 -0
  107. package/lib/utils/Jwt.d.ts +42 -0
  108. package/lib/utils/Jwt.js +44 -0
  109. package/lib/utils/index.d.ts +1 -0
  110. package/lib/utils/index.js +1 -0
  111. package/lib/views/iam/SignInSimple.d.ts +43 -0
  112. package/lib/views/iam/SignInSimple.js +113 -0
  113. package/lib/views/iam/index.d.ts +2 -0
  114. package/lib/views/iam/index.js +5 -0
  115. package/lib/views/iam-tokens/IAMTokenEdit.d.ts +5 -1
  116. package/lib/views/iam-tokens/IAMTokenEdit.js +54 -5
  117. package/lib/views/iam-tokens/IAMTokenNew.js +2 -2
  118. package/lib/views/iam-tokens/IAMTokens.d.ts +4 -2
  119. package/lib/views/iam-tokens/IAMTokens.js +68 -36
  120. package/lib/views/iam-tokens/Tokens.js +63 -31
  121. package/lib/views/index.d.ts +3 -1
  122. package/lib/views/index.js +3 -1
  123. package/lib/views/otel/DashboardView.d.ts +16 -0
  124. package/lib/views/otel/DashboardView.js +4 -0
  125. package/lib/views/otel/LogsView.d.ts +12 -0
  126. package/lib/views/otel/LogsView.js +4 -0
  127. package/lib/views/otel/MetricsView.d.ts +12 -0
  128. package/lib/views/otel/MetricsView.js +4 -0
  129. package/lib/views/otel/OtelHeader.d.ts +33 -0
  130. package/lib/views/otel/OtelHeader.js +105 -0
  131. package/lib/views/otel/SqlView.d.ts +9 -0
  132. package/lib/views/otel/SqlView.js +4 -0
  133. package/lib/views/otel/SystemView.d.ts +9 -0
  134. package/lib/views/otel/SystemView.js +4 -0
  135. package/lib/views/otel/TracesView.d.ts +12 -0
  136. package/lib/views/otel/TracesView.js +4 -0
  137. package/lib/views/otel/index.d.ts +16 -0
  138. package/lib/views/otel/index.js +12 -0
  139. package/lib/views/otel/simpleAuthStore.d.ts +21 -0
  140. package/lib/views/otel/simpleAuthStore.js +22 -0
  141. package/lib/views/profile/UserBadge.d.ts +20 -0
  142. package/lib/views/profile/UserBadge.js +101 -0
  143. package/lib/views/profile/index.d.ts +2 -0
  144. package/lib/views/profile/index.js +5 -0
  145. package/package.json +3 -4
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import type { SparklinesProps } from './types';
3
+ /**
4
+ * Sparklines Component
5
+ *
6
+ * A lightweight, composable sparkline chart component.
7
+ * Renders an SVG container and processes data into points for child components.
8
+ *
9
+ * @example
10
+ * ```tsx
11
+ * <Sparklines data={[1, 2, 3, 4, 5]} width={100} height={30}>
12
+ * <SparklinesLine color="#0969da" />
13
+ * </Sparklines>
14
+ * ```
15
+ */
16
+ export declare const Sparklines: React.FC<SparklinesProps>;
@@ -0,0 +1,65 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright (c) 2025-2026 Datalayer, Inc.
4
+ * Distributed under the terms of the Modified BSD License.
5
+ */
6
+ import React, { useMemo } from 'react';
7
+ import { dataToPoints } from './dataProcessing';
8
+ /**
9
+ * Sparklines Component
10
+ *
11
+ * A lightweight, composable sparkline chart component.
12
+ * Renders an SVG container and processes data into points for child components.
13
+ *
14
+ * @example
15
+ * ```tsx
16
+ * <Sparklines data={[1, 2, 3, 4, 5]} width={100} height={30}>
17
+ * <SparklinesLine color="#0969da" />
18
+ * </Sparklines>
19
+ * ```
20
+ */
21
+ export const Sparklines = ({ data = [], width = 240, height = 60, svgWidth, svgHeight, preserveAspectRatio = 'none', margin = 2, style, min, max, limit, children, }) => {
22
+ // Convert data to points
23
+ const points = useMemo(() => {
24
+ if (data.length === 0) {
25
+ return [];
26
+ }
27
+ return dataToPoints({
28
+ data,
29
+ limit,
30
+ width,
31
+ height,
32
+ margin,
33
+ max,
34
+ min,
35
+ });
36
+ }, [data, limit, width, height, margin, max, min]);
37
+ if (data.length === 0) {
38
+ return null;
39
+ }
40
+ // Build SVG props
41
+ const svgProps = {
42
+ style,
43
+ viewBox: `0 0 ${width} ${height}`,
44
+ preserveAspectRatio,
45
+ };
46
+ if (svgWidth && svgWidth > 0) {
47
+ svgProps.width = svgWidth;
48
+ }
49
+ if (svgHeight && svgHeight > 0) {
50
+ svgProps.height = svgHeight;
51
+ }
52
+ return (_jsx("svg", { ...svgProps, children: React.Children.map(children, child => {
53
+ if (React.isValidElement(child)) {
54
+ return React.cloneElement(child, {
55
+ data,
56
+ points,
57
+ width,
58
+ height,
59
+ margin,
60
+ ...child.props,
61
+ });
62
+ }
63
+ return child;
64
+ }) }));
65
+ };
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import type { SparklinesLineProps } from './types';
3
+ /**
4
+ * Sparklines Line Component
5
+ *
6
+ * Renders a line chart within a Sparklines container.
7
+ */
8
+ export declare const SparklinesLine: React.FC<SparklinesLineProps>;
@@ -0,0 +1,37 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ * Sparklines Line Component
4
+ *
5
+ * Renders a line chart within a Sparklines container.
6
+ */
7
+ export const SparklinesLine = ({ points = [], height = 60, margin = 2, color = '#0969da', style = {}, }) => {
8
+ if (!points || points.length === 0) {
9
+ return null;
10
+ }
11
+ // Convert points to polyline format
12
+ const linePoints = points.map(p => `${p.x},${p.y}`).join(' ');
13
+ // Create fill area by closing the path
14
+ const closePolyPoints = [
15
+ { x: points[points.length - 1].x, y: height - margin },
16
+ { x: margin, y: height - margin },
17
+ { x: margin, y: points[0].y },
18
+ ];
19
+ const fillPoints = points
20
+ .concat(closePolyPoints)
21
+ .map(p => `${p.x},${p.y}`)
22
+ .join(' ');
23
+ const lineStyle = {
24
+ stroke: color || style.stroke || 'slategray',
25
+ strokeWidth: style.strokeWidth || '1.5',
26
+ strokeLinejoin: 'round',
27
+ strokeLinecap: 'round',
28
+ fill: 'none',
29
+ };
30
+ const fillStyle = {
31
+ stroke: 'none',
32
+ strokeWidth: '0',
33
+ fillOpacity: style.fillOpacity || '0.1',
34
+ fill: style.fill || color || 'slategray',
35
+ };
36
+ return (_jsxs("g", { children: [_jsx("polyline", { points: fillPoints, style: fillStyle }), _jsx("polyline", { points: linePoints, style: lineStyle })] }));
37
+ };
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Get minimum value from array
3
+ */
4
+ export declare const min: (data: number[]) => number;
5
+ /**
6
+ * Get maximum value from array
7
+ */
8
+ export declare const max: (data: number[]) => number;
9
+ /**
10
+ * Convert data array to SVG points
11
+ */
12
+ export interface DataToPointsOptions {
13
+ data: number[];
14
+ limit?: number;
15
+ width?: number;
16
+ height?: number;
17
+ margin?: number;
18
+ max?: number;
19
+ min?: number;
20
+ }
21
+ export interface Point {
22
+ x: number;
23
+ y: number;
24
+ }
25
+ export declare const dataToPoints: ({ data, limit, width, height, margin, max: maxVal, min: minVal, }: DataToPointsOptions) => Point[];
@@ -0,0 +1,35 @@
1
+ /*
2
+ * Copyright (c) 2025-2026 Datalayer, Inc.
3
+ * Distributed under the terms of the Modified BSD License.
4
+ */
5
+ /**
6
+ * Get minimum value from array
7
+ */
8
+ export const min = (data) => {
9
+ return Math.min(...data);
10
+ };
11
+ /**
12
+ * Get maximum value from array
13
+ */
14
+ export const max = (data) => {
15
+ return Math.max(...data);
16
+ };
17
+ export const dataToPoints = ({ data, limit, width = 1, height = 1, margin = 0, max: maxVal, min: minVal, }) => {
18
+ let processedData = [...data];
19
+ const len = processedData.length;
20
+ // Limit data if specified
21
+ if (limit && limit < len) {
22
+ processedData = processedData.slice(len - limit);
23
+ }
24
+ // Calculate min/max if not provided
25
+ const dataMax = maxVal ?? max(processedData);
26
+ const dataMin = minVal ?? min(processedData);
27
+ // Calculate scaling factors
28
+ const vfactor = (height - margin * 2) / (dataMax - dataMin || 2);
29
+ const hfactor = (width - margin * 2) / ((limit || len) - (len > 1 ? 1 : 0));
30
+ // Map data to points
31
+ return processedData.map((d, i) => ({
32
+ x: i * hfactor + margin,
33
+ y: (dataMax === dataMin ? 1 : dataMax - d) * vfactor + margin,
34
+ }));
35
+ };
@@ -0,0 +1,4 @@
1
+ export { Sparklines } from './Sparklines';
2
+ export { SparklinesLine } from './SparklinesLine';
3
+ export type { SparklinesProps, SparklinesLineProps, Point } from './types';
4
+ export { dataToPoints, min, max } from './dataProcessing';
@@ -0,0 +1,7 @@
1
+ /*
2
+ * Copyright (c) 2025-2026 Datalayer, Inc.
3
+ * Distributed under the terms of the Modified BSD License.
4
+ */
5
+ export { Sparklines } from './Sparklines';
6
+ export { SparklinesLine } from './SparklinesLine';
7
+ export { dataToPoints, min, max } from './dataProcessing';
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Point interface for sparkline coordinates
3
+ */
4
+ export interface Point {
5
+ x: number;
6
+ y: number;
7
+ }
8
+ /**
9
+ * Sparklines component props
10
+ */
11
+ export interface SparklinesProps {
12
+ data: number[];
13
+ width?: number;
14
+ height?: number;
15
+ svgWidth?: number;
16
+ svgHeight?: number;
17
+ preserveAspectRatio?: string;
18
+ margin?: number;
19
+ style?: React.CSSProperties;
20
+ min?: number;
21
+ max?: number;
22
+ limit?: number;
23
+ children?: React.ReactNode;
24
+ }
25
+ /**
26
+ * Sparklines Line component props
27
+ */
28
+ export interface SparklinesLineProps {
29
+ data?: number[];
30
+ points?: Point[];
31
+ width?: number;
32
+ height?: number;
33
+ margin?: number;
34
+ color?: string;
35
+ style?: React.CSSProperties;
36
+ }
@@ -0,0 +1,5 @@
1
+ /*
2
+ * Copyright (c) 2025-2026 Datalayer, Inc.
3
+ * Distributed under the terms of the Modified BSD License.
4
+ */
5
+ export {};
@@ -209,7 +209,23 @@ export function ContentsBrowser(props) {
209
209
  const onSelect = useCallback((item, refresh) => {
210
210
  setSelectedItem(item.path === selectedItem?.path ? null : { ...item, refresh });
211
211
  }, [selectedItem]);
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: {
212
+ return (_jsxs(Box, { sx: {
213
+ display: 'grid',
214
+ gridTemplateAreas: `"header" "content"`,
215
+ overflow: 'hidden',
216
+ }, children: [_jsxs(Box, { sx: {
217
+ gridArea: 'header',
218
+ display: 'flex',
219
+ alignItems: 'center',
220
+ minWidth: 0,
221
+ overflow: 'hidden',
222
+ }, children: [_jsx(Box, { sx: { flex: '1 1 auto', minWidth: 0, overflow: 'hidden' }, children: title }), _jsxs(Box, { sx: {
223
+ display: 'flex',
224
+ flexDirection: 'row',
225
+ alignItems: 'center',
226
+ flexWrap: 'nowrap',
227
+ flexShrink: 0,
228
+ }, 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: {
213
229
  gridArea: 'content',
214
230
  display: 'flex',
215
231
  alignItems: 'center',
@@ -152,7 +152,7 @@ const _SubNavRoot = memo(({ id, children, className, 'data-testid': testId, full
152
152
  activeLink.props.children?.[1];
153
153
  return (_jsx("div", { className: clsx(styles['SubNav__container'], hasAnchoredNav && styles['SubNav__container--with-anchor-nav']), children: _jsx(SubNavProvider, { children: _jsx("nav", { ref: navRef, id: id, className: clsx(styles.SubNav, isOpenAtNarrow && styles['SubNav--open'], hasShadow && styles['SubNav--has-shadow'], fullWidth && styles['SubNav--full-width'], className), "data-testid": testId || testIds.root, children: _jsxs("div", { ref: rootRef, className: styles['SubNav--header-container-outer'], children: [_jsxs("div", { className: styles['SubNav__header-container'], children: [HeadingChild && (_jsx("div", { className: styles['SubNav__heading-container'], children: HeadingChild })), !isLarge && (_jsxs("button", { className: clsx(styles['SubNav__overlay-toggle'], isOpenAtNarrow && styles['SubNav__overlay-toggle--open']), "data-testid": testIds.button, onClick: isOpenAtNarrow ? closeMenuCallback : handleMenuToggle, "aria-expanded": isOpenAtNarrow ? 'true' : 'false', "aria-controls": idForLinkContainer, children: [activeLinklabel && (_jsxs("span", { className: "visually-hidden", children: ["Navigation menu. Current page:", ' '] })), _jsxs("span", { className: clsx(styles['SubNav__overlay-toggle-content'], !activeLinklabel &&
154
154
  styles['SubNav__overlay-toggle-content--end']), children: [activeLinklabel && (_jsx(Text, { as: "span", size: "200", children: activeLinklabel })), isOpenAtNarrow ? (_jsx(ChevronUpIcon, { className: styles['SubNav__overlay-toggle-icon'], size: 24 })) : (_jsx(ChevronDownIcon, { className: styles['SubNav__overlay-toggle-icon'], size: 24 }))] })] })), MaybeSubNav && MaybeSubNav] }), LinkChildren.length && (_jsxs("ul", { ref: overlayRef, id: idForLinkContainer, className: clsx(styles['SubNav__links-overlay'], isOpenAtNarrow && styles['SubNav__links-overlay--open']), "data-testid": testIds.overlay, children: [ActionChild ? (_jsx("li", { className: styles['SubNav__action-container'], children: ActionChild })) : (_jsx("li", { className: styles['SubNav__action-container'] })), LinkChildren, _jsx(ButtonGroup, { buttonSize: "small", children: _jsx(Button, { href: "#", onClick: e => {
155
- window.location.assign('https://datalayer.app');
155
+ window.location.assign('https://datalayer.ai');
156
156
  }, hasArrow: true, variant: "subtle", children: "Login" }) })] }))] }) }) }) }));
157
157
  });
158
158
  const SubNavHeading = ({ href, children, className, 'data-testid': testID, ...props }) => {
@@ -71,6 +71,10 @@ export type IDatalayerCoreConfig = {
71
71
  * MCP Servers API URL.
72
72
  */
73
73
  mcpserversRunUrl: string;
74
+ /**
75
+ * OTEL (OpenTelemetry) API URL.
76
+ */
77
+ otelRunUrl: string;
74
78
  /**
75
79
  * Growth API URL.
76
80
  */
@@ -212,12 +212,6 @@ export declare const queryKeys: {
212
212
  readonly bySpace: (spaceId: string) => readonly ["items", "space", string];
213
213
  readonly search: (opts: ISearchOpts) => readonly ["items", "search", ISearchOpts];
214
214
  };
215
- readonly agentRuntimes: {
216
- readonly all: () => readonly ["agentRuntimes"];
217
- readonly lists: () => readonly ["agentRuntimes", "list"];
218
- readonly details: () => readonly ["agentRuntimes", "detail"];
219
- readonly detail: (podName: string) => readonly ["agentRuntimes", "detail", string];
220
- };
221
215
  readonly layout: {
222
216
  readonly byAccount: (accountHandle: string, spaceHandle?: string) => readonly ["layout", string, string] | readonly ["layout", string];
223
217
  };
@@ -298,6 +292,11 @@ export declare const useCache: ({ loginRoute }?: CacheProps) => {
298
292
  password: string;
299
293
  passwordConfirm: string;
300
294
  }, unknown>;
295
+ useCreateUrlForPasswordChange: () => import("@tanstack/react-query").UseMutationResult<any, Error, {
296
+ handle: string;
297
+ password: string;
298
+ passwordConfirm: string;
299
+ }, unknown>;
301
300
  useConfirmPasswordWithToken: () => import("@tanstack/react-query").UseMutationResult<any, Error, {
302
301
  userHandle: string;
303
302
  token: string;
@@ -480,57 +479,6 @@ export declare const useCache: ({ loginRoute }?: CacheProps) => {
480
479
  spaceHandle?: string;
481
480
  }, unknown>;
482
481
  useExportSpace: () => import("@tanstack/react-query").UseMutationResult<any, Error, string, unknown>;
483
- useAgentRuntime: (podName: string | undefined) => import("@tanstack/react-query").UseQueryResult<{
484
- status: "running" | "paused" | "starting" | "terminated" | "archived";
485
- name: string;
486
- id: string;
487
- url: string | undefined;
488
- messageCount: number;
489
- agent_spec_id: string | undefined;
490
- pod_name: string;
491
- environment_name: string;
492
- environment_title?: string;
493
- given_name: string;
494
- phase?: string;
495
- type: string;
496
- started_at?: string;
497
- expired_at?: string;
498
- burning_rate?: number;
499
- ingress?: string;
500
- token?: string;
501
- agentSpec?: any;
502
- }, Error>;
503
- useAgentRuntimes: () => import("@tanstack/react-query").UseQueryResult<{
504
- status: "running" | "paused" | "starting" | "terminated" | "archived";
505
- name: string;
506
- id: string;
507
- url: string | undefined;
508
- messageCount: number;
509
- agent_spec_id: string | undefined;
510
- pod_name: string;
511
- environment_name: string;
512
- environment_title?: string;
513
- given_name: string;
514
- phase?: string;
515
- type: string;
516
- started_at?: string;
517
- expired_at?: string;
518
- burning_rate?: number;
519
- ingress?: string;
520
- token?: string;
521
- agentSpec?: any;
522
- }[], Error>;
523
- useCreateAgentRuntime: () => import("@tanstack/react-query").UseMutationResult<any, Error, {
524
- environmentName?: string;
525
- givenName?: string;
526
- creditsLimit?: number;
527
- type?: string;
528
- editorVariant?: string;
529
- enableCodemode?: boolean;
530
- agentSpecId?: string;
531
- }, unknown>;
532
- useDeleteAgentRuntime: () => import("@tanstack/react-query").UseMutationResult<any, Error, string, unknown>;
533
- useRefreshAgentRuntimes: () => () => void;
534
482
  useCourse: (courseId: string) => import("@tanstack/react-query").UseQueryResult<ICourse | undefined, Error>;
535
483
  useUpdateCourse: () => import("@tanstack/react-query").UseMutationResult<any, Error, {
536
484
  courseId: string;
@@ -733,6 +681,7 @@ export declare const useCache: ({ loginRoute }?: CacheProps) => {
733
681
  useTokens: () => import("@tanstack/react-query").UseQueryResult<any, Error>;
734
682
  useCreateToken: () => import("@tanstack/react-query").UseMutationResult<any, Error, Omit<IIAMToken, "id" | "value">, unknown>;
735
683
  useUpdateToken: () => import("@tanstack/react-query").UseMutationResult<any, Error, IIAMToken, unknown>;
684
+ useDeleteToken: () => import("@tanstack/react-query").UseMutationResult<any, Error, string, unknown>;
736
685
  useInvite: (token: string) => import("@tanstack/react-query").UseQueryResult<import("..").IInvite | undefined, Error>;
737
686
  useInvitesByUser: (accountId: string) => import("@tanstack/react-query").UseQueryResult<any, Error>;
738
687
  usePutInvite: () => import("@tanstack/react-query").UseMutationResult<any, Error, string, unknown>;
@@ -1014,12 +963,6 @@ export declare const useCache: ({ loginRoute }?: CacheProps) => {
1014
963
  readonly bySpace: (spaceId: string) => readonly ["items", "space", string];
1015
964
  readonly search: (opts: ISearchOpts) => readonly ["items", "search", ISearchOpts];
1016
965
  };
1017
- readonly agentRuntimes: {
1018
- readonly all: () => readonly ["agentRuntimes"];
1019
- readonly lists: () => readonly ["agentRuntimes", "list"];
1020
- readonly details: () => readonly ["agentRuntimes", "detail"];
1021
- readonly detail: (podName: string) => readonly ["agentRuntimes", "detail", string];
1022
- };
1023
966
  readonly layout: {
1024
967
  readonly byAccount: (accountHandle: string, spaceHandle?: string) => readonly ["layout", string, string] | readonly ["layout", string];
1025
968
  };