sourcebot/packages/web/src/features/entitlements/constants.ts
2025-04-24 22:28:13 -07:00

20 lines
482 B
TypeScript

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;