@pylonsync/sync 0.3.291 → 0.3.293

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/dist/ids.d.ts ADDED
@@ -0,0 +1,14 @@
1
+ import type { Storage } from "./storage";
2
+ /**
3
+ * Mint a Pylon-shaped id (40 hex chars). Used by `SyncEngine.insert`
4
+ * so the optimistic ghost and the canonical row share the exact same
5
+ * id — without this, the server-minted id would replace a `_pending_*`
6
+ * placeholder and the local replica would briefly carry both.
7
+ */
8
+ export declare function generateId(): string;
9
+ /**
10
+ * Stable client id persisted in storage. Lets the server correlate
11
+ * retries (even when op_id is absent) and attach per-client
12
+ * diagnostics / rate limits.
13
+ */
14
+ export declare function generateClientId(storage: Storage): string;