This commit is contained in:
Tom Moor committed 2026-09-26 22:46:30 -04:00
1 parent 78ada6ceb5
commit d7619e1e2b
2 files changed
+10 -2

No files matched your search

+5 -1
View File
@@ -870,7 +870,7 @@ export enum Plan {
Legacy = "legacy",
}
/** Features that are only available on some plans. */
/** Features that are potentially gated by entitlements. */
export enum PlanFeature {
/** Access to the workspace audit log. */
AuditLog = "auditLog",
@@ -878,6 +878,8 @@ export enum PlanFeature {
AdvancedSecurity = "advancedSecurity",
/** Inviting guest users. */
Guests = "guests",
/** Synchronization of groups with an external IDP */
GroupSync = "groupSync",
/** Integrations that are not included in every plan. */
PremiumIntegrations = "premiumIntegrations",
/** Management of API keys across the workspace. */
@@ -888,4 +890,6 @@ export enum PlanFeature {
AIAnswers = "aiAnswers",
/** Serving the workspace from a custom domain. */
CustomDomain = "customDomain",
/** SAML authentication provider */
SAML = "saml",
}
+5 -1
View File
@@ -22,7 +22,11 @@ export class PlanHelper {
/** The features that are included in each plan. */
public static readonly features: Record<Plan, PlanFeature[]> = {
[Plan.Community]: [],
[Plan.Standard]: [PlanFeature.ContentManagement, PlanFeature.Guests],
[Plan.Standard]: [
PlanFeature.ContentManagement,
PlanFeature.Guests,
PlanFeature.AIAnswers,
],
[Plan.Business]: Object.values(PlanFeature),
[Plan.Enterprise]: Object.values(PlanFeature),
[Plan.Legacy]: Object.values(PlanFeature),