@infrapilot-jur/sdk 0.2.17 → 0.4.0
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 +45 -0
- package/README.md +27 -3
- package/dist/index.cjs +118 -39
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +529 -11
- package/dist/index.d.ts +529 -11
- package/dist/index.js +118 -40
- package/dist/index.js.map +1 -1
- package/docs/MIGRATION-0.3.md +30 -0
- package/docs/operation-coverage.md +4 -4
- package/package.json +2 -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;
|
|
@@ -1476,7 +1803,7 @@ interface operations {
|
|
|
1476
1803
|
/**
|
|
1477
1804
|
* @example {
|
|
1478
1805
|
* "status": "ok",
|
|
1479
|
-
* "version": "0.2.
|
|
1806
|
+
* "version": "0.2.15"
|
|
1480
1807
|
* }
|
|
1481
1808
|
*/
|
|
1482
1809
|
"application/json": components["schemas"]["Health"];
|
|
@@ -2314,6 +2641,174 @@ interface operations {
|
|
|
2314
2641
|
403: components["responses"]["Forbidden"];
|
|
2315
2642
|
};
|
|
2316
2643
|
};
|
|
2644
|
+
kvmDomain: {
|
|
2645
|
+
parameters: {
|
|
2646
|
+
query?: never;
|
|
2647
|
+
header?: never;
|
|
2648
|
+
path: {
|
|
2649
|
+
/** @description Stable libvirt domain UUID (not the temporary numeric domain id). */
|
|
2650
|
+
uuid: components["parameters"]["KvmDomainUUID"];
|
|
2651
|
+
};
|
|
2652
|
+
cookie?: never;
|
|
2653
|
+
};
|
|
2654
|
+
requestBody?: never;
|
|
2655
|
+
responses: {
|
|
2656
|
+
/** @description Domain overview */
|
|
2657
|
+
200: {
|
|
2658
|
+
headers: {
|
|
2659
|
+
[name: string]: unknown;
|
|
2660
|
+
};
|
|
2661
|
+
content: {
|
|
2662
|
+
"application/json": components["schemas"]["NodeKvmDomainDetail"];
|
|
2663
|
+
};
|
|
2664
|
+
};
|
|
2665
|
+
400: components["responses"]["BadRequest"];
|
|
2666
|
+
401: components["responses"]["Unauthorized"];
|
|
2667
|
+
403: components["responses"]["Forbidden"];
|
|
2668
|
+
404: components["responses"]["NotFound"];
|
|
2669
|
+
502: components["responses"]["BadGateway"];
|
|
2670
|
+
};
|
|
2671
|
+
};
|
|
2672
|
+
kvmDomainCPU: {
|
|
2673
|
+
parameters: {
|
|
2674
|
+
query?: never;
|
|
2675
|
+
header?: never;
|
|
2676
|
+
path: {
|
|
2677
|
+
/** @description Stable libvirt domain UUID (not the temporary numeric domain id). */
|
|
2678
|
+
uuid: components["parameters"]["KvmDomainUUID"];
|
|
2679
|
+
};
|
|
2680
|
+
cookie?: never;
|
|
2681
|
+
};
|
|
2682
|
+
requestBody?: never;
|
|
2683
|
+
responses: {
|
|
2684
|
+
/** @description CPU report */
|
|
2685
|
+
200: {
|
|
2686
|
+
headers: {
|
|
2687
|
+
[name: string]: unknown;
|
|
2688
|
+
};
|
|
2689
|
+
content: {
|
|
2690
|
+
"application/json": components["schemas"]["NodeKvmDomainCPU"];
|
|
2691
|
+
};
|
|
2692
|
+
};
|
|
2693
|
+
400: components["responses"]["BadRequest"];
|
|
2694
|
+
401: components["responses"]["Unauthorized"];
|
|
2695
|
+
403: components["responses"]["Forbidden"];
|
|
2696
|
+
404: components["responses"]["NotFound"];
|
|
2697
|
+
502: components["responses"]["BadGateway"];
|
|
2698
|
+
};
|
|
2699
|
+
};
|
|
2700
|
+
kvmDomainMemory: {
|
|
2701
|
+
parameters: {
|
|
2702
|
+
query?: never;
|
|
2703
|
+
header?: never;
|
|
2704
|
+
path: {
|
|
2705
|
+
/** @description Stable libvirt domain UUID (not the temporary numeric domain id). */
|
|
2706
|
+
uuid: components["parameters"]["KvmDomainUUID"];
|
|
2707
|
+
};
|
|
2708
|
+
cookie?: never;
|
|
2709
|
+
};
|
|
2710
|
+
requestBody?: never;
|
|
2711
|
+
responses: {
|
|
2712
|
+
/** @description Memory report */
|
|
2713
|
+
200: {
|
|
2714
|
+
headers: {
|
|
2715
|
+
[name: string]: unknown;
|
|
2716
|
+
};
|
|
2717
|
+
content: {
|
|
2718
|
+
"application/json": components["schemas"]["NodeKvmDomainMemory"];
|
|
2719
|
+
};
|
|
2720
|
+
};
|
|
2721
|
+
400: components["responses"]["BadRequest"];
|
|
2722
|
+
401: components["responses"]["Unauthorized"];
|
|
2723
|
+
403: components["responses"]["Forbidden"];
|
|
2724
|
+
404: components["responses"]["NotFound"];
|
|
2725
|
+
502: components["responses"]["BadGateway"];
|
|
2726
|
+
};
|
|
2727
|
+
};
|
|
2728
|
+
kvmDomainDisks: {
|
|
2729
|
+
parameters: {
|
|
2730
|
+
query?: never;
|
|
2731
|
+
header?: never;
|
|
2732
|
+
path: {
|
|
2733
|
+
/** @description Stable libvirt domain UUID (not the temporary numeric domain id). */
|
|
2734
|
+
uuid: components["parameters"]["KvmDomainUUID"];
|
|
2735
|
+
};
|
|
2736
|
+
cookie?: never;
|
|
2737
|
+
};
|
|
2738
|
+
requestBody?: never;
|
|
2739
|
+
responses: {
|
|
2740
|
+
/** @description Disks report */
|
|
2741
|
+
200: {
|
|
2742
|
+
headers: {
|
|
2743
|
+
[name: string]: unknown;
|
|
2744
|
+
};
|
|
2745
|
+
content: {
|
|
2746
|
+
"application/json": components["schemas"]["NodeKvmDomainDisks"];
|
|
2747
|
+
};
|
|
2748
|
+
};
|
|
2749
|
+
400: components["responses"]["BadRequest"];
|
|
2750
|
+
401: components["responses"]["Unauthorized"];
|
|
2751
|
+
403: components["responses"]["Forbidden"];
|
|
2752
|
+
404: components["responses"]["NotFound"];
|
|
2753
|
+
502: components["responses"]["BadGateway"];
|
|
2754
|
+
};
|
|
2755
|
+
};
|
|
2756
|
+
kvmDomainNetwork: {
|
|
2757
|
+
parameters: {
|
|
2758
|
+
query?: never;
|
|
2759
|
+
header?: never;
|
|
2760
|
+
path: {
|
|
2761
|
+
/** @description Stable libvirt domain UUID (not the temporary numeric domain id). */
|
|
2762
|
+
uuid: components["parameters"]["KvmDomainUUID"];
|
|
2763
|
+
};
|
|
2764
|
+
cookie?: never;
|
|
2765
|
+
};
|
|
2766
|
+
requestBody?: never;
|
|
2767
|
+
responses: {
|
|
2768
|
+
/** @description Network report */
|
|
2769
|
+
200: {
|
|
2770
|
+
headers: {
|
|
2771
|
+
[name: string]: unknown;
|
|
2772
|
+
};
|
|
2773
|
+
content: {
|
|
2774
|
+
"application/json": components["schemas"]["NodeKvmDomainNetwork"];
|
|
2775
|
+
};
|
|
2776
|
+
};
|
|
2777
|
+
400: components["responses"]["BadRequest"];
|
|
2778
|
+
401: components["responses"]["Unauthorized"];
|
|
2779
|
+
403: components["responses"]["Forbidden"];
|
|
2780
|
+
404: components["responses"]["NotFound"];
|
|
2781
|
+
502: components["responses"]["BadGateway"];
|
|
2782
|
+
};
|
|
2783
|
+
};
|
|
2784
|
+
kvmDomainConfig: {
|
|
2785
|
+
parameters: {
|
|
2786
|
+
query?: never;
|
|
2787
|
+
header?: never;
|
|
2788
|
+
path: {
|
|
2789
|
+
/** @description Stable libvirt domain UUID (not the temporary numeric domain id). */
|
|
2790
|
+
uuid: components["parameters"]["KvmDomainUUID"];
|
|
2791
|
+
};
|
|
2792
|
+
cookie?: never;
|
|
2793
|
+
};
|
|
2794
|
+
requestBody?: never;
|
|
2795
|
+
responses: {
|
|
2796
|
+
/** @description Config report */
|
|
2797
|
+
200: {
|
|
2798
|
+
headers: {
|
|
2799
|
+
[name: string]: unknown;
|
|
2800
|
+
};
|
|
2801
|
+
content: {
|
|
2802
|
+
"application/json": components["schemas"]["NodeKvmDomainConfig"];
|
|
2803
|
+
};
|
|
2804
|
+
};
|
|
2805
|
+
400: components["responses"]["BadRequest"];
|
|
2806
|
+
401: components["responses"]["Unauthorized"];
|
|
2807
|
+
403: components["responses"]["Forbidden"];
|
|
2808
|
+
404: components["responses"]["NotFound"];
|
|
2809
|
+
502: components["responses"]["BadGateway"];
|
|
2810
|
+
};
|
|
2811
|
+
};
|
|
2317
2812
|
startNodeKvmDomain: {
|
|
2318
2813
|
parameters: {
|
|
2319
2814
|
query?: never;
|
|
@@ -3115,6 +3610,34 @@ declare class DomainsResource {
|
|
|
3115
3610
|
};
|
|
3116
3611
|
}
|
|
3117
3612
|
|
|
3613
|
+
type NodeKvmDomain = components["schemas"]["NodeKvmDomain"];
|
|
3614
|
+
type NodeKvm = components["schemas"]["NodeKvm"];
|
|
3615
|
+
type NodeKvmPowerResult = components["schemas"]["NodeKvmPowerResult"];
|
|
3616
|
+
type NodeKvmDomainDetail = components["schemas"]["NodeKvmDomainDetail"];
|
|
3617
|
+
type NodeKvmDomainCPU = components["schemas"]["NodeKvmDomainCPU"];
|
|
3618
|
+
type NodeKvmDomainMemory = components["schemas"]["NodeKvmDomainMemory"];
|
|
3619
|
+
type NodeKvmDomainDisks = components["schemas"]["NodeKvmDomainDisks"];
|
|
3620
|
+
type NodeKvmDomainNetwork = components["schemas"]["NodeKvmDomainNetwork"];
|
|
3621
|
+
type NodeKvmDomainConfig = components["schemas"]["NodeKvmDomainConfig"];
|
|
3622
|
+
/**
|
|
3623
|
+
* Nested KVM/libvirt surface under `infra.node.kvm`.
|
|
3624
|
+
*/
|
|
3625
|
+
declare class NodeKvmResource {
|
|
3626
|
+
private readonly client;
|
|
3627
|
+
private readonly timeoutMs;
|
|
3628
|
+
constructor(client: OpenAPIClient, timeoutMs: number | undefined);
|
|
3629
|
+
list(ctx?: RequestContext): Promise<NodeKvm>;
|
|
3630
|
+
get(uuid: string, ctx?: RequestContext): Promise<NodeKvmDomainDetail>;
|
|
3631
|
+
cpu(uuid: string, ctx?: RequestContext): Promise<NodeKvmDomainCPU>;
|
|
3632
|
+
memory(uuid: string, ctx?: RequestContext): Promise<NodeKvmDomainMemory>;
|
|
3633
|
+
disks(uuid: string, ctx?: RequestContext): Promise<NodeKvmDomainDisks>;
|
|
3634
|
+
network(uuid: string, ctx?: RequestContext): Promise<NodeKvmDomainNetwork>;
|
|
3635
|
+
config(uuid: string, ctx?: RequestContext): Promise<NodeKvmDomainConfig>;
|
|
3636
|
+
start(uuid: string, ctx?: RequestContext): Promise<NodeKvmPowerResult>;
|
|
3637
|
+
stop(uuid: string, ctx?: RequestContext): Promise<NodeKvmPowerResult>;
|
|
3638
|
+
reboot(uuid: string, ctx?: RequestContext): Promise<NodeKvmPowerResult>;
|
|
3639
|
+
}
|
|
3640
|
+
|
|
3118
3641
|
type NodeIdentity = components["schemas"]["NodeIdentity"];
|
|
3119
3642
|
type NodeResponse = components["schemas"]["NodeResponse"];
|
|
3120
3643
|
type NodeUpdateInput = components["schemas"]["NodeUpdateInput"];
|
|
@@ -3133,12 +3656,11 @@ type NodeNetworkInterface = components["schemas"]["NodeNetworkInterface"];
|
|
|
3133
3656
|
type NodeNetwork = components["schemas"]["NodeNetwork"];
|
|
3134
3657
|
type NodeService = components["schemas"]["NodeService"];
|
|
3135
3658
|
type NodeServices = components["schemas"]["NodeServices"];
|
|
3136
|
-
|
|
3137
|
-
type NodeKvm = components["schemas"]["NodeKvm"];
|
|
3138
|
-
type NodeKvmPowerResult = components["schemas"]["NodeKvmPowerResult"];
|
|
3659
|
+
|
|
3139
3660
|
declare class NodeResource {
|
|
3140
3661
|
private readonly client;
|
|
3141
3662
|
private readonly timeoutMs;
|
|
3663
|
+
readonly kvm: NodeKvmResource;
|
|
3142
3664
|
constructor(client: OpenAPIClient, timeoutMs: number | undefined);
|
|
3143
3665
|
get(ctx?: RequestContext): Promise<NodeResponse>;
|
|
3144
3666
|
update(body: NodeUpdateInput, ctx?: RequestContext): Promise<NodeResponse>;
|
|
@@ -3147,10 +3669,6 @@ declare class NodeResource {
|
|
|
3147
3669
|
processes(params?: ListProcessesParams, ctx?: RequestContext): Promise<NodeProcesses>;
|
|
3148
3670
|
network(ctx?: RequestContext): Promise<NodeNetwork>;
|
|
3149
3671
|
services(ctx?: RequestContext): Promise<NodeServices>;
|
|
3150
|
-
kvm(ctx?: RequestContext): Promise<NodeKvm>;
|
|
3151
|
-
kvmStart(uuid: string, ctx?: RequestContext): Promise<NodeKvmPowerResult>;
|
|
3152
|
-
kvmStop(uuid: string, ctx?: RequestContext): Promise<NodeKvmPowerResult>;
|
|
3153
|
-
kvmReboot(uuid: string, ctx?: RequestContext): Promise<NodeKvmPowerResult>;
|
|
3154
3672
|
}
|
|
3155
3673
|
|
|
3156
3674
|
type OperationsPage = components["schemas"]["OperationsPage"];
|
|
@@ -3256,7 +3774,7 @@ declare class InfraPilotTransportError extends InfraPilotError {
|
|
|
3256
3774
|
}
|
|
3257
3775
|
|
|
3258
3776
|
declare const openapiSourcePath = "../../services/domains/docs/openapi.yaml";
|
|
3259
|
-
declare const openapiSha256 = "
|
|
3260
|
-
declare const generatedAt = "2026-12-02T12:
|
|
3777
|
+
declare const openapiSha256 = "945e763c9d6b89ebd8376b4e6d0c87aabf28b13e4c13aac77c81ad0d2079e065";
|
|
3778
|
+
declare const generatedAt = "2026-12-02T12:54:52.286Z";
|
|
3261
3779
|
|
|
3262
|
-
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, 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 };
|
|
3780
|
+
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 };
|