blockether.vis.views
Immutable input-form, live-view and view-event records.
For reading receipts, see the Sessions API guide. For creating interfaces, use the human-input guide or live-view guide.
An open input form, including its component tree and engine-owned timeout metadata.
This describes the form, not a person's answers. Public close events do not
include submitted values. Those values belong to the waiting extension.
origin names the session that asks and, for a child session, its parent session.
An open live interface at sequence seq, with immutable semantic nodes.
In your consumer, apply later LivePatch operations in sequence order. This
snapshot does not change itself when another event arrives.
A view document kept after close, without open-session IDs or timeout metadata.
Ordered semantic updates for view_id, ending at sequence seq.
The containing ViewEvent.first_seq identifies the first sequence covered
by a patch event. Operations remain immutable schema-validated mappings.
Public close receipt. Submitted values belong only to the waiting extension.
A live interface's final outcome and the optional view document kept after close.
Check is_completed and reason. Do not assume that every close succeeds.
is_from_human tells a person's close from a programmatic one. view,
summary, error and attachment metadata can be absent.
Validate a close receipt and decode its optional ViewSnapshot.
Raises:
- ValueError: The receipt or its view document does not match the View schema.
Typed payload of view.open, view.patch or view.close, not its SSE envelope.
Decode a View event payload, separate from its stream envelope.
Arguments:
- event_type:
"view.open","view.patch"or"view.close". - value: The corresponding JSON payload, including its kind and view ID.
Raises:
- KeyError: The event type is unsupported.
- ValueError: The payload, view identity or patch sequence is invalid.