2021-02-16 17:00:26 +00:00
|
|
|
/**
|
|
|
|
* Server configuration typings
|
|
|
|
*
|
|
|
|
* @author Pierre Hubert
|
|
|
|
*/
|
|
|
|
|
2021-02-17 17:07:55 +00:00
|
|
|
declare interface PasswordPolicy {
|
|
|
|
allow_email_in_password: boolean,
|
|
|
|
allow_name_in_password: boolean,
|
|
|
|
min_password_length: number,
|
|
|
|
min_number_upper_case_letters: number,
|
|
|
|
min_number_lower_case_letters: number,
|
|
|
|
min_number_digits: number,
|
|
|
|
min_number_special_characters: number,
|
|
|
|
min_categories_presence: number,
|
|
|
|
}
|
|
|
|
|
2021-02-16 17:00:26 +00:00
|
|
|
declare interface DataConservationPolicySettings {
|
|
|
|
min_inactive_account_lifetime: number,
|
|
|
|
min_notification_lifetime: number,
|
|
|
|
min_comments_lifetime: number,
|
|
|
|
min_posts_lifetime: number,
|
|
|
|
min_conversation_messages_lifetime: number,
|
|
|
|
min_likes_lifetime: number0
|
|
|
|
}
|
|
|
|
|
|
|
|
declare interface StaticServerConfig {
|
2021-02-17 17:07:55 +00:00
|
|
|
password_policy: PasswordPolicy,
|
2021-02-16 17:00:26 +00:00
|
|
|
data_conservation_policy: DataConservationPolicySettings;
|
|
|
|
}
|