Skip to main content

agentmail/types/
organizations.rs

1use serde::Deserialize;
2
3/// The organization the current API key belongs to, from
4/// `get_organization`.
5#[derive(Clone, Debug, Deserialize)]
6pub struct Organization {
7    /// Unique organization id.
8    pub organization_id: String,
9    /// Current number of inboxes.
10    #[serde(default)]
11    pub inbox_count: Option<i64>,
12    /// Current number of domains.
13    #[serde(default)]
14    pub domain_count: Option<i64>,
15    /// Maximum inboxes allowed on the plan.
16    #[serde(default)]
17    pub inbox_limit: Option<i64>,
18    /// Maximum domains allowed on the plan.
19    #[serde(default)]
20    pub domain_limit: Option<i64>,
21    /// Billing plan type, when set.
22    #[serde(default)]
23    pub billing_type: Option<String>,
24    /// Billing account id, when set.
25    #[serde(default)]
26    pub billing_id: Option<String>,
27    /// Active billing subscription id, when set.
28    #[serde(default)]
29    pub billing_subscription_id: Option<String>,
30    /// Authentication provider id, when set.
31    #[serde(default)]
32    pub authentication_id: Option<String>,
33    /// Authentication provider type, when set.
34    #[serde(default)]
35    pub authentication_type: Option<String>,
36    /// When the organization was last updated (RFC 3339).
37    #[serde(default)]
38    pub updated_at: Option<String>,
39    /// When the organization was created (RFC 3339).
40    #[serde(default)]
41    pub created_at: Option<String>,
42}