/**
 * Generated by orval 🍺
 * Do not edit manually.
 * messages API
 * This is the messages API schema.
 * OpenAPI spec version: 1.0.0 (v1.0)
 */

/**
 * Serialize mail domains for creating / editing admin view.
 */
export interface MailDomainAdminWrite {
  /** primary key for the record as UUID */
  readonly id: string;
  /**
   * @maxLength 253
   * @pattern ^[a-z0-9][a-z0-9.-]*[a-z0-9]$
   */
  name: string;
  /** date and time at which a record was created */
  readonly created_at: string;
  /** date and time at which a record was last updated */
  readonly updated_at: string;
  /** Create mailboxes automatically based on OIDC emails. */
  oidc_autojoin?: boolean;
  /** Sync mailboxes to an identity provider. */
  identity_sync?: boolean;
  /** Metadata to sync to the maildomain group in the identity provider. */
  custom_attributes?: unknown;
}
