@ornncompute/cli 1.0.147 → 1.0.148

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@ornncompute/cli",
3
- "version": "1.0.147",
3
+ "version": "1.0.148",
4
4
  "description": "Command-line interface for Ornn compute access workflows.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -265,20 +265,20 @@ function importDisk(request, body) {
265
265
  function drivePath(id) {
266
266
  return `/v1/orchestrator/drives/${encodeURIComponent(id)}`;
267
267
  }
268
- function filePath(path4) {
269
- return path4.replace(/\\/g, "/").split("/").filter(Boolean).map(encodeURIComponent).join("/");
268
+ function filePath(path5) {
269
+ return path5.replace(/\\/g, "/").split("/").filter(Boolean).map(encodeURIComponent).join("/");
270
270
  }
271
- function driveFilePath(id, path4) {
272
- return `${drivePath(id)}/files/${filePath(path4)}`;
271
+ function driveFilePath(id, path5) {
272
+ return `${drivePath(id)}/files/${filePath(path5)}`;
273
273
  }
274
274
  function driveArchivePath(id) {
275
275
  return `${drivePath(id)}/archive`;
276
276
  }
277
- function driveFolderArchivePath(id, path4) {
278
- return `${drivePath(id)}/folders/${filePath(path4)}/archive`;
277
+ function driveFolderArchivePath(id, path5) {
278
+ return `${drivePath(id)}/folders/${filePath(path5)}/archive`;
279
279
  }
280
- function downloadDriveFile(fetch, id, path4, signal) {
281
- return fetch(driveFilePath(id, path4), { method: "GET", ...signal ? { signal } : {} });
280
+ function downloadDriveFile(fetch, id, path5, signal) {
281
+ return fetch(driveFilePath(id, path5), { method: "GET", ...signal ? { signal } : {} });
282
282
  }
283
283
  function listDriveContents(request, id, query = {}, signal) {
284
284
  const params = new URLSearchParams();
@@ -291,11 +291,11 @@ function listDriveContents(request, id, query = {}, signal) {
291
291
  ...signal ? { signal } : {}
292
292
  });
293
293
  }
294
- function deleteDriveFile(request, id, path4) {
295
- return request(driveFilePath(id, path4), { method: "DELETE" });
294
+ function deleteDriveFile(request, id, path5) {
295
+ return request(driveFilePath(id, path5), { method: "DELETE" });
296
296
  }
297
- function deleteDriveFolder(request, id, path4) {
298
- return request(`${drivePath(id)}/folders/${filePath(path4)}`, { method: "DELETE" });
297
+ function deleteDriveFolder(request, id, path5) {
298
+ return request(`${drivePath(id)}/folders/${filePath(path5)}`, { method: "DELETE" });
299
299
  }
300
300
  function clearDriveContents(request, id) {
301
301
  return request(`${drivePath(id)}/contents`, { method: "DELETE" });
@@ -321,13 +321,13 @@ function keepDriveUploadsAlive(request, id) {
321
321
  }
322
322
 
323
323
  // ../../packages/api-client/dist/orchestrator/drives.js
324
- function queryPath(path4, query) {
324
+ function queryPath(path5, query) {
325
325
  const params = new URLSearchParams();
326
326
  for (const [key, value] of Object.entries(query)) {
327
327
  if (value !== void 0 && value !== null)
328
328
  params.set(key, String(value));
329
329
  }
330
- return `${path4}${params.size ? `?${params}` : ""}`;
330
+ return `${path5}${params.size ? `?${params}` : ""}`;
331
331
  }
332
332
  function listDrives(request, query = {}, signal) {
333
333
  return request(queryPath("/v1/orchestrator/drives", query), {
@@ -779,13 +779,13 @@ async function deleteSshBastion(request, id, query) {
779
779
  var storageEventsPath = "/v1/orchestrator/storage/ws";
780
780
 
781
781
  // ../../packages/api-client/dist/orchestrator/storage-usage.js
782
- function queryPath2(path4, query) {
782
+ function queryPath2(path5, query) {
783
783
  const params = new URLSearchParams();
784
784
  for (const [key, value] of Object.entries(query)) {
785
785
  if (value !== void 0)
786
786
  params.set(key, String(value));
787
787
  }
788
- return `${path4}${params.size ? `?${params}` : ""}`;
788
+ return `${path5}${params.size ? `?${params}` : ""}`;
789
789
  }
790
790
  function listStorageInventory(request, query = {}, signal) {
791
791
  return request(queryPath2("/v1/staff/storage/volumes", query), {
@@ -806,6 +806,18 @@ function getOrganizationStorageUsage(request, organizationId, query, signal) {
806
806
  });
807
807
  }
808
808
 
809
+ // ../../packages/api-client/dist/orchestrator/supplier-gateways.js
810
+ var path4 = "/v1/orchestrator/supplier-gateways";
811
+ function createSupplierGateway(request, body) {
812
+ return request(path4, { method: "POST", body });
813
+ }
814
+ function getSupplierGateway(request, id, signal) {
815
+ return request(`${path4}/${encodeURIComponent(id)}`, {
816
+ method: "GET",
817
+ ...signal ? { signal } : {}
818
+ });
819
+ }
820
+
809
821
  // ../../packages/api-client/dist/orchestrator/supplier-node-configs.js
810
822
  function listSupplierNodeConfigs(request, query = {}, signal) {
811
823
  const params = new URLSearchParams();
@@ -924,6 +936,7 @@ export {
924
936
  createNetworkPeer,
925
937
  createShellSession,
926
938
  createSshBastion,
939
+ createSupplierGateway,
927
940
  createVirtualMachine,
928
941
  deleteDisk,
929
942
  deleteDrive,
@@ -972,6 +985,7 @@ export {
972
985
  getReservationAccessSwitch,
973
986
  getSoftwareCatalog,
974
987
  getStorageUsage,
988
+ getSupplierGateway,
975
989
  getVirtualMachine,
976
990
  getVirtualMachineLogs,
977
991
  hardwareCatalogPath,