@infrapilot-jur/sdk 0.3.0 → 0.4.1
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/CHANGELOG.md +21 -0
- package/README.md +9 -3
- package/dist/index.cjs +68 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +519 -11
- package/dist/index.d.ts +519 -11
- package/dist/index.js +68 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -518,6 +518,116 @@ interface paths {
|
|
|
518
518
|
patch?: never;
|
|
519
519
|
trace?: never;
|
|
520
520
|
};
|
|
521
|
+
"/api/v1/node/kvm/{uuid}": {
|
|
522
|
+
parameters: {
|
|
523
|
+
query?: never;
|
|
524
|
+
header?: never;
|
|
525
|
+
path?: never;
|
|
526
|
+
cookie?: never;
|
|
527
|
+
};
|
|
528
|
+
/**
|
|
529
|
+
* Get a single KVM domain overview
|
|
530
|
+
* @description DomainLookupByUUID + DomainGetInfo/State/Autostart/IsActive/IsPersistent
|
|
531
|
+
* and DomainMemoryStats for memory_used_bytes. Does not include specialized
|
|
532
|
+
* cpu/memory/disks/network/config payloads.
|
|
533
|
+
*/
|
|
534
|
+
get: operations["kvmDomain"];
|
|
535
|
+
put?: never;
|
|
536
|
+
post?: never;
|
|
537
|
+
delete?: never;
|
|
538
|
+
options?: never;
|
|
539
|
+
head?: never;
|
|
540
|
+
patch?: never;
|
|
541
|
+
trace?: never;
|
|
542
|
+
};
|
|
543
|
+
"/api/v1/node/kvm/{uuid}/cpu": {
|
|
544
|
+
parameters: {
|
|
545
|
+
query?: never;
|
|
546
|
+
header?: never;
|
|
547
|
+
path?: never;
|
|
548
|
+
cookie?: never;
|
|
549
|
+
};
|
|
550
|
+
/** Get KVM domain CPU topology and stats */
|
|
551
|
+
get: operations["kvmDomainCPU"];
|
|
552
|
+
put?: never;
|
|
553
|
+
post?: never;
|
|
554
|
+
delete?: never;
|
|
555
|
+
options?: never;
|
|
556
|
+
head?: never;
|
|
557
|
+
patch?: never;
|
|
558
|
+
trace?: never;
|
|
559
|
+
};
|
|
560
|
+
"/api/v1/node/kvm/{uuid}/memory": {
|
|
561
|
+
parameters: {
|
|
562
|
+
query?: never;
|
|
563
|
+
header?: never;
|
|
564
|
+
path?: never;
|
|
565
|
+
cookie?: never;
|
|
566
|
+
};
|
|
567
|
+
/** Get KVM domain memory stats */
|
|
568
|
+
get: operations["kvmDomainMemory"];
|
|
569
|
+
put?: never;
|
|
570
|
+
post?: never;
|
|
571
|
+
delete?: never;
|
|
572
|
+
options?: never;
|
|
573
|
+
head?: never;
|
|
574
|
+
patch?: never;
|
|
575
|
+
trace?: never;
|
|
576
|
+
};
|
|
577
|
+
"/api/v1/node/kvm/{uuid}/disks": {
|
|
578
|
+
parameters: {
|
|
579
|
+
query?: never;
|
|
580
|
+
header?: never;
|
|
581
|
+
path?: never;
|
|
582
|
+
cookie?: never;
|
|
583
|
+
};
|
|
584
|
+
/** Get KVM domain block devices */
|
|
585
|
+
get: operations["kvmDomainDisks"];
|
|
586
|
+
put?: never;
|
|
587
|
+
post?: never;
|
|
588
|
+
delete?: never;
|
|
589
|
+
options?: never;
|
|
590
|
+
head?: never;
|
|
591
|
+
patch?: never;
|
|
592
|
+
trace?: never;
|
|
593
|
+
};
|
|
594
|
+
"/api/v1/node/kvm/{uuid}/network": {
|
|
595
|
+
parameters: {
|
|
596
|
+
query?: never;
|
|
597
|
+
header?: never;
|
|
598
|
+
path?: never;
|
|
599
|
+
cookie?: never;
|
|
600
|
+
};
|
|
601
|
+
/** Get KVM domain network interfaces */
|
|
602
|
+
get: operations["kvmDomainNetwork"];
|
|
603
|
+
put?: never;
|
|
604
|
+
post?: never;
|
|
605
|
+
delete?: never;
|
|
606
|
+
options?: never;
|
|
607
|
+
head?: never;
|
|
608
|
+
patch?: never;
|
|
609
|
+
trace?: never;
|
|
610
|
+
};
|
|
611
|
+
"/api/v1/node/kvm/{uuid}/config": {
|
|
612
|
+
parameters: {
|
|
613
|
+
query?: never;
|
|
614
|
+
header?: never;
|
|
615
|
+
path?: never;
|
|
616
|
+
cookie?: never;
|
|
617
|
+
};
|
|
618
|
+
/**
|
|
619
|
+
* Get structured KVM domain configuration (read-only)
|
|
620
|
+
* @description Parsed DomainGetXMLDesc without raw XML or secrets.
|
|
621
|
+
*/
|
|
622
|
+
get: operations["kvmDomainConfig"];
|
|
623
|
+
put?: never;
|
|
624
|
+
post?: never;
|
|
625
|
+
delete?: never;
|
|
626
|
+
options?: never;
|
|
627
|
+
head?: never;
|
|
628
|
+
patch?: never;
|
|
629
|
+
trace?: never;
|
|
630
|
+
};
|
|
521
631
|
"/api/v1/node/kvm/{uuid}/start": {
|
|
522
632
|
parameters: {
|
|
523
633
|
query?: never;
|
|
@@ -1290,6 +1400,223 @@ interface components {
|
|
|
1290
1400
|
services: components["schemas"]["NodeService"][];
|
|
1291
1401
|
warnings: components["schemas"]["ResourceWarning"][];
|
|
1292
1402
|
};
|
|
1403
|
+
NodeKvmDomainDetail: {
|
|
1404
|
+
node_id: string;
|
|
1405
|
+
/** Format: date-time */
|
|
1406
|
+
collected_at: string;
|
|
1407
|
+
uri: string;
|
|
1408
|
+
name: string;
|
|
1409
|
+
/** Format: uuid */
|
|
1410
|
+
uuid: string;
|
|
1411
|
+
id?: number | null;
|
|
1412
|
+
state: string;
|
|
1413
|
+
state_reason?: string | null;
|
|
1414
|
+
active?: boolean | null;
|
|
1415
|
+
persistent?: boolean | null;
|
|
1416
|
+
autostart?: boolean | null;
|
|
1417
|
+
vcpus?: number | null;
|
|
1418
|
+
/** Format: int64 */
|
|
1419
|
+
memory_bytes?: number | null;
|
|
1420
|
+
/** Format: int64 */
|
|
1421
|
+
max_memory_bytes?: number | null;
|
|
1422
|
+
/** Format: int64 */
|
|
1423
|
+
memory_used_bytes?: number | null;
|
|
1424
|
+
/**
|
|
1425
|
+
* @description How memory_used_bytes was derived. guest = available−usable; estimated = available−unused; rss = QEMU process RSS. ACTUAL_BALLOON alone is allocation, not usage.
|
|
1426
|
+
* @enum {string|null}
|
|
1427
|
+
*/
|
|
1428
|
+
memory_used_source?: "guest" | "rss" | "estimated" | null;
|
|
1429
|
+
/** @description Power actions allowed by domain state and caller authorization (kvm:power). */
|
|
1430
|
+
allowed_actions: ("start" | "stop" | "reboot")[];
|
|
1431
|
+
warnings: components["schemas"]["ResourceWarning"][];
|
|
1432
|
+
};
|
|
1433
|
+
NodeKvmVCPUStat: {
|
|
1434
|
+
number: number;
|
|
1435
|
+
state: string;
|
|
1436
|
+
/** Format: int64 */
|
|
1437
|
+
cpu_time_ns?: number | null;
|
|
1438
|
+
cpu?: number | null;
|
|
1439
|
+
/** @description Host CPU affinity from DomainGetVcpuPinInfo (e.g. "0,2-3"). */
|
|
1440
|
+
pin_cpus?: string | null;
|
|
1441
|
+
};
|
|
1442
|
+
NodeKvmDomainCPU: {
|
|
1443
|
+
node_id: string;
|
|
1444
|
+
/** Format: date-time */
|
|
1445
|
+
collected_at: string;
|
|
1446
|
+
/** Format: uuid */
|
|
1447
|
+
uuid: string;
|
|
1448
|
+
name: string;
|
|
1449
|
+
state: string;
|
|
1450
|
+
vcpus?: number | null;
|
|
1451
|
+
max_vcpus?: number | null;
|
|
1452
|
+
/** Format: int64 */
|
|
1453
|
+
cpu_time_ns?: number | null;
|
|
1454
|
+
/** @description Normalized utilization from two samples without artificial delay: delta_cpu_time_ns / (delta_wall_time_ns × vcpus) × 100. Null on first sample, counter reset, vCPU count change, or inactive domain. */
|
|
1455
|
+
cpu_usage_percent?: number | null;
|
|
1456
|
+
model?: string | null;
|
|
1457
|
+
mode?: string | null;
|
|
1458
|
+
sockets?: number | null;
|
|
1459
|
+
dies?: number | null;
|
|
1460
|
+
cores?: number | null;
|
|
1461
|
+
threads?: number | null;
|
|
1462
|
+
vcpu_stats: components["schemas"]["NodeKvmVCPUStat"][];
|
|
1463
|
+
warnings: components["schemas"]["ResourceWarning"][];
|
|
1464
|
+
};
|
|
1465
|
+
NodeKvmDomainMemory: {
|
|
1466
|
+
node_id: string;
|
|
1467
|
+
/** Format: date-time */
|
|
1468
|
+
collected_at: string;
|
|
1469
|
+
/** Format: uuid */
|
|
1470
|
+
uuid: string;
|
|
1471
|
+
name: string;
|
|
1472
|
+
state: string;
|
|
1473
|
+
/** Format: int64 */
|
|
1474
|
+
memory_bytes?: number | null;
|
|
1475
|
+
/** Format: int64 */
|
|
1476
|
+
max_memory_bytes?: number | null;
|
|
1477
|
+
/** Format: int64 */
|
|
1478
|
+
memory_used_bytes?: number | null;
|
|
1479
|
+
/**
|
|
1480
|
+
* @description guest = available−usable; estimated = available−unused; rss = QEMU RSS. Null when usage cannot be derived. Does not treat ACTUAL_BALLOON as used.
|
|
1481
|
+
* @enum {string|null}
|
|
1482
|
+
*/
|
|
1483
|
+
memory_used_source?: "guest" | "rss" | "estimated" | null;
|
|
1484
|
+
/** Format: int64 */
|
|
1485
|
+
available_bytes?: number | null;
|
|
1486
|
+
/** Format: int64 */
|
|
1487
|
+
usable_bytes?: number | null;
|
|
1488
|
+
/** Format: int64 */
|
|
1489
|
+
unused_bytes?: number | null;
|
|
1490
|
+
/** Format: int64 */
|
|
1491
|
+
actual_balloon_bytes?: number | null;
|
|
1492
|
+
/** Format: int64 */
|
|
1493
|
+
rss_bytes?: number | null;
|
|
1494
|
+
/** Format: int64 */
|
|
1495
|
+
swap_in_bytes?: number | null;
|
|
1496
|
+
/** Format: int64 */
|
|
1497
|
+
swap_out_bytes?: number | null;
|
|
1498
|
+
/** Format: int64 */
|
|
1499
|
+
major_faults?: number | null;
|
|
1500
|
+
/** Format: int64 */
|
|
1501
|
+
minor_faults?: number | null;
|
|
1502
|
+
/** Format: int64 */
|
|
1503
|
+
stats_last_update_unix?: number | null;
|
|
1504
|
+
warnings: components["schemas"]["ResourceWarning"][];
|
|
1505
|
+
};
|
|
1506
|
+
NodeKvmDisk: {
|
|
1507
|
+
target: string;
|
|
1508
|
+
device?: string | null;
|
|
1509
|
+
bus?: string | null;
|
|
1510
|
+
driver?: string | null;
|
|
1511
|
+
format?: string | null;
|
|
1512
|
+
source?: string | null;
|
|
1513
|
+
/** Format: int64 */
|
|
1514
|
+
capacity_bytes?: number | null;
|
|
1515
|
+
/** Format: int64 */
|
|
1516
|
+
allocation_bytes?: number | null;
|
|
1517
|
+
/** Format: int64 */
|
|
1518
|
+
physical_bytes?: number | null;
|
|
1519
|
+
/** Format: int64 */
|
|
1520
|
+
read_bytes?: number | null;
|
|
1521
|
+
/** Format: int64 */
|
|
1522
|
+
write_bytes?: number | null;
|
|
1523
|
+
/** Format: int64 */
|
|
1524
|
+
read_ops?: number | null;
|
|
1525
|
+
/** Format: int64 */
|
|
1526
|
+
write_ops?: number | null;
|
|
1527
|
+
/** Format: int64 */
|
|
1528
|
+
errors?: number | null;
|
|
1529
|
+
read_bytes_per_sec?: number | null;
|
|
1530
|
+
write_bytes_per_sec?: number | null;
|
|
1531
|
+
read_iops?: number | null;
|
|
1532
|
+
write_iops?: number | null;
|
|
1533
|
+
};
|
|
1534
|
+
NodeKvmDomainDisks: {
|
|
1535
|
+
node_id: string;
|
|
1536
|
+
/** Format: date-time */
|
|
1537
|
+
collected_at: string;
|
|
1538
|
+
/** Format: uuid */
|
|
1539
|
+
uuid: string;
|
|
1540
|
+
name: string;
|
|
1541
|
+
state: string;
|
|
1542
|
+
disks: components["schemas"]["NodeKvmDisk"][];
|
|
1543
|
+
warnings: components["schemas"]["ResourceWarning"][];
|
|
1544
|
+
};
|
|
1545
|
+
NodeKvmNIC: {
|
|
1546
|
+
target: string;
|
|
1547
|
+
mac?: string | null;
|
|
1548
|
+
model?: string | null;
|
|
1549
|
+
type?: string | null;
|
|
1550
|
+
source?: string | null;
|
|
1551
|
+
ipv4: string[];
|
|
1552
|
+
ipv6: string[];
|
|
1553
|
+
address_source?: string | null;
|
|
1554
|
+
/** Format: int64 */
|
|
1555
|
+
rx_bytes?: number | null;
|
|
1556
|
+
/** Format: int64 */
|
|
1557
|
+
tx_bytes?: number | null;
|
|
1558
|
+
/** Format: int64 */
|
|
1559
|
+
rx_packets?: number | null;
|
|
1560
|
+
/** Format: int64 */
|
|
1561
|
+
tx_packets?: number | null;
|
|
1562
|
+
/** Format: int64 */
|
|
1563
|
+
rx_errors?: number | null;
|
|
1564
|
+
/** Format: int64 */
|
|
1565
|
+
tx_errors?: number | null;
|
|
1566
|
+
/** Format: int64 */
|
|
1567
|
+
rx_drops?: number | null;
|
|
1568
|
+
/** Format: int64 */
|
|
1569
|
+
tx_drops?: number | null;
|
|
1570
|
+
rx_bytes_per_sec?: number | null;
|
|
1571
|
+
tx_bytes_per_sec?: number | null;
|
|
1572
|
+
};
|
|
1573
|
+
NodeKvmDomainNetwork: {
|
|
1574
|
+
node_id: string;
|
|
1575
|
+
/** Format: date-time */
|
|
1576
|
+
collected_at: string;
|
|
1577
|
+
/** Format: uuid */
|
|
1578
|
+
uuid: string;
|
|
1579
|
+
name: string;
|
|
1580
|
+
state: string;
|
|
1581
|
+
interfaces: components["schemas"]["NodeKvmNIC"][];
|
|
1582
|
+
warnings: components["schemas"]["ResourceWarning"][];
|
|
1583
|
+
};
|
|
1584
|
+
NodeKvmCPUTopology: {
|
|
1585
|
+
sockets?: number | null;
|
|
1586
|
+
dies?: number | null;
|
|
1587
|
+
cores?: number | null;
|
|
1588
|
+
threads?: number | null;
|
|
1589
|
+
};
|
|
1590
|
+
NodeKvmDomainConfig: {
|
|
1591
|
+
node_id: string;
|
|
1592
|
+
/** Format: date-time */
|
|
1593
|
+
collected_at: string;
|
|
1594
|
+
/** Format: uuid */
|
|
1595
|
+
uuid: string;
|
|
1596
|
+
name: string;
|
|
1597
|
+
state: string;
|
|
1598
|
+
hypervisor?: string | null;
|
|
1599
|
+
architecture?: string | null;
|
|
1600
|
+
machine_type?: string | null;
|
|
1601
|
+
firmware?: string | null;
|
|
1602
|
+
boot_order: string[];
|
|
1603
|
+
cpu_mode?: string | null;
|
|
1604
|
+
cpu_model?: string | null;
|
|
1605
|
+
topology?: components["schemas"]["NodeKvmCPUTopology"];
|
|
1606
|
+
features: string[];
|
|
1607
|
+
clock_offset?: string | null;
|
|
1608
|
+
devices: string[];
|
|
1609
|
+
video_models: string[];
|
|
1610
|
+
graphics_types: string[];
|
|
1611
|
+
balloon_model?: string | null;
|
|
1612
|
+
guest_agent?: boolean | null;
|
|
1613
|
+
on_poweroff?: string | null;
|
|
1614
|
+
on_reboot?: string | null;
|
|
1615
|
+
on_crash?: string | null;
|
|
1616
|
+
/** @enum {string} */
|
|
1617
|
+
config_source: "active" | "inactive";
|
|
1618
|
+
warnings: components["schemas"]["ResourceWarning"][];
|
|
1619
|
+
};
|
|
1293
1620
|
NodeKvmPowerResult: {
|
|
1294
1621
|
/** Format: uuid */
|
|
1295
1622
|
uuid: string;
|
|
@@ -1317,11 +1644,17 @@ interface components {
|
|
|
1317
1644
|
max_memory_bytes: number | null;
|
|
1318
1645
|
/**
|
|
1319
1646
|
* Format: int64
|
|
1320
|
-
* @description Best-effort usage from DomainMemoryStats.
|
|
1321
|
-
* (available −
|
|
1647
|
+
* @description Best-effort usage from DomainMemoryStats.
|
|
1648
|
+
* Prefer guest (available−usable), else estimated (available−unused), else QEMU RSS.
|
|
1322
1649
|
* Null when unavailable (e.g. shutoff or stats missing).
|
|
1650
|
+
* ACTUAL_BALLOON alone is allocation, not usage.
|
|
1323
1651
|
*/
|
|
1324
1652
|
memory_used_bytes: number | null;
|
|
1653
|
+
/**
|
|
1654
|
+
* @description How memory_used_bytes was derived. guest = available−usable; estimated = available−unused; rss = QEMU process RSS. Null when memory_used_bytes is null.
|
|
1655
|
+
* @enum {string|null}
|
|
1656
|
+
*/
|
|
1657
|
+
memory_used_source?: "guest" | "rss" | "estimated" | null;
|
|
1325
1658
|
};
|
|
1326
1659
|
NodeKvm: {
|
|
1327
1660
|
node_id: string;
|
|
@@ -1476,7 +1809,7 @@ interface operations {
|
|
|
1476
1809
|
/**
|
|
1477
1810
|
* @example {
|
|
1478
1811
|
* "status": "ok",
|
|
1479
|
-
* "version": "0.2.
|
|
1812
|
+
* "version": "0.2.16"
|
|
1480
1813
|
* }
|
|
1481
1814
|
*/
|
|
1482
1815
|
"application/json": components["schemas"]["Health"];
|
|
@@ -2314,6 +2647,174 @@ interface operations {
|
|
|
2314
2647
|
403: components["responses"]["Forbidden"];
|
|
2315
2648
|
};
|
|
2316
2649
|
};
|
|
2650
|
+
kvmDomain: {
|
|
2651
|
+
parameters: {
|
|
2652
|
+
query?: never;
|
|
2653
|
+
header?: never;
|
|
2654
|
+
path: {
|
|
2655
|
+
/** @description Stable libvirt domain UUID (not the temporary numeric domain id). */
|
|
2656
|
+
uuid: components["parameters"]["KvmDomainUUID"];
|
|
2657
|
+
};
|
|
2658
|
+
cookie?: never;
|
|
2659
|
+
};
|
|
2660
|
+
requestBody?: never;
|
|
2661
|
+
responses: {
|
|
2662
|
+
/** @description Domain overview */
|
|
2663
|
+
200: {
|
|
2664
|
+
headers: {
|
|
2665
|
+
[name: string]: unknown;
|
|
2666
|
+
};
|
|
2667
|
+
content: {
|
|
2668
|
+
"application/json": components["schemas"]["NodeKvmDomainDetail"];
|
|
2669
|
+
};
|
|
2670
|
+
};
|
|
2671
|
+
400: components["responses"]["BadRequest"];
|
|
2672
|
+
401: components["responses"]["Unauthorized"];
|
|
2673
|
+
403: components["responses"]["Forbidden"];
|
|
2674
|
+
404: components["responses"]["NotFound"];
|
|
2675
|
+
502: components["responses"]["BadGateway"];
|
|
2676
|
+
};
|
|
2677
|
+
};
|
|
2678
|
+
kvmDomainCPU: {
|
|
2679
|
+
parameters: {
|
|
2680
|
+
query?: never;
|
|
2681
|
+
header?: never;
|
|
2682
|
+
path: {
|
|
2683
|
+
/** @description Stable libvirt domain UUID (not the temporary numeric domain id). */
|
|
2684
|
+
uuid: components["parameters"]["KvmDomainUUID"];
|
|
2685
|
+
};
|
|
2686
|
+
cookie?: never;
|
|
2687
|
+
};
|
|
2688
|
+
requestBody?: never;
|
|
2689
|
+
responses: {
|
|
2690
|
+
/** @description CPU report */
|
|
2691
|
+
200: {
|
|
2692
|
+
headers: {
|
|
2693
|
+
[name: string]: unknown;
|
|
2694
|
+
};
|
|
2695
|
+
content: {
|
|
2696
|
+
"application/json": components["schemas"]["NodeKvmDomainCPU"];
|
|
2697
|
+
};
|
|
2698
|
+
};
|
|
2699
|
+
400: components["responses"]["BadRequest"];
|
|
2700
|
+
401: components["responses"]["Unauthorized"];
|
|
2701
|
+
403: components["responses"]["Forbidden"];
|
|
2702
|
+
404: components["responses"]["NotFound"];
|
|
2703
|
+
502: components["responses"]["BadGateway"];
|
|
2704
|
+
};
|
|
2705
|
+
};
|
|
2706
|
+
kvmDomainMemory: {
|
|
2707
|
+
parameters: {
|
|
2708
|
+
query?: never;
|
|
2709
|
+
header?: never;
|
|
2710
|
+
path: {
|
|
2711
|
+
/** @description Stable libvirt domain UUID (not the temporary numeric domain id). */
|
|
2712
|
+
uuid: components["parameters"]["KvmDomainUUID"];
|
|
2713
|
+
};
|
|
2714
|
+
cookie?: never;
|
|
2715
|
+
};
|
|
2716
|
+
requestBody?: never;
|
|
2717
|
+
responses: {
|
|
2718
|
+
/** @description Memory report */
|
|
2719
|
+
200: {
|
|
2720
|
+
headers: {
|
|
2721
|
+
[name: string]: unknown;
|
|
2722
|
+
};
|
|
2723
|
+
content: {
|
|
2724
|
+
"application/json": components["schemas"]["NodeKvmDomainMemory"];
|
|
2725
|
+
};
|
|
2726
|
+
};
|
|
2727
|
+
400: components["responses"]["BadRequest"];
|
|
2728
|
+
401: components["responses"]["Unauthorized"];
|
|
2729
|
+
403: components["responses"]["Forbidden"];
|
|
2730
|
+
404: components["responses"]["NotFound"];
|
|
2731
|
+
502: components["responses"]["BadGateway"];
|
|
2732
|
+
};
|
|
2733
|
+
};
|
|
2734
|
+
kvmDomainDisks: {
|
|
2735
|
+
parameters: {
|
|
2736
|
+
query?: never;
|
|
2737
|
+
header?: never;
|
|
2738
|
+
path: {
|
|
2739
|
+
/** @description Stable libvirt domain UUID (not the temporary numeric domain id). */
|
|
2740
|
+
uuid: components["parameters"]["KvmDomainUUID"];
|
|
2741
|
+
};
|
|
2742
|
+
cookie?: never;
|
|
2743
|
+
};
|
|
2744
|
+
requestBody?: never;
|
|
2745
|
+
responses: {
|
|
2746
|
+
/** @description Disks report */
|
|
2747
|
+
200: {
|
|
2748
|
+
headers: {
|
|
2749
|
+
[name: string]: unknown;
|
|
2750
|
+
};
|
|
2751
|
+
content: {
|
|
2752
|
+
"application/json": components["schemas"]["NodeKvmDomainDisks"];
|
|
2753
|
+
};
|
|
2754
|
+
};
|
|
2755
|
+
400: components["responses"]["BadRequest"];
|
|
2756
|
+
401: components["responses"]["Unauthorized"];
|
|
2757
|
+
403: components["responses"]["Forbidden"];
|
|
2758
|
+
404: components["responses"]["NotFound"];
|
|
2759
|
+
502: components["responses"]["BadGateway"];
|
|
2760
|
+
};
|
|
2761
|
+
};
|
|
2762
|
+
kvmDomainNetwork: {
|
|
2763
|
+
parameters: {
|
|
2764
|
+
query?: never;
|
|
2765
|
+
header?: never;
|
|
2766
|
+
path: {
|
|
2767
|
+
/** @description Stable libvirt domain UUID (not the temporary numeric domain id). */
|
|
2768
|
+
uuid: components["parameters"]["KvmDomainUUID"];
|
|
2769
|
+
};
|
|
2770
|
+
cookie?: never;
|
|
2771
|
+
};
|
|
2772
|
+
requestBody?: never;
|
|
2773
|
+
responses: {
|
|
2774
|
+
/** @description Network report */
|
|
2775
|
+
200: {
|
|
2776
|
+
headers: {
|
|
2777
|
+
[name: string]: unknown;
|
|
2778
|
+
};
|
|
2779
|
+
content: {
|
|
2780
|
+
"application/json": components["schemas"]["NodeKvmDomainNetwork"];
|
|
2781
|
+
};
|
|
2782
|
+
};
|
|
2783
|
+
400: components["responses"]["BadRequest"];
|
|
2784
|
+
401: components["responses"]["Unauthorized"];
|
|
2785
|
+
403: components["responses"]["Forbidden"];
|
|
2786
|
+
404: components["responses"]["NotFound"];
|
|
2787
|
+
502: components["responses"]["BadGateway"];
|
|
2788
|
+
};
|
|
2789
|
+
};
|
|
2790
|
+
kvmDomainConfig: {
|
|
2791
|
+
parameters: {
|
|
2792
|
+
query?: never;
|
|
2793
|
+
header?: never;
|
|
2794
|
+
path: {
|
|
2795
|
+
/** @description Stable libvirt domain UUID (not the temporary numeric domain id). */
|
|
2796
|
+
uuid: components["parameters"]["KvmDomainUUID"];
|
|
2797
|
+
};
|
|
2798
|
+
cookie?: never;
|
|
2799
|
+
};
|
|
2800
|
+
requestBody?: never;
|
|
2801
|
+
responses: {
|
|
2802
|
+
/** @description Config report */
|
|
2803
|
+
200: {
|
|
2804
|
+
headers: {
|
|
2805
|
+
[name: string]: unknown;
|
|
2806
|
+
};
|
|
2807
|
+
content: {
|
|
2808
|
+
"application/json": components["schemas"]["NodeKvmDomainConfig"];
|
|
2809
|
+
};
|
|
2810
|
+
};
|
|
2811
|
+
400: components["responses"]["BadRequest"];
|
|
2812
|
+
401: components["responses"]["Unauthorized"];
|
|
2813
|
+
403: components["responses"]["Forbidden"];
|
|
2814
|
+
404: components["responses"]["NotFound"];
|
|
2815
|
+
502: components["responses"]["BadGateway"];
|
|
2816
|
+
};
|
|
2817
|
+
};
|
|
2317
2818
|
startNodeKvmDomain: {
|
|
2318
2819
|
parameters: {
|
|
2319
2820
|
query?: never;
|
|
@@ -3118,19 +3619,26 @@ declare class DomainsResource {
|
|
|
3118
3619
|
type NodeKvmDomain = components["schemas"]["NodeKvmDomain"];
|
|
3119
3620
|
type NodeKvm = components["schemas"]["NodeKvm"];
|
|
3120
3621
|
type NodeKvmPowerResult = components["schemas"]["NodeKvmPowerResult"];
|
|
3622
|
+
type NodeKvmDomainDetail = components["schemas"]["NodeKvmDomainDetail"];
|
|
3623
|
+
type NodeKvmDomainCPU = components["schemas"]["NodeKvmDomainCPU"];
|
|
3624
|
+
type NodeKvmDomainMemory = components["schemas"]["NodeKvmDomainMemory"];
|
|
3625
|
+
type NodeKvmDomainDisks = components["schemas"]["NodeKvmDomainDisks"];
|
|
3626
|
+
type NodeKvmDomainNetwork = components["schemas"]["NodeKvmDomainNetwork"];
|
|
3627
|
+
type NodeKvmDomainConfig = components["schemas"]["NodeKvmDomainConfig"];
|
|
3121
3628
|
/**
|
|
3122
3629
|
* Nested KVM/libvirt surface under `infra.node.kvm`.
|
|
3123
|
-
* HTTP paths and operationIds are unchanged; only the TypeScript namespace moves.
|
|
3124
|
-
*
|
|
3125
|
-
* Extension points (not implemented until OpenAPI grows):
|
|
3126
|
-
* get / stats / suspend / resume / forceStop / reset /
|
|
3127
|
-
* cpu / memory / disks / network / config / snapshots / events
|
|
3128
3630
|
*/
|
|
3129
3631
|
declare class NodeKvmResource {
|
|
3130
3632
|
private readonly client;
|
|
3131
3633
|
private readonly timeoutMs;
|
|
3132
3634
|
constructor(client: OpenAPIClient, timeoutMs: number | undefined);
|
|
3133
3635
|
list(ctx?: RequestContext): Promise<NodeKvm>;
|
|
3636
|
+
get(uuid: string, ctx?: RequestContext): Promise<NodeKvmDomainDetail>;
|
|
3637
|
+
cpu(uuid: string, ctx?: RequestContext): Promise<NodeKvmDomainCPU>;
|
|
3638
|
+
memory(uuid: string, ctx?: RequestContext): Promise<NodeKvmDomainMemory>;
|
|
3639
|
+
disks(uuid: string, ctx?: RequestContext): Promise<NodeKvmDomainDisks>;
|
|
3640
|
+
network(uuid: string, ctx?: RequestContext): Promise<NodeKvmDomainNetwork>;
|
|
3641
|
+
config(uuid: string, ctx?: RequestContext): Promise<NodeKvmDomainConfig>;
|
|
3134
3642
|
start(uuid: string, ctx?: RequestContext): Promise<NodeKvmPowerResult>;
|
|
3135
3643
|
stop(uuid: string, ctx?: RequestContext): Promise<NodeKvmPowerResult>;
|
|
3136
3644
|
reboot(uuid: string, ctx?: RequestContext): Promise<NodeKvmPowerResult>;
|
|
@@ -3272,7 +3780,7 @@ declare class InfraPilotTransportError extends InfraPilotError {
|
|
|
3272
3780
|
}
|
|
3273
3781
|
|
|
3274
3782
|
declare const openapiSourcePath = "../../services/domains/docs/openapi.yaml";
|
|
3275
|
-
declare const openapiSha256 = "
|
|
3276
|
-
declare const generatedAt = "2026-12-
|
|
3783
|
+
declare const openapiSha256 = "81f5827ff9cd933e443ca02fc648f1f9eb7c9e0a2311c8138f2e5be6869aa767";
|
|
3784
|
+
declare const generatedAt = "2026-12-02T13:58:37.404Z";
|
|
3277
3785
|
|
|
3278
|
-
export { type APIKeyCreateInput, type APIKeyCreated, type APIKeyListResponse, type APIKeyPublic, type APIKeyResponse, type APIKeyRotated, type APIKeyUpdateInput, type AuthErrorCode, AuthErrorCodes, type AuthMeResponse, type AuthMode, type BackupListResponse, type BackupRestoreResponse, type CaddyStatusResponse, type CapabilityStatus, type Client, type ClientCreateInput, type ClientListResponse, type ClientResponse, type ClientScope, type ClientUpdateInput, type CredentialsMode, type DetailedHealth, type Domain, type DomainConfigResponse, type DomainCreateInput, type DomainDeleteResponse, type DomainListResponse, type DomainMutationResponse, type DomainProbeResponse, type DomainResponse, type DomainUpdateInput, type Health, InfraPilot, InfraPilotError, type InfraPilotErrorBody, InfraPilotHttpError, type InfraPilotOptions, InfraPilotTransportError, type ListAPIKeysParams, type ListCaddyLogsParams, type ListClientsParams, type ListOperationsParams, type ListProcessesParams, type LogPage, type NodeCapabilitiesReport, type NodeCapability, type NodeIdentity, type NodeKvm, type NodeKvmDomain, type NodeKvmPowerResult, NodeKvmResource, type NodeNetwork, type NodeNetworkAddress, type NodeNetworkInterface, type NodeProcess, type NodeProcesses, type NodeResources, type NodeResponse, type NodeService, type NodeServices, type NodeUpdateInput, type OperationsPage, type PreviewCreateRequest, type PreviewDeleteRequest, type PreviewRequest, type PreviewResponse, type PreviewUpdateRequest, type Principal, type RequestContext, type ResourceWarning, type components, generatedAt, openapiSha256, openapiSourcePath, type operations, type paths };
|
|
3786
|
+
export { type APIKeyCreateInput, type APIKeyCreated, type APIKeyListResponse, type APIKeyPublic, type APIKeyResponse, type APIKeyRotated, type APIKeyUpdateInput, type AuthErrorCode, AuthErrorCodes, type AuthMeResponse, type AuthMode, type BackupListResponse, type BackupRestoreResponse, type CaddyStatusResponse, type CapabilityStatus, type Client, type ClientCreateInput, type ClientListResponse, type ClientResponse, type ClientScope, type ClientUpdateInput, type CredentialsMode, type DetailedHealth, type Domain, type DomainConfigResponse, type DomainCreateInput, type DomainDeleteResponse, type DomainListResponse, type DomainMutationResponse, type DomainProbeResponse, type DomainResponse, type DomainUpdateInput, type Health, InfraPilot, InfraPilotError, type InfraPilotErrorBody, InfraPilotHttpError, type InfraPilotOptions, InfraPilotTransportError, type ListAPIKeysParams, type ListCaddyLogsParams, type ListClientsParams, type ListOperationsParams, type ListProcessesParams, type LogPage, type NodeCapabilitiesReport, type NodeCapability, type NodeIdentity, type NodeKvm, type NodeKvmDomain, type NodeKvmDomainCPU, type NodeKvmDomainConfig, type NodeKvmDomainDetail, type NodeKvmDomainDisks, type NodeKvmDomainMemory, type NodeKvmDomainNetwork, type NodeKvmPowerResult, NodeKvmResource, type NodeNetwork, type NodeNetworkAddress, type NodeNetworkInterface, type NodeProcess, type NodeProcesses, type NodeResources, type NodeResponse, type NodeService, type NodeServices, type NodeUpdateInput, type OperationsPage, type PreviewCreateRequest, type PreviewDeleteRequest, type PreviewRequest, type PreviewResponse, type PreviewUpdateRequest, type Principal, type RequestContext, type ResourceWarning, type components, generatedAt, openapiSha256, openapiSourcePath, type operations, type paths };
|