Tela SDK for JavaScript
    Preparing search index...

    Interface TaskInputFile

    A file attached to a task input.

    Both url and filename/name are optional on the server side, so consumers should be defensive when reading them.

    interface TaskInputFile {
        filename?: string;
        mimeType?: string;
        name?: string;
        pages?: number;
        url?: string;
        usedAt?: "variables" | "messages";
        [key: string]: unknown;
    }

    Indexable

    • [key: string]: unknown
    Index

    Properties

    filename?: string

    Original filename (if known).

    mimeType?: string

    MIME type of the file (e.g., application/pdf).

    name?: string

    Variable name the file was assigned to.

    pages?: number

    Number of pages (for PDFs).

    url?: string

    The file URL. May be a vault:// reference or a public https:// URL.

    usedAt?: "variables" | "messages"

    Where the file is referenced from.