{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/teliax/json-schema/teliax-carrier-email-dto-schema.json",
  "title": "CarrierEmailDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/teliax-carrier-email-api-openapi.yml#/components/schemas/CarrierEmailDto",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "direction": {
      "type": "string"
    },
    "purpose": {
      "type": "string"
    },
    "messageId": {
      "type": "string"
    },
    "fromIdentity": {
      "type": "string"
    },
    "replyTo": {
      "type": "string"
    },
    "toRecipients": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "ccRecipients": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "subject": {
      "type": "string"
    },
    "body": {
      "type": "string"
    },
    "attachments": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AttachmentDto"
      }
    },
    "tns": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "losingSpid": {
      "type": "string"
    },
    "carrierName": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "failureReason": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    }
  },
  "$defs": {
    "AttachmentDto": {
      "type": "object",
      "properties": {
        "filename": {
          "type": "string"
        },
        "size": {
          "type": "integer",
          "format": "int64"
        },
        "mimeType": {
          "type": "string"
        }
      }
    }
  }
}