/** * 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 { CreateInboxRulesetOptions, InboxRulesetDto, InboxRulesetTestOptions, InboxRulesetTestResult, PageInboxRulesetDto, TestNewInboxRulesetOptions } from '../models'; export interface CreateNewInboxRulesetRequest { inboxId: string; createInboxRulesetOptions: CreateInboxRulesetOptions; } export interface DeleteInboxRulesetRequest { id: string; } export interface DeleteInboxRulesetsRequest { inboxId?: string; } export interface GetInboxRulesetRequest { id: string; } export interface GetInboxRulesetsRequest { inboxId?: string; page?: number; size?: number; sort?: GetInboxRulesetsSortEnum; searchFilter?: string; since?: Date; before?: Date; } export interface TestInboxRulesetRequest { id: string; inboxRulesetTestOptions: InboxRulesetTestOptions; } export interface TestInboxRulesetsForInboxRequest { inboxId: string; inboxRulesetTestOptions: InboxRulesetTestOptions; } export interface TestNewInboxRulesetRequest { testNewInboxRulesetOptions: TestNewInboxRulesetOptions; } /** * InboxRulesetControllerApi - interface * * @export * @interface InboxRulesetControllerApiInterface */ export interface InboxRulesetControllerApiInterface { /** * Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving * @summary Create an inbox ruleset * @param {string} inboxId Inbox id to attach ruleset to * @param {CreateInboxRulesetOptions} createInboxRulesetOptions * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InboxRulesetControllerApiInterface */ createNewInboxRulesetRaw(requestParameters: CreateNewInboxRulesetRequest): Promise>; /** * Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving * Create an inbox ruleset */ createNewInboxRuleset(requestParameters: CreateNewInboxRulesetRequest): Promise; /** * Delete inbox ruleset * @summary Delete an inbox ruleset * @param {string} id ID of inbox ruleset * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InboxRulesetControllerApiInterface */ deleteInboxRulesetRaw(requestParameters: DeleteInboxRulesetRequest): Promise>; /** * Delete inbox ruleset * Delete an inbox ruleset */ deleteInboxRuleset(requestParameters: DeleteInboxRulesetRequest): Promise; /** * Delete inbox rulesets. Accepts optional inboxId filter. * @summary Delete inbox rulesets * @param {string} [inboxId] Optional inbox id to attach ruleset to * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InboxRulesetControllerApiInterface */ deleteInboxRulesetsRaw(requestParameters: DeleteInboxRulesetsRequest): Promise>; /** * Delete inbox rulesets. Accepts optional inboxId filter. * Delete inbox rulesets */ deleteInboxRulesets(requestParameters: DeleteInboxRulesetsRequest): Promise; /** * Get inbox ruleset * @summary Get an inbox ruleset * @param {string} id ID of inbox ruleset * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InboxRulesetControllerApiInterface */ getInboxRulesetRaw(requestParameters: GetInboxRulesetRequest): Promise>; /** * Get inbox ruleset * Get an inbox ruleset */ getInboxRuleset(requestParameters: GetInboxRulesetRequest): Promise; /** * List all rulesets attached to an inbox * @summary List inbox rulesets * @param {string} [inboxId] Optional inbox id to get rulesets from * @param {number} [page] Optional page index in inbox ruleset list pagination * @param {number} [size] Optional page size in inbox ruleset list pagination * @param {'ASC' | 'DESC'} [sort] Optional createdAt sort direction ASC or DESC * @param {string} [searchFilter] Optional search filter * @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 InboxRulesetControllerApiInterface */ getInboxRulesetsRaw(requestParameters: GetInboxRulesetsRequest): Promise>; /** * List all rulesets attached to an inbox * List inbox rulesets */ getInboxRulesets(requestParameters: GetInboxRulesetsRequest): Promise; /** * Test an inbox ruleset * @summary Test an inbox ruleset * @param {string} id ID of inbox ruleset * @param {InboxRulesetTestOptions} inboxRulesetTestOptions * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InboxRulesetControllerApiInterface */ testInboxRulesetRaw(requestParameters: TestInboxRulesetRequest): Promise>; /** * Test an inbox ruleset * Test an inbox ruleset */ testInboxRuleset(requestParameters: TestInboxRulesetRequest): Promise; /** * Test inbox rulesets for inbox * @summary Test inbox rulesets for inbox * @param {string} inboxId ID of inbox * @param {InboxRulesetTestOptions} inboxRulesetTestOptions * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InboxRulesetControllerApiInterface */ testInboxRulesetsForInboxRaw(requestParameters: TestInboxRulesetsForInboxRequest): Promise>; /** * Test inbox rulesets for inbox * Test inbox rulesets for inbox */ testInboxRulesetsForInbox(requestParameters: TestInboxRulesetsForInboxRequest): Promise; /** * Test new inbox ruleset * @summary Test new inbox ruleset * @param {TestNewInboxRulesetOptions} testNewInboxRulesetOptions * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InboxRulesetControllerApiInterface */ testNewInboxRulesetRaw(requestParameters: TestNewInboxRulesetRequest): Promise>; /** * Test new inbox ruleset * Test new inbox ruleset */ testNewInboxRuleset(requestParameters: TestNewInboxRulesetRequest): Promise; } /** * */ export declare class InboxRulesetControllerApi extends runtime.BaseAPI implements InboxRulesetControllerApiInterface { /** * Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving * Create an inbox ruleset */ createNewInboxRulesetRaw(requestParameters: CreateNewInboxRulesetRequest): Promise>; /** * Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving * Create an inbox ruleset */ createNewInboxRuleset(requestParameters: CreateNewInboxRulesetRequest): Promise; /** * Delete inbox ruleset * Delete an inbox ruleset */ deleteInboxRulesetRaw(requestParameters: DeleteInboxRulesetRequest): Promise>; /** * Delete inbox ruleset * Delete an inbox ruleset */ deleteInboxRuleset(requestParameters: DeleteInboxRulesetRequest): Promise; /** * Delete inbox rulesets. Accepts optional inboxId filter. * Delete inbox rulesets */ deleteInboxRulesetsRaw(requestParameters: DeleteInboxRulesetsRequest): Promise>; /** * Delete inbox rulesets. Accepts optional inboxId filter. * Delete inbox rulesets */ deleteInboxRulesets(requestParameters: DeleteInboxRulesetsRequest): Promise; /** * Get inbox ruleset * Get an inbox ruleset */ getInboxRulesetRaw(requestParameters: GetInboxRulesetRequest): Promise>; /** * Get inbox ruleset * Get an inbox ruleset */ getInboxRuleset(requestParameters: GetInboxRulesetRequest): Promise; /** * List all rulesets attached to an inbox * List inbox rulesets */ getInboxRulesetsRaw(requestParameters: GetInboxRulesetsRequest): Promise>; /** * List all rulesets attached to an inbox * List inbox rulesets */ getInboxRulesets(requestParameters: GetInboxRulesetsRequest): Promise; /** * Test an inbox ruleset * Test an inbox ruleset */ testInboxRulesetRaw(requestParameters: TestInboxRulesetRequest): Promise>; /** * Test an inbox ruleset * Test an inbox ruleset */ testInboxRuleset(requestParameters: TestInboxRulesetRequest): Promise; /** * Test inbox rulesets for inbox * Test inbox rulesets for inbox */ testInboxRulesetsForInboxRaw(requestParameters: TestInboxRulesetsForInboxRequest): Promise>; /** * Test inbox rulesets for inbox * Test inbox rulesets for inbox */ testInboxRulesetsForInbox(requestParameters: TestInboxRulesetsForInboxRequest): Promise; /** * Test new inbox ruleset * Test new inbox ruleset */ testNewInboxRulesetRaw(requestParameters: TestNewInboxRulesetRequest): Promise>; /** * Test new inbox ruleset * Test new inbox ruleset */ testNewInboxRuleset(requestParameters: TestNewInboxRulesetRequest): Promise; } /** * @export * @enum {string} */ export declare enum GetInboxRulesetsSortEnum { ASC = "ASC", DESC = "DESC" }