feat: workspace level share settings (#14201)

fix #13698
This commit is contained in:
DarkSky
2026-01-03 01:13:27 +08:00
committed by GitHub
parent 60de882a30
commit 9a7f8e7d4d
36 changed files with 560 additions and 34 deletions
+13
View File
@@ -35,6 +35,7 @@ input AdminUpdateWorkspaceInput {
avatarKey: String
enableAi: Boolean
enableDocEmbedding: Boolean
enableSharing: Boolean
enableUrlPreview: Boolean
features: [FeatureType!]
id: String!
@@ -49,6 +50,7 @@ type AdminWorkspace {
createdAt: DateTime!
enableAi: Boolean!
enableDocEmbedding: Boolean!
enableSharing: Boolean!
enableUrlPreview: Boolean!
features: [FeatureType!]!
id: String!
@@ -1226,10 +1228,15 @@ input ListUserInput {
}
input ListWorkspaceInput {
enableAi: Boolean
enableDocEmbedding: Boolean
enableSharing: Boolean
enableUrlPreview: Boolean
features: [FeatureType!]
first: Int! = 20
keyword: String
orderBy: AdminWorkspaceSort
public: Boolean
skip: Int! = 0
}
@@ -2207,6 +2214,9 @@ input UpdateWorkspaceInput {
"""Enable doc embedding"""
enableDocEmbedding: Boolean
"""Enable workspace sharing"""
enableSharing: Boolean
"""Enable url previous when sharing"""
enableUrlPreview: Boolean
id: ID!
@@ -2432,6 +2442,9 @@ type WorkspaceType {
"""Enable doc embedding"""
enableDocEmbedding: Boolean!
"""Enable workspace sharing"""
enableSharing: Boolean!
"""Enable url previous when sharing"""
enableUrlPreview: Boolean!
histories(before: DateTime, guid: String!, take: Int): [DocHistoryType!]!