Documentation
    Preparing search index...
    actions: {
        blocks: {
            configFields: { input_type: string; name: string }[];
            description: string;
            disableInBuilder: boolean;
            disableInList: boolean;
            disableInWorkflow: boolean;
            namespace: string;
            run: (
                opts: {
                    channel?: string;
                    configuration: { code: string; run_where: string };
                    row?: Row;
                    table?: Table;
                    user?: User | AbstractUser;
                    [key: string]: any;
                },
            ) => Promise<any>;
        };
        convert_session_to_user: {
            configFields: (
                __namedParameters: any,
            ) => Promise<
                (
                    | {
                        attributes?: undefined;
                        input_type: string;
                        label: string;
                        name: string;
                        options: string[];
                        sublabel: string;
                        type?: undefined;
                    }
                    | {
                        attributes: { calcOptions: (string | Record<(...), (...)>)[] };
                        input_type?: undefined;
                        label: string;
                        name: string;
                        options?: undefined;
                        sublabel: string;
                        type: string;
                    }
                )[],
            >;
            description: string;
            namespace: string;
            run: (
                __namedParameters: {
                    configuration: {
                        session_field: string;
                        table_name: string;
                        user_field: string;
                    };
                    row?: Row & { old_session_id?: string };
                    user?: User | AbstractUser;
                },
            ) => Promise<void>;
        };
        copy_to_clipboard: {
            configFields: {
                label: string;
                name: string;
                required: boolean;
                sublabel: string;
                type: string;
            }[];
            description: string;
            namespace: string;
            requireRow: boolean;
            run: (
                __namedParameters: {
                    configuration: { text_template?: string };
                    req?: Req;
                    row?: Row;
                    table?: Table;
                    user?: User | AbstractUser;
                    [key: string]: any;
                },
            ) => Promise<{ eval_js: string }>;
        };
        delete_rows: {
            configFields: (
                __namedParameters: any,
            ) => Promise<
                (
                    | {
                        class?: undefined;
                        input_type?: undefined;
                        label: string;
                        name: string;
                        options?: undefined;
                        required?: undefined;
                        showIf?: undefined;
                        sublabel?: undefined;
                        type: string;
                    }
                    | {
                        class?: undefined;
                        input_type: string;
                        label: string;
                        name: string;
                        options: string[];
                        required?: undefined;
                        showIf: { delete_triggering_row: boolean }
                        | undefined;
                        sublabel: string;
                        type?: undefined;
                    }
                    | {
                        class: string;
                        input_type?: undefined;
                        label: string;
                        name: string;
                        options?: undefined;
                        required: boolean;
                        showIf: { delete_triggering_row: boolean }
                        | undefined;
                        sublabel: string;
                        type: string;
                    }
                )[],
            >;
            description: string;
            namespace: string;
            run: (
                __namedParameters: {
                    configuration: {
                        delete_triggering_row?: boolean;
                        delete_where?: string;
                        table_name?: string;
                    };
                    row?: Row;
                    table?: Table;
                    user?: User
                    | AbstractUser;
                    [key: string]: any;
                },
            ) => Promise<{}>;
        };
        download_file_to_browser: {
            configFields: (
                __namedParameters: { mode: string; table: Table },
            ) => Promise<
                | {
                    class: string;
                    label: string;
                    name: string;
                    sublabel: string;
                    type: string;
                }[]
                | {
                    attributes: { options: string[] };
                    label: string;
                    name: string;
                    required: boolean;
                    type: string;
                }[],
            >;
            description: string;
            run: (
                __namedParameters: {
                    configuration: { file_field?: string; filepath_expr?: string };
                    mode?: string;
                    row?: Row;
                    user?: User | AbstractUser;
                },
            ) => Promise<
                | {
                    download: {
                        blob: string
                        | Buffer<ArrayBufferLike>;
                        filename: string;
                        mimetype: string;
                    };
                }
                | undefined,
            >;
        };
        duplicate_row: {
            configFields: () => never[];
            description: string;
            disableInWorkflow: boolean;
            namespace: string;
            requireRow: boolean;
            run: (
                opts: { row: Row; table: Table; user?: User | AbstractUser },
            ) => Promise<void>;
        };
        duplicate_row_prefill_edit: {
            configFields: (
                __namedParameters: any,
            ) => Promise<
                (
                    | { default: boolean; label: string; name: string; type: string }
                    | { input_type: string; label: string; name: string; options: string[] }
                )[],
            >;
            disableInWorkflow: boolean;
            namespace: string;
            requireRow: boolean;
            run: (
                __namedParameters: {
                    configuration: { viewname: string; [key: string]: any };
                    row: Row;
                    table: Table;
                    user?: User | AbstractUser;
                },
            ) => Promise<{ goto: string }>;
        };
        emit_event: {
            configFields: () => (
                | {
                    fieldview?: undefined;
                    input_type: string;
                    label: string;
                    name: string;
                    options: string[];
                    required: boolean;
                    sublabel?: undefined;
                    type?: undefined;
                }
                | {
                    fieldview: string;
                    input_type?: undefined;
                    label: string;
                    name: string;
                    options?: undefined;
                    required?: undefined;
                    sublabel?: undefined;
                    type: string;
                }
                | {
                    fieldview: string;
                    input_type?: undefined;
                    label: string;
                    name: string;
                    options?: undefined;
                    required?: undefined;
                    sublabel: string;
                    type: string;
                }
            )[];
            description: string;
            namespace: string;
            run: (
                opts: {
                    configuration: { channel?: string; eventType: string; payload?: any };
                    row: Row;
                    user?: User | AbstractUser;
                },
            ) => Promise<void>;
        };
        find_or_create_dm_room: {
            configFields: () => Promise<
                {
                    input_type: string;
                    label: string;
                    name: string;
                    options: string[];
                    sublabel: string;
                }[],
            >;
            description: string;
            namespace: string;
            run: (
                opts: {
                    configuration: { viewname: string };
                    row: Row;
                    table?: Table;
                    user: User;
                },
            ) => Promise<{ goto: string }>;
        };
        form_action: {
            configFields: {
                attributes: { options: string[] };
                label: string;
                name: string;
                required: boolean;
                type: string;
            }[];
            description: string;
            namespace: string;
            requireRow: boolean;
            run: (
                __namedParameters: {
                    configuration: { form_action: string };
                    req?: Req;
                    row?: Row;
                    table: Table;
                    user?: User | AbstractUser;
                    [key: string]: any;
                },
            ) => Promise<
                | {
                    eval_js: string;
                    notify_success?: undefined;
                    set_fields?: undefined;
                }
                | {
                    eval_js?: undefined;
                    notify_success: string;
                    set_fields: { [key: string]: any };
                }
                | { eval_js?: undefined; notify_success: string; set_fields?: undefined },
            >;
        };
        insert_any_row: {
            configFields: (
                __namedParameters: any,
            ) => Promise<
                (
                    | {
                        attributes?: undefined;
                        class?: undefined;
                        fieldview?: undefined;
                        input_type: string;
                        label: string;
                        name: string;
                        options: string[];
                        sublabel: string;
                        type?: undefined;
                    }
                    | {
                        attributes: { spellcheck: boolean };
                        class: string;
                        fieldview: string;
                        input_type?: undefined;
                        label: string;
                        name: string;
                        options?: undefined;
                        sublabel: string;
                        type: string;
                    }
                    | {
                        attributes?: undefined;
                        class?: undefined;
                        fieldview?: undefined;
                        input_type?: undefined;
                        label: string;
                        name: string;
                        options?: undefined;
                        sublabel: string;
                        type: string;
                    }
                )[],
            >;
            description: string;
            namespace: string;
            run: (
                opts: {
                    configuration: {
                        id_variable?: string;
                        row_expr: string;
                        table: string;
                    };
                    referrer?: string;
                    row?: Row;
                    table?: Table;
                    user?: User
                    | AbstractUser;
                    [key: string]: any;
                },
            ) => Promise<GenObj>;
        };
        insert_joined_row: {
            configFields: (
                __namedParameters: any,
            ) => Promise<
                {
                    input_type: string;
                    label: string;
                    name: string;
                    options: any;
                    sublabel: string;
                }[],
            >;
            description: string;
            disableInWorkflow: boolean;
            namespace: string;
            requireRow: boolean;
            run: (
                opts: {
                    configuration: { joined_table: string };
                    row: Row;
                    table: Table;
                    user?: User | AbstractUser;
                },
            ) => Promise<any>;
        };
        install_progressive_web_app: {
            configFields: () => never[];
            description: string;
            run: (
                __namedParameters: { req: Req },
            ) => Promise<
                | { error?: undefined; eval_js: string }
                | { error: string; eval_js?: undefined },
            >;
        };
        loop_rows: {
            configFields: () => Promise<
                (
                    | {
                        attributes?: undefined;
                        input_type: string;
                        label: string;
                        name: string;
                        options: string[];
                        sublabel: string;
                        type?: undefined;
                    }
                    | {
                        attributes: {
                            calcOptions?: undefined;
                            expression_type: string;
                            min?: undefined;
                            mode: string;
                            singleline: boolean;
                        };
                        input_type: string;
                        label: string;
                        name: string;
                        options?: undefined;
                        sublabel: string;
                        type?: undefined;
                    }
                    | {
                        attributes?: undefined;
                        input_type?: undefined;
                        label: string;
                        name: string;
                        options?: undefined;
                        sublabel: string;
                        type: string;
                    }
                    | {
                        attributes: {
                            calcOptions: (string | Record<(...), (...)>)[];
                            expression_type?: undefined;
                            min?: undefined;
                            mode?: undefined;
                            singleline?: undefined;
                        };
                        input_type?: undefined;
                        label: string;
                        name: string;
                        options?: undefined;
                        sublabel?: undefined;
                        type: string;
                    }
                    | {
                        attributes?: undefined;
                        input_type?: undefined;
                        label: string;
                        name: string;
                        options?: undefined;
                        sublabel?: undefined;
                        type: string;
                    }
                    | {
                        attributes: {
                            calcOptions?: undefined;
                            expression_type?: undefined;
                            min: number;
                            mode?: undefined;
                            singleline?: undefined;
                        };
                        input_type?: undefined;
                        label: string;
                        name: string;
                        options?: undefined;
                        sublabel: string;
                        type: string;
                    }
                    | {
                        attributes?: undefined;
                        input_type: string;
                        label: string;
                        name: string;
                        options: {
                            label: string
                            | undefined;
                            value: number | null | undefined;
                        }[];
                        sublabel: string;
                        type?: undefined;
                    }
                )[],
            >;
            description: string;
            namespace: string;
            run: (
                opts: {
                    configuration: {
                        interval?: number;
                        limit?: number;
                        orderBy?: string;
                        orderDesc?: boolean;
                        table_name: string;
                        trigger_id?: number;
                        where?: Where;
                    };
                    row: Row;
                    user?: User
                    | AbstractUser;
                    [key: string]: unknown;
                },
            ) => Promise<{}>;
        };
        modify_row: {
            configFields: (
                __namedParameters: { mode: string; when_trigger: string },
            ) => Promise<
                (
                    | {
                        attributes: {
                            compact: boolean;
                            expression_type: string;
                            mode: string;
                            options?: undefined;
                            showIf?: undefined;
                            singleline?: undefined;
                        };
                        input_type: string;
                        label: string;
                        name: string;
                        required?: undefined;
                        showIf?: undefined;
                        sublabel: string;
                        type?: undefined;
                    }
                    | {
                        attributes: {
                            compact?: undefined;
                            expression_type?: undefined;
                            mode?: undefined;
                            options: string[];
                            showIf?: undefined;
                            singleline?: undefined;
                        };
                        input_type?: undefined;
                        label: string;
                        name: string;
                        required: boolean;
                        showIf?: undefined;
                        sublabel?: undefined;
                        type: string;
                    }
                    | {
                        attributes: {
                            compact?: undefined;
                            expression_type?: undefined;
                            mode?: undefined;
                            options: string[];
                            showIf: { where: string };
                            singleline?: undefined;
                        };
                        input_type?: undefined;
                        label: string;
                        name: string;
                        required: boolean;
                        showIf?: undefined;
                        sublabel?: undefined;
                        type: string;
                    }
                    | {
                        attributes: {
                            compact?: undefined;
                            expression_type: string;
                            mode: string;
                            options?: undefined;
                            showIf?: undefined;
                            singleline: boolean;
                        };
                        input_type: string;
                        label: string;
                        name: string;
                        required: boolean;
                        showIf: { where: string };
                        sublabel?: undefined;
                        type?: undefined;
                    }
                )[],
            >;
            description: string;
            namespace: string;
            requireRow: boolean;
            run: (
                __namedParameters: {
                    configuration: {
                        query?: string;
                        row_expr: string;
                        select_table?: string;
                        where?: string;
                    };
                    row?: Row;
                    table?: Table;
                    user?: User
                    | AbstractUser;
                    [key: string]: any;
                },
            ) => Promise<
                ErrorMessage
                | SuccessMessage
                | { set_fields: any }
                | undefined,
            >;
        };
        navigate: {
            configFields: () => Promise<
                (
                    | {
                        attributes: { options: string[] };
                        class?: undefined;
                        input_type?: undefined;
                        label: string;
                        name: string;
                        options?: undefined;
                        required: boolean;
                        showIf?: undefined;
                        type: string;
                    }
                    | {
                        attributes?: undefined;
                        class?: undefined;
                        input_type?: undefined;
                        label: string;
                        name: string;
                        options?: undefined;
                        required: boolean;
                        showIf: { nav_action: string[] };
                        type: string;
                    }
                    | {
                        attributes?: undefined;
                        class?: undefined;
                        input_type: string;
                        label: string;
                        name: string;
                        options: string[];
                        required?: undefined;
                        showIf: { nav_action: string };
                        type?: undefined;
                    }
                    | {
                        attributes?: undefined;
                        class: string;
                        input_type?: undefined;
                        label: string;
                        name: string;
                        options?: undefined;
                        required?: undefined;
                        showIf: { nav_action: string[] };
                        type: string;
                    }
                    | {
                        attributes?: undefined;
                        class?: undefined;
                        input_type?: undefined;
                        label: string;
                        name: string;
                        options?: undefined;
                        required?: undefined;
                        showIf: { nav_action: string[] };
                        type: string;
                    }
                )[],
            >;
            description: string;
            namespace: string;
            run: (
                __namedParameters: {
                    configuration: {
                        in_popup?: boolean;
                        nav_action: string;
                        new_tab?: boolean;
                        page?: string;
                        state_formula?: string;
                        url?: string;
                        view?: string;
                    };
                    req?: Req;
                    row?: Row;
                    user?: User
                    | AbstractUser;
                },
            ) => Promise<
                | {
                    eval_js?: undefined;
                    popup?: undefined;
                    reload_page?: undefined;
                    target?: string;
                }
                | { eval_js?: undefined; popup: any; reload_page?: undefined }
                | { eval_js: string; popup?: undefined; reload_page?: undefined }
                | { eval_js?: undefined; popup?: undefined; reload_page: boolean }
                | undefined,
            >;
        };
        notify_user: {
            configFields: () => (
                | { label: string; name: string; required?: undefined; type: string }
                | { label: string; name: string; required: boolean; type: string }
            )[];
            description: string;
            namespace: string;
            run: (
                opts: {
                    configuration: {
                        body?: string;
                        link?: string;
                        title: string;
                        user_spec: string | number | GenObj;
                    };
                    row?: Row;
                    user?: User
                    | AbstractUser;
                },
            ) => Promise<void>;
        };
        progress_bar: {
            configFields: (
                | {
                    class?: undefined;
                    label: string;
                    name: string;
                    required?: undefined;
                    showIf?: undefined;
                    sublabel: string;
                    type: string;
                }
                | {
                    class: string;
                    label: string;
                    name: string;
                    required: boolean;
                    showIf: { blocking: boolean; close?: undefined };
                    sublabel: string;
                    type: string;
                }
                | {
                    class?: undefined;
                    label: string;
                    name: string;
                    required?: undefined;
                    showIf: { blocking: boolean; close: boolean };
                    sublabel: string;
                    type: string;
                }
                | {
                    class?: undefined;
                    label: string;
                    name: string;
                    required?: undefined;
                    showIf: { blocking: boolean; close: boolean };
                    sublabel?: undefined;
                    type: string;
                }
                | {
                    class?: undefined;
                    label: string;
                    name: string;
                    required?: undefined;
                    showIf: { blocking?: undefined; close: boolean };
                    sublabel?: undefined;
                    type: string;
                }
                | {
                    class?: undefined;
                    label: string;
                    name: string;
                    required?: undefined;
                    showIf: { blocking?: undefined; close: boolean };
                    sublabel: string;
                    type: string;
                }
            )[];
            description: string;
            namespace: string;
            run: (
                __namedParameters: {
                    configuration: {
                        blocking?: boolean;
                        close?: boolean;
                        id?: string;
                        maxHeight?: string;
                        message?: string;
                        percent?: string;
                        popupWidth?: string;
                        title?: string;
                    };
                    req?: Req;
                    row?: Row;
                    user?: User
                    | AbstractUser;
                },
            ) => Promise<
                {
                    page_load_tag: any;
                    progress_bar_update: {
                        blocking: boolean
                        | undefined;
                        close: boolean | undefined;
                        id: any;
                        maxHeight: string | undefined;
                        message: any;
                        percent: number;
                        popupWidth: string | undefined;
                        title: any;
                    };
                },
            >;
        };
        recalculate_stored_fields: {
            configFields: (
                __namedParameters: any,
            ) => Promise<
                (
                    | {
                        attributes?: undefined;
                        input_type: string;
                        label: string;
                        name: string;
                        options: string[];
                        showIf?: undefined;
                        sublabel: string;
                        type?: undefined;
                    }
                    | {
                        attributes?: undefined;
                        input_type?: undefined;
                        label: string;
                        name: string;
                        options?: undefined;
                        showIf: { table: any }
                        | { table?: undefined };
                        sublabel?: undefined;
                        type: string;
                    }
                    | {
                        attributes: {
                            expression_type: string;
                            mode: string;
                            singleline: boolean;
                        };
                        input_type: string;
                        label: string;
                        name: string;
                        options?: undefined;
                        showIf?: undefined;
                        sublabel: string;
                        type?: undefined;
                    }
                )[],
            >;
            description: string;
            namespace: string;
            run: (
                opts: {
                    configuration: {
                        only_triggering_row?: boolean;
                        table: string;
                        where?: string;
                    };
                    row?: Row;
                    table?: Table;
                    user?: User
                    | AbstractUser;
                },
            ) => Promise<{ error: string } | undefined>;
        };
        refresh_user_session: {
            description: string;
            namespace: string;
            run: (__namedParameters: { req: Req; user?: User }) => Promise<void>;
        };
        reload_embedded_view: {
            configFields: () => Promise<
                (
                    | {
                        attributes: { options: any[] };
                        class: string;
                        label: string;
                        name: string;
                        required: boolean;
                        sublabel?: undefined;
                        type: string;
                    }
                    | {
                        attributes?: undefined;
                        class: string;
                        label: string;
                        name: string;
                        required?: undefined;
                        sublabel?: undefined;
                        type: string;
                    }
                    | {
                        attributes?: undefined;
                        class?: undefined;
                        label: string;
                        name: string;
                        required?: undefined;
                        sublabel: string;
                        type: string;
                    }
                )[],
            >;
            description: string;
            namespace: string;
            run: (
                __namedParameters: {
                    configuration: {
                        interval?: number;
                        new_state_fml?: string;
                        view: string;
                    };
                    row?: Row;
                    user?: User
                    | AbstractUser;
                },
            ) => Promise<{ eval_js: string }>;
        };
        run_js_code: {
            configFields: (
                __namedParameters: any,
            ) => Promise<
                (
                    | {
                        attributes: {
                            mode: string;
                            secondColHoriz?: undefined;
                            table: any;
                            user: string
                            | undefined;
                            workflow: boolean;
                        };
                        class: string;
                        help?: undefined;
                        input_type: string;
                        label: string;
                        name: string;
                        options?: undefined;
                        showIf?: undefined;
                        sublabel?: undefined;
                        validator(s: any): any;
                    }
                    | {
                        attributes: {
                            mode?: undefined;
                            secondColHoriz: boolean;
                            table?: undefined;
                            user?: undefined;
                            workflow?: undefined;
                        };
                        class?: undefined;
                        help: { topic: string };
                        input_type: string;
                        label: string;
                        name?: undefined;
                        options?: undefined;
                        showIf: { run_where: string };
                        sublabel: any;
                        validator?: undefined;
                    }
                    | {
                        attributes?: undefined;
                        class?: undefined;
                        help?: undefined;
                        input_type: string;
                        label: string;
                        name: string;
                        options: string[];
                        showIf?: undefined;
                        sublabel?: undefined;
                        validator?: undefined;
                    }
                )[],
            >;
            configFormOptions: { formStyle: string };
            configuration_summary: (cfg?: GenObj) => string;
            description: string;
            namespace: string;
            run: (
                opts: {
                    channel?: string;
                    configuration: { code: string; run_where: string };
                    row?: Row;
                    table?: Table;
                    user?: User | AbstractUser;
                    [key: string]: any;
                },
            ) => Promise<any>;
        };
        run_js_code_in_field: {
            configFields: (
                __namedParameters: { mode: string; table: Table },
            ) => Promise<
                | (
                    | {
                        input_type?: undefined;
                        label: string;
                        name: string;
                        options?: undefined;
                        required: boolean;
                        sublabel: string;
                        type: string;
                    }
                    | {
                        input_type: string;
                        label: string;
                        name: string;
                        options: string[];
                        required?: undefined;
                        sublabel?: undefined;
                        type?: undefined;
                    }
                )[]
                | (
                    | {
                        attributes: { options: string[] };
                        input_type?: undefined;
                        label: string;
                        name: string;
                        options?: undefined;
                        required: boolean;
                        sublabel: string;
                        type: string;
                    }
                    | {
                        attributes?: undefined;
                        input_type: string;
                        label: string;
                        name: string;
                        options: string[];
                        required?: undefined;
                        sublabel?: undefined;
                        type?: undefined;
                    }
                )[],
            >;
            configuration_summary: (cfg?: GenObj) => string;
            description: string;
            namespace: string;
            requireRow: boolean;
            run: (
                __namedParameters: {
                    configuration: { code_field: string; run_where?: string };
                    mode?: string;
                    row: Row;
                    table: Table;
                    [key: string]: any;
                },
            ) => Promise<any>;
        };
        send_email: {
            configFields: (
                __namedParameters: { mode?: string; table?: Table },
            ) => Promise<
                | (
                    | {
                        fieldview?: undefined;
                        label: string;
                        name: string;
                        required?: undefined;
                        sublabel: string;
                        type: string;
                    }
                    | {
                        fieldview?: undefined;
                        label: string;
                        name: string;
                        required: boolean;
                        sublabel: string;
                        type: string;
                    }
                    | {
                        fieldview: string;
                        label: string;
                        name: string;
                        required: boolean;
                        sublabel?: undefined;
                        type: string;
                    }
                )[]
                | (
                    | {
                        attributes: { options: string[] };
                        class?: undefined;
                        default?: undefined;
                        input_type?: undefined;
                        label: string;
                        name: string;
                        options?: undefined;
                        required: boolean;
                        showIf?: undefined;
                        sublabel?: undefined;
                        type: string;
                    }
                    | {
                        attributes: { options: string[] };
                        class?: undefined;
                        default?: undefined;
                        input_type?: undefined;
                        label: string;
                        name: string;
                        options?: undefined;
                        required: boolean;
                        showIf: { body_type: string[]; to_email?: undefined };
                        sublabel?: undefined;
                        type: string;
                    }
                    | {
                        attributes?: undefined;
                        class?: undefined;
                        default?: undefined;
                        input_type: string;
                        label: string;
                        name: string;
                        options: string[];
                        required?: undefined;
                        showIf: { body_type: string; to_email?: undefined };
                        sublabel: string;
                        type?: undefined;
                    }
                    | {
                        attributes?: undefined;
                        class?: undefined;
                        default?: undefined;
                        input_type: string;
                        label: string;
                        name: string;
                        options: string[];
                        required: boolean;
                        showIf?: undefined;
                        sublabel: string;
                        type?: undefined;
                    }
                    | {
                        attributes?: undefined;
                        class?: undefined;
                        default?: undefined;
                        input_type: string;
                        label: string;
                        name: string;
                        options: string[];
                        required?: undefined;
                        showIf: { body_type?: undefined; to_email: string };
                        sublabel: string;
                        type?: undefined;
                    }
                    | {
                        attributes?: undefined;
                        class?: undefined;
                        default?: undefined;
                        input_type?: undefined;
                        label: string;
                        name: string;
                        options?: undefined;
                        required?: undefined;
                        showIf: { body_type?: undefined; to_email: string };
                        sublabel: string;
                        type: string;
                    }
                    | {
                        attributes?: undefined;
                        class?: undefined;
                        default?: undefined;
                        input_type?: undefined;
                        label: string;
                        name: string;
                        options?: undefined;
                        required?: undefined;
                        showIf?: undefined;
                        sublabel: string;
                        type: string;
                    }
                    | {
                        attributes?: undefined;
                        class: string;
                        default?: undefined;
                        input_type?: undefined;
                        label: string;
                        name: string;
                        options?: undefined;
                        required: boolean;
                        showIf?: undefined;
                        sublabel: string;
                        type: string;
                    }
                    | {
                        attributes?: undefined;
                        class?: undefined;
                        default?: undefined;
                        input_type?: undefined;
                        label: string;
                        name: string;
                        options?: undefined;
                        required: boolean;
                        showIf?: undefined;
                        sublabel?: undefined;
                        type: string;
                    }
                    | {
                        attributes?: undefined;
                        class?: undefined;
                        default: string;
                        input_type: string;
                        label: string;
                        name: string;
                        options: string[];
                        required?: undefined;
                        showIf?: undefined;
                        sublabel: string;
                        type: string;
                    }
                    | {
                        attributes?: undefined;
                        class?: undefined;
                        default?: undefined;
                        input_type?: undefined;
                        label: string;
                        name: string;
                        options?: undefined;
                        required?: undefined;
                        showIf?: undefined;
                        sublabel?: undefined;
                        type: string;
                    }
                    | {
                        attributes: { options: string[] };
                        class?: undefined;
                        default?: undefined;
                        input_type?: undefined;
                        label: string;
                        name: string;
                        options?: undefined;
                        required?: undefined;
                        showIf?: undefined;
                        sublabel: string;
                        type: string;
                    }
                )[],
            >;
            description: string;
            namespace: string;
            requireRow: boolean;
            run: (
                opts: {
                    configuration: {
                        attachment_path?: string;
                        bcc_email?: string;
                        body?: string;
                        body_field?: string;
                        body_type?: string;
                        cc_email?: string;
                        confirm_field?: string;
                        disable_notify?: boolean;
                        locale?: string;
                        only_if?: string;
                        subject?: string;
                        subject_formula?: string;
                        to_email: string;
                        to_email_field?: string;
                        to_email_fixed?: string;
                        viewname?: string;
                    };
                    mode: string;
                    row: Row;
                    table: Table;
                    user: User;
                },
            ) => Promise<
                | { notify?: undefined; [key: string]: boolean }
                | { notify: string }
                | undefined,
            >;
        };
        set_user_language: {
            configFields: (
                __namedParameters: any,
            ) => Promise<
                {
                    attributes: { options: { label: unknown; name: string }[] };
                    name: string;
                    required: boolean;
                    type: string;
                }[],
            >;
            description: string;
            namespace: string;
            run: (
                __namedParameters: {
                    configuration: { language: string };
                    req: Req;
                    res?: Res;
                    user?: User | AbstractUser;
                },
            ) => Promise<{ reload_page: boolean }>;
        };
        sleep: {
            configFields: (
                | {
                    input_type?: undefined;
                    label: string;
                    name: string;
                    options?: undefined;
                    required: boolean;
                    type: string;
                }
                | {
                    input_type: string;
                    label: string;
                    name: string;
                    options: string[];
                    required?: undefined;
                    type?: undefined;
                }
            )[];
            description: string;
            namespace: string;
            run: (
                __namedParameters: {
                    configuration: { seconds?: number; sleep_where?: string };
                },
            ) => Promise<{ eval_js: string } | undefined>;
        };
        step_control_flow: {
            configFields: (
                | {
                    attributes: { options: string[] };
                    label: string;
                    name: string;
                    required: boolean;
                    showIf?: undefined;
                    type: string;
                }
                | {
                    attributes?: undefined;
                    label: string;
                    name: string;
                    required: boolean;
                    showIf: { control_action: string[] };
                    type: string;
                }
            )[];
            description: string;
            disableInWorkflow: boolean;
            namespace: string;
            run: (
                __namedParameters: {
                    configuration: { control_action: string; step?: string };
                    row?: Row;
                    user?: User | AbstractUser;
                },
            ) => Promise<
                | {
                    clear_return_values?: undefined;
                    goto_step?: undefined;
                    halt_steps: boolean;
                }
                | {
                    clear_return_values?: undefined;
                    goto_step: string
                    | undefined;
                    halt_steps?: undefined;
                }
                | {
                    clear_return_values: boolean;
                    goto_step?: undefined;
                    halt_steps?: undefined;
                }
                | undefined,
            >;
        };
        sync_table_from_external: {
            configFields: (
                __namedParameters: any,
            ) => Promise<
                (
                    | {
                        attributes?: undefined;
                        default?: undefined;
                        fieldview?: undefined;
                        input_type: string;
                        label: string;
                        name: string;
                        options: string[];
                        required?: undefined;
                        showIf?: undefined;
                        sublabel: string;
                        type?: undefined;
                    }
                    | {
                        attributes: {
                            calcOptions?: undefined;
                            expression_type: string;
                            mode: string;
                            singleline: boolean;
                        };
                        default?: undefined;
                        fieldview?: undefined;
                        input_type: string;
                        label: string;
                        name: string;
                        options?: undefined;
                        required?: undefined;
                        showIf?: undefined;
                        sublabel: string;
                        type?: undefined;
                    }
                    | {
                        attributes: {
                            calcOptions: (string | Record<(...), (...)>)[];
                            expression_type?: undefined;
                            mode?: undefined;
                            singleline?: undefined;
                        };
                        default?: undefined;
                        fieldview?: undefined;
                        input_type?: undefined;
                        label: string;
                        name: string;
                        options?: undefined;
                        required: boolean;
                        showIf?: undefined;
                        sublabel: string;
                        type: string;
                    }
                    | {
                        attributes?: undefined;
                        default: boolean;
                        fieldview?: undefined;
                        input_type?: undefined;
                        label: string;
                        name: string;
                        options?: undefined;
                        required?: undefined;
                        showIf?: undefined;
                        sublabel: string;
                        type: string;
                    }
                    | {
                        attributes?: undefined;
                        default?: undefined;
                        fieldview: string;
                        input_type?: undefined;
                        label: string;
                        name: string;
                        options?: undefined;
                        required?: undefined;
                        showIf: { match_field_names: boolean };
                        sublabel: string;
                        type: string;
                    }
                )[],
            >;
            description: string;
            namespace: string;
            run: (
                opts: {
                    configuration: {
                        delete_rows?: boolean;
                        match_field_names?: boolean;
                        pk_field?: string;
                        row_expr?: string;
                        table_dest: string;
                        table_src: string;
                        where?: string;
                    };
                    user?: User
                    | AbstractUser;
                    [key: string]: any;
                },
            ) => Promise<{ error: string } | undefined>;
        };
        toast: {
            configFields: (
                | {
                    attributes: { options: string[] };
                    label: string;
                    name: string;
                    required: boolean;
                    sublabel?: undefined;
                    type: string;
                }
                | {
                    attributes?: undefined;
                    label: string;
                    name: string;
                    required: boolean;
                    sublabel?: undefined;
                    type: string;
                }
                | {
                    attributes?: undefined;
                    label: string;
                    name: string;
                    required?: undefined;
                    sublabel: string;
                    type: string;
                }
                | {
                    attributes?: undefined;
                    label: string;
                    name: string;
                    required?: undefined;
                    sublabel?: undefined;
                    type: string;
                }
            )[];
            description: string;
            namespace: string;
            run: (
                __namedParameters: {
                    configuration: {
                        notify_type?: string;
                        remove_delay?: number;
                        text: string;
                        title?: string;
                        type?: string;
                    };
                    row?: Row;
                    user?: User
                    | AbstractUser;
                },
            ) => Promise<
                | { error: any }
                | { notify_success: any }
                | { notify: any; notify_type: string }
                | { notify: any },
            >;
        };
        train_model_instance: {
            configFields: () => Promise<
                (
                    | {
                        attributes: {
                            explainers: Record<string, string>;
                            expression_type?: undefined;
                            mode?: undefined;
                            singleline?: undefined;
                        };
                        class?: undefined;
                        fieldview?: undefined;
                        input_type: string;
                        label: string;
                        name: string;
                        options: { label: string; value: number
                        | undefined }[];
                        required: boolean;
                        sublabel?: undefined;
                        type?: undefined;
                    }
                    | {
                        attributes?: undefined;
                        class?: undefined;
                        fieldview?: undefined;
                        input_type?: undefined;
                        label: string;
                        name: string;
                        options?: undefined;
                        required: boolean;
                        sublabel: string;
                        type: string;
                    }
                    | {
                        attributes: {
                            explainers?: undefined;
                            expression_type: string;
                            mode: string;
                            singleline: boolean;
                        };
                        class?: undefined;
                        fieldview: string;
                        input_type: string;
                        label: string;
                        name: string;
                        options?: undefined;
                        required?: undefined;
                        sublabel: string;
                        type?: undefined;
                    }
                    | {
                        attributes?: undefined;
                        class: string;
                        fieldview: string;
                        input_type?: undefined;
                        label: string;
                        name: string;
                        options?: undefined;
                        required?: undefined;
                        sublabel: string;
                        type: string;
                    }
                )[],
            >;
            description: string;
            disableIf: () => boolean;
            namespace: string;
            run: (
                __namedParameters: {
                    configuration: {
                        hyperparameters?: string;
                        instance_name: string;
                        model_id: number;
                        where?: string;
                    };
                    row?: Row;
                    user?: User
                    | AbstractUser;
                },
            ) => Promise<void>;
        };
        webhook: {
            configFields: (
                __namedParameters: { mode: string; table: Table },
            ) => Promise<
                (
                    | {
                        attributes?: undefined;
                        fieldview?: undefined;
                        label: string;
                        name: string;
                        required?: undefined;
                        showIf?: undefined;
                        sublabel: string;
                        type: string;
                    }
                    | {
                        attributes: { options: string[] };
                        fieldview?: undefined;
                        label: string;
                        name: string;
                        required: boolean;
                        showIf?: undefined;
                        sublabel?: undefined;
                        type: string;
                    }
                    | {
                        attributes?: undefined;
                        fieldview: string;
                        label: string;
                        name: string;
                        required?: undefined;
                        showIf: { method: string[] };
                        sublabel: string;
                        type: string;
                    }
                    | {
                        attributes: { options: string[] };
                        fieldview?: undefined;
                        label: string;
                        name: string;
                        required?: undefined;
                        showIf?: undefined;
                        sublabel?: undefined;
                        type: string;
                    }
                )[],
            >;
            description: string;
            run: (
                opts: {
                    configuration: {
                        authorization?: string;
                        body?: string;
                        method?: string;
                        response_field?: string;
                        response_var?: string;
                        url: string;
                    };
                    row?: Row;
                    table?: Table;
                    user?: User
                    | AbstractUser;
                },
            ) => Promise<{ [key: string]: any } | undefined>;
        };
    }

    Type Declaration

    • Namespaceblocks: {
          configFields: { input_type: string; name: string }[];
          description: string;
          disableInBuilder: boolean;
          disableInList: boolean;
          disableInWorkflow: boolean;
          namespace: string;
          run: (
              opts: {
                  channel?: string;
                  configuration: { code: string; run_where: string };
                  row?: Row;
                  table?: Table;
                  user?: User | AbstractUser;
                  [key: string]: any;
              },
          ) => Promise<any>;
      }

      actions

      • configFields: { input_type: string; name: string }[]
      • description: string
      • disableInBuilder: boolean
      • disableInList: boolean
      • disableInWorkflow: boolean
      • namespace: string
      • run: (
            opts: {
                channel?: string;
                configuration: { code: string; run_where: string };
                row?: Row;
                table?: Table;
                user?: User | AbstractUser;
                [key: string]: any;
            },
        ) => Promise<any>

        base-plugin/actions~run_code

    • convert_session_to_user: {
          configFields: (
              __namedParameters: any,
          ) => Promise<
              (
                  | {
                      attributes?: undefined;
                      input_type: string;
                      label: string;
                      name: string;
                      options: string[];
                      sublabel: string;
                      type?: undefined;
                  }
                  | {
                      attributes: { calcOptions: (string | Record<(...), (...)>)[] };
                      input_type?: undefined;
                      label: string;
                      name: string;
                      options?: undefined;
                      sublabel: string;
                      type: string;
                  }
              )[],
          >;
          description: string;
          namespace: string;
          run: (
              __namedParameters: {
                  configuration: {
                      session_field: string;
                      table_name: string;
                      user_field: string;
                  };
                  row?: Row & { old_session_id?: string };
                  user?: User | AbstractUser;
              },
          ) => Promise<void>;
      }
    • copy_to_clipboard: {
          configFields: {
              label: string;
              name: string;
              required: boolean;
              sublabel: string;
              type: string;
          }[];
          description: string;
          namespace: string;
          requireRow: boolean;
          run: (
              __namedParameters: {
                  configuration: { text_template?: string };
                  req?: Req;
                  row?: Row;
                  table?: Table;
                  user?: User | AbstractUser;
                  [key: string]: any;
              },
          ) => Promise<{ eval_js: string }>;
      }
      • configFields: {
            label: string;
            name: string;
            required: boolean;
            sublabel: string;
            type: string;
        }[]
      • description: string
      • namespace: string
      • requireRow: boolean
      • run: (
            __namedParameters: {
                configuration: { text_template?: string };
                req?: Req;
                row?: Row;
                table?: Table;
                user?: User | AbstractUser;
                [key: string]: any;
            },
        ) => Promise<{ eval_js: string }>
    • delete_rows: {
          configFields: (
              __namedParameters: any,
          ) => Promise<
              (
                  | {
                      class?: undefined;
                      input_type?: undefined;
                      label: string;
                      name: string;
                      options?: undefined;
                      required?: undefined;
                      showIf?: undefined;
                      sublabel?: undefined;
                      type: string;
                  }
                  | {
                      class?: undefined;
                      input_type: string;
                      label: string;
                      name: string;
                      options: string[];
                      required?: undefined;
                      showIf: { delete_triggering_row: boolean }
                      | undefined;
                      sublabel: string;
                      type?: undefined;
                  }
                  | {
                      class: string;
                      input_type?: undefined;
                      label: string;
                      name: string;
                      options?: undefined;
                      required: boolean;
                      showIf: { delete_triggering_row: boolean }
                      | undefined;
                      sublabel: string;
                      type: string;
                  }
              )[],
          >;
          description: string;
          namespace: string;
          run: (
              __namedParameters: {
                  configuration: {
                      delete_triggering_row?: boolean;
                      delete_where?: string;
                      table_name?: string;
                  };
                  row?: Row;
                  table?: Table;
                  user?: User
                  | AbstractUser;
                  [key: string]: any;
              },
          ) => Promise<{}>;
      }
      • configFields: (
            __namedParameters: any,
        ) => Promise<
            (
                | {
                    class?: undefined;
                    input_type?: undefined;
                    label: string;
                    name: string;
                    options?: undefined;
                    required?: undefined;
                    showIf?: undefined;
                    sublabel?: undefined;
                    type: string;
                }
                | {
                    class?: undefined;
                    input_type: string;
                    label: string;
                    name: string;
                    options: string[];
                    required?: undefined;
                    showIf: { delete_triggering_row: boolean }
                    | undefined;
                    sublabel: string;
                    type?: undefined;
                }
                | {
                    class: string;
                    input_type?: undefined;
                    label: string;
                    name: string;
                    options?: undefined;
                    required: boolean;
                    showIf: { delete_triggering_row: boolean }
                    | undefined;
                    sublabel: string;
                    type: string;
                }
            )[],
        >
      • description: string
      • namespace: string
      • run: (
            __namedParameters: {
                configuration: {
                    delete_triggering_row?: boolean;
                    delete_where?: string;
                    table_name?: string;
                };
                row?: Row;
                table?: Table;
                user?: User
                | AbstractUser;
                [key: string]: any;
            },
        ) => Promise<{}>
    • download_file_to_browser: {
          configFields: (
              __namedParameters: { mode: string; table: Table },
          ) => Promise<
              | {
                  class: string;
                  label: string;
                  name: string;
                  sublabel: string;
                  type: string;
              }[]
              | {
                  attributes: { options: string[] };
                  label: string;
                  name: string;
                  required: boolean;
                  type: string;
              }[],
          >;
          description: string;
          run: (
              __namedParameters: {
                  configuration: { file_field?: string; filepath_expr?: string };
                  mode?: string;
                  row?: Row;
                  user?: User | AbstractUser;
              },
          ) => Promise<
              | {
                  download: {
                      blob: string
                      | Buffer<ArrayBufferLike>;
                      filename: string;
                      mimetype: string;
                  };
              }
              | undefined,
          >;
      }
    • Namespaceduplicate_row: {
          configFields: () => never[];
          description: string;
          disableInWorkflow: boolean;
          namespace: string;
          requireRow: boolean;
          run: (
              opts: { row: Row; table: Table; user?: User | AbstractUser },
          ) => Promise<void>;
      }

      actions

      • configFields: () => never[]
      • description: string
      • disableInWorkflow: boolean
      • namespace: string
      • requireRow: boolean
      • run: (opts: { row: Row; table: Table; user?: User | AbstractUser }) => Promise<void>
    • duplicate_row_prefill_edit: {
          configFields: (
              __namedParameters: any,
          ) => Promise<
              (
                  | { default: boolean; label: string; name: string; type: string }
                  | { input_type: string; label: string; name: string; options: string[] }
              )[],
          >;
          disableInWorkflow: boolean;
          namespace: string;
          requireRow: boolean;
          run: (
              __namedParameters: {
                  configuration: { viewname: string; [key: string]: any };
                  row: Row;
                  table: Table;
                  user?: User | AbstractUser;
              },
          ) => Promise<{ goto: string }>;
      }
    • Namespaceemit_event: {
          configFields: () => (
              | {
                  fieldview?: undefined;
                  input_type: string;
                  label: string;
                  name: string;
                  options: string[];
                  required: boolean;
                  sublabel?: undefined;
                  type?: undefined;
              }
              | {
                  fieldview: string;
                  input_type?: undefined;
                  label: string;
                  name: string;
                  options?: undefined;
                  required?: undefined;
                  sublabel?: undefined;
                  type: string;
              }
              | {
                  fieldview: string;
                  input_type?: undefined;
                  label: string;
                  name: string;
                  options?: undefined;
                  required?: undefined;
                  sublabel: string;
                  type: string;
              }
          )[];
          description: string;
          namespace: string;
          run: (
              opts: {
                  configuration: { channel?: string; eventType: string; payload?: any };
                  row: Row;
                  user?: User | AbstractUser;
              },
          ) => Promise<void>;
      }

      actions

      • configFields: () => (
            | {
                fieldview?: undefined;
                input_type: string;
                label: string;
                name: string;
                options: string[];
                required: boolean;
                sublabel?: undefined;
                type?: undefined;
            }
            | {
                fieldview: string;
                input_type?: undefined;
                label: string;
                name: string;
                options?: undefined;
                required?: undefined;
                sublabel?: undefined;
                type: string;
            }
            | {
                fieldview: string;
                input_type?: undefined;
                label: string;
                name: string;
                options?: undefined;
                required?: undefined;
                sublabel: string;
                type: string;
            }
        )[]
      • description: string
      • namespace: string
      • run: (
            opts: {
                configuration: { channel?: string; eventType: string; payload?: any };
                row: Row;
                user?: User | AbstractUser;
            },
        ) => Promise<void>
    • Namespacefind_or_create_dm_room: {
          configFields: () => Promise<
              {
                  input_type: string;
                  label: string;
                  name: string;
                  options: string[];
                  sublabel: string;
              }[],
          >;
          description: string;
          namespace: string;
          run: (
              opts: {
                  configuration: { viewname: string };
                  row: Row;
                  table?: Table;
                  user: User;
              },
          ) => Promise<{ goto: string }>;
      }

      actions

      • configFields: () => Promise<
            {
                input_type: string;
                label: string;
                name: string;
                options: string[];
                sublabel: string;
            }[],
        >
      • description: string
      • namespace: string
      • run: (
            opts: {
                configuration: { viewname: string };
                row: Row;
                table?: Table;
                user: User;
            },
        ) => Promise<{ goto: string }>
    • form_action: {
          configFields: {
              attributes: { options: string[] };
              label: string;
              name: string;
              required: boolean;
              type: string;
          }[];
          description: string;
          namespace: string;
          requireRow: boolean;
          run: (
              __namedParameters: {
                  configuration: { form_action: string };
                  req?: Req;
                  row?: Row;
                  table: Table;
                  user?: User | AbstractUser;
                  [key: string]: any;
              },
          ) => Promise<
              | {
                  eval_js: string;
                  notify_success?: undefined;
                  set_fields?: undefined;
              }
              | {
                  eval_js?: undefined;
                  notify_success: string;
                  set_fields: { [key: string]: any };
              }
              | { eval_js?: undefined; notify_success: string; set_fields?: undefined },
          >;
      }
      • configFields: {
            attributes: { options: string[] };
            label: string;
            name: string;
            required: boolean;
            type: string;
        }[]
      • description: string
      • namespace: string
      • requireRow: boolean
      • run: (
            __namedParameters: {
                configuration: { form_action: string };
                req?: Req;
                row?: Row;
                table: Table;
                user?: User | AbstractUser;
                [key: string]: any;
            },
        ) => Promise<
            | {
                eval_js: string;
                notify_success?: undefined;
                set_fields?: undefined;
            }
            | {
                eval_js?: undefined;
                notify_success: string;
                set_fields: { [key: string]: any };
            }
            | { eval_js?: undefined; notify_success: string; set_fields?: undefined },
        >
    • Namespaceinsert_any_row: {
          configFields: (
              __namedParameters: any,
          ) => Promise<
              (
                  | {
                      attributes?: undefined;
                      class?: undefined;
                      fieldview?: undefined;
                      input_type: string;
                      label: string;
                      name: string;
                      options: string[];
                      sublabel: string;
                      type?: undefined;
                  }
                  | {
                      attributes: { spellcheck: boolean };
                      class: string;
                      fieldview: string;
                      input_type?: undefined;
                      label: string;
                      name: string;
                      options?: undefined;
                      sublabel: string;
                      type: string;
                  }
                  | {
                      attributes?: undefined;
                      class?: undefined;
                      fieldview?: undefined;
                      input_type?: undefined;
                      label: string;
                      name: string;
                      options?: undefined;
                      sublabel: string;
                      type: string;
                  }
              )[],
          >;
          description: string;
          namespace: string;
          run: (
              opts: {
                  configuration: {
                      id_variable?: string;
                      row_expr: string;
                      table: string;
                  };
                  referrer?: string;
                  row?: Row;
                  table?: Table;
                  user?: User
                  | AbstractUser;
                  [key: string]: any;
              },
          ) => Promise<GenObj>;
      }

      actions

      • configFields: (
            __namedParameters: any,
        ) => Promise<
            (
                | {
                    attributes?: undefined;
                    class?: undefined;
                    fieldview?: undefined;
                    input_type: string;
                    label: string;
                    name: string;
                    options: string[];
                    sublabel: string;
                    type?: undefined;
                }
                | {
                    attributes: { spellcheck: boolean };
                    class: string;
                    fieldview: string;
                    input_type?: undefined;
                    label: string;
                    name: string;
                    options?: undefined;
                    sublabel: string;
                    type: string;
                }
                | {
                    attributes?: undefined;
                    class?: undefined;
                    fieldview?: undefined;
                    input_type?: undefined;
                    label: string;
                    name: string;
                    options?: undefined;
                    sublabel: string;
                    type: string;
                }
            )[],
        >
      • description: string
      • namespace: string
      • run: (
            opts: {
                configuration: {
                    id_variable?: string;
                    row_expr: string;
                    table: string;
                };
                referrer?: string;
                row?: Row;
                table?: Table;
                user?: User
                | AbstractUser;
                [key: string]: any;
            },
        ) => Promise<GenObj>
    • Namespaceinsert_joined_row: {
          configFields: (
              __namedParameters: any,
          ) => Promise<
              {
                  input_type: string;
                  label: string;
                  name: string;
                  options: any;
                  sublabel: string;
              }[],
          >;
          description: string;
          disableInWorkflow: boolean;
          namespace: string;
          requireRow: boolean;
          run: (
              opts: {
                  configuration: { joined_table: string };
                  row: Row;
                  table: Table;
                  user?: User | AbstractUser;
              },
          ) => Promise<any>;
      }

      actions

      • configFields: (
            __namedParameters: any,
        ) => Promise<
            {
                input_type: string;
                label: string;
                name: string;
                options: any;
                sublabel: string;
            }[],
        >
      • description: string
      • disableInWorkflow: boolean
      • namespace: string
      • requireRow: boolean
      • run: (
            opts: {
                configuration: { joined_table: string };
                row: Row;
                table: Table;
                user?: User | AbstractUser;
            },
        ) => Promise<any>
    • install_progressive_web_app: {
          configFields: () => never[];
          description: string;
          run: (
              __namedParameters: { req: Req },
          ) => Promise<
              | { error?: undefined; eval_js: string }
              | { error: string; eval_js?: undefined },
          >;
      }
    • loop_rows: {
          configFields: () => Promise<
              (
                  | {
                      attributes?: undefined;
                      input_type: string;
                      label: string;
                      name: string;
                      options: string[];
                      sublabel: string;
                      type?: undefined;
                  }
                  | {
                      attributes: {
                          calcOptions?: undefined;
                          expression_type: string;
                          min?: undefined;
                          mode: string;
                          singleline: boolean;
                      };
                      input_type: string;
                      label: string;
                      name: string;
                      options?: undefined;
                      sublabel: string;
                      type?: undefined;
                  }
                  | {
                      attributes?: undefined;
                      input_type?: undefined;
                      label: string;
                      name: string;
                      options?: undefined;
                      sublabel: string;
                      type: string;
                  }
                  | {
                      attributes: {
                          calcOptions: (string | Record<(...), (...)>)[];
                          expression_type?: undefined;
                          min?: undefined;
                          mode?: undefined;
                          singleline?: undefined;
                      };
                      input_type?: undefined;
                      label: string;
                      name: string;
                      options?: undefined;
                      sublabel?: undefined;
                      type: string;
                  }
                  | {
                      attributes?: undefined;
                      input_type?: undefined;
                      label: string;
                      name: string;
                      options?: undefined;
                      sublabel?: undefined;
                      type: string;
                  }
                  | {
                      attributes: {
                          calcOptions?: undefined;
                          expression_type?: undefined;
                          min: number;
                          mode?: undefined;
                          singleline?: undefined;
                      };
                      input_type?: undefined;
                      label: string;
                      name: string;
                      options?: undefined;
                      sublabel: string;
                      type: string;
                  }
                  | {
                      attributes?: undefined;
                      input_type: string;
                      label: string;
                      name: string;
                      options: { label: string
                      | undefined; value: number | null | undefined }[];
                      sublabel: string;
                      type?: undefined;
                  }
              )[],
          >;
          description: string;
          namespace: string;
          run: (
              opts: {
                  configuration: {
                      interval?: number;
                      limit?: number;
                      orderBy?: string;
                      orderDesc?: boolean;
                      table_name: string;
                      trigger_id?: number;
                      where?: Where;
                  };
                  row: Row;
                  user?: User
                  | AbstractUser;
                  [key: string]: unknown;
              },
          ) => Promise<{}>;
      }
      • configFields: () => Promise<
            (
                | {
                    attributes?: undefined;
                    input_type: string;
                    label: string;
                    name: string;
                    options: string[];
                    sublabel: string;
                    type?: undefined;
                }
                | {
                    attributes: {
                        calcOptions?: undefined;
                        expression_type: string;
                        min?: undefined;
                        mode: string;
                        singleline: boolean;
                    };
                    input_type: string;
                    label: string;
                    name: string;
                    options?: undefined;
                    sublabel: string;
                    type?: undefined;
                }
                | {
                    attributes?: undefined;
                    input_type?: undefined;
                    label: string;
                    name: string;
                    options?: undefined;
                    sublabel: string;
                    type: string;
                }
                | {
                    attributes: {
                        calcOptions: (string | Record<(...), (...)>)[];
                        expression_type?: undefined;
                        min?: undefined;
                        mode?: undefined;
                        singleline?: undefined;
                    };
                    input_type?: undefined;
                    label: string;
                    name: string;
                    options?: undefined;
                    sublabel?: undefined;
                    type: string;
                }
                | {
                    attributes?: undefined;
                    input_type?: undefined;
                    label: string;
                    name: string;
                    options?: undefined;
                    sublabel?: undefined;
                    type: string;
                }
                | {
                    attributes: {
                        calcOptions?: undefined;
                        expression_type?: undefined;
                        min: number;
                        mode?: undefined;
                        singleline?: undefined;
                    };
                    input_type?: undefined;
                    label: string;
                    name: string;
                    options?: undefined;
                    sublabel: string;
                    type: string;
                }
                | {
                    attributes?: undefined;
                    input_type: string;
                    label: string;
                    name: string;
                    options: { label: string
                    | undefined; value: number | null | undefined }[];
                    sublabel: string;
                    type?: undefined;
                }
            )[],
        >
      • description: string
      • namespace: string
      • run: (
            opts: {
                configuration: {
                    interval?: number;
                    limit?: number;
                    orderBy?: string;
                    orderDesc?: boolean;
                    table_name: string;
                    trigger_id?: number;
                    where?: Where;
                };
                row: Row;
                user?: User
                | AbstractUser;
                [key: string]: unknown;
            },
        ) => Promise<{}>
    • Namespacemodify_row: {
          configFields: (
              __namedParameters: { mode: string; when_trigger: string },
          ) => Promise<
              (
                  | {
                      attributes: {
                          compact: boolean;
                          expression_type: string;
                          mode: string;
                          options?: undefined;
                          showIf?: undefined;
                          singleline?: undefined;
                      };
                      input_type: string;
                      label: string;
                      name: string;
                      required?: undefined;
                      showIf?: undefined;
                      sublabel: string;
                      type?: undefined;
                  }
                  | {
                      attributes: {
                          compact?: undefined;
                          expression_type?: undefined;
                          mode?: undefined;
                          options: string[];
                          showIf?: undefined;
                          singleline?: undefined;
                      };
                      input_type?: undefined;
                      label: string;
                      name: string;
                      required: boolean;
                      showIf?: undefined;
                      sublabel?: undefined;
                      type: string;
                  }
                  | {
                      attributes: {
                          compact?: undefined;
                          expression_type?: undefined;
                          mode?: undefined;
                          options: string[];
                          showIf: { where: string };
                          singleline?: undefined;
                      };
                      input_type?: undefined;
                      label: string;
                      name: string;
                      required: boolean;
                      showIf?: undefined;
                      sublabel?: undefined;
                      type: string;
                  }
                  | {
                      attributes: {
                          compact?: undefined;
                          expression_type: string;
                          mode: string;
                          options?: undefined;
                          showIf?: undefined;
                          singleline: boolean;
                      };
                      input_type: string;
                      label: string;
                      name: string;
                      required: boolean;
                      showIf: { where: string };
                      sublabel?: undefined;
                      type?: undefined;
                  }
              )[],
          >;
          description: string;
          namespace: string;
          requireRow: boolean;
          run: (
              __namedParameters: {
                  configuration: {
                      query?: string;
                      row_expr: string;
                      select_table?: string;
                      where?: string;
                  };
                  row?: Row;
                  table?: Table;
                  user?: User
                  | AbstractUser;
                  [key: string]: any;
              },
          ) => Promise<
              ErrorMessage
              | SuccessMessage
              | { set_fields: any }
              | undefined,
          >;
      }

      actions

    • actions

      • configFields: () => Promise<
            (
                | {
                    attributes: { options: string[] };
                    class?: undefined;
                    input_type?: undefined;
                    label: string;
                    name: string;
                    options?: undefined;
                    required: boolean;
                    showIf?: undefined;
                    type: string;
                }
                | {
                    attributes?: undefined;
                    class?: undefined;
                    input_type?: undefined;
                    label: string;
                    name: string;
                    options?: undefined;
                    required: boolean;
                    showIf: { nav_action: string[] };
                    type: string;
                }
                | {
                    attributes?: undefined;
                    class?: undefined;
                    input_type: string;
                    label: string;
                    name: string;
                    options: string[];
                    required?: undefined;
                    showIf: { nav_action: string };
                    type?: undefined;
                }
                | {
                    attributes?: undefined;
                    class: string;
                    input_type?: undefined;
                    label: string;
                    name: string;
                    options?: undefined;
                    required?: undefined;
                    showIf: { nav_action: string[] };
                    type: string;
                }
                | {
                    attributes?: undefined;
                    class?: undefined;
                    input_type?: undefined;
                    label: string;
                    name: string;
                    options?: undefined;
                    required?: undefined;
                    showIf: { nav_action: string[] };
                    type: string;
                }
            )[],
        >
      • description: string
      • namespace: string
      • run: (
            __namedParameters: {
                configuration: {
                    in_popup?: boolean;
                    nav_action: string;
                    new_tab?: boolean;
                    page?: string;
                    state_formula?: string;
                    url?: string;
                    view?: string;
                };
                req?: Req;
                row?: Row;
                user?: User
                | AbstractUser;
            },
        ) => Promise<
            | {
                eval_js?: undefined;
                popup?: undefined;
                reload_page?: undefined;
                target?: string;
            }
            | { eval_js?: undefined; popup: any; reload_page?: undefined }
            | { eval_js: string; popup?: undefined; reload_page?: undefined }
            | { eval_js?: undefined; popup?: undefined; reload_page: boolean }
            | undefined,
        >
    • notify_user: {
          configFields: () => (
              | { label: string; name: string; required?: undefined; type: string }
              | { label: string; name: string; required: boolean; type: string }
          )[];
          description: string;
          namespace: string;
          run: (
              opts: {
                  configuration: {
                      body?: string;
                      link?: string;
                      title: string;
                      user_spec: string | number | GenObj;
                  };
                  row?: Row;
                  user?: User
                  | AbstractUser;
              },
          ) => Promise<void>;
      }
      • configFields: () => (
            | { label: string; name: string; required?: undefined; type: string }
            | { label: string; name: string; required: boolean; type: string }
        )[]
      • description: string
      • namespace: string
      • run: (
            opts: {
                configuration: {
                    body?: string;
                    link?: string;
                    title: string;
                    user_spec: string | number | GenObj;
                };
                row?: Row;
                user?: User
                | AbstractUser;
            },
        ) => Promise<void>
    • progress_bar: {
          configFields: (
              | {
                  class?: undefined;
                  label: string;
                  name: string;
                  required?: undefined;
                  showIf?: undefined;
                  sublabel: string;
                  type: string;
              }
              | {
                  class: string;
                  label: string;
                  name: string;
                  required: boolean;
                  showIf: { blocking: boolean; close?: undefined };
                  sublabel: string;
                  type: string;
              }
              | {
                  class?: undefined;
                  label: string;
                  name: string;
                  required?: undefined;
                  showIf: { blocking: boolean; close: boolean };
                  sublabel: string;
                  type: string;
              }
              | {
                  class?: undefined;
                  label: string;
                  name: string;
                  required?: undefined;
                  showIf: { blocking: boolean; close: boolean };
                  sublabel?: undefined;
                  type: string;
              }
              | {
                  class?: undefined;
                  label: string;
                  name: string;
                  required?: undefined;
                  showIf: { blocking?: undefined; close: boolean };
                  sublabel?: undefined;
                  type: string;
              }
              | {
                  class?: undefined;
                  label: string;
                  name: string;
                  required?: undefined;
                  showIf: { blocking?: undefined; close: boolean };
                  sublabel: string;
                  type: string;
              }
          )[];
          description: string;
          namespace: string;
          run: (
              __namedParameters: {
                  configuration: {
                      blocking?: boolean;
                      close?: boolean;
                      id?: string;
                      maxHeight?: string;
                      message?: string;
                      percent?: string;
                      popupWidth?: string;
                      title?: string;
                  };
                  req?: Req;
                  row?: Row;
                  user?: User
                  | AbstractUser;
              },
          ) => Promise<
              {
                  page_load_tag: any;
                  progress_bar_update: {
                      blocking: boolean
                      | undefined;
                      close: boolean | undefined;
                      id: any;
                      maxHeight: string | undefined;
                      message: any;
                      percent: number;
                      popupWidth: string | undefined;
                      title: any;
                  };
              },
          >;
      }
    • Namespacerecalculate_stored_fields: {
          configFields: (
              __namedParameters: any,
          ) => Promise<
              (
                  | {
                      attributes?: undefined;
                      input_type: string;
                      label: string;
                      name: string;
                      options: string[];
                      showIf?: undefined;
                      sublabel: string;
                      type?: undefined;
                  }
                  | {
                      attributes?: undefined;
                      input_type?: undefined;
                      label: string;
                      name: string;
                      options?: undefined;
                      showIf: { table: any }
                      | { table?: undefined };
                      sublabel?: undefined;
                      type: string;
                  }
                  | {
                      attributes: {
                          expression_type: string;
                          mode: string;
                          singleline: boolean;
                      };
                      input_type: string;
                      label: string;
                      name: string;
                      options?: undefined;
                      showIf?: undefined;
                      sublabel: string;
                      type?: undefined;
                  }
              )[],
          >;
          description: string;
          namespace: string;
          run: (
              opts: {
                  configuration: {
                      only_triggering_row?: boolean;
                      table: string;
                      where?: string;
                  };
                  row?: Row;
                  table?: Table;
                  user?: User
                  | AbstractUser;
              },
          ) => Promise<{ error: string } | undefined>;
      }

      actions

      • configFields: (
            __namedParameters: any,
        ) => Promise<
            (
                | {
                    attributes?: undefined;
                    input_type: string;
                    label: string;
                    name: string;
                    options: string[];
                    showIf?: undefined;
                    sublabel: string;
                    type?: undefined;
                }
                | {
                    attributes?: undefined;
                    input_type?: undefined;
                    label: string;
                    name: string;
                    options?: undefined;
                    showIf: { table: any }
                    | { table?: undefined };
                    sublabel?: undefined;
                    type: string;
                }
                | {
                    attributes: {
                        expression_type: string;
                        mode: string;
                        singleline: boolean;
                    };
                    input_type: string;
                    label: string;
                    name: string;
                    options?: undefined;
                    showIf?: undefined;
                    sublabel: string;
                    type?: undefined;
                }
            )[],
        >
      • description: string
      • namespace: string
      • run: (
            opts: {
                configuration: {
                    only_triggering_row?: boolean;
                    table: string;
                    where?: string;
                };
                row?: Row;
                table?: Table;
                user?: User
                | AbstractUser;
            },
        ) => Promise<{ error: string } | undefined>
    • refresh_user_session: {
          description: string;
          namespace: string;
          run: (__namedParameters: { req: Req; user?: User }) => Promise<void>;
      }
    • reload_embedded_view: {
          configFields: () => Promise<
              (
                  | {
                      attributes: { options: any[] };
                      class: string;
                      label: string;
                      name: string;
                      required: boolean;
                      sublabel?: undefined;
                      type: string;
                  }
                  | {
                      attributes?: undefined;
                      class: string;
                      label: string;
                      name: string;
                      required?: undefined;
                      sublabel?: undefined;
                      type: string;
                  }
                  | {
                      attributes?: undefined;
                      class?: undefined;
                      label: string;
                      name: string;
                      required?: undefined;
                      sublabel: string;
                      type: string;
                  }
              )[],
          >;
          description: string;
          namespace: string;
          run: (
              __namedParameters: {
                  configuration: {
                      interval?: number;
                      new_state_fml?: string;
                      view: string;
                  };
                  row?: Row;
                  user?: User
                  | AbstractUser;
              },
          ) => Promise<{ eval_js: string }>;
      }
    • Namespacerun_js_code: {
          configFields: (
              __namedParameters: any,
          ) => Promise<
              (
                  | {
                      attributes: {
                          mode: string;
                          secondColHoriz?: undefined;
                          table: any;
                          user: string
                          | undefined;
                          workflow: boolean;
                      };
                      class: string;
                      help?: undefined;
                      input_type: string;
                      label: string;
                      name: string;
                      options?: undefined;
                      showIf?: undefined;
                      sublabel?: undefined;
                      validator(s: any): any;
                  }
                  | {
                      attributes: {
                          mode?: undefined;
                          secondColHoriz: boolean;
                          table?: undefined;
                          user?: undefined;
                          workflow?: undefined;
                      };
                      class?: undefined;
                      help: { topic: string };
                      input_type: string;
                      label: string;
                      name?: undefined;
                      options?: undefined;
                      showIf: { run_where: string };
                      sublabel: any;
                      validator?: undefined;
                  }
                  | {
                      attributes?: undefined;
                      class?: undefined;
                      help?: undefined;
                      input_type: string;
                      label: string;
                      name: string;
                      options: string[];
                      showIf?: undefined;
                      sublabel?: undefined;
                      validator?: undefined;
                  }
              )[],
          >;
          configFormOptions: { formStyle: string };
          configuration_summary: (cfg?: GenObj) => string;
          description: string;
          namespace: string;
          run: (
              opts: {
                  channel?: string;
                  configuration: { code: string; run_where: string };
                  row?: Row;
                  table?: Table;
                  user?: User | AbstractUser;
                  [key: string]: any;
              },
          ) => Promise<any>;
      }

      actions

      • configFields: (
            __namedParameters: any,
        ) => Promise<
            (
                | {
                    attributes: {
                        mode: string;
                        secondColHoriz?: undefined;
                        table: any;
                        user: string
                        | undefined;
                        workflow: boolean;
                    };
                    class: string;
                    help?: undefined;
                    input_type: string;
                    label: string;
                    name: string;
                    options?: undefined;
                    showIf?: undefined;
                    sublabel?: undefined;
                    validator(s: any): any;
                }
                | {
                    attributes: {
                        mode?: undefined;
                        secondColHoriz: boolean;
                        table?: undefined;
                        user?: undefined;
                        workflow?: undefined;
                    };
                    class?: undefined;
                    help: { topic: string };
                    input_type: string;
                    label: string;
                    name?: undefined;
                    options?: undefined;
                    showIf: { run_where: string };
                    sublabel: any;
                    validator?: undefined;
                }
                | {
                    attributes?: undefined;
                    class?: undefined;
                    help?: undefined;
                    input_type: string;
                    label: string;
                    name: string;
                    options: string[];
                    showIf?: undefined;
                    sublabel?: undefined;
                    validator?: undefined;
                }
            )[],
        >
      • configFormOptions: { formStyle: string }
      • configuration_summary: (cfg?: GenObj) => string
      • description: string
      • namespace: string
      • run: (
            opts: {
                channel?: string;
                configuration: { code: string; run_where: string };
                row?: Row;
                table?: Table;
                user?: User | AbstractUser;
                [key: string]: any;
            },
        ) => Promise<any>

        base-plugin/actions~run_code

    • run_js_code_in_field: {
          configFields: (
              __namedParameters: { mode: string; table: Table },
          ) => Promise<
              | (
                  | {
                      input_type?: undefined;
                      label: string;
                      name: string;
                      options?: undefined;
                      required: boolean;
                      sublabel: string;
                      type: string;
                  }
                  | {
                      input_type: string;
                      label: string;
                      name: string;
                      options: string[];
                      required?: undefined;
                      sublabel?: undefined;
                      type?: undefined;
                  }
              )[]
              | (
                  | {
                      attributes: { options: string[] };
                      input_type?: undefined;
                      label: string;
                      name: string;
                      options?: undefined;
                      required: boolean;
                      sublabel: string;
                      type: string;
                  }
                  | {
                      attributes?: undefined;
                      input_type: string;
                      label: string;
                      name: string;
                      options: string[];
                      required?: undefined;
                      sublabel?: undefined;
                      type?: undefined;
                  }
              )[],
          >;
          configuration_summary: (cfg?: GenObj) => string;
          description: string;
          namespace: string;
          requireRow: boolean;
          run: (
              __namedParameters: {
                  configuration: { code_field: string; run_where?: string };
                  mode?: string;
                  row: Row;
                  table: Table;
                  [key: string]: any;
              },
          ) => Promise<any>;
      }
      • configFields: (
            __namedParameters: { mode: string; table: Table },
        ) => Promise<
            | (
                | {
                    input_type?: undefined;
                    label: string;
                    name: string;
                    options?: undefined;
                    required: boolean;
                    sublabel: string;
                    type: string;
                }
                | {
                    input_type: string;
                    label: string;
                    name: string;
                    options: string[];
                    required?: undefined;
                    sublabel?: undefined;
                    type?: undefined;
                }
            )[]
            | (
                | {
                    attributes: { options: string[] };
                    input_type?: undefined;
                    label: string;
                    name: string;
                    options?: undefined;
                    required: boolean;
                    sublabel: string;
                    type: string;
                }
                | {
                    attributes?: undefined;
                    input_type: string;
                    label: string;
                    name: string;
                    options: string[];
                    required?: undefined;
                    sublabel?: undefined;
                    type?: undefined;
                }
            )[],
        >
      • configuration_summary: (cfg?: GenObj) => string
      • description: string
      • namespace: string
      • requireRow: boolean
      • run: (
            __namedParameters: {
                configuration: { code_field: string; run_where?: string };
                mode?: string;
                row: Row;
                table: Table;
                [key: string]: any;
            },
        ) => Promise<any>

        base-plugin/actions~run_code

    • Namespacesend_email: {
          configFields: (
              __namedParameters: { mode?: string; table?: Table },
          ) => Promise<
              | (
                  | {
                      fieldview?: undefined;
                      label: string;
                      name: string;
                      required?: undefined;
                      sublabel: string;
                      type: string;
                  }
                  | {
                      fieldview?: undefined;
                      label: string;
                      name: string;
                      required: boolean;
                      sublabel: string;
                      type: string;
                  }
                  | {
                      fieldview: string;
                      label: string;
                      name: string;
                      required: boolean;
                      sublabel?: undefined;
                      type: string;
                  }
              )[]
              | (
                  | {
                      attributes: { options: string[] };
                      class?: undefined;
                      default?: undefined;
                      input_type?: undefined;
                      label: string;
                      name: string;
                      options?: undefined;
                      required: boolean;
                      showIf?: undefined;
                      sublabel?: undefined;
                      type: string;
                  }
                  | {
                      attributes: { options: string[] };
                      class?: undefined;
                      default?: undefined;
                      input_type?: undefined;
                      label: string;
                      name: string;
                      options?: undefined;
                      required: boolean;
                      showIf: { body_type: string[]; to_email?: undefined };
                      sublabel?: undefined;
                      type: string;
                  }
                  | {
                      attributes?: undefined;
                      class?: undefined;
                      default?: undefined;
                      input_type: string;
                      label: string;
                      name: string;
                      options: string[];
                      required?: undefined;
                      showIf: { body_type: string; to_email?: undefined };
                      sublabel: string;
                      type?: undefined;
                  }
                  | {
                      attributes?: undefined;
                      class?: undefined;
                      default?: undefined;
                      input_type: string;
                      label: string;
                      name: string;
                      options: string[];
                      required: boolean;
                      showIf?: undefined;
                      sublabel: string;
                      type?: undefined;
                  }
                  | {
                      attributes?: undefined;
                      class?: undefined;
                      default?: undefined;
                      input_type: string;
                      label: string;
                      name: string;
                      options: string[];
                      required?: undefined;
                      showIf: { body_type?: undefined; to_email: string };
                      sublabel: string;
                      type?: undefined;
                  }
                  | {
                      attributes?: undefined;
                      class?: undefined;
                      default?: undefined;
                      input_type?: undefined;
                      label: string;
                      name: string;
                      options?: undefined;
                      required?: undefined;
                      showIf: { body_type?: undefined; to_email: string };
                      sublabel: string;
                      type: string;
                  }
                  | {
                      attributes?: undefined;
                      class?: undefined;
                      default?: undefined;
                      input_type?: undefined;
                      label: string;
                      name: string;
                      options?: undefined;
                      required?: undefined;
                      showIf?: undefined;
                      sublabel: string;
                      type: string;
                  }
                  | {
                      attributes?: undefined;
                      class: string;
                      default?: undefined;
                      input_type?: undefined;
                      label: string;
                      name: string;
                      options?: undefined;
                      required: boolean;
                      showIf?: undefined;
                      sublabel: string;
                      type: string;
                  }
                  | {
                      attributes?: undefined;
                      class?: undefined;
                      default?: undefined;
                      input_type?: undefined;
                      label: string;
                      name: string;
                      options?: undefined;
                      required: boolean;
                      showIf?: undefined;
                      sublabel?: undefined;
                      type: string;
                  }
                  | {
                      attributes?: undefined;
                      class?: undefined;
                      default: string;
                      input_type: string;
                      label: string;
                      name: string;
                      options: string[];
                      required?: undefined;
                      showIf?: undefined;
                      sublabel: string;
                      type: string;
                  }
                  | {
                      attributes?: undefined;
                      class?: undefined;
                      default?: undefined;
                      input_type?: undefined;
                      label: string;
                      name: string;
                      options?: undefined;
                      required?: undefined;
                      showIf?: undefined;
                      sublabel?: undefined;
                      type: string;
                  }
                  | {
                      attributes: { options: string[] };
                      class?: undefined;
                      default?: undefined;
                      input_type?: undefined;
                      label: string;
                      name: string;
                      options?: undefined;
                      required?: undefined;
                      showIf?: undefined;
                      sublabel: string;
                      type: string;
                  }
              )[],
          >;
          description: string;
          namespace: string;
          requireRow: boolean;
          run: (
              opts: {
                  configuration: {
                      attachment_path?: string;
                      bcc_email?: string;
                      body?: string;
                      body_field?: string;
                      body_type?: string;
                      cc_email?: string;
                      confirm_field?: string;
                      disable_notify?: boolean;
                      locale?: string;
                      only_if?: string;
                      subject?: string;
                      subject_formula?: string;
                      to_email: string;
                      to_email_field?: string;
                      to_email_fixed?: string;
                      viewname?: string;
                  };
                  mode: string;
                  row: Row;
                  table: Table;
                  user: User;
              },
          ) => Promise<
              | { notify?: undefined; [key: string]: boolean }
              | { notify: string }
              | undefined,
          >;
      }

      actions

      • configFields: (
            __namedParameters: { mode?: string; table?: Table },
        ) => Promise<
            | (
                | {
                    fieldview?: undefined;
                    label: string;
                    name: string;
                    required?: undefined;
                    sublabel: string;
                    type: string;
                }
                | {
                    fieldview?: undefined;
                    label: string;
                    name: string;
                    required: boolean;
                    sublabel: string;
                    type: string;
                }
                | {
                    fieldview: string;
                    label: string;
                    name: string;
                    required: boolean;
                    sublabel?: undefined;
                    type: string;
                }
            )[]
            | (
                | {
                    attributes: { options: string[] };
                    class?: undefined;
                    default?: undefined;
                    input_type?: undefined;
                    label: string;
                    name: string;
                    options?: undefined;
                    required: boolean;
                    showIf?: undefined;
                    sublabel?: undefined;
                    type: string;
                }
                | {
                    attributes: { options: string[] };
                    class?: undefined;
                    default?: undefined;
                    input_type?: undefined;
                    label: string;
                    name: string;
                    options?: undefined;
                    required: boolean;
                    showIf: { body_type: string[]; to_email?: undefined };
                    sublabel?: undefined;
                    type: string;
                }
                | {
                    attributes?: undefined;
                    class?: undefined;
                    default?: undefined;
                    input_type: string;
                    label: string;
                    name: string;
                    options: string[];
                    required?: undefined;
                    showIf: { body_type: string; to_email?: undefined };
                    sublabel: string;
                    type?: undefined;
                }
                | {
                    attributes?: undefined;
                    class?: undefined;
                    default?: undefined;
                    input_type: string;
                    label: string;
                    name: string;
                    options: string[];
                    required: boolean;
                    showIf?: undefined;
                    sublabel: string;
                    type?: undefined;
                }
                | {
                    attributes?: undefined;
                    class?: undefined;
                    default?: undefined;
                    input_type: string;
                    label: string;
                    name: string;
                    options: string[];
                    required?: undefined;
                    showIf: { body_type?: undefined; to_email: string };
                    sublabel: string;
                    type?: undefined;
                }
                | {
                    attributes?: undefined;
                    class?: undefined;
                    default?: undefined;
                    input_type?: undefined;
                    label: string;
                    name: string;
                    options?: undefined;
                    required?: undefined;
                    showIf: { body_type?: undefined; to_email: string };
                    sublabel: string;
                    type: string;
                }
                | {
                    attributes?: undefined;
                    class?: undefined;
                    default?: undefined;
                    input_type?: undefined;
                    label: string;
                    name: string;
                    options?: undefined;
                    required?: undefined;
                    showIf?: undefined;
                    sublabel: string;
                    type: string;
                }
                | {
                    attributes?: undefined;
                    class: string;
                    default?: undefined;
                    input_type?: undefined;
                    label: string;
                    name: string;
                    options?: undefined;
                    required: boolean;
                    showIf?: undefined;
                    sublabel: string;
                    type: string;
                }
                | {
                    attributes?: undefined;
                    class?: undefined;
                    default?: undefined;
                    input_type?: undefined;
                    label: string;
                    name: string;
                    options?: undefined;
                    required: boolean;
                    showIf?: undefined;
                    sublabel?: undefined;
                    type: string;
                }
                | {
                    attributes?: undefined;
                    class?: undefined;
                    default: string;
                    input_type: string;
                    label: string;
                    name: string;
                    options: string[];
                    required?: undefined;
                    showIf?: undefined;
                    sublabel: string;
                    type: string;
                }
                | {
                    attributes?: undefined;
                    class?: undefined;
                    default?: undefined;
                    input_type?: undefined;
                    label: string;
                    name: string;
                    options?: undefined;
                    required?: undefined;
                    showIf?: undefined;
                    sublabel?: undefined;
                    type: string;
                }
                | {
                    attributes: { options: string[] };
                    class?: undefined;
                    default?: undefined;
                    input_type?: undefined;
                    label: string;
                    name: string;
                    options?: undefined;
                    required?: undefined;
                    showIf?: undefined;
                    sublabel: string;
                    type: string;
                }
            )[],
        >
      • description: string
      • namespace: string
      • requireRow: boolean
      • run: (
            opts: {
                configuration: {
                    attachment_path?: string;
                    bcc_email?: string;
                    body?: string;
                    body_field?: string;
                    body_type?: string;
                    cc_email?: string;
                    confirm_field?: string;
                    disable_notify?: boolean;
                    locale?: string;
                    only_if?: string;
                    subject?: string;
                    subject_formula?: string;
                    to_email: string;
                    to_email_field?: string;
                    to_email_fixed?: string;
                    viewname?: string;
                };
                mode: string;
                row: Row;
                table: Table;
                user: User;
            },
        ) => Promise<
            | { notify?: undefined; [key: string]: boolean }
            | { notify: string }
            | undefined,
        >
    • Namespaceset_user_language: {
          configFields: (
              __namedParameters: any,
          ) => Promise<
              {
                  attributes: { options: { label: unknown; name: string }[] };
                  name: string;
                  required: boolean;
                  type: string;
              }[],
          >;
          description: string;
          namespace: string;
          run: (
              __namedParameters: {
                  configuration: { language: string };
                  req: Req;
                  res?: Res;
                  user?: User | AbstractUser;
              },
          ) => Promise<{ reload_page: boolean }>;
      }

      actions

    • sleep: {
          configFields: (
              | {
                  input_type?: undefined;
                  label: string;
                  name: string;
                  options?: undefined;
                  required: boolean;
                  type: string;
              }
              | {
                  input_type: string;
                  label: string;
                  name: string;
                  options: string[];
                  required?: undefined;
                  type?: undefined;
              }
          )[];
          description: string;
          namespace: string;
          run: (
              __namedParameters: {
                  configuration: { seconds?: number; sleep_where?: string };
              },
          ) => Promise<{ eval_js: string } | undefined>;
      }
    • step_control_flow: {
          configFields: (
              | {
                  attributes: { options: string[] };
                  label: string;
                  name: string;
                  required: boolean;
                  showIf?: undefined;
                  type: string;
              }
              | {
                  attributes?: undefined;
                  label: string;
                  name: string;
                  required: boolean;
                  showIf: { control_action: string[] };
                  type: string;
              }
          )[];
          description: string;
          disableInWorkflow: boolean;
          namespace: string;
          run: (
              __namedParameters: {
                  configuration: { control_action: string; step?: string };
                  row?: Row;
                  user?: User | AbstractUser;
              },
          ) => Promise<
              | {
                  clear_return_values?: undefined;
                  goto_step?: undefined;
                  halt_steps: boolean;
              }
              | {
                  clear_return_values?: undefined;
                  goto_step: string
                  | undefined;
                  halt_steps?: undefined;
              }
              | {
                  clear_return_values: boolean;
                  goto_step?: undefined;
                  halt_steps?: undefined;
              }
              | undefined,
          >;
      }
      • configFields: (
            | {
                attributes: { options: string[] };
                label: string;
                name: string;
                required: boolean;
                showIf?: undefined;
                type: string;
            }
            | {
                attributes?: undefined;
                label: string;
                name: string;
                required: boolean;
                showIf: { control_action: string[] };
                type: string;
            }
        )[]
      • description: string
      • disableInWorkflow: boolean
      • namespace: string
      • run: (
            __namedParameters: {
                configuration: { control_action: string; step?: string };
                row?: Row;
                user?: User | AbstractUser;
            },
        ) => Promise<
            | {
                clear_return_values?: undefined;
                goto_step?: undefined;
                halt_steps: boolean;
            }
            | {
                clear_return_values?: undefined;
                goto_step: string
                | undefined;
                halt_steps?: undefined;
            }
            | {
                clear_return_values: boolean;
                goto_step?: undefined;
                halt_steps?: undefined;
            }
            | undefined,
        >
    • Namespacesync_table_from_external: {
          configFields: (
              __namedParameters: any,
          ) => Promise<
              (
                  | {
                      attributes?: undefined;
                      default?: undefined;
                      fieldview?: undefined;
                      input_type: string;
                      label: string;
                      name: string;
                      options: string[];
                      required?: undefined;
                      showIf?: undefined;
                      sublabel: string;
                      type?: undefined;
                  }
                  | {
                      attributes: {
                          calcOptions?: undefined;
                          expression_type: string;
                          mode: string;
                          singleline: boolean;
                      };
                      default?: undefined;
                      fieldview?: undefined;
                      input_type: string;
                      label: string;
                      name: string;
                      options?: undefined;
                      required?: undefined;
                      showIf?: undefined;
                      sublabel: string;
                      type?: undefined;
                  }
                  | {
                      attributes: {
                          calcOptions: (string | Record<(...), (...)>)[];
                          expression_type?: undefined;
                          mode?: undefined;
                          singleline?: undefined;
                      };
                      default?: undefined;
                      fieldview?: undefined;
                      input_type?: undefined;
                      label: string;
                      name: string;
                      options?: undefined;
                      required: boolean;
                      showIf?: undefined;
                      sublabel: string;
                      type: string;
                  }
                  | {
                      attributes?: undefined;
                      default: boolean;
                      fieldview?: undefined;
                      input_type?: undefined;
                      label: string;
                      name: string;
                      options?: undefined;
                      required?: undefined;
                      showIf?: undefined;
                      sublabel: string;
                      type: string;
                  }
                  | {
                      attributes?: undefined;
                      default?: undefined;
                      fieldview: string;
                      input_type?: undefined;
                      label: string;
                      name: string;
                      options?: undefined;
                      required?: undefined;
                      showIf: { match_field_names: boolean };
                      sublabel: string;
                      type: string;
                  }
              )[],
          >;
          description: string;
          namespace: string;
          run: (
              opts: {
                  configuration: {
                      delete_rows?: boolean;
                      match_field_names?: boolean;
                      pk_field?: string;
                      row_expr?: string;
                      table_dest: string;
                      table_src: string;
                      where?: string;
                  };
                  user?: User
                  | AbstractUser;
                  [key: string]: any;
              },
          ) => Promise<{ error: string } | undefined>;
      }

      actions

      • configFields: (
            __namedParameters: any,
        ) => Promise<
            (
                | {
                    attributes?: undefined;
                    default?: undefined;
                    fieldview?: undefined;
                    input_type: string;
                    label: string;
                    name: string;
                    options: string[];
                    required?: undefined;
                    showIf?: undefined;
                    sublabel: string;
                    type?: undefined;
                }
                | {
                    attributes: {
                        calcOptions?: undefined;
                        expression_type: string;
                        mode: string;
                        singleline: boolean;
                    };
                    default?: undefined;
                    fieldview?: undefined;
                    input_type: string;
                    label: string;
                    name: string;
                    options?: undefined;
                    required?: undefined;
                    showIf?: undefined;
                    sublabel: string;
                    type?: undefined;
                }
                | {
                    attributes: {
                        calcOptions: (string | Record<(...), (...)>)[];
                        expression_type?: undefined;
                        mode?: undefined;
                        singleline?: undefined;
                    };
                    default?: undefined;
                    fieldview?: undefined;
                    input_type?: undefined;
                    label: string;
                    name: string;
                    options?: undefined;
                    required: boolean;
                    showIf?: undefined;
                    sublabel: string;
                    type: string;
                }
                | {
                    attributes?: undefined;
                    default: boolean;
                    fieldview?: undefined;
                    input_type?: undefined;
                    label: string;
                    name: string;
                    options?: undefined;
                    required?: undefined;
                    showIf?: undefined;
                    sublabel: string;
                    type: string;
                }
                | {
                    attributes?: undefined;
                    default?: undefined;
                    fieldview: string;
                    input_type?: undefined;
                    label: string;
                    name: string;
                    options?: undefined;
                    required?: undefined;
                    showIf: { match_field_names: boolean };
                    sublabel: string;
                    type: string;
                }
            )[],
        >
      • description: string
      • namespace: string
      • run: (
            opts: {
                configuration: {
                    delete_rows?: boolean;
                    match_field_names?: boolean;
                    pk_field?: string;
                    row_expr?: string;
                    table_dest: string;
                    table_src: string;
                    where?: string;
                };
                user?: User
                | AbstractUser;
                [key: string]: any;
            },
        ) => Promise<{ error: string } | undefined>
    • toast: {
          configFields: (
              | {
                  attributes: { options: string[] };
                  label: string;
                  name: string;
                  required: boolean;
                  sublabel?: undefined;
                  type: string;
              }
              | {
                  attributes?: undefined;
                  label: string;
                  name: string;
                  required: boolean;
                  sublabel?: undefined;
                  type: string;
              }
              | {
                  attributes?: undefined;
                  label: string;
                  name: string;
                  required?: undefined;
                  sublabel: string;
                  type: string;
              }
              | {
                  attributes?: undefined;
                  label: string;
                  name: string;
                  required?: undefined;
                  sublabel?: undefined;
                  type: string;
              }
          )[];
          description: string;
          namespace: string;
          run: (
              __namedParameters: {
                  configuration: {
                      notify_type?: string;
                      remove_delay?: number;
                      text: string;
                      title?: string;
                      type?: string;
                  };
                  row?: Row;
                  user?: User
                  | AbstractUser;
              },
          ) => Promise<
              | { error: any }
              | { notify_success: any }
              | { notify: any; notify_type: string }
              | { notify: any },
          >;
      }
      • configFields: (
            | {
                attributes: { options: string[] };
                label: string;
                name: string;
                required: boolean;
                sublabel?: undefined;
                type: string;
            }
            | {
                attributes?: undefined;
                label: string;
                name: string;
                required: boolean;
                sublabel?: undefined;
                type: string;
            }
            | {
                attributes?: undefined;
                label: string;
                name: string;
                required?: undefined;
                sublabel: string;
                type: string;
            }
            | {
                attributes?: undefined;
                label: string;
                name: string;
                required?: undefined;
                sublabel?: undefined;
                type: string;
            }
        )[]
      • description: string
      • namespace: string
      • run: (
            __namedParameters: {
                configuration: {
                    notify_type?: string;
                    remove_delay?: number;
                    text: string;
                    title?: string;
                    type?: string;
                };
                row?: Row;
                user?: User
                | AbstractUser;
            },
        ) => Promise<
            | { error: any }
            | { notify_success: any }
            | { notify: any; notify_type: string }
            | { notify: any },
        >
    • train_model_instance: {
          configFields: () => Promise<
              (
                  | {
                      attributes: {
                          explainers: Record<string, string>;
                          expression_type?: undefined;
                          mode?: undefined;
                          singleline?: undefined;
                      };
                      class?: undefined;
                      fieldview?: undefined;
                      input_type: string;
                      label: string;
                      name: string;
                      options: { label: string; value: number
                      | undefined }[];
                      required: boolean;
                      sublabel?: undefined;
                      type?: undefined;
                  }
                  | {
                      attributes?: undefined;
                      class?: undefined;
                      fieldview?: undefined;
                      input_type?: undefined;
                      label: string;
                      name: string;
                      options?: undefined;
                      required: boolean;
                      sublabel: string;
                      type: string;
                  }
                  | {
                      attributes: {
                          explainers?: undefined;
                          expression_type: string;
                          mode: string;
                          singleline: boolean;
                      };
                      class?: undefined;
                      fieldview: string;
                      input_type: string;
                      label: string;
                      name: string;
                      options?: undefined;
                      required?: undefined;
                      sublabel: string;
                      type?: undefined;
                  }
                  | {
                      attributes?: undefined;
                      class: string;
                      fieldview: string;
                      input_type?: undefined;
                      label: string;
                      name: string;
                      options?: undefined;
                      required?: undefined;
                      sublabel: string;
                      type: string;
                  }
              )[],
          >;
          description: string;
          disableIf: () => boolean;
          namespace: string;
          run: (
              __namedParameters: {
                  configuration: {
                      hyperparameters?: string;
                      instance_name: string;
                      model_id: number;
                      where?: string;
                  };
                  row?: Row;
                  user?: User
                  | AbstractUser;
              },
          ) => Promise<void>;
      }
    • Namespacewebhook: {
          configFields: (
              __namedParameters: { mode: string; table: Table },
          ) => Promise<
              (
                  | {
                      attributes?: undefined;
                      fieldview?: undefined;
                      label: string;
                      name: string;
                      required?: undefined;
                      showIf?: undefined;
                      sublabel: string;
                      type: string;
                  }
                  | {
                      attributes: { options: string[] };
                      fieldview?: undefined;
                      label: string;
                      name: string;
                      required: boolean;
                      showIf?: undefined;
                      sublabel?: undefined;
                      type: string;
                  }
                  | {
                      attributes?: undefined;
                      fieldview: string;
                      label: string;
                      name: string;
                      required?: undefined;
                      showIf: { method: string[] };
                      sublabel: string;
                      type: string;
                  }
                  | {
                      attributes: { options: string[] };
                      fieldview?: undefined;
                      label: string;
                      name: string;
                      required?: undefined;
                      showIf?: undefined;
                      sublabel?: undefined;
                      type: string;
                  }
              )[],
          >;
          description: string;
          run: (
              opts: {
                  configuration: {
                      authorization?: string;
                      body?: string;
                      method?: string;
                      response_field?: string;
                      response_var?: string;
                      url: string;
                  };
                  row?: Row;
                  table?: Table;
                  user?: User
                  | AbstractUser;
              },
          ) => Promise<{ [key: string]: any } | undefined>;
      }

      actions

      • configFields: (
            __namedParameters: { mode: string; table: Table },
        ) => Promise<
            (
                | {
                    attributes?: undefined;
                    fieldview?: undefined;
                    label: string;
                    name: string;
                    required?: undefined;
                    showIf?: undefined;
                    sublabel: string;
                    type: string;
                }
                | {
                    attributes: { options: string[] };
                    fieldview?: undefined;
                    label: string;
                    name: string;
                    required: boolean;
                    showIf?: undefined;
                    sublabel?: undefined;
                    type: string;
                }
                | {
                    attributes?: undefined;
                    fieldview: string;
                    label: string;
                    name: string;
                    required?: undefined;
                    showIf: { method: string[] };
                    sublabel: string;
                    type: string;
                }
                | {
                    attributes: { options: string[] };
                    fieldview?: undefined;
                    label: string;
                    name: string;
                    required?: undefined;
                    showIf?: undefined;
                    sublabel?: undefined;
                    type: string;
                }
            )[],
        >
      • description: string
      • run: (
            opts: {
                configuration: {
                    authorization?: string;
                    body?: string;
                    method?: string;
                    response_field?: string;
                    response_var?: string;
                    url: string;
                };
                row?: Row;
                table?: Table;
                user?: User
                | AbstractUser;
            },
        ) => Promise<{ [key: string]: any } | undefined>