/** * 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://www.mailslurp.com/docs/) - [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. */ import * as runtime from '../runtime'; import { InboxDto, SimpleSendEmailOptions } from '../models'; export interface CreateNewEmailAddressRequest { allowTeamAccess?: boolean; useDomainPool?: boolean; expiresAt?: Date; expiresIn?: number; emailAddress?: string; inboxType?: CreateNewEmailAddressInboxTypeEnum; description?: string; name?: string; tags?: Array; favourite?: boolean; } export interface CreateRandomInboxRequest { allowTeamAccess?: boolean; useDomainPool?: boolean; expiresAt?: Date; expiresIn?: number; emailAddress?: string; inboxType?: CreateRandomInboxInboxTypeEnum; description?: string; name?: string; tags?: Array; favourite?: boolean; } export interface DeleteEmailAddressRequest { inboxId: string; } export interface EmptyInboxRequest { inboxId: string; } export interface SendEmailSimpleRequest { simpleSendEmailOptions: SimpleSendEmailOptions; } /** * CommonActionsControllerApi - interface * * @export * @interface CommonActionsControllerApiInterface */ export interface CommonActionsControllerApiInterface { /** * Returns an Inbox with an `id` and an `emailAddress` * @summary Create new random inbox * @param {boolean} [allowTeamAccess] * @param {boolean} [useDomainPool] * @param {Date} [expiresAt] * @param {number} [expiresIn] * @param {string} [emailAddress] * @param {'HTTP_INBOX' | 'SMTP_INBOX'} [inboxType] * @param {string} [description] * @param {string} [name] * @param {Array} [tags] * @param {boolean} [favourite] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof CommonActionsControllerApiInterface */ createNewEmailAddressRaw(requestParameters: CreateNewEmailAddressRequest): Promise>; /** * Returns an Inbox with an `id` and an `emailAddress` * Create new random inbox */ createNewEmailAddress(requestParameters: CreateNewEmailAddressRequest): Promise; /** * Returns an Inbox with an `id` and an `emailAddress` * @summary Create new random inbox * @param {boolean} [allowTeamAccess] * @param {boolean} [useDomainPool] * @param {Date} [expiresAt] * @param {number} [expiresIn] * @param {string} [emailAddress] * @param {'HTTP_INBOX' | 'SMTP_INBOX'} [inboxType] * @param {string} [description] * @param {string} [name] * @param {Array} [tags] * @param {boolean} [favourite] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof CommonActionsControllerApiInterface */ createRandomInboxRaw(requestParameters: CreateRandomInboxRequest): Promise>; /** * Returns an Inbox with an `id` and an `emailAddress` * Create new random inbox */ createRandomInbox(requestParameters: CreateRandomInboxRequest): Promise; /** * Deletes inbox email address * @summary Delete inbox email address by inbox id * @param {string} inboxId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof CommonActionsControllerApiInterface */ deleteEmailAddressRaw(requestParameters: DeleteEmailAddressRequest): Promise>; /** * Deletes inbox email address * Delete inbox email address by inbox id */ deleteEmailAddress(requestParameters: DeleteEmailAddressRequest): Promise; /** * Deletes all emails * @summary Delete all emails in an inbox * @param {string} inboxId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof CommonActionsControllerApiInterface */ emptyInboxRaw(requestParameters: EmptyInboxRequest): Promise>; /** * Deletes all emails * Delete all emails in an inbox */ emptyInbox(requestParameters: EmptyInboxRequest): Promise; /** * If no senderId or inboxId provided a random email address will be used to send from. * @summary Send an email * @param {SimpleSendEmailOptions} simpleSendEmailOptions * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof CommonActionsControllerApiInterface */ sendEmailSimpleRaw(requestParameters: SendEmailSimpleRequest): Promise>; /** * If no senderId or inboxId provided a random email address will be used to send from. * Send an email */ sendEmailSimple(requestParameters: SendEmailSimpleRequest): Promise; } /** * */ export declare class CommonActionsControllerApi extends runtime.BaseAPI implements CommonActionsControllerApiInterface { /** * Returns an Inbox with an `id` and an `emailAddress` * Create new random inbox */ createNewEmailAddressRaw(requestParameters: CreateNewEmailAddressRequest): Promise>; /** * Returns an Inbox with an `id` and an `emailAddress` * Create new random inbox */ createNewEmailAddress(requestParameters: CreateNewEmailAddressRequest): Promise; /** * Returns an Inbox with an `id` and an `emailAddress` * Create new random inbox */ createRandomInboxRaw(requestParameters: CreateRandomInboxRequest): Promise>; /** * Returns an Inbox with an `id` and an `emailAddress` * Create new random inbox */ createRandomInbox(requestParameters: CreateRandomInboxRequest): Promise; /** * Deletes inbox email address * Delete inbox email address by inbox id */ deleteEmailAddressRaw(requestParameters: DeleteEmailAddressRequest): Promise>; /** * Deletes inbox email address * Delete inbox email address by inbox id */ deleteEmailAddress(requestParameters: DeleteEmailAddressRequest): Promise; /** * Deletes all emails * Delete all emails in an inbox */ emptyInboxRaw(requestParameters: EmptyInboxRequest): Promise>; /** * Deletes all emails * Delete all emails in an inbox */ emptyInbox(requestParameters: EmptyInboxRequest): Promise; /** * If no senderId or inboxId provided a random email address will be used to send from. * Send an email */ sendEmailSimpleRaw(requestParameters: SendEmailSimpleRequest): Promise>; /** * If no senderId or inboxId provided a random email address will be used to send from. * Send an email */ sendEmailSimple(requestParameters: SendEmailSimpleRequest): Promise; } /** * @export * @enum {string} */ export declare enum CreateNewEmailAddressInboxTypeEnum { HTTPINBOX = "HTTP_INBOX", SMTPINBOX = "SMTP_INBOX" } /** * @export * @enum {string} */ export declare enum CreateRandomInboxInboxTypeEnum { HTTPINBOX = "HTTP_INBOX", SMTPINBOX = "SMTP_INBOX" }