Shared Event Format
All session events conform to the following base structure:Event Types
session_object_modified
Fired when a upload_session_object call is made against the Session, modifying semi-persistent object values securely within the active envelope. Extremely useful for reactive applications polling or streaming state updates directly.
session_object_deleted
Fired when a delete_session_object call removes a session object from the active session. For
thread-typed session objects this also cascades to remove all of the thread’s items.
session_thread_item_posted
Fired when a post_session_thread_item call adds an item to a thread session object. Listeners can
re-fetch the thread tail via list_session_thread_items using the item_id to anchor
created_since.
session_graph_changed
Fired once per apply_session_graph_mutations call, carrying the change delta for the affected graph
session object. Each entry in changes identifies one applied operation.
op is "delete" from the local
cache, then call get_session_graph_elements with the element_id values from the remaining
"upsert" entries to fetch their updated state. This avoids refetching the entire graph on each
mutation.
