Lime Web Components API Documentation - v7.11.0
    Preparing search index...

    Interface PreparedActionNeedsApprovalAlpha

    An AIActionWithApproval that can be run once the user approves.

    interface PreparedActionNeedsApproval {
        preview: ApprovalPreview;
        status: "needs-approval";
        run(): Promise<AIActionResult>;
    }
    Index

    Properties

    Methods

    Properties

    What the user approves.

    status: "needs-approval"

    Discriminant. Show the preview to the user, and call run only if they approve.

    Methods

    • Alpha

      Run what the preview showed.

      Returns Promise<AIActionResult>

      What happened. Resolves with an AIActionFailed when the component that offered the action has left the page or the action throws.