{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentsjunction-com/json-schema/agentsjunction-com-message-schema.json",
  "title": "Message",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentsjunction-com-messages-api-openapi.yml#/components/schemas/Message",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "sender": {
          "type": "string"
        },
        "recipient": {
          "type": "string"
        },
        "subject": {
          "type": "string"
        },
        "body": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "createdAt": {
          "type": "string"
        },
        "readAt": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "id",
        "sender",
        "recipient",
        "subject",
        "body",
        "status",
        "createdAt",
        "readAt"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "data"
  ],
  "additionalProperties": false
}