@infrapilot-jur/sdk 0.2.8 → 0.2.10
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/README.md +20 -11
- package/dist/index.cjs +16 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +114 -18
- package/dist/index.d.ts +114 -18
- package/dist/index.js +16 -3
- package/dist/index.js.map +1 -1
- package/docs/operation-coverage.md +2 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -80,7 +80,7 @@ interface paths {
|
|
|
80
80
|
path?: never;
|
|
81
81
|
cookie?: never;
|
|
82
82
|
};
|
|
83
|
-
/** Authenticated health
|
|
83
|
+
/** Authenticated detailed health */
|
|
84
84
|
get: operations["getSystemHealth"];
|
|
85
85
|
put?: never;
|
|
86
86
|
post?: never;
|
|
@@ -425,6 +425,29 @@ interface paths {
|
|
|
425
425
|
patch?: never;
|
|
426
426
|
trace?: never;
|
|
427
427
|
};
|
|
428
|
+
"/api/v1/node/processes": {
|
|
429
|
+
parameters: {
|
|
430
|
+
query?: never;
|
|
431
|
+
header?: never;
|
|
432
|
+
path?: never;
|
|
433
|
+
cookie?: never;
|
|
434
|
+
};
|
|
435
|
+
/**
|
|
436
|
+
* Get a bounded local process snapshot (admin only)
|
|
437
|
+
* @description Returns process metadata and resource usage collected on demand. The
|
|
438
|
+
* response is limited to 100 processes by default and may be requested
|
|
439
|
+
* with a limit between 1 and 500. Arguments, environment, executable
|
|
440
|
+
* paths, and open files are never returned.
|
|
441
|
+
*/
|
|
442
|
+
get: operations["getNodeProcesses"];
|
|
443
|
+
put?: never;
|
|
444
|
+
post?: never;
|
|
445
|
+
delete?: never;
|
|
446
|
+
options?: never;
|
|
447
|
+
head?: never;
|
|
448
|
+
patch?: never;
|
|
449
|
+
trace?: never;
|
|
450
|
+
};
|
|
428
451
|
"/api/v1/auth/me": {
|
|
429
452
|
parameters: {
|
|
430
453
|
query?: never;
|
|
@@ -454,13 +477,13 @@ interface paths {
|
|
|
454
477
|
};
|
|
455
478
|
/**
|
|
456
479
|
* List clients (admin only)
|
|
457
|
-
* @description Requires admin
|
|
480
|
+
* @description Requires admin principal (Authelia `infrapilot-admins` or bootstrap `INFRAPILOT_API_KEY`).
|
|
458
481
|
*/
|
|
459
482
|
get: operations["listClients"];
|
|
460
483
|
put?: never;
|
|
461
484
|
/**
|
|
462
485
|
* Create a client (admin only)
|
|
463
|
-
* @description Requires admin
|
|
486
|
+
* @description Requires admin principal (Authelia `infrapilot-admins` or bootstrap `INFRAPILOT_API_KEY`).
|
|
464
487
|
*/
|
|
465
488
|
post: operations["createClient"];
|
|
466
489
|
delete?: never;
|
|
@@ -624,8 +647,12 @@ interface components {
|
|
|
624
647
|
/** @enum {string} */
|
|
625
648
|
status: "ok";
|
|
626
649
|
version: string;
|
|
650
|
+
};
|
|
651
|
+
DetailedHealth: {
|
|
652
|
+
/** @enum {string} */
|
|
653
|
+
status: "ok";
|
|
654
|
+
version: string;
|
|
627
655
|
commit: string;
|
|
628
|
-
/** @description OS hostname. Sensitive when publicly exposed. */
|
|
629
656
|
hostname: string;
|
|
630
657
|
node_id: string;
|
|
631
658
|
/** Format: int64 */
|
|
@@ -639,6 +666,11 @@ interface components {
|
|
|
639
666
|
http_only: boolean;
|
|
640
667
|
/** @description false for complex/unmanaged site blocks */
|
|
641
668
|
managed: boolean;
|
|
669
|
+
/**
|
|
670
|
+
* @description Present on managed domains. True when the site strips the Server header via
|
|
671
|
+
* `header { -Server }` or `import remove_server`.
|
|
672
|
+
*/
|
|
673
|
+
strip_server?: boolean;
|
|
642
674
|
/** @description true when InfraPilot can safely mutate the domain */
|
|
643
675
|
editable?: boolean;
|
|
644
676
|
/** @enum {string} */
|
|
@@ -674,6 +706,8 @@ interface components {
|
|
|
674
706
|
upstreams: string[];
|
|
675
707
|
/** @description When true, site is served as http://hostname */
|
|
676
708
|
http_only?: boolean;
|
|
709
|
+
/** @description When true, render `header { -Server }` before reverse_proxy */
|
|
710
|
+
strip_server?: boolean;
|
|
677
711
|
};
|
|
678
712
|
DomainUpdateInput: {
|
|
679
713
|
/** @description Optional; if present must equal path hostname */
|
|
@@ -682,6 +716,8 @@ interface components {
|
|
|
682
716
|
upstreams?: string[];
|
|
683
717
|
/** @description When omitted, existing TLS mode is preserved */
|
|
684
718
|
http_only?: boolean;
|
|
719
|
+
/** @description When omitted, existing Server-header decoration is preserved */
|
|
720
|
+
strip_server?: boolean;
|
|
685
721
|
};
|
|
686
722
|
PreviewRequest: components["schemas"]["PreviewCreateRequest"] | components["schemas"]["PreviewUpdateRequest"] | components["schemas"]["PreviewDeleteRequest"];
|
|
687
723
|
PreviewCreateRequest: {
|
|
@@ -693,6 +729,7 @@ interface components {
|
|
|
693
729
|
hostname: string;
|
|
694
730
|
upstreams: string[];
|
|
695
731
|
http_only?: boolean;
|
|
732
|
+
strip_server?: boolean;
|
|
696
733
|
};
|
|
697
734
|
PreviewUpdateRequest: {
|
|
698
735
|
/**
|
|
@@ -703,6 +740,7 @@ interface components {
|
|
|
703
740
|
hostname: string;
|
|
704
741
|
upstreams?: string[];
|
|
705
742
|
http_only?: boolean;
|
|
743
|
+
strip_server?: boolean;
|
|
706
744
|
};
|
|
707
745
|
PreviewDeleteRequest: {
|
|
708
746
|
/**
|
|
@@ -920,8 +958,15 @@ interface components {
|
|
|
920
958
|
total: number;
|
|
921
959
|
};
|
|
922
960
|
Principal: {
|
|
961
|
+
/**
|
|
962
|
+
* @description Verified authorization role.
|
|
963
|
+
* @enum {string}
|
|
964
|
+
*/
|
|
965
|
+
type: "admin" | "viewer" | "client";
|
|
966
|
+
username?: string;
|
|
967
|
+
groups?: string[];
|
|
923
968
|
/** @enum {string} */
|
|
924
|
-
|
|
969
|
+
auth_method?: "authelia" | "api_key";
|
|
925
970
|
client_id?: string;
|
|
926
971
|
key_id?: string;
|
|
927
972
|
scopes?: components["schemas"]["ClientScope"][];
|
|
@@ -1041,6 +1086,30 @@ interface components {
|
|
|
1041
1086
|
disks: components["schemas"]["NodeDiskResource"][] | null;
|
|
1042
1087
|
warnings: components["schemas"]["ResourceWarning"][];
|
|
1043
1088
|
};
|
|
1089
|
+
NodeProcess: {
|
|
1090
|
+
/** Format: int32 */
|
|
1091
|
+
pid: number;
|
|
1092
|
+
/** Format: int32 */
|
|
1093
|
+
ppid: number;
|
|
1094
|
+
name: string;
|
|
1095
|
+
username: string | null;
|
|
1096
|
+
status: string | null;
|
|
1097
|
+
cpu_percent: number | null;
|
|
1098
|
+
/** Format: int64 */
|
|
1099
|
+
memory_rss_bytes: number | null;
|
|
1100
|
+
memory_percent: number | null;
|
|
1101
|
+
/** Format: int32 */
|
|
1102
|
+
threads: number | null;
|
|
1103
|
+
/** Format: date-time */
|
|
1104
|
+
started_at: string | null;
|
|
1105
|
+
};
|
|
1106
|
+
NodeProcesses: {
|
|
1107
|
+
node_id: string;
|
|
1108
|
+
/** Format: date-time */
|
|
1109
|
+
collected_at: string;
|
|
1110
|
+
processes: components["schemas"]["NodeProcess"][];
|
|
1111
|
+
warnings: components["schemas"]["ResourceWarning"][];
|
|
1112
|
+
};
|
|
1044
1113
|
};
|
|
1045
1114
|
responses: {
|
|
1046
1115
|
/** @description Missing or invalid bearer token or expired/revoked client key */
|
|
@@ -1184,12 +1253,7 @@ interface operations {
|
|
|
1184
1253
|
/**
|
|
1185
1254
|
* @example {
|
|
1186
1255
|
* "status": "ok",
|
|
1187
|
-
* "version": "0.2.
|
|
1188
|
-
* "commit": "dev",
|
|
1189
|
-
* "hostname": "sp1-sd-jurunense-1",
|
|
1190
|
-
* "node_id": "node-1",
|
|
1191
|
-
* "uptime_seconds": 120,
|
|
1192
|
-
* "started_at": "2026-12-01T14:57:10Z"
|
|
1256
|
+
* "version": "0.2.8"
|
|
1193
1257
|
* }
|
|
1194
1258
|
*/
|
|
1195
1259
|
"application/json": components["schemas"]["Health"];
|
|
@@ -1272,7 +1336,7 @@ interface operations {
|
|
|
1272
1336
|
[name: string]: unknown;
|
|
1273
1337
|
};
|
|
1274
1338
|
content: {
|
|
1275
|
-
"application/json": components["schemas"]["
|
|
1339
|
+
"application/json": components["schemas"]["DetailedHealth"];
|
|
1276
1340
|
};
|
|
1277
1341
|
};
|
|
1278
1342
|
401: components["responses"]["Unauthorized"];
|
|
@@ -1936,6 +2000,31 @@ interface operations {
|
|
|
1936
2000
|
403: components["responses"]["Forbidden"];
|
|
1937
2001
|
};
|
|
1938
2002
|
};
|
|
2003
|
+
getNodeProcesses: {
|
|
2004
|
+
parameters: {
|
|
2005
|
+
query?: {
|
|
2006
|
+
limit?: number;
|
|
2007
|
+
};
|
|
2008
|
+
header?: never;
|
|
2009
|
+
path?: never;
|
|
2010
|
+
cookie?: never;
|
|
2011
|
+
};
|
|
2012
|
+
requestBody?: never;
|
|
2013
|
+
responses: {
|
|
2014
|
+
/** @description Local process snapshot */
|
|
2015
|
+
200: {
|
|
2016
|
+
headers: {
|
|
2017
|
+
[name: string]: unknown;
|
|
2018
|
+
};
|
|
2019
|
+
content: {
|
|
2020
|
+
"application/json": components["schemas"]["NodeProcesses"];
|
|
2021
|
+
};
|
|
2022
|
+
};
|
|
2023
|
+
400: components["responses"]["BadRequest"];
|
|
2024
|
+
401: components["responses"]["Unauthorized"];
|
|
2025
|
+
403: components["responses"]["Forbidden"];
|
|
2026
|
+
};
|
|
2027
|
+
};
|
|
1939
2028
|
getAuthMe: {
|
|
1940
2029
|
parameters: {
|
|
1941
2030
|
query?: never;
|
|
@@ -2491,7 +2580,7 @@ type InfraPilotOptions = {
|
|
|
2491
2580
|
/**
|
|
2492
2581
|
* Optional static bearer token for upstream auth layers.
|
|
2493
2582
|
* Prefer getAccessToken for rotation. Never logged by this SDK.
|
|
2494
|
-
*
|
|
2583
|
+
* Browser session cookies are sent when authMode is session.
|
|
2495
2584
|
*/
|
|
2496
2585
|
apiKey?: string;
|
|
2497
2586
|
getAccessToken?: () => string | undefined | Promise<string | undefined>;
|
|
@@ -2507,7 +2596,8 @@ type InfraPilotOptions = {
|
|
|
2507
2596
|
*/
|
|
2508
2597
|
credentials?: CredentialsMode;
|
|
2509
2598
|
/**
|
|
2510
|
-
*
|
|
2599
|
+
* Optional CSRF header helpers. Authelia cookie mutations are validated by the daemon via
|
|
2600
|
+
* same-origin Origin/Referer; these fields remain for transitional clients only.
|
|
2511
2601
|
*/
|
|
2512
2602
|
csrfToken?: string;
|
|
2513
2603
|
getCsrfToken?: () => string | undefined | Promise<string | undefined>;
|
|
@@ -2564,7 +2654,7 @@ declare class AuthResource {
|
|
|
2564
2654
|
private readonly client;
|
|
2565
2655
|
private readonly timeoutMs;
|
|
2566
2656
|
constructor(client: OpenAPIClient, timeoutMs: number | undefined);
|
|
2567
|
-
/**
|
|
2657
|
+
/** Verified principal introspection from Authelia/Caddy or a programmatic API key. */
|
|
2568
2658
|
me(ctx?: RequestContext): Promise<AuthMeResponse>;
|
|
2569
2659
|
}
|
|
2570
2660
|
|
|
@@ -2660,6 +2750,11 @@ type NodeCapability = components["schemas"]["NodeCapability"];
|
|
|
2660
2750
|
type CapabilityStatus = components["schemas"]["CapabilityStatus"];
|
|
2661
2751
|
type NodeResources = components["schemas"]["NodeResources"];
|
|
2662
2752
|
type ResourceWarning = components["schemas"]["ResourceWarning"];
|
|
2753
|
+
type NodeProcess = components["schemas"]["NodeProcess"];
|
|
2754
|
+
type NodeProcesses = components["schemas"]["NodeProcesses"];
|
|
2755
|
+
type ListProcessesParams = {
|
|
2756
|
+
limit?: number;
|
|
2757
|
+
};
|
|
2663
2758
|
declare class NodeResource {
|
|
2664
2759
|
private readonly client;
|
|
2665
2760
|
private readonly timeoutMs;
|
|
@@ -2668,6 +2763,7 @@ declare class NodeResource {
|
|
|
2668
2763
|
update(body: NodeUpdateInput, ctx?: RequestContext): Promise<NodeResponse>;
|
|
2669
2764
|
capabilities(ctx?: RequestContext): Promise<NodeCapabilitiesReport>;
|
|
2670
2765
|
resources(ctx?: RequestContext): Promise<NodeResources>;
|
|
2766
|
+
processes(params?: ListProcessesParams, ctx?: RequestContext): Promise<NodeProcesses>;
|
|
2671
2767
|
}
|
|
2672
2768
|
|
|
2673
2769
|
type OperationsPage = components["schemas"]["OperationsPage"];
|
|
@@ -2772,7 +2868,7 @@ declare class InfraPilotTransportError extends InfraPilotError {
|
|
|
2772
2868
|
}
|
|
2773
2869
|
|
|
2774
2870
|
declare const openapiSourcePath = "../../services/domains/docs/openapi.yaml";
|
|
2775
|
-
declare const openapiSha256 = "
|
|
2776
|
-
declare const generatedAt = "2026-12-
|
|
2871
|
+
declare const openapiSha256 = "718b213ac2a1db1a73199edf32cefca22327e59aa4a7f654715a38a3804c4f32";
|
|
2872
|
+
declare const generatedAt = "2026-12-02T01:33:30.613Z";
|
|
2777
2873
|
|
|
2778
|
-
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 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 LogPage, type NodeCapabilitiesReport, type NodeCapability, type NodeIdentity, type NodeResources, type NodeResponse, 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 };
|
|
2874
|
+
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 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 NodeProcess, type NodeProcesses, type NodeResources, type NodeResponse, 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
|
@@ -80,7 +80,7 @@ interface paths {
|
|
|
80
80
|
path?: never;
|
|
81
81
|
cookie?: never;
|
|
82
82
|
};
|
|
83
|
-
/** Authenticated health
|
|
83
|
+
/** Authenticated detailed health */
|
|
84
84
|
get: operations["getSystemHealth"];
|
|
85
85
|
put?: never;
|
|
86
86
|
post?: never;
|
|
@@ -425,6 +425,29 @@ interface paths {
|
|
|
425
425
|
patch?: never;
|
|
426
426
|
trace?: never;
|
|
427
427
|
};
|
|
428
|
+
"/api/v1/node/processes": {
|
|
429
|
+
parameters: {
|
|
430
|
+
query?: never;
|
|
431
|
+
header?: never;
|
|
432
|
+
path?: never;
|
|
433
|
+
cookie?: never;
|
|
434
|
+
};
|
|
435
|
+
/**
|
|
436
|
+
* Get a bounded local process snapshot (admin only)
|
|
437
|
+
* @description Returns process metadata and resource usage collected on demand. The
|
|
438
|
+
* response is limited to 100 processes by default and may be requested
|
|
439
|
+
* with a limit between 1 and 500. Arguments, environment, executable
|
|
440
|
+
* paths, and open files are never returned.
|
|
441
|
+
*/
|
|
442
|
+
get: operations["getNodeProcesses"];
|
|
443
|
+
put?: never;
|
|
444
|
+
post?: never;
|
|
445
|
+
delete?: never;
|
|
446
|
+
options?: never;
|
|
447
|
+
head?: never;
|
|
448
|
+
patch?: never;
|
|
449
|
+
trace?: never;
|
|
450
|
+
};
|
|
428
451
|
"/api/v1/auth/me": {
|
|
429
452
|
parameters: {
|
|
430
453
|
query?: never;
|
|
@@ -454,13 +477,13 @@ interface paths {
|
|
|
454
477
|
};
|
|
455
478
|
/**
|
|
456
479
|
* List clients (admin only)
|
|
457
|
-
* @description Requires admin
|
|
480
|
+
* @description Requires admin principal (Authelia `infrapilot-admins` or bootstrap `INFRAPILOT_API_KEY`).
|
|
458
481
|
*/
|
|
459
482
|
get: operations["listClients"];
|
|
460
483
|
put?: never;
|
|
461
484
|
/**
|
|
462
485
|
* Create a client (admin only)
|
|
463
|
-
* @description Requires admin
|
|
486
|
+
* @description Requires admin principal (Authelia `infrapilot-admins` or bootstrap `INFRAPILOT_API_KEY`).
|
|
464
487
|
*/
|
|
465
488
|
post: operations["createClient"];
|
|
466
489
|
delete?: never;
|
|
@@ -624,8 +647,12 @@ interface components {
|
|
|
624
647
|
/** @enum {string} */
|
|
625
648
|
status: "ok";
|
|
626
649
|
version: string;
|
|
650
|
+
};
|
|
651
|
+
DetailedHealth: {
|
|
652
|
+
/** @enum {string} */
|
|
653
|
+
status: "ok";
|
|
654
|
+
version: string;
|
|
627
655
|
commit: string;
|
|
628
|
-
/** @description OS hostname. Sensitive when publicly exposed. */
|
|
629
656
|
hostname: string;
|
|
630
657
|
node_id: string;
|
|
631
658
|
/** Format: int64 */
|
|
@@ -639,6 +666,11 @@ interface components {
|
|
|
639
666
|
http_only: boolean;
|
|
640
667
|
/** @description false for complex/unmanaged site blocks */
|
|
641
668
|
managed: boolean;
|
|
669
|
+
/**
|
|
670
|
+
* @description Present on managed domains. True when the site strips the Server header via
|
|
671
|
+
* `header { -Server }` or `import remove_server`.
|
|
672
|
+
*/
|
|
673
|
+
strip_server?: boolean;
|
|
642
674
|
/** @description true when InfraPilot can safely mutate the domain */
|
|
643
675
|
editable?: boolean;
|
|
644
676
|
/** @enum {string} */
|
|
@@ -674,6 +706,8 @@ interface components {
|
|
|
674
706
|
upstreams: string[];
|
|
675
707
|
/** @description When true, site is served as http://hostname */
|
|
676
708
|
http_only?: boolean;
|
|
709
|
+
/** @description When true, render `header { -Server }` before reverse_proxy */
|
|
710
|
+
strip_server?: boolean;
|
|
677
711
|
};
|
|
678
712
|
DomainUpdateInput: {
|
|
679
713
|
/** @description Optional; if present must equal path hostname */
|
|
@@ -682,6 +716,8 @@ interface components {
|
|
|
682
716
|
upstreams?: string[];
|
|
683
717
|
/** @description When omitted, existing TLS mode is preserved */
|
|
684
718
|
http_only?: boolean;
|
|
719
|
+
/** @description When omitted, existing Server-header decoration is preserved */
|
|
720
|
+
strip_server?: boolean;
|
|
685
721
|
};
|
|
686
722
|
PreviewRequest: components["schemas"]["PreviewCreateRequest"] | components["schemas"]["PreviewUpdateRequest"] | components["schemas"]["PreviewDeleteRequest"];
|
|
687
723
|
PreviewCreateRequest: {
|
|
@@ -693,6 +729,7 @@ interface components {
|
|
|
693
729
|
hostname: string;
|
|
694
730
|
upstreams: string[];
|
|
695
731
|
http_only?: boolean;
|
|
732
|
+
strip_server?: boolean;
|
|
696
733
|
};
|
|
697
734
|
PreviewUpdateRequest: {
|
|
698
735
|
/**
|
|
@@ -703,6 +740,7 @@ interface components {
|
|
|
703
740
|
hostname: string;
|
|
704
741
|
upstreams?: string[];
|
|
705
742
|
http_only?: boolean;
|
|
743
|
+
strip_server?: boolean;
|
|
706
744
|
};
|
|
707
745
|
PreviewDeleteRequest: {
|
|
708
746
|
/**
|
|
@@ -920,8 +958,15 @@ interface components {
|
|
|
920
958
|
total: number;
|
|
921
959
|
};
|
|
922
960
|
Principal: {
|
|
961
|
+
/**
|
|
962
|
+
* @description Verified authorization role.
|
|
963
|
+
* @enum {string}
|
|
964
|
+
*/
|
|
965
|
+
type: "admin" | "viewer" | "client";
|
|
966
|
+
username?: string;
|
|
967
|
+
groups?: string[];
|
|
923
968
|
/** @enum {string} */
|
|
924
|
-
|
|
969
|
+
auth_method?: "authelia" | "api_key";
|
|
925
970
|
client_id?: string;
|
|
926
971
|
key_id?: string;
|
|
927
972
|
scopes?: components["schemas"]["ClientScope"][];
|
|
@@ -1041,6 +1086,30 @@ interface components {
|
|
|
1041
1086
|
disks: components["schemas"]["NodeDiskResource"][] | null;
|
|
1042
1087
|
warnings: components["schemas"]["ResourceWarning"][];
|
|
1043
1088
|
};
|
|
1089
|
+
NodeProcess: {
|
|
1090
|
+
/** Format: int32 */
|
|
1091
|
+
pid: number;
|
|
1092
|
+
/** Format: int32 */
|
|
1093
|
+
ppid: number;
|
|
1094
|
+
name: string;
|
|
1095
|
+
username: string | null;
|
|
1096
|
+
status: string | null;
|
|
1097
|
+
cpu_percent: number | null;
|
|
1098
|
+
/** Format: int64 */
|
|
1099
|
+
memory_rss_bytes: number | null;
|
|
1100
|
+
memory_percent: number | null;
|
|
1101
|
+
/** Format: int32 */
|
|
1102
|
+
threads: number | null;
|
|
1103
|
+
/** Format: date-time */
|
|
1104
|
+
started_at: string | null;
|
|
1105
|
+
};
|
|
1106
|
+
NodeProcesses: {
|
|
1107
|
+
node_id: string;
|
|
1108
|
+
/** Format: date-time */
|
|
1109
|
+
collected_at: string;
|
|
1110
|
+
processes: components["schemas"]["NodeProcess"][];
|
|
1111
|
+
warnings: components["schemas"]["ResourceWarning"][];
|
|
1112
|
+
};
|
|
1044
1113
|
};
|
|
1045
1114
|
responses: {
|
|
1046
1115
|
/** @description Missing or invalid bearer token or expired/revoked client key */
|
|
@@ -1184,12 +1253,7 @@ interface operations {
|
|
|
1184
1253
|
/**
|
|
1185
1254
|
* @example {
|
|
1186
1255
|
* "status": "ok",
|
|
1187
|
-
* "version": "0.2.
|
|
1188
|
-
* "commit": "dev",
|
|
1189
|
-
* "hostname": "sp1-sd-jurunense-1",
|
|
1190
|
-
* "node_id": "node-1",
|
|
1191
|
-
* "uptime_seconds": 120,
|
|
1192
|
-
* "started_at": "2026-12-01T14:57:10Z"
|
|
1256
|
+
* "version": "0.2.8"
|
|
1193
1257
|
* }
|
|
1194
1258
|
*/
|
|
1195
1259
|
"application/json": components["schemas"]["Health"];
|
|
@@ -1272,7 +1336,7 @@ interface operations {
|
|
|
1272
1336
|
[name: string]: unknown;
|
|
1273
1337
|
};
|
|
1274
1338
|
content: {
|
|
1275
|
-
"application/json": components["schemas"]["
|
|
1339
|
+
"application/json": components["schemas"]["DetailedHealth"];
|
|
1276
1340
|
};
|
|
1277
1341
|
};
|
|
1278
1342
|
401: components["responses"]["Unauthorized"];
|
|
@@ -1936,6 +2000,31 @@ interface operations {
|
|
|
1936
2000
|
403: components["responses"]["Forbidden"];
|
|
1937
2001
|
};
|
|
1938
2002
|
};
|
|
2003
|
+
getNodeProcesses: {
|
|
2004
|
+
parameters: {
|
|
2005
|
+
query?: {
|
|
2006
|
+
limit?: number;
|
|
2007
|
+
};
|
|
2008
|
+
header?: never;
|
|
2009
|
+
path?: never;
|
|
2010
|
+
cookie?: never;
|
|
2011
|
+
};
|
|
2012
|
+
requestBody?: never;
|
|
2013
|
+
responses: {
|
|
2014
|
+
/** @description Local process snapshot */
|
|
2015
|
+
200: {
|
|
2016
|
+
headers: {
|
|
2017
|
+
[name: string]: unknown;
|
|
2018
|
+
};
|
|
2019
|
+
content: {
|
|
2020
|
+
"application/json": components["schemas"]["NodeProcesses"];
|
|
2021
|
+
};
|
|
2022
|
+
};
|
|
2023
|
+
400: components["responses"]["BadRequest"];
|
|
2024
|
+
401: components["responses"]["Unauthorized"];
|
|
2025
|
+
403: components["responses"]["Forbidden"];
|
|
2026
|
+
};
|
|
2027
|
+
};
|
|
1939
2028
|
getAuthMe: {
|
|
1940
2029
|
parameters: {
|
|
1941
2030
|
query?: never;
|
|
@@ -2491,7 +2580,7 @@ type InfraPilotOptions = {
|
|
|
2491
2580
|
/**
|
|
2492
2581
|
* Optional static bearer token for upstream auth layers.
|
|
2493
2582
|
* Prefer getAccessToken for rotation. Never logged by this SDK.
|
|
2494
|
-
*
|
|
2583
|
+
* Browser session cookies are sent when authMode is session.
|
|
2495
2584
|
*/
|
|
2496
2585
|
apiKey?: string;
|
|
2497
2586
|
getAccessToken?: () => string | undefined | Promise<string | undefined>;
|
|
@@ -2507,7 +2596,8 @@ type InfraPilotOptions = {
|
|
|
2507
2596
|
*/
|
|
2508
2597
|
credentials?: CredentialsMode;
|
|
2509
2598
|
/**
|
|
2510
|
-
*
|
|
2599
|
+
* Optional CSRF header helpers. Authelia cookie mutations are validated by the daemon via
|
|
2600
|
+
* same-origin Origin/Referer; these fields remain for transitional clients only.
|
|
2511
2601
|
*/
|
|
2512
2602
|
csrfToken?: string;
|
|
2513
2603
|
getCsrfToken?: () => string | undefined | Promise<string | undefined>;
|
|
@@ -2564,7 +2654,7 @@ declare class AuthResource {
|
|
|
2564
2654
|
private readonly client;
|
|
2565
2655
|
private readonly timeoutMs;
|
|
2566
2656
|
constructor(client: OpenAPIClient, timeoutMs: number | undefined);
|
|
2567
|
-
/**
|
|
2657
|
+
/** Verified principal introspection from Authelia/Caddy or a programmatic API key. */
|
|
2568
2658
|
me(ctx?: RequestContext): Promise<AuthMeResponse>;
|
|
2569
2659
|
}
|
|
2570
2660
|
|
|
@@ -2660,6 +2750,11 @@ type NodeCapability = components["schemas"]["NodeCapability"];
|
|
|
2660
2750
|
type CapabilityStatus = components["schemas"]["CapabilityStatus"];
|
|
2661
2751
|
type NodeResources = components["schemas"]["NodeResources"];
|
|
2662
2752
|
type ResourceWarning = components["schemas"]["ResourceWarning"];
|
|
2753
|
+
type NodeProcess = components["schemas"]["NodeProcess"];
|
|
2754
|
+
type NodeProcesses = components["schemas"]["NodeProcesses"];
|
|
2755
|
+
type ListProcessesParams = {
|
|
2756
|
+
limit?: number;
|
|
2757
|
+
};
|
|
2663
2758
|
declare class NodeResource {
|
|
2664
2759
|
private readonly client;
|
|
2665
2760
|
private readonly timeoutMs;
|
|
@@ -2668,6 +2763,7 @@ declare class NodeResource {
|
|
|
2668
2763
|
update(body: NodeUpdateInput, ctx?: RequestContext): Promise<NodeResponse>;
|
|
2669
2764
|
capabilities(ctx?: RequestContext): Promise<NodeCapabilitiesReport>;
|
|
2670
2765
|
resources(ctx?: RequestContext): Promise<NodeResources>;
|
|
2766
|
+
processes(params?: ListProcessesParams, ctx?: RequestContext): Promise<NodeProcesses>;
|
|
2671
2767
|
}
|
|
2672
2768
|
|
|
2673
2769
|
type OperationsPage = components["schemas"]["OperationsPage"];
|
|
@@ -2772,7 +2868,7 @@ declare class InfraPilotTransportError extends InfraPilotError {
|
|
|
2772
2868
|
}
|
|
2773
2869
|
|
|
2774
2870
|
declare const openapiSourcePath = "../../services/domains/docs/openapi.yaml";
|
|
2775
|
-
declare const openapiSha256 = "
|
|
2776
|
-
declare const generatedAt = "2026-12-
|
|
2871
|
+
declare const openapiSha256 = "718b213ac2a1db1a73199edf32cefca22327e59aa4a7f654715a38a3804c4f32";
|
|
2872
|
+
declare const generatedAt = "2026-12-02T01:33:30.613Z";
|
|
2777
2873
|
|
|
2778
|
-
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 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 LogPage, type NodeCapabilitiesReport, type NodeCapability, type NodeIdentity, type NodeResources, type NodeResponse, 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 };
|
|
2874
|
+
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 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 NodeProcess, type NodeProcesses, type NodeResources, type NodeResponse, 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
|
@@ -310,7 +310,7 @@ var AuthResource = class {
|
|
|
310
310
|
}
|
|
311
311
|
client;
|
|
312
312
|
timeoutMs;
|
|
313
|
-
/**
|
|
313
|
+
/** Verified principal introspection from Authelia/Caddy or a programmatic API key. */
|
|
314
314
|
me(ctx) {
|
|
315
315
|
return execute(
|
|
316
316
|
"getAuthMe",
|
|
@@ -635,6 +635,19 @@ var NodeResource = class {
|
|
|
635
635
|
(signal, headers) => this.client.GET("/api/v1/node/resources", buildInit(signal, headers))
|
|
636
636
|
);
|
|
637
637
|
}
|
|
638
|
+
processes(params, ctx) {
|
|
639
|
+
const query = {};
|
|
640
|
+
if (params?.limit !== void 0) query.limit = params.limit;
|
|
641
|
+
return execute(
|
|
642
|
+
"getNodeProcesses",
|
|
643
|
+
this.timeoutMs,
|
|
644
|
+
ctx,
|
|
645
|
+
(signal, headers) => this.client.GET(
|
|
646
|
+
"/api/v1/node/processes",
|
|
647
|
+
buildInit(signal, headers, { params: { query } })
|
|
648
|
+
)
|
|
649
|
+
);
|
|
650
|
+
}
|
|
638
651
|
};
|
|
639
652
|
|
|
640
653
|
// src/resources/operations.ts
|
|
@@ -752,8 +765,8 @@ var InfraPilot = class _InfraPilot {
|
|
|
752
765
|
|
|
753
766
|
// src/generated/meta.ts
|
|
754
767
|
var openapiSourcePath = "../../services/domains/docs/openapi.yaml";
|
|
755
|
-
var openapiSha256 = "
|
|
756
|
-
var generatedAt = "2026-12-
|
|
768
|
+
var openapiSha256 = "718b213ac2a1db1a73199edf32cefca22327e59aa4a7f654715a38a3804c4f32";
|
|
769
|
+
var generatedAt = "2026-12-02T01:33:30.613Z";
|
|
757
770
|
|
|
758
771
|
export { AuthErrorCodes, InfraPilot, InfraPilotError, InfraPilotHttpError, InfraPilotTransportError, generatedAt, openapiSha256, openapiSourcePath };
|
|
759
772
|
//# sourceMappingURL=index.js.map
|