SurfSense/surfsense_backend/app
Vonic 20c4f128bb feat(story-5.3): add Stripe webhook subscription lifecycle handlers
- Add migration 125: subscription_current_period_end column
- Add PLAN_LIMITS config (free/pro_monthly/pro_yearly token + pages limits)
- Add subscription webhook handlers: created/updated/deleted, invoice payment
- Handle checkout.session.completed for subscription mode separately from PAYG
- Idempotency: subscription_id + status + plan_id + period_end guard
- pages_limit upgraded on activation, gracefully downgraded on cancel
- Token reset on subscription_create and subscription_cycle billing events
- Period_end forward-only guard against out-of-order webhook delivery

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-15 00:43:07 +07:00
..
agents fix: resolve runtime crashes in tool-ui components and backend import errors 2026-04-14 13:42:31 +07:00
config feat(story-5.3): add Stripe webhook subscription lifecycle handlers 2026-04-15 00:43:07 +07:00
connectors fix: resolve runtime crashes in tool-ui components and backend import errors 2026-04-14 13:42:31 +07:00
etl_pipeline Merge upstream/dev into feat/kb-export-and-folder-upload 2026-04-11 10:28:40 +02:00
indexing_pipeline feat: add folder_id support in ConnectorDocument and indexing pipeline for improved document organization 2026-04-08 17:48:50 +05:30
prompts Simplify prompts to seed-based CRUD with version tracking 2026-03-31 18:05:42 +02:00
retriever feat: made agent file sytem optimized 2026-03-28 16:39:46 -07:00
routes feat(story-5.3): add Stripe webhook subscription lifecycle handlers 2026-04-15 00:43:07 +07:00
schemas feat(story-5.2): add Stripe subscription checkout with session verification 2026-04-14 23:58:57 +07:00
services feat(story-3.5): add cloud-mode LLM model selection with token quota enforcement 2026-04-14 17:01:21 +07:00
tasks feat(story-3.5): add cloud-mode LLM model selection with token quota enforcement 2026-04-14 17:01:21 +07:00
templates feat: update report generation and export capabilities to support multiple formats (PDF, DOCX, HTML, LaTeX, EPUB, ODT, plain text) across documentation and backend 2026-03-09 18:41:21 -07:00
utils chore: merge upstream with local feature additions 2026-04-13 23:31:52 +07:00
__init__.py feat: SurfSense v0.0.6 init 2025-03-14 18:53:14 -07:00
app.py Initialize vision LLM router at app and celery startup 2026-04-07 19:21:10 +02:00
celery_app.py Initialize vision LLM router at app and celery startup 2026-04-07 19:21:10 +02:00
db.py feat(story-5.3): add Stripe webhook subscription lifecycle handlers 2026-04-15 00:43:07 +07:00
users.py Seed default prompts on registration and for existing users 2026-03-31 18:12:09 +02:00