Type Alias RunOptions<Input>

RunOptions<Input>: {
    abortSignal?: AbortSignal;
    input?: Input;
    method?:
        | "get"
        | "post"
        | "put"
        | "delete"
        | string;
    startTimeout?: number;
    storageSettings?: StorageSettings;
}

The function input and other configuration when running the function, such as the HTTP method to use.

Type Parameters

  • Input

Type declaration

  • Optional ReadonlyabortSignal?: AbortSignal

    The abort signal to cancel the request.

  • Optional Readonlyinput?: Input

    The function input. It will be submitted either as query params or the body payload, depending on the method.

  • Optional Readonlymethod?:
        | "get"
        | "post"
        | "put"
        | "delete"
        | string

    The HTTP method, defaults to post;

  • Optional ReadonlystartTimeout?: number

    Server-side request timeout in seconds. Limits total time spent waiting before processing starts (includes queue wait, retries, and routing). Does not apply once the application begins processing.

    This will be sent as the x-fal-request-timeout header.

  • Optional ReadonlystorageSettings?: StorageSettings

    Object lifecycle configuration for controlling how long generated objects (images, files, etc.) remain available before expiring.