sourcebot/packages/web/src/features/entitlements/constants.ts

21 lines
482 B
TypeScript
Raw Normal View History

2025-04-25 05:28:13 +00:00
const planLabels = {
oss: "OSS",
"cloud:team": "Team",
"self-hosted:enterprise": "Enterprise (Self-Hosted)",
} as const;
export type Plan = keyof typeof planLabels;
const entitlements = [
"search-contexts",
"billing"
] as const;
export type Entitlement = (typeof entitlements)[number];
export const entitlementsByPlan: Record<Plan, Entitlement[]> = {
oss: [],
"cloud:team": ["billing"],
"self-hosted:enterprise": ["search-contexts"],
} as const;