Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/sessions / / SessionExportReadOptions

Interface: SessionExportReadOptions

Defined in: packages/sessions/src/export/reader.ts:70

Options accepted by readSessionExport.

Stable

Properties

PropertyModifierTypeDescriptionDefined in
activeEmbedderIds?readonlyreadonly string[]When the meta header declares one or more embedderIds that do not match the supplied activeEmbedderIds set, embeddings on imported messages are dropped (with a warning per embedder). Defaults to an empty set, meaning embeddings are always dropped (the safest default — embeddings produced under a different embedder are not interchangeable byte-for-byte).packages/sessions/src/export/reader.ts:79
decryptionKey?readonlyUint8Array<ArrayBufferLike>When the file was written with --encrypt, supply the matching key + salt. Required when the footer surfaces cipher.packages/sessions/src/export/reader.ts:84
onWarn?readonly(warning) => voidProvide a custom logger for warnings. The framework default emits to console.warn; pass () => {} to silence.packages/sessions/src/export/reader.ts:89