cayu.sessions.RuntimePublicationReceipt
Part of cayu.sessions.base. Read the Python API overview and install the required extra.
from cayu.sessions import RuntimePublicationReceiptStore-owned, insert-only proof of one atomic runtime publication.
Bases: BaseModel.
Fields and attributes
Section titled “Fields and attributes”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 |
validate_identity (method)
Section titled “validate_identity (method)”RuntimePublicationReceipt.validate_identity(value: str, info) -> strvalidate_optional_interaction_id (method)
Section titled “validate_optional_interaction_id (method)”RuntimePublicationReceipt.validate_optional_interaction_id(value: str | None) -> str | Nonecopy_intent (method)
Section titled “copy_intent (method)”RuntimePublicationReceipt.copy_intent(value: dict[str, Any]) -> dict[str, Any]validate_digest (method)
Section titled “validate_digest (method)”RuntimePublicationReceipt.validate_digest(value: str, info) -> strcopy_event_ids (method)
Section titled “copy_event_ids (method)”RuntimePublicationReceipt.copy_event_ids(value, info) -> tuple[str, ...]copy_referenced_events (method)
Section titled “copy_referenced_events (method)”RuntimePublicationReceipt.copy_referenced_events(value) -> tuple[RuntimePublicationEventReference, ...]normalize_published_at (method)
Section titled “normalize_published_at (method)”RuntimePublicationReceipt.normalize_published_at(value: datetime) -> datetimevalidate_boundaries (method)
Section titled “validate_boundaries (method)”RuntimePublicationReceipt.validate_boundaries() -> RuntimePublicationReceipt