/** * 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. */ /** * Rules for an inbox or phone number. Rulesets can be used to block, allow, filter, or bounce emails or SMS when sending or receiving. * @export * @interface RulesetDto */ export interface RulesetDto { /** * * @type {string} * @memberof RulesetDto */ id: string; /** * * @type {string} * @memberof RulesetDto */ inboxId?: string | null; /** * * @type {string} * @memberof RulesetDto */ phoneId?: string | null; /** * * @type {string} * @memberof RulesetDto */ scope: RulesetDtoScopeEnum; /** * * @type {string} * @memberof RulesetDto */ action: RulesetDtoActionEnum; /** * * @type {string} * @memberof RulesetDto */ target: string; /** * * @type {string} * @memberof RulesetDto */ handler: RulesetDtoHandlerEnum; /** * * @type {Date} * @memberof RulesetDto */ createdAt: Date; } /** * @export * @enum {string} */ export declare enum RulesetDtoScopeEnum { RECEIVING_EMAILS = "RECEIVING_EMAILS", SENDING_EMAILS = "SENDING_EMAILS", RECEIVING_SMS = "RECEIVING_SMS", SENDING_SMS = "SENDING_SMS" } /** * @export * @enum {string} */ export declare enum RulesetDtoActionEnum { BLOCK = "BLOCK", ALLOW = "ALLOW", FILTER_REMOVE = "FILTER_REMOVE", BOUNCE_SOFT = "BOUNCE_SOFT", BOUNCE_HARD = "BOUNCE_HARD" } /** * @export * @enum {string} */ export declare enum RulesetDtoHandlerEnum { EXCEPTION = "EXCEPTION" } export declare function RulesetDtoFromJSON(json: any): RulesetDto; export declare function RulesetDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RulesetDto; export declare function RulesetDtoToJSON(value?: RulesetDto | null): any;