emailengine-client
Version:
A TypeScript client for the EmailEngine API
66 lines (62 loc) • 1.45 kB
TypeScript
/**
* UploadAttachment
* {
filename string
example: transparent.gif
maxLength: 256
content* string
example: R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=
maxLength: 5242880
Base64 formatted attachment file
contentType string
example: image/gif
maxLength: 256
contentDisposition contentDispositionstring
Enum:
[ inline, attachment ]
cid string
example: unique-image-id@localhost
maxLength: 256
Content-ID value for embedded images
encoding encodingstring
default: base64
Enum:
[ base64 ]
reference referencestring
example: AAAAAQAACnAcde
maxLength: 256
Reference an existing attachment ID instead of providing attachment content. If set, then content option is not allowed. Otherwise content is required.
Enum:
[ false ]
}
*/
export declare class UploadAttachment {
/**
* Attachment file name
*/
'filename'?: string;
/**
* Base64 formatted attachment file
*/
'content': string;
/**
* Attachment file content type
*/
'contentType'?: string;
/**
* Attachment content disposition
*/
'contentDisposition'?: string;
/**
* Content-ID value for embedded images
*/
'cid'?: string;
/**
* Attachment file encoding
*/
'encoding'?: string;
/**
* Reference an existing attachment ID instead of providing attachment content. If set, then content option is not allowed. Otherwise content is required.
*/
'reference'?: string;
}