@elaraai/e3-types 0.0.2-beta.46 → 0.0.2-beta.47

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.
@@ -0,0 +1,1111 @@
1
+ /**
2
+ * Copyright (c) 2025 Elara AI Pty Ltd
3
+ * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
4
+ */
5
+ /**
6
+ * API wire types for e3.
7
+ *
8
+ * These East types define the request/response schemas used by the e3 REST API.
9
+ * They are shared between e3-api-client and e3-api-server.
10
+ *
11
+ * Types that also serve as domain types (PackageImportResultType, DataflowGraphType,
12
+ * DataflowGraphTaskType) are defined in their respective modules and re-exported here.
13
+ *
14
+ * Two types are prefixed with "Api" to avoid name conflicts with domain types
15
+ * that have the same name but different structure:
16
+ * - ApiExecutionStatusType (vs ExecutionStatusType in execution.ts — on-disk task status)
17
+ * - ApiDataflowExecutionStateType (vs DataflowExecutionStateType in dataflow.ts — persistent state)
18
+ */
19
+ import { VariantType, StructType, ArrayType, OptionType, StringType, IntegerType, FloatType, BooleanType, NullType, type EastType, type ValueTypeOf } from '@elaraai/east';
20
+ export declare const WorkspaceNotFoundErrorType: StructType<{
21
+ readonly workspace: StringType;
22
+ }>;
23
+ export declare const WorkspaceNotDeployedErrorType: StructType<{
24
+ readonly workspace: StringType;
25
+ }>;
26
+ export declare const WorkspaceExistsErrorType: StructType<{
27
+ readonly workspace: StringType;
28
+ }>;
29
+ export declare const LockHolderType: StructType<{
30
+ readonly pid: IntegerType;
31
+ readonly acquiredAt: StringType;
32
+ readonly bootId: OptionType<StringType>;
33
+ readonly command: OptionType<StringType>;
34
+ }>;
35
+ export declare const WorkspaceLockedErrorType: StructType<{
36
+ readonly workspace: StringType;
37
+ readonly holder: VariantType<{
38
+ readonly unknown: NullType;
39
+ readonly known: StructType<{
40
+ readonly pid: IntegerType;
41
+ readonly acquiredAt: StringType;
42
+ readonly bootId: OptionType<StringType>;
43
+ readonly command: OptionType<StringType>;
44
+ }>;
45
+ }>;
46
+ }>;
47
+ export declare const PackageNotFoundErrorType: StructType<{
48
+ readonly packageName: StringType;
49
+ readonly version: OptionType<StringType>;
50
+ }>;
51
+ export declare const PackageExistsErrorType: StructType<{
52
+ readonly packageName: StringType;
53
+ readonly version: StringType;
54
+ }>;
55
+ export declare const PackageInvalidErrorType: StructType<{
56
+ readonly reason: StringType;
57
+ }>;
58
+ export declare const DatasetNotFoundErrorType: StructType<{
59
+ readonly workspace: StringType;
60
+ readonly path: StringType;
61
+ }>;
62
+ export declare const TaskNotFoundErrorType: StructType<{
63
+ readonly task: StringType;
64
+ }>;
65
+ export declare const ExecutionNotFoundErrorType: StructType<{
66
+ readonly task: StringType;
67
+ }>;
68
+ export declare const ObjectNotFoundErrorType: StructType<{
69
+ readonly hash: StringType;
70
+ }>;
71
+ export declare const DataflowErrorType: StructType<{
72
+ readonly message: StringType;
73
+ }>;
74
+ export declare const PermissionDeniedErrorType: StructType<{
75
+ readonly path: StringType;
76
+ }>;
77
+ export declare const InternalErrorType: StructType<{
78
+ readonly message: StringType;
79
+ }>;
80
+ export declare const RepositoryNotFoundErrorType: StructType<{
81
+ readonly repo: StringType;
82
+ }>;
83
+ export declare const ErrorType: VariantType<{
84
+ readonly repository_not_found: StructType<{
85
+ readonly repo: StringType;
86
+ }>;
87
+ readonly workspace_not_found: StructType<{
88
+ readonly workspace: StringType;
89
+ }>;
90
+ readonly workspace_not_deployed: StructType<{
91
+ readonly workspace: StringType;
92
+ }>;
93
+ readonly workspace_exists: StructType<{
94
+ readonly workspace: StringType;
95
+ }>;
96
+ readonly workspace_locked: StructType<{
97
+ readonly workspace: StringType;
98
+ readonly holder: VariantType<{
99
+ readonly unknown: NullType;
100
+ readonly known: StructType<{
101
+ readonly pid: IntegerType;
102
+ readonly acquiredAt: StringType;
103
+ readonly bootId: OptionType<StringType>;
104
+ readonly command: OptionType<StringType>;
105
+ }>;
106
+ }>;
107
+ }>;
108
+ readonly package_not_found: StructType<{
109
+ readonly packageName: StringType;
110
+ readonly version: OptionType<StringType>;
111
+ }>;
112
+ readonly package_exists: StructType<{
113
+ readonly packageName: StringType;
114
+ readonly version: StringType;
115
+ }>;
116
+ readonly package_invalid: StructType<{
117
+ readonly reason: StringType;
118
+ }>;
119
+ readonly dataset_not_found: StructType<{
120
+ readonly workspace: StringType;
121
+ readonly path: StringType;
122
+ }>;
123
+ readonly task_not_found: StructType<{
124
+ readonly task: StringType;
125
+ }>;
126
+ readonly execution_not_found: StructType<{
127
+ readonly task: StringType;
128
+ }>;
129
+ readonly object_not_found: StructType<{
130
+ readonly hash: StringType;
131
+ }>;
132
+ readonly dataflow_error: StructType<{
133
+ readonly message: StringType;
134
+ }>;
135
+ readonly dataflow_aborted: NullType;
136
+ readonly permission_denied: StructType<{
137
+ readonly path: StringType;
138
+ }>;
139
+ readonly internal: StructType<{
140
+ readonly message: StringType;
141
+ }>;
142
+ }>;
143
+ export declare const ResponseType: <T extends EastType>(successType: T) => VariantType<{
144
+ readonly success: T;
145
+ readonly error: VariantType<{
146
+ readonly repository_not_found: StructType<{
147
+ readonly repo: StringType;
148
+ }>;
149
+ readonly workspace_not_found: StructType<{
150
+ readonly workspace: StringType;
151
+ }>;
152
+ readonly workspace_not_deployed: StructType<{
153
+ readonly workspace: StringType;
154
+ }>;
155
+ readonly workspace_exists: StructType<{
156
+ readonly workspace: StringType;
157
+ }>;
158
+ readonly workspace_locked: StructType<{
159
+ readonly workspace: StringType;
160
+ readonly holder: VariantType<{
161
+ readonly unknown: NullType;
162
+ readonly known: StructType<{
163
+ readonly pid: IntegerType;
164
+ readonly acquiredAt: StringType;
165
+ readonly bootId: OptionType<StringType>;
166
+ readonly command: OptionType<StringType>;
167
+ }>;
168
+ }>;
169
+ }>;
170
+ readonly package_not_found: StructType<{
171
+ readonly packageName: StringType;
172
+ readonly version: OptionType<StringType>;
173
+ }>;
174
+ readonly package_exists: StructType<{
175
+ readonly packageName: StringType;
176
+ readonly version: StringType;
177
+ }>;
178
+ readonly package_invalid: StructType<{
179
+ readonly reason: StringType;
180
+ }>;
181
+ readonly dataset_not_found: StructType<{
182
+ readonly workspace: StringType;
183
+ readonly path: StringType;
184
+ }>;
185
+ readonly task_not_found: StructType<{
186
+ readonly task: StringType;
187
+ }>;
188
+ readonly execution_not_found: StructType<{
189
+ readonly task: StringType;
190
+ }>;
191
+ readonly object_not_found: StructType<{
192
+ readonly hash: StringType;
193
+ }>;
194
+ readonly dataflow_error: StructType<{
195
+ readonly message: StringType;
196
+ }>;
197
+ readonly dataflow_aborted: NullType;
198
+ readonly permission_denied: StructType<{
199
+ readonly path: StringType;
200
+ }>;
201
+ readonly internal: StructType<{
202
+ readonly message: StringType;
203
+ }>;
204
+ }>;
205
+ }>;
206
+ /**
207
+ * Repository status information.
208
+ *
209
+ * @property path - Absolute path to the e3 repository directory
210
+ * @property objectCount - Number of content-addressed objects stored
211
+ * @property packageCount - Number of imported packages
212
+ * @property workspaceCount - Number of workspaces
213
+ */
214
+ export declare const RepositoryStatusType: StructType<{
215
+ readonly path: StringType;
216
+ readonly objectCount: IntegerType;
217
+ readonly packageCount: IntegerType;
218
+ readonly workspaceCount: IntegerType;
219
+ }>;
220
+ /**
221
+ * Garbage collection request options.
222
+ *
223
+ * @property dryRun - If true, report what would be deleted without deleting
224
+ * @property minAge - Minimum age in milliseconds for objects to be considered for deletion
225
+ */
226
+ export declare const GcRequestType: StructType<{
227
+ readonly dryRun: BooleanType;
228
+ readonly minAge: OptionType<IntegerType>;
229
+ }>;
230
+ /**
231
+ * Garbage collection result.
232
+ *
233
+ * @property deletedObjects - Number of unreferenced objects deleted
234
+ * @property deletedPartials - Number of incomplete uploads deleted
235
+ * @property retainedObjects - Number of objects still referenced
236
+ * @property skippedYoung - Number of objects skipped due to minAge
237
+ * @property bytesFreed - Total bytes freed by deletion
238
+ */
239
+ export declare const GcResultType: StructType<{
240
+ readonly deletedObjects: IntegerType;
241
+ readonly deletedPartials: IntegerType;
242
+ readonly retainedObjects: IntegerType;
243
+ readonly skippedYoung: IntegerType;
244
+ readonly bytesFreed: IntegerType;
245
+ }>;
246
+ /**
247
+ * Status of an async operation.
248
+ *
249
+ * - `running`: Operation is in progress
250
+ * - `succeeded`: Operation completed successfully
251
+ * - `failed`: Operation failed with an error
252
+ */
253
+ export declare const AsyncOperationStatusType: VariantType<{
254
+ readonly running: NullType;
255
+ readonly succeeded: NullType;
256
+ readonly failed: NullType;
257
+ }>;
258
+ /**
259
+ * Result of starting an async GC operation.
260
+ *
261
+ * @property executionId - Unique identifier for this GC execution (UUID locally, Step Function ARN in cloud)
262
+ */
263
+ export declare const GcStartResultType: StructType<{
264
+ readonly executionId: StringType;
265
+ }>;
266
+ /**
267
+ * Status of an async GC operation.
268
+ *
269
+ * @property status - Current execution status
270
+ * @property stats - GC statistics (available when succeeded)
271
+ * @property error - Error message (available when failed)
272
+ */
273
+ export declare const GcStatusResultType: StructType<{
274
+ readonly status: VariantType<{
275
+ readonly running: NullType;
276
+ readonly succeeded: NullType;
277
+ readonly failed: NullType;
278
+ }>;
279
+ readonly stats: OptionType<StructType<{
280
+ readonly deletedObjects: IntegerType;
281
+ readonly deletedPartials: IntegerType;
282
+ readonly retainedObjects: IntegerType;
283
+ readonly skippedYoung: IntegerType;
284
+ readonly bytesFreed: IntegerType;
285
+ }>>;
286
+ readonly error: OptionType<StringType>;
287
+ }>;
288
+ /**
289
+ * Package list item (summary info).
290
+ *
291
+ * @property name - Package name
292
+ * @property version - Semantic version string
293
+ */
294
+ export declare const PackageListItemType: StructType<{
295
+ readonly name: StringType;
296
+ readonly version: StringType;
297
+ }>;
298
+ /**
299
+ * Basic package info.
300
+ *
301
+ * @property name - Package name
302
+ * @property version - Semantic version string
303
+ * @property hash - SHA256 content hash
304
+ */
305
+ export declare const PackageInfoType: StructType<{
306
+ readonly name: StringType;
307
+ readonly version: StringType;
308
+ readonly hash: StringType;
309
+ }>;
310
+ /**
311
+ * Detailed package information including structure.
312
+ *
313
+ * @property name - Package name
314
+ * @property version - Semantic version string
315
+ * @property hash - SHA256 content hash
316
+ * @property tasks - List of task names defined in the package
317
+ * @property dataStructure - East structure type describing the package's data schema
318
+ */
319
+ export declare const PackageDetailsType: StructType<{
320
+ readonly name: StringType;
321
+ readonly version: StringType;
322
+ readonly hash: StringType;
323
+ readonly tasks: ArrayType<StringType>;
324
+ readonly dataStructure: import("@elaraai/east").RecursiveType<VariantType<{
325
+ readonly value: StructType<{
326
+ readonly type: import("@elaraai/east").RecursiveType<VariantType<{
327
+ readonly Never: NullType;
328
+ readonly Null: NullType;
329
+ readonly Boolean: NullType;
330
+ readonly Integer: NullType;
331
+ readonly Float: NullType;
332
+ readonly String: NullType;
333
+ readonly DateTime: NullType;
334
+ readonly Blob: NullType;
335
+ readonly Ref: import("@elaraai/east").RecursiveTypeMarker;
336
+ readonly Array: import("@elaraai/east").RecursiveTypeMarker;
337
+ readonly Set: import("@elaraai/east").RecursiveTypeMarker;
338
+ readonly Dict: StructType<{
339
+ readonly key: import("@elaraai/east").RecursiveTypeMarker;
340
+ readonly value: import("@elaraai/east").RecursiveTypeMarker;
341
+ }>;
342
+ readonly Struct: ArrayType<StructType<{
343
+ readonly name: StringType;
344
+ readonly type: import("@elaraai/east").RecursiveTypeMarker;
345
+ }>>;
346
+ readonly Variant: ArrayType<StructType<{
347
+ readonly name: StringType;
348
+ readonly type: import("@elaraai/east").RecursiveTypeMarker;
349
+ }>>;
350
+ readonly Recursive: IntegerType;
351
+ readonly Function: StructType<{
352
+ readonly inputs: ArrayType<import("@elaraai/east").RecursiveTypeMarker>;
353
+ readonly output: import("@elaraai/east").RecursiveTypeMarker;
354
+ }>;
355
+ readonly AsyncFunction: StructType<{
356
+ readonly inputs: ArrayType<import("@elaraai/east").RecursiveTypeMarker>;
357
+ readonly output: import("@elaraai/east").RecursiveTypeMarker;
358
+ }>;
359
+ readonly Vector: import("@elaraai/east").RecursiveTypeMarker;
360
+ readonly Matrix: import("@elaraai/east").RecursiveTypeMarker;
361
+ }>>;
362
+ readonly writable: BooleanType;
363
+ }>;
364
+ readonly struct: import("@elaraai/east").DictType<StringType, import("@elaraai/east").RecursiveTypeMarker>;
365
+ }>>;
366
+ }>;
367
+ /**
368
+ * Request to create a new workspace.
369
+ *
370
+ * @property name - Unique workspace name
371
+ */
372
+ export declare const WorkspaceCreateRequestType: StructType<{
373
+ readonly name: StringType;
374
+ }>;
375
+ /**
376
+ * Workspace summary information.
377
+ *
378
+ * @property name - Workspace name
379
+ * @property deployed - Whether a package is deployed to this workspace
380
+ * @property packageName - Name of deployed package (if deployed)
381
+ * @property packageVersion - Version of deployed package (if deployed)
382
+ */
383
+ export declare const WorkspaceInfoType: StructType<{
384
+ readonly name: StringType;
385
+ readonly deployed: BooleanType;
386
+ readonly packageName: OptionType<StringType>;
387
+ readonly packageVersion: OptionType<StringType>;
388
+ }>;
389
+ /**
390
+ * Request to deploy a package to a workspace.
391
+ *
392
+ * @property packageRef - Package reference in format "name" or "name@version"
393
+ */
394
+ export declare const WorkspaceDeployRequestType: StructType<{
395
+ readonly packageRef: StringType;
396
+ }>;
397
+ /**
398
+ * Workspace export request body.
399
+ *
400
+ * @property name - Optional custom package name
401
+ * @property version - Optional custom version
402
+ */
403
+ export declare const WorkspaceExportRequestType: StructType<{
404
+ readonly name: OptionType<StringType>;
405
+ readonly version: OptionType<StringType>;
406
+ }>;
407
+ /**
408
+ * Dataset status variant.
409
+ *
410
+ * - `unset`: No value assigned to this dataset
411
+ * - `stale`: Value exists but is outdated (upstream changed)
412
+ * - `up-to-date`: Value is current
413
+ */
414
+ export declare const DatasetStatusType: VariantType<{
415
+ readonly unset: NullType;
416
+ readonly stale: NullType;
417
+ readonly 'up-to-date': NullType;
418
+ }>;
419
+ /** Task completed successfully. @property cached - True if result was from cache */
420
+ export declare const TaskStatusUpToDateType: StructType<{
421
+ readonly cached: BooleanType;
422
+ }>;
423
+ /** Task waiting on dependencies. @property reason - Human-readable wait reason */
424
+ export declare const TaskStatusWaitingType: StructType<{
425
+ readonly reason: StringType;
426
+ }>;
427
+ /** Task currently executing. */
428
+ export declare const TaskStatusInProgressType: StructType<{
429
+ /** Process ID of the running task */
430
+ readonly pid: OptionType<IntegerType>;
431
+ /** ISO timestamp when execution started */
432
+ readonly startedAt: OptionType<StringType>;
433
+ }>;
434
+ /** Task exited with non-zero code. */
435
+ export declare const TaskStatusFailedType: StructType<{
436
+ /** Process exit code */
437
+ readonly exitCode: IntegerType;
438
+ /** ISO timestamp when task completed */
439
+ readonly completedAt: OptionType<StringType>;
440
+ }>;
441
+ /** Task encountered an internal error. */
442
+ export declare const TaskStatusErrorType: StructType<{
443
+ /** Error message */
444
+ readonly message: StringType;
445
+ /** ISO timestamp when error occurred */
446
+ readonly completedAt: OptionType<StringType>;
447
+ }>;
448
+ /** Task was running but process is no longer alive. */
449
+ export declare const TaskStatusStaleRunningType: StructType<{
450
+ /** Last known process ID */
451
+ readonly pid: OptionType<IntegerType>;
452
+ /** ISO timestamp when execution started */
453
+ readonly startedAt: OptionType<StringType>;
454
+ }>;
455
+ /**
456
+ * Task execution status variant.
457
+ *
458
+ * - `up-to-date`: Task completed successfully (cached indicates if from cache)
459
+ * - `ready`: Task is ready to run (all inputs available)
460
+ * - `waiting`: Task waiting on upstream dependencies
461
+ * - `in-progress`: Task currently executing
462
+ * - `failed`: Task exited with non-zero exit code
463
+ * - `error`: Internal error during task execution
464
+ * - `stale-running`: Task was marked running but process died
465
+ */
466
+ export declare const TaskStatusType: VariantType<{
467
+ readonly 'up-to-date': StructType<{
468
+ readonly cached: BooleanType;
469
+ }>;
470
+ readonly ready: NullType;
471
+ readonly waiting: StructType<{
472
+ readonly reason: StringType;
473
+ }>;
474
+ readonly 'in-progress': StructType<{
475
+ /** Process ID of the running task */
476
+ readonly pid: OptionType<IntegerType>;
477
+ /** ISO timestamp when execution started */
478
+ readonly startedAt: OptionType<StringType>;
479
+ }>;
480
+ readonly failed: StructType<{
481
+ /** Process exit code */
482
+ readonly exitCode: IntegerType;
483
+ /** ISO timestamp when task completed */
484
+ readonly completedAt: OptionType<StringType>;
485
+ }>;
486
+ readonly error: StructType<{
487
+ /** Error message */
488
+ readonly message: StringType;
489
+ /** ISO timestamp when error occurred */
490
+ readonly completedAt: OptionType<StringType>;
491
+ }>;
492
+ readonly 'stale-running': StructType<{
493
+ /** Last known process ID */
494
+ readonly pid: OptionType<IntegerType>;
495
+ /** ISO timestamp when execution started */
496
+ readonly startedAt: OptionType<StringType>;
497
+ }>;
498
+ }>;
499
+ /**
500
+ * Status information for a single dataset.
501
+ *
502
+ * @property path - Dataset path (e.g., ".inputs.config" or ".tasks.foo.output")
503
+ * @property status - Current status (unset, stale, or up-to-date)
504
+ * @property hash - SHA256 hash of current value (if set)
505
+ * @property isTaskOutput - True if this dataset is produced by a task
506
+ * @property producedBy - Name of task that produces this dataset (if isTaskOutput)
507
+ */
508
+ export declare const DatasetStatusInfoType: StructType<{
509
+ readonly path: StringType;
510
+ readonly status: VariantType<{
511
+ readonly unset: NullType;
512
+ readonly stale: NullType;
513
+ readonly 'up-to-date': NullType;
514
+ }>;
515
+ readonly hash: OptionType<StringType>;
516
+ readonly isTaskOutput: BooleanType;
517
+ readonly producedBy: OptionType<StringType>;
518
+ }>;
519
+ /**
520
+ * Status information for a single task.
521
+ *
522
+ * @property name - Task name
523
+ * @property hash - Task definition hash (changes when task code changes)
524
+ * @property status - Current execution status
525
+ * @property inputs - Dataset paths this task reads from
526
+ * @property output - Dataset path this task writes to
527
+ * @property dependsOn - Names of tasks that must complete before this one
528
+ */
529
+ export declare const TaskStatusInfoType: StructType<{
530
+ readonly name: StringType;
531
+ readonly hash: StringType;
532
+ readonly status: VariantType<{
533
+ readonly 'up-to-date': StructType<{
534
+ readonly cached: BooleanType;
535
+ }>;
536
+ readonly ready: NullType;
537
+ readonly waiting: StructType<{
538
+ readonly reason: StringType;
539
+ }>;
540
+ readonly 'in-progress': StructType<{
541
+ /** Process ID of the running task */
542
+ readonly pid: OptionType<IntegerType>;
543
+ /** ISO timestamp when execution started */
544
+ readonly startedAt: OptionType<StringType>;
545
+ }>;
546
+ readonly failed: StructType<{
547
+ /** Process exit code */
548
+ readonly exitCode: IntegerType;
549
+ /** ISO timestamp when task completed */
550
+ readonly completedAt: OptionType<StringType>;
551
+ }>;
552
+ readonly error: StructType<{
553
+ /** Error message */
554
+ readonly message: StringType;
555
+ /** ISO timestamp when error occurred */
556
+ readonly completedAt: OptionType<StringType>;
557
+ }>;
558
+ readonly 'stale-running': StructType<{
559
+ /** Last known process ID */
560
+ readonly pid: OptionType<IntegerType>;
561
+ /** ISO timestamp when execution started */
562
+ readonly startedAt: OptionType<StringType>;
563
+ }>;
564
+ }>;
565
+ readonly inputs: ArrayType<StringType>;
566
+ readonly output: StringType;
567
+ readonly dependsOn: ArrayType<StringType>;
568
+ }>;
569
+ /**
570
+ * Summary counts for workspace status.
571
+ */
572
+ export declare const WorkspaceStatusSummaryType: StructType<{
573
+ /** Dataset status counts */
574
+ readonly datasets: StructType<{
575
+ readonly total: IntegerType;
576
+ readonly unset: IntegerType;
577
+ readonly stale: IntegerType;
578
+ readonly upToDate: IntegerType;
579
+ }>;
580
+ /** Task status counts */
581
+ readonly tasks: StructType<{
582
+ readonly total: IntegerType;
583
+ readonly upToDate: IntegerType;
584
+ readonly ready: IntegerType;
585
+ readonly waiting: IntegerType;
586
+ readonly inProgress: IntegerType;
587
+ readonly failed: IntegerType;
588
+ readonly error: IntegerType;
589
+ readonly staleRunning: IntegerType;
590
+ }>;
591
+ }>;
592
+ /**
593
+ * Complete workspace status including all datasets, tasks, and summary.
594
+ *
595
+ * @property workspace - Workspace name
596
+ * @property lock - Information about current lock holder (if locked)
597
+ * @property datasets - Status of all datasets in the workspace
598
+ * @property tasks - Status of all tasks in the workspace
599
+ * @property summary - Aggregated counts by status
600
+ */
601
+ export declare const WorkspaceStatusResultType: StructType<{
602
+ readonly workspace: StringType;
603
+ readonly lock: OptionType<StructType<{
604
+ readonly pid: IntegerType;
605
+ readonly acquiredAt: StringType;
606
+ readonly bootId: OptionType<StringType>;
607
+ readonly command: OptionType<StringType>;
608
+ }>>;
609
+ readonly datasets: ArrayType<StructType<{
610
+ readonly path: StringType;
611
+ readonly status: VariantType<{
612
+ readonly unset: NullType;
613
+ readonly stale: NullType;
614
+ readonly 'up-to-date': NullType;
615
+ }>;
616
+ readonly hash: OptionType<StringType>;
617
+ readonly isTaskOutput: BooleanType;
618
+ readonly producedBy: OptionType<StringType>;
619
+ }>>;
620
+ readonly tasks: ArrayType<StructType<{
621
+ readonly name: StringType;
622
+ readonly hash: StringType;
623
+ readonly status: VariantType<{
624
+ readonly 'up-to-date': StructType<{
625
+ readonly cached: BooleanType;
626
+ }>;
627
+ readonly ready: NullType;
628
+ readonly waiting: StructType<{
629
+ readonly reason: StringType;
630
+ }>;
631
+ readonly 'in-progress': StructType<{
632
+ /** Process ID of the running task */
633
+ readonly pid: OptionType<IntegerType>;
634
+ /** ISO timestamp when execution started */
635
+ readonly startedAt: OptionType<StringType>;
636
+ }>;
637
+ readonly failed: StructType<{
638
+ /** Process exit code */
639
+ readonly exitCode: IntegerType;
640
+ /** ISO timestamp when task completed */
641
+ readonly completedAt: OptionType<StringType>;
642
+ }>;
643
+ readonly error: StructType<{
644
+ /** Error message */
645
+ readonly message: StringType;
646
+ /** ISO timestamp when error occurred */
647
+ readonly completedAt: OptionType<StringType>;
648
+ }>;
649
+ readonly 'stale-running': StructType<{
650
+ /** Last known process ID */
651
+ readonly pid: OptionType<IntegerType>;
652
+ /** ISO timestamp when execution started */
653
+ readonly startedAt: OptionType<StringType>;
654
+ }>;
655
+ }>;
656
+ readonly inputs: ArrayType<StringType>;
657
+ readonly output: StringType;
658
+ readonly dependsOn: ArrayType<StringType>;
659
+ }>>;
660
+ readonly summary: StructType<{
661
+ /** Dataset status counts */
662
+ readonly datasets: StructType<{
663
+ readonly total: IntegerType;
664
+ readonly unset: IntegerType;
665
+ readonly stale: IntegerType;
666
+ readonly upToDate: IntegerType;
667
+ }>;
668
+ /** Task status counts */
669
+ readonly tasks: StructType<{
670
+ readonly total: IntegerType;
671
+ readonly upToDate: IntegerType;
672
+ readonly ready: IntegerType;
673
+ readonly waiting: IntegerType;
674
+ readonly inProgress: IntegerType;
675
+ readonly failed: IntegerType;
676
+ readonly error: IntegerType;
677
+ readonly staleRunning: IntegerType;
678
+ }>;
679
+ }>;
680
+ }>;
681
+ /**
682
+ * Task list item (summary info).
683
+ *
684
+ * @property name - Task name
685
+ * @property hash - Task definition hash
686
+ */
687
+ export declare const TaskListItemType: StructType<{
688
+ readonly name: StringType;
689
+ readonly hash: StringType;
690
+ }>;
691
+ /**
692
+ * Detailed task information.
693
+ *
694
+ * @property name - Task name
695
+ * @property hash - Task definition hash
696
+ * @property commandIr - East IR for the task's command
697
+ * @property inputs - Tree paths for task inputs
698
+ * @property output - Tree path for task output
699
+ */
700
+ export declare const TaskDetailsType: StructType<{
701
+ readonly name: StringType;
702
+ readonly hash: StringType;
703
+ readonly commandIr: StringType;
704
+ readonly inputs: ArrayType<ArrayType<VariantType<{
705
+ readonly field: StringType;
706
+ }>>>;
707
+ readonly output: ArrayType<VariantType<{
708
+ readonly field: StringType;
709
+ }>>;
710
+ }>;
711
+ /**
712
+ * Request to start dataflow execution.
713
+ *
714
+ * @property concurrency - Maximum parallel tasks (default: 4)
715
+ * @property force - Force re-execution of all tasks
716
+ * @property filter - Filter to specific task names (glob pattern)
717
+ */
718
+ export declare const DataflowRequestType: StructType<{
719
+ readonly concurrency: OptionType<IntegerType>;
720
+ readonly force: BooleanType;
721
+ readonly filter: OptionType<StringType>;
722
+ }>;
723
+ /**
724
+ * Chunk of log data from task execution.
725
+ *
726
+ * @property data - Log content (UTF-8 text)
727
+ * @property offset - Byte offset from start of log
728
+ * @property size - Size of this chunk in bytes
729
+ * @property totalSize - Total size of the log file
730
+ * @property complete - True if this chunk reaches end of file
731
+ */
732
+ export declare const LogChunkType: StructType<{
733
+ readonly data: StringType;
734
+ readonly offset: IntegerType;
735
+ readonly size: IntegerType;
736
+ readonly totalSize: IntegerType;
737
+ readonly complete: BooleanType;
738
+ }>;
739
+ /**
740
+ * Result of executing a single task.
741
+ *
742
+ * @property name - Task name
743
+ * @property cached - True if result was retrieved from cache
744
+ * @property state - Execution outcome (success, failed, error, skipped)
745
+ * @property duration - Execution time in seconds
746
+ */
747
+ export declare const TaskExecutionResultType: StructType<{
748
+ readonly name: StringType;
749
+ readonly cached: BooleanType;
750
+ readonly state: VariantType<{
751
+ readonly success: NullType;
752
+ readonly failed: StructType<{
753
+ readonly exitCode: IntegerType;
754
+ }>;
755
+ readonly error: StructType<{
756
+ readonly message: StringType;
757
+ }>;
758
+ readonly skipped: NullType;
759
+ }>;
760
+ readonly duration: FloatType;
761
+ }>;
762
+ /**
763
+ * Result of dataflow execution.
764
+ *
765
+ * @property success - True if all tasks completed successfully
766
+ * @property executed - Number of tasks that were executed
767
+ * @property cached - Number of tasks that used cached results
768
+ * @property failed - Number of tasks that failed
769
+ * @property skipped - Number of tasks that were skipped
770
+ * @property tasks - Per-task execution results
771
+ * @property duration - Total execution time in seconds
772
+ */
773
+ export declare const DataflowResultType: StructType<{
774
+ readonly success: BooleanType;
775
+ readonly executed: IntegerType;
776
+ readonly cached: IntegerType;
777
+ readonly failed: IntegerType;
778
+ readonly skipped: IntegerType;
779
+ readonly tasks: ArrayType<StructType<{
780
+ readonly name: StringType;
781
+ readonly cached: BooleanType;
782
+ readonly state: VariantType<{
783
+ readonly success: NullType;
784
+ readonly failed: StructType<{
785
+ readonly exitCode: IntegerType;
786
+ }>;
787
+ readonly error: StructType<{
788
+ readonly message: StringType;
789
+ }>;
790
+ readonly skipped: NullType;
791
+ }>;
792
+ readonly duration: FloatType;
793
+ }>>;
794
+ readonly duration: FloatType;
795
+ }>;
796
+ /**
797
+ * Dataflow event types for API polling.
798
+ *
799
+ * - `start`: Task started executing
800
+ * - `complete`: Task executed and succeeded
801
+ * - `cached`: Task result retrieved from cache (no execution)
802
+ * - `failed`: Task exited with non-zero code
803
+ * - `error`: Internal error during task execution
804
+ * - `input_unavailable`: Task couldn't run because inputs not available
805
+ */
806
+ export declare const DataflowEventType: VariantType<{
807
+ readonly start: StructType<{
808
+ readonly task: StringType;
809
+ readonly timestamp: StringType;
810
+ }>;
811
+ readonly complete: StructType<{
812
+ readonly task: StringType;
813
+ readonly timestamp: StringType;
814
+ readonly duration: FloatType;
815
+ }>;
816
+ readonly cached: StructType<{
817
+ readonly task: StringType;
818
+ readonly timestamp: StringType;
819
+ }>;
820
+ readonly failed: StructType<{
821
+ readonly task: StringType;
822
+ readonly timestamp: StringType;
823
+ readonly duration: FloatType;
824
+ readonly exitCode: IntegerType;
825
+ }>;
826
+ readonly error: StructType<{
827
+ readonly task: StringType;
828
+ readonly timestamp: StringType;
829
+ readonly message: StringType;
830
+ }>;
831
+ readonly input_unavailable: StructType<{
832
+ readonly task: StringType;
833
+ readonly timestamp: StringType;
834
+ readonly reason: StringType;
835
+ }>;
836
+ }>;
837
+ /**
838
+ * Execution status for API polling responses.
839
+ *
840
+ * - `running`: Execution is in progress
841
+ * - `completed`: Execution finished successfully
842
+ * - `failed`: Execution finished with failures
843
+ * - `aborted`: Execution was cancelled
844
+ *
845
+ * Note: Named "Api*" to distinguish from the on-disk ExecutionStatusType
846
+ * in execution.ts which tracks individual task execution states.
847
+ */
848
+ export declare const ApiExecutionStatusType: VariantType<{
849
+ readonly running: NullType;
850
+ readonly completed: NullType;
851
+ readonly failed: NullType;
852
+ readonly aborted: NullType;
853
+ }>;
854
+ /**
855
+ * Summary of dataflow execution results.
856
+ */
857
+ export declare const DataflowExecutionSummaryType: StructType<{
858
+ readonly executed: IntegerType;
859
+ readonly cached: IntegerType;
860
+ readonly failed: IntegerType;
861
+ readonly skipped: IntegerType;
862
+ readonly duration: FloatType;
863
+ }>;
864
+ /**
865
+ * Dataflow execution state returned by API polling.
866
+ *
867
+ * A lightweight view of the execution state for client polling.
868
+ *
869
+ * Note: Named "Api*" to distinguish from the persistent
870
+ * DataflowExecutionStateType in dataflow.ts which stores the full
871
+ * execution state on disk.
872
+ *
873
+ * @property status - Current execution status
874
+ * @property startedAt - ISO timestamp when execution started
875
+ * @property completedAt - ISO timestamp when execution finished (if done)
876
+ * @property summary - Execution summary (available when complete)
877
+ * @property events - Task events (may be paginated via offset/limit)
878
+ * @property totalEvents - Total number of events (for pagination)
879
+ */
880
+ export declare const ApiDataflowExecutionStateType: StructType<{
881
+ readonly status: VariantType<{
882
+ readonly running: NullType;
883
+ readonly completed: NullType;
884
+ readonly failed: NullType;
885
+ readonly aborted: NullType;
886
+ }>;
887
+ readonly startedAt: StringType;
888
+ readonly completedAt: OptionType<StringType>;
889
+ readonly summary: OptionType<StructType<{
890
+ readonly executed: IntegerType;
891
+ readonly cached: IntegerType;
892
+ readonly failed: IntegerType;
893
+ readonly skipped: IntegerType;
894
+ readonly duration: FloatType;
895
+ }>>;
896
+ readonly events: ArrayType<VariantType<{
897
+ readonly start: StructType<{
898
+ readonly task: StringType;
899
+ readonly timestamp: StringType;
900
+ }>;
901
+ readonly complete: StructType<{
902
+ readonly task: StringType;
903
+ readonly timestamp: StringType;
904
+ readonly duration: FloatType;
905
+ }>;
906
+ readonly cached: StructType<{
907
+ readonly task: StringType;
908
+ readonly timestamp: StringType;
909
+ }>;
910
+ readonly failed: StructType<{
911
+ readonly task: StringType;
912
+ readonly timestamp: StringType;
913
+ readonly duration: FloatType;
914
+ readonly exitCode: IntegerType;
915
+ }>;
916
+ readonly error: StructType<{
917
+ readonly task: StringType;
918
+ readonly timestamp: StringType;
919
+ readonly message: StringType;
920
+ }>;
921
+ readonly input_unavailable: StructType<{
922
+ readonly task: StringType;
923
+ readonly timestamp: StringType;
924
+ readonly reason: StringType;
925
+ }>;
926
+ }>>;
927
+ readonly totalEvents: IntegerType;
928
+ }>;
929
+ /**
930
+ * Execution status for history listing.
931
+ */
932
+ export declare const ExecutionHistoryStatusType: VariantType<{
933
+ readonly running: NullType;
934
+ readonly success: NullType;
935
+ readonly failed: NullType;
936
+ readonly error: NullType;
937
+ }>;
938
+ /**
939
+ * A single execution in task history.
940
+ *
941
+ * @property inputsHash - Hash of concatenated inputs (execution identifier)
942
+ * @property inputHashes - Individual input object hashes
943
+ * @property status - Execution outcome
944
+ * @property startedAt - ISO timestamp when execution started
945
+ * @property completedAt - ISO timestamp when execution finished (if done)
946
+ * @property duration - Execution duration in milliseconds (if done)
947
+ * @property exitCode - Process exit code (if failed)
948
+ */
949
+ export declare const ExecutionListItemType: StructType<{
950
+ readonly inputsHash: StringType;
951
+ readonly inputHashes: ArrayType<StringType>;
952
+ readonly status: VariantType<{
953
+ readonly running: NullType;
954
+ readonly success: NullType;
955
+ readonly failed: NullType;
956
+ readonly error: NullType;
957
+ }>;
958
+ readonly startedAt: StringType;
959
+ readonly completedAt: OptionType<StringType>;
960
+ readonly duration: OptionType<IntegerType>;
961
+ readonly exitCode: OptionType<IntegerType>;
962
+ }>;
963
+ /**
964
+ * Tree branch kind variant.
965
+ *
966
+ * Currently only `struct` branches exist. Future: `dict`, `array`, `variant`.
967
+ */
968
+ export declare const TreeKindType: VariantType<{
969
+ readonly struct: NullType;
970
+ }>;
971
+ /**
972
+ * A list entry -- either a dataset leaf or a tree branch.
973
+ *
974
+ * Used by the `?list=true&status=true` endpoints to return both
975
+ * tree structure entries and dataset leaves in a single flat list.
976
+ */
977
+ export declare const ListEntryType: VariantType<{
978
+ readonly dataset: StructType<{
979
+ readonly path: StringType;
980
+ readonly type: import("@elaraai/east").RecursiveType<VariantType<{
981
+ readonly Never: NullType;
982
+ readonly Null: NullType;
983
+ readonly Boolean: NullType;
984
+ readonly Integer: NullType;
985
+ readonly Float: NullType;
986
+ readonly String: NullType;
987
+ readonly DateTime: NullType;
988
+ readonly Blob: NullType;
989
+ readonly Ref: import("@elaraai/east").RecursiveTypeMarker;
990
+ readonly Array: import("@elaraai/east").RecursiveTypeMarker;
991
+ readonly Set: import("@elaraai/east").RecursiveTypeMarker;
992
+ readonly Dict: StructType<{
993
+ readonly key: import("@elaraai/east").RecursiveTypeMarker;
994
+ readonly value: import("@elaraai/east").RecursiveTypeMarker;
995
+ }>;
996
+ readonly Struct: ArrayType<StructType<{
997
+ readonly name: StringType;
998
+ readonly type: import("@elaraai/east").RecursiveTypeMarker;
999
+ }>>;
1000
+ readonly Variant: ArrayType<StructType<{
1001
+ readonly name: StringType;
1002
+ readonly type: import("@elaraai/east").RecursiveTypeMarker;
1003
+ }>>;
1004
+ readonly Recursive: IntegerType;
1005
+ readonly Function: StructType<{
1006
+ readonly inputs: ArrayType<import("@elaraai/east").RecursiveTypeMarker>;
1007
+ readonly output: import("@elaraai/east").RecursiveTypeMarker;
1008
+ }>;
1009
+ readonly AsyncFunction: StructType<{
1010
+ readonly inputs: ArrayType<import("@elaraai/east").RecursiveTypeMarker>;
1011
+ readonly output: import("@elaraai/east").RecursiveTypeMarker;
1012
+ }>;
1013
+ readonly Vector: import("@elaraai/east").RecursiveTypeMarker;
1014
+ readonly Matrix: import("@elaraai/east").RecursiveTypeMarker;
1015
+ }>>;
1016
+ readonly hash: OptionType<StringType>;
1017
+ readonly size: OptionType<IntegerType>;
1018
+ }>;
1019
+ readonly tree: StructType<{
1020
+ readonly path: StringType;
1021
+ readonly kind: VariantType<{
1022
+ readonly struct: NullType;
1023
+ }>;
1024
+ }>;
1025
+ }>;
1026
+ /**
1027
+ * Detailed status of a single dataset.
1028
+ *
1029
+ * @property path - Dataset path (e.g., ".inputs.config")
1030
+ * @property type - East type of the dataset
1031
+ * @property refType - Ref type: "unassigned", "null", or "value"
1032
+ * @property hash - Object hash (None if unassigned/null)
1033
+ * @property size - Size in bytes (None if unassigned)
1034
+ */
1035
+ export declare const DatasetStatusDetailType: StructType<{
1036
+ readonly path: StringType;
1037
+ readonly type: import("@elaraai/east").RecursiveType<VariantType<{
1038
+ readonly Never: NullType;
1039
+ readonly Null: NullType;
1040
+ readonly Boolean: NullType;
1041
+ readonly Integer: NullType;
1042
+ readonly Float: NullType;
1043
+ readonly String: NullType;
1044
+ readonly DateTime: NullType;
1045
+ readonly Blob: NullType;
1046
+ readonly Ref: import("@elaraai/east").RecursiveTypeMarker;
1047
+ readonly Array: import("@elaraai/east").RecursiveTypeMarker;
1048
+ readonly Set: import("@elaraai/east").RecursiveTypeMarker;
1049
+ readonly Dict: StructType<{
1050
+ readonly key: import("@elaraai/east").RecursiveTypeMarker;
1051
+ readonly value: import("@elaraai/east").RecursiveTypeMarker;
1052
+ }>;
1053
+ readonly Struct: ArrayType<StructType<{
1054
+ readonly name: StringType;
1055
+ readonly type: import("@elaraai/east").RecursiveTypeMarker;
1056
+ }>>;
1057
+ readonly Variant: ArrayType<StructType<{
1058
+ readonly name: StringType;
1059
+ readonly type: import("@elaraai/east").RecursiveTypeMarker;
1060
+ }>>;
1061
+ readonly Recursive: IntegerType;
1062
+ readonly Function: StructType<{
1063
+ readonly inputs: ArrayType<import("@elaraai/east").RecursiveTypeMarker>;
1064
+ readonly output: import("@elaraai/east").RecursiveTypeMarker;
1065
+ }>;
1066
+ readonly AsyncFunction: StructType<{
1067
+ readonly inputs: ArrayType<import("@elaraai/east").RecursiveTypeMarker>;
1068
+ readonly output: import("@elaraai/east").RecursiveTypeMarker;
1069
+ }>;
1070
+ readonly Vector: import("@elaraai/east").RecursiveTypeMarker;
1071
+ readonly Matrix: import("@elaraai/east").RecursiveTypeMarker;
1072
+ }>>;
1073
+ readonly refType: StringType;
1074
+ readonly hash: OptionType<StringType>;
1075
+ readonly size: OptionType<IntegerType>;
1076
+ }>;
1077
+ export type Error = ValueTypeOf<typeof ErrorType>;
1078
+ export type RepositoryStatus = ValueTypeOf<typeof RepositoryStatusType>;
1079
+ export type GcRequest = ValueTypeOf<typeof GcRequestType>;
1080
+ export type GcResult = ValueTypeOf<typeof GcResultType>;
1081
+ export type AsyncOperationStatus = ValueTypeOf<typeof AsyncOperationStatusType>;
1082
+ export type GcStartResult = ValueTypeOf<typeof GcStartResultType>;
1083
+ export type GcStatusResult = ValueTypeOf<typeof GcStatusResultType>;
1084
+ export type PackageListItem = ValueTypeOf<typeof PackageListItemType>;
1085
+ export type PackageInfo = ValueTypeOf<typeof PackageInfoType>;
1086
+ export type PackageDetails = ValueTypeOf<typeof PackageDetailsType>;
1087
+ export type WorkspaceInfo = ValueTypeOf<typeof WorkspaceInfoType>;
1088
+ export type WorkspaceCreateRequest = ValueTypeOf<typeof WorkspaceCreateRequestType>;
1089
+ export type WorkspaceDeployRequest = ValueTypeOf<typeof WorkspaceDeployRequestType>;
1090
+ export type DatasetStatus = ValueTypeOf<typeof DatasetStatusType>;
1091
+ export type TaskStatus = ValueTypeOf<typeof TaskStatusType>;
1092
+ export type DatasetStatusInfo = ValueTypeOf<typeof DatasetStatusInfoType>;
1093
+ export type TaskStatusInfo = ValueTypeOf<typeof TaskStatusInfoType>;
1094
+ export type WorkspaceStatusSummary = ValueTypeOf<typeof WorkspaceStatusSummaryType>;
1095
+ export type WorkspaceStatusResult = ValueTypeOf<typeof WorkspaceStatusResultType>;
1096
+ export type TaskListItem = ValueTypeOf<typeof TaskListItemType>;
1097
+ export type TaskDetails = ValueTypeOf<typeof TaskDetailsType>;
1098
+ export type DataflowRequest = ValueTypeOf<typeof DataflowRequestType>;
1099
+ export type LogChunk = ValueTypeOf<typeof LogChunkType>;
1100
+ export type TaskExecutionResult = ValueTypeOf<typeof TaskExecutionResultType>;
1101
+ export type DataflowResult = ValueTypeOf<typeof DataflowResultType>;
1102
+ export type DataflowEvent = ValueTypeOf<typeof DataflowEventType>;
1103
+ export type ApiExecutionStatus = ValueTypeOf<typeof ApiExecutionStatusType>;
1104
+ export type DataflowExecutionSummary = ValueTypeOf<typeof DataflowExecutionSummaryType>;
1105
+ export type ApiDataflowExecutionState = ValueTypeOf<typeof ApiDataflowExecutionStateType>;
1106
+ export type ExecutionHistoryStatus = ValueTypeOf<typeof ExecutionHistoryStatusType>;
1107
+ export type ExecutionListItem = ValueTypeOf<typeof ExecutionListItemType>;
1108
+ export type TreeKind = ValueTypeOf<typeof TreeKindType>;
1109
+ export type ListEntry = ValueTypeOf<typeof ListEntryType>;
1110
+ export type DatasetStatusDetail = ValueTypeOf<typeof DatasetStatusDetailType>;
1111
+ //# sourceMappingURL=api.d.ts.map