@infrapilot-jur/sdk 0.2.13 → 0.2.15

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/dist/index.d.cts CHANGED
@@ -493,6 +493,91 @@ interface paths {
493
493
  patch?: never;
494
494
  trace?: never;
495
495
  };
496
+ "/api/v1/node/kvm": {
497
+ parameters: {
498
+ query?: never;
499
+ header?: never;
500
+ path?: never;
501
+ cookie?: never;
502
+ };
503
+ /**
504
+ * Get an on-demand local KVM/libvirt domain snapshot
505
+ * @description Returns libvirt domains discovered via go-libvirt over the local
506
+ * QEMU system socket (prefer `*-sock-ro`). Inventory only — no XML
507
+ * dumps. Power actions live under `/node/kvm/{name}/{start,stop,reboot}`
508
+ * (`kvm:power`). Unavailable metrics appear as null; connection
509
+ * failures appear in `warnings`.
510
+ */
511
+ get: operations["getNodeKvm"];
512
+ put?: never;
513
+ post?: never;
514
+ delete?: never;
515
+ options?: never;
516
+ head?: never;
517
+ patch?: never;
518
+ trace?: never;
519
+ };
520
+ "/api/v1/node/kvm/{name}/start": {
521
+ parameters: {
522
+ query?: never;
523
+ header?: never;
524
+ path?: never;
525
+ cookie?: never;
526
+ };
527
+ get?: never;
528
+ put?: never;
529
+ /**
530
+ * Start a libvirt domain
531
+ * @description Starts a defined domain (`DomainCreate`). Requires `kvm:power` for client
532
+ * keys; Authelia viewers are denied. Admins always allowed.
533
+ */
534
+ post: operations["startNodeKvmDomain"];
535
+ delete?: never;
536
+ options?: never;
537
+ head?: never;
538
+ patch?: never;
539
+ trace?: never;
540
+ };
541
+ "/api/v1/node/kvm/{name}/stop": {
542
+ parameters: {
543
+ query?: never;
544
+ header?: never;
545
+ path?: never;
546
+ cookie?: never;
547
+ };
548
+ get?: never;
549
+ put?: never;
550
+ /**
551
+ * Gracefully stop a libvirt domain
552
+ * @description Requests ACPI shutdown (`DomainShutdown`). Requires `kvm:power`.
553
+ */
554
+ post: operations["stopNodeKvmDomain"];
555
+ delete?: never;
556
+ options?: never;
557
+ head?: never;
558
+ patch?: never;
559
+ trace?: never;
560
+ };
561
+ "/api/v1/node/kvm/{name}/reboot": {
562
+ parameters: {
563
+ query?: never;
564
+ header?: never;
565
+ path?: never;
566
+ cookie?: never;
567
+ };
568
+ get?: never;
569
+ put?: never;
570
+ /**
571
+ * Reboot a libvirt domain
572
+ * @description Requests reboot (`DomainReboot`). Requires `kvm:power`.
573
+ */
574
+ post: operations["rebootNodeKvmDomain"];
575
+ delete?: never;
576
+ options?: never;
577
+ head?: never;
578
+ patch?: never;
579
+ trace?: never;
580
+ };
496
581
  "/api/v1/auth/me": {
497
582
  parameters: {
498
583
  query?: never;
@@ -902,7 +987,7 @@ interface components {
902
987
  limit: number;
903
988
  };
904
989
  /** @enum {string} */
905
- ClientScope: "domains:read" | "domains:write" | "domains:delete" | "domains:health" | "domains:preview";
990
+ ClientScope: "domains:read" | "domains:write" | "domains:delete" | "domains:health" | "domains:preview" | "kvm:read" | "kvm:power";
906
991
  Client: {
907
992
  id: string;
908
993
  name: string;
@@ -1203,6 +1288,31 @@ interface components {
1203
1288
  services: components["schemas"]["NodeService"][];
1204
1289
  warnings: components["schemas"]["ResourceWarning"][];
1205
1290
  };
1291
+ NodeKvmPowerResult: {
1292
+ name: string;
1293
+ /** @enum {string} */
1294
+ action: "start" | "stop" | "reboot";
1295
+ state: string;
1296
+ };
1297
+ NodeKvmDomain: {
1298
+ name: string;
1299
+ uuid: string;
1300
+ id: number | null;
1301
+ state: string;
1302
+ vcpus: number | null;
1303
+ /** Format: int64 */
1304
+ memory_bytes: number | null;
1305
+ /** Format: int64 */
1306
+ max_memory_bytes: number | null;
1307
+ };
1308
+ NodeKvm: {
1309
+ node_id: string;
1310
+ /** Format: date-time */
1311
+ collected_at: string;
1312
+ uri: string;
1313
+ domains: components["schemas"]["NodeKvmDomain"][];
1314
+ warnings: components["schemas"]["ResourceWarning"][];
1315
+ };
1206
1316
  };
1207
1317
  responses: {
1208
1318
  /** @description Missing or invalid bearer token or expired/revoked client key */
@@ -1302,6 +1412,7 @@ interface components {
1302
1412
  };
1303
1413
  };
1304
1414
  parameters: {
1415
+ KvmDomainName: string;
1305
1416
  Hostname: string;
1306
1417
  /** @description Basename only (`Caddyfile.*.bak`). Path traversal is rejected. */
1307
1418
  BackupName: string;
@@ -1346,7 +1457,7 @@ interface operations {
1346
1457
  /**
1347
1458
  * @example {
1348
1459
  * "status": "ok",
1349
- * "version": "0.2.10"
1460
+ * "version": "0.2.12"
1350
1461
  * }
1351
1462
  */
1352
1463
  "application/json": components["schemas"]["Health"];
@@ -2162,6 +2273,109 @@ interface operations {
2162
2273
  403: components["responses"]["Forbidden"];
2163
2274
  };
2164
2275
  };
2276
+ getNodeKvm: {
2277
+ parameters: {
2278
+ query?: never;
2279
+ header?: never;
2280
+ path?: never;
2281
+ cookie?: never;
2282
+ };
2283
+ requestBody?: never;
2284
+ responses: {
2285
+ /** @description Local KVM domain snapshot */
2286
+ 200: {
2287
+ headers: {
2288
+ [name: string]: unknown;
2289
+ };
2290
+ content: {
2291
+ "application/json": components["schemas"]["NodeKvm"];
2292
+ };
2293
+ };
2294
+ 401: components["responses"]["Unauthorized"];
2295
+ 403: components["responses"]["Forbidden"];
2296
+ };
2297
+ };
2298
+ startNodeKvmDomain: {
2299
+ parameters: {
2300
+ query?: never;
2301
+ header?: never;
2302
+ path: {
2303
+ name: components["parameters"]["KvmDomainName"];
2304
+ };
2305
+ cookie?: never;
2306
+ };
2307
+ requestBody?: never;
2308
+ responses: {
2309
+ /** @description Power action result */
2310
+ 200: {
2311
+ headers: {
2312
+ [name: string]: unknown;
2313
+ };
2314
+ content: {
2315
+ "application/json": components["schemas"]["NodeKvmPowerResult"];
2316
+ };
2317
+ };
2318
+ 400: components["responses"]["BadRequest"];
2319
+ 401: components["responses"]["Unauthorized"];
2320
+ 403: components["responses"]["Forbidden"];
2321
+ 404: components["responses"]["NotFound"];
2322
+ 502: components["responses"]["BadGateway"];
2323
+ };
2324
+ };
2325
+ stopNodeKvmDomain: {
2326
+ parameters: {
2327
+ query?: never;
2328
+ header?: never;
2329
+ path: {
2330
+ name: components["parameters"]["KvmDomainName"];
2331
+ };
2332
+ cookie?: never;
2333
+ };
2334
+ requestBody?: never;
2335
+ responses: {
2336
+ /** @description Power action result */
2337
+ 200: {
2338
+ headers: {
2339
+ [name: string]: unknown;
2340
+ };
2341
+ content: {
2342
+ "application/json": components["schemas"]["NodeKvmPowerResult"];
2343
+ };
2344
+ };
2345
+ 400: components["responses"]["BadRequest"];
2346
+ 401: components["responses"]["Unauthorized"];
2347
+ 403: components["responses"]["Forbidden"];
2348
+ 404: components["responses"]["NotFound"];
2349
+ 502: components["responses"]["BadGateway"];
2350
+ };
2351
+ };
2352
+ rebootNodeKvmDomain: {
2353
+ parameters: {
2354
+ query?: never;
2355
+ header?: never;
2356
+ path: {
2357
+ name: components["parameters"]["KvmDomainName"];
2358
+ };
2359
+ cookie?: never;
2360
+ };
2361
+ requestBody?: never;
2362
+ responses: {
2363
+ /** @description Power action result */
2364
+ 200: {
2365
+ headers: {
2366
+ [name: string]: unknown;
2367
+ };
2368
+ content: {
2369
+ "application/json": components["schemas"]["NodeKvmPowerResult"];
2370
+ };
2371
+ };
2372
+ 400: components["responses"]["BadRequest"];
2373
+ 401: components["responses"]["Unauthorized"];
2374
+ 403: components["responses"]["Forbidden"];
2375
+ 404: components["responses"]["NotFound"];
2376
+ 502: components["responses"]["BadGateway"];
2377
+ };
2378
+ };
2165
2379
  getAuthMe: {
2166
2380
  parameters: {
2167
2381
  query?: never;
@@ -2897,6 +3111,9 @@ type NodeNetworkInterface = components["schemas"]["NodeNetworkInterface"];
2897
3111
  type NodeNetwork = components["schemas"]["NodeNetwork"];
2898
3112
  type NodeService = components["schemas"]["NodeService"];
2899
3113
  type NodeServices = components["schemas"]["NodeServices"];
3114
+ type NodeKvmDomain = components["schemas"]["NodeKvmDomain"];
3115
+ type NodeKvm = components["schemas"]["NodeKvm"];
3116
+ type NodeKvmPowerResult = components["schemas"]["NodeKvmPowerResult"];
2900
3117
  declare class NodeResource {
2901
3118
  private readonly client;
2902
3119
  private readonly timeoutMs;
@@ -2908,6 +3125,10 @@ declare class NodeResource {
2908
3125
  processes(params?: ListProcessesParams, ctx?: RequestContext): Promise<NodeProcesses>;
2909
3126
  network(ctx?: RequestContext): Promise<NodeNetwork>;
2910
3127
  services(ctx?: RequestContext): Promise<NodeServices>;
3128
+ kvm(ctx?: RequestContext): Promise<NodeKvm>;
3129
+ kvmStart(name: string, ctx?: RequestContext): Promise<NodeKvmPowerResult>;
3130
+ kvmStop(name: string, ctx?: RequestContext): Promise<NodeKvmPowerResult>;
3131
+ kvmReboot(name: string, ctx?: RequestContext): Promise<NodeKvmPowerResult>;
2911
3132
  }
2912
3133
 
2913
3134
  type OperationsPage = components["schemas"]["OperationsPage"];
@@ -3013,7 +3234,7 @@ declare class InfraPilotTransportError extends InfraPilotError {
3013
3234
  }
3014
3235
 
3015
3236
  declare const openapiSourcePath = "../../services/domains/docs/openapi.yaml";
3016
- declare const openapiSha256 = "8c6708dfe0ad2e25b24e1960c32fdd5f6e490b97c0bf8c7222d9b9652a29efa5";
3017
- declare const generatedAt = "2026-12-02T02:24:31.561Z";
3237
+ declare const openapiSha256 = "091ead244aa1169f6d553eb2565cd7eedebdb891d9fb3a02940ad39791aebbe9";
3238
+ declare const generatedAt = "2026-12-02T10:57:45.732Z";
3018
3239
 
3019
- 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 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 };
3240
+ 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 };
package/dist/index.d.ts CHANGED
@@ -493,6 +493,91 @@ interface paths {
493
493
  patch?: never;
494
494
  trace?: never;
495
495
  };
496
+ "/api/v1/node/kvm": {
497
+ parameters: {
498
+ query?: never;
499
+ header?: never;
500
+ path?: never;
501
+ cookie?: never;
502
+ };
503
+ /**
504
+ * Get an on-demand local KVM/libvirt domain snapshot
505
+ * @description Returns libvirt domains discovered via go-libvirt over the local
506
+ * QEMU system socket (prefer `*-sock-ro`). Inventory only — no XML
507
+ * dumps. Power actions live under `/node/kvm/{name}/{start,stop,reboot}`
508
+ * (`kvm:power`). Unavailable metrics appear as null; connection
509
+ * failures appear in `warnings`.
510
+ */
511
+ get: operations["getNodeKvm"];
512
+ put?: never;
513
+ post?: never;
514
+ delete?: never;
515
+ options?: never;
516
+ head?: never;
517
+ patch?: never;
518
+ trace?: never;
519
+ };
520
+ "/api/v1/node/kvm/{name}/start": {
521
+ parameters: {
522
+ query?: never;
523
+ header?: never;
524
+ path?: never;
525
+ cookie?: never;
526
+ };
527
+ get?: never;
528
+ put?: never;
529
+ /**
530
+ * Start a libvirt domain
531
+ * @description Starts a defined domain (`DomainCreate`). Requires `kvm:power` for client
532
+ * keys; Authelia viewers are denied. Admins always allowed.
533
+ */
534
+ post: operations["startNodeKvmDomain"];
535
+ delete?: never;
536
+ options?: never;
537
+ head?: never;
538
+ patch?: never;
539
+ trace?: never;
540
+ };
541
+ "/api/v1/node/kvm/{name}/stop": {
542
+ parameters: {
543
+ query?: never;
544
+ header?: never;
545
+ path?: never;
546
+ cookie?: never;
547
+ };
548
+ get?: never;
549
+ put?: never;
550
+ /**
551
+ * Gracefully stop a libvirt domain
552
+ * @description Requests ACPI shutdown (`DomainShutdown`). Requires `kvm:power`.
553
+ */
554
+ post: operations["stopNodeKvmDomain"];
555
+ delete?: never;
556
+ options?: never;
557
+ head?: never;
558
+ patch?: never;
559
+ trace?: never;
560
+ };
561
+ "/api/v1/node/kvm/{name}/reboot": {
562
+ parameters: {
563
+ query?: never;
564
+ header?: never;
565
+ path?: never;
566
+ cookie?: never;
567
+ };
568
+ get?: never;
569
+ put?: never;
570
+ /**
571
+ * Reboot a libvirt domain
572
+ * @description Requests reboot (`DomainReboot`). Requires `kvm:power`.
573
+ */
574
+ post: operations["rebootNodeKvmDomain"];
575
+ delete?: never;
576
+ options?: never;
577
+ head?: never;
578
+ patch?: never;
579
+ trace?: never;
580
+ };
496
581
  "/api/v1/auth/me": {
497
582
  parameters: {
498
583
  query?: never;
@@ -902,7 +987,7 @@ interface components {
902
987
  limit: number;
903
988
  };
904
989
  /** @enum {string} */
905
- ClientScope: "domains:read" | "domains:write" | "domains:delete" | "domains:health" | "domains:preview";
990
+ ClientScope: "domains:read" | "domains:write" | "domains:delete" | "domains:health" | "domains:preview" | "kvm:read" | "kvm:power";
906
991
  Client: {
907
992
  id: string;
908
993
  name: string;
@@ -1203,6 +1288,31 @@ interface components {
1203
1288
  services: components["schemas"]["NodeService"][];
1204
1289
  warnings: components["schemas"]["ResourceWarning"][];
1205
1290
  };
1291
+ NodeKvmPowerResult: {
1292
+ name: string;
1293
+ /** @enum {string} */
1294
+ action: "start" | "stop" | "reboot";
1295
+ state: string;
1296
+ };
1297
+ NodeKvmDomain: {
1298
+ name: string;
1299
+ uuid: string;
1300
+ id: number | null;
1301
+ state: string;
1302
+ vcpus: number | null;
1303
+ /** Format: int64 */
1304
+ memory_bytes: number | null;
1305
+ /** Format: int64 */
1306
+ max_memory_bytes: number | null;
1307
+ };
1308
+ NodeKvm: {
1309
+ node_id: string;
1310
+ /** Format: date-time */
1311
+ collected_at: string;
1312
+ uri: string;
1313
+ domains: components["schemas"]["NodeKvmDomain"][];
1314
+ warnings: components["schemas"]["ResourceWarning"][];
1315
+ };
1206
1316
  };
1207
1317
  responses: {
1208
1318
  /** @description Missing or invalid bearer token or expired/revoked client key */
@@ -1302,6 +1412,7 @@ interface components {
1302
1412
  };
1303
1413
  };
1304
1414
  parameters: {
1415
+ KvmDomainName: string;
1305
1416
  Hostname: string;
1306
1417
  /** @description Basename only (`Caddyfile.*.bak`). Path traversal is rejected. */
1307
1418
  BackupName: string;
@@ -1346,7 +1457,7 @@ interface operations {
1346
1457
  /**
1347
1458
  * @example {
1348
1459
  * "status": "ok",
1349
- * "version": "0.2.10"
1460
+ * "version": "0.2.12"
1350
1461
  * }
1351
1462
  */
1352
1463
  "application/json": components["schemas"]["Health"];
@@ -2162,6 +2273,109 @@ interface operations {
2162
2273
  403: components["responses"]["Forbidden"];
2163
2274
  };
2164
2275
  };
2276
+ getNodeKvm: {
2277
+ parameters: {
2278
+ query?: never;
2279
+ header?: never;
2280
+ path?: never;
2281
+ cookie?: never;
2282
+ };
2283
+ requestBody?: never;
2284
+ responses: {
2285
+ /** @description Local KVM domain snapshot */
2286
+ 200: {
2287
+ headers: {
2288
+ [name: string]: unknown;
2289
+ };
2290
+ content: {
2291
+ "application/json": components["schemas"]["NodeKvm"];
2292
+ };
2293
+ };
2294
+ 401: components["responses"]["Unauthorized"];
2295
+ 403: components["responses"]["Forbidden"];
2296
+ };
2297
+ };
2298
+ startNodeKvmDomain: {
2299
+ parameters: {
2300
+ query?: never;
2301
+ header?: never;
2302
+ path: {
2303
+ name: components["parameters"]["KvmDomainName"];
2304
+ };
2305
+ cookie?: never;
2306
+ };
2307
+ requestBody?: never;
2308
+ responses: {
2309
+ /** @description Power action result */
2310
+ 200: {
2311
+ headers: {
2312
+ [name: string]: unknown;
2313
+ };
2314
+ content: {
2315
+ "application/json": components["schemas"]["NodeKvmPowerResult"];
2316
+ };
2317
+ };
2318
+ 400: components["responses"]["BadRequest"];
2319
+ 401: components["responses"]["Unauthorized"];
2320
+ 403: components["responses"]["Forbidden"];
2321
+ 404: components["responses"]["NotFound"];
2322
+ 502: components["responses"]["BadGateway"];
2323
+ };
2324
+ };
2325
+ stopNodeKvmDomain: {
2326
+ parameters: {
2327
+ query?: never;
2328
+ header?: never;
2329
+ path: {
2330
+ name: components["parameters"]["KvmDomainName"];
2331
+ };
2332
+ cookie?: never;
2333
+ };
2334
+ requestBody?: never;
2335
+ responses: {
2336
+ /** @description Power action result */
2337
+ 200: {
2338
+ headers: {
2339
+ [name: string]: unknown;
2340
+ };
2341
+ content: {
2342
+ "application/json": components["schemas"]["NodeKvmPowerResult"];
2343
+ };
2344
+ };
2345
+ 400: components["responses"]["BadRequest"];
2346
+ 401: components["responses"]["Unauthorized"];
2347
+ 403: components["responses"]["Forbidden"];
2348
+ 404: components["responses"]["NotFound"];
2349
+ 502: components["responses"]["BadGateway"];
2350
+ };
2351
+ };
2352
+ rebootNodeKvmDomain: {
2353
+ parameters: {
2354
+ query?: never;
2355
+ header?: never;
2356
+ path: {
2357
+ name: components["parameters"]["KvmDomainName"];
2358
+ };
2359
+ cookie?: never;
2360
+ };
2361
+ requestBody?: never;
2362
+ responses: {
2363
+ /** @description Power action result */
2364
+ 200: {
2365
+ headers: {
2366
+ [name: string]: unknown;
2367
+ };
2368
+ content: {
2369
+ "application/json": components["schemas"]["NodeKvmPowerResult"];
2370
+ };
2371
+ };
2372
+ 400: components["responses"]["BadRequest"];
2373
+ 401: components["responses"]["Unauthorized"];
2374
+ 403: components["responses"]["Forbidden"];
2375
+ 404: components["responses"]["NotFound"];
2376
+ 502: components["responses"]["BadGateway"];
2377
+ };
2378
+ };
2165
2379
  getAuthMe: {
2166
2380
  parameters: {
2167
2381
  query?: never;
@@ -2897,6 +3111,9 @@ type NodeNetworkInterface = components["schemas"]["NodeNetworkInterface"];
2897
3111
  type NodeNetwork = components["schemas"]["NodeNetwork"];
2898
3112
  type NodeService = components["schemas"]["NodeService"];
2899
3113
  type NodeServices = components["schemas"]["NodeServices"];
3114
+ type NodeKvmDomain = components["schemas"]["NodeKvmDomain"];
3115
+ type NodeKvm = components["schemas"]["NodeKvm"];
3116
+ type NodeKvmPowerResult = components["schemas"]["NodeKvmPowerResult"];
2900
3117
  declare class NodeResource {
2901
3118
  private readonly client;
2902
3119
  private readonly timeoutMs;
@@ -2908,6 +3125,10 @@ declare class NodeResource {
2908
3125
  processes(params?: ListProcessesParams, ctx?: RequestContext): Promise<NodeProcesses>;
2909
3126
  network(ctx?: RequestContext): Promise<NodeNetwork>;
2910
3127
  services(ctx?: RequestContext): Promise<NodeServices>;
3128
+ kvm(ctx?: RequestContext): Promise<NodeKvm>;
3129
+ kvmStart(name: string, ctx?: RequestContext): Promise<NodeKvmPowerResult>;
3130
+ kvmStop(name: string, ctx?: RequestContext): Promise<NodeKvmPowerResult>;
3131
+ kvmReboot(name: string, ctx?: RequestContext): Promise<NodeKvmPowerResult>;
2911
3132
  }
2912
3133
 
2913
3134
  type OperationsPage = components["schemas"]["OperationsPage"];
@@ -3013,7 +3234,7 @@ declare class InfraPilotTransportError extends InfraPilotError {
3013
3234
  }
3014
3235
 
3015
3236
  declare const openapiSourcePath = "../../services/domains/docs/openapi.yaml";
3016
- declare const openapiSha256 = "8c6708dfe0ad2e25b24e1960c32fdd5f6e490b97c0bf8c7222d9b9652a29efa5";
3017
- declare const generatedAt = "2026-12-02T02:24:31.561Z";
3237
+ declare const openapiSha256 = "091ead244aa1169f6d553eb2565cd7eedebdb891d9fb3a02940ad39791aebbe9";
3238
+ declare const generatedAt = "2026-12-02T10:57:45.732Z";
3018
3239
 
3019
- 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 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 };
3240
+ 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 };
package/dist/index.js CHANGED
@@ -664,6 +664,47 @@ var NodeResource = class {
664
664
  (signal, headers) => this.client.GET("/api/v1/node/services", buildInit(signal, headers))
665
665
  );
666
666
  }
667
+ kvm(ctx) {
668
+ return execute(
669
+ "getNodeKvm",
670
+ this.timeoutMs,
671
+ ctx,
672
+ (signal, headers) => this.client.GET("/api/v1/node/kvm", buildInit(signal, headers))
673
+ );
674
+ }
675
+ kvmStart(name, ctx) {
676
+ return execute(
677
+ "startNodeKvmDomain",
678
+ this.timeoutMs,
679
+ ctx,
680
+ (signal, headers) => this.client.POST(
681
+ "/api/v1/node/kvm/{name}/start",
682
+ buildInit(signal, headers, { params: { path: { name } } })
683
+ )
684
+ );
685
+ }
686
+ kvmStop(name, ctx) {
687
+ return execute(
688
+ "stopNodeKvmDomain",
689
+ this.timeoutMs,
690
+ ctx,
691
+ (signal, headers) => this.client.POST(
692
+ "/api/v1/node/kvm/{name}/stop",
693
+ buildInit(signal, headers, { params: { path: { name } } })
694
+ )
695
+ );
696
+ }
697
+ kvmReboot(name, ctx) {
698
+ return execute(
699
+ "rebootNodeKvmDomain",
700
+ this.timeoutMs,
701
+ ctx,
702
+ (signal, headers) => this.client.POST(
703
+ "/api/v1/node/kvm/{name}/reboot",
704
+ buildInit(signal, headers, { params: { path: { name } } })
705
+ )
706
+ );
707
+ }
667
708
  };
668
709
 
669
710
  // src/resources/operations.ts
@@ -781,8 +822,8 @@ var InfraPilot = class _InfraPilot {
781
822
 
782
823
  // src/generated/meta.ts
783
824
  var openapiSourcePath = "../../services/domains/docs/openapi.yaml";
784
- var openapiSha256 = "8c6708dfe0ad2e25b24e1960c32fdd5f6e490b97c0bf8c7222d9b9652a29efa5";
785
- var generatedAt = "2026-12-02T02:24:31.561Z";
825
+ var openapiSha256 = "091ead244aa1169f6d553eb2565cd7eedebdb891d9fb3a02940ad39791aebbe9";
826
+ var generatedAt = "2026-12-02T10:57:45.732Z";
786
827
 
787
828
  export { AuthErrorCodes, InfraPilot, InfraPilotError, InfraPilotHttpError, InfraPilotTransportError, generatedAt, openapiSha256, openapiSourcePath };
788
829
  //# sourceMappingURL=index.js.map