@ornncompute/cli 1.0.166 → 1.0.168
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/README.md +2 -7
- package/package.json +1 -1
- package/vendor/api-client/commerce.js +150 -8
package/README.md
CHANGED
|
@@ -470,13 +470,8 @@ request conflicts, and an expired incomplete request requires a new key.
|
|
|
470
470
|
The upload replay contract requires the matching gateway/orchestrator release;
|
|
471
471
|
see [the service contract](../../services/orchestrator/README.md#file-upload-replay-and-usage).
|
|
472
472
|
|
|
473
|
-
|
|
474
|
-
the
|
|
475
|
-
local key, obtains a 15-minute certificate through the gateway and launches
|
|
476
|
-
OpenSSH with normal host-key verification. Nodes configured for the staff SSH
|
|
477
|
-
relay connect through Orchestrator automatically. For a supplier jump host,
|
|
478
|
-
OpenSSH uses your existing gateway credentials for the first hop and the
|
|
479
|
-
certificate for the node hop. Temporary files are removed when the command exits.
|
|
473
|
+
For `ornn admin ssh <node-id>`, including private nodes and CA trust setup, see
|
|
474
|
+
the [staff SSH procedure](../../docs/cli.md#staff-ssh).
|
|
480
475
|
|
|
481
476
|
Gateway-bound connections resolve their gateway before producing SSH commands.
|
|
482
477
|
Forwarded endpoints remain a single SSH destination. Supplier-provided jump hosts
|
package/package.json
CHANGED
|
@@ -232,6 +232,9 @@ function getReservationUsage(request, input, signal) {
|
|
|
232
232
|
...signal ? { signal } : {}
|
|
233
233
|
});
|
|
234
234
|
}
|
|
235
|
+
function createReservation(request, input) {
|
|
236
|
+
return request(BASE2, { method: "POST", body: input });
|
|
237
|
+
}
|
|
235
238
|
|
|
236
239
|
// ../../packages/api-client/dist/commerce/query.js
|
|
237
240
|
function queryString(input) {
|
|
@@ -376,8 +379,14 @@ var contractPath = (id2) => `${contracts}/${encodeURIComponent(id2)}`;
|
|
|
376
379
|
var documents = (id2) => `${contractPath(id2)}/documents`;
|
|
377
380
|
var lines = (id2) => `${contractPath(id2)}/lines`;
|
|
378
381
|
var delayPenalties = (id2) => `${contractPath(id2)}/delay-penalties`;
|
|
379
|
-
function listComputeContracts(request, input = {}, signal) {
|
|
380
|
-
|
|
382
|
+
async function listComputeContracts(request, input = {}, signal) {
|
|
383
|
+
const page = await request(contracts + queryString(input), {
|
|
384
|
+
method: "GET",
|
|
385
|
+
signal
|
|
386
|
+
});
|
|
387
|
+
if (input.listingId && page.listingId !== input.listingId || input.lineId && page.lineId !== input.lineId)
|
|
388
|
+
throw new Error("Compute contracts did not confirm the requested scope.");
|
|
389
|
+
return page;
|
|
381
390
|
}
|
|
382
391
|
async function listAllComputeContracts(request, filter = {}, signal) {
|
|
383
392
|
const contracts2 = [];
|
|
@@ -424,8 +433,14 @@ function deleteComputeContractDocument(request, id2, documentId, body) {
|
|
|
424
433
|
body
|
|
425
434
|
});
|
|
426
435
|
}
|
|
427
|
-
function listComputeContractLines(request, id2, signal) {
|
|
428
|
-
|
|
436
|
+
async function listComputeContractLines(request, id2, signal, input = {}) {
|
|
437
|
+
const page = await request(lines(id2) + queryString(input), {
|
|
438
|
+
method: "GET",
|
|
439
|
+
signal
|
|
440
|
+
});
|
|
441
|
+
if (input.listingId && page.listingId !== input.listingId)
|
|
442
|
+
throw new Error("Compute contract lines did not confirm the requested scope.");
|
|
443
|
+
return page;
|
|
429
444
|
}
|
|
430
445
|
function createComputeContractLine(request, id2, body) {
|
|
431
446
|
return request(lines(id2), { method: "POST", body });
|
|
@@ -545,6 +560,12 @@ function createCreditAdjustment(request, organizationId, body) {
|
|
|
545
560
|
body
|
|
546
561
|
});
|
|
547
562
|
}
|
|
563
|
+
function getAdminInvoice(request, id2, signal) {
|
|
564
|
+
return request(`/internal/v1/invoices/${encodeURIComponent(id2)}`, {
|
|
565
|
+
method: "GET",
|
|
566
|
+
...signal ? { signal } : {}
|
|
567
|
+
});
|
|
568
|
+
}
|
|
548
569
|
function listAdminInvoices(request, input = {}, signal) {
|
|
549
570
|
return request("/internal/v1/invoices" + queryString(input), {
|
|
550
571
|
method: "GET",
|
|
@@ -636,8 +657,11 @@ function updateGTMComment(request, recordId, body) {
|
|
|
636
657
|
body
|
|
637
658
|
});
|
|
638
659
|
}
|
|
639
|
-
function deleteGTMComment(request, recordId) {
|
|
640
|
-
return request(`${base}/comments/${id(recordId)}`, {
|
|
660
|
+
function deleteGTMComment(request, recordId, input) {
|
|
661
|
+
return request(`${base}/comments/${id(recordId)}`, {
|
|
662
|
+
method: "DELETE",
|
|
663
|
+
...input ? { body: input } : {}
|
|
664
|
+
});
|
|
641
665
|
}
|
|
642
666
|
function getGTMPersonalWorkspace(request) {
|
|
643
667
|
return request(base + "/me", { method: "GET" });
|
|
@@ -651,6 +675,33 @@ function getGTMTicket(request, recordId) {
|
|
|
651
675
|
function listTicketActivity(request, recordId) {
|
|
652
676
|
return request(`${base}/tasks/${id(recordId)}/activity`, { method: "GET" });
|
|
653
677
|
}
|
|
678
|
+
function listGTMListingComments(request, input, signal) {
|
|
679
|
+
return request(base + "/comments" + queryString(input), {
|
|
680
|
+
method: "GET",
|
|
681
|
+
signal
|
|
682
|
+
});
|
|
683
|
+
}
|
|
684
|
+
async function listAllGTMListingComments(request, input, signal) {
|
|
685
|
+
const rows = [];
|
|
686
|
+
const seen = /* @__PURE__ */ new Set();
|
|
687
|
+
let cursor;
|
|
688
|
+
for (; ; ) {
|
|
689
|
+
const page = await listGTMListingComments(request, { ...input, cursor }, signal);
|
|
690
|
+
rows.push(...page.comments);
|
|
691
|
+
if (!page.next_cursor)
|
|
692
|
+
return rows;
|
|
693
|
+
if (seen.has(page.next_cursor))
|
|
694
|
+
throw new Error("The update feed returned an incomplete page. Retry the feed.");
|
|
695
|
+
seen.add(page.next_cursor);
|
|
696
|
+
cursor = page.next_cursor;
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
function getGTMDealDelivery(request, recordId, signal) {
|
|
700
|
+
return request(`${base}/deals/${id(recordId)}/delivery`, {
|
|
701
|
+
method: "GET",
|
|
702
|
+
signal
|
|
703
|
+
});
|
|
704
|
+
}
|
|
654
705
|
|
|
655
706
|
// ../../packages/api-client/dist/commerce/contracts.js
|
|
656
707
|
var base2 = "/internal/v1/gtm/contracts";
|
|
@@ -832,8 +883,29 @@ function revokeControlplaneLicense(request, id2) {
|
|
|
832
883
|
// ../../packages/api-client/dist/commerce/compute-deal-allocations.js
|
|
833
884
|
var root = "/internal/v2/gtm/compute-deals";
|
|
834
885
|
var dealPath2 = (id2) => `${root}/${encodeURIComponent(id2)}`;
|
|
835
|
-
function listComputeDealsV2(request, input = {}, signal) {
|
|
836
|
-
|
|
886
|
+
async function listComputeDealsV2(request, input = {}, signal) {
|
|
887
|
+
const page = await request(root + queryString(input), {
|
|
888
|
+
method: "GET",
|
|
889
|
+
signal
|
|
890
|
+
});
|
|
891
|
+
if (input.listingId && page.listingId !== input.listingId || input.supplyLineId && page.supplyLineId !== input.supplyLineId)
|
|
892
|
+
throw new Error("Compute deals did not confirm the requested scope.");
|
|
893
|
+
return page;
|
|
894
|
+
}
|
|
895
|
+
async function listAllComputeDealsV2(request, input = {}, signal) {
|
|
896
|
+
const deals2 = [];
|
|
897
|
+
const seen = /* @__PURE__ */ new Set();
|
|
898
|
+
let after;
|
|
899
|
+
for (; ; ) {
|
|
900
|
+
const page = await listComputeDealsV2(request, { ...input, after }, signal);
|
|
901
|
+
deals2.push(...page.deals);
|
|
902
|
+
if (!page.nextCursor)
|
|
903
|
+
return { ...page, deals: deals2 };
|
|
904
|
+
if (seen.has(page.nextCursor))
|
|
905
|
+
throw new Error("Compute deals returned an incomplete list.");
|
|
906
|
+
seen.add(page.nextCursor);
|
|
907
|
+
after = page.nextCursor;
|
|
908
|
+
}
|
|
837
909
|
}
|
|
838
910
|
function getComputeDealV2(request, id2, signal) {
|
|
839
911
|
return request(dealPath2(id2), { method: "GET", signal });
|
|
@@ -904,6 +976,62 @@ function listComputeDealVersions(request, id2, input = {}, signal) {
|
|
|
904
976
|
signal
|
|
905
977
|
});
|
|
906
978
|
}
|
|
979
|
+
|
|
980
|
+
// ../../packages/api-client/dist/commerce/compute-contract-payments.js
|
|
981
|
+
var base6 = (id2) => `/internal/v1/gtm/compute-contracts/${encodeURIComponent(id2)}/payment-evidence`;
|
|
982
|
+
function listComputeContractPaymentEvidence(request, id2, signal) {
|
|
983
|
+
return request(base6(id2), {
|
|
984
|
+
method: "GET",
|
|
985
|
+
signal
|
|
986
|
+
});
|
|
987
|
+
}
|
|
988
|
+
function createComputeContractPaymentEvidence(request, id2, body) {
|
|
989
|
+
return request(base6(id2), {
|
|
990
|
+
method: "POST",
|
|
991
|
+
body
|
|
992
|
+
});
|
|
993
|
+
}
|
|
994
|
+
function deleteComputeContractPaymentEvidence(request, id2, evidenceId, version) {
|
|
995
|
+
return request(`${base6(id2)}/${encodeURIComponent(evidenceId)}`, {
|
|
996
|
+
method: "DELETE",
|
|
997
|
+
body: { confirmed: true, version }
|
|
998
|
+
});
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
// ../../packages/api-client/dist/commerce/compute-deal-acceptance.js
|
|
1002
|
+
var base7 = (dealId, allocationId) => `/internal/v2/gtm/compute-deals/${encodeURIComponent(dealId)}/allocations/${encodeURIComponent(allocationId)}/acceptance-decisions`;
|
|
1003
|
+
function listComputeDealAcceptanceDecisions(request, dealId, allocationId, signal) {
|
|
1004
|
+
return request(base7(dealId, allocationId), {
|
|
1005
|
+
method: "GET",
|
|
1006
|
+
signal
|
|
1007
|
+
});
|
|
1008
|
+
}
|
|
1009
|
+
function createComputeDealAcceptanceDecision(request, dealId, allocationId, body) {
|
|
1010
|
+
return request(base7(dealId, allocationId), {
|
|
1011
|
+
method: "POST",
|
|
1012
|
+
body
|
|
1013
|
+
});
|
|
1014
|
+
}
|
|
1015
|
+
function deleteComputeDealAcceptanceDecision(request, dealId, allocationId, decisionId, body) {
|
|
1016
|
+
return request(`${base7(dealId, allocationId)}/${encodeURIComponent(decisionId)}`, {
|
|
1017
|
+
method: "DELETE",
|
|
1018
|
+
body
|
|
1019
|
+
});
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
// ../../packages/api-client/dist/commerce/gtm-diligence.js
|
|
1023
|
+
function getGTMDealDiligence(request, dealId, signal) {
|
|
1024
|
+
return request(`/internal/v1/gtm/deals/${encodeURIComponent(dealId)}/diligence`, {
|
|
1025
|
+
method: "GET",
|
|
1026
|
+
signal
|
|
1027
|
+
});
|
|
1028
|
+
}
|
|
1029
|
+
function updateGTMDealDiligence(request, dealId, input) {
|
|
1030
|
+
return request(`/internal/v1/gtm/deals/${encodeURIComponent(dealId)}/diligence`, {
|
|
1031
|
+
method: "PUT",
|
|
1032
|
+
body: input
|
|
1033
|
+
});
|
|
1034
|
+
}
|
|
907
1035
|
export {
|
|
908
1036
|
activateInferenceWallet,
|
|
909
1037
|
activateReservation,
|
|
@@ -918,7 +1046,9 @@ export {
|
|
|
918
1046
|
createComputeContractDelayPenalty,
|
|
919
1047
|
createComputeContractDocument,
|
|
920
1048
|
createComputeContractLine,
|
|
1049
|
+
createComputeContractPaymentEvidence,
|
|
921
1050
|
createComputeDeal,
|
|
1051
|
+
createComputeDealAcceptanceDecision,
|
|
922
1052
|
createComputeDealAddOn,
|
|
923
1053
|
createComputeDealAllocation,
|
|
924
1054
|
createComputeDealPlanningAddOn,
|
|
@@ -934,6 +1064,7 @@ export {
|
|
|
934
1064
|
createGTMDealComment,
|
|
935
1065
|
createGTMTask,
|
|
936
1066
|
createGTMTaskComment,
|
|
1067
|
+
createReservation,
|
|
937
1068
|
createSupplierAccountSession,
|
|
938
1069
|
createSupplierIntakeLink,
|
|
939
1070
|
createSupplierPaymentAccount,
|
|
@@ -942,7 +1073,9 @@ export {
|
|
|
942
1073
|
deleteComputeContractDelayPenalty,
|
|
943
1074
|
deleteComputeContractDocument,
|
|
944
1075
|
deleteComputeContractLine,
|
|
1076
|
+
deleteComputeContractPaymentEvidence,
|
|
945
1077
|
deleteComputeDeal,
|
|
1078
|
+
deleteComputeDealAcceptanceDecision,
|
|
946
1079
|
deleteComputeDealAddOn,
|
|
947
1080
|
deleteComputeDealAllocation,
|
|
948
1081
|
deleteComputeDealPlanningAddOn,
|
|
@@ -958,6 +1091,7 @@ export {
|
|
|
958
1091
|
editCapacityTerms,
|
|
959
1092
|
ensureFacility,
|
|
960
1093
|
facilityEnsurePath,
|
|
1094
|
+
getAdminInvoice,
|
|
961
1095
|
getBillingContact,
|
|
962
1096
|
getBillingPaymentMethod,
|
|
963
1097
|
getBillingSummary,
|
|
@@ -971,6 +1105,8 @@ export {
|
|
|
971
1105
|
getContractExtraction,
|
|
972
1106
|
getContractFile,
|
|
973
1107
|
getControlplaneLicense,
|
|
1108
|
+
getGTMDealDelivery,
|
|
1109
|
+
getGTMDealDiligence,
|
|
974
1110
|
getGTMPersonalWorkspace,
|
|
975
1111
|
getGTMTicket,
|
|
976
1112
|
getInferenceWallet,
|
|
@@ -991,9 +1127,11 @@ export {
|
|
|
991
1127
|
listAllCapacityListings,
|
|
992
1128
|
listAllComputeContracts,
|
|
993
1129
|
listAllComputeDeals,
|
|
1130
|
+
listAllComputeDealsV2,
|
|
994
1131
|
listAllContractExtractions,
|
|
995
1132
|
listAllContractFiles,
|
|
996
1133
|
listAllFacilities,
|
|
1134
|
+
listAllGTMListingComments,
|
|
997
1135
|
listAllInvoices,
|
|
998
1136
|
listAllReservations,
|
|
999
1137
|
listAllStaffFacilities,
|
|
@@ -1006,7 +1144,9 @@ export {
|
|
|
1006
1144
|
listComputeContractLineCapacity,
|
|
1007
1145
|
listComputeContractLineMatches,
|
|
1008
1146
|
listComputeContractLines,
|
|
1147
|
+
listComputeContractPaymentEvidence,
|
|
1009
1148
|
listComputeContracts,
|
|
1149
|
+
listComputeDealAcceptanceDecisions,
|
|
1010
1150
|
listComputeDealAddOns,
|
|
1011
1151
|
listComputeDealAllocations,
|
|
1012
1152
|
listComputeDealPlanningAddOns,
|
|
@@ -1023,6 +1163,7 @@ export {
|
|
|
1023
1163
|
listGTMCompanyComments,
|
|
1024
1164
|
listGTMDealComments,
|
|
1025
1165
|
listGTMDeals,
|
|
1166
|
+
listGTMListingComments,
|
|
1026
1167
|
listGTMPeople,
|
|
1027
1168
|
listGTMTaskComments,
|
|
1028
1169
|
listGTMTasks,
|
|
@@ -1061,6 +1202,7 @@ export {
|
|
|
1061
1202
|
updateGTMComment,
|
|
1062
1203
|
updateGTMCompany,
|
|
1063
1204
|
updateGTMDeal,
|
|
1205
|
+
updateGTMDealDiligence,
|
|
1064
1206
|
updateGTMTask,
|
|
1065
1207
|
uploadContractFile,
|
|
1066
1208
|
uploadSupplierDocument
|