changedOutput schema / oneOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "data": {
- "oneOf": [
- {
- "additionalProperties": false,
- "properties": {
- "blob_id": {
- "description": "Uploaded attachment blob ID for a later send request.",
- "type": "string"
- },
- "content_type": {
- "example": "application/pdf",
- "type": "string"
- },
- "filename": {
- "example": "invoice.pdf",
- "type": "string"
- },
- "size_bytes": {
- "example": 12345,
- "type": "integer"
- }
- },
- "required": [
- "blob_id",
- "filename",
- "content_type",
- "size_bytes"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "expires_at": {
- "description": "Upload URL expiry time.",
- "format": "date-time",
- "type": "string"
- },
- "headers": {
- "additionalProperties": false,
- "description": "Headers that must be sent exactly with the PUT request.",
- "properties": {
- "Content-Length": {
- "type": "string"
- },
- "Content-Type": {
- "type": "string"
- }
- },
- "required": [
- "Content-Type",
- "Content-Length"
- ],
- "type": "object"
- },
- "max_size_bytes": {
- "description": "Maximum accepted attachment size in bytes.",
- "type": "integer"
- },
- "method": {
- "description": "HTTP method to use with `upload_url`.",
- "enum": [
- "PUT"
- ],
- "type": "string"
- },
- "upload_id": {
- "description": "Short-lived upload intent ID.",
- "type": "string"
- },
- "upload_url": {
- "description": "Short-lived signed PUT URL for this exact attachment. Upload promptly; if it expires, create a new upload URL.",
- "example": "https://app.sendmux.ai/api/v1/mailbox/attachment-uploads/upl_123?upload_token=...",
- "type": "string"
- }
- },
- "required": [
- "upload_id",
- "upload_url",
- "method",
- "expires_at",
- "headers",
- "max_size_bytes"
- ],
- "type": "object"
- }
- ]
- },
- "meta": {
- "additionalProperties": false,
- "properties": {
- "request_id": {
- "type": "string"
- }
- },
- "type": "object"
- },
- "ok": {
- "const": true
- }
- },
- "required": [
- "ok",
- "data"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "error": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "type": "string"
- },
- "doc_url": {
- "type": "string"
- },
- "errors": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "type": "string"
- },
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "field",
- "code",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "message": {
- "type": "string"
- },
- "param": {
- "type": "string"
- },
- "retryable": {
- "type": "boolean"
- }
- },
- "required": [
- "code",
- "message"
- ],
- "type": "object"
- },
- "meta": {
- "additionalProperties": false,
- "properties": {
- "request_id": {
- "type": "string"
- }
- },
- "type": "object"
- },
- "ok": {
- "const": false
- }
- },
- "required": [
- "ok",
- "error"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "data": {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "blob_id": {
+ "description": "Uploaded attachment blob ID for a later send request.",
+ "type": "string"
+ },
+ "content_type": {
+ "example": "application/pdf",
+ "type": "string"
+ },
+ "filename": {
+ "example": "invoice.pdf",
+ "type": "string"
+ },
+ "size_bytes": {
+ "example": 12345,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "blob_id",
+ "filename",
+ "content_type",
+ "size_bytes"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "expires_at": {
+ "description": "Upload URL expiry time.",
+ "format": "date-time",
+ "type": "string"
+ },
+ "headers": {
+ "additionalProperties": false,
+ "description": "Headers that must be sent exactly with the PUT request.",
+ "properties": {
+ "Content-Length": {
+ "type": "string"
+ },
+ "Content-Type": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "Content-Type",
+ "Content-Length"
+ ],
+ "type": "object"
+ },
+ "max_size_bytes": {
+ "description": "Maximum accepted attachment size in bytes.",
+ "type": "integer"
+ },
+ "method": {
+ "description": "HTTP method to use with `upload_url`.",
+ "enum": [
+ "PUT"
+ ],
+ "type": "string"
+ },
+ "upload_id": {
+ "description": "Short-lived upload intent ID.",
+ "type": "string"
+ },
+ "upload_url": {
+ "description": "Short-lived signed PUT URL for this exact attachment. Upload promptly; if it expires, create a new upload URL.",
+ "example": "https://app.qubrics.com/api/v1/mailbox/attachment-uploads/upl_123?upload_token=...",
+ "type": "string"
+ }
+ },
+ "required": [
+ "upload_id",
+ "upload_url",
+ "method",
+ "expires_at",
+ "headers",
+ "max_size_bytes"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "meta": {
+ "additionalProperties": false,
+ "properties": {
+ "request_id": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "ok": {
+ "const": true
+ }
+ },
+ "required": [
+ "ok",
+ "data"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "doc_url": {
+ "type": "string"
+ },
+ "errors": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "field",
+ "code",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "message": {
+ "type": "string"
+ },
+ "param": {
+ "type": "string"
+ },
+ "retryable": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object"
+ },
+ "meta": {
+ "additionalProperties": false,
+ "properties": {
+ "request_id": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "ok": {
+ "const": false
+ }
+ },
+ "required": [
+ "ok",
+ "error"
+ ],
+ "type": "object"
+ }
+]