feat(server): add doc embedding switch for workspace (#11760)

fix AI-33
This commit is contained in:
darkskygit
2025-04-17 07:13:22 +00:00
parent ebf1d5476d
commit 38e8806787
11 changed files with 71 additions and 11 deletions

View File

@@ -88,6 +88,9 @@ export class WorkspaceType extends WorkspaceFeatureType {
@Field({ description: 'Enable url previous when sharing' })
enableUrlPreview!: boolean;
@Field({ description: 'Enable doc embedding' })
enableDocEmbedding!: boolean;
@Field(() => [InviteUserType], {
description: 'Members of workspace',
})
@@ -133,7 +136,7 @@ export class InvitationType {
@InputType()
export class UpdateWorkspaceInput extends PickType(
PartialType(WorkspaceType),
['public', 'enableAi', 'enableUrlPreview'],
['public', 'enableAi', 'enableUrlPreview', 'enableDocEmbedding'],
InputType
) {
@Field(() => ID)