[READ-ONLY] Mirror of https://github.com/openstatusHQ/openstatus. 馃珫 Status page with uptime monitoring & API monitoring as code 馃珫 openstatus.dev
bun drizzle-orm monitoring monitoring-as-code nextjs observability on-call open-source shadcn-ui status-page statuspage synthetic-monitoring tinybird turso uptime uptime-checker uptime-monitor

api v2 (#1734) master

* plan mode * proto * ci: apply automated fixes * improve api * ci: apply automated fixes * fix build * something * use rpc * ci: apply automated fixes * improve api * :proper api * vibing * ci: apply automated fixes * refactor: extract monitor utilities into separate module Extract shared monitor utility functions (buildRegions, buildAssertions, etc.) into a dedicated monitor-utils.ts file. Reorganize monitor.ts to use these utilities and add new tests for monitor RPC handlers. * feat: enhance proto definitions with validation and new monitor fields - Add buf validation dependency and interceptor for gRPC validation - Expand HTTP monitor proto with timing, TLS, response headers, and assertions - Add DNS and TCP monitor proto improvements with validation rules - Regenerate TypeScript protobuf types with updated field mappings * feat: add create and update monitor support for all monitor types - Implement createDnsMonitor and createTcpMonitor utility functions - Add updateHttpMonitor, updateDnsMonitor, and updateTcpMonitor handlers - Reorganize proto definitions with separate Create/Update request messages - Regenerate TypeScript types with cleaner nested message structures * docs: add proto field documentation for monitor types Add descriptive comments to DNS, HTTP, and TCP monitor proto fields explaining their purpose and expected values. * refactor: rename GEMINI.md to CLAUDE.md and improve monitor handlers - Rename AI instructions file from GEMINI.md to CLAUDE.md - Refactor monitor-utils.ts for better code organization - Enhance monitor.ts with improved error handling and type safety - Add comprehensive tests for monitor RPC handlers * test: update monitor RPC handler tests Refactor and improve test assertions for monitor RPC handlers. Update CLAUDE.md with additional project instructions. * test: add database reset utility and improve API test isolation - Add reset-db.ts utility for cleaning database state between tests - Update bunfig.toml with test configuration - Enhance test files across v1 API routes to use database reset - Improve test isolation for monitors, maintenances, notifications, pages, pageSubscribers, and statusReports endpoints * chore: lint * ci: apply automated fixes * chore: lint * chore: lint * ci: apply automated fixes * fix * fix: bug pr * ci: apply automated fixes * chore: improve logging * api improvment * Add active field to DNS, HTTP, and TCP monitor protos * Add CreateMonitor RPC handler with tests * Refactor RPC handlers into services structure with converters * Refactor assertions converter * Add GetMonitor RPC endpoint with tests * Add ListMonitors and DeleteMonitor RPC endpoints * ci: apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>


+12527 -119
89 changed files