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!
|
notificationPreference: NotificationPreference!
|
||||||
# TODO: external servers
|
# TODO: external servers
|
||||||
# TODO: security
|
# TODO: security
|
||||||
|
securityPreference: SecurityPreference!
|
||||||
}
|
}
|
||||||
|
|
||||||
type PrivacyPreference {
|
type PrivacyPreference {
|
||||||
@ -51,10 +52,6 @@ type PrivacyPreference {
|
|||||||
info: RestrictionPolicy!
|
info: RestrictionPolicy!
|
||||||
infoUserLimit: [String!]
|
infoUserLimit: [String!]
|
||||||
infoServerLimit: [Url!]
|
infoServerLimit: [Url!]
|
||||||
|
|
||||||
# One-purpose-passwords
|
|
||||||
# TODO: move to security
|
|
||||||
accountTokens: [ID!]!
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type NotificationPreference {
|
type NotificationPreference {
|
||||||
@ -62,6 +59,14 @@ type NotificationPreference {
|
|||||||
doNotDisturb: Boolean!
|
doNotDisturb: Boolean!
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type SecurityPreference {
|
||||||
|
# One-purpose-passwords
|
||||||
|
accountTokens: [ID!]!
|
||||||
|
|
||||||
|
# The account's password hash
|
||||||
|
passwordHash: String!
|
||||||
|
}
|
||||||
|
|
||||||
# Everyone = Including all = Excluding none
|
# Everyone = Including all = Excluding none
|
||||||
# None = Including none = Excluding all
|
# None = Including none = Excluding all
|
||||||
enum RestrictionPolicy {
|
enum RestrictionPolicy {
|
||||||
|
Loading…
Reference in New Issue
Block a user