Show banners

This commit is contained in:
2021-12-30 10:23:47 +01:00
parent ebf6cf2fc3
commit 1cb1ec2b3f
13 changed files with 159 additions and 11 deletions

View File

@ -41,6 +41,14 @@ declare interface AccountInformationPolicy {
max_location_length: number,
}
declare interface Banner {
enabled: boolean,
expire ?: number,
nature: "information"|"warning"|"success",
message: Map<string, string>,
link ?: string,
}
declare interface StaticServerConfig {
terms_url: string,
privacy_policy_url: string,
@ -50,4 +58,5 @@ declare interface StaticServerConfig {
data_conservation_policy: DataConservationPolicySettings,
conversations_policy: ConversationPolicy,
account_info_policy: AccountInformationPolicy,
banner?: Banner,
}