{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/artificialwit-com/json-schema/artificialwit-com-send-message-request-schema.json",
  "title": "SendMessageRequest",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/artificialwit-com-openapi.json#/components/schemas/SendMessageRequest",
  "properties": {
    "content": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Content"
    },
    "reply_to_message_id": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Reply To Message Id"
    },
    "attachments": {
      "items": {
        "$ref": "#/$defs/AttachmentRef"
      },
      "type": "array",
      "title": "Attachments"
    },
    "client_message_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Client Message Id",
      "description": "Client-generated id for retry-safe sends and optimistic-UI reconciliation."
    }
  },
  "type": "object",
  "$defs": {
    "AttachmentRef": {
      "properties": {
        "stored_filename": {
          "type": "string",
          "title": "Stored Filename"
        },
        "original_filename": {
          "type": "string",
          "title": "Original Filename"
        },
        "mime_type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Mime Type"
        },
        "file_size_bytes": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "File Size Bytes"
        }
      },
      "type": "object",
      "required": [
        "stored_filename",
        "original_filename"
      ],
      "title": "AttachmentRef",
      "description": "A file already uploaded via POST /file/upload, attached to a message."
    }
  }
}