@ornncompute/cli 1.0.137 → 1.0.139

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.
@@ -1,3 +1,21 @@
1
+ // ../../packages/api-client/dist/orchestrator/agent-rollouts.js
2
+ var path = "/v1/orchestrator/agent-rollouts";
3
+ function startAgentRollout(request, body) {
4
+ return request(path, { method: "POST", body });
5
+ }
6
+ function listAgentRollouts(request, signal) {
7
+ return request(path, { method: "GET", ...signal ? { signal } : {} });
8
+ }
9
+ function getAgentRollout(request, id, signal) {
10
+ return request(`${path}/${encodeURIComponent(id)}`, {
11
+ method: "GET",
12
+ ...signal ? { signal } : {}
13
+ });
14
+ }
15
+ async function cancelAgentRollout(request, id) {
16
+ await request(`${path}/${encodeURIComponent(id)}/cancel`, { method: "POST" });
17
+ }
18
+
1
19
  // ../../packages/api-client/dist/orchestrator/catalog.js
2
20
  var hardwareCatalogPath = "/v1/orchestrator/catalog/hardware";
3
21
  function getHardwareCatalog(request, signal) {
@@ -13,191 +31,235 @@ function getSoftwareCatalog(request, signal) {
13
31
  });
14
32
  }
15
33
 
