@infrapilot-jur/sdk 0.2.6 → 0.2.8

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
@@ -400,41 +400,25 @@ interface paths {
400
400
  patch?: never;
401
401
  trace?: never;
402
402
  };
403
- "/api/v1/auth/login": {
403
+ "/api/v1/node/resources": {
404
404
  parameters: {
405
405
  query?: never;
406
406
  header?: never;
407
407
  path?: never;
408
408
  cookie?: never;
409
409
  };
410
- get?: never;
411
- put?: never;
412
410
  /**
413
- * Create a web session (HttpOnly cookie)
414
- * @description Public endpoint. Accepts an admin or client API key once, sets `infrapilot_session` HttpOnly cookie,
415
- * and returns a CSRF token for subsequent mutating requests. Do not persist the API key in browser storage.
411
+ * Get an on-demand local resource snapshot (admin only)
412
+ * @description Collects CPU, memory, swap, load, local disk, and host information.
413
+ * The snapshot is collected synchronously and is not persisted. Memory
414
+ * `available_bytes` is the memory estimated available to applications;
415
+ * `used_bytes` and `used_percent` follow the operating system's
416
+ * gopsutil interpretation. Unavailable metrics are null and collection
417
+ * failures are reported in `warnings`.
416
418
  */
417
- post: operations["loginAuth"];
418
- delete?: never;
419
- options?: never;
420
- head?: never;
421
- patch?: never;
422
- trace?: never;
423
- };
424
- "/api/v1/auth/logout": {
425
- parameters: {
426
- query?: never;
427
- header?: never;
428
- path?: never;
429
- cookie?: never;
430
- };
431
- get?: never;
419
+ get: operations["getNodeResources"];
432
420
  put?: never;
433
- /**
434
- * End the current web session
435
- * @description Requires session cookie + CSRF header when using cookie auth. Clears the session cookie.
436
- */
437
- post: operations["logoutAuth"];
421
+ post?: never;
438
422
  delete?: never;
439
423
  options?: never;
440
424
  head?: never;
@@ -449,9 +433,8 @@ interface paths {
449
433
  cookie?: never;
450
434
  };
451
435
  /**
452
- * Return the authenticated principal
453
- * @description Accepts admin bearer or a valid client `infra_live_*` key.
454
- * Client keys receive scopes, rate limit, and expiry metadata; admin returns `type: admin` only.
436
+ * Return the local principal
437
+ * @description Returns the daemon-local admin principal. Authentication is not performed by this service.
455
438
  */
456
439
  get: operations["getAuthMe"];
457
440
  put?: never;
@@ -950,20 +933,6 @@ interface components {
950
933
  /** Format: date-time */
951
934
  client_access_expires_at?: string;
952
935
  };
953
- AuthLoginRequest: {
954
- /** @description Admin bearer or infra_live_* key used only to establish the session */
955
- api_key: string;
956
- };
957
- AuthLoginResponse: {
958
- principal: components["schemas"]["Principal"];
959
- /** @description Send as X-CSRF-Token on mutating cookie-authenticated requests; keep in memory only */
960
- csrf_token: string;
961
- /** Format: date-time */
962
- expires_at: string;
963
- };
964
- AuthLogoutResponse: {
965
- ok: boolean;
966
- };
967
936
  AuthMeResponse: {
968
937
  principal: components["schemas"]["Principal"];
969
938
  };
@@ -1005,6 +974,73 @@ interface components {
1005
974
  collected_at: string;
1006
975
  capabilities: components["schemas"]["NodeCapability"][];
1007
976
  };
977
+ ResourceWarning: {
978
+ metric: string;
979
+ code: string;
980
+ message: string;
981
+ };
982
+ NodeCPUResources: {
983
+ logical_cores: number | null;
984
+ usage_percent: number | null;
985
+ sample_window_seconds: number | null;
986
+ };
987
+ NodeMemoryResources: {
988
+ /** Format: int64 */
989
+ total_bytes: number | null;
990
+ /** Format: int64 */
991
+ used_bytes: number | null;
992
+ /** Format: int64 */
993
+ available_bytes: number | null;
994
+ used_percent: number | null;
995
+ };
996
+ NodeSwapResources: {
997
+ /** Format: int64 */
998
+ total_bytes: number | null;
999
+ /** Format: int64 */
1000
+ used_bytes: number | null;
1001
+ /** Format: int64 */
1002
+ free_bytes: number | null;
1003
+ used_percent: number | null;
1004
+ };
1005
+ NodeLoadResources: {
1006
+ one_minute: number | null;
1007
+ five_minutes: number | null;
1008
+ fifteen_minutes: number | null;
1009
+ };
1010
+ NodeHostResources: {
1011
+ hostname: string | null;
1012
+ os: string | null;
1013
+ platform: string | null;
1014
+ platform_family: string | null;
1015
+ platform_version: string | null;
1016
+ kernel_version: string | null;
1017
+ /** Format: int64 */
1018
+ uptime_seconds: number | null;
1019
+ };
1020
+ NodeDiskResource: {
1021
+ mountpoint: string;
1022
+ filesystem: string;
1023
+ fs_type: string;
1024
+ /** Format: int64 */
1025
+ total_bytes: number;
1026
+ /** Format: int64 */
1027
+ used_bytes: number;
1028
+ /** Format: int64 */
1029
+ free_bytes: number;
1030
+ used_percent: number;
1031
+ };
1032
+ NodeResources: {
1033
+ node_id: string;
1034
+ /** Format: date-time */
1035
+ collected_at: string;
1036
+ cpu: components["schemas"]["NodeCPUResources"];
1037
+ memory: components["schemas"]["NodeMemoryResources"];
1038
+ swap: components["schemas"]["NodeSwapResources"];
1039
+ load: components["schemas"]["NodeLoadResources"];
1040
+ host: components["schemas"]["NodeHostResources"];
1041
+ disks: components["schemas"]["NodeDiskResource"][] | null;
1042
+ warnings: components["schemas"]["ResourceWarning"][];
1043
+ };
1008
1044
  };
1009
1045
  responses: {
1010
1046
  /** @description Missing or invalid bearer token or expired/revoked client key */
@@ -1878,35 +1914,7 @@ interface operations {
1878
1914
  403: components["responses"]["Forbidden"];
1879
1915
  };
1880
1916
  };
1881
- loginAuth: {
1882
- parameters: {
1883
- query?: never;
1884
- header?: never;
1885
- path?: never;
1886
- cookie?: never;
1887
- };
1888
- requestBody: {
1889
- content: {
1890
- "application/json": components["schemas"]["AuthLoginRequest"];
1891
- };
1892
- };
1893
- responses: {
1894
- /** @description Session established */
1895
- 200: {
1896
- headers: {
1897
- /** @description HttpOnly session cookie */
1898
- "Set-Cookie"?: string;
1899
- [name: string]: unknown;
1900
- };
1901
- content: {
1902
- "application/json": components["schemas"]["AuthLoginResponse"];
1903
- };
1904
- };
1905
- 401: components["responses"]["Unauthorized"];
1906
- 403: components["responses"]["Forbidden"];
1907
- };
1908
- };
1909
- logoutAuth: {
1917
+ getNodeResources: {
1910
1918
  parameters: {
1911
1919
  query?: never;
1912
1920
  header?: never;
@@ -1915,13 +1923,13 @@ interface operations {
1915
1923
  };
1916
1924
  requestBody?: never;
1917
1925
  responses: {
1918
- /** @description Logged out */
1926
+ /** @description Node resources snapshot */
1919
1927
  200: {
1920
1928
  headers: {
1921
1929
  [name: string]: unknown;
1922
1930
  };
1923
1931
  content: {
1924
- "application/json": components["schemas"]["AuthLogoutResponse"];
1932
+ "application/json": components["schemas"]["NodeResources"];
1925
1933
  };
1926
1934
  };
1927
1935
  401: components["responses"]["Unauthorized"];
@@ -2476,27 +2484,30 @@ interface operations {
2476
2484
  };
2477
2485
  }
2478
2486
 
2479
- type AuthMode = "bearer" | "session";
2487
+ type AuthMode = "none" | "bearer" | "session";
2480
2488
  type CredentialsMode = RequestCredentials;
2481
2489
  type InfraPilotOptions = {
2482
2490
  baseUrl: string;
2483
2491
  /**
2484
- * Static bearer token. Prefer getAccessToken for rotation.
2485
- * Never logged by this SDK.
2492
+ * Optional static bearer token for upstream auth layers.
2493
+ * Prefer getAccessToken for rotation. Never logged by this SDK.
2494
+ * The domains daemon currently ignores credentials.
2486
2495
  */
2487
2496
  apiKey?: string;
2488
2497
  getAccessToken?: () => string | undefined | Promise<string | undefined>;
2489
2498
  /**
2490
- * Prepared for same-origin cookie session auth.
2491
- * When "session", Authorization bearer is omitted unless apiKey/getAccessToken is also set.
2499
+ * Auth header behavior.
2500
+ * - "none" (default): do not send Authorization unless apiKey/getAccessToken is set.
2501
+ * - "bearer": send Authorization when a token is available.
2502
+ * - "session": legacy alias; cookie/CSRF helpers remain for transitional clients.
2492
2503
  */
2493
2504
  authMode?: AuthMode;
2494
2505
  /**
2495
- * Fetch credentials mode. Defaults to "omit" for bearer, "same-origin" for session.
2506
+ * Fetch credentials mode. Defaults to "same-origin" for session, otherwise "omit".
2496
2507
  */
2497
2508
  credentials?: CredentialsMode;
2498
2509
  /**
2499
- * CSRF token for session-authenticated mutating requests.
2510
+ * Legacy CSRF helpers for transitional clients. The domains daemon no longer validates CSRF.
2500
2511
  */
2501
2512
  csrfToken?: string;
2502
2513
  getCsrfToken?: () => string | undefined | Promise<string | undefined>;
@@ -2549,20 +2560,11 @@ declare class ApiKeysResource {
2549
2560
 
2550
2561
  type Principal = components["schemas"]["Principal"];
2551
2562
  type AuthMeResponse = components["schemas"]["AuthMeResponse"];
2552
- type AuthLoginRequest = components["schemas"]["AuthLoginRequest"];
2553
- type AuthLoginResponse = components["schemas"]["AuthLoginResponse"];
2554
- type AuthLogoutResponse = components["schemas"]["AuthLogoutResponse"];
2555
2563
  declare class AuthResource {
2556
2564
  private readonly client;
2557
2565
  private readonly timeoutMs;
2558
2566
  constructor(client: OpenAPIClient, timeoutMs: number | undefined);
2559
- /**
2560
- * Exchange an API key for an HttpOnly session cookie + CSRF token.
2561
- * Keep `csrf_token` in memory only. Never persist the API key in localStorage.
2562
- */
2563
- login(body: AuthLoginRequest, ctx?: RequestContext): Promise<AuthLoginResponse>;
2564
- /** End the current web session (requires CSRF when using cookie auth). */
2565
- logout(ctx?: RequestContext): Promise<AuthLogoutResponse>;
2567
+ /** Local principal introspection. The domains daemon does not authenticate callers. */
2566
2568
  me(ctx?: RequestContext): Promise<AuthMeResponse>;
2567
2569
  }
2568
2570
 
@@ -2656,6 +2658,8 @@ type NodeUpdateInput = components["schemas"]["NodeUpdateInput"];
2656
2658
  type NodeCapabilitiesReport = components["schemas"]["NodeCapabilitiesReport"];
2657
2659
  type NodeCapability = components["schemas"]["NodeCapability"];
2658
2660
  type CapabilityStatus = components["schemas"]["CapabilityStatus"];
2661
+ type NodeResources = components["schemas"]["NodeResources"];
2662
+ type ResourceWarning = components["schemas"]["ResourceWarning"];
2659
2663
  declare class NodeResource {
2660
2664
  private readonly client;
2661
2665
  private readonly timeoutMs;
@@ -2663,6 +2667,7 @@ declare class NodeResource {
2663
2667
  get(ctx?: RequestContext): Promise<NodeResponse>;
2664
2668
  update(body: NodeUpdateInput, ctx?: RequestContext): Promise<NodeResponse>;
2665
2669
  capabilities(ctx?: RequestContext): Promise<NodeCapabilitiesReport>;
2670
+ resources(ctx?: RequestContext): Promise<NodeResources>;
2666
2671
  }
2667
2672
 
2668
2673
  type OperationsPage = components["schemas"]["OperationsPage"];
@@ -2767,7 +2772,7 @@ declare class InfraPilotTransportError extends InfraPilotError {
2767
2772
  }
2768
2773
 
2769
2774
  declare const openapiSourcePath = "../../services/domains/docs/openapi.yaml";
2770
- declare const openapiSha256 = "7a482ed2a43126d033f41366cc5718fc499257eeb21faa063338eb5f4fe5cbfa";
2771
- declare const generatedAt = "2026-12-01T17:07:43.859Z";
2775
+ declare const openapiSha256 = "04db89636bd0fac82b752fd3a7f8329a272818058c6ab5a8b42e0e8d23a19b7b";
2776
+ declare const generatedAt = "2026-12-01T19:56:55.189Z";
2772
2777
 
2773
- export { type APIKeyCreateInput, type APIKeyCreated, type APIKeyListResponse, type APIKeyPublic, type APIKeyResponse, type APIKeyRotated, type APIKeyUpdateInput, type AuthErrorCode, AuthErrorCodes, type AuthLoginRequest, type AuthLoginResponse, type AuthLogoutResponse, 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 NodeResponse, type NodeUpdateInput, type OperationsPage, type PreviewCreateRequest, type PreviewDeleteRequest, type PreviewRequest, type PreviewResponse, type PreviewUpdateRequest, type Principal, type RequestContext, type components, generatedAt, openapiSha256, openapiSourcePath, type operations, type paths };
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 };
package/dist/index.d.ts CHANGED
@@ -400,41 +400,25 @@ interface paths {
400
400
  patch?: never;
401
401
  trace?: never;
402
402
  };
403
- "/api/v1/auth/login": {
403
+ "/api/v1/node/resources": {
404
404
  parameters: {
405
405
  query?: never;
406
406
  header?: never;
407
407
  path?: never;
408
408
  cookie?: never;
409
409
  };
410
- get?: never;
411
- put?: never;
412
410
  /**
413
- * Create a web session (HttpOnly cookie)
414
- * @description Public endpoint. Accepts an admin or client API key once, sets `infrapilot_session` HttpOnly cookie,
415
- * and returns a CSRF token for subsequent mutating requests. Do not persist the API key in browser storage.
411
+ * Get an on-demand local resource snapshot (admin only)
412
+ * @description Collects CPU, memory, swap, load, local disk, and host information.
413
+ * The snapshot is collected synchronously and is not persisted. Memory
414
+ * `available_bytes` is the memory estimated available to applications;
415
+ * `used_bytes` and `used_percent` follow the operating system's
416
+ * gopsutil interpretation. Unavailable metrics are null and collection
417
+ * failures are reported in `warnings`.
416
418
  */
417
- post: operations["loginAuth"];
418
- delete?: never;
419
- options?: never;
420
- head?: never;
421
- patch?: never;
422
- trace?: never;
423
- };
424
- "/api/v1/auth/logout": {
425
- parameters: {
426
- query?: never;
427
- header?: never;
428
- path?: never;
429
- cookie?: never;
430
- };
431
- get?: never;
419
+ get: operations["getNodeResources"];
432
420
  put?: never;
433
- /**
434
- * End the current web session
435
- * @description Requires session cookie + CSRF header when using cookie auth. Clears the session cookie.
436
- */
437
- post: operations["logoutAuth"];
421
+ post?: never;
438
422
  delete?: never;
439
423
  options?: never;
440
424
  head?: never;
@@ -449,9 +433,8 @@ interface paths {
449
433
  cookie?: never;
450
434
  };
451
435
  /**
452
- * Return the authenticated principal
453
- * @description Accepts admin bearer or a valid client `infra_live_*` key.
454
- * Client keys receive scopes, rate limit, and expiry metadata; admin returns `type: admin` only.
436
+ * Return the local principal
437
+ * @description Returns the daemon-local admin principal. Authentication is not performed by this service.
455
438
  */
456
439
  get: operations["getAuthMe"];
457
440
  put?: never;
@@ -950,20 +933,6 @@ interface components {
950
933
  /** Format: date-time */
951
934
  client_access_expires_at?: string;
952
935
  };
953
- AuthLoginRequest: {
954
- /** @description Admin bearer or infra_live_* key used only to establish the session */
955
- api_key: string;
956
- };
957
- AuthLoginResponse: {
958
- principal: components["schemas"]["Principal"];
959
- /** @description Send as X-CSRF-Token on mutating cookie-authenticated requests; keep in memory only */
960
- csrf_token: string;
961
- /** Format: date-time */
962
- expires_at: string;
963
- };
964
- AuthLogoutResponse: {
965
- ok: boolean;
966
- };
967
936
  AuthMeResponse: {
968
937
  principal: components["schemas"]["Principal"];
969
938
  };
@@ -1005,6 +974,73 @@ interface components {
1005
974
  collected_at: string;
1006
975
  capabilities: components["schemas"]["NodeCapability"][];
1007
976
  };
977
+ ResourceWarning: {
978
+ metric: string;
979
+ code: string;
980
+ message: string;
981
+ };
982
+ NodeCPUResources: {
983
+ logical_cores: number | null;
984
+ usage_percent: number | null;
985
+ sample_window_seconds: number | null;
986
+ };
987
+ NodeMemoryResources: {
988
+ /** Format: int64 */
989
+ total_bytes: number | null;
990
+ /** Format: int64 */
991
+ used_bytes: number | null;
992
+ /** Format: int64 */
993
+ available_bytes: number | null;
994
+ used_percent: number | null;
995
+ };
996
+ NodeSwapResources: {
997
+ /** Format: int64 */
998
+ total_bytes: number | null;
999
+ /** Format: int64 */
1000
+ used_bytes: number | null;
1001
+ /** Format: int64 */
1002
+ free_bytes: number | null;
1003
+ used_percent: number | null;
1004
+ };
1005
+ NodeLoadResources: {
1006
+ one_minute: number | null;
1007
+ five_minutes: number | null;
1008
+ fifteen_minutes: number | null;
1009
+ };
1010
+ NodeHostResources: {
1011
+ hostname: string | null;
1012
+ os: string | null;
1013
+ platform: string | null;
1014
+ platform_family: string | null;
1015
+ platform_version: string | null;
1016
+ kernel_version: string | null;
1017
+ /** Format: int64 */
1018
+ uptime_seconds: number | null;
1019
+ };
1020
+ NodeDiskResource: {
1021
+ mountpoint: string;
1022
+ filesystem: string;
1023
+ fs_type: string;
1024
+ /** Format: int64 */
1025
+ total_bytes: number;
1026
+ /** Format: int64 */
1027
+ used_bytes: number;
1028
+ /** Format: int64 */
1029
+ free_bytes: number;
1030
+ used_percent: number;
1031
+ };
1032
+ NodeResources: {
1033
+ node_id: string;
1034
+ /** Format: date-time */
1035
+ collected_at: string;
1036
+ cpu: components["schemas"]["NodeCPUResources"];
1037
+ memory: components["schemas"]["NodeMemoryResources"];
1038
+ swap: components["schemas"]["NodeSwapResources"];
1039
+ load: components["schemas"]["NodeLoadResources"];
1040
+ host: components["schemas"]["NodeHostResources"];
1041
+ disks: components["schemas"]["NodeDiskResource"][] | null;
1042
+ warnings: components["schemas"]["ResourceWarning"][];
1043
+ };
1008
1044
  };
1009
1045
  responses: {
1010
1046
  /** @description Missing or invalid bearer token or expired/revoked client key */
@@ -1878,35 +1914,7 @@ interface operations {
1878
1914
  403: components["responses"]["Forbidden"];
1879
1915
  };
1880
1916
  };
1881
- loginAuth: {
1882
- parameters: {
1883
- query?: never;
1884
- header?: never;
1885
- path?: never;
1886
- cookie?: never;
1887
- };
1888
- requestBody: {
1889
- content: {
1890
- "application/json": components["schemas"]["AuthLoginRequest"];
1891
- };
1892
- };
1893
- responses: {
1894
- /** @description Session established */
1895
- 200: {
1896
- headers: {
1897
- /** @description HttpOnly session cookie */
1898
- "Set-Cookie"?: string;
1899
- [name: string]: unknown;
1900
- };
1901
- content: {
1902
- "application/json": components["schemas"]["AuthLoginResponse"];
1903
- };
1904
- };
1905
- 401: components["responses"]["Unauthorized"];
1906
- 403: components["responses"]["Forbidden"];
1907
- };
1908
- };
1909
- logoutAuth: {
1917
+ getNodeResources: {
1910
1918
  parameters: {
1911
1919
  query?: never;
1912
1920
  header?: never;
@@ -1915,13 +1923,13 @@ interface operations {
1915
1923
  };
1916
1924
  requestBody?: never;
1917
1925
  responses: {
1918
- /** @description Logged out */
1926
+ /** @description Node resources snapshot */
1919
1927
  200: {
1920
1928
  headers: {
1921
1929
  [name: string]: unknown;
1922
1930
  };
1923
1931
  content: {
1924
- "application/json": components["schemas"]["AuthLogoutResponse"];
1932
+ "application/json": components["schemas"]["NodeResources"];
1925
1933
  };
1926
1934
  };
1927
1935
  401: components["responses"]["Unauthorized"];
@@ -2476,27 +2484,30 @@ interface operations {
2476
2484
  };
2477
2485
  }
2478
2486
 
2479
- type AuthMode = "bearer" | "session";
2487
+ type AuthMode = "none" | "bearer" | "session";
2480
2488
  type CredentialsMode = RequestCredentials;
2481
2489
  type InfraPilotOptions = {
2482
2490
  baseUrl: string;
2483
2491
  /**
2484
- * Static bearer token. Prefer getAccessToken for rotation.
2485
- * Never logged by this SDK.
2492
+ * Optional static bearer token for upstream auth layers.
2493
+ * Prefer getAccessToken for rotation. Never logged by this SDK.
2494
+ * The domains daemon currently ignores credentials.
2486
2495
  */
2487
2496
  apiKey?: string;
2488
2497
  getAccessToken?: () => string | undefined | Promise<string | undefined>;
2489
2498
  /**
2490
- * Prepared for same-origin cookie session auth.
2491
- * When "session", Authorization bearer is omitted unless apiKey/getAccessToken is also set.
2499
+ * Auth header behavior.
2500
+ * - "none" (default): do not send Authorization unless apiKey/getAccessToken is set.
2501
+ * - "bearer": send Authorization when a token is available.
2502
+ * - "session": legacy alias; cookie/CSRF helpers remain for transitional clients.
2492
2503
  */
2493
2504
  authMode?: AuthMode;
2494
2505
  /**
2495
- * Fetch credentials mode. Defaults to "omit" for bearer, "same-origin" for session.
2506
+ * Fetch credentials mode. Defaults to "same-origin" for session, otherwise "omit".
2496
2507
  */
2497
2508
  credentials?: CredentialsMode;
2498
2509
  /**
2499
- * CSRF token for session-authenticated mutating requests.
2510
+ * Legacy CSRF helpers for transitional clients. The domains daemon no longer validates CSRF.
2500
2511
  */
2501
2512
  csrfToken?: string;
2502
2513
  getCsrfToken?: () => string | undefined | Promise<string | undefined>;
@@ -2549,20 +2560,11 @@ declare class ApiKeysResource {
2549
2560
 
2550
2561
  type Principal = components["schemas"]["Principal"];
2551
2562
  type AuthMeResponse = components["schemas"]["AuthMeResponse"];
2552
- type AuthLoginRequest = components["schemas"]["AuthLoginRequest"];
2553
- type AuthLoginResponse = components["schemas"]["AuthLoginResponse"];
2554
- type AuthLogoutResponse = components["schemas"]["AuthLogoutResponse"];
2555
2563
  declare class AuthResource {
2556
2564
  private readonly client;
2557
2565
  private readonly timeoutMs;
2558
2566
  constructor(client: OpenAPIClient, timeoutMs: number | undefined);
2559
- /**
2560
- * Exchange an API key for an HttpOnly session cookie + CSRF token.
2561
- * Keep `csrf_token` in memory only. Never persist the API key in localStorage.
2562
- */
2563
- login(body: AuthLoginRequest, ctx?: RequestContext): Promise<AuthLoginResponse>;
2564
- /** End the current web session (requires CSRF when using cookie auth). */
2565
- logout(ctx?: RequestContext): Promise<AuthLogoutResponse>;
2567
+ /** Local principal introspection. The domains daemon does not authenticate callers. */
2566
2568
  me(ctx?: RequestContext): Promise<AuthMeResponse>;
2567
2569
  }
2568
2570
 
@@ -2656,6 +2658,8 @@ type NodeUpdateInput = components["schemas"]["NodeUpdateInput"];
2656
2658
  type NodeCapabilitiesReport = components["schemas"]["NodeCapabilitiesReport"];
2657
2659
  type NodeCapability = components["schemas"]["NodeCapability"];
2658
2660
  type CapabilityStatus = components["schemas"]["CapabilityStatus"];
2661
+ type NodeResources = components["schemas"]["NodeResources"];
2662
+ type ResourceWarning = components["schemas"]["ResourceWarning"];
2659
2663
  declare class NodeResource {
2660
2664
  private readonly client;
2661
2665
  private readonly timeoutMs;
@@ -2663,6 +2667,7 @@ declare class NodeResource {
2663
2667
  get(ctx?: RequestContext): Promise<NodeResponse>;
2664
2668
  update(body: NodeUpdateInput, ctx?: RequestContext): Promise<NodeResponse>;
2665
2669
  capabilities(ctx?: RequestContext): Promise<NodeCapabilitiesReport>;
2670
+ resources(ctx?: RequestContext): Promise<NodeResources>;
2666
2671
  }
2667
2672
 
2668
2673
  type OperationsPage = components["schemas"]["OperationsPage"];
@@ -2767,7 +2772,7 @@ declare class InfraPilotTransportError extends InfraPilotError {
2767
2772
  }
2768
2773
 
2769
2774
  declare const openapiSourcePath = "../../services/domains/docs/openapi.yaml";
2770
- declare const openapiSha256 = "7a482ed2a43126d033f41366cc5718fc499257eeb21faa063338eb5f4fe5cbfa";
2771
- declare const generatedAt = "2026-12-01T17:07:43.859Z";
2775
+ declare const openapiSha256 = "04db89636bd0fac82b752fd3a7f8329a272818058c6ab5a8b42e0e8d23a19b7b";
2776
+ declare const generatedAt = "2026-12-01T19:56:55.189Z";
2772
2777
 
2773
- export { type APIKeyCreateInput, type APIKeyCreated, type APIKeyListResponse, type APIKeyPublic, type APIKeyResponse, type APIKeyRotated, type APIKeyUpdateInput, type AuthErrorCode, AuthErrorCodes, type AuthLoginRequest, type AuthLoginResponse, type AuthLogoutResponse, 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 NodeResponse, type NodeUpdateInput, type OperationsPage, type PreviewCreateRequest, type PreviewDeleteRequest, type PreviewRequest, type PreviewResponse, type PreviewUpdateRequest, type Principal, type RequestContext, type components, generatedAt, openapiSha256, openapiSourcePath, type operations, type paths };
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 };