@ornncompute/cli 1.0.223 → 1.0.224
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/package.json
CHANGED
|
@@ -1,26 +1,16 @@
|
|
|
1
|
-
// ../../packages/api-client/dist/orchestrator/agent-
|
|
2
|
-
var path = "/v1/orchestrator/agent-rollouts";
|
|
1
|
+
// ../../packages/api-client/dist/orchestrator/agent-updates.js
|
|
3
2
|
function listAvailableAgentReleases(request, signal) {
|
|
4
3
|
return request("/v1/orchestrator/agent-releases", {
|
|
5
4
|
method: "GET",
|
|
6
5
|
signal
|
|
7
6
|
});
|
|
8
7
|
}
|
|
9
|
-
function
|
|
10
|
-
return request(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
return request(path, { method: "GET", ...signal ? { signal } : {} });
|
|
14
|
-
}
|
|
15
|
-
function getAgentRollout(request, id, signal) {
|
|
16
|
-
return request(`${path}/${encodeURIComponent(id)}`, {
|
|
17
|
-
method: "GET",
|
|
18
|
-
...signal ? { signal } : {}
|
|
8
|
+
function requestAgentUpdate(request, nodeId, body) {
|
|
9
|
+
return request(`/v1/orchestrator/nodes/${encodeURIComponent(nodeId)}/update`, {
|
|
10
|
+
method: "POST",
|
|
11
|
+
body
|
|
19
12
|
});
|
|
20
13
|
}
|
|
21
|
-
async function cancelAgentRollout(request, id) {
|
|
22
|
-
await request(`${path}/${encodeURIComponent(id)}/cancel`, { method: "POST" });
|
|
23
|
-
}
|
|
24
14
|
|
|
25
15
|
// ../../packages/api-client/dist/orchestrator/catalog.js
|
|
26
16
|
var hardwareCatalogPath = "/v1/orchestrator/catalog/hardware";
|
|
@@ -178,8 +168,8 @@ function teardownController(request, id, { tenant_id, ...options } = {}) {
|
|
|
178
168
|
});
|
|
179
169
|
}
|
|
180
170
|
function controllerWorkerPath(id, resource, workerId, tenantId) {
|
|
181
|
-
const
|
|
182
|
-
return tenantId === void 0 ?
|
|
171
|
+
const path5 = `${controllerPath(id)}/${resource}/${encodeURIComponent(workerId)}`;
|
|
172
|
+
return tenantId === void 0 ? path5 : `${path5}?${new URLSearchParams({ tenant_id: tenantId })}`;
|
|
183
173
|
}
|
|
184
174
|
function addControllerNode(request, id, nodeId, { tenant_id, ...options } = {}) {
|
|
185
175
|
return request(controllerWorkerPath(id, "nodes", nodeId, tenant_id), {
|
|
@@ -207,24 +197,24 @@ function removeControllerVirtualMachine(request, id, virtualMachineId, { tenant_
|
|
|
207
197
|
}
|
|
208
198
|
|
|
209
199
|
// ../../packages/api-client/dist/orchestrator/controlplanes.js
|
|
210
|
-
var
|
|
200
|
+
var path = "/v1/orchestrator/controlplanes";
|
|
211
201
|
function listControlplanes(request, signal) {
|
|
212
|
-
return request(
|
|
202
|
+
return request(path, {
|
|
213
203
|
method: "GET",
|
|
214
204
|
...signal ? { signal } : {}
|
|
215
205
|
});
|
|
216
206
|
}
|
|
217
207
|
function setControlplaneSize(request, controllerId, body) {
|
|
218
|
-
return request(`${
|
|
208
|
+
return request(`${path}/${encodeURIComponent(controllerId)}/size`, {
|
|
219
209
|
method: "POST",
|
|
220
210
|
body
|
|
221
211
|
});
|
|
222
212
|
}
|
|
223
213
|
function controlplaneSplashPath(replicaIp) {
|
|
224
|
-
return `${
|
|
214
|
+
return `${path}/${encodeURIComponent(replicaIp)}/`;
|
|
225
215
|
}
|
|
226
216
|
function controlplaneDownloadPath(query) {
|
|
227
|
-
return `${
|
|
217
|
+
return `${path}/download?${new URLSearchParams(query)}`;
|
|
228
218
|
}
|
|
229
219
|
|
|
230
220
|
// ../../packages/api-client/dist/orchestrator/disks.js
|
|
@@ -283,20 +273,20 @@ function importDisk(request, body) {
|
|
|
283
273
|
function drivePath(id) {
|
|
284
274
|
return `/v1/orchestrator/drives/${encodeURIComponent(id)}`;
|
|
285
275
|
}
|
|
286
|
-
function filePath(
|
|
287
|
-
return
|
|
276
|
+
function filePath(path5) {
|
|
277
|
+
return path5.replace(/\\/g, "/").split("/").filter(Boolean).map(encodeURIComponent).join("/");
|
|
288
278
|
}
|
|
289
|
-
function driveFilePath(id,
|
|
290
|
-
return `${drivePath(id)}/files/${filePath(
|
|
279
|
+
function driveFilePath(id, path5) {
|
|
280
|
+
return `${drivePath(id)}/files/${filePath(path5)}`;
|
|
291
281
|
}
|
|
292
282
|
function driveArchivePath(id) {
|
|
293
283
|
return `${drivePath(id)}/archive`;
|
|
294
284
|
}
|
|
295
|
-
function driveFolderArchivePath(id,
|
|
296
|
-
return `${drivePath(id)}/folders/${filePath(
|
|
285
|
+
function driveFolderArchivePath(id, path5) {
|
|
286
|
+
return `${drivePath(id)}/folders/${filePath(path5)}/archive`;
|
|
297
287
|
}
|
|
298
|
-
function downloadDriveFile(fetch, id,
|
|
299
|
-
return fetch(driveFilePath(id,
|
|
288
|
+
function downloadDriveFile(fetch, id, path5, signal) {
|
|
289
|
+
return fetch(driveFilePath(id, path5), { method: "GET", ...signal ? { signal } : {} });
|
|
300
290
|
}
|
|
301
291
|
function listDriveContents(request, id, query = {}, signal) {
|
|
302
292
|
const params = new URLSearchParams();
|
|
@@ -309,11 +299,11 @@ function listDriveContents(request, id, query = {}, signal) {
|
|
|
309
299
|
...signal ? { signal } : {}
|
|
310
300
|
});
|
|
311
301
|
}
|
|
312
|
-
function deleteDriveFile(request, id,
|
|
313
|
-
return request(driveFilePath(id,
|
|
302
|
+
function deleteDriveFile(request, id, path5) {
|
|
303
|
+
return request(driveFilePath(id, path5), { method: "DELETE" });
|
|
314
304
|
}
|
|
315
|
-
function deleteDriveFolder(request, id,
|
|
316
|
-
return request(`${drivePath(id)}/folders/${filePath(
|
|
305
|
+
function deleteDriveFolder(request, id, path5) {
|
|
306
|
+
return request(`${drivePath(id)}/folders/${filePath(path5)}`, { method: "DELETE" });
|
|
317
307
|
}
|
|
318
308
|
function clearDriveContents(request, id) {
|
|
319
309
|
return request(`${drivePath(id)}/contents`, { method: "DELETE" });
|
|
@@ -339,13 +329,13 @@ function keepDriveUploadsAlive(request, id) {
|
|
|
339
329
|
}
|
|
340
330
|
|
|
341
331
|
// ../../packages/api-client/dist/orchestrator/drives.js
|
|
342
|
-
function queryPath(
|
|
332
|
+
function queryPath(path5, query) {
|
|
343
333
|
const params = new URLSearchParams();
|
|
344
334
|
for (const [key, value] of Object.entries(query)) {
|
|
345
335
|
if (value !== void 0 && value !== null)
|
|
346
336
|
params.set(key, String(value));
|
|
347
337
|
}
|
|
348
|
-
return `${
|
|
338
|
+
return `${path5}${params.size ? `?${params}` : ""}`;
|
|
349
339
|
}
|
|
350
340
|
function listDrives(request, query = {}, signal) {
|
|
351
341
|
return request(queryPath("/v1/orchestrator/drives", query), {
|
|
@@ -795,26 +785,26 @@ function shellSessionAttachPath(id) {
|
|
|
795
785
|
}
|
|
796
786
|
|
|
797
787
|
// ../../packages/api-client/dist/orchestrator/ssh-bastions.js
|
|
798
|
-
var
|
|
788
|
+
var path2 = "/v1/orchestrator/ssh-bastions";
|
|
799
789
|
function listSshBastions(request, query, signal) {
|
|
800
790
|
const params = new URLSearchParams({ organization_id: query.organization_id });
|
|
801
791
|
if (query.after !== void 0)
|
|
802
792
|
params.set("after", query.after);
|
|
803
793
|
if (query.limit !== void 0)
|
|
804
794
|
params.set("limit", String(query.limit));
|
|
805
|
-
return request(`${
|
|
795
|
+
return request(`${path2}?${params}`, { method: "GET", ...signal ? { signal } : {} });
|
|
806
796
|
}
|
|
807
797
|
function createSshBastion(request, body) {
|
|
808
|
-
return request(
|
|
798
|
+
return request(path2, { method: "POST", body });
|
|
809
799
|
}
|
|
810
800
|
function updateSshBastion(request, id, body) {
|
|
811
|
-
return request(`${
|
|
801
|
+
return request(`${path2}/${encodeURIComponent(id)}`, {
|
|
812
802
|
method: "PUT",
|
|
813
803
|
body
|
|
814
804
|
});
|
|
815
805
|
}
|
|
816
806
|
async function deleteSshBastion(request, id, query) {
|
|
817
|
-
await request(`${
|
|
807
|
+
await request(`${path2}/${encodeURIComponent(id)}?${new URLSearchParams(query)}`, {
|
|
818
808
|
method: "DELETE"
|
|
819
809
|
});
|
|
820
810
|
}
|
|
@@ -823,13 +813,13 @@ async function deleteSshBastion(request, id, query) {
|
|
|
823
813
|
var storageEventsPath = "/v1/orchestrator/storage/ws";
|
|
824
814
|
|
|
825
815
|
// ../../packages/api-client/dist/orchestrator/storage-usage.js
|
|
826
|
-
function queryPath2(
|
|
816
|
+
function queryPath2(path5, query) {
|
|
827
817
|
const params = new URLSearchParams();
|
|
828
818
|
for (const [key, value] of Object.entries(query)) {
|
|
829
819
|
if (value !== void 0)
|
|
830
820
|
params.set(key, String(value));
|
|
831
821
|
}
|
|
832
|
-
return `${
|
|
822
|
+
return `${path5}${params.size ? `?${params}` : ""}`;
|
|
833
823
|
}
|
|
834
824
|
function listStorageInventory(request, query = {}, signal) {
|
|
835
825
|
return request(queryPath2("/v1/staff/storage/volumes", query), {
|
|
@@ -851,9 +841,9 @@ function getOrganizationStorageUsage(request, organizationId, query, signal) {
|
|
|
851
841
|
}
|
|
852
842
|
|
|
853
843
|
// ../../packages/api-client/dist/orchestrator/supplier-gateways.js
|
|
854
|
-
var
|
|
844
|
+
var path3 = "/v1/orchestrator/supplier-gateways";
|
|
855
845
|
function createSupplierGateway(request, body) {
|
|
856
|
-
return request(
|
|
846
|
+
return request(path3, { method: "POST", body });
|
|
857
847
|
}
|
|
858
848
|
function listSupplierGatewayRegions(request, signal) {
|
|
859
849
|
return request("/v1/orchestrator/supplier-gateway-regions", {
|
|
@@ -862,13 +852,13 @@ function listSupplierGatewayRegions(request, signal) {
|
|
|
862
852
|
});
|
|
863
853
|
}
|
|
864
854
|
function getSupplierGateway(request, id, signal) {
|
|
865
|
-
return request(`${
|
|
855
|
+
return request(`${path3}/${encodeURIComponent(id)}`, {
|
|
866
856
|
method: "GET",
|
|
867
857
|
...signal ? { signal } : {}
|
|
868
858
|
});
|
|
869
859
|
}
|
|
870
860
|
function registerSupplierGateway(request, body) {
|
|
871
|
-
return request(`${
|
|
861
|
+
return request(`${path3}/register`, { method: "POST", body });
|
|
872
862
|
}
|
|
873
863
|
function configureEnrollmentConnection(request, body) {
|
|
874
864
|
return request("/v1/orchestrator/enrollment/configurable/connection", {
|
|
@@ -884,7 +874,7 @@ function verifyEnrollmentConnection(request) {
|
|
|
884
874
|
}
|
|
885
875
|
|
|
886
876
|
// ../../packages/api-client/dist/orchestrator/supplier-connection-configs.js
|
|
887
|
-
var
|
|
877
|
+
var path4 = "/v1/orchestrator/supplier-connection-configs";
|
|
888
878
|
function listSupplierConnectionTypes(request, signal) {
|
|
889
879
|
return request("/v1/orchestrator/supplier-connection-types", {
|
|
890
880
|
method: "GET",
|
|
@@ -901,28 +891,28 @@ function listSupplierConnectionConfigs(request, query = {}, signal) {
|
|
|
901
891
|
params.set("after", query.after);
|
|
902
892
|
if (query.limit !== void 0)
|
|
903
893
|
params.set("limit", String(query.limit));
|
|
904
|
-
return request(`${
|
|
894
|
+
return request(`${path4}${params.size ? `?${params}` : ""}`, {
|
|
905
895
|
method: "GET",
|
|
906
896
|
...signal ? { signal } : {}
|
|
907
897
|
});
|
|
908
898
|
}
|
|
909
899
|
function getSupplierConnectionConfig(request, id, signal) {
|
|
910
|
-
return request(`${
|
|
900
|
+
return request(`${path4}/${encodeURIComponent(id)}`, {
|
|
911
901
|
method: "GET",
|
|
912
902
|
...signal ? { signal } : {}
|
|
913
903
|
});
|
|
914
904
|
}
|
|
915
905
|
function createSupplierConnectionConfig(request, body) {
|
|
916
|
-
return request(
|
|
906
|
+
return request(path4, { method: "POST", body });
|
|
917
907
|
}
|
|
918
908
|
function patchSupplierConnectionConfig(request, id, body) {
|
|
919
|
-
return request(`${
|
|
909
|
+
return request(`${path4}/${encodeURIComponent(id)}`, {
|
|
920
910
|
method: "PATCH",
|
|
921
911
|
body
|
|
922
912
|
});
|
|
923
913
|
}
|
|
924
914
|
function deleteSupplierConnectionConfig(request, id) {
|
|
925
|
-
return request(`${
|
|
915
|
+
return request(`${path4}/${encodeURIComponent(id)}`, { method: "DELETE" });
|
|
926
916
|
}
|
|
927
917
|
|
|
928
918
|
// ../../packages/api-client/dist/orchestrator/supplier-node-configs.js
|
|
@@ -1046,7 +1036,6 @@ export {
|
|
|
1046
1036
|
addControllerVirtualMachine,
|
|
1047
1037
|
addReservationSshKey,
|
|
1048
1038
|
assignNode,
|
|
1049
|
-
cancelAgentRollout,
|
|
1050
1039
|
cancelDriveUpload,
|
|
1051
1040
|
cancelEnrollmentRun,
|
|
1052
1041
|
clearDriveContents,
|
|
@@ -1096,7 +1085,6 @@ export {
|
|
|
1096
1085
|
enrollmentTokensPath,
|
|
1097
1086
|
fakeEnroll,
|
|
1098
1087
|
geolocate,
|
|
1099
|
-
getAgentRollout,
|
|
1100
1088
|
getContainerRegistry,
|
|
1101
1089
|
getControllerAccess,
|
|
1102
1090
|
getCurrentShellSession,
|
|
@@ -1133,7 +1121,6 @@ export {
|
|
|
1133
1121
|
keepDriveUploadsAlive,
|
|
1134
1122
|
launchEnrollmentRun,
|
|
1135
1123
|
launchReservation,
|
|
1136
|
-
listAgentRollouts,
|
|
1137
1124
|
listAllEnrollmentProfiles,
|
|
1138
1125
|
listAvailableAgentReleases,
|
|
1139
1126
|
listCatalogImages,
|
|
@@ -1191,6 +1178,7 @@ export {
|
|
|
1191
1178
|
remoteRunPath,
|
|
1192
1179
|
removeControllerNode,
|
|
1193
1180
|
removeControllerVirtualMachine,
|
|
1181
|
+
requestAgentUpdate,
|
|
1194
1182
|
reservationEventsPath,
|
|
1195
1183
|
revokeEnrollmentToken,
|
|
1196
1184
|
rotateEnrollmentAdminSshKey,
|
|
@@ -1198,7 +1186,6 @@ export {
|
|
|
1198
1186
|
saveServicingRequirement,
|
|
1199
1187
|
setControlplaneSize,
|
|
1200
1188
|
shellSessionAttachPath,
|
|
1201
|
-
startAgentRollout,
|
|
1202
1189
|
startDiskUpload,
|
|
1203
1190
|
startDriveUpload,
|
|
1204
1191
|
startGitHubConnection,
|