[BTAPI-76] Delegate the doorbell trigger endpoint to wealthsimple-api #93
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/BTAPI-76"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Ticket
BTAPI-76 Delegate the doorbell trigger endpoint to wealthsimple-api
Summary
POST /sync/wealthsimplenow also forwards towealthsimple-api's ownPOST /sync/trigger, gated behindConfig.wealthsimpleApiEnabled. When the flag is off (the default), behavior is unchanged — a single forward to the existing localsync:9998/triggerhop.requestActivityFeedSync()tolib/wealthsimple/activity-feed-client, timeout sized (4s) to fit under the Android doorbell client's own 10s read timeout alongside the local hop's 5s timeout.api/app.tsso a flag-on deployment missingWS_API_KEYfails loud at startup instead of 401ing silently on every doorbell ring.server/lib/wealthsimple/CLAUDE.mdand.env.exampleto document the new branch point.A related architecture gap was found during pre-PR review:
wealthsimple-api's/sync/triggercurrently only debounces itself and has no rolling-hour rate ceiling or 401/429 cooldown of its own, unlike the direct-Wealthsimple engine this forward runs alongside. That's tracked separately as WSAPI-8 ("Add a rolling-hour rate ceiling + 401/429 cooldown to /sync/trigger") — out of scope for this PR.🤖 Generated with Claude Code