@ornncompute/cli 1.0.349 → 1.0.351

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.349",
3
+ "version": "1.0.351",
4
4
  "description": "Command-line interface for Ornn compute access workflows.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -207,8 +207,8 @@ function teardownController(request, id, { tenant_id, ...options } = {}) {
207
207
  });
208
208
  }
209
209
  function controllerWorkerPath(id, resource, workerId, tenantId) {
210
- const path5 = `${controllerPath(id)}/${resource}/${encodeURIComponent(workerId)}`;
211
- return tenantId === void 0 ? path5 : `${path5}?${new URLSearchParams({ tenant_id: tenantId })}`;
210
+ const path6 = `${controllerPath(id)}/${resource}/${encodeURIComponent(workerId)}`;
211
+ return tenantId === void 0 ? path6 : `${path6}?${new URLSearchParams({ tenant_id: tenantId })}`;
212
212
  }
213
213
  function addControllerNode(request, id, nodeId, { tenant_id, ...options } = {}) {
214
214
  return request(controllerWorkerPath(id, "nodes", nodeId, tenant_id), {
@@ -321,20 +321,20 @@ function importDisk(request, body) {
321
321
  function drivePath(id) {
322
322
  return `/v1/orchestrator/drives/${encodeURIComponent(id)}`;
323
323
  }
324
- function filePath(path5) {
325
- return path5.replace(/\\/g, "/").split("/").filter(Boolean).map(encodeURIComponent).join("/");
324
+ function filePath(path6) {
325
+ return path6.replace(/\\/g, "/").split("/").filter(Boolean).map(encodeURIComponent).join("/");
326
326
  }
327
- function driveFilePath(id, path5) {
328
- return `${drivePath(id)}/files/${filePath(path5)}`;
327
+ function driveFilePath(id, path6) {
328
+ return `${drivePath(id)}/files/${filePath(path6)}`;
329
329
  }
330
330
  function driveArchivePath(id) {
331
331
  return `${drivePath(id)}/archive`;
332
332
  }
333
- function driveFolderArchivePath(id, path5) {
334
- return `${drivePath(id)}/folders/${filePath(path5)}/archive`;
333
+ function driveFolderArchivePath(id, path6) {
334
+ return `${drivePath(id)}/folders/${filePath(path6)}/archive`;
335
335
  }
336
- function downloadDriveFile(fetch, id, path5, signal) {
337
- return fetch(driveFilePath(id, path5), { method: "GET", ...signal ? { signal } : {} });
336
+ function downloadDriveFile(fetch, id, path6, signal) {
337
+ return fetch(driveFilePath(id, path6), { method: "GET", ...signal ? { signal } : {} });
338
338
  }
339
339
  function listDriveContents(request, id, query = {}, signal) {
340
340
  const params = new URLSearchParams();
@@ -347,11 +347,11 @@ function listDriveContents(request, id, query = {}, signal) {
347
347
  ...signal ? { signal } : {}
348
348
  });
349
349
  }
350
- function deleteDriveFile(request, id, path5) {
351
- return request(driveFilePath(id, path5), { method: "DELETE" });
350
+ function deleteDriveFile(request, id, path6) {
351
+ return request(driveFilePath(id, path6), { method: "DELETE" });
352
352
  }
353
- function deleteDriveFolder(request, id, path5) {
354
- return request(`${drivePath(id)}/folders/${filePath(path5)}`, { method: "DELETE" });
353
+ function deleteDriveFolder(request, id, path6) {
354
+ return request(`${drivePath(id)}/folders/${filePath(path6)}`, { method: "DELETE" });
355
355
  }
356
356
  function clearDriveContents(request, id) {
357
357
  return request(`${drivePath(id)}/contents`, { method: "DELETE" });
@@ -377,13 +377,13 @@ function keepDriveUploadsAlive(request, id) {
377
377
  }
378
378
 
379
379
  // ../../packages/api-client/dist/orchestrator/drives.js
380
- function queryPath(path5, query) {
380
+ function queryPath(path6, query) {
381
381
  const params = new URLSearchParams();
382
382
  for (const [key, value] of Object.entries(query)) {
383
383
  if (value !== void 0 && value !== null)
384
384
  params.set(key, String(value));
385
385
  }
386
- return `${path5}${params.size ? `?${params}` : ""}`;
386
+ return `${path6}${params.size ? `?${params}` : ""}`;
387
387
  }
388
388
  function listDrives(request, query = {}, signal) {
389
389
  return request(queryPath("/v1/orchestrator/drives", query), {
@@ -424,6 +424,25 @@ function listStorageTargets(request, signal) {
424
424
  });
425
425
  }
426
426
 
427
+ // ../../packages/api-client/dist/orchestrator/external-virtual-machines.js
428
+ var path2 = "/v1/orchestrator/external-virtual-machines";
429
+ function startExternalVm(request, id) {
430
+ return request(`${path2}/${encodeURIComponent(id)}/start`, {
431
+ method: "POST"
432
+ });
433
+ }
434
+ function checkExternalVmStatus(request, id, signal) {
435
+ return request(`${path2}/${encodeURIComponent(id)}`, {
436
+ method: "GET",
437
+ ...signal ? { signal } : {}
438
+ });
439
+ }
440
+ function stopExternalVm(request, id) {
441
+ return request(`${path2}/${encodeURIComponent(id)}/stop`, {
442
+ method: "POST"
443
+ });
444
+ }
445
+
427
446
  // ../../packages/api-client/dist/orchestrator/enrollment.js
428
447
  var enrollmentTokensPath = "/v1/orchestrator/enrollment-tokens";
429
448
  function listEnrollmentTokens(request, query = {}) {
@@ -883,26 +902,26 @@ function shellSessionAttachPath(id) {
883
902
  }
884
903
 
885
904
  // ../../packages/api-client/dist/orchestrator/ssh-bastions.js
886
- var path2 = "/v1/orchestrator/ssh-bastions";
905
+ var path3 = "/v1/orchestrator/ssh-bastions";
887
906
  function listSshBastions(request, query, signal) {
888
907
  const params = new URLSearchParams({ organization_id: query.organization_id });
889
908
  if (query.after !== void 0)
890
909
  params.set("after", query.after);
891
910
  if (query.limit !== void 0)
892
911
  params.set("limit", String(query.limit));
893
- return request(`${path2}?${params}`, { method: "GET", ...signal ? { signal } : {} });
912
+ return request(`${path3}?${params}`, { method: "GET", ...signal ? { signal } : {} });
894
913
  }
895
914
  function createSshBastion(request, body) {
896
- return request(path2, { method: "POST", body });
915
+ return request(path3, { method: "POST", body });
897
916
  }
898
917
  function updateSshBastion(request, id, body) {
899
- return request(`${path2}/${encodeURIComponent(id)}`, {
918
+ return request(`${path3}/${encodeURIComponent(id)}`, {
900
919
  method: "PUT",
901
920
  body
902
921
  });
903
922
  }
904
923
  async function deleteSshBastion(request, id, query) {
905
- await request(`${path2}/${encodeURIComponent(id)}?${new URLSearchParams(query)}`, {
924
+ await request(`${path3}/${encodeURIComponent(id)}?${new URLSearchParams(query)}`, {
906
925
  method: "DELETE"
907
926
  });
908
927
  }
@@ -911,13 +930,13 @@ async function deleteSshBastion(request, id, query) {
911
930
  var storageEventsPath = "/v1/orchestrator/storage/ws";
912
931
 
913
932
  // ../../packages/api-client/dist/orchestrator/storage-usage.js
914
- function queryPath2(path5, query) {
933
+ function queryPath2(path6, query) {
915
934
  const params = new URLSearchParams();
916
935
  for (const [key, value] of Object.entries(query)) {
917
936
  if (value !== void 0)
918
937
  params.set(key, String(value));
919
938
  }
920
- return `${path5}${params.size ? `?${params}` : ""}`;
939
+ return `${path6}${params.size ? `?${params}` : ""}`;
921
940
  }
922
941
  function listStorageInventory(request, query = {}, signal) {
923
942
  return request(queryPath2("/v1/staff/storage/volumes", query), {
@@ -939,9 +958,9 @@ function getOrganizationStorageUsage(request, organizationId, query, signal) {
939
958
  }
940
959
 
941
960
  // ../../packages/api-client/dist/orchestrator/supplier-gateways.js
942
- var path3 = "/v1/orchestrator/supplier-gateways";
961
+ var path4 = "/v1/orchestrator/supplier-gateways";
943
962
  function createSupplierGateway(request, body) {
944
- return request(path3, { method: "POST", body });
963
+ return request(path4, { method: "POST", body });
945
964
  }
946
965
  function listSupplierGatewayRegions(request, signal) {
947
966
  return request("/v1/orchestrator/supplier-gateway-regions", {
@@ -950,13 +969,13 @@ function listSupplierGatewayRegions(request, signal) {
950
969
  });
951
970
  }
952
971
  function getSupplierGateway(request, id, signal) {
953
- return request(`${path3}/${encodeURIComponent(id)}`, {
972
+ return request(`${path4}/${encodeURIComponent(id)}`, {
954
973
  method: "GET",
955
974
  ...signal ? { signal } : {}
956
975
  });
957
976
  }
958
977
  function registerSupplierGateway(request, body) {
959
- return request(`${path3}/register`, { method: "POST", body });
978
+ return request(`${path4}/register`, { method: "POST", body });
960
979
  }
961
980
  function configureEnrollmentConnection(request, body) {
962
981
  return request("/v1/orchestrator/enrollment/configurable/connection", {
@@ -972,7 +991,7 @@ function verifyEnrollmentConnection(request) {
972
991
  }
973
992
 
974
993
  // ../../packages/api-client/dist/orchestrator/supplier-connection-configs.js
975
- var path4 = "/v1/orchestrator/supplier-connection-configs";
994
+ var path5 = "/v1/orchestrator/supplier-connection-configs";
976
995
  function listSupplierConnectionTypes(request, signal) {
977
996
  return request("/v1/orchestrator/supplier-connection-types", {
978
997
  method: "GET",
@@ -989,28 +1008,28 @@ function listSupplierConnectionConfigs(request, query = {}, signal) {
989
1008
  params.set("after", query.after);
990
1009
  if (query.limit !== void 0)
991
1010
  params.set("limit", String(query.limit));
992
- return request(`${path4}${params.size ? `?${params}` : ""}`, {
1011
+ return request(`${path5}${params.size ? `?${params}` : ""}`, {
993
1012
  method: "GET",
994
1013
  ...signal ? { signal } : {}
995
1014
  });
996
1015
  }
997
1016
  function getSupplierConnectionConfig(request, id, signal) {
998
- return request(`${path4}/${encodeURIComponent(id)}`, {
1017
+ return request(`${path5}/${encodeURIComponent(id)}`, {
999
1018
  method: "GET",
1000
1019
  ...signal ? { signal } : {}
1001
1020
  });
1002
1021
  }
1003
1022
  function createSupplierConnectionConfig(request, body) {
1004
- return request(path4, { method: "POST", body });
1023
+ return request(path5, { method: "POST", body });
1005
1024
  }
1006
1025
  function patchSupplierConnectionConfig(request, id, body) {
1007
- return request(`${path4}/${encodeURIComponent(id)}`, {
1026
+ return request(`${path5}/${encodeURIComponent(id)}`, {
1008
1027
  method: "PATCH",
1009
1028
  body
1010
1029
  });
1011
1030
  }
1012
1031
  function deleteSupplierConnectionConfig(request, id) {
1013
- return request(`${path4}/${encodeURIComponent(id)}`, { method: "DELETE" });
1032
+ return request(`${path5}/${encodeURIComponent(id)}`, { method: "DELETE" });
1014
1033
  }
1015
1034
 
1016
1035
  // ../../packages/api-client/dist/orchestrator/supplier-node-configs.js
@@ -1180,6 +1199,7 @@ export {
1180
1199
  assignNode,
1181
1200
  cancelDriveUpload,
1182
1201
  cancelEnrollmentRun,
1202
+ checkExternalVmStatus,
1183
1203
  clearDriveContents,
1184
1204
  closeShellSession,
1185
1205
  closeVirtualMachinePort,
@@ -1348,9 +1368,11 @@ export {
1348
1368
  startAgentReleaseRollout,
1349
1369
  startDiskUpload,
1350
1370
  startDriveUpload,
1371
+ startExternalVm,
1351
1372
  startGitHubConnection,
1352
1373
  startImageUpload,
1353
1374
  startNodeSanitize,
1375
+ stopExternalVm,
1354
1376
  storageEventsPath,
1355
1377
  switchReservationAccess,
1356
1378
  syncGitHubRepository,
@@ -272,6 +272,7 @@ var rates = {
272
272
  var createListing = z2.strictObject({
273
273
  public_model_id: text,
274
274
  api_type: apiType,
275
+ attachment_media_types: z2.array(text).optional().describe("Up to 64 distinct inline attachment media types, such as image/png. An empty array advertises none."),
275
276
  upstream_url: text,
276
277
  upstream_model: text,
277
278
  upstream_credential: z2.string().nullable().optional(),
@@ -518,7 +519,7 @@ var inferenceCapabilities = [
518
519
  operation({
519
520
  command: [...staff ? [] : ["provider"], "listings", "update"],
520
521
  staff,
521
- description: "Update an inference listing's endpoint, token prices, credential, or active flag. Send only changed fields; null clears a nullable value.",
522
+ description: "Update an inference listing. Send only changed fields. Set a nullable field to null to clear it.",
522
523
  input: listingId.extend({
523
524
  body: staff ? updateListing.extend({
524
525
  public_model_id: text.optional()