@ornncompute/cli 1.0.149 → 1.0.150

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.149",
3
+ "version": "1.0.150",
4
4
  "description": "Command-line interface for Ornn compute access workflows.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -22,7 +22,7 @@ export function adminCommandHandler(capability) {
22
22
  }
23
23
 
24
24
  function commandParts(capability) {
25
- return capability.cli?.vnext?.command ?? capability.cli?.command ?? [];
25
+ return capability.cli?.command ?? [];
26
26
  }
27
27
  function matchedAdminCapability(catalog, argv) {
28
28
  return catalog.find((candidate) => {
@@ -15,7 +15,7 @@ export class AdminUsageError extends Error {
15
15
  }
16
16
 
17
17
  function vnextCommand(capability) {
18
- return capability.cli?.vnext?.command ?? capability.cli?.command ?? [];
18
+ return capability.cli?.command ?? [];
19
19
  }
20
20
 
21
21
  function adminCommands(catalog) {
@@ -158,7 +158,7 @@ function extractFormat(argv) {
158
158
  }
159
159
 
160
160
  function vnextCommand(capability) {
161
- return capability.cli?.vnext?.command ?? capability.cli?.command ?? [];
161
+ return capability.cli?.command ?? [];
162
162
  }
163
163
 
164
164
  function customerCommands(catalog) {
@@ -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(path5) {
269
- return path5.replace(/\\/g, "/").split("/").filter(Boolean).map(encodeURIComponent).join("/");
268
+ function filePath(path6) {
269
+ return path6.replace(/\\/g, "/").split("/").filter(Boolean).map(encodeURIComponent).join("/");
270
270
  }
271
- function driveFilePath(id, path5) {
272
- return `${drivePath(id)}/files/${filePath(path5)}`;
271
+ function driveFilePath(id, path6) {
272
+ return `${drivePath(id)}/files/${filePath(path6)}`;
273
273
  }
274
274
  function driveArchivePath(id) {
275
275
  return `${drivePath(id)}/archive`;
276
276
  }
277
- function driveFolderArchivePath(id, path5) {
278
- return `${drivePath(id)}/folders/${filePath(path5)}/archive`;
277
+ function driveFolderArchivePath(id, path6) {
278
+ return `${drivePath(id)}/folders/${filePath(path6)}/archive`;
279
279
  }
280
- function downloadDriveFile(fetch, id, path5, signal) {
281
- return fetch(driveFilePath(id, path5), { method: "GET", ...signal ? { signal } : {} });
280
+ function downloadDriveFile(fetch, id, path6, signal) {
281
+ return fetch(driveFilePath(id, path6), { 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, path5) {
295
- return request(driveFilePath(id, path5), { method: "DELETE" });
294
+ function deleteDriveFile(request, id, path6) {
295
+ return request(driveFilePath(id, path6), { method: "DELETE" });
296
296
  }
297
- function deleteDriveFolder(request, id, path5) {
298
- return request(`${drivePath(id)}/folders/${filePath(path5)}`, { method: "DELETE" });
297
+ function deleteDriveFolder(request, id, path6) {
298
+ return request(`${drivePath(id)}/folders/${filePath(path6)}`, { 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(path5, query) {
324
+ function queryPath(path6, 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 `${path5}${params.size ? `?${params}` : ""}`;
330
+ return `${path6}${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(path5, query) {
782
+ function queryPath2(path6, 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 `${path5}${params.size ? `?${params}` : ""}`;
788
+ return `${path6}${params.size ? `?${params}` : ""}`;
789
789
  }
790
790
  function listStorageInventory(request, query = {}, signal) {
791
791
  return request(queryPath2("/v1/staff/storage/volumes", query), {
@@ -818,6 +818,43 @@ function getSupplierGateway(request, id, signal) {
818
818
  });
819
819
  }
820
820
 
821
+ // ../../packages/api-client/dist/orchestrator/supplier-connection-configs.js
822
+ var path5 = "/v1/orchestrator/supplier-connection-configs";
823
+ function listSupplierConnectionTypes(request, signal) {
824
+ return request("/v1/orchestrator/supplier-connection-types", {
825
+ method: "GET",
826
+ ...signal ? { signal } : {}
827
+ });
828
+ }
829
+ function listSupplierConnectionConfigs(request, query = {}, signal) {
830
+ const params = new URLSearchParams();
831
+ if (query.organization_id !== void 0)
832
+ params.set("organization_id", query.organization_id);
833
+ if (query.after !== void 0)
834
+ params.set("after", query.after);
835
+ if (query.limit !== void 0)
836
+ params.set("limit", String(query.limit));
837
+ return request(`${path5}${params.size ? `?${params}` : ""}`, {
838
+ method: "GET",
839
+ ...signal ? { signal } : {}
840
+ });
841
+ }
842
+ function getSupplierConnectionConfig(request, id, signal) {
843
+ return request(`${path5}/${encodeURIComponent(id)}`, {
844
+ method: "GET",
845
+ ...signal ? { signal } : {}
846
+ });
847
+ }
848
+ function createSupplierConnectionConfig(request, body) {
849
+ return request(path5, { method: "POST", body });
850
+ }
851
+ function patchSupplierConnectionConfig(request, id, body) {
852
+ return request(`${path5}/${encodeURIComponent(id)}`, {
853
+ method: "PATCH",
854
+ body
855
+ });
856
+ }
857
+
821
858
  // ../../packages/api-client/dist/orchestrator/supplier-node-configs.js
822
859
  function listSupplierNodeConfigs(request, query = {}, signal) {
823
860
  const params = new URLSearchParams();
@@ -936,6 +973,7 @@ export {
936
973
  createNetworkPeer,
937
974
  createShellSession,
938
975
  createSshBastion,
976
+ createSupplierConnectionConfig,
939
977
  createSupplierGateway,
940
978
  createVirtualMachine,
941
979
  deleteDisk,
@@ -985,6 +1023,7 @@ export {
985
1023
  getReservationAccessSwitch,
986
1024
  getSoftwareCatalog,
987
1025
  getStorageUsage,
1026
+ getSupplierConnectionConfig,
988
1027
  getSupplierGateway,
989
1028
  getVirtualMachine,
990
1029
  getVirtualMachineLogs,
@@ -1028,11 +1067,14 @@ export {
1028
1067
  listStaffNodes,
1029
1068
  listStorageInventory,
1030
1069
  listStorageTargets,
1070
+ listSupplierConnectionConfigs,
1071
+ listSupplierConnectionTypes,
1031
1072
  listSupplierNodeConfigs,
1032
1073
  listVirtualMachinePorts,
1033
1074
  localityGeolocatePath,
1034
1075
  networksSubscriptionPath,
1035
1076
  openVirtualMachinePort,
1077
+ patchSupplierConnectionConfig,
1036
1078
  postDiskObject,
1037
1079
  postImageObject,
1038
1080
  pullGitHubRepository,