mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
feat(server): allow to set default role in page (#9963)
This commit is contained in:
@@ -305,6 +305,7 @@ enum ErrorNames {
|
||||
NO_COPILOT_PROVIDER_AVAILABLE
|
||||
OAUTH_ACCOUNT_ALREADY_CONNECTED
|
||||
OAUTH_STATE_EXPIRED
|
||||
PAGE_DEFAULT_ROLE_CAN_NOT_BE_OWNER
|
||||
PAGE_IS_NOT_PUBLIC
|
||||
PASSWORD_REQUIRED
|
||||
QUERY_TOO_LONG
|
||||
@@ -630,7 +631,7 @@ type Mutation {
|
||||
removeWorkspaceFeature(feature: FeatureType!, workspaceId: String!): Boolean!
|
||||
resumeSubscription(idempotencyKey: String @deprecated(reason: "use header `Idempotency-Key`"), plan: SubscriptionPlan = Pro, workspaceId: String): SubscriptionType!
|
||||
revoke(userId: String!, workspaceId: String!): Boolean!
|
||||
revokeDocUserRoles(docId: String!, userIds: [String!]!): Boolean!
|
||||
revokeDocUserRoles(input: RevokeDocUserRolesInput!): Boolean!
|
||||
revokeInviteLink(workspaceId: String!): Boolean!
|
||||
revokePage(pageId: String!, workspaceId: String!): Boolean! @deprecated(reason: "use revokePublicPage")
|
||||
revokePublicPage(pageId: String!, workspaceId: String!): WorkspacePage!
|
||||
@@ -647,7 +648,8 @@ type Mutation {
|
||||
|
||||
"""Update a chat session"""
|
||||
updateCopilotSession(options: UpdateChatSessionInput!): String!
|
||||
updateDocUserRole(docId: String!, role: DocRole!, userId: String!): Boolean!
|
||||
updateDocUserRole(input: UpdateDocUserRoleInput!): Boolean!
|
||||
updatePageDefaultRole(input: UpdatePageDefaultRoleInput!): Boolean!
|
||||
updateProfile(input: UpdateUserInput!): UserType!
|
||||
|
||||
"""update server runtime configurable setting"""
|
||||
@@ -802,6 +804,12 @@ type RemoveAvatar {
|
||||
success: Boolean!
|
||||
}
|
||||
|
||||
input RevokeDocUserRolesInput {
|
||||
docId: String!
|
||||
userIds: [String!]!
|
||||
workspaceId: String!
|
||||
}
|
||||
|
||||
type RuntimeConfigNotFoundDataType {
|
||||
key: String!
|
||||
}
|
||||
@@ -996,6 +1004,19 @@ input UpdateChatSessionInput {
|
||||
sessionId: String!
|
||||
}
|
||||
|
||||
input UpdateDocUserRoleInput {
|
||||
docId: String!
|
||||
role: DocRole!
|
||||
userId: String!
|
||||
workspaceId: String!
|
||||
}
|
||||
|
||||
input UpdatePageDefaultRoleInput {
|
||||
docId: String!
|
||||
role: DocRole!
|
||||
workspaceId: String!
|
||||
}
|
||||
|
||||
input UpdateUserInput {
|
||||
"""User name"""
|
||||
name: String
|
||||
|
||||
Reference in New Issue
Block a user