diff --git a/CHANGELOG.md b/CHANGELOG.md index 52fa6ab6..7f7da9e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ### Unreleased * Add support for filtering events by attendee email +* Add buffer support for file attachments * Fix issue where crypto import was causing downstream Jest incompatibilities ### 7.5.2 / 2024-07-12 diff --git a/src/models/attachments.ts b/src/models/attachments.ts index d464c1b1..de577d19 100644 --- a/src/models/attachments.ts +++ b/src/models/attachments.ts @@ -39,9 +39,11 @@ interface BaseAttachment { export interface CreateAttachmentRequest extends BaseAttachment { /** * Content of the attachment. - * It can either be a readable stream or a base64 encoded string. + * It can either be a readable stream, a base64 encoded string, or a buffer. + * For attachments less than 3MB, the content can be a readable stream, or a base64 encoded string. + * For attachments greater than 3MB, the content must be either a readable stream or a buffer. */ - content: NodeJS.ReadableStream | string; + content: NodeJS.ReadableStream | string | Buffer; } /**