@infrapilot-jur/sdk 0.2.16 → 0.3.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 +30 -0
- package/README.md +21 -3
- package/dist/index.cjs +56 -43
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +50 -25
- package/dist/index.d.ts +50 -25
- package/dist/index.js +56 -44
- 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
|
@@ -504,9 +504,10 @@ interface paths {
|
|
|
504
504
|
* Get an on-demand local KVM/libvirt domain snapshot
|
|
505
505
|
* @description Returns libvirt domains discovered via go-libvirt over the local
|
|
506
506
|
* QEMU system socket (prefer `*-sock-ro`). Inventory only — no XML
|
|
507
|
-
* dumps. Power actions live under `/node/kvm/{
|
|
508
|
-
* (`kvm:power`).
|
|
509
|
-
*
|
|
507
|
+
* dumps. Power actions live under `/node/kvm/{uuid}/{start,stop,reboot}`
|
|
508
|
+
* (`kvm:power`). Domain identity uses the stable libvirt UUID (not the
|
|
509
|
+
* temporary numeric domain id). Unavailable metrics appear as null;
|
|
510
|
+
* connection failures appear in `warnings`.
|
|
510
511
|
*/
|
|
511
512
|
get: operations["getNodeKvm"];
|
|
512
513
|
put?: never;
|
|
@@ -517,7 +518,7 @@ interface paths {
|
|
|
517
518
|
patch?: never;
|
|
518
519
|
trace?: never;
|
|
519
520
|
};
|
|
520
|
-
"/api/v1/node/kvm/{
|
|
521
|
+
"/api/v1/node/kvm/{uuid}/start": {
|
|
521
522
|
parameters: {
|
|
522
523
|
query?: never;
|
|
523
524
|
header?: never;
|
|
@@ -528,8 +529,9 @@ interface paths {
|
|
|
528
529
|
put?: never;
|
|
529
530
|
/**
|
|
530
531
|
* Start a libvirt domain
|
|
531
|
-
* @description Starts a defined domain (`DomainCreate`)
|
|
532
|
-
* keys; Authelia viewers are denied. Admins always
|
|
532
|
+
* @description Starts a defined domain (`DomainCreate`) looked up by UUID. Requires
|
|
533
|
+
* `kvm:power` for client keys; Authelia viewers are denied. Admins always
|
|
534
|
+
* allowed.
|
|
533
535
|
*/
|
|
534
536
|
post: operations["startNodeKvmDomain"];
|
|
535
537
|
delete?: never;
|
|
@@ -538,7 +540,7 @@ interface paths {
|
|
|
538
540
|
patch?: never;
|
|
539
541
|
trace?: never;
|
|
540
542
|
};
|
|
541
|
-
"/api/v1/node/kvm/{
|
|
543
|
+
"/api/v1/node/kvm/{uuid}/stop": {
|
|
542
544
|
parameters: {
|
|
543
545
|
query?: never;
|
|
544
546
|
header?: never;
|
|
@@ -549,7 +551,7 @@ interface paths {
|
|
|
549
551
|
put?: never;
|
|
550
552
|
/**
|
|
551
553
|
* Gracefully stop a libvirt domain
|
|
552
|
-
* @description Requests ACPI shutdown (`DomainShutdown`). Requires `kvm:power`.
|
|
554
|
+
* @description Requests ACPI shutdown (`DomainShutdown`) by UUID. Requires `kvm:power`.
|
|
553
555
|
*/
|
|
554
556
|
post: operations["stopNodeKvmDomain"];
|
|
555
557
|
delete?: never;
|
|
@@ -558,7 +560,7 @@ interface paths {
|
|
|
558
560
|
patch?: never;
|
|
559
561
|
trace?: never;
|
|
560
562
|
};
|
|
561
|
-
"/api/v1/node/kvm/{
|
|
563
|
+
"/api/v1/node/kvm/{uuid}/reboot": {
|
|
562
564
|
parameters: {
|
|
563
565
|
query?: never;
|
|
564
566
|
header?: never;
|
|
@@ -569,7 +571,7 @@ interface paths {
|
|
|
569
571
|
put?: never;
|
|
570
572
|
/**
|
|
571
573
|
* Reboot a libvirt domain
|
|
572
|
-
* @description Requests reboot (`DomainReboot`). Requires `kvm:power`.
|
|
574
|
+
* @description Requests reboot (`DomainReboot`) by UUID. Requires `kvm:power`.
|
|
573
575
|
*/
|
|
574
576
|
post: operations["rebootNodeKvmDomain"];
|
|
575
577
|
delete?: never;
|
|
@@ -1289,6 +1291,9 @@ interface components {
|
|
|
1289
1291
|
warnings: components["schemas"]["ResourceWarning"][];
|
|
1290
1292
|
};
|
|
1291
1293
|
NodeKvmPowerResult: {
|
|
1294
|
+
/** Format: uuid */
|
|
1295
|
+
uuid: string;
|
|
1296
|
+
/** @description Domain name at the time of the action (UX). */
|
|
1292
1297
|
name: string;
|
|
1293
1298
|
/** @enum {string} */
|
|
1294
1299
|
action: "start" | "stop" | "reboot";
|
|
@@ -1425,7 +1430,8 @@ interface components {
|
|
|
1425
1430
|
};
|
|
1426
1431
|
};
|
|
1427
1432
|
parameters: {
|
|
1428
|
-
|
|
1433
|
+
/** @description Stable libvirt domain UUID (not the temporary numeric domain id). */
|
|
1434
|
+
KvmDomainUUID: string;
|
|
1429
1435
|
Hostname: string;
|
|
1430
1436
|
/** @description Basename only (`Caddyfile.*.bak`). Path traversal is rejected. */
|
|
1431
1437
|
BackupName: string;
|
|
@@ -1470,7 +1476,7 @@ interface operations {
|
|
|
1470
1476
|
/**
|
|
1471
1477
|
* @example {
|
|
1472
1478
|
* "status": "ok",
|
|
1473
|
-
* "version": "0.2.
|
|
1479
|
+
* "version": "0.2.14"
|
|
1474
1480
|
* }
|
|
1475
1481
|
*/
|
|
1476
1482
|
"application/json": components["schemas"]["Health"];
|
|
@@ -2313,7 +2319,8 @@ interface operations {
|
|
|
2313
2319
|
query?: never;
|
|
2314
2320
|
header?: never;
|
|
2315
2321
|
path: {
|
|
2316
|
-
|
|
2322
|
+
/** @description Stable libvirt domain UUID (not the temporary numeric domain id). */
|
|
2323
|
+
uuid: components["parameters"]["KvmDomainUUID"];
|
|
2317
2324
|
};
|
|
2318
2325
|
cookie?: never;
|
|
2319
2326
|
};
|
|
@@ -2340,7 +2347,8 @@ interface operations {
|
|
|
2340
2347
|
query?: never;
|
|
2341
2348
|
header?: never;
|
|
2342
2349
|
path: {
|
|
2343
|
-
|
|
2350
|
+
/** @description Stable libvirt domain UUID (not the temporary numeric domain id). */
|
|
2351
|
+
uuid: components["parameters"]["KvmDomainUUID"];
|
|
2344
2352
|
};
|
|
2345
2353
|
cookie?: never;
|
|
2346
2354
|
};
|
|
@@ -2367,7 +2375,8 @@ interface operations {
|
|
|
2367
2375
|
query?: never;
|
|
2368
2376
|
header?: never;
|
|
2369
2377
|
path: {
|
|
2370
|
-
|
|
2378
|
+
/** @description Stable libvirt domain UUID (not the temporary numeric domain id). */
|
|
2379
|
+
uuid: components["parameters"]["KvmDomainUUID"];
|
|
2371
2380
|
};
|
|
2372
2381
|
cookie?: never;
|
|
2373
2382
|
};
|
|
@@ -3106,6 +3115,27 @@ declare class DomainsResource {
|
|
|
3106
3115
|
};
|
|
3107
3116
|
}
|
|
3108
3117
|
|
|
3118
|
+
type NodeKvmDomain = components["schemas"]["NodeKvmDomain"];
|
|
3119
|
+
type NodeKvm = components["schemas"]["NodeKvm"];
|
|
3120
|
+
type NodeKvmPowerResult = components["schemas"]["NodeKvmPowerResult"];
|
|
3121
|
+
/**
|
|
3122
|
+
* 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
|
+
*/
|
|
3129
|
+
declare class NodeKvmResource {
|
|
3130
|
+
private readonly client;
|
|
3131
|
+
private readonly timeoutMs;
|
|
3132
|
+
constructor(client: OpenAPIClient, timeoutMs: number | undefined);
|
|
3133
|
+
list(ctx?: RequestContext): Promise<NodeKvm>;
|
|
3134
|
+
start(uuid: string, ctx?: RequestContext): Promise<NodeKvmPowerResult>;
|
|
3135
|
+
stop(uuid: string, ctx?: RequestContext): Promise<NodeKvmPowerResult>;
|
|
3136
|
+
reboot(uuid: string, ctx?: RequestContext): Promise<NodeKvmPowerResult>;
|
|
3137
|
+
}
|
|
3138
|
+
|
|
3109
3139
|
type NodeIdentity = components["schemas"]["NodeIdentity"];
|
|
3110
3140
|
type NodeResponse = components["schemas"]["NodeResponse"];
|
|
3111
3141
|
type NodeUpdateInput = components["schemas"]["NodeUpdateInput"];
|
|
@@ -3124,12 +3154,11 @@ type NodeNetworkInterface = components["schemas"]["NodeNetworkInterface"];
|
|
|
3124
3154
|
type NodeNetwork = components["schemas"]["NodeNetwork"];
|
|
3125
3155
|
type NodeService = components["schemas"]["NodeService"];
|
|
3126
3156
|
type NodeServices = components["schemas"]["NodeServices"];
|
|
3127
|
-
|
|
3128
|
-
type NodeKvm = components["schemas"]["NodeKvm"];
|
|
3129
|
-
type NodeKvmPowerResult = components["schemas"]["NodeKvmPowerResult"];
|
|
3157
|
+
|
|
3130
3158
|
declare class NodeResource {
|
|
3131
3159
|
private readonly client;
|
|
3132
3160
|
private readonly timeoutMs;
|
|
3161
|
+
readonly kvm: NodeKvmResource;
|
|
3133
3162
|
constructor(client: OpenAPIClient, timeoutMs: number | undefined);
|
|
3134
3163
|
get(ctx?: RequestContext): Promise<NodeResponse>;
|
|
3135
3164
|
update(body: NodeUpdateInput, ctx?: RequestContext): Promise<NodeResponse>;
|
|
@@ -3138,10 +3167,6 @@ declare class NodeResource {
|
|
|
3138
3167
|
processes(params?: ListProcessesParams, ctx?: RequestContext): Promise<NodeProcesses>;
|
|
3139
3168
|
network(ctx?: RequestContext): Promise<NodeNetwork>;
|
|
3140
3169
|
services(ctx?: RequestContext): Promise<NodeServices>;
|
|
3141
|
-
kvm(ctx?: RequestContext): Promise<NodeKvm>;
|
|
3142
|
-
kvmStart(name: string, ctx?: RequestContext): Promise<NodeKvmPowerResult>;
|
|
3143
|
-
kvmStop(name: string, ctx?: RequestContext): Promise<NodeKvmPowerResult>;
|
|
3144
|
-
kvmReboot(name: string, ctx?: RequestContext): Promise<NodeKvmPowerResult>;
|
|
3145
3170
|
}
|
|
3146
3171
|
|
|
3147
3172
|
type OperationsPage = components["schemas"]["OperationsPage"];
|
|
@@ -3247,7 +3272,7 @@ declare class InfraPilotTransportError extends InfraPilotError {
|
|
|
3247
3272
|
}
|
|
3248
3273
|
|
|
3249
3274
|
declare const openapiSourcePath = "../../services/domains/docs/openapi.yaml";
|
|
3250
|
-
declare const openapiSha256 = "
|
|
3251
|
-
declare const generatedAt = "2026-12-02T12:
|
|
3275
|
+
declare const openapiSha256 = "4ba8737974192def9724f0a6c968a532d456a72d2ebbd6843b6bab749d8c5cfb";
|
|
3276
|
+
declare const generatedAt = "2026-12-02T12:38:24.477Z";
|
|
3252
3277
|
|
|
3253
|
-
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 };
|
|
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -504,9 +504,10 @@ interface paths {
|
|
|
504
504
|
* Get an on-demand local KVM/libvirt domain snapshot
|
|
505
505
|
* @description Returns libvirt domains discovered via go-libvirt over the local
|
|
506
506
|
* QEMU system socket (prefer `*-sock-ro`). Inventory only — no XML
|
|
507
|
-
* dumps. Power actions live under `/node/kvm/{
|
|
508
|
-
* (`kvm:power`).
|
|
509
|
-
*
|
|
507
|
+
* dumps. Power actions live under `/node/kvm/{uuid}/{start,stop,reboot}`
|
|
508
|
+
* (`kvm:power`). Domain identity uses the stable libvirt UUID (not the
|
|
509
|
+
* temporary numeric domain id). Unavailable metrics appear as null;
|
|
510
|
+
* connection failures appear in `warnings`.
|
|
510
511
|
*/
|
|
511
512
|
get: operations["getNodeKvm"];
|
|
512
513
|
put?: never;
|
|
@@ -517,7 +518,7 @@ interface paths {
|
|
|
517
518
|
patch?: never;
|
|
518
519
|
trace?: never;
|
|
519
520
|
};
|
|
520
|
-
"/api/v1/node/kvm/{
|
|
521
|
+
"/api/v1/node/kvm/{uuid}/start": {
|
|
521
522
|
parameters: {
|
|
522
523
|
query?: never;
|
|
523
524
|
header?: never;
|
|
@@ -528,8 +529,9 @@ interface paths {
|
|
|
528
529
|
put?: never;
|
|
529
530
|
/**
|
|
530
531
|
* Start a libvirt domain
|
|
531
|
-
* @description Starts a defined domain (`DomainCreate`)
|
|
532
|
-
* keys; Authelia viewers are denied. Admins always
|
|
532
|
+
* @description Starts a defined domain (`DomainCreate`) looked up by UUID. Requires
|
|
533
|
+
* `kvm:power` for client keys; Authelia viewers are denied. Admins always
|
|
534
|
+
* allowed.
|
|
533
535
|
*/
|
|
534
536
|
post: operations["startNodeKvmDomain"];
|
|
535
537
|
delete?: never;
|
|
@@ -538,7 +540,7 @@ interface paths {
|
|
|
538
540
|
patch?: never;
|
|
539
541
|
trace?: never;
|
|
540
542
|
};
|
|
541
|
-
"/api/v1/node/kvm/{
|
|
543
|
+
"/api/v1/node/kvm/{uuid}/stop": {
|
|
542
544
|
parameters: {
|
|
543
545
|
query?: never;
|
|
544
546
|
header?: never;
|
|
@@ -549,7 +551,7 @@ interface paths {
|
|
|
549
551
|
put?: never;
|
|
550
552
|
/**
|
|
551
553
|
* Gracefully stop a libvirt domain
|
|
552
|
-
* @description Requests ACPI shutdown (`DomainShutdown`). Requires `kvm:power`.
|
|
554
|
+
* @description Requests ACPI shutdown (`DomainShutdown`) by UUID. Requires `kvm:power`.
|
|
553
555
|
*/
|
|
554
556
|
post: operations["stopNodeKvmDomain"];
|
|
555
557
|
delete?: never;
|
|
@@ -558,7 +560,7 @@ interface paths {
|
|
|
558
560
|
patch?: never;
|
|
559
561
|
trace?: never;
|
|
560
562
|
};
|
|
561
|
-
"/api/v1/node/kvm/{
|
|
563
|
+
"/api/v1/node/kvm/{uuid}/reboot": {
|
|
562
564
|
parameters: {
|
|
563
565
|
query?: never;
|
|
564
566
|
header?: never;
|
|
@@ -569,7 +571,7 @@ interface paths {
|
|
|
569
571
|
put?: never;
|
|
570
572
|
/**
|
|
571
573
|
* Reboot a libvirt domain
|
|
572
|
-
* @description Requests reboot (`DomainReboot`). Requires `kvm:power`.
|
|
574
|
+
* @description Requests reboot (`DomainReboot`) by UUID. Requires `kvm:power`.
|
|
573
575
|
*/
|
|
574
576
|
post: operations["rebootNodeKvmDomain"];
|
|
575
577
|
delete?: never;
|
|
@@ -1289,6 +1291,9 @@ interface components {
|
|
|
1289
1291
|
warnings: components["schemas"]["ResourceWarning"][];
|
|
1290
1292
|
};
|
|
1291
1293
|
NodeKvmPowerResult: {
|
|
1294
|
+
/** Format: uuid */
|
|
1295
|
+
uuid: string;
|
|
1296
|
+
/** @description Domain name at the time of the action (UX). */
|
|
1292
1297
|
name: string;
|
|
1293
1298
|
/** @enum {string} */
|
|
1294
1299
|
action: "start" | "stop" | "reboot";
|
|
@@ -1425,7 +1430,8 @@ interface components {
|
|
|
1425
1430
|
};
|
|
1426
1431
|
};
|
|
1427
1432
|
parameters: {
|
|
1428
|
-
|
|
1433
|
+
/** @description Stable libvirt domain UUID (not the temporary numeric domain id). */
|
|
1434
|
+
KvmDomainUUID: string;
|
|
1429
1435
|
Hostname: string;
|
|
1430
1436
|
/** @description Basename only (`Caddyfile.*.bak`). Path traversal is rejected. */
|
|
1431
1437
|
BackupName: string;
|
|
@@ -1470,7 +1476,7 @@ interface operations {
|
|
|
1470
1476
|
/**
|
|
1471
1477
|
* @example {
|
|
1472
1478
|
* "status": "ok",
|
|
1473
|
-
* "version": "0.2.
|
|
1479
|
+
* "version": "0.2.14"
|
|
1474
1480
|
* }
|
|
1475
1481
|
*/
|
|
1476
1482
|
"application/json": components["schemas"]["Health"];
|
|
@@ -2313,7 +2319,8 @@ interface operations {
|
|
|
2313
2319
|
query?: never;
|
|
2314
2320
|
header?: never;
|
|
2315
2321
|
path: {
|
|
2316
|
-
|
|
2322
|
+
/** @description Stable libvirt domain UUID (not the temporary numeric domain id). */
|
|
2323
|
+
uuid: components["parameters"]["KvmDomainUUID"];
|
|
2317
2324
|
};
|
|
2318
2325
|
cookie?: never;
|
|
2319
2326
|
};
|
|
@@ -2340,7 +2347,8 @@ interface operations {
|
|
|
2340
2347
|
query?: never;
|
|
2341
2348
|
header?: never;
|
|
2342
2349
|
path: {
|
|
2343
|
-
|
|
2350
|
+
/** @description Stable libvirt domain UUID (not the temporary numeric domain id). */
|
|
2351
|
+
uuid: components["parameters"]["KvmDomainUUID"];
|
|
2344
2352
|
};
|
|
2345
2353
|
cookie?: never;
|
|
2346
2354
|
};
|
|
@@ -2367,7 +2375,8 @@ interface operations {
|
|
|
2367
2375
|
query?: never;
|
|
2368
2376
|
header?: never;
|
|
2369
2377
|
path: {
|
|
2370
|
-
|
|
2378
|
+
/** @description Stable libvirt domain UUID (not the temporary numeric domain id). */
|
|
2379
|
+
uuid: components["parameters"]["KvmDomainUUID"];
|
|
2371
2380
|
};
|
|
2372
2381
|
cookie?: never;
|
|
2373
2382
|
};
|
|
@@ -3106,6 +3115,27 @@ declare class DomainsResource {
|
|
|
3106
3115
|
};
|
|
3107
3116
|
}
|
|
3108
3117
|
|
|
3118
|
+
type NodeKvmDomain = components["schemas"]["NodeKvmDomain"];
|
|
3119
|
+
type NodeKvm = components["schemas"]["NodeKvm"];
|
|
3120
|
+
type NodeKvmPowerResult = components["schemas"]["NodeKvmPowerResult"];
|
|
3121
|
+
/**
|
|
3122
|
+
* 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
|
+
*/
|
|
3129
|
+
declare class NodeKvmResource {
|
|
3130
|
+
private readonly client;
|
|
3131
|
+
private readonly timeoutMs;
|
|
3132
|
+
constructor(client: OpenAPIClient, timeoutMs: number | undefined);
|
|
3133
|
+
list(ctx?: RequestContext): Promise<NodeKvm>;
|
|
3134
|
+
start(uuid: string, ctx?: RequestContext): Promise<NodeKvmPowerResult>;
|
|
3135
|
+
stop(uuid: string, ctx?: RequestContext): Promise<NodeKvmPowerResult>;
|
|
3136
|
+
reboot(uuid: string, ctx?: RequestContext): Promise<NodeKvmPowerResult>;
|
|
3137
|
+
}
|
|
3138
|
+
|
|
3109
3139
|
type NodeIdentity = components["schemas"]["NodeIdentity"];
|
|
3110
3140
|
type NodeResponse = components["schemas"]["NodeResponse"];
|
|
3111
3141
|
type NodeUpdateInput = components["schemas"]["NodeUpdateInput"];
|
|
@@ -3124,12 +3154,11 @@ type NodeNetworkInterface = components["schemas"]["NodeNetworkInterface"];
|
|
|
3124
3154
|
type NodeNetwork = components["schemas"]["NodeNetwork"];
|
|
3125
3155
|
type NodeService = components["schemas"]["NodeService"];
|
|
3126
3156
|
type NodeServices = components["schemas"]["NodeServices"];
|
|
3127
|
-
|
|
3128
|
-
type NodeKvm = components["schemas"]["NodeKvm"];
|
|
3129
|
-
type NodeKvmPowerResult = components["schemas"]["NodeKvmPowerResult"];
|
|
3157
|
+
|
|
3130
3158
|
declare class NodeResource {
|
|
3131
3159
|
private readonly client;
|
|
3132
3160
|
private readonly timeoutMs;
|
|
3161
|
+
readonly kvm: NodeKvmResource;
|
|
3133
3162
|
constructor(client: OpenAPIClient, timeoutMs: number | undefined);
|
|
3134
3163
|
get(ctx?: RequestContext): Promise<NodeResponse>;
|
|
3135
3164
|
update(body: NodeUpdateInput, ctx?: RequestContext): Promise<NodeResponse>;
|
|
@@ -3138,10 +3167,6 @@ declare class NodeResource {
|
|
|
3138
3167
|
processes(params?: ListProcessesParams, ctx?: RequestContext): Promise<NodeProcesses>;
|
|
3139
3168
|
network(ctx?: RequestContext): Promise<NodeNetwork>;
|
|
3140
3169
|
services(ctx?: RequestContext): Promise<NodeServices>;
|
|
3141
|
-
kvm(ctx?: RequestContext): Promise<NodeKvm>;
|
|
3142
|
-
kvmStart(name: string, ctx?: RequestContext): Promise<NodeKvmPowerResult>;
|
|
3143
|
-
kvmStop(name: string, ctx?: RequestContext): Promise<NodeKvmPowerResult>;
|
|
3144
|
-
kvmReboot(name: string, ctx?: RequestContext): Promise<NodeKvmPowerResult>;
|
|
3145
3170
|
}
|
|
3146
3171
|
|
|
3147
3172
|
type OperationsPage = components["schemas"]["OperationsPage"];
|
|
@@ -3247,7 +3272,7 @@ declare class InfraPilotTransportError extends InfraPilotError {
|
|
|
3247
3272
|
}
|
|
3248
3273
|
|
|
3249
3274
|
declare const openapiSourcePath = "../../services/domains/docs/openapi.yaml";
|
|
3250
|
-
declare const openapiSha256 = "
|
|
3251
|
-
declare const generatedAt = "2026-12-02T12:
|
|
3275
|
+
declare const openapiSha256 = "4ba8737974192def9724f0a6c968a532d456a72d2ebbd6843b6bab749d8c5cfb";
|
|
3276
|
+
declare const generatedAt = "2026-12-02T12:38:24.477Z";
|
|
3252
3277
|
|
|
3253
|
-
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 };
|
|
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 };
|
package/dist/index.js
CHANGED
|
@@ -595,14 +595,67 @@ var DomainsResource = class {
|
|
|
595
595
|
};
|
|
596
596
|
};
|
|
597
597
|
|
|
598
|
+
// src/resources/kvm.ts
|
|
599
|
+
var NodeKvmResource = class {
|
|
600
|
+
constructor(client, timeoutMs) {
|
|
601
|
+
this.client = client;
|
|
602
|
+
this.timeoutMs = timeoutMs;
|
|
603
|
+
}
|
|
604
|
+
client;
|
|
605
|
+
timeoutMs;
|
|
606
|
+
list(ctx) {
|
|
607
|
+
return execute(
|
|
608
|
+
"getNodeKvm",
|
|
609
|
+
this.timeoutMs,
|
|
610
|
+
ctx,
|
|
611
|
+
(signal, headers) => this.client.GET("/api/v1/node/kvm", buildInit(signal, headers))
|
|
612
|
+
);
|
|
613
|
+
}
|
|
614
|
+
start(uuid, ctx) {
|
|
615
|
+
return execute(
|
|
616
|
+
"startNodeKvmDomain",
|
|
617
|
+
this.timeoutMs,
|
|
618
|
+
ctx,
|
|
619
|
+
(signal, headers) => this.client.POST(
|
|
620
|
+
"/api/v1/node/kvm/{uuid}/start",
|
|
621
|
+
buildInit(signal, headers, { params: { path: { uuid } } })
|
|
622
|
+
)
|
|
623
|
+
);
|
|
624
|
+
}
|
|
625
|
+
stop(uuid, ctx) {
|
|
626
|
+
return execute(
|
|
627
|
+
"stopNodeKvmDomain",
|
|
628
|
+
this.timeoutMs,
|
|
629
|
+
ctx,
|
|
630
|
+
(signal, headers) => this.client.POST(
|
|
631
|
+
"/api/v1/node/kvm/{uuid}/stop",
|
|
632
|
+
buildInit(signal, headers, { params: { path: { uuid } } })
|
|
633
|
+
)
|
|
634
|
+
);
|
|
635
|
+
}
|
|
636
|
+
reboot(uuid, ctx) {
|
|
637
|
+
return execute(
|
|
638
|
+
"rebootNodeKvmDomain",
|
|
639
|
+
this.timeoutMs,
|
|
640
|
+
ctx,
|
|
641
|
+
(signal, headers) => this.client.POST(
|
|
642
|
+
"/api/v1/node/kvm/{uuid}/reboot",
|
|
643
|
+
buildInit(signal, headers, { params: { path: { uuid } } })
|
|
644
|
+
)
|
|
645
|
+
);
|
|
646
|
+
}
|
|
647
|
+
};
|
|
648
|
+
|
|
598
649
|
// src/resources/node.ts
|
|
599
650
|
var NodeResource = class {
|
|
600
651
|
constructor(client, timeoutMs) {
|
|
601
652
|
this.client = client;
|
|
602
653
|
this.timeoutMs = timeoutMs;
|
|
654
|
+
this.kvm = new NodeKvmResource(client, timeoutMs);
|
|
603
655
|
}
|
|
604
656
|
client;
|
|
605
657
|
timeoutMs;
|
|
658
|
+
kvm;
|
|
606
659
|
get(ctx) {
|
|
607
660
|
return execute(
|
|
608
661
|
"getNode",
|
|
@@ -664,47 +717,6 @@ var NodeResource = class {
|
|
|
664
717
|
(signal, headers) => this.client.GET("/api/v1/node/services", buildInit(signal, headers))
|
|
665
718
|
);
|
|
666
719
|
}
|
|
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
|
-
}
|
|
708
720
|
};
|
|
709
721
|
|
|
710
722
|
// src/resources/operations.ts
|
|
@@ -822,9 +834,9 @@ var InfraPilot = class _InfraPilot {
|
|
|
822
834
|
|
|
823
835
|
// src/generated/meta.ts
|
|
824
836
|
var openapiSourcePath = "../../services/domains/docs/openapi.yaml";
|
|
825
|
-
var openapiSha256 = "
|
|
826
|
-
var generatedAt = "2026-12-02T12:
|
|
837
|
+
var openapiSha256 = "4ba8737974192def9724f0a6c968a532d456a72d2ebbd6843b6bab749d8c5cfb";
|
|
838
|
+
var generatedAt = "2026-12-02T12:38:24.477Z";
|
|
827
839
|
|
|
828
|
-
export { AuthErrorCodes, InfraPilot, InfraPilotError, InfraPilotHttpError, InfraPilotTransportError, generatedAt, openapiSha256, openapiSourcePath };
|
|
840
|
+
export { AuthErrorCodes, InfraPilot, InfraPilotError, InfraPilotHttpError, InfraPilotTransportError, NodeKvmResource, generatedAt, openapiSha256, openapiSourcePath };
|
|
829
841
|
//# sourceMappingURL=index.js.map
|
|
830
842
|
//# sourceMappingURL=index.js.map
|