@ornncompute/cli 1.0.116 → 1.0.118

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.
@@ -0,0 +1,363 @@
1
+ // ../../packages/api-client/dist/gateway/support.js
2
+ function listSupportThreads(request, status) {
3
+ return request(`/v1/support/threads?status=${encodeURIComponent(status)}`, {
4
+ method: "GET"
5
+ });
6
+ }
7
+ function getSupportThread(request, id) {
8
+ return request(`/v1/support/threads/${encodeURIComponent(id)}`, {
9
+ method: "GET"
10
+ });
11
+ }
12
+ function createSupportThread(request, body) {
13
+ return request("/v1/support/threads", { method: "POST", body });
14
+ }
15
+ function replySupportThread(request, id, body) {
16
+ return request(`/v1/support/threads/${encodeURIComponent(id)}/reply`, {
17
+ method: "POST",
18
+ body
19
+ });
20
+ }
21
+ function searchSupportIssues(request, body, signal) {
22
+ return request("/v1/staff/support/issues/search", {
23
+ method: "POST",
24
+ body,
25
+ ...signal ? { signal } : {}
26
+ });
27
+ }
28
+ function getPylonAccount(request, id) {
29
+ return request(`/v1/staff/support/accounts/${encodeURIComponent(id)}`, {
30
+ method: "GET"
31
+ });
32
+ }
33
+ function linkPylonAccount(request, body) {
34
+ return request("/v1/staff/support/accounts/link", {
35
+ method: "PUT",
36
+ body
37
+ });
38
+ }
39
+ function linkPylonIssue(request, id, body) {
40
+ return request(`/v1/staff/support/issues/${encodeURIComponent(id)}/links`, {
41
+ method: "PUT",
42
+ body
43
+ });
44
+ }
45
+ function createPylonIssue(request, body) {
46
+ return request("/v1/staff/support/issues", { method: "POST", body });
47
+ }
48
+
49
+ // ../../packages/api-client/dist/gateway/github.js
50
+ var base = "/v1/staff/github";
51
+ function query(input) {
52
+ const pairs = Object.entries(input).filter(([, value]) => value !== void 0);
53
+ return pairs.length ? `?${pairs.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`).join("&")}` : "";
54
+ }
55
+ function listGithubWorkflows(request, input, signal) {
56
+ return request(`${base}/actions/workflows${query(input)}`, {
57
+ method: "GET",
58
+ ...signal ? { signal } : {}
59
+ });
60
+ }
61
+ function listGithubEnvironments(request, input, signal) {
62
+ return request(`${base}/environments${query(input)}`, {
63
+ method: "GET",
64
+ ...signal ? { signal } : {}
65
+ });
66
+ }
67
+ function listGithubWorkflowRuns(request, workflowFile, input, signal) {
68
+ return request(`${base}/actions/workflows/${encodeURIComponent(workflowFile)}/runs${query(input)}`, { method: "GET", ...signal ? { signal } : {} });
69
+ }
70
+ function listGithubPendingDeployments(request, runId, signal) {
71
+ return request(`${base}/actions/runs/${encodeURIComponent(runId)}/pending_deployments`, {
72
+ method: "GET",
73
+ ...signal ? { signal } : {}
74
+ });
75
+ }
76
+ function listGithubRunJobs(request, runId, attempt, input, signal) {
77
+ return request(`${base}/actions/runs/${encodeURIComponent(runId)}/attempts/${attempt}/jobs${query(input)}`, { method: "GET", ...signal ? { signal } : {} });
78
+ }
79
+ function listGithubCommits(request, input, signal) {
80
+ return request(`${base}/commits${query(input)}`, {
81
+ method: "GET",
82
+ ...signal ? { signal } : {}
83
+ });
84
+ }
85
+ function getGithubCommit(request, sha, signal) {
86
+ return request(`${base}/commits/${encodeURIComponent(sha)}`, {
87
+ method: "GET",
88
+ ...signal ? { signal } : {}
89
+ });
90
+ }
91
+ function listGithubCommitPulls(request, sha, input, signal) {
92
+ return request(`${base}/commits/${encodeURIComponent(sha)}/pulls${query(input)}`, {
93
+ method: "GET",
94
+ ...signal ? { signal } : {}
95
+ });
96
+ }
97
+ function getGithubPull(request, number, signal) {
98
+ return request(`${base}/pulls/${encodeURIComponent(number)}`, {
99
+ method: "GET",
100
+ ...signal ? { signal } : {}
101
+ });
102
+ }
103
+ function getGithubJobLog(fetcher, jobId, signal) {
104
+ return fetcher(`${base}/actions/jobs/${jobId}/logs`, {
105
+ method: "GET",
106
+ ...signal ? { signal } : {}
107
+ });
108
+ }
109
+
110
+ // ../../packages/api-client/dist/gateway/supplier-intake.js
111
+ function exchangeSupplierIntakeAccess(fetcher, init = {}) {
112
+ return fetcher("/v1/supplier-intake/access", { ...init, method: "POST" });
113
+ }
114
+ function claimSupplierIntakeEditor(fetcher, init = {}) {
115
+ return fetcher("/v1/supplier-intake/editor-session", { ...init, method: "POST" });
116
+ }
117
+ function releaseSupplierIntakeEditor(fetcher, init = {}) {
118
+ return fetcher("/v1/supplier-intake/editor-session", { ...init, method: "DELETE" });
119
+ }
120
+ function getSupplierIntakeDraft(fetcher, init = {}) {
121
+ return fetcher("/v1/supplier-intake/draft", { ...init, method: "GET" });
122
+ }
123
+ function updateSupplierIntakeDraft(fetcher, init = {}) {
124
+ return fetcher("/v1/supplier-intake/draft", { ...init, method: "PATCH" });
125
+ }
126
+ function uploadSupplierIntakeDocument(fetcher, init = {}) {
127
+ return fetcher("/v1/supplier-intake/documents", { ...init, method: "POST" });
128
+ }
129
+ function deleteSupplierIntakeDocument(fetcher, init = {}) {
130
+ return fetcher("/v1/supplier-intake/documents", { ...init, method: "DELETE" });
131
+ }
132
+ function submitSupplierIntake(fetcher, init = {}) {
133
+ return fetcher("/v1/supplier-intake/submit", { ...init, method: "POST" });
134
+ }
135
+
136
+ // ../../packages/api-client/dist/gateway/compute.js
137
+ var compute = "/v1/workflows/compute";
138
+ function query2(input) {
139
+ const params = new URLSearchParams();
140
+ for (const [key, value] of Object.entries(input))
141
+ if (value !== void 0 && value !== null)
142
+ params.set(key, String(value));
143
+ return params.size ? `?${params}` : "";
144
+ }
145
+ function reservationPath(id, resource) {
146
+ return `${compute}/nodes/reservations/${encodeURIComponent(id)}/${resource}`;
147
+ }
148
+ function clusterPath(kind, id, resource) {
149
+ return `${compute}/${kind}/reservations/${encodeURIComponent(id)}/${resource}`;
150
+ }
151
+ function listClusters(request) {
152
+ return request(`${compute}/clusters`, { method: "GET" });
153
+ }
154
+ function getReservationCluster(request, kind, id, signal) {
155
+ return request(clusterPath(kind, id, "cluster"), {
156
+ method: "GET",
157
+ ...signal ? { signal } : {}
158
+ });
159
+ }
160
+ function getReservationClusterCredentials(request, kind, id, signal) {
161
+ return request(clusterPath(kind, id, "credentials"), {
162
+ method: "GET",
163
+ ...signal ? { signal } : {}
164
+ });
165
+ }
166
+ function getReservationClusterEligibility(request, id, input) {
167
+ return request(`${compute}/tenants/me/reservations/${encodeURIComponent(id)}/cluster-eligible-machines${query2(input)}`, { method: "GET" });
168
+ }
169
+ function launchReservationCluster(request, kind, id, body, options) {
170
+ return request(clusterPath(kind, id, "cluster/launch"), { ...options, method: "POST", body });
171
+ }
172
+ function teardownReservationCluster(request, kind, id, options) {
173
+ return request(clusterPath(kind, id, "cluster/teardown"), { ...options, method: "POST" });
174
+ }
175
+ function addReservationClusterNode(request, id, body, options) {
176
+ return request(`${compute}/clusters/reservations/${encodeURIComponent(id)}/cluster/nodes`, {
177
+ ...options,
178
+ method: "POST",
179
+ body
180
+ });
181
+ }
182
+ function removeReservationClusterNode(request, id, nodeId, options) {
183
+ return request(`${compute}/clusters/reservations/${encodeURIComponent(id)}/cluster/nodes/${encodeURIComponent(nodeId)}`, { ...options, method: "DELETE" });
184
+ }
185
+ function getReservationLiveMetrics(request, id, input, signal) {
186
+ return request(`${reservationPath(id, "live-metrics")}${query2(input)}`, {
187
+ method: "GET",
188
+ ...signal ? { signal } : {}
189
+ });
190
+ }
191
+ function getReservationTelemetryHistory(request, id, input, signal) {
192
+ return request(`${reservationPath(id, "telemetry-history")}${query2(input)}`, {
193
+ method: "GET",
194
+ ...signal ? { signal } : {}
195
+ });
196
+ }
197
+ function getReservationLogs(request, id, input, signal) {
198
+ return request(`${reservationPath(id, "logs")}${query2(input)}`, {
199
+ method: "GET",
200
+ ...signal ? { signal } : {}
201
+ });
202
+ }
203
+ function deployReservationStorage(request, id, body, options) {
204
+ return request(reservationPath(id, "storage-deployment"), { ...options, method: "POST", body });
205
+ }
206
+ function getReservationStorageAttachment(request, id, signal) {
207
+ return request(reservationPath(id, "storage-attachment"), {
208
+ method: "GET",
209
+ ...signal ? { signal } : {}
210
+ });
211
+ }
212
+ function detachReservationStorage(request, id, input = {}, options) {
213
+ return request(`${reservationPath(id, "storage-attachment")}${query2(input)}`, {
214
+ ...options,
215
+ method: "DELETE"
216
+ });
217
+ }
218
+ function listAccountSshKeys(request, input) {
219
+ return request(`${compute}/nodes/organizations/me/ssh-keys${query2(input)}`, { method: "GET" });
220
+ }
221
+ function createAccountSshKey(request, body, options) {
222
+ return request(`${compute}/nodes/organizations/me/ssh-keys`, {
223
+ ...options,
224
+ method: "POST",
225
+ body
226
+ });
227
+ }
228
+ function deleteAccountSshKey(request, id, options) {
229
+ return request(`${compute}/nodes/organizations/me/ssh-keys/${encodeURIComponent(id)}`, {
230
+ ...options,
231
+ method: "DELETE"
232
+ });
233
+ }
234
+ function listClusterUserKeys(request, input) {
235
+ return request(`${compute}/nodes/organizations/me/cluster-users${query2(input)}`, {
236
+ method: "GET"
237
+ });
238
+ }
239
+ function createClusterUserKey(request, body) {
240
+ return request(`${compute}/nodes/organizations/me/cluster-users`, { method: "POST", body });
241
+ }
242
+ function deleteClusterUserKey(request, id) {
243
+ return request(`${compute}/nodes/organizations/me/cluster-users/${encodeURIComponent(id)}`, {
244
+ method: "DELETE"
245
+ });
246
+ }
247
+
248
+ // ../../packages/api-client/dist/gateway/staff.js
249
+ function addStaffReservationKey(request, id, body) {
250
+ return request(`/v1/staff/ssh/reservations/${encodeURIComponent(id)}/keys`, {
251
+ method: "POST",
252
+ body
253
+ });
254
+ }
255
+ function removeStaffReservationKey(request, id, keyId) {
256
+ return request(`/v1/staff/ssh/reservations/${encodeURIComponent(id)}/keys/${encodeURIComponent(keyId)}`, { method: "DELETE" });
257
+ }
258
+ function revokeStaffOrganizationKey(request, id, keyId) {
259
+ return request(`/v1/staff/ssh/organizations/${encodeURIComponent(id)}/keys/${encodeURIComponent(keyId)}/revoke`, { method: "POST", body: {} });
260
+ }
261
+ function createStaffTestMember(request, id) {
262
+ return request(`/v1/staff/ssh/organizations/${encodeURIComponent(id)}/members`, {
263
+ method: "POST",
264
+ body: {}
265
+ });
266
+ }
267
+ function pushStaffNodeKeys(request, id, body) {
268
+ return request(`/v1/staff/ssh/nodes/${encodeURIComponent(id)}/push-keys`, {
269
+ method: "POST",
270
+ body
271
+ });
272
+ }
273
+ function getStaffNodeReservationAccess(request, id, input = {}, signal) {
274
+ const query3 = input.reservation_id === void 0 ? "" : `?reservation_id=${encodeURIComponent(input.reservation_id)}`;
275
+ return request(`/v1/staff/internal/nodes/${encodeURIComponent(id)}/reservation-access${query3}`, {
276
+ method: "GET",
277
+ ...signal ? { signal } : {}
278
+ });
279
+ }
280
+ function transferStaffReservation(request, id, body) {
281
+ return request(`/v1/staff/internal/reservations/${encodeURIComponent(id)}/transfer`, {
282
+ method: "POST",
283
+ body
284
+ });
285
+ }
286
+ function deployStaffNode(request, id, body) {
287
+ return request(`/v1/staff/internal/nodes/${encodeURIComponent(id)}/deploy`, {
288
+ method: "POST",
289
+ body
290
+ });
291
+ }
292
+ function deployStaffVirtualMachine(request, id, body) {
293
+ return request(`/v1/staff/internal/virtual-machines/${encodeURIComponent(id)}/deploy`, {
294
+ method: "POST",
295
+ body
296
+ });
297
+ }
298
+
299
+ // ../../packages/api-client/dist/gateway/index.js
300
+ var consoleMcpPath = "/v1/mcp/console";
301
+ function getCliStatus(request) {
302
+ return request("/v1/cli/status", { method: "GET" });
303
+ }
304
+ export {
305
+ addReservationClusterNode,
306
+ addStaffReservationKey,
307
+ claimSupplierIntakeEditor,
308
+ consoleMcpPath,
309
+ createAccountSshKey,
310
+ createClusterUserKey,
311
+ createPylonIssue,
312
+ createStaffTestMember,
313
+ createSupportThread,
314
+ deleteAccountSshKey,
315
+ deleteClusterUserKey,
316
+ deleteSupplierIntakeDocument,
317
+ deployReservationStorage,
318
+ deployStaffNode,
319
+ deployStaffVirtualMachine,
320
+ detachReservationStorage,
321
+ exchangeSupplierIntakeAccess,
322
+ getCliStatus,
323
+ getGithubCommit,
324
+ getGithubJobLog,
325
+ getGithubPull,
326
+ getPylonAccount,
327
+ getReservationCluster,
328
+ getReservationClusterCredentials,
329
+ getReservationClusterEligibility,
330
+ getReservationLiveMetrics,
331
+ getReservationLogs,
332
+ getReservationStorageAttachment,
333
+ getReservationTelemetryHistory,
334
+ getStaffNodeReservationAccess,
335
+ getSupplierIntakeDraft,
336
+ getSupportThread,
337
+ launchReservationCluster,
338
+ linkPylonAccount,
339
+ linkPylonIssue,
340
+ listAccountSshKeys,
341
+ listClusterUserKeys,
342
+ listClusters,
343
+ listGithubCommitPulls,
344
+ listGithubCommits,
345
+ listGithubEnvironments,
346
+ listGithubPendingDeployments,
347
+ listGithubRunJobs,
348
+ listGithubWorkflowRuns,
349
+ listGithubWorkflows,
350
+ listSupportThreads,
351
+ pushStaffNodeKeys,
352
+ releaseSupplierIntakeEditor,
353
+ removeReservationClusterNode,
354
+ removeStaffReservationKey,
355
+ replySupportThread,
356
+ revokeStaffOrganizationKey,
357
+ searchSupportIssues,
358
+ submitSupplierIntake,
359
+ teardownReservationCluster,
360
+ transferStaffReservation,
361
+ updateSupplierIntakeDraft,
362
+ uploadSupplierIntakeDocument
363
+ };