Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.moss.dev/llms.txt

Use this file to discover all available pages before exploring further.

@moss-dev/moss / ParseFileInput

Interface: ParseFileInput

Input descriptor for a single file in the parse pipeline. Used by createIndexFromFiles. Provide at least one of path or data. If both are given, data takes precedence. Only "application/pdf" is currently supported as contentType.

Properties

PropertyTypeDescription
namestringFile identifier sent to the server. Required.
contentTypestringMIME content type (e.g. "application/pdf"). Required. Currently only "application/pdf" is supported.
path?stringFilesystem path (Node.js / server-side). Required when data is not provided.
data?Uint8Array | ArrayBuffer | Blob | FileRaw file bytes (browser / in-memory). Takes precedence over path when provided.