// This file is generated by atrium-codegen. DO NOT EDIT.
//!Definitions for the `com.atproto.server.defs` namespace.
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct InviteCodeData {
    pub available: i64,
    pub code: String,
    pub created_at: crate::types::string::Datetime,
    pub created_by: String,
    pub disabled: bool,
    pub for_account: String,
    pub uses: Vec<InviteCodeUse>,
}
pub type InviteCode = crate::types::Object<InviteCodeData>;
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct InviteCodeUseData {
    pub used_at: crate::types::string::Datetime,
    pub used_by: crate::types::string::Did,
}
pub type InviteCodeUse = crate::types::Object<InviteCodeUseData>;
