@elaraai/e3-api-client 0.0.2-beta.46 → 0.0.2-beta.48

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/dist/src/types.js CHANGED
@@ -3,669 +3,44 @@
3
3
  * Licensed under BSL 1.1. See LICENSE for details.
4
4
  */
5
5
  /**
6
- * API types for e3-api-server and e3-api-client.
7
- *
8
- * All types are East types for BEAST2 serialization.
9
- * This file should be kept in sync with e3-api-server/src/types.ts.
10
- */
11
- import { VariantType, StructType, ArrayType, OptionType, StringType, IntegerType, FloatType, BooleanType, NullType, EastTypeType, } from '@elaraai/east';
12
- import { StructureType, TreePathType, } from '@elaraai/e3-types';
13
- // =============================================================================
14
- // Error Types
15
- // =============================================================================
16
- export const WorkspaceNotFoundErrorType = StructType({ workspace: StringType });
17
- export const WorkspaceNotDeployedErrorType = StructType({ workspace: StringType });
18
- export const WorkspaceExistsErrorType = StructType({ workspace: StringType });
19
- export const LockHolderType = StructType({
20
- pid: IntegerType,
21
- acquiredAt: StringType,
22
- bootId: OptionType(StringType),
23
- command: OptionType(StringType),
24
- });
25
- export const WorkspaceLockedErrorType = StructType({
26
- workspace: StringType,
27
- holder: VariantType({ unknown: NullType, known: LockHolderType }),
28
- });
29
- export const PackageNotFoundErrorType = StructType({
30
- packageName: StringType,
31
- version: OptionType(StringType),
32
- });
33
- export const PackageExistsErrorType = StructType({ packageName: StringType, version: StringType });
34
- export const PackageInvalidErrorType = StructType({ reason: StringType });
35
- export const DatasetNotFoundErrorType = StructType({ workspace: StringType, path: StringType });
36
- export const TaskNotFoundErrorType = StructType({ task: StringType });
37
- export const ExecutionNotFoundErrorType = StructType({ task: StringType });
38
- export const ObjectNotFoundErrorType = StructType({ hash: StringType });
39
- export const DataflowErrorType = StructType({ message: StringType });
40
- export const PermissionDeniedErrorType = StructType({ path: StringType });
41
- export const InternalErrorType = StructType({ message: StringType });
42
- export const RepositoryNotFoundErrorType = StructType({ repo: StringType });
43
- export const ErrorType = VariantType({
44
- repository_not_found: RepositoryNotFoundErrorType,
45
- workspace_not_found: WorkspaceNotFoundErrorType,
46
- workspace_not_deployed: WorkspaceNotDeployedErrorType,
47
- workspace_exists: WorkspaceExistsErrorType,
48
- workspace_locked: WorkspaceLockedErrorType,
49
- package_not_found: PackageNotFoundErrorType,
50
- package_exists: PackageExistsErrorType,
51
- package_invalid: PackageInvalidErrorType,
52
- dataset_not_found: DatasetNotFoundErrorType,
53
- task_not_found: TaskNotFoundErrorType,
54
- execution_not_found: ExecutionNotFoundErrorType,
55
- object_not_found: ObjectNotFoundErrorType,
56
- dataflow_error: DataflowErrorType,
57
- dataflow_aborted: NullType,
58
- permission_denied: PermissionDeniedErrorType,
59
- internal: InternalErrorType,
60
- });
61
- // =============================================================================
62
- // Response Wrapper
63
- // =============================================================================
64
- export const ResponseType = (successType) => VariantType({
65
- success: successType,
66
- error: ErrorType,
67
- });
68
- // =============================================================================
69
- // Repository Types
70
- // =============================================================================
71
- /**
72
- * Repository status information.
73
- *
74
- * @property path - Absolute path to the e3 repository directory
75
- * @property objectCount - Number of content-addressed objects stored
76
- * @property packageCount - Number of imported packages
77
- * @property workspaceCount - Number of workspaces
78
- */
79
- export const RepositoryStatusType = StructType({
80
- path: StringType,
81
- objectCount: IntegerType,
82
- packageCount: IntegerType,
83
- workspaceCount: IntegerType,
84
- });
85
- /**
86
- * Garbage collection request options.
87
- *
88
- * @property dryRun - If true, report what would be deleted without deleting
89
- * @property minAge - Minimum age in milliseconds for objects to be considered for deletion
90
- */
91
- export const GcRequestType = StructType({
92
- dryRun: BooleanType,
93
- minAge: OptionType(IntegerType),
94
- });
95
- /**
96
- * Garbage collection result.
97
- *
98
- * @property deletedObjects - Number of unreferenced objects deleted
99
- * @property deletedPartials - Number of incomplete uploads deleted
100
- * @property retainedObjects - Number of objects still referenced
101
- * @property skippedYoung - Number of objects skipped due to minAge
102
- * @property bytesFreed - Total bytes freed by deletion
103
- */
104
- export const GcResultType = StructType({
105
- deletedObjects: IntegerType,
106
- deletedPartials: IntegerType,
107
- retainedObjects: IntegerType,
108
- skippedYoung: IntegerType,
109
- bytesFreed: IntegerType,
110
- });
111
- // =============================================================================
112
- // Async Operation Types
113
- // =============================================================================
114
- /**
115
- * Status of an async operation.
116
- *
117
- * - `running`: Operation is in progress
118
- * - `succeeded`: Operation completed successfully
119
- * - `failed`: Operation failed with an error
120
- */
121
- export const AsyncOperationStatusType = VariantType({
122
- running: NullType,
123
- succeeded: NullType,
124
- failed: NullType,
125
- });
126
- /**
127
- * Result of starting an async GC operation.
128
- *
129
- * @property executionId - Unique identifier for this GC execution (UUID locally, Step Function ARN in cloud)
130
- */
131
- export const GcStartResultType = StructType({
132
- executionId: StringType,
133
- });
134
- /**
135
- * Status of an async GC operation.
136
- *
137
- * @property status - Current execution status
138
- * @property stats - GC statistics (available when succeeded)
139
- * @property error - Error message (available when failed)
140
- */
141
- export const GcStatusResultType = StructType({
142
- status: AsyncOperationStatusType,
143
- stats: OptionType(GcResultType),
144
- error: OptionType(StringType),
145
- });
146
- // =============================================================================
147
- // Package Types
148
- // =============================================================================
149
- /**
150
- * Package list item (summary info).
151
- *
152
- * @property name - Package name
153
- * @property version - Semantic version string
154
- */
155
- export const PackageListItemType = StructType({
156
- name: StringType,
157
- version: StringType,
158
- });
159
- /**
160
- * Result of importing a package.
161
- *
162
- * @property name - Imported package name
163
- * @property version - Imported package version
164
- * @property packageHash - SHA256 hash of the package content
165
- * @property objectCount - Number of objects added to the repository
166
- */
167
- export const PackageImportResultType = StructType({
168
- name: StringType,
169
- version: StringType,
170
- packageHash: StringType,
171
- objectCount: IntegerType,
172
- });
173
- /**
174
- * Basic package info.
175
- *
176
- * @property name - Package name
177
- * @property version - Semantic version string
178
- * @property hash - SHA256 content hash
179
- */
180
- export const PackageInfoType = StructType({
181
- name: StringType,
182
- version: StringType,
183
- hash: StringType,
184
- });
185
- /**
186
- * Detailed package information including structure.
187
- *
188
- * @property name - Package name
189
- * @property version - Semantic version string
190
- * @property hash - SHA256 content hash
191
- * @property tasks - List of task names defined in the package
192
- * @property dataStructure - East structure type describing the package's data schema
193
- */
194
- export const PackageDetailsType = StructType({
195
- name: StringType,
196
- version: StringType,
197
- hash: StringType,
198
- tasks: ArrayType(StringType),
199
- dataStructure: StructureType,
200
- });
201
- // =============================================================================
202
- // Workspace Types
203
- // =============================================================================
204
- /**
205
- * Request to create a new workspace.
206
- *
207
- * @property name - Unique workspace name
208
- */
209
- export const WorkspaceCreateRequestType = StructType({
210
- name: StringType,
211
- });
212
- /**
213
- * Workspace summary information.
214
- *
215
- * @property name - Workspace name
216
- * @property deployed - Whether a package is deployed to this workspace
217
- * @property packageName - Name of deployed package (if deployed)
218
- * @property packageVersion - Version of deployed package (if deployed)
219
- */
220
- export const WorkspaceInfoType = StructType({
221
- name: StringType,
222
- deployed: BooleanType,
223
- packageName: OptionType(StringType),
224
- packageVersion: OptionType(StringType),
225
- });
226
- /**
227
- * Request to deploy a package to a workspace.
228
- *
229
- * @property packageRef - Package reference in format "name" or "name@version"
230
- */
231
- export const WorkspaceDeployRequestType = StructType({
232
- packageRef: StringType,
233
- });
234
- // =============================================================================
235
- // Workspace Status Types
236
- // =============================================================================
237
- /**
238
- * Dataset status variant.
239
- *
240
- * - `unset`: No value assigned to this dataset
241
- * - `stale`: Value exists but is outdated (upstream changed)
242
- * - `up-to-date`: Value is current
243
- */
244
- export const DatasetStatusType = VariantType({
245
- unset: NullType,
246
- stale: NullType,
247
- 'up-to-date': NullType,
248
- });
249
- /** Task completed successfully. @property cached - True if result was from cache */
250
- export const TaskStatusUpToDateType = StructType({ cached: BooleanType });
251
- /** Task waiting on dependencies. @property reason - Human-readable wait reason */
252
- export const TaskStatusWaitingType = StructType({ reason: StringType });
253
- /** Task currently executing. */
254
- export const TaskStatusInProgressType = StructType({
255
- /** Process ID of the running task */
256
- pid: OptionType(IntegerType),
257
- /** ISO timestamp when execution started */
258
- startedAt: OptionType(StringType),
259
- });
260
- /** Task exited with non-zero code. */
261
- export const TaskStatusFailedType = StructType({
262
- /** Process exit code */
263
- exitCode: IntegerType,
264
- /** ISO timestamp when task completed */
265
- completedAt: OptionType(StringType),
266
- });
267
- /** Task encountered an internal error. */
268
- export const TaskStatusErrorType = StructType({
269
- /** Error message */
270
- message: StringType,
271
- /** ISO timestamp when error occurred */
272
- completedAt: OptionType(StringType),
273
- });
274
- /** Task was running but process is no longer alive. */
275
- export const TaskStatusStaleRunningType = StructType({
276
- /** Last known process ID */
277
- pid: OptionType(IntegerType),
278
- /** ISO timestamp when execution started */
279
- startedAt: OptionType(StringType),
280
- });
281
- /**
282
- * Task execution status variant.
283
- *
284
- * - `up-to-date`: Task completed successfully (cached indicates if from cache)
285
- * - `ready`: Task is ready to run (all inputs available)
286
- * - `waiting`: Task waiting on upstream dependencies
287
- * - `in-progress`: Task currently executing
288
- * - `failed`: Task exited with non-zero exit code
289
- * - `error`: Internal error during task execution
290
- * - `stale-running`: Task was marked running but process died
291
- */
292
- export const TaskStatusType = VariantType({
293
- 'up-to-date': TaskStatusUpToDateType,
294
- ready: NullType,
295
- waiting: TaskStatusWaitingType,
296
- 'in-progress': TaskStatusInProgressType,
297
- failed: TaskStatusFailedType,
298
- error: TaskStatusErrorType,
299
- 'stale-running': TaskStatusStaleRunningType,
300
- });
301
- /**
302
- * Status information for a single dataset.
303
- *
304
- * @property path - Dataset path (e.g., ".inputs.config" or ".tasks.foo.output")
305
- * @property status - Current status (unset, stale, or up-to-date)
306
- * @property hash - SHA256 hash of current value (if set)
307
- * @property isTaskOutput - True if this dataset is produced by a task
308
- * @property producedBy - Name of task that produces this dataset (if isTaskOutput)
309
- */
310
- export const DatasetStatusInfoType = StructType({
311
- path: StringType,
312
- status: DatasetStatusType,
313
- hash: OptionType(StringType),
314
- isTaskOutput: BooleanType,
315
- producedBy: OptionType(StringType),
316
- });
317
- /**
318
- * Status information for a single task.
319
- *
320
- * @property name - Task name
321
- * @property hash - Task definition hash (changes when task code changes)
322
- * @property status - Current execution status
323
- * @property inputs - Dataset paths this task reads from
324
- * @property output - Dataset path this task writes to
325
- * @property dependsOn - Names of tasks that must complete before this one
326
- */
327
- export const TaskStatusInfoType = StructType({
328
- name: StringType,
329
- hash: StringType,
330
- status: TaskStatusType,
331
- inputs: ArrayType(StringType),
332
- output: StringType,
333
- dependsOn: ArrayType(StringType),
334
- });
335
- /**
336
- * Summary counts for workspace status.
337
- */
338
- export const WorkspaceStatusSummaryType = StructType({
339
- /** Dataset status counts */
340
- datasets: StructType({
341
- total: IntegerType,
342
- unset: IntegerType,
343
- stale: IntegerType,
344
- upToDate: IntegerType,
345
- }),
346
- /** Task status counts */
347
- tasks: StructType({
348
- total: IntegerType,
349
- upToDate: IntegerType,
350
- ready: IntegerType,
351
- waiting: IntegerType,
352
- inProgress: IntegerType,
353
- failed: IntegerType,
354
- error: IntegerType,
355
- staleRunning: IntegerType,
356
- }),
357
- });
358
- /**
359
- * Complete workspace status including all datasets, tasks, and summary.
360
- *
361
- * @property workspace - Workspace name
362
- * @property lock - Information about current lock holder (if locked)
363
- * @property datasets - Status of all datasets in the workspace
364
- * @property tasks - Status of all tasks in the workspace
365
- * @property summary - Aggregated counts by status
366
- */
367
- export const WorkspaceStatusResultType = StructType({
368
- workspace: StringType,
369
- lock: OptionType(LockHolderType),
370
- datasets: ArrayType(DatasetStatusInfoType),
371
- tasks: ArrayType(TaskStatusInfoType),
372
- summary: WorkspaceStatusSummaryType,
373
- });
374
- // =============================================================================
375
- // Task Types
376
- // =============================================================================
377
- /**
378
- * Task list item (summary info).
379
- *
380
- * @property name - Task name
381
- * @property hash - Task definition hash
382
- */
383
- export const TaskListItemType = StructType({
384
- name: StringType,
385
- hash: StringType,
386
- });
387
- /**
388
- * Detailed task information.
389
- *
390
- * @property name - Task name
391
- * @property hash - Task definition hash
392
- * @property commandIr - East IR for the task's command
393
- * @property inputs - Tree paths for task inputs
394
- * @property output - Tree path for task output
395
- */
396
- export const TaskDetailsType = StructType({
397
- name: StringType,
398
- hash: StringType,
399
- commandIr: StringType,
400
- inputs: ArrayType(TreePathType),
401
- output: TreePathType,
402
- });
403
- // =============================================================================
404
- // Execution Types
405
- // =============================================================================
406
- /**
407
- * Request to start dataflow execution.
408
- *
409
- * @property concurrency - Maximum parallel tasks (default: 4)
410
- * @property force - Force re-execution of all tasks
411
- * @property filter - Filter to specific task names (glob pattern)
412
- */
413
- export const DataflowRequestType = StructType({
414
- concurrency: OptionType(IntegerType),
415
- force: BooleanType,
416
- filter: OptionType(StringType),
417
- });
418
- /**
419
- * Task in a dependency graph.
420
- *
421
- * @property name - Task name
422
- * @property hash - Task definition hash
423
- * @property inputs - Dataset paths this task reads from
424
- * @property output - Dataset path this task writes to
425
- * @property dependsOn - Names of tasks that must complete before this one
426
- */
427
- export const GraphTaskType = StructType({
428
- name: StringType,
429
- hash: StringType,
430
- inputs: ArrayType(StringType),
431
- output: StringType,
432
- dependsOn: ArrayType(StringType),
433
- });
434
- /**
435
- * Dataflow dependency graph.
436
- *
437
- * @property tasks - All tasks in the graph with their dependencies
438
- */
439
- export const DataflowGraphType = StructType({
440
- tasks: ArrayType(GraphTaskType),
441
- });
442
- /**
443
- * Chunk of log data from task execution.
444
- *
445
- * @property data - Log content (UTF-8 text)
446
- * @property offset - Byte offset from start of log
447
- * @property size - Size of this chunk in bytes
448
- * @property totalSize - Total size of the log file
449
- * @property complete - True if this chunk reaches end of file
450
- */
451
- export const LogChunkType = StructType({
452
- data: StringType,
453
- offset: IntegerType,
454
- size: IntegerType,
455
- totalSize: IntegerType,
456
- complete: BooleanType,
457
- });
458
- /**
459
- * Result of executing a single task.
460
- *
461
- * @property name - Task name
462
- * @property cached - True if result was retrieved from cache
463
- * @property state - Execution outcome (success, failed, error, skipped)
464
- * @property duration - Execution time in seconds
465
- */
466
- export const TaskExecutionResultType = StructType({
467
- name: StringType,
468
- cached: BooleanType,
469
- state: VariantType({
470
- success: NullType,
471
- failed: StructType({ exitCode: IntegerType }),
472
- error: StructType({ message: StringType }),
473
- skipped: NullType,
474
- }),
475
- duration: FloatType,
476
- });
477
- /**
478
- * Result of dataflow execution.
479
- *
480
- * @property success - True if all tasks completed successfully
481
- * @property executed - Number of tasks that were executed
482
- * @property cached - Number of tasks that used cached results
483
- * @property failed - Number of tasks that failed
484
- * @property skipped - Number of tasks that were skipped
485
- * @property tasks - Per-task execution results
486
- * @property duration - Total execution time in seconds
487
- */
488
- export const DataflowResultType = StructType({
489
- success: BooleanType,
490
- executed: IntegerType,
491
- cached: IntegerType,
492
- failed: IntegerType,
493
- skipped: IntegerType,
494
- tasks: ArrayType(TaskExecutionResultType),
495
- duration: FloatType,
496
- });
497
- // =============================================================================
498
- // Dataflow Execution State Types (for polling)
499
- // =============================================================================
500
- /**
501
- * Dataflow event types.
502
- *
503
- * - `start`: Task started executing
504
- * - `complete`: Task executed and succeeded
505
- * - `cached`: Task result retrieved from cache (no execution)
506
- * - `failed`: Task exited with non-zero code
507
- * - `error`: Internal error during task execution
508
- * - `input_unavailable`: Task couldn't run because inputs not available
509
- */
510
- export const DataflowEventType = VariantType({
511
- start: StructType({
512
- task: StringType,
513
- timestamp: StringType,
514
- }),
515
- complete: StructType({
516
- task: StringType,
517
- timestamp: StringType,
518
- duration: FloatType,
519
- }),
520
- cached: StructType({
521
- task: StringType,
522
- timestamp: StringType,
523
- }),
524
- failed: StructType({
525
- task: StringType,
526
- timestamp: StringType,
527
- duration: FloatType,
528
- exitCode: IntegerType,
529
- }),
530
- error: StructType({
531
- task: StringType,
532
- timestamp: StringType,
533
- message: StringType,
534
- }),
535
- input_unavailable: StructType({
536
- task: StringType,
537
- timestamp: StringType,
538
- reason: StringType,
539
- }),
540
- });
541
- /**
542
- * Execution status variant.
543
- *
544
- * - `running`: Execution is in progress
545
- * - `completed`: Execution finished successfully
546
- * - `failed`: Execution finished with failures
547
- * - `aborted`: Execution was cancelled
548
- */
549
- export const ExecutionStatusType = VariantType({
550
- running: NullType,
551
- completed: NullType,
552
- failed: NullType,
553
- aborted: NullType,
554
- });
555
- /**
556
- * Summary of dataflow execution results.
557
- */
558
- export const DataflowExecutionSummaryType = StructType({
559
- executed: IntegerType,
560
- cached: IntegerType,
561
- failed: IntegerType,
562
- skipped: IntegerType,
563
- duration: FloatType,
564
- });
565
- /**
566
- * State of a dataflow execution (for polling).
567
- *
568
- * @property status - Current execution status
569
- * @property startedAt - ISO timestamp when execution started
570
- * @property completedAt - ISO timestamp when execution finished (if done)
571
- * @property summary - Execution summary (available when complete)
572
- * @property events - Task events (may be paginated via offset/limit)
573
- * @property totalEvents - Total number of events (for pagination)
574
- */
575
- export const DataflowExecutionStateType = StructType({
576
- status: ExecutionStatusType,
577
- startedAt: StringType,
578
- completedAt: OptionType(StringType),
579
- summary: OptionType(DataflowExecutionSummaryType),
580
- events: ArrayType(DataflowEventType),
581
- totalEvents: IntegerType,
582
- });
583
- // =============================================================================
584
- // Task Execution History Types
585
- // =============================================================================
586
- /**
587
- * Execution status for history listing.
588
- */
589
- export const ExecutionHistoryStatusType = VariantType({
590
- running: NullType,
591
- success: NullType,
592
- failed: NullType,
593
- error: NullType,
594
- });
595
- /**
596
- * A single execution in task history.
597
- *
598
- * @property inputsHash - Hash of concatenated inputs (execution identifier)
599
- * @property inputHashes - Individual input object hashes
600
- * @property status - Execution outcome
601
- * @property startedAt - ISO timestamp when execution started
602
- * @property completedAt - ISO timestamp when execution finished (if done)
603
- * @property duration - Execution duration in milliseconds (if done)
604
- * @property exitCode - Process exit code (if failed)
605
- */
606
- export const ExecutionListItemType = StructType({
607
- inputsHash: StringType,
608
- inputHashes: ArrayType(StringType),
609
- status: ExecutionHistoryStatusType,
610
- startedAt: StringType,
611
- completedAt: OptionType(StringType),
612
- duration: OptionType(IntegerType),
613
- exitCode: OptionType(IntegerType),
614
- });
615
- // =============================================================================
616
- // Dataset List Types (recursive)
617
- // =============================================================================
618
- /**
619
- * Tree branch kind variant.
620
- *
621
- * Currently only `struct` branches exist. Future: `dict`, `array`, `variant`.
622
- */
623
- export const TreeKindType = VariantType({ struct: NullType });
624
- /**
625
- * A list entry — either a dataset leaf or a tree branch.
626
- *
627
- * Used by the `?list=true&status=true` endpoints to return both
628
- * tree structure entries and dataset leaves in a single flat list.
629
- */
630
- export const ListEntryType = VariantType({
631
- dataset: StructType({
632
- path: StringType,
633
- type: EastTypeType,
634
- hash: OptionType(StringType),
635
- size: OptionType(IntegerType),
636
- }),
637
- tree: StructType({
638
- path: StringType,
639
- kind: TreeKindType,
640
- }),
641
- });
642
- // =============================================================================
643
- // Dataset Status Detail Types (single dataset query)
644
- // =============================================================================
645
- /**
646
- * Detailed status of a single dataset.
647
- *
648
- * @property path - Dataset path (e.g., ".inputs.config")
649
- * @property type - East type of the dataset
650
- * @property refType - Ref type: "unassigned", "null", or "value"
651
- * @property hash - Object hash (None if unassigned/null)
652
- * @property size - Size in bytes (None if unassigned)
653
- */
654
- export const DatasetStatusDetailType = StructType({
655
- path: StringType,
656
- type: EastTypeType,
657
- refType: StringType,
658
- hash: OptionType(StringType),
659
- size: OptionType(IntegerType),
660
- });
661
- // =============================================================================
662
- // Transfer Types (re-exported from e3-types)
663
- // =============================================================================
664
- import { TransferUploadRequestType, TransferUploadResponseType, TransferDoneResponseType, PackageImportStatusType, PackageExportStatusType, } from '@elaraai/e3-types';
665
- export { TransferUploadRequestType, TransferUploadResponseType, TransferDoneResponseType, PackageImportStatusType, PackageExportStatusType, };
6
+ * API types for e3-api-client.
7
+ *
8
+ * Re-exports all API wire types from @elaraai/e3-types (the single source of truth).
9
+ * Types with "Api" prefix in e3-types are re-exported here with shorter names
10
+ * since API consumers don't see the conflicting domain types.
11
+ */
12
+ // API wire types re-export from @elaraai/e3-types
13
+ export {
14
+ // Error types
15
+ WorkspaceNotFoundErrorType, WorkspaceNotDeployedErrorType, WorkspaceExistsErrorType, LockHolderType, WorkspaceLockedErrorType, PackageNotFoundErrorType, PackageExistsErrorType, PackageInvalidErrorType, DatasetNotFoundErrorType, TaskNotFoundErrorType, ExecutionNotFoundErrorType, ObjectNotFoundErrorType, DataflowErrorType, PermissionDeniedErrorType, InternalErrorType, RepositoryNotFoundErrorType, ErrorType, ResponseType,
16
+ // Repository
17
+ RepositoryStatusType, GcRequestType, GcResultType, AsyncOperationStatusType, GcStartResultType, GcStatusResultType,
18
+ // Packages
19
+ PackageListItemType, PackageImportResultType, PackageInfoType, PackageDetailsType,
20
+ // Workspaces
21
+ WorkspaceCreateRequestType, WorkspaceInfoType, WorkspaceDeployRequestType, WorkspaceExportRequestType,
22
+ // Workspace Status
23
+ DatasetStatusType, TaskStatusUpToDateType, TaskStatusWaitingType, TaskStatusInProgressType, TaskStatusFailedType, TaskStatusErrorType, TaskStatusStaleRunningType, TaskStatusType, DatasetStatusInfoType, TaskStatusInfoType, WorkspaceStatusSummaryType, WorkspaceStatusResultType,
24
+ // Tasks
25
+ TaskListItemType, TaskDetailsType,
26
+ // Execution
27
+ DataflowRequestType, LogChunkType, TaskExecutionResultType, DataflowResultType,
28
+ // Dataflow API polling
29
+ DataflowEventType, ApiExecutionStatusType as ExecutionStatusType, DataflowExecutionSummaryType, ApiDataflowExecutionStateType as DataflowExecutionStateType,
30
+ // Task Execution History
31
+ ExecutionHistoryStatusType, ExecutionListItemType,
32
+ // Dataset List
33
+ TreeKindType, ListEntryType,
34
+ // Dataset Status Detail
35
+ DatasetStatusDetailType,
36
+ // Transfer types
37
+ TransferUploadRequestType, TransferUploadResponseType, TransferDoneResponseType, PackageImportStatusType, PackageExportStatusType,
38
+ // Graph types (from dataflow.ts, structurally identical to old API GraphTaskType)
39
+ DataflowGraphType, DataflowGraphTaskType, } from '@elaraai/e3-types';
666
40
  // =============================================================================
