@squidcloud/client
    Preparing search index...

    Interface AiKnowledgeBaseFileStatusInfo

    The durable ingestion status of one file/text context at a path, returned by AiKnowledgeBaseReference.getFileStatus and as one entry of AiKnowledgeBaseFolderStatusResponse.files.

    interface AiKnowledgeBaseFileStatusInfo {
        contextId?: string;
        errorCode?:
            | "CONTENT_TOO_LARGE"
            | "DUPLICATE_CONTENT"
            | "ENCRYPTED_DOCUMENT"
            | "EXTRACTION_TIMED_OUT"
            | "IMAGE_OVER_PROVIDER_LIMIT"
            | "JOB_FULL"
            | "NO_EMBEDDABLE_CONTENT"
            | "PROVIDER_ACCESS_DENIED"
            | "SOURCE_OVER_PROVIDER_LIMIT"
            | "SOURCE_UNREACHABLE"
            | "UNREADABLE_DOCUMENT"
            | "UNREADABLE_WORKBOOK"
            | "UNSUPPORTED_FILE_TYPE"
            | "EMBEDDING_FAILED";
        errorMessage?: string;
        path: string;
        status: AiKnowledgeBaseFileStatus;
        updatedAt?: Date;
    }
    Index
    contextId?: string

    The context id, absent only when status is 'no_record'.

    errorCode?:
        | "CONTENT_TOO_LARGE"
        | "DUPLICATE_CONTENT"
        | "ENCRYPTED_DOCUMENT"
        | "EXTRACTION_TIMED_OUT"
        | "IMAGE_OVER_PROVIDER_LIMIT"
        | "JOB_FULL"
        | "NO_EMBEDDABLE_CONTENT"
        | "PROVIDER_ACCESS_DENIED"
        | "SOURCE_OVER_PROVIDER_LIMIT"
        | "SOURCE_UNREACHABLE"
        | "UNREADABLE_DOCUMENT"
        | "UNREADABLE_WORKBOOK"
        | "UNSUPPORTED_FILE_TYPE"
        | "EMBEDDING_FAILED"

    Present only when status is 'failed': the machine-readable failure class, when known. A bulk lane failure reports BulkIngestionFileErrorCode; a synchronous upsertContexts failure reports UpsertContextErrorCode — the two lanes use distinct, mostly-overlapping codes.

    errorMessage?: string

    Present only when status is 'failed': the terminal failure reason.

    path: string

    The file's path: folderPath/filename, or just filename at the upload root.

    The file's current durable status.

    updatedAt?: Date

    When this status was last recorded; absent when status is 'no_record'.