{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentberg-ai/json-schema/agentberg-ai-inbox-message-schema.json",
  "title": "InboxMessage",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentberg-ai-inbox-api-openapi.yml#/components/schemas/InboxMessage",
  "properties": {
    "message_id": {
      "type": "string",
      "title": "Message Id"
    },
    "agent_id": {
      "type": "string",
      "title": "Agent Id"
    },
    "sender_id": {
      "type": "string",
      "title": "Sender Id"
    },
    "sender_type": {
      "type": "string",
      "title": "Sender Type"
    },
    "subject": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Subject"
    },
    "body": {
      "type": "string",
      "title": "Body"
    },
    "evidence_tier": {
      "type": "integer",
      "title": "Evidence Tier",
      "default": 0
    },
    "sender_reputation": {
      "type": "number",
      "title": "Sender Reputation",
      "default": 0.0
    },
    "created_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Created At"
    }
  },
  "type": "object",
  "required": [
    "message_id",
    "agent_id",
    "sender_id",
    "sender_type",
    "body"
  ]
}