mailslurp-client
Version:
Official client for MailSlurp Email and SMS API. Create email addresses and phone numbers in Javascript without a mail server. Send and receive real emails in applications or tests.
112 lines (111 loc) • 5.17 kB
TypeScript
/**
* MailSlurp API
* MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It\'s designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository
*
* The version of the OpenAPI document: 6.5.2
* Contact: contact@mailslurp.dev
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
* Inbox data preview element.
* @export
* @interface InboxPreview
*/
export interface InboxPreview {
/**
* ID of the inbox. The ID is a UUID-V4 format string. Use the inboxId for calls to Inbox and Email Controller endpoints. See the emailAddress property for the email address or the inbox. To get emails in an inbox use the WaitFor and Inbox Controller methods `waitForLatestEmail` and `getEmails` methods respectively. Inboxes can be used with aliases to forward emails automatically.
* @type {string}
* @memberof InboxPreview
*/
id: string;
/**
* ID of custom domain used by the inbox if any
* @type {string}
* @memberof InboxPreview
*/
domainId?: string | null;
/**
* The inbox's email address. Inbox projections and previews may not include the email address. To view the email address fetch the inbox entity directly. Send an email to this address and the inbox will receive and store it for you. Note the email address in MailSlurp match characters exactly and are case sensitive so `+123` additions are considered different addresses. To retrieve the email use the Inbox and Email Controller endpoints with the inbox ID.
* @type {string}
* @memberof InboxPreview
*/
emailAddress?: string | null;
/**
* When the inbox was created. Time stamps are in ISO DateTime Format `yyyy-MM-dd'T'HH:mm:ss.SSSXXX` e.g. `2000-10-31T01:30:00.000-05:00`.
* @type {Date}
* @memberof InboxPreview
*/
createdAt: Date;
/**
* Is the inbox a favorite inbox. Make an inbox a favorite is typically done in the dashboard for quick access or filtering
* @type {boolean}
* @memberof InboxPreview
*/
favourite: boolean;
/**
* Name of the inbox and used as the sender name when sending emails .Displayed in the dashboard for easier search
* @type {string}
* @memberof InboxPreview
*/
name?: string | null;
/**
* Tags that inbox has been tagged with. Tags can be added to inboxes to group different inboxes within an account. You can also search for inboxes by tag in the dashboard UI.
* @type {Array<string>}
* @memberof InboxPreview
*/
tags?: Array<string> | null;
/**
* Does inbox permit team access for organization team members. If so team users can use inbox and emails associated with it. See the team access guide at https://www.mailslurp.com/guides/team-email-account-sharing/
* @type {boolean}
* @memberof InboxPreview
*/
teamAccess: boolean;
/**
* Type of inbox. HTTP inboxes are faster and better for most cases. SMTP inboxes are more suited for public facing inbound messages (but cannot send).
* @type {string}
* @memberof InboxPreview
*/
inboxType?: InboxPreviewInboxTypeEnum;
/**
* Virtual inbox can receive email but will not send emails to real recipients. Will save sent email record but never send an actual email. Perfect for testing mail server actions.
* @type {boolean}
* @memberof InboxPreview
*/
virtualInbox: boolean;
/**
* Inbox expiration time. When, if ever, the inbox should expire and be deleted. If null then this inbox is permanent and the emails in it won't be deleted. This is the default behavior unless expiration date is set. If an expiration date is set and the time is reached MailSlurp will expire the inbox and move it to an expired inbox entity. You can still access the emails belonging to it but it can no longer send or receive email.
* @type {string}
* @memberof InboxPreview
*/
expiresAt?: string | null;
/**
* Inbox function if used as a primitive for another system.
* @type {string}
* @memberof InboxPreview
*/
functionsAs?: InboxPreviewFunctionsAsEnum;
}
/**
* @export
* @enum {string}
*/
export declare enum InboxPreviewInboxTypeEnum {
HTTP_INBOX = "HTTP_INBOX",
SMTP_INBOX = "SMTP_INBOX"
}
/**
* @export
* @enum {string}
*/
export declare enum InboxPreviewFunctionsAsEnum {
ALIAS = "ALIAS",
THREAD = "THREAD",
CATCH_ALL = "CATCH_ALL",
CONNECTOR = "CONNECTOR"
}
export declare function InboxPreviewFromJSON(json: any): InboxPreview;
export declare function InboxPreviewFromJSONTyped(json: any, ignoreDiscriminator: boolean): InboxPreview;
export declare function InboxPreviewToJSON(value?: InboxPreview | null): any;