FEAT: Email attachment support

This commit is contained in:
mike
2025-07-21 22:48:27 +02:00
parent d866a23726
commit 0e718d4dba
3 changed files with 66 additions and 21 deletions
+5
View File
@@ -118,6 +118,11 @@ export const EventSchemas = {
required_error: "Body is required. Read more: https://docs.useplunk.com/api-reference/transactional/send",
}),
headers: z.record(z.string()).nullish(),
attachments: z.array(z.object({
filename: z.string(),
content: z.string(), // Base64 encoded content
contentType: z.string(),
})).max(5, "You can only include up to 5 attachments").nullish(),
}),
};