Add Hetzner Robot: dedicated servers and storage boxes, with shutting-down, locked and rescue-left-on alerts

Read every 15 minutes (Robot allows 200 requests an hour; read-only): each server's product, addresses, status, rescue system and paid-until, and the storage boxes. Adapter, sync service, hetzner_robot_state table, /api/hetzner-robot, Infrastructure → Hetzner Robot page, metrics and docs.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
bobbanandClaude Sonnet 5.5 committed 2026-11-04 23:26:26 +01:00
1 parent 7618bf0f0a
commit 01acbaf831
31 files changed
+10105 -10

No files matched your search

+39 -1
View File
@@ -1564,6 +1564,41 @@ export interface DownloadItem {
message: string | null;
}
/** One Hetzner Robot account (an integration of type hetznerrobot), as the dedicated servers page shows it. */
export interface RobotAccount {
id: number;
name: string;
enabled: boolean;
status: { at: string; ok: boolean; error: string | null } | null;
fresh: boolean;
state: {
servers: {
number: number;
name: string;
ip: string | null;
ipv6: string | null;
product: string | null;
dc: string | null;
traffic: string | null;
status: string;
cancelled: boolean;
paidUntil: string | null;
/** Null when it could not be asked. */
rescue: boolean | null;
rescueSince: string | null;
notReadySince: string | null;
}[];
/** Null when they could not be read. */
storageBoxes: { id: number; name: string; login: string | null; product: string | null; location: string | null; cancelled: boolean; locked: boolean; paidUntil: string | null; linkedServer: number | null }[] | null;
skippedDetail: number;
updatedAt: string;
/** Calendar days to the end of each cancelled server (by number) and storage box (by id): 0 on the day it ends, negative after. */
serverDays: Record<string, number | null>;
boxDays: Record<string, number | null>;
} | null;
problems: { key: string; message: string; severity: "warning" | "critical" }[];
}
/** One qBittorrent or SABnzbd (an integration of that type), as the download clients page shows it. */
export interface DownloadClient {
id: number;
@@ -2981,7 +3016,7 @@ export interface ManualTaskInput {
enabled?: boolean;
}
export type IntegrationType = "proxmox" | "synology" | "semaphore" | "tailscale" | "gitea" | "dockhand" | "uptimekuma" | "phpipam" | "pbs" | "osticket" | "unifi" | "npm" | "homeassistant" | "ups" | "jellyfin" | "authentik" | "prometheus" | "immich" | "paperless" | "nextcloud" | "netbox" | "n8n" | "hetzner" | "speedtest" | "fragnet" | "sonarr" | "radarr" | "prowlarr" | "adguard" | "technitium" | "grafana" | "lidarr" | "readarr" | "qbittorrent" | "sabnzbd";
export type IntegrationType = "proxmox" | "synology" | "semaphore" | "tailscale" | "gitea" | "dockhand" | "uptimekuma" | "phpipam" | "pbs" | "osticket" | "unifi" | "npm" | "homeassistant" | "ups" | "jellyfin" | "authentik" | "prometheus" | "immich" | "paperless" | "nextcloud" | "netbox" | "n8n" | "hetzner" | "speedtest" | "fragnet" | "sonarr" | "radarr" | "prowlarr" | "adguard" | "technitium" | "grafana" | "lidarr" | "readarr" | "qbittorrent" | "sabnzbd" | "hetznerrobot";
export interface IntegrationField {
key: string;
@@ -3603,6 +3638,9 @@ export const api = {
downloads: {
list: () => request<{ clients: DownloadClient[] }>("/api/downloads"),
},
hetznerRobot: {
list: () => request<{ accounts: RobotAccount[] }>("/api/hetzner-robot"),
},
fragnet: {
list: () => request<{ accounts: FragnetAccount[] }>("/api/fragnet"),
power: (integrationId: number, serverId: string, signal: FragnetSignal) => request<void>(`/api/fragnet/${integrationId}/servers/${serverId}/power`, { method: "POST", body: JSON.stringify({ signal }) }),