Commit Graph

60 Commits

Author SHA1 Message Date
Jon Staab 0705da8b09 Add tenant create endpoint 2026-04-20 15:55:56 +00:00
userAdityaa ca26d41eef fix: relay secret rotation on infra sync updates (#26)
Co-authored-by: userAdityaa <aditya.chaudhary1558@gmail.com>
Co-committed-by: userAdityaa <aditya.chaudhary1558@gmail.com>
2026-04-18 13:24:08 +00:00
userAdityaa 44f9928070 fix: make stripe webhooks explicitly toggleable with mandatory secret validation (#23)
Co-authored-by: userAdityaa <aditya.chaudhary1558@gmail.com>
Co-committed-by: userAdityaa <aditya.chaudhary1558@gmail.com>
2026-04-17 22:57:37 +00:00
Jon Staab 87dcf53d74 Change default backend port 2026-04-17 13:23:26 -07:00
userAdityaa 334f05783f chore: harden relay plan validation to prevent billing bypass and plan-state drift (#20)
Co-authored-by: userAdityaa <aditya.chaudhary1558@gmail.com>
Co-committed-by: userAdityaa <aditya.chaudhary1558@gmail.com>
2026-04-16 21:35:43 +00:00
userAdityaa 145b511f9d docs(auth): document intentional session-style NIP-98 model (#16)
Co-authored-by: userAdityaa <aditya.chaudhary1558@gmail.com>
Co-committed-by: userAdityaa <aditya.chaudhary1558@gmail.com>
2026-04-16 15:40:50 +00:00
userAdityaa bac763c925 fix: invoice error mapping so Stripe 4xx responses are not returned as 500 (#17)
Co-authored-by: userAdityaa <aditya.chaudhary1558@gmail.com>
Co-committed-by: userAdityaa <aditya.chaudhary1558@gmail.com>
2026-04-16 15:39:35 +00:00
userAdityaa 85d37f53ce fix: respect activity_type in set_relay_status and include activate_relay (#14)
Co-authored-by: userAdityaa <aditya.chaudhary1558@gmail.com>
Co-committed-by: userAdityaa <aditya.chaudhary1558@gmail.com>
2026-04-15 20:39:06 +00:00
userAdityaa ce595c8bc5 Ensure all tenants have valid Stripe customer IDs (#5)
Co-authored-by: userAdityaa <aditya.chaudhary1558@gmail.com>
Co-committed-by: userAdityaa <aditya.chaudhary1558@gmail.com>
2026-04-14 23:06:48 +00:00
userAdityaa 1d4034340b fix: invoice.paid reactivating manually deactivated relays (#10)
Co-authored-by: userAdityaa <aditya.chaudhary1558@gmail.com>
Co-committed-by: userAdityaa <aditya.chaudhary1558@gmail.com>
2026-04-14 22:10:40 +00:00
userAdityaa 9a8d02b286 fiat invoice to Lightning msat conversion by applying real-time BTC FX quotes (#7)
Co-authored-by: userAdityaa <aditya.chaudhary1558@gmail.com>
Co-committed-by: userAdityaa <aditya.chaudhary1558@gmail.com>
2026-04-13 21:05:21 +00:00
Jon Staab 0980523a50 Rework billing 2026-04-09 14:11:30 -07:00
Jon Staab 65dfcaeb6c Implement stripe subscription sync 2026-04-07 11:21:40 -07:00
Jon Staab 05e4eac025 Add Stripe subscription sync 2026-04-01 16:42:14 -07:00
Jon Staab 7e0bd14ef3 Tweak relay status 2026-04-01 16:05:15 -07:00
Jon Staab 3e131b6a1b Allow infra to listen to activity actively 2026-04-01 16:01:10 -07:00
Jon Staab 07dfe86210 Separate command and query 2026-04-01 15:47:56 -07:00
Jon Staab baae65b8b2 Clear billing logic, do some cleanup 2026-04-01 15:23:02 -07:00
Jon Staab d1209c635b Fix zooid sync 2026-03-31 14:42:30 -07:00
Jon Staab 8018950ba9 Use invoice items instead of amount 2026-03-31 11:22:20 -07:00
Jon Staab 95c971af1a Avoid duplicate syncs 2026-03-31 06:51:53 -07:00
Jon Staab e6eda81920 Fix relay syncing 2026-03-27 15:32:48 -07:00
Jon Staab 77365f74ee Add relay activity 2026-03-27 15:24:08 -07:00
Jon Staab 6510bc0d85 Use plans from backend 2026-03-27 15:17:45 -07:00
Jon Staab 72b7a8db45 Make tenant creation implicit 2026-03-27 11:24:11 -07:00
Jon Staab a2f9ca9688 Add identity endpoint 2026-03-26 16:50:27 -07:00
Jon Staab 8dfa09d22e Add some tests 2026-03-26 15:06:30 -07:00
Jon Staab 9231079e92 Format, lint, check 2026-03-26 14:53:38 -07:00
Jon Staab 9f737a25cd refactor auth 2026-03-26 13:35:11 -07:00
Jon Staab 6d651e2722 Split api routes up 2026-03-26 13:20:23 -07:00
Jon Staab 619fd0c2ce Split repo methods into tenant and non-tenant versions 2026-03-26 12:59:04 -07:00
Jon Staab 1b3fe346f5 Add plan model 2026-03-26 12:44:41 -07:00
Jon Staab 05437ef113 Fix relay selection 2026-03-26 12:30:15 -07:00
Jon Staab c4a63b18af Update env template 2026-03-26 12:21:51 -07:00
Jon Staab 087405b1ac Lint, format 2026-03-26 10:56:42 -07:00
Jon Staab b796665e31 Add tenant to activity table, include resource type 2026-03-26 08:24:49 -07:00
Jon Staab 28e564e795 Review pass 2026-03-25 17:11:35 -07:00
Jon Staab 6f407fd681 Switch to plural table names 2026-03-25 16:54:30 -07:00
Jon Staab cb2e37c74a Update backend implementation to fit spec 2026-03-25 16:50:44 -07:00
Jon Staab 2e0740910c Create backend spec 2026-03-25 11:21:48 -07:00
Jon Staab 9491d608ae More billing work 2026-03-24 10:20:11 -07:00
Jon Staab 1ea087643b Work on billing 2026-03-09 10:04:13 -07:00
Jon Staab 01d9d3bd05 Add livekit config option 2026-03-03 11:45:57 -08:00
Jon Staab 0482c2710a Rework the relay detail page and edit screen 2026-03-03 11:40:37 -08:00
Jon Staab 7e577bf7ff Stabilize id/schema 2026-03-03 10:20:36 -08:00
Jon Staab 46a270513e Simplify relay upsert 2026-03-03 09:54:38 -08:00
Jon Staab e87eb0c30d Format backend, tweak frontend 2026-02-27 21:26:45 -08:00
Jon Staab 871f99f2ec Add dockerfiles 2026-02-27 20:16:50 -08:00
Jon Staab 6017a65cf4 Fix relay deactivate endpoint 2026-02-27 13:06:02 -08:00
Jon Staab a15372d402 Implement outbox for profile lookup 2026-02-26 16:27:07 -08:00