Skip to content

Collection.exported

Emitted each time a Collection is exported.

Collection.export emits Collection.exported when it completes on a Collection.

PropertyValue
Emitted byCollection.export
NounCollection
WakesNone.

Payload

Each delivery is an Event record. data holds what Collection.export returns.

FieldTypeRequiredDescription
namestringrequiredCollection.exported.
atdatetimerequiredWhen it happened.
seqintegerIts position in the namespace, one more than the Event before; any seq is a cursor into the history.
datajsonrequiredThe Thing as the Action left it.
data.fileFileThe exported File, for a one-time export.
data.collectionCollectionrequiredThe Collection exported.
data.collection.idstringrequiredThe stable identifier, which never changes.
data.collection.typelist of NounrequiredThe Nouns this Thing is an instance of.
data.collection.statestringThe current state in its lifecycle.
data.collection.outsidejsonThe ids this Thing has in outside tools, one per Integration, so a re-run matches instead of duplicating.
data.collection.queryjsonThe saved query that defines a dynamic Collection.

Example

JSON
{
  "$id": "https://api.sb/kilnbakery.com/events/event_1",
  "$type": "Event",
  "name": "Collection.exported",
  "at": "2026-10-22T12:00:00Z",
  "data": {
    "file": {
      "$id": "https://api.sb/kilnbakery.com/files/file_1",
      "$type": "File",
      "contentType": "Example content type",
      "size": 1
    },
    "collection": {
      "$id": "https://api.sb/kilnbakery.com/collections/collection_1",
      "$type": "Collection",
      "id": "Example id",
      "type": [
        "noun_1"
      ],
      "state": "Example state",
      "outside": {},
      "query": {}
    }
  },
  "seq": 1
}