@elaraai/e3-cloud-client 1.0.94 → 1.1.0
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/files.d.ts +55 -15
- package/dist/src/files.d.ts.map +1 -1
- package/dist/src/files.js +61 -16
- package/dist/src/files.js.map +1 -1
- package/dist/src/index.d.ts +3 -3
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/index.js.map +1 -1
- package/package.json +5 -5
package/dist/src/files.d.ts
CHANGED
|
@@ -2,11 +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 { type FilesBindResponse, type FilesBinding, type FilesDeployResponse, type FilesManifest, type FilesSyncJob, type FilesSyncStart, type FilesWorkspace } from '@elaraai/e3-cloud-types';
|
|
5
|
+
import { type FilesBindResponse, type FilesBinding, type FilesDeployResponse, type FilesManifest, type FilesPushCompleteRequest, type FilesPushCompleteResponse, type FilesPushPlan, type FilesPushRequest, type FilesSyncJob, type FilesSyncStart, type FilesTarget, type FilesWorkspace } from '@elaraai/e3-cloud-types';
|
|
6
6
|
import { type RequestOptions } from '@elaraai/e3-api-client';
|
|
7
7
|
/**
|
|
8
8
|
* A workspace's Files: its declarations, its bindings and its last sync,
|
|
9
|
-
*
|
|
9
|
+
* what each mapping holds (and whether its record is pending), where the
|
|
10
|
+
* repository's bindings may point, and the sync under way.
|
|
10
11
|
*
|
|
11
12
|
* @param url - Base URL of the e3 API server
|
|
12
13
|
* @param repo - Repository name
|
|
@@ -16,8 +17,9 @@ import { type RequestOptions } from '@elaraai/e3-api-client';
|
|
|
16
17
|
*/
|
|
17
18
|
export declare function getFiles(url: string, repo: string, ws: string, options: RequestOptions): Promise<FilesWorkspace>;
|
|
18
19
|
/**
|
|
19
|
-
* Deploy declarations to a workspace, checked against the package it runs
|
|
20
|
-
*
|
|
20
|
+
* Deploy declarations to a workspace, checked against the package it runs:
|
|
21
|
+
* its inputs, its records and their mutations. A target whose declaration
|
|
22
|
+
* changed is taken again whole by the next sync.
|
|
21
23
|
* A protected workspace (one with a staging) takes declarations only by a
|
|
22
24
|
* release from its staging, unless an admin forces a deploy past it.
|
|
23
25
|
*
|
|
@@ -27,7 +29,7 @@ export declare function getFiles(url: string, repo: string, ws: string, options:
|
|
|
27
29
|
* @param manifest - The declarations: `Files.manifest(...)`
|
|
28
30
|
* @param options - Request options including auth token
|
|
29
31
|
* @param deploy - `dryRun`: check them, and keep nothing; `force`: deploy past the workspace's protection (an admin's alone)
|
|
30
|
-
* @returns `deployed` (with the
|
|
32
|
+
* @returns `deployed` (with the targets taken again whole), `checked`, or `refused` with every problem
|
|
31
33
|
* @throws {ApiError} `workspace_protected` for a protected workspace, unforced;
|
|
32
34
|
* `forbidden` for a force by anyone but an admin
|
|
33
35
|
*/
|
|
@@ -38,7 +40,7 @@ export declare function deployFiles(url: string, repo: string, ws: string, manif
|
|
|
38
40
|
/**
|
|
39
41
|
* Bind a source to where its files are, for a workspace: `s3://bucket/prefix/`
|
|
40
42
|
* in the deployment's files bucket under the repository's folder, or in a
|
|
41
|
-
* bucket its configuration lists. A binding moved elsewhere has its
|
|
43
|
+
* bucket its configuration lists. A binding moved elsewhere has its targets
|
|
42
44
|
* taken again whole by the next sync. A workspace's bindings are its own: a
|
|
43
45
|
* source may be bound before any declaration reads it (a protected
|
|
44
46
|
* workspace's, before the release that brings the declarations), and a
|
|
@@ -49,26 +51,64 @@ export declare function deployFiles(url: string, repo: string, ws: string, manif
|
|
|
49
51
|
* @param ws - Workspace name
|
|
50
52
|
* @param binding - The binding (`profile` and `latest` are a local repository's alone)
|
|
51
53
|
* @param options - Request options including auth token
|
|
52
|
-
* @returns `bound` (with the
|
|
54
|
+
* @returns `bound` (with the targets taken again whole), or `refused` with every problem
|
|
53
55
|
*/
|
|
54
56
|
export declare function bindFilesSource(url: string, repo: string, ws: string, binding: FilesBinding, options: RequestOptions): Promise<FilesBindResponse>;
|
|
57
|
+
/** What a sync is asked for. */
|
|
58
|
+
export interface FilesSyncOptions {
|
|
59
|
+
/** List what a sync would take, and take nothing */
|
|
60
|
+
readonly dryRun?: boolean;
|
|
61
|
+
/** Only these targets; every declared target when absent */
|
|
62
|
+
readonly targets?: readonly FilesTarget[];
|
|
63
|
+
/** Records whose file is taken as their state again, whatever has mutated them since their seed */
|
|
64
|
+
readonly reset?: readonly string[];
|
|
65
|
+
}
|
|
55
66
|
/**
|
|
56
67
|
* Start a sync: the platform brings in what changed in each source's files,
|
|
57
|
-
* in rounds
|
|
68
|
+
* in rounds, seeding and feeding records as their files change. One sync
|
|
69
|
+
* runs at a time in a workspace.
|
|
58
70
|
*
|
|
59
71
|
* @param url - Base URL of the e3 API server
|
|
60
72
|
* @param repo - Repository name
|
|
61
73
|
* @param ws - Workspace name
|
|
62
|
-
* @param request - `dryRun` lists what it would take and takes nothing; `
|
|
74
|
+
* @param request - `dryRun` lists what it would take and takes nothing; `targets` syncs only those; `reset` seeds those records again
|
|
63
75
|
* @param options - Request options including auth token
|
|
64
76
|
* @returns `started` with its id, or `running` with the id of the sync under way
|
|
65
|
-
* @throws {ApiError} `bad_request` when nothing is declared,
|
|
66
|
-
* declared, or a source is not bound
|
|
77
|
+
* @throws {ApiError} `bad_request` when nothing is declared, a target is not
|
|
78
|
+
* declared, a record to reset is not seeded, or a source is not bound
|
|
67
79
|
*/
|
|
68
|
-
export declare function startFilesSync(url: string, repo: string, ws: string, request:
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
80
|
+
export declare function startFilesSync(url: string, repo: string, ws: string, request: FilesSyncOptions, options: RequestOptions): Promise<FilesSyncStart>;
|
|
81
|
+
/**
|
|
82
|
+
* Plan a push of files from disk into a source: each file matched to the
|
|
83
|
+
* mapping that takes it (by its name, or the target named), checked against
|
|
84
|
+
* the mapping's type and limit, and answered `put` with how to upload it (a
|
|
85
|
+
* presigned PUT bound to its SHA-256, a multipart upload with a URL per part,
|
|
86
|
+
* or `external` for a bucket the platform does not write), `unchanged` when
|
|
87
|
+
* the source holds those bytes already, or `refused`. The plan writes
|
|
88
|
+
* nothing; the sync that follows takes the files in.
|
|
89
|
+
*
|
|
90
|
+
* @param url - Base URL of the e3 API server
|
|
91
|
+
* @param repo - Repository name
|
|
92
|
+
* @param ws - Workspace name
|
|
93
|
+
* @param request - The files (name, size, SHA-256, beast2 type), and the target they are all for, if named
|
|
94
|
+
* @param options - Request options including auth token
|
|
95
|
+
* @returns The plan
|
|
96
|
+
* @throws {ApiError} `bad_request` for more than 1,000 files, or a workspace
|
|
97
|
+
* with no declarations
|
|
98
|
+
*/
|
|
99
|
+
export declare function planFilesPush(url: string, repo: string, ws: string, request: FilesPushRequest, options: RequestOptions): Promise<FilesPushPlan>;
|
|
100
|
+
/**
|
|
101
|
+
* Complete a multipart upload a push's plan created, with its parts' ETags.
|
|
102
|
+
*
|
|
103
|
+
* @param url - Base URL of the e3 API server
|
|
104
|
+
* @param repo - Repository name
|
|
105
|
+
* @param ws - Workspace name
|
|
106
|
+
* @param completion - The key, the upload's id and each part's number and ETag
|
|
107
|
+
* @param options - Request options including auth token
|
|
108
|
+
* @returns The object's ETag
|
|
109
|
+
* @throws {ApiError} `not_found` for an upload the bucket does not know; `bad_request` for a key outside the repository's folder
|
|
110
|
+
*/
|
|
111
|
+
export declare function completeFilesPush(url: string, repo: string, ws: string, completion: FilesPushCompleteRequest, options: RequestOptions): Promise<FilesPushCompleteResponse>;
|
|
72
112
|
/**
|
|
73
113
|
* A sync: where it is, and what it has taken, its rounds' together.
|
|
74
114
|
*
|
package/dist/src/files.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/files.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/files.ts"],"names":[],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G,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,OAAO,EAAE,cAAc,EACvB,WAAW,GAAE,oBAAyB,GACrC,OAAO,CAAC,YAAY,CAAC,CAavB"}
|
package/dist/src/files.js
CHANGED
|
@@ -3,11 +3,13 @@
|
|
|
3
3
|
* Licensed under BSL 1.1. See LICENSE for details.
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* Files on a deployed workspace: a solution's inputs that come from
|
|
7
|
-
*
|
|
6
|
+
* Files on a deployed workspace: a solution's inputs that come from files
|
|
7
|
+
* in a bucket, and its records seeded or fed from them, declared in its code
|
|
8
|
+
* with `@elaraai/e3-cloud-files`.
|
|
8
9
|
*
|
|
9
10
|
* - {@link getFiles}: the workspace's declarations, bindings and last sync,
|
|
10
|
-
* where the repository's bindings may point, and
|
|
11
|
+
* what each mapping holds, where the repository's bindings may point, and
|
|
12
|
+
* the sync under way.
|
|
11
13
|
* - {@link deployFiles}: deploy declarations, checked against the package the
|
|
12
14
|
* workspace runs: `deployed`, `checked` (a dry run) or `refused`, naming
|
|
13
15
|
* every problem.
|
|
@@ -15,18 +17,23 @@
|
|
|
15
17
|
* be where the deployment lets the repository's bindings point.
|
|
16
18
|
* - {@link startFilesSync}, {@link getFilesSync}, {@link filesSyncWait}: a
|
|
17
19
|
* sync, which the platform runs in rounds, and what it took.
|
|
20
|
+
* - {@link planFilesPush}, {@link completeFilesPush}: a push of files from
|
|
21
|
+
* disk into a source: the plan, with a signed upload for each file the
|
|
22
|
+
* deployment's own bucket takes, and a multipart upload's completion.
|
|
18
23
|
*
|
|
19
24
|
* Owners and admins alone; anyone else is refused `forbidden`. A sync takes
|
|
20
|
-
* the workspace's inputs only: the dataflow runs as e3's does
|
|
25
|
+
* the workspace's inputs and records only: the dataflow runs as e3's does
|
|
26
|
+
* (`e3 dataflow run`).
|
|
21
27
|
*/
|
|
22
28
|
import { none, some } from '@elaraai/east';
|
|
23
|
-
import { FilesBindResponseType, FilesBindingType, FilesDeployRequestType, FilesDeployResponseType, FilesSyncJobType, FilesSyncRequestType, FilesSyncStartType, FilesWorkspaceType, } from '@elaraai/e3-cloud-types';
|
|
29
|
+
import { FilesBindResponseType, FilesBindingType, FilesDeployRequestType, FilesDeployResponseType, FilesPushCompleteRequestType, FilesPushCompleteResponseType, FilesPushPlanType, FilesPushRequestType, FilesSyncJobType, FilesSyncRequestType, FilesSyncStartType, FilesWorkspaceType, } from '@elaraai/e3-cloud-types';
|
|
24
30
|
import { get, post, put } from '@elaraai/e3-api-client';
|
|
25
31
|
const enc = encodeURIComponent;
|
|
26
32
|
const filesBase = (repo, ws) => `/repos/${enc(repo)}/workspaces/${enc(ws)}/files`;
|
|
27
33
|
/**
|
|
28
34
|
* A workspace's Files: its declarations, its bindings and its last sync,
|
|
29
|
-
*
|
|
35
|
+
* what each mapping holds (and whether its record is pending), where the
|
|
36
|
+
* repository's bindings may point, and the sync under way.
|
|
30
37
|
*
|
|
31
38
|
* @param url - Base URL of the e3 API server
|
|
32
39
|
* @param repo - Repository name
|
|
@@ -38,8 +45,9 @@ export async function getFiles(url, repo, ws, options) {
|
|
|
38
45
|
return get(url, filesBase(repo, ws), FilesWorkspaceType, options);
|
|
39
46
|
}
|
|
40
47
|
/**
|
|
41
|
-
* Deploy declarations to a workspace, checked against the package it runs
|
|
42
|
-
*
|
|
48
|
+
* Deploy declarations to a workspace, checked against the package it runs:
|
|
49
|
+
* its inputs, its records and their mutations. A target whose declaration
|
|
50
|
+
* changed is taken again whole by the next sync.
|
|
43
51
|
* A protected workspace (one with a staging) takes declarations only by a
|
|
44
52
|
* release from its staging, unless an admin forces a deploy past it.
|
|
45
53
|
*
|
|
@@ -49,7 +57,7 @@ export async function getFiles(url, repo, ws, options) {
|
|
|
49
57
|
* @param manifest - The declarations: `Files.manifest(...)`
|
|
50
58
|
* @param options - Request options including auth token
|
|
51
59
|
* @param deploy - `dryRun`: check them, and keep nothing; `force`: deploy past the workspace's protection (an admin's alone)
|
|
52
|
-
* @returns `deployed` (with the
|
|
60
|
+
* @returns `deployed` (with the targets taken again whole), `checked`, or `refused` with every problem
|
|
53
61
|
* @throws {ApiError} `workspace_protected` for a protected workspace, unforced;
|
|
54
62
|
* `forbidden` for a force by anyone but an admin
|
|
55
63
|
*/
|
|
@@ -59,7 +67,7 @@ export async function deployFiles(url, repo, ws, manifest, options, deploy = {})
|
|
|
59
67
|
/**
|
|
60
68
|
* Bind a source to where its files are, for a workspace: `s3://bucket/prefix/`
|
|
61
69
|
* in the deployment's files bucket under the repository's folder, or in a
|
|
62
|
-
* bucket its configuration lists. A binding moved elsewhere has its
|
|
70
|
+
* bucket its configuration lists. A binding moved elsewhere has its targets
|
|
63
71
|
* taken again whole by the next sync. A workspace's bindings are its own: a
|
|
64
72
|
* source may be bound before any declaration reads it (a protected
|
|
65
73
|
* workspace's, before the release that brings the declarations), and a
|
|
@@ -70,30 +78,67 @@ export async function deployFiles(url, repo, ws, manifest, options, deploy = {})
|
|
|
70
78
|
* @param ws - Workspace name
|
|
71
79
|
* @param binding - The binding (`profile` and `latest` are a local repository's alone)
|
|
72
80
|
* @param options - Request options including auth token
|
|
73
|
-
* @returns `bound` (with the
|
|
81
|
+
* @returns `bound` (with the targets taken again whole), or `refused` with every problem
|
|
74
82
|
*/
|
|
75
83
|
export async function bindFilesSource(url, repo, ws, binding, options) {
|
|
76
84
|
return put(url, `${filesBase(repo, ws)}/bindings/${enc(binding.source)}`, binding, FilesBindingType, FilesBindResponseType, options);
|
|
77
85
|
}
|
|
78
86
|
/**
|
|
79
87
|
* Start a sync: the platform brings in what changed in each source's files,
|
|
80
|
-
* in rounds
|
|
88
|
+
* in rounds, seeding and feeding records as their files change. One sync
|
|
89
|
+
* runs at a time in a workspace.
|
|
81
90
|
*
|
|
82
91
|
* @param url - Base URL of the e3 API server
|
|
83
92
|
* @param repo - Repository name
|
|
84
93
|
* @param ws - Workspace name
|
|
85
|
-
* @param request - `dryRun` lists what it would take and takes nothing; `
|
|
94
|
+
* @param request - `dryRun` lists what it would take and takes nothing; `targets` syncs only those; `reset` seeds those records again
|
|
86
95
|
* @param options - Request options including auth token
|
|
87
96
|
* @returns `started` with its id, or `running` with the id of the sync under way
|
|
88
|
-
* @throws {ApiError} `bad_request` when nothing is declared,
|
|
89
|
-
* declared, or a source is not bound
|
|
97
|
+
* @throws {ApiError} `bad_request` when nothing is declared, a target is not
|
|
98
|
+
* declared, a record to reset is not seeded, or a source is not bound
|
|
90
99
|
*/
|
|
91
100
|
export async function startFilesSync(url, repo, ws, request, options) {
|
|
92
101
|
return post(url, `${filesBase(repo, ws)}/sync`, {
|
|
93
102
|
dryRun: request.dryRun === true,
|
|
94
|
-
|
|
103
|
+
targets: request.targets === undefined ? none : some([...request.targets]),
|
|
104
|
+
reset: [...(request.reset ?? [])],
|
|
95
105
|
}, FilesSyncRequestType, FilesSyncStartType, options);
|
|
96
106
|
}
|
|
107
|
+
/**
|
|
108
|
+
* Plan a push of files from disk into a source: each file matched to the
|
|
109
|
+
* mapping that takes it (by its name, or the target named), checked against
|
|
110
|
+
* the mapping's type and limit, and answered `put` with how to upload it (a
|
|
111
|
+
* presigned PUT bound to its SHA-256, a multipart upload with a URL per part,
|
|
112
|
+
* or `external` for a bucket the platform does not write), `unchanged` when
|
|
113
|
+
* the source holds those bytes already, or `refused`. The plan writes
|
|
114
|
+
* nothing; the sync that follows takes the files in.
|
|
115
|
+
*
|
|
116
|
+
* @param url - Base URL of the e3 API server
|
|
117
|
+
* @param repo - Repository name
|
|
118
|
+
* @param ws - Workspace name
|
|
119
|
+
* @param request - The files (name, size, SHA-256, beast2 type), and the target they are all for, if named
|
|
120
|
+
* @param options - Request options including auth token
|
|
121
|
+
* @returns The plan
|
|
122
|
+
* @throws {ApiError} `bad_request` for more than 1,000 files, or a workspace
|
|
123
|
+
* with no declarations
|
|
124
|
+
*/
|
|
125
|
+
export async function planFilesPush(url, repo, ws, request, options) {
|
|
126
|
+
return post(url, `${filesBase(repo, ws)}/push`, request, FilesPushRequestType, FilesPushPlanType, options);
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Complete a multipart upload a push's plan created, with its parts' ETags.
|
|
130
|
+
*
|
|
131
|
+
* @param url - Base URL of the e3 API server
|
|
132
|
+
* @param repo - Repository name
|
|
133
|
+
* @param ws - Workspace name
|
|
134
|
+
* @param completion - The key, the upload's id and each part's number and ETag
|
|
135
|
+
* @param options - Request options including auth token
|
|
136
|
+
* @returns The object's ETag
|
|
137
|
+
* @throws {ApiError} `not_found` for an upload the bucket does not know; `bad_request` for a key outside the repository's folder
|
|
138
|
+
*/
|
|
139
|
+
export async function completeFilesPush(url, repo, ws, completion, options) {
|
|
140
|
+
return post(url, `${filesBase(repo, ws)}/push/complete`, completion, FilesPushCompleteRequestType, FilesPushCompleteResponseType, options);
|
|
141
|
+
}
|
|
97
142
|
/**
|
|
98
143
|
* A sync: where it is, and what it has taken, its rounds' together.
|
|
99
144
|
*
|
package/dist/src/files.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.js","sourceRoot":"","sources":["../../src/files.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH
|
|
1
|
+
{"version":3,"file":"files.js","sourceRoot":"","sources":["../../src/files.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EAChB,sBAAsB,EACtB,uBAAuB,EACvB,4BAA4B,EAC5B,6BAA6B,EAC7B,iBAAiB,EACjB,oBAAoB,EACpB,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,GAanB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAuB,MAAM,wBAAwB,CAAC;AAE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AI,CAAC,kCAAkC,CAAC,CAAC;QACrH,CAAC;QACD,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,GAAG,IAAI,kBAAkB,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;IAC5G,CAAC;AACH,CAAC"}
|
package/dist/src/index.d.ts
CHANGED
|
@@ -51,14 +51,14 @@ export { listRoles, getRole, putRole, deleteRole, myAccess, previewRole } from '
|
|
|
51
51
|
export type { Person, PersonList, RepositorySettings, WorkspaceSettings, WorkspaceLastRun, RepoRole, RepoUser, AddUserRequest, WhoamiResponse, AuthzErrorCode, Schedule, ScheduleRequest, ComputeSize, ComputeConfigMap, TaskTimeout, TimeoutConfigMap, TaskConfigs, } from '@elaraai/e3-cloud-types';
|
|
52
52
|
export { getDelegationPolicy, setDelegationPolicy, getRackSecurityPolicy, setRackSecurityPolicy, listRacks, enrollRack, deregisterRack, rackActivity, approveRackBoot, ApproveBootRequestType, EnrollmentTokenType, type EnrollmentToken, } from './deployment-settings.js';
|
|
53
53
|
export { listRecordInfos, recordAudit, recordStateAt, recordStatePage, recordValueChunks, rollbackRecord, listRecordBackups, createRecordBackup, restoreRecordBackup, recordBackupDownload, recordBackupStream, recordBackupValue, deleteRecordBackup, type RecordClientSource, type RecordStateAt, } from './records.js';
|
|
54
|
-
export type { RecordList, RecordInfo, RecordAuditPage, RecordAuditEntry, RecordBackupInfo, RecordBackupList, RecordBackupDownload, } from '@elaraai/e3-cloud-types';
|
|
55
|
-
export { getFiles, deployFiles, bindFilesSource, startFilesSync, getFilesSync, filesSyncWait, type FilesSyncWaitOptions, } from './files.js';
|
|
54
|
+
export type { RecordList, RecordInfo, RecordAuditPage, RecordAuditEntry, RecordAuditDetail, RecordAuditFile, RecordBackupInfo, RecordBackupList, RecordBackupDownload, } from '@elaraai/e3-cloud-types';
|
|
55
|
+
export { getFiles, deployFiles, bindFilesSource, startFilesSync, getFilesSync, filesSyncWait, planFilesPush, completeFilesPush, type FilesSyncOptions, type FilesSyncWaitOptions, } from './files.js';
|
|
56
56
|
export { getFeedbackSettings, putFeedbackSettings, addFeedback, listMyFeedback, listFeedback, getFeedback, feedbackScreenshotUrl, closeFeedback, reopenFeedback, type FeedbackStatusName, type FeedbackListOptions, type FeedbackNoteOptions, } from './feedback.js';
|
|
57
57
|
export { feedbackId, FEEDBACK_NOTE_MAX_CHARS, FEEDBACK_TEXT_MAX_CHARS, FEEDBACK_URL_MAX_CHARS, FEEDBACK_SHORT_MAX_CHARS, FEEDBACK_DATASETS_MAX, FEEDBACK_NOTE_MAX_BYTES, FEEDBACK_SCREENSHOT_MAX_BYTES, FEEDBACK_SCREENSHOT_TYPES, FEEDBACK_SUMMARY_CHARS, FEEDBACK_PAGE_DEFAULT, FEEDBACK_PAGE_MAX, } from '@elaraai/e3-cloud-types';
|
|
58
58
|
export type { FeedbackSendRequest, FeedbackSent, FeedbackPage, FeedbackPart, FeedbackPartKind, FeedbackScope, FeedbackRect, FeedbackPoint, FeedbackData, FeedbackImage, FeedbackScreenshotRequest, FeedbackNote, FeedbackSender, FeedbackScreenshot, FeedbackStatus, FeedbackSummary, FeedbackList, FeedbackMine, FeedbackCounts, FeedbackSettings, } from '@elaraai/e3-cloud-types';
|
|
59
59
|
export { workspaceHistory, workspaceHistoryEntry, repositoryHistory, releaseWorkspace, rollbackWorkspace, getReleaseSettings, getRepositoryReleaseSettings, addStaging, stopStaging, type WorkspaceHistoryOptions, } from './history.js';
|
|
60
60
|
export { WORKSPACE_HISTORY_PAGE_DEFAULT, WORKSPACE_HISTORY_PAGE_MAX, RELEASE_CARRY_MAX, releaseProblemText, releasePlanRefusalLines, workspaceProtectedText, historyKindChangesWorkspace, } from '@elaraai/e3-cloud-types';
|
|
61
|
-
export type { RepositoryHistory, WorkspaceHistorySummary, WorkspaceHistoryApp, WorkspaceHistoryEntry, WorkspaceHistoryKind, WorkspaceHistoryOutcome, WorkspaceHistoryPage, ReleaseApp, ReleaseAppChange, ReleaseAppVersion, ReleaseCarry, ReleaseCarryKind, ReleaseFilesChange,
|
|
61
|
+
export type { RepositoryHistory, WorkspaceHistorySummary, WorkspaceHistoryApp, WorkspaceHistoryEntry, WorkspaceHistoryKind, WorkspaceHistoryOutcome, WorkspaceHistoryPage, ReleaseApp, ReleaseAppChange, ReleaseAppVersion, ReleaseCarry, ReleaseCarryKind, ReleaseFilesChange, ReleaseFilesMapping, ReleaseFilesPlan, ReleasePlan, ReleaseProblem, ReleaseRequest, ReleaseResponse, ReleaseSource, RollbackRequest, WorkspaceReleaseSettings, RepositoryReleaseSettings, ReleaseUndone, StagingStart, StagingApp, StagingRuns, AddStagingRequest, StagingPlan, AddStagingResponse, StagingLink, } from '@elaraai/e3-cloud-types';
|
|
62
62
|
export { adminAppList, repositoryAppList, appDeployWait, appList, myAppList, myAppRebuilds, appGet, appVersions, appUpload, appDeploy, appsDeploy, appRemove, type AdminAppListOptions, type AppDeployAsk, type AppsDeployAsk, type AppRemoveOptions, type AppDeployWaitOptions, type AppVersionsOptions, } from './apps.js';
|
|
63
63
|
export { APP_VERSIONS_KEPT, APP_OBJECT_MAX_BYTES, APP_DEPLOY_MAX, appProblemText, appProblemLines, appProblemsText, appDeployRefusedText, } from '@elaraai/e3-cloud-types';
|
|
64
64
|
export type { AdminAppPage, AppRebuilds, RepositoryApps, WorkspaceLastRelease, AppSummary, AppList, AppVersion, AppVersionPage, AppNav, AppStaged, AppSource, AppDeployRequest, AppsDeployRequest, AppDeployResponse, AppDeployKind, AppRemoved, AppProblem, AppProblems, } from '@elaraai/e3-cloud-types';
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAGH,OAAO,EAAE,QAAQ,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AO,EACP,UAAU,EACV,cAAc,EACd,MAAM,EACN,SAAS,EACT,SAAS,EACT,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,EACb,UAAU,EACV,UAAU,EACV,WAAW,GACZ,MAAM,yBAAyB,CAAC"}
|
package/dist/src/index.js
CHANGED
|
@@ -55,7 +55,7 @@ export { getDelegationPolicy, setDelegationPolicy, getRackSecurityPolicy, setRac
|
|
|
55
55
|
// Record history, rollback & backups
|
|
56
56
|
export { listRecordInfos, recordAudit, recordStateAt, recordStatePage, recordValueChunks, rollbackRecord, listRecordBackups, createRecordBackup, restoreRecordBackup, recordBackupDownload, recordBackupStream, recordBackupValue, deleteRecordBackup, } from './records.js';
|
|
57
57
|
// Files: a deployed workspace's inputs from files in a bucket
|
|
58
|
-
export { getFiles, deployFiles, bindFilesSource, startFilesSync, getFilesSync, filesSyncWait, } from './files.js';
|
|
58
|
+
export { getFiles, deployFiles, bindFilesSource, startFilesSync, getFilesSync, filesSyncWait, planFilesPush, completeFilesPush, } from './files.js';
|
|
59
59
|
// Feedback on components
|
|
60
60
|
export { getFeedbackSettings, putFeedbackSettings, addFeedback, listMyFeedback, listFeedback, getFeedback, feedbackScreenshotUrl, closeFeedback, reopenFeedback, } from './feedback.js';
|
|
61
61
|
export { feedbackId, FEEDBACK_NOTE_MAX_CHARS, FEEDBACK_TEXT_MAX_CHARS, FEEDBACK_URL_MAX_CHARS, FEEDBACK_SHORT_MAX_CHARS, FEEDBACK_DATASETS_MAX, FEEDBACK_NOTE_MAX_BYTES, FEEDBACK_SCREENSHOT_MAX_BYTES, FEEDBACK_SCREENSHOT_TYPES, FEEDBACK_SUMMARY_CHARS, FEEDBACK_PAGE_DEFAULT, FEEDBACK_PAGE_MAX, } from '@elaraai/e3-cloud-types';
|
package/dist/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;GA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,GAClB,MAAM,yBAAyB,CAAC;AAwBjC,uEAAuE;AACvE,iDAAiD;AACjD,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EACrB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,4BAA4B,EAC5B,UAAU,EACV,WAAW,GAEZ,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,8BAA8B,EAC9B,0BAA0B,EAC1B,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,EACvB,sBAAsB,EACtB,2BAA2B,GAC5B,MAAM,yBAAyB,CAAC;AAmCjC,iLAAiL;AACjL,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,OAAO,EACP,SAAS,EACT,aAAa,EACb,MAAM,EACN,WAAW,EACX,SAAS,EACT,SAAS,EACT,UAAU,EACV,SAAS,GAOV,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,cAAc,EACd,cAAc,EACd,eAAe,EACf,eAAe,EACf,oBAAoB,GACrB,MAAM,yBAAyB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elaraai/e3-cloud-client",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "HTTP client library for the e3 cloud API",
|
|
6
6
|
"license": "BUSL-1.1",
|
|
7
7
|
"main": "dist/src/index.js",
|
|
8
8
|
"types": "dist/src/index.d.ts",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@elaraai/e3-api-client": "1.0.
|
|
11
|
-
"@elaraai/e3-types": "1.0.
|
|
12
|
-
"@elaraai/e3-cloud-types": "1.0
|
|
10
|
+
"@elaraai/e3-api-client": "1.0.100",
|
|
11
|
+
"@elaraai/e3-types": "1.0.100",
|
|
12
|
+
"@elaraai/e3-cloud-types": "1.1.0"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@elaraai/east": "1.0.
|
|
15
|
+
"@elaraai/east": "1.0.100"
|
|
16
16
|
},
|
|
17
17
|
"files": [
|
|
18
18
|
"dist/src/**/*",
|