@datalayer/core 0.0.13 → 0.0.14

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 (75) hide show
  1. package/lib/api/DatalayerApi.js +17 -5
  2. package/lib/api/iam/authentication.d.ts +1 -1
  3. package/lib/api/iam/healthz.d.ts +1 -1
  4. package/lib/api/iam/index.d.ts +1 -1
  5. package/lib/api/iam/index.js +1 -1
  6. package/lib/api/iam/profile.d.ts +1 -1
  7. package/lib/api/iam/usage.d.ts +1 -39
  8. package/lib/api/index.d.ts +0 -1
  9. package/lib/api/index.js +0 -2
  10. package/lib/api/runtimes/environments.d.ts +2 -2
  11. package/lib/api/runtimes/healthz.d.ts +1 -1
  12. package/lib/api/runtimes/runtimes.d.ts +4 -4
  13. package/lib/api/runtimes/snapshots.d.ts +4 -4
  14. package/lib/api/spacer/documents.d.ts +1 -1
  15. package/lib/api/spacer/healthz.d.ts +1 -1
  16. package/lib/api/spacer/items.d.ts +1 -1
  17. package/lib/api/spacer/lexicals.d.ts +1 -1
  18. package/lib/api/spacer/notebooks.d.ts +1 -1
  19. package/lib/api/spacer/spaces.d.ts +1 -1
  20. package/lib/api/spacer/users.d.ts +1 -1
  21. package/lib/client/base.d.ts +2 -2
  22. package/lib/client/index.d.ts +44 -44
  23. package/lib/client/index.js +10 -10
  24. package/lib/client/mixins/IAMMixin.d.ts +7 -7
  25. package/lib/client/mixins/IAMMixin.js +5 -5
  26. package/lib/client/mixins/RuntimesMixin.d.ts +13 -13
  27. package/lib/client/mixins/RuntimesMixin.js +11 -11
  28. package/lib/client/mixins/SpacerMixin.d.ts +14 -14
  29. package/lib/client/mixins/SpacerMixin.js +12 -12
  30. package/lib/client/utils/spacerUtils.d.ts +4 -4
  31. package/lib/client/utils/spacerUtils.js +4 -4
  32. package/lib/components/runtimes/RuntimeLauncherDialog.js +2 -2
  33. package/lib/components/runtimes/RuntimePickerCell.js +1 -1
  34. package/lib/components/runtimes/RuntimePickerNotebook.js +1 -1
  35. package/lib/components/runtimes/RuntimeTransfer.d.ts +1 -1
  36. package/lib/index.d.ts +1 -2
  37. package/lib/index.js +1 -2
  38. package/lib/{client/models/Credits.d.ts → models/CreditsDTO.d.ts} +38 -5
  39. package/lib/{client/models/Credits.js → models/CreditsDTO.js} +7 -2
  40. package/lib/models/Environment.d.ts +1 -1
  41. package/lib/{client/models/Environment.d.ts → models/EnvironmentDTO.d.ts} +55 -3
  42. package/lib/{client/models/Environment.js → models/EnvironmentDTO.js} +2 -2
  43. package/lib/{client/models → models}/HealthCheck.js +1 -1
  44. package/lib/{api/types/iam.d.ts → models/IAM.d.ts} +1 -87
  45. package/lib/{client/models/Item.d.ts → models/ItemDTO.d.ts} +6 -1
  46. package/lib/{client/models/Item.js → models/ItemDTO.js} +2 -7
  47. package/lib/{client/models/Lexical.d.ts → models/LexicalDTO.d.ts} +79 -7
  48. package/lib/{client/models/Lexical.js → models/LexicalDTO.js} +10 -5
  49. package/lib/{client/models/Notebook.d.ts → models/NotebookDTO.d.ts} +16 -7
  50. package/lib/{client/models/Notebook.js → models/NotebookDTO.js} +5 -5
  51. package/lib/models/Profile.d.ts +65 -0
  52. package/lib/{client/models/Runtime.d.ts → models/RuntimeDTO.d.ts} +74 -5
  53. package/lib/{client/models/Runtime.js → models/RuntimeDTO.js} +5 -5
  54. package/lib/{client/models/Snapshot.d.ts → models/RuntimeSnapshotDTO.d.ts} +89 -8
  55. package/lib/{client/models/Snapshot.js → models/RuntimeSnapshotDTO.js} +4 -4
  56. package/lib/models/SpaceDTO.d.ts +280 -0
  57. package/lib/{client/models/Space.js → models/SpaceDTO.js} +17 -12
  58. package/lib/{client/models/User.d.ts → models/UserDTO.d.ts} +25 -3
  59. package/lib/{client/models/User.js → models/UserDTO.js} +3 -2
  60. package/lib/models/index.d.ts +45 -4
  61. package/lib/models/index.js +45 -4
  62. package/package.json +2 -1
  63. package/lib/api/types/index.d.ts +0 -34
  64. package/lib/api/types/index.js +0 -38
  65. package/lib/api/types/runtimes.d.ts +0 -205
  66. package/lib/api/types/runtimes.js +0 -5
  67. package/lib/api/types/spacer.d.ts +0 -243
  68. package/lib/api/types/spacer.js +0 -5
  69. package/lib/client/models/Space.d.ts +0 -135
  70. package/lib/client/models/index.d.ts +0 -26
  71. package/lib/client/models/index.js +0 -25
  72. /package/lib/{api/types/common.d.ts → models/Common.d.ts} +0 -0
  73. /package/lib/{api/types/common.js → models/Common.js} +0 -0
  74. /package/lib/{client/models → models}/HealthCheck.d.ts +0 -0
  75. /package/lib/{api/types/iam.js → models/IAM.js} +0 -0
