Skip to main content

max / makenotwork

1.2 KB · 39 lines History Blame Raw
1 //! User account API: profile updates, password, library, waitlist, deletion.
2
3 mod broadcast;
4 mod contacts;
5 mod invites;
6 mod library;
7 mod mail_cap;
8 mod notifications;
9 mod profile;
10 mod sessions;
11 mod stripe_tax;
12 mod support;
13 mod waitlist;
14
15 pub(super) use broadcast::broadcast_send;
16 pub(super) use contacts::revoke_contact;
17 pub(super) use invites::create_invite;
18 pub(super) use library::{add_to_library, remove_from_library};
19 pub(super) use mail_cap::mail_cap_request;
20 pub(super) use notifications::update_preferences;
21 pub(super) use profile::{
22 deactivate_account, delete_account, disconnect_stripe, pause_creator, reactivate_account,
23 request_account_deletion, resend_verification, submit_appeal, update_console_theme,
24 update_password, update_profile, update_profile_theme,
25 };
26 pub(super) use sessions::{revoke_other_sessions, revoke_session};
27 pub(super) use stripe_tax::toggle_stripe_tax;
28 pub(super) use support::submit_support_ticket;
29 pub(super) use waitlist::waitlist_apply;
30
31 use serde::Serialize;
32
33 /// JSON response for generic success + message.
34 #[derive(Debug, Serialize)]
35 pub(super) struct SuccessMessageResponse {
36 pub success: bool,
37 pub message: &'static str,
38 }
39