blockether.vis.views
Immutable input-form, live-view and view-event records.
For reading receipts, see the SDK guide. For creating interfaces, use the human-input guide or live-view guide.
An open input form, including field schemas and engine-owned timeout metadata.
This describes the form, not a person's answers. Submitted values are not included in public close events; they belong to the waiting extension.
An open live interface at sequence seq, with immutable semantic nodes.
Apply subsequent LivePatch operations in sequence order in your consumer;
this snapshot does not mutate itself when another event arrives.
A retained view document 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 optional retained document.
Check is_completed and reason rather than assuming every close succeeds.
is_from_human distinguishes a person's closure from a programmatic one;
view, summary, error and attachment metadata may be absent.
Validate a close receipt and decode its optional ViewSnapshot.
Raises:
- ValueError: The receipt or its retained view violates 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.