/** * 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 { AliasDto, CreateAliasOptions, PageAlias, PageEmailProjection, PageThreadProjection, ReplyToAliasEmailOptions, SendEmailOptions, SentEmailDto, UpdateAliasOptions } from '../models'; export interface CreateAliasRequest { createAliasOptions: CreateAliasOptions; } export interface DeleteAliasRequest { aliasId: string; } export interface GetAliasRequest { aliasId: string; } export interface GetAliasEmailsRequest { aliasId: string; page?: number; size?: number; sort?: GetAliasEmailsSortEnum; since?: Date; before?: Date; } export interface GetAliasThreadsRequest { aliasId: string; page?: number; size?: number; sort?: GetAliasThreadsSortEnum; since?: Date; before?: Date; } export interface GetAliasesRequest { page?: number; size?: number; sort?: GetAliasesSortEnum; since?: Date; before?: Date; } export interface ReplyToAliasEmailRequest { aliasId: string; emailId: string; replyToAliasEmailOptions: ReplyToAliasEmailOptions; } export interface SendAliasEmailRequest { aliasId: string; sendEmailOptions: SendEmailOptions; } export interface UpdateAliasRequest { aliasId: string; updateAliasOptions: UpdateAliasOptions; } /** * AliasControllerApi - interface * * @export * @interface AliasControllerApiInterface */ export interface AliasControllerApiInterface { /** * Email aliases use a MailSlurp randomly generated email address (or a custom domain inbox that you provide) to mask or proxy a real email address. Emails sent to the alias address will be forwarded to the hidden email address it was created for. If you want to send a reply use the threadId attached * @summary Create an email alias. Must be verified by clicking link inside verification email that will be sent to the address. Once verified the alias will be active. * @param {CreateAliasOptions} createAliasOptions * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AliasControllerApiInterface */ createAliasRaw(requestParameters: CreateAliasRequest): Promise>; /** * Email aliases use a MailSlurp randomly generated email address (or a custom domain inbox that you provide) to mask or proxy a real email address. Emails sent to the alias address will be forwarded to the hidden email address it was created for. If you want to send a reply use the threadId attached * Create an email alias. Must be verified by clicking link inside verification email that will be sent to the address. Once verified the alias will be active. */ createAlias(requestParameters: CreateAliasRequest): Promise; /** * * @summary Delete an email alias * @param {string} aliasId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AliasControllerApiInterface */ deleteAliasRaw(requestParameters: DeleteAliasRequest): Promise>; /** * Delete an email alias */ deleteAlias(requestParameters: DeleteAliasRequest): Promise; /** * Get an email alias by ID * @summary Get an email alias * @param {string} aliasId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AliasControllerApiInterface */ getAliasRaw(requestParameters: GetAliasRequest): Promise>; /** * Get an email alias by ID * Get an email alias */ getAlias(requestParameters: GetAliasRequest): Promise; /** * Get paginated emails for an alias by ID * @summary Get emails for an alias * @param {string} aliasId * @param {number} [page] Optional page index alias email list pagination * @param {number} [size] Optional page size alias email list pagination * @param {'ASC' | 'DESC'} [sort] Optional createdAt sort direction ASC or DESC * @param {Date} [since] Optional filter by sent after given date time * @param {Date} [before] Optional filter by sent before given date time * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AliasControllerApiInterface */ getAliasEmailsRaw(requestParameters: GetAliasEmailsRequest): Promise>; /** * Get paginated emails for an alias by ID * Get emails for an alias */ getAliasEmails(requestParameters: GetAliasEmailsRequest): Promise; /** * Returns threads created for an email alias in paginated form * @summary Get threads created for an alias * @param {string} aliasId * @param {number} [page] Optional page index in thread list pagination * @param {number} [size] Optional page size in thread list pagination * @param {'ASC' | 'DESC'} [sort] Optional createdAt sort direction ASC or DESC * @param {Date} [since] Optional filter by sent after given date time * @param {Date} [before] Optional filter by sent before given date time * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AliasControllerApiInterface */ getAliasThreadsRaw(requestParameters: GetAliasThreadsRequest): Promise>; /** * Returns threads created for an email alias in paginated form * Get threads created for an alias */ getAliasThreads(requestParameters: GetAliasThreadsRequest): Promise; /** * Get all email aliases in paginated form * @summary Get all email aliases you have created * @param {number} [page] Optional page index in alias list pagination * @param {number} [size] Optional page size in alias list pagination * @param {'ASC' | 'DESC'} [sort] Optional createdAt sort direction ASC or DESC * @param {Date} [since] Filter by created at after the given timestamp * @param {Date} [before] Filter by created at before the given timestamp * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AliasControllerApiInterface */ getAliasesRaw(requestParameters: GetAliasesRequest): Promise>; /** * Get all email aliases in paginated form * Get all email aliases you have created */ getAliases(requestParameters: GetAliasesRequest): Promise; /** * Send the reply to the email sender or reply-to and include same subject cc bcc etc. Reply to an email and the contents will be sent with the existing subject to the emails `to`, `cc`, and `bcc`. * @summary Reply to an email * @param {string} aliasId ID of the alias that email belongs to * @param {string} emailId ID of the email that should be replied to * @param {ReplyToAliasEmailOptions} replyToAliasEmailOptions * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AliasControllerApiInterface */ replyToAliasEmailRaw(requestParameters: ReplyToAliasEmailRequest): Promise>; /** * Send the reply to the email sender or reply-to and include same subject cc bcc etc. Reply to an email and the contents will be sent with the existing subject to the emails `to`, `cc`, and `bcc`. * Reply to an email */ replyToAliasEmail(requestParameters: ReplyToAliasEmailRequest): Promise; /** * Send an email from an alias. Replies to the email will be forwarded to the alias masked email address * @summary Send an email from an alias inbox * @param {string} aliasId * @param {SendEmailOptions} sendEmailOptions * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AliasControllerApiInterface */ sendAliasEmailRaw(requestParameters: SendAliasEmailRequest): Promise>; /** * Send an email from an alias. Replies to the email will be forwarded to the alias masked email address * Send an email from an alias inbox */ sendAliasEmail(requestParameters: SendAliasEmailRequest): Promise; /** * * @summary Update an email alias * @param {string} aliasId * @param {UpdateAliasOptions} updateAliasOptions * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AliasControllerApiInterface */ updateAliasRaw(requestParameters: UpdateAliasRequest): Promise>; /** * Update an email alias */ updateAlias(requestParameters: UpdateAliasRequest): Promise; } /** * */ export declare class AliasControllerApi extends runtime.BaseAPI implements AliasControllerApiInterface { /** * Email aliases use a MailSlurp randomly generated email address (or a custom domain inbox that you provide) to mask or proxy a real email address. Emails sent to the alias address will be forwarded to the hidden email address it was created for. If you want to send a reply use the threadId attached * Create an email alias. Must be verified by clicking link inside verification email that will be sent to the address. Once verified the alias will be active. */ createAliasRaw(requestParameters: CreateAliasRequest): Promise>; /** * Email aliases use a MailSlurp randomly generated email address (or a custom domain inbox that you provide) to mask or proxy a real email address. Emails sent to the alias address will be forwarded to the hidden email address it was created for. If you want to send a reply use the threadId attached * Create an email alias. Must be verified by clicking link inside verification email that will be sent to the address. Once verified the alias will be active. */ createAlias(requestParameters: CreateAliasRequest): Promise; /** * Delete an email alias */ deleteAliasRaw(requestParameters: DeleteAliasRequest): Promise>; /** * Delete an email alias */ deleteAlias(requestParameters: DeleteAliasRequest): Promise; /** * Get an email alias by ID * Get an email alias */ getAliasRaw(requestParameters: GetAliasRequest): Promise>; /** * Get an email alias by ID * Get an email alias */ getAlias(requestParameters: GetAliasRequest): Promise; /** * Get paginated emails for an alias by ID * Get emails for an alias */ getAliasEmailsRaw(requestParameters: GetAliasEmailsRequest): Promise>; /** * Get paginated emails for an alias by ID * Get emails for an alias */ getAliasEmails(requestParameters: GetAliasEmailsRequest): Promise; /** * Returns threads created for an email alias in paginated form * Get threads created for an alias */ getAliasThreadsRaw(requestParameters: GetAliasThreadsRequest): Promise>; /** * Returns threads created for an email alias in paginated form * Get threads created for an alias */ getAliasThreads(requestParameters: GetAliasThreadsRequest): Promise; /** * Get all email aliases in paginated form * Get all email aliases you have created */ getAliasesRaw(requestParameters: GetAliasesRequest): Promise>; /** * Get all email aliases in paginated form * Get all email aliases you have created */ getAliases(requestParameters: GetAliasesRequest): Promise; /** * Send the reply to the email sender or reply-to and include same subject cc bcc etc. Reply to an email and the contents will be sent with the existing subject to the emails `to`, `cc`, and `bcc`. * Reply to an email */ replyToAliasEmailRaw(requestParameters: ReplyToAliasEmailRequest): Promise>; /** * Send the reply to the email sender or reply-to and include same subject cc bcc etc. Reply to an email and the contents will be sent with the existing subject to the emails `to`, `cc`, and `bcc`. * Reply to an email */ replyToAliasEmail(requestParameters: ReplyToAliasEmailRequest): Promise; /** * Send an email from an alias. Replies to the email will be forwarded to the alias masked email address * Send an email from an alias inbox */ sendAliasEmailRaw(requestParameters: SendAliasEmailRequest): Promise>; /** * Send an email from an alias. Replies to the email will be forwarded to the alias masked email address * Send an email from an alias inbox */ sendAliasEmail(requestParameters: SendAliasEmailRequest): Promise; /** * Update an email alias */ updateAliasRaw(requestParameters: UpdateAliasRequest): Promise>; /** * Update an email alias */ updateAlias(requestParameters: UpdateAliasRequest): Promise; } /** * @export * @enum {string} */ export declare enum GetAliasEmailsSortEnum { ASC = "ASC", DESC = "DESC" } /** * @export * @enum {string} */ export declare enum GetAliasThreadsSortEnum { ASC = "ASC", DESC = "DESC" } /** * @export * @enum {string} */ export declare enum GetAliasesSortEnum { ASC = "ASC", DESC = "DESC" }