@ornncompute/cli 1.0.284 → 1.0.286

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.284",
3
+ "version": "1.0.286",
4
4
  "description": "Command-line interface for Ornn compute access workflows.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -3714,7 +3714,9 @@ async function listMachines(input, context, interaction) {
3714
3714
  presentation: {
3715
3715
  lines: projected.length ? projected.flatMap(machineLines) : ["No direct machines found."],
3716
3716
  ...(selected.page.next_cursor
3717
- ? { next: `ornn machines list --cursor ${selected.page.next_cursor}` }
3717
+ ? {
3718
+ next: `ornn machines list --limit ${selected.page.limit} --cursor ${selected.page.next_cursor}`,
3719
+ }
3718
3720
  : {}),
3719
3721
  },
3720
3722
  });
@@ -232,8 +232,9 @@ function listReservationCapacityRevisions(request, id2, signal) {
232
232
  ...signal ? { signal } : {}
233
233
  });
234
234
  }
235
- function listReservationPriceRevisions(request, id2, signal) {
236
- return request(`${reservationPath(id2)}/price-revisions`, {
235
+ function listReservationPriceRevisions(request, id2, signal, input) {
236
+ const search = input ? `?${new URLSearchParams(input)}` : "";
237
+ return request(`${reservationPath(id2)}/price-revisions${search}`, {
237
238
  method: "GET",
238
239
  ...signal ? { signal } : {}
239
240
  });
@@ -135,6 +135,12 @@ function listEnrollmentIssues(request, id, signal) {
135
135
  signal
136
136
  });
137
137
  }
138
+ function updateEnrollmentIssue(request, id, code, body) {
139
+ return request(`${root}/hosts/${encodeURIComponent(id)}/issues/${encodeURIComponent(code)}`, {
140
+ method: "PATCH",
141
+ body
142
+ });
143
+ }
138
144
  function getEnrollmentSteps(request, id) {
139
145
  return request(`${root}/hosts/${encodeURIComponent(id)}/steps`, { method: "GET" });
140
146
  }
@@ -802,6 +808,8 @@ function listReservationNodeRollout(request, reservationId, query = {}, signal)
802
808
  params.set("limit", String(query.limit));
803
809
  if (query.after_id !== void 0)
804
810
  params.set("after_id", query.after_id);
811
+ if (query.seller_organization_id)
812
+ params.set("seller_organization_id", query.seller_organization_id);
805
813
  return request(`/v1/orchestrator/reservations/${encodeURIComponent(reservationId)}/node-rollout${params.size ? `?${params}` : ""}`, { method: "GET", ...signal ? { signal } : {} });
806
814
  }
807
815
 
@@ -1270,6 +1278,7 @@ export {
1270
1278
  transferNode,
1271
1279
  updateDisk,
1272
1280
  updateDrive,
1281
+ updateEnrollmentIssue,
1273
1282
  updateEnrollmentProfile,
1274
1283
  updateNetwork,
1275
1284
  updateNode,