From 82f94cfeb9e669acf7d4c2064c308f16e4c6c306 Mon Sep 17 00:00:00 2001 From: erik Date: Mon, 10 May 2021 13:18:30 +0000 Subject: [PATCH] Add external servers preference to graphql Co-authored-by: Elias Schriefer --- noise.graphql | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/noise.graphql b/noise.graphql index 83187f9..677add3 100644 --- a/noise.graphql +++ b/noise.graphql @@ -27,11 +27,10 @@ type User { # All account preferences for a single user type UserPreferences { privacyPreference: PrivacyPreference! - # TODO: notifications notificationPreference: NotificationPreference! - # TODO: external servers - # TODO: security securityPreference: SecurityPreference! + # TODO: external servers + externalServersPreference: ExternalServersPreference! } type PrivacyPreference { @@ -67,6 +66,12 @@ type SecurityPreference { passwordHash: String! } +type ExternalServersPreference { + privacyPreference: PrivacyPreference + externalServers: RestrictionPolicy! + externalServersLimit: [Url!] +} + # Everyone = Including all = Excluding none # None = Including none = Excluding all enum RestrictionPolicy {