@elaraai/e3-api-server 0.0.1-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +50 -0
- package/README.md +156 -0
- package/dist/src/beast2.d.ts +20 -0
- package/dist/src/beast2.d.ts.map +1 -0
- package/dist/src/beast2.js +47 -0
- package/dist/src/beast2.js.map +1 -0
- package/dist/src/cli.d.ts +7 -0
- package/dist/src/cli.d.ts.map +1 -0
- package/dist/src/cli.js +34 -0
- package/dist/src/cli.js.map +1 -0
- package/dist/src/errors.d.ts +10 -0
- package/dist/src/errors.d.ts.map +1 -0
- package/dist/src/errors.js +73 -0
- package/dist/src/errors.js.map +1 -0
- package/dist/src/index.d.ts +13 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +13 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/routes/datasets.d.ts +7 -0
- package/dist/src/routes/datasets.d.ts.map +1 -0
- package/dist/src/routes/datasets.js +98 -0
- package/dist/src/routes/datasets.js.map +1 -0
- package/dist/src/routes/executions.d.ts +7 -0
- package/dist/src/routes/executions.d.ts.map +1 -0
- package/dist/src/routes/executions.js +303 -0
- package/dist/src/routes/executions.js.map +1 -0
- package/dist/src/routes/packages.d.ts +7 -0
- package/dist/src/routes/packages.d.ts.map +1 -0
- package/dist/src/routes/packages.js +124 -0
- package/dist/src/routes/packages.js.map +1 -0
- package/dist/src/routes/repository.d.ts +7 -0
- package/dist/src/routes/repository.d.ts.map +1 -0
- package/dist/src/routes/repository.js +67 -0
- package/dist/src/routes/repository.js.map +1 -0
- package/dist/src/routes/tasks.d.ts +7 -0
- package/dist/src/routes/tasks.d.ts.map +1 -0
- package/dist/src/routes/tasks.js +58 -0
- package/dist/src/routes/tasks.js.map +1 -0
- package/dist/src/routes/workspaces.d.ts +7 -0
- package/dist/src/routes/workspaces.d.ts.map +1 -0
- package/dist/src/routes/workspaces.js +133 -0
- package/dist/src/routes/workspaces.js.map +1 -0
- package/dist/src/server.d.ts +37 -0
- package/dist/src/server.d.ts.map +1 -0
- package/dist/src/server.js +83 -0
- package/dist/src/server.js.map +1 -0
- package/dist/src/types.d.ts +1310 -0
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/types.js +471 -0
- package/dist/src/types.js.map +1 -0
- package/dist/src/utils.d.ts +25 -0
- package/dist/src/utils.d.ts.map +1 -0
- package/dist/src/utils.js +27 -0
- package/dist/src/utils.js.map +1 -0
- package/package.json +58 -0
|
@@ -0,0 +1,1310 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Licensed under BSL 1.1. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* API types for e3-api-server and e3-api-client.
|
|
7
|
+
*
|
|
8
|
+
* All types are East types for BEAST2 serialization.
|
|
9
|
+
*/
|
|
10
|
+
import { VariantType, StructType, ArrayType, OptionType, StringType, IntegerType, FloatType, BooleanType, NullType, type EastType, type ValueTypeOf } from '@elaraai/east';
|
|
11
|
+
export declare const WorkspaceNotFoundErrorType: StructType<{
|
|
12
|
+
workspace: StringType;
|
|
13
|
+
}>;
|
|
14
|
+
export declare const WorkspaceNotDeployedErrorType: StructType<{
|
|
15
|
+
workspace: StringType;
|
|
16
|
+
}>;
|
|
17
|
+
export declare const WorkspaceExistsErrorType: StructType<{
|
|
18
|
+
workspace: StringType;
|
|
19
|
+
}>;
|
|
20
|
+
export declare const LockHolderType: StructType<{
|
|
21
|
+
pid: IntegerType;
|
|
22
|
+
acquiredAt: StringType;
|
|
23
|
+
bootId: OptionType<StringType>;
|
|
24
|
+
command: OptionType<StringType>;
|
|
25
|
+
}>;
|
|
26
|
+
export declare const WorkspaceLockedErrorType: StructType<{
|
|
27
|
+
workspace: StringType;
|
|
28
|
+
holder: VariantType<{
|
|
29
|
+
unknown: NullType;
|
|
30
|
+
known: StructType<{
|
|
31
|
+
pid: IntegerType;
|
|
32
|
+
acquiredAt: StringType;
|
|
33
|
+
bootId: OptionType<StringType>;
|
|
34
|
+
command: OptionType<StringType>;
|
|
35
|
+
}>;
|
|
36
|
+
}>;
|
|
37
|
+
}>;
|
|
38
|
+
export declare const PackageNotFoundErrorType: StructType<{
|
|
39
|
+
packageName: StringType;
|
|
40
|
+
version: OptionType<StringType>;
|
|
41
|
+
}>;
|
|
42
|
+
export declare const PackageExistsErrorType: StructType<{
|
|
43
|
+
packageName: StringType;
|
|
44
|
+
version: StringType;
|
|
45
|
+
}>;
|
|
46
|
+
export declare const PackageInvalidErrorType: StructType<{
|
|
47
|
+
reason: StringType;
|
|
48
|
+
}>;
|
|
49
|
+
export declare const DatasetNotFoundErrorType: StructType<{
|
|
50
|
+
workspace: StringType;
|
|
51
|
+
path: StringType;
|
|
52
|
+
}>;
|
|
53
|
+
export declare const TaskNotFoundErrorType: StructType<{
|
|
54
|
+
task: StringType;
|
|
55
|
+
}>;
|
|
56
|
+
export declare const ObjectNotFoundErrorType: StructType<{
|
|
57
|
+
hash: StringType;
|
|
58
|
+
}>;
|
|
59
|
+
export declare const DataflowErrorType: StructType<{
|
|
60
|
+
message: StringType;
|
|
61
|
+
}>;
|
|
62
|
+
export declare const PermissionDeniedErrorType: StructType<{
|
|
63
|
+
path: StringType;
|
|
64
|
+
}>;
|
|
65
|
+
export declare const InternalErrorType: StructType<{
|
|
66
|
+
message: StringType;
|
|
67
|
+
}>;
|
|
68
|
+
export declare const ErrorType: VariantType<{
|
|
69
|
+
workspace_not_found: StructType<{
|
|
70
|
+
workspace: StringType;
|
|
71
|
+
}>;
|
|
72
|
+
workspace_not_deployed: StructType<{
|
|
73
|
+
workspace: StringType;
|
|
74
|
+
}>;
|
|
75
|
+
workspace_exists: StructType<{
|
|
76
|
+
workspace: StringType;
|
|
77
|
+
}>;
|
|
78
|
+
workspace_locked: StructType<{
|
|
79
|
+
workspace: StringType;
|
|
80
|
+
holder: VariantType<{
|
|
81
|
+
unknown: NullType;
|
|
82
|
+
known: StructType<{
|
|
83
|
+
pid: IntegerType;
|
|
84
|
+
acquiredAt: StringType;
|
|
85
|
+
bootId: OptionType<StringType>;
|
|
86
|
+
command: OptionType<StringType>;
|
|
87
|
+
}>;
|
|
88
|
+
}>;
|
|
89
|
+
}>;
|
|
90
|
+
package_not_found: StructType<{
|
|
91
|
+
packageName: StringType;
|
|
92
|
+
version: OptionType<StringType>;
|
|
93
|
+
}>;
|
|
94
|
+
package_exists: StructType<{
|
|
95
|
+
packageName: StringType;
|
|
96
|
+
version: StringType;
|
|
97
|
+
}>;
|
|
98
|
+
package_invalid: StructType<{
|
|
99
|
+
reason: StringType;
|
|
100
|
+
}>;
|
|
101
|
+
dataset_not_found: StructType<{
|
|
102
|
+
workspace: StringType;
|
|
103
|
+
path: StringType;
|
|
104
|
+
}>;
|
|
105
|
+
task_not_found: StructType<{
|
|
106
|
+
task: StringType;
|
|
107
|
+
}>;
|
|
108
|
+
object_not_found: StructType<{
|
|
109
|
+
hash: StringType;
|
|
110
|
+
}>;
|
|
111
|
+
dataflow_error: StructType<{
|
|
112
|
+
message: StringType;
|
|
113
|
+
}>;
|
|
114
|
+
dataflow_aborted: NullType;
|
|
115
|
+
permission_denied: StructType<{
|
|
116
|
+
path: StringType;
|
|
117
|
+
}>;
|
|
118
|
+
internal: StructType<{
|
|
119
|
+
message: StringType;
|
|
120
|
+
}>;
|
|
121
|
+
}>;
|
|
122
|
+
export declare const ResponseType: <T extends EastType>(successType: T) => VariantType<{
|
|
123
|
+
success: T;
|
|
124
|
+
error: VariantType<{
|
|
125
|
+
workspace_not_found: StructType<{
|
|
126
|
+
workspace: StringType;
|
|
127
|
+
}>;
|
|
128
|
+
workspace_not_deployed: StructType<{
|
|
129
|
+
workspace: StringType;
|
|
130
|
+
}>;
|
|
131
|
+
workspace_exists: StructType<{
|
|
132
|
+
workspace: StringType;
|
|
133
|
+
}>;
|
|
134
|
+
workspace_locked: StructType<{
|
|
135
|
+
workspace: StringType;
|
|
136
|
+
holder: VariantType<{
|
|
137
|
+
unknown: NullType;
|
|
138
|
+
known: StructType<{
|
|
139
|
+
pid: IntegerType;
|
|
140
|
+
acquiredAt: StringType;
|
|
141
|
+
bootId: OptionType<StringType>;
|
|
142
|
+
command: OptionType<StringType>;
|
|
143
|
+
}>;
|
|
144
|
+
}>;
|
|
145
|
+
}>;
|
|
146
|
+
package_not_found: StructType<{
|
|
147
|
+
packageName: StringType;
|
|
148
|
+
version: OptionType<StringType>;
|
|
149
|
+
}>;
|
|
150
|
+
package_exists: StructType<{
|
|
151
|
+
packageName: StringType;
|
|
152
|
+
version: StringType;
|
|
153
|
+
}>;
|
|
154
|
+
package_invalid: StructType<{
|
|
155
|
+
reason: StringType;
|
|
156
|
+
}>;
|
|
157
|
+
dataset_not_found: StructType<{
|
|
158
|
+
workspace: StringType;
|
|
159
|
+
path: StringType;
|
|
160
|
+
}>;
|
|
161
|
+
task_not_found: StructType<{
|
|
162
|
+
task: StringType;
|
|
163
|
+
}>;
|
|
164
|
+
object_not_found: StructType<{
|
|
165
|
+
hash: StringType;
|
|
166
|
+
}>;
|
|
167
|
+
dataflow_error: StructType<{
|
|
168
|
+
message: StringType;
|
|
169
|
+
}>;
|
|
170
|
+
dataflow_aborted: NullType;
|
|
171
|
+
permission_denied: StructType<{
|
|
172
|
+
path: StringType;
|
|
173
|
+
}>;
|
|
174
|
+
internal: StructType<{
|
|
175
|
+
message: StringType;
|
|
176
|
+
}>;
|
|
177
|
+
}>;
|
|
178
|
+
}>;
|
|
179
|
+
/**
|
|
180
|
+
* Repository status information.
|
|
181
|
+
*
|
|
182
|
+
* @property path - Absolute path to the .e3 repository directory
|
|
183
|
+
* @property objectCount - Number of content-addressed objects stored
|
|
184
|
+
* @property packageCount - Number of imported packages
|
|
185
|
+
* @property workspaceCount - Number of workspaces
|
|
186
|
+
*/
|
|
187
|
+
export declare const RepositoryStatusType: StructType<{
|
|
188
|
+
path: StringType;
|
|
189
|
+
objectCount: IntegerType;
|
|
190
|
+
packageCount: IntegerType;
|
|
191
|
+
workspaceCount: IntegerType;
|
|
192
|
+
}>;
|
|
193
|
+
/**
|
|
194
|
+
* Garbage collection request options.
|
|
195
|
+
*
|
|
196
|
+
* @property dryRun - If true, report what would be deleted without deleting
|
|
197
|
+
* @property minAge - Minimum age in milliseconds for objects to be considered for deletion
|
|
198
|
+
*/
|
|
199
|
+
export declare const GcRequestType: StructType<{
|
|
200
|
+
dryRun: BooleanType;
|
|
201
|
+
minAge: OptionType<IntegerType>;
|
|
202
|
+
}>;
|
|
203
|
+
/**
|
|
204
|
+
* Garbage collection result.
|
|
205
|
+
*
|
|
206
|
+
* @property deletedObjects - Number of unreferenced objects deleted
|
|
207
|
+
* @property deletedPartials - Number of incomplete uploads deleted
|
|
208
|
+
* @property retainedObjects - Number of objects still referenced
|
|
209
|
+
* @property skippedYoung - Number of objects skipped due to minAge
|
|
210
|
+
* @property bytesFreed - Total bytes freed by deletion
|
|
211
|
+
*/
|
|
212
|
+
export declare const GcResultType: StructType<{
|
|
213
|
+
deletedObjects: IntegerType;
|
|
214
|
+
deletedPartials: IntegerType;
|
|
215
|
+
retainedObjects: IntegerType;
|
|
216
|
+
skippedYoung: IntegerType;
|
|
217
|
+
bytesFreed: IntegerType;
|
|
218
|
+
}>;
|
|
219
|
+
/**
|
|
220
|
+
* Package list item (summary info).
|
|
221
|
+
*
|
|
222
|
+
* @property name - Package name
|
|
223
|
+
* @property version - Semantic version string
|
|
224
|
+
*/
|
|
225
|
+
export declare const PackageListItemType: StructType<{
|
|
226
|
+
name: StringType;
|
|
227
|
+
version: StringType;
|
|
228
|
+
}>;
|
|
229
|
+
/**
|
|
230
|
+
* Result of importing a package.
|
|
231
|
+
*
|
|
232
|
+
* @property name - Imported package name
|
|
233
|
+
* @property version - Imported package version
|
|
234
|
+
* @property packageHash - SHA256 hash of the package content
|
|
235
|
+
* @property objectCount - Number of objects added to the repository
|
|
236
|
+
*/
|
|
237
|
+
export declare const PackageImportResultType: StructType<{
|
|
238
|
+
name: StringType;
|
|
239
|
+
version: StringType;
|
|
240
|
+
packageHash: StringType;
|
|
241
|
+
objectCount: IntegerType;
|
|
242
|
+
}>;
|
|
243
|
+
/**
|
|
244
|
+
* Basic package info.
|
|
245
|
+
*
|
|
246
|
+
* @property name - Package name
|
|
247
|
+
* @property version - Semantic version string
|
|
248
|
+
* @property hash - SHA256 content hash
|
|
249
|
+
*/
|
|
250
|
+
export declare const PackageInfoType: StructType<{
|
|
251
|
+
name: StringType;
|
|
252
|
+
version: StringType;
|
|
253
|
+
hash: StringType;
|
|
254
|
+
}>;
|
|
255
|
+
/**
|
|
256
|
+
* Detailed package information including structure.
|
|
257
|
+
*
|
|
258
|
+
* @property name - Package name
|
|
259
|
+
* @property version - Semantic version string
|
|
260
|
+
* @property hash - SHA256 content hash
|
|
261
|
+
* @property tasks - List of task names defined in the package
|
|
262
|
+
* @property dataStructure - East structure type describing the package's data schema
|
|
263
|
+
*/
|
|
264
|
+
export declare const PackageDetailsType: StructType<{
|
|
265
|
+
name: StringType;
|
|
266
|
+
version: StringType;
|
|
267
|
+
hash: StringType;
|
|
268
|
+
tasks: ArrayType<StringType>;
|
|
269
|
+
dataStructure: import("@elaraai/east").RecursiveType<VariantType<{
|
|
270
|
+
value: import("@elaraai/east").RecursiveType<VariantType<{
|
|
271
|
+
Never: import("@elaraai/east").NullType;
|
|
272
|
+
Null: import("@elaraai/east").NullType;
|
|
273
|
+
Boolean: import("@elaraai/east").NullType;
|
|
274
|
+
Integer: import("@elaraai/east").NullType;
|
|
275
|
+
Float: import("@elaraai/east").NullType;
|
|
276
|
+
String: import("@elaraai/east").NullType;
|
|
277
|
+
DateTime: import("@elaraai/east").NullType;
|
|
278
|
+
Blob: import("@elaraai/east").NullType;
|
|
279
|
+
Ref: import("@elaraai/east").RecursiveTypeMarker;
|
|
280
|
+
Array: import("@elaraai/east").RecursiveTypeMarker;
|
|
281
|
+
Set: import("@elaraai/east").RecursiveTypeMarker;
|
|
282
|
+
Dict: import("@elaraai/east").StructType<{
|
|
283
|
+
key: import("@elaraai/east").RecursiveTypeMarker;
|
|
284
|
+
value: import("@elaraai/east").RecursiveTypeMarker;
|
|
285
|
+
}>;
|
|
286
|
+
Struct: ArrayType<import("@elaraai/east").StructType<{
|
|
287
|
+
name: StringType;
|
|
288
|
+
type: import("@elaraai/east").RecursiveTypeMarker;
|
|
289
|
+
}>>;
|
|
290
|
+
Variant: ArrayType<import("@elaraai/east").StructType<{
|
|
291
|
+
name: StringType;
|
|
292
|
+
type: import("@elaraai/east").RecursiveTypeMarker;
|
|
293
|
+
}>>;
|
|
294
|
+
Recursive: import("@elaraai/east").IntegerType;
|
|
295
|
+
Function: import("@elaraai/east").StructType<{
|
|
296
|
+
inputs: ArrayType<import("@elaraai/east").RecursiveTypeMarker>;
|
|
297
|
+
output: import("@elaraai/east").RecursiveTypeMarker;
|
|
298
|
+
}>;
|
|
299
|
+
AsyncFunction: import("@elaraai/east").StructType<{
|
|
300
|
+
inputs: ArrayType<import("@elaraai/east").RecursiveTypeMarker>;
|
|
301
|
+
output: import("@elaraai/east").RecursiveTypeMarker;
|
|
302
|
+
}>;
|
|
303
|
+
}>>;
|
|
304
|
+
struct: import("@elaraai/east").DictType<StringType, import("@elaraai/east").RecursiveTypeMarker>;
|
|
305
|
+
}>>;
|
|
306
|
+
}>;
|
|
307
|
+
/**
|
|
308
|
+
* Request to create a new workspace.
|
|
309
|
+
*
|
|
310
|
+
* @property name - Unique workspace name
|
|
311
|
+
*/
|
|
312
|
+
export declare const WorkspaceCreateRequestType: StructType<{
|
|
313
|
+
name: StringType;
|
|
314
|
+
}>;
|
|
315
|
+
/** @deprecated Use WorkspaceCreateRequestType */
|
|
316
|
+
export declare const CreateWorkspaceType: StructType<{
|
|
317
|
+
name: StringType;
|
|
318
|
+
}>;
|
|
319
|
+
/**
|
|
320
|
+
* Workspace summary information.
|
|
321
|
+
*
|
|
322
|
+
* @property name - Workspace name
|
|
323
|
+
* @property deployed - Whether a package is deployed to this workspace
|
|
324
|
+
* @property packageName - Name of deployed package (if deployed)
|
|
325
|
+
* @property packageVersion - Version of deployed package (if deployed)
|
|
326
|
+
*/
|
|
327
|
+
export declare const WorkspaceInfoType: StructType<{
|
|
328
|
+
name: StringType;
|
|
329
|
+
deployed: BooleanType;
|
|
330
|
+
packageName: OptionType<StringType>;
|
|
331
|
+
packageVersion: OptionType<StringType>;
|
|
332
|
+
}>;
|
|
333
|
+
/**
|
|
334
|
+
* Request to deploy a package to a workspace.
|
|
335
|
+
*
|
|
336
|
+
* @property packageName - Package name to deploy
|
|
337
|
+
* @property packageVersion - Package version to deploy
|
|
338
|
+
*/
|
|
339
|
+
export declare const WorkspaceDeployRequestType: StructType<{
|
|
340
|
+
packageName: StringType;
|
|
341
|
+
packageVersion: StringType;
|
|
342
|
+
}>;
|
|
343
|
+
/**
|
|
344
|
+
* Alternative deploy request using package reference string.
|
|
345
|
+
*
|
|
346
|
+
* @property packageRef - Package reference in format "name" or "name@version"
|
|
347
|
+
*/
|
|
348
|
+
export declare const DeployRequestType: StructType<{
|
|
349
|
+
packageRef: StringType;
|
|
350
|
+
}>;
|
|
351
|
+
/**
|
|
352
|
+
* Dataset status variant.
|
|
353
|
+
*
|
|
354
|
+
* - `unset`: No value assigned to this dataset
|
|
355
|
+
* - `stale`: Value exists but is outdated (upstream changed)
|
|
356
|
+
* - `up-to-date`: Value is current
|
|
357
|
+
*/
|
|
358
|
+
export declare const DatasetStatusType: VariantType<{
|
|
359
|
+
unset: NullType;
|
|
360
|
+
stale: NullType;
|
|
361
|
+
'up-to-date': NullType;
|
|
362
|
+
}>;
|
|
363
|
+
/** Task completed successfully. @property cached - True if result was from cache */
|
|
364
|
+
export declare const TaskStatusUpToDateType: StructType<{
|
|
365
|
+
cached: BooleanType;
|
|
366
|
+
}>;
|
|
367
|
+
/** Task waiting on dependencies. @property reason - Human-readable wait reason */
|
|
368
|
+
export declare const TaskStatusWaitingType: StructType<{
|
|
369
|
+
reason: StringType;
|
|
370
|
+
}>;
|
|
371
|
+
/** Task currently executing. */
|
|
372
|
+
export declare const TaskStatusInProgressType: StructType<{
|
|
373
|
+
/** Process ID of the running task */
|
|
374
|
+
pid: OptionType<IntegerType>;
|
|
375
|
+
/** ISO timestamp when execution started */
|
|
376
|
+
startedAt: OptionType<StringType>;
|
|
377
|
+
}>;
|
|
378
|
+
/** Task exited with non-zero code. */
|
|
379
|
+
export declare const TaskStatusFailedType: StructType<{
|
|
380
|
+
/** Process exit code */
|
|
381
|
+
exitCode: IntegerType;
|
|
382
|
+
/** ISO timestamp when task completed */
|
|
383
|
+
completedAt: OptionType<StringType>;
|
|
384
|
+
}>;
|
|
385
|
+
/** Task encountered an internal error. */
|
|
386
|
+
export declare const TaskStatusErrorType: StructType<{
|
|
387
|
+
/** Error message */
|
|
388
|
+
message: StringType;
|
|
389
|
+
/** ISO timestamp when error occurred */
|
|
390
|
+
completedAt: OptionType<StringType>;
|
|
391
|
+
}>;
|
|
392
|
+
/** Task was running but process is no longer alive. */
|
|
393
|
+
export declare const TaskStatusStaleRunningType: StructType<{
|
|
394
|
+
/** Last known process ID */
|
|
395
|
+
pid: OptionType<IntegerType>;
|
|
396
|
+
/** ISO timestamp when execution started */
|
|
397
|
+
startedAt: OptionType<StringType>;
|
|
398
|
+
}>;
|
|
399
|
+
/**
|
|
400
|
+
* Task execution status variant.
|
|
401
|
+
*
|
|
402
|
+
* - `up-to-date`: Task completed successfully (cached indicates if from cache)
|
|
403
|
+
* - `ready`: Task is ready to run (all inputs available)
|
|
404
|
+
* - `waiting`: Task waiting on upstream dependencies
|
|
405
|
+
* - `in-progress`: Task currently executing
|
|
406
|
+
* - `failed`: Task exited with non-zero exit code
|
|
407
|
+
* - `error`: Internal error during task execution
|
|
408
|
+
* - `stale-running`: Task was marked running but process died
|
|
409
|
+
*/
|
|
410
|
+
export declare const TaskStatusType: VariantType<{
|
|
411
|
+
'up-to-date': StructType<{
|
|
412
|
+
cached: BooleanType;
|
|
413
|
+
}>;
|
|
414
|
+
ready: NullType;
|
|
415
|
+
waiting: StructType<{
|
|
416
|
+
reason: StringType;
|
|
417
|
+
}>;
|
|
418
|
+
'in-progress': StructType<{
|
|
419
|
+
/** Process ID of the running task */
|
|
420
|
+
pid: OptionType<IntegerType>;
|
|
421
|
+
/** ISO timestamp when execution started */
|
|
422
|
+
startedAt: OptionType<StringType>;
|
|
423
|
+
}>;
|
|
424
|
+
failed: StructType<{
|
|
425
|
+
/** Process exit code */
|
|
426
|
+
exitCode: IntegerType;
|
|
427
|
+
/** ISO timestamp when task completed */
|
|
428
|
+
completedAt: OptionType<StringType>;
|
|
429
|
+
}>;
|
|
430
|
+
error: StructType<{
|
|
431
|
+
/** Error message */
|
|
432
|
+
message: StringType;
|
|
433
|
+
/** ISO timestamp when error occurred */
|
|
434
|
+
completedAt: OptionType<StringType>;
|
|
435
|
+
}>;
|
|
436
|
+
'stale-running': StructType<{
|
|
437
|
+
/** Last known process ID */
|
|
438
|
+
pid: OptionType<IntegerType>;
|
|
439
|
+
/** ISO timestamp when execution started */
|
|
440
|
+
startedAt: OptionType<StringType>;
|
|
441
|
+
}>;
|
|
442
|
+
}>;
|
|
443
|
+
/**
|
|
444
|
+
* Status information for a single dataset.
|
|
445
|
+
*
|
|
446
|
+
* @property path - Dataset path (e.g., ".inputs.config" or ".tasks.foo.output")
|
|
447
|
+
* @property status - Current status (unset, stale, or up-to-date)
|
|
448
|
+
* @property hash - SHA256 hash of current value (if set)
|
|
449
|
+
* @property isTaskOutput - True if this dataset is produced by a task
|
|
450
|
+
* @property producedBy - Name of task that produces this dataset (if isTaskOutput)
|
|
451
|
+
*/
|
|
452
|
+
export declare const DatasetStatusInfoType: StructType<{
|
|
453
|
+
path: StringType;
|
|
454
|
+
status: VariantType<{
|
|
455
|
+
unset: NullType;
|
|
456
|
+
stale: NullType;
|
|
457
|
+
'up-to-date': NullType;
|
|
458
|
+
}>;
|
|
459
|
+
hash: OptionType<StringType>;
|
|
460
|
+
isTaskOutput: BooleanType;
|
|
461
|
+
producedBy: OptionType<StringType>;
|
|
462
|
+
}>;
|
|
463
|
+
/**
|
|
464
|
+
* Status information for a single task.
|
|
465
|
+
*
|
|
466
|
+
* @property name - Task name
|
|
467
|
+
* @property hash - Task definition hash (changes when task code changes)
|
|
468
|
+
* @property status - Current execution status
|
|
469
|
+
* @property inputs - Dataset paths this task reads from
|
|
470
|
+
* @property output - Dataset path this task writes to
|
|
471
|
+
* @property dependsOn - Names of tasks that must complete before this one
|
|
472
|
+
*/
|
|
473
|
+
export declare const TaskStatusInfoType: StructType<{
|
|
474
|
+
name: StringType;
|
|
475
|
+
hash: StringType;
|
|
476
|
+
status: VariantType<{
|
|
477
|
+
'up-to-date': StructType<{
|
|
478
|
+
cached: BooleanType;
|
|
479
|
+
}>;
|
|
480
|
+
ready: NullType;
|
|
481
|
+
waiting: StructType<{
|
|
482
|
+
reason: StringType;
|
|
483
|
+
}>;
|
|
484
|
+
'in-progress': StructType<{
|
|
485
|
+
/** Process ID of the running task */
|
|
486
|
+
pid: OptionType<IntegerType>;
|
|
487
|
+
/** ISO timestamp when execution started */
|
|
488
|
+
startedAt: OptionType<StringType>;
|
|
489
|
+
}>;
|
|
490
|
+
failed: StructType<{
|
|
491
|
+
/** Process exit code */
|
|
492
|
+
exitCode: IntegerType;
|
|
493
|
+
/** ISO timestamp when task completed */
|
|
494
|
+
completedAt: OptionType<StringType>;
|
|
495
|
+
}>;
|
|
496
|
+
error: StructType<{
|
|
497
|
+
/** Error message */
|
|
498
|
+
message: StringType;
|
|
499
|
+
/** ISO timestamp when error occurred */
|
|
500
|
+
completedAt: OptionType<StringType>;
|
|
501
|
+
}>;
|
|
502
|
+
'stale-running': StructType<{
|
|
503
|
+
/** Last known process ID */
|
|
504
|
+
pid: OptionType<IntegerType>;
|
|
505
|
+
/** ISO timestamp when execution started */
|
|
506
|
+
startedAt: OptionType<StringType>;
|
|
507
|
+
}>;
|
|
508
|
+
}>;
|
|
509
|
+
inputs: ArrayType<StringType>;
|
|
510
|
+
output: StringType;
|
|
511
|
+
dependsOn: ArrayType<StringType>;
|
|
512
|
+
}>;
|
|
513
|
+
/**
|
|
514
|
+
* Summary counts for workspace status.
|
|
515
|
+
*/
|
|
516
|
+
export declare const WorkspaceStatusSummaryType: StructType<{
|
|
517
|
+
/** Dataset status counts */
|
|
518
|
+
datasets: StructType<{
|
|
519
|
+
total: IntegerType;
|
|
520
|
+
unset: IntegerType;
|
|
521
|
+
stale: IntegerType;
|
|
522
|
+
upToDate: IntegerType;
|
|
523
|
+
}>;
|
|
524
|
+
/** Task status counts */
|
|
525
|
+
tasks: StructType<{
|
|
526
|
+
total: IntegerType;
|
|
527
|
+
upToDate: IntegerType;
|
|
528
|
+
ready: IntegerType;
|
|
529
|
+
waiting: IntegerType;
|
|
530
|
+
inProgress: IntegerType;
|
|
531
|
+
failed: IntegerType;
|
|
532
|
+
error: IntegerType;
|
|
533
|
+
staleRunning: IntegerType;
|
|
534
|
+
}>;
|
|
535
|
+
}>;
|
|
536
|
+
/**
|
|
537
|
+
* Complete workspace status including all datasets, tasks, and summary.
|
|
538
|
+
*
|
|
539
|
+
* @property workspace - Workspace name
|
|
540
|
+
* @property lock - Information about current lock holder (if locked)
|
|
541
|
+
* @property datasets - Status of all datasets in the workspace
|
|
542
|
+
* @property tasks - Status of all tasks in the workspace
|
|
543
|
+
* @property summary - Aggregated counts by status
|
|
544
|
+
*/
|
|
545
|
+
export declare const WorkspaceStatusResultType: StructType<{
|
|
546
|
+
workspace: StringType;
|
|
547
|
+
lock: OptionType<StructType<{
|
|
548
|
+
pid: IntegerType;
|
|
549
|
+
acquiredAt: StringType;
|
|
550
|
+
bootId: OptionType<StringType>;
|
|
551
|
+
command: OptionType<StringType>;
|
|
552
|
+
}>>;
|
|
553
|
+
datasets: ArrayType<StructType<{
|
|
554
|
+
path: StringType;
|
|
555
|
+
status: VariantType<{
|
|
556
|
+
unset: NullType;
|
|
557
|
+
stale: NullType;
|
|
558
|
+
'up-to-date': NullType;
|
|
559
|
+
}>;
|
|
560
|
+
hash: OptionType<StringType>;
|
|
561
|
+
isTaskOutput: BooleanType;
|
|
562
|
+
producedBy: OptionType<StringType>;
|
|
563
|
+
}>>;
|
|
564
|
+
tasks: ArrayType<StructType<{
|
|
565
|
+
name: StringType;
|
|
566
|
+
hash: StringType;
|
|
567
|
+
status: VariantType<{
|
|
568
|
+
'up-to-date': StructType<{
|
|
569
|
+
cached: BooleanType;
|
|
570
|
+
}>;
|
|
571
|
+
ready: NullType;
|
|
572
|
+
waiting: StructType<{
|
|
573
|
+
reason: StringType;
|
|
574
|
+
}>;
|
|
575
|
+
'in-progress': StructType<{
|
|
576
|
+
/** Process ID of the running task */
|
|
577
|
+
pid: OptionType<IntegerType>;
|
|
578
|
+
/** ISO timestamp when execution started */
|
|
579
|
+
startedAt: OptionType<StringType>;
|
|
580
|
+
}>;
|
|
581
|
+
failed: StructType<{
|
|
582
|
+
/** Process exit code */
|
|
583
|
+
exitCode: IntegerType;
|
|
584
|
+
/** ISO timestamp when task completed */
|
|
585
|
+
completedAt: OptionType<StringType>;
|
|
586
|
+
}>;
|
|
587
|
+
error: StructType<{
|
|
588
|
+
/** Error message */
|
|
589
|
+
message: StringType;
|
|
590
|
+
/** ISO timestamp when error occurred */
|
|
591
|
+
completedAt: OptionType<StringType>;
|
|
592
|
+
}>;
|
|
593
|
+
'stale-running': StructType<{
|
|
594
|
+
/** Last known process ID */
|
|
595
|
+
pid: OptionType<IntegerType>;
|
|
596
|
+
/** ISO timestamp when execution started */
|
|
597
|
+
startedAt: OptionType<StringType>;
|
|
598
|
+
}>;
|
|
599
|
+
}>;
|
|
600
|
+
inputs: ArrayType<StringType>;
|
|
601
|
+
output: StringType;
|
|
602
|
+
dependsOn: ArrayType<StringType>;
|
|
603
|
+
}>>;
|
|
604
|
+
summary: StructType<{
|
|
605
|
+
/** Dataset status counts */
|
|
606
|
+
datasets: StructType<{
|
|
607
|
+
total: IntegerType;
|
|
608
|
+
unset: IntegerType;
|
|
609
|
+
stale: IntegerType;
|
|
610
|
+
upToDate: IntegerType;
|
|
611
|
+
}>;
|
|
612
|
+
/** Task status counts */
|
|
613
|
+
tasks: StructType<{
|
|
614
|
+
total: IntegerType;
|
|
615
|
+
upToDate: IntegerType;
|
|
616
|
+
ready: IntegerType;
|
|
617
|
+
waiting: IntegerType;
|
|
618
|
+
inProgress: IntegerType;
|
|
619
|
+
failed: IntegerType;
|
|
620
|
+
error: IntegerType;
|
|
621
|
+
staleRunning: IntegerType;
|
|
622
|
+
}>;
|
|
623
|
+
}>;
|
|
624
|
+
}>;
|
|
625
|
+
export declare const TaskListItemType: StructType<{
|
|
626
|
+
name: StringType;
|
|
627
|
+
hash: StringType;
|
|
628
|
+
}>;
|
|
629
|
+
export declare const TaskInfoType: StructType<{
|
|
630
|
+
name: StringType;
|
|
631
|
+
hash: StringType;
|
|
632
|
+
}>;
|
|
633
|
+
export declare const TaskDetailsType: StructType<{
|
|
634
|
+
name: StringType;
|
|
635
|
+
hash: StringType;
|
|
636
|
+
commandIr: StringType;
|
|
637
|
+
inputs: ArrayType<ArrayType<VariantType<{
|
|
638
|
+
field: StringType;
|
|
639
|
+
}>>>;
|
|
640
|
+
output: ArrayType<VariantType<{
|
|
641
|
+
field: StringType;
|
|
642
|
+
}>>;
|
|
643
|
+
}>;
|
|
644
|
+
export declare const DataflowRequestType: StructType<{
|
|
645
|
+
concurrency: OptionType<IntegerType>;
|
|
646
|
+
force: BooleanType;
|
|
647
|
+
filter: OptionType<StringType>;
|
|
648
|
+
}>;
|
|
649
|
+
export declare const StartRequestType: StructType<{
|
|
650
|
+
concurrency: OptionType<IntegerType>;
|
|
651
|
+
force: BooleanType;
|
|
652
|
+
filter: OptionType<StringType>;
|
|
653
|
+
}>;
|
|
654
|
+
export declare const GraphTaskType: StructType<{
|
|
655
|
+
name: StringType;
|
|
656
|
+
hash: StringType;
|
|
657
|
+
inputs: ArrayType<StringType>;
|
|
658
|
+
output: StringType;
|
|
659
|
+
dependsOn: ArrayType<StringType>;
|
|
660
|
+
}>;
|
|
661
|
+
export declare const DataflowGraphType: StructType<{
|
|
662
|
+
tasks: ArrayType<StructType<{
|
|
663
|
+
name: StringType;
|
|
664
|
+
hash: StringType;
|
|
665
|
+
inputs: ArrayType<StringType>;
|
|
666
|
+
output: StringType;
|
|
667
|
+
dependsOn: ArrayType<StringType>;
|
|
668
|
+
}>>;
|
|
669
|
+
}>;
|
|
670
|
+
export declare const LogChunkType: StructType<{
|
|
671
|
+
data: StringType;
|
|
672
|
+
offset: IntegerType;
|
|
673
|
+
size: IntegerType;
|
|
674
|
+
totalSize: IntegerType;
|
|
675
|
+
complete: BooleanType;
|
|
676
|
+
}>;
|
|
677
|
+
export declare const TaskExecutionResultType: StructType<{
|
|
678
|
+
name: StringType;
|
|
679
|
+
cached: BooleanType;
|
|
680
|
+
state: VariantType<{
|
|
681
|
+
success: NullType;
|
|
682
|
+
failed: StructType<{
|
|
683
|
+
exitCode: IntegerType;
|
|
684
|
+
}>;
|
|
685
|
+
error: StructType<{
|
|
686
|
+
message: StringType;
|
|
687
|
+
}>;
|
|
688
|
+
skipped: NullType;
|
|
689
|
+
}>;
|
|
690
|
+
duration: FloatType;
|
|
691
|
+
}>;
|
|
692
|
+
export declare const DataflowResultType: StructType<{
|
|
693
|
+
success: BooleanType;
|
|
694
|
+
executed: IntegerType;
|
|
695
|
+
cached: IntegerType;
|
|
696
|
+
failed: IntegerType;
|
|
697
|
+
skipped: IntegerType;
|
|
698
|
+
tasks: ArrayType<StructType<{
|
|
699
|
+
name: StringType;
|
|
700
|
+
cached: BooleanType;
|
|
701
|
+
state: VariantType<{
|
|
702
|
+
success: NullType;
|
|
703
|
+
failed: StructType<{
|
|
704
|
+
exitCode: IntegerType;
|
|
705
|
+
}>;
|
|
706
|
+
error: StructType<{
|
|
707
|
+
message: StringType;
|
|
708
|
+
}>;
|
|
709
|
+
skipped: NullType;
|
|
710
|
+
}>;
|
|
711
|
+
duration: FloatType;
|
|
712
|
+
}>>;
|
|
713
|
+
duration: FloatType;
|
|
714
|
+
}>;
|
|
715
|
+
export type Error = ValueTypeOf<typeof ErrorType>;
|
|
716
|
+
export type RepositoryStatus = ValueTypeOf<typeof RepositoryStatusType>;
|
|
717
|
+
export type GcRequest = ValueTypeOf<typeof GcRequestType>;
|
|
718
|
+
export type GcResult = ValueTypeOf<typeof GcResultType>;
|
|
719
|
+
export type PackageListItem = ValueTypeOf<typeof PackageListItemType>;
|
|
720
|
+
export type PackageImportResult = ValueTypeOf<typeof PackageImportResultType>;
|
|
721
|
+
export type PackageInfo = ValueTypeOf<typeof PackageInfoType>;
|
|
722
|
+
export type PackageDetails = ValueTypeOf<typeof PackageDetailsType>;
|
|
723
|
+
export type WorkspaceInfo = ValueTypeOf<typeof WorkspaceInfoType>;
|
|
724
|
+
export type WorkspaceCreateRequest = ValueTypeOf<typeof WorkspaceCreateRequestType>;
|
|
725
|
+
export type WorkspaceDeployRequest = ValueTypeOf<typeof WorkspaceDeployRequestType>;
|
|
726
|
+
export type DatasetStatus = ValueTypeOf<typeof DatasetStatusType>;
|
|
727
|
+
export type TaskStatus = ValueTypeOf<typeof TaskStatusType>;
|
|
728
|
+
export type DatasetStatusInfo = ValueTypeOf<typeof DatasetStatusInfoType>;
|
|
729
|
+
export type TaskStatusInfo = ValueTypeOf<typeof TaskStatusInfoType>;
|
|
730
|
+
export type WorkspaceStatusSummary = ValueTypeOf<typeof WorkspaceStatusSummaryType>;
|
|
731
|
+
export type WorkspaceStatusResult = ValueTypeOf<typeof WorkspaceStatusResultType>;
|
|
732
|
+
export type TaskListItem = ValueTypeOf<typeof TaskListItemType>;
|
|
733
|
+
export type TaskDetails = ValueTypeOf<typeof TaskDetailsType>;
|
|
734
|
+
export type DataflowRequest = ValueTypeOf<typeof DataflowRequestType>;
|
|
735
|
+
export type GraphTask = ValueTypeOf<typeof GraphTaskType>;
|
|
736
|
+
export type DataflowGraph = ValueTypeOf<typeof DataflowGraphType>;
|
|
737
|
+
export type LogChunk = ValueTypeOf<typeof LogChunkType>;
|
|
738
|
+
export type TaskExecutionResult = ValueTypeOf<typeof TaskExecutionResultType>;
|
|
739
|
+
export type DataflowResult = ValueTypeOf<typeof DataflowResultType>;
|
|
740
|
+
export declare const ApiTypes: {
|
|
741
|
+
readonly ErrorType: VariantType<{
|
|
742
|
+
workspace_not_found: StructType<{
|
|
743
|
+
workspace: StringType;
|
|
744
|
+
}>;
|
|
745
|
+
workspace_not_deployed: StructType<{
|
|
746
|
+
workspace: StringType;
|
|
747
|
+
}>;
|
|
748
|
+
workspace_exists: StructType<{
|
|
749
|
+
workspace: StringType;
|
|
750
|
+
}>;
|
|
751
|
+
workspace_locked: StructType<{
|
|
752
|
+
workspace: StringType;
|
|
753
|
+
holder: VariantType<{
|
|
754
|
+
unknown: NullType;
|
|
755
|
+
known: StructType<{
|
|
756
|
+
pid: IntegerType;
|
|
757
|
+
acquiredAt: StringType;
|
|
758
|
+
bootId: OptionType<StringType>;
|
|
759
|
+
command: OptionType<StringType>;
|
|
760
|
+
}>;
|
|
761
|
+
}>;
|
|
762
|
+
}>;
|
|
763
|
+
package_not_found: StructType<{
|
|
764
|
+
packageName: StringType;
|
|
765
|
+
version: OptionType<StringType>;
|
|
766
|
+
}>;
|
|
767
|
+
package_exists: StructType<{
|
|
768
|
+
packageName: StringType;
|
|
769
|
+
version: StringType;
|
|
770
|
+
}>;
|
|
771
|
+
package_invalid: StructType<{
|
|
772
|
+
reason: StringType;
|
|
773
|
+
}>;
|
|
774
|
+
dataset_not_found: StructType<{
|
|
775
|
+
workspace: StringType;
|
|
776
|
+
path: StringType;
|
|
777
|
+
}>;
|
|
778
|
+
task_not_found: StructType<{
|
|
779
|
+
task: StringType;
|
|
780
|
+
}>;
|
|
781
|
+
object_not_found: StructType<{
|
|
782
|
+
hash: StringType;
|
|
783
|
+
}>;
|
|
784
|
+
dataflow_error: StructType<{
|
|
785
|
+
message: StringType;
|
|
786
|
+
}>;
|
|
787
|
+
dataflow_aborted: NullType;
|
|
788
|
+
permission_denied: StructType<{
|
|
789
|
+
path: StringType;
|
|
790
|
+
}>;
|
|
791
|
+
internal: StructType<{
|
|
792
|
+
message: StringType;
|
|
793
|
+
}>;
|
|
794
|
+
}>;
|
|
795
|
+
readonly WorkspaceNotFoundErrorType: StructType<{
|
|
796
|
+
workspace: StringType;
|
|
797
|
+
}>;
|
|
798
|
+
readonly WorkspaceNotDeployedErrorType: StructType<{
|
|
799
|
+
workspace: StringType;
|
|
800
|
+
}>;
|
|
801
|
+
readonly WorkspaceExistsErrorType: StructType<{
|
|
802
|
+
workspace: StringType;
|
|
803
|
+
}>;
|
|
804
|
+
readonly WorkspaceLockedErrorType: StructType<{
|
|
805
|
+
workspace: StringType;
|
|
806
|
+
holder: VariantType<{
|
|
807
|
+
unknown: NullType;
|
|
808
|
+
known: StructType<{
|
|
809
|
+
pid: IntegerType;
|
|
810
|
+
acquiredAt: StringType;
|
|
811
|
+
bootId: OptionType<StringType>;
|
|
812
|
+
command: OptionType<StringType>;
|
|
813
|
+
}>;
|
|
814
|
+
}>;
|
|
815
|
+
}>;
|
|
816
|
+
readonly LockHolderType: StructType<{
|
|
817
|
+
pid: IntegerType;
|
|
818
|
+
acquiredAt: StringType;
|
|
819
|
+
bootId: OptionType<StringType>;
|
|
820
|
+
command: OptionType<StringType>;
|
|
821
|
+
}>;
|
|
822
|
+
readonly PackageNotFoundErrorType: StructType<{
|
|
823
|
+
packageName: StringType;
|
|
824
|
+
version: OptionType<StringType>;
|
|
825
|
+
}>;
|
|
826
|
+
readonly PackageExistsErrorType: StructType<{
|
|
827
|
+
packageName: StringType;
|
|
828
|
+
version: StringType;
|
|
829
|
+
}>;
|
|
830
|
+
readonly PackageInvalidErrorType: StructType<{
|
|
831
|
+
reason: StringType;
|
|
832
|
+
}>;
|
|
833
|
+
readonly DatasetNotFoundErrorType: StructType<{
|
|
834
|
+
workspace: StringType;
|
|
835
|
+
path: StringType;
|
|
836
|
+
}>;
|
|
837
|
+
readonly TaskNotFoundErrorType: StructType<{
|
|
838
|
+
task: StringType;
|
|
839
|
+
}>;
|
|
840
|
+
readonly ObjectNotFoundErrorType: StructType<{
|
|
841
|
+
hash: StringType;
|
|
842
|
+
}>;
|
|
843
|
+
readonly DataflowErrorType: StructType<{
|
|
844
|
+
message: StringType;
|
|
845
|
+
}>;
|
|
846
|
+
readonly PermissionDeniedErrorType: StructType<{
|
|
847
|
+
path: StringType;
|
|
848
|
+
}>;
|
|
849
|
+
readonly InternalErrorType: StructType<{
|
|
850
|
+
message: StringType;
|
|
851
|
+
}>;
|
|
852
|
+
readonly ResponseType: <T extends EastType>(successType: T) => VariantType<{
|
|
853
|
+
success: T;
|
|
854
|
+
error: VariantType<{
|
|
855
|
+
workspace_not_found: StructType<{
|
|
856
|
+
workspace: StringType;
|
|
857
|
+
}>;
|
|
858
|
+
workspace_not_deployed: StructType<{
|
|
859
|
+
workspace: StringType;
|
|
860
|
+
}>;
|
|
861
|
+
workspace_exists: StructType<{
|
|
862
|
+
workspace: StringType;
|
|
863
|
+
}>;
|
|
864
|
+
workspace_locked: StructType<{
|
|
865
|
+
workspace: StringType;
|
|
866
|
+
holder: VariantType<{
|
|
867
|
+
unknown: NullType;
|
|
868
|
+
known: StructType<{
|
|
869
|
+
pid: IntegerType;
|
|
870
|
+
acquiredAt: StringType;
|
|
871
|
+
bootId: OptionType<StringType>;
|
|
872
|
+
command: OptionType<StringType>;
|
|
873
|
+
}>;
|
|
874
|
+
}>;
|
|
875
|
+
}>;
|
|
876
|
+
package_not_found: StructType<{
|
|
877
|
+
packageName: StringType;
|
|
878
|
+
version: OptionType<StringType>;
|
|
879
|
+
}>;
|
|
880
|
+
package_exists: StructType<{
|
|
881
|
+
packageName: StringType;
|
|
882
|
+
version: StringType;
|
|
883
|
+
}>;
|
|
884
|
+
package_invalid: StructType<{
|
|
885
|
+
reason: StringType;
|
|
886
|
+
}>;
|
|
887
|
+
dataset_not_found: StructType<{
|
|
888
|
+
workspace: StringType;
|
|
889
|
+
path: StringType;
|
|
890
|
+
}>;
|
|
891
|
+
task_not_found: StructType<{
|
|
892
|
+
task: StringType;
|
|
893
|
+
}>;
|
|
894
|
+
object_not_found: StructType<{
|
|
895
|
+
hash: StringType;
|
|
896
|
+
}>;
|
|
897
|
+
dataflow_error: StructType<{
|
|
898
|
+
message: StringType;
|
|
899
|
+
}>;
|
|
900
|
+
dataflow_aborted: NullType;
|
|
901
|
+
permission_denied: StructType<{
|
|
902
|
+
path: StringType;
|
|
903
|
+
}>;
|
|
904
|
+
internal: StructType<{
|
|
905
|
+
message: StringType;
|
|
906
|
+
}>;
|
|
907
|
+
}>;
|
|
908
|
+
}>;
|
|
909
|
+
readonly RepositoryStatusType: StructType<{
|
|
910
|
+
path: StringType;
|
|
911
|
+
objectCount: IntegerType;
|
|
912
|
+
packageCount: IntegerType;
|
|
913
|
+
workspaceCount: IntegerType;
|
|
914
|
+
}>;
|
|
915
|
+
readonly GcRequestType: StructType<{
|
|
916
|
+
dryRun: BooleanType;
|
|
917
|
+
minAge: OptionType<IntegerType>;
|
|
918
|
+
}>;
|
|
919
|
+
readonly GcResultType: StructType<{
|
|
920
|
+
deletedObjects: IntegerType;
|
|
921
|
+
deletedPartials: IntegerType;
|
|
922
|
+
retainedObjects: IntegerType;
|
|
923
|
+
skippedYoung: IntegerType;
|
|
924
|
+
bytesFreed: IntegerType;
|
|
925
|
+
}>;
|
|
926
|
+
readonly PackageListItemType: StructType<{
|
|
927
|
+
name: StringType;
|
|
928
|
+
version: StringType;
|
|
929
|
+
}>;
|
|
930
|
+
readonly PackageImportResultType: StructType<{
|
|
931
|
+
name: StringType;
|
|
932
|
+
version: StringType;
|
|
933
|
+
packageHash: StringType;
|
|
934
|
+
objectCount: IntegerType;
|
|
935
|
+
}>;
|
|
936
|
+
readonly PackageInfoType: StructType<{
|
|
937
|
+
name: StringType;
|
|
938
|
+
version: StringType;
|
|
939
|
+
hash: StringType;
|
|
940
|
+
}>;
|
|
941
|
+
readonly PackageDetailsType: StructType<{
|
|
942
|
+
name: StringType;
|
|
943
|
+
version: StringType;
|
|
944
|
+
hash: StringType;
|
|
945
|
+
tasks: ArrayType<StringType>;
|
|
946
|
+
dataStructure: import("@elaraai/east").RecursiveType<VariantType<{
|
|
947
|
+
value: import("@elaraai/east").RecursiveType<VariantType<{
|
|
948
|
+
Never: import("@elaraai/east").NullType;
|
|
949
|
+
Null: import("@elaraai/east").NullType;
|
|
950
|
+
Boolean: import("@elaraai/east").NullType;
|
|
951
|
+
Integer: import("@elaraai/east").NullType;
|
|
952
|
+
Float: import("@elaraai/east").NullType;
|
|
953
|
+
String: import("@elaraai/east").NullType;
|
|
954
|
+
DateTime: import("@elaraai/east").NullType;
|
|
955
|
+
Blob: import("@elaraai/east").NullType;
|
|
956
|
+
Ref: import("@elaraai/east").RecursiveTypeMarker;
|
|
957
|
+
Array: import("@elaraai/east").RecursiveTypeMarker;
|
|
958
|
+
Set: import("@elaraai/east").RecursiveTypeMarker;
|
|
959
|
+
Dict: import("@elaraai/east").StructType<{
|
|
960
|
+
key: import("@elaraai/east").RecursiveTypeMarker;
|
|
961
|
+
value: import("@elaraai/east").RecursiveTypeMarker;
|
|
962
|
+
}>;
|
|
963
|
+
Struct: ArrayType<import("@elaraai/east").StructType<{
|
|
964
|
+
name: StringType;
|
|
965
|
+
type: import("@elaraai/east").RecursiveTypeMarker;
|
|
966
|
+
}>>;
|
|
967
|
+
Variant: ArrayType<import("@elaraai/east").StructType<{
|
|
968
|
+
name: StringType;
|
|
969
|
+
type: import("@elaraai/east").RecursiveTypeMarker;
|
|
970
|
+
}>>;
|
|
971
|
+
Recursive: import("@elaraai/east").IntegerType;
|
|
972
|
+
Function: import("@elaraai/east").StructType<{
|
|
973
|
+
inputs: ArrayType<import("@elaraai/east").RecursiveTypeMarker>;
|
|
974
|
+
output: import("@elaraai/east").RecursiveTypeMarker;
|
|
975
|
+
}>;
|
|
976
|
+
AsyncFunction: import("@elaraai/east").StructType<{
|
|
977
|
+
inputs: ArrayType<import("@elaraai/east").RecursiveTypeMarker>;
|
|
978
|
+
output: import("@elaraai/east").RecursiveTypeMarker;
|
|
979
|
+
}>;
|
|
980
|
+
}>>;
|
|
981
|
+
struct: import("@elaraai/east").DictType<StringType, import("@elaraai/east").RecursiveTypeMarker>;
|
|
982
|
+
}>>;
|
|
983
|
+
}>;
|
|
984
|
+
readonly WorkspaceCreateRequestType: StructType<{
|
|
985
|
+
name: StringType;
|
|
986
|
+
}>;
|
|
987
|
+
readonly WorkspaceInfoType: StructType<{
|
|
988
|
+
name: StringType;
|
|
989
|
+
deployed: BooleanType;
|
|
990
|
+
packageName: OptionType<StringType>;
|
|
991
|
+
packageVersion: OptionType<StringType>;
|
|
992
|
+
}>;
|
|
993
|
+
readonly WorkspaceDeployRequestType: StructType<{
|
|
994
|
+
packageName: StringType;
|
|
995
|
+
packageVersion: StringType;
|
|
996
|
+
}>;
|
|
997
|
+
readonly DeployRequestType: StructType<{
|
|
998
|
+
packageRef: StringType;
|
|
999
|
+
}>;
|
|
1000
|
+
readonly DatasetStatusType: VariantType<{
|
|
1001
|
+
unset: NullType;
|
|
1002
|
+
stale: NullType;
|
|
1003
|
+
'up-to-date': NullType;
|
|
1004
|
+
}>;
|
|
1005
|
+
readonly TaskStatusType: VariantType<{
|
|
1006
|
+
'up-to-date': StructType<{
|
|
1007
|
+
cached: BooleanType;
|
|
1008
|
+
}>;
|
|
1009
|
+
ready: NullType;
|
|
1010
|
+
waiting: StructType<{
|
|
1011
|
+
reason: StringType;
|
|
1012
|
+
}>;
|
|
1013
|
+
'in-progress': StructType<{
|
|
1014
|
+
/** Process ID of the running task */
|
|
1015
|
+
pid: OptionType<IntegerType>;
|
|
1016
|
+
/** ISO timestamp when execution started */
|
|
1017
|
+
startedAt: OptionType<StringType>;
|
|
1018
|
+
}>;
|
|
1019
|
+
failed: StructType<{
|
|
1020
|
+
/** Process exit code */
|
|
1021
|
+
exitCode: IntegerType;
|
|
1022
|
+
/** ISO timestamp when task completed */
|
|
1023
|
+
completedAt: OptionType<StringType>;
|
|
1024
|
+
}>;
|
|
1025
|
+
error: StructType<{
|
|
1026
|
+
/** Error message */
|
|
1027
|
+
message: StringType;
|
|
1028
|
+
/** ISO timestamp when error occurred */
|
|
1029
|
+
completedAt: OptionType<StringType>;
|
|
1030
|
+
}>;
|
|
1031
|
+
'stale-running': StructType<{
|
|
1032
|
+
/** Last known process ID */
|
|
1033
|
+
pid: OptionType<IntegerType>;
|
|
1034
|
+
/** ISO timestamp when execution started */
|
|
1035
|
+
startedAt: OptionType<StringType>;
|
|
1036
|
+
}>;
|
|
1037
|
+
}>;
|
|
1038
|
+
readonly TaskStatusUpToDateType: StructType<{
|
|
1039
|
+
cached: BooleanType;
|
|
1040
|
+
}>;
|
|
1041
|
+
readonly TaskStatusWaitingType: StructType<{
|
|
1042
|
+
reason: StringType;
|
|
1043
|
+
}>;
|
|
1044
|
+
readonly TaskStatusInProgressType: StructType<{
|
|
1045
|
+
/** Process ID of the running task */
|
|
1046
|
+
pid: OptionType<IntegerType>;
|
|
1047
|
+
/** ISO timestamp when execution started */
|
|
1048
|
+
startedAt: OptionType<StringType>;
|
|
1049
|
+
}>;
|
|
1050
|
+
readonly TaskStatusFailedType: StructType<{
|
|
1051
|
+
/** Process exit code */
|
|
1052
|
+
exitCode: IntegerType;
|
|
1053
|
+
/** ISO timestamp when task completed */
|
|
1054
|
+
completedAt: OptionType<StringType>;
|
|
1055
|
+
}>;
|
|
1056
|
+
readonly TaskStatusErrorType: StructType<{
|
|
1057
|
+
/** Error message */
|
|
1058
|
+
message: StringType;
|
|
1059
|
+
/** ISO timestamp when error occurred */
|
|
1060
|
+
completedAt: OptionType<StringType>;
|
|
1061
|
+
}>;
|
|
1062
|
+
readonly TaskStatusStaleRunningType: StructType<{
|
|
1063
|
+
/** Last known process ID */
|
|
1064
|
+
pid: OptionType<IntegerType>;
|
|
1065
|
+
/** ISO timestamp when execution started */
|
|
1066
|
+
startedAt: OptionType<StringType>;
|
|
1067
|
+
}>;
|
|
1068
|
+
readonly DatasetStatusInfoType: StructType<{
|
|
1069
|
+
path: StringType;
|
|
1070
|
+
status: VariantType<{
|
|
1071
|
+
unset: NullType;
|
|
1072
|
+
stale: NullType;
|
|
1073
|
+
'up-to-date': NullType;
|
|
1074
|
+
}>;
|
|
1075
|
+
hash: OptionType<StringType>;
|
|
1076
|
+
isTaskOutput: BooleanType;
|
|
1077
|
+
producedBy: OptionType<StringType>;
|
|
1078
|
+
}>;
|
|
1079
|
+
readonly TaskStatusInfoType: StructType<{
|
|
1080
|
+
name: StringType;
|
|
1081
|
+
hash: StringType;
|
|
1082
|
+
status: VariantType<{
|
|
1083
|
+
'up-to-date': StructType<{
|
|
1084
|
+
cached: BooleanType;
|
|
1085
|
+
}>;
|
|
1086
|
+
ready: NullType;
|
|
1087
|
+
waiting: StructType<{
|
|
1088
|
+
reason: StringType;
|
|
1089
|
+
}>;
|
|
1090
|
+
'in-progress': StructType<{
|
|
1091
|
+
/** Process ID of the running task */
|
|
1092
|
+
pid: OptionType<IntegerType>;
|
|
1093
|
+
/** ISO timestamp when execution started */
|
|
1094
|
+
startedAt: OptionType<StringType>;
|
|
1095
|
+
}>;
|
|
1096
|
+
failed: StructType<{
|
|
1097
|
+
/** Process exit code */
|
|
1098
|
+
exitCode: IntegerType;
|
|
1099
|
+
/** ISO timestamp when task completed */
|
|
1100
|
+
completedAt: OptionType<StringType>;
|
|
1101
|
+
}>;
|
|
1102
|
+
error: StructType<{
|
|
1103
|
+
/** Error message */
|
|
1104
|
+
message: StringType;
|
|
1105
|
+
/** ISO timestamp when error occurred */
|
|
1106
|
+
completedAt: OptionType<StringType>;
|
|
1107
|
+
}>;
|
|
1108
|
+
'stale-running': StructType<{
|
|
1109
|
+
/** Last known process ID */
|
|
1110
|
+
pid: OptionType<IntegerType>;
|
|
1111
|
+
/** ISO timestamp when execution started */
|
|
1112
|
+
startedAt: OptionType<StringType>;
|
|
1113
|
+
}>;
|
|
1114
|
+
}>;
|
|
1115
|
+
inputs: ArrayType<StringType>;
|
|
1116
|
+
output: StringType;
|
|
1117
|
+
dependsOn: ArrayType<StringType>;
|
|
1118
|
+
}>;
|
|
1119
|
+
readonly WorkspaceStatusSummaryType: StructType<{
|
|
1120
|
+
/** Dataset status counts */
|
|
1121
|
+
datasets: StructType<{
|
|
1122
|
+
total: IntegerType;
|
|
1123
|
+
unset: IntegerType;
|
|
1124
|
+
stale: IntegerType;
|
|
1125
|
+
upToDate: IntegerType;
|
|
1126
|
+
}>;
|
|
1127
|
+
/** Task status counts */
|
|
1128
|
+
tasks: StructType<{
|
|
1129
|
+
total: IntegerType;
|
|
1130
|
+
upToDate: IntegerType;
|
|
1131
|
+
ready: IntegerType;
|
|
1132
|
+
waiting: IntegerType;
|
|
1133
|
+
inProgress: IntegerType;
|
|
1134
|
+
failed: IntegerType;
|
|
1135
|
+
error: IntegerType;
|
|
1136
|
+
staleRunning: IntegerType;
|
|
1137
|
+
}>;
|
|
1138
|
+
}>;
|
|
1139
|
+
readonly WorkspaceStatusResultType: StructType<{
|
|
1140
|
+
workspace: StringType;
|
|
1141
|
+
lock: OptionType<StructType<{
|
|
1142
|
+
pid: IntegerType;
|
|
1143
|
+
acquiredAt: StringType;
|
|
1144
|
+
bootId: OptionType<StringType>;
|
|
1145
|
+
command: OptionType<StringType>;
|
|
1146
|
+
}>>;
|
|
1147
|
+
datasets: ArrayType<StructType<{
|
|
1148
|
+
path: StringType;
|
|
1149
|
+
status: VariantType<{
|
|
1150
|
+
unset: NullType;
|
|
1151
|
+
stale: NullType;
|
|
1152
|
+
'up-to-date': NullType;
|
|
1153
|
+
}>;
|
|
1154
|
+
hash: OptionType<StringType>;
|
|
1155
|
+
isTaskOutput: BooleanType;
|
|
1156
|
+
producedBy: OptionType<StringType>;
|
|
1157
|
+
}>>;
|
|
1158
|
+
tasks: ArrayType<StructType<{
|
|
1159
|
+
name: StringType;
|
|
1160
|
+
hash: StringType;
|
|
1161
|
+
status: VariantType<{
|
|
1162
|
+
'up-to-date': StructType<{
|
|
1163
|
+
cached: BooleanType;
|
|
1164
|
+
}>;
|
|
1165
|
+
ready: NullType;
|
|
1166
|
+
waiting: StructType<{
|
|
1167
|
+
reason: StringType;
|
|
1168
|
+
}>;
|
|
1169
|
+
'in-progress': StructType<{
|
|
1170
|
+
/** Process ID of the running task */
|
|
1171
|
+
pid: OptionType<IntegerType>;
|
|
1172
|
+
/** ISO timestamp when execution started */
|
|
1173
|
+
startedAt: OptionType<StringType>;
|
|
1174
|
+
}>;
|
|
1175
|
+
failed: StructType<{
|
|
1176
|
+
/** Process exit code */
|
|
1177
|
+
exitCode: IntegerType;
|
|
1178
|
+
/** ISO timestamp when task completed */
|
|
1179
|
+
completedAt: OptionType<StringType>;
|
|
1180
|
+
}>;
|
|
1181
|
+
error: StructType<{
|
|
1182
|
+
/** Error message */
|
|
1183
|
+
message: StringType;
|
|
1184
|
+
/** ISO timestamp when error occurred */
|
|
1185
|
+
completedAt: OptionType<StringType>;
|
|
1186
|
+
}>;
|
|
1187
|
+
'stale-running': StructType<{
|
|
1188
|
+
/** Last known process ID */
|
|
1189
|
+
pid: OptionType<IntegerType>;
|
|
1190
|
+
/** ISO timestamp when execution started */
|
|
1191
|
+
startedAt: OptionType<StringType>;
|
|
1192
|
+
}>;
|
|
1193
|
+
}>;
|
|
1194
|
+
inputs: ArrayType<StringType>;
|
|
1195
|
+
output: StringType;
|
|
1196
|
+
dependsOn: ArrayType<StringType>;
|
|
1197
|
+
}>>;
|
|
1198
|
+
summary: StructType<{
|
|
1199
|
+
/** Dataset status counts */
|
|
1200
|
+
datasets: StructType<{
|
|
1201
|
+
total: IntegerType;
|
|
1202
|
+
unset: IntegerType;
|
|
1203
|
+
stale: IntegerType;
|
|
1204
|
+
upToDate: IntegerType;
|
|
1205
|
+
}>;
|
|
1206
|
+
/** Task status counts */
|
|
1207
|
+
tasks: StructType<{
|
|
1208
|
+
total: IntegerType;
|
|
1209
|
+
upToDate: IntegerType;
|
|
1210
|
+
ready: IntegerType;
|
|
1211
|
+
waiting: IntegerType;
|
|
1212
|
+
inProgress: IntegerType;
|
|
1213
|
+
failed: IntegerType;
|
|
1214
|
+
error: IntegerType;
|
|
1215
|
+
staleRunning: IntegerType;
|
|
1216
|
+
}>;
|
|
1217
|
+
}>;
|
|
1218
|
+
}>;
|
|
1219
|
+
readonly TaskListItemType: StructType<{
|
|
1220
|
+
name: StringType;
|
|
1221
|
+
hash: StringType;
|
|
1222
|
+
}>;
|
|
1223
|
+
readonly TaskInfoType: StructType<{
|
|
1224
|
+
name: StringType;
|
|
1225
|
+
hash: StringType;
|
|
1226
|
+
}>;
|
|
1227
|
+
readonly TaskDetailsType: StructType<{
|
|
1228
|
+
name: StringType;
|
|
1229
|
+
hash: StringType;
|
|
1230
|
+
commandIr: StringType;
|
|
1231
|
+
inputs: ArrayType<ArrayType<VariantType<{
|
|
1232
|
+
field: StringType;
|
|
1233
|
+
}>>>;
|
|
1234
|
+
output: ArrayType<VariantType<{
|
|
1235
|
+
field: StringType;
|
|
1236
|
+
}>>;
|
|
1237
|
+
}>;
|
|
1238
|
+
readonly DataflowRequestType: StructType<{
|
|
1239
|
+
concurrency: OptionType<IntegerType>;
|
|
1240
|
+
force: BooleanType;
|
|
1241
|
+
filter: OptionType<StringType>;
|
|
1242
|
+
}>;
|
|
1243
|
+
readonly StartRequestType: StructType<{
|
|
1244
|
+
concurrency: OptionType<IntegerType>;
|
|
1245
|
+
force: BooleanType;
|
|
1246
|
+
filter: OptionType<StringType>;
|
|
1247
|
+
}>;
|
|
1248
|
+
readonly GraphTaskType: StructType<{
|
|
1249
|
+
name: StringType;
|
|
1250
|
+
hash: StringType;
|
|
1251
|
+
inputs: ArrayType<StringType>;
|
|
1252
|
+
output: StringType;
|
|
1253
|
+
dependsOn: ArrayType<StringType>;
|
|
1254
|
+
}>;
|
|
1255
|
+
readonly DataflowGraphType: StructType<{
|
|
1256
|
+
tasks: ArrayType<StructType<{
|
|
1257
|
+
name: StringType;
|
|
1258
|
+
hash: StringType;
|
|
1259
|
+
inputs: ArrayType<StringType>;
|
|
1260
|
+
output: StringType;
|
|
1261
|
+
dependsOn: ArrayType<StringType>;
|
|
1262
|
+
}>>;
|
|
1263
|
+
}>;
|
|
1264
|
+
readonly LogChunkType: StructType<{
|
|
1265
|
+
data: StringType;
|
|
1266
|
+
offset: IntegerType;
|
|
1267
|
+
size: IntegerType;
|
|
1268
|
+
totalSize: IntegerType;
|
|
1269
|
+
complete: BooleanType;
|
|
1270
|
+
}>;
|
|
1271
|
+
readonly TaskExecutionResultType: StructType<{
|
|
1272
|
+
name: StringType;
|
|
1273
|
+
cached: BooleanType;
|
|
1274
|
+
state: VariantType<{
|
|
1275
|
+
success: NullType;
|
|
1276
|
+
failed: StructType<{
|
|
1277
|
+
exitCode: IntegerType;
|
|
1278
|
+
}>;
|
|
1279
|
+
error: StructType<{
|
|
1280
|
+
message: StringType;
|
|
1281
|
+
}>;
|
|
1282
|
+
skipped: NullType;
|
|
1283
|
+
}>;
|
|
1284
|
+
duration: FloatType;
|
|
1285
|
+
}>;
|
|
1286
|
+
readonly DataflowResultType: StructType<{
|
|
1287
|
+
success: BooleanType;
|
|
1288
|
+
executed: IntegerType;
|
|
1289
|
+
cached: IntegerType;
|
|
1290
|
+
failed: IntegerType;
|
|
1291
|
+
skipped: IntegerType;
|
|
1292
|
+
tasks: ArrayType<StructType<{
|
|
1293
|
+
name: StringType;
|
|
1294
|
+
cached: BooleanType;
|
|
1295
|
+
state: VariantType<{
|
|
1296
|
+
success: NullType;
|
|
1297
|
+
failed: StructType<{
|
|
1298
|
+
exitCode: IntegerType;
|
|
1299
|
+
}>;
|
|
1300
|
+
error: StructType<{
|
|
1301
|
+
message: StringType;
|
|
1302
|
+
}>;
|
|
1303
|
+
skipped: NullType;
|
|
1304
|
+
}>;
|
|
1305
|
+
duration: FloatType;
|
|
1306
|
+
}>>;
|
|
1307
|
+
duration: FloatType;
|
|
1308
|
+
}>;
|
|
1309
|
+
};
|
|
1310
|
+
//# sourceMappingURL=types.d.ts.map
|