emailengine-client
Version:
A TypeScript client for the EmailEngine API
96 lines (95 loc) • 2.26 kB
TypeScript
import { MessageReference } from "../../../../misc/models/MessageReference";
import { Options } from "../../../../misc/Options";
import { UploadAttachment } from "../../../../misc/models/UploadAttachment";
export declare class UploadMessageOptions extends Options {
/**
* Override the EENGINE_TIMEOUT environment variable for a single API request (in milliseconds)
*/
'x-ee-timeout'?: number | undefined;
/**
* Account ID
*/
'account': string;
/**
* Upload Message Details
*/
'body': {
/**
* Target mailbox folder path
*/
path: string;
/**
* Flags
*/
flags?: string[];
/**
* Sets the internal date for this message
*/
internalDate?: string;
/**
* Message reference for a reply or a forward. This is EmailEngine specific ID, not Message-ID header value.
*/
reference?: MessageReference;
/**
* Base64 encoded email message in rfc822 format. If you provide other keys as well then these will override the values in the raw message.
*/
raw?: string;
/**
* The From address
*/
from?: {
/**
* name
*/
name: string;
/**
* address
*/
address: string;
};
/**
* List of addresses
*/
to?: Object[];
/**
* List of addresses
*/
cc?: Object[];
/**
* List of addresses
*/
bcc?: Object[];
/**
* Message subject
*/
subject?: string;
/**
* Message Text
*/
text?: string;
/**
* Message HTML
*/
html?: string;
/**
* List of attachments
*/
attachments?: UploadAttachment[];
/**
* Message ID
*/
messageId?: string;
/**
* Custom Headers
*/
headers?: any;
/**
* Optional locale
*/
locale?: string;
/**
* Optional timezone
*/
tz?: string;
};
}