@elaraai/e3-api-client 0.0.2-beta.9 → 1.0.1
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/LICENSE.md +4 -0
- package/README.md +51 -15
- package/dist/src/datasets.d.ts +73 -4
- package/dist/src/datasets.d.ts.map +1 -1
- package/dist/src/datasets.js +200 -20
- package/dist/src/datasets.js.map +1 -1
- package/dist/src/executions.d.ts +74 -11
- package/dist/src/executions.d.ts.map +1 -1
- package/dist/src/executions.js +184 -36
- package/dist/src/executions.js.map +1 -1
- package/dist/src/http.d.ts +72 -12
- package/dist/src/http.d.ts.map +1 -1
- package/dist/src/http.js +168 -34
- package/dist/src/http.js.map +1 -1
- package/dist/src/index.d.ts +9 -6
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +11 -5
- package/dist/src/index.js.map +1 -1
- package/dist/src/packages.d.ts +32 -27
- package/dist/src/packages.d.ts.map +1 -1
- package/dist/src/packages.js +175 -39
- package/dist/src/packages.js.map +1 -1
- package/dist/src/platform.d.ts +571 -1343
- package/dist/src/platform.d.ts.map +1 -1
- package/dist/src/platform.js +123 -915
- package/dist/src/platform.js.map +1 -1
- package/dist/src/repos.d.ts +16 -0
- package/dist/src/repos.d.ts.map +1 -0
- package/dist/src/repos.js +19 -0
- package/dist/src/repos.js.map +1 -0
- package/dist/src/repository.d.ts +67 -5
- package/dist/src/repository.d.ts.map +1 -1
- package/dist/src/repository.js +94 -10
- package/dist/src/repository.js.map +1 -1
- package/dist/src/tasks.d.ts +25 -3
- package/dist/src/tasks.d.ts.map +1 -1
- package/dist/src/tasks.js +29 -8
- package/dist/src/tasks.js.map +1 -1
- package/dist/src/types.d.ts +776 -1252
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/types.js +62 -453
- package/dist/src/types.js.map +1 -1
- package/dist/src/util.d.ts +21 -0
- package/dist/src/util.d.ts.map +1 -0
- package/dist/src/util.js +26 -0
- package/dist/src/util.js.map +1 -0
- package/dist/src/workspaces.d.ts +51 -9
- package/dist/src/workspaces.d.ts.map +1 -1
- package/dist/src/workspaces.js +87 -26
- package/dist/src/workspaces.js.map +1 -1
- package/package.json +15 -15
package/dist/src/platform.d.ts
CHANGED
|
@@ -4,1479 +4,707 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { StringType, IntegerType, BlobType, NullType, ArrayType, StructType } from '@elaraai/east';
|
|
6
6
|
import type { PlatformFunction } from '@elaraai/east/internal';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
*
|
|
13
|
-
* This is a platform function for the East language, enabling e3 API operations
|
|
14
|
-
* in East programs running on Node.js.
|
|
15
|
-
*
|
|
16
|
-
* @param url - Base URL of the e3 API server
|
|
17
|
-
* @returns Repository status including object, package, and workspace counts
|
|
18
|
-
*
|
|
19
|
-
* @throws {EastError} When request fails:
|
|
20
|
-
* - Network error
|
|
21
|
-
* - Server unavailable
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* ```ts
|
|
25
|
-
* const getStatus = East.function([StringType], RepositoryStatusType, ($, url) => {
|
|
26
|
-
* return Platform.repoStatus(url);
|
|
27
|
-
* });
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
export declare const platform_repo_status: import("@elaraai/east").AsyncPlatformDefinition<[StringType], StructType<{
|
|
31
|
-
path: StringType;
|
|
32
|
-
objectCount: IntegerType;
|
|
33
|
-
packageCount: IntegerType;
|
|
34
|
-
workspaceCount: IntegerType;
|
|
7
|
+
export declare const platform_repo_status: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType], StructType<{
|
|
8
|
+
readonly path: StringType;
|
|
9
|
+
readonly objectCount: IntegerType;
|
|
10
|
+
readonly packageCount: IntegerType;
|
|
11
|
+
readonly workspaceCount: IntegerType;
|
|
35
12
|
}>>;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
* @param url - Base URL of the e3 API server
|
|
46
|
-
* @param options - GC options (dryRun to preview, minAge for object age filter)
|
|
47
|
-
* @returns GC result with counts and freed bytes
|
|
48
|
-
*
|
|
49
|
-
* @throws {EastError} When request fails:
|
|
50
|
-
* - Network error
|
|
51
|
-
* - Server unavailable
|
|
52
|
-
*
|
|
53
|
-
* @example
|
|
54
|
-
* ```ts
|
|
55
|
-
* const runGc = East.function([StringType, GcRequestType], GcResultType, ($, url, options) => {
|
|
56
|
-
* return Platform.repoGc(url, options);
|
|
57
|
-
* });
|
|
58
|
-
* ```
|
|
59
|
-
*/
|
|
60
|
-
export declare const platform_repo_gc: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StructType<{
|
|
61
|
-
dryRun: import("@elaraai/east").BooleanType;
|
|
62
|
-
minAge: import("@elaraai/east").OptionType<IntegerType>;
|
|
63
|
-
}>], StructType<{
|
|
64
|
-
deletedObjects: IntegerType;
|
|
65
|
-
deletedPartials: IntegerType;
|
|
66
|
-
retainedObjects: IntegerType;
|
|
67
|
-
skippedYoung: IntegerType;
|
|
68
|
-
bytesFreed: IntegerType;
|
|
13
|
+
export declare const platform_repo_gc: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StructType<{
|
|
14
|
+
readonly dryRun: import("@elaraai/east").BooleanType;
|
|
15
|
+
readonly minAge: import("@elaraai/east").OptionType<IntegerType>;
|
|
16
|
+
}>, StringType], StructType<{
|
|
17
|
+
readonly deletedObjects: IntegerType;
|
|
18
|
+
readonly deletedPartials: IntegerType;
|
|
19
|
+
readonly retainedObjects: IntegerType;
|
|
20
|
+
readonly skippedYoung: IntegerType;
|
|
21
|
+
readonly bytesFreed: IntegerType;
|
|
69
22
|
}>>;
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
* Returns an array of package summaries including name and version.
|
|
74
|
-
*
|
|
75
|
-
* This is a platform function for the East language, enabling e3 API operations
|
|
76
|
-
* in East programs running on Node.js.
|
|
77
|
-
*
|
|
78
|
-
* @param url - Base URL of the e3 API server
|
|
79
|
-
* @returns Array of package info (name, version)
|
|
80
|
-
*
|
|
81
|
-
* @throws {EastError} When request fails:
|
|
82
|
-
* - Network error
|
|
83
|
-
* - Server unavailable
|
|
84
|
-
*
|
|
85
|
-
* @example
|
|
86
|
-
* ```ts
|
|
87
|
-
* const listPackages = East.function([StringType], ArrayType(PackageListItemType), ($, url) => {
|
|
88
|
-
* return Platform.packageList(url);
|
|
89
|
-
* });
|
|
90
|
-
* ```
|
|
91
|
-
*/
|
|
92
|
-
export declare const platform_package_list: import("@elaraai/east").AsyncPlatformDefinition<[StringType], ArrayType<StructType<{
|
|
93
|
-
name: StringType;
|
|
94
|
-
version: StringType;
|
|
23
|
+
export declare const platform_package_list: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType], ArrayType<StructType<{
|
|
24
|
+
readonly name: StringType;
|
|
25
|
+
readonly version: StringType;
|
|
95
26
|
}>>>;
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
type: import("@elaraai/east").RecursiveTypeMarker;
|
|
143
|
-
}>>;
|
|
144
|
-
Variant: import("@elaraai/east").ArrayType<StructType<{
|
|
145
|
-
name: StringType;
|
|
146
|
-
type: import("@elaraai/east").RecursiveTypeMarker;
|
|
27
|
+
export declare const platform_package_get: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType, StringType, StringType], StructType<{
|
|
28
|
+
readonly tasks: import("@elaraai/east").DictType<StringType, StringType>;
|
|
29
|
+
readonly data: StructType<{
|
|
30
|
+
readonly structure: import("@elaraai/east").RecursiveType<import("@elaraai/east").VariantType<{
|
|
31
|
+
readonly value: StructType<{
|
|
32
|
+
readonly type: import("@elaraai/east").RecursiveType<import("@elaraai/east").VariantType<{
|
|
33
|
+
readonly Never: NullType;
|
|
34
|
+
readonly Null: NullType;
|
|
35
|
+
readonly Boolean: NullType;
|
|
36
|
+
readonly Integer: NullType;
|
|
37
|
+
readonly Float: NullType;
|
|
38
|
+
readonly String: NullType;
|
|
39
|
+
readonly DateTime: NullType;
|
|
40
|
+
readonly Blob: NullType;
|
|
41
|
+
readonly Ref: import("@elaraai/east").RecursiveTypeMarker;
|
|
42
|
+
readonly Array: import("@elaraai/east").RecursiveTypeMarker;
|
|
43
|
+
readonly Set: import("@elaraai/east").RecursiveTypeMarker;
|
|
44
|
+
readonly Dict: StructType<{
|
|
45
|
+
readonly key: import("@elaraai/east").RecursiveTypeMarker;
|
|
46
|
+
readonly value: import("@elaraai/east").RecursiveTypeMarker;
|
|
47
|
+
}>;
|
|
48
|
+
readonly Struct: import("@elaraai/east").ArrayType<StructType<{
|
|
49
|
+
readonly name: StringType;
|
|
50
|
+
readonly type: import("@elaraai/east").RecursiveTypeMarker;
|
|
51
|
+
}>>;
|
|
52
|
+
readonly Variant: import("@elaraai/east").ArrayType<StructType<{
|
|
53
|
+
readonly name: StringType;
|
|
54
|
+
readonly type: import("@elaraai/east").RecursiveTypeMarker;
|
|
55
|
+
}>>;
|
|
56
|
+
readonly Recursive: import("@elaraai/east").VariantType<{
|
|
57
|
+
readonly ref: IntegerType;
|
|
58
|
+
readonly wrapper: StructType<{
|
|
59
|
+
readonly id: IntegerType;
|
|
60
|
+
readonly inner: import("@elaraai/east").RecursiveTypeMarker;
|
|
61
|
+
}>;
|
|
62
|
+
}>;
|
|
63
|
+
readonly Function: StructType<{
|
|
64
|
+
readonly inputs: import("@elaraai/east").ArrayType<import("@elaraai/east").RecursiveTypeMarker>;
|
|
65
|
+
readonly output: import("@elaraai/east").RecursiveTypeMarker;
|
|
66
|
+
}>;
|
|
67
|
+
readonly AsyncFunction: StructType<{
|
|
68
|
+
readonly inputs: import("@elaraai/east").ArrayType<import("@elaraai/east").RecursiveTypeMarker>;
|
|
69
|
+
readonly output: import("@elaraai/east").RecursiveTypeMarker;
|
|
70
|
+
}>;
|
|
71
|
+
readonly Vector: import("@elaraai/east").RecursiveTypeMarker;
|
|
72
|
+
readonly Matrix: import("@elaraai/east").RecursiveTypeMarker;
|
|
147
73
|
}>>;
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
74
|
+
readonly writable: import("@elaraai/east").BooleanType;
|
|
75
|
+
}>;
|
|
76
|
+
readonly struct: import("@elaraai/east").DictType<StringType, import("@elaraai/east").RecursiveTypeMarker>;
|
|
77
|
+
}>>;
|
|
78
|
+
readonly refs: import("@elaraai/east").DictType<StringType, import("@elaraai/east").VariantType<{
|
|
79
|
+
readonly unassigned: NullType;
|
|
80
|
+
readonly null: StructType<{
|
|
81
|
+
readonly versions: import("@elaraai/east").DictType<StringType, StringType>;
|
|
82
|
+
}>;
|
|
83
|
+
readonly value: StructType<{
|
|
84
|
+
readonly hash: StringType;
|
|
85
|
+
readonly versions: import("@elaraai/east").DictType<StringType, StringType>;
|
|
86
|
+
}>;
|
|
159
87
|
}>>;
|
|
160
|
-
value: StringType;
|
|
161
88
|
}>;
|
|
162
89
|
}>>;
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
* This is a platform function for the East language, enabling e3 API operations
|
|
169
|
-
* in East programs running on Node.js.
|
|
170
|
-
*
|
|
171
|
-
* @param url - Base URL of the e3 API server
|
|
172
|
-
* @param archive - Zip archive as bytes
|
|
173
|
-
* @returns Import result with package info and object count
|
|
174
|
-
*
|
|
175
|
-
* @throws {EastError} When request fails:
|
|
176
|
-
* - Invalid package format
|
|
177
|
-
* - Package already exists
|
|
178
|
-
* - Network error
|
|
179
|
-
*
|
|
180
|
-
* @example
|
|
181
|
-
* ```ts
|
|
182
|
-
* const importPackage = East.function([StringType, BlobType], PackageImportResultType, ($, url, archive) => {
|
|
183
|
-
* return Platform.packageImport(url, archive);
|
|
184
|
-
* });
|
|
185
|
-
* ```
|
|
186
|
-
*/
|
|
187
|
-
export declare const platform_package_import: import("@elaraai/east").AsyncPlatformDefinition<[StringType, BlobType], StructType<{
|
|
188
|
-
name: StringType;
|
|
189
|
-
version: StringType;
|
|
190
|
-
packageHash: StringType;
|
|
191
|
-
objectCount: IntegerType;
|
|
90
|
+
export declare const platform_package_import: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, BlobType, StringType], StructType<{
|
|
91
|
+
readonly name: StringType;
|
|
92
|
+
readonly version: StringType;
|
|
93
|
+
readonly packageHash: StringType;
|
|
94
|
+
readonly objectCount: IntegerType;
|
|
192
95
|
}>>;
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
*
|
|
201
|
-
* @param url - Base URL of the e3 API server
|
|
202
|
-
* @param name - Package name
|
|
203
|
-
* @param version - Package version
|
|
204
|
-
* @returns Zip archive as bytes
|
|
205
|
-
*
|
|
206
|
-
* @throws {EastError} When request fails:
|
|
207
|
-
* - Package not found
|
|
208
|
-
* - Network error
|
|
209
|
-
*
|
|
210
|
-
* @example
|
|
211
|
-
* ```ts
|
|
212
|
-
* const exportPackage = East.function([StringType, StringType, StringType], BlobType, ($, url, name, version) => {
|
|
213
|
-
* return Platform.packageExport(url, name, version);
|
|
214
|
-
* });
|
|
215
|
-
* ```
|
|
216
|
-
*/
|
|
217
|
-
export declare const platform_package_export: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType], BlobType>;
|
|
218
|
-
/**
|
|
219
|
-
* Removes a package from the repository.
|
|
220
|
-
*
|
|
221
|
-
* Deletes a package by name and version. Does not affect objects referenced by other packages.
|
|
222
|
-
*
|
|
223
|
-
* This is a platform function for the East language, enabling e3 API operations
|
|
224
|
-
* in East programs running on Node.js.
|
|
225
|
-
*
|
|
226
|
-
* @param url - Base URL of the e3 API server
|
|
227
|
-
* @param name - Package name
|
|
228
|
-
* @param version - Package version
|
|
229
|
-
* @returns null on success
|
|
230
|
-
*
|
|
231
|
-
* @throws {EastError} When request fails:
|
|
232
|
-
* - Package not found
|
|
233
|
-
* - Network error
|
|
234
|
-
*
|
|
235
|
-
* @example
|
|
236
|
-
* ```ts
|
|
237
|
-
* const removePackage = East.function([StringType, StringType, StringType], NullType, ($, url, name, version) => {
|
|
238
|
-
* return Platform.packageRemove(url, name, version);
|
|
239
|
-
* });
|
|
240
|
-
* ```
|
|
241
|
-
*/
|
|
242
|
-
export declare const platform_package_remove: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType], NullType>;
|
|
243
|
-
/**
|
|
244
|
-
* Lists all workspaces in the repository.
|
|
245
|
-
*
|
|
246
|
-
* Returns an array of workspace summaries including deployment status.
|
|
247
|
-
*
|
|
248
|
-
* This is a platform function for the East language, enabling e3 API operations
|
|
249
|
-
* in East programs running on Node.js.
|
|
250
|
-
*
|
|
251
|
-
* @param url - Base URL of the e3 API server
|
|
252
|
-
* @returns Array of workspace info
|
|
253
|
-
*
|
|
254
|
-
* @throws {EastError} When request fails:
|
|
255
|
-
* - Network error
|
|
256
|
-
* - Server unavailable
|
|
257
|
-
*
|
|
258
|
-
* @example
|
|
259
|
-
* ```ts
|
|
260
|
-
* const listWorkspaces = East.function([StringType], ArrayType(WorkspaceInfoType), ($, url) => {
|
|
261
|
-
* return Platform.workspaceList(url);
|
|
262
|
-
* });
|
|
263
|
-
* ```
|
|
264
|
-
*/
|
|
265
|
-
export declare const platform_workspace_list: import("@elaraai/east").AsyncPlatformDefinition<[StringType], ArrayType<StructType<{
|
|
266
|
-
name: StringType;
|
|
267
|
-
deployed: import("@elaraai/east").BooleanType;
|
|
268
|
-
packageName: import("@elaraai/east").OptionType<StringType>;
|
|
269
|
-
packageVersion: import("@elaraai/east").OptionType<StringType>;
|
|
96
|
+
export declare const platform_package_export: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType, StringType, StringType], BlobType>;
|
|
97
|
+
export declare const platform_package_remove: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType, StringType, StringType], NullType>;
|
|
98
|
+
export declare const platform_workspace_list: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType], ArrayType<StructType<{
|
|
99
|
+
readonly name: StringType;
|
|
100
|
+
readonly deployed: import("@elaraai/east").BooleanType;
|
|
101
|
+
readonly packageName: import("@elaraai/east").OptionType<StringType>;
|
|
102
|
+
readonly packageVersion: import("@elaraai/east").OptionType<StringType>;
|
|
270
103
|
}>>>;
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
* This is a platform function for the East language, enabling e3 API operations
|
|
277
|
-
* in East programs running on Node.js.
|
|
278
|
-
*
|
|
279
|
-
* @param url - Base URL of the e3 API server
|
|
280
|
-
* @param name - Workspace name
|
|
281
|
-
* @returns Created workspace info
|
|
282
|
-
*
|
|
283
|
-
* @throws {EastError} When request fails:
|
|
284
|
-
* - Workspace already exists
|
|
285
|
-
* - Network error
|
|
286
|
-
*
|
|
287
|
-
* @example
|
|
288
|
-
* ```ts
|
|
289
|
-
* const createWorkspace = East.function([StringType, StringType], WorkspaceInfoType, ($, url, name) => {
|
|
290
|
-
* return Platform.workspaceCreate(url, name);
|
|
291
|
-
* });
|
|
292
|
-
* ```
|
|
293
|
-
*/
|
|
294
|
-
export declare const platform_workspace_create: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType], StructType<{
|
|
295
|
-
name: StringType;
|
|
296
|
-
deployed: import("@elaraai/east").BooleanType;
|
|
297
|
-
packageName: import("@elaraai/east").OptionType<StringType>;
|
|
298
|
-
packageVersion: import("@elaraai/east").OptionType<StringType>;
|
|
104
|
+
export declare const platform_workspace_create: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType, StringType], StructType<{
|
|
105
|
+
readonly name: StringType;
|
|
106
|
+
readonly deployed: import("@elaraai/east").BooleanType;
|
|
107
|
+
readonly packageName: import("@elaraai/east").OptionType<StringType>;
|
|
108
|
+
readonly packageVersion: import("@elaraai/east").OptionType<StringType>;
|
|
299
109
|
}>>;
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
* in East programs running on Node.js.
|
|
307
|
-
*
|
|
308
|
-
* @param url - Base URL of the e3 API server
|
|
309
|
-
* @param name - Workspace name
|
|
310
|
-
* @returns Workspace state
|
|
311
|
-
*
|
|
312
|
-
* @throws {EastError} When request fails:
|
|
313
|
-
* - Workspace not found
|
|
314
|
-
* - Network error
|
|
315
|
-
*
|
|
316
|
-
* @example
|
|
317
|
-
* ```ts
|
|
318
|
-
* const getWorkspace = East.function([StringType, StringType], WorkspaceStateType, ($, url, name) => {
|
|
319
|
-
* return Platform.workspaceGet(url, name);
|
|
320
|
-
* });
|
|
321
|
-
* ```
|
|
322
|
-
*/
|
|
323
|
-
export declare const platform_workspace_get: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType], StructType<{
|
|
324
|
-
packageName: StringType;
|
|
325
|
-
packageVersion: StringType;
|
|
326
|
-
packageHash: StringType;
|
|
327
|
-
deployedAt: import("@elaraai/east").DateTimeType;
|
|
328
|
-
rootHash: StringType;
|
|
329
|
-
rootUpdatedAt: import("@elaraai/east").DateTimeType;
|
|
110
|
+
export declare const platform_workspace_get: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType, StringType], StructType<{
|
|
111
|
+
readonly packageName: StringType;
|
|
112
|
+
readonly packageVersion: StringType;
|
|
113
|
+
readonly packageHash: StringType;
|
|
114
|
+
readonly deployedAt: import("@elaraai/east").DateTimeType;
|
|
115
|
+
readonly currentRunId: import("@elaraai/east").OptionType<StringType>;
|
|
330
116
|
}>>;
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
* in East programs running on Node.js.
|
|
339
|
-
*
|
|
340
|
-
* @param url - Base URL of the e3 API server
|
|
341
|
-
* @param name - Workspace name
|
|
342
|
-
* @returns Workspace status with datasets, tasks, and summary
|
|
343
|
-
*
|
|
344
|
-
* @throws {EastError} When request fails:
|
|
345
|
-
* - Workspace not found
|
|
346
|
-
* - Network error
|
|
347
|
-
*
|
|
348
|
-
* @example
|
|
349
|
-
* ```ts
|
|
350
|
-
* const getStatus = East.function([StringType, StringType], WorkspaceStatusResultType, ($, url, name) => {
|
|
351
|
-
* return Platform.workspaceStatus(url, name);
|
|
352
|
-
* });
|
|
353
|
-
* ```
|
|
354
|
-
*/
|
|
355
|
-
export declare const platform_workspace_status: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType], StructType<{
|
|
356
|
-
workspace: StringType;
|
|
357
|
-
lock: import("@elaraai/east").OptionType<StructType<{
|
|
358
|
-
pid: IntegerType;
|
|
359
|
-
acquiredAt: StringType;
|
|
360
|
-
bootId: import("@elaraai/east").OptionType<StringType>;
|
|
361
|
-
command: import("@elaraai/east").OptionType<StringType>;
|
|
117
|
+
export declare const platform_workspace_status: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType, StringType], StructType<{
|
|
118
|
+
readonly workspace: StringType;
|
|
119
|
+
readonly lock: import("@elaraai/east").OptionType<StructType<{
|
|
120
|
+
readonly pid: IntegerType;
|
|
121
|
+
readonly acquiredAt: StringType;
|
|
122
|
+
readonly bootId: import("@elaraai/east").OptionType<StringType>;
|
|
123
|
+
readonly command: import("@elaraai/east").OptionType<StringType>;
|
|
362
124
|
}>>;
|
|
363
|
-
datasets: ArrayType<StructType<{
|
|
364
|
-
path: StringType;
|
|
365
|
-
status: import("@elaraai/east").VariantType<{
|
|
366
|
-
unset: NullType;
|
|
367
|
-
stale: NullType;
|
|
368
|
-
|
|
125
|
+
readonly datasets: ArrayType<StructType<{
|
|
126
|
+
readonly path: StringType;
|
|
127
|
+
readonly status: import("@elaraai/east").VariantType<{
|
|
128
|
+
readonly unset: NullType;
|
|
129
|
+
readonly stale: NullType;
|
|
130
|
+
readonly "up-to-date": NullType;
|
|
369
131
|
}>;
|
|
370
|
-
hash: import("@elaraai/east").OptionType<StringType>;
|
|
371
|
-
isTaskOutput: import("@elaraai/east").BooleanType;
|
|
372
|
-
producedBy: import("@elaraai/east").OptionType<StringType>;
|
|
132
|
+
readonly hash: import("@elaraai/east").OptionType<StringType>;
|
|
133
|
+
readonly isTaskOutput: import("@elaraai/east").BooleanType;
|
|
134
|
+
readonly producedBy: import("@elaraai/east").OptionType<StringType>;
|
|
373
135
|
}>>;
|
|
374
|
-
tasks: ArrayType<StructType<{
|
|
375
|
-
name: StringType;
|
|
376
|
-
hash: StringType;
|
|
377
|
-
status: import("@elaraai/east").VariantType<{
|
|
378
|
-
|
|
379
|
-
cached: import("@elaraai/east").BooleanType;
|
|
136
|
+
readonly tasks: ArrayType<StructType<{
|
|
137
|
+
readonly name: StringType;
|
|
138
|
+
readonly hash: StringType;
|
|
139
|
+
readonly status: import("@elaraai/east").VariantType<{
|
|
140
|
+
readonly "up-to-date": StructType<{
|
|
141
|
+
readonly cached: import("@elaraai/east").BooleanType;
|
|
380
142
|
}>;
|
|
381
|
-
ready: NullType;
|
|
382
|
-
waiting: StructType<{
|
|
383
|
-
reason: StringType;
|
|
143
|
+
readonly ready: NullType;
|
|
144
|
+
readonly waiting: StructType<{
|
|
145
|
+
readonly reason: StringType;
|
|
384
146
|
}>;
|
|
385
|
-
|
|
386
|
-
pid: import("@elaraai/east").OptionType<IntegerType>;
|
|
387
|
-
startedAt: import("@elaraai/east").OptionType<StringType>;
|
|
147
|
+
readonly "in-progress": StructType<{
|
|
148
|
+
readonly pid: import("@elaraai/east").OptionType<IntegerType>;
|
|
149
|
+
readonly startedAt: import("@elaraai/east").OptionType<StringType>;
|
|
388
150
|
}>;
|
|
389
|
-
failed: StructType<{
|
|
390
|
-
exitCode: IntegerType;
|
|
391
|
-
completedAt: import("@elaraai/east").OptionType<StringType>;
|
|
151
|
+
readonly failed: StructType<{
|
|
152
|
+
readonly exitCode: IntegerType;
|
|
153
|
+
readonly completedAt: import("@elaraai/east").OptionType<StringType>;
|
|
392
154
|
}>;
|
|
393
|
-
error: StructType<{
|
|
394
|
-
message: StringType;
|
|
395
|
-
completedAt: import("@elaraai/east").OptionType<StringType>;
|
|
155
|
+
readonly error: StructType<{
|
|
156
|
+
readonly message: StringType;
|
|
157
|
+
readonly completedAt: import("@elaraai/east").OptionType<StringType>;
|
|
396
158
|
}>;
|
|
397
|
-
|
|
398
|
-
pid: import("@elaraai/east").OptionType<IntegerType>;
|
|
399
|
-
startedAt: import("@elaraai/east").OptionType<StringType>;
|
|
159
|
+
readonly "stale-running": StructType<{
|
|
160
|
+
readonly pid: import("@elaraai/east").OptionType<IntegerType>;
|
|
161
|
+
readonly startedAt: import("@elaraai/east").OptionType<StringType>;
|
|
400
162
|
}>;
|
|
401
163
|
}>;
|
|
402
|
-
inputs: ArrayType<StringType>;
|
|
403
|
-
output: StringType;
|
|
404
|
-
dependsOn: ArrayType<StringType>;
|
|
164
|
+
readonly inputs: ArrayType<StringType>;
|
|
165
|
+
readonly output: StringType;
|
|
166
|
+
readonly dependsOn: ArrayType<StringType>;
|
|
405
167
|
}>>;
|
|
406
|
-
summary: StructType<{
|
|
407
|
-
datasets: StructType<{
|
|
408
|
-
total: IntegerType;
|
|
409
|
-
unset: IntegerType;
|
|
410
|
-
stale: IntegerType;
|
|
411
|
-
upToDate: IntegerType;
|
|
168
|
+
readonly summary: StructType<{
|
|
169
|
+
readonly datasets: StructType<{
|
|
170
|
+
readonly total: IntegerType;
|
|
171
|
+
readonly unset: IntegerType;
|
|
172
|
+
readonly stale: IntegerType;
|
|
173
|
+
readonly upToDate: IntegerType;
|
|
412
174
|
}>;
|
|
413
|
-
tasks: StructType<{
|
|
414
|
-
total: IntegerType;
|
|
415
|
-
upToDate: IntegerType;
|
|
416
|
-
ready: IntegerType;
|
|
417
|
-
waiting: IntegerType;
|
|
418
|
-
inProgress: IntegerType;
|
|
419
|
-
failed: IntegerType;
|
|
420
|
-
error: IntegerType;
|
|
421
|
-
staleRunning: IntegerType;
|
|
175
|
+
readonly tasks: StructType<{
|
|
176
|
+
readonly total: IntegerType;
|
|
177
|
+
readonly upToDate: IntegerType;
|
|
178
|
+
readonly ready: IntegerType;
|
|
179
|
+
readonly waiting: IntegerType;
|
|
180
|
+
readonly inProgress: IntegerType;
|
|
181
|
+
readonly failed: IntegerType;
|
|
182
|
+
readonly error: IntegerType;
|
|
183
|
+
readonly staleRunning: IntegerType;
|
|
422
184
|
}>;
|
|
423
185
|
}>;
|
|
424
186
|
}>>;
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
* @example
|
|
442
|
-
* ```ts
|
|
443
|
-
* const removeWorkspace = East.function([StringType, StringType], NullType, ($, url, name) => {
|
|
444
|
-
* return Platform.workspaceRemove(url, name);
|
|
445
|
-
* });
|
|
446
|
-
* ```
|
|
447
|
-
*/
|
|
448
|
-
export declare const platform_workspace_remove: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType], NullType>;
|
|
449
|
-
/**
|
|
450
|
-
* Deploys a package to a workspace.
|
|
451
|
-
*
|
|
452
|
-
* Sets up the workspace with the specified package's data structure and tasks.
|
|
453
|
-
*
|
|
454
|
-
* This is a platform function for the East language, enabling e3 API operations
|
|
455
|
-
* in East programs running on Node.js.
|
|
456
|
-
*
|
|
457
|
-
* @param url - Base URL of the e3 API server
|
|
458
|
-
* @param name - Workspace name
|
|
459
|
-
* @param packageRef - Package reference (name or name@version)
|
|
460
|
-
* @returns null on success
|
|
461
|
-
*
|
|
462
|
-
* @throws {EastError} When request fails:
|
|
463
|
-
* - Workspace not found
|
|
464
|
-
* - Package not found
|
|
465
|
-
* - Network error
|
|
466
|
-
*
|
|
467
|
-
* @example
|
|
468
|
-
* ```ts
|
|
469
|
-
* const deploy = East.function([StringType, StringType, StringType], NullType, ($, url, workspace, packageRef) => {
|
|
470
|
-
* return Platform.workspaceDeploy(url, workspace, packageRef);
|
|
471
|
-
* });
|
|
472
|
-
* ```
|
|
473
|
-
*/
|
|
474
|
-
export declare const platform_workspace_deploy: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType], NullType>;
|
|
475
|
-
/**
|
|
476
|
-
* Exports workspace as a package zip archive.
|
|
477
|
-
*
|
|
478
|
-
* Creates a zip archive of the workspace that can be imported elsewhere.
|
|
479
|
-
*
|
|
480
|
-
* This is a platform function for the East language, enabling e3 API operations
|
|
481
|
-
* in East programs running on Node.js.
|
|
482
|
-
*
|
|
483
|
-
* @param url - Base URL of the e3 API server
|
|
484
|
-
* @param name - Workspace name
|
|
485
|
-
* @returns Zip archive as bytes
|
|
486
|
-
*
|
|
487
|
-
* @throws {EastError} When request fails:
|
|
488
|
-
* - Workspace not found
|
|
489
|
-
* - Network error
|
|
490
|
-
*
|
|
491
|
-
* @example
|
|
492
|
-
* ```ts
|
|
493
|
-
* const exportWorkspace = East.function([StringType, StringType], BlobType, ($, url, name) => {
|
|
494
|
-
* return Platform.workspaceExport(url, name);
|
|
495
|
-
* });
|
|
496
|
-
* ```
|
|
497
|
-
*/
|
|
498
|
-
export declare const platform_workspace_export: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType], BlobType>;
|
|
499
|
-
/**
|
|
500
|
-
* Lists field names at root of workspace dataset tree.
|
|
501
|
-
*
|
|
502
|
-
* Returns the top-level field names in the workspace's data tree.
|
|
503
|
-
*
|
|
504
|
-
* This is a platform function for the East language, enabling e3 API operations
|
|
505
|
-
* in East programs running on Node.js.
|
|
506
|
-
*
|
|
507
|
-
* @param url - Base URL of the e3 API server
|
|
508
|
-
* @param workspace - Workspace name
|
|
509
|
-
* @returns Array of field names at root
|
|
510
|
-
*
|
|
511
|
-
* @throws {EastError} When request fails:
|
|
512
|
-
* - Workspace not found
|
|
513
|
-
* - Network error
|
|
514
|
-
*
|
|
515
|
-
* @example
|
|
516
|
-
* ```ts
|
|
517
|
-
* const listDatasets = East.function([StringType, StringType], ArrayType(StringType), ($, url, workspace) => {
|
|
518
|
-
* return Platform.datasetList(url, workspace);
|
|
519
|
-
* });
|
|
520
|
-
* ```
|
|
521
|
-
*/
|
|
522
|
-
export declare const platform_dataset_list: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType], ArrayType<StringType>>;
|
|
523
|
-
/**
|
|
524
|
-
* Lists field names at a path in workspace dataset tree.
|
|
525
|
-
*
|
|
526
|
-
* Returns field names at the specified path in the workspace's data tree.
|
|
527
|
-
*
|
|
528
|
-
* This is a platform function for the East language, enabling e3 API operations
|
|
529
|
-
* in East programs running on Node.js.
|
|
530
|
-
*
|
|
531
|
-
* @param url - Base URL of the e3 API server
|
|
532
|
-
* @param workspace - Workspace name
|
|
533
|
-
* @param path - Path to the dataset
|
|
534
|
-
* @returns Array of field names at path
|
|
535
|
-
*
|
|
536
|
-
* @throws {EastError} When request fails:
|
|
537
|
-
* - Workspace not found
|
|
538
|
-
* - Path not found
|
|
539
|
-
* - Network error
|
|
540
|
-
*
|
|
541
|
-
* @example
|
|
542
|
-
* ```ts
|
|
543
|
-
* const listAt = East.function([StringType, StringType, TreePathType], ArrayType(StringType), ($, url, workspace, path) => {
|
|
544
|
-
* return Platform.datasetListAt(url, workspace, path);
|
|
545
|
-
* });
|
|
546
|
-
* ```
|
|
547
|
-
*/
|
|
548
|
-
export declare const platform_dataset_list_at: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, ArrayType<import("@elaraai/east").VariantType<{
|
|
549
|
-
field: StringType;
|
|
550
|
-
}>>], ArrayType<StringType>>;
|
|
551
|
-
/**
|
|
552
|
-
* Gets a dataset value as raw BEAST2 bytes.
|
|
553
|
-
*
|
|
554
|
-
* Returns the raw BEAST2 encoded data for a dataset.
|
|
555
|
-
* Use decodeBeast2 or decodeBeast2For to decode with the appropriate type.
|
|
556
|
-
*
|
|
557
|
-
* This is a platform function for the East language, enabling e3 API operations
|
|
558
|
-
* in East programs running on Node.js.
|
|
559
|
-
*
|
|
560
|
-
* @param url - Base URL of the e3 API server
|
|
561
|
-
* @param workspace - Workspace name
|
|
562
|
-
* @param path - Path to the dataset
|
|
563
|
-
* @returns Raw BEAST2 bytes
|
|
564
|
-
*
|
|
565
|
-
* @throws {EastError} When request fails:
|
|
566
|
-
* - Workspace not found
|
|
567
|
-
* - Dataset not found
|
|
568
|
-
* - Network error
|
|
569
|
-
*
|
|
570
|
-
* @example
|
|
571
|
-
* ```ts
|
|
572
|
-
* const getData = East.function([StringType, StringType, TreePathType], BlobType, ($, url, workspace, path) => {
|
|
573
|
-
* return Platform.datasetGet(url, workspace, path);
|
|
574
|
-
* });
|
|
575
|
-
* ```
|
|
576
|
-
*/
|
|
577
|
-
export declare const platform_dataset_get: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, ArrayType<import("@elaraai/east").VariantType<{
|
|
578
|
-
field: StringType;
|
|
579
|
-
}>>], BlobType>;
|
|
580
|
-
/**
|
|
581
|
-
* Sets a dataset value from raw BEAST2 bytes.
|
|
582
|
-
*
|
|
583
|
-
* Stores the BEAST2 encoded data at the specified dataset path.
|
|
584
|
-
*
|
|
585
|
-
* This is a platform function for the East language, enabling e3 API operations
|
|
586
|
-
* in East programs running on Node.js.
|
|
587
|
-
*
|
|
588
|
-
* @param url - Base URL of the e3 API server
|
|
589
|
-
* @param workspace - Workspace name
|
|
590
|
-
* @param path - Path to the dataset
|
|
591
|
-
* @param data - Raw BEAST2 encoded value
|
|
592
|
-
* @returns null on success
|
|
593
|
-
*
|
|
594
|
-
* @throws {EastError} When request fails:
|
|
595
|
-
* - Workspace not found
|
|
596
|
-
* - Invalid path
|
|
597
|
-
* - Network error
|
|
598
|
-
*
|
|
599
|
-
* @example
|
|
600
|
-
* ```ts
|
|
601
|
-
* const setData = East.function([StringType, StringType, TreePathType, BlobType], NullType, ($, url, workspace, path, data) => {
|
|
602
|
-
* return Platform.datasetSet(url, workspace, path, data);
|
|
603
|
-
* });
|
|
604
|
-
* ```
|
|
605
|
-
*/
|
|
606
|
-
export declare const platform_dataset_set: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, ArrayType<import("@elaraai/east").VariantType<{
|
|
607
|
-
field: StringType;
|
|
608
|
-
}>>, BlobType], NullType>;
|
|
609
|
-
/**
|
|
610
|
-
* Lists tasks in a workspace.
|
|
611
|
-
*
|
|
612
|
-
* Returns an array of task summaries including name and hash.
|
|
613
|
-
*
|
|
614
|
-
* This is a platform function for the East language, enabling e3 API operations
|
|
615
|
-
* in East programs running on Node.js.
|
|
616
|
-
*
|
|
617
|
-
* @param url - Base URL of the e3 API server
|
|
618
|
-
* @param workspace - Workspace name
|
|
619
|
-
* @returns Array of task info (name, hash)
|
|
620
|
-
*
|
|
621
|
-
* @throws {EastError} When request fails:
|
|
622
|
-
* - Workspace not found
|
|
623
|
-
* - Workspace not deployed
|
|
624
|
-
* - Network error
|
|
625
|
-
*
|
|
626
|
-
* @example
|
|
627
|
-
* ```ts
|
|
628
|
-
* const listTasks = East.function([StringType, StringType], ArrayType(TaskListItemType), ($, url, workspace) => {
|
|
629
|
-
* return Platform.taskList(url, workspace);
|
|
630
|
-
* });
|
|
631
|
-
* ```
|
|
632
|
-
*/
|
|
633
|
-
export declare const platform_task_list: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType], ArrayType<StructType<{
|
|
634
|
-
name: StringType;
|
|
635
|
-
hash: StringType;
|
|
187
|
+
export declare const platform_workspace_remove: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType, StringType], NullType>;
|
|
188
|
+
export declare const platform_workspace_deploy: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType, StringType, StringType], NullType>;
|
|
189
|
+
export declare const platform_workspace_export: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType, StringType], BlobType>;
|
|
190
|
+
export declare const platform_dataset_list: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType, StringType], ArrayType<StringType>>;
|
|
191
|
+
export declare const platform_dataset_list_at: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType, ArrayType<import("@elaraai/east").VariantType<{
|
|
192
|
+
readonly field: StringType;
|
|
193
|
+
}>>, StringType], ArrayType<StringType>>;
|
|
194
|
+
export declare const platform_dataset_get: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType, ArrayType<import("@elaraai/east").VariantType<{
|
|
195
|
+
readonly field: StringType;
|
|
196
|
+
}>>, StringType], BlobType>;
|
|
197
|
+
export declare const platform_dataset_set: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType, ArrayType<import("@elaraai/east").VariantType<{
|
|
198
|
+
readonly field: StringType;
|
|
199
|
+
}>>, BlobType, StringType], NullType>;
|
|
200
|
+
export declare const platform_task_list: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType, StringType], ArrayType<StructType<{
|
|
201
|
+
readonly name: StringType;
|
|
202
|
+
readonly hash: StringType;
|
|
636
203
|
}>>>;
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
* in East programs running on Node.js.
|
|
644
|
-
*
|
|
645
|
-
* @param url - Base URL of the e3 API server
|
|
646
|
-
* @param workspace - Workspace name
|
|
647
|
-
* @param name - Task name
|
|
648
|
-
* @returns Task details
|
|
649
|
-
*
|
|
650
|
-
* @throws {EastError} When request fails:
|
|
651
|
-
* - Workspace not found
|
|
652
|
-
* - Task not found
|
|
653
|
-
* - Network error
|
|
654
|
-
*
|
|
655
|
-
* @example
|
|
656
|
-
* ```ts
|
|
657
|
-
* const getTask = East.function([StringType, StringType, StringType], TaskDetailsType, ($, url, workspace, name) => {
|
|
658
|
-
* return Platform.taskGet(url, workspace, name);
|
|
659
|
-
* });
|
|
660
|
-
* ```
|
|
661
|
-
*/
|
|
662
|
-
export declare const platform_task_get: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType], StructType<{
|
|
663
|
-
name: StringType;
|
|
664
|
-
hash: StringType;
|
|
665
|
-
commandIr: StringType;
|
|
666
|
-
inputs: ArrayType<ArrayType<import("@elaraai/east").VariantType<{
|
|
667
|
-
field: StringType;
|
|
204
|
+
export declare const platform_task_get: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType, StringType, StringType], StructType<{
|
|
205
|
+
readonly name: StringType;
|
|
206
|
+
readonly hash: StringType;
|
|
207
|
+
readonly commandIr: StringType;
|
|
208
|
+
readonly inputs: ArrayType<ArrayType<import("@elaraai/east").VariantType<{
|
|
209
|
+
readonly field: StringType;
|
|
668
210
|
}>>>;
|
|
669
|
-
output: ArrayType<import("@elaraai/east").VariantType<{
|
|
670
|
-
field: StringType;
|
|
211
|
+
readonly output: ArrayType<import("@elaraai/east").VariantType<{
|
|
212
|
+
readonly field: StringType;
|
|
671
213
|
}>>;
|
|
214
|
+
readonly kind: import("@elaraai/east").OptionType<StringType>;
|
|
215
|
+
readonly metadata: import("@elaraai/east").OptionType<BlobType>;
|
|
672
216
|
}>>;
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
* return Platform.dataflowStart(url, workspace, options);
|
|
696
|
-
* });
|
|
697
|
-
* ```
|
|
698
|
-
*/
|
|
699
|
-
export declare const platform_dataflow_start: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StructType<{
|
|
700
|
-
concurrency: import("@elaraai/east").OptionType<IntegerType>;
|
|
701
|
-
force: import("@elaraai/east").BooleanType;
|
|
702
|
-
filter: import("@elaraai/east").OptionType<StringType>;
|
|
703
|
-
}>], NullType>;
|
|
704
|
-
/**
|
|
705
|
-
* Executes dataflow on a workspace (blocking).
|
|
706
|
-
*
|
|
707
|
-
* Waits for execution to complete and returns the result with per-task outcomes.
|
|
708
|
-
*
|
|
709
|
-
* This is a platform function for the East language, enabling e3 API operations
|
|
710
|
-
* in East programs running on Node.js.
|
|
711
|
-
*
|
|
712
|
-
* @param url - Base URL of the e3 API server
|
|
713
|
-
* @param workspace - Workspace name
|
|
714
|
-
* @param options - Execution options (concurrency, force, filter)
|
|
715
|
-
* @returns Dataflow execution result
|
|
716
|
-
*
|
|
717
|
-
* @throws {EastError} When request fails:
|
|
718
|
-
* - Workspace not found
|
|
719
|
-
* - Workspace locked
|
|
720
|
-
* - Network error
|
|
721
|
-
*
|
|
722
|
-
* @example
|
|
723
|
-
* ```ts
|
|
724
|
-
* const execute = East.function([StringType, StringType, DataflowRequestType], DataflowResultType, ($, url, workspace, options) => {
|
|
725
|
-
* return Platform.dataflowExecute(url, workspace, options);
|
|
726
|
-
* });
|
|
727
|
-
* ```
|
|
728
|
-
*/
|
|
729
|
-
export declare const platform_dataflow_execute: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StructType<{
|
|
730
|
-
concurrency: import("@elaraai/east").OptionType<IntegerType>;
|
|
731
|
-
force: import("@elaraai/east").BooleanType;
|
|
732
|
-
filter: import("@elaraai/east").OptionType<StringType>;
|
|
733
|
-
}>], StructType<{
|
|
734
|
-
success: import("@elaraai/east").BooleanType;
|
|
735
|
-
executed: IntegerType;
|
|
736
|
-
cached: IntegerType;
|
|
737
|
-
failed: IntegerType;
|
|
738
|
-
skipped: IntegerType;
|
|
739
|
-
tasks: ArrayType<StructType<{
|
|
740
|
-
name: StringType;
|
|
741
|
-
cached: import("@elaraai/east").BooleanType;
|
|
742
|
-
state: import("@elaraai/east").VariantType<{
|
|
743
|
-
success: NullType;
|
|
744
|
-
failed: StructType<{
|
|
745
|
-
exitCode: IntegerType;
|
|
217
|
+
export declare const platform_dataflow_start: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType, StructType<{
|
|
218
|
+
readonly concurrency: import("@elaraai/east").OptionType<IntegerType>;
|
|
219
|
+
readonly force: import("@elaraai/east").BooleanType;
|
|
220
|
+
readonly filter: import("@elaraai/east").OptionType<StringType>;
|
|
221
|
+
}>, StringType], NullType>;
|
|
222
|
+
export declare const platform_dataflow_execute: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType, StructType<{
|
|
223
|
+
readonly concurrency: import("@elaraai/east").OptionType<IntegerType>;
|
|
224
|
+
readonly force: import("@elaraai/east").BooleanType;
|
|
225
|
+
readonly filter: import("@elaraai/east").OptionType<StringType>;
|
|
226
|
+
}>, StringType], StructType<{
|
|
227
|
+
readonly success: import("@elaraai/east").BooleanType;
|
|
228
|
+
readonly executed: IntegerType;
|
|
229
|
+
readonly cached: IntegerType;
|
|
230
|
+
readonly failed: IntegerType;
|
|
231
|
+
readonly skipped: IntegerType;
|
|
232
|
+
readonly tasks: ArrayType<StructType<{
|
|
233
|
+
readonly name: StringType;
|
|
234
|
+
readonly cached: import("@elaraai/east").BooleanType;
|
|
235
|
+
readonly state: import("@elaraai/east").VariantType<{
|
|
236
|
+
readonly success: NullType;
|
|
237
|
+
readonly failed: StructType<{
|
|
238
|
+
readonly exitCode: IntegerType;
|
|
746
239
|
}>;
|
|
747
|
-
error: StructType<{
|
|
748
|
-
message: StringType;
|
|
240
|
+
readonly error: StructType<{
|
|
241
|
+
readonly message: StringType;
|
|
749
242
|
}>;
|
|
750
|
-
skipped: NullType;
|
|
243
|
+
readonly skipped: NullType;
|
|
751
244
|
}>;
|
|
752
|
-
duration: import("@elaraai/east").FloatType;
|
|
245
|
+
readonly duration: import("@elaraai/east").FloatType;
|
|
753
246
|
}>>;
|
|
754
|
-
duration: import("@elaraai/east").FloatType;
|
|
247
|
+
readonly duration: import("@elaraai/east").FloatType;
|
|
755
248
|
}>>;
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
*
|
|
764
|
-
* @param url - Base URL of the e3 API server
|
|
765
|
-
* @param workspace - Workspace name
|
|
766
|
-
* @returns Dataflow graph with tasks and dependencies
|
|
767
|
-
*
|
|
768
|
-
* @throws {EastError} When request fails:
|
|
769
|
-
* - Workspace not found
|
|
770
|
-
* - Network error
|
|
771
|
-
*
|
|
772
|
-
* @example
|
|
773
|
-
* ```ts
|
|
774
|
-
* const getGraph = East.function([StringType, StringType], DataflowGraphType, ($, url, workspace) => {
|
|
775
|
-
* return Platform.dataflowGraph(url, workspace);
|
|
776
|
-
* });
|
|
777
|
-
* ```
|
|
778
|
-
*/
|
|
779
|
-
export declare const platform_dataflow_graph: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType], StructType<{
|
|
780
|
-
tasks: ArrayType<StructType<{
|
|
781
|
-
name: StringType;
|
|
782
|
-
hash: StringType;
|
|
783
|
-
inputs: ArrayType<StringType>;
|
|
784
|
-
output: StringType;
|
|
785
|
-
dependsOn: ArrayType<StringType>;
|
|
249
|
+
export declare const platform_dataflow_graph: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType, StringType], StructType<{
|
|
250
|
+
readonly tasks: ArrayType<StructType<{
|
|
251
|
+
readonly name: StringType;
|
|
252
|
+
readonly hash: StringType;
|
|
253
|
+
readonly inputs: ArrayType<StringType>;
|
|
254
|
+
readonly output: StringType;
|
|
255
|
+
readonly dependsOn: ArrayType<StringType>;
|
|
786
256
|
}>>;
|
|
787
257
|
}>>;
|
|
788
|
-
/**
|
|
789
|
-
* Log request options type.
|
|
790
|
-
*/
|
|
791
258
|
export declare const LogOptionsType: StructType<{
|
|
792
|
-
stream: StringType;
|
|
793
|
-
offset: IntegerType;
|
|
794
|
-
limit: IntegerType;
|
|
259
|
+
readonly stream: StringType;
|
|
260
|
+
readonly offset: IntegerType;
|
|
261
|
+
readonly limit: IntegerType;
|
|
795
262
|
}>;
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
* @param task - Task name
|
|
807
|
-
* @param options - Log options (stream, offset, limit)
|
|
808
|
-
* @returns Log chunk with data and metadata
|
|
809
|
-
*
|
|
810
|
-
* @throws {EastError} When request fails:
|
|
811
|
-
* - Workspace not found
|
|
812
|
-
* - Task not found
|
|
813
|
-
* - Network error
|
|
814
|
-
*
|
|
815
|
-
* @example
|
|
816
|
-
* ```ts
|
|
817
|
-
* const getLogs = East.function([StringType, StringType, StringType, LogOptionsType], LogChunkType, ($, url, workspace, task, options) => {
|
|
818
|
-
* return Platform.taskLogs(url, workspace, task, options);
|
|
819
|
-
* });
|
|
820
|
-
* ```
|
|
821
|
-
*/
|
|
822
|
-
export declare const platform_task_logs: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType, StructType<{
|
|
823
|
-
stream: StringType;
|
|
824
|
-
offset: IntegerType;
|
|
825
|
-
limit: IntegerType;
|
|
826
|
-
}>], StructType<{
|
|
827
|
-
data: StringType;
|
|
828
|
-
offset: IntegerType;
|
|
829
|
-
size: IntegerType;
|
|
830
|
-
totalSize: IntegerType;
|
|
831
|
-
complete: import("@elaraai/east").BooleanType;
|
|
263
|
+
export declare const platform_task_logs: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType, StringType, StructType<{
|
|
264
|
+
readonly stream: StringType;
|
|
265
|
+
readonly offset: IntegerType;
|
|
266
|
+
readonly limit: IntegerType;
|
|
267
|
+
}>, StringType], StructType<{
|
|
268
|
+
readonly data: StringType;
|
|
269
|
+
readonly offset: IntegerType;
|
|
270
|
+
readonly size: IntegerType;
|
|
271
|
+
readonly totalSize: IntegerType;
|
|
272
|
+
readonly complete: import("@elaraai/east").BooleanType;
|
|
832
273
|
}>>;
|
|
833
|
-
/**
|
|
834
|
-
* Node.js implementation of e3 API platform functions.
|
|
835
|
-
*
|
|
836
|
-
* Pass this array to {@link East.compileAsync} to enable e3 API operations.
|
|
837
|
-
*/
|
|
838
274
|
declare const PlatformImpl: PlatformFunction[];
|
|
839
|
-
/**
|
|
840
|
-
* Grouped e3 API platform functions.
|
|
841
|
-
*
|
|
842
|
-
* Provides e3 repository, package, workspace, dataset, task, and execution operations
|
|
843
|
-
* for East programs running on Node.js.
|
|
844
|
-
*
|
|
845
|
-
* @example
|
|
846
|
-
* ```ts
|
|
847
|
-
* import { East, StringType } from "@elaraai/east";
|
|
848
|
-
* import { Platform, RepositoryStatusType } from "@elaraai/e3-api-client";
|
|
849
|
-
*
|
|
850
|
-
* const getStatus = East.function([StringType], RepositoryStatusType, ($, url) => {
|
|
851
|
-
* return Platform.repoStatus(url);
|
|
852
|
-
* });
|
|
853
|
-
*
|
|
854
|
-
* const compiled = await East.compileAsync(getStatus.toIR(), Platform.Implementation);
|
|
855
|
-
* const status = await compiled("http://localhost:3000");
|
|
856
|
-
* console.log(status.objectCount);
|
|
857
|
-
* ```
|
|
858
|
-
*/
|
|
859
275
|
export declare const Platform: {
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
*
|
|
866
|
-
* @param url - Base URL of the e3 API server
|
|
867
|
-
* @returns Repository status
|
|
868
|
-
*
|
|
869
|
-
* @example
|
|
870
|
-
* ```ts
|
|
871
|
-
* const getStatus = East.function([StringType], RepositoryStatusType, ($, url) => {
|
|
872
|
-
* return Platform.repoStatus(url);
|
|
873
|
-
* });
|
|
874
|
-
*
|
|
875
|
-
* const compiled = await East.compileAsync(getStatus.toIR(), Platform.Implementation);
|
|
876
|
-
* await compiled("http://localhost:3000");
|
|
877
|
-
* ```
|
|
878
|
-
*/
|
|
879
|
-
readonly repoStatus: import("@elaraai/east").AsyncPlatformDefinition<[StringType], StructType<{
|
|
880
|
-
path: StringType;
|
|
881
|
-
objectCount: IntegerType;
|
|
882
|
-
packageCount: IntegerType;
|
|
883
|
-
workspaceCount: IntegerType;
|
|
276
|
+
readonly repoStatus: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType], StructType<{
|
|
277
|
+
readonly path: StringType;
|
|
278
|
+
readonly objectCount: IntegerType;
|
|
279
|
+
readonly packageCount: IntegerType;
|
|
280
|
+
readonly workspaceCount: IntegerType;
|
|
884
281
|
}>>;
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
* @example
|
|
895
|
-
* ```ts
|
|
896
|
-
* const runGc = East.function([StringType, GcRequestType], GcResultType, ($, url, options) => {
|
|
897
|
-
* return Platform.repoGc(url, options);
|
|
898
|
-
* });
|
|
899
|
-
*
|
|
900
|
-
* const compiled = await East.compileAsync(runGc.toIR(), Platform.Implementation);
|
|
901
|
-
* await compiled("http://localhost:3000", { dryRun: true, minAge: { type: "none", value: null } });
|
|
902
|
-
* ```
|
|
903
|
-
*/
|
|
904
|
-
readonly repoGc: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StructType<{
|
|
905
|
-
dryRun: import("@elaraai/east").BooleanType;
|
|
906
|
-
minAge: import("@elaraai/east").OptionType<IntegerType>;
|
|
907
|
-
}>], StructType<{
|
|
908
|
-
deletedObjects: IntegerType;
|
|
909
|
-
deletedPartials: IntegerType;
|
|
910
|
-
retainedObjects: IntegerType;
|
|
911
|
-
skippedYoung: IntegerType;
|
|
912
|
-
bytesFreed: IntegerType;
|
|
282
|
+
readonly repoGc: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StructType<{
|
|
283
|
+
readonly dryRun: import("@elaraai/east").BooleanType;
|
|
284
|
+
readonly minAge: import("@elaraai/east").OptionType<IntegerType>;
|
|
285
|
+
}>, StringType], StructType<{
|
|
286
|
+
readonly deletedObjects: IntegerType;
|
|
287
|
+
readonly deletedPartials: IntegerType;
|
|
288
|
+
readonly retainedObjects: IntegerType;
|
|
289
|
+
readonly skippedYoung: IntegerType;
|
|
290
|
+
readonly bytesFreed: IntegerType;
|
|
913
291
|
}>>;
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
* @param url - Base URL of the e3 API server
|
|
918
|
-
* @returns Array of package info
|
|
919
|
-
*/
|
|
920
|
-
readonly packageList: import("@elaraai/east").AsyncPlatformDefinition<[StringType], ArrayType<StructType<{
|
|
921
|
-
name: StringType;
|
|
922
|
-
version: StringType;
|
|
292
|
+
readonly packageList: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType], ArrayType<StructType<{
|
|
293
|
+
readonly name: StringType;
|
|
294
|
+
readonly version: StringType;
|
|
923
295
|
}>>>;
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
296
|
+
readonly packageGet: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType, StringType, StringType], StructType<{
|
|
297
|
+
readonly tasks: import("@elaraai/east").DictType<StringType, StringType>;
|
|
298
|
+
readonly data: StructType<{
|
|
299
|
+
readonly structure: import("@elaraai/east").RecursiveType<import("@elaraai/east").VariantType<{
|
|
300
|
+
readonly value: StructType<{
|
|
301
|
+
readonly type: import("@elaraai/east").RecursiveType<import("@elaraai/east").VariantType<{
|
|
302
|
+
readonly Never: NullType;
|
|
303
|
+
readonly Null: NullType;
|
|
304
|
+
readonly Boolean: NullType;
|
|
305
|
+
readonly Integer: NullType;
|
|
306
|
+
readonly Float: NullType;
|
|
307
|
+
readonly String: NullType;
|
|
308
|
+
readonly DateTime: NullType;
|
|
309
|
+
readonly Blob: NullType;
|
|
310
|
+
readonly Ref: import("@elaraai/east").RecursiveTypeMarker;
|
|
311
|
+
readonly Array: import("@elaraai/east").RecursiveTypeMarker;
|
|
312
|
+
readonly Set: import("@elaraai/east").RecursiveTypeMarker;
|
|
313
|
+
readonly Dict: StructType<{
|
|
314
|
+
readonly key: import("@elaraai/east").RecursiveTypeMarker;
|
|
315
|
+
readonly value: import("@elaraai/east").RecursiveTypeMarker;
|
|
316
|
+
}>;
|
|
317
|
+
readonly Struct: import("@elaraai/east").ArrayType<StructType<{
|
|
318
|
+
readonly name: StringType;
|
|
319
|
+
readonly type: import("@elaraai/east").RecursiveTypeMarker;
|
|
320
|
+
}>>;
|
|
321
|
+
readonly Variant: import("@elaraai/east").ArrayType<StructType<{
|
|
322
|
+
readonly name: StringType;
|
|
323
|
+
readonly type: import("@elaraai/east").RecursiveTypeMarker;
|
|
324
|
+
}>>;
|
|
325
|
+
readonly Recursive: import("@elaraai/east").VariantType<{
|
|
326
|
+
readonly ref: IntegerType;
|
|
327
|
+
readonly wrapper: StructType<{
|
|
328
|
+
readonly id: IntegerType;
|
|
329
|
+
readonly inner: import("@elaraai/east").RecursiveTypeMarker;
|
|
330
|
+
}>;
|
|
331
|
+
}>;
|
|
332
|
+
readonly Function: StructType<{
|
|
333
|
+
readonly inputs: import("@elaraai/east").ArrayType<import("@elaraai/east").RecursiveTypeMarker>;
|
|
334
|
+
readonly output: import("@elaraai/east").RecursiveTypeMarker;
|
|
335
|
+
}>;
|
|
336
|
+
readonly AsyncFunction: StructType<{
|
|
337
|
+
readonly inputs: import("@elaraai/east").ArrayType<import("@elaraai/east").RecursiveTypeMarker>;
|
|
338
|
+
readonly output: import("@elaraai/east").RecursiveTypeMarker;
|
|
339
|
+
}>;
|
|
340
|
+
readonly Vector: import("@elaraai/east").RecursiveTypeMarker;
|
|
341
|
+
readonly Matrix: import("@elaraai/east").RecursiveTypeMarker;
|
|
959
342
|
}>>;
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
343
|
+
readonly writable: import("@elaraai/east").BooleanType;
|
|
344
|
+
}>;
|
|
345
|
+
readonly struct: import("@elaraai/east").DictType<StringType, import("@elaraai/east").RecursiveTypeMarker>;
|
|
346
|
+
}>>;
|
|
347
|
+
readonly refs: import("@elaraai/east").DictType<StringType, import("@elaraai/east").VariantType<{
|
|
348
|
+
readonly unassigned: NullType;
|
|
349
|
+
readonly null: StructType<{
|
|
350
|
+
readonly versions: import("@elaraai/east").DictType<StringType, StringType>;
|
|
351
|
+
}>;
|
|
352
|
+
readonly value: StructType<{
|
|
353
|
+
readonly hash: StringType;
|
|
354
|
+
readonly versions: import("@elaraai/east").DictType<StringType, StringType>;
|
|
355
|
+
}>;
|
|
971
356
|
}>>;
|
|
972
|
-
value: StringType;
|
|
973
357
|
}>;
|
|
974
358
|
}>>;
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
* @returns Import result
|
|
981
|
-
*/
|
|
982
|
-
readonly packageImport: import("@elaraai/east").AsyncPlatformDefinition<[StringType, BlobType], StructType<{
|
|
983
|
-
name: StringType;
|
|
984
|
-
version: StringType;
|
|
985
|
-
packageHash: StringType;
|
|
986
|
-
objectCount: IntegerType;
|
|
359
|
+
readonly packageImport: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, BlobType, StringType], StructType<{
|
|
360
|
+
readonly name: StringType;
|
|
361
|
+
readonly version: StringType;
|
|
362
|
+
readonly packageHash: StringType;
|
|
363
|
+
readonly objectCount: IntegerType;
|
|
987
364
|
}>>;
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
*/
|
|
996
|
-
readonly packageExport: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType], BlobType>;
|
|
997
|
-
/**
|
|
998
|
-
* Removes a package from the repository.
|
|
999
|
-
*
|
|
1000
|
-
* @param url - Base URL of the e3 API server
|
|
1001
|
-
* @param name - Package name
|
|
1002
|
-
* @param version - Package version
|
|
1003
|
-
* @returns null on success
|
|
1004
|
-
*/
|
|
1005
|
-
readonly packageRemove: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType], NullType>;
|
|
1006
|
-
/**
|
|
1007
|
-
* Lists all workspaces in the repository.
|
|
1008
|
-
*
|
|
1009
|
-
* @param url - Base URL of the e3 API server
|
|
1010
|
-
* @returns Array of workspace info
|
|
1011
|
-
*/
|
|
1012
|
-
readonly workspaceList: import("@elaraai/east").AsyncPlatformDefinition<[StringType], ArrayType<StructType<{
|
|
1013
|
-
name: StringType;
|
|
1014
|
-
deployed: import("@elaraai/east").BooleanType;
|
|
1015
|
-
packageName: import("@elaraai/east").OptionType<StringType>;
|
|
1016
|
-
packageVersion: import("@elaraai/east").OptionType<StringType>;
|
|
365
|
+
readonly packageExport: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType, StringType, StringType], BlobType>;
|
|
366
|
+
readonly packageRemove: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType, StringType, StringType], NullType>;
|
|
367
|
+
readonly workspaceList: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType], ArrayType<StructType<{
|
|
368
|
+
readonly name: StringType;
|
|
369
|
+
readonly deployed: import("@elaraai/east").BooleanType;
|
|
370
|
+
readonly packageName: import("@elaraai/east").OptionType<StringType>;
|
|
371
|
+
readonly packageVersion: import("@elaraai/east").OptionType<StringType>;
|
|
1017
372
|
}>>>;
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
* @returns Created workspace info
|
|
1024
|
-
*/
|
|
1025
|
-
readonly workspaceCreate: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType], StructType<{
|
|
1026
|
-
name: StringType;
|
|
1027
|
-
deployed: import("@elaraai/east").BooleanType;
|
|
1028
|
-
packageName: import("@elaraai/east").OptionType<StringType>;
|
|
1029
|
-
packageVersion: import("@elaraai/east").OptionType<StringType>;
|
|
373
|
+
readonly workspaceCreate: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType, StringType], StructType<{
|
|
374
|
+
readonly name: StringType;
|
|
375
|
+
readonly deployed: import("@elaraai/east").BooleanType;
|
|
376
|
+
readonly packageName: import("@elaraai/east").OptionType<StringType>;
|
|
377
|
+
readonly packageVersion: import("@elaraai/east").OptionType<StringType>;
|
|
1030
378
|
}>>;
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
*/
|
|
1038
|
-
readonly workspaceGet: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType], StructType<{
|
|
1039
|
-
packageName: StringType;
|
|
1040
|
-
packageVersion: StringType;
|
|
1041
|
-
packageHash: StringType;
|
|
1042
|
-
deployedAt: import("@elaraai/east").DateTimeType;
|
|
1043
|
-
rootHash: StringType;
|
|
1044
|
-
rootUpdatedAt: import("@elaraai/east").DateTimeType;
|
|
379
|
+
readonly workspaceGet: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType, StringType], StructType<{
|
|
380
|
+
readonly packageName: StringType;
|
|
381
|
+
readonly packageVersion: StringType;
|
|
382
|
+
readonly packageHash: StringType;
|
|
383
|
+
readonly deployedAt: import("@elaraai/east").DateTimeType;
|
|
384
|
+
readonly currentRunId: import("@elaraai/east").OptionType<StringType>;
|
|
1045
385
|
}>>;
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
readonly workspaceStatus: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType], StructType<{
|
|
1054
|
-
workspace: StringType;
|
|
1055
|
-
lock: import("@elaraai/east").OptionType<StructType<{
|
|
1056
|
-
pid: IntegerType;
|
|
1057
|
-
acquiredAt: StringType;
|
|
1058
|
-
bootId: import("@elaraai/east").OptionType<StringType>;
|
|
1059
|
-
command: import("@elaraai/east").OptionType<StringType>;
|
|
386
|
+
readonly workspaceStatus: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType, StringType], StructType<{
|
|
387
|
+
readonly workspace: StringType;
|
|
388
|
+
readonly lock: import("@elaraai/east").OptionType<StructType<{
|
|
389
|
+
readonly pid: IntegerType;
|
|
390
|
+
readonly acquiredAt: StringType;
|
|
391
|
+
readonly bootId: import("@elaraai/east").OptionType<StringType>;
|
|
392
|
+
readonly command: import("@elaraai/east").OptionType<StringType>;
|
|
1060
393
|
}>>;
|
|
1061
|
-
datasets: ArrayType<StructType<{
|
|
1062
|
-
path: StringType;
|
|
1063
|
-
status: import("@elaraai/east").VariantType<{
|
|
1064
|
-
unset: NullType;
|
|
1065
|
-
stale: NullType;
|
|
1066
|
-
|
|
394
|
+
readonly datasets: ArrayType<StructType<{
|
|
395
|
+
readonly path: StringType;
|
|
396
|
+
readonly status: import("@elaraai/east").VariantType<{
|
|
397
|
+
readonly unset: NullType;
|
|
398
|
+
readonly stale: NullType;
|
|
399
|
+
readonly "up-to-date": NullType;
|
|
1067
400
|
}>;
|
|
1068
|
-
hash: import("@elaraai/east").OptionType<StringType>;
|
|
1069
|
-
isTaskOutput: import("@elaraai/east").BooleanType;
|
|
1070
|
-
producedBy: import("@elaraai/east").OptionType<StringType>;
|
|
401
|
+
readonly hash: import("@elaraai/east").OptionType<StringType>;
|
|
402
|
+
readonly isTaskOutput: import("@elaraai/east").BooleanType;
|
|
403
|
+
readonly producedBy: import("@elaraai/east").OptionType<StringType>;
|
|
1071
404
|
}>>;
|
|
1072
|
-
tasks: ArrayType<StructType<{
|
|
1073
|
-
name: StringType;
|
|
1074
|
-
hash: StringType;
|
|
1075
|
-
status: import("@elaraai/east").VariantType<{
|
|
1076
|
-
|
|
1077
|
-
cached: import("@elaraai/east").BooleanType;
|
|
405
|
+
readonly tasks: ArrayType<StructType<{
|
|
406
|
+
readonly name: StringType;
|
|
407
|
+
readonly hash: StringType;
|
|
408
|
+
readonly status: import("@elaraai/east").VariantType<{
|
|
409
|
+
readonly "up-to-date": StructType<{
|
|
410
|
+
readonly cached: import("@elaraai/east").BooleanType;
|
|
1078
411
|
}>;
|
|
1079
|
-
ready: NullType;
|
|
1080
|
-
waiting: StructType<{
|
|
1081
|
-
reason: StringType;
|
|
412
|
+
readonly ready: NullType;
|
|
413
|
+
readonly waiting: StructType<{
|
|
414
|
+
readonly reason: StringType;
|
|
1082
415
|
}>;
|
|
1083
|
-
|
|
1084
|
-
pid: import("@elaraai/east").OptionType<IntegerType>;
|
|
1085
|
-
startedAt: import("@elaraai/east").OptionType<StringType>;
|
|
416
|
+
readonly "in-progress": StructType<{
|
|
417
|
+
readonly pid: import("@elaraai/east").OptionType<IntegerType>;
|
|
418
|
+
readonly startedAt: import("@elaraai/east").OptionType<StringType>;
|
|
1086
419
|
}>;
|
|
1087
|
-
failed: StructType<{
|
|
1088
|
-
exitCode: IntegerType;
|
|
1089
|
-
completedAt: import("@elaraai/east").OptionType<StringType>;
|
|
420
|
+
readonly failed: StructType<{
|
|
421
|
+
readonly exitCode: IntegerType;
|
|
422
|
+
readonly completedAt: import("@elaraai/east").OptionType<StringType>;
|
|
1090
423
|
}>;
|
|
1091
|
-
error: StructType<{
|
|
1092
|
-
message: StringType;
|
|
1093
|
-
completedAt: import("@elaraai/east").OptionType<StringType>;
|
|
424
|
+
readonly error: StructType<{
|
|
425
|
+
readonly message: StringType;
|
|
426
|
+
readonly completedAt: import("@elaraai/east").OptionType<StringType>;
|
|
1094
427
|
}>;
|
|
1095
|
-
|
|
1096
|
-
pid: import("@elaraai/east").OptionType<IntegerType>;
|
|
1097
|
-
startedAt: import("@elaraai/east").OptionType<StringType>;
|
|
428
|
+
readonly "stale-running": StructType<{
|
|
429
|
+
readonly pid: import("@elaraai/east").OptionType<IntegerType>;
|
|
430
|
+
readonly startedAt: import("@elaraai/east").OptionType<StringType>;
|
|
1098
431
|
}>;
|
|
1099
432
|
}>;
|
|
1100
|
-
inputs: ArrayType<StringType>;
|
|
1101
|
-
output: StringType;
|
|
1102
|
-
dependsOn: ArrayType<StringType>;
|
|
433
|
+
readonly inputs: ArrayType<StringType>;
|
|
434
|
+
readonly output: StringType;
|
|
435
|
+
readonly dependsOn: ArrayType<StringType>;
|
|
1103
436
|
}>>;
|
|
1104
|
-
summary: StructType<{
|
|
1105
|
-
datasets: StructType<{
|
|
1106
|
-
total: IntegerType;
|
|
1107
|
-
unset: IntegerType;
|
|
1108
|
-
stale: IntegerType;
|
|
1109
|
-
upToDate: IntegerType;
|
|
437
|
+
readonly summary: StructType<{
|
|
438
|
+
readonly datasets: StructType<{
|
|
439
|
+
readonly total: IntegerType;
|
|
440
|
+
readonly unset: IntegerType;
|
|
441
|
+
readonly stale: IntegerType;
|
|
442
|
+
readonly upToDate: IntegerType;
|
|
1110
443
|
}>;
|
|
1111
|
-
tasks: StructType<{
|
|
1112
|
-
total: IntegerType;
|
|
1113
|
-
upToDate: IntegerType;
|
|
1114
|
-
ready: IntegerType;
|
|
1115
|
-
waiting: IntegerType;
|
|
1116
|
-
inProgress: IntegerType;
|
|
1117
|
-
failed: IntegerType;
|
|
1118
|
-
error: IntegerType;
|
|
1119
|
-
staleRunning: IntegerType;
|
|
444
|
+
readonly tasks: StructType<{
|
|
445
|
+
readonly total: IntegerType;
|
|
446
|
+
readonly upToDate: IntegerType;
|
|
447
|
+
readonly ready: IntegerType;
|
|
448
|
+
readonly waiting: IntegerType;
|
|
449
|
+
readonly inProgress: IntegerType;
|
|
450
|
+
readonly failed: IntegerType;
|
|
451
|
+
readonly error: IntegerType;
|
|
452
|
+
readonly staleRunning: IntegerType;
|
|
1120
453
|
}>;
|
|
1121
454
|
}>;
|
|
1122
455
|
}>>;
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
readonly
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
readonly workspaceDeploy: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType], NullType>;
|
|
1140
|
-
/**
|
|
1141
|
-
* Exports workspace as a package zip archive.
|
|
1142
|
-
*
|
|
1143
|
-
* @param url - Base URL of the e3 API server
|
|
1144
|
-
* @param name - Workspace name
|
|
1145
|
-
* @returns Zip archive as bytes
|
|
1146
|
-
*/
|
|
1147
|
-
readonly workspaceExport: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType], BlobType>;
|
|
1148
|
-
/**
|
|
1149
|
-
* Lists field names at root of workspace dataset tree.
|
|
1150
|
-
*
|
|
1151
|
-
* @param url - Base URL of the e3 API server
|
|
1152
|
-
* @param workspace - Workspace name
|
|
1153
|
-
* @returns Array of field names
|
|
1154
|
-
*/
|
|
1155
|
-
readonly datasetList: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType], ArrayType<StringType>>;
|
|
1156
|
-
/**
|
|
1157
|
-
* Lists field names at a path in workspace dataset tree.
|
|
1158
|
-
*
|
|
1159
|
-
* @param url - Base URL of the e3 API server
|
|
1160
|
-
* @param workspace - Workspace name
|
|
1161
|
-
* @param path - Path to the dataset
|
|
1162
|
-
* @returns Array of field names
|
|
1163
|
-
*/
|
|
1164
|
-
readonly datasetListAt: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, ArrayType<import("@elaraai/east").VariantType<{
|
|
1165
|
-
field: StringType;
|
|
1166
|
-
}>>], ArrayType<StringType>>;
|
|
1167
|
-
/**
|
|
1168
|
-
* Gets a dataset value as raw BEAST2 bytes.
|
|
1169
|
-
*
|
|
1170
|
-
* @param url - Base URL of the e3 API server
|
|
1171
|
-
* @param workspace - Workspace name
|
|
1172
|
-
* @param path - Path to the dataset
|
|
1173
|
-
* @returns Raw BEAST2 bytes
|
|
1174
|
-
*/
|
|
1175
|
-
readonly datasetGet: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, ArrayType<import("@elaraai/east").VariantType<{
|
|
1176
|
-
field: StringType;
|
|
1177
|
-
}>>], BlobType>;
|
|
1178
|
-
/**
|
|
1179
|
-
* Sets a dataset value from raw BEAST2 bytes.
|
|
1180
|
-
*
|
|
1181
|
-
* @param url - Base URL of the e3 API server
|
|
1182
|
-
* @param workspace - Workspace name
|
|
1183
|
-
* @param path - Path to the dataset
|
|
1184
|
-
* @param data - Raw BEAST2 encoded value
|
|
1185
|
-
* @returns null on success
|
|
1186
|
-
*/
|
|
1187
|
-
readonly datasetSet: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, ArrayType<import("@elaraai/east").VariantType<{
|
|
1188
|
-
field: StringType;
|
|
1189
|
-
}>>, BlobType], NullType>;
|
|
1190
|
-
/**
|
|
1191
|
-
* Lists tasks in a workspace.
|
|
1192
|
-
*
|
|
1193
|
-
* @param url - Base URL of the e3 API server
|
|
1194
|
-
* @param workspace - Workspace name
|
|
1195
|
-
* @returns Array of task info
|
|
1196
|
-
*/
|
|
1197
|
-
readonly taskList: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType], ArrayType<StructType<{
|
|
1198
|
-
name: StringType;
|
|
1199
|
-
hash: StringType;
|
|
456
|
+
readonly workspaceRemove: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType, StringType], NullType>;
|
|
457
|
+
readonly workspaceDeploy: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType, StringType, StringType], NullType>;
|
|
458
|
+
readonly workspaceExport: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType, StringType], BlobType>;
|
|
459
|
+
readonly datasetList: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType, StringType], ArrayType<StringType>>;
|
|
460
|
+
readonly datasetListAt: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType, ArrayType<import("@elaraai/east").VariantType<{
|
|
461
|
+
readonly field: StringType;
|
|
462
|
+
}>>, StringType], ArrayType<StringType>>;
|
|
463
|
+
readonly datasetGet: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType, ArrayType<import("@elaraai/east").VariantType<{
|
|
464
|
+
readonly field: StringType;
|
|
465
|
+
}>>, StringType], BlobType>;
|
|
466
|
+
readonly datasetSet: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType, ArrayType<import("@elaraai/east").VariantType<{
|
|
467
|
+
readonly field: StringType;
|
|
468
|
+
}>>, BlobType, StringType], NullType>;
|
|
469
|
+
readonly taskList: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType, StringType], ArrayType<StructType<{
|
|
470
|
+
readonly name: StringType;
|
|
471
|
+
readonly hash: StringType;
|
|
1200
472
|
}>>>;
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
* @returns Task details
|
|
1208
|
-
*/
|
|
1209
|
-
readonly taskGet: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType], StructType<{
|
|
1210
|
-
name: StringType;
|
|
1211
|
-
hash: StringType;
|
|
1212
|
-
commandIr: StringType;
|
|
1213
|
-
inputs: ArrayType<ArrayType<import("@elaraai/east").VariantType<{
|
|
1214
|
-
field: StringType;
|
|
473
|
+
readonly taskGet: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType, StringType, StringType], StructType<{
|
|
474
|
+
readonly name: StringType;
|
|
475
|
+
readonly hash: StringType;
|
|
476
|
+
readonly commandIr: StringType;
|
|
477
|
+
readonly inputs: ArrayType<ArrayType<import("@elaraai/east").VariantType<{
|
|
478
|
+
readonly field: StringType;
|
|
1215
479
|
}>>>;
|
|
1216
|
-
output: ArrayType<import("@elaraai/east").VariantType<{
|
|
1217
|
-
field: StringType;
|
|
480
|
+
readonly output: ArrayType<import("@elaraai/east").VariantType<{
|
|
481
|
+
readonly field: StringType;
|
|
1218
482
|
}>>;
|
|
483
|
+
readonly kind: import("@elaraai/east").OptionType<StringType>;
|
|
484
|
+
readonly metadata: import("@elaraai/east").OptionType<BlobType>;
|
|
1219
485
|
}>>;
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
concurrency: import("@elaraai/east").OptionType<IntegerType>;
|
|
1243
|
-
force: import("@elaraai/east").BooleanType;
|
|
1244
|
-
filter: import("@elaraai/east").OptionType<StringType>;
|
|
1245
|
-
}>], StructType<{
|
|
1246
|
-
success: import("@elaraai/east").BooleanType;
|
|
1247
|
-
executed: IntegerType;
|
|
1248
|
-
cached: IntegerType;
|
|
1249
|
-
failed: IntegerType;
|
|
1250
|
-
skipped: IntegerType;
|
|
1251
|
-
tasks: ArrayType<StructType<{
|
|
1252
|
-
name: StringType;
|
|
1253
|
-
cached: import("@elaraai/east").BooleanType;
|
|
1254
|
-
state: import("@elaraai/east").VariantType<{
|
|
1255
|
-
success: NullType;
|
|
1256
|
-
failed: StructType<{
|
|
1257
|
-
exitCode: IntegerType;
|
|
486
|
+
readonly dataflowStart: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType, StructType<{
|
|
487
|
+
readonly concurrency: import("@elaraai/east").OptionType<IntegerType>;
|
|
488
|
+
readonly force: import("@elaraai/east").BooleanType;
|
|
489
|
+
readonly filter: import("@elaraai/east").OptionType<StringType>;
|
|
490
|
+
}>, StringType], NullType>;
|
|
491
|
+
readonly dataflowExecute: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType, StructType<{
|
|
492
|
+
readonly concurrency: import("@elaraai/east").OptionType<IntegerType>;
|
|
493
|
+
readonly force: import("@elaraai/east").BooleanType;
|
|
494
|
+
readonly filter: import("@elaraai/east").OptionType<StringType>;
|
|
495
|
+
}>, StringType], StructType<{
|
|
496
|
+
readonly success: import("@elaraai/east").BooleanType;
|
|
497
|
+
readonly executed: IntegerType;
|
|
498
|
+
readonly cached: IntegerType;
|
|
499
|
+
readonly failed: IntegerType;
|
|
500
|
+
readonly skipped: IntegerType;
|
|
501
|
+
readonly tasks: ArrayType<StructType<{
|
|
502
|
+
readonly name: StringType;
|
|
503
|
+
readonly cached: import("@elaraai/east").BooleanType;
|
|
504
|
+
readonly state: import("@elaraai/east").VariantType<{
|
|
505
|
+
readonly success: NullType;
|
|
506
|
+
readonly failed: StructType<{
|
|
507
|
+
readonly exitCode: IntegerType;
|
|
1258
508
|
}>;
|
|
1259
|
-
error: StructType<{
|
|
1260
|
-
message: StringType;
|
|
509
|
+
readonly error: StructType<{
|
|
510
|
+
readonly message: StringType;
|
|
1261
511
|
}>;
|
|
1262
|
-
skipped: NullType;
|
|
512
|
+
readonly skipped: NullType;
|
|
1263
513
|
}>;
|
|
1264
|
-
duration: import("@elaraai/east").FloatType;
|
|
514
|
+
readonly duration: import("@elaraai/east").FloatType;
|
|
1265
515
|
}>>;
|
|
1266
|
-
duration: import("@elaraai/east").FloatType;
|
|
516
|
+
readonly duration: import("@elaraai/east").FloatType;
|
|
1267
517
|
}>>;
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
readonly dataflowGraph: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType], StructType<{
|
|
1276
|
-
tasks: ArrayType<StructType<{
|
|
1277
|
-
name: StringType;
|
|
1278
|
-
hash: StringType;
|
|
1279
|
-
inputs: ArrayType<StringType>;
|
|
1280
|
-
output: StringType;
|
|
1281
|
-
dependsOn: ArrayType<StringType>;
|
|
518
|
+
readonly dataflowGraph: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType, StringType], StructType<{
|
|
519
|
+
readonly tasks: ArrayType<StructType<{
|
|
520
|
+
readonly name: StringType;
|
|
521
|
+
readonly hash: StringType;
|
|
522
|
+
readonly inputs: ArrayType<StringType>;
|
|
523
|
+
readonly output: StringType;
|
|
524
|
+
readonly dependsOn: ArrayType<StringType>;
|
|
1282
525
|
}>>;
|
|
1283
526
|
}>>;
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
stream: StringType;
|
|
1295
|
-
offset: IntegerType;
|
|
1296
|
-
limit: IntegerType;
|
|
1297
|
-
}>], StructType<{
|
|
1298
|
-
data: StringType;
|
|
1299
|
-
offset: IntegerType;
|
|
1300
|
-
size: IntegerType;
|
|
1301
|
-
totalSize: IntegerType;
|
|
1302
|
-
complete: import("@elaraai/east").BooleanType;
|
|
527
|
+
readonly taskLogs: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType, StringType, StringType, StructType<{
|
|
528
|
+
readonly stream: StringType;
|
|
529
|
+
readonly offset: IntegerType;
|
|
530
|
+
readonly limit: IntegerType;
|
|
531
|
+
}>, StringType], StructType<{
|
|
532
|
+
readonly data: StringType;
|
|
533
|
+
readonly offset: IntegerType;
|
|
534
|
+
readonly size: IntegerType;
|
|
535
|
+
readonly totalSize: IntegerType;
|
|
536
|
+
readonly complete: import("@elaraai/east").BooleanType;
|
|
1303
537
|
}>>;
|
|
1304
|
-
/**
|
|
1305
|
-
* Node.js implementation of e3 API platform functions.
|
|
1306
|
-
*
|
|
1307
|
-
* Pass this to {@link East.compileAsync} to enable e3 API operations.
|
|
1308
|
-
*/
|
|
1309
538
|
readonly Implementation: PlatformFunction[];
|
|
1310
|
-
/**
|
|
1311
|
-
* Type definitions for platform operations.
|
|
1312
|
-
*/
|
|
1313
539
|
readonly Types: {
|
|
1314
540
|
readonly RepositoryStatus: StructType<{
|
|
1315
|
-
path: StringType;
|
|
1316
|
-
objectCount: IntegerType;
|
|
1317
|
-
packageCount: IntegerType;
|
|
1318
|
-
workspaceCount: IntegerType;
|
|
541
|
+
readonly path: StringType;
|
|
542
|
+
readonly objectCount: IntegerType;
|
|
543
|
+
readonly packageCount: IntegerType;
|
|
544
|
+
readonly workspaceCount: IntegerType;
|
|
1319
545
|
}>;
|
|
1320
546
|
readonly GcRequest: StructType<{
|
|
1321
|
-
dryRun: import("@elaraai/east").BooleanType;
|
|
1322
|
-
minAge: import("@elaraai/east").OptionType<IntegerType>;
|
|
547
|
+
readonly dryRun: import("@elaraai/east").BooleanType;
|
|
548
|
+
readonly minAge: import("@elaraai/east").OptionType<IntegerType>;
|
|
1323
549
|
}>;
|
|
1324
550
|
readonly GcResult: StructType<{
|
|
1325
|
-
deletedObjects: IntegerType;
|
|
1326
|
-
deletedPartials: IntegerType;
|
|
1327
|
-
retainedObjects: IntegerType;
|
|
1328
|
-
skippedYoung: IntegerType;
|
|
1329
|
-
bytesFreed: IntegerType;
|
|
551
|
+
readonly deletedObjects: IntegerType;
|
|
552
|
+
readonly deletedPartials: IntegerType;
|
|
553
|
+
readonly retainedObjects: IntegerType;
|
|
554
|
+
readonly skippedYoung: IntegerType;
|
|
555
|
+
readonly bytesFreed: IntegerType;
|
|
1330
556
|
}>;
|
|
1331
557
|
readonly PackageListItem: StructType<{
|
|
1332
|
-
name: StringType;
|
|
1333
|
-
version: StringType;
|
|
558
|
+
readonly name: StringType;
|
|
559
|
+
readonly version: StringType;
|
|
1334
560
|
}>;
|
|
1335
561
|
readonly PackageImportResult: StructType<{
|
|
1336
|
-
name: StringType;
|
|
1337
|
-
version: StringType;
|
|
1338
|
-
packageHash: StringType;
|
|
1339
|
-
objectCount: IntegerType;
|
|
562
|
+
readonly name: StringType;
|
|
563
|
+
readonly version: StringType;
|
|
564
|
+
readonly packageHash: StringType;
|
|
565
|
+
readonly objectCount: IntegerType;
|
|
1340
566
|
}>;
|
|
1341
567
|
readonly WorkspaceInfo: StructType<{
|
|
1342
|
-
name: StringType;
|
|
1343
|
-
deployed: import("@elaraai/east").BooleanType;
|
|
1344
|
-
packageName: import("@elaraai/east").OptionType<StringType>;
|
|
1345
|
-
packageVersion: import("@elaraai/east").OptionType<StringType>;
|
|
568
|
+
readonly name: StringType;
|
|
569
|
+
readonly deployed: import("@elaraai/east").BooleanType;
|
|
570
|
+
readonly packageName: import("@elaraai/east").OptionType<StringType>;
|
|
571
|
+
readonly packageVersion: import("@elaraai/east").OptionType<StringType>;
|
|
1346
572
|
}>;
|
|
1347
573
|
readonly WorkspaceStatusResult: StructType<{
|
|
1348
|
-
workspace: StringType;
|
|
1349
|
-
lock: import("@elaraai/east").OptionType<StructType<{
|
|
1350
|
-
pid: IntegerType;
|
|
1351
|
-
acquiredAt: StringType;
|
|
1352
|
-
bootId: import("@elaraai/east").OptionType<StringType>;
|
|
1353
|
-
command: import("@elaraai/east").OptionType<StringType>;
|
|
574
|
+
readonly workspace: StringType;
|
|
575
|
+
readonly lock: import("@elaraai/east").OptionType<StructType<{
|
|
576
|
+
readonly pid: IntegerType;
|
|
577
|
+
readonly acquiredAt: StringType;
|
|
578
|
+
readonly bootId: import("@elaraai/east").OptionType<StringType>;
|
|
579
|
+
readonly command: import("@elaraai/east").OptionType<StringType>;
|
|
1354
580
|
}>>;
|
|
1355
|
-
datasets: ArrayType<StructType<{
|
|
1356
|
-
path: StringType;
|
|
1357
|
-
status: import("@elaraai/east").VariantType<{
|
|
1358
|
-
unset: NullType;
|
|
1359
|
-
stale: NullType;
|
|
1360
|
-
|
|
581
|
+
readonly datasets: ArrayType<StructType<{
|
|
582
|
+
readonly path: StringType;
|
|
583
|
+
readonly status: import("@elaraai/east").VariantType<{
|
|
584
|
+
readonly unset: NullType;
|
|
585
|
+
readonly stale: NullType;
|
|
586
|
+
readonly "up-to-date": NullType;
|
|
1361
587
|
}>;
|
|
1362
|
-
hash: import("@elaraai/east").OptionType<StringType>;
|
|
1363
|
-
isTaskOutput: import("@elaraai/east").BooleanType;
|
|
1364
|
-
producedBy: import("@elaraai/east").OptionType<StringType>;
|
|
588
|
+
readonly hash: import("@elaraai/east").OptionType<StringType>;
|
|
589
|
+
readonly isTaskOutput: import("@elaraai/east").BooleanType;
|
|
590
|
+
readonly producedBy: import("@elaraai/east").OptionType<StringType>;
|
|
1365
591
|
}>>;
|
|
1366
|
-
tasks: ArrayType<StructType<{
|
|
1367
|
-
name: StringType;
|
|
1368
|
-
hash: StringType;
|
|
1369
|
-
status: import("@elaraai/east").VariantType<{
|
|
1370
|
-
|
|
1371
|
-
cached: import("@elaraai/east").BooleanType;
|
|
592
|
+
readonly tasks: ArrayType<StructType<{
|
|
593
|
+
readonly name: StringType;
|
|
594
|
+
readonly hash: StringType;
|
|
595
|
+
readonly status: import("@elaraai/east").VariantType<{
|
|
596
|
+
readonly "up-to-date": StructType<{
|
|
597
|
+
readonly cached: import("@elaraai/east").BooleanType;
|
|
1372
598
|
}>;
|
|
1373
|
-
ready: NullType;
|
|
1374
|
-
waiting: StructType<{
|
|
1375
|
-
reason: StringType;
|
|
599
|
+
readonly ready: NullType;
|
|
600
|
+
readonly waiting: StructType<{
|
|
601
|
+
readonly reason: StringType;
|
|
1376
602
|
}>;
|
|
1377
|
-
|
|
1378
|
-
pid: import("@elaraai/east").OptionType<IntegerType>;
|
|
1379
|
-
startedAt: import("@elaraai/east").OptionType<StringType>;
|
|
603
|
+
readonly "in-progress": StructType<{
|
|
604
|
+
readonly pid: import("@elaraai/east").OptionType<IntegerType>;
|
|
605
|
+
readonly startedAt: import("@elaraai/east").OptionType<StringType>;
|
|
1380
606
|
}>;
|
|
1381
|
-
failed: StructType<{
|
|
1382
|
-
exitCode: IntegerType;
|
|
1383
|
-
completedAt: import("@elaraai/east").OptionType<StringType>;
|
|
607
|
+
readonly failed: StructType<{
|
|
608
|
+
readonly exitCode: IntegerType;
|
|
609
|
+
readonly completedAt: import("@elaraai/east").OptionType<StringType>;
|
|
1384
610
|
}>;
|
|
1385
|
-
error: StructType<{
|
|
1386
|
-
message: StringType;
|
|
1387
|
-
completedAt: import("@elaraai/east").OptionType<StringType>;
|
|
611
|
+
readonly error: StructType<{
|
|
612
|
+
readonly message: StringType;
|
|
613
|
+
readonly completedAt: import("@elaraai/east").OptionType<StringType>;
|
|
1388
614
|
}>;
|
|
1389
|
-
|
|
1390
|
-
pid: import("@elaraai/east").OptionType<IntegerType>;
|
|
1391
|
-
startedAt: import("@elaraai/east").OptionType<StringType>;
|
|
615
|
+
readonly "stale-running": StructType<{
|
|
616
|
+
readonly pid: import("@elaraai/east").OptionType<IntegerType>;
|
|
617
|
+
readonly startedAt: import("@elaraai/east").OptionType<StringType>;
|
|
1392
618
|
}>;
|
|
1393
619
|
}>;
|
|
1394
|
-
inputs: ArrayType<StringType>;
|
|
1395
|
-
output: StringType;
|
|
1396
|
-
dependsOn: ArrayType<StringType>;
|
|
620
|
+
readonly inputs: ArrayType<StringType>;
|
|
621
|
+
readonly output: StringType;
|
|
622
|
+
readonly dependsOn: ArrayType<StringType>;
|
|
1397
623
|
}>>;
|
|
1398
|
-
summary: StructType<{
|
|
1399
|
-
datasets: StructType<{
|
|
1400
|
-
total: IntegerType;
|
|
1401
|
-
unset: IntegerType;
|
|
1402
|
-
stale: IntegerType;
|
|
1403
|
-
upToDate: IntegerType;
|
|
624
|
+
readonly summary: StructType<{
|
|
625
|
+
readonly datasets: StructType<{
|
|
626
|
+
readonly total: IntegerType;
|
|
627
|
+
readonly unset: IntegerType;
|
|
628
|
+
readonly stale: IntegerType;
|
|
629
|
+
readonly upToDate: IntegerType;
|
|
1404
630
|
}>;
|
|
1405
|
-
tasks: StructType<{
|
|
1406
|
-
total: IntegerType;
|
|
1407
|
-
upToDate: IntegerType;
|
|
1408
|
-
ready: IntegerType;
|
|
1409
|
-
waiting: IntegerType;
|
|
1410
|
-
inProgress: IntegerType;
|
|
1411
|
-
failed: IntegerType;
|
|
1412
|
-
error: IntegerType;
|
|
1413
|
-
staleRunning: IntegerType;
|
|
631
|
+
readonly tasks: StructType<{
|
|
632
|
+
readonly total: IntegerType;
|
|
633
|
+
readonly upToDate: IntegerType;
|
|
634
|
+
readonly ready: IntegerType;
|
|
635
|
+
readonly waiting: IntegerType;
|
|
636
|
+
readonly inProgress: IntegerType;
|
|
637
|
+
readonly failed: IntegerType;
|
|
638
|
+
readonly error: IntegerType;
|
|
639
|
+
readonly staleRunning: IntegerType;
|
|
1414
640
|
}>;
|
|
1415
641
|
}>;
|
|
1416
642
|
}>;
|
|
1417
643
|
readonly TaskListItem: StructType<{
|
|
1418
|
-
name: StringType;
|
|
1419
|
-
hash: StringType;
|
|
644
|
+
readonly name: StringType;
|
|
645
|
+
readonly hash: StringType;
|
|
1420
646
|
}>;
|
|
1421
647
|
readonly TaskDetails: StructType<{
|
|
1422
|
-
name: StringType;
|
|
1423
|
-
hash: StringType;
|
|
1424
|
-
commandIr: StringType;
|
|
1425
|
-
inputs: ArrayType<ArrayType<import("@elaraai/east").VariantType<{
|
|
1426
|
-
field: StringType;
|
|
648
|
+
readonly name: StringType;
|
|
649
|
+
readonly hash: StringType;
|
|
650
|
+
readonly commandIr: StringType;
|
|
651
|
+
readonly inputs: ArrayType<ArrayType<import("@elaraai/east").VariantType<{
|
|
652
|
+
readonly field: StringType;
|
|
1427
653
|
}>>>;
|
|
1428
|
-
output: ArrayType<import("@elaraai/east").VariantType<{
|
|
1429
|
-
field: StringType;
|
|
654
|
+
readonly output: ArrayType<import("@elaraai/east").VariantType<{
|
|
655
|
+
readonly field: StringType;
|
|
1430
656
|
}>>;
|
|
657
|
+
readonly kind: import("@elaraai/east").OptionType<StringType>;
|
|
658
|
+
readonly metadata: import("@elaraai/east").OptionType<BlobType>;
|
|
1431
659
|
}>;
|
|
1432
660
|
readonly DataflowRequest: StructType<{
|
|
1433
|
-
concurrency: import("@elaraai/east").OptionType<IntegerType>;
|
|
1434
|
-
force: import("@elaraai/east").BooleanType;
|
|
1435
|
-
filter: import("@elaraai/east").OptionType<StringType>;
|
|
661
|
+
readonly concurrency: import("@elaraai/east").OptionType<IntegerType>;
|
|
662
|
+
readonly force: import("@elaraai/east").BooleanType;
|
|
663
|
+
readonly filter: import("@elaraai/east").OptionType<StringType>;
|
|
1436
664
|
}>;
|
|
1437
665
|
readonly DataflowGraph: StructType<{
|
|
1438
|
-
tasks: ArrayType<StructType<{
|
|
1439
|
-
name: StringType;
|
|
1440
|
-
hash: StringType;
|
|
1441
|
-
inputs: ArrayType<StringType>;
|
|
1442
|
-
output: StringType;
|
|
1443
|
-
dependsOn: ArrayType<StringType>;
|
|
666
|
+
readonly tasks: ArrayType<StructType<{
|
|
667
|
+
readonly name: StringType;
|
|
668
|
+
readonly hash: StringType;
|
|
669
|
+
readonly inputs: ArrayType<StringType>;
|
|
670
|
+
readonly output: StringType;
|
|
671
|
+
readonly dependsOn: ArrayType<StringType>;
|
|
1444
672
|
}>>;
|
|
1445
673
|
}>;
|
|
1446
674
|
readonly DataflowResult: StructType<{
|
|
1447
|
-
success: import("@elaraai/east").BooleanType;
|
|
1448
|
-
executed: IntegerType;
|
|
1449
|
-
cached: IntegerType;
|
|
1450
|
-
failed: IntegerType;
|
|
1451
|
-
skipped: IntegerType;
|
|
1452
|
-
tasks: ArrayType<StructType<{
|
|
1453
|
-
name: StringType;
|
|
1454
|
-
cached: import("@elaraai/east").BooleanType;
|
|
1455
|
-
state: import("@elaraai/east").VariantType<{
|
|
1456
|
-
success: NullType;
|
|
1457
|
-
failed: StructType<{
|
|
1458
|
-
exitCode: IntegerType;
|
|
675
|
+
readonly success: import("@elaraai/east").BooleanType;
|
|
676
|
+
readonly executed: IntegerType;
|
|
677
|
+
readonly cached: IntegerType;
|
|
678
|
+
readonly failed: IntegerType;
|
|
679
|
+
readonly skipped: IntegerType;
|
|
680
|
+
readonly tasks: ArrayType<StructType<{
|
|
681
|
+
readonly name: StringType;
|
|
682
|
+
readonly cached: import("@elaraai/east").BooleanType;
|
|
683
|
+
readonly state: import("@elaraai/east").VariantType<{
|
|
684
|
+
readonly success: NullType;
|
|
685
|
+
readonly failed: StructType<{
|
|
686
|
+
readonly exitCode: IntegerType;
|
|
1459
687
|
}>;
|
|
1460
|
-
error: StructType<{
|
|
1461
|
-
message: StringType;
|
|
688
|
+
readonly error: StructType<{
|
|
689
|
+
readonly message: StringType;
|
|
1462
690
|
}>;
|
|
1463
|
-
skipped: NullType;
|
|
691
|
+
readonly skipped: NullType;
|
|
1464
692
|
}>;
|
|
1465
|
-
duration: import("@elaraai/east").FloatType;
|
|
693
|
+
readonly duration: import("@elaraai/east").FloatType;
|
|
1466
694
|
}>>;
|
|
1467
|
-
duration: import("@elaraai/east").FloatType;
|
|
695
|
+
readonly duration: import("@elaraai/east").FloatType;
|
|
1468
696
|
}>;
|
|
1469
697
|
readonly LogChunk: StructType<{
|
|
1470
|
-
data: StringType;
|
|
1471
|
-
offset: IntegerType;
|
|
1472
|
-
size: IntegerType;
|
|
1473
|
-
totalSize: IntegerType;
|
|
1474
|
-
complete: import("@elaraai/east").BooleanType;
|
|
698
|
+
readonly data: StringType;
|
|
699
|
+
readonly offset: IntegerType;
|
|
700
|
+
readonly size: IntegerType;
|
|
701
|
+
readonly totalSize: IntegerType;
|
|
702
|
+
readonly complete: import("@elaraai/east").BooleanType;
|
|
1475
703
|
}>;
|
|
1476
704
|
readonly LogOptions: StructType<{
|
|
1477
|
-
stream: StringType;
|
|
1478
|
-
offset: IntegerType;
|
|
1479
|
-
limit: IntegerType;
|
|
705
|
+
readonly stream: StringType;
|
|
706
|
+
readonly offset: IntegerType;
|
|
707
|
+
readonly limit: IntegerType;
|
|
1480
708
|
}>;
|
|
1481
709
|
};
|
|
1482
710
|
};
|