{"openapi":"3.1.0","info":{"title":"zeroCORE Fleet Portal","version":"1.0.0"},"paths":{"/api/fleet/heartbeat":{"post":{"tags":["fleet"],"summary":"Heartbeat","description":"Receive a heartbeat from a zeroCORE Pi device.\n\nUpdates device state and returns configuration (next interval, update info).","operationId":"heartbeat_api_fleet_heartbeat_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeartbeatRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fleet/register":{"post":{"tags":["fleet"],"summary":"Register","description":"Register a new zeroCORE Pi device.\n\nCalled once at first boot. The device generates its own UUID and API key,\nsends both here. We hash the API key and store the device.","operationId":"register_api_fleet_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fleet/devices":{"get":{"tags":["fleet"],"summary":"List Devices","description":"List all registered devices with latest state.","operationId":"list_devices_api_fleet_devices_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/fleet/devices/{device_id}":{"get":{"tags":["fleet"],"summary":"Get Device","description":"Get a single device with recent events.","operationId":"get_device_api_fleet_devices__device_id__get","parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["fleet"],"summary":"Delete Device","description":"Delete a device and its events from the fleet.","operationId":"delete_device_api_fleet_devices__device_id__delete","parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fleet/devices/{device_id}/name":{"post":{"tags":["fleet"],"summary":"Rename Device","description":"Set the friendly display name for a device.\n\nUsed by admins to backfill names on devices that registered before the\nwizard collected one, or to override what a customer entered. The next\nheartbeat from the device may update the name again if the customer\nsets a different value via their wizard.","operationId":"rename_device_api_fleet_devices__device_id__name_post","parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fleet/devices/{device_id}/findings/{code}/ack":{"post":{"tags":["fleet"],"summary":"Ack Finding","description":"Acknowledge/mute an invariant check on one device (known open finding).","operationId":"ack_finding_api_fleet_devices__device_id__findings__code__ack_post","parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}},{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AckRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["fleet"],"summary":"Clear Finding Ack","description":"Remove an acknowledgement so the check can page again.","operationId":"clear_finding_ack_api_fleet_devices__device_id__findings__code__ack_delete","parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}},{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fleet/digest/run":{"post":{"tags":["fleet"],"summary":"Run Digest Now","description":"Preview (defaults: no LLM, no Slack) or run the findings digest on demand.","operationId":"run_digest_now_api_fleet_digest_run_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DigestRunRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fleet/summary":{"get":{"tags":["fleet"],"summary":"Fleet Summary","description":"Fleet overview — counts, version distribution, health.","operationId":"fleet_summary_api_fleet_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/fleet/events":{"get":{"tags":["fleet"],"summary":"Recent Events","description":"Fleet-wide recent device events (newest first) for the admin feed.\n\nJoins each event with the device's current name/slug so the dashboard can\nlabel rows without a second fetch. The per-device history remains on\nGET /devices/{device_id}.","operationId":"recent_events_api_fleet_events_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":25,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fleet/releases/latest":{"get":{"tags":["fleet"],"summary":"Latest Release Info","description":"Return metadata about the latest release for a channel.\n\n`channel` (optional query param: stable/beta/alpha) makes this endpoint\nchannel-aware. The device-side safety-net installer (zerocorepi-update.sh)\npasses its locally-stored update_channel so it converges to the SAME version\nthe in-app OTA wants, instead of always pulling stable and fighting it\n(the nightly version-flap bug). Omitting the param resolves to stable, which\npreserves backward-compat for older installers and bootstrap one-liners.","operationId":"latest_release_info_api_fleet_releases_latest_get","parameters":[{"name":"channel","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fleet/releases/latest/download":{"get":{"tags":["fleet"],"summary":"Download Latest Release","description":"Download the latest release tarball for a channel (defaults to stable).","operationId":"download_latest_release_api_fleet_releases_latest_download_get","parameters":[{"name":"channel","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fleet/releases/{version}/download":{"get":{"tags":["fleet"],"summary":"Download Release","description":"Download a specific release tarball by version (with its sha256 in a header).","operationId":"download_release_api_fleet_releases__version__download_get","parameters":[{"name":"version","in":"path","required":true,"schema":{"type":"string","title":"Version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fleet/devices/{device_id}/channel":{"post":{"tags":["fleet"],"summary":"Set Device Channel","description":"Set a device's update channel (stable, beta, or alpha).","operationId":"set_device_channel_api_fleet_devices__device_id__channel_post","parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fleet/devices/{device_id}/update-now":{"post":{"tags":["fleet"],"summary":"Update Device Now","description":"Queue an immediate OTA update for one device, bypassing quiet hours.\n\nSets a one-shot pending_immediate_update marker; the device's next HTTP\nheartbeat (~<=5 min) applies the channel's target with immediate=True. The\ndevice still enforces its battery/override safety check, so an update during\nactive export or a VPP dispatch defers and retries.","operationId":"update_device_now_api_fleet_devices__device_id__update_now_post","parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UpdateNowRequest"},{"type":"null"}],"title":"Req"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fleet/devices/{device_id}/clear-pending":{"post":{"tags":["fleet"],"summary":"Clear Pending Update","description":"Withdraw a queued \"Update now\" before the device's next heartbeat consumes it.","operationId":"clear_pending_update_api_fleet_devices__device_id__clear_pending_post","parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fleet/devices/{device_id}/enabled":{"post":{"tags":["fleet"],"summary":"Set Device Enabled","description":"Disable (decommission) or re-enable a device. Reversible; deletes nothing.","operationId":"set_device_enabled_api_fleet_devices__device_id__enabled_post","parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnabledRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fleet/devices/bulk":{"post":{"tags":["fleet"],"summary":"Bulk Devices","description":"Apply one action to several devices; per-device results, one event each.\n\nWhole-request 400 (nothing written) for an unknown action, an empty or\noversized id list, a bad channel, a channel with no target version, or a\nwrong typed confirmation. Unless ``force``, devices that would be DOWNGRADED (or\nwhose version is unknown) are skipped with a reason and not counted in the typed N.\nOtherwise each device is applied and committed independently through the\nsame helpers as the single-device routes. ``dry_run`` returns the skips and\nthe string to type, writing nothing.","operationId":"bulk_devices_api_fleet_devices_bulk_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fleet/devices/{device_id}/ssh-token":{"post":{"tags":["fleet"],"summary":"Mint Ssh Token","description":"Mint a short-lived, device-scoped token for the ssh-stream WebSocket.\n\nThe operator (or bin/zc-ssh) uses it as the ?token= for an ssh ProxyCommand\nvia websocat. Short TTL so a token in a URL/process-args has limited blast\nradius. The customer-side consent toggle still gates whether the device will\nactually open the forward.","operationId":"mint_ssh_token_api_fleet_devices__device_id__ssh_token_post","parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health":{"get":{"summary":"Health","description":"Fleet portal health check.","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/login":{"get":{"summary":"Admin Login Page","description":"Serve admin login page.","operationId":"admin_login_page_admin_login_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/admin/api/login":{"post":{"summary":"Admin Login","description":"Validate credentials and issue JWT cookie.","operationId":"admin_login_admin_api_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/logout":{"post":{"summary":"Admin Logout","description":"Clear the admin JWT cookie.","operationId":"admin_logout_admin_api_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/":{"get":{"summary":"Admin Dashboard","description":"Fleet admin dashboard — protected by JWT auth.","operationId":"admin_dashboard_admin__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/admin":{"get":{"summary":"Admin Dashboard","description":"Fleet admin dashboard — protected by JWT auth.","operationId":"admin_dashboard_admin_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/ping":{"get":{"summary":"Ping","description":"Lightweight connectivity check for Pi bootstrap scripts.","operationId":"ping_ping_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/":{"get":{"summary":"Root Redirect","description":"Redirect / to /admin/.","operationId":"root_redirect__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/{slug}/{path}":{"patch":{"summary":"Proxy To Device","description":"Proxy HTTP requests over the chisel tunnel to the Pi's Flask app.","operationId":"proxy_to_device__slug___path__patch","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Proxy To Device","description":"Proxy HTTP requests over the chisel tunnel to the Pi's Flask app.","operationId":"proxy_to_device__slug___path__patch","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Proxy To Device","description":"Proxy HTTP requests over the chisel tunnel to the Pi's Flask app.","operationId":"proxy_to_device__slug___path__patch","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Proxy To Device","description":"Proxy HTTP requests over the chisel tunnel to the Pi's Flask app.","operationId":"proxy_to_device__slug___path__patch","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Proxy To Device","description":"Proxy HTTP requests over the chisel tunnel to the Pi's Flask app.","operationId":"proxy_to_device__slug___path__patch","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/{slug}":{"get":{"summary":"Proxy Root","description":"Redirect /{slug} to /{slug}/dashboard.","operationId":"proxy_root__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AckRequest":{"properties":{"days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Days"},"note":{"type":"string","title":"Note","default":""}},"type":"object","title":"AckRequest"},"BulkRequest":{"properties":{"action":{"type":"string","title":"Action"},"device_ids":{"items":{"type":"string"},"type":"array","title":"Device Ids"},"channel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel"},"confirm":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Confirm"},"force":{"type":"boolean","title":"Force","default":false},"dry_run":{"type":"boolean","title":"Dry Run","default":false}},"type":"object","required":["action","device_ids"],"title":"BulkRequest"},"ChannelRequest":{"properties":{"channel":{"type":"string","title":"Channel"},"force":{"type":"boolean","title":"Force","default":false}},"type":"object","required":["channel"],"title":"ChannelRequest"},"DigestRunRequest":{"properties":{"date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date"},"llm":{"type":"boolean","title":"Llm","default":false},"post":{"type":"boolean","title":"Post","default":false}},"type":"object","title":"DigestRunRequest"},"EnabledRequest":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"confirm":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Confirm"}},"type":"object","required":["enabled"],"title":"EnabledRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HeartbeatRequest":{"properties":{"device_id":{"type":"string","title":"Device Id"},"version":{"type":"string","title":"Version","default":""},"health":{"type":"string","title":"Health","default":"unknown"},"uptime_s":{"type":"integer","title":"Uptime S","default":0},"inverter_brand":{"type":"string","title":"Inverter Brand","default":""},"solar_w":{"type":"integer","title":"Solar W","default":0},"battery_pct":{"type":"number","title":"Battery Pct","default":0},"grid_w":{"type":"integer","title":"Grid W","default":0},"house_w":{"type":"integer","title":"House W","default":0},"current_action":{"type":"string","title":"Current Action","default":""},"error_count_24h":{"type":"integer","title":"Error Count 24H","default":0},"device_name":{"type":"string","title":"Device Name","default":""},"last_update_attempt_version":{"type":"string","title":"Last Update Attempt Version","default":""},"last_update_status":{"type":"string","title":"Last Update Status","default":""},"last_update_error":{"type":"string","title":"Last Update Error","default":""},"last_update_attempt_at":{"type":"string","title":"Last Update Attempt At","default":""},"tunnel_protocol":{"type":"string","title":"Tunnel Protocol","default":"ws"},"control_loop_alive":{"type":"boolean","title":"Control Loop Alive","default":true},"chisel_http_port":{"type":"integer","title":"Chisel Http Port","default":0},"chisel_ssh_port":{"type":"integer","title":"Chisel Ssh Port","default":0},"api_health":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Health"},"tariff_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tariff Type"},"has_solar":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Solar"},"control_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Control Enabled"},"restart_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Restart Count"},"rss_mb":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rss Mb"},"rss_hwm_mb":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rss Hwm Mb"},"error_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Summary"},"invariants":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Invariants"},"grid_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Grid Status"},"grid_off_since":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Grid Off Since"},"start_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Path"},"wrapper":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wrapper"},"venv":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Venv"},"previous_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Previous Version"},"tunnel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tunnel"},"rescue":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rescue"},"rescue_last":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rescue Last"},"venv_gate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Venv Gate"}},"type":"object","required":["device_id"],"title":"HeartbeatRequest"},"LoginRequest":{"properties":{"email":{"type":"string","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["email","password"],"title":"LoginRequest"},"RegisterRequest":{"properties":{"device_id":{"type":"string","title":"Device Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","default":""},"api_key":{"type":"string","title":"Api Key"},"inverter_brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inverter Brand","default":""}},"type":"object","required":["device_id","api_key"],"title":"RegisterRequest"},"UpdateNowRequest":{"properties":{"force":{"type":"boolean","title":"Force","default":false}},"type":"object","title":"UpdateNowRequest"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}