Skip to main content

Interface: ContentExport

Defined in: packages/client/src/core/content-transfer.ts:106

A stack's content, portable to another stack.

The documents are plaintext. Encrypted attributes are decrypted on the way out so that a stack holding a different document key can read them; the file is therefore as sensitive as the data it holds, and protecting it is the caller's job.

Properties

PropertyTypeDescriptionDefined in
classesstring[]Class names present in documents, so an import can report gaps up front.packages/client/src/core/content-transfer.ts:118
documentsDocument[]Content documents, decrypted, without _rev.packages/client/src/core/content-transfer.ts:122
domainsstring[]Domain names present in relations.packages/client/src/core/content-transfer.ts:120
exportedAtstringISO-8601, when the export was taken.packages/client/src/core/content-transfer.ts:110
formatstringAlways CONTENT_EXPORT_FORMAT.packages/client/src/core/content-transfer.ts:108
relationsRelationDocument[]Relation documents, ordered after the documents they connect.packages/client/src/core/content-transfer.ts:124
sourceobjectWhere it came from. Advisory - an import does not require a match.packages/client/src/core/content-transfer.ts:112
source.appVersionstring-packages/client/src/core/content-transfer.ts:114
source.schemaVersion?string-packages/client/src/core/content-transfer.ts:115
source.stackstring-packages/client/src/core/content-transfer.ts:113