@elaraai/e3-api-client 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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;GAKG;AAEH,OAAO,EACL,WAAW,EACX,UAAU,EACV,SAAS,EACT,UAAU,EACV,UAAU,EACV,WAAW,EACX,SAAS,EACT,WAAW,EACX,QAAQ,EACR,KAAK,QAAQ,EACb,KAAK,WAAW,EACjB,MAAM,eAAe,CAAC;AAWvB,eAAO,MAAM,0BAA0B;;EAAwC,CAAC;AAChF,eAAO,MAAM,6BAA6B;;EAAwC,CAAC;AACnF,eAAO,MAAM,wBAAwB;;EAAwC,CAAC;AAC9E,eAAO,MAAM,cAAc;;;;;EAKzB,CAAC;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;EAGnC,CAAC;AACH,eAAO,MAAM,wBAAwB;;;EAGnC,CAAC;AACH,eAAO,MAAM,sBAAsB;;;EAA+D,CAAC;AACnG,eAAO,MAAM,uBAAuB;;EAAqC,CAAC;AAC1E,eAAO,MAAM,wBAAwB;;;EAA0D,CAAC;AAChG,eAAO,MAAM,qBAAqB;;EAAmC,CAAC;AACtE,eAAO,MAAM,uBAAuB;;EAAmC,CAAC;AACxE,eAAO,MAAM,iBAAiB;;EAAsC,CAAC;AACrE,eAAO,MAAM,yBAAyB;;EAAmC,CAAC;AAC1E,eAAO,MAAM,iBAAiB;;EAAsC,CAAC;AAErE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAepB,CAAC;AAMH,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,QAAQ,EAAE,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG7D,CAAC;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AAwC;;;;QAMxC,oBAAoB;;QAEpB,wCAAwC;;;;QAMxC,4BAA4B;;QAE5B,2CAA2C;;;;;;;;;;;;;;;;;;;;;;;;;;gBA1B3C,qCAAqC;;gBAErC,2CAA2C;;;;gBAM3C,wBAAwB;;gBAExB,wCAAwC;;;;gBAMxC,oBAAoB;;gBAEpB,wCAAwC;;;;gBAMxC,4BAA4B;;gBAE5B,2CAA2C;;;;;;;;;QAiE3C,4BAA4B;;;;;;;QAO5B,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAlGzB,qCAAqC;;oBAErC,2CAA2C;;;;oBAM3C,wBAAwB;;oBAExB,wCAAwC;;;;oBAMxC,oBAAoB;;oBAEpB,wCAAwC;;;;oBAMxC,4BAA4B;;oBAE5B,2CAA2C;;;;;;;;;YAiE3C,4BAA4B;;;;;;;YAO5B,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmQjB,CAAC"}
@@ -0,0 +1,517 @@
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
+ * 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, } 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 ObjectNotFoundErrorType = StructType({ hash: StringType });
38
+ export const DataflowErrorType = StructType({ message: StringType });
39
+ export const PermissionDeniedErrorType = StructType({ path: StringType });
40
+ export const InternalErrorType = StructType({ message: StringType });
41
+ export const ErrorType = VariantType({
42
+ workspace_not_found: WorkspaceNotFoundErrorType,
43
+ workspace_not_deployed: WorkspaceNotDeployedErrorType,
44
+ workspace_exists: WorkspaceExistsErrorType,
45
+ workspace_locked: WorkspaceLockedErrorType,
46
+ package_not_found: PackageNotFoundErrorType,
47
+ package_exists: PackageExistsErrorType,
48
+ package_invalid: PackageInvalidErrorType,
49
+ dataset_not_found: DatasetNotFoundErrorType,
50
+ task_not_found: TaskNotFoundErrorType,
51
+ object_not_found: ObjectNotFoundErrorType,
52
+ dataflow_error: DataflowErrorType,
53
+ dataflow_aborted: NullType,
54
+ permission_denied: PermissionDeniedErrorType,
55
+ internal: InternalErrorType,
56
+ });
57
+ // =============================================================================
58
+ // Response Wrapper
59
+ // =============================================================================
60
+ export const ResponseType = (successType) => VariantType({
61
+ success: successType,
62
+ error: ErrorType,
63
+ });
64
+ // =============================================================================
65
+ // Repository Types
66
+ // =============================================================================
67
+ /**
68
+ * Repository status information.
69
+ *
70
+ * @property path - Absolute path to the .e3 repository directory
71
+ * @property objectCount - Number of content-addressed objects stored
72
+ * @property packageCount - Number of imported packages
73
+ * @property workspaceCount - Number of workspaces
74
+ */
75
+ export const RepositoryStatusType = StructType({
76
+ path: StringType,
77
+ objectCount: IntegerType,
78
+ packageCount: IntegerType,
79
+ workspaceCount: IntegerType,
80
+ });
81
+ /**
82
+ * Garbage collection request options.
83
+ *
84
+ * @property dryRun - If true, report what would be deleted without deleting
85
+ * @property minAge - Minimum age in milliseconds for objects to be considered for deletion
86
+ */
87
+ export const GcRequestType = StructType({
88
+ dryRun: BooleanType,
89
+ minAge: OptionType(IntegerType),
90
+ });
91
+ /**
92
+ * Garbage collection result.
93
+ *
94
+ * @property deletedObjects - Number of unreferenced objects deleted
95
+ * @property deletedPartials - Number of incomplete uploads deleted
96
+ * @property retainedObjects - Number of objects still referenced
97
+ * @property skippedYoung - Number of objects skipped due to minAge
98
+ * @property bytesFreed - Total bytes freed by deletion
99
+ */
100
+ export const GcResultType = StructType({
101
+ deletedObjects: IntegerType,
102
+ deletedPartials: IntegerType,
103
+ retainedObjects: IntegerType,
104
+ skippedYoung: IntegerType,
105
+ bytesFreed: IntegerType,
106
+ });
107
+ // =============================================================================
108
+ // Package Types
109
+ // =============================================================================
110
+ /**
111
+ * Package list item (summary info).
112
+ *
113
+ * @property name - Package name
114
+ * @property version - Semantic version string
115
+ */
116
+ export const PackageListItemType = StructType({
117
+ name: StringType,
118
+ version: StringType,
119
+ });
120
+ /**
121
+ * Result of importing a package.
122
+ *
123
+ * @property name - Imported package name
124
+ * @property version - Imported package version
125
+ * @property packageHash - SHA256 hash of the package content
126
+ * @property objectCount - Number of objects added to the repository
127
+ */
128
+ export const PackageImportResultType = StructType({
129
+ name: StringType,
130
+ version: StringType,
131
+ packageHash: StringType,
132
+ objectCount: IntegerType,
133
+ });
134
+ /**
135
+ * Basic package info.
136
+ *
137
+ * @property name - Package name
138
+ * @property version - Semantic version string
139
+ * @property hash - SHA256 content hash
140
+ */
141
+ export const PackageInfoType = StructType({
142
+ name: StringType,
143
+ version: StringType,
144
+ hash: StringType,
145
+ });
146
+ /**
147
+ * Detailed package information including structure.
148
+ *
149
+ * @property name - Package name
150
+ * @property version - Semantic version string
151
+ * @property hash - SHA256 content hash
152
+ * @property tasks - List of task names defined in the package
153
+ * @property dataStructure - East structure type describing the package's data schema
154
+ */
155
+ export const PackageDetailsType = StructType({
156
+ name: StringType,
157
+ version: StringType,
158
+ hash: StringType,
159
+ tasks: ArrayType(StringType),
160
+ dataStructure: StructureType,
161
+ });
162
+ // =============================================================================
163
+ // Workspace Types
164
+ // =============================================================================
165
+ /**
166
+ * Request to create a new workspace.
167
+ *
168
+ * @property name - Unique workspace name
169
+ */
170
+ export const WorkspaceCreateRequestType = StructType({
171
+ name: StringType,
172
+ });
173
+ /**
174
+ * Workspace summary information.
175
+ *
176
+ * @property name - Workspace name
177
+ * @property deployed - Whether a package is deployed to this workspace
178
+ * @property packageName - Name of deployed package (if deployed)
179
+ * @property packageVersion - Version of deployed package (if deployed)
180
+ */
181
+ export const WorkspaceInfoType = StructType({
182
+ name: StringType,
183
+ deployed: BooleanType,
184
+ packageName: OptionType(StringType),
185
+ packageVersion: OptionType(StringType),
186
+ });
187
+ /**
188
+ * Request to deploy a package to a workspace.
189
+ *
190
+ * @property packageRef - Package reference in format "name" or "name@version"
191
+ */
192
+ export const WorkspaceDeployRequestType = StructType({
193
+ packageRef: StringType,
194
+ });
195
+ // =============================================================================
196
+ // Workspace Status Types
197
+ // =============================================================================
198
+ /**
199
+ * Dataset status variant.
200
+ *
201
+ * - `unset`: No value assigned to this dataset
202
+ * - `stale`: Value exists but is outdated (upstream changed)
203
+ * - `up-to-date`: Value is current
204
+ */
205
+ export const DatasetStatusType = VariantType({
206
+ unset: NullType,
207
+ stale: NullType,
208
+ 'up-to-date': NullType,
209
+ });
210
+ /** Task completed successfully. @property cached - True if result was from cache */
211
+ export const TaskStatusUpToDateType = StructType({ cached: BooleanType });
212
+ /** Task waiting on dependencies. @property reason - Human-readable wait reason */
213
+ export const TaskStatusWaitingType = StructType({ reason: StringType });
214
+ /** Task currently executing. */
215
+ export const TaskStatusInProgressType = StructType({
216
+ /** Process ID of the running task */
217
+ pid: OptionType(IntegerType),
218
+ /** ISO timestamp when execution started */
219
+ startedAt: OptionType(StringType),
220
+ });
221
+ /** Task exited with non-zero code. */
222
+ export const TaskStatusFailedType = StructType({
223
+ /** Process exit code */
224
+ exitCode: IntegerType,
225
+ /** ISO timestamp when task completed */
226
+ completedAt: OptionType(StringType),
227
+ });
228
+ /** Task encountered an internal error. */
229
+ export const TaskStatusErrorType = StructType({
230
+ /** Error message */
231
+ message: StringType,
232
+ /** ISO timestamp when error occurred */
233
+ completedAt: OptionType(StringType),
234
+ });
235
+ /** Task was running but process is no longer alive. */
236
+ export const TaskStatusStaleRunningType = StructType({
237
+ /** Last known process ID */
238
+ pid: OptionType(IntegerType),
239
+ /** ISO timestamp when execution started */
240
+ startedAt: OptionType(StringType),
241
+ });
242
+ /**
243
+ * Task execution status variant.
244
+ *
245
+ * - `up-to-date`: Task completed successfully (cached indicates if from cache)
246
+ * - `ready`: Task is ready to run (all inputs available)
247
+ * - `waiting`: Task waiting on upstream dependencies
248
+ * - `in-progress`: Task currently executing
249
+ * - `failed`: Task exited with non-zero exit code
250
+ * - `error`: Internal error during task execution
251
+ * - `stale-running`: Task was marked running but process died
252
+ */
253
+ export const TaskStatusType = VariantType({
254
+ 'up-to-date': TaskStatusUpToDateType,
255
+ ready: NullType,
256
+ waiting: TaskStatusWaitingType,
257
+ 'in-progress': TaskStatusInProgressType,
258
+ failed: TaskStatusFailedType,
259
+ error: TaskStatusErrorType,
260
+ 'stale-running': TaskStatusStaleRunningType,
261
+ });
262
+ /**
263
+ * Status information for a single dataset.
264
+ *
265
+ * @property path - Dataset path (e.g., ".inputs.config" or ".tasks.foo.output")
266
+ * @property status - Current status (unset, stale, or up-to-date)
267
+ * @property hash - SHA256 hash of current value (if set)
268
+ * @property isTaskOutput - True if this dataset is produced by a task
269
+ * @property producedBy - Name of task that produces this dataset (if isTaskOutput)
270
+ */
271
+ export const DatasetStatusInfoType = StructType({
272
+ path: StringType,
273
+ status: DatasetStatusType,
274
+ hash: OptionType(StringType),
275
+ isTaskOutput: BooleanType,
276
+ producedBy: OptionType(StringType),
277
+ });
278
+ /**
279
+ * Status information for a single task.
280
+ *
281
+ * @property name - Task name
282
+ * @property hash - Task definition hash (changes when task code changes)
283
+ * @property status - Current execution status
284
+ * @property inputs - Dataset paths this task reads from
285
+ * @property output - Dataset path this task writes to
286
+ * @property dependsOn - Names of tasks that must complete before this one
287
+ */
288
+ export const TaskStatusInfoType = StructType({
289
+ name: StringType,
290
+ hash: StringType,
291
+ status: TaskStatusType,
292
+ inputs: ArrayType(StringType),
293
+ output: StringType,
294
+ dependsOn: ArrayType(StringType),
295
+ });
296
+ /**
297
+ * Summary counts for workspace status.
298
+ */
299
+ export const WorkspaceStatusSummaryType = StructType({
300
+ /** Dataset status counts */
301
+ datasets: StructType({
302
+ total: IntegerType,
303
+ unset: IntegerType,
304
+ stale: IntegerType,
305
+ upToDate: IntegerType,
306
+ }),
307
+ /** Task status counts */
308
+ tasks: StructType({
309
+ total: IntegerType,
310
+ upToDate: IntegerType,
311
+ ready: IntegerType,
312
+ waiting: IntegerType,
313
+ inProgress: IntegerType,
314
+ failed: IntegerType,
315
+ error: IntegerType,
316
+ staleRunning: IntegerType,
317
+ }),
318
+ });
319
+ /**
320
+ * Complete workspace status including all datasets, tasks, and summary.
321
+ *
322
+ * @property workspace - Workspace name
323
+ * @property lock - Information about current lock holder (if locked)
324
+ * @property datasets - Status of all datasets in the workspace
325
+ * @property tasks - Status of all tasks in the workspace
326
+ * @property summary - Aggregated counts by status
327
+ */
328
+ export const WorkspaceStatusResultType = StructType({
329
+ workspace: StringType,
330
+ lock: OptionType(LockHolderType),
331
+ datasets: ArrayType(DatasetStatusInfoType),
332
+ tasks: ArrayType(TaskStatusInfoType),
333
+ summary: WorkspaceStatusSummaryType,
334
+ });
335
+ // =============================================================================
336
+ // Task Types
337
+ // =============================================================================
338
+ /**
339
+ * Task list item (summary info).
340
+ *
341
+ * @property name - Task name
342
+ * @property hash - Task definition hash
343
+ */
344
+ export const TaskListItemType = StructType({
345
+ name: StringType,
346
+ hash: StringType,
347
+ });
348
+ /**
349
+ * Detailed task information.
350
+ *
351
+ * @property name - Task name
352
+ * @property hash - Task definition hash
353
+ * @property commandIr - East IR for the task's command
354
+ * @property inputs - Tree paths for task inputs
355
+ * @property output - Tree path for task output
356
+ */
357
+ export const TaskDetailsType = StructType({
358
+ name: StringType,
359
+ hash: StringType,
360
+ commandIr: StringType,
361
+ inputs: ArrayType(TreePathType),
362
+ output: TreePathType,
363
+ });
364
+ // =============================================================================
365
+ // Execution Types
366
+ // =============================================================================
367
+ /**
368
+ * Request to start dataflow execution.
369
+ *
370
+ * @property concurrency - Maximum parallel tasks (default: 4)
371
+ * @property force - Force re-execution of all tasks
372
+ * @property filter - Filter to specific task names (glob pattern)
373
+ */
374
+ export const DataflowRequestType = StructType({
375
+ concurrency: OptionType(IntegerType),
376
+ force: BooleanType,
377
+ filter: OptionType(StringType),
378
+ });
379
+ /**
380
+ * Task in a dependency graph.
381
+ *
382
+ * @property name - Task name
383
+ * @property hash - Task definition hash
384
+ * @property inputs - Dataset paths this task reads from
385
+ * @property output - Dataset path this task writes to
386
+ * @property dependsOn - Names of tasks that must complete before this one
387
+ */
388
+ export const GraphTaskType = StructType({
389
+ name: StringType,
390
+ hash: StringType,
391
+ inputs: ArrayType(StringType),
392
+ output: StringType,
393
+ dependsOn: ArrayType(StringType),
394
+ });
395
+ /**
396
+ * Dataflow dependency graph.
397
+ *
398
+ * @property tasks - All tasks in the graph with their dependencies
399
+ */
400
+ export const DataflowGraphType = StructType({
401
+ tasks: ArrayType(GraphTaskType),
402
+ });
403
+ /**
404
+ * Chunk of log data from task execution.
405
+ *
406
+ * @property data - Log content (UTF-8 text)
407
+ * @property offset - Byte offset from start of log
408
+ * @property size - Size of this chunk in bytes
409
+ * @property totalSize - Total size of the log file
410
+ * @property complete - True if this chunk reaches end of file
411
+ */
412
+ export const LogChunkType = StructType({
413
+ data: StringType,
414
+ offset: IntegerType,
415
+ size: IntegerType,
416
+ totalSize: IntegerType,
417
+ complete: BooleanType,
418
+ });
419
+ /**
420
+ * Result of executing a single task.
421
+ *
422
+ * @property name - Task name
423
+ * @property cached - True if result was retrieved from cache
424
+ * @property state - Execution outcome (success, failed, error, skipped)
425
+ * @property duration - Execution time in seconds
426
+ */
427
+ export const TaskExecutionResultType = StructType({
428
+ name: StringType,
429
+ cached: BooleanType,
430
+ state: VariantType({
431
+ success: NullType,
432
+ failed: StructType({ exitCode: IntegerType }),
433
+ error: StructType({ message: StringType }),
434
+ skipped: NullType,
435
+ }),
436
+ duration: FloatType,
437
+ });
438
+ /**
439
+ * Result of dataflow execution.
440
+ *
441
+ * @property success - True if all tasks completed successfully
442
+ * @property executed - Number of tasks that were executed
443
+ * @property cached - Number of tasks that used cached results
444
+ * @property failed - Number of tasks that failed
445
+ * @property skipped - Number of tasks that were skipped
446
+ * @property tasks - Per-task execution results
447
+ * @property duration - Total execution time in seconds
448
+ */
449
+ export const DataflowResultType = StructType({
450
+ success: BooleanType,
451
+ executed: IntegerType,
452
+ cached: IntegerType,
453
+ failed: IntegerType,
454
+ skipped: IntegerType,
455
+ tasks: ArrayType(TaskExecutionResultType),
456
+ duration: FloatType,
457
+ });
458
+ // =============================================================================
459
+ // Namespace export for convenience
460
+ // =============================================================================
461
+ export const ApiTypes = {
462
+ // Errors
463
+ ErrorType,
464
+ WorkspaceNotFoundErrorType,
465
+ WorkspaceNotDeployedErrorType,
466
+ WorkspaceExistsErrorType,
467
+ WorkspaceLockedErrorType,
468
+ LockHolderType,
469
+ PackageNotFoundErrorType,
470
+ PackageExistsErrorType,
471
+ PackageInvalidErrorType,
472
+ DatasetNotFoundErrorType,
473
+ TaskNotFoundErrorType,
474
+ ObjectNotFoundErrorType,
475
+ DataflowErrorType,
476
+ PermissionDeniedErrorType,
477
+ InternalErrorType,
478
+ // Response
479
+ ResponseType,
480
+ // Repository
481
+ RepositoryStatusType,
482
+ GcRequestType,
483
+ GcResultType,
484
+ // Packages
485
+ PackageListItemType,
486
+ PackageImportResultType,
487
+ PackageInfoType,
488
+ PackageDetailsType,
489
+ // Workspaces
490
+ WorkspaceCreateRequestType,
491
+ WorkspaceInfoType,
492
+ WorkspaceDeployRequestType,
493
+ // Workspace Status
494
+ DatasetStatusType,
495
+ TaskStatusType,
496
+ TaskStatusUpToDateType,
497
+ TaskStatusWaitingType,
498
+ TaskStatusInProgressType,
499
+ TaskStatusFailedType,
500
+ TaskStatusErrorType,
501
+ TaskStatusStaleRunningType,
502
+ DatasetStatusInfoType,
503
+ TaskStatusInfoType,
504
+ WorkspaceStatusSummaryType,
505
+ WorkspaceStatusResultType,
506
+ // Tasks
507
+ TaskListItemType,
508
+ TaskDetailsType,
509
+ // Execution
510
+ DataflowRequestType,
511
+ GraphTaskType,
512
+ DataflowGraphType,
513
+ LogChunkType,
514
+ TaskExecutionResultType,
515
+ DataflowResultType,
516
+ };
517
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;GAKG;AAEH,OAAO,EACL,WAAW,EACX,UAAU,EACV,SAAS,EACT,UAAU,EACV,UAAU,EACV,WAAW,EACX,SAAS,EACT,WAAW,EACX,QAAQ,GAGT,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,aAAa,EACb,YAAY,GACb,MAAM,mBAAmB,CAAC;AAE3B,gFAAgF;AAChF,cAAc;AACd,gFAAgF;AAEhF,MAAM,CAAC,MAAM,0BAA0B,GAAG,UAAU,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC,CAAC;AAChF,MAAM,CAAC,MAAM,6BAA6B,GAAG,UAAU,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC,CAAC;AACnF,MAAM,CAAC,MAAM,wBAAwB,GAAG,UAAU,CAAC,EAAE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;IACxB,sBAAsB;IACtB,uBAAuB;IACvB,wBAAwB;IACxB,qBAAqB;IACrB,uBAAuB;IACvB,iBAAiB;IACjB,yBAAyB;IACzB,iBAAiB;IAEjB,WAAW;IACX,YAAY;IAEZ,aAAa;IACb,oBAAoB;IACpB,aAAa;IACb,YAAY;IAEZ,WAAW;IACX,mBAAmB;IACnB,uBAAuB;IACvB,eAAe;IACf,kBAAkB;IAElB,aAAa;IACb,0BAA0B;IAC1B,iBAAiB;IACjB,0BAA0B;IAE1B,mBAAmB;IACnB,iBAAiB;IACjB,cAAc;IACd,sBAAsB;IACtB,qBAAqB;IACrB,wBAAwB;IACxB,oBAAoB;IACpB,mBAAmB;IACnB,0BAA0B;IAC1B,qBAAqB;IACrB,kBAAkB;IAClB,0BAA0B;IAC1B,yBAAyB;IAEzB,QAAQ;IACR,gBAAgB;IAChB,eAAe;IAEf,YAAY;IACZ,mBAAmB;IACnB,aAAa;IACb,iBAAiB;IACjB,YAAY;IACZ,uBAAuB;IACvB,kBAAkB;CACV,CAAC"}
@@ -0,0 +1,63 @@
1
+ /**
2
+ * Copyright (c) 2025 Elara AI Pty Ltd
3
+ * Licensed under BSL 1.1. See LICENSE for details.
4
+ */
5
+ import { type WorkspaceState } from '@elaraai/e3-types';
6
+ import type { WorkspaceInfo, WorkspaceStatusResult } from './types.js';
7
+ /**
8
+ * List all workspaces in the repository.
9
+ *
10
+ * @param url - Base URL of the e3 API server
11
+ * @returns Array of workspace info
12
+ */
13
+ export declare function workspaceList(url: string): Promise<WorkspaceInfo[]>;
14
+ /**
15
+ * Create a new empty workspace.
16
+ *
17
+ * @param url - Base URL of the e3 API server
18
+ * @param name - Workspace name
19
+ * @returns Created workspace info
20
+ */
21
+ export declare function workspaceCreate(url: string, name: string): Promise<WorkspaceInfo>;
22
+ /**
23
+ * Get workspace state (deployed package info and current root hash).
24
+ *
25
+ * @param url - Base URL of the e3 API server
26
+ * @param name - Workspace name
27
+ * @returns Workspace state
28
+ */
29
+ export declare function workspaceGet(url: string, name: string): Promise<WorkspaceState>;
30
+ /**
31
+ * Get comprehensive workspace status including datasets, tasks, and lock info.
32
+ *
33
+ * Use this to poll for execution progress after calling dataflowStart().
34
+ *
35
+ * @param url - Base URL of the e3 API server
36
+ * @param name - Workspace name
37
+ * @returns Workspace status with datasets, tasks, and summary
38
+ */
39
+ export declare function workspaceStatus(url: string, name: string): Promise<WorkspaceStatusResult>;
40
+ /**
41
+ * Remove a workspace.
42
+ *
43
+ * @param url - Base URL of the e3 API server
44
+ * @param name - Workspace name
45
+ */
46
+ export declare function workspaceRemove(url: string, name: string): Promise<void>;
47
+ /**
48
+ * Deploy a package to a workspace.
49
+ *
50
+ * @param url - Base URL of the e3 API server
51
+ * @param name - Workspace name
52
+ * @param packageRef - Package reference (name or name@version)
53
+ */
54
+ export declare function workspaceDeploy(url: string, name: string, packageRef: string): Promise<void>;
55
+ /**
56
+ * Export workspace as a package zip archive.
57
+ *
58
+ * @param url - Base URL of the e3 API server
59
+ * @param name - Workspace name
60
+ * @returns Zip archive as bytes
61
+ */
62
+ export declare function workspaceExport(url: string, name: string): Promise<Uint8Array>;
63
+ //# sourceMappingURL=workspaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspaces.d.ts","sourceRoot":"","sources":["../../src/workspaces.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAsB,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC5E,OAAO,KAAK,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AASvE;;;;;GAKG;AACH,wBAAsB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,CAGzE;AAED;;;;;;GAMG;AACH,wBAAsB,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CASvF;AAED;;;;;;GAMG;AACH,wBAAsB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAOrF;AAED;;;;;;;;GAQG;AACH,wBAAsB,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAO/F;AAED;;;;;GAKG;AACH,wBAAsB,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAO9E;AAED;;;;;;GAMG;AACH,wBAAsB,eAAe,CACnC,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,IAAI,CAAC,CASf;AAED;;;;;;GAMG;AACH,wBAAsB,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAOpF"}