@topgunbuild/core 0.10.0 → 0.10.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/dist/index.d.mts CHANGED
@@ -1,17 +1,37 @@
1
1
  import { z } from 'zod';
2
+ import pino from 'pino';
2
3
 
3
4
  interface Timestamp {
4
5
  millis: number;
5
6
  counter: number;
6
7
  nodeId: string;
7
8
  }
9
+ /**
10
+ * Configuration options for HLC behavior.
11
+ */
12
+ interface HLCOptions {
13
+ /**
14
+ * When true, update() throws an error if remote timestamp drift exceeds maxDriftMs.
15
+ * When false (default), a warning is logged but the timestamp is accepted.
16
+ */
17
+ strictMode?: boolean;
18
+ /**
19
+ * Maximum allowable clock drift in milliseconds.
20
+ * Remote timestamps beyond this threshold trigger strict mode rejection or warning.
21
+ * Default: 60000 (1 minute)
22
+ */
23
+ maxDriftMs?: number;
24
+ }
8
25
  declare class HLC {
9
26
  private lastMillis;
10
27
  private lastCounter;
11
28
  private readonly nodeId;
12
- private static readonly MAX_DRIFT;
13
- constructor(nodeId: string);
29
+ private readonly strictMode;
30
+ private readonly maxDriftMs;
31
+ constructor(nodeId: string, options?: HLCOptions);
14
32
  get getNodeId(): string;
33
+ get getStrictMode(): boolean;
34
+ get getMaxDriftMs(): number;
15
35
  /**
16
36
  * Generates a new unique timestamp for a local event.
17
37
  * Ensures monotonicity: always greater than any previously generated or received timestamp.
@@ -1107,8 +1127,6 @@ interface MergeRejection {
1107
1127
  *
1108
1128
  * Uses native xxHash64 when available (via @topgunbuild/native),
1109
1129
  * falls back to FNV-1a for JS-only environments.
1110
- *
1111
- * Phase 3.05: Native Hash Integration
1112
1130
  */
1113
1131
  /**
1114
1132
  * Hash a string to a 32-bit unsigned integer.
@@ -1387,52 +1405,7 @@ declare const QuerySchema: z.ZodObject<{
1387
1405
  limit: z.ZodOptional<z.ZodNumber>;
1388
1406
  cursor: z.ZodOptional<z.ZodString>;
1389
1407
  }, z.core.$strip>;
1390
- /**
1391
- * Cursor status for debugging.
1392
- * - valid: Cursor was valid and applied
1393
- * - expired: Cursor was expired (fell back to first page)
1394
- * - invalid: Cursor was malformed or hash mismatch (fell back to first page)
1395
- * - none: No cursor was provided
1396
- */
1397
- declare const CursorStatusSchema: z.ZodEnum<{
1398
- valid: "valid";
1399
- expired: "expired";
1400
- invalid: "invalid";
1401
- none: "none";
1402
- }>;
1403
- declare const QueryRespPayloadSchema: z.ZodObject<{
1404
- queryId: z.ZodString;
1405
- results: z.ZodArray<z.ZodObject<{
1406
- key: z.ZodString;
1407
- value: z.ZodUnknown;
1408
- }, z.core.$strip>>;
1409
- nextCursor: z.ZodOptional<z.ZodString>;
1410
- hasMore: z.ZodOptional<z.ZodBoolean>;
1411
- cursorStatus: z.ZodOptional<z.ZodEnum<{
1412
- valid: "valid";
1413
- expired: "expired";
1414
- invalid: "invalid";
1415
- none: "none";
1416
- }>>;
1417
- }, z.core.$strip>;
1418
- declare const QueryRespMessageSchema: z.ZodObject<{
1419
- type: z.ZodLiteral<"QUERY_RESP">;
1420
- payload: z.ZodObject<{
1421
- queryId: z.ZodString;
1422
- results: z.ZodArray<z.ZodObject<{
1423
- key: z.ZodString;
1424
- value: z.ZodUnknown;
1425
- }, z.core.$strip>>;
1426
- nextCursor: z.ZodOptional<z.ZodString>;
1427
- hasMore: z.ZodOptional<z.ZodBoolean>;
1428
- cursorStatus: z.ZodOptional<z.ZodEnum<{
1429
- valid: "valid";
1430
- expired: "expired";
1431
- invalid: "invalid";
1432
- none: "none";
1433
- }>>;
1434
- }, z.core.$strip>;
1435
- }, z.core.$strip>;
1408
+ type Query$1 = z.infer<typeof QuerySchema>;
1436
1409
  declare const ClientOpSchema: z.ZodObject<{
1437
1410
  id: z.ZodOptional<z.ZodString>;
1438
1411
  mapName: z.ZodString;
@@ -1467,33 +1440,12 @@ declare const ClientOpSchema: z.ZodObject<{
1467
1440
  }>>;
1468
1441
  timeout: z.ZodOptional<z.ZodNumber>;
1469
1442
  }, z.core.$strip>;
1443
+ type ClientOp = z.infer<typeof ClientOpSchema>;
1470
1444
  declare const AuthMessageSchema: z.ZodObject<{
1471
1445
  type: z.ZodLiteral<"AUTH">;
1472
1446
  token: z.ZodString;
1473
1447
  }, z.core.$strip>;
1474
- declare const QuerySubMessageSchema: z.ZodObject<{
1475
- type: z.ZodLiteral<"QUERY_SUB">;
1476
- payload: z.ZodObject<{
1477
- queryId: z.ZodString;
1478
- mapName: z.ZodString;
1479
- query: z.ZodObject<{
1480
- where: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1481
- predicate: z.ZodOptional<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
1482
- sort: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
1483
- asc: "asc";
1484
- desc: "desc";
1485
- }>>>;
1486
- limit: z.ZodOptional<z.ZodNumber>;
1487
- cursor: z.ZodOptional<z.ZodString>;
1488
- }, z.core.$strip>;
1489
- }, z.core.$strip>;
1490
- }, z.core.$strip>;
1491
- declare const QueryUnsubMessageSchema: z.ZodObject<{
1492
- type: z.ZodLiteral<"QUERY_UNSUB">;
1493
- payload: z.ZodObject<{
1494
- queryId: z.ZodString;
1495
- }, z.core.$strip>;
1496
- }, z.core.$strip>;
1448
+
1497
1449
  declare const ClientOpMessageSchema: z.ZodObject<{
1498
1450
  type: z.ZodLiteral<"CLIENT_OP">;
1499
1451
  payload: z.ZodObject<{
@@ -1629,109 +1581,6 @@ declare const MerkleReqBucketMessageSchema: z.ZodObject<{
1629
1581
  path: z.ZodString;
1630
1582
  }, z.core.$strip>;
1631
1583
  }, z.core.$strip>;
1632
- declare const LockRequestSchema: z.ZodObject<{
1633
- type: z.ZodLiteral<"LOCK_REQUEST">;
1634
- payload: z.ZodObject<{
1635
- requestId: z.ZodString;
1636
- name: z.ZodString;
1637
- ttl: z.ZodOptional<z.ZodNumber>;
1638
- }, z.core.$strip>;
1639
- }, z.core.$strip>;
1640
- declare const LockReleaseSchema: z.ZodObject<{
1641
- type: z.ZodLiteral<"LOCK_RELEASE">;
1642
- payload: z.ZodObject<{
1643
- requestId: z.ZodOptional<z.ZodString>;
1644
- name: z.ZodString;
1645
- fencingToken: z.ZodNumber;
1646
- }, z.core.$strip>;
1647
- }, z.core.$strip>;
1648
- declare const TopicSubSchema: z.ZodObject<{
1649
- type: z.ZodLiteral<"TOPIC_SUB">;
1650
- payload: z.ZodObject<{
1651
- topic: z.ZodString;
1652
- }, z.core.$strip>;
1653
- }, z.core.$strip>;
1654
- declare const TopicUnsubSchema: z.ZodObject<{
1655
- type: z.ZodLiteral<"TOPIC_UNSUB">;
1656
- payload: z.ZodObject<{
1657
- topic: z.ZodString;
1658
- }, z.core.$strip>;
1659
- }, z.core.$strip>;
1660
- declare const TopicPubSchema: z.ZodObject<{
1661
- type: z.ZodLiteral<"TOPIC_PUB">;
1662
- payload: z.ZodObject<{
1663
- topic: z.ZodString;
1664
- data: z.ZodAny;
1665
- }, z.core.$strip>;
1666
- }, z.core.$strip>;
1667
- declare const TopicMessageEventSchema: z.ZodObject<{
1668
- type: z.ZodLiteral<"TOPIC_MESSAGE">;
1669
- payload: z.ZodObject<{
1670
- topic: z.ZodString;
1671
- data: z.ZodAny;
1672
- publisherId: z.ZodOptional<z.ZodString>;
1673
- timestamp: z.ZodNumber;
1674
- }, z.core.$strip>;
1675
- }, z.core.$strip>;
1676
- declare const PNCounterStateObjectSchema: z.ZodObject<{
1677
- p: z.ZodRecord<z.ZodString, z.ZodNumber>;
1678
- n: z.ZodRecord<z.ZodString, z.ZodNumber>;
1679
- }, z.core.$strip>;
1680
- declare const CounterRequestSchema: z.ZodObject<{
1681
- type: z.ZodLiteral<"COUNTER_REQUEST">;
1682
- payload: z.ZodObject<{
1683
- name: z.ZodString;
1684
- }, z.core.$strip>;
1685
- }, z.core.$strip>;
1686
- declare const CounterSyncSchema: z.ZodObject<{
1687
- type: z.ZodLiteral<"COUNTER_SYNC">;
1688
- payload: z.ZodObject<{
1689
- name: z.ZodString;
1690
- state: z.ZodObject<{
1691
- p: z.ZodRecord<z.ZodString, z.ZodNumber>;
1692
- n: z.ZodRecord<z.ZodString, z.ZodNumber>;
1693
- }, z.core.$strip>;
1694
- }, z.core.$strip>;
1695
- }, z.core.$strip>;
1696
- declare const CounterResponseSchema: z.ZodObject<{
1697
- type: z.ZodLiteral<"COUNTER_RESPONSE">;
1698
- payload: z.ZodObject<{
1699
- name: z.ZodString;
1700
- state: z.ZodObject<{
1701
- p: z.ZodRecord<z.ZodString, z.ZodNumber>;
1702
- n: z.ZodRecord<z.ZodString, z.ZodNumber>;
1703
- }, z.core.$strip>;
1704
- }, z.core.$strip>;
1705
- }, z.core.$strip>;
1706
- declare const CounterUpdateSchema: z.ZodObject<{
1707
- type: z.ZodLiteral<"COUNTER_UPDATE">;
1708
- payload: z.ZodObject<{
1709
- name: z.ZodString;
1710
- state: z.ZodObject<{
1711
- p: z.ZodRecord<z.ZodString, z.ZodNumber>;
1712
- n: z.ZodRecord<z.ZodString, z.ZodNumber>;
1713
- }, z.core.$strip>;
1714
- }, z.core.$strip>;
1715
- }, z.core.$strip>;
1716
- declare const PingMessageSchema: z.ZodObject<{
1717
- type: z.ZodLiteral<"PING">;
1718
- timestamp: z.ZodNumber;
1719
- }, z.core.$strip>;
1720
- declare const PongMessageSchema: z.ZodObject<{
1721
- type: z.ZodLiteral<"PONG">;
1722
- timestamp: z.ZodNumber;
1723
- serverTime: z.ZodNumber;
1724
- }, z.core.$strip>;
1725
- /**
1726
- * BATCH: Server sends multiple messages batched together.
1727
- * Uses length-prefixed binary format for efficiency.
1728
- * Format: [4 bytes: count][4 bytes: len1][msg1][4 bytes: len2][msg2]...
1729
- */
1730
- declare const BatchMessageSchema: z.ZodObject<{
1731
- type: z.ZodLiteral<"BATCH">;
1732
- count: z.ZodNumber;
1733
- data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1734
- }, z.core.$strip>;
1735
1584
  /**
1736
1585
  * ORMAP_SYNC_INIT: Client initiates ORMap sync
1737
1586
  * Sends root hash and bucket hashes to server
@@ -1743,9 +1592,6 @@ declare const ORMapSyncInitSchema: z.ZodObject<{
1743
1592
  bucketHashes: z.ZodRecord<z.ZodString, z.ZodNumber>;
1744
1593
  lastSyncTimestamp: z.ZodOptional<z.ZodNumber>;
1745
1594
  }, z.core.$strip>;
1746
- /**
1747
- * ORMAP_SYNC_RESP_ROOT: Server responds with its root hash
1748
- */
1749
1595
  declare const ORMapSyncRespRootSchema: z.ZodObject<{
1750
1596
  type: z.ZodLiteral<"ORMAP_SYNC_RESP_ROOT">;
1751
1597
  payload: z.ZodObject<{
@@ -1758,9 +1604,6 @@ declare const ORMapSyncRespRootSchema: z.ZodObject<{
1758
1604
  }, z.core.$strip>;
1759
1605
  }, z.core.$strip>;
1760
1606
  }, z.core.$strip>;
1761
- /**
1762
- * ORMAP_SYNC_RESP_BUCKETS: Server sends bucket hashes for comparison
1763
- */
1764
1607
  declare const ORMapSyncRespBucketsSchema: z.ZodObject<{
1765
1608
  type: z.ZodLiteral<"ORMAP_SYNC_RESP_BUCKETS">;
1766
1609
  payload: z.ZodObject<{
@@ -1769,9 +1612,6 @@ declare const ORMapSyncRespBucketsSchema: z.ZodObject<{
1769
1612
  buckets: z.ZodRecord<z.ZodString, z.ZodNumber>;
1770
1613
  }, z.core.$strip>;
1771
1614
  }, z.core.$strip>;
1772
- /**
1773
- * ORMAP_MERKLE_REQ_BUCKET: Client requests bucket details
1774
- */
1775
1615
  declare const ORMapMerkleReqBucketSchema: z.ZodObject<{
1776
1616
  type: z.ZodLiteral<"ORMAP_MERKLE_REQ_BUCKET">;
1777
1617
  payload: z.ZodObject<{
@@ -1779,9 +1619,6 @@ declare const ORMapMerkleReqBucketSchema: z.ZodObject<{
1779
1619
  path: z.ZodString;
1780
1620
  }, z.core.$strip>;
1781
1621
  }, z.core.$strip>;
1782
- /**
1783
- * ORMAP_SYNC_RESP_LEAF: Server sends actual records for differing keys
1784
- */
1785
1622
  declare const ORMapSyncRespLeafSchema: z.ZodObject<{
1786
1623
  type: z.ZodLiteral<"ORMAP_SYNC_RESP_LEAF">;
1787
1624
  payload: z.ZodObject<{
@@ -1803,9 +1640,6 @@ declare const ORMapSyncRespLeafSchema: z.ZodObject<{
1803
1640
  }, z.core.$strip>>;
1804
1641
  }, z.core.$strip>;
1805
1642
  }, z.core.$strip>;
1806
- /**
1807
- * ORMAP_DIFF_REQUEST: Client requests data for specific keys
1808
- */
1809
1643
  declare const ORMapDiffRequestSchema: z.ZodObject<{
1810
1644
  type: z.ZodLiteral<"ORMAP_DIFF_REQUEST">;
1811
1645
  payload: z.ZodObject<{
@@ -1813,9 +1647,6 @@ declare const ORMapDiffRequestSchema: z.ZodObject<{
1813
1647
  keys: z.ZodArray<z.ZodString>;
1814
1648
  }, z.core.$strip>;
1815
1649
  }, z.core.$strip>;
1816
- /**
1817
- * ORMAP_DIFF_RESPONSE: Server responds with data for requested keys
1818
- */
1819
1650
  declare const ORMapDiffResponseSchema: z.ZodObject<{
1820
1651
  type: z.ZodLiteral<"ORMAP_DIFF_RESPONSE">;
1821
1652
  payload: z.ZodObject<{
@@ -1836,9 +1667,6 @@ declare const ORMapDiffResponseSchema: z.ZodObject<{
1836
1667
  }, z.core.$strip>>;
1837
1668
  }, z.core.$strip>;
1838
1669
  }, z.core.$strip>;
1839
- /**
1840
- * ORMAP_PUSH_DIFF: Client pushes local diffs to server
1841
- */
1842
1670
  declare const ORMapPushDiffSchema: z.ZodObject<{
1843
1671
  type: z.ZodLiteral<"ORMAP_PUSH_DIFF">;
1844
1672
  payload: z.ZodObject<{
@@ -1859,208 +1687,138 @@ declare const ORMapPushDiffSchema: z.ZodObject<{
1859
1687
  }, z.core.$strip>>;
1860
1688
  }, z.core.$strip>;
1861
1689
  }, z.core.$strip>;
1862
- /**
1863
- * PARTITION_MAP_REQUEST: Client requests current partition map
1864
- */
1865
- declare const PartitionMapRequestSchema: z.ZodObject<{
1866
- type: z.ZodLiteral<"PARTITION_MAP_REQUEST">;
1867
- payload: z.ZodOptional<z.ZodObject<{
1868
- currentVersion: z.ZodOptional<z.ZodNumber>;
1869
- }, z.core.$strip>>;
1690
+ declare const OpResultSchema: z.ZodObject<{
1691
+ opId: z.ZodString;
1692
+ success: z.ZodBoolean;
1693
+ achievedLevel: z.ZodEnum<{
1694
+ FIRE_AND_FORGET: "FIRE_AND_FORGET";
1695
+ MEMORY: "MEMORY";
1696
+ APPLIED: "APPLIED";
1697
+ REPLICATED: "REPLICATED";
1698
+ PERSISTED: "PERSISTED";
1699
+ }>;
1700
+ error: z.ZodOptional<z.ZodString>;
1870
1701
  }, z.core.$strip>;
1871
- /**
1872
- * Entry processor definition schema.
1873
- */
1874
- declare const EntryProcessorSchema: z.ZodObject<{
1875
- name: z.ZodString;
1876
- code: z.ZodString;
1877
- args: z.ZodOptional<z.ZodUnknown>;
1702
+ type OpResult = z.infer<typeof OpResultSchema>;
1703
+ declare const OpAckMessageSchema: z.ZodObject<{
1704
+ type: z.ZodLiteral<"OP_ACK">;
1705
+ payload: z.ZodObject<{
1706
+ lastId: z.ZodString;
1707
+ achievedLevel: z.ZodOptional<z.ZodEnum<{
1708
+ FIRE_AND_FORGET: "FIRE_AND_FORGET";
1709
+ MEMORY: "MEMORY";
1710
+ APPLIED: "APPLIED";
1711
+ REPLICATED: "REPLICATED";
1712
+ PERSISTED: "PERSISTED";
1713
+ }>>;
1714
+ results: z.ZodOptional<z.ZodArray<z.ZodObject<{
1715
+ opId: z.ZodString;
1716
+ success: z.ZodBoolean;
1717
+ achievedLevel: z.ZodEnum<{
1718
+ FIRE_AND_FORGET: "FIRE_AND_FORGET";
1719
+ MEMORY: "MEMORY";
1720
+ APPLIED: "APPLIED";
1721
+ REPLICATED: "REPLICATED";
1722
+ PERSISTED: "PERSISTED";
1723
+ }>;
1724
+ error: z.ZodOptional<z.ZodString>;
1725
+ }, z.core.$strip>>>;
1726
+ }, z.core.$strip>;
1727
+ }, z.core.$strip>;
1728
+ type OpAckMessage = z.infer<typeof OpAckMessageSchema>;
1729
+ declare const OpRejectedMessageSchema: z.ZodObject<{
1730
+ type: z.ZodLiteral<"OP_REJECTED">;
1731
+ payload: z.ZodObject<{
1732
+ opId: z.ZodString;
1733
+ reason: z.ZodString;
1734
+ code: z.ZodOptional<z.ZodNumber>;
1735
+ }, z.core.$strip>;
1878
1736
  }, z.core.$strip>;
1737
+ type OpRejectedMessage = z.infer<typeof OpRejectedMessageSchema>;
1879
1738
  /**
1880
- * ENTRY_PROCESS: Client requests atomic operation on single key.
1739
+ * BATCH: Server sends multiple messages batched together.
1740
+ * Uses length-prefixed binary format for efficiency.
1741
+ * Format: [4 bytes: count][4 bytes: len1][msg1][4 bytes: len2][msg2]...
1881
1742
  */
1882
- declare const EntryProcessRequestSchema: z.ZodObject<{
1883
- type: z.ZodLiteral<"ENTRY_PROCESS">;
1884
- requestId: z.ZodString;
1885
- mapName: z.ZodString;
1886
- key: z.ZodString;
1887
- processor: z.ZodObject<{
1888
- name: z.ZodString;
1889
- code: z.ZodString;
1890
- args: z.ZodOptional<z.ZodUnknown>;
1891
- }, z.core.$strip>;
1892
- }, z.core.$strip>;
1893
- /**
1894
- * ENTRY_PROCESS_BATCH: Client requests atomic operation on multiple keys.
1895
- */
1896
- declare const EntryProcessBatchRequestSchema: z.ZodObject<{
1897
- type: z.ZodLiteral<"ENTRY_PROCESS_BATCH">;
1898
- requestId: z.ZodString;
1899
- mapName: z.ZodString;
1900
- keys: z.ZodArray<z.ZodString>;
1901
- processor: z.ZodObject<{
1902
- name: z.ZodString;
1903
- code: z.ZodString;
1904
- args: z.ZodOptional<z.ZodUnknown>;
1905
- }, z.core.$strip>;
1906
- }, z.core.$strip>;
1907
- /**
1908
- * ENTRY_PROCESS_RESPONSE: Server responds to single-key processor request.
1909
- */
1910
- declare const EntryProcessResponseSchema: z.ZodObject<{
1911
- type: z.ZodLiteral<"ENTRY_PROCESS_RESPONSE">;
1912
- requestId: z.ZodString;
1913
- success: z.ZodBoolean;
1914
- result: z.ZodOptional<z.ZodUnknown>;
1915
- newValue: z.ZodOptional<z.ZodUnknown>;
1916
- error: z.ZodOptional<z.ZodString>;
1917
- }, z.core.$strip>;
1918
- /**
1919
- * Individual key result in batch response.
1920
- */
1921
- declare const EntryProcessKeyResultSchema: z.ZodObject<{
1922
- success: z.ZodBoolean;
1923
- result: z.ZodOptional<z.ZodUnknown>;
1924
- newValue: z.ZodOptional<z.ZodUnknown>;
1925
- error: z.ZodOptional<z.ZodString>;
1926
- }, z.core.$strip>;
1927
- /**
1928
- * ENTRY_PROCESS_BATCH_RESPONSE: Server responds to multi-key processor request.
1929
- */
1930
- declare const EntryProcessBatchResponseSchema: z.ZodObject<{
1931
- type: z.ZodLiteral<"ENTRY_PROCESS_BATCH_RESPONSE">;
1932
- requestId: z.ZodString;
1933
- results: z.ZodRecord<z.ZodString, z.ZodObject<{
1934
- success: z.ZodBoolean;
1935
- result: z.ZodOptional<z.ZodUnknown>;
1936
- newValue: z.ZodOptional<z.ZodUnknown>;
1937
- error: z.ZodOptional<z.ZodString>;
1938
- }, z.core.$strip>>;
1939
- }, z.core.$strip>;
1940
- /**
1941
- * Journal event type schema.
1942
- */
1943
- declare const JournalEventTypeSchema: z.ZodEnum<{
1944
- PUT: "PUT";
1945
- UPDATE: "UPDATE";
1946
- DELETE: "DELETE";
1947
- }>;
1948
- /**
1949
- * Journal event data (serialized for network).
1950
- */
1951
- declare const JournalEventDataSchema: z.ZodObject<{
1952
- sequence: z.ZodString;
1953
- type: z.ZodEnum<{
1954
- PUT: "PUT";
1955
- UPDATE: "UPDATE";
1956
- DELETE: "DELETE";
1957
- }>;
1958
- mapName: z.ZodString;
1959
- key: z.ZodString;
1960
- value: z.ZodOptional<z.ZodUnknown>;
1961
- previousValue: z.ZodOptional<z.ZodUnknown>;
1962
- timestamp: z.ZodObject<{
1963
- millis: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
1964
- counter: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
1965
- nodeId: z.ZodString;
1966
- }, z.core.$strip>;
1967
- nodeId: z.ZodString;
1968
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1969
- }, z.core.$strip>;
1970
- /**
1971
- * JOURNAL_SUBSCRIBE: Client subscribes to journal events.
1972
- */
1973
- declare const JournalSubscribeRequestSchema: z.ZodObject<{
1974
- type: z.ZodLiteral<"JOURNAL_SUBSCRIBE">;
1975
- requestId: z.ZodString;
1976
- fromSequence: z.ZodOptional<z.ZodString>;
1977
- mapName: z.ZodOptional<z.ZodString>;
1978
- types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1979
- PUT: "PUT";
1980
- UPDATE: "UPDATE";
1981
- DELETE: "DELETE";
1982
- }>>>;
1983
- }, z.core.$strip>;
1984
- /**
1985
- * JOURNAL_UNSUBSCRIBE: Client unsubscribes from journal events.
1986
- */
1987
- declare const JournalUnsubscribeRequestSchema: z.ZodObject<{
1988
- type: z.ZodLiteral<"JOURNAL_UNSUBSCRIBE">;
1989
- subscriptionId: z.ZodString;
1743
+ declare const BatchMessageSchema: z.ZodObject<{
1744
+ type: z.ZodLiteral<"BATCH">;
1745
+ count: z.ZodNumber;
1746
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1990
1747
  }, z.core.$strip>;
1991
- /**
1992
- * JOURNAL_EVENT: Server sends journal event to client.
1993
- */
1994
- declare const JournalEventMessageSchema: z.ZodObject<{
1995
- type: z.ZodLiteral<"JOURNAL_EVENT">;
1996
- event: z.ZodObject<{
1997
- sequence: z.ZodString;
1998
- type: z.ZodEnum<{
1999
- PUT: "PUT";
2000
- UPDATE: "UPDATE";
2001
- DELETE: "DELETE";
2002
- }>;
1748
+ type BatchMessage = z.infer<typeof BatchMessageSchema>;
1749
+
1750
+ declare const QuerySubMessageSchema: z.ZodObject<{
1751
+ type: z.ZodLiteral<"QUERY_SUB">;
1752
+ payload: z.ZodObject<{
1753
+ queryId: z.ZodString;
2003
1754
  mapName: z.ZodString;
2004
- key: z.ZodString;
2005
- value: z.ZodOptional<z.ZodUnknown>;
2006
- previousValue: z.ZodOptional<z.ZodUnknown>;
2007
- timestamp: z.ZodObject<{
2008
- millis: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
2009
- counter: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
2010
- nodeId: z.ZodString;
1755
+ query: z.ZodObject<{
1756
+ where: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1757
+ predicate: z.ZodOptional<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
1758
+ sort: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
1759
+ asc: "asc";
1760
+ desc: "desc";
1761
+ }>>>;
1762
+ limit: z.ZodOptional<z.ZodNumber>;
1763
+ cursor: z.ZodOptional<z.ZodString>;
2011
1764
  }, z.core.$strip>;
2012
- nodeId: z.ZodString;
2013
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2014
1765
  }, z.core.$strip>;
2015
1766
  }, z.core.$strip>;
2016
- /**
2017
- * JOURNAL_READ: Client requests events from journal.
2018
- */
2019
- declare const JournalReadRequestSchema: z.ZodObject<{
2020
- type: z.ZodLiteral<"JOURNAL_READ">;
2021
- requestId: z.ZodString;
2022
- fromSequence: z.ZodString;
2023
- limit: z.ZodOptional<z.ZodNumber>;
2024
- mapName: z.ZodOptional<z.ZodString>;
1767
+ declare const QueryUnsubMessageSchema: z.ZodObject<{
1768
+ type: z.ZodLiteral<"QUERY_UNSUB">;
1769
+ payload: z.ZodObject<{
1770
+ queryId: z.ZodString;
1771
+ }, z.core.$strip>;
2025
1772
  }, z.core.$strip>;
2026
- /**
2027
- * JOURNAL_READ_RESPONSE: Server responds with journal events.
2028
- */
2029
- declare const JournalReadResponseSchema: z.ZodObject<{
2030
- type: z.ZodLiteral<"JOURNAL_READ_RESPONSE">;
2031
- requestId: z.ZodString;
2032
- events: z.ZodArray<z.ZodObject<{
2033
- sequence: z.ZodString;
2034
- type: z.ZodEnum<{
2035
- PUT: "PUT";
2036
- UPDATE: "UPDATE";
2037
- DELETE: "DELETE";
2038
- }>;
2039
- mapName: z.ZodString;
1773
+ declare const CursorStatusSchema: z.ZodEnum<{
1774
+ valid: "valid";
1775
+ expired: "expired";
1776
+ invalid: "invalid";
1777
+ none: "none";
1778
+ }>;
1779
+ type CursorStatus$1 = z.infer<typeof CursorStatusSchema>;
1780
+ declare const QueryRespPayloadSchema: z.ZodObject<{
1781
+ queryId: z.ZodString;
1782
+ results: z.ZodArray<z.ZodObject<{
2040
1783
  key: z.ZodString;
2041
- value: z.ZodOptional<z.ZodUnknown>;
2042
- previousValue: z.ZodOptional<z.ZodUnknown>;
2043
- timestamp: z.ZodObject<{
2044
- millis: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
2045
- counter: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
2046
- nodeId: z.ZodString;
2047
- }, z.core.$strip>;
2048
- nodeId: z.ZodString;
2049
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1784
+ value: z.ZodUnknown;
2050
1785
  }, z.core.$strip>>;
2051
- hasMore: z.ZodBoolean;
1786
+ nextCursor: z.ZodOptional<z.ZodString>;
1787
+ hasMore: z.ZodOptional<z.ZodBoolean>;
1788
+ cursorStatus: z.ZodOptional<z.ZodEnum<{
1789
+ valid: "valid";
1790
+ expired: "expired";
1791
+ invalid: "invalid";
1792
+ none: "none";
1793
+ }>>;
2052
1794
  }, z.core.$strip>;
2053
- /**
2054
- * Search options schema for FTS queries.
2055
- */
1795
+ type QueryRespPayload = z.infer<typeof QueryRespPayloadSchema>;
1796
+ declare const QueryRespMessageSchema: z.ZodObject<{
1797
+ type: z.ZodLiteral<"QUERY_RESP">;
1798
+ payload: z.ZodObject<{
1799
+ queryId: z.ZodString;
1800
+ results: z.ZodArray<z.ZodObject<{
1801
+ key: z.ZodString;
1802
+ value: z.ZodUnknown;
1803
+ }, z.core.$strip>>;
1804
+ nextCursor: z.ZodOptional<z.ZodString>;
1805
+ hasMore: z.ZodOptional<z.ZodBoolean>;
1806
+ cursorStatus: z.ZodOptional<z.ZodEnum<{
1807
+ valid: "valid";
1808
+ expired: "expired";
1809
+ invalid: "invalid";
1810
+ none: "none";
1811
+ }>>;
1812
+ }, z.core.$strip>;
1813
+ }, z.core.$strip>;
1814
+ type QueryRespMessage = z.infer<typeof QueryRespMessageSchema>;
1815
+
2056
1816
  declare const SearchOptionsSchema: z.ZodObject<{
2057
1817
  limit: z.ZodOptional<z.ZodNumber>;
2058
1818
  minScore: z.ZodOptional<z.ZodNumber>;
2059
1819
  boost: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
2060
1820
  }, z.core.$strip>;
2061
- /**
2062
- * SEARCH: Client requests one-shot BM25 search.
2063
- */
1821
+ type SearchOptions$1 = z.infer<typeof SearchOptionsSchema>;
2064
1822
  declare const SearchPayloadSchema: z.ZodObject<{
2065
1823
  requestId: z.ZodString;
2066
1824
  mapName: z.ZodString;
@@ -2071,6 +1829,7 @@ declare const SearchPayloadSchema: z.ZodObject<{
2071
1829
  boost: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
2072
1830
  }, z.core.$strip>>;
2073
1831
  }, z.core.$strip>;
1832
+ type SearchPayload = z.infer<typeof SearchPayloadSchema>;
2074
1833
  declare const SearchMessageSchema: z.ZodObject<{
2075
1834
  type: z.ZodLiteral<"SEARCH">;
2076
1835
  payload: z.ZodObject<{
@@ -2084,9 +1843,7 @@ declare const SearchMessageSchema: z.ZodObject<{
2084
1843
  }, z.core.$strip>>;
2085
1844
  }, z.core.$strip>;
2086
1845
  }, z.core.$strip>;
2087
- /**
2088
- * SEARCH_RESP: Server responds with search results.
2089
- */
1846
+ type SearchMessage = z.infer<typeof SearchMessageSchema>;
2090
1847
  declare const SearchRespPayloadSchema: z.ZodObject<{
2091
1848
  requestId: z.ZodString;
2092
1849
  results: z.ZodArray<z.ZodObject<{
@@ -2098,6 +1855,7 @@ declare const SearchRespPayloadSchema: z.ZodObject<{
2098
1855
  totalCount: z.ZodNumber;
2099
1856
  error: z.ZodOptional<z.ZodString>;
2100
1857
  }, z.core.$strip>;
1858
+ type SearchRespPayload = z.infer<typeof SearchRespPayloadSchema>;
2101
1859
  declare const SearchRespMessageSchema: z.ZodObject<{
2102
1860
  type: z.ZodLiteral<"SEARCH_RESP">;
2103
1861
  payload: z.ZodObject<{
@@ -2112,20 +1870,13 @@ declare const SearchRespMessageSchema: z.ZodObject<{
2112
1870
  error: z.ZodOptional<z.ZodString>;
2113
1871
  }, z.core.$strip>;
2114
1872
  }, z.core.$strip>;
2115
- /**
2116
- * Search delta update type.
2117
- * - ENTER: Document entered the result set (new or score exceeded minScore)
2118
- * - UPDATE: Document score changed while remaining in result set
2119
- * - LEAVE: Document left the result set (removed or score dropped below minScore)
2120
- */
1873
+ type SearchRespMessage = z.infer<typeof SearchRespMessageSchema>;
2121
1874
  declare const SearchUpdateTypeSchema: z.ZodEnum<{
2122
1875
  UPDATE: "UPDATE";
2123
1876
  ENTER: "ENTER";
2124
1877
  LEAVE: "LEAVE";
2125
1878
  }>;
2126
- /**
2127
- * SEARCH_SUB: Client subscribes to live search results.
2128
- */
1879
+ type SearchUpdateType = z.infer<typeof SearchUpdateTypeSchema>;
2129
1880
  declare const SearchSubPayloadSchema: z.ZodObject<{
2130
1881
  subscriptionId: z.ZodString;
2131
1882
  mapName: z.ZodString;
@@ -2136,6 +1887,7 @@ declare const SearchSubPayloadSchema: z.ZodObject<{
2136
1887
  boost: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
2137
1888
  }, z.core.$strip>>;
2138
1889
  }, z.core.$strip>;
1890
+ type SearchSubPayload = z.infer<typeof SearchSubPayloadSchema>;
2139
1891
  declare const SearchSubMessageSchema: z.ZodObject<{
2140
1892
  type: z.ZodLiteral<"SEARCH_SUB">;
2141
1893
  payload: z.ZodObject<{
@@ -2149,9 +1901,7 @@ declare const SearchSubMessageSchema: z.ZodObject<{
2149
1901
  }, z.core.$strip>>;
2150
1902
  }, z.core.$strip>;
2151
1903
  }, z.core.$strip>;
2152
- /**
2153
- * SEARCH_UPDATE: Server sends delta update for a subscribed search.
2154
- */
1904
+ type SearchSubMessage = z.infer<typeof SearchSubMessageSchema>;
2155
1905
  declare const SearchUpdatePayloadSchema: z.ZodObject<{
2156
1906
  subscriptionId: z.ZodString;
2157
1907
  key: z.ZodString;
@@ -2164,6 +1914,7 @@ declare const SearchUpdatePayloadSchema: z.ZodObject<{
2164
1914
  LEAVE: "LEAVE";
2165
1915
  }>;
2166
1916
  }, z.core.$strip>;
1917
+ type SearchUpdatePayload = z.infer<typeof SearchUpdatePayloadSchema>;
2167
1918
  declare const SearchUpdateMessageSchema: z.ZodObject<{
2168
1919
  type: z.ZodLiteral<"SEARCH_UPDATE">;
2169
1920
  payload: z.ZodObject<{
@@ -2179,163 +1930,25 @@ declare const SearchUpdateMessageSchema: z.ZodObject<{
2179
1930
  }>;
2180
1931
  }, z.core.$strip>;
2181
1932
  }, z.core.$strip>;
2182
- /**
2183
- * SEARCH_UNSUB: Client unsubscribes from live search.
2184
- */
1933
+ type SearchUpdateMessage = z.infer<typeof SearchUpdateMessageSchema>;
2185
1934
  declare const SearchUnsubPayloadSchema: z.ZodObject<{
2186
1935
  subscriptionId: z.ZodString;
2187
1936
  }, z.core.$strip>;
1937
+ type SearchUnsubPayload = z.infer<typeof SearchUnsubPayloadSchema>;
2188
1938
  declare const SearchUnsubMessageSchema: z.ZodObject<{
2189
1939
  type: z.ZodLiteral<"SEARCH_UNSUB">;
2190
1940
  payload: z.ZodObject<{
2191
1941
  subscriptionId: z.ZodString;
2192
1942
  }, z.core.$strip>;
2193
1943
  }, z.core.$strip>;
2194
- /**
2195
- * Conflict resolver definition schema (wire format).
2196
- */
2197
- declare const ConflictResolverSchema: z.ZodObject<{
2198
- name: z.ZodString;
2199
- code: z.ZodString;
2200
- priority: z.ZodOptional<z.ZodNumber>;
2201
- keyPattern: z.ZodOptional<z.ZodString>;
1944
+ type SearchUnsubMessage = z.infer<typeof SearchUnsubMessageSchema>;
1945
+
1946
+ declare const PartitionMapRequestSchema: z.ZodObject<{
1947
+ type: z.ZodLiteral<"PARTITION_MAP_REQUEST">;
1948
+ payload: z.ZodOptional<z.ZodObject<{
1949
+ currentVersion: z.ZodOptional<z.ZodNumber>;
1950
+ }, z.core.$strip>>;
2202
1951
  }, z.core.$strip>;
2203
- /**
2204
- * REGISTER_RESOLVER: Client registers a conflict resolver on server.
2205
- */
2206
- declare const RegisterResolverRequestSchema: z.ZodObject<{
2207
- type: z.ZodLiteral<"REGISTER_RESOLVER">;
2208
- requestId: z.ZodString;
2209
- mapName: z.ZodString;
2210
- resolver: z.ZodObject<{
2211
- name: z.ZodString;
2212
- code: z.ZodString;
2213
- priority: z.ZodOptional<z.ZodNumber>;
2214
- keyPattern: z.ZodOptional<z.ZodString>;
2215
- }, z.core.$strip>;
2216
- }, z.core.$strip>;
2217
- /**
2218
- * REGISTER_RESOLVER_RESPONSE: Server acknowledges resolver registration.
2219
- */
2220
- declare const RegisterResolverResponseSchema: z.ZodObject<{
2221
- type: z.ZodLiteral<"REGISTER_RESOLVER_RESPONSE">;
2222
- requestId: z.ZodString;
2223
- success: z.ZodBoolean;
2224
- error: z.ZodOptional<z.ZodString>;
2225
- }, z.core.$strip>;
2226
- /**
2227
- * UNREGISTER_RESOLVER: Client unregisters a conflict resolver.
2228
- */
2229
- declare const UnregisterResolverRequestSchema: z.ZodObject<{
2230
- type: z.ZodLiteral<"UNREGISTER_RESOLVER">;
2231
- requestId: z.ZodString;
2232
- mapName: z.ZodString;
2233
- resolverName: z.ZodString;
2234
- }, z.core.$strip>;
2235
- /**
2236
- * UNREGISTER_RESOLVER_RESPONSE: Server acknowledges resolver unregistration.
2237
- */
2238
- declare const UnregisterResolverResponseSchema: z.ZodObject<{
2239
- type: z.ZodLiteral<"UNREGISTER_RESOLVER_RESPONSE">;
2240
- requestId: z.ZodString;
2241
- success: z.ZodBoolean;
2242
- error: z.ZodOptional<z.ZodString>;
2243
- }, z.core.$strip>;
2244
- /**
2245
- * MERGE_REJECTED: Server notifies client that a merge was rejected.
2246
- */
2247
- declare const MergeRejectedMessageSchema: z.ZodObject<{
2248
- type: z.ZodLiteral<"MERGE_REJECTED">;
2249
- mapName: z.ZodString;
2250
- key: z.ZodString;
2251
- attemptedValue: z.ZodUnknown;
2252
- reason: z.ZodString;
2253
- timestamp: z.ZodObject<{
2254
- millis: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
2255
- counter: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
2256
- nodeId: z.ZodString;
2257
- }, z.core.$strip>;
2258
- }, z.core.$strip>;
2259
- /**
2260
- * LIST_RESOLVERS: Client requests list of registered resolvers.
2261
- */
2262
- declare const ListResolversRequestSchema: z.ZodObject<{
2263
- type: z.ZodLiteral<"LIST_RESOLVERS">;
2264
- requestId: z.ZodString;
2265
- mapName: z.ZodOptional<z.ZodString>;
2266
- }, z.core.$strip>;
2267
- /**
2268
- * LIST_RESOLVERS_RESPONSE: Server responds with registered resolvers.
2269
- */
2270
- declare const ListResolversResponseSchema: z.ZodObject<{
2271
- type: z.ZodLiteral<"LIST_RESOLVERS_RESPONSE">;
2272
- requestId: z.ZodString;
2273
- resolvers: z.ZodArray<z.ZodObject<{
2274
- mapName: z.ZodString;
2275
- name: z.ZodString;
2276
- priority: z.ZodOptional<z.ZodNumber>;
2277
- keyPattern: z.ZodOptional<z.ZodString>;
2278
- }, z.core.$strip>>;
2279
- }, z.core.$strip>;
2280
- /**
2281
- * Individual operation result within a batch ACK
2282
- */
2283
- declare const OpResultSchema: z.ZodObject<{
2284
- opId: z.ZodString;
2285
- success: z.ZodBoolean;
2286
- achievedLevel: z.ZodEnum<{
2287
- FIRE_AND_FORGET: "FIRE_AND_FORGET";
2288
- MEMORY: "MEMORY";
2289
- APPLIED: "APPLIED";
2290
- REPLICATED: "REPLICATED";
2291
- PERSISTED: "PERSISTED";
2292
- }>;
2293
- error: z.ZodOptional<z.ZodString>;
2294
- }, z.core.$strip>;
2295
- /**
2296
- * OP_ACK: Server acknowledges write operations
2297
- * Extended to support Write Concern levels
2298
- */
2299
- declare const OpAckMessageSchema: z.ZodObject<{
2300
- type: z.ZodLiteral<"OP_ACK">;
2301
- payload: z.ZodObject<{
2302
- lastId: z.ZodString;
2303
- achievedLevel: z.ZodOptional<z.ZodEnum<{
2304
- FIRE_AND_FORGET: "FIRE_AND_FORGET";
2305
- MEMORY: "MEMORY";
2306
- APPLIED: "APPLIED";
2307
- REPLICATED: "REPLICATED";
2308
- PERSISTED: "PERSISTED";
2309
- }>>;
2310
- results: z.ZodOptional<z.ZodArray<z.ZodObject<{
2311
- opId: z.ZodString;
2312
- success: z.ZodBoolean;
2313
- achievedLevel: z.ZodEnum<{
2314
- FIRE_AND_FORGET: "FIRE_AND_FORGET";
2315
- MEMORY: "MEMORY";
2316
- APPLIED: "APPLIED";
2317
- REPLICATED: "REPLICATED";
2318
- PERSISTED: "PERSISTED";
2319
- }>;
2320
- error: z.ZodOptional<z.ZodString>;
2321
- }, z.core.$strip>>>;
2322
- }, z.core.$strip>;
2323
- }, z.core.$strip>;
2324
- /**
2325
- * OP_REJECTED: Server rejects a write operation
2326
- */
2327
- declare const OpRejectedMessageSchema: z.ZodObject<{
2328
- type: z.ZodLiteral<"OP_REJECTED">;
2329
- payload: z.ZodObject<{
2330
- opId: z.ZodString;
2331
- reason: z.ZodString;
2332
- code: z.ZodOptional<z.ZodNumber>;
2333
- }, z.core.$strip>;
2334
- }, z.core.$strip>;
2335
- /**
2336
- * CLUSTER_SUB_REGISTER - Register a distributed subscription on a node.
2337
- * Sent from coordinator to data-owning nodes for both FTS and Query subscriptions.
2338
- */
2339
1952
  declare const ClusterSubRegisterPayloadSchema: z.ZodObject<{
2340
1953
  subscriptionId: z.ZodString;
2341
1954
  coordinatorNodeId: z.ZodString;
@@ -2356,6 +1969,7 @@ declare const ClusterSubRegisterPayloadSchema: z.ZodObject<{
2356
1969
  desc: "desc";
2357
1970
  }>>>;
2358
1971
  }, z.core.$strip>;
1972
+ type ClusterSubRegisterPayload = z.infer<typeof ClusterSubRegisterPayloadSchema>;
2359
1973
  declare const ClusterSubRegisterMessageSchema: z.ZodObject<{
2360
1974
  type: z.ZodLiteral<"CLUSTER_SUB_REGISTER">;
2361
1975
  payload: z.ZodObject<{
@@ -2379,10 +1993,7 @@ declare const ClusterSubRegisterMessageSchema: z.ZodObject<{
2379
1993
  }>>>;
2380
1994
  }, z.core.$strip>;
2381
1995
  }, z.core.$strip>;
2382
- /**
2383
- * CLUSTER_SUB_ACK - Acknowledgment of subscription registration with initial results.
2384
- * Sent from data node back to coordinator.
2385
- */
1996
+ type ClusterSubRegisterMessage = z.infer<typeof ClusterSubRegisterMessageSchema>;
2386
1997
  declare const ClusterSubAckPayloadSchema: z.ZodObject<{
2387
1998
  subscriptionId: z.ZodString;
2388
1999
  nodeId: z.ZodString;
@@ -2396,6 +2007,7 @@ declare const ClusterSubAckPayloadSchema: z.ZodObject<{
2396
2007
  }, z.core.$strip>>>;
2397
2008
  totalHits: z.ZodOptional<z.ZodNumber>;
2398
2009
  }, z.core.$strip>;
2010
+ type ClusterSubAckPayload = z.infer<typeof ClusterSubAckPayloadSchema>;
2399
2011
  declare const ClusterSubAckMessageSchema: z.ZodObject<{
2400
2012
  type: z.ZodLiteral<"CLUSTER_SUB_ACK">;
2401
2013
  payload: z.ZodObject<{
@@ -2412,10 +2024,7 @@ declare const ClusterSubAckMessageSchema: z.ZodObject<{
2412
2024
  totalHits: z.ZodOptional<z.ZodNumber>;
2413
2025
  }, z.core.$strip>;
2414
2026
  }, z.core.$strip>;
2415
- /**
2416
- * CLUSTER_SUB_UPDATE - Delta update from a data node to coordinator.
2417
- * Sent when a document enters/updates/leaves the subscription result set.
2418
- */
2027
+ type ClusterSubAckMessage = z.infer<typeof ClusterSubAckMessageSchema>;
2419
2028
  declare const ClusterSubUpdatePayloadSchema: z.ZodObject<{
2420
2029
  subscriptionId: z.ZodString;
2421
2030
  sourceNodeId: z.ZodString;
@@ -2426,40 +2035,697 @@ declare const ClusterSubUpdatePayloadSchema: z.ZodObject<{
2426
2035
  changeType: z.ZodEnum<{
2427
2036
  UPDATE: "UPDATE";
2428
2037
  ENTER: "ENTER";
2429
- LEAVE: "LEAVE";
2038
+ LEAVE: "LEAVE";
2039
+ }>;
2040
+ timestamp: z.ZodNumber;
2041
+ }, z.core.$strip>;
2042
+ type ClusterSubUpdatePayload = z.infer<typeof ClusterSubUpdatePayloadSchema>;
2043
+ declare const ClusterSubUpdateMessageSchema: z.ZodObject<{
2044
+ type: z.ZodLiteral<"CLUSTER_SUB_UPDATE">;
2045
+ payload: z.ZodObject<{
2046
+ subscriptionId: z.ZodString;
2047
+ sourceNodeId: z.ZodString;
2048
+ key: z.ZodString;
2049
+ value: z.ZodUnknown;
2050
+ score: z.ZodOptional<z.ZodNumber>;
2051
+ matchedTerms: z.ZodOptional<z.ZodArray<z.ZodString>>;
2052
+ changeType: z.ZodEnum<{
2053
+ UPDATE: "UPDATE";
2054
+ ENTER: "ENTER";
2055
+ LEAVE: "LEAVE";
2056
+ }>;
2057
+ timestamp: z.ZodNumber;
2058
+ }, z.core.$strip>;
2059
+ }, z.core.$strip>;
2060
+ type ClusterSubUpdateMessage = z.infer<typeof ClusterSubUpdateMessageSchema>;
2061
+ declare const ClusterSubUnregisterPayloadSchema: z.ZodObject<{
2062
+ subscriptionId: z.ZodString;
2063
+ }, z.core.$strip>;
2064
+ type ClusterSubUnregisterPayload = z.infer<typeof ClusterSubUnregisterPayloadSchema>;
2065
+ declare const ClusterSubUnregisterMessageSchema: z.ZodObject<{
2066
+ type: z.ZodLiteral<"CLUSTER_SUB_UNREGISTER">;
2067
+ payload: z.ZodObject<{
2068
+ subscriptionId: z.ZodString;
2069
+ }, z.core.$strip>;
2070
+ }, z.core.$strip>;
2071
+ type ClusterSubUnregisterMessage = z.infer<typeof ClusterSubUnregisterMessageSchema>;
2072
+ declare const ClusterSearchReqPayloadSchema: z.ZodObject<{
2073
+ requestId: z.ZodString;
2074
+ mapName: z.ZodString;
2075
+ query: z.ZodString;
2076
+ options: z.ZodObject<{
2077
+ limit: z.ZodNumber;
2078
+ minScore: z.ZodOptional<z.ZodNumber>;
2079
+ boost: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
2080
+ includeMatchedTerms: z.ZodOptional<z.ZodBoolean>;
2081
+ afterScore: z.ZodOptional<z.ZodNumber>;
2082
+ afterKey: z.ZodOptional<z.ZodString>;
2083
+ }, z.core.$strip>;
2084
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
2085
+ }, z.core.$strip>;
2086
+ type ClusterSearchReqPayload = z.infer<typeof ClusterSearchReqPayloadSchema>;
2087
+ declare const ClusterSearchReqMessageSchema: z.ZodObject<{
2088
+ type: z.ZodLiteral<"CLUSTER_SEARCH_REQ">;
2089
+ payload: z.ZodObject<{
2090
+ requestId: z.ZodString;
2091
+ mapName: z.ZodString;
2092
+ query: z.ZodString;
2093
+ options: z.ZodObject<{
2094
+ limit: z.ZodNumber;
2095
+ minScore: z.ZodOptional<z.ZodNumber>;
2096
+ boost: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
2097
+ includeMatchedTerms: z.ZodOptional<z.ZodBoolean>;
2098
+ afterScore: z.ZodOptional<z.ZodNumber>;
2099
+ afterKey: z.ZodOptional<z.ZodString>;
2100
+ }, z.core.$strip>;
2101
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
2102
+ }, z.core.$strip>;
2103
+ }, z.core.$strip>;
2104
+ type ClusterSearchReqMessage = z.infer<typeof ClusterSearchReqMessageSchema>;
2105
+ declare const ClusterSearchRespPayloadSchema: z.ZodObject<{
2106
+ requestId: z.ZodString;
2107
+ nodeId: z.ZodString;
2108
+ results: z.ZodArray<z.ZodObject<{
2109
+ key: z.ZodString;
2110
+ value: z.ZodUnknown;
2111
+ score: z.ZodNumber;
2112
+ matchedTerms: z.ZodOptional<z.ZodArray<z.ZodString>>;
2113
+ }, z.core.$strip>>;
2114
+ totalHits: z.ZodNumber;
2115
+ executionTimeMs: z.ZodNumber;
2116
+ error: z.ZodOptional<z.ZodString>;
2117
+ }, z.core.$strip>;
2118
+ type ClusterSearchRespPayload = z.infer<typeof ClusterSearchRespPayloadSchema>;
2119
+ declare const ClusterSearchRespMessageSchema: z.ZodObject<{
2120
+ type: z.ZodLiteral<"CLUSTER_SEARCH_RESP">;
2121
+ payload: z.ZodObject<{
2122
+ requestId: z.ZodString;
2123
+ nodeId: z.ZodString;
2124
+ results: z.ZodArray<z.ZodObject<{
2125
+ key: z.ZodString;
2126
+ value: z.ZodUnknown;
2127
+ score: z.ZodNumber;
2128
+ matchedTerms: z.ZodOptional<z.ZodArray<z.ZodString>>;
2129
+ }, z.core.$strip>>;
2130
+ totalHits: z.ZodNumber;
2131
+ executionTimeMs: z.ZodNumber;
2132
+ error: z.ZodOptional<z.ZodString>;
2133
+ }, z.core.$strip>;
2134
+ }, z.core.$strip>;
2135
+ type ClusterSearchRespMessage = z.infer<typeof ClusterSearchRespMessageSchema>;
2136
+ declare const ClusterSearchSubscribePayloadSchema: z.ZodObject<{
2137
+ subscriptionId: z.ZodString;
2138
+ mapName: z.ZodString;
2139
+ query: z.ZodString;
2140
+ options: z.ZodOptional<z.ZodObject<{
2141
+ limit: z.ZodOptional<z.ZodNumber>;
2142
+ minScore: z.ZodOptional<z.ZodNumber>;
2143
+ boost: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
2144
+ }, z.core.$strip>>;
2145
+ }, z.core.$strip>;
2146
+ type ClusterSearchSubscribePayload = z.infer<typeof ClusterSearchSubscribePayloadSchema>;
2147
+ declare const ClusterSearchSubscribeMessageSchema: z.ZodObject<{
2148
+ type: z.ZodLiteral<"CLUSTER_SEARCH_SUBSCRIBE">;
2149
+ payload: z.ZodObject<{
2150
+ subscriptionId: z.ZodString;
2151
+ mapName: z.ZodString;
2152
+ query: z.ZodString;
2153
+ options: z.ZodOptional<z.ZodObject<{
2154
+ limit: z.ZodOptional<z.ZodNumber>;
2155
+ minScore: z.ZodOptional<z.ZodNumber>;
2156
+ boost: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
2157
+ }, z.core.$strip>>;
2158
+ }, z.core.$strip>;
2159
+ }, z.core.$strip>;
2160
+ type ClusterSearchSubscribeMessage = z.infer<typeof ClusterSearchSubscribeMessageSchema>;
2161
+ declare const ClusterSearchUnsubscribePayloadSchema: z.ZodObject<{
2162
+ subscriptionId: z.ZodString;
2163
+ }, z.core.$strip>;
2164
+ type ClusterSearchUnsubscribePayload = z.infer<typeof ClusterSearchUnsubscribePayloadSchema>;
2165
+ declare const ClusterSearchUnsubscribeMessageSchema: z.ZodObject<{
2166
+ type: z.ZodLiteral<"CLUSTER_SEARCH_UNSUBSCRIBE">;
2167
+ payload: z.ZodObject<{
2168
+ subscriptionId: z.ZodString;
2169
+ }, z.core.$strip>;
2170
+ }, z.core.$strip>;
2171
+ type ClusterSearchUnsubscribeMessage = z.infer<typeof ClusterSearchUnsubscribeMessageSchema>;
2172
+ declare const ClusterSearchUpdatePayloadSchema: z.ZodObject<{
2173
+ subscriptionId: z.ZodString;
2174
+ nodeId: z.ZodString;
2175
+ key: z.ZodString;
2176
+ value: z.ZodUnknown;
2177
+ score: z.ZodNumber;
2178
+ matchedTerms: z.ZodOptional<z.ZodArray<z.ZodString>>;
2179
+ type: z.ZodEnum<{
2180
+ UPDATE: "UPDATE";
2181
+ ENTER: "ENTER";
2182
+ LEAVE: "LEAVE";
2183
+ }>;
2184
+ }, z.core.$strip>;
2185
+ type ClusterSearchUpdatePayload = z.infer<typeof ClusterSearchUpdatePayloadSchema>;
2186
+ declare const ClusterSearchUpdateMessageSchema: z.ZodObject<{
2187
+ type: z.ZodLiteral<"CLUSTER_SEARCH_UPDATE">;
2188
+ payload: z.ZodObject<{
2189
+ subscriptionId: z.ZodString;
2190
+ nodeId: z.ZodString;
2191
+ key: z.ZodString;
2192
+ value: z.ZodUnknown;
2193
+ score: z.ZodNumber;
2194
+ matchedTerms: z.ZodOptional<z.ZodArray<z.ZodString>>;
2195
+ type: z.ZodEnum<{
2196
+ UPDATE: "UPDATE";
2197
+ ENTER: "ENTER";
2198
+ LEAVE: "LEAVE";
2199
+ }>;
2200
+ }, z.core.$strip>;
2201
+ }, z.core.$strip>;
2202
+ type ClusterSearchUpdateMessage = z.infer<typeof ClusterSearchUpdateMessageSchema>;
2203
+
2204
+ declare const TopicSubSchema: z.ZodObject<{
2205
+ type: z.ZodLiteral<"TOPIC_SUB">;
2206
+ payload: z.ZodObject<{
2207
+ topic: z.ZodString;
2208
+ }, z.core.$strip>;
2209
+ }, z.core.$strip>;
2210
+ declare const TopicUnsubSchema: z.ZodObject<{
2211
+ type: z.ZodLiteral<"TOPIC_UNSUB">;
2212
+ payload: z.ZodObject<{
2213
+ topic: z.ZodString;
2214
+ }, z.core.$strip>;
2215
+ }, z.core.$strip>;
2216
+ declare const TopicPubSchema: z.ZodObject<{
2217
+ type: z.ZodLiteral<"TOPIC_PUB">;
2218
+ payload: z.ZodObject<{
2219
+ topic: z.ZodString;
2220
+ data: z.ZodAny;
2221
+ }, z.core.$strip>;
2222
+ }, z.core.$strip>;
2223
+ declare const TopicMessageEventSchema: z.ZodObject<{
2224
+ type: z.ZodLiteral<"TOPIC_MESSAGE">;
2225
+ payload: z.ZodObject<{
2226
+ topic: z.ZodString;
2227
+ data: z.ZodAny;
2228
+ publisherId: z.ZodOptional<z.ZodString>;
2229
+ timestamp: z.ZodNumber;
2230
+ }, z.core.$strip>;
2231
+ }, z.core.$strip>;
2232
+ declare const LockRequestSchema: z.ZodObject<{
2233
+ type: z.ZodLiteral<"LOCK_REQUEST">;
2234
+ payload: z.ZodObject<{
2235
+ requestId: z.ZodString;
2236
+ name: z.ZodString;
2237
+ ttl: z.ZodOptional<z.ZodNumber>;
2238
+ }, z.core.$strip>;
2239
+ }, z.core.$strip>;
2240
+ declare const LockReleaseSchema: z.ZodObject<{
2241
+ type: z.ZodLiteral<"LOCK_RELEASE">;
2242
+ payload: z.ZodObject<{
2243
+ requestId: z.ZodOptional<z.ZodString>;
2244
+ name: z.ZodString;
2245
+ fencingToken: z.ZodNumber;
2246
+ }, z.core.$strip>;
2247
+ }, z.core.$strip>;
2248
+ declare const PNCounterStateObjectSchema: z.ZodObject<{
2249
+ p: z.ZodRecord<z.ZodString, z.ZodNumber>;
2250
+ n: z.ZodRecord<z.ZodString, z.ZodNumber>;
2251
+ }, z.core.$strip>;
2252
+ declare const CounterRequestSchema: z.ZodObject<{
2253
+ type: z.ZodLiteral<"COUNTER_REQUEST">;
2254
+ payload: z.ZodObject<{
2255
+ name: z.ZodString;
2256
+ }, z.core.$strip>;
2257
+ }, z.core.$strip>;
2258
+ declare const CounterSyncSchema: z.ZodObject<{
2259
+ type: z.ZodLiteral<"COUNTER_SYNC">;
2260
+ payload: z.ZodObject<{
2261
+ name: z.ZodString;
2262
+ state: z.ZodObject<{
2263
+ p: z.ZodRecord<z.ZodString, z.ZodNumber>;
2264
+ n: z.ZodRecord<z.ZodString, z.ZodNumber>;
2265
+ }, z.core.$strip>;
2266
+ }, z.core.$strip>;
2267
+ }, z.core.$strip>;
2268
+ declare const CounterResponseSchema: z.ZodObject<{
2269
+ type: z.ZodLiteral<"COUNTER_RESPONSE">;
2270
+ payload: z.ZodObject<{
2271
+ name: z.ZodString;
2272
+ state: z.ZodObject<{
2273
+ p: z.ZodRecord<z.ZodString, z.ZodNumber>;
2274
+ n: z.ZodRecord<z.ZodString, z.ZodNumber>;
2275
+ }, z.core.$strip>;
2276
+ }, z.core.$strip>;
2277
+ }, z.core.$strip>;
2278
+ declare const CounterUpdateSchema: z.ZodObject<{
2279
+ type: z.ZodLiteral<"COUNTER_UPDATE">;
2280
+ payload: z.ZodObject<{
2281
+ name: z.ZodString;
2282
+ state: z.ZodObject<{
2283
+ p: z.ZodRecord<z.ZodString, z.ZodNumber>;
2284
+ n: z.ZodRecord<z.ZodString, z.ZodNumber>;
2285
+ }, z.core.$strip>;
2286
+ }, z.core.$strip>;
2287
+ }, z.core.$strip>;
2288
+ declare const PingMessageSchema: z.ZodObject<{
2289
+ type: z.ZodLiteral<"PING">;
2290
+ timestamp: z.ZodNumber;
2291
+ }, z.core.$strip>;
2292
+ type PingMessage = z.infer<typeof PingMessageSchema>;
2293
+ declare const PongMessageSchema: z.ZodObject<{
2294
+ type: z.ZodLiteral<"PONG">;
2295
+ timestamp: z.ZodNumber;
2296
+ serverTime: z.ZodNumber;
2297
+ }, z.core.$strip>;
2298
+ type PongMessage = z.infer<typeof PongMessageSchema>;
2299
+ declare const EntryProcessorSchema: z.ZodObject<{
2300
+ name: z.ZodString;
2301
+ code: z.ZodString;
2302
+ args: z.ZodOptional<z.ZodUnknown>;
2303
+ }, z.core.$strip>;
2304
+ declare const EntryProcessRequestSchema: z.ZodObject<{
2305
+ type: z.ZodLiteral<"ENTRY_PROCESS">;
2306
+ requestId: z.ZodString;
2307
+ mapName: z.ZodString;
2308
+ key: z.ZodString;
2309
+ processor: z.ZodObject<{
2310
+ name: z.ZodString;
2311
+ code: z.ZodString;
2312
+ args: z.ZodOptional<z.ZodUnknown>;
2313
+ }, z.core.$strip>;
2314
+ }, z.core.$strip>;
2315
+ type EntryProcessRequest = z.infer<typeof EntryProcessRequestSchema>;
2316
+ declare const EntryProcessBatchRequestSchema: z.ZodObject<{
2317
+ type: z.ZodLiteral<"ENTRY_PROCESS_BATCH">;
2318
+ requestId: z.ZodString;
2319
+ mapName: z.ZodString;
2320
+ keys: z.ZodArray<z.ZodString>;
2321
+ processor: z.ZodObject<{
2322
+ name: z.ZodString;
2323
+ code: z.ZodString;
2324
+ args: z.ZodOptional<z.ZodUnknown>;
2325
+ }, z.core.$strip>;
2326
+ }, z.core.$strip>;
2327
+ type EntryProcessBatchRequest = z.infer<typeof EntryProcessBatchRequestSchema>;
2328
+ declare const EntryProcessResponseSchema: z.ZodObject<{
2329
+ type: z.ZodLiteral<"ENTRY_PROCESS_RESPONSE">;
2330
+ requestId: z.ZodString;
2331
+ success: z.ZodBoolean;
2332
+ result: z.ZodOptional<z.ZodUnknown>;
2333
+ newValue: z.ZodOptional<z.ZodUnknown>;
2334
+ error: z.ZodOptional<z.ZodString>;
2335
+ }, z.core.$strip>;
2336
+ type EntryProcessResponse = z.infer<typeof EntryProcessResponseSchema>;
2337
+ declare const EntryProcessKeyResultSchema: z.ZodObject<{
2338
+ success: z.ZodBoolean;
2339
+ result: z.ZodOptional<z.ZodUnknown>;
2340
+ newValue: z.ZodOptional<z.ZodUnknown>;
2341
+ error: z.ZodOptional<z.ZodString>;
2342
+ }, z.core.$strip>;
2343
+ type EntryProcessKeyResult = z.infer<typeof EntryProcessKeyResultSchema>;
2344
+ declare const EntryProcessBatchResponseSchema: z.ZodObject<{
2345
+ type: z.ZodLiteral<"ENTRY_PROCESS_BATCH_RESPONSE">;
2346
+ requestId: z.ZodString;
2347
+ results: z.ZodRecord<z.ZodString, z.ZodObject<{
2348
+ success: z.ZodBoolean;
2349
+ result: z.ZodOptional<z.ZodUnknown>;
2350
+ newValue: z.ZodOptional<z.ZodUnknown>;
2351
+ error: z.ZodOptional<z.ZodString>;
2352
+ }, z.core.$strip>>;
2353
+ }, z.core.$strip>;
2354
+ type EntryProcessBatchResponse = z.infer<typeof EntryProcessBatchResponseSchema>;
2355
+ declare const JournalEventTypeSchema: z.ZodEnum<{
2356
+ PUT: "PUT";
2357
+ UPDATE: "UPDATE";
2358
+ DELETE: "DELETE";
2359
+ }>;
2360
+ declare const JournalEventDataSchema: z.ZodObject<{
2361
+ sequence: z.ZodString;
2362
+ type: z.ZodEnum<{
2363
+ PUT: "PUT";
2364
+ UPDATE: "UPDATE";
2365
+ DELETE: "DELETE";
2366
+ }>;
2367
+ mapName: z.ZodString;
2368
+ key: z.ZodString;
2369
+ value: z.ZodOptional<z.ZodUnknown>;
2370
+ previousValue: z.ZodOptional<z.ZodUnknown>;
2371
+ timestamp: z.ZodObject<{
2372
+ millis: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
2373
+ counter: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
2374
+ nodeId: z.ZodString;
2375
+ }, z.core.$strip>;
2376
+ nodeId: z.ZodString;
2377
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2378
+ }, z.core.$strip>;
2379
+ type JournalEventData = z.infer<typeof JournalEventDataSchema>;
2380
+ declare const JournalSubscribeRequestSchema: z.ZodObject<{
2381
+ type: z.ZodLiteral<"JOURNAL_SUBSCRIBE">;
2382
+ requestId: z.ZodString;
2383
+ fromSequence: z.ZodOptional<z.ZodString>;
2384
+ mapName: z.ZodOptional<z.ZodString>;
2385
+ types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2386
+ PUT: "PUT";
2387
+ UPDATE: "UPDATE";
2388
+ DELETE: "DELETE";
2389
+ }>>>;
2390
+ }, z.core.$strip>;
2391
+ type JournalSubscribeRequest = z.infer<typeof JournalSubscribeRequestSchema>;
2392
+ declare const JournalUnsubscribeRequestSchema: z.ZodObject<{
2393
+ type: z.ZodLiteral<"JOURNAL_UNSUBSCRIBE">;
2394
+ subscriptionId: z.ZodString;
2395
+ }, z.core.$strip>;
2396
+ type JournalUnsubscribeRequest = z.infer<typeof JournalUnsubscribeRequestSchema>;
2397
+ declare const JournalEventMessageSchema: z.ZodObject<{
2398
+ type: z.ZodLiteral<"JOURNAL_EVENT">;
2399
+ event: z.ZodObject<{
2400
+ sequence: z.ZodString;
2401
+ type: z.ZodEnum<{
2402
+ PUT: "PUT";
2403
+ UPDATE: "UPDATE";
2404
+ DELETE: "DELETE";
2405
+ }>;
2406
+ mapName: z.ZodString;
2407
+ key: z.ZodString;
2408
+ value: z.ZodOptional<z.ZodUnknown>;
2409
+ previousValue: z.ZodOptional<z.ZodUnknown>;
2410
+ timestamp: z.ZodObject<{
2411
+ millis: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
2412
+ counter: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
2413
+ nodeId: z.ZodString;
2414
+ }, z.core.$strip>;
2415
+ nodeId: z.ZodString;
2416
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2417
+ }, z.core.$strip>;
2418
+ }, z.core.$strip>;
2419
+ type JournalEventMessage = z.infer<typeof JournalEventMessageSchema>;
2420
+ declare const JournalReadRequestSchema: z.ZodObject<{
2421
+ type: z.ZodLiteral<"JOURNAL_READ">;
2422
+ requestId: z.ZodString;
2423
+ fromSequence: z.ZodString;
2424
+ limit: z.ZodOptional<z.ZodNumber>;
2425
+ mapName: z.ZodOptional<z.ZodString>;
2426
+ }, z.core.$strip>;
2427
+ type JournalReadRequest = z.infer<typeof JournalReadRequestSchema>;
2428
+ declare const JournalReadResponseSchema: z.ZodObject<{
2429
+ type: z.ZodLiteral<"JOURNAL_READ_RESPONSE">;
2430
+ requestId: z.ZodString;
2431
+ events: z.ZodArray<z.ZodObject<{
2432
+ sequence: z.ZodString;
2433
+ type: z.ZodEnum<{
2434
+ PUT: "PUT";
2435
+ UPDATE: "UPDATE";
2436
+ DELETE: "DELETE";
2437
+ }>;
2438
+ mapName: z.ZodString;
2439
+ key: z.ZodString;
2440
+ value: z.ZodOptional<z.ZodUnknown>;
2441
+ previousValue: z.ZodOptional<z.ZodUnknown>;
2442
+ timestamp: z.ZodObject<{
2443
+ millis: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
2444
+ counter: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
2445
+ nodeId: z.ZodString;
2446
+ }, z.core.$strip>;
2447
+ nodeId: z.ZodString;
2448
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2449
+ }, z.core.$strip>>;
2450
+ hasMore: z.ZodBoolean;
2451
+ }, z.core.$strip>;
2452
+ type JournalReadResponse = z.infer<typeof JournalReadResponseSchema>;
2453
+ declare const ConflictResolverSchema: z.ZodObject<{
2454
+ name: z.ZodString;
2455
+ code: z.ZodString;
2456
+ priority: z.ZodOptional<z.ZodNumber>;
2457
+ keyPattern: z.ZodOptional<z.ZodString>;
2458
+ }, z.core.$strip>;
2459
+ type ConflictResolver = z.infer<typeof ConflictResolverSchema>;
2460
+ declare const RegisterResolverRequestSchema: z.ZodObject<{
2461
+ type: z.ZodLiteral<"REGISTER_RESOLVER">;
2462
+ requestId: z.ZodString;
2463
+ mapName: z.ZodString;
2464
+ resolver: z.ZodObject<{
2465
+ name: z.ZodString;
2466
+ code: z.ZodString;
2467
+ priority: z.ZodOptional<z.ZodNumber>;
2468
+ keyPattern: z.ZodOptional<z.ZodString>;
2469
+ }, z.core.$strip>;
2470
+ }, z.core.$strip>;
2471
+ type RegisterResolverRequest = z.infer<typeof RegisterResolverRequestSchema>;
2472
+ declare const RegisterResolverResponseSchema: z.ZodObject<{
2473
+ type: z.ZodLiteral<"REGISTER_RESOLVER_RESPONSE">;
2474
+ requestId: z.ZodString;
2475
+ success: z.ZodBoolean;
2476
+ error: z.ZodOptional<z.ZodString>;
2477
+ }, z.core.$strip>;
2478
+ type RegisterResolverResponse = z.infer<typeof RegisterResolverResponseSchema>;
2479
+ declare const UnregisterResolverRequestSchema: z.ZodObject<{
2480
+ type: z.ZodLiteral<"UNREGISTER_RESOLVER">;
2481
+ requestId: z.ZodString;
2482
+ mapName: z.ZodString;
2483
+ resolverName: z.ZodString;
2484
+ }, z.core.$strip>;
2485
+ type UnregisterResolverRequest = z.infer<typeof UnregisterResolverRequestSchema>;
2486
+ declare const UnregisterResolverResponseSchema: z.ZodObject<{
2487
+ type: z.ZodLiteral<"UNREGISTER_RESOLVER_RESPONSE">;
2488
+ requestId: z.ZodString;
2489
+ success: z.ZodBoolean;
2490
+ error: z.ZodOptional<z.ZodString>;
2491
+ }, z.core.$strip>;
2492
+ type UnregisterResolverResponse = z.infer<typeof UnregisterResolverResponseSchema>;
2493
+ declare const MergeRejectedMessageSchema: z.ZodObject<{
2494
+ type: z.ZodLiteral<"MERGE_REJECTED">;
2495
+ mapName: z.ZodString;
2496
+ key: z.ZodString;
2497
+ attemptedValue: z.ZodUnknown;
2498
+ reason: z.ZodString;
2499
+ timestamp: z.ZodObject<{
2500
+ millis: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
2501
+ counter: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
2502
+ nodeId: z.ZodString;
2503
+ }, z.core.$strip>;
2504
+ }, z.core.$strip>;
2505
+ type MergeRejectedMessage = z.infer<typeof MergeRejectedMessageSchema>;
2506
+ declare const ListResolversRequestSchema: z.ZodObject<{
2507
+ type: z.ZodLiteral<"LIST_RESOLVERS">;
2508
+ requestId: z.ZodString;
2509
+ mapName: z.ZodOptional<z.ZodString>;
2510
+ }, z.core.$strip>;
2511
+ type ListResolversRequest = z.infer<typeof ListResolversRequestSchema>;
2512
+ declare const ListResolversResponseSchema: z.ZodObject<{
2513
+ type: z.ZodLiteral<"LIST_RESOLVERS_RESPONSE">;
2514
+ requestId: z.ZodString;
2515
+ resolvers: z.ZodArray<z.ZodObject<{
2516
+ mapName: z.ZodString;
2517
+ name: z.ZodString;
2518
+ priority: z.ZodOptional<z.ZodNumber>;
2519
+ keyPattern: z.ZodOptional<z.ZodString>;
2520
+ }, z.core.$strip>>;
2521
+ }, z.core.$strip>;
2522
+ type ListResolversResponse = z.infer<typeof ListResolversResponseSchema>;
2523
+
2524
+ declare const ServerEventPayloadSchema: z.ZodObject<{
2525
+ mapName: z.ZodString;
2526
+ eventType: z.ZodEnum<{
2527
+ PUT: "PUT";
2528
+ REMOVE: "REMOVE";
2529
+ OR_ADD: "OR_ADD";
2530
+ OR_REMOVE: "OR_REMOVE";
2531
+ }>;
2532
+ key: z.ZodString;
2533
+ record: z.ZodOptional<z.ZodObject<{
2534
+ value: z.ZodNullable<z.ZodAny>;
2535
+ timestamp: z.ZodObject<{
2536
+ millis: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
2537
+ counter: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
2538
+ nodeId: z.ZodString;
2539
+ }, z.core.$strip>;
2540
+ ttlMs: z.ZodOptional<z.ZodNumber>;
2541
+ }, z.core.$strip>>;
2542
+ orRecord: z.ZodOptional<z.ZodObject<{
2543
+ value: z.ZodAny;
2544
+ timestamp: z.ZodObject<{
2545
+ millis: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
2546
+ counter: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
2547
+ nodeId: z.ZodString;
2548
+ }, z.core.$strip>;
2549
+ tag: z.ZodString;
2550
+ ttlMs: z.ZodOptional<z.ZodNumber>;
2551
+ }, z.core.$strip>>;
2552
+ orTag: z.ZodOptional<z.ZodString>;
2553
+ }, z.core.$strip>;
2554
+ type ServerEventPayload = z.infer<typeof ServerEventPayloadSchema>;
2555
+ declare const ServerEventMessageSchema: z.ZodObject<{
2556
+ type: z.ZodLiteral<"SERVER_EVENT">;
2557
+ payload: z.ZodObject<{
2558
+ mapName: z.ZodString;
2559
+ eventType: z.ZodEnum<{
2560
+ PUT: "PUT";
2561
+ REMOVE: "REMOVE";
2562
+ OR_ADD: "OR_ADD";
2563
+ OR_REMOVE: "OR_REMOVE";
2564
+ }>;
2565
+ key: z.ZodString;
2566
+ record: z.ZodOptional<z.ZodObject<{
2567
+ value: z.ZodNullable<z.ZodAny>;
2568
+ timestamp: z.ZodObject<{
2569
+ millis: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
2570
+ counter: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
2571
+ nodeId: z.ZodString;
2572
+ }, z.core.$strip>;
2573
+ ttlMs: z.ZodOptional<z.ZodNumber>;
2574
+ }, z.core.$strip>>;
2575
+ orRecord: z.ZodOptional<z.ZodObject<{
2576
+ value: z.ZodAny;
2577
+ timestamp: z.ZodObject<{
2578
+ millis: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
2579
+ counter: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
2580
+ nodeId: z.ZodString;
2581
+ }, z.core.$strip>;
2582
+ tag: z.ZodString;
2583
+ ttlMs: z.ZodOptional<z.ZodNumber>;
2584
+ }, z.core.$strip>>;
2585
+ orTag: z.ZodOptional<z.ZodString>;
2586
+ }, z.core.$strip>;
2587
+ }, z.core.$strip>;
2588
+ type ServerEventMessage = z.infer<typeof ServerEventMessageSchema>;
2589
+ declare const ServerBatchEventMessageSchema: z.ZodObject<{
2590
+ type: z.ZodLiteral<"SERVER_BATCH_EVENT">;
2591
+ payload: z.ZodObject<{
2592
+ events: z.ZodArray<z.ZodObject<{
2593
+ mapName: z.ZodString;
2594
+ eventType: z.ZodEnum<{
2595
+ PUT: "PUT";
2596
+ REMOVE: "REMOVE";
2597
+ OR_ADD: "OR_ADD";
2598
+ OR_REMOVE: "OR_REMOVE";
2599
+ }>;
2600
+ key: z.ZodString;
2601
+ record: z.ZodOptional<z.ZodObject<{
2602
+ value: z.ZodNullable<z.ZodAny>;
2603
+ timestamp: z.ZodObject<{
2604
+ millis: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
2605
+ counter: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
2606
+ nodeId: z.ZodString;
2607
+ }, z.core.$strip>;
2608
+ ttlMs: z.ZodOptional<z.ZodNumber>;
2609
+ }, z.core.$strip>>;
2610
+ orRecord: z.ZodOptional<z.ZodObject<{
2611
+ value: z.ZodAny;
2612
+ timestamp: z.ZodObject<{
2613
+ millis: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
2614
+ counter: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
2615
+ nodeId: z.ZodString;
2616
+ }, z.core.$strip>;
2617
+ tag: z.ZodString;
2618
+ ttlMs: z.ZodOptional<z.ZodNumber>;
2619
+ }, z.core.$strip>>;
2620
+ orTag: z.ZodOptional<z.ZodString>;
2621
+ }, z.core.$strip>>;
2622
+ }, z.core.$strip>;
2623
+ }, z.core.$strip>;
2624
+ type ServerBatchEventMessage = z.infer<typeof ServerBatchEventMessageSchema>;
2625
+ declare const QueryUpdatePayloadSchema: z.ZodObject<{
2626
+ queryId: z.ZodString;
2627
+ key: z.ZodString;
2628
+ value: z.ZodUnknown;
2629
+ type: z.ZodEnum<{
2630
+ UPDATE: "UPDATE";
2631
+ REMOVE: "REMOVE";
2632
+ ENTER: "ENTER";
2430
2633
  }>;
2431
- timestamp: z.ZodNumber;
2432
2634
  }, z.core.$strip>;
2433
- declare const ClusterSubUpdateMessageSchema: z.ZodObject<{
2434
- type: z.ZodLiteral<"CLUSTER_SUB_UPDATE">;
2635
+ type QueryUpdatePayload = z.infer<typeof QueryUpdatePayloadSchema>;
2636
+ declare const QueryUpdateMessageSchema: z.ZodObject<{
2637
+ type: z.ZodLiteral<"QUERY_UPDATE">;
2435
2638
  payload: z.ZodObject<{
2436
- subscriptionId: z.ZodString;
2437
- sourceNodeId: z.ZodString;
2639
+ queryId: z.ZodString;
2438
2640
  key: z.ZodString;
2439
2641
  value: z.ZodUnknown;
2440
- score: z.ZodOptional<z.ZodNumber>;
2441
- matchedTerms: z.ZodOptional<z.ZodArray<z.ZodString>>;
2442
- changeType: z.ZodEnum<{
2642
+ type: z.ZodEnum<{
2443
2643
  UPDATE: "UPDATE";
2644
+ REMOVE: "REMOVE";
2444
2645
  ENTER: "ENTER";
2445
- LEAVE: "LEAVE";
2446
2646
  }>;
2447
- timestamp: z.ZodNumber;
2448
2647
  }, z.core.$strip>;
2449
2648
  }, z.core.$strip>;
2450
- /**
2451
- * CLUSTER_SUB_UNREGISTER - Remove a subscription from a node.
2452
- * Sent from coordinator to data-owning nodes when client unsubscribes.
2453
- */
2454
- declare const ClusterSubUnregisterPayloadSchema: z.ZodObject<{
2455
- subscriptionId: z.ZodString;
2649
+ type QueryUpdateMessage = z.infer<typeof QueryUpdateMessageSchema>;
2650
+ declare const GcPrunePayloadSchema: z.ZodObject<{
2651
+ olderThan: z.ZodObject<{
2652
+ millis: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
2653
+ counter: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
2654
+ nodeId: z.ZodString;
2655
+ }, z.core.$strip>;
2456
2656
  }, z.core.$strip>;
2457
- declare const ClusterSubUnregisterMessageSchema: z.ZodObject<{
2458
- type: z.ZodLiteral<"CLUSTER_SUB_UNREGISTER">;
2657
+ type GcPrunePayload = z.infer<typeof GcPrunePayloadSchema>;
2658
+ declare const GcPruneMessageSchema: z.ZodObject<{
2659
+ type: z.ZodLiteral<"GC_PRUNE">;
2459
2660
  payload: z.ZodObject<{
2460
- subscriptionId: z.ZodString;
2661
+ olderThan: z.ZodObject<{
2662
+ millis: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
2663
+ counter: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
2664
+ nodeId: z.ZodString;
2665
+ }, z.core.$strip>;
2461
2666
  }, z.core.$strip>;
2462
2667
  }, z.core.$strip>;
2668
+ type GcPruneMessage = z.infer<typeof GcPruneMessageSchema>;
2669
+ declare const AuthFailMessageSchema: z.ZodObject<{
2670
+ type: z.ZodLiteral<"AUTH_FAIL">;
2671
+ error: z.ZodOptional<z.ZodString>;
2672
+ code: z.ZodOptional<z.ZodNumber>;
2673
+ }, z.core.$strip>;
2674
+ type AuthFailMessage = z.infer<typeof AuthFailMessageSchema>;
2675
+ declare const HybridQueryRespPayloadSchema: z.ZodObject<{
2676
+ subscriptionId: z.ZodString;
2677
+ results: z.ZodArray<z.ZodObject<{
2678
+ key: z.ZodString;
2679
+ value: z.ZodUnknown;
2680
+ score: z.ZodNumber;
2681
+ matchedTerms: z.ZodArray<z.ZodString>;
2682
+ }, z.core.$strip>>;
2683
+ nextCursor: z.ZodOptional<z.ZodString>;
2684
+ hasMore: z.ZodOptional<z.ZodBoolean>;
2685
+ cursorStatus: z.ZodOptional<z.ZodEnum<{
2686
+ valid: "valid";
2687
+ expired: "expired";
2688
+ invalid: "invalid";
2689
+ none: "none";
2690
+ }>>;
2691
+ }, z.core.$strip>;
2692
+ type HybridQueryRespPayload = z.infer<typeof HybridQueryRespPayloadSchema>;
2693
+ declare const HybridQueryDeltaPayloadSchema: z.ZodObject<{
2694
+ subscriptionId: z.ZodString;
2695
+ key: z.ZodString;
2696
+ value: z.ZodNullable<z.ZodUnknown>;
2697
+ score: z.ZodOptional<z.ZodNumber>;
2698
+ matchedTerms: z.ZodOptional<z.ZodArray<z.ZodString>>;
2699
+ type: z.ZodEnum<{
2700
+ UPDATE: "UPDATE";
2701
+ ENTER: "ENTER";
2702
+ LEAVE: "LEAVE";
2703
+ }>;
2704
+ }, z.core.$strip>;
2705
+ type HybridQueryDeltaPayload = z.infer<typeof HybridQueryDeltaPayloadSchema>;
2706
+ declare const LockGrantedPayloadSchema: z.ZodObject<{
2707
+ requestId: z.ZodString;
2708
+ fencingToken: z.ZodNumber;
2709
+ }, z.core.$strip>;
2710
+ type LockGrantedPayload = z.infer<typeof LockGrantedPayloadSchema>;
2711
+ declare const LockReleasedPayloadSchema: z.ZodObject<{
2712
+ requestId: z.ZodString;
2713
+ success: z.ZodBoolean;
2714
+ }, z.core.$strip>;
2715
+ type LockReleasedPayload = z.infer<typeof LockReleasedPayloadSchema>;
2716
+ declare const SyncResetRequiredPayloadSchema: z.ZodObject<{
2717
+ mapName: z.ZodString;
2718
+ reason: z.ZodString;
2719
+ }, z.core.$strip>;
2720
+ type SyncResetRequiredPayload = z.infer<typeof SyncResetRequiredPayloadSchema>;
2721
+ type SyncRespRootPayload = z.infer<typeof SyncRespRootMessageSchema>['payload'];
2722
+ type SyncRespBucketsPayload = z.infer<typeof SyncRespBucketsMessageSchema>['payload'];
2723
+ type SyncRespLeafPayload = z.infer<typeof SyncRespLeafMessageSchema>['payload'];
2724
+ type ORMapSyncRespRootPayload = z.infer<typeof ORMapSyncRespRootSchema>['payload'];
2725
+ type ORMapSyncRespBucketsPayload = z.infer<typeof ORMapSyncRespBucketsSchema>['payload'];
2726
+ type ORMapSyncRespLeafPayload = z.infer<typeof ORMapSyncRespLeafSchema>['payload'];
2727
+ type ORMapDiffResponsePayload = z.infer<typeof ORMapDiffResponseSchema>['payload'];
2728
+
2463
2729
  declare const MessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2464
2730
  type: z.ZodLiteral<"AUTH">;
2465
2731
  token: z.ZodString;
@@ -2894,259 +3160,49 @@ declare const MessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2894
3160
  reason: z.ZodString;
2895
3161
  timestamp: z.ZodObject<{
2896
3162
  millis: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
2897
- counter: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
2898
- nodeId: z.ZodString;
2899
- }, z.core.$strip>;
2900
- }, z.core.$strip>, z.ZodObject<{
2901
- type: z.ZodLiteral<"LIST_RESOLVERS">;
2902
- requestId: z.ZodString;
2903
- mapName: z.ZodOptional<z.ZodString>;
2904
- }, z.core.$strip>, z.ZodObject<{
2905
- type: z.ZodLiteral<"LIST_RESOLVERS_RESPONSE">;
2906
- requestId: z.ZodString;
2907
- resolvers: z.ZodArray<z.ZodObject<{
2908
- mapName: z.ZodString;
2909
- name: z.ZodString;
2910
- priority: z.ZodOptional<z.ZodNumber>;
2911
- keyPattern: z.ZodOptional<z.ZodString>;
2912
- }, z.core.$strip>>;
2913
- }, z.core.$strip>, z.ZodObject<{
2914
- type: z.ZodLiteral<"SEARCH">;
2915
- payload: z.ZodObject<{
2916
- requestId: z.ZodString;
2917
- mapName: z.ZodString;
2918
- query: z.ZodString;
2919
- options: z.ZodOptional<z.ZodObject<{
2920
- limit: z.ZodOptional<z.ZodNumber>;
2921
- minScore: z.ZodOptional<z.ZodNumber>;
2922
- boost: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
2923
- }, z.core.$strip>>;
2924
- }, z.core.$strip>;
2925
- }, z.core.$strip>, z.ZodObject<{
2926
- type: z.ZodLiteral<"SEARCH_RESP">;
2927
- payload: z.ZodObject<{
2928
- requestId: z.ZodString;
2929
- results: z.ZodArray<z.ZodObject<{
2930
- key: z.ZodString;
2931
- value: z.ZodUnknown;
2932
- score: z.ZodNumber;
2933
- matchedTerms: z.ZodArray<z.ZodString>;
2934
- }, z.core.$strip>>;
2935
- totalCount: z.ZodNumber;
2936
- error: z.ZodOptional<z.ZodString>;
2937
- }, z.core.$strip>;
2938
- }, z.core.$strip>, z.ZodObject<{
2939
- type: z.ZodLiteral<"SEARCH_SUB">;
2940
- payload: z.ZodObject<{
2941
- subscriptionId: z.ZodString;
2942
- mapName: z.ZodString;
2943
- query: z.ZodString;
2944
- options: z.ZodOptional<z.ZodObject<{
2945
- limit: z.ZodOptional<z.ZodNumber>;
2946
- minScore: z.ZodOptional<z.ZodNumber>;
2947
- boost: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
2948
- }, z.core.$strip>>;
2949
- }, z.core.$strip>;
2950
- }, z.core.$strip>, z.ZodObject<{
2951
- type: z.ZodLiteral<"SEARCH_UPDATE">;
2952
- payload: z.ZodObject<{
2953
- subscriptionId: z.ZodString;
2954
- key: z.ZodString;
2955
- value: z.ZodUnknown;
2956
- score: z.ZodNumber;
2957
- matchedTerms: z.ZodArray<z.ZodString>;
2958
- type: z.ZodEnum<{
2959
- UPDATE: "UPDATE";
2960
- ENTER: "ENTER";
2961
- LEAVE: "LEAVE";
2962
- }>;
2963
- }, z.core.$strip>;
2964
- }, z.core.$strip>, z.ZodObject<{
2965
- type: z.ZodLiteral<"SEARCH_UNSUB">;
2966
- payload: z.ZodObject<{
2967
- subscriptionId: z.ZodString;
2968
- }, z.core.$strip>;
2969
- }, z.core.$strip>, z.ZodObject<{
2970
- type: z.ZodLiteral<"CLUSTER_SUB_REGISTER">;
2971
- payload: z.ZodObject<{
2972
- subscriptionId: z.ZodString;
2973
- coordinatorNodeId: z.ZodString;
2974
- mapName: z.ZodString;
2975
- type: z.ZodEnum<{
2976
- SEARCH: "SEARCH";
2977
- QUERY: "QUERY";
2978
- }>;
2979
- searchQuery: z.ZodOptional<z.ZodString>;
2980
- searchOptions: z.ZodOptional<z.ZodObject<{
2981
- limit: z.ZodOptional<z.ZodNumber>;
2982
- minScore: z.ZodOptional<z.ZodNumber>;
2983
- boost: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
2984
- }, z.core.$strip>>;
2985
- queryPredicate: z.ZodOptional<z.ZodAny>;
2986
- querySort: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
2987
- asc: "asc";
2988
- desc: "desc";
2989
- }>>>;
2990
- }, z.core.$strip>;
2991
- }, z.core.$strip>, z.ZodObject<{
2992
- type: z.ZodLiteral<"CLUSTER_SUB_ACK">;
2993
- payload: z.ZodObject<{
2994
- subscriptionId: z.ZodString;
2995
- nodeId: z.ZodString;
2996
- success: z.ZodBoolean;
2997
- error: z.ZodOptional<z.ZodString>;
2998
- initialResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
2999
- key: z.ZodString;
3000
- value: z.ZodUnknown;
3001
- score: z.ZodOptional<z.ZodNumber>;
3002
- matchedTerms: z.ZodOptional<z.ZodArray<z.ZodString>>;
3003
- }, z.core.$strip>>>;
3004
- totalHits: z.ZodOptional<z.ZodNumber>;
3005
- }, z.core.$strip>;
3006
- }, z.core.$strip>, z.ZodObject<{
3007
- type: z.ZodLiteral<"CLUSTER_SUB_UPDATE">;
3008
- payload: z.ZodObject<{
3009
- subscriptionId: z.ZodString;
3010
- sourceNodeId: z.ZodString;
3011
- key: z.ZodString;
3012
- value: z.ZodUnknown;
3013
- score: z.ZodOptional<z.ZodNumber>;
3014
- matchedTerms: z.ZodOptional<z.ZodArray<z.ZodString>>;
3015
- changeType: z.ZodEnum<{
3016
- UPDATE: "UPDATE";
3017
- ENTER: "ENTER";
3018
- LEAVE: "LEAVE";
3019
- }>;
3020
- timestamp: z.ZodNumber;
3021
- }, z.core.$strip>;
3022
- }, z.core.$strip>, z.ZodObject<{
3023
- type: z.ZodLiteral<"CLUSTER_SUB_UNREGISTER">;
3024
- payload: z.ZodObject<{
3025
- subscriptionId: z.ZodString;
3026
- }, z.core.$strip>;
3027
- }, z.core.$strip>], "type">;
3028
- type Query$1 = z.infer<typeof QuerySchema>;
3029
- type ClientOp = z.infer<typeof ClientOpSchema>;
3030
- type Message = z.infer<typeof MessageSchema>;
3031
- type PingMessage = z.infer<typeof PingMessageSchema>;
3032
- type PongMessage = z.infer<typeof PongMessageSchema>;
3033
- type BatchMessage = z.infer<typeof BatchMessageSchema>;
3034
- type OpAckMessage = z.infer<typeof OpAckMessageSchema>;
3035
- type OpRejectedMessage = z.infer<typeof OpRejectedMessageSchema>;
3036
- type OpResult = z.infer<typeof OpResultSchema>;
3037
- type EntryProcessRequest = z.infer<typeof EntryProcessRequestSchema>;
3038
- type EntryProcessBatchRequest = z.infer<typeof EntryProcessBatchRequestSchema>;
3039
- type EntryProcessResponse = z.infer<typeof EntryProcessResponseSchema>;
3040
- type EntryProcessBatchResponse = z.infer<typeof EntryProcessBatchResponseSchema>;
3041
- type EntryProcessKeyResult = z.infer<typeof EntryProcessKeyResultSchema>;
3042
- type JournalEventData = z.infer<typeof JournalEventDataSchema>;
3043
- type JournalSubscribeRequest = z.infer<typeof JournalSubscribeRequestSchema>;
3044
- type JournalUnsubscribeRequest = z.infer<typeof JournalUnsubscribeRequestSchema>;
3045
- type JournalEventMessage = z.infer<typeof JournalEventMessageSchema>;
3046
- type JournalReadRequest = z.infer<typeof JournalReadRequestSchema>;
3047
- type JournalReadResponse = z.infer<typeof JournalReadResponseSchema>;
3048
- type ConflictResolver = z.infer<typeof ConflictResolverSchema>;
3049
- type RegisterResolverRequest = z.infer<typeof RegisterResolverRequestSchema>;
3050
- type RegisterResolverResponse = z.infer<typeof RegisterResolverResponseSchema>;
3051
- type UnregisterResolverRequest = z.infer<typeof UnregisterResolverRequestSchema>;
3052
- type UnregisterResolverResponse = z.infer<typeof UnregisterResolverResponseSchema>;
3053
- type MergeRejectedMessage = z.infer<typeof MergeRejectedMessageSchema>;
3054
- type ListResolversRequest = z.infer<typeof ListResolversRequestSchema>;
3055
- type ListResolversResponse = z.infer<typeof ListResolversResponseSchema>;
3056
- type SearchOptions$1 = z.infer<typeof SearchOptionsSchema>;
3057
- type SearchPayload = z.infer<typeof SearchPayloadSchema>;
3058
- type SearchMessage = z.infer<typeof SearchMessageSchema>;
3059
- type SearchRespPayload = z.infer<typeof SearchRespPayloadSchema>;
3060
- type SearchRespMessage = z.infer<typeof SearchRespMessageSchema>;
3061
- type SearchUpdateType = z.infer<typeof SearchUpdateTypeSchema>;
3062
- type SearchSubPayload = z.infer<typeof SearchSubPayloadSchema>;
3063
- type SearchSubMessage = z.infer<typeof SearchSubMessageSchema>;
3064
- type SearchUpdatePayload = z.infer<typeof SearchUpdatePayloadSchema>;
3065
- type SearchUpdateMessage = z.infer<typeof SearchUpdateMessageSchema>;
3066
- type SearchUnsubPayload = z.infer<typeof SearchUnsubPayloadSchema>;
3067
- type SearchUnsubMessage = z.infer<typeof SearchUnsubMessageSchema>;
3068
- /**
3069
- * CLUSTER_SEARCH_REQ: Broadcast search request to cluster nodes.
3070
- * Sent from coordinator to data-owning nodes.
3071
- */
3072
- declare const ClusterSearchReqPayloadSchema: z.ZodObject<{
3073
- requestId: z.ZodString;
3074
- mapName: z.ZodString;
3075
- query: z.ZodString;
3076
- options: z.ZodObject<{
3077
- limit: z.ZodNumber;
3078
- minScore: z.ZodOptional<z.ZodNumber>;
3079
- boost: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
3080
- includeMatchedTerms: z.ZodOptional<z.ZodBoolean>;
3081
- afterScore: z.ZodOptional<z.ZodNumber>;
3082
- afterKey: z.ZodOptional<z.ZodString>;
3083
- }, z.core.$strip>;
3084
- timeoutMs: z.ZodOptional<z.ZodNumber>;
3085
- }, z.core.$strip>;
3086
- declare const ClusterSearchReqMessageSchema: z.ZodObject<{
3087
- type: z.ZodLiteral<"CLUSTER_SEARCH_REQ">;
3163
+ counter: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
3164
+ nodeId: z.ZodString;
3165
+ }, z.core.$strip>;
3166
+ }, z.core.$strip>, z.ZodObject<{
3167
+ type: z.ZodLiteral<"LIST_RESOLVERS">;
3168
+ requestId: z.ZodString;
3169
+ mapName: z.ZodOptional<z.ZodString>;
3170
+ }, z.core.$strip>, z.ZodObject<{
3171
+ type: z.ZodLiteral<"LIST_RESOLVERS_RESPONSE">;
3172
+ requestId: z.ZodString;
3173
+ resolvers: z.ZodArray<z.ZodObject<{
3174
+ mapName: z.ZodString;
3175
+ name: z.ZodString;
3176
+ priority: z.ZodOptional<z.ZodNumber>;
3177
+ keyPattern: z.ZodOptional<z.ZodString>;
3178
+ }, z.core.$strip>>;
3179
+ }, z.core.$strip>, z.ZodObject<{
3180
+ type: z.ZodLiteral<"SEARCH">;
3088
3181
  payload: z.ZodObject<{
3089
3182
  requestId: z.ZodString;
3090
3183
  mapName: z.ZodString;
3091
3184
  query: z.ZodString;
3092
- options: z.ZodObject<{
3093
- limit: z.ZodNumber;
3185
+ options: z.ZodOptional<z.ZodObject<{
3186
+ limit: z.ZodOptional<z.ZodNumber>;
3094
3187
  minScore: z.ZodOptional<z.ZodNumber>;
3095
3188
  boost: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
3096
- includeMatchedTerms: z.ZodOptional<z.ZodBoolean>;
3097
- afterScore: z.ZodOptional<z.ZodNumber>;
3098
- afterKey: z.ZodOptional<z.ZodString>;
3099
- }, z.core.$strip>;
3100
- timeoutMs: z.ZodOptional<z.ZodNumber>;
3189
+ }, z.core.$strip>>;
3101
3190
  }, z.core.$strip>;
3102
- }, z.core.$strip>;
3103
- /**
3104
- * CLUSTER_SEARCH_RESP: Response from a node with local search results.
3105
- */
3106
- declare const ClusterSearchRespPayloadSchema: z.ZodObject<{
3107
- requestId: z.ZodString;
3108
- nodeId: z.ZodString;
3109
- results: z.ZodArray<z.ZodObject<{
3110
- key: z.ZodString;
3111
- value: z.ZodUnknown;
3112
- score: z.ZodNumber;
3113
- matchedTerms: z.ZodOptional<z.ZodArray<z.ZodString>>;
3114
- }, z.core.$strip>>;
3115
- totalHits: z.ZodNumber;
3116
- executionTimeMs: z.ZodNumber;
3117
- error: z.ZodOptional<z.ZodString>;
3118
- }, z.core.$strip>;
3119
- declare const ClusterSearchRespMessageSchema: z.ZodObject<{
3120
- type: z.ZodLiteral<"CLUSTER_SEARCH_RESP">;
3191
+ }, z.core.$strip>, z.ZodObject<{
3192
+ type: z.ZodLiteral<"SEARCH_RESP">;
3121
3193
  payload: z.ZodObject<{
3122
3194
  requestId: z.ZodString;
3123
- nodeId: z.ZodString;
3124
3195
  results: z.ZodArray<z.ZodObject<{
3125
3196
  key: z.ZodString;
3126
3197
  value: z.ZodUnknown;
3127
3198
  score: z.ZodNumber;
3128
- matchedTerms: z.ZodOptional<z.ZodArray<z.ZodString>>;
3199
+ matchedTerms: z.ZodArray<z.ZodString>;
3129
3200
  }, z.core.$strip>>;
3130
- totalHits: z.ZodNumber;
3131
- executionTimeMs: z.ZodNumber;
3201
+ totalCount: z.ZodNumber;
3132
3202
  error: z.ZodOptional<z.ZodString>;
3133
3203
  }, z.core.$strip>;
3134
- }, z.core.$strip>;
3135
- /**
3136
- * CLUSTER_SEARCH_SUBSCRIBE: Live distributed search subscription.
3137
- */
3138
- declare const ClusterSearchSubscribePayloadSchema: z.ZodObject<{
3139
- subscriptionId: z.ZodString;
3140
- mapName: z.ZodString;
3141
- query: z.ZodString;
3142
- options: z.ZodOptional<z.ZodObject<{
3143
- limit: z.ZodOptional<z.ZodNumber>;
3144
- minScore: z.ZodOptional<z.ZodNumber>;
3145
- boost: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
3146
- }, z.core.$strip>>;
3147
- }, z.core.$strip>;
3148
- declare const ClusterSearchSubscribeMessageSchema: z.ZodObject<{
3149
- type: z.ZodLiteral<"CLUSTER_SEARCH_SUBSCRIBE">;
3204
+ }, z.core.$strip>, z.ZodObject<{
3205
+ type: z.ZodLiteral<"SEARCH_SUB">;
3150
3206
  payload: z.ZodObject<{
3151
3207
  subscriptionId: z.ZodString;
3152
3208
  mapName: z.ZodString;
@@ -3157,72 +3213,85 @@ declare const ClusterSearchSubscribeMessageSchema: z.ZodObject<{
3157
3213
  boost: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
3158
3214
  }, z.core.$strip>>;
3159
3215
  }, z.core.$strip>;
3160
- }, z.core.$strip>;
3161
- /**
3162
- * CLUSTER_SEARCH_UNSUBSCRIBE: Unsubscribe from distributed search.
3163
- */
3164
- declare const ClusterSearchUnsubscribePayloadSchema: z.ZodObject<{
3165
- subscriptionId: z.ZodString;
3166
- }, z.core.$strip>;
3167
- declare const ClusterSearchUnsubscribeMessageSchema: z.ZodObject<{
3168
- type: z.ZodLiteral<"CLUSTER_SEARCH_UNSUBSCRIBE">;
3216
+ }, z.core.$strip>, z.ZodObject<{
3217
+ type: z.ZodLiteral<"SEARCH_UPDATE">;
3169
3218
  payload: z.ZodObject<{
3170
3219
  subscriptionId: z.ZodString;
3220
+ key: z.ZodString;
3221
+ value: z.ZodUnknown;
3222
+ score: z.ZodNumber;
3223
+ matchedTerms: z.ZodArray<z.ZodString>;
3224
+ type: z.ZodEnum<{
3225
+ UPDATE: "UPDATE";
3226
+ ENTER: "ENTER";
3227
+ LEAVE: "LEAVE";
3228
+ }>;
3171
3229
  }, z.core.$strip>;
3172
- }, z.core.$strip>;
3173
- /**
3174
- * CLUSTER_SEARCH_UPDATE: Delta update for live distributed search.
3175
- */
3176
- declare const ClusterSearchUpdatePayloadSchema: z.ZodObject<{
3177
- subscriptionId: z.ZodString;
3178
- nodeId: z.ZodString;
3179
- key: z.ZodString;
3180
- value: z.ZodUnknown;
3181
- score: z.ZodNumber;
3182
- matchedTerms: z.ZodOptional<z.ZodArray<z.ZodString>>;
3183
- type: z.ZodEnum<{
3184
- UPDATE: "UPDATE";
3185
- ENTER: "ENTER";
3186
- LEAVE: "LEAVE";
3187
- }>;
3188
- }, z.core.$strip>;
3189
- declare const ClusterSearchUpdateMessageSchema: z.ZodObject<{
3190
- type: z.ZodLiteral<"CLUSTER_SEARCH_UPDATE">;
3230
+ }, z.core.$strip>, z.ZodObject<{
3231
+ type: z.ZodLiteral<"SEARCH_UNSUB">;
3232
+ payload: z.ZodObject<{
3233
+ subscriptionId: z.ZodString;
3234
+ }, z.core.$strip>;
3235
+ }, z.core.$strip>, z.ZodObject<{
3236
+ type: z.ZodLiteral<"CLUSTER_SUB_REGISTER">;
3237
+ payload: z.ZodObject<{
3238
+ subscriptionId: z.ZodString;
3239
+ coordinatorNodeId: z.ZodString;
3240
+ mapName: z.ZodString;
3241
+ type: z.ZodEnum<{
3242
+ SEARCH: "SEARCH";
3243
+ QUERY: "QUERY";
3244
+ }>;
3245
+ searchQuery: z.ZodOptional<z.ZodString>;
3246
+ searchOptions: z.ZodOptional<z.ZodObject<{
3247
+ limit: z.ZodOptional<z.ZodNumber>;
3248
+ minScore: z.ZodOptional<z.ZodNumber>;
3249
+ boost: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
3250
+ }, z.core.$strip>>;
3251
+ queryPredicate: z.ZodOptional<z.ZodAny>;
3252
+ querySort: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
3253
+ asc: "asc";
3254
+ desc: "desc";
3255
+ }>>>;
3256
+ }, z.core.$strip>;
3257
+ }, z.core.$strip>, z.ZodObject<{
3258
+ type: z.ZodLiteral<"CLUSTER_SUB_ACK">;
3191
3259
  payload: z.ZodObject<{
3192
3260
  subscriptionId: z.ZodString;
3193
3261
  nodeId: z.ZodString;
3262
+ success: z.ZodBoolean;
3263
+ error: z.ZodOptional<z.ZodString>;
3264
+ initialResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
3265
+ key: z.ZodString;
3266
+ value: z.ZodUnknown;
3267
+ score: z.ZodOptional<z.ZodNumber>;
3268
+ matchedTerms: z.ZodOptional<z.ZodArray<z.ZodString>>;
3269
+ }, z.core.$strip>>>;
3270
+ totalHits: z.ZodOptional<z.ZodNumber>;
3271
+ }, z.core.$strip>;
3272
+ }, z.core.$strip>, z.ZodObject<{
3273
+ type: z.ZodLiteral<"CLUSTER_SUB_UPDATE">;
3274
+ payload: z.ZodObject<{
3275
+ subscriptionId: z.ZodString;
3276
+ sourceNodeId: z.ZodString;
3194
3277
  key: z.ZodString;
3195
3278
  value: z.ZodUnknown;
3196
- score: z.ZodNumber;
3279
+ score: z.ZodOptional<z.ZodNumber>;
3197
3280
  matchedTerms: z.ZodOptional<z.ZodArray<z.ZodString>>;
3198
- type: z.ZodEnum<{
3281
+ changeType: z.ZodEnum<{
3199
3282
  UPDATE: "UPDATE";
3200
3283
  ENTER: "ENTER";
3201
3284
  LEAVE: "LEAVE";
3202
3285
  }>;
3286
+ timestamp: z.ZodNumber;
3203
3287
  }, z.core.$strip>;
3204
- }, z.core.$strip>;
3205
- type ClusterSearchReqPayload = z.infer<typeof ClusterSearchReqPayloadSchema>;
3206
- type ClusterSearchReqMessage = z.infer<typeof ClusterSearchReqMessageSchema>;
3207
- type ClusterSearchRespPayload = z.infer<typeof ClusterSearchRespPayloadSchema>;
3208
- type ClusterSearchRespMessage = z.infer<typeof ClusterSearchRespMessageSchema>;
3209
- type ClusterSearchSubscribePayload = z.infer<typeof ClusterSearchSubscribePayloadSchema>;
3210
- type ClusterSearchSubscribeMessage = z.infer<typeof ClusterSearchSubscribeMessageSchema>;
3211
- type ClusterSearchUnsubscribePayload = z.infer<typeof ClusterSearchUnsubscribePayloadSchema>;
3212
- type ClusterSearchUnsubscribeMessage = z.infer<typeof ClusterSearchUnsubscribeMessageSchema>;
3213
- type ClusterSearchUpdatePayload = z.infer<typeof ClusterSearchUpdatePayloadSchema>;
3214
- type ClusterSearchUpdateMessage = z.infer<typeof ClusterSearchUpdateMessageSchema>;
3215
- type ClusterSubRegisterPayload = z.infer<typeof ClusterSubRegisterPayloadSchema>;
3216
- type ClusterSubRegisterMessage = z.infer<typeof ClusterSubRegisterMessageSchema>;
3217
- type ClusterSubAckPayload = z.infer<typeof ClusterSubAckPayloadSchema>;
3218
- type ClusterSubAckMessage = z.infer<typeof ClusterSubAckMessageSchema>;
3219
- type ClusterSubUpdatePayload = z.infer<typeof ClusterSubUpdatePayloadSchema>;
3220
- type ClusterSubUpdateMessage = z.infer<typeof ClusterSubUpdateMessageSchema>;
3221
- type ClusterSubUnregisterPayload = z.infer<typeof ClusterSubUnregisterPayloadSchema>;
3222
- type ClusterSubUnregisterMessage = z.infer<typeof ClusterSubUnregisterMessageSchema>;
3223
- type CursorStatus$1 = z.infer<typeof CursorStatusSchema>;
3224
- type QueryRespPayload = z.infer<typeof QueryRespPayloadSchema>;
3225
- type QueryRespMessage = z.infer<typeof QueryRespMessageSchema>;
3288
+ }, z.core.$strip>, z.ZodObject<{
3289
+ type: z.ZodLiteral<"CLUSTER_SUB_UNREGISTER">;
3290
+ payload: z.ZodObject<{
3291
+ subscriptionId: z.ZodString;
3292
+ }, z.core.$strip>;
3293
+ }, z.core.$strip>], "type">;
3294
+ type Message = z.infer<typeof MessageSchema>;
3226
3295
 
3227
3296
  /**
3228
3297
  * Write Concern - Configurable Acknowledgment Levels
@@ -3351,7 +3420,7 @@ declare function isWriteConcernAchieved(achieved: Set<WriteConcern>, target: Wri
3351
3420
  declare function getHighestWriteConcernLevel(achieved: Set<WriteConcern>): WriteConcern;
3352
3421
 
3353
3422
  /**
3354
- * Cluster types for Phase 4: Clustering Improvements
3423
+ * Cluster types
3355
3424
  *
3356
3425
  * These types are shared between client and server packages
3357
3426
  * for partition-aware routing and cluster communication.
@@ -4330,7 +4399,7 @@ interface QueryOptions {
4330
4399
  sort?: Record<string, 'asc' | 'desc'>;
4331
4400
  /** Maximum number of results to return */
4332
4401
  limit?: number;
4333
- /** Cursor for pagination (Phase 14.1: replaces offset) */
4402
+ /** Cursor for pagination (replaces offset) */
4334
4403
  cursor?: string;
4335
4404
  }
4336
4405
  /**
@@ -4437,7 +4506,7 @@ interface QueryPlan {
4437
4506
  };
4438
4507
  /** Limit configuration */
4439
4508
  limit?: number;
4440
- /** Cursor for pagination (Phase 14.1: replaces offset) */
4509
+ /** Cursor for pagination (replaces offset) */
4441
4510
  cursor?: string;
4442
4511
  }
4443
4512
  /**
@@ -4952,7 +5021,7 @@ declare class InvertedIndex<K, V, A extends string = string> implements Index<K,
4952
5021
  }
4953
5022
 
4954
5023
  /**
4955
- * CompoundIndex Implementation (Phase 9.03)
5024
+ * CompoundIndex Implementation
4956
5025
  *
4957
5026
  * Multi-attribute index for optimizing AND queries.
4958
5027
  * Creates a composite key from multiple attribute values for O(1) lookup.
@@ -5096,7 +5165,7 @@ interface CompoundIndexStats extends IndexStats {
5096
5165
  }
5097
5166
 
5098
5167
  /**
5099
- * Types for Adaptive Indexing System (Phase 8.02)
5168
+ * Types for Adaptive Indexing System
5100
5169
  *
5101
5170
  * Defines interfaces for query pattern tracking, index suggestions,
5102
5171
  * and auto-indexing configuration.
@@ -5130,7 +5199,7 @@ interface QueryStatistics {
5130
5199
  hasIndex: boolean;
5131
5200
  }
5132
5201
  /**
5133
- * Statistics for compound query patterns (Phase 9.03).
5202
+ * * Statistics for compound query patterns.
5134
5203
  * Tracks AND combinations of attributes for compound index suggestions.
5135
5204
  */
5136
5205
  interface CompoundQueryStatistics {
@@ -5238,7 +5307,7 @@ interface AdaptiveIndexingConfig {
5238
5307
  autoIndex?: AutoIndexConfig;
5239
5308
  }
5240
5309
  /**
5241
- * Progress callback for lazy index building (Phase 9.01).
5310
+ * * Progress callback for lazy index building.
5242
5311
  */
5243
5312
  type IndexBuildProgressCallback = (attributeName: string, progress: number, // 0-100
5244
5313
  recordsProcessed: number, totalRecords: number) => void;
@@ -5251,13 +5320,13 @@ interface IndexedMapOptions {
5251
5320
  /** Default indexing strategy (default: 'none') */
5252
5321
  defaultIndexing?: DefaultIndexingStrategy;
5253
5322
  /**
5254
- * Enable lazy index building (Phase 9.01).
5323
+ * Enable lazy index building.
5255
5324
  * When true, indexes are not built until first query.
5256
5325
  * Default: false
5257
5326
  */
5258
5327
  lazyIndexBuilding?: boolean;
5259
5328
  /**
5260
- * Callback for index building progress (Phase 9.01).
5329
+ * Callback for index building progress.
5261
5330
  * Called during lazy index materialization.
5262
5331
  */
5263
5332
  onIndexBuilding?: IndexBuildProgressCallback;
@@ -5266,7 +5335,7 @@ interface IndexedMapOptions {
5266
5335
  /**
5267
5336
  * Lazy Index Types
5268
5337
  *
5269
- * Types and interfaces for lazy index building (Phase 9.01).
5338
+ * Types and interfaces for lazy index building.
5270
5339
  * Lazy indexes defer actual index construction until first query.
5271
5340
  *
5272
5341
  * @module query/indexes/lazy/types
@@ -5315,7 +5384,7 @@ interface LazyIndexOptions {
5315
5384
  /**
5316
5385
  * LazyHashIndex Implementation
5317
5386
  *
5318
- * Hash-based index with deferred building (Phase 9.01).
5387
+ * Hash-based index with deferred building.
5319
5388
  * Records are buffered until first query, then index is materialized.
5320
5389
  *
5321
5390
  * Benefits:
@@ -5372,7 +5441,7 @@ declare class LazyHashIndex<K, V, A> implements LazyIndex<K, V, A> {
5372
5441
  /**
5373
5442
  * LazyNavigableIndex Implementation
5374
5443
  *
5375
- * Sorted index with deferred building (Phase 9.01).
5444
+ * Sorted index with deferred building.
5376
5445
  * Records are buffered until first query, then index is materialized.
5377
5446
  *
5378
5447
  * Benefits:
@@ -5441,7 +5510,7 @@ declare class LazyNavigableIndex<K, V, A extends string | number> implements Laz
5441
5510
  /**
5442
5511
  * LazyInvertedIndex Implementation
5443
5512
  *
5444
- * Full-text search index with deferred building (Phase 9.01).
5513
+ * Full-text search index with deferred building.
5445
5514
  * Records are buffered until first query, then index is materialized.
5446
5515
  *
5447
5516
  * Benefits:
@@ -6487,7 +6556,7 @@ declare function createFieldComparator<V>(field: string, direction: 'asc' | 'des
6487
6556
  * Implements early termination for efficiency.
6488
6557
  *
6489
6558
  * NOTE: The offset parameter is intentionally retained in this internal component
6490
- * even though Phase 14.1 replaced offset with cursor-based pagination in the query API.
6559
+ * even though cursor-based pagination replaced offset in the query API.
6491
6560
  * This class is used internally by:
6492
6561
  * - EventJournalService (SQL queries require numeric offset)
6493
6562
  * - Index result set operations where offset is computed internally
@@ -6579,7 +6648,7 @@ declare class LimitResultSet<K> implements ResultSet<K> {
6579
6648
  declare class IndexRegistry<K, V> {
6580
6649
  /** Indexes grouped by attribute name */
6581
6650
  private attributeIndexes;
6582
- /** Compound indexes (Phase 9.03) - keyed by sorted attribute names */
6651
+ /** Compound indexes - keyed by sorted attribute names */
6583
6652
  private compoundIndexes;
6584
6653
  /** Fallback index for full scan (optional) */
6585
6654
  private fallbackIndex;
@@ -6591,7 +6660,7 @@ declare class IndexRegistry<K, V> {
6591
6660
  */
6592
6661
  addIndex<A>(index: Index<K, V, A>): void;
6593
6662
  /**
6594
- * Register a compound index (Phase 9.03).
6663
+ * Register a compound index.
6595
6664
  *
6596
6665
  * @param index - Compound index to register
6597
6666
  */
@@ -6604,7 +6673,7 @@ declare class IndexRegistry<K, V> {
6604
6673
  */
6605
6674
  removeIndex<A>(index: Index<K, V, A>): boolean;
6606
6675
  /**
6607
- * Remove a compound index (Phase 9.03).
6676
+ * Remove a compound index.
6608
6677
  *
6609
6678
  * @param index - Compound index to remove
6610
6679
  * @returns true if index was found and removed
@@ -6654,7 +6723,7 @@ declare class IndexRegistry<K, V> {
6654
6723
  */
6655
6724
  findIndexes(attributeName: string, queryType: string): Index<K, V, unknown>[];
6656
6725
  /**
6657
- * Find a compound index that covers the given attribute names (Phase 9.03).
6726
+ * Find a compound index that covers the given attribute names.
6658
6727
  * The compound index must cover ALL the attributes (exact match or superset).
6659
6728
  *
6660
6729
  * @param attributeNames - Array of attribute names to search for
@@ -6662,14 +6731,14 @@ declare class IndexRegistry<K, V> {
6662
6731
  */
6663
6732
  findCompoundIndex(attributeNames: string[]): CompoundIndex<K, V> | null;
6664
6733
  /**
6665
- * Check if a compound index exists for the given attributes (Phase 9.03).
6734
+ * Check if a compound index exists for the given attributes.
6666
6735
  *
6667
6736
  * @param attributeNames - Array of attribute names
6668
6737
  * @returns true if a compound index exists
6669
6738
  */
6670
6739
  hasCompoundIndex(attributeNames: string[]): boolean;
6671
6740
  /**
6672
- * Get all compound indexes (Phase 9.03).
6741
+ * Get all compound indexes.
6673
6742
  *
6674
6743
  * @returns Array of all compound indexes
6675
6744
  */
@@ -6738,7 +6807,7 @@ interface IndexRegistryStats {
6738
6807
  totalIndexes: number;
6739
6808
  /** Number of indexed attributes */
6740
6809
  indexedAttributes: number;
6741
- /** Number of compound indexes (Phase 9.03) */
6810
+ /** Number of compound indexes */
6742
6811
  compoundIndexes?: number;
6743
6812
  /** Stats for each index */
6744
6813
  indexes: Array<{
@@ -6931,7 +7000,7 @@ interface QueryOptimizerOptions<K, V> {
6931
7000
  indexRegistry: IndexRegistry<K, V>;
6932
7001
  /** Standing query registry for pre-computed queries (optional) */
6933
7002
  standingQueryRegistry?: StandingQueryRegistry<K, V>;
6934
- /** Full-text index registry for FTS queries (Phase 12) */
7003
+ /** Full-text index registry for FTS queries */
6935
7004
  fullTextIndexes?: Map<string, FullTextIndex>;
6936
7005
  }
6937
7006
  /**
@@ -6960,32 +7029,31 @@ declare class QueryOptimizer<K, V> {
6960
7029
  /**
6961
7030
  * Create a QueryOptimizer.
6962
7031
  *
6963
- * @param indexRegistryOrOptions - IndexRegistry or options object
6964
- * @param standingQueryRegistry - Optional StandingQueryRegistry (deprecated, use options)
7032
+ * @param options - QueryOptimizer options
6965
7033
  */
6966
- constructor(indexRegistryOrOptions: IndexRegistry<K, V> | QueryOptimizerOptions<K, V>, standingQueryRegistry?: StandingQueryRegistry<K, V>);
7034
+ constructor(options: QueryOptimizerOptions<K, V>);
6967
7035
  /**
6968
- * Register a full-text index for a field (Phase 12).
7036
+ * Register a full-text index for a field.
6969
7037
  *
6970
7038
  * @param field - Field name
6971
7039
  * @param index - FullTextIndex instance
6972
7040
  */
6973
7041
  registerFullTextIndex(field: string, index: FullTextIndex): void;
6974
7042
  /**
6975
- * Unregister a full-text index (Phase 12).
7043
+ * Unregister a full-text index.
6976
7044
  *
6977
7045
  * @param field - Field name
6978
7046
  */
6979
7047
  unregisterFullTextIndex(field: string): void;
6980
7048
  /**
6981
- * Get registered full-text index for a field (Phase 12).
7049
+ * Get registered full-text index for a field.
6982
7050
  *
6983
7051
  * @param field - Field name
6984
7052
  * @returns FullTextIndex or undefined
6985
7053
  */
6986
7054
  getFullTextIndex(field: string): FullTextIndex | undefined;
6987
7055
  /**
6988
- * Check if a full-text index exists for a field (Phase 12).
7056
+ * Check if a full-text index exists for a field.
6989
7057
  *
6990
7058
  * @param field - Field name
6991
7059
  * @returns True if FTS index exists
@@ -7015,26 +7083,26 @@ declare class QueryOptimizer<K, V> {
7015
7083
  */
7016
7084
  private optimizeNode;
7017
7085
  /**
7018
- * Optimize a full-text search query (Phase 12).
7086
+ * Optimize a full-text search query.
7019
7087
  */
7020
7088
  private optimizeFTS;
7021
7089
  /**
7022
- * Build an FTS scan step from a query node (Phase 12).
7090
+ * Build an FTS scan step from a query node.
7023
7091
  */
7024
7092
  private buildFTSScanStep;
7025
7093
  /**
7026
- * Estimate cost of FTS query based on index size (Phase 12).
7094
+ * Estimate cost of FTS query based on index size.
7027
7095
  */
7028
7096
  private estimateFTSCost;
7029
7097
  /**
7030
- * Classify predicates by type for hybrid query planning (Phase 12).
7098
+ * Classify predicates by type for hybrid query planning.
7031
7099
  *
7032
7100
  * @param predicates - Array of predicates to classify
7033
7101
  * @returns Classified predicates
7034
7102
  */
7035
7103
  classifyPredicates(predicates: Query[]): ClassifiedPredicates;
7036
7104
  /**
7037
- * Determine fusion strategy based on step types (Phase 12).
7105
+ * Determine fusion strategy based on step types.
7038
7106
  *
7039
7107
  * Strategy selection:
7040
7108
  * - All binary (exact/range with no scores) → 'intersection'
@@ -7046,7 +7114,7 @@ declare class QueryOptimizer<K, V> {
7046
7114
  */
7047
7115
  determineFusionStrategy(steps: PlanStep[]): FusionStrategy;
7048
7116
  /**
7049
- * Check if a plan step returns scored results (Phase 12).
7117
+ * Check if a plan step returns scored results.
7050
7118
  */
7051
7119
  private stepReturnsScored;
7052
7120
  /**
@@ -7062,14 +7130,14 @@ declare class QueryOptimizer<K, V> {
7062
7130
  * Strategy: Find child with lowest cost, use as base, filter with rest.
7063
7131
  *
7064
7132
  * CQEngine "smallest first" strategy:
7065
- * 1. Check for CompoundIndex covering all eq children (Phase 9.03)
7133
+ * 1. Check for CompoundIndex covering all eq children
7066
7134
  * 2. Sort children by merge cost
7067
7135
  * 3. Use intersection if multiple indexes available
7068
7136
  * 4. Apply remaining predicates as filters
7069
7137
  */
7070
7138
  private optimizeAnd;
7071
7139
  /**
7072
- * Try to use a CompoundIndex for an AND query (Phase 9.03).
7140
+ * Try to use a CompoundIndex for an AND query.
7073
7141
  *
7074
7142
  * Returns a compound index scan step if:
7075
7143
  * 1. All children are simple 'eq' queries
@@ -7274,7 +7342,7 @@ interface LiveQueryManagerStats extends StandingQueryRegistryStats {
7274
7342
  }
7275
7343
 
7276
7344
  /**
7277
- * QueryPatternTracker (Phase 8.02.1)
7345
+ * * QueryPatternTracker
7278
7346
  *
7279
7347
  * Collects runtime statistics on query execution patterns.
7280
7348
  * Used by IndexAdvisor to generate index suggestions.
@@ -7322,7 +7390,7 @@ interface QueryPatternTrackerOptions {
7322
7390
  * tracker.recordQuery('category', 'eq', 5.2, 100, false);
7323
7391
  * tracker.recordQuery('category', 'eq', 4.8, 100, false);
7324
7392
  *
7325
- * // Record compound AND queries (Phase 9.03)
7393
+ * * // Record compound AND queries
7326
7394
  * tracker.recordCompoundQuery(['status', 'category'], 10.5, 50, false);
7327
7395
  *
7328
7396
  * // Get statistics
@@ -7349,7 +7417,7 @@ declare class QueryPatternTracker {
7349
7417
  */
7350
7418
  recordQuery(attribute: string, queryType: TrackedQueryType, executionTime: number, resultSize: number, hasIndex: boolean): void;
7351
7419
  /**
7352
- * Record a compound (AND) query execution for pattern tracking (Phase 9.03).
7420
+ * Record a compound (AND) query execution for pattern tracking.
7353
7421
  *
7354
7422
  * @param attributes - Array of attribute names being queried together
7355
7423
  * @param executionTime - Query execution time in milliseconds
@@ -7358,7 +7426,7 @@ declare class QueryPatternTracker {
7358
7426
  */
7359
7427
  recordCompoundQuery(attributes: string[], executionTime: number, resultSize: number, hasCompoundIndex: boolean): void;
7360
7428
  /**
7361
- * Get all compound query statistics (Phase 9.03).
7429
+ * Get all compound query statistics.
7362
7430
  *
7363
7431
  * @returns Array of compound query statistics, sorted by query count descending
7364
7432
  */
@@ -7464,17 +7532,17 @@ declare class QueryPatternTracker {
7464
7532
  */
7465
7533
  private pruneStale;
7466
7534
  /**
7467
- * Evict the oldest compound query entry (Phase 9.03).
7535
+ * Evict the oldest compound query entry.
7468
7536
  */
7469
7537
  private evictOldestCompound;
7470
7538
  /**
7471
- * Prune stale compound statistics (Phase 9.03).
7539
+ * Prune stale compound statistics.
7472
7540
  */
7473
7541
  private pruneStaleCompound;
7474
7542
  }
7475
7543
 
7476
7544
  /**
7477
- * IndexAdvisor (Phase 8.02.2)
7545
+ * * IndexAdvisor
7478
7546
  *
7479
7547
  * Analyzes query patterns and generates index suggestions.
7480
7548
  * Used in production mode to help developers optimize their indexes.
@@ -7629,7 +7697,7 @@ declare class IndexAdvisor {
7629
7697
  }
7630
7698
 
7631
7699
  /**
7632
- * AutoIndexManager (Phase 8.02.3)
7700
+ * * AutoIndexManager
7633
7701
  *
7634
7702
  * Automatically creates indexes based on query patterns.
7635
7703
  * Intended for development mode to simplify index management.
@@ -7778,7 +7846,7 @@ declare class AutoIndexManager<K, V> {
7778
7846
  }
7779
7847
 
7780
7848
  /**
7781
- * QueryExecutor Implementation (Phase 12)
7849
+ * QueryExecutor Implementation
7782
7850
  *
7783
7851
  * Executes query plans produced by QueryOptimizer.
7784
7852
  * Supports hybrid queries with FTS and traditional predicates,
@@ -7805,7 +7873,7 @@ interface QueryResult<K, V> {
7805
7873
  */
7806
7874
  type CursorStatus = 'valid' | 'expired' | 'invalid' | 'none';
7807
7875
  /**
7808
- * Extended query result with cursor info (Phase 14.1).
7876
+ * Extended query result with cursor info.
7809
7877
  */
7810
7878
  interface QueryResultWithCursor<K, V> {
7811
7879
  /** Query results */
@@ -7819,7 +7887,7 @@ interface QueryResultWithCursor<K, V> {
7819
7887
  }
7820
7888
 
7821
7889
  /**
7822
- * QueryCursor - Cursor-based pagination for distributed queries (Phase 14.1)
7890
+ * QueryCursor - Cursor-based pagination for distributed queries
7823
7891
  *
7824
7892
  * Implements opaque cursor encoding for efficient deep pagination in distributed
7825
7893
  * predicate-based queries. Cursors encode the last seen position per node, enabling
@@ -8081,6 +8149,9 @@ declare function decodeBase64Url(encoded: string): string;
8081
8149
  */
8082
8150
  declare function compareValues(a: unknown, b: unknown): number;
8083
8151
 
8152
+ declare const logger: pino.Logger<never, boolean>;
8153
+ type Logger = typeof logger;
8154
+
8084
8155
  /**
8085
8156
  * IndexedLWWMap Implementation
8086
8157
  *
@@ -8092,7 +8163,7 @@ declare function compareValues(a: unknown, b: unknown): number;
8092
8163
  * - Live queries with StandingQueryIndex
8093
8164
  * - Automatic index updates on CRDT operations
8094
8165
  * - Cost-based query optimization
8095
- * - Adaptive indexing with query pattern tracking (Phase 8.02)
8166
+ * - Adaptive indexing with query pattern tracking
8096
8167
  *
8097
8168
  * @module IndexedLWWMap
8098
8169
  */
@@ -8185,7 +8256,7 @@ declare class IndexedLWWMap<K extends string, V> extends LWWMap<K, V> {
8185
8256
  * Execute a query using indexes.
8186
8257
  * Returns lazy ResultSet of matching keys.
8187
8258
  *
8188
- * Also tracks query patterns for adaptive indexing (Phase 8.02).
8259
+ * Also tracks query patterns for adaptive indexing.
8189
8260
  *
8190
8261
  * @param query - Query to execute
8191
8262
  * @returns ResultSet of matching keys
@@ -8409,7 +8480,7 @@ declare class IndexedLWWMap<K extends string, V> extends LWWMap<K, V> {
8409
8480
  * - Composite key indexing (key:tag)
8410
8481
  * - Automatic index updates on CRDT operations
8411
8482
  * - Lazy filtering for tombstones
8412
- * - Adaptive indexing with query pattern tracking (Phase 8.02)
8483
+ * - Adaptive indexing with query pattern tracking
8413
8484
  *
8414
8485
  * @module IndexedORMap
8415
8486
  */
@@ -8563,7 +8634,7 @@ declare class IndexedORMap<K extends string, V> extends ORMap<K, V> {
8563
8634
  * Execute a query across all records.
8564
8635
  * Returns array of matching results with key, tag, and value.
8565
8636
  *
8566
- * Also tracks query patterns for adaptive indexing (Phase 8.02).
8637
+ * Also tracks query patterns for adaptive indexing.
8567
8638
  *
8568
8639
  * @param query - Query to execute
8569
8640
  * @returns Array of query results
@@ -8989,4 +9060,256 @@ declare class SearchCursor {
8989
9060
  static merge(cursors: SearchCursorData[], query: string): SearchCursorData;
8990
9061
  }
8991
9062
 
8992
- export { type Attribute, AuthMessageSchema, type BM25Options, BM25Scorer, type BatchMessage, BatchMessageSchema, BuiltInProcessors, BuiltInResolvers, type CircuitBreakerConfig, type ClientOp, ClientOpMessageSchema, ClientOpSchema, type ClusterClientConfig, type ClusterEvents, type ReadOptions as ClusterReadOptions, type ClusterSearchReqMessage, ClusterSearchReqMessageSchema, type ClusterSearchReqPayload, ClusterSearchReqPayloadSchema, type ClusterSearchRespMessage, ClusterSearchRespMessageSchema, type ClusterSearchRespPayload, ClusterSearchRespPayloadSchema, type ClusterSearchSubscribeMessage, ClusterSearchSubscribeMessageSchema, type ClusterSearchSubscribePayload, ClusterSearchSubscribePayloadSchema, type ClusterSearchUnsubscribeMessage, ClusterSearchUnsubscribeMessageSchema, type ClusterSearchUnsubscribePayload, ClusterSearchUnsubscribePayloadSchema, type ClusterSearchUpdateMessage, ClusterSearchUpdateMessageSchema, type ClusterSearchUpdatePayload, ClusterSearchUpdatePayloadSchema, type ClusterSubAckMessage, ClusterSubAckMessageSchema, type ClusterSubAckPayload, ClusterSubAckPayloadSchema, type ClusterSubRegisterMessage, ClusterSubRegisterMessageSchema, type ClusterSubRegisterPayload, ClusterSubRegisterPayloadSchema, type ClusterSubUnregisterMessage, ClusterSubUnregisterMessageSchema, type ClusterSubUnregisterPayload, ClusterSubUnregisterPayloadSchema, type ClusterSubUpdateMessage, ClusterSubUpdateMessageSchema, type ClusterSubUpdatePayload, ClusterSubUpdatePayloadSchema, type WriteOptions as ClusterWriteOptions, type CompareFn, type ConflictResolver, type ConflictResolverDef, ConflictResolverDefSchema, type ConflictResolverFn, ConflictResolverSchema, type ConnectionPoolConfig, type ConnectionState, ConsistencyLevel, CounterRequestSchema, CounterResponseSchema, CounterSyncSchema, CounterUpdateSchema, type CursorStatus$1 as CursorStatus, CursorStatusSchema, type CursorableQueryResult, type CursorableResult, DEFAULT_BACKUP_COUNT, DEFAULT_CIRCUIT_BREAKER_CONFIG, DEFAULT_CONNECTION_POOL_CONFIG, DEFAULT_CURSOR_MAX_AGE_MS, DEFAULT_EVENT_JOURNAL_CONFIG, DEFAULT_MIGRATION_CONFIG, DEFAULT_PARTITION_ROUTER_CONFIG, DEFAULT_PROCESSOR_RATE_LIMITS, DEFAULT_QUERY_CURSOR_MAX_AGE_MS, DEFAULT_REPLICATION_CONFIG, DEFAULT_RESOLVER_RATE_LIMITS, DEFAULT_STOP_WORDS, DEFAULT_WRITE_CONCERN_TIMEOUT, ENGLISH_STOPWORDS, type EntryProcessBatchRequest, EntryProcessBatchRequestSchema, type EntryProcessBatchResponse, EntryProcessBatchResponseSchema, type EntryProcessKeyResult, EntryProcessKeyResultSchema, type EntryProcessRequest, EntryProcessRequestSchema, type EntryProcessResponse, EntryProcessResponseSchema, type EntryProcessorDef, EntryProcessorDefSchema, type EntryProcessorFn, type EntryProcessorResult, EntryProcessorSchema, type EventJournal, type EventJournalConfig, EventJournalImpl, FORBIDDEN_PATTERNS, BM25InvertedIndex as FTSInvertedIndex, type SearchOptions as FTSSearchOptions, type SearchResult as FTSSearchResult, BM25Tokenizer as FTSTokenizer, type TokenizerOptions as FTSTokenizerOptions, FallbackIndex, type FilterStep, FilteringResultSet, type FullScanStep, FullTextIndex, type FullTextIndexConfig, HLC, HashIndex, type Index, type IndexQuery, IndexRegistry, type IndexRegistryStats, type IndexScanStep, type IndexStats, IndexedLWWMap, IndexedORMap, IntersectionResultSet, type IntersectionStep, InvertedIndex, type InvertedIndexStats, type IteratorFactory, type JournalEvent, type JournalEventData, JournalEventDataSchema, type JournalEventInput, type JournalEventListener, type JournalEventMessage, JournalEventMessageSchema, type JournalEventType, JournalEventTypeSchema, type JournalReadRequest, JournalReadRequestSchema, type JournalReadResponse, JournalReadResponseSchema, type JournalSubscribeRequest, JournalSubscribeRequestSchema, type JournalUnsubscribeRequest, JournalUnsubscribeRequestSchema, LWWMap, type LWWRecord, LWWRecordSchema, LazyResultSet, LimitResultSet, type ListResolversRequest, ListResolversRequestSchema, type ListResolversResponse, ListResolversResponseSchema, type LiveQueryCallback, type LiveQueryDeltaEvent, type LiveQueryEvent, type LiveQueryInitialEvent, LiveQueryManager, type LiveQueryManagerOptions, type LiveQueryManagerStats, LockReleaseSchema, LockRequestSchema, type LogicalQueryNode, LowercaseFilter, type MatchOptions, MaxLengthFilter, type MergeContext, type MergeKeyResult, type MergeRejectedMessage, MergeRejectedMessageSchema, type MergeRejection, type MergeResult, type MergedResult, MerkleReqBucketMessageSchema, MerkleTree, type Message, MessageSchema, type MigrationChunkAckMessage, type MigrationChunkMessage, type MigrationCompleteMessage, type MigrationConfig, type MigrationMessage, type MigrationMetrics, type MigrationStartMessage, type MigrationStatus, type MigrationVerifyMessage, MinLengthFilter, MultiValueAttribute, NGramTokenizer, NavigableIndex, type NodeHealth, type NodeInfo, type NodeStatus, type NotOwnerError, type NotStep, ORMap, ORMapDiffRequestSchema, ORMapDiffResponseSchema, type ORMapMerkleNode, ORMapMerkleReqBucketSchema, ORMapMerkleTree, ORMapPushDiffSchema, type ORMapQueryResult, type ORMapRecord, ORMapRecordSchema, type ORMapSearchResult, type ORMapSnapshot, ORMapSyncInitSchema, ORMapSyncRespBucketsSchema, ORMapSyncRespLeafSchema, ORMapSyncRespRootSchema, type OpAckMessage, OpAckMessageSchema, OpBatchMessageSchema, type OpRejectedMessage, OpRejectedMessageSchema, type OpResult, OpResultSchema, PARTITION_COUNT, type PNCounter, type PNCounterConfig, PNCounterImpl, type PNCounterState, type PNCounterStateObject, PNCounterStateObjectSchema, type PartitionChange, type PartitionInfo, type PartitionMap, type PartitionMapDeltaMessage, type PartitionMapMessage, type PartitionMapRequestMessage, PartitionMapRequestSchema, type PartitionMigration, type PartitionRouterConfig, PartitionState, type PendingWrite, type PermissionPolicy, type PermissionType, type PingMessage, PingMessageSchema, type PlanStep, type PongMessage, PongMessageSchema, type Posting, type PredicateFn, type PredicateNode, PredicateNodeSchema, type PredicateOp, PredicateOpSchema, Predicates, type Principal, type ProcessorRateLimitConfig, type Query$1 as Query, QueryCursor, type QueryCursorData, type QueryCursorOptions, type Query as QueryExpression, type QueryNode, QueryOptimizer, type QueryOptimizerOptions, type QueryOptions, type QueryPlan, type QueryRespMessage, QueryRespMessageSchema, type QueryRespPayload, QueryRespPayloadSchema, type QueryResultWithCursor, QuerySchema, QuerySubMessageSchema, QueryUnsubMessageSchema, RESOLVER_FORBIDDEN_PATTERNS, type RRFConfig, type RankedResult, ReciprocalRankFusion, type RegisterResolverRequest, RegisterResolverRequestSchema, type RegisterResolverResponse, RegisterResolverResponseSchema, type ReplicationAckMessage, type ReplicationBatchAckMessage, type ReplicationBatchMessage, type ReplicationConfig, type ReplicationHealth, type ReplicationLag, type ReplicationMessage, type ReplicationProtocolMessage, type ReplicationResult, type ReplicationTask, type ResolverRateLimitConfig, type ResultSet, Ringbuffer, type RoutingError, type ScoredDocument, SearchCursor, type SearchCursorData, type SearchMessage, SearchMessageSchema, type SearchOptions$1 as SearchOptions, SearchOptionsSchema, type SearchPayload, SearchPayloadSchema, type SearchRespMessage, SearchRespMessageSchema, type SearchRespPayload, SearchRespPayloadSchema, type SearchSubMessage, SearchSubMessageSchema, type SearchSubPayload, SearchSubPayloadSchema, type SearchUnsubMessage, SearchUnsubMessageSchema, type SearchUnsubPayload, SearchUnsubPayloadSchema, type SearchUpdateMessage, SearchUpdateMessageSchema, type SearchUpdatePayload, SearchUpdatePayloadSchema, type SearchUpdateType, SearchUpdateTypeSchema, type SerializedIndex, SetResultSet, SimpleAttribute, type SimpleQueryNode, SortedMap, SortedResultSet, type StaleMapError, type StandingQueryChange, StandingQueryIndex, type StandingQueryIndexOptions, StandingQueryRegistry, type StandingQueryRegistryOptions, type StandingQueryRegistryStats, StopWordFilter, SyncInitMessageSchema, SyncRespBucketsMessageSchema, SyncRespLeafMessageSchema, SyncRespRootMessageSchema, type TermInfo, type Timestamp, TimestampSchema, type TokenFilter, TokenizationPipeline, type TokenizationPipelineOptions, type Tokenizer, TopicMessageEventSchema, TopicPubSchema, TopicSubSchema, TopicUnsubSchema, TrimFilter, UnionResultSet, type UnionStep, UniqueFilter, type UnregisterResolverRequest, UnregisterResolverRequestSchema, type UnregisterResolverResponse, UnregisterResolverResponseSchema, WRITE_CONCERN_ORDER, WhitespaceTokenizer, WordBoundaryTokenizer, WriteConcern, WriteConcernSchema, type WriteConcernValue, type WriteOptions$1 as WriteOptions, type WriteResult, combineHashes, compareHLCTimestamps, compareTimestamps, compareValues, createFieldComparator, createPredicateMatcher, decodeBase64Url, deepMerge, deserialize, disableNativeHash, encodeBase64Url, evaluatePredicate, getHighestWriteConcernLevel, hashORMapEntry, hashORMapRecord, hashObject, hashString, isLogicalQuery, isSimpleQuery, isUsingNativeHash, isWriteConcernAchieved, multiAttribute, porterStem, resetNativeHash, serialize, simpleAttribute, timestampToString, validateProcessorCode, validateResolverCode };
9063
+ /**
9064
+ * Snapshot of a CRDT operation for debugging and replay.
9065
+ */
9066
+ interface CRDTSnapshot {
9067
+ id: string;
9068
+ timestamp: Timestamp;
9069
+ operation: 'set' | 'delete' | 'merge';
9070
+ mapId: string;
9071
+ key?: string;
9072
+ value?: unknown;
9073
+ oldValue?: unknown;
9074
+ nodeId: string;
9075
+ merkleRoot?: string;
9076
+ metadata?: Record<string, unknown>;
9077
+ }
9078
+ /**
9079
+ * Information about a resolved conflict.
9080
+ */
9081
+ interface ConflictInfo {
9082
+ mapId: string;
9083
+ key: string;
9084
+ winnerTimestamp: Timestamp;
9085
+ winnerNodeId: string;
9086
+ winnerValue: unknown;
9087
+ loserTimestamp: Timestamp;
9088
+ loserNodeId: string;
9089
+ loserValue: unknown;
9090
+ resolvedAt: Date;
9091
+ }
9092
+ /**
9093
+ * Statistics about CRDT operations.
9094
+ */
9095
+ interface DebugStatistics {
9096
+ totalOperations: number;
9097
+ operationsByType: Record<string, number>;
9098
+ operationsByNode: Record<string, number>;
9099
+ conflictsResolved: number;
9100
+ timeRange: {
9101
+ start: Timestamp | null;
9102
+ end: Timestamp | null;
9103
+ };
9104
+ uniqueKeys: number;
9105
+ averageOpsPerSecond: number;
9106
+ }
9107
+ /**
9108
+ * Options for querying operations.
9109
+ */
9110
+ interface OperationQueryOptions {
9111
+ mapId?: string;
9112
+ nodeId?: string;
9113
+ operation?: string;
9114
+ since?: Timestamp;
9115
+ until?: Timestamp;
9116
+ limit?: number;
9117
+ }
9118
+ /**
9119
+ * CRDTDebugger - Records and analyzes CRDT operations for debugging.
9120
+ *
9121
+ * Features:
9122
+ * - Record all CRDT operations (set, delete, merge)
9123
+ * - Detect and track conflicts
9124
+ * - Replay operations to any point in time
9125
+ * - Export/import operation history
9126
+ * - Statistics and analysis
9127
+ *
9128
+ * @see PHASE_14C_OBSERVABILITY.md for specification
9129
+ */
9130
+ declare class CRDTDebugger {
9131
+ private snapshots;
9132
+ private conflicts;
9133
+ private maxSnapshots;
9134
+ private enabled;
9135
+ private idCounter;
9136
+ constructor(options?: {
9137
+ maxSnapshots?: number;
9138
+ enabled?: boolean;
9139
+ });
9140
+ isEnabled(): boolean;
9141
+ enable(): void;
9142
+ disable(): void;
9143
+ recordOperation(snapshot: Omit<CRDTSnapshot, 'id'>): void;
9144
+ recordSet(mapId: string, key: string, value: unknown, timestamp: Timestamp, nodeId: string, oldValue?: unknown, merkleRoot?: string): void;
9145
+ recordDelete(mapId: string, key: string, timestamp: Timestamp, nodeId: string, oldValue?: unknown, merkleRoot?: string): void;
9146
+ recordMerge(mapId: string, key: string, value: unknown, timestamp: Timestamp, nodeId: string, wasUpdated: boolean, oldValue?: unknown, merkleRoot?: string): void;
9147
+ recordConflict(conflict: ConflictInfo): void;
9148
+ getOperations(options?: OperationQueryOptions): CRDTSnapshot[];
9149
+ getConflicts(mapId?: string): ConflictInfo[];
9150
+ getLastOperation(): CRDTSnapshot | undefined;
9151
+ getOperationsForKey(mapId: string, key: string): CRDTSnapshot[];
9152
+ getStatistics(mapId?: string): DebugStatistics;
9153
+ /**
9154
+ * Replays operations up to the target timestamp and returns the map state.
9155
+ */
9156
+ replayUntil<K extends string, V>(targetTimestamp: Timestamp, mapId?: string, hlc?: HLC): LWWMap<K, V>;
9157
+ /**
9158
+ * Creates a timeline of operations grouped by time intervals.
9159
+ */
9160
+ getTimeline(intervalMs?: number, mapId?: string): Array<{
9161
+ timestamp: number;
9162
+ operations: CRDTSnapshot[];
9163
+ }>;
9164
+ exportHistory(format?: 'json' | 'csv' | 'ndjson'): string;
9165
+ private toCSV;
9166
+ importHistory(json: string): void;
9167
+ /**
9168
+ * Compares two points in time and returns the differences.
9169
+ */
9170
+ diff(fromTimestamp: Timestamp, toTimestamp: Timestamp, mapId?: string): {
9171
+ added: CRDTSnapshot[];
9172
+ modified: CRDTSnapshot[];
9173
+ deleted: CRDTSnapshot[];
9174
+ };
9175
+ clear(): void;
9176
+ private compareTimestamp;
9177
+ }
9178
+ declare function getCRDTDebugger(): CRDTDebugger;
9179
+ declare function resetCRDTDebugger(): void;
9180
+
9181
+ /**
9182
+ * BM25 scoring debug information.
9183
+ */
9184
+ interface BM25DebugInfo {
9185
+ score: number;
9186
+ matchedTerms: string[];
9187
+ tf: Record<string, number>;
9188
+ idf: Record<string, number>;
9189
+ fieldWeights: Record<string, number>;
9190
+ avgDocLength: number;
9191
+ docLength: number;
9192
+ k1: number;
9193
+ b: number;
9194
+ }
9195
+ /**
9196
+ * Exact match debug information.
9197
+ */
9198
+ interface ExactMatchDebugInfo {
9199
+ score: number;
9200
+ matchedFields: string[];
9201
+ boostApplied: number;
9202
+ }
9203
+ /**
9204
+ * Reciprocal Rank Fusion (RRF) debug information.
9205
+ */
9206
+ interface RRFDebugInfo {
9207
+ rank: number;
9208
+ score: number;
9209
+ k: number;
9210
+ contributingRanks: {
9211
+ source: string;
9212
+ rank: number;
9213
+ }[];
9214
+ }
9215
+ /**
9216
+ * Vector similarity debug information.
9217
+ */
9218
+ interface VectorDebugInfo {
9219
+ score: number;
9220
+ distance: number;
9221
+ similarity: 'cosine' | 'euclidean' | 'dot';
9222
+ }
9223
+ /**
9224
+ * Debug information for a single search result.
9225
+ */
9226
+ interface SearchResultDebug {
9227
+ docId: string;
9228
+ finalScore: number;
9229
+ scoreBreakdown: {
9230
+ bm25?: BM25DebugInfo;
9231
+ exact?: ExactMatchDebugInfo;
9232
+ rrf?: RRFDebugInfo;
9233
+ vector?: VectorDebugInfo;
9234
+ };
9235
+ matchedDocument?: Record<string, unknown>;
9236
+ }
9237
+ /**
9238
+ * Index statistics for a search operation.
9239
+ */
9240
+ interface SearchIndexStats {
9241
+ indexType: string;
9242
+ indexSize: number;
9243
+ termsSearched: number;
9244
+ }
9245
+ /**
9246
+ * Timing information for search operations.
9247
+ */
9248
+ interface SearchTiming {
9249
+ tokenization: number;
9250
+ indexLookup: number;
9251
+ scoring: number;
9252
+ ranking: number;
9253
+ fusion?: number;
9254
+ total: number;
9255
+ }
9256
+ /**
9257
+ * Complete debug information for a search query.
9258
+ */
9259
+ interface SearchDebugInfo {
9260
+ query: string;
9261
+ queryTokens: string[];
9262
+ mapId: string;
9263
+ searchType: 'bm25' | 'exact' | 'hybrid' | 'vector';
9264
+ totalDocuments: number;
9265
+ matchingDocuments: number;
9266
+ results: SearchResultDebug[];
9267
+ timing: SearchTiming;
9268
+ indexStats: SearchIndexStats;
9269
+ }
9270
+ /**
9271
+ * SearchDebugger - Records and analyzes search operations for debugging.
9272
+ *
9273
+ * Features:
9274
+ * - Record search queries with full debug info
9275
+ * - BM25 score breakdown per term
9276
+ * - RRF fusion explanation
9277
+ * - Timing breakdown
9278
+ * - Query history
9279
+ *
9280
+ * @see PHASE_14C_OBSERVABILITY.md for specification
9281
+ */
9282
+ declare class SearchDebugger {
9283
+ private enabled;
9284
+ private lastQuery;
9285
+ private history;
9286
+ private maxHistory;
9287
+ constructor(options?: {
9288
+ enabled?: boolean;
9289
+ maxHistory?: number;
9290
+ });
9291
+ isEnabled(): boolean;
9292
+ enable(): void;
9293
+ disable(): void;
9294
+ recordSearch(debugInfo: SearchDebugInfo): void;
9295
+ getLastQuery(): SearchDebugInfo | null;
9296
+ getHistory(): SearchDebugInfo[];
9297
+ getHistoryByMap(mapId: string): SearchDebugInfo[];
9298
+ explainResult(docId: string): SearchResultDebug | undefined;
9299
+ formatExplanation(docId: string): string;
9300
+ formatQuerySummary(): string;
9301
+ formatAllResults(): string;
9302
+ exportDebugInfo(): string;
9303
+ exportHistory(): string;
9304
+ getSearchStats(): {
9305
+ totalQueries: number;
9306
+ averageResultCount: number;
9307
+ averageLatencyMs: number;
9308
+ queryTypeBreakdown: Record<string, number>;
9309
+ };
9310
+ clear(): void;
9311
+ }
9312
+ declare function getSearchDebugger(): SearchDebugger;
9313
+ declare function resetSearchDebugger(): void;
9314
+
9315
+ export { type Attribute, type AuthFailMessage, AuthFailMessageSchema, AuthMessageSchema, type BM25DebugInfo, type BM25Options, BM25Scorer, type BatchMessage, BatchMessageSchema, BuiltInProcessors, BuiltInResolvers, CRDTDebugger, type CRDTSnapshot, type CircuitBreakerConfig, type ClientOp, ClientOpMessageSchema, ClientOpSchema, type ClusterClientConfig, type ClusterEvents, type ReadOptions as ClusterReadOptions, type ClusterSearchReqMessage, ClusterSearchReqMessageSchema, type ClusterSearchReqPayload, ClusterSearchReqPayloadSchema, type ClusterSearchRespMessage, ClusterSearchRespMessageSchema, type ClusterSearchRespPayload, ClusterSearchRespPayloadSchema, type ClusterSearchSubscribeMessage, ClusterSearchSubscribeMessageSchema, type ClusterSearchSubscribePayload, ClusterSearchSubscribePayloadSchema, type ClusterSearchUnsubscribeMessage, ClusterSearchUnsubscribeMessageSchema, type ClusterSearchUnsubscribePayload, ClusterSearchUnsubscribePayloadSchema, type ClusterSearchUpdateMessage, ClusterSearchUpdateMessageSchema, type ClusterSearchUpdatePayload, ClusterSearchUpdatePayloadSchema, type ClusterSubAckMessage, ClusterSubAckMessageSchema, type ClusterSubAckPayload, ClusterSubAckPayloadSchema, type ClusterSubRegisterMessage, ClusterSubRegisterMessageSchema, type ClusterSubRegisterPayload, ClusterSubRegisterPayloadSchema, type ClusterSubUnregisterMessage, ClusterSubUnregisterMessageSchema, type ClusterSubUnregisterPayload, ClusterSubUnregisterPayloadSchema, type ClusterSubUpdateMessage, ClusterSubUpdateMessageSchema, type ClusterSubUpdatePayload, ClusterSubUpdatePayloadSchema, type WriteOptions as ClusterWriteOptions, type CompareFn, type ConflictInfo, type ConflictResolver, type ConflictResolverDef, ConflictResolverDefSchema, type ConflictResolverFn, ConflictResolverSchema, type ConnectionPoolConfig, type ConnectionState, ConsistencyLevel, CounterRequestSchema, CounterResponseSchema, CounterSyncSchema, CounterUpdateSchema, type CursorStatus$1 as CursorStatus, CursorStatusSchema, type CursorableQueryResult, type CursorableResult, DEFAULT_BACKUP_COUNT, DEFAULT_CIRCUIT_BREAKER_CONFIG, DEFAULT_CONNECTION_POOL_CONFIG, DEFAULT_CURSOR_MAX_AGE_MS, DEFAULT_EVENT_JOURNAL_CONFIG, DEFAULT_MIGRATION_CONFIG, DEFAULT_PARTITION_ROUTER_CONFIG, DEFAULT_PROCESSOR_RATE_LIMITS, DEFAULT_QUERY_CURSOR_MAX_AGE_MS, DEFAULT_REPLICATION_CONFIG, DEFAULT_RESOLVER_RATE_LIMITS, DEFAULT_STOP_WORDS, DEFAULT_WRITE_CONCERN_TIMEOUT, type DebugStatistics, ENGLISH_STOPWORDS, type EntryProcessBatchRequest, EntryProcessBatchRequestSchema, type EntryProcessBatchResponse, EntryProcessBatchResponseSchema, type EntryProcessKeyResult, EntryProcessKeyResultSchema, type EntryProcessRequest, EntryProcessRequestSchema, type EntryProcessResponse, EntryProcessResponseSchema, type EntryProcessorDef, EntryProcessorDefSchema, type EntryProcessorFn, type EntryProcessorResult, EntryProcessorSchema, type EventJournal, type EventJournalConfig, EventJournalImpl, type ExactMatchDebugInfo, FORBIDDEN_PATTERNS, BM25InvertedIndex as FTSInvertedIndex, type SearchOptions as FTSSearchOptions, type SearchResult as FTSSearchResult, BM25Tokenizer as FTSTokenizer, type TokenizerOptions as FTSTokenizerOptions, FallbackIndex, type FilterStep, FilteringResultSet, type FullScanStep, FullTextIndex, type FullTextIndexConfig, type GcPruneMessage, GcPruneMessageSchema, type GcPrunePayload, GcPrunePayloadSchema, HLC, HashIndex, type HybridQueryDeltaPayload, HybridQueryDeltaPayloadSchema, type HybridQueryRespPayload, HybridQueryRespPayloadSchema, type Index, type IndexQuery, IndexRegistry, type IndexRegistryStats, type IndexScanStep, type IndexStats, IndexedLWWMap, IndexedORMap, IntersectionResultSet, type IntersectionStep, InvertedIndex, type InvertedIndexStats, type IteratorFactory, type JournalEvent, type JournalEventData, JournalEventDataSchema, type JournalEventInput, type JournalEventListener, type JournalEventMessage, JournalEventMessageSchema, type JournalEventType, JournalEventTypeSchema, type JournalReadRequest, JournalReadRequestSchema, type JournalReadResponse, JournalReadResponseSchema, type JournalSubscribeRequest, JournalSubscribeRequestSchema, type JournalUnsubscribeRequest, JournalUnsubscribeRequestSchema, LWWMap, type LWWRecord, LWWRecordSchema, LazyResultSet, LimitResultSet, type ListResolversRequest, ListResolversRequestSchema, type ListResolversResponse, ListResolversResponseSchema, type LiveQueryCallback, type LiveQueryDeltaEvent, type LiveQueryEvent, type LiveQueryInitialEvent, LiveQueryManager, type LiveQueryManagerOptions, type LiveQueryManagerStats, type LockGrantedPayload, LockGrantedPayloadSchema, LockReleaseSchema, type LockReleasedPayload, LockReleasedPayloadSchema, LockRequestSchema, type Logger, type LogicalQueryNode, LowercaseFilter, type MatchOptions, MaxLengthFilter, type MergeContext, type MergeKeyResult, type MergeRejectedMessage, MergeRejectedMessageSchema, type MergeRejection, type MergeResult, type MergedResult, MerkleReqBucketMessageSchema, MerkleTree, type Message, MessageSchema, type MigrationChunkAckMessage, type MigrationChunkMessage, type MigrationCompleteMessage, type MigrationConfig, type MigrationMessage, type MigrationMetrics, type MigrationStartMessage, type MigrationStatus, type MigrationVerifyMessage, MinLengthFilter, MultiValueAttribute, NGramTokenizer, NavigableIndex, type NodeHealth, type NodeInfo, type NodeStatus, type NotOwnerError, type NotStep, ORMap, ORMapDiffRequestSchema, type ORMapDiffResponsePayload, ORMapDiffResponseSchema, type ORMapMerkleNode, ORMapMerkleReqBucketSchema, ORMapMerkleTree, ORMapPushDiffSchema, type ORMapQueryResult, type ORMapRecord, ORMapRecordSchema, type ORMapSearchResult, type ORMapSnapshot, ORMapSyncInitSchema, type ORMapSyncRespBucketsPayload, ORMapSyncRespBucketsSchema, type ORMapSyncRespLeafPayload, ORMapSyncRespLeafSchema, type ORMapSyncRespRootPayload, ORMapSyncRespRootSchema, type OpAckMessage, OpAckMessageSchema, OpBatchMessageSchema, type OpRejectedMessage, OpRejectedMessageSchema, type OpResult, OpResultSchema, type OperationQueryOptions, PARTITION_COUNT, type PNCounter, type PNCounterConfig, PNCounterImpl, type PNCounterState, type PNCounterStateObject, PNCounterStateObjectSchema, type PartitionChange, type PartitionInfo, type PartitionMap, type PartitionMapDeltaMessage, type PartitionMapMessage, type PartitionMapRequestMessage, PartitionMapRequestSchema, type PartitionMigration, type PartitionRouterConfig, PartitionState, type PendingWrite, type PermissionPolicy, type PermissionType, type PingMessage, PingMessageSchema, type PlanStep, type PongMessage, PongMessageSchema, type Posting, type PredicateFn, type PredicateNode, PredicateNodeSchema, type PredicateOp, PredicateOpSchema, Predicates, type Principal, type ProcessorRateLimitConfig, type Query$1 as Query, QueryCursor, type QueryCursorData, type QueryCursorOptions, type Query as QueryExpression, type QueryNode, QueryOptimizer, type QueryOptimizerOptions, type QueryOptions, type QueryPlan, type QueryRespMessage, QueryRespMessageSchema, type QueryRespPayload, QueryRespPayloadSchema, type QueryResultWithCursor, QuerySchema, QuerySubMessageSchema, QueryUnsubMessageSchema, type QueryUpdateMessage, QueryUpdateMessageSchema, type QueryUpdatePayload, QueryUpdatePayloadSchema, RESOLVER_FORBIDDEN_PATTERNS, type RRFConfig, type RRFDebugInfo, type RankedResult, ReciprocalRankFusion, type RegisterResolverRequest, RegisterResolverRequestSchema, type RegisterResolverResponse, RegisterResolverResponseSchema, type ReplicationAckMessage, type ReplicationBatchAckMessage, type ReplicationBatchMessage, type ReplicationConfig, type ReplicationHealth, type ReplicationLag, type ReplicationMessage, type ReplicationProtocolMessage, type ReplicationResult, type ReplicationTask, type ResolverRateLimitConfig, type ResultSet, Ringbuffer, type RoutingError, type ScoredDocument, SearchCursor, type SearchCursorData, type SearchDebugInfo, SearchDebugger, type SearchIndexStats, type SearchMessage, SearchMessageSchema, type SearchOptions$1 as SearchOptions, SearchOptionsSchema, type SearchPayload, SearchPayloadSchema, type SearchRespMessage, SearchRespMessageSchema, type SearchRespPayload, SearchRespPayloadSchema, type SearchResultDebug, type SearchSubMessage, SearchSubMessageSchema, type SearchSubPayload, SearchSubPayloadSchema, type SearchTiming, type SearchUnsubMessage, SearchUnsubMessageSchema, type SearchUnsubPayload, SearchUnsubPayloadSchema, type SearchUpdateMessage, SearchUpdateMessageSchema, type SearchUpdatePayload, SearchUpdatePayloadSchema, type SearchUpdateType, SearchUpdateTypeSchema, type SerializedIndex, type ServerBatchEventMessage, ServerBatchEventMessageSchema, type ServerEventMessage, ServerEventMessageSchema, type ServerEventPayload, ServerEventPayloadSchema, SetResultSet, SimpleAttribute, type SimpleQueryNode, SortedMap, SortedResultSet, type StaleMapError, type StandingQueryChange, StandingQueryIndex, type StandingQueryIndexOptions, StandingQueryRegistry, type StandingQueryRegistryOptions, type StandingQueryRegistryStats, StopWordFilter, SyncInitMessageSchema, type SyncResetRequiredPayload, SyncResetRequiredPayloadSchema, SyncRespBucketsMessageSchema, type SyncRespBucketsPayload, SyncRespLeafMessageSchema, type SyncRespLeafPayload, SyncRespRootMessageSchema, type SyncRespRootPayload, type TermInfo, type Timestamp, TimestampSchema, type TokenFilter, TokenizationPipeline, type TokenizationPipelineOptions, type Tokenizer, TopicMessageEventSchema, TopicPubSchema, TopicSubSchema, TopicUnsubSchema, TrimFilter, UnionResultSet, type UnionStep, UniqueFilter, type UnregisterResolverRequest, UnregisterResolverRequestSchema, type UnregisterResolverResponse, UnregisterResolverResponseSchema, type VectorDebugInfo, WRITE_CONCERN_ORDER, WhitespaceTokenizer, WordBoundaryTokenizer, WriteConcern, WriteConcernSchema, type WriteConcernValue, type WriteOptions$1 as WriteOptions, type WriteResult, combineHashes, compareHLCTimestamps, compareTimestamps, compareValues, createFieldComparator, createPredicateMatcher, decodeBase64Url, deepMerge, deserialize, disableNativeHash, encodeBase64Url, evaluatePredicate, getCRDTDebugger, getHighestWriteConcernLevel, getSearchDebugger, hashORMapEntry, hashORMapRecord, hashObject, hashString, isLogicalQuery, isSimpleQuery, isUsingNativeHash, isWriteConcernAchieved, logger, multiAttribute, porterStem, resetCRDTDebugger, resetNativeHash, resetSearchDebugger, serialize, simpleAttribute, timestampToString, validateProcessorCode, validateResolverCode };