diff --git a/shared/types.ts b/shared/types.ts index 2d33ea8ef0..0215fcfcb4 100644 --- a/shared/types.ts +++ b/shared/types.ts @@ -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", } diff --git a/shared/utils/PlanHelper.ts b/shared/utils/PlanHelper.ts index a4bf180489..9f43e6720e 100644 --- a/shared/utils/PlanHelper.ts +++ b/shared/utils/PlanHelper.ts @@ -22,7 +22,11 @@ export class PlanHelper { /** The features that are included in each plan. */ public static readonly features: Record = { [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),