d3ro-voice/server/supabase/functions/_shared
Yun Chan 88f24d84a1 refactor(core): keep plan prices, cloud quotas and public URLs in one contract (WS-A)
Prices, quotas and site URLs were copied by hand into the edge functions,
admin, desktop and the landing site, and the copies disagreed (Payple billed
9,900/29,900 KRW, admin labels said 12,900/24,900 KRW and $9.9/$19.9, the
site said 2,900/8,900 KRW).

- packages/core/src/plan-catalog.ts is the single source for PLAN_PRICE_KRW
  (Free 0 / Pro 2,900 / Pro+ 8,900 a month) and PLAN_QUOTA.
- packages/core/src/web-urls.ts is the single source for the public origin,
  the /app web-app base path, SITE_URLS and billingUrl().
- Deno cannot bundle packages/core, so scripts/ci/sync-core-contract.mjs
  generates _shared/core-contract.generated.ts; `npm run contract:check`
  fails on drift (same pattern as version:sync).
- Payple checkout, renewal and webhook amount checks now bill the catalog
  price, so existing subscribers move to the new price at their next renewal.
  quota.ts, team-contract.ts and the tests read the generated values.
- Admin MRR/ARR is computed in KRW from the catalog; license labels, the
  release link and desktop PREMIUM_LLM limits derive from core; the site
  imports prices and quotas directly.

Policy: docs/REFACTOR_POLICY.md Wave 3, W3-1 and W3-2.
2026-09-26 15:48:18 +09:00
..
admin-auth.ts feat(release): prepare 1.1.0 candidate 2026-08-29 18:33:45 +09:00
admin-contract.test.ts feat(release): prepare 1.1.0 candidate 2026-08-29 18:33:45 +09:00
admin-contract.ts feat(release): prepare 1.1.0 candidate 2026-08-29 18:33:45 +09:00
admin-current-role.ts feat(release): prepare 1.1.0 candidate 2026-08-29 18:33:45 +09:00
admob-ssv.test.ts feat(release): prepare 1.1.0 candidate 2026-08-29 18:33:45 +09:00
admob-ssv.ts feat(release): prepare 1.1.0 candidate 2026-08-29 18:33:45 +09:00
apns.test.ts feat(server): deliver push without a Firebase project 2026-09-16 23:24:44 +09:00
apns.ts feat(server): deliver push without a Firebase project 2026-09-16 23:24:44 +09:00
audit.ts feat(admin): Phase V2-6 Admin CRM 고도화 — CRUD + 차트 + 결제 + 감사 2026-04-12 21:32:47 +09:00
auth.ts feat(release): prepare 1.1.0 candidate 2026-08-29 18:33:45 +09:00
billing-catalog.test.ts refactor(core): keep plan prices, cloud quotas and public URLs in one contract (WS-A) 2026-09-26 15:48:18 +09:00
billing-catalog.ts feat(release): prepare 1.1.0 candidate 2026-08-29 18:33:45 +09:00
content-report-contract.test.ts feat(release): prepare 1.1.0 candidate 2026-08-29 18:33:45 +09:00
content-report-contract.ts feat(release): prepare 1.1.0 candidate 2026-08-29 18:33:45 +09:00
core-contract.generated.ts refactor(core): keep plan prices, cloud quotas and public URLs in one contract (WS-A) 2026-09-26 15:48:18 +09:00
cors.ts feat(release): prepare 1.1.0 candidate 2026-08-29 18:33:45 +09:00
generation-receipt.test.ts feat(release): prepare 1.1.0 candidate 2026-08-29 18:33:45 +09:00
generation-receipt.ts feat(release): prepare 1.1.0 candidate 2026-08-29 18:33:45 +09:00
generative-ai-safety.test.ts feat(release): prepare 1.1.0 candidate 2026-08-29 18:33:45 +09:00
generative-ai-safety.ts feat(release): prepare 1.1.0 candidate 2026-08-29 18:33:45 +09:00
google-play.test.ts feat(release): prepare 1.1.0 candidate 2026-08-29 18:33:45 +09:00
google-play.ts feat(release): prepare 1.1.0 candidate 2026-08-29 18:33:45 +09:00
google-pubsub.test.ts feat(release): prepare 1.1.0 candidate 2026-08-29 18:33:45 +09:00
google-pubsub.ts feat(release): prepare 1.1.0 candidate 2026-08-29 18:33:45 +09:00
llm-contract.test.ts feat(release): prepare 1.1.0 candidate 2026-08-29 18:33:45 +09:00
llm-contract.ts feat(release): prepare 1.1.0 candidate 2026-08-29 18:33:45 +09:00
meeting-document-contract.test.ts feat(release): prepare 1.1.0 candidate 2026-08-29 18:33:45 +09:00
meeting-document-contract.ts feat(release): prepare 1.1.0 candidate 2026-08-29 18:33:45 +09:00
payple.test.ts refactor(core): keep plan prices, cloud quotas and public URLs in one contract (WS-A) 2026-09-26 15:48:18 +09:00
payple.ts refactor(core): keep plan prices, cloud quotas and public URLs in one contract (WS-A) 2026-09-26 15:48:18 +09:00
push-contract.test.ts feat(server): deliver push without a Firebase project 2026-09-16 23:24:44 +09:00
push-contract.ts feat(server): deliver push without a Firebase project 2026-09-16 23:24:44 +09:00
quota.ts refactor(core): keep plan prices, cloud quotas and public URLs in one contract (WS-A) 2026-09-26 15:48:18 +09:00
stt-contract.test.ts feat(release): prepare 1.1.0 candidate 2026-08-29 18:33:45 +09:00
stt-contract.ts feat(release): prepare 1.1.0 candidate 2026-08-29 18:33:45 +09:00
team-contract.test.ts refactor(core): keep plan prices, cloud quotas and public URLs in one contract (WS-A) 2026-09-26 15:48:18 +09:00
team-contract.ts refactor(core): keep plan prices, cloud quotas and public URLs in one contract (WS-A) 2026-09-26 15:48:18 +09:00
webpush.test.ts feat(server): deliver push without a Firebase project 2026-09-16 23:24:44 +09:00
webpush.ts feat(server): deliver push without a Firebase project 2026-09-16 23:24:44 +09:00