KeepSafe-web Replacement Call Map

Current non-admin calls made by KeepSafe-web and the intended Entity/facade replacement. Rows marked TBD are not implemented yet. Some calls belong behind other KeepSafe services long-term, but may be proxied by Entity during migration.

Source: projects/keepsafe-web at a574a61 Live EVENT_AI_ORIGIN: https://api.keepsafe.ai Entity host: https://entity.keepsafe.ai Entity CRUD API JSON
Area Current KeepSafe-web call Replacement call Status Notes
Browser calls to EVENT_AI_ORIGINGET /api/event?id={id}GET https://entity.keepsafe.ai/api/event?id={id} or GET https://entity.keepsafe.ai/v1/events/{id}ImplementedUsed by event details page and event query.
Browser calls to EVENT_AI_ORIGINGET /api/event?email={email}GET https://entity.keepsafe.ai/api/event?email={email}ImplementedReturns events affecting assets owned by the email.
Browser calls to EVENT_AI_ORIGINGET /api/getEventsByAssetWithGeoJson?monitored_site={assetId}GET https://entity.keepsafe.ai/api/getEventsByAssetWithGeoJson?monitored_site={assetId} or GET https://entity.keepsafe.ai/v1/assets/{id}/eventsImplementedGeoJSON URL passthrough exists when events contain geometry URLs.
Browser calls to EVENT_AI_ORIGINPOST /alerts/email/bulkPOST https://alerts.keepsafe.ai/v1/alerts and POST https://alerts.keepsafe.ai/v1/alerts/{id}/sendPartialAlerting now owns contact-alert fan-out and calls Messenger for email transport. KeepSafe-web still needs to replace the raw bulk email payload with Alerting alert/message/recipient calls.
Browser calls to EVENT_AI_ORIGINPOST /alerts/push/bulkPOST https://alerts.keepsafe.ai/v1/alerts and POST https://alerts.keepsafe.ai/v1/alerts/{id}/sendPartialAlerting now owns contact-alert fan-out and calls Messenger for push transport. KeepSafe-web still needs to replace the raw bulk push payload with Alerting alert/message/recipient calls.
Browser calls to EVENT_AI_ORIGINPOST /alerts/sms/bulkPOST https://alerts.keepsafe.ai/v1/alerts and POST https://alerts.keepsafe.ai/v1/alerts/{id}/sendPartialAlerting now owns contact-alert fan-out and calls Messenger for SMS transport. KeepSafe-web still needs to replace the raw bulk SMS payload with Alerting alert/message/recipient calls.
KeepSafe-web server routes / TypeORM replacementGET/PUT /api/users?id={id}GET/PATCH https://entity.keepsafe.ai/v1/users/{id}ImplementedReplace direct User repository reads/writes with Entity user API calls; admin-only user list/create/delete calls are omitted from this non-admin map.
KeepSafe-web server routes / TypeORM replacementGET/PUT /api/users/settingsGET/PUT https://entity.keepsafe.ai/v1/users/{id}/settingsImplementedReplace direct UserSetting repository reads/writes with Entity user-settings API calls.
KeepSafe-web server routes / TypeORM replacementPOST /api/assetsPOST https://entity.keepsafe.ai/v1/assetsPartialEntity can create assets one at a time today; bulk import can start as a KeepSafe-web loop, with a future bulk endpoint if needed.
KeepSafe-web server routes / TypeORM replacementGET/POST/PUT /api/assets/settingsGET/PATCH https://entity.keepsafe.ai/v1/assets/{id}PartialEntity stores asset settings on asset records; KeepSafe-web needs shape/ownership parity for the current asset-settings UI.
KeepSafe-web server routes / TypeORM replacementGET/POST /api/events/dismissedGET/POST https://entity.keepsafe.ai/v1/users/{id}/dismissed-eventsTBDNeeds dismissed-event model keyed by user and event before TypeORM can be removed for this route.
KeepSafe-web server routes / TypeORM replacementGET/POST/PUT/DELETE /api/contactsGET/POST/PATCH/DELETE https://alerts.keepsafe.ai/v1/contactsImplementedMoved to KeepSafe Alerting. Legacy contacts have been imported; KeepSafe-web still needs its local route cutover from TypeORM to Alerting.
KeepSafe-web server routes / TypeORM replacementGET/PUT/DELETE /api/contacts/groupsGET/POST/PATCH/DELETE https://alerts.keepsafe.ai/v1/contact-groupsImplementedMoved to KeepSafe Alerting. Legacy contact groups and memberships have been imported; KeepSafe-web route shape still needs cutover.
KeepSafe-web server routes / TypeORM replacementGET/POST/PUT/DELETE /api/notificationsGET/POST/PATCH/DELETE https://alerts.keepsafe.ai/v1/alerts plus POST https://alerts.keepsafe.ai/v1/alerts/{id}/sendImplementedMoved to KeepSafe Alerting as alerts, alert messages, alert recipients, and delivery attempts. Alerting calls Messenger for email/SMS/push.
KeepSafe-web server routes / TypeORM replacementPOST /api/notifications/dismissPATCH https://alerts.keepsafe.ai/v1/alerts/{id}ImplementedMoved to KeepSafe Alerting. Set alert status/dismissed state on the Alerting alert record.
KeepSafe-web server routes / TypeORM replacementGET /api/notifications/confirmPOST https://alerts.keepsafe.ai/v1/alert-recipients/{id}/confirmImplementedMoved to KeepSafe Alerting as recipient confirmation state. Confirmation endpoint is public by recipient id/code.
KeepSafe-web server routes / TypeORM replacementPOST /api/email and POST /api/email/bulkPOST https://messenger.keepsafe.ai/api/email/register and POST https://messenger.keepsafe.ai/api/email/sendPartialMove ad hoc SendGrid calls to Messenger; KeepSafe-web needs a recipient-registration shim where it currently sends raw email addresses.
KeepSafe-web server routes / TypeORM replacement/api/auth/*https://identity.keepsafe.ai/authorize plus /token and /userinfoPartialKeepSafe Identity is live and should replace Auth.js DB-backed login/session tables for KeepSafe-web, but the KeepSafe-web auth client/session cutover still needs implementation.
External services used by KeepSafe-webMapbox geocoding/static/map tilesKeep externalExternalNot part of Entity replacement.

Generated by KeepSafe Entity Service. Keep this page updated when new compatibility routes or proxy/delegation routes are implemented.