feat(server): get public user by id (#10434)

close CLOUD-160
This commit is contained in:
fengmk2
2025-03-06 15:25:06 +00:00
parent 7302c4f954
commit 289d3cd20e
13 changed files with 184 additions and 26 deletions
+11 -2
View File
@@ -493,7 +493,7 @@ input GrantDocUserRolesInput {
type GrantedDocUserType {
role: DocRole!
user: PublicUserType!
user: WorkspaceUserType!
}
type GrantedDocUserTypeEdge {
@@ -997,7 +997,6 @@ enum PublicDocMode {
type PublicUserType {
avatarUrl: String
email: String!
id: String!
name: String!
}
@@ -1022,6 +1021,9 @@ type Query {
listCopilotPrompts: [CopilotPromptType!]!
prices: [SubscriptionPrice!]!
"""Get public user by id"""
publicUserById(id: String!): PublicUserType
"""server config"""
serverConfig: ServerConfigType!
@@ -1555,6 +1557,13 @@ type WorkspaceType {
team: Boolean!
}
type WorkspaceUserType {
avatarUrl: String
email: String!
id: String!
name: String!
}
type WrongSignInCredentialsDataType {
email: String!
}