16
- // ../../packages/api-client/dist/orchestrator/disks.js
17
- var disksSocketPath = "/v1/orchestrator/disks/ws";
18
- function listDisks(request, query = {}, signal) {
34
+ // ../../packages/api-client/dist/orchestrator/configurable-enrollment.js
35
+ var root = "/v1/orchestrator/enrollment/configurable";
36
+ function queryString(query) {
19
37
  const params = new URLSearchParams();
20
- for (const key of ["scope", "organization_id", "limit", "q", "exclude_failed"]) {
21
- if (query[key] !== void 0)
22
- params.set(key, String(query[key]));
23
- }
24
- return request(`/v1/orchestrator/disks${params.size ? `?${params}` : ""}`, {
25
- method: "GET",
26
- ...signal ? { signal } : {}
27
- });
38
+ for (const [key, value] of Object.entries(query))
39
+ if (value !== void 0)
40
+ params.set(key, String(value));
41
+ return params.size ? `?${params}` : "";
28
42
  }
29
- function createDisk(request, body) {
30
- return request("/v1/orchestrator/disks", { method: "POST", body });
43
+ function listEnrollmentProfiles(request, query = {}, signal) {
44
+ return request(`${root}/profiles${queryString(query)}`, { method: "GET", signal });
31
45
  }
32
- function updateDisk(request, id, body) {
33
- return request(`/v1/orchestrator/disks/${encodeURIComponent(id)}`, {
46
+ async function listAllEnrollmentProfiles(request, query = {}, signal) {
47
+ const profiles = [];
48
+ const seen = /* @__PURE__ */ new Set();
49
+ let after = query.after;
50
+ do {
51
+ if (after && seen.has(after))
52
+ throw new Error("Enrollment profile pagination repeated a cursor.");
53
+ if (after)
54
+ seen.add(after);
55
+ const page = await listEnrollmentProfiles(request, { ...query, after }, signal);
56
+ profiles.push(...page.profiles);
57
+ after = page.next_cursor ?? void 0;
58
+ } while (after);
59
+ return { profiles, next_cursor: null };
60
+ }
61
+ function createEnrollmentProfile(request, body) {
62
+ return request(`${root}/profiles`, { method: "POST", body });
63
+ }
64
+ function updateEnrollmentProfile(request, id, body) {
65
+ return request(`${root}/profiles/${encodeURIComponent(id)}`, {
34
66
  method: "PATCH",
35
67
  body
36
68
  });
37
69
  }
38
- function deleteDisk(request, id) {
39
- return request(`/v1/orchestrator/disks/${encodeURIComponent(id)}`, {
40
- method: "DELETE"
70
+ function listEnrollmentRuns(request, query = {}) {
71
+ return request(`${root}/runs${queryString(query)}`, { method: "GET" });
72
+ }
73
+ function getEnrollmentRun(request, id) {
74
+ return request(`${root}/runs/${encodeURIComponent(id)}`, {
75
+ method: "GET"
41
76
  });
42
77
  }
43
- function startDiskUpload(request, body) {
44
- return request("/v1/orchestrator/disks/uploads", {
45
- method: "POST",
46
- body
78
+ function createEnrollmentRun(request, body) {
79
+ return request(`${root}/runs`, { method: "POST", body });
80
+ }
81
+ function cancelEnrollmentRun(request, id) {
82
+ return request(`${root}/runs/${encodeURIComponent(id)}`, {
83
+ method: "PATCH",
84
+ body: { action: "cancel" }
47
85
  });
48
86
  }
49
- function postDiskObject(request, body) {
50
- return request("/v1/orchestrator/disks/objects", { method: "POST", body });
87
+ function getEnrollmentHosts(request, id) {
88
+ return request(`${root}/runs/${encodeURIComponent(id)}/hosts`, { method: "GET" });
51
89
  }
52
- function completeDiskUpload(request, id, body) {
53
- return request(`/v1/orchestrator/disks/uploads/${encodeURIComponent(id)}/complete`, {
90
+ function launchEnrollmentRun(request, id, body) {
91
+ return request(`${root}/runs/${encodeURIComponent(id)}/launch`, {
54
92
  method: "POST",
55
93
  body
56
94
  });
57
95
  }
58
- function importDisk(request, body) {
59
- return request("/v1/orchestrator/disks/imports", { method: "POST", body });
60
- }
61
-
62
- // ../../packages/api-client/dist/orchestrator/images.js
63
- function listCatalogImages(request, query = {}, signal) {
64
- const params = new URLSearchParams();
65
- if (query.include_pending !== void 0) {
66
- params.set("include_pending", String(query.include_pending));
67
- }
68
- return request(`/v1/orchestrator/catalog/images${params.size ? `?${params}` : ""}`, {
69
- method: "GET",
70
- ...signal ? { signal } : {}
96
+ function getEnrollmentHost(request, id) {
97
+ return request(`${root}/hosts/${encodeURIComponent(id)}`, {
98
+ method: "GET"
71
99
  });
72
100
  }
73
- function startImageUpload(request, body) {
74
- return request("/v1/orchestrator/images/uploads", {
75
- method: "POST",
101
+ function actOnEnrollmentHost(request, id, body) {
102
+ return request(`${root}/hosts/${encodeURIComponent(id)}`, {
103
+ method: "PATCH",
76
104
  body
77
105
  });
78
106
  }
79
- function postImageObject(request, body) {
80
- return request("/v1/orchestrator/images/objects", { method: "POST", body });
107
+ function issueEnrollmentCredential(request, id) {
108
+ return request(`${root}/hosts/${encodeURIComponent(id)}/credentials`, {
109
+ method: "POST"
110
+ });
81
111
  }
82
- function completeImageUpload(request, id, body) {
83
- return request(`/v1/orchestrator/images/uploads/${encodeURIComponent(id)}/complete`, {
84
- method: "POST",
85
- body
112
+ function getEnrollmentSteps(request, id) {
113
+ return request(`${root}/hosts/${encodeURIComponent(id)}/steps`, { method: "GET" });
114
+ }
115
+ function getEnrollmentStepCatalog(request, organizationId, signal) {
116
+ return request(`${root}/steps${queryString({ organization_id: organizationId })}`, {
117
+ method: "GET",
118
+ signal
86
119
  });
87
120
  }
88
- function deleteImage(request, id) {
89
- return request(`/v1/orchestrator/images/${encodeURIComponent(id)}`, {
90
- method: "DELETE"
121
+ function getEnrollmentProfileSource(request, id, signal) {
122
+ return request(`${root}/profiles/${encodeURIComponent(id)}/source`, {
123
+ method: "GET",
124
+ signal
125
+ });
126
+ }
127
+ function getEnrollmentRunSource(request, id, signal) {
128
+ return request(`${root}/runs/${encodeURIComponent(id)}/source`, {
129
+ method: "GET",
130
+ signal
91
131
  });
92
132
  }
133
+ function enrollmentHostEventsPath(id, query = {}) {
134
+ return `${root}/hosts/${encodeURIComponent(id)}/events${queryString(query)}`;
135
+ }
93
136
 
94
- // ../../packages/api-client/dist/orchestrator/locality.js
95
- var localityGeolocatePath = "/v1/orchestrator/locality/geolocate";
96
- function listLocalityRegions(request, signal) {
97
- return request("/v1/orchestrator/locality/regions", {
137
+ // ../../packages/api-client/dist/orchestrator/controllers.js
138
+ var controllersSocketPath = "/v1/orchestrator/controllers";
139
+ function controllerPath(id) {
140
+ return `${controllersSocketPath}/${encodeURIComponent(id)}`;
141
+ }
142
+ function listControllers(request, query = {}, signal) {
143
+ const params = new URLSearchParams();
144
+ if (query.kind !== void 0)
145
+ params.set("kind", query.kind);
146
+ if (query.tenant_id !== void 0)
147
+ params.set("tenant_id", query.tenant_id);
148
+ return request(`${controllersSocketPath}${params.size ? `?${params}` : ""}`, {
98
149
  method: "GET",
99
150
  ...signal ? { signal } : {}
100
151
  });
101
152
  }
102
- function geolocate(request, query, signal) {
103
- const target = query.ip !== void 0 ? `ip=${encodeURIComponent(query.ip)}` : `address=${encodeURIComponent(query.address)}`;
104
- return request(`${localityGeolocatePath}?${target}`, {
153
+ function createController(request, body, options) {
154
+ return request(controllersSocketPath, {
155
+ ...options,
156
+ method: "POST",
157
+ body
158
+ });
159
+ }
160
+ function getControllerAccess(request, id, signal) {
161
+ return request(`${controllerPath(id)}/access`, {
105
162
  method: "GET",
106
163
  ...signal ? { signal } : {}
107
164
  });
108
165
  }
109
-
110
- // ../../packages/api-client/dist/orchestrator/registry.js
111
- function getContainerRegistry(request) {
112
- return request("/v1/orchestrator/registry", { method: "GET" });
113
- }
114
- function listRegistryRepositories(request) {
115
- return request("/v1/orchestrator/registry/repositories", { method: "GET" });
166
+ function teardownController(request, id, options) {
167
+ return request(`${controllerPath(id)}/teardown`, {
168
+ ...options,
169
+ method: "POST"
170
+ });
116
171
  }
117
- function listRegistryTags(request, repository) {
118
- return request(`/v1/orchestrator/registry/tags?${new URLSearchParams({ repository })}`, {
119
- method: "GET"
172
+ function addControllerNode(request, id, nodeId, options) {
173
+ return request(`${controllerPath(id)}/nodes/${encodeURIComponent(nodeId)}`, {
174
+ ...options,
175
+ method: "POST"
120
176
  });
121
177
  }
122
- function getRegistryUsage(request) {
123
- return request("/v1/orchestrator/registry/usage", { method: "GET" });
178
+ function removeControllerNode(request, id, nodeId, options) {
179
+ return request(`${controllerPath(id)}/nodes/${encodeURIComponent(nodeId)}`, {
180
+ ...options,
181
+ method: "DELETE"
182
+ });
124
183
  }
125
- function listRegistryCaches(request, query = {}) {
184
+ function addControllerVirtualMachine(request, id, virtualMachineId, query = {}, options) {
126
185
  const params = new URLSearchParams();
127
- if (query.controller_id !== void 0)
128
- params.set("controller_id", query.controller_id);
129
- return request(`/v1/orchestrator/registry/caches${params.size ? `?${params}` : ""}`, {
130
- method: "GET"
131
- });
186
+ if (query.tenant_id !== void 0)
187
+ params.set("tenant_id", query.tenant_id);
188
+ return request(`${controllerPath(id)}/virtual-machines/${encodeURIComponent(virtualMachineId)}${params.size ? `?${params}` : ""}`, { ...options, method: "POST" });
132
189
  }
133
- function deleteRegistryTag(request, repository, tag) {
134
- return request(`/v1/orchestrator/registry/tags?${new URLSearchParams({ repository, tag })}`, {
190
+ function removeControllerVirtualMachine(request, id, virtualMachineId, options) {
191
+ return request(`${controllerPath(id)}/virtual-machines/${encodeURIComponent(virtualMachineId)}`, {
192
+ ...options,
135
193
  method: "DELETE"
136
194
  });
137
195
  }
138
196
 
139
- // ../../packages/api-client/dist/orchestrator/shell.js
140
- var sessionsPath = "/v1/orchestrator/shell/sessions";
141
- function createShellSession(fetcher) {
142
- return fetcher(sessionsPath, { method: "POST" });
197
+ // ../../packages/api-client/dist/orchestrator/controlplanes.js
198
+ var path2 = "/v1/orchestrator/controlplanes";
199
+ function listControlplanes(request, signal) {
200
+ return request(path2, {
201
+ method: "GET",
202
+ ...signal ? { signal } : {}
203
+ });
143
204
  }
144
- function getCurrentShellSession(fetcher) {
145
- return fetcher(`${sessionsPath}/current`, { method: "GET" });
205
+ function setControlplaneSize(request, controllerId, body) {
206
+ return request(`${path2}/${encodeURIComponent(controllerId)}/size`, {
207
+ method: "POST",
208
+ body
209
+ });
146
210
  }
147
- function closeShellSession(fetcher, id) {
148
- return fetcher(`${sessionsPath}/${encodeURIComponent(id)}`, { method: "DELETE" });
211
+ function controlplaneSplashPath(replicaIp) {
212
+ return `${path2}/${encodeURIComponent(replicaIp)}/`;
149
213
  }
150
- function shellSessionAttachPath(id) {
151
- return `${sessionsPath}/${encodeURIComponent(id)}/attach`;
214
+ function controlplaneDownloadPath(query) {
215
+ return `${path2}/download?${new URLSearchParams(query)}`;
152
216
  }
153
217
 
154
- // ../../packages/api-client/dist/orchestrator/drives.js
155
- function queryPath(path4, query) {
218
+ // ../../packages/api-client/dist/orchestrator/disks.js
219
+ var disksSocketPath = "/v1/orchestrator/disks/ws";
220
+ function listDisks(request, query = {}, signal) {
156
221
  const params = new URLSearchParams();
157
- for (const [key, value] of Object.entries(query)) {
158
- if (value !== void 0 && value !== null)
159
- params.set(key, String(value));
222
+ for (const key of ["scope", "organization_id", "limit", "q", "exclude_failed"]) {
223
+ if (query[key] !== void 0)
224
+ params.set(key, String(query[key]));
160
225
  }
161
- return `${path4}${params.size ? `?${params}` : ""}`;
162
- }
163
- function listDrives(request, query = {}, signal) {
164
- return request(queryPath("/v1/orchestrator/drives", query), {
226
+ return request(`/v1/orchestrator/disks${params.size ? `?${params}` : ""}`, {
165
227
  method: "GET",
166
228
  ...signal ? { signal } : {}
167
229
  });
168
230
  }
169
- function getDrive(request, id, query = {}, options = {}) {
170
- return request(queryPath(`/v1/orchestrator/drives/${encodeURIComponent(id)}`, query), {
171
- method: "GET",
172
- ...options
231
+ function createDisk(request, body) {
232
+ return request("/v1/orchestrator/disks", { method: "POST", body });
233
+ }
234
+ function updateDisk(request, id, body) {
235
+ return request(`/v1/orchestrator/disks/${encodeURIComponent(id)}`, {
236
+ method: "PATCH",
237
+ body
173
238
  });
174
239
  }
175
- function createDrive(request, body, options = {}) {
176
- return request("/v1/orchestrator/drives", {
177
- method: "POST",
178
- body,
179
- ...options
240
+ function deleteDisk(request, id) {
241
+ return request(`/v1/orchestrator/disks/${encodeURIComponent(id)}`, {
242
+ method: "DELETE"
180
243
  });
181
244
  }
182
- function updateDrive(request, id, body, options = {}) {
183
- return request(`/v1/orchestrator/drives/${encodeURIComponent(id)}`, {
184
- method: "PATCH",
185
- body,
186
- ...options
245
+ function startDiskUpload(request, body) {
246
+ return request("/v1/orchestrator/disks/uploads", {
247
+ method: "POST",
248
+ body
187
249
  });
188
250
  }
189
- function deleteDrive(request, id, query = {}, options = {}) {
190
- return request(queryPath(`/v1/orchestrator/drives/${encodeURIComponent(id)}`, query), {
191
- method: "DELETE",
192
- ...options
193
- });
251
+ function postDiskObject(request, body) {
252
+ return request("/v1/orchestrator/disks/objects", { method: "POST", body });
194
253
  }
195
- function listStorageTargets(request, signal) {
196
- return request("/v1/orchestrator/storage-targets", {
197
- method: "GET",
198
- ...signal ? { signal } : {}
254
+ function completeDiskUpload(request, id, body) {
255
+ return request(`/v1/orchestrator/disks/uploads/${encodeURIComponent(id)}/complete`, {
256
+ method: "POST",
257
+ body
199
258
  });
200
259
  }
260
+ function importDisk(request, body) {
261
+ return request("/v1/orchestrator/disks/imports", { method: "POST", body });
262
+ }
201
263
 
202
264
  // ../../packages/api-client/dist/orchestrator/drive-files.js
203
265
  function drivePath(id) {
@@ -258,37 +320,89 @@ function keepDriveUploadsAlive(request, id) {
258
320
  return request(`${drivePath(id)}/uploads`, { method: "PATCH" });
259
321
  }
260
322
 
261
- // ../../packages/api-client/dist/orchestrator/storage-types.js
262
- var storageEventsPath = "/v1/orchestrator/storage/ws";
263
-
264
- // ../../packages/api-client/dist/orchestrator/storage-usage.js
265
- function queryPath2(path4, query) {
323
+ // ../../packages/api-client/dist/orchestrator/drives.js
324
+ function queryPath(path4, query) {
266
325
  const params = new URLSearchParams();
267
326
  for (const [key, value] of Object.entries(query)) {
268
- if (value !== void 0)
327
+ if (value !== void 0 && value !== null)
269
328
  params.set(key, String(value));
270
329
  }
271
330
  return `${path4}${params.size ? `?${params}` : ""}`;
272
331
  }
273
- function listStorageInventory(request, query = {}, signal) {
274
- return request(queryPath2("/v1/staff/storage/volumes", query), {
332
+ function listDrives(request, query = {}, signal) {
333
+ return request(queryPath("/v1/orchestrator/drives", query), {
275
334
  method: "GET",
276
335
  ...signal ? { signal } : {}
277
336
  });
278
337
  }
279
- function getStorageUsage(request, driveId, query, signal) {
280
- return request(queryPath2(`/v1/staff/storage/volumes/${encodeURIComponent(driveId)}/usage`, query), {
338
+ function getDrive(request, id, query = {}, options = {}) {
339
+ return request(queryPath(`/v1/orchestrator/drives/${encodeURIComponent(id)}`, query), {
281
340
  method: "GET",
282
- ...signal ? { signal } : {}
341
+ ...options
283
342
  });
284
343
  }
285
- function getOrganizationStorageUsage(request, organizationId, query, signal) {
286
- return request(queryPath2(`/v1/staff/storage/organizations/${encodeURIComponent(organizationId)}/usage`, query), {
344
+ function createDrive(request, body, options = {}) {
345
+ return request("/v1/orchestrator/drives", {
346
+ method: "POST",
347
+ body,
348
+ ...options
349
+ });
350
+ }
351
+ function updateDrive(request, id, body, options = {}) {
352
+ return request(`/v1/orchestrator/drives/${encodeURIComponent(id)}`, {
353
+ method: "PATCH",
354
+ body,
355
+ ...options
356
+ });
357
+ }
358
+ function deleteDrive(request, id, query = {}, options = {}) {
359
+ return request(queryPath(`/v1/orchestrator/drives/${encodeURIComponent(id)}`, query), {
360
+ method: "DELETE",
361
+ ...options
362
+ });
363
+ }
364
+ function listStorageTargets(request, signal) {
365
+ return request("/v1/orchestrator/storage-targets", {
287
366
  method: "GET",
288
367
  ...signal ? { signal } : {}
289
368
  });
290
369
  }
291
370
 
371
+ // ../../packages/api-client/dist/orchestrator/enrollment.js
372
+ var enrollmentTokensPath = "/v1/orchestrator/enrollment-tokens";
373
+ function listEnrollmentTokens(request, query = {}) {
374
+ return request(enrollmentTokensPath + (query.id ? `?id=${encodeURIComponent(query.id)}` : ""), {
375
+ method: "GET"
376
+ });
377
+ }
378
+ function revokeEnrollmentToken(request, id, idempotencyKey) {
379
+ return request(`${enrollmentTokensPath}/${encodeURIComponent(id)}`, {
380
+ method: "DELETE",
381
+ ...idempotencyKey ? { headers: { "Idempotency-Key": idempotencyKey } } : {}
382
+ });
383
+ }
384
+ function getEnrollmentAdminSshKey(request, nodeId) {
385
+ return request(`/v1/orchestrator/enrollment/admin-ssh-key?node_id=${encodeURIComponent(nodeId)}`, { method: "GET" });
386
+ }
387
+ function rotateEnrollmentAdminSshKey(request, nodeId) {
388
+ return request(`/v1/orchestrator/enrollment/admin-ssh-key?node_id=${encodeURIComponent(nodeId)}`, { method: "POST" });
389
+ }
390
+ function fakeEnroll(fetcher, body) {
391
+ return fetcher("/v1/orchestrator/fake-enroll", {
392
+ method: "POST",
393
+ headers: { "Content-Type": "application/json" },
394
+ body: JSON.stringify(body)
395
+ });
396
+ }
397
+ function enrollmentInstallPath(query) {
398
+ const params = new URLSearchParams();
399
+ for (const [key, value] of Object.entries(query)) {
400
+ if (value !== void 0)
401
+ params.set(key, String(value));
402
+ }
403
+ return `/v1/orchestrator/enrollment/install?${params}`;
404
+ }
405
+
292
406
  // ../../packages/api-client/dist/orchestrator/github.js
293
407
  var connections = "/v1/orchestrator/github/connections";
294
408
  function listGitHubConnections(request) {
@@ -323,200 +437,73 @@ function pullGitHubRepository(request, driveId, body) {
323
437
  body
324
438
  });
325
439
  }
326
- function syncGitHubRepository(request, driveId, folder) {
327
- return request(`/v1/orchestrator/drives/${encodeURIComponent(driveId)}/github/${encodeURIComponent(folder)}/sync`, { method: "POST" });
328
- }
329
-
330
- // ../../packages/api-client/dist/orchestrator/nodes.js
331
- function nodeQuery(query) {
332
- const params = new URLSearchParams();
333
- for (const [key, value] of Object.entries(query)) {
334
- if (value !== void 0)
335
- params.set(key, String(value));
336
- }
337
- return params.size ? `?${params}` : "";
338
- }
339
- function listNodes(request, query = {}, signal) {
340
- return request(`/v1/orchestrator/nodes${nodeQuery(query)}`, {
341
- method: "GET",
342
- ...signal ? { signal } : {}
343
- });
344
- }
345
- function listStaffNodes(request, query = {}, signal) {
346
- return request(`/v1/staff/nodes${nodeQuery(query)}`, {
347
- method: "GET",
348
- ...signal ? { signal } : {}
349
- });
350
- }
351
- function nodeResourcePath(id) {
352
- return `/v1/orchestrator/nodes/${encodeURIComponent(id)}`;
353
- }
354
- function getNode(request, id, signal) {
355
- return request(nodeResourcePath(id), {
356
- method: "GET",
357
- ...signal ? { signal } : {}
358
- });
359
- }
360
- function updateNode(request, id, body) {
361
- return request(nodeResourcePath(id), { method: "PATCH", body });
362
- }
363
- function createGhostNodes(request, body) {
364
- return request("/v1/orchestrator/nodes/ghost", { method: "POST", body });
365
- }
366
- function terminateNode(request, id, body, headers) {
367
- return request(`${nodeResourcePath(id)}/terminate`, {
368
- method: "POST",
369
- body,
370
- ...headers ? { headers } : {}
371
- });
372
- }
373
- function transferNode(request, id, body) {
374
- return request(`${nodeResourcePath(id)}/transfer`, {
375
- method: "POST",
376
- body
377
- });
378
- }
379
- function assignNode(request, id, body, headers) {
380
- return request(`${nodeResourcePath(id)}/assign`, {
381
- method: "POST",
382
- body,
383
- ...headers ? { headers } : {}
384
- });
385
- }
386
- function updateNodeKeys(request, id, body, headers) {
387
- return request(`${nodeResourcePath(id)}/keys`, {
388
- method: "PATCH",
389
- body,
390
- ...headers ? { headers } : {}
391
- });
392
- }
393
- function issueNodeSshCertificate(request, id, body) {
394
- return request(`${nodeResourcePath(id)}/ssh-certificates`, { method: "POST", body });
395
- }
396
- function rebootNode(request, id, body, headers) {
397
- return request(`${nodeResourcePath(id)}/reboot`, {
398
- method: "POST",
399
- body,
400
- ...headers ? { headers } : {}
401
- });
402
- }
403
- function pushNodeKeys(request, id, body = {}) {
404
- return request(`${nodeResourcePath(id)}/push-keys`, { method: "POST", body });
405
- }
406
-
407
- // ../../packages/api-client/dist/orchestrator/virtual-machines.js
408
- function listNodeVirtualMachines(request, nodeId, signal) {
409
- return request(`/v1/orchestrator/nodes/${encodeURIComponent(nodeId)}/virtual-machines`, {
410
- method: "GET",
411
- ...signal ? { signal } : {}
412
- });
413
- }
414
- function listStaffNodeVirtualMachines(request, nodeId, signal) {
415
- return request(`/v1/staff/nodes/${encodeURIComponent(nodeId)}/virtual-machines`, {
416
- method: "GET",
417
- ...signal ? { signal } : {}
418
- });
419
- }
420
- function listReservationVirtualMachines(request, reservationId, signal) {
421
- return request(`/v1/orchestrator/reservations/${encodeURIComponent(reservationId)}/virtual-machines`, { method: "GET", ...signal ? { signal } : {} });
422
- }
423
- function getVirtualMachine(request, id, signal) {
424
- return request(`/v1/orchestrator/virtual-machines/${encodeURIComponent(id)}`, {
425
- method: "GET",
426
- ...signal ? { signal } : {}
427
- });
428
- }
429
- function getVirtualMachineLogs(request, id, signal) {
430
- return request(`/v1/orchestrator/virtual-machines/${encodeURIComponent(id)}/logs`, {
431
- method: "GET",
432
- ...signal ? { signal } : {}
433
- });
434
- }
435
- function updateVirtualMachineRun(request, id, body) {
436
- return request(`/v1/orchestrator/virtual-machines/${encodeURIComponent(id)}`, {
437
- method: "POST",
438
- body
439
- });
440
- }
441
- function getNodeVirtualMachineCapacity(request, nodeId) {
442
- return request(`/v1/orchestrator/nodes/${encodeURIComponent(nodeId)}/virtual-machine-capacity`, {
443
- method: "GET"
444
- });
445
- }
446
- function createVirtualMachine(request, nodeId, body) {
447
- return request(`/v1/orchestrator/nodes/${encodeURIComponent(nodeId)}/virtual-machines`, {
448
- method: "POST",
449
- body
450
- });
451
- }
452
- function deleteVirtualMachine(request, nodeId, id, query = {}, signal) {
453
- const params = new URLSearchParams();
454
- if (query.abandon_host_cleanup !== void 0)
455
- params.set("abandon_host_cleanup", String(query.abandon_host_cleanup));
456
- return request(`/v1/orchestrator/nodes/${encodeURIComponent(nodeId)}/virtual-machines/${encodeURIComponent(id)}${params.size ? `?${params}` : ""}`, { method: "DELETE", ...signal ? { signal } : {} });
457
- }
458
- function updateVirtualMachineKeys(request, id, body, headers) {
459
- return request(`/v1/orchestrator/virtual-machines/${encodeURIComponent(id)}/keys`, {
460
- method: "PATCH",
461
- body,
462
- ...headers ? { headers } : {}
463
- });
464
- }
465
- function rebootVirtualMachine(request, nodeId, id, body = {}) {
466
- return request(`/v1/orchestrator/nodes/${encodeURIComponent(nodeId)}/virtual-machines/${encodeURIComponent(id)}/reboot`, { method: "POST", body });
467
- }
468
- function listVirtualMachinePorts(request, nodeId, id, signal) {
469
- return request(`/v1/orchestrator/nodes/${encodeURIComponent(nodeId)}/virtual-machines/${encodeURIComponent(id)}/ports`, { method: "GET", ...signal ? { signal } : {} });
470
- }
471
- function openVirtualMachinePort(request, nodeId, id, body) {
472
- return request(`/v1/orchestrator/nodes/${encodeURIComponent(nodeId)}/virtual-machines/${encodeURIComponent(id)}/ports`, { method: "POST", body });
473
- }
474
- function closeVirtualMachinePort(request, nodeId, id, portId) {
475
- return request(`/v1/orchestrator/nodes/${encodeURIComponent(nodeId)}/virtual-machines/${encodeURIComponent(id)}/ports/${encodeURIComponent(portId)}`, { method: "DELETE" });
440
+ function syncGitHubRepository(request, driveId, folder) {
441
+ return request(`/v1/orchestrator/drives/${encodeURIComponent(driveId)}/github/${encodeURIComponent(folder)}/sync`, { method: "POST" });
476
442
  }
477
443
 
478
- // ../../packages/api-client/dist/orchestrator/node-access.js
479
- function launchReservation(request, reservationId, body) {
480
- return request(`/v1/orchestrator/nodes/reservations/${encodeURIComponent(reservationId)}/launch`, { method: "POST", body });
481
- }
482
- function switchReservationAccess(request, reservationId, body) {
483
- return request(`/v1/orchestrator/nodes/reservations/${encodeURIComponent(reservationId)}/switch-access`, { method: "POST", body });
444
+ // ../../packages/api-client/dist/orchestrator/images.js
445
+ function listCatalogImages(request, query = {}, signal) {
446
+ const params = new URLSearchParams();
447
+ if (query.include_pending !== void 0) {
448
+ params.set("include_pending", String(query.include_pending));
449
+ }
450
+ return request(`/v1/orchestrator/catalog/images${params.size ? `?${params}` : ""}`, {
451
+ method: "GET",
452
+ ...signal ? { signal } : {}
453
+ });
484
454
  }
485
- function getReservationAccessSwitch(request, reservationId, requestId, signal) {
486
- return request(`/v1/orchestrator/nodes/reservations/${encodeURIComponent(reservationId)}/switch-access?${new URLSearchParams({ request_id: requestId })}`, { method: "GET", ...signal ? { signal } : {} });
455
+ function startImageUpload(request, body) {
456
+ return request("/v1/orchestrator/images/uploads", {
457
+ method: "POST",
458
+ body
459
+ });
487
460
  }
488
- function listReservationSshKeys(request, reservationId, query = {}, signal) {
489
- const params = new URLSearchParams();
490
- if (query.virtual_machine_id !== void 0)
491
- params.set("virtual_machine_id", query.virtual_machine_id);
492
- return request(`/v1/orchestrator/nodes/reservations/${encodeURIComponent(reservationId)}/ssh-keys${params.size ? `?${params}` : ""}`, { method: "GET", ...signal ? { signal } : {} });
461
+ function postImageObject(request, body) {
462
+ return request("/v1/orchestrator/images/objects", { method: "POST", body });
493
463
  }
494
- function addReservationSshKey(request, reservationId, body, options = {}) {
495
- return request(`/v1/orchestrator/nodes/reservations/${encodeURIComponent(reservationId)}/ssh-keys`, { method: "POST", body, ...options });
464
+ function completeImageUpload(request, id, body) {
465
+ return request(`/v1/orchestrator/images/uploads/${encodeURIComponent(id)}/complete`, {
466
+ method: "POST",
467
+ body
468
+ });
496
469
  }
497
- function deleteReservationSshKey(request, reservationId, keyId) {
498
- return request(`/v1/orchestrator/nodes/reservations/${encodeURIComponent(reservationId)}/ssh-keys/${encodeURIComponent(keyId)}`, { method: "DELETE" });
470
+ function deleteImage(request, id) {
471
+ return request(`/v1/orchestrator/images/${encodeURIComponent(id)}`, {
472
+ method: "DELETE"
473
+ });
499
474
  }
500
- var reservationEventsPath = "/v1/orchestrator/reservations/ws";
501
475
 
502
- // ../../packages/api-client/dist/orchestrator/node-sanitize.js
503
- function sanitizePath(nodeId, jobId) {
504
- const base = `/v1/orchestrator/nodes/${encodeURIComponent(nodeId)}/sanitize-drives`;
505
- return jobId === void 0 ? base : `${base}/${encodeURIComponent(jobId)}`;
506
- }
507
- function startNodeSanitize(request, nodeId, body) {
508
- return request(sanitizePath(nodeId), { method: "POST", body });
476
+ // ../../packages/api-client/dist/orchestrator/locality.js
477
+ var localityGeolocatePath = "/v1/orchestrator/locality/geolocate";
478
+ function listLocalityRegions(request, signal) {
479
+ return request("/v1/orchestrator/locality/regions", {
480
+ method: "GET",
481
+ ...signal ? { signal } : {}
482
+ });
509
483
  }
510
- function getNodeSanitize(request, nodeId, jobId) {
511
- return request(sanitizePath(nodeId, jobId), { method: "GET" });
484
+ function geolocate(request, query, signal) {
485
+ const target = query.ip !== void 0 ? `ip=${encodeURIComponent(query.ip)}` : `address=${encodeURIComponent(query.address)}`;
486
+ return request(`${localityGeolocatePath}?${target}`, {
487
+ method: "GET",
488
+ ...signal ? { signal } : {}
489
+ });
512
490
  }
513
- function updateNodeSanitize(request, nodeId, jobId, body) {
514
- return request(sanitizePath(nodeId, jobId), { method: "PATCH", body });
491
+
492
+ // ../../packages/api-client/dist/orchestrator/maintenance-history.js
493
+ function listMaintenanceHistory(request, filter = {}, signal) {
494
+ const query = new URLSearchParams();
495
+ for (const [key, value] of Object.entries(filter))
496
+ if (value !== void 0)
497
+ query.set(key, value);
498
+ return request(`/v1/orchestrator/maintenance-history${query.size ? `?${query}` : ""}`, {
499
+ method: "GET",
500
+ ...signal ? { signal } : {}
501
+ });
515
502
  }
516
- function getNodeSanitizeLog(fetcher, nodeId, jobId) {
517
- return fetcher(sanitizePath(nodeId, jobId), {
503
+ function getMaintenanceEvent(request, id, signal) {
504
+ return request(`/v1/orchestrator/maintenance-history/${encodeURIComponent(id)}`, {
518
505
  method: "GET",
519
- headers: { Accept: "application/x-ndjson" }
506
+ ...signal ? { signal } : {}
520
507
  });
521
508
  }
522
509
 
@@ -581,227 +568,155 @@ function deleteNetworkPeer(request, networkId, peerId, options = {}) {
581
568
  });
582
569
  }
583
570
 
584
- // ../../packages/api-client/dist/orchestrator/controllers.js
585
- var controllersSocketPath = "/v1/orchestrator/controllers";
586
- function controllerPath(id) {
587
- return `${controllersSocketPath}/${encodeURIComponent(id)}`;
588
- }
589
- function listControllers(request, query = {}, signal) {
590
- const params = new URLSearchParams();
591
- if (query.kind !== void 0)
592
- params.set("kind", query.kind);
593
- if (query.tenant_id !== void 0)
594
- params.set("tenant_id", query.tenant_id);
595
- return request(`${controllersSocketPath}${params.size ? `?${params}` : ""}`, {
596
- method: "GET",
597
- ...signal ? { signal } : {}
598
- });
599
- }
600
- function createController(request, body, options) {
601
- return request(controllersSocketPath, {
602
- ...options,
603
- method: "POST",
604
- body
605
- });
606
- }
607
- function getControllerAccess(request, id, signal) {
608
- return request(`${controllerPath(id)}/access`, {
609
- method: "GET",
610
- ...signal ? { signal } : {}
611
- });
612
- }
613
- function teardownController(request, id, options) {
614
- return request(`${controllerPath(id)}/teardown`, {
615
- ...options,
616
- method: "POST"
617
- });
571
+ // ../../packages/api-client/dist/orchestrator/node-access.js
572
+ function launchReservation(request, reservationId, body) {
573
+ return request(`/v1/orchestrator/nodes/reservations/${encodeURIComponent(reservationId)}/launch`, { method: "POST", body });
618
574
  }
619
- function addControllerNode(request, id, nodeId, options) {
620
- return request(`${controllerPath(id)}/nodes/${encodeURIComponent(nodeId)}`, {
621
- ...options,
622
- method: "POST"
623
- });
575
+ function switchReservationAccess(request, reservationId, body) {
576
+ return request(`/v1/orchestrator/nodes/reservations/${encodeURIComponent(reservationId)}/switch-access`, { method: "POST", body });
624
577
  }
625
- function removeControllerNode(request, id, nodeId, options) {
626
- return request(`${controllerPath(id)}/nodes/${encodeURIComponent(nodeId)}`, {
627
- ...options,
628
- method: "DELETE"
629
- });
578
+ function getReservationAccessSwitch(request, reservationId, requestId, signal) {
579
+ return request(`/v1/orchestrator/nodes/reservations/${encodeURIComponent(reservationId)}/switch-access?${new URLSearchParams({ request_id: requestId })}`, { method: "GET", ...signal ? { signal } : {} });
630
580
  }
631
- function addControllerVirtualMachine(request, id, virtualMachineId, query = {}, options) {
581
+ function listReservationSshKeys(request, reservationId, query = {}, signal) {
632
582
  const params = new URLSearchParams();
633
- if (query.tenant_id !== void 0)
634
- params.set("tenant_id", query.tenant_id);
635
- return request(`${controllerPath(id)}/virtual-machines/${encodeURIComponent(virtualMachineId)}${params.size ? `?${params}` : ""}`, { ...options, method: "POST" });
583
+ if (query.virtual_machine_id !== void 0)
584
+ params.set("virtual_machine_id", query.virtual_machine_id);
585
+ return request(`/v1/orchestrator/nodes/reservations/${encodeURIComponent(reservationId)}/ssh-keys${params.size ? `?${params}` : ""}`, { method: "GET", ...signal ? { signal } : {} });
636
586
  }
637
- function removeControllerVirtualMachine(request, id, virtualMachineId, options) {
638
- return request(`${controllerPath(id)}/virtual-machines/${encodeURIComponent(virtualMachineId)}`, {
639
- ...options,
640
- method: "DELETE"
641
- });
587
+ function addReservationSshKey(request, reservationId, body, options = {}) {
588
+ return request(`/v1/orchestrator/nodes/reservations/${encodeURIComponent(reservationId)}/ssh-keys`, { method: "POST", body, ...options });
589
+ }
590
+ function deleteReservationSshKey(request, reservationId, keyId) {
591
+ return request(`/v1/orchestrator/nodes/reservations/${encodeURIComponent(reservationId)}/ssh-keys/${encodeURIComponent(keyId)}`, { method: "DELETE" });
642
592
  }
593
+ var reservationEventsPath = "/v1/orchestrator/reservations/ws";
643
594
 
644
- // ../../packages/api-client/dist/orchestrator/enrollment.js
645
- var enrollmentTokensPath = "/v1/orchestrator/enrollment-tokens";
646
- var enrollmentLogsPath = "/v1/orchestrator/enrollment-logs";
647
- function listEnrollmentTokens(request, query = {}) {
648
- return request(enrollmentTokensPath + (query.id ? `?id=${encodeURIComponent(query.id)}` : ""), {
649
- method: "GET"
650
- });
595
+ // ../../packages/api-client/dist/orchestrator/node-sanitize.js
596
+ function sanitizePath(nodeId, jobId) {
597
+ const base = `/v1/orchestrator/nodes/${encodeURIComponent(nodeId)}/sanitize-drives`;
598
+ return jobId === void 0 ? base : `${base}/${encodeURIComponent(jobId)}`;
651
599
  }
652
- function createEnrollmentToken(request, body) {
653
- return request(enrollmentTokensPath, { method: "POST", body });
600
+ function startNodeSanitize(request, nodeId, body) {
601
+ return request(sanitizePath(nodeId), { method: "POST", body });
654
602
  }
655
- function revokeEnrollmentToken(request, id, idempotencyKey) {
656
- return request(`${enrollmentTokensPath}/${encodeURIComponent(id)}`, {
657
- method: "DELETE",
658
- ...idempotencyKey ? { headers: { "Idempotency-Key": idempotencyKey } } : {}
659
- });
603
+ function getNodeSanitize(request, nodeId, jobId) {
604
+ return request(sanitizePath(nodeId, jobId), { method: "GET" });
660
605
  }
661
- function listEnrollmentCompartments(request, signal) {
662
- return request("/v1/orchestrator/enrollment/compartments", { method: "GET", signal });
606
+ function updateNodeSanitize(request, nodeId, jobId, body) {
607
+ return request(sanitizePath(nodeId, jobId), { method: "PATCH", body });
663
608
  }
664
- function listEnrollmentScripts(request, organizationId, signal) {
665
- const query = organizationId ? `?organization_id=${encodeURIComponent(organizationId)}` : "";
666
- return request(`/v1/orchestrator/enrollment-scripts${query}`, {
609
+ function getNodeSanitizeLog(fetcher, nodeId, jobId) {
610
+ return fetcher(sanitizePath(nodeId, jobId), {
667
611
  method: "GET",
668
- signal
669
- });
670
- }
671
- function getEnrollmentScriptSource(request, id, query = {}, signal) {
672
- const params = new URLSearchParams();
673
- if (query.sha256)
674
- params.set("sha256", query.sha256);
675
- if (query.filter)
676
- params.set("filter", query.filter);
677
- return request(`/v1/orchestrator/enrollment-scripts/${encodeURIComponent(id)}/source${params.size ? `?${params}` : ""}`, { method: "GET", signal });
678
- }
679
- function listEnrollmentLogs(request, query = {}, signal) {
680
- return request(enrollmentLogsPath + (query.organization_id ? `?organization_id=${encodeURIComponent(query.organization_id)}` : ""), { method: "GET", signal });
681
- }
682
- function getEnrollmentAdminSshKey(request, nodeId) {
683
- return request(`/v1/orchestrator/enrollment/admin-ssh-key?node_id=${encodeURIComponent(nodeId)}`, { method: "GET" });
684
- }
685
- function rotateEnrollmentAdminSshKey(request, nodeId) {
686
- return request(`/v1/orchestrator/enrollment/admin-ssh-key?node_id=${encodeURIComponent(nodeId)}`, { method: "POST" });
687
- }
688
- function fakeEnroll(fetcher, body) {
689
- return fetcher("/v1/orchestrator/fake-enroll", {
690
- method: "POST",
691
- headers: { "Content-Type": "application/json" },
692
- body: JSON.stringify(body)
612
+ headers: { Accept: "application/x-ndjson" }
693
613
  });
694
614
  }
695
- function enrollmentInstallPath(query) {
696
- const params = new URLSearchParams();
697
- for (const [key, value] of Object.entries(query)) {
698
- if (value !== void 0 && value !== false)
699
- params.set(key, String(value));
700
- }
701
- return `/v1/orchestrator/enrollment/install?${params}`;
702
- }
703
615
 
704
- // ../../packages/api-client/dist/orchestrator/configurable-enrollment.js
705
- var root = "/v1/orchestrator/enrollment/configurable";
706
- function queryString(query) {
616
+ // ../../packages/api-client/dist/orchestrator/nodes.js
617
+ function nodeQuery(query) {
707
618
  const params = new URLSearchParams();
708
- for (const [key, value] of Object.entries(query))
619
+ for (const [key, value] of Object.entries(query)) {
709
620
  if (value !== void 0)
710
621
  params.set(key, String(value));
622
+ }
711
623
  return params.size ? `?${params}` : "";
712
624
  }
713
- function listEnrollmentProfiles(request, query = {}, signal) {
714
- return request(`${root}/profiles${queryString(query)}`, { method: "GET", signal });
715
- }
716
- async function listAllEnrollmentProfiles(request, query = {}, signal) {
717
- const profiles = [];
718
- const seen = /* @__PURE__ */ new Set();
719
- let after = query.after;
720
- do {
721
- if (after && seen.has(after))
722
- throw new Error("Enrollment profile pagination repeated a cursor.");
723
- if (after)
724
- seen.add(after);
725
- const page = await listEnrollmentProfiles(request, { ...query, after }, signal);
726
- profiles.push(...page.profiles);
727
- after = page.next_cursor ?? void 0;
728
- } while (after);
729
- return { profiles, next_cursor: null };
730
- }
731
- function createEnrollmentProfile(request, body) {
732
- return request(`${root}/profiles`, { method: "POST", body });
625
+ function listNodes(request, query = {}, signal) {
626
+ return request(`/v1/orchestrator/nodes${nodeQuery(query)}`, {
627
+ method: "GET",
628
+ ...signal ? { signal } : {}
629
+ });
733
630
  }
734
- function updateEnrollmentProfile(request, id, body) {
735
- return request(`${root}/profiles/${encodeURIComponent(id)}`, {
736
- method: "PATCH",
737
- body
631
+ function listStaffNodes(request, query = {}, signal) {
632
+ return request(`/v1/staff/nodes${nodeQuery(query)}`, {
633
+ method: "GET",
634
+ ...signal ? { signal } : {}
738
635
  });
739
636
  }
740
- function listEnrollmentRuns(request, query = {}) {
741
- return request(`${root}/runs${queryString(query)}`, { method: "GET" });
637
+ function nodeResourcePath(id) {
638
+ return `/v1/orchestrator/nodes/${encodeURIComponent(id)}`;
742
639
  }
743
- function getEnrollmentRun(request, id) {
744
- return request(`${root}/runs/${encodeURIComponent(id)}`, {
745
- method: "GET"
640
+ function getNode(request, id, signal) {
641
+ return request(nodeResourcePath(id), {
642
+ method: "GET",
643
+ ...signal ? { signal } : {}
746
644
  });
747
645
  }
748
- function createEnrollmentRun(request, body) {
749
- return request(`${root}/runs`, { method: "POST", body });
646
+ function updateNode(request, id, body) {
647
+ return request(nodeResourcePath(id), { method: "PATCH", body });
750
648
  }
751
- function cancelEnrollmentRun(request, id) {
752
- return request(`${root}/runs/${encodeURIComponent(id)}`, {
753
- method: "PATCH",
754
- body: { action: "cancel" }
755
- });
649
+ function createGhostNodes(request, body) {
650
+ return request("/v1/orchestrator/nodes/ghost", { method: "POST", body });
756
651
  }
757
- function getEnrollmentHosts(request, id) {
758
- return request(`${root}/runs/${encodeURIComponent(id)}/hosts`, { method: "GET" });
652
+ function terminateNode(request, id, body, headers) {
653
+ return request(`${nodeResourcePath(id)}/terminate`, {
654
+ method: "POST",
655
+ body,
656
+ ...headers ? { headers } : {}
657
+ });
759
658
  }
760
- function launchEnrollmentRun(request, id, body) {
761
- return request(`${root}/runs/${encodeURIComponent(id)}/launch`, {
659
+ function transferNode(request, id, body) {
660
+ return request(`${nodeResourcePath(id)}/transfer`, {
762
661
  method: "POST",
763
662
  body
764
663
  });
765
664
  }
766
- function getEnrollmentHost(request, id) {
767
- return request(`${root}/hosts/${encodeURIComponent(id)}`, {
768
- method: "GET"
665
+ function assignNode(request, id, body, headers) {
666
+ return request(`${nodeResourcePath(id)}/assign`, {
667
+ method: "POST",
668
+ body,
669
+ ...headers ? { headers } : {}
769
670
  });
770
671
  }
771
- function actOnEnrollmentHost(request, id, body) {
772
- return request(`${root}/hosts/${encodeURIComponent(id)}`, {
672
+ function updateNodeKeys(request, id, body, headers) {
673
+ return request(`${nodeResourcePath(id)}/keys`, {
773
674
  method: "PATCH",
774
- body
675
+ body,
676
+ ...headers ? { headers } : {}
775
677
  });
776
678
  }
777
- function issueEnrollmentCredential(request, id) {
778
- return request(`${root}/hosts/${encodeURIComponent(id)}/credentials`, {
779
- method: "POST"
679
+ function issueNodeSshCertificate(request, id, body) {
680
+ return request(`${nodeResourcePath(id)}/ssh-certificates`, { method: "POST", body });
681
+ }
682
+ function rebootNode(request, id, body, headers) {
683
+ return request(`${nodeResourcePath(id)}/reboot`, {
684
+ method: "POST",
685
+ body,
686
+ ...headers ? { headers } : {}
780
687
  });
781
688
  }
782
- function getEnrollmentSteps(request, id) {
783
- return request(`${root}/hosts/${encodeURIComponent(id)}/steps`, { method: "GET" });
689
+ function pushNodeKeys(request, id, body = {}) {
690
+ return request(`${nodeResourcePath(id)}/push-keys`, { method: "POST", body });
784
691
  }
785
- function getEnrollmentStepCatalog(request, organizationId, signal) {
786
- return request(`${root}/steps${queryString({ organization_id: organizationId })}`, {
787
- method: "GET",
788
- signal
789
- });
692
+
693
+ // ../../packages/api-client/dist/orchestrator/registry.js
694
+ function getContainerRegistry(request) {
695
+ return request("/v1/orchestrator/registry", { method: "GET" });
790
696
  }
791
- function getEnrollmentProfileSource(request, id, signal) {
792
- return request(`${root}/profiles/${encodeURIComponent(id)}/source`, {
793
- method: "GET",
794
- signal
697
+ function listRegistryRepositories(request) {
698
+ return request("/v1/orchestrator/registry/repositories", { method: "GET" });
699
+ }
700
+ function listRegistryTags(request, repository) {
701
+ return request(`/v1/orchestrator/registry/tags?${new URLSearchParams({ repository })}`, {
702
+ method: "GET"
795
703
  });
796
704
  }
797
- function getEnrollmentRunSource(request, id, signal) {
798
- return request(`${root}/runs/${encodeURIComponent(id)}/source`, {
799
- method: "GET",
800
- signal
705
+ function getRegistryUsage(request) {
706
+ return request("/v1/orchestrator/registry/usage", { method: "GET" });
707
+ }
708
+ function listRegistryCaches(request, query = {}) {
709
+ const params = new URLSearchParams();
710
+ if (query.controller_id !== void 0)
711
+ params.set("controller_id", query.controller_id);
712
+ return request(`/v1/orchestrator/registry/caches${params.size ? `?${params}` : ""}`, {
713
+ method: "GET"
801
714
  });
802
715
  }
803
- function enrollmentHostEventsPath(id, query = {}) {
804
- return `${root}/hosts/${encodeURIComponent(id)}/events${queryString(query)}`;
716
+ function deleteRegistryTag(request, repository, tag) {
717
+ return request(`/v1/orchestrator/registry/tags?${new URLSearchParams({ repository, tag })}`, {
718
+ method: "DELETE"
719
+ });
805
720
  }
806
721
 
807
722
  // ../../packages/api-client/dist/orchestrator/remote.js
@@ -810,42 +725,6 @@ function runRemote(request, body) {
810
725
  return request(remoteRunPath, { method: "POST", body });
811
726
  }
812
727
 
813
- // ../../packages/api-client/dist/orchestrator/agent-rollouts.js
814
- var path = "/v1/orchestrator/agent-rollouts";
815
- function startAgentRollout(request, body) {
816
- return request(path, { method: "POST", body });
817
- }
818
- function listAgentRollouts(request, signal) {
819
- return request(path, { method: "GET", ...signal ? { signal } : {} });
820
- }
821
- function getAgentRollout(request, id, signal) {
822
- return request(`${path}/${encodeURIComponent(id)}`, {
823
- method: "GET",
824
- ...signal ? { signal } : {}
825
- });
826
- }
827
- async function cancelAgentRollout(request, id) {
828
- await request(`${path}/${encodeURIComponent(id)}/cancel`, { method: "POST" });
829
- }
830
-
831
- // ../../packages/api-client/dist/orchestrator/maintenance-history.js
832
- function listMaintenanceHistory(request, filter = {}, signal) {
833
- const query = new URLSearchParams();
834
- for (const [key, value] of Object.entries(filter))
835
- if (value !== void 0)
836
- query.set(key, value);
837
- return request(`/v1/orchestrator/maintenance-history${query.size ? `?${query}` : ""}`, {
838
- method: "GET",
839
- ...signal ? { signal } : {}
840
- });
841
- }
842
- function getMaintenanceEvent(request, id, signal) {
843
- return request(`/v1/orchestrator/maintenance-history/${encodeURIComponent(id)}`, {
844
- method: "GET",
845
- ...signal ? { signal } : {}
846
- });
847
- }
848
-
849
728
  // ../../packages/api-client/dist/orchestrator/reservation-node-rollout.js
850
729
  function listReservationNodeRollout(request, reservationId, query = {}, signal) {
851
730
  const params = new URLSearchParams();
@@ -856,25 +735,19 @@ function listReservationNodeRollout(request, reservationId, query = {}, signal)
856
735
  return request(`/v1/orchestrator/reservations/${encodeURIComponent(reservationId)}/node-rollout${params.size ? `?${params}` : ""}`, { method: "GET", ...signal ? { signal } : {} });
857
736
  }
858
737
 
859
- // ../../packages/api-client/dist/orchestrator/controlplanes.js
860
- var path2 = "/v1/orchestrator/controlplanes";
861
- function listControlplanes(request, signal) {
862
- return request(path2, {
863
- method: "GET",
864
- ...signal ? { signal } : {}
865
- });
738
+ // ../../packages/api-client/dist/orchestrator/shell.js
739
+ var sessionsPath = "/v1/orchestrator/shell/sessions";
740
+ function createShellSession(fetcher) {
741
+ return fetcher(sessionsPath, { method: "POST" });
866
742
  }
867
- function setControlplaneSize(request, controllerId, body) {
868
- return request(`${path2}/${encodeURIComponent(controllerId)}/size`, {
869
- method: "POST",
870
- body
871
- });
743
+ function getCurrentShellSession(fetcher) {
744
+ return fetcher(`${sessionsPath}/current`, { method: "GET" });
872
745
  }
873
- function controlplaneSplashPath(replicaIp) {
874
- return `${path2}/${encodeURIComponent(replicaIp)}/`;
746
+ function closeShellSession(fetcher, id) {
747
+ return fetcher(`${sessionsPath}/${encodeURIComponent(id)}`, { method: "DELETE" });
875
748
  }
876
- function controlplaneDownloadPath(query) {
877
- return `${path2}/download?${new URLSearchParams(query)}`;
749
+ function shellSessionAttachPath(id) {
750
+ return `${sessionsPath}/${encodeURIComponent(id)}/attach`;
878
751
  }
879
752
 
880
753
  // ../../packages/api-client/dist/orchestrator/ssh-bastions.js
@@ -902,6 +775,37 @@ async function deleteSshBastion(request, id, query) {
902
775
  });
903
776
  }
904
777
 
778
+ // ../../packages/api-client/dist/orchestrator/storage-types.js
779
+ var storageEventsPath = "/v1/orchestrator/storage/ws";
780
+
781
+ // ../../packages/api-client/dist/orchestrator/storage-usage.js
782
+ function queryPath2(path4, query) {
783
+ const params = new URLSearchParams();
784
+ for (const [key, value] of Object.entries(query)) {
785
+ if (value !== void 0)
786
+ params.set(key, String(value));
787
+ }
788
+ return `${path4}${params.size ? `?${params}` : ""}`;
789
+ }
790
+ function listStorageInventory(request, query = {}, signal) {
791
+ return request(queryPath2("/v1/staff/storage/volumes", query), {
792
+ method: "GET",
793
+ ...signal ? { signal } : {}
794
+ });
795
+ }
796
+ function getStorageUsage(request, driveId, query, signal) {
797
+ return request(queryPath2(`/v1/staff/storage/volumes/${encodeURIComponent(driveId)}/usage`, query), {
798
+ method: "GET",
799
+ ...signal ? { signal } : {}
800
+ });
801
+ }
802
+ function getOrganizationStorageUsage(request, organizationId, query, signal) {
803
+ return request(queryPath2(`/v1/staff/storage/organizations/${encodeURIComponent(organizationId)}/usage`, query), {
804
+ method: "GET",
805
+ ...signal ? { signal } : {}
806
+ });
807
+ }
808
+
905
809
  // ../../packages/api-client/dist/orchestrator/supplier-node-configs.js
906
810
  function listSupplierNodeConfigs(request, query = {}, signal) {
907
811
  const params = new URLSearchParams();
@@ -920,6 +824,77 @@ function putSupplierNodeConfig(request, organizationId, body) {
920
824
  body
921
825
  });
922
826
  }
827
+
828
+ // ../../packages/api-client/dist/orchestrator/virtual-machines.js
829
+ function listNodeVirtualMachines(request, nodeId, signal) {
830
+ return request(`/v1/orchestrator/nodes/${encodeURIComponent(nodeId)}/virtual-machines`, {
831
+ method: "GET",
832
+ ...signal ? { signal } : {}
833
+ });
834
+ }
835
+ function listStaffNodeVirtualMachines(request, nodeId, signal) {
836
+ return request(`/v1/staff/nodes/${encodeURIComponent(nodeId)}/virtual-machines`, {
837
+ method: "GET",
838
+ ...signal ? { signal } : {}
839
+ });
840
+ }
841
+ function listReservationVirtualMachines(request, reservationId, signal) {
842
+ return request(`/v1/orchestrator/reservations/${encodeURIComponent(reservationId)}/virtual-machines`, { method: "GET", ...signal ? { signal } : {} });
843
+ }
844
+ function getVirtualMachine(request, id, signal) {
845
+ return request(`/v1/orchestrator/virtual-machines/${encodeURIComponent(id)}`, {
846
+ method: "GET",
847
+ ...signal ? { signal } : {}
848
+ });
849
+ }
850
+ function getVirtualMachineLogs(request, id, signal) {
851
+ return request(`/v1/orchestrator/virtual-machines/${encodeURIComponent(id)}/logs`, {
852
+ method: "GET",
853
+ ...signal ? { signal } : {}
854
+ });
855
+ }
856
+ function updateVirtualMachineRun(request, id, body) {
857
+ return request(`/v1/orchestrator/virtual-machines/${encodeURIComponent(id)}`, {
858
+ method: "POST",
859
+ body
860
+ });
861
+ }
862
+ function getNodeVirtualMachineCapacity(request, nodeId) {
863
+ return request(`/v1/orchestrator/nodes/${encodeURIComponent(nodeId)}/virtual-machine-capacity`, {
864
+ method: "GET"
865
+ });
866
+ }
867
+ function createVirtualMachine(request, nodeId, body) {
868
+ return request(`/v1/orchestrator/nodes/${encodeURIComponent(nodeId)}/virtual-machines`, {
869
+ method: "POST",
870
+ body
871
+ });
872
+ }
873
+ function deleteVirtualMachine(request, nodeId, id, query = {}, signal) {
874
+ const params = new URLSearchParams();
875
+ if (query.abandon_host_cleanup !== void 0)
876
+ params.set("abandon_host_cleanup", String(query.abandon_host_cleanup));
877
+ return request(`/v1/orchestrator/nodes/${encodeURIComponent(nodeId)}/virtual-machines/${encodeURIComponent(id)}${params.size ? `?${params}` : ""}`, { method: "DELETE", ...signal ? { signal } : {} });
878
+ }
879
+ function updateVirtualMachineKeys(request, id, body, headers) {
880
+ return request(`/v1/orchestrator/virtual-machines/${encodeURIComponent(id)}/keys`, {
881
+ method: "PATCH",
882
+ body,
883
+ ...headers ? { headers } : {}
884
+ });
885
+ }
886
+ function rebootVirtualMachine(request, nodeId, id, body = {}) {
887
+ return request(`/v1/orchestrator/nodes/${encodeURIComponent(nodeId)}/virtual-machines/${encodeURIComponent(id)}/reboot`, { method: "POST", body });
888
+ }
889
+ function listVirtualMachinePorts(request, nodeId, id, signal) {
890
+ return request(`/v1/orchestrator/nodes/${encodeURIComponent(nodeId)}/virtual-machines/${encodeURIComponent(id)}/ports`, { method: "GET", ...signal ? { signal } : {} });
891
+ }
892
+ function openVirtualMachinePort(request, nodeId, id, body) {
893
+ return request(`/v1/orchestrator/nodes/${encodeURIComponent(nodeId)}/virtual-machines/${encodeURIComponent(id)}/ports`, { method: "POST", body });
894
+ }
895
+ function closeVirtualMachinePort(request, nodeId, id, portId) {
896
+ return request(`/v1/orchestrator/nodes/${encodeURIComponent(nodeId)}/virtual-machines/${encodeURIComponent(id)}/ports/${encodeURIComponent(portId)}`, { method: "DELETE" });
897
+ }
923
898
  export {
924
899
  actOnEnrollmentHost,
925
900
  addControllerNode,
@@ -944,7 +919,6 @@ export {
944
919
  createDrive,
945
920
  createEnrollmentProfile,
946
921
  createEnrollmentRun,
947
- createEnrollmentToken,
948
922
  createGhostNodes,
949
923
  createNetwork,
950
924
  createNetworkPeer,
@@ -970,7 +944,6 @@ export {
970
944
  driveFolderArchivePath,
971
945
  enrollmentHostEventsPath,
972
946
  enrollmentInstallPath,
973
- enrollmentLogsPath,
974
947
  enrollmentTokensPath,
975
948
  fakeEnroll,
976
949
  geolocate,
@@ -985,7 +958,6 @@ export {
985
958
  getEnrollmentProfileSource,
986
959
  getEnrollmentRun,
987
960
  getEnrollmentRunSource,
988
- getEnrollmentScriptSource,
989
961
  getEnrollmentStepCatalog,
990
962
  getEnrollmentSteps,
991
963
  getHardwareCatalog,
@@ -1017,11 +989,8 @@ export {
1017
989
  listDisks,
1018
990
  listDriveContents,
1019
991
  listDrives,
1020
- listEnrollmentCompartments,
1021
- listEnrollmentLogs,
1022
992
  listEnrollmentProfiles,
1023
993
  listEnrollmentRuns,
1024
- listEnrollmentScripts,
1025
994
  listEnrollmentTokens,
1026
995
  listGitHubBranches,
1027
996
  listGitHubConnections,