Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .fern/replay.lock
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,13 @@ generations:
cli_version: unknown
generator_versions:
fernapi/fern-cli-generator: 0.38.10
current_generation: 308d354656091734faca9c223bfe60f9e77d86be
- commit_sha: b2a6b08f26e2b126570ae386315f506079313666
tree_hash: 146b27a432b958811fecc96b86b4aca9ec8a6112
timestamp: 2026-09-16T20:49:15.030Z
cli_version: unknown
generator_versions:
fernapi/fern-cli-generator: 0.38.10
current_generation: b2a6b08f26e2b126570ae386315f506079313666
patches:
- id: patch-bf63549e
content_hash: sha256:a660ef1be2e6211b2d9aee152022a339ffd879d56f0e8b0b557ce0fb5e4d9b5c
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "agentmail-cli"
version = "1.4.0"
version = "1.5.0"
edition = "2021"
description = "Command-line interface for the AgentMail API. Send, receive, reply, and manage threaded email conversations from your terminal."
license = "MIT"
Expand Down
14 changes: 14 additions & 0 deletions agentmail-types/src/types/create_domain_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ use super::*;
pub struct CreateDomainRequest {
#[serde(default)]
pub domain: DomainName,
/// Allow registration when the domain already has Google Workspace MX records.
/// Defaults to false; registration otherwise returns 422 when a conflicting
/// provider is detected.
/// This flag does not configure DNS or inbound routing. For shared Google
/// Workspace domains, follow the [Google Workspace guide](/google-workspace).
#[serde(skip_serializing_if = "Option::is_none")]
pub allow_conflicting_provider: Option<bool>,
#[serde(skip_serializing_if = "Option::is_none")]
pub feedback_enabled: Option<FeedbackEnabled>,
#[serde(skip_serializing_if = "Option::is_none")]
Expand All @@ -24,6 +31,7 @@ impl CreateDomainRequest {
#[non_exhaustive]
pub struct CreateDomainRequestBuilder {
domain: Option<DomainName>,
allow_conflicting_provider: Option<bool>,
feedback_enabled: Option<FeedbackEnabled>,
subdomains_enabled: Option<SubdomainsEnabled>,
tracking_enabled: Option<TrackingEnabled>,
Expand All @@ -35,6 +43,11 @@ impl CreateDomainRequestBuilder {
self
}

pub fn allow_conflicting_provider(mut self, value: bool) -> Self {
self.allow_conflicting_provider = Some(value);
self
}

pub fn feedback_enabled(mut self, value: FeedbackEnabled) -> Self {
self.feedback_enabled = Some(value);
self
Expand All @@ -56,6 +69,7 @@ impl CreateDomainRequestBuilder {
pub fn build(self) -> Result<CreateDomainRequest, BuildError> {
Ok(CreateDomainRequest {
domain: self.domain.ok_or_else(|| BuildError::missing_field("domain"))?,
allow_conflicting_provider: self.allow_conflicting_provider,
feedback_enabled: self.feedback_enabled,
subdomains_enabled: self.subdomains_enabled,
tracking_enabled: self.tracking_enabled,
Expand Down
10 changes: 10 additions & 0 deletions agentmail-types/src/types/provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ pub struct Provider {
pub terms_url: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub privacy_url: Option<String>,
/// Maximum number of accounts your organization may sign up at this provider. Omitted when the provider sets no limit. 0 means the provider has paused new sign-ups; existing accounts keep signing in.
#[serde(skip_serializing_if = "Option::is_none")]
pub owner_signup_limit: Option<i64>,
}

impl Provider {
Expand All @@ -38,6 +41,7 @@ pub struct ProviderBuilder {
logo_url: Option<String>,
terms_url: Option<String>,
privacy_url: Option<String>,
owner_signup_limit: Option<i64>,
}

impl ProviderBuilder {
Expand Down Expand Up @@ -76,6 +80,11 @@ impl ProviderBuilder {
self
}

pub fn owner_signup_limit(mut self, value: i64) -> Self {
self.owner_signup_limit = Some(value);
self
}

/// Consumes the builder and constructs a [`Provider`].
/// This method will fail if any of the following fields are not set:
/// - [`provider_id`](ProviderBuilder::provider_id)
Expand All @@ -88,6 +97,7 @@ impl ProviderBuilder {
logo_url: self.logo_url,
terms_url: self.terms_url,
privacy_url: self.privacy_url,
owner_signup_limit: self.owner_signup_limit,
})
}
}
2 changes: 1 addition & 1 deletion cli/agentmail/openapi0.json

Large diffs are not rendered by default.

Loading