managarten/services/mana-credits/src/routes
Till JS 004fc0b2fd feat(credits): add 2-phase debit (reserve/commit/refund)
Introduces credit_reservations table + three internal endpoints so services
that need to charge only after a downstream call succeeds (notably the
upcoming mana-research fan-out across paid provider APIs) can reserve
credits atomically, then commit on success or refund on failure. One-shot
/credits/use remains for synchronous operations.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-17 14:41:41 +02:00
..
admin.ts feat(credits): admin-gifted sync subscriptions 2026-04-14 14:11:07 +02:00
credits.ts refactor(credits): simplify credit system — remove productivity credits, guild pools, complex gift types 2026-04-10 19:08:42 +02:00
gifts.ts refactor(credits): simplify credit system — remove productivity credits, guild pools, complex gift types 2026-04-10 19:08:42 +02:00
health.ts feat(services): create mana-credits service (Hono + Bun) 2026-03-27 22:08:43 +01:00
internal.ts feat(credits): add 2-phase debit (reserve/commit/refund) 2026-04-17 14:41:41 +02:00
stripe-webhook.ts feat(services): create mana-credits service (Hono + Bun) 2026-03-27 22:08:43 +01:00
sync.ts feat(credits): add sync billing — monthly credit subscription for cloud sync 2026-04-10 22:21:58 +02:00