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,
|
2021-03-06 09:35:54 +00:00
|
|
|
min_likes_lifetime: number
|
2021-02-16 17:00:26 +00:00
|
|
|
}
|
|
|
|
|
2021-03-12 15:07:16 +00:00
|
|
|
declare interface ConversationPolicy {
|
2021-03-12 15:10:32 +00:00
|
|
|
min_message_len: number,
|
|
|
|
max_message_len: number,
|
|
|
|
allowed_files_type: String[],
|
|
|
|
files_max_size: number,
|
|
|
|
writing_event_interval: number,
|
|
|
|
writing_event_lifetime: number,
|
2021-03-12 15:07:16 +00:00
|
|
|
}
|
|
|
|
|
2021-04-16 05:54:03 +00:00
|
|
|
declare interface AccountInformationPolicy {
|
|
|
|
min_first_name_length: number,
|
|
|
|
max_first_name_length: number,
|
|
|
|
min_last_name_length: number,
|
|
|
|
max_last_name_length: number,
|
2021-04-16 13:20:44 +00:00
|
|
|
max_location_length: number,
|
2021-04-16 05:54:03 +00:00
|
|
|
}
|
|
|
|
|
2021-02-16 17:00:26 +00:00
|
|
|
declare interface StaticServerConfig {
|
2021-02-20 10:13:42 +00:00
|
|
|
terms_url: string,
|
2021-02-20 10:23:54 +00:00
|
|
|
privacy_policy_url: string,
|
2021-02-20 10:13:42 +00:00
|
|
|
play_store_url: string,
|
|
|
|
android_direct_download_url: string,
|
2021-02-17 17:07:55 +00:00
|
|
|
password_policy: PasswordPolicy,
|
2021-03-06 09:35:54 +00:00
|
|
|
data_conservation_policy: DataConservationPolicySettings,
|
2021-03-12 15:07:16 +00:00
|
|
|
conversations_policy: ConversationPolicy,
|
2021-04-16 05:54:03 +00:00
|
|
|
account_info_policy: AccountInformationPolicy,
|
2021-02-16 17:00:26 +00:00
|
|
|
}
|