Skip to main content

max / makenotwork

1.1 KB · 37 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 notifications;
8 mod profile;
9 mod sessions;
10 mod stripe_tax;
11 mod support;
12 mod waitlist;
13
14 pub(super) use broadcast::broadcast_send;
15 pub(super) use contacts::revoke_contact;
16 pub(super) use invites::create_invite;
17 pub(super) use support::submit_support_ticket;
18 pub(super) use library::{add_to_library, remove_from_library};
19 pub(super) use notifications::update_preferences;
20 pub(super) use profile::{
21 deactivate_account, delete_account, disconnect_stripe, pause_creator,
22 reactivate_account, request_account_deletion, resend_verification, submit_appeal,
23 update_password, update_profile,
24 };
25 pub(super) use sessions::{revoke_other_sessions, revoke_session};
26 pub(super) use stripe_tax::toggle_stripe_tax;
27 pub(super) use waitlist::waitlist_apply;
28
29 use serde::Serialize;
30
31 /// JSON response for generic success + message.
32 #[derive(Debug, Serialize)]
33 pub(super) struct SuccessMessageResponse {
34 pub success: bool,
35 pub message: &'static str,
36 }
37