@datalayer/core 0.0.13 → 0.0.15
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/DatalayerApi.js +17 -5
- package/lib/api/iam/authentication.d.ts +1 -1
- package/lib/api/iam/healthz.d.ts +1 -1
- package/lib/api/iam/index.d.ts +1 -1
- package/lib/api/iam/index.js +1 -1
- package/lib/api/iam/profile.d.ts +1 -1
- package/lib/api/iam/usage.d.ts +1 -39
- package/lib/api/index.d.ts +0 -1
- package/lib/api/index.js +0 -2
- package/lib/api/runtimes/environments.d.ts +2 -2
- package/lib/api/runtimes/healthz.d.ts +1 -1
- package/lib/api/runtimes/runtimes.d.ts +4 -4
- package/lib/api/runtimes/snapshots.d.ts +4 -4
- package/lib/api/spacer/documents.d.ts +1 -1
- package/lib/api/spacer/healthz.d.ts +1 -1
- package/lib/api/spacer/items.d.ts +1 -1
- package/lib/api/spacer/lexicals.d.ts +1 -1
- package/lib/api/spacer/notebooks.d.ts +1 -1
- package/lib/api/spacer/spaces.d.ts +1 -1
- package/lib/api/spacer/users.d.ts +1 -1
- package/lib/client/base.d.ts +2 -2
- package/lib/client/index.d.ts +44 -44
- package/lib/client/index.js +10 -10
- package/lib/client/mixins/IAMMixin.d.ts +7 -7
- package/lib/client/mixins/IAMMixin.js +5 -5
- package/lib/client/mixins/RuntimesMixin.d.ts +13 -13
- package/lib/client/mixins/RuntimesMixin.js +11 -11
- package/lib/client/mixins/SpacerMixin.d.ts +14 -14
- package/lib/client/mixins/SpacerMixin.js +12 -12
- package/lib/client/utils/spacerUtils.d.ts +4 -4
- package/lib/client/utils/spacerUtils.js +4 -4
- package/lib/components/checkout/StripeCheckout.js +19 -23
- package/lib/components/context/OrganizationSelect.js +12 -15
- package/lib/components/context/SpaceSelect.js +24 -25
- package/lib/components/runtimes/RuntimeLauncherDialog.js +2 -2
- package/lib/components/runtimes/RuntimePickerCell.js +1 -1
- package/lib/components/runtimes/RuntimePickerNotebook.js +1 -1
- package/lib/components/runtimes/RuntimeTransfer.d.ts +1 -1
- package/lib/hooks/useAuthorization.js +4 -2
- package/lib/hooks/useCache.d.ts +932 -285
- package/lib/hooks/useCache.js +5736 -2767
- package/lib/hooks/useCache0.d.ts +312 -0
- package/lib/hooks/useCache0.js +3189 -0
- package/lib/hooks/useIAM.js +18 -17
- package/lib/index.d.ts +1 -2
- package/lib/index.js +1 -2
- package/lib/{client/models/Credits.d.ts → models/CreditsDTO.d.ts} +38 -5
- package/lib/{client/models/Credits.js → models/CreditsDTO.js} +7 -2
- package/lib/models/Environment.d.ts +1 -1
- package/lib/{client/models/Environment.d.ts → models/EnvironmentDTO.d.ts} +55 -3
- package/lib/{client/models/Environment.js → models/EnvironmentDTO.js} +2 -2
- package/lib/{client/models → models}/HealthCheck.js +1 -1
- package/lib/{api/types/iam.d.ts → models/IAM.d.ts} +1 -87
- package/lib/{client/models/Item.d.ts → models/ItemDTO.d.ts} +6 -1
- package/lib/{client/models/Item.js → models/ItemDTO.js} +2 -7
- package/lib/{client/models/Lexical.d.ts → models/LexicalDTO.d.ts} +79 -7
- package/lib/{client/models/Lexical.js → models/LexicalDTO.js} +10 -5
- package/lib/{client/models/Notebook.d.ts → models/NotebookDTO.d.ts} +16 -7
- package/lib/{client/models/Notebook.js → models/NotebookDTO.js} +5 -5
- package/lib/models/Profile.d.ts +65 -0
- package/lib/models/Runtime.d.ts +49 -49
- package/lib/{client/models/Runtime.d.ts → models/RuntimeDTO.d.ts} +74 -5
- package/lib/{client/models/Runtime.js → models/RuntimeDTO.js} +5 -5
- package/lib/{client/models/Snapshot.d.ts → models/RuntimeSnapshotDTO.d.ts} +89 -8
- package/lib/{client/models/Snapshot.js → models/RuntimeSnapshotDTO.js} +4 -4
- package/lib/models/SpaceDTO.d.ts +280 -0
- package/lib/{client/models/Space.js → models/SpaceDTO.js} +17 -12
- package/lib/{client/models/User.d.ts → models/UserDTO.d.ts} +25 -3
- package/lib/{client/models/User.js → models/UserDTO.js} +3 -2
- package/lib/models/index.d.ts +45 -4
- package/lib/models/index.js +45 -4
- package/package.json +2 -1
- package/lib/api/types/index.d.ts +0 -34
- package/lib/api/types/index.js +0 -38
- package/lib/api/types/runtimes.d.ts +0 -205
- package/lib/api/types/runtimes.js +0 -5
- package/lib/api/types/spacer.d.ts +0 -243
- package/lib/api/types/spacer.js +0 -5
- package/lib/client/models/Space.d.ts +0 -135
- package/lib/client/models/index.d.ts +0 -26
- package/lib/client/models/index.js +0 -25
- /package/lib/{api/types/common.d.ts → models/Common.d.ts} +0 -0
- /package/lib/{api/types/common.js → models/Common.js} +0 -0
- /package/lib/{client/models → models}/HealthCheck.d.ts +0 -0
- /package/lib/{api/types/iam.js → models/IAM.js} +0 -0
|
@@ -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
|
-
}
|
package/lib/api/types/spacer.js
DELETED
|
@@ -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
|
|
File without changes
|