Raw schema
{
"type": "object",
"properties": {
"messages": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"source": {
"type": "string",
"enum": [
"email",
"slack",
"linear",
"other"
]
},
"channel": {
"type": "string"
},
"thread_id": {
"type": "string"
},
"sender": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"handle": {
"type": "string"
}
},
"required": [
"id",
"name"
]
},
"recipients": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name"
]
}
},
"subject": {
"type": "string"
},
"body": {
"type": "string"
},
"timestamp": {
"type": "string"
},
"direction": {
"type": "string",
"enum": [
"sent",
"received"
]
},
"is_reply": {
"type": "boolean"
},
"attachments_count": {
"type": "number"
},
"reactions_count": {
"type": "number"
}
},
"required": [
"id",
"source",
"sender",
"body",
"timestamp",
"direction"
]
},
"description": "Unified messages from any source (email, Slack, Linear, etc.)"
},
"date": {
"description": "Reference date in ISO format. Defaults to today.",
"type": "string"
},
"locale": {
"description": "Primary locale for pattern matching. Defaults to 'fr'.",
"type": "string",
"enum": [
"fr",
"en"
]
}
},
"required": [
"messages"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}