{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentrux-com/json-schema/agentrux-com-agentrux-api-routers-pipe-router-publish-event-body-schema.json",
  "title": "PublishEventBody",
  "description": "inline / object_ref 経路は本 body の field 排他で表現する (publish_event side で検証)。",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentrux-com-pipe-api-openapi.yml#/components/schemas/agentrux__api__routers__pipe_router__PublishEventBody",
  "properties": {
    "event_type": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 128
        },
        {
          "type": "null"
        }
      ],
      "title": "Event Type"
    },
    "payload": {
      "title": "Payload",
      "description": "inline 経路で必須 (任意 JSON 値)"
    },
    "payload_object_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Payload Object Id",
      "description": "object_ref 経路で必須、Phase 2.4a で発行した `pob_<uuid>`"
    },
    "metadata": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Metadata"
    }
  },
  "type": "object"
}