@mmstack/mesh 21.16.0 → 21.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -1
- package/fesm2022/mmstack-mesh.mjs +6 -5
- package/fesm2022/mmstack-mesh.mjs.map +1 -1
- package/package.json +1 -1
- package/types/mmstack-mesh.d.ts +13 -0
package/package.json
CHANGED
package/types/mmstack-mesh.d.ts
CHANGED
|
@@ -369,6 +369,13 @@ type MeshSyncOptions = {
|
|
|
369
369
|
readonly room: string;
|
|
370
370
|
/** Opaque principal pseudonym — provided, never minted. */
|
|
371
371
|
readonly writer: string;
|
|
372
|
+
/**
|
|
373
|
+
* A string that every origin this client mints starts with. A host that gives each writer a prefix
|
|
374
|
+
* of its own can tell at the hello whose an origin is, with nothing stored: its relay's `canJoin`
|
|
375
|
+
* compares the origin's start with the writer it authenticated. A saved outbox
|
|
376
|
+
* keeps the origin it was created with, whatever this says on a later boot.
|
|
377
|
+
*/
|
|
378
|
+
readonly originPrefix?: string;
|
|
372
379
|
readonly transport: MeshTransportFactory;
|
|
373
380
|
/** Per-path merge policies for rebase/convergence (`lww` default). */
|
|
374
381
|
readonly policies?: readonly MergePolicyEntry[];
|
|
@@ -691,6 +698,12 @@ type AgentSeatOptions = {
|
|
|
691
698
|
readonly room: string;
|
|
692
699
|
/** Opaque principal pseudonym — provided, never minted. One identity per seat. */
|
|
693
700
|
readonly writer: string;
|
|
701
|
+
/**
|
|
702
|
+
* A string that every origin this seat mints starts with. A host that gives each writer a prefix
|
|
703
|
+
* of its own can tell at the hello whose an origin is, with nothing stored: its relay's `canJoin`
|
|
704
|
+
* compares the origin's start with the writer it authenticated.
|
|
705
|
+
*/
|
|
706
|
+
readonly originPrefix?: string;
|
|
694
707
|
readonly transport: MeshTransportFactory;
|
|
695
708
|
/** Per-path merge policies for rebase/convergence (`lww` default). */
|
|
696
709
|
readonly policies?: readonly MergePolicyEntry[];
|