Skip to content

FilesExport

Defined in: libs/ccs-files-client/src/types.ts:1244

A streamed export (NDJSON or CSV). Read it once: text(), lines() or body. The audit export holds at most 100,000 rows, newest first; truncated says the filters matched more.

content_type: string

Defined in: libs/ccs-files-client/src/types.ts:1246

application/x-ndjson or text/csv.


filename: string | null

Defined in: libs/ccs-files-client/src/types.ts:1248

From Content-Disposition, when the service named the file.


truncated: boolean

Defined in: libs/ccs-files-client/src/types.ts:1250

X-Export-Truncated: true: the row cap cut the export.


body: ReadableStream<Uint8Array<ArrayBufferLike>> | null

Defined in: libs/ccs-files-client/src/types.ts:1252

The raw bytes, for piping to a file. null for an empty body.

text(): Promise<string>

Defined in: libs/ccs-files-client/src/types.ts:1254

The whole export as one string.

Promise<string>


lines(): AsyncIterable<string>

Defined in: libs/ccs-files-client/src/types.ts:1256

The export line by line (CSV: the header line first), without the line breaks.

AsyncIterable<string>