changedOutput schema / properties / messages / items / anyOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "attachments": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "content_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "disposition": {
- "type": [
- "string",
- "null"
- ]
- },
- "filename": {
- "type": [
- "string",
- "null"
- ]
- },
- "id": {
- "type": "string"
- },
- "mime_type": {
- "type": "string"
- },
- "related": {
- "type": "boolean"
- },
- "size": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "id",
- "filename",
- "size",
- "mime_type",
- "disposition",
- "content_id",
- "related"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "body": {
- "type": [
- "string",
- "null"
- ]
- },
- "body_source": {
- "anyOf": [
- {
- "enum": [
- "reply_text",
- "text",
- "html"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "reply_text is heuristic extraction, not the original body. Use full format for quoted history, forwards or ambiguous inline answers; complete means untruncated, not original."
- },
- "body_status": {
- "description": "For truncated bodies, use get_message. For not_ready, check again later. For plain_text_unavailable, use full format if html_available.",
- "enum": [
- "not_ready",
- "plain_text_unavailable",
- "truncated",
- "complete"
- ],
- "type": "string"
- },
- "cc": {
- "items": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "address": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "name",
- "address"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "group": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "address": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "name",
- "address"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "name",
- "group"
- ],
- "type": "object"
- }
- ]
- },
- "type": "array"
- },
- "direction": {
- "const": "received",
- "type": "string"
- },
- "from": {
- "anyOf": [
- {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "address": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "name",
- "address"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "group": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "address": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "name",
- "address"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "name",
- "group"
- ],
- "type": "object"
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- },
- "html_available": {
- "type": "boolean"
- },
- "id": {
- "type": "string"
- },
- "inbox_id": {
- "type": "string"
- },
- "labels": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "processing_status": {
- "enum": [
- "pending",
- "processing",
- "ready",
- "failed"
- ],
- "type": "string"
- },
- "received_at": {
- "description": "Absolute ISO 8601 service timestamp in UTC (Z), with millisecond precision.",
- "type": "string"
- },
- "reply": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "in_reply_to": {
- "type": "string"
- },
- "subject": {
- "type": [
- "string",
- "null"
- ]
- },
- "to": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "address": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "address"
- ],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "in_reply_to",
- "to",
- "subject"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "reply_to": {
- "items": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "address": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "name",
- "address"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "group": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "address": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "name",
- "address"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "name",
- "group"
- ],
- "type": "object"
- }
- ]
- },
- "type": "array"
- },
- "subject": {
- "type": [
- "string",
- "null"
- ]
- },
- "thread_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "to": {
- "items": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "address": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "name",
- "address"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "group": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "address": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "name",
- "address"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "name",
- "group"
- ],
- "type": "object"
- }
- ]
- },
- "type": "array"
- }
- },
- "required": [
- "id",
- "inbox_id",
- "thread_id",
- "received_at",
- "processing_status",
- "labels",
- "from",
- "reply_to",
- "to",
- "cc",
- "subject",
- "body",
- "body_source",
- "body_status",
- "html_available",
- "attachments",
- "reply",
- "direction"
- ],
- "type": "object"
- },
- {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "content": {
- "additionalProperties": false,
- "properties": {
- "attachments": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "content_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "disposition": {
- "type": [
- "string",
- "null"
- ]
- },
- "filename": {
- "type": [
- "string",
- "null"
- ]
- },
- "id": {
- "type": "string"
- },
- "mime_type": {
- "type": "string"
- },
- "related": {
- "type": "boolean"
- },
- "size": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "id",
- "filename",
- "size",
- "mime_type",
- "disposition",
- "content_id",
- "related"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "bcc": {
- "items": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "address": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "name",
- "address"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "group": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "address": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "name",
- "address"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "name",
- "group"
- ],
- "type": "object"
- }
- ]
- },
- "type": "array"
- },
- "cc": {
- "items": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "address": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "name",
- "address"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "group": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "address": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "name",
- "address"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "name",
- "group"
- ],
- "type": "object"
- }
- ]
- },
- "type": "array"
- },
- "date": {
- "description": "Sender-supplied Date header: ISO when parseable, otherwise original header text; not receipt time.",
- "type": [
- "string",
- "null"
- ]
- },
- "from": {
- "anyOf": [
- {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "address": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "name",
- "address"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "group": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "address": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "name",
- "address"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "name",
- "group"
- ],
- "type": "object"
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- },
- "html": {
- "type": [
- "string",
- "null"
- ]
- },
- "in_reply_to": {
- "type": [
- "string",
- "null"
- ]
- },
- "message_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "references": {
- "type": [
- "string",
- "null"
- ]
- },
- "reply_text": {
- "description": "Heuristically extracted reply; null means unavailable, an empty string means no new text detected. Original text and HTML are preserved.",
- "type": [
- "string",
- "null"
- ]
- },
- "reply_to": {
- "items": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "address": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "name",
- "address"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "group": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "address": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "name",
- "address"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "name",
- "group"
- ],
- "type": "object"
- }
- ]
- },
- "type": "array"
- },
- "sender": {
- "anyOf": [
- {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "address": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "name",
- "address"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "group": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "address": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "name",
- "address"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "name",
- "group"
- ],
- "type": "object"
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- },
- "subject": {
- "type": [
- "string",
- "null"
- ]
- },
- "text": {
- "type": [
- "string",
- "null"
- ]
- },
- "to": {
- "items": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "address": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "name",
- "address"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "group": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "address": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "name",
- "address"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "name",
- "group"
- ],
- "type": "object"
- }
- ]
- },
- "type": "array"
- }
- },
- "required": [
- "from",
- "sender",
- "reply_to",
- "to",
- "cc",
- "bcc",
- "subject",
- "message_id",
- "in_reply_to",
- "references",
- "reply_text",
- "date",
- "text",
- "html",
- "attachments"
- ],
- "type": "object"
- },
- "direction": {
- "const": "received",
- "type": "string"
- },
- "envelope_from": {
- "type": "string"
- },
- "envelope_to": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "inbox_id": {
- "type": "string"
- },
- "labels": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "message_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "processing_status": {
- "const": "ready",
- "type": "string"
- },
- "raw_size": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "received_at": {
- "description": "Absolute ISO 8601 service timestamp in UTC (Z), with millisecond precision.",
- "type": "string"
- },
- "subject": {
- "type": [
- "string",
- "null"
- ]
- },
- "thread_id": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "id",
- "inbox_id",
- "thread_id",
- "received_at",
- "processing_status",
- "labels",
- "envelope_from",
- "envelope_to",
- "subject",
- "message_id",
- "raw_size",
- "direction",
- "content"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "direction": {
- "const": "received",
- "type": "string"
- },
- "envelope_from": {
- "type": "string"
- },
- "envelope_to": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "inbox_id": {
- "type": "string"
- },
- "labels": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "message_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "processing_status": {
- "enum": [
- "pending",
- "processing",
- "failed"
- ],
- "type": "string"
- },
- "raw_size": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "received_at": {
- "description": "Absolute ISO 8601 service timestamp in UTC (Z), with millisecond precision.",
- "type": "string"
- },
- "subject": {
- "type": [
- "string",
- "null"
- ]
- },
- "thread_id": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "id",
- "inbox_id",
- "thread_id",
- "received_at",
- "processing_status",
- "labels",
- "envelope_from",
- "envelope_to",
- "subject",
- "message_id",
- "raw_size",
- "direction"
- ],
- "type": "object"
- }
- ]
- },
- {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "attachments": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "filename": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "mime_type": {
- "type": "string"
- },
- "size": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "id",
- "filename",
- "mime_type",
- "size"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "bcc": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "address": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "address"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "body": {
- "type": [
- "string",
- "null"
- ]
- },
- "body_source": {
- "anyOf": [
- {
- "enum": [
- "reply_text",
- "text",
- "html"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "reply_text is heuristic extraction, not the original body. Use full format for quoted history, forwards or ambiguous inline answers; complete means untruncated, not original."
- },
- "body_status": {
- "const": "complete",
- "type": "string"
- },
- "cc": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "address": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "address"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "created_at": {
- "description": "Absolute ISO 8601 service timestamp in UTC (Z), with millisecond precision.",
- "type": "string"
- },
- "direction": {
- "const": "sent",
- "type": "string"
- },
- "error_code": {
- "type": [
- "string",
- "null"
- ]
- },
- "from": {
- "additionalProperties": false,
- "properties": {
- "address": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "address"
- ],
- "type": "object"
- },
- "html_available": {
- "type": "boolean"
- },
- "id": {
- "type": "string"
- },
- "in_reply_to": {
- "type": [
- "string",
- "null"
- ]
- },
- "inbox_id": {
- "type": "string"
- },
- "labels": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "recipient_count": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "status": {
- "const": "accepted",
- "description": "Accepted by the email provider, not confirmation of delivery.",
- "type": "string"
- },
- "subject": {
- "type": "string"
- },
- "thread_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "to": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "address": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "address"
- ],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "id",
- "inbox_id",
- "thread_id",
- "created_at",
- "recipient_count",
- "error_code",
- "in_reply_to",
- "labels",
- "from",
- "to",
- "cc",
- "bcc",
- "subject",
- "body",
- "body_source",
- "body_status",
- "html_available",
- "attachments",
- "direction",
- "status"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "attachments": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "filename": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "mime_type": {
- "type": "string"
- },
- "size": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "id",
- "filename",
- "mime_type",
- "size"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "bcc": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "address": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "address"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "body": {
- "type": [
- "string",
- "null"
- ]
- },
- "body_source": {
- "anyOf": [
- {
- "enum": [
- "reply_text",
- "text",
- "html"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "reply_text is heuristic extraction, not the original body. Use full format for quoted history, forwards or ambiguous inline answers; complete means untruncated, not original."
- },
- "body_status": {
- "const": "complete",
- "type": "string"
- },
- "cc": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "address": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "address"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "created_at": {
- "description": "Absolute ISO 8601 service timestamp in UTC (Z), with millisecond precision.",
- "type": "string"
- },
- "direction": {
- "const": "sent",
- "type": "string"
- },
- "error_code": {
- "type": [
- "string",
- "null"
- ]
- },
- "from": {
- "additionalProperties": false,
- "properties": {
- "address": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "address"
- ],
- "type": "object"
- },
- "guidance": {
- "type": "string"
- },
- "html_available": {
- "type": "boolean"
- },
- "id": {
- "type": "string"
- },
- "in_reply_to": {
- "type": [
- "string",
- "null"
- ]
- },
- "inbox_id": {
- "type": "string"
- },
- "labels": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "recipient_count": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "status": {
- "enum": [
- "rejected",
- "unknown"
- ],
- "type": "string"
- },
- "subject": {
- "type": "string"
- },
- "thread_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "to": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "address": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "address"
- ],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "id",
- "inbox_id",
- "thread_id",
- "created_at",
- "recipient_count",
- "error_code",
- "in_reply_to",
- "labels",
- "from",
- "to",
- "cc",
- "bcc",
- "subject",
- "body",
- "body_source",
- "body_status",
- "html_available",
- "attachments",
- "direction",
- "status",
- "guidance"
- ],
- "type": "object"
- }
- ]
- },
- {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "created_at": {
- "description": "Absolute ISO 8601 service timestamp in UTC (Z), with millisecond precision.",
- "type": "string"
- },
- "direction": {
- "const": "sent",
- "type": "string"
- },
- "error_code": {
- "type": [
- "string",
- "null"
- ]
- },
- "id": {
- "type": "string"
- },
- "in_reply_to": {
- "type": [
- "string",
- "null"
- ]
- },
- "inbox_id": {
- "type": "string"
- },
- "labels": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "provider_message_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "recipient_count": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "reply_text": {
- "type": [
- "string",
- "null"
- ]
- },
- "status": {
- "const": "accepted",
- "description": "Accepted by the email provider, not confirmation of delivery.",
- "type": "string"
- },
- "submission": {
- "additionalProperties": false,
- "properties": {
- "attachments": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "filename": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "mime_type": {
- "type": "string"
- },
- "size": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "id",
- "filename",
- "mime_type",
- "size"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "bcc": {
- "items": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "address": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "address"
- ],
- "type": "object"
- }
- ]
- },
- "type": "array"
- },
- "cc": {
- "items": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "address": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "address"
- ],
- "type": "object"
- }
- ]
- },
- "type": "array"
- },
- "from": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "address": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "address"
- ],
- "type": "object"
- }
- ]
- },
- "headers": {
- "additionalProperties": false,
- "properties": {
- "In-Reply-To": {
- "type": "string"
- },
- "References": {
- "type": "string"
- }
- },
- "required": [
- "In-Reply-To",
- "References"
- ],
- "type": "object"
- },
- "html": {
- "type": "string"
- },
- "subject": {
- "type": "string"
- },
- "text": {
- "type": "string"
- },
- "to": {
- "items": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "address": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "address"
- ],
- "type": "object"
- }
- ]
- },
- "type": "array"
- }
- },
- "required": [
- "from",
- "to",
- "cc",
- "bcc",
- "subject",
- "text",
- "attachments"
- ],
- "type": "object"
- },
- "thread_id": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "id",
- "inbox_id",
- "thread_id",
- "created_at",
- "recipient_count",
- "error_code",
- "in_reply_to",
- "labels",
- "direction",
- "reply_text",
- "provider_message_id",
- "submission",
- "status"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "created_at": {
- "description": "Absolute ISO 8601 service timestamp in UTC (Z), with millisecond precision.",
- "type": "string"
- },
- "direction": {
- "const": "sent",
- "type": "string"
- },
- "error_code": {
- "type": [
- "string",
- "null"
- ]
- },
- "guidance": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "in_reply_to": {
- "type": [
- "string",
- "null"
- ]
- },
- "inbox_id": {
- "type": "string"
- },
- "labels": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "provider_message_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "recipient_count": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "reply_text": {
- "type": [
- "string",
- "null"
- ]
- },
- "status": {
- "enum": [
- "rejected",
- "unknown"
- ],
- "type": "string"
- },
- "submission": {
- "additionalProperties": false,
- "properties": {
- "attachments": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "filename": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "mime_type": {
- "type": "string"
- },
- "size": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "id",
- "filename",
- "mime_type",
- "size"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "bcc": {
- "items": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "address": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "address"
- ],
- "type": "object"
- }
- ]
- },
- "type": "array"
- },
- "cc": {
- "items": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "address": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "address"
- ],
- "type": "object"
- }
- ]
- },
- "type": "array"
- },
- "from": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "address": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "address"
- ],
- "type": "object"
- }
- ]
- },
- "headers": {
- "additionalProperties": false,
- "properties": {
- "In-Reply-To": {
- "type": "string"
- },
- "References": {
- "type": "string"
- }
- },
- "required": [
- "In-Reply-To",
- "References"
- ],
- "type": "object"
- },
- "html": {
- "type": "string"
- },
- "subject": {
- "type": "string"
- },
- "text": {
- "type": "string"
- },
- "to": {
- "items": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "address": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "address"
- ],
- "type": "object"
- }
- ]
- },
- "type": "array"
- }
- },
- "required": [
- "from",
- "to",
- "cc",
- "bcc",
- "subject",
- "text",
- "attachments"
- ],
- "type": "object"
- },
- "thread_id": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "id",
- "inbox_id",
- "thread_id",
- "created_at",
- "recipient_count",
- "error_code",
- "in_reply_to",
- "labels",
- "direction",
- "reply_text",
- "provider_message_id",
- "submission",
- "status",
- "guidance"
- ],
- "type": "object"
- }
- ]
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "attachments": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "content_id": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "disposition": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "filename": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "id": {
+ "type": "string"
+ },
+ "mime_type": {
+ "type": "string"
+ },
+ "related": {
+ "type": "boolean"
+ },
+ "size": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "id",
+ "filename",
+ "size",
+ "mime_type",
+ "disposition",
+ "content_id",
+ "related"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "body": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "body_source": {
+ "anyOf": [
+ {
+ "enum": [
+ "reply_text",
+ "text",
+ "html"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "reply_text: only the newly written text, extracted without quoted history; empty when none was found. For forwards, quoted history or answers written inline, read format full. text: the plain-text body. html: text taken from the HTML body."
+ },
+ "body_status": {
+ "description": "complete: body is not truncated. truncated: get_message returns the whole body. not_ready: no parsed content yet; while processing_status is pending or processing, read again shortly; when it is failed, read the original with read_raw_message. plain_text_unavailable: read format full if html_available.",
+ "enum": [
+ "not_ready",
+ "plain_text_unavailable",
+ "truncated",
+ "complete"
+ ],
+ "type": "string"
+ },
+ "cc": {
+ "items": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "address": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "address"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "group": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "address": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "address"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "group"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "direction": {
+ "const": "received",
+ "type": "string"
+ },
+ "from": {
+ "anyOf": [
+ {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "address": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "address"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "group": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "address": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "address"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "group"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "html_available": {
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ },
+ "inbox_id": {
+ "type": "string"
+ },
+ "labels": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "processing_status": {
+ "enum": [
+ "pending",
+ "processing",
+ "ready",
+ "failed"
+ ],
+ "type": "string"
+ },
+ "received_at": {
+ "description": "Absolute ISO 8601 service timestamp in UTC (Z), with millisecond precision.",
+ "type": "string"
+ },
+ "reply": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "in_reply_to": {
+ "type": "string"
+ },
+ "subject": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "to": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "address": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "address"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "in_reply_to",
+ "to",
+ "subject"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Suggested in_reply_to, recipients and subject for send_message. to comes from sender-written headers: check it against the assignment."
+ },
+ "reply_to": {
+ "items": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "address": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "address"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "group": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "address": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "address"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "group"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "subject": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "thread_id": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "to": {
+ "items": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "address": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "address"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "group": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "address": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "address"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "group"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "id",
+ "inbox_id",
+ "thread_id",
+ "received_at",
+ "processing_status",
+ "labels",
+ "from",
+ "reply_to",
+ "to",
+ "cc",
+ "subject",
+ "body",
+ "body_source",
+ "body_status",
+ "html_available",
+ "attachments",
+ "reply",
+ "direction"
+ ],
+ "type": "object"
+ },
+ {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "content": {
+ "additionalProperties": false,
+ "properties": {
+ "attachments": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "content_id": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "disposition": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "filename": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "id": {
+ "type": "string"
+ },
+ "mime_type": {
+ "type": "string"
+ },
+ "related": {
+ "type": "boolean"
+ },
+ "size": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "id",
+ "filename",
+ "size",
+ "mime_type",
+ "disposition",
+ "content_id",
+ "related"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "bcc": {
+ "items": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "address": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "address"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "group": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "address": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "address"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "group"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "cc": {
+ "items": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "address": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "address"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "group": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "address": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "address"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "group"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "date": {
+ "description": "Sender-supplied Date header: ISO when parseable, otherwise original header text; not receipt time.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "from": {
+ "anyOf": [
+ {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "address": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "address"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "group": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "address": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "address"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "group"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "html": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "in_reply_to": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "message_id": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "references": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "reply_text": {
+ "description": "Newly written text extracted from the body; empty when none was found, null when extraction was not possible.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "reply_to": {
+ "items": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "address": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "address"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "group": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "address": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "address"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "group"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "sender": {
+ "anyOf": [
+ {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "address": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "address"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "group": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "address": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "address"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "group"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "subject": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "text": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "to": {
+ "items": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "address": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "address"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "group": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "address": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "address"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "group"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "from",
+ "sender",
+ "reply_to",
+ "to",
+ "cc",
+ "bcc",
+ "subject",
+ "message_id",
+ "in_reply_to",
+ "references",
+ "reply_text",
+ "date",
+ "text",
+ "html",
+ "attachments"
+ ],
+ "type": "object"
+ },
+ "direction": {
+ "const": "received",
+ "type": "string"
+ },
+ "envelope_from": {
+ "type": "string"
+ },
+ "envelope_to": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "inbox_id": {
+ "type": "string"
+ },
+ "labels": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "message_id": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "processing_status": {
+ "const": "ready",
+ "type": "string"
+ },
+ "raw_size": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "received_at": {
+ "description": "Absolute ISO 8601 service timestamp in UTC (Z), with millisecond precision.",
+ "type": "string"
+ },
+ "subject": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "thread_id": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "inbox_id",
+ "thread_id",
+ "received_at",
+ "processing_status",
+ "labels",
+ "envelope_from",
+ "envelope_to",
+ "subject",
+ "message_id",
+ "raw_size",
+ "direction",
+ "content"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "direction": {
+ "const": "received",
+ "type": "string"
+ },
+ "envelope_from": {
+ "type": "string"
+ },
+ "envelope_to": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "inbox_id": {
+ "type": "string"
+ },
+ "labels": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "message_id": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "processing_status": {
+ "enum": [
+ "pending",
+ "processing",
+ "failed"
+ ],
+ "type": "string"
+ },
+ "raw_size": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "received_at": {
+ "description": "Absolute ISO 8601 service timestamp in UTC (Z), with millisecond precision.",
+ "type": "string"
+ },
+ "subject": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "thread_id": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "inbox_id",
+ "thread_id",
+ "received_at",
+ "processing_status",
+ "labels",
+ "envelope_from",
+ "envelope_to",
+ "subject",
+ "message_id",
+ "raw_size",
+ "direction"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "attachments": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "filename": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "mime_type": {
+ "type": "string"
+ },
+ "size": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "id",
+ "filename",
+ "mime_type",
+ "size"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "bcc": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "address": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "address"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "body": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "body_source": {
+ "anyOf": [
+ {
+ "enum": [
+ "reply_text",
+ "text",
+ "html"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "reply_text: only the newly written text, extracted without quoted history; empty when none was found. For forwards, quoted history or answers written inline, read format full. text: the plain-text body. html: text taken from the HTML body."
+ },
+ "body_status": {
+ "const": "complete",
+ "type": "string"
+ },
+ "cc": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "address": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "address"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "created_at": {
+ "description": "Absolute ISO 8601 service timestamp in UTC (Z), with millisecond precision.",
+ "type": "string"
+ },
+ "direction": {
+ "const": "sent",
+ "type": "string"
+ },
+ "error_code": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "from": {
+ "additionalProperties": false,
+ "properties": {
+ "address": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "address"
+ ],
+ "type": "object"
+ },
+ "html_available": {
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ },
+ "in_reply_to": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "inbox_id": {
+ "type": "string"
+ },
+ "labels": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "recipient_count": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "status": {
+ "const": "accepted",
+ "description": "Accepted by the email provider, not confirmation of delivery.",
+ "type": "string"
+ },
+ "subject": {
+ "type": "string"
+ },
+ "thread_id": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "to": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "address": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "address"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "id",
+ "inbox_id",
+ "thread_id",
+ "created_at",
+ "recipient_count",
+ "error_code",
+ "in_reply_to",
+ "labels",
+ "from",
+ "to",
+ "cc",
+ "bcc",
+ "subject",
+ "body",
+ "body_source",
+ "body_status",
+ "html_available",
+ "attachments",
+ "direction",
+ "status"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "attachments": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "filename": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "mime_type": {
+ "type": "string"
+ },
+ "size": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "id",
+ "filename",
+ "mime_type",
+ "size"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "bcc": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "address": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "address"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "body": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "body_source": {
+ "anyOf": [
+ {
+ "enum": [
+ "reply_text",
+ "text",
+ "html"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "reply_text: only the newly written text, extracted without quoted history; empty when none was found. For forwards, quoted history or answers written inline, read format full. text: the plain-text body. html: text taken from the HTML body."
+ },
+ "body_status": {
+ "const": "complete",
+ "type": "string"
+ },
+ "cc": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "address": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "address"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "created_at": {
+ "description": "Absolute ISO 8601 service timestamp in UTC (Z), with millisecond precision.",
+ "type": "string"
+ },
+ "direction": {
+ "const": "sent",
+ "type": "string"
+ },
+ "error_code": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "from": {
+ "additionalProperties": false,
+ "properties": {
+ "address": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "address"
+ ],
+ "type": "object"
+ },
+ "guidance": {
+ "type": "string"
+ },
+ "html_available": {
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ },
+ "in_reply_to": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "inbox_id": {
+ "type": "string"
+ },
+ "labels": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "recipient_count": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "status": {
+ "enum": [
+ "rejected",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "subject": {
+ "type": "string"
+ },
+ "thread_id": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "to": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "address": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "address"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "id",
+ "inbox_id",
+ "thread_id",
+ "created_at",
+ "recipient_count",
+ "error_code",
+ "in_reply_to",
+ "labels",
+ "from",
+ "to",
+ "cc",
+ "bcc",
+ "subject",
+ "body",
+ "body_source",
+ "body_status",
+ "html_available",
+ "attachments",
+ "direction",
+ "status",
+ "guidance"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "created_at": {
+ "description": "Absolute ISO 8601 service timestamp in UTC (Z), with millisecond precision.",
+ "type": "string"
+ },
+ "direction": {
+ "const": "sent",
+ "type": "string"
+ },
+ "error_code": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "id": {
+ "type": "string"
+ },
+ "in_reply_to": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "inbox_id": {
+ "type": "string"
+ },
+ "labels": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "provider_message_id": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "recipient_count": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "reply_text": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "status": {
+ "const": "accepted",
+ "description": "Accepted by the email provider, not confirmation of delivery.",
+ "type": "string"
+ },
+ "submission": {
+ "additionalProperties": false,
+ "properties": {
+ "attachments": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "filename": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "mime_type": {
+ "type": "string"
+ },
+ "size": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "id",
+ "filename",
+ "mime_type",
+ "size"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "bcc": {
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "address": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "address"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "cc": {
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "address": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "address"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "from": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "address": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "address"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "headers": {
+ "additionalProperties": false,
+ "properties": {
+ "In-Reply-To": {
+ "type": "string"
+ },
+ "References": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "In-Reply-To",
+ "References"
+ ],
+ "type": "object"
+ },
+ "html": {
+ "type": "string"
+ },
+ "subject": {
+ "type": "string"
+ },
+ "text": {
+ "type": "string"
+ },
+ "to": {
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "address": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "address"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "from",
+ "to",
+ "cc",
+ "bcc",
+ "subject",
+ "text",
+ "attachments"
+ ],
+ "type": "object"
+ },
+ "thread_id": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "inbox_id",
+ "thread_id",
+ "created_at",
+ "recipient_count",
+ "error_code",
+ "in_reply_to",
+ "labels",
+ "direction",
+ "reply_text",
+ "provider_message_id",
+ "submission",
+ "status"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "created_at": {
+ "description": "Absolute ISO 8601 service timestamp in UTC (Z), with millisecond precision.",
+ "type": "string"
+ },
+ "direction": {
+ "const": "sent",
+ "type": "string"
+ },
+ "error_code": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "guidance": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "in_reply_to": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "inbox_id": {
+ "type": "string"
+ },
+ "labels": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "provider_message_id": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "recipient_count": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "reply_text": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "status": {
+ "enum": [
+ "rejected",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "submission": {
+ "additionalProperties": false,
+ "properties": {
+ "attachments": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "filename": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "mime_type": {
+ "type": "string"
+ },
+ "size": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "id",
+ "filename",
+ "mime_type",
+ "size"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "bcc": {
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "address": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "address"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "cc": {
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "address": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "address"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "from": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "address": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "address"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "headers": {
+ "additionalProperties": false,
+ "properties": {
+ "In-Reply-To": {
+ "type": "string"
+ },
+ "References": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "In-Reply-To",
+ "References"
+ ],
+ "type": "object"
+ },
+ "html": {
+ "type": "string"
+ },
+ "subject": {
+ "type": "string"
+ },
+ "text": {
+ "type": "string"
+ },
+ "to": {
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "address": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "address"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "from",
+ "to",
+ "cc",
+ "bcc",
+ "subject",
+ "text",
+ "attachments"
+ ],
+ "type": "object"
+ },
+ "thread_id": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "inbox_id",
+ "thread_id",
+ "created_at",
+ "recipient_count",
+ "error_code",
+ "in_reply_to",
+ "labels",
+ "direction",
+ "reply_text",
+ "provider_message_id",
+ "submission",
+ "status",
+ "guidance"
+ ],
+ "type": "object"
+ }
+ ]
+ }
+]