Typescript SDK
The Seed TypeScript SDK can create documents without asking the daemon to sign them.
Flow:
Build document operations from markdown/blocks.
Create an unsigned
Changeblob withcreateChangeOps.Sign that change with
createChange.Create and sign the document
RefwithcreateVersionRef.Publish the blobs with
PublishBlobs.
For cross-account publishing, the publish payload should include:
Capability blob + Change blob + Ref blobThis is important because the destination write permission is proven by the capability embedded in the signed Ref. The daemon only stores/indexes the blobs; it does not need to pre-authorize the write with CreateDocumentChange.
This is the same model used by the CLI for document creation.
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime
Powered by Seed HypermediaOpen App