Skip to content

cayu.sessions.RuntimePublicationReceipt

Part of cayu.sessions.base. Read the Python API overview and install the required extra.

from cayu.sessions import RuntimePublicationReceipt

Store-owned, insert-only proof of one atomic runtime publication.

Bases: BaseModel.

Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.

Name Type Default
record_type Literal['cayu.runtime-publication'] RUNTIME_PUBLICATION_RECORD_TYPE
schema_version Literal[2] RUNTIME_PUBLICATION_SCHEMA_VERSION
session_id str required
publication_id str Field(max_length=256)
kind RuntimePublicationKind required
interaction_id str | None Field(default=None, max_length=256)
intent dict[str, Any] required
request_digest str required
publication_digest str required
checkpoint_digest str required
transcript_digest str required
events_digest str required
source_status SessionStatus required
source_run_epoch StrictInt Field(ge=0, le=MAX_DURABLE_JSON_INTEGER)
transcript_start_cursor StrictInt Field(ge=0, le=MAX_DURABLE_JSON_INTEGER)
transcript_end_cursor StrictInt Field(ge=0, le=MAX_DURABLE_JSON_INTEGER)
appended_event_ids tuple[str, ...] required
referenced_events tuple[RuntimePublicationEventReference, ...] required
published_at datetime required
RuntimePublicationReceipt.validate_identity(value: str, info) -> str
RuntimePublicationReceipt.validate_optional_interaction_id(value: str | None) -> str | None
RuntimePublicationReceipt.copy_intent(value: dict[str, Any]) -> dict[str, Any]
RuntimePublicationReceipt.validate_digest(value: str, info) -> str
RuntimePublicationReceipt.copy_event_ids(value, info) -> tuple[str, ...]
RuntimePublicationReceipt.copy_referenced_events(value) -> tuple[RuntimePublicationEventReference, ...]
RuntimePublicationReceipt.normalize_published_at(value: datetime) -> datetime
RuntimePublicationReceipt.validate_boundaries() -> RuntimePublicationReceipt

Release source · Runtime guarantees · Capability guides