@@ -1,38 +0,0 @@
1
- /*
2
- * Copyright (c) 2023-2025 Datalayer, Inc.
3
- * Distributed under the terms of the Modified BSD License.
4
- */
5
- /**
6
- * TypeScript type definitions for all Datalayer API services.
7
- *
8
- * This module consolidates all type definitions used by the SDK, providing
9
- * comprehensive TypeScript support for requests, responses, and data models
10
- * across all Datalayer services.
11
- *
12
- * These types follow the exact backend API format (snake_case naming) to
13
- * ensure compatibility. For frontend business logic types with camelCase
14
- * naming, see the models in `/src/models/`.
15
- *
16
- * @example
17
- * ```typescript
18
- * import type {
19
- * Runtime,
20
- * Environment,
21
- * Space,
22
- * Notebook,
23
- * User,
24
- * LoginRequest
25
- * } from '@datalayer/core/api/types';
26
- *
27
- * // Use types for function parameters and return values
28
- * function createRuntime(config: CreateRuntimeRequest): Promise<Runtime> {
29
- * // Implementation
30
- * }
31
- * ```
32
- *
33
- * @module types
34
- */
35
- export * from './common';
36
- export * from './runtimes';
37
- export * from './iam';
38
- export * from './spacer';
@@ -1,205 +0,0 @@
1
- /**
2
- * Represents a computing environment available in the Datalayer platform
3
- * @interface Environment
4
- */
5
- export interface Environment {
6
- /** Human-readable title for the environment */
7
- title: string;
8
- /** Detailed description of the environment */
9
- description: string;
10
- /** Docker image used for this environment */
11
- dockerImage: string;
12
- /** Example usage or description */
13
- example?: string;
14
- /** Code snippets for this environment */
15
- snippets?: any[];
16
- /** Content mounts for this environment */
17
- contents?: any[];
18
- /** Kernel configuration */
19
- kernel?: {
20
- /** Template for kernel naming */
21
- givenNameTemplate?: string;
22
- };
23
- /** Programming language (e.g., "python", "r") */
24
- language: string;
25
- /** Resource ranges configuration */
26
- resourcesRanges?: any;
27
- /** Credits consumed per hour when running */
28
- burning_rate: number;
29
- /** Simple resource specification */
30
- resources?: any;
31
- /** Name identifier for the environment */
32
- name: string;
33
- /** Docker registry for the image */
34
- dockerRegistry?: string;
35
- /** Icon or avatar URL for the environment */
36
- icon?: string;
37
- /** Whether the environment is enabled */
38
- enabled?: boolean;
39
- /** Tags associated with the environment */
40
- tags?: string[];
41
- }
42
- /**
43
- * Represents a running instance of a computing environment
44
- * @interface Runtime
45
- */
46
- export interface Runtime {
47
- /** Kubernetes pod name for the runtime instance */
48
- pod_name: string;
49
- /** Unique identifier for the runtime */
50
- uid: string;
51
- /** Name of the environment this runtime is based on */
52
- environment_name: string;
53
- /** Title of the environment for display */
54
- environment_title: string;
55
- /** Type of runtime - notebook, terminal, or job */
56
- type: string;
57
- /** Credits consumed per second */
58
- burning_rate: number;
59
- /** User-friendly name for the runtime */
60
- given_name: string;
61
- /** Authentication token for accessing the runtime */
62
- token: string;
63
- /** Ingress URL for accessing the runtime */
64
- ingress: string;
65
- /** ISO 8601 timestamp of when the runtime started */
66
- started_at: string;
67
- /** ISO 8601 timestamp of when the runtime will expire */
68
- expired_at: string;
69
- }
70
- /**
71
- * Request payload for creating a new runtime
72
- * @interface CreateRuntimeRequest
73
- */
74
- export interface CreateRuntimeRequest {
75
- /** Name of the environment to use */
76
- environment_name: string;
77
- /** Type of runtime (e.g., 'notebook', 'terminal', 'job') */
78
- type?: 'notebook' | 'terminal' | 'job';
79
- /** Optional given name for the runtime */
80
- given_name?: string;
81
- /** Maximum credits this runtime can consume */
82
- credits_limit?: number;
83
- /** Optional capabilities for the runtime */
84
- capabilities?: string[];
85
- /** Optional source to create runtime from (e.g., snapshot ID) */
86
- from?: string;
87
- }
88
- /**
89
- * Represents a snapshot of a runtime's state and files
90
- * @interface RuntimeSnapshot
91
- */
92
- export interface RuntimeSnapshot {
93
- /** Unique identifier for the snapshot */
94
- uid: string;
95
- /** Name of the snapshot */
96
- name: string;
97
- /** Optional description of the snapshot */
98
- description?: string;
99
- /** Name of the environment used by the runtime */
100
- environment: string;
101
- /** Metadata associated with the snapshot */
102
- metadata?: {
103
- version?: string;
104
- language_info?: any;
105
- [key: string]: any;
106
- };
107
- /** Size of the snapshot in bytes */
108
- size?: number;
109
- /** Format of the snapshot */
110
- format?: string;
111
- /** Format version of the snapshot */
112
- format_version?: string;
113
- /** Status of the snapshot */
114
- status?: string;
115
- /** ISO 8601 timestamp when the snapshot was last updated */
116
- updated_at: string;
117
- /** List of files included in the snapshot */
118
- files?: any[];
119
- }
120
- /**
121
- * Request payload for creating a runtime snapshot
122
- * @interface CreateRuntimeSnapshotRequest
123
- */
124
- export interface CreateRuntimeSnapshotRequest {
125
- /** Pod name of the runtime to snapshot */
126
- pod_name: string;
127
- /** Name for the snapshot */
128
- name: string;
129
- /** Description of the snapshot */
130
- description: string;
131
- /** Whether to stop the runtime after creating snapshot */
132
- stop: boolean;
133
- }
134
- /**
135
- * Response for getting a specific runtime snapshot
136
- * @interface SnapshotGetResponse
137
- */
138
- export interface SnapshotGetResponse {
139
- /** Indicates if the request was successful */
140
- success: boolean;
141
- /** Response message */
142
- message: string;
143
- /** The snapshot details */
144
- snapshot: RuntimeSnapshot;
145
- }
146
- /**
147
- * Response for creating a runtime snapshot
148
- * @interface SnapshotCreateResponse
149
- */
150
- export interface SnapshotCreateResponse {
151
- /** Indicates if the request was successful */
152
- success: boolean;
153
- /** Response message */
154
- message: string;
155
- /** The created snapshot details */
156
- snapshot: RuntimeSnapshot;
157
- }
158
- /**
159
- * Response from listing available environments
160
- * @interface EnvironmentsListResponse
161
- */
162
- export interface EnvironmentsListResponse {
163
- /** Whether the request was successful */
164
- success: boolean;
165
- /** Response message from the server */
166
- message: string;
167
- /** Array of available environments */
168
- environments: Environment[];
169
- }
170
- /**
171
- * Response from creating a new runtime
172
- * @interface RuntimeCreateResponse
173
- */
174
- export interface CreateRuntimeResponse {
175
- /** Whether the request was successful */
176
- success: boolean;
177
- /** Response message from the server */
178
- message: string;
179
- /** The created runtime instance */
180
- runtime: Runtime;
181
- }
182
- /**
183
- * Response from listing runtimes
184
- * @interface RuntimesListResponse
185
- */
186
- export interface RuntimesListResponse {
187
- /** Whether the request was successful */
188
- success: boolean;
189
- /** Response message from the server */
190
- message: string;
191
- /** Array of runtime instances */
192
- runtimes: Runtime[];
193
- }
194
- /**
195
- * Response from listing runtime snapshots
196
- * @interface RuntimeSnapshotsListResponse
197
- */
198
- export interface SnapshotsListResponse {
199
- /** Whether the request was successful */
200
- success: boolean;
201
- /** Response message from the server */
202
- message: string;
203
- /** Array of runtime snapshots */
204
- snapshots: RuntimeSnapshot[];
205
- }
@@ -1,5 +0,0 @@
1
- /*
2
- * Copyright (c) 2023-2025 Datalayer, Inc.
3
- * Distributed under the terms of the Modified BSD License.
4
- */
5
- export {};
@@ -1,243 +0,0 @@
1
- /**
2
- * Represents a workspace or project space in Datalayer
3
- * @interface Space
4
- */
5
- export interface Space {
6
- uid: string;
7
- name_t: string;
8
- handle_s: string;
9
- variant_s: string;
10
- description_t: string;
11
- tags_ss?: string[];
12
- members?: any[];
13
- items?: any[];
14
- }
15
- /**
16
- * Represents a Jupyter notebook document
17
- * @interface Notebook
18
- */
19
- export interface Notebook {
20
- id: string;
21
- uid: string;
22
- name_t: string;
23
- description_t: string;
24
- type_s: string;
25
- notebook_extension_s: string;
26
- s3_path_s: string;
27
- s3_url_s: string;
28
- cdn_url_s: string;
29
- }
30
- /**
31
- * Request payload for creating a new space
32
- * @interface CreateSpaceRequest
33
- */
34
- export interface CreateSpaceRequest {
35
- name: string;
36
- description: string;
37
- variant: string;
38
- spaceHandle: string;
39
- organizationId: string;
40
- seedSpaceId: string;
41
- public: boolean;
42
- }
43
- /**
44
- * Response from getting a collaboration session ID
45
- * @interface CollaborationSessionResponse
46
- */
47
- export interface CollaborationSessionResponse {
48
- success: boolean;
49
- sessionId?: string;
50
- error?: string;
51
- }
52
- /**
53
- * Response from creating a space
54
- * @interface CreateSpaceResponse
55
- */
56
- export interface CreateSpaceResponse {
57
- success: boolean;
58
- message: string;
59
- space?: Space;
60
- }
61
- /**
62
- * Request payload for creating a new notebook (multipart/form-data)
63
- * @interface CreateNotebookRequest
64
- */
65
- export interface CreateNotebookRequest {
66
- spaceId: string;
67
- notebookType: string;
68
- name: string;
69
- description: string;
70
- file?: File | Blob;
71
- }
72
- /**
73
- * Response from creating a notebook
74
- * @interface CreateNotebookResponse
75
- */
76
- export interface CreateNotebookResponse {
77
- success: boolean;
78
- message: string;
79
- notebook?: Notebook;
80
- }
81
- /**
82
- * Response from getting a notebook
83
- * @interface GetNotebookResponse
84
- */
85
- export interface GetNotebookResponse {
86
- success: boolean;
87
- message: string;
88
- notebook?: Notebook;
89
- }
90
- /**
91
- * Request payload for creating a notebook
92
- * @interface CreateNotebookRequest
93
- */
94
- export interface CreateNotebookRequest {
95
- spaceId: string;
96
- notebookType: string;
97
- name: string;
98
- description: string;
99
- file?: File | Blob;
100
- }
101
- /**
102
- * Request payload for updating a notebook
103
- * @interface UpdateNotebookRequest
104
- */
105
- export interface UpdateNotebookRequest {
106
- name?: string;
107
- description?: string;
108
- }
109
- /**
110
- * Response from updating a notebook
111
- * @interface UpdateNotebookResponse
112
- */
113
- export interface UpdateNotebookResponse {
114
- success: boolean;
115
- message: string;
116
- notebook?: Notebook;
117
- }
118
- /**
119
- * Represents an item within a space
120
- * @interface SpaceItem
121
- */
122
- export interface SpaceItem {
123
- id: string;
124
- type_s: 'notebook' | 'lexical';
125
- space_id: string;
126
- item_id: string;
127
- name: string;
128
- created_at: string;
129
- updated_at?: string;
130
- }
131
- /**
132
- * Represents a Lexical document (rich text editor)
133
- * @interface Lexical
134
- */
135
- export interface Lexical {
136
- id: string;
137
- uid: string;
138
- name?: string;
139
- name_t?: string;
140
- content?: any;
141
- space_id?: string;
142
- owner_id?: string;
143
- creator_uid?: string;
144
- creator_handle_s?: string;
145
- created_at?: string;
146
- creation_ts_dt?: string;
147
- updated_at?: string;
148
- last_update_ts_dt?: string;
149
- cdn_url_s: string;
150
- type_s?: string;
151
- public_b?: boolean;
152
- description_t?: string;
153
- document_name_s?: string;
154
- document_extension_s: string;
155
- document_format_s?: string;
156
- content_length_i?: number;
157
- content_type_s?: string;
158
- mime_type_s?: string;
159
- s3_path_s?: string;
160
- s3_url_s?: string;
161
- model_s?: string;
162
- }
163
- /**
164
- * Request payload for creating a Lexical document
165
- * @interface CreateLexicalRequest
166
- */
167
- export interface CreateLexicalRequest {
168
- spaceId: string;
169
- documentType: string;
170
- name: string;
171
- description: string;
172
- file?: File | Blob;
173
- }
174
- /**
175
- * Response from creating a Lexical document
176
- * @interface CreateLexicalResponse
177
- */
178
- export interface CreateLexicalResponse {
179
- success: boolean;
180
- message: string;
181
- document?: Lexical;
182
- }
183
- /**
184
- * Response from getting a Lexical document
185
- * @interface GetLexicalResponse
186
- */
187
- export interface GetLexicalResponse {
188
- success: boolean;
189
- message: string;
190
- document?: Lexical;
191
- }
192
- /**
193
- * Request payload for updating a Lexical document
194
- * @interface UpdateLexicalRequest
195
- */
196
- export interface UpdateLexicalRequest {
197
- name?: string;
198
- description?: string;
199
- }
200
- /**
201
- * Response from updating a Lexical document
202
- * @interface UpdateLexicalResponse
203
- */
204
- export interface UpdateLexicalResponse {
205
- success: boolean;
206
- message: string;
207
- document: Lexical;
208
- }
209
- /**
210
- * Response from getting space items
211
- * @interface GetSpaceItemsResponse
212
- */
213
- export interface GetSpaceItemsResponse {
214
- success: boolean;
215
- message: string;
216
- items: SpaceItem[];
217
- }
218
- /**
219
- * Response from deleting a space item
220
- * @interface DeleteSpaceItemResponse
221
- */
222
- export interface DeleteSpaceItemResponse {
223
- success: boolean;
224
- message: string;
225
- }
226
- /**
227
- * Response from getting a single space item
228
- * @interface GetSpaceItemResponse
229
- */
230
- export interface GetSpaceItemResponse {
231
- success: boolean;
232
- message: string;
233
- item?: any;
234
- }
235
- /**
236
- * Response from getting spaces for a user
237
- * @interface SpacesForUserResponse
238
- */
239
- export interface SpacesForUserResponse {
240
- success: boolean;
241
- message: string;
242
- spaces: Space[];
243
- }
@@ -1,5 +0,0 @@
1
- /*
2
- * Copyright (c) 2023-2025 Datalayer, Inc.
3
- * Distributed under the terms of the Modified BSD License.
4
- */
5
- export {};
@@ -1,135 +0,0 @@
1
- /**
2
- * Space domain model for the Datalayer SDK.
3
- *
4
- * @module client/models/Space
5
- */
6
- import type { Space as SpaceData } from '../../api/types/spacer';
7
- import type { DatalayerClient } from '../index';
8
- import { Notebook, type NotebookJSON } from './Notebook';
9
- import { Lexical, type LexicalJSON } from './Lexical';
10
- /**
11
- * Stable public interface for Space data.
12
- * This is the contract that SDK consumers can rely on.
13
- * The raw API may change, but this interface remains stable.
14
- */
15
- export interface SpaceJSON {
16
- /** ulid for the space */
17
- uid: string;
18
- /** Name of the space */
19
- name: string;
20
- /** Handle for the space */
21
- handle: string;
22
- /** Variant of the space */
23
- variant: string;
24
- /** Description of the space */
25
- description: string;
26
- /** Items contained in the space (as JSON) */
27
- items: Array<NotebookJSON | LexicalJSON>;
28
- }
29
- /**
30
- * Space domain model that wraps API responses with convenient methods.
31
- * Provides workspace management with data refresh and content creation operations.
32
- *
33
- * @example
34
- * ```typescript
35
- * const space = spaces[0];
36
- * const items = await space.getItems();
37
- * const notebook = await space.createNotebook({ name: 'Analysis' });
38
- * ```
39
- */
40
- export declare class Space {
41
- protected _data: SpaceData;
42
- private _sdk;
43
- private _items;
44
- private _deleted;
45
- /**
46
- * Create a Space instance.
47
- *
48
- * @param data - Space data from API
49
- * @param sdk - SDK instance
50
- */
51
- constructor(data: SpaceData, sdk: DatalayerClient);
52
- /**
53
- * Check if this space has been deleted and throw error if so.
54
- * @throws Error if deleted
55
- */
56
- private _checkDeleted;
57
- /**
58
- * Refresh space data from the API by fetching user's spaces.
59
- */
60
- refresh(): Promise<void>;
61
- /** Unique identifier for the space. */
62
- get uid(): string;
63
- /** URL-friendly handle for the space. */
64
- get handle(): string;
65
- /** Space variant type. */
66
- get variant(): string;
67
- /**
68
- * The name of the space.
69
- */
70
- get name(): string;
71
- /**
72
- * The description of the space.
73
- */
74
- get description(): string;
75
- /**
76
- * Helper method to create items in this space.
77
- *
78
- * @param itemType - Type of item to create
79
- * @param data - Creation configuration
80
- * @returns Created model instance
81
- * @internal
82
- */
83
- private _createItem;
84
- /**
85
- * Get all items in this space as model instances.
86
- *
87
- * @returns Array of Notebook and Lexical model instances
88
- */
89
- getItems(): Promise<(Notebook | Lexical)[]>;
90
- /**
91
- * Create a new notebook in this space.
92
- *
93
- * @param data - Notebook creation configuration
94
- * @returns Created Notebook instance
95
- */
96
- createNotebook(data: {
97
- name: string;
98
- description: string;
99
- file?: File | Blob;
100
- }): Promise<Notebook>;
101
- /**
102
- * Create a new lexical document in this space.
103
- *
104
- * @param data - Lexical creation configuration
105
- * @returns Created Lexical instance
106
- */
107
- createLexical(data: {
108
- name: string;
109
- description: string;
110
- file?: File | Blob;
111
- }): Promise<Lexical>;
112
- /**
113
- * Get raw space data object.
114
- * Returns cached data without refreshing.
115
- *
116
- * @returns Raw space data object
117
- */
118
- /**
119
- * Get space data in camelCase format.
120
- * Returns only the core fields that consumers need.
121
- * This provides a stable interface regardless of API changes.
122
- *
123
- * @returns Core space data with camelCase properties
124
- */
125
- toJSON(): SpaceJSON;
126
- /**
127
- * Get the raw space data exactly as received from the API.
128
- * This preserves the original snake_case naming from the API response.
129
- *
130
- * @returns Raw space data from API
131
- */
132
- rawData(): SpaceData;
133
- /** String representation of the space. */
134
- toString(): string;
135
- }
@@ -1,26 +0,0 @@
1
- /**
2
- * Domain model classes for the Datalayer SDK.
3
- * These models wrap API responses with convenient methods and state management.
4
- *
5
- * @module client/models
6
- *
7
- * @example
8
- * ```typescript
9
- * const runtime = await sdk.createRuntime(config);
10
- * const snapshot = await runtime.createSnapshot('checkpoint');
11
- * ```
12
- */
13
- export { Environment } from './Environment';
14
- export { Item } from './Item';
15
- export { Runtime } from './Runtime';
16
- export { Snapshot } from './Snapshot';
17
- export { Notebook } from './Notebook';
18
- export { Lexical } from './Lexical';
19
- export { Space } from './Space';
20
- export { Credits } from './Credits';
21
- export type { EnvironmentJSON } from './Environment';
22
- export type { RuntimeJSON } from './Runtime';
23
- export type { SnapshotJSON } from './Snapshot';
24
- export type { SpaceJSON } from './Space';
25
- export type { NotebookJSON } from './Notebook';
26
- export type { LexicalJSON } from './Lexical';
@@ -1,25 +0,0 @@
1
- /*
2
- * Copyright (c) 2023-2025 Datalayer, Inc.
3
- * Distributed under the terms of the Modified BSD License.
4
- */
5
- /**
6
- * Domain model classes for the Datalayer SDK.
7
- * These models wrap API responses with convenient methods and state management.
8
- *
9
- * @module client/models
10
- *
11
- * @example
12
- * ```typescript
13
- * const runtime = await sdk.createRuntime(config);
14
- * const snapshot = await runtime.createSnapshot('checkpoint');
15
- * ```
16
- */
17
- // Export domain model classes
18
- export { Environment } from './Environment';
19
- export { Item } from './Item';
20
- export { Runtime } from './Runtime';
21
- export { Snapshot } from './Snapshot';
22
- export { Notebook } from './Notebook';
23
- export { Lexical } from './Lexical';
24
- export { Space } from './Space';
25
- export { Credits } from './Credits';
File without changes
File without changes
File without changes