// This file was auto-generated by Fern from our API Definition.

import type * as Vapi from "../index.js";

export interface CustomerCustomEndpointingRule {
    /**
     * This is the regex pattern to match.
     *
     * Note:
     * - This works by using the `RegExp.test` method in Node.JS. Eg. `/hello/.test("hello there")` will return `true`.
     *
     * Hot tip:
     * - In JavaScript, escape `\` when sending the regex pattern. Eg. `"hello\sthere"` will be sent over the wire as `"hellosthere"`. Send `"hello\\sthere"` instead.
     * - `RegExp.test` does substring matching, so `/cat/.test("I love cats")` will return `true`. To do full string matching, send "^cat$".
     */
    regex: string;
    /**
     * These are the options for the regex match. Defaults to all disabled.
     *
     * @default []
     */
    regexOptions?: Vapi.RegexOption[] | undefined;
    /** This is the endpointing timeout in seconds, if the rule is matched. */
    timeoutSeconds: number;
}
