@ornncompute/cli 1.0.365 → 1.0.367

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.365",
3
+ "version": "1.0.367",
4
4
  "description": "Command-line interface for Ornn compute access workflows.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -760,6 +760,15 @@ function listSanitizeJobs(request, filter, signal) {
760
760
  }
761
761
 
762
762
  // ../../packages/api-client/dist/orchestrator/nodes.js
763
+ function listDirectVmPorts(request, nodeId, reservationId, signal) {
764
+ return request(`/v1/orchestrator/nodes/${encodeURIComponent(nodeId)}/ports?reservation_id=${encodeURIComponent(reservationId)}`, { method: "GET", ...signal ? { signal } : {} });
765
+ }
766
+ function openDirectVmPort(request, nodeId, reservationId, body) {
767
+ return request(`/v1/orchestrator/nodes/${encodeURIComponent(nodeId)}/ports?reservation_id=${encodeURIComponent(reservationId)}`, { method: "POST", body });
768
+ }
769
+ async function closeDirectVmPort(request, nodeId, reservationId, port) {
770
+ await request(`/v1/orchestrator/nodes/${encodeURIComponent(nodeId)}/ports/${encodeURIComponent(port)}?reservation_id=${encodeURIComponent(reservationId)}`, { method: "DELETE" });
771
+ }
763
772
  function nodeQuery(query) {
764
773
  const params = new URLSearchParams();
765
774
  for (const [key, value] of Object.entries(query)) {
@@ -1201,6 +1210,7 @@ export {
1201
1210
  cancelEnrollmentRun,
1202
1211
  checkExternalVmStatus,
1203
1212
  clearDriveContents,
1213
+ closeDirectVmPort,
1204
1214
  closeShellSession,
1205
1215
  closeVirtualMachinePort,
1206
1216
  completeDiskUpload,
@@ -1297,6 +1307,7 @@ export {
1297
1307
  listCatalogImages,
1298
1308
  listControllers,
1299
1309
  listControlplanes,
1310
+ listDirectVmPorts,
1300
1311
  listDiskBuildWorkers,
1301
1312
  listDisks,
1302
1313
  listDriveContents,
@@ -1341,6 +1352,7 @@ export {
1341
1352
  localityGeolocatePath,
1342
1353
  markNodeClean,
1343
1354
  networksSubscriptionPath,
1355
+ openDirectVmPort,
1344
1356
  openVirtualMachinePort,
1345
1357
  patchSupplierConnectionConfig,
1346
1358
  postDiskObject,