{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/customdomain-ai/json-schema/customdomain-ai-email-sender-input-schema.json",
  "title": "EmailSenderInput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/customdomain-ai-applications-api-openapi.yml#/components/schemas/EmailSenderInput",
  "type": "object",
  "required": [
    "mode"
  ],
  "additionalProperties": false,
  "properties": {
    "mode": {
      "type": "string",
      "enum": [
        "default",
        "smtp",
        "none"
      ]
    },
    "smtp_host": {
      "type": "string",
      "description": "A public host name or address. Private, loopback, link-local and metadata addresses are refused."
    },
    "smtp_port": {
      "type": "integer",
      "enum": [
        25,
        465,
        587,
        2525
      ]
    },
    "smtp_username": {
      "type": "string"
    },
    "smtp_password": {
      "type": "string",
      "description": "Write only. Omit to keep the stored password."
    },
    "tls": {
      "type": "string",
      "enum": [
        "implicit",
        "starttls"
      ],
      "description": "implicit on port 465, starttls on the others. Defaults to starttls."
    },
    "from_address": {
      "type": "string",
      "description": "A plain address such as hello@example.com. Required for smtp."
    },
    "from_name": {
      "type": "string",
      "maxLength": 100
    },
    "reply_to": {
      "type": "string"
    }
  }
}