changedOutput schema / properties / result / allOf
Previous value: -[
- {
- "properties": {
- "meta": {
- "additionalProperties": {},
- "properties": {},
- "type": "object"
- },
- "ok": {
- "enum": [
- true
- ],
- "type": "boolean"
- }
- },
- "required": [
- "ok",
- "meta"
- ],
- "type": "object"
- },
- {
- "properties": {
- "data": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "attachments": {
- "description": "Attachment metadata for this message. Each item includes a short-lived `download_url`; if it expires, fetch message metadata again.",
- "items": {
- "additionalProperties": false,
- "properties": {
- "content_id": {
- "description": "Content ID for inline attachments, when present.",
- "type": [
- "string",
- "null"
- ]
- },
- "content_type": {
- "example": "application/pdf",
- "type": "string"
- },
- "disposition": {
- "example": "attachment",
- "type": [
- "string",
- "null"
- ]
- },
- "download_url": {
- "description": "Short-lived URL for this exact attachment. Fetch it promptly; if it expires, call the message or attachment metadata endpoint again to receive a fresh URL.",
- "example": "https://app.sendmux.ai/api/v1/mailbox/messages/msg_123/attachment-downloads/attref_abc123?download_token=...",
- "type": "string"
- },
- "filename": {
- "example": "invoice.pdf",
- "type": [
- "string",
- "null"
- ]
- },
- "id": {
- "description": "Attachment blob ID.",
- "type": "string"
- },
- "size_bytes": {
- "example": 12345,
- "type": [
- "integer",
- "null"
- ]
- }
- },
- "required": [
- "id",
- "filename",
- "content_type",
- "size_bytes",
- "disposition",
- "content_id"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "bcc": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "email": {
- "example": "agent@example.com",
- "format": "email",
- "type": "string"
- },
- "name": {
- "example": "Support",
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "email",
- "name"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "cc": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "email": {
- "example": "agent@example.com",
- "format": "email",
- "type": "string"
- },
- "name": {
- "example": "Support",
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "email",
- "name"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "flags": {
- "additionalProperties": false,
- "properties": {
- "answered": {
- "type": "boolean"
- },
- "draft": {
- "type": "boolean"
- },
- "flagged": {
- "type": "boolean"
- },
- "seen": {
- "type": "boolean"
- }
- },
- "required": [
- "seen",
- "flagged",
- "draft",
- "answered"
- ],
- "type": "object"
- },
- "folder_ids": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "from": {
- "allOf": [
- {
- "additionalProperties": false,
- "properties": {
- "email": {
- "example": "agent@example.com",
- "format": "email",
- "type": "string"
- },
- "name": {
- "example": "Support",
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "email",
- "name"
- ],
- "type": "object"
- },
- {
- "type": [
- "object",
- "null"
- ]
- }
- ]
- },
- "has_attachments": {
- "type": "boolean"
- },
- "id": {
- "description": "Message ID",
- "type": "string"
- },
- "keywords": {
- "description": "Active message keywords, including system flags and custom labels.",
- "example": [
- "$seen",
- "$flagged",
- "agent_triaged"
- ],
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "preview": {
- "type": [
- "string",
- "null"
- ]
- },
- "received_at": {
- "type": [
- "string",
- "null"
- ]
- },
- "sent_at": {
- "type": [
- "string",
- "null"
- ]
- },
- "size_bytes": {
- "type": [
- "integer",
- "null"
- ]
- },
- "subject": {
- "type": [
- "string",
- "null"
- ]
- },
- "thread_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "to": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "email": {
- "example": "agent@example.com",
- "format": "email",
- "type": "string"
- },
- "name": {
- "example": "Support",
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "email",
- "name"
- ],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "id",
- "thread_id",
- "folder_ids",
- "subject",
- "preview",
- "from",
- "to",
- "cc",
- "bcc",
- "received_at",
- "sent_at",
- "size_bytes",
- "has_attachments",
- "keywords",
- "flags"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "meta": {
- "additionalProperties": false,
- "properties": {
- "request_id": {
- "type": "string"
- },
- "sync_state": {
- "type": "string"
- }
- },
- "required": [
- "request_id"
- ],
- "type": "object"
- },
- "pagination": {
- "additionalProperties": false,
- "properties": {
- "has_more": {
- "type": "boolean"
- },
- "next_cursor": {
- "type": "string"
- }
- },
- "required": [
- "has_more"
- ],
- "type": "object"
- }
- },
- "required": [
- "data",
- "pagination"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "properties": {
+ "meta": {
+ "additionalProperties": {},
+ "properties": {},
+ "type": "object"
+ },
+ "ok": {
+ "enum": [
+ true
+ ],
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "ok",
+ "meta"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "data": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "attachments": {
+ "description": "Attachment metadata for this message. Each item includes a short-lived `download_url`; if it expires, fetch message metadata again.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "content_id": {
+ "description": "Content ID for inline attachments, when present.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "content_type": {
+ "example": "application/pdf",
+ "type": "string"
+ },
+ "disposition": {
+ "example": "attachment",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "download_url": {
+ "description": "Short-lived URL for this exact attachment. Fetch it promptly; if it expires, call the message or attachment metadata endpoint again to receive a fresh URL.",
+ "example": "https://app.sendmux.ai/api/v1/mailbox/messages/msg_123/attachment-downloads/attref_abc123?download_token=...",
+ "type": "string"
+ },
+ "filename": {
+ "example": "invoice.pdf",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "id": {
+ "description": "Attachment blob ID.",
+ "type": "string"
+ },
+ "size_bytes": {
+ "example": 12345,
+ "type": [
+ "integer",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "filename",
+ "content_type",
+ "size_bytes",
+ "disposition",
+ "content_id"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "bcc": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "email": {
+ "example": "agent@example.com",
+ "format": "email",
+ "type": "string"
+ },
+ "name": {
+ "example": "Support",
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "email",
+ "name"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "cc": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "email": {
+ "example": "agent@example.com",
+ "format": "email",
+ "type": "string"
+ },
+ "name": {
+ "example": "Support",
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "email",
+ "name"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "flags": {
+ "additionalProperties": false,
+ "properties": {
+ "answered": {
+ "type": "boolean"
+ },
+ "draft": {
+ "type": "boolean"
+ },
+ "flagged": {
+ "type": "boolean"
+ },
+ "seen": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "seen",
+ "flagged",
+ "draft",
+ "answered"
+ ],
+ "type": "object"
+ },
+ "folder_ids": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "from": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "email": {
+ "example": "agent@example.com",
+ "format": "email",
+ "type": "string"
+ },
+ "name": {
+ "example": "Support",
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "email",
+ "name"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "has_attachments": {
+ "type": "boolean"
+ },
+ "id": {
+ "description": "Message ID",
+ "type": "string"
+ },
+ "keywords": {
+ "description": "Active message keywords, including system flags and custom labels.",
+ "example": [
+ "$seen",
+ "$flagged",
+ "agent_triaged"
+ ],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "preview": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "received_at": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "sent_at": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "size_bytes": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "subject": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "thread_id": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "to": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "email": {
+ "example": "agent@example.com",
+ "format": "email",
+ "type": "string"
+ },
+ "name": {
+ "example": "Support",
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "email",
+ "name"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "id",
+ "thread_id",
+ "folder_ids",
+ "subject",
+ "preview",
+ "from",
+ "to",
+ "cc",
+ "bcc",
+ "received_at",
+ "sent_at",
+ "size_bytes",
+ "has_attachments",
+ "keywords",
+ "flags"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "meta": {
+ "additionalProperties": false,
+ "properties": {
+ "request_id": {
+ "type": "string"
+ },
+ "sync_state": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "request_id"
+ ],
+ "type": "object"
+ },
+ "pagination": {
+ "additionalProperties": false,
+ "properties": {
+ "has_more": {
+ "type": "boolean"
+ },
+ "next_cursor": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "has_more"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "data",
+ "pagination"
+ ],
+ "type": "object"
+ }
+]