diff --git a/services/web/app/src/models/Subscription.mjs b/services/web/app/src/models/Subscription.mjs index cbb8ccb2ee..0e170eee21 100644 --- a/services/web/app/src/models/Subscription.mjs +++ b/services/web/app/src/models/Subscription.mjs @@ -63,6 +63,7 @@ export const SubscriptionSchema = new Schema( managedUsers: { type: Boolean, default: true }, groupSSO: { type: Boolean, default: true }, domainCapture: { type: Boolean, default: false }, + aiToggling: { type: Boolean, default: true }, }, userFeaturesDisabled: Boolean, addOns: Schema.Types.Mixed, diff --git a/services/web/frontend/extracted-translations.json b/services/web/frontend/extracted-translations.json index 87be39cd6e..b3b150f906 100644 --- a/services/web/frontend/extracted-translations.json +++ b/services/web/frontend/extracted-translations.json @@ -123,6 +123,7 @@ "ai_can_make_mistakes": "", "ai_features": "", "ai_features_couldnt_be_toggled": "", + "ai_features_currently_enabled": "", "ai_features_managed_by_overleaf_support": "", "ai_features_off": "", "ai_features_on": "", diff --git a/services/web/frontend/js/utils/meta.ts b/services/web/frontend/js/utils/meta.ts index b198fda736..7524b80fdc 100644 --- a/services/web/frontend/js/utils/meta.ts +++ b/services/web/frontend/js/utils/meta.ts @@ -77,6 +77,7 @@ export interface Meta { 'ol-adminSubscription': AdminSubscription 'ol-adminUserExists': boolean 'ol-aiAssistViaWritefullSource': string + 'ol-aiToggling': boolean 'ol-algolia': AlgoliaConfig | undefined 'ol-allInReconfirmNotificationPeriods': UserEmailData[] 'ol-allowedExperiments': string[] diff --git a/services/web/locales/en.json b/services/web/locales/en.json index 35a284f1fa..4c807ede00 100644 --- a/services/web/locales/en.json +++ b/services/web/locales/en.json @@ -153,6 +153,7 @@ "ai_can_make_mistakes": "AI can make mistakes. Review fixes before you apply them.", "ai_features": "AI features", "ai_features_couldnt_be_toggled": "AI features couldn’t be toggled. Try again, or contact Overleaf support if the problem continues.", + "ai_features_currently_enabled": "AI features are currently <0>enabled for your group.", "ai_features_managed_by_overleaf_support": "AI features are managed by Overleaf support.", "ai_features_off": "AI features off", "ai_features_on": "AI features on", diff --git a/services/web/types/admin/subscription.ts b/services/web/types/admin/subscription.ts index 2d23da20f2..a2715599fb 100644 --- a/services/web/types/admin/subscription.ts +++ b/services/web/types/admin/subscription.ts @@ -28,5 +28,6 @@ export type Subscription = { | StripeAdminClientPaymentProvider features: { domainCapture?: boolean + aiToggling?: boolean } }