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.
Properties
Section titled “Properties”content_type
Section titled “content_type”content_type:
string
Defined in: libs/ccs-files-client/src/types.ts:1246
application/x-ndjson or text/csv.
filename
Section titled “filename”filename:
string|null
Defined in: libs/ccs-files-client/src/types.ts:1248
From Content-Disposition, when the service named the file.
truncated
Section titled “truncated”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.
Methods
Section titled “Methods”text()
Section titled “text()”text():
Promise<string>
Defined in: libs/ccs-files-client/src/types.ts:1254
The whole export as one string.
Returns
Section titled “Returns”Promise<string>
lines()
Section titled “lines()”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.
Returns
Section titled “Returns”AsyncIterable<string>