UNPKG

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.

982 lines 52.5 kB
/** * MailSlurp API * MailSlurp is an API for sending and receiving emails and SMS from dynamically allocated email addresses and phone numbers. 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. */ import * as runtime from '../runtime'; import { CountDto, CreateInboxDto, CreateInboxRulesetOptions, Email, EmailAvailableResult, EmailPreview, FlushExpiredInboxesResult, ImapAccessDetails, ImapSmtpAccessDetails, ImapSmtpAccessServers, InboxByEmailAddressResult, InboxByNameResult, InboxDto, InboxExistsDto, InboxIdsResult, InboxRulesetDto, PageDeliveryStatus, PageEmailPreview, PageInboxProjection, PageInboxRulesetDto, PageInboxTags, PageOrganizationInboxProjection, PagePlusAddressProjection, PageScheduledJobs, PageSentEmailProjection, PageTrackingPixelProjection, PlusAddressDto, ScheduledJobDto, SearchInboxesOptions, SendEmailOptions, SendSMTPEnvelopeOptions, SentEmailDto, SetInboxFavouritedOptions, SmtpAccessDetails, UpdateImapAccessOptions, UpdateInboxOptions, UpdateSmtpAccessOptions } from '../models'; export interface CancelScheduledJobRequest { jobId: string; } export interface CreateInboxRequest { emailAddress?: string; tags?: Array<string>; name?: string; description?: string; useDomainPool?: boolean; favourite?: boolean; expiresAt?: Date; expiresIn?: number; allowTeamAccess?: boolean; inboxType?: CreateInboxInboxTypeEnum; virtualInbox?: boolean; useShortAddress?: boolean; domainId?: string; domainName?: string; prefix?: string; } export interface CreateInboxRulesetRequest { inboxId: string; createInboxRulesetOptions: CreateInboxRulesetOptions; } export interface CreateInboxWithOptionsRequest { createInboxDto: CreateInboxDto; } export interface DeleteAllInboxEmailsRequest { inboxId: string; } export interface DeleteAllInboxesByDescriptionRequest { description: string; } export interface DeleteAllInboxesByNameRequest { name: string; } export interface DeleteAllInboxesByTagRequest { tag: string; } export interface DeleteInboxRequest { inboxId: string; } export interface DoesInboxExistRequest { emailAddress: string; allowCatchAll?: boolean; } export interface FlushExpiredRequest { before?: Date; } export interface GetAllInboxesRequest { page?: number; size?: number; sort?: GetAllInboxesSortEnum; favourite?: boolean; search?: string; tag?: string; teamAccess?: boolean; since?: Date; before?: Date; inboxType?: GetAllInboxesInboxTypeEnum; inboxFunction?: GetAllInboxesInboxFunctionEnum; domainId?: string; } export interface GetAllInboxesOffsetPaginatedRequest { page?: number; size?: number; sort?: GetAllInboxesOffsetPaginatedSortEnum; favourite?: boolean; search?: string; tag?: string; teamAccess?: boolean; since?: Date; before?: Date; inboxType?: GetAllInboxesOffsetPaginatedInboxTypeEnum; inboxFunction?: GetAllInboxesOffsetPaginatedInboxFunctionEnum; domainId?: string; } export interface GetAllPlusAddressesRequest { page?: number; size?: number; sort?: GetAllPlusAddressesSortEnum; inboxId?: string; } export interface GetAllScheduledJobsRequest { page?: number; size?: number; sort?: GetAllScheduledJobsSortEnum; since?: Date; before?: Date; inboxId?: string; } export interface GetDeliveryStatusesByInboxIdRequest { inboxId: string; page?: number; size?: number; sort?: GetDeliveryStatusesByInboxIdSortEnum; since?: Date; before?: Date; } export interface GetEmailsRequest { inboxId: string; size?: number; limit?: number; sort?: GetEmailsSortEnum; retryTimeout?: number; delayTimeout?: number; minCount?: number; unreadOnly?: boolean; before?: Date; since?: Date; } export interface GetImapAccessRequest { inboxId?: string; } export interface GetImapSmtpAccessRequest { inboxId?: string; } export interface GetImapSmtpAccessEnvRequest { inboxId?: string; } export interface GetInboxRequest { inboxId: string; } export interface GetInboxByEmailAddressRequest { emailAddress: string; } export interface GetInboxByNameRequest { name: string; } export interface GetInboxEmailCountRequest { inboxId: string; } export interface GetInboxEmailsPaginatedRequest { inboxId: string; page?: number; size?: number; sort?: GetInboxEmailsPaginatedSortEnum; since?: Date; before?: Date; syncConnectors?: boolean; } export interface GetInboxPlusAddressRequest { plusAddressId: string; inboxId: string; } export interface GetInboxPlusAddressByIdRequest { plusAddressId: string; inboxId?: string; } export interface GetInboxPlusAddressEmailsRequest { plusAddress: string; inboxId: string; page?: number; size?: number; sort?: GetInboxPlusAddressEmailsSortEnum; since?: Date; before?: Date; } export interface GetInboxPlusAddressEmailsForPlusAddressIdRequest { plusAddressId: string; inboxId: string; page?: number; size?: number; sort?: GetInboxPlusAddressEmailsForPlusAddressIdSortEnum; since?: Date; before?: Date; } export interface GetInboxPlusAddressesRequest { inboxId: string; page?: number; size?: number; sort?: GetInboxPlusAddressesSortEnum; } export interface GetInboxSentCountRequest { inboxId: string; } export interface GetInboxSentEmailsRequest { inboxId: string; page?: number; size?: number; sort?: GetInboxSentEmailsSortEnum; searchFilter?: string; since?: Date; before?: Date; } export interface GetInboxTagsRequest { page?: number; size?: number; sort?: GetInboxTagsSortEnum; searchFilter?: string; } export interface GetInboxTagsPaginatedRequest { page?: number; size?: number; sort?: GetInboxTagsPaginatedSortEnum; searchFilter?: string; } export interface GetInboxesRequest { size?: number; sort?: GetInboxesSortEnum; since?: Date; excludeCatchAllInboxes?: boolean; before?: Date; include?: Array<string>; } export interface GetInboxesByTagRequest { tag: string; page?: number; size?: number; sort?: GetInboxesByTagSortEnum; searchFilter?: string; } export interface GetLatestEmailInInboxRequest { inboxId: string; timeoutMillis: number; } export interface GetOrganizationInboxesRequest { page?: number; size?: number; sort?: GetOrganizationInboxesSortEnum; searchFilter?: string; since?: Date; before?: Date; } export interface GetOutboxesRequest { page?: number; size?: number; sort?: GetOutboxesSortEnum; } export interface GetScheduledJobRequest { jobId: string; } export interface GetScheduledJobsByInboxIdRequest { inboxId: string; page?: number; size?: number; sort?: GetScheduledJobsByInboxIdSortEnum; since?: Date; before?: Date; } export interface GetSmtpAccessRequest { inboxId?: string; } export interface IsEmailAddressAvailableRequest { emailAddress: string; } export interface ListInboxRulesetsRequest { inboxId: string; page?: number; size?: number; sort?: ListInboxRulesetsSortEnum; searchFilter?: string; since?: Date; before?: Date; } export interface ListInboxTrackingPixelsRequest { inboxId: string; page?: number; size?: number; sort?: ListInboxTrackingPixelsSortEnum; searchFilter?: string; since?: Date; before?: Date; } export interface SearchInboxesRequest { searchInboxesOptions: SearchInboxesOptions; } export interface SendEmailRequest { inboxId: string; sendEmailOptions: SendEmailOptions; } export interface SendEmailAndConfirmRequest { inboxId: string; sendEmailOptions: SendEmailOptions; } export interface SendEmailWithQueueRequest { inboxId: string; validateBeforeEnqueue: boolean; sendEmailOptions: SendEmailOptions; } export interface SendSmtpEnvelopeRequest { inboxId: string; sendSMTPEnvelopeOptions: SendSMTPEnvelopeOptions; } export interface SendTestEmailRequest { inboxId: string; } export interface SendWithScheduleRequest { inboxId: string; sendEmailOptions: SendEmailOptions; sendAtTimestamp?: Date; sendAtNowPlusSeconds?: number; validateBeforeEnqueue?: boolean; } export interface SetInboxFavouritedRequest { inboxId: string; setInboxFavouritedOptions: SetInboxFavouritedOptions; } export interface UpdateImapAccessRequest { updateImapAccessOptions: UpdateImapAccessOptions; inboxId?: string; } export interface UpdateInboxRequest { inboxId: string; updateInboxOptions: UpdateInboxOptions; } export interface UpdateSmtpAccessRequest { updateSmtpAccessOptions: UpdateSmtpAccessOptions; inboxId?: string; } /** * */ export declare class InboxControllerApi extends runtime.BaseAPI { /** * Get a scheduled email job and cancel it. Will fail if status of job is already cancelled, failed, or complete. * Cancel a scheduled email job */ cancelScheduledJobRaw(requestParameters: CancelScheduledJobRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<ScheduledJobDto>>; /** * Get a scheduled email job and cancel it. Will fail if status of job is already cancelled, failed, or complete. * Cancel a scheduled email job */ cancelScheduledJob(requestParameters: CancelScheduledJobRequest, initOverrides?: RequestInit): Promise<ScheduledJobDto>; /** * Create a new inbox and with a randomized email address to send and receive from. Pass emailAddress parameter if you wish to use a specific email address. Creating an inbox is required before sending or receiving emails. If writing tests it is recommended that you create a new inbox during each test method so that it is unique and empty. * Create an inbox email address. An inbox has a real email address and can send and receive emails. Inboxes can be either `SMTP` or `HTTP` inboxes. */ createInboxRaw(requestParameters: CreateInboxRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<InboxDto>>; /** * Create a new inbox and with a randomized email address to send and receive from. Pass emailAddress parameter if you wish to use a specific email address. Creating an inbox is required before sending or receiving emails. If writing tests it is recommended that you create a new inbox during each test method so that it is unique and empty. * Create an inbox email address. An inbox has a real email address and can send and receive emails. Inboxes can be either `SMTP` or `HTTP` inboxes. */ createInbox(requestParameters: CreateInboxRequest, initOverrides?: RequestInit): Promise<InboxDto>; /** * Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving * Create an inbox ruleset */ createInboxRulesetRaw(requestParameters: CreateInboxRulesetRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<InboxRulesetDto>>; /** * Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving * Create an inbox ruleset */ createInboxRuleset(requestParameters: CreateInboxRulesetRequest, initOverrides?: RequestInit): Promise<InboxRulesetDto>; /** * Create an inbox with default options. Uses MailSlurp domain pool address and is private. */ createInboxWithDefaultsRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<InboxDto>>; /** * Create an inbox with default options. Uses MailSlurp domain pool address and is private. */ createInboxWithDefaults(initOverrides?: RequestInit): Promise<InboxDto>; /** * Additional endpoint that allows inbox creation with request body options. Can be more flexible that other methods for some clients. * Create an inbox with options. Extended options for inbox creation. */ createInboxWithOptionsRaw(requestParameters: CreateInboxWithOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<InboxDto>>; /** * Additional endpoint that allows inbox creation with request body options. Can be more flexible that other methods for some clients. * Create an inbox with options. Extended options for inbox creation. */ createInboxWithOptions(requestParameters: CreateInboxWithOptionsRequest, initOverrides?: RequestInit): Promise<InboxDto>; /** * Deletes all emails in an inbox. Be careful as emails cannot be recovered * Delete all emails in a given inboxes. */ deleteAllInboxEmailsRaw(requestParameters: DeleteAllInboxEmailsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>; /** * Deletes all emails in an inbox. Be careful as emails cannot be recovered * Delete all emails in a given inboxes. */ deleteAllInboxEmails(requestParameters: DeleteAllInboxEmailsRequest, initOverrides?: RequestInit): Promise<void>; /** * Permanently delete all inboxes and associated email addresses. This will also delete all emails within the inboxes. Be careful as inboxes cannot be recovered once deleted. Note: deleting inboxes will not impact your usage limits. Monthly inbox creation limits are based on how many inboxes were created in the last 30 days, not how many inboxes you currently have. * Delete all inboxes */ deleteAllInboxesRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>; /** * Permanently delete all inboxes and associated email addresses. This will also delete all emails within the inboxes. Be careful as inboxes cannot be recovered once deleted. Note: deleting inboxes will not impact your usage limits. Monthly inbox creation limits are based on how many inboxes were created in the last 30 days, not how many inboxes you currently have. * Delete all inboxes */ deleteAllInboxes(initOverrides?: RequestInit): Promise<void>; /** * Permanently delete all inboxes by description * Delete inboxes by description */ deleteAllInboxesByDescriptionRaw(requestParameters: DeleteAllInboxesByDescriptionRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>; /** * Permanently delete all inboxes by description * Delete inboxes by description */ deleteAllInboxesByDescription(requestParameters: DeleteAllInboxesByDescriptionRequest, initOverrides?: RequestInit): Promise<void>; /** * Permanently delete all inboxes by name * Delete inboxes by name */ deleteAllInboxesByNameRaw(requestParameters: DeleteAllInboxesByNameRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>; /** * Permanently delete all inboxes by name * Delete inboxes by name */ deleteAllInboxesByName(requestParameters: DeleteAllInboxesByNameRequest, initOverrides?: RequestInit): Promise<void>; /** * Permanently delete all inboxes by tag * Delete inboxes by tag */ deleteAllInboxesByTagRaw(requestParameters: DeleteAllInboxesByTagRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>; /** * Permanently delete all inboxes by tag * Delete inboxes by tag */ deleteAllInboxesByTag(requestParameters: DeleteAllInboxesByTagRequest, initOverrides?: RequestInit): Promise<void>; /** * Permanently delete an inbox and associated email address as well as all emails within the given inbox. This action cannot be undone. Note: deleting an inbox will not affect your account usage. Monthly inbox usage is based on how many inboxes you create within 30 days, not how many exist at time of request. * Delete inbox */ deleteInboxRaw(requestParameters: DeleteInboxRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>; /** * Permanently delete an inbox and associated email address as well as all emails within the given inbox. This action cannot be undone. Note: deleting an inbox will not affect your account usage. Monthly inbox usage is based on how many inboxes you create within 30 days, not how many exist at time of request. * Delete inbox */ deleteInbox(requestParameters: DeleteInboxRequest, initOverrides?: RequestInit): Promise<void>; /** * Check if inboxes exist by email address. Useful if you are sending emails to mailslurp addresses * Does inbox exist */ doesInboxExistRaw(requestParameters: DoesInboxExistRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<InboxExistsDto>>; /** * Check if inboxes exist by email address. Useful if you are sending emails to mailslurp addresses * Does inbox exist */ doesInboxExist(requestParameters: DoesInboxExistRequest, initOverrides?: RequestInit): Promise<InboxExistsDto>; /** * Check if an inbox has automations. * Does inbox have automations */ doesInboxHaveAutomationsRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>; /** * Check if an inbox has automations. * Does inbox have automations */ doesInboxHaveAutomations(initOverrides?: RequestInit): Promise<void>; /** * Remove any expired inboxes for your account (instead of waiting for scheduled removal on server) * Remove expired inboxes */ flushExpiredRaw(requestParameters: FlushExpiredRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<FlushExpiredInboxesResult>>; /** * Remove any expired inboxes for your account (instead of waiting for scheduled removal on server) * Remove expired inboxes */ flushExpired(requestParameters: FlushExpiredRequest, initOverrides?: RequestInit): Promise<FlushExpiredInboxesResult>; /** * List inboxes in paginated form. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). You Can also filter by whether an inbox is favorited or use email address pattern. This method is the recommended way to query inboxes. The alternative `getInboxes` method returns a full list of inboxes but is limited to 100 results. * List All Inboxes Paginated */ getAllInboxesRaw(requestParameters: GetAllInboxesRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<PageInboxProjection>>; /** * List inboxes in paginated form. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). You Can also filter by whether an inbox is favorited or use email address pattern. This method is the recommended way to query inboxes. The alternative `getInboxes` method returns a full list of inboxes but is limited to 100 results. * List All Inboxes Paginated */ getAllInboxes(requestParameters: GetAllInboxesRequest, initOverrides?: RequestInit): Promise<PageInboxProjection>; /** * List inboxes in paginated form. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). You Can also filter by whether an inbox is favorited or use email address pattern. This method is the recommended way to query inboxes. The alternative `getInboxes` method returns a full list of inboxes but is limited to 100 results. * List All Inboxes Offset Paginated */ getAllInboxesOffsetPaginatedRaw(requestParameters: GetAllInboxesOffsetPaginatedRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<PageInboxProjection>>; /** * List inboxes in paginated form. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). You Can also filter by whether an inbox is favorited or use email address pattern. This method is the recommended way to query inboxes. The alternative `getInboxes` method returns a full list of inboxes but is limited to 100 results. * List All Inboxes Offset Paginated */ getAllInboxesOffsetPaginated(requestParameters: GetAllInboxesOffsetPaginatedRequest, initOverrides?: RequestInit): Promise<PageInboxProjection>; /** * Returns paginated list of all plus alias addresses found for in account based on received emails that used the inbox address with a +xyz alias. * Get all sub address plus address aliases for an inbox */ getAllPlusAddressesRaw(requestParameters: GetAllPlusAddressesRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<PagePlusAddressProjection>>; /** * Returns paginated list of all plus alias addresses found for in account based on received emails that used the inbox address with a +xyz alias. * Get all sub address plus address aliases for an inbox */ getAllPlusAddresses(requestParameters: GetAllPlusAddressesRequest, initOverrides?: RequestInit): Promise<PagePlusAddressProjection>; /** * Schedule sending of emails using scheduled jobs. These can be inbox or account level. * Get all scheduled email sending jobs for account */ getAllScheduledJobsRaw(requestParameters: GetAllScheduledJobsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<PageScheduledJobs>>; /** * Schedule sending of emails using scheduled jobs. These can be inbox or account level. * Get all scheduled email sending jobs for account */ getAllScheduledJobs(requestParameters: GetAllScheduledJobsRequest, initOverrides?: RequestInit): Promise<PageScheduledJobs>; /** * Get all email delivery statuses for an inbox */ getDeliveryStatusesByInboxIdRaw(requestParameters: GetDeliveryStatusesByInboxIdRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<PageDeliveryStatus>>; /** * Get all email delivery statuses for an inbox */ getDeliveryStatusesByInboxId(requestParameters: GetDeliveryStatusesByInboxIdRequest, initOverrides?: RequestInit): Promise<PageDeliveryStatus>; /** * List emails that an inbox has received. Only emails that are sent to the inbox\'s email address will appear in the inbox. It may take several seconds for any email you send to an inbox\'s email address to appear in the inbox. To make this endpoint wait for a minimum number of emails use the `minCount` parameter. The server will retry the inbox database until the `minCount` is satisfied or the `retryTimeout` is reached * Get emails in an Inbox. This method is not idempotent as it allows retries and waits if you want certain conditions to be met before returning. For simple listing and sorting of known emails use the email controller instead. */ getEmailsRaw(requestParameters: GetEmailsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Array<EmailPreview>>>; /** * List emails that an inbox has received. Only emails that are sent to the inbox\'s email address will appear in the inbox. It may take several seconds for any email you send to an inbox\'s email address to appear in the inbox. To make this endpoint wait for a minimum number of emails use the `minCount` parameter. The server will retry the inbox database until the `minCount` is satisfied or the `retryTimeout` is reached * Get emails in an Inbox. This method is not idempotent as it allows retries and waits if you want certain conditions to be met before returning. For simple listing and sorting of known emails use the email controller instead. */ getEmails(requestParameters: GetEmailsRequest, initOverrides?: RequestInit): Promise<Array<EmailPreview>>; /** * Get IMAP access usernames and passwords */ getImapAccessRaw(requestParameters: GetImapAccessRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<ImapAccessDetails>>; /** * Get IMAP access usernames and passwords */ getImapAccess(requestParameters: GetImapAccessRequest, initOverrides?: RequestInit): Promise<ImapAccessDetails>; /** * Get IMAP and SMTP access usernames and passwords */ getImapSmtpAccessRaw(requestParameters: GetImapSmtpAccessRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<ImapSmtpAccessDetails>>; /** * Get IMAP and SMTP access usernames and passwords */ getImapSmtpAccess(requestParameters: GetImapSmtpAccessRequest, initOverrides?: RequestInit): Promise<ImapSmtpAccessDetails>; /** * Get IMAP and SMTP access details in .env format */ getImapSmtpAccessEnvRaw(requestParameters: GetImapSmtpAccessEnvRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<string>>; /** * Get IMAP and SMTP access details in .env format */ getImapSmtpAccessEnv(requestParameters: GetImapSmtpAccessEnvRequest, initOverrides?: RequestInit): Promise<string>; /** * Get IMAP and SMTP server hosts */ getImapSmtpAccessServersRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<ImapSmtpAccessServers>>; /** * Get IMAP and SMTP server hosts */ getImapSmtpAccessServers(initOverrides?: RequestInit): Promise<ImapSmtpAccessServers>; /** * Returns an inbox\'s properties, including its email address and ID. * Get Inbox. Returns properties of an inbox. */ getInboxRaw(requestParameters: GetInboxRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<InboxDto>>; /** * Returns an inbox\'s properties, including its email address and ID. * Get Inbox. Returns properties of an inbox. */ getInbox(requestParameters: GetInboxRequest, initOverrides?: RequestInit): Promise<InboxDto>; /** * Get a inbox result by email address * Search for an inbox with the provided email address */ getInboxByEmailAddressRaw(requestParameters: GetInboxByEmailAddressRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<InboxByEmailAddressResult>>; /** * Get a inbox result by email address * Search for an inbox with the provided email address */ getInboxByEmailAddress(requestParameters: GetInboxByEmailAddressRequest, initOverrides?: RequestInit): Promise<InboxByEmailAddressResult>; /** * Get a inbox result by name * Search for an inbox with the given name */ getInboxByNameRaw(requestParameters: GetInboxByNameRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<InboxByNameResult>>; /** * Get a inbox result by name * Search for an inbox with the given name */ getInboxByName(requestParameters: GetInboxByNameRequest, initOverrides?: RequestInit): Promise<InboxByNameResult>; /** * Get total inbox count */ getInboxCountRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<CountDto>>; /** * Get total inbox count */ getInboxCount(initOverrides?: RequestInit): Promise<CountDto>; /** * Get email count in inbox */ getInboxEmailCountRaw(requestParameters: GetInboxEmailCountRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<CountDto>>; /** * Get email count in inbox */ getInboxEmailCount(requestParameters: GetInboxEmailCountRequest, initOverrides?: RequestInit): Promise<CountDto>; /** * Get a paginated list of emails in an inbox. Does not hold connections open. * Get inbox emails paginated */ getInboxEmailsPaginatedRaw(requestParameters: GetInboxEmailsPaginatedRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<PageEmailPreview>>; /** * Get a paginated list of emails in an inbox. Does not hold connections open. * Get inbox emails paginated */ getInboxEmailsPaginated(requestParameters: GetInboxEmailsPaginatedRequest, initOverrides?: RequestInit): Promise<PageEmailPreview>; /** * Get list of inbox IDs * Get all inbox IDs */ getInboxIdsRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<InboxIdsResult>>; /** * Get list of inbox IDs * Get all inbox IDs */ getInboxIds(initOverrides?: RequestInit): Promise<InboxIdsResult>; /** * Returns a plus address object based on emails that used the inbox address with a +xyz alias. * Get sub address plus address for an inbox */ getInboxPlusAddressRaw(requestParameters: GetInboxPlusAddressRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<PlusAddressDto>>; /** * Returns a plus address object based on emails that used the inbox address with a +xyz alias. * Get sub address plus address for an inbox */ getInboxPlusAddress(requestParameters: GetInboxPlusAddressRequest, initOverrides?: RequestInit): Promise<PlusAddressDto>; /** * Returns a plus address object based on emails that used the inbox address with a +xyz alias. * Get sub address plus address by ID */ getInboxPlusAddressByIdRaw(requestParameters: GetInboxPlusAddressByIdRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<PlusAddressDto>>; /** * Returns a plus address object based on emails that used the inbox address with a +xyz alias. * Get sub address plus address by ID */ getInboxPlusAddressById(requestParameters: GetInboxPlusAddressByIdRequest, initOverrides?: RequestInit): Promise<PlusAddressDto>; /** * Returns paginated list of all emails for a given plus alias addresses found for an inbox based on received emails that used the inbox address with a +xyz alias. * Get emails for a given inbox plus address */ getInboxPlusAddressEmailsRaw(requestParameters: GetInboxPlusAddressEmailsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<PageEmailPreview>>; /** * Returns paginated list of all emails for a given plus alias addresses found for an inbox based on received emails that used the inbox address with a +xyz alias. * Get emails for a given inbox plus address */ getInboxPlusAddressEmails(requestParameters: GetInboxPlusAddressEmailsRequest, initOverrides?: RequestInit): Promise<PageEmailPreview>; /** * Returns paginated list of all emails for a given plus alias addresses found for an inbox based on received emails that used the inbox address with a +xyz alias. * Get emails for a given inbox plus address */ getInboxPlusAddressEmailsForPlusAddressIdRaw(requestParameters: GetInboxPlusAddressEmailsForPlusAddressIdRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<PageEmailPreview>>; /** * Returns paginated list of all emails for a given plus alias addresses found for an inbox based on received emails that used the inbox address with a +xyz alias. * Get emails for a given inbox plus address */ getInboxPlusAddressEmailsForPlusAddressId(requestParameters: GetInboxPlusAddressEmailsForPlusAddressIdRequest, initOverrides?: RequestInit): Promise<PageEmailPreview>; /** * Returns paginated list of all plus alias addresses found for an inbox based on received emails that used the inbox address with a +xyz alias. * Get sub address plus address aliases for an inbox */ getInboxPlusAddressesRaw(requestParameters: GetInboxPlusAddressesRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<PagePlusAddressProjection>>; /** * Returns paginated list of all plus alias addresses found for an inbox based on received emails that used the inbox address with a +xyz alias. * Get sub address plus address aliases for an inbox */ getInboxPlusAddresses(requestParameters: GetInboxPlusAddressesRequest, initOverrides?: RequestInit): Promise<PagePlusAddressProjection>; /** * Get sent email count in inbox */ getInboxSentCountRaw(requestParameters: GetInboxSentCountRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<CountDto>>; /** * Get sent email count in inbox */ getInboxSentCount(requestParameters: GetInboxSentCountRequest, initOverrides?: RequestInit): Promise<CountDto>; /** * Returns an inbox\'s sent email receipts. Call individual sent email endpoints for more details. Note for privacy reasons the full body of sent emails is never stored. An MD5 hash hex is available for comparison instead. * Get Inbox Sent Emails */ getInboxSentEmailsRaw(requestParameters: GetInboxSentEmailsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<PageSentEmailProjection>>; /** * Returns an inbox\'s sent email receipts. Call individual sent email endpoints for more details. Note for privacy reasons the full body of sent emails is never stored. An MD5 hash hex is available for comparison instead. * Get Inbox Sent Emails */ getInboxSentEmails(requestParameters: GetInboxSentEmailsRequest, initOverrides?: RequestInit): Promise<PageSentEmailProjection>; /** * Get all inbox tags * Get inbox tags */ getInboxTagsRaw(requestParameters: GetInboxTagsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Array<string>>>; /** * Get all inbox tags * Get inbox tags */ getInboxTags(requestParameters: GetInboxTagsRequest, initOverrides?: RequestInit): Promise<Array<string>>; /** * Get all inbox tags paginated * Get inbox tags paginated */ getInboxTagsPaginatedRaw(requestParameters: GetInboxTagsPaginatedRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<PageInboxTags>>; /** * Get all inbox tags paginated * Get inbox tags paginated */ getInboxTagsPaginated(requestParameters: GetInboxTagsPaginatedRequest, initOverrides?: RequestInit): Promise<PageInboxTags>; /** * List the inboxes you have created. Note use of the more advanced `getAllInboxes` is recommended and allows paginated access using a limit and sort parameter. * List Inboxes and email addresses */ getInboxesRaw(requestParameters: GetInboxesRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Array<InboxDto>>>; /** * List the inboxes you have created. Note use of the more advanced `getAllInboxes` is recommended and allows paginated access using a limit and sort parameter. * List Inboxes and email addresses */ getInboxes(requestParameters: GetInboxesRequest, initOverrides?: RequestInit): Promise<Array<InboxDto>>; /** * Get all inboxes for a given inbox tag * Get inboxes for a tag */ getInboxesByTagRaw(requestParameters: GetInboxesByTagRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<PageInboxProjection>>; /** * Get all inboxes for a given inbox tag * Get inboxes for a tag */ getInboxesByTag(requestParameters: GetInboxesByTagRequest, initOverrides?: RequestInit): Promise<PageInboxProjection>; /** * Get the newest email in an inbox or wait for one to arrive * Get latest email in an inbox. Use `WaitForController` to get emails that may not have arrived yet. */ getLatestEmailInInboxRaw(requestParameters: GetLatestEmailInInboxRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Email>>; /** * Get the newest email in an inbox or wait for one to arrive * Get latest email in an inbox. Use `WaitForController` to get emails that may not have arrived yet. */ getLatestEmailInInbox(requestParameters: GetLatestEmailInInboxRequest, initOverrides?: RequestInit): Promise<Email>; /** * List organization inboxes in paginated form. These are inboxes created with `allowTeamAccess` flag enabled. Organization inboxes are `readOnly` for non-admin users. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). * List Organization Inboxes Paginated */ getOrganizationInboxesRaw(requestParameters: GetOrganizationInboxesRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<PageOrganizationInboxProjection>>; /** * List organization inboxes in paginated form. These are inboxes created with `allowTeamAccess` flag enabled. Organization inboxes are `readOnly` for non-admin users. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). * List Organization Inboxes Paginated */ getOrganizationInboxes(requestParameters: GetOrganizationInboxesRequest, initOverrides?: RequestInit): Promise<PageOrganizationInboxProjection>; /** * List inboxes that have sent emails * List all inboxes with sent emails */ getOutboxesRaw(requestParameters: GetOutboxesRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<PageInboxProjection>>; /** * List inboxes that have sent emails * List all inboxes with sent emails */ getOutboxes(requestParameters: GetOutboxesRequest, initOverrides?: RequestInit): Promise<PageInboxProjection>; /** * Get a scheduled email job details. * Get a scheduled email job */ getScheduledJobRaw(requestParameters: GetScheduledJobRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<ScheduledJobDto>>; /** * Get a scheduled email job details. * Get a scheduled email job */ getScheduledJob(requestParameters: GetScheduledJobRequest, initOverrides?: RequestInit): Promise<ScheduledJobDto>; /** * Schedule sending of emails using scheduled jobs. * Get all scheduled email sending jobs for the inbox */ getScheduledJobsByInboxIdRaw(requestParameters: GetScheduledJobsByInboxIdRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<PageScheduledJobs>>; /** * Schedule sending of emails using scheduled jobs. * Get all scheduled email sending jobs for the inbox */ getScheduledJobsByInboxId(requestParameters: GetScheduledJobsByInboxIdRequest, initOverrides?: RequestInit): Promise<PageScheduledJobs>; /** * Get SMTP access usernames and passwords */ getSmtpAccessRaw(requestParameters: GetSmtpAccessRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<SmtpAccessDetails>>; /** * Get SMTP access usernames and passwords */ getSmtpAccess(requestParameters: GetSmtpAccessRequest, initOverrides?: RequestInit): Promise<SmtpAccessDetails>; /** * Returns whether an email address is available * Is email address available */ isEmailAddressAvailableRaw(requestParameters: IsEmailAddressAvailableRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<EmailAvailableResult>>; /** * Returns whether an email address is available * Is email address available */ isEmailAddressAvailable(requestParameters: IsEmailAddressAvailableRequest, initOverrides?: RequestInit): Promise<EmailAvailableResult>; /** * List all rulesets attached to an inbox * List inbox rulesets */ listInboxRulesetsRaw(requestParameters: ListInboxRulesetsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<PageInboxRulesetDto>>; /** * List all rulesets attached to an inbox * List inbox rulesets */ listInboxRulesets(requestParameters: ListInboxRulesetsRequest, initOverrides?: RequestInit): Promise<PageInboxRulesetDto>; /** * List all tracking pixels sent from an inbox * List inbox tracking pixels */ listInboxTrackingPixelsRaw(requestParameters: ListInboxTrackingPixelsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<PageTrackingPixelProjection>>; /** * List all tracking pixels sent from an inbox * List inbox tracking pixels */ listInboxTrackingPixels(requestParameters: ListInboxTrackingPixelsRequest, initOverrides?: RequestInit): Promise<PageTrackingPixelProjection>; /** * Search inboxes and return in paginated form. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). You Can also filter by whether an inbox is favorited or use email address pattern. This method is the recommended way to query inboxes. The alternative `getInboxes` method returns a full list of inboxes but is limited to 100 results. * Search all inboxes and return matching inboxes */ searchInboxesRaw(requestParameters: SearchInboxesRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<PageInboxProjection>>; /** * Search inboxes and return in paginated form. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). You Can also filter by whether an inbox is favorited or use email address pattern. This method is the recommended way to query inboxes. The alternative `getInboxes` method returns a full list of inboxes but is limited to 100 results. * Search all inboxes and return matching inboxes */ searchInboxes(requestParameters: SearchInboxesRequest, initOverrides?: RequestInit): Promise<PageInboxProjection>; /** * Send an email from an inbox\'s email address. The request body should contain the `SendEmailOptions` that include recipients, attachments, body etc. See `SendEmailOptions` for all available properties. Note the `inboxId` refers to the inbox\'s id not the inbox\'s email address. See https://www.mailslurp.com/guides/ for more information on how to send emails. This method does not return a sent email entity due to legacy reasons. To send and get a sent email as returned response use the sister method `sendEmailAndConfirm`. * Send Email */ sendEmailRaw(requestParameters: SendEmailRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>; /** * Send an email from an inbox\'s email address. The request body should contain the `SendEmailOptions` that include recipients, attachments, body etc. See `SendEmailOptions` for all available properties. Note the `inboxId` refers to the inbox\'s id not the inbox\'s email address. See https://www.mailslurp.com/guides/ for more information on how to send emails. This method does not return a sent email entity due to legacy reasons. To send and get a sent email as returned response use the sister method `sendEmailAndConfirm`. * Send Email */ sendEmail(requestParameters: SendEmailRequest, initOverrides?: RequestInit): Promise<void>; /** * Sister method for standard `sendEmail` method with the benefit of returning a `SentEmail` entity confirming the successful sending of the email with a link to the sent object created for it. * Send email and return sent confirmation */ sendEmailAndConfirmRaw(requestParameters: SendEmailAndConfirmRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<SentEmailDto>>; /** * Sister method for standard `sendEmail` method with the benefit of returning a `SentEmail` entity confirming the successful sending of the email with a link to the sent object created for it. * Send email and return sent confirmation */ sendEmailAndConfirm(requestParameters: SendEmailAndConfirmRequest, initOverrides?: RequestInit): Promise<SentEmailDto>; /** * Send an email using a queue. Will place the email onto a queue that will then be processed and sent. Use this queue method to enable any failed email sending to be recovered. This will prevent lost emails when sending if your account encounters a block or payment issue. * Send email with queue */ sendEmailWithQueueRaw(requestParameters: SendEmailWithQueueRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>; /** * Send an email using a queue. Will place the email onto a queue that will then be processed and sent. Use this queue method to enable any failed email sending to be recovered. This will prevent lost emails when sending if your account encounters a block or payment issue. * Send email with queue */ sendEmailWithQueue(requestParameters: SendEmailWithQueueRequest, initOverrides?: RequestInit): Promise<void>; /** * Send email using an SMTP envelope containing RCPT TO, MAIL FROM, and a SMTP BODY. * Send email using an SMTP mail envelope and message body and return sent confirmation */ sendSmtpEnvelopeRaw(requestParameters: SendSmtpEnvelopeRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<SentEmailDto>>; /** * Send email using an SMTP envelope containing RCPT TO, MAIL FROM, and a SMTP BODY. * Send email using an SMTP mail envelope and message body and return sent confirmation */ sendSmtpEnvelope(requestParameters: SendSmtpEnvelopeRequest, initOverrides?: RequestInit): Promise<SentEmailDto>; /** * Send an inbox a test email to test email receiving is working * Send a test email to inbox */ sendTestEmailRaw(requestParameters: SendTestEmailRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>; /** * Send an inbox a test email to test email receiving is working * Send a test email to inbox */ sendTestEmail(requestParameters: SendTestEmailRequest, initOverrides?: RequestInit): Promise<void>; /** * Send an email using a delay. Will place the email onto a scheduler that will then be processed and sent. Use delays to schedule email sending. * Send email with with delay or schedule */ sendWithScheduleRaw(requestParameters: SendWithScheduleRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<ScheduledJobDto>>; /** * Send an email using a delay. Will place the email onto a scheduler that will then be processed and sent. Use delays to schedule email sending. * Send email with with delay or schedule */ sendWithSchedule(requestParameters: SendWithScheduleRequest, initOverrides?: RequestInit): Promise<ScheduledJobDto>; /** * Set and return new favorite state for an inbox * Set inbox favourited state */ setInboxFavouritedRaw(requestParameters: SetInboxFavouritedRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<InboxDto>>; /** * Set and return new favorite state for an inbox * Set inbox favourited state */ setInboxFavourited(requestParameters: SetInboxFavouritedRequest, initOverrides?: RequestInit): Promise<InboxDto>; /** * Update IMAP access usernames and passwords */ updateImapAccessRaw(requestParameters: UpdateImapAccessRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>; /** * Update IMAP access usernames and passwords */ updateImapAccess(requestParameters: UpdateImapAccessRequest, initOverrides?: RequestInit): Promise<void>; /** * Update editable fields on an inbox * Update Inbox. Change name and description. Email address is not editable. */ updateInboxRaw(requestParameters: UpdateInboxRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<InboxDto>>; /** * Update editable fields on an inbox * Update Inbox. Change name and description. Email address is not editable. */ updateInbox(requestParameters: UpdateInboxRequest, initOverrides?: RequestInit): Promise<InboxDto>; /** * Update SMTP access usernames and passwords */ updateSmtpAccessRaw(requestParameters: UpdateSmtpAccessRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>; /** * Update SMTP access usernames and passwords */ updateSmtpAccess(requestParameters: UpdateSmtpAccessRequest, initOverrides?: RequestInit): Promise<void>; } /** * @export * @enum {string} */ export declare enum CreateInboxInboxTypeEnum { HTTP_INBOX = "HTTP_INBOX", SMTP_INBOX = "SMTP_INBOX" } /** * @export * @enum {string} */ export declare enum GetAllInboxesSortEnum { ASC = "ASC", DESC = "DESC" } /** * @export * @enum {string} */ export declare enum GetAllInboxesInboxTypeEnum { HTTP_INBOX = "HTTP_INBOX", SMTP_INBOX = "SMTP_INBOX" } /** * @export * @enum {string} */ export declare enum GetAllInboxesInboxFunctionEnum { ALIAS = "ALIAS", THREAD = "THREAD", CATCH_ALL = "CATCH_ALL", CONNECTOR = "CONNECTOR", ACCOUNT = "ACCOUNT", GUEST = "GUEST", OAUTH_CONNECTION_GMAIL = "OAUTH_CONNECTION_GMAIL" } /** * @export * @enum {string} */ export declare enum GetAllInboxesOffsetPaginatedSortEnum { ASC = "ASC", DESC = "DESC" } /** * @export * @enum {string} */ export declare enum GetAllInboxesOffsetPaginatedInboxTypeEnum { HTTP_INBOX = "HTTP_INBOX", SMTP_INBOX = "SMTP_INBOX" } /** * @export * @enum {string} */ export declare enum GetAllInboxesOff