Skip to main content
Subscription types represent the payloads received when subscribing to real-time updates via WebSocket.

ContentUpdate

Payload for content subscription updates.
FieldTypeDescription
contentIdID!ID of the updated content
contentContentFull content object (null if exceeds 100KB)
resolvedRefResolvedPackageRef!Package IDs for caching
actionString!"CREATED", "UPDATED", or "DELETED"
timestampDateTime!When the update occurred

Handling ContentUpdate

ComponentUpdate

Payload for component subscription updates.
FieldTypeDescription
componentIdID!ID of the updated component
componentComponentFull component object (null if exceeds 100KB)
resolvedRefResolvedPackageRef!Package IDs for caching
actionString!"CREATED", "UPDATED", "PUBLISHED", or "DELETED"
timestampDateTime!When the update occurred

PackageUpdate

Payload for package subscription updates.
FieldTypeDescription
packageIdID!ID of the updated package
resolvedRefResolvedPackageRef!Package IDs for caching
actionString!"CREATED", "UPDATED", "PUBLISHED", or "DELETED"
timestampDateTime!When the update occurred

PreviewUpdate

Payload for preview subscription updates.
FieldTypeDescription
previewPreviewResult!Component or content preview
actionString!"UPDATED" or "DELETED"
timestampDateTime!When the update occurred

PreviewResult Union

ComponentPreview

Preview data for a component.
FieldTypeDescription
componentIdID!Component ID
componentNameString!Component name for display/recents
componentComponentComponent data (null if exceeds 100KB)
resolvedRefResolvedPackageRef!Package IDs for caching

ContentPreview

Preview data for content.
FieldTypeDescription
contentIdID!Content ID
contentNameString!Content name for display/recents
contentTypeNameString!Content type name for display/recents
contentContentContent data (null if exceeds 100KB)
resolvedRefResolvedPackageRef!Package IDs for caching

Handling Preview Updates

100KB Payload Limit

AWS WebSocket has a payload limit. When data exceeds 100KB:
  1. The content or component field will be null
  2. The resolvedRef field is always included
  3. Use the ID to fetch the full data separately