{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/configure-dev/json-schema/configure-dev-send-email-response-schema.json",
  "title": "SendEmailResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/configure-dev-openapi.yml#/components/schemas/SendEmailResponse",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "sent",
    "email",
    "message"
  ],
  "properties": {
    "sent": {
      "type": "boolean",
      "description": "True only when Gmail returned a provider message id. False with delivery_status=unconfirmed when the provider completed the request without an id."
    },
    "retryable": {
      "type": "boolean",
      "description": "False when delivery is unconfirmed because retrying could send a duplicate email."
    },
    "email": {
      "type": "object",
      "additionalProperties": true,
      "required": [
        "to",
        "subject",
        "body_preview",
        "delivery_status"
      ],
      "properties": {
        "to": {
          "type": "string",
          "format": "email"
        },
        "subject": {
          "type": "string"
        },
        "body_preview": {
          "type": "string"
        },
        "delivery_status": {
          "type": "string",
          "enum": [
            "accepted",
            "unconfirmed"
          ],
          "description": "Accepted means Gmail returned a provider message id. Unconfirmed means the provider completed the request without an id; do not retry automatically."
        },
        "provider_message_id": {
          "type": "string",
          "description": "Gmail message id returned by the provider. Present when delivery_status is accepted."
        },
        "from_account": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "id": {
              "type": "string"
            },
            "email": {
              "type": "string",
              "format": "email"
            }
          }
        },
        "gmail_data": {
          "description": "Raw Gmail/connector response data retained for diagnostics."
        }
      }
    },
    "message": {
      "type": "string"
    }
  }
}