667
41
  // Namespace export for convenience
668
42
  // =============================================================================
43
+ import { ErrorType, RepositoryNotFoundErrorType, WorkspaceNotFoundErrorType, WorkspaceNotDeployedErrorType, WorkspaceExistsErrorType, WorkspaceLockedErrorType, LockHolderType, PackageNotFoundErrorType, PackageExistsErrorType, PackageInvalidErrorType, DatasetNotFoundErrorType, TaskNotFoundErrorType, ExecutionNotFoundErrorType, ObjectNotFoundErrorType, DataflowErrorType, PermissionDeniedErrorType, InternalErrorType, ResponseType, RepositoryStatusType, GcRequestType, GcResultType, AsyncOperationStatusType, GcStartResultType, GcStatusResultType, PackageListItemType, PackageImportResultType, PackageInfoType, PackageDetailsType, WorkspaceCreateRequestType, WorkspaceInfoType, WorkspaceDeployRequestType, WorkspaceExportRequestType, DatasetStatusType, TaskStatusType, TaskStatusUpToDateType, TaskStatusWaitingType, TaskStatusInProgressType, TaskStatusFailedType, TaskStatusErrorType, TaskStatusStaleRunningType, DatasetStatusInfoType, TaskStatusInfoType, WorkspaceStatusSummaryType, WorkspaceStatusResultType, TaskListItemType, TaskDetailsType, DataflowRequestType, DataflowGraphType, DataflowGraphTaskType, LogChunkType, TaskExecutionResultType, DataflowResultType, DataflowEventType, ApiExecutionStatusType, DataflowExecutionSummaryType, ApiDataflowExecutionStateType, ExecutionHistoryStatusType, ExecutionListItemType, TreeKindType, ListEntryType, DatasetStatusDetailType, TransferUploadRequestType, TransferUploadResponseType, TransferDoneResponseType, PackageImportStatusType, PackageExportStatusType, } from '@elaraai/e3-types';
669
44
  export const ApiTypes = {
670
45
  // Errors
671
46
  ErrorType,
@@ -704,6 +79,7 @@ export const ApiTypes = {
704
79
  WorkspaceCreateRequestType,
705
80
  WorkspaceInfoType,
706
81
  WorkspaceDeployRequestType,
82
+ WorkspaceExportRequestType,
707
83
  // Workspace Status
708
84
  DatasetStatusType,
709
85
  TaskStatusType,
@@ -722,16 +98,16 @@ export const ApiTypes = {
722
98
  TaskDetailsType,
723
99
  // Execution
724
100
  DataflowRequestType,
725
- GraphTaskType,
726
101
  DataflowGraphType,
102
+ DataflowGraphTaskType,
727
103
  LogChunkType,
728
104
  TaskExecutionResultType,
729
105
  DataflowResultType,
730
106
  // Execution State (polling)
731
107
  DataflowEventType,
732
- ExecutionStatusType,
108
+ ExecutionStatusType: ApiExecutionStatusType,
733
109
  DataflowExecutionSummaryType,
734
- DataflowExecutionStateType,
110
+ DataflowExecutionStateType: ApiDataflowExecutionStateType,
735
111
  // Task Execution History
736
112
  ExecutionHistoryStatusType,
737
113
  ExecutionListItemType,