use export::rest::NoData; use models::users::user_notifications::NotificationType; use utoipa::OpenApi; use crate::auth::handlers; use crate::auth::handlers::accept_agreement::AcceptAgreementCmd; use crate::auth::handlers::me::MeResp; use crate::auth::handlers::unread_notifications_count::UnreadCountResp; use crate::auth::services::agreements::AcceptAgreementResp; use crate::auth::services::notifications::NotificationDto; use crate::auth::services::preferences::{UpdatePreferencesCmd, UserPreferencesDto}; use crate::auth::services::profile::{ProfileDto, UpdateProfileCmd, UserMeDto}; use crate::auth::services::reports::{CreateReportCmd, ReportDto}; use crate::auth::share::types::{AgreementDoc, UserPublic}; #[derive(OpenApi)] #[openapi( info(title = "gitdata auth api", version = "1.0"), paths( handlers::accept_agreement::accept_agreement, handlers::account_deletion::account_deletion_status, handlers::account_deletion::request_account_deletion, handlers::account_deletion::cancel_account_deletion, handlers::create_report::create_report, handlers::delete_notification::delete_notification, handlers::get_preferences::get_preferences, handlers::get_user::get_user, handlers::users::list_users_batch, handlers::users::get_user_by_username, handlers::users::update_username, handlers::list_agreements::list_agreements, handlers::list_notifications::list_notifications, handlers::mark_notifications_read::mark_notifications_read, handlers::me::me, handlers::unread_notifications_count::unread_notifications_count, handlers::update_preferences::update_preferences, handlers::update_profile::update_profile, handlers::jwt_request::jwt_request, handlers::password::change_password, handlers::two_factor::totp_status, handlers::two_factor::totp_setup, handlers::two_factor::totp_enable, handlers::two_factor::totp_disable, handlers::two_factor::recovery_codes, handlers::two_factor::regenerate_recovery_codes, handlers::sessions::list_sessions, handlers::sessions::revoke_all_sessions, handlers::sessions::revoke_session, handlers::devices::list_devices, ), components(schemas( export::pagination::PageQuery, export::pagination::Page, handlers::mark_notifications_read::MarkNotificationsReadCmd, handlers::mark_notifications_read::MarkedCountResp, NoData, UserPublic, AgreementDoc, UserMeDto, ProfileDto, UpdateProfileCmd, UserPreferencesDto, UpdatePreferencesCmd, AcceptAgreementCmd, AcceptAgreementResp, MeResp, NotificationDto, CreateReportCmd, ReportDto, UnreadCountResp, NotificationType, handlers::jwt_request::JwtRequestQuery, handlers::jwt_request::JwtRequestResp, handlers::password::ChangePasswordCmd, handlers::two_factor::TotpStatusResp, handlers::two_factor::TotpSetupResp, handlers::two_factor::TotpEnableCmd, handlers::two_factor::TotpCodeCmd, handlers::two_factor::RegenerateRecoveryCodesCmd, handlers::two_factor::RecoveryCodesResp, models::users::access_scope::AccessKeyScope, handlers::sessions::SessionDto, handlers::sessions::SessionKind, handlers::sessions::CountResp, export::pagination::Page, handlers::devices::DeviceDto, )) )] pub struct AuthApiDoc;