Search conditions, and limit/offset/include. At least
one condition is required.
Auth schema and any request settings.
One page of matching files, newest-first by relevance unless sort
says otherwise.
const page = await searchFiles(
{
tags: { all: ['cat', 'animal'] },
isImage: true,
sort: [{ field: 'datetimeUploaded', order: 'desc' }]
},
{ authSchema }
)
RestClientValidationError When a condition is malformed or
none is given; its errors name the fields.
Searches the project's files. Paginates through
limitandoffset, so it works with paginate andPaginator, up to the API's ceiling ofoffset + limit < 1000.Newly uploaded files are indexed asynchronously and may not be found straight away.