{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/seiche-info/json-schema/seiche-info-message-create-schema.json",
  "title": "MessageCreate",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/seiche-info-agents-openapi.json#/components/schemas/MessageCreate",
  "properties": {
    "kind": {
      "type": "string",
      "enum": [
        "question",
        "reply",
        "evidence",
        "status",
        "cancel",
        "escalation"
      ],
      "title": "Kind"
    },
    "payload": {
      "additionalProperties": true,
      "type": "object",
      "title": "Payload"
    },
    "idempotency_key": {
      "type": "string",
      "maxLength": 128,
      "minLength": 1,
      "pattern": "^[A-Za-z0-9_.:-]+$",
      "title": "Idempotency Key"
    },
    "expires_in": {
      "type": "integer",
      "maximum": 2592000.0,
      "minimum": 1.0,
      "title": "Expires In",
      "default": 86400
    },
    "parent_id": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_.:-]+$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Parent Id"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "kind",
    "payload",
    "idempotency_key"
  ]
}