Expand description
Executor contract — canonical response types and error constants for
window.host.* bridge calls.
Host implementations (host-rs, dotli) use these definitions to ensure SPAs receive identical promise resolution values regardless of which host they run on.
§Response value conventions
Most bridge calls resolve with bare values — a string, an integer, a
boolean, or null. Only mediaGetUserMedia resolves with a structured
JSON object. The types below document the exact JS-level value the
promise resolves with.
See also docs/executor-contract.md for behavioral rules that types cannot
express (listener lifecycle, error semantics, identity rules).
Structs§
- Crdt
Join Result crdtJoin(roomId, opts?)— resolves with room metadata.- GetDisplay
Media Result mediaGetDisplayMedia()— resolves with the allocated screen track ID.- GetUser
Media Result mediaGetUserMedia({ audio, video })— resolves with a JSON object containing the allocated local track IDs before the correspondingmediaTrackReadyevents fire.- Mesh
Control Envelope - Capability-scoped control envelope for mesh 1.2 private channels.
- Mesh
Object Policy mesh.objects.put(path, dataBase64, policy?)retention and preview policy.- Mesh
Object Result mesh.objects.getResult(path)and structured negativemeshReplymodel.- Mesh
Private Object Ref mesh.private.objects.put(dataBase64, policy?)opaque object reference.- Mesh
Status Result meshStatus()— resolves with the current mesh backend health and queue state.
Enums§
Constants§
- ERR_
ADDRESS_ REQUIRED - ERR_
AUDIO_ PERMISSION - ERR_
CAMERA_ PERMISSION - ERR_
CHAIN_ PERMISSION - ERR_
CRDT_ ROOM_ ID_ REQUIRED - ERR_
CRDT_ ROOM_ NOT_ FOUND - ERR_
DATA_ PERMISSION - ERR_
FILENAME_ REQUIRED - ERR_
GROUP_ ID_ REQUIRED - ERR_
GROUP_ TOO_ LARGE - ERR_
INVALID_ ELEMENT_ ID - ERR_
MEDIA_ PERMISSION - ERR_
NO_ PENDING_ CALL_ FOR_ PEER - ERR_
PEER_ ADDRESS_ EMPTY - ERR_
PENDING_ CONNECT - ERR_
PENDING_ SIGN - ERR_
PENDING_ SUBMIT - ERR_
SCREEN_ DENIED_ BY_ OS - ERR_
SCREEN_ PERMISSION - ERR_
STATEMENTS_ PERMISSION - ERR_
WALLET_ NOT_ CONNECTED - ERR_
WALLET_ NOT_ ENABLED