{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hostfully/json-schema/hostfully-messages-api-response-wrapper-messages-api3-2-response-dto-schema.json",
  "title": "MessagesApiResponseWrapperMessagesApi3_2ResponseDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hostfully-messages-api-openapi.yml#/components/schemas/MessagesApiResponseWrapperMessagesApi3_2ResponseDto",
  "type": "object",
  "properties": {
    "message": {
      "$ref": "#/$defs/MessagesApi3_2ResponseDto"
    }
  },
  "$defs": {
    "MessageAttachmentApi3_2Dto": {
      "type": "object",
      "properties": {
        "uid": {
          "type": "string"
        },
        "uri": {
          "type": "string"
        },
        "fileName": {
          "type": "string"
        },
        "contentType": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "IMAGE_JPEG",
            "IMAGE_GIF",
            "IMAGE_PNG",
            "PDF",
            "ZIP",
            "CSV"
          ]
        }
      }
    },
    "MessageContentApi3Dto": {
      "required": [
        "subject",
        "text"
      ],
      "type": "object",
      "properties": {
        "subject": {
          "type": "string"
        },
        "text": {
          "type": "string"
        }
      }
    },
    "MessagesApi3_2ResponseDto": {
      "type": "object",
      "properties": {
        "uid": {
          "type": "string"
        },
        "createdUtcDateTime": {
          "type": "string",
          "format": "date-time"
        },
        "status": {
          "type": "string",
          "enum": [
            "CREATED",
            "PENDING",
            "SENT",
            "FAILED"
          ]
        },
        "type": {
          "type": "string",
          "enum": [
            "HOSTFULLY_PMP",
            "AIRBNB",
            "VRBO",
            "BOOKING_COM",
            "EMAIL",
            "SMS",
            "WHATSAPP"
          ]
        },
        "senderType": {
          "type": "string",
          "enum": [
            "SYSTEM",
            "AGENCY",
            "GUEST",
            "OWNER",
            "UNKNOWN_AIRBNB_USER"
          ]
        },
        "content": {
          "$ref": "#/$defs/MessageContentApi3Dto"
        },
        "threadUid": {
          "type": "string"
        },
        "attachments": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/MessageAttachmentApi3_2Dto"
          }
        }
      }
    }
  }
}