{"openapi":"3.1.0","info":{"title":"LunAir — Moon Transit Alert","version":"0.1.0"},"paths":{"/":{"get":{"summary":"Index","operationId":"index__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/sw.js":{"get":{"summary":"Service Worker","operationId":"service_worker_sw_js_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/apple-touch-icon-precomposed.png":{"get":{"summary":"Apple Touch Icon","operationId":"apple_touch_icon_apple_touch_icon_precomposed_png_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/apple-touch-icon.png":{"get":{"summary":"Apple Touch Icon","operationId":"apple_touch_icon_apple_touch_icon_png_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/manifest.webmanifest":{"get":{"summary":"Web App Manifest","operationId":"web_app_manifest_manifest_webmanifest_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/config":{"get":{"summary":"Api Config","operationId":"api_config_api_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health":{"get":{"summary":"Health","description":"Uptime probe — UptimeRobot points at this in production.\n\nAccepts HEAD as well as GET: UptimeRobot's plain HTTP(s) monitors\nprobe with HEAD by default, and FastAPI (unlike bare Starlette)\ndoes NOT auto-register HEAD on GET routes — without the extra\ndecorator the monitor gets a 405 and reports the site down.\n\nPublic on purpose: auth in this app is per-route (`Depends(require_user)`\non each handler — there is no global auth middleware), so omitting the\ndependency here is what makes it reachable without a Clerk token. That's\nthe point: the monitor must never trip on an auth redirect the way it\nwould probing `/`.\n\nChecks SQLite liveness with a pooled SELECT 1 (`db.ping`) — no network\ncalls, so a healthy response is well under 100 ms.\n\n  200 {\"status\": \"ok\"}                      → app up, DB reachable\n  503 {\"status\": \"error\", \"detail\": \"...\"}  → DB unreachable","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"head":{"summary":"Health","description":"Uptime probe — UptimeRobot points at this in production.\n\nAccepts HEAD as well as GET: UptimeRobot's plain HTTP(s) monitors\nprobe with HEAD by default, and FastAPI (unlike bare Starlette)\ndoes NOT auto-register HEAD on GET routes — without the extra\ndecorator the monitor gets a 405 and reports the site down.\n\nPublic on purpose: auth in this app is per-route (`Depends(require_user)`\non each handler — there is no global auth middleware), so omitting the\ndependency here is what makes it reachable without a Clerk token. That's\nthe point: the monitor must never trip on an auth redirect the way it\nwould probing `/`.\n\nChecks SQLite liveness with a pooled SELECT 1 (`db.ping`) — no network\ncalls, so a healthy response is well under 100 ms.\n\n  200 {\"status\": \"ok\"}                      → app up, DB reachable\n  503 {\"status\": \"error\", \"detail\": \"...\"}  → DB unreachable","operationId":"health_health_head","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/aircraft-db/status":{"get":{"summary":"Api Aircraft Db Status","operationId":"api_aircraft_db_status_api_aircraft_db_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/__clerk/{path}":{"options":{"summary":"Clerk Proxy","operationId":"clerk_proxy___clerk__path__options","parameters":[{"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":"Clerk Proxy","operationId":"clerk_proxy___clerk__path__options","parameters":[{"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":"Clerk Proxy","operationId":"clerk_proxy___clerk__path__options","parameters":[{"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":"Clerk Proxy","operationId":"clerk_proxy___clerk__path__options","parameters":[{"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"}}}}}},"head":{"summary":"Clerk Proxy","operationId":"clerk_proxy___clerk__path__options","parameters":[{"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"}}}}}},"patch":{"summary":"Clerk Proxy","operationId":"clerk_proxy___clerk__path__options","parameters":[{"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":"Clerk Proxy","operationId":"clerk_proxy___clerk__path__options","parameters":[{"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"}}}}}}},"/api/push/vapid-key":{"get":{"summary":"Api Push Vapid Key","operationId":"api_push_vapid_key_api_push_vapid_key_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/push/status":{"get":{"summary":"Api Push Status","description":"Per-user push status.\n\nReturns only whether THIS user currently has a push subscription\nregistered server-side, so the Alerts screen can reassure them (or\nprompt a re-toggle when it's missing). Global watcher internals\n(subscriber count, tick timing, pushes-sent) are intentionally NOT\nexposed here — they're founder-only and live on the admin surface\n(the CLI dashboard / future /api/admin endpoints behind\n`require_admin`).","operationId":"api_push_status_api_push_status_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Api Push Status For Device","description":"Per-device push status: the GET answer plus, when the body names\nthis device's endpoint, `endpoint_registered` — whether THIS device has\na subscription row. `user_has_subscription` is per account, and the\nnative app used to seed its per-device toggle from it, so a phone with\nno row showed \"Enabled\" whenever another of the user's devices was\nsubscribed (audit F06). A POST so the push token travels in the body,\nlike every other push route, and stays out of the access log; the GET\nstays exactly as shipped iOS builds read it.","operationId":"api_push_status_for_device_api_push_status_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"default":{},"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/push/subscribe":{"post":{"summary":"Api Push Subscribe","operationId":"api_push_subscribe_api_push_subscribe_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/push/unsubscribe":{"post":{"summary":"Api Push Unsubscribe","operationId":"api_push_unsubscribe_api_push_unsubscribe_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/push/observer":{"patch":{"summary":"Api Push Observer","operationId":"api_push_observer_api_push_observer_patch","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/push/test":{"post":{"summary":"Api Push Test","operationId":"api_push_test_api_push_test_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reminders":{"post":{"summary":"Api Reminders Create","operationId":"api_reminders_create_api_reminders_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Api Reminders Get","operationId":"api_reminders_get_api_reminders_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Api Reminders Delete","operationId":"api_reminders_delete_api_reminders_delete","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/transit-verdict":{"post":{"summary":"Api Transit Verdict","description":"One analytics row per completed transit, from the post-transit card.\n\nMin sep is not measurable after the fact, so the user's tap is the\napp's only success metric and its only false-positive detector.\nEverything is whitelisted and clamped before it reaches the event\nstream — event_log properties must never carry PII or free text, so\nunknown keys are dropped and the constrained fields validated hard.","operationId":"api_transit_verdict_api_transit_verdict_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me":{"get":{"summary":"Api Me","description":"The account's access state (plan §1): pro / trial / paused / free,\nthe meter, the location cap. Clients render state from this and never\nderive gating from RevenueCat's CustomerInfo.","operationId":"api_me_api_me_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/transits":{"get":{"summary":"Api Transits","description":"The caller's transit events with their verified outcome — the\nalert-card audit trail behind the metered free tier: why an alert\ndid or did not consume a free transit (verified separation against\nthe counting threshold, delivered or muted, daily cap). Open rows\nsay \"verifying\". See docs/plans/stage3-meter.md §2b.","operationId":"api_transits_api_transits_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"number","maximum":365.0,"minimum":0.25,"default":30.0,"title":"Days"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/status":{"get":{"summary":"Api Billing Status","operationId":"api_billing_status_api_billing_status_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/sync":{"post":{"summary":"Api Billing Sync","description":"Reconcile this account against RevenueCat, then return its status.\n\nThe clients call this straight after a purchase or a restore. The\nwebhook below is still the primary path, but it is a single point of\nfailure — one wrong secret, one environment filter, one deploy\nwindow — and no store ever re-sends a purchase, so without a second\nopinion a customer who paid can sit on Free indefinitely.\n\nSame response shape as /api/billing/status, and it degrades to\nexactly that when REVENUECAT_SECRET_KEY is unset or RevenueCat can't\nbe reached: a Profile screen must never break because a reconcile\nfailed.","operationId":"api_billing_sync_api_billing_sync_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/revenuecat/webhook":{"post":{"summary":"Api Revenuecat Webhook","description":"RevenueCat → us, for App Store and Play Store subscriptions.\n\nPublic endpoint gated by the shared secret RevenueCat echoes in the\nAuthorization header (it does not sign payloads, so that header is\nthe whole authentication — see billing.verify_revenuecat_auth).\n\nAnswers 200 once an event is applied, or is a deliberate no-op\n(test event, dropped sandbox event, unmapped type…). An unexpected\nfailure answers 500 so RevenueCat retries — its own bounded backoff,\nsame event id — rather than 200, which used to lose the event for\ngood (audit F08). The retry is applied exactly once: the dedupe\nrecord commits in the same transaction as the change it records.","operationId":"api_revenuecat_webhook_api_billing_revenuecat_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/track/notification-click":{"post":{"summary":"Api Track Notification Click","description":"Click beacon for the service worker's `notificationclick` handler.\n\nUnauthenticated by necessity — the SW fetch carries no Clerk token.\nThe notification payload's `data` dict (which we authored at send\ntime) is posted back verbatim; only a whitelist of short fields is\nkept, and the endpoint never errors: worst-case abuse is a little\nanalytics noise, and a beacon must never surface a failure.","operationId":"api_track_notification_click_api_track_notification_click_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Payload","default":{}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user/state":{"get":{"summary":"Api User State Get","operationId":"api_user_state_get_api_user_state_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Api User State Put","operationId":"api_user_state_put_api_user_state_put","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user/locations":{"post":{"summary":"Api User Locations Add","operationId":"api_user_locations_add_api_user_locations_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user/locations/{loc_id}":{"patch":{"summary":"Api User Locations Update","operationId":"api_user_locations_update_api_user_locations__loc_id__patch","parameters":[{"name":"loc_id","in":"path","required":true,"schema":{"type":"string","title":"Loc Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Api User Locations Delete","operationId":"api_user_locations_delete_api_user_locations__loc_id__delete","parameters":[{"name":"loc_id","in":"path","required":true,"schema":{"type":"string","title":"Loc Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user/locations/{loc_id}/activate":{"post":{"summary":"Api User Locations Activate","operationId":"api_user_locations_activate_api_user_locations__loc_id__activate_post","parameters":[{"name":"loc_id","in":"path","required":true,"schema":{"type":"string","title":"Loc Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/account":{"delete":{"summary":"Api Account Delete","operationId":"api_account_delete_api_account_delete","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/moon":{"get":{"summary":"Api Moon","operationId":"api_moon_api_moon_get","parameters":[{"name":"lat","in":"query","required":true,"schema":{"type":"number","title":"Lat"}},{"name":"lon","in":"query","required":true,"schema":{"type":"number","title":"Lon"}},{"name":"alt","in":"query","required":false,"schema":{"type":"number","default":0.0,"title":"Alt"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/alerts":{"get":{"summary":"Api Alerts","operationId":"api_alerts_api_alerts_get","parameters":[{"name":"lat","in":"query","required":true,"schema":{"type":"number","title":"Lat"}},{"name":"lon","in":"query","required":true,"schema":{"type":"number","title":"Lon"}},{"name":"alt","in":"query","required":false,"schema":{"type":"number","default":0.0,"title":"Alt"}},{"name":"threshold","in":"query","required":false,"schema":{"type":"number","default":1.5,"title":"Threshold"}},{"name":"max_distance_km","in":"query","required":false,"schema":{"type":"number","default":50.0,"title":"Max Distance Km"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sun-times":{"get":{"summary":"Api Sun Times","operationId":"api_sun_times_api_sun_times_get","parameters":[{"name":"lat","in":"query","required":true,"schema":{"type":"number","title":"Lat"}},{"name":"lon","in":"query","required":true,"schema":{"type":"number","title":"Lon"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/elevation":{"get":{"summary":"Api Elevation","description":"Terrain elevation at lat/lon in metres, via Open-Meteo (free, no key).","operationId":"api_elevation_api_elevation_get","parameters":[{"name":"lat","in":"query","required":true,"schema":{"type":"number","title":"Lat"}},{"name":"lon","in":"query","required":true,"schema":{"type":"number","title":"Lon"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/geocode":{"get":{"summary":"Api Geocode","operationId":"api_geocode_api_geocode_get","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"title":"Q"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin":{"get":{"summary":"Admin Index","operationId":"admin_index_admin_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/ping":{"get":{"summary":"Api Admin Ping","description":"Cheap existence probe for the client's admin gate. No DB touch.","operationId":"api_admin_ping_api_admin_ping_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/telemetry/now":{"get":{"summary":"Api Admin Telemetry Now","operationId":"api_admin_telemetry_now_api_admin_telemetry_now_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/telemetry/opensky":{"get":{"summary":"Api Admin Telemetry Opensky","operationId":"api_admin_telemetry_opensky_api_admin_telemetry_opensky_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"number","maximum":31.0,"minimum":0.25,"default":7.0,"title":"Days"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/telemetry/queries":{"get":{"summary":"Api Admin Telemetry Queries","operationId":"api_admin_telemetry_queries_api_admin_telemetry_queries_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"number","maximum":31.0,"minimum":0.25,"default":7.0,"title":"Days"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/telemetry/map":{"get":{"summary":"Api Admin Telemetry Map","operationId":"api_admin_telemetry_map_api_admin_telemetry_map_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"number","maximum":7.0,"minimum":0.25,"default":1.0,"title":"Days"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/telemetry/ticks":{"get":{"summary":"Api Admin Telemetry Ticks","operationId":"api_admin_telemetry_ticks_api_admin_telemetry_ticks_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"number","maximum":31.0,"minimum":0.25,"default":7.0,"title":"Days"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/telemetry/snapshot":{"get":{"summary":"Api Admin Telemetry Snapshot","operationId":"api_admin_telemetry_snapshot_api_admin_telemetry_snapshot_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"number","maximum":31.0,"minimum":0.25,"default":7.0,"title":"Days"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/telemetry/hybrid":{"get":{"summary":"Api Admin Telemetry Hybrid","operationId":"api_admin_telemetry_hybrid_api_admin_telemetry_hybrid_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"number","maximum":31.0,"minimum":0.25,"default":7.0,"title":"Days"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/telemetry/cell":{"get":{"summary":"Api Admin Telemetry Cell","operationId":"api_admin_telemetry_cell_api_admin_telemetry_cell_get","parameters":[{"name":"lat","in":"query","required":true,"schema":{"type":"number","title":"Lat"}},{"name":"lon","in":"query","required":true,"schema":{"type":"number","title":"Lon"}},{"name":"days","in":"query","required":false,"schema":{"type":"number","maximum":7.0,"minimum":0.25,"default":1.0,"title":"Days"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users/{target_user_id}/meter":{"post":{"summary":"Api Admin User Meter","description":"Dev/staging test hook (plan §8): make the target's counted total\nread `counted` (sets users.meter_seed), to walk 9 → 10 → paused and\nthe once-only notice. 404 unless LUNAIR_ADMIN_METER=1 as well as\nadmin — never available on a box that did not opt in.","operationId":"api_admin_user_meter_api_admin_users__target_user_id__meter_post","parameters":[{"name":"target_user_id","in":"path","required":true,"schema":{"type":"string","title":"Target User Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/push/stale":{"get":{"summary":"Api Admin Push Stale","description":"Dry run of the stale web-row cull: what it would remove, by cell.","operationId":"api_admin_push_stale_api_admin_push_stale_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":7,"default":60,"title":"Days"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/push/cull":{"post":{"summary":"Api Admin Push Cull","description":"Remove the stale web rows (see /api/admin/push/stale). A culled\nrow re-registers on the user's next app open.","operationId":"api_admin_push_cull_api_admin_push_cull_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"default":{},"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/metrics/overview":{"get":{"summary":"Api Admin Metrics Overview","operationId":"api_admin_metrics_overview_api_admin_metrics_overview_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/metrics/users":{"get":{"summary":"Api Admin Metrics Users","operationId":"api_admin_metrics_users_api_admin_metrics_users_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/metrics/alerts":{"get":{"summary":"Api Admin Metrics Alerts","operationId":"api_admin_metrics_alerts_api_admin_metrics_alerts_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/metrics/locations":{"get":{"summary":"Api Admin Metrics Locations","operationId":"api_admin_metrics_locations_api_admin_metrics_locations_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"number","maximum":31.0,"minimum":0.25,"default":7.0,"title":"Days"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/metrics/accuracy":{"get":{"summary":"Api Admin Metrics Accuracy","operationId":"api_admin_metrics_accuracy_api_admin_metrics_accuracy_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"number","maximum":31.0,"minimum":0.25,"default":7.0,"title":"Days"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/metrics/transit_outcomes":{"get":{"summary":"Api Admin Metrics Transit Outcomes","operationId":"api_admin_metrics_transit_outcomes_api_admin_metrics_transit_outcomes_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"number","maximum":31.0,"minimum":0.25,"default":7.0,"title":"Days"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/metrics/meter":{"get":{"summary":"Api Admin Metrics Meter","operationId":"api_admin_metrics_meter_api_admin_metrics_meter_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"number","maximum":365.0,"minimum":0.25,"default":30.0,"title":"Days"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/metrics/verification":{"get":{"summary":"Api Admin Metrics Verification","operationId":"api_admin_metrics_verification_api_admin_metrics_verification_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"number","maximum":365.0,"minimum":0.25,"default":7.0,"title":"Days"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/metrics/activity":{"get":{"summary":"Api Admin Metrics Activity","operationId":"api_admin_metrics_activity_api_admin_metrics_activity_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":3650,"minimum":0,"default":30,"title":"Days"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/metrics/aircraft":{"get":{"summary":"Api Admin Metrics Aircraft","operationId":"api_admin_metrics_aircraft_api_admin_metrics_aircraft_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":3650,"minimum":0,"default":30,"title":"Days"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/metrics/growth":{"get":{"summary":"Api Admin Metrics Growth","operationId":"api_admin_metrics_growth_api_admin_metrics_growth_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":3650,"minimum":0,"default":30,"title":"Days"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/metrics/funnel":{"get":{"summary":"Api Admin Metrics Funnel","operationId":"api_admin_metrics_funnel_api_admin_metrics_funnel_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/metrics/user_cells":{"get":{"summary":"Api Admin Metrics User Cells","operationId":"api_admin_metrics_user_cells_api_admin_metrics_user_cells_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"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"}}}}