auth-wip
This commit is contained in:
@@ -27,15 +27,11 @@ type AdminUserInfo {
|
||||
roles: [String!]
|
||||
created_at: Int
|
||||
last_seen: Int
|
||||
muted: Boolean
|
||||
is_active: Boolean
|
||||
}
|
||||
|
||||
input AdminUserUpdateInput {
|
||||
id: Int!
|
||||
roles: [String!]
|
||||
muted: Boolean
|
||||
is_active: Boolean
|
||||
}
|
||||
|
||||
type Role {
|
||||
@@ -66,6 +62,4 @@ extend type Mutation {
|
||||
|
||||
# Мутации для управления пользователями
|
||||
adminUpdateUser(user: AdminUserUpdateInput!): Boolean!
|
||||
adminToggleUserBlock(userId: Int!): Boolean!
|
||||
adminToggleUserMute(userId: Int!): Boolean!
|
||||
}
|
@@ -12,9 +12,8 @@ type AuthorStat {
|
||||
|
||||
type Author {
|
||||
id: Int!
|
||||
user: String! # user.id
|
||||
slug: String! # user.nickname
|
||||
name: String # user.preferred_username
|
||||
slug: String!
|
||||
name: String
|
||||
pic: String
|
||||
bio: String
|
||||
about: String
|
||||
@@ -25,10 +24,8 @@ type Author {
|
||||
deleted_at: Int
|
||||
email: String
|
||||
seo: String
|
||||
# synthetic
|
||||
stat: AuthorStat # ratings inside
|
||||
communities: [Community]
|
||||
# Auth fields
|
||||
roles: [String!]
|
||||
email_verified: Boolean
|
||||
}
|
||||
|
Reference in New Issue
Block a user