SumDoc reference
The full SumDoc API specification: the session protocol (41 commands), the Browser Surface API, window.fastdocShell (321 methods), events between the application and the editor, and the type catalog (487 types).
This section is a machine-verified reference for SumDoc’s external API. It describes four independent surfaces:
| Surface | What it is | Pages |
|---|---|---|
| Rust Session Protocol | 41 commands of the document session: exchanging JSON lines over standard input/output or over WebSocket on the local interface. The main path for external integration. | Transport, Session commands, Typed editing types |
| Browser Surface API | Embedding the ready-made editor surface and the events it sends to your application. | Browser surface interface |
| window.fastdocShell | 321 methods inside the desktop SumDoc window. An internal contract, not a public interface. | document … other methods |
| Type catalog | 487 internal contract types and 31 generated session types. | api-document.ts … Session types |
What the reference consists of
Section titled “What the reference consists of”Session protocol · surface interface · internal window objects · events · types
| Metric | Value |
|---|---|
| Rust Session Protocol | 41 commands · fastdoc.session-protocol-descriptor.v1 |
window.fastdocShell |
321 methods / 323 signatures |
| Types | 487 internal contract types and 31 generated session types |
| Reference status | First-version draft: names and contents may be refined before the public interface ships |