Public Access
1
0

feat: add billing foundation and entitlement enforcement

- add workspace-scoped billing storage, usage tracking, and add-on catalog
- enforce plan entitlements for search and deep research routes
- expand pricing and account UI around billing state, usage, and upgrades
This commit is contained in:
pguerrerox
2026-05-22 17:50:28 +00:00
parent f1a46c79f2
commit 94b8c357b4
21 changed files with 2269 additions and 151 deletions
+2 -2
View File
@@ -24,7 +24,7 @@ export type EntitlementDecisionStatus =
| 'blocked_addon_available'
| 'contact_sales_required';
export type EntitlementDenialReason = 'feature_not_available' | 'quota_exhausted' | 'custom_enterprise_only' | 'not_launch_ready';
export type EntitlementDenialReason = 'feature_not_available' | 'quota_exhausted' | 'custom_enterprise_only' | 'not_launch_ready' | 'billing_not_configured';
export interface UsageSubject {
type: UsageSubjectType;
@@ -75,7 +75,7 @@ export interface EntitlementDecision {
resource: UsageResource;
requiredAmount: number;
remainingAmount: number | null;
currentPlanCode: ActivePlanCode;
currentPlanCode: ActivePlanCode | null;
suggestedUpgradePlanCode: ActivePlanCode | null;
addonEligible: boolean;
contactSalesRequired: boolean;