createQirtaasClient bundles your connection (apiUrl) and embed-token source
(getToken) once, then returns a client whose methods are bound to that config.
This is the “configure once” shape — you don’t re-pass apiUrl/getToken on
every call.
createQirtaasClient(options)
QirtaasClientOptions
Qirtaas API base URL. Point this at the managed cloud, or at your own
backend when self-hosting.
Returns a short-lived embed token. Called on init, before the token expires,
and again on a
401. Shared by mountEditor, deleteDocument and
duplicateDocument.Optional — a renderer-only client can omit it (the renderer carries its
own per-read auth). mountEditor, deleteDocument and duplicateDocument
throw if it is missing.Client methods
The returnedQirtaasClient exposes:
Boot the editor onto a host node, authorized by the client’s
getToken.
See Editor.Boot the read-only renderer. Its auth (signature / token / shareToken) is
supplied per call, not on the client. See Renderer.
Delete a document over the embed-token channel — no mount required.
Copy a document’s content into a new document, returning the new id. Lets a
host keep a stable published document while the author edits a private clone.
