/** * 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. */ /** * Options for extracting verification codes from email or SMS content. Use method to control extraction strategy and allowFallback to control strictness. * @export * @interface ExtractCodesOptions */ export interface ExtractCodesOptions { /** * Extraction strategy for verification codes. Unsupported strategies may fall back when allowFallback is true. * @type {string} * @memberof ExtractCodesOptions */ method?: ExtractCodesOptionsMethodEnum; /** * Allow fallback to deterministic pattern extraction when the selected method is unavailable. * @type {boolean} * @memberof ExtractCodesOptions */ allowFallback?: boolean; /** * Minimum code length to consider. Typical OTP values are between 4 and 8 characters. * @type {number} * @memberof ExtractCodesOptions */ minLength?: number; /** * Maximum code length to consider. * @type {number} * @memberof ExtractCodesOptions */ maxLength?: number; /** * Maximum number of code candidates to return. Best candidate is also returned separately. * @type {number} * @memberof ExtractCodesOptions */ maxCandidates?: number; /** * Optional custom regex patterns for code extraction. Each pattern should have either one capture group for the code or match the full code directly. * @type {Array} * @memberof ExtractCodesOptions */ customPatterns?: Array | null; } /** * @export * @enum {string} */ export declare enum ExtractCodesOptionsMethodEnum { AUTO = "AUTO", PATTERN = "PATTERN", LLM = "LLM", OCR = "OCR", OCR_THEN_LLM = "OCR_THEN_LLM" } export declare function ExtractCodesOptionsFromJSON(json: any): ExtractCodesOptions; export declare function ExtractCodesOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExtractCodesOptions; export declare function ExtractCodesOptionsToJSON(value?: ExtractCodesOptions | null): any;