{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/stratly-us/json-schema/stratly-us-chat-message-schema.json",
  "title": "ChatMessage",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/stratly-us-openapi.json#/components/schemas/ChatMessage",
  "properties": {
    "agent_id": {
      "type": "string"
    },
    "at": {
      "type": "string"
    },
    "body": {
      "type": "string"
    },
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "room": {
      "type": "string"
    },
    "team": {
      "items": {
        "$ref": "#/$defs/TeamMember"
      },
      "type": "array"
    },
    "team_count": {
      "type": "integer"
    }
  },
  "type": "object",
  "$defs": {
    "TeamMember": {
      "properties": {
        "agent_id": {
          "type": "string"
        },
        "joined_at": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}