@elaraai/e3-api-client 1.0.79 → 1.0.80
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/README.md +19 -9
- package/dist/src/datasets-transfer.spec.js +7 -26
- package/dist/src/datasets-transfer.spec.js.map +1 -1
- package/dist/src/datasets.d.ts +67 -7
- package/dist/src/datasets.d.ts.map +1 -1
- package/dist/src/datasets.js +181 -30
- package/dist/src/datasets.js.map +1 -1
- package/dist/src/datasets.spec.js +131 -4
- package/dist/src/datasets.spec.js.map +1 -1
- package/dist/src/executions.d.ts +17 -6
- package/dist/src/executions.d.ts.map +1 -1
- package/dist/src/executions.js +21 -8
- package/dist/src/executions.js.map +1 -1
- package/dist/src/http.d.ts +19 -5
- package/dist/src/http.d.ts.map +1 -1
- package/dist/src/http.js +25 -14
- package/dist/src/http.js.map +1 -1
- package/dist/src/index.d.ts +8 -7
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +5 -8
- package/dist/src/index.js.map +1 -1
- package/dist/src/packages.d.ts +11 -1
- package/dist/src/packages.d.ts.map +1 -1
- package/dist/src/packages.js +16 -6
- package/dist/src/packages.js.map +1 -1
- package/dist/src/platform.d.ts +231 -34
- package/dist/src/platform.d.ts.map +1 -1
- package/dist/src/platform.js +2 -6
- package/dist/src/platform.js.map +1 -1
- package/dist/src/records.d.ts.map +1 -1
- package/dist/src/records.js +1 -1
- package/dist/src/records.js.map +1 -1
- package/dist/src/records.spec.d.ts +6 -0
- package/dist/src/records.spec.d.ts.map +1 -0
- package/dist/src/records.spec.js +73 -0
- package/dist/src/records.spec.js.map +1 -0
- package/dist/src/repository.d.ts +14 -0
- package/dist/src/repository.d.ts.map +1 -1
- package/dist/src/repository.js +16 -0
- package/dist/src/repository.js.map +1 -1
- package/dist/src/types.d.ts +308 -16
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/types.js +12 -3
- package/dist/src/types.js.map +1 -1
- package/dist/src/util.d.ts +9 -7
- package/dist/src/util.d.ts.map +1 -1
- package/dist/src/util.js +14 -8
- package/dist/src/util.js.map +1 -1
- package/dist/src/util.spec.d.ts +6 -0
- package/dist/src/util.spec.d.ts.map +1 -0
- package/dist/src/util.spec.js +34 -0
- package/dist/src/util.spec.js.map +1 -0
- package/dist/src/workspaces.d.ts +31 -4
- package/dist/src/workspaces.d.ts.map +1 -1
- package/dist/src/workspaces.js +34 -7
- package/dist/src/workspaces.js.map +1 -1
- package/package.json +5 -5
package/dist/src/types.js
CHANGED
|
@@ -18,7 +18,7 @@ RepositoryStatusType, GcRequestType, GcResultType, AsyncOperationStatusType, GcS
|
|
|
18
18
|
// Packages
|
|
19
19
|
PackageListItemType, PackageImportResultType, PackageInfoType, PackageDetailsType,
|
|
20
20
|
// Workspaces
|
|
21
|
-
WorkspaceCreateRequestType, WorkspaceInfoType, WorkspaceDeployRequestType, WorkspaceExportRequestType,
|
|
21
|
+
WorkspaceCreateRequestType, WorkspaceInfoType, SchemaPolicyType, WorkspaceDeployRequestType, RecordPlanType, RecordIndexPlanType, WorkspaceDeployResultType, WorkspaceDeployProgressType, WorkspaceDeployStatusType, WorkspaceExportRequestType,
|
|
22
22
|
// Workspace Status
|
|
23
23
|
DatasetStatusType, TaskStatusUpToDateType, TaskStatusWaitingType, TaskStatusInProgressType, TaskStatusFailedType, TaskStatusErrorType, TaskStatusStaleRunningType, TaskStatusType, DatasetStatusInfoType, TaskStatusInfoType, WorkspaceStatusSummaryType, WorkspaceStatusResultType,
|
|
24
24
|
// Tasks
|
|
@@ -26,7 +26,7 @@ TaskListItemType, TaskDetailsType,
|
|
|
26
26
|
// Execution
|
|
27
27
|
DataflowRequestType, LogChunkType, TaskExecutionResultType, DataflowResultType,
|
|
28
28
|
// Dataflow API polling
|
|
29
|
-
DataflowEventType, ApiExecutionStatusType as ExecutionStatusType, DataflowExecutionSummaryType, ApiDataflowExecutionStateType as DataflowExecutionStateType,
|
|
29
|
+
DataflowEventType, ApiExecutionStatusType as ExecutionStatusType, DataflowExecutionSummaryType, DataflowBudgetType, UnitWaitType, SplitProgressType, ApiDataflowExecutionStateType as DataflowExecutionStateType,
|
|
30
30
|
// Task Execution History
|
|
31
31
|
ExecutionHistoryStatusType, ExecutionListItemType,
|
|
32
32
|
// Dataset List
|
|
@@ -42,7 +42,7 @@ DataflowGraphType, DataflowGraphTaskType, } from '@elaraai/e3-types';
|
|
|
42
42
|
// =============================================================================
|
|
43
43
|
// Namespace export for convenience
|
|
44
44
|
// =============================================================================
|
|
45
|
-
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, TransferPartResponseType, TransferDoneResponseType, PackageImportStatusType, PackageExportStatusType, RunnerType as _RunnerType, ExecuteLimitsType as _ExecuteLimitsType, DiagnosticType as _DiagnosticType, ExecuteResultType as _ExecuteResultType, FunctionCallRequestType as _FunctionCallRequestType, FunctionSignatureType as _FunctionSignatureType, OneShotRequestType as _OneShotRequestType, } from '@elaraai/e3-types';
|
|
45
|
+
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, SchemaPolicyType, WorkspaceDeployRequestType, RecordPlanType, RecordIndexPlanType, WorkspaceDeployResultType, WorkspaceDeployProgressType, WorkspaceDeployStatusType, WorkspaceExportRequestType, DatasetStatusType, TaskStatusType, TaskStatusUpToDateType, TaskStatusWaitingType, TaskStatusInProgressType, TaskStatusFailedType, TaskStatusErrorType, TaskStatusStaleRunningType, DatasetStatusInfoType, TaskStatusInfoType, WorkspaceStatusSummaryType, WorkspaceStatusResultType, TaskListItemType, TaskDetailsType, DataflowRequestType, DataflowGraphType, DataflowGraphTaskType, LogChunkType, TaskExecutionResultType, DataflowResultType, DataflowEventType, ApiExecutionStatusType, DataflowExecutionSummaryType, DataflowBudgetType, UnitWaitType, SplitProgressType, ApiDataflowExecutionStateType, ExecutionHistoryStatusType, ExecutionListItemType, TreeKindType, ListEntryType, DatasetStatusDetailType, TransferUploadRequestType, TransferUploadResponseType, TransferPartResponseType, TransferDoneResponseType, PackageImportStatusType, PackageExportStatusType, RunnerType as _RunnerType, ExecuteLimitsType as _ExecuteLimitsType, DiagnosticType as _DiagnosticType, ExecuteResultType as _ExecuteResultType, FunctionCallRequestType as _FunctionCallRequestType, FunctionSignatureType as _FunctionSignatureType, OneShotRequestType as _OneShotRequestType, } from '@elaraai/e3-types';
|
|
46
46
|
export const ApiTypes = {
|
|
47
47
|
// Errors
|
|
48
48
|
ErrorType,
|
|
@@ -80,7 +80,13 @@ export const ApiTypes = {
|
|
|
80
80
|
// Workspaces
|
|
81
81
|
WorkspaceCreateRequestType,
|
|
82
82
|
WorkspaceInfoType,
|
|
83
|
+
SchemaPolicyType,
|
|
83
84
|
WorkspaceDeployRequestType,
|
|
85
|
+
RecordPlanType,
|
|
86
|
+
RecordIndexPlanType,
|
|
87
|
+
WorkspaceDeployResultType,
|
|
88
|
+
WorkspaceDeployProgressType,
|
|
89
|
+
WorkspaceDeployStatusType,
|
|
84
90
|
WorkspaceExportRequestType,
|
|
85
91
|
// Workspace Status
|
|
86
92
|
DatasetStatusType,
|
|
@@ -109,6 +115,9 @@ export const ApiTypes = {
|
|
|
109
115
|
DataflowEventType,
|
|
110
116
|
ExecutionStatusType: ApiExecutionStatusType,
|
|
111
117
|
DataflowExecutionSummaryType,
|
|
118
|
+
DataflowBudgetType,
|
|
119
|
+
UnitWaitType,
|
|
120
|
+
SplitProgressType,
|
|
112
121
|
DataflowExecutionStateType: ApiDataflowExecutionStateType,
|
|
113
122
|
// Task Execution History
|
|
114
123
|
ExecutionHistoryStatusType,
|
package/dist/src/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;GAMG;AAEH,oDAAoD;AACpD,OAAO;AACL,cAAc;AACd,0BAA0B,EAC1B,6BAA6B,EAC7B,wBAAwB,EACxB,cAAc,EACd,wBAAwB,EACxB,wBAAwB,EACxB,sBAAsB,EACtB,uBAAuB,EACvB,wBAAwB,EACxB,qBAAqB,EACrB,0BAA0B,EAC1B,uBAAuB,EACvB,iBAAiB,EACjB,yBAAyB,EACzB,iBAAiB,EACjB,2BAA2B,EAC3B,SAAS,EACT,YAAY;AACZ,aAAa;AACb,oBAAoB,EACpB,aAAa,EACb,YAAY,EACZ,wBAAwB,EACxB,iBAAiB,EACjB,kBAAkB;AAClB,WAAW;AACX,mBAAmB,EACnB,uBAAuB,EACvB,eAAe,EACf,kBAAkB;AAClB,aAAa;AACb,0BAA0B,EAC1B,iBAAiB,EACjB,0BAA0B,EAC1B,0BAA0B;AAC1B,mBAAmB;AACnB,iBAAiB,EACjB,sBAAsB,EACtB,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,EACpB,mBAAmB,EACnB,0BAA0B,EAC1B,cAAc,EACd,qBAAqB,EACrB,kBAAkB,EAClB,0BAA0B,EAC1B,yBAAyB;AACzB,QAAQ;AACR,gBAAgB,EAChB,eAAe;AACf,YAAY;AACZ,mBAAmB,EACnB,YAAY,EACZ,uBAAuB,EACvB,kBAAkB;AAClB,uBAAuB;AACvB,iBAAiB,EACjB,sBAAsB,IAAI,mBAAmB,EAC7C,4BAA4B,EAC5B,6BAA6B,IAAI,0BAA0B;AAC3D,yBAAyB;AACzB,0BAA0B,EAC1B,qBAAqB;AACrB,eAAe;AACf,YAAY,EACZ,aAAa;AACb,wBAAwB;AACxB,uBAAuB;AACvB,iBAAiB;AACjB,yBAAyB,EACzB,0BAA0B,EAC1B,wBAAwB,EACxB,wBAAwB,EACxB,uBAAuB,EACvB,uBAAuB;AACvB,gCAAgC;AAChC,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EACjB,uBAAuB,EACvB,qBAAqB,EACrB,kBAAkB,EAClB,uBAAuB,EACvB,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,uBAAuB;AACvB,kFAAkF;AAClF,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA;;;GAG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,yBAAyB;IAEzB,QAAQ;IACR,gBAAgB;IAChB,eAAe;IAEf,YAAY;IACZ,mBAAmB;IACnB,iBAAiB;IACjB,qBAAqB;IACrB,YAAY;IACZ,uBAAuB;IACvB,kBAAkB;IAElB,4BAA4B;IAC5B,iBAAiB;IACjB,mBAAmB,EAAE,sBAAsB;IAC3C,4BAA4B;IAC5B,kBAAkB;IAClB,YAAY;IACZ,iBAAiB;IACjB,0BAA0B,EAAE,6BAA6B;IAEzD,yBAAyB;IACzB,0BAA0B;IAC1B,qBAAqB;IAErB,2BAA2B;IAC3B,YAAY;IACZ,aAAa;IAEb,yCAAyC;IACzC,uBAAuB;IAEvB,WAAW;IACX,yBAAyB;IACzB,0BAA0B;IAC1B,wBAAwB;IACxB,wBAAwB;IACxB,uBAAuB;IACvB,uBAAuB;IAEvB,gCAAgC;IAChC,UAAU,EAAE,WAAW;IACvB,iBAAiB,EAAE,kBAAkB;IACrC,cAAc,EAAE,eAAe;IAC/B,iBAAiB,EAAE,kBAAkB;IACrC,uBAAuB,EAAE,wBAAwB;IACjD,qBAAqB,EAAE,sBAAsB;IAC7C,kBAAkB,EAAE,mBAAmB;CAC/B,CAAC"}
|
package/dist/src/util.d.ts
CHANGED
|
@@ -5,14 +5,16 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* Calculate SHA256 hash of data for content-addressed transfers.
|
|
7
7
|
*
|
|
8
|
-
* This is a browser-safe version
|
|
9
|
-
*
|
|
8
|
+
* This is a browser-safe version, used because e3-api-client must be
|
|
9
|
+
* browser-compatible (used by e3-ui-components in webview builds). The
|
|
10
|
+
* canonical sync implementation lives in @elaraai/e3-core (objects.ts) but uses
|
|
11
|
+
* Node.js `crypto.createHash`, which is not available in browser environments.
|
|
10
12
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
13
|
+
* It uses the Web Crypto API (`crypto.subtle`) where the context has it:
|
|
14
|
+
* Node.js (>=15), and a browser page served over https or from localhost. A
|
|
15
|
+
* browser provides it only in a secure context, so a page served over plain
|
|
16
|
+
* http from any other address hashes with east's own SHA-256, which produces
|
|
17
|
+
* the same digest.
|
|
16
18
|
*
|
|
17
19
|
* @param data - Data to hash
|
|
18
20
|
* @returns SHA256 hash as a hex string
|
package/dist/src/util.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../src/util.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../src/util.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,WAAW,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,CAOnE"}
|
package/dist/src/util.js
CHANGED
|
@@ -2,23 +2,29 @@
|
|
|
2
2
|
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
3
|
* Licensed under BSL 1.1. See LICENSE for details.
|
|
4
4
|
*/
|
|
5
|
+
import { sha256Hex } from '@elaraai/east';
|
|
5
6
|
/**
|
|
6
7
|
* Calculate SHA256 hash of data for content-addressed transfers.
|
|
7
8
|
*
|
|
8
|
-
* This is a browser-safe version
|
|
9
|
-
*
|
|
9
|
+
* This is a browser-safe version, used because e3-api-client must be
|
|
10
|
+
* browser-compatible (used by e3-ui-components in webview builds). The
|
|
11
|
+
* canonical sync implementation lives in @elaraai/e3-core (objects.ts) but uses
|
|
12
|
+
* Node.js `crypto.createHash`, which is not available in browser environments.
|
|
10
13
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
14
|
+
* It uses the Web Crypto API (`crypto.subtle`) where the context has it:
|
|
15
|
+
* Node.js (>=15), and a browser page served over https or from localhost. A
|
|
16
|
+
* browser provides it only in a secure context, so a page served over plain
|
|
17
|
+
* http from any other address hashes with east's own SHA-256, which produces
|
|
18
|
+
* the same digest.
|
|
16
19
|
*
|
|
17
20
|
* @param data - Data to hash
|
|
18
21
|
* @returns SHA256 hash as a hex string
|
|
19
22
|
*/
|
|
20
23
|
export async function computeHash(data) {
|
|
21
|
-
const
|
|
24
|
+
const subtle = globalThis.crypto?.subtle;
|
|
25
|
+
if (subtle === undefined)
|
|
26
|
+
return sha256Hex(data);
|
|
27
|
+
const hashBuffer = await subtle.digest('SHA-256', data);
|
|
22
28
|
return Array.from(new Uint8Array(hashBuffer))
|
|
23
29
|
.map(b => b.toString(16).padStart(2, '0'))
|
|
24
30
|
.join('');
|
package/dist/src/util.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../src/util.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH
|
|
1
|
+
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../src/util.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,IAAgB;IAChD,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,EAAE,MAAM,CAAC;IACzC,IAAI,MAAM,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC;IACjD,MAAM,UAAU,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;IACxD,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,UAAU,CAAC,CAAC;SAC1C,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;SACzC,IAAI,CAAC,EAAE,CAAC,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"util.spec.d.ts","sourceRoot":"","sources":["../../src/util.spec.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Licensed under BSL 1.1. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* The hash a download checks each object against. A browser provides WebCrypto
|
|
7
|
+
* only in a secure context, so a page served over plain http from any address
|
|
8
|
+
* but localhost has `crypto` without `crypto.subtle`, and must still hash.
|
|
9
|
+
*/
|
|
10
|
+
import { describe, it } from 'node:test';
|
|
11
|
+
import assert from 'node:assert/strict';
|
|
12
|
+
import { computeHash } from './util.js';
|
|
13
|
+
describe('computeHash', () => {
|
|
14
|
+
const abc = new TextEncoder().encode('abc');
|
|
15
|
+
const ABC = 'ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad';
|
|
16
|
+
// Two blocks and a partial third, so the fallback's padding is exercised.
|
|
17
|
+
const long = Uint8Array.from({ length: 150 }, (_, i) => i);
|
|
18
|
+
it('hashes with WebCrypto where the context has it', async () => {
|
|
19
|
+
assert.equal(await computeHash(abc), ABC);
|
|
20
|
+
});
|
|
21
|
+
it('hashes where the context has no WebCrypto digest, to the same digest', async () => {
|
|
22
|
+
const expected = await computeHash(long);
|
|
23
|
+
const own = Object.getOwnPropertyDescriptor(globalThis, 'crypto');
|
|
24
|
+
Object.defineProperty(globalThis, 'crypto', { value: {}, configurable: true, writable: true });
|
|
25
|
+
try {
|
|
26
|
+
assert.equal(await computeHash(abc), ABC);
|
|
27
|
+
assert.equal(await computeHash(long), expected);
|
|
28
|
+
}
|
|
29
|
+
finally {
|
|
30
|
+
Object.defineProperty(globalThis, 'crypto', own);
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
//# sourceMappingURL=util.spec.js.map
|
|
@@ -0,0 +1 @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CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,CAAC;QAClD,CAAC;gBAAS,CAAC;YACT,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE,QAAQ,EAAE,GAAG,CAAC,CAAC;QACnD,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/dist/src/workspaces.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under BSL 1.1. See LICENSE for details.
|
|
4
4
|
*/
|
|
5
5
|
import { type WorkspaceState, type PackageExportProgress } from '@elaraai/e3-types';
|
|
6
|
-
import type { WorkspaceInfo, WorkspaceStatusResult } from './types.js';
|
|
6
|
+
import type { SchemaPolicy, WorkspaceDeployProgress, WorkspaceDeployResult, WorkspaceInfo, WorkspaceStatusResult } from './types.js';
|
|
7
7
|
import { type RequestOptions } from './http.js';
|
|
8
8
|
/**
|
|
9
9
|
* List all workspaces in the repository.
|
|
@@ -43,7 +43,7 @@ export declare function workspaceGet(url: string, repo: string, name: string, op
|
|
|
43
43
|
/**
|
|
44
44
|
* Get comprehensive workspace status including datasets, tasks, and lock info.
|
|
45
45
|
*
|
|
46
|
-
* Use this to poll for execution progress after calling
|
|
46
|
+
* Use this to poll for execution progress after calling dataflowExecuteLaunch().
|
|
47
47
|
*
|
|
48
48
|
* @param url - Base URL of the e3 API server
|
|
49
49
|
* @param repo - Repository name
|
|
@@ -65,18 +65,45 @@ export declare function workspaceStatus(url: string, repo: string, name: string,
|
|
|
65
65
|
* @throws {AuthError} On 401 Unauthorized
|
|
66
66
|
*/
|
|
67
67
|
export declare function workspaceRemove(url: string, repo: string, name: string, options: RequestOptions): Promise<void>;
|
|
68
|
+
/**
|
|
69
|
+
* Options for a workspace deploy.
|
|
70
|
+
*/
|
|
71
|
+
export interface WorkspaceDeployOptions {
|
|
72
|
+
/** What the deploy does with a record it cannot keep as it is (default
|
|
73
|
+
* `migrate`). */
|
|
74
|
+
schema?: SchemaPolicy;
|
|
75
|
+
/** Whether a record the package no longer declares may be dropped, with its
|
|
76
|
+
* state and history (default false). */
|
|
77
|
+
allowDropRecords?: boolean;
|
|
78
|
+
/** Say what the deploy would do, and write nothing (default false). */
|
|
79
|
+
plan?: boolean;
|
|
80
|
+
/** Called with the job's progress each time a poll finds it running. */
|
|
81
|
+
onProgress?: (progress: WorkspaceDeployProgress) => void;
|
|
82
|
+
signal?: AbortSignal;
|
|
83
|
+
}
|
|
68
84
|
/**
|
|
69
85
|
* Deploy a package to a workspace.
|
|
70
86
|
*
|
|
87
|
+
* @remarks
|
|
88
|
+
* The server runs the deploy as a job, since one that migrates a record, or
|
|
89
|
+
* builds an index over one, can outlast a request. This starts the job and
|
|
90
|
+
* polls it until it answers: 100 ms apart at first, backing off to a second.
|
|
91
|
+
*
|
|
71
92
|
* @param url - Base URL of the e3 API server
|
|
72
93
|
* @param repo - Repository name
|
|
73
94
|
* @param name - Workspace name
|
|
74
95
|
* @param packageRef - Package reference (name or name@version)
|
|
75
96
|
* @param options - Request options including auth token
|
|
76
|
-
* @
|
|
97
|
+
* @param deployOptions - What the deploy does with a record it cannot keep,
|
|
98
|
+
* whether it only plans, and its progress and cancellation
|
|
99
|
+
* @returns What the deploy decided for each record and index, and the inputs
|
|
100
|
+
* it left unassigned
|
|
101
|
+
* @throws {ApiError} When the server does not start the deploy, such as for a
|
|
102
|
+
* package the repository does not hold
|
|
77
103
|
* @throws {AuthError} On 401 Unauthorized
|
|
104
|
+
* @throws {Error} When the deploy fails, or refuses a record
|
|
78
105
|
*/
|
|
79
|
-
export declare function workspaceDeploy(url: string, repo: string, name: string, packageRef: string, options: RequestOptions): Promise<
|
|
106
|
+
export declare function workspaceDeploy(url: string, repo: string, name: string, packageRef: string, options: RequestOptions, deployOptions?: WorkspaceDeployOptions): Promise<WorkspaceDeployResult>;
|
|
80
107
|
/**
|
|
81
108
|
* Options for workspace export progress reporting.
|
|
82
109
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspaces.d.ts","sourceRoot":"","sources":["../../src/workspaces.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAEL,KAAK,cAAc,EAEnB,KAAK,qBAAqB,EAC3B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"workspaces.d.ts","sourceRoot":"","sources":["../../src/workspaces.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAEL,KAAK,cAAc,EAEnB,KAAK,qBAAqB,EAC3B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EACV,YAAY,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,aAAa,EAAE,qBAAqB,EACnG,MAAM,YAAY,CAAC;AAWpB,OAAO,EAA8D,KAAK,cAAc,EAAE,MAAM,WAAW,CAAC;AAG5G;;;;;;;;;GASG;AACH,wBAAsB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,CAEhH;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC,CAS9H;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC,CAO5H;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAOtI;AAED;;;;;;;;;GASG;AACH,wBAAsB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src/workspaces.js
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
3
|
* Licensed under BSL 1.1. See LICENSE for details.
|
|
4
4
|
*/
|
|
5
|
-
import { ArrayType, NullType, encodeBeast2For, decodeBeast2For, some, none } from '@elaraai/east';
|
|
5
|
+
import { ArrayType, NullType, encodeBeast2For, decodeBeast2For, some, none, variant } from '@elaraai/east';
|
|
6
6
|
import { WorkspaceStateType, PackageJobResponseType, } from '@elaraai/e3-types';
|
|
7
|
-
import { WorkspaceInfoType, WorkspaceCreateRequestType, WorkspaceDeployRequestType, WorkspaceStatusResultType, WorkspaceExportRequestType, ResponseType, } from './types.js';
|
|
7
|
+
import { WorkspaceInfoType, WorkspaceCreateRequestType, WorkspaceDeployRequestType, WorkspaceDeployStatusType, WorkspaceStatusResultType, WorkspaceExportRequestType, ResponseType, } from './types.js';
|
|
8
8
|
import { BEAST2_CONTENT_TYPE } from '@elaraai/e3-types';
|
|
9
9
|
import { get, post, del, fetchWithAuth, fetchWithProgress, ApiError } from './http.js';
|
|
10
|
-
import { pollExport } from './packages.js';
|
|
10
|
+
import { JOB_POLL_MAX_MS, JOB_POLL_MIN_MS, pollExport } from './packages.js';
|
|
11
11
|
/**
|
|
12
12
|
* List all workspaces in the repository.
|
|
13
13
|
*
|
|
@@ -52,7 +52,7 @@ export async function workspaceGet(url, repo, name, options) {
|
|
|
52
52
|
/**
|
|
53
53
|
* Get comprehensive workspace status including datasets, tasks, and lock info.
|
|
54
54
|
*
|
|
55
|
-
* Use this to poll for execution progress after calling
|
|
55
|
+
* Use this to poll for execution progress after calling dataflowExecuteLaunch().
|
|
56
56
|
*
|
|
57
57
|
* @param url - Base URL of the e3 API server
|
|
58
58
|
* @param repo - Repository name
|
|
@@ -81,16 +81,43 @@ export async function workspaceRemove(url, repo, name, options) {
|
|
|
81
81
|
/**
|
|
82
82
|
* Deploy a package to a workspace.
|
|
83
83
|
*
|
|
84
|
+
* @remarks
|
|
85
|
+
* The server runs the deploy as a job, since one that migrates a record, or
|
|
86
|
+
* builds an index over one, can outlast a request. This starts the job and
|
|
87
|
+
* polls it until it answers: 100 ms apart at first, backing off to a second.
|
|
88
|
+
*
|
|
84
89
|
* @param url - Base URL of the e3 API server
|
|
85
90
|
* @param repo - Repository name
|
|
86
91
|
* @param name - Workspace name
|
|
87
92
|
* @param packageRef - Package reference (name or name@version)
|
|
88
93
|
* @param options - Request options including auth token
|
|
89
|
-
* @
|
|
94
|
+
* @param deployOptions - What the deploy does with a record it cannot keep,
|
|
95
|
+
* whether it only plans, and its progress and cancellation
|
|
96
|
+
* @returns What the deploy decided for each record and index, and the inputs
|
|
97
|
+
* it left unassigned
|
|
98
|
+
* @throws {ApiError} When the server does not start the deploy, such as for a
|
|
99
|
+
* package the repository does not hold
|
|
90
100
|
* @throws {AuthError} On 401 Unauthorized
|
|
101
|
+
* @throws {Error} When the deploy fails, or refuses a record
|
|
91
102
|
*/
|
|
92
|
-
export async function workspaceDeploy(url, repo, name, packageRef, options) {
|
|
93
|
-
|
|
103
|
+
export async function workspaceDeploy(url, repo, name, packageRef, options, deployOptions = {}) {
|
|
104
|
+
const path = `/repos/${encodeURIComponent(repo)}/workspaces/${encodeURIComponent(name)}/deploy`;
|
|
105
|
+
const { id } = await post(url, path, {
|
|
106
|
+
packageRef,
|
|
107
|
+
schema: variant(deployOptions.schema ?? 'migrate', null),
|
|
108
|
+
allowDropRecords: deployOptions.allowDropRecords ?? false,
|
|
109
|
+
plan: deployOptions.plan ?? false,
|
|
110
|
+
}, WorkspaceDeployRequestType, PackageJobResponseType, options);
|
|
111
|
+
for (let wait = JOB_POLL_MIN_MS;; wait = Math.min(wait * 2, JOB_POLL_MAX_MS)) {
|
|
112
|
+
deployOptions.signal?.throwIfAborted();
|
|
113
|
+
const status = await get(url, `${path}/${encodeURIComponent(id)}`, WorkspaceDeployStatusType, options);
|
|
114
|
+
if (status.type === 'completed')
|
|
115
|
+
return status.value;
|
|
116
|
+
if (status.type === 'failed')
|
|
117
|
+
throw new Error(`Workspace deploy failed: ${status.value.message}`);
|
|
118
|
+
deployOptions.onProgress?.(status.value);
|
|
119
|
+
await new Promise((resolve) => setTimeout(resolve, wait));
|
|
120
|
+
}
|
|
94
121
|
}
|
|
95
122
|
/**
|
|
96
123
|
* Export workspace as a package zip archive.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspaces.js","sourceRoot":"","sources":["../../src/workspaces.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,eAAe,EAAE,eAAe,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"workspaces.js","sourceRoot":"","sources":["../../src/workspaces.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,eAAe,EAAE,eAAe,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC3G,OAAO,EACL,kBAAkB,EAElB,sBAAsB,GAEvB,MAAM,mBAAmB,CAAC;AAI3B,OAAO,EACL,iBAAiB,EACjB,0BAA0B,EAC1B,0BAA0B,EAC1B,yBAAyB,EACzB,yBAAyB,EACzB,0BAA0B,EAC1B,YAAY,GACb,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,aAAa,EAAE,iBAAiB,EAAE,QAAQ,EAAuB,MAAM,WAAW,CAAC;AAC5G,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE7E;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,GAAW,EAAE,IAAY,EAAE,OAAuB;IACpF,OAAO,GAAG,CAAC,GAAG,EAAE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CAAC;IAC7J,IAAI,aAAa,CAAC,IAAI,KAAK,OAAO;QAAE,MAAM,IAAI,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,IAAI,EAAE,aAAa,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAE5G,qBAAqB;IACrB,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,GAAG,EAAE,WAAW,EAAE,aAAa,CAAC,KAAK,CAAC,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;IAEtH,IAAI,MAAM,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;QAC7B,MAAM,IAAI,KAAK,CAAC,4BAA4B,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IACD,IAAI,MAAM,CAAC,IAAI,KAAK,WAAW,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;IAC3C,CAAC;IAED,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC,KAAK,CAAC;IAErC,4DAA4D;IAC5D,OAAO,iBAAiB,CAAC,WAAW,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,CAAC,CAAC;AACnF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elaraai/e3-api-client",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.80",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "East Execution Engine API Client - TypeScript client library for e3 API server",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"directory": "libs/e3/packages/e3-api-client"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@elaraai/e3-types": "1.0.
|
|
33
|
+
"@elaraai/e3-types": "1.0.80"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@elaraai/east": "1.0.
|
|
36
|
+
"@elaraai/east": "1.0.80"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/node": "^22.0.0",
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
"eslint": "^9.0.0",
|
|
43
43
|
"eslint-plugin-headers": "^1.3.3",
|
|
44
44
|
"typescript": "^5.6.0",
|
|
45
|
-
"@elaraai/east-node-std": "1.0.
|
|
45
|
+
"@elaraai/east-node-std": "1.0.80"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"build": "tsc",
|
|
49
|
-
"test": "npm run build && node --enable-source-maps --test-reporter=spec --test 'dist/src/**/*.spec.js'",
|
|
49
|
+
"test": "npm run build && node --enable-source-maps --test-reporter=spec --test-timeout=480000 --test 'dist/src/**/*.spec.js'",
|
|
50
50
|
"lint": "eslint .",
|
|
51
51
|
"lint:fix": "eslint . --fix"
|
|
52
52
|
}
|