Add security preferences to graphql
Co-authored-by: Elias Schriefer
This commit is contained in:
parent
0d4458d7dd
commit
34bb49f18a
@ -31,6 +31,7 @@ type UserPreferences {
|
||||
notificationPreference: NotificationPreference!
|
||||
# TODO: external servers
|
||||
# TODO: security
|
||||
securityPreference: SecurityPreference!
|
||||
}
|
||||
|
||||
type PrivacyPreference {
|
||||
@ -51,10 +52,6 @@ type PrivacyPreference {
|
||||
info: RestrictionPolicy!
|
||||
infoUserLimit: [String!]
|
||||
infoServerLimit: [Url!]
|
||||
|
||||
# One-purpose-passwords
|
||||
# TODO: move to security
|
||||
accountTokens: [ID!]!
|
||||
}
|
||||
|
||||
type NotificationPreference {
|
||||
@ -62,6 +59,14 @@ type NotificationPreference {
|
||||
doNotDisturb: Boolean!
|
||||
}
|
||||
|
||||
type SecurityPreference {
|
||||
# One-purpose-passwords
|
||||
accountTokens: [ID!]!
|
||||
|
||||
# The account's password hash
|
||||
passwordHash: String!
|
||||
}
|
||||
|
||||
# Everyone = Including all = Excluding none
|
||||
# None = Including none = Excluding all
|
||||
enum RestrictionPolicy {
|
||||
|
Loading…
Reference in New Issue
Block a user