AbstractDelete an item from the instance.
The item identifier.
Get an item by ID.
The item identifier.
Item service for info, download, sync, logs, and chunks operations.
List items in this instance.
Optionalparams: AiSearchListItemsParamsUpload a file as an item. Behaves as an upsert: if an item with the same filename already exists, it is overwritten and re-indexed.
Filename for the uploaded item.
File content as a ReadableStream, Blob, or string.
Optionaloptions: AiSearchUploadItemOptionsOptional metadata to attach to the item.
The created item info.
Upload a file and poll until processing completes. Behaves as an upsert: if an item with the same filename already exists, it is overwritten and re-indexed.
Filename for the uploaded item.
File content as a ReadableStream, Blob, or string.
Optionaloptions: AiSearchUploadItemOptions & { pollIntervalMs?: number; timeoutMs?: number }Optional metadata and polling configuration.
OptionalpollIntervalMs?: numberPolling interval in milliseconds (default 1000).
OptionaltimeoutMs?: numberMaximum time to wait in milliseconds (default 30000).
The item info after processing completes (or timeout).
Items collection service for an AI Search instance. Provides list, upload, and access to individual items.