@topgunbuild/core 0.11.0 → 0.13.0

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
@@ -1143,14 +1143,13 @@ interface MergeRejection {
1143
1143
  /**
1144
1144
  * Hash utilities for TopGun
1145
1145
  *
1146
- * Uses native xxHash64 when available (via @topgunbuild/native),
1147
- * falls back to FNV-1a for JS-only environments.
1146
+ * Uses FNV-1a for all hashing deterministic, cross-language compatible
1147
+ * with Rust core-rust/src/hash.rs implementation.
1148
1148
  */
1149
1149
  /**
1150
- * Hash a string to a 32-bit unsigned integer.
1151
- *
1152
- * Uses native xxHash64 (truncated to 32 bits) when available,
1153
- * otherwise falls back to FNV-1a.
1150
+ * FNV-1a Hash implementation for strings.
1151
+ * Fast, non-cryptographic, synchronous.
1152
+ * Iterates over UTF-16 code units (charCodeAt), matching Rust's encode_utf16().
1154
1153
  *
1155
1154
  * @param str - String to hash
1156
1155
  * @returns 32-bit unsigned integer hash
@@ -1166,21 +1165,6 @@ declare function hashString(str: string): number;
1166
1165
  * @returns Combined hash as 32-bit unsigned integer
1167
1166
  */
1168
1167
  declare function combineHashes(hashes: number[]): number;
1169
- /**
1170
- * Check if native hash module is being used.
1171
- * Useful for diagnostics and testing.
1172
- */
1173
- declare function isUsingNativeHash(): boolean;
1174
- /**
1175
- * Force use of FNV-1a hash (for testing/compatibility).
1176
- * After calling this, hashString will always use FNV-1a.
1177
- */
1178
- declare function disableNativeHash(): void;
1179
- /**
1180
- * Re-enable native hash loading (for testing).
1181
- * Resets the load state so native module can be loaded again.
1182
- */
1183
- declare function resetNativeHash(): void;
1184
1168
  /**
1185
1169
  * Hash an object to a 32-bit unsigned integer.
1186
1170
  * Uses deterministic JSON serialization + hashString.
@@ -1399,6 +1383,16 @@ declare const ORMapRecordSchema: z.ZodObject<{
1399
1383
  tag: z.ZodString;
1400
1384
  ttlMs: z.ZodOptional<z.ZodNumber>;
1401
1385
  }, z.core.$strip>;
1386
+ /**
1387
+ * Unified change event type used across query updates, search updates,
1388
+ * and cluster subscription updates.
1389
+ */
1390
+ declare const ChangeEventTypeSchema: z.ZodEnum<{
1391
+ UPDATE: "UPDATE";
1392
+ ENTER: "ENTER";
1393
+ LEAVE: "LEAVE";
1394
+ }>;
1395
+ type ChangeEventType = z.infer<typeof ChangeEventTypeSchema>;
1402
1396
  declare const PredicateOpSchema: z.ZodEnum<{
1403
1397
  eq: "eq";
1404
1398
  neq: "neq";
@@ -1462,7 +1456,16 @@ type ClientOp = z.infer<typeof ClientOpSchema>;
1462
1456
  declare const AuthMessageSchema: z.ZodObject<{
1463
1457
  type: z.ZodLiteral<"AUTH">;
1464
1458
  token: z.ZodString;
1459
+ protocolVersion: z.ZodOptional<z.ZodNumber>;
1460
+ }, z.core.$strip>;
1461
+ type AuthMessage = z.infer<typeof AuthMessageSchema>;
1462
+ /**
1463
+ * AUTH_REQUIRED: Server tells client that authentication is needed.
1464
+ */
1465
+ declare const AuthRequiredMessageSchema: z.ZodObject<{
1466
+ type: z.ZodLiteral<"AUTH_REQUIRED">;
1465
1467
  }, z.core.$strip>;
1468
+ type AuthRequiredMessage = z.infer<typeof AuthRequiredMessageSchema>;
1466
1469
 
1467
1470
  declare const ClientOpMessageSchema: z.ZodObject<{
1468
1471
  type: z.ZodLiteral<"CLIENT_OP">;
@@ -1501,6 +1504,7 @@ declare const ClientOpMessageSchema: z.ZodObject<{
1501
1504
  timeout: z.ZodOptional<z.ZodNumber>;
1502
1505
  }, z.core.$strip>;
1503
1506
  }, z.core.$strip>;
1507
+ type ClientOpMessage = z.infer<typeof ClientOpMessageSchema>;
1504
1508
  declare const OpBatchMessageSchema: z.ZodObject<{
1505
1509
  type: z.ZodLiteral<"OP_BATCH">;
1506
1510
  payload: z.ZodObject<{
@@ -1548,11 +1552,13 @@ declare const OpBatchMessageSchema: z.ZodObject<{
1548
1552
  timeout: z.ZodOptional<z.ZodNumber>;
1549
1553
  }, z.core.$strip>;
1550
1554
  }, z.core.$strip>;
1555
+ type OpBatchMessage = z.infer<typeof OpBatchMessageSchema>;
1551
1556
  declare const SyncInitMessageSchema: z.ZodObject<{
1552
1557
  type: z.ZodLiteral<"SYNC_INIT">;
1553
1558
  mapName: z.ZodString;
1554
1559
  lastSyncTimestamp: z.ZodOptional<z.ZodNumber>;
1555
1560
  }, z.core.$strip>;
1561
+ type SyncInitMessage = z.infer<typeof SyncInitMessageSchema>;
1556
1562
  declare const SyncRespRootMessageSchema: z.ZodObject<{
1557
1563
  type: z.ZodLiteral<"SYNC_RESP_ROOT">;
1558
1564
  payload: z.ZodObject<{
@@ -1565,6 +1571,7 @@ declare const SyncRespRootMessageSchema: z.ZodObject<{
1565
1571
  }, z.core.$strip>;
1566
1572
  }, z.core.$strip>;
1567
1573
  }, z.core.$strip>;
1574
+ type SyncRespRootMessage = z.infer<typeof SyncRespRootMessageSchema>;
1568
1575
  declare const SyncRespBucketsMessageSchema: z.ZodObject<{
1569
1576
  type: z.ZodLiteral<"SYNC_RESP_BUCKETS">;
1570
1577
  payload: z.ZodObject<{
@@ -1573,6 +1580,7 @@ declare const SyncRespBucketsMessageSchema: z.ZodObject<{
1573
1580
  buckets: z.ZodRecord<z.ZodString, z.ZodNumber>;
1574
1581
  }, z.core.$strip>;
1575
1582
  }, z.core.$strip>;
1583
+ type SyncRespBucketsMessage = z.infer<typeof SyncRespBucketsMessageSchema>;
1576
1584
  declare const SyncRespLeafMessageSchema: z.ZodObject<{
1577
1585
  type: z.ZodLiteral<"SYNC_RESP_LEAF">;
1578
1586
  payload: z.ZodObject<{
@@ -1592,6 +1600,7 @@ declare const SyncRespLeafMessageSchema: z.ZodObject<{
1592
1600
  }, z.core.$strip>>;
1593
1601
  }, z.core.$strip>;
1594
1602
  }, z.core.$strip>;
1603
+ type SyncRespLeafMessage = z.infer<typeof SyncRespLeafMessageSchema>;
1595
1604
  declare const MerkleReqBucketMessageSchema: z.ZodObject<{
1596
1605
  type: z.ZodLiteral<"MERKLE_REQ_BUCKET">;
1597
1606
  payload: z.ZodObject<{
@@ -1599,6 +1608,26 @@ declare const MerkleReqBucketMessageSchema: z.ZodObject<{
1599
1608
  path: z.ZodString;
1600
1609
  }, z.core.$strip>;
1601
1610
  }, z.core.$strip>;
1611
+ type MerkleReqBucketMessage = z.infer<typeof MerkleReqBucketMessageSchema>;
1612
+ /**
1613
+ * Shared entry shape for ORMap sync messages.
1614
+ * Used in ORMap leaf responses, diff responses, and push diffs.
1615
+ */
1616
+ declare const ORMapEntrySchema: z.ZodObject<{
1617
+ key: z.ZodString;
1618
+ records: z.ZodArray<z.ZodObject<{
1619
+ value: z.ZodAny;
1620
+ timestamp: z.ZodObject<{
1621
+ millis: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
1622
+ counter: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
1623
+ nodeId: z.ZodString;
1624
+ }, z.core.$strip>;
1625
+ tag: z.ZodString;
1626
+ ttlMs: z.ZodOptional<z.ZodNumber>;
1627
+ }, z.core.$strip>>;
1628
+ tombstones: z.ZodArray<z.ZodString>;
1629
+ }, z.core.$strip>;
1630
+ type ORMapEntry = z.infer<typeof ORMapEntrySchema>;
1602
1631
  /**
1603
1632
  * ORMAP_SYNC_INIT: Client initiates ORMap sync
1604
1633
  * Sends root hash and bucket hashes to server
@@ -1610,6 +1639,7 @@ declare const ORMapSyncInitSchema: z.ZodObject<{
1610
1639
  bucketHashes: z.ZodRecord<z.ZodString, z.ZodNumber>;
1611
1640
  lastSyncTimestamp: z.ZodOptional<z.ZodNumber>;
1612
1641
  }, z.core.$strip>;
1642
+ type ORMapSyncInit = z.infer<typeof ORMapSyncInitSchema>;
1613
1643
  declare const ORMapSyncRespRootSchema: z.ZodObject<{
1614
1644
  type: z.ZodLiteral<"ORMAP_SYNC_RESP_ROOT">;
1615
1645
  payload: z.ZodObject<{
@@ -1622,6 +1652,7 @@ declare const ORMapSyncRespRootSchema: z.ZodObject<{
1622
1652
  }, z.core.$strip>;
1623
1653
  }, z.core.$strip>;
1624
1654
  }, z.core.$strip>;
1655
+ type ORMapSyncRespRoot = z.infer<typeof ORMapSyncRespRootSchema>;
1625
1656
  declare const ORMapSyncRespBucketsSchema: z.ZodObject<{
1626
1657
  type: z.ZodLiteral<"ORMAP_SYNC_RESP_BUCKETS">;
1627
1658
  payload: z.ZodObject<{
@@ -1630,6 +1661,7 @@ declare const ORMapSyncRespBucketsSchema: z.ZodObject<{
1630
1661
  buckets: z.ZodRecord<z.ZodString, z.ZodNumber>;
1631
1662
  }, z.core.$strip>;
1632
1663
  }, z.core.$strip>;
1664
+ type ORMapSyncRespBuckets = z.infer<typeof ORMapSyncRespBucketsSchema>;
1633
1665
  declare const ORMapMerkleReqBucketSchema: z.ZodObject<{
1634
1666
  type: z.ZodLiteral<"ORMAP_MERKLE_REQ_BUCKET">;
1635
1667
  payload: z.ZodObject<{
@@ -1637,6 +1669,7 @@ declare const ORMapMerkleReqBucketSchema: z.ZodObject<{
1637
1669
  path: z.ZodString;
1638
1670
  }, z.core.$strip>;
1639
1671
  }, z.core.$strip>;
1672
+ type ORMapMerkleReqBucket = z.infer<typeof ORMapMerkleReqBucketSchema>;
1640
1673
  declare const ORMapSyncRespLeafSchema: z.ZodObject<{
1641
1674
  type: z.ZodLiteral<"ORMAP_SYNC_RESP_LEAF">;
1642
1675
  payload: z.ZodObject<{
@@ -1658,6 +1691,7 @@ declare const ORMapSyncRespLeafSchema: z.ZodObject<{
1658
1691
  }, z.core.$strip>>;
1659
1692
  }, z.core.$strip>;
1660
1693
  }, z.core.$strip>;
1694
+ type ORMapSyncRespLeaf = z.infer<typeof ORMapSyncRespLeafSchema>;
1661
1695
  declare const ORMapDiffRequestSchema: z.ZodObject<{
1662
1696
  type: z.ZodLiteral<"ORMAP_DIFF_REQUEST">;
1663
1697
  payload: z.ZodObject<{
@@ -1665,6 +1699,7 @@ declare const ORMapDiffRequestSchema: z.ZodObject<{
1665
1699
  keys: z.ZodArray<z.ZodString>;
1666
1700
  }, z.core.$strip>;
1667
1701
  }, z.core.$strip>;
1702
+ type ORMapDiffRequest = z.infer<typeof ORMapDiffRequestSchema>;
1668
1703
  declare const ORMapDiffResponseSchema: z.ZodObject<{
1669
1704
  type: z.ZodLiteral<"ORMAP_DIFF_RESPONSE">;
1670
1705
  payload: z.ZodObject<{
@@ -1685,6 +1720,7 @@ declare const ORMapDiffResponseSchema: z.ZodObject<{
1685
1720
  }, z.core.$strip>>;
1686
1721
  }, z.core.$strip>;
1687
1722
  }, z.core.$strip>;
1723
+ type ORMapDiffResponse = z.infer<typeof ORMapDiffResponseSchema>;
1688
1724
  declare const ORMapPushDiffSchema: z.ZodObject<{
1689
1725
  type: z.ZodLiteral<"ORMAP_PUSH_DIFF">;
1690
1726
  payload: z.ZodObject<{
@@ -1705,6 +1741,7 @@ declare const ORMapPushDiffSchema: z.ZodObject<{
1705
1741
  }, z.core.$strip>>;
1706
1742
  }, z.core.$strip>;
1707
1743
  }, z.core.$strip>;
1744
+ type ORMapPushDiff = z.infer<typeof ORMapPushDiffSchema>;
1708
1745
  declare const OpResultSchema: z.ZodObject<{
1709
1746
  opId: z.ZodString;
1710
1747
  success: z.ZodBoolean;
@@ -1780,14 +1817,17 @@ declare const QuerySubMessageSchema: z.ZodObject<{
1780
1817
  limit: z.ZodOptional<z.ZodNumber>;
1781
1818
  cursor: z.ZodOptional<z.ZodString>;
1782
1819
  }, z.core.$strip>;
1820
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
1783
1821
  }, z.core.$strip>;
1784
1822
  }, z.core.$strip>;
1823
+ type QuerySubMessage = z.infer<typeof QuerySubMessageSchema>;
1785
1824
  declare const QueryUnsubMessageSchema: z.ZodObject<{
1786
1825
  type: z.ZodLiteral<"QUERY_UNSUB">;
1787
1826
  payload: z.ZodObject<{
1788
1827
  queryId: z.ZodString;
1789
1828
  }, z.core.$strip>;
1790
1829
  }, z.core.$strip>;
1830
+ type QueryUnsubMessage = z.infer<typeof QueryUnsubMessageSchema>;
1791
1831
  declare const CursorStatusSchema: z.ZodEnum<{
1792
1832
  valid: "valid";
1793
1833
  expired: "expired";
@@ -1809,6 +1849,7 @@ declare const QueryRespPayloadSchema: z.ZodObject<{
1809
1849
  invalid: "invalid";
1810
1850
  none: "none";
1811
1851
  }>>;
1852
+ merkleRootHash: z.ZodOptional<z.ZodNumber>;
1812
1853
  }, z.core.$strip>;
1813
1854
  type QueryRespPayload = z.infer<typeof QueryRespPayloadSchema>;
1814
1855
  declare const QueryRespMessageSchema: z.ZodObject<{
@@ -1827,9 +1868,23 @@ declare const QueryRespMessageSchema: z.ZodObject<{
1827
1868
  invalid: "invalid";
1828
1869
  none: "none";
1829
1870
  }>>;
1871
+ merkleRootHash: z.ZodOptional<z.ZodNumber>;
1830
1872
  }, z.core.$strip>;
1831
1873
  }, z.core.$strip>;
1832
1874
  type QueryRespMessage = z.infer<typeof QueryRespMessageSchema>;
1875
+ declare const QuerySyncInitPayloadSchema: z.ZodObject<{
1876
+ queryId: z.ZodString;
1877
+ rootHash: z.ZodNumber;
1878
+ }, z.core.$strip>;
1879
+ type QuerySyncInitPayload = z.infer<typeof QuerySyncInitPayloadSchema>;
1880
+ declare const QuerySyncInitMessageSchema: z.ZodObject<{
1881
+ type: z.ZodLiteral<"QUERY_SYNC_INIT">;
1882
+ payload: z.ZodObject<{
1883
+ queryId: z.ZodString;
1884
+ rootHash: z.ZodNumber;
1885
+ }, z.core.$strip>;
1886
+ }, z.core.$strip>;
1887
+ type QuerySyncInitMessage = z.infer<typeof QuerySyncInitMessageSchema>;
1833
1888
 
1834
1889
  declare const SearchOptionsSchema: z.ZodObject<{
1835
1890
  limit: z.ZodOptional<z.ZodNumber>;
@@ -1926,7 +1981,7 @@ declare const SearchUpdatePayloadSchema: z.ZodObject<{
1926
1981
  value: z.ZodUnknown;
1927
1982
  score: z.ZodNumber;
1928
1983
  matchedTerms: z.ZodArray<z.ZodString>;
1929
- type: z.ZodEnum<{
1984
+ changeType: z.ZodEnum<{
1930
1985
  UPDATE: "UPDATE";
1931
1986
  ENTER: "ENTER";
1932
1987
  LEAVE: "LEAVE";
@@ -1941,7 +1996,7 @@ declare const SearchUpdateMessageSchema: z.ZodObject<{
1941
1996
  value: z.ZodUnknown;
1942
1997
  score: z.ZodNumber;
1943
1998
  matchedTerms: z.ZodArray<z.ZodString>;
1944
- type: z.ZodEnum<{
1999
+ changeType: z.ZodEnum<{
1945
2000
  UPDATE: "UPDATE";
1946
2001
  ENTER: "ENTER";
1947
2002
  LEAVE: "LEAVE";
@@ -1967,6 +2022,81 @@ declare const PartitionMapRequestSchema: z.ZodObject<{
1967
2022
  currentVersion: z.ZodOptional<z.ZodNumber>;
1968
2023
  }, z.core.$strip>>;
1969
2024
  }, z.core.$strip>;
2025
+ type PartitionMapRequest = z.infer<typeof PartitionMapRequestSchema>;
2026
+ declare const NodeInfoSchema: z.ZodObject<{
2027
+ nodeId: z.ZodString;
2028
+ endpoints: z.ZodObject<{
2029
+ websocket: z.ZodString;
2030
+ http: z.ZodOptional<z.ZodString>;
2031
+ }, z.core.$strip>;
2032
+ status: z.ZodEnum<{
2033
+ ACTIVE: "ACTIVE";
2034
+ JOINING: "JOINING";
2035
+ LEAVING: "LEAVING";
2036
+ SUSPECTED: "SUSPECTED";
2037
+ FAILED: "FAILED";
2038
+ }>;
2039
+ }, z.core.$strip>;
2040
+ type NodeInfoZod = z.infer<typeof NodeInfoSchema>;
2041
+ declare const PartitionInfoSchema: z.ZodObject<{
2042
+ partitionId: z.ZodNumber;
2043
+ ownerNodeId: z.ZodString;
2044
+ backupNodeIds: z.ZodArray<z.ZodString>;
2045
+ }, z.core.$strip>;
2046
+ type PartitionInfoZod = z.infer<typeof PartitionInfoSchema>;
2047
+ declare const PartitionMapPayloadSchema: z.ZodObject<{
2048
+ version: z.ZodNumber;
2049
+ partitionCount: z.ZodNumber;
2050
+ nodes: z.ZodArray<z.ZodObject<{
2051
+ nodeId: z.ZodString;
2052
+ endpoints: z.ZodObject<{
2053
+ websocket: z.ZodString;
2054
+ http: z.ZodOptional<z.ZodString>;
2055
+ }, z.core.$strip>;
2056
+ status: z.ZodEnum<{
2057
+ ACTIVE: "ACTIVE";
2058
+ JOINING: "JOINING";
2059
+ LEAVING: "LEAVING";
2060
+ SUSPECTED: "SUSPECTED";
2061
+ FAILED: "FAILED";
2062
+ }>;
2063
+ }, z.core.$strip>>;
2064
+ partitions: z.ZodArray<z.ZodObject<{
2065
+ partitionId: z.ZodNumber;
2066
+ ownerNodeId: z.ZodString;
2067
+ backupNodeIds: z.ZodArray<z.ZodString>;
2068
+ }, z.core.$strip>>;
2069
+ generatedAt: z.ZodNumber;
2070
+ }, z.core.$strip>;
2071
+ type PartitionMapPayload = z.infer<typeof PartitionMapPayloadSchema>;
2072
+ declare const PartitionMapMessageSchema: z.ZodObject<{
2073
+ type: z.ZodLiteral<"PARTITION_MAP">;
2074
+ payload: z.ZodObject<{
2075
+ version: z.ZodNumber;
2076
+ partitionCount: z.ZodNumber;
2077
+ nodes: z.ZodArray<z.ZodObject<{
2078
+ nodeId: z.ZodString;
2079
+ endpoints: z.ZodObject<{
2080
+ websocket: z.ZodString;
2081
+ http: z.ZodOptional<z.ZodString>;
2082
+ }, z.core.$strip>;
2083
+ status: z.ZodEnum<{
2084
+ ACTIVE: "ACTIVE";
2085
+ JOINING: "JOINING";
2086
+ LEAVING: "LEAVING";
2087
+ SUSPECTED: "SUSPECTED";
2088
+ FAILED: "FAILED";
2089
+ }>;
2090
+ }, z.core.$strip>>;
2091
+ partitions: z.ZodArray<z.ZodObject<{
2092
+ partitionId: z.ZodNumber;
2093
+ ownerNodeId: z.ZodString;
2094
+ backupNodeIds: z.ZodArray<z.ZodString>;
2095
+ }, z.core.$strip>>;
2096
+ generatedAt: z.ZodNumber;
2097
+ }, z.core.$strip>;
2098
+ }, z.core.$strip>;
2099
+ type PartitionMapMessage = z.infer<typeof PartitionMapMessageSchema>;
1970
2100
  declare const ClusterSubRegisterPayloadSchema: z.ZodObject<{
1971
2101
  subscriptionId: z.ZodString;
1972
2102
  coordinatorNodeId: z.ZodString;
@@ -2092,9 +2222,9 @@ declare const ClusterSearchReqPayloadSchema: z.ZodObject<{
2092
2222
  mapName: z.ZodString;
2093
2223
  query: z.ZodString;
2094
2224
  options: z.ZodObject<{
2095
- limit: z.ZodNumber;
2096
2225
  minScore: z.ZodOptional<z.ZodNumber>;
2097
2226
  boost: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
2227
+ limit: z.ZodNumber;
2098
2228
  includeMatchedTerms: z.ZodOptional<z.ZodBoolean>;
2099
2229
  afterScore: z.ZodOptional<z.ZodNumber>;
2100
2230
  afterKey: z.ZodOptional<z.ZodString>;
@@ -2109,9 +2239,9 @@ declare const ClusterSearchReqMessageSchema: z.ZodObject<{
2109
2239
  mapName: z.ZodString;
2110
2240
  query: z.ZodString;
2111
2241
  options: z.ZodObject<{
2112
- limit: z.ZodNumber;
2113
2242
  minScore: z.ZodOptional<z.ZodNumber>;
2114
2243
  boost: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
2244
+ limit: z.ZodNumber;
2115
2245
  includeMatchedTerms: z.ZodOptional<z.ZodBoolean>;
2116
2246
  afterScore: z.ZodOptional<z.ZodNumber>;
2117
2247
  afterKey: z.ZodOptional<z.ZodString>;
@@ -2194,7 +2324,7 @@ declare const ClusterSearchUpdatePayloadSchema: z.ZodObject<{
2194
2324
  value: z.ZodUnknown;
2195
2325
  score: z.ZodNumber;
2196
2326
  matchedTerms: z.ZodOptional<z.ZodArray<z.ZodString>>;
2197
- type: z.ZodEnum<{
2327
+ changeType: z.ZodEnum<{
2198
2328
  UPDATE: "UPDATE";
2199
2329
  ENTER: "ENTER";
2200
2330
  LEAVE: "LEAVE";
@@ -2210,7 +2340,7 @@ declare const ClusterSearchUpdateMessageSchema: z.ZodObject<{
2210
2340
  value: z.ZodUnknown;
2211
2341
  score: z.ZodNumber;
2212
2342
  matchedTerms: z.ZodOptional<z.ZodArray<z.ZodString>>;
2213
- type: z.ZodEnum<{
2343
+ changeType: z.ZodEnum<{
2214
2344
  UPDATE: "UPDATE";
2215
2345
  ENTER: "ENTER";
2216
2346
  LEAVE: "LEAVE";
@@ -2225,12 +2355,14 @@ declare const TopicSubSchema: z.ZodObject<{
2225
2355
  topic: z.ZodString;
2226
2356
  }, z.core.$strip>;
2227
2357
  }, z.core.$strip>;
2358
+ type TopicSub = z.infer<typeof TopicSubSchema>;
2228
2359
  declare const TopicUnsubSchema: z.ZodObject<{
2229
2360
  type: z.ZodLiteral<"TOPIC_UNSUB">;
2230
2361
  payload: z.ZodObject<{
2231
2362
  topic: z.ZodString;
2232
2363
  }, z.core.$strip>;
2233
2364
  }, z.core.$strip>;
2365
+ type TopicUnsub = z.infer<typeof TopicUnsubSchema>;
2234
2366
  declare const TopicPubSchema: z.ZodObject<{
2235
2367
  type: z.ZodLiteral<"TOPIC_PUB">;
2236
2368
  payload: z.ZodObject<{
@@ -2238,6 +2370,7 @@ declare const TopicPubSchema: z.ZodObject<{
2238
2370
  data: z.ZodAny;
2239
2371
  }, z.core.$strip>;
2240
2372
  }, z.core.$strip>;
2373
+ type TopicPub = z.infer<typeof TopicPubSchema>;
2241
2374
  declare const TopicMessageEventSchema: z.ZodObject<{
2242
2375
  type: z.ZodLiteral<"TOPIC_MESSAGE">;
2243
2376
  payload: z.ZodObject<{
@@ -2247,6 +2380,7 @@ declare const TopicMessageEventSchema: z.ZodObject<{
2247
2380
  timestamp: z.ZodNumber;
2248
2381
  }, z.core.$strip>;
2249
2382
  }, z.core.$strip>;
2383
+ type TopicMessageEvent = z.infer<typeof TopicMessageEventSchema>;
2250
2384
  declare const LockRequestSchema: z.ZodObject<{
2251
2385
  type: z.ZodLiteral<"LOCK_REQUEST">;
2252
2386
  payload: z.ZodObject<{
@@ -2255,6 +2389,7 @@ declare const LockRequestSchema: z.ZodObject<{
2255
2389
  ttl: z.ZodOptional<z.ZodNumber>;
2256
2390
  }, z.core.$strip>;
2257
2391
  }, z.core.$strip>;
2392
+ type LockRequest = z.infer<typeof LockRequestSchema>;
2258
2393
  declare const LockReleaseSchema: z.ZodObject<{
2259
2394
  type: z.ZodLiteral<"LOCK_RELEASE">;
2260
2395
  payload: z.ZodObject<{
@@ -2263,6 +2398,7 @@ declare const LockReleaseSchema: z.ZodObject<{
2263
2398
  fencingToken: z.ZodNumber;
2264
2399
  }, z.core.$strip>;
2265
2400
  }, z.core.$strip>;
2401
+ type LockRelease = z.infer<typeof LockReleaseSchema>;
2266
2402
  declare const PNCounterStateObjectSchema: z.ZodObject<{
2267
2403
  p: z.ZodRecord<z.ZodString, z.ZodNumber>;
2268
2404
  n: z.ZodRecord<z.ZodString, z.ZodNumber>;
@@ -2273,6 +2409,7 @@ declare const CounterRequestSchema: z.ZodObject<{
2273
2409
  name: z.ZodString;
2274
2410
  }, z.core.$strip>;
2275
2411
  }, z.core.$strip>;
2412
+ type CounterRequest = z.infer<typeof CounterRequestSchema>;
2276
2413
  declare const CounterSyncSchema: z.ZodObject<{
2277
2414
  type: z.ZodLiteral<"COUNTER_SYNC">;
2278
2415
  payload: z.ZodObject<{
@@ -2283,6 +2420,7 @@ declare const CounterSyncSchema: z.ZodObject<{
2283
2420
  }, z.core.$strip>;
2284
2421
  }, z.core.$strip>;
2285
2422
  }, z.core.$strip>;
2423
+ type CounterSync = z.infer<typeof CounterSyncSchema>;
2286
2424
  declare const CounterResponseSchema: z.ZodObject<{
2287
2425
  type: z.ZodLiteral<"COUNTER_RESPONSE">;
2288
2426
  payload: z.ZodObject<{
@@ -2293,6 +2431,7 @@ declare const CounterResponseSchema: z.ZodObject<{
2293
2431
  }, z.core.$strip>;
2294
2432
  }, z.core.$strip>;
2295
2433
  }, z.core.$strip>;
2434
+ type CounterResponse = z.infer<typeof CounterResponseSchema>;
2296
2435
  declare const CounterUpdateSchema: z.ZodObject<{
2297
2436
  type: z.ZodLiteral<"COUNTER_UPDATE">;
2298
2437
  payload: z.ZodObject<{
@@ -2303,6 +2442,7 @@ declare const CounterUpdateSchema: z.ZodObject<{
2303
2442
  }, z.core.$strip>;
2304
2443
  }, z.core.$strip>;
2305
2444
  }, z.core.$strip>;
2445
+ type CounterUpdate = z.infer<typeof CounterUpdateSchema>;
2306
2446
  declare const PingMessageSchema: z.ZodObject<{
2307
2447
  type: z.ZodLiteral<"PING">;
2308
2448
  timestamp: z.ZodNumber;
@@ -2319,6 +2459,7 @@ declare const EntryProcessorSchema: z.ZodObject<{
2319
2459
  code: z.ZodString;
2320
2460
  args: z.ZodOptional<z.ZodUnknown>;
2321
2461
  }, z.core.$strip>;
2462
+ type EntryProcessor = z.infer<typeof EntryProcessorSchema>;
2322
2463
  declare const EntryProcessRequestSchema: z.ZodObject<{
2323
2464
  type: z.ZodLiteral<"ENTRY_PROCESS">;
2324
2465
  requestId: z.ZodString;
@@ -2644,10 +2785,10 @@ declare const QueryUpdatePayloadSchema: z.ZodObject<{
2644
2785
  queryId: z.ZodString;
2645
2786
  key: z.ZodString;
2646
2787
  value: z.ZodUnknown;
2647
- type: z.ZodEnum<{
2788
+ changeType: z.ZodEnum<{
2648
2789
  UPDATE: "UPDATE";
2649
- REMOVE: "REMOVE";
2650
2790
  ENTER: "ENTER";
2791
+ LEAVE: "LEAVE";
2651
2792
  }>;
2652
2793
  }, z.core.$strip>;
2653
2794
  type QueryUpdatePayload = z.infer<typeof QueryUpdatePayloadSchema>;
@@ -2657,10 +2798,10 @@ declare const QueryUpdateMessageSchema: z.ZodObject<{
2657
2798
  queryId: z.ZodString;
2658
2799
  key: z.ZodString;
2659
2800
  value: z.ZodUnknown;
2660
- type: z.ZodEnum<{
2801
+ changeType: z.ZodEnum<{
2661
2802
  UPDATE: "UPDATE";
2662
- REMOVE: "REMOVE";
2663
2803
  ENTER: "ENTER";
2804
+ LEAVE: "LEAVE";
2664
2805
  }>;
2665
2806
  }, z.core.$strip>;
2666
2807
  }, z.core.$strip>;
@@ -2684,58 +2825,70 @@ declare const GcPruneMessageSchema: z.ZodObject<{
2684
2825
  }, z.core.$strip>;
2685
2826
  }, z.core.$strip>;
2686
2827
  type GcPruneMessage = z.infer<typeof GcPruneMessageSchema>;
2828
+ declare const AuthAckMessageSchema: z.ZodObject<{
2829
+ type: z.ZodLiteral<"AUTH_ACK">;
2830
+ protocolVersion: z.ZodOptional<z.ZodNumber>;
2831
+ userId: z.ZodOptional<z.ZodString>;
2832
+ }, z.core.$strip>;
2833
+ type AuthAckMessage = z.infer<typeof AuthAckMessageSchema>;
2687
2834
  declare const AuthFailMessageSchema: z.ZodObject<{
2688
2835
  type: z.ZodLiteral<"AUTH_FAIL">;
2689
2836
  error: z.ZodOptional<z.ZodString>;
2690
2837
  code: z.ZodOptional<z.ZodNumber>;
2691
2838
  }, z.core.$strip>;
2692
2839
  type AuthFailMessage = z.infer<typeof AuthFailMessageSchema>;
2693
- declare const HybridQueryRespPayloadSchema: z.ZodObject<{
2694
- subscriptionId: z.ZodString;
2695
- results: z.ZodArray<z.ZodObject<{
2696
- key: z.ZodString;
2697
- value: z.ZodUnknown;
2698
- score: z.ZodNumber;
2699
- matchedTerms: z.ZodArray<z.ZodString>;
2700
- }, z.core.$strip>>;
2701
- nextCursor: z.ZodOptional<z.ZodString>;
2702
- hasMore: z.ZodOptional<z.ZodBoolean>;
2703
- cursorStatus: z.ZodOptional<z.ZodEnum<{
2704
- valid: "valid";
2705
- expired: "expired";
2706
- invalid: "invalid";
2707
- none: "none";
2708
- }>>;
2709
- }, z.core.$strip>;
2710
- type HybridQueryRespPayload = z.infer<typeof HybridQueryRespPayloadSchema>;
2711
- declare const HybridQueryDeltaPayloadSchema: z.ZodObject<{
2712
- subscriptionId: z.ZodString;
2713
- key: z.ZodString;
2714
- value: z.ZodNullable<z.ZodUnknown>;
2715
- score: z.ZodOptional<z.ZodNumber>;
2716
- matchedTerms: z.ZodOptional<z.ZodArray<z.ZodString>>;
2717
- type: z.ZodEnum<{
2718
- UPDATE: "UPDATE";
2719
- ENTER: "ENTER";
2720
- LEAVE: "LEAVE";
2721
- }>;
2840
+ declare const ErrorMessageSchema: z.ZodObject<{
2841
+ type: z.ZodLiteral<"ERROR">;
2842
+ payload: z.ZodObject<{
2843
+ code: z.ZodNumber;
2844
+ message: z.ZodString;
2845
+ details: z.ZodOptional<z.ZodUnknown>;
2846
+ }, z.core.$strip>;
2722
2847
  }, z.core.$strip>;
2723
- type HybridQueryDeltaPayload = z.infer<typeof HybridQueryDeltaPayloadSchema>;
2848
+ type ErrorMessage = z.infer<typeof ErrorMessageSchema>;
2724
2849
  declare const LockGrantedPayloadSchema: z.ZodObject<{
2725
2850
  requestId: z.ZodString;
2851
+ name: z.ZodString;
2726
2852
  fencingToken: z.ZodNumber;
2727
2853
  }, z.core.$strip>;
2728
2854
  type LockGrantedPayload = z.infer<typeof LockGrantedPayloadSchema>;
2729
2855
  declare const LockReleasedPayloadSchema: z.ZodObject<{
2730
2856
  requestId: z.ZodString;
2857
+ name: z.ZodString;
2731
2858
  success: z.ZodBoolean;
2732
2859
  }, z.core.$strip>;
2733
2860
  type LockReleasedPayload = z.infer<typeof LockReleasedPayloadSchema>;
2861
+ declare const LockGrantedMessageSchema: z.ZodObject<{
2862
+ type: z.ZodLiteral<"LOCK_GRANTED">;
2863
+ payload: z.ZodObject<{
2864
+ requestId: z.ZodString;
2865
+ name: z.ZodString;
2866
+ fencingToken: z.ZodNumber;
2867
+ }, z.core.$strip>;
2868
+ }, z.core.$strip>;
2869
+ type LockGrantedMessage = z.infer<typeof LockGrantedMessageSchema>;
2870
+ declare const LockReleasedMessageSchema: z.ZodObject<{
2871
+ type: z.ZodLiteral<"LOCK_RELEASED">;
2872
+ payload: z.ZodObject<{
2873
+ requestId: z.ZodString;
2874
+ name: z.ZodString;
2875
+ success: z.ZodBoolean;
2876
+ }, z.core.$strip>;
2877
+ }, z.core.$strip>;
2878
+ type LockReleasedMessage = z.infer<typeof LockReleasedMessageSchema>;
2734
2879
  declare const SyncResetRequiredPayloadSchema: z.ZodObject<{
2735
2880
  mapName: z.ZodString;
2736
2881
  reason: z.ZodString;
2737
2882
  }, z.core.$strip>;
2738
2883
  type SyncResetRequiredPayload = z.infer<typeof SyncResetRequiredPayloadSchema>;
2884
+ declare const SyncResetRequiredMessageSchema: z.ZodObject<{
2885
+ type: z.ZodLiteral<"SYNC_RESET_REQUIRED">;
2886
+ payload: z.ZodObject<{
2887
+ mapName: z.ZodString;
2888
+ reason: z.ZodString;
2889
+ }, z.core.$strip>;
2890
+ }, z.core.$strip>;
2891
+ type SyncResetRequiredMessage = z.infer<typeof SyncResetRequiredMessageSchema>;
2739
2892
  type SyncRespRootPayload = z.infer<typeof SyncRespRootMessageSchema>['payload'];
2740
2893
  type SyncRespBucketsPayload = z.infer<typeof SyncRespBucketsMessageSchema>['payload'];
2741
2894
  type SyncRespLeafPayload = z.infer<typeof SyncRespLeafMessageSchema>['payload'];
@@ -2756,6 +2909,7 @@ declare const SyncMapEntrySchema: z.ZodObject<{
2756
2909
  nodeId: z.ZodString;
2757
2910
  }, z.core.$strip>;
2758
2911
  }, z.core.$strip>;
2912
+ type SyncMapEntry = z.infer<typeof SyncMapEntrySchema>;
2759
2913
  /**
2760
2914
  * Schema for one-shot query requests over HTTP.
2761
2915
  */
@@ -2766,6 +2920,7 @@ declare const HttpQueryRequestSchema: z.ZodObject<{
2766
2920
  limit: z.ZodOptional<z.ZodNumber>;
2767
2921
  offset: z.ZodOptional<z.ZodNumber>;
2768
2922
  }, z.core.$strip>;
2923
+ type HttpQueryRequest = z.infer<typeof HttpQueryRequestSchema>;
2769
2924
  /**
2770
2925
  * Schema for one-shot search requests over HTTP.
2771
2926
  */
@@ -2775,6 +2930,7 @@ declare const HttpSearchRequestSchema: z.ZodObject<{
2775
2930
  query: z.ZodString;
2776
2931
  options: z.ZodOptional<z.ZodAny>;
2777
2932
  }, z.core.$strip>;
2933
+ type HttpSearchRequest = z.infer<typeof HttpSearchRequestSchema>;
2778
2934
  /**
2779
2935
  * HTTP sync request body sent by the client as POST /sync.
2780
2936
  * Contains all context needed for a stateless request: client identity,
@@ -2863,6 +3019,7 @@ declare const DeltaRecordSchema: z.ZodObject<{
2863
3019
  REMOVE: "REMOVE";
2864
3020
  }>;
2865
3021
  }, z.core.$strip>;
3022
+ type DeltaRecord = z.infer<typeof DeltaRecordSchema>;
2866
3023
  /**
2867
3024
  * Delta records for a specific map, containing all new/changed records
2868
3025
  * since the client's lastSyncTimestamp.
@@ -2891,6 +3048,7 @@ declare const MapDeltaSchema: z.ZodObject<{
2891
3048
  nodeId: z.ZodString;
2892
3049
  }, z.core.$strip>;
2893
3050
  }, z.core.$strip>;
3051
+ type MapDelta = z.infer<typeof MapDeltaSchema>;
2894
3052
  /**
2895
3053
  * Query result for a one-shot HTTP query.
2896
3054
  */
@@ -2900,6 +3058,7 @@ declare const HttpQueryResultSchema: z.ZodObject<{
2900
3058
  hasMore: z.ZodOptional<z.ZodBoolean>;
2901
3059
  nextCursor: z.ZodOptional<z.ZodString>;
2902
3060
  }, z.core.$strip>;
3061
+ type HttpQueryResult = z.infer<typeof HttpQueryResultSchema>;
2903
3062
  /**
2904
3063
  * Search result for a one-shot HTTP search.
2905
3064
  */
@@ -2908,6 +3067,7 @@ declare const HttpSearchResultSchema: z.ZodObject<{
2908
3067
  results: z.ZodArray<z.ZodAny>;
2909
3068
  totalCount: z.ZodOptional<z.ZodNumber>;
2910
3069
  }, z.core.$strip>;
3070
+ type HttpSearchResult = z.infer<typeof HttpSearchResultSchema>;
2911
3071
  /**
2912
3072
  * Error entry for individual operation failures.
2913
3073
  */
@@ -2916,6 +3076,7 @@ declare const HttpSyncErrorSchema: z.ZodObject<{
2916
3076
  message: z.ZodString;
2917
3077
  context: z.ZodOptional<z.ZodString>;
2918
3078
  }, z.core.$strip>;
3079
+ type HttpSyncError = z.infer<typeof HttpSyncErrorSchema>;
2919
3080
  /**
2920
3081
  * HTTP sync response returned by the server for POST /sync.
2921
3082
  * Contains operation acknowledgments, delta records, query/search results,
@@ -2988,27 +3149,9 @@ type HttpSyncResponse = z.infer<typeof HttpSyncResponseSchema>;
2988
3149
  declare const MessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2989
3150
  type: z.ZodLiteral<"AUTH">;
2990
3151
  token: z.ZodString;
3152
+ protocolVersion: z.ZodOptional<z.ZodNumber>;
2991
3153
  }, z.core.$strip>, z.ZodObject<{
2992
- type: z.ZodLiteral<"QUERY_SUB">;
2993
- payload: z.ZodObject<{
2994
- queryId: z.ZodString;
2995
- mapName: z.ZodString;
2996
- query: z.ZodObject<{
2997
- where: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2998
- predicate: z.ZodOptional<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
2999
- sort: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
3000
- asc: "asc";
3001
- desc: "desc";
3002
- }>>>;
3003
- limit: z.ZodOptional<z.ZodNumber>;
3004
- cursor: z.ZodOptional<z.ZodString>;
3005
- }, z.core.$strip>;
3006
- }, z.core.$strip>;
3007
- }, z.core.$strip>, z.ZodObject<{
3008
- type: z.ZodLiteral<"QUERY_UNSUB">;
3009
- payload: z.ZodObject<{
3010
- queryId: z.ZodString;
3011
- }, z.core.$strip>;
3154
+ type: z.ZodLiteral<"AUTH_REQUIRED">;
3012
3155
  }, z.core.$strip>, z.ZodObject<{
3013
3156
  type: z.ZodLiteral<"CLIENT_OP">;
3014
3157
  payload: z.ZodObject<{
@@ -3138,42 +3281,40 @@ declare const MessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3138
3281
  path: z.ZodString;
3139
3282
  }, z.core.$strip>;
3140
3283
  }, z.core.$strip>, z.ZodObject<{
3141
- type: z.ZodLiteral<"LOCK_REQUEST">;
3142
- payload: z.ZodObject<{
3143
- requestId: z.ZodString;
3144
- name: z.ZodString;
3145
- ttl: z.ZodOptional<z.ZodNumber>;
3146
- }, z.core.$strip>;
3147
- }, z.core.$strip>, z.ZodObject<{
3148
- type: z.ZodLiteral<"LOCK_RELEASE">;
3149
- payload: z.ZodObject<{
3150
- requestId: z.ZodOptional<z.ZodString>;
3151
- name: z.ZodString;
3152
- fencingToken: z.ZodNumber;
3153
- }, z.core.$strip>;
3154
- }, z.core.$strip>, z.ZodObject<{
3155
- type: z.ZodLiteral<"TOPIC_SUB">;
3156
- payload: z.ZodObject<{
3157
- topic: z.ZodString;
3158
- }, z.core.$strip>;
3159
- }, z.core.$strip>, z.ZodObject<{
3160
- type: z.ZodLiteral<"TOPIC_UNSUB">;
3284
+ type: z.ZodLiteral<"OP_ACK">;
3161
3285
  payload: z.ZodObject<{
3162
- topic: z.ZodString;
3286
+ lastId: z.ZodString;
3287
+ achievedLevel: z.ZodOptional<z.ZodEnum<{
3288
+ FIRE_AND_FORGET: "FIRE_AND_FORGET";
3289
+ MEMORY: "MEMORY";
3290
+ APPLIED: "APPLIED";
3291
+ REPLICATED: "REPLICATED";
3292
+ PERSISTED: "PERSISTED";
3293
+ }>>;
3294
+ results: z.ZodOptional<z.ZodArray<z.ZodObject<{
3295
+ opId: z.ZodString;
3296
+ success: z.ZodBoolean;
3297
+ achievedLevel: z.ZodEnum<{
3298
+ FIRE_AND_FORGET: "FIRE_AND_FORGET";
3299
+ MEMORY: "MEMORY";
3300
+ APPLIED: "APPLIED";
3301
+ REPLICATED: "REPLICATED";
3302
+ PERSISTED: "PERSISTED";
3303
+ }>;
3304
+ error: z.ZodOptional<z.ZodString>;
3305
+ }, z.core.$strip>>>;
3163
3306
  }, z.core.$strip>;
3164
3307
  }, z.core.$strip>, z.ZodObject<{
3165
- type: z.ZodLiteral<"TOPIC_PUB">;
3308
+ type: z.ZodLiteral<"OP_REJECTED">;
3166
3309
  payload: z.ZodObject<{
3167
- topic: z.ZodString;
3168
- data: z.ZodAny;
3310
+ opId: z.ZodString;
3311
+ reason: z.ZodString;
3312
+ code: z.ZodOptional<z.ZodNumber>;
3169
3313
  }, z.core.$strip>;
3170
3314
  }, z.core.$strip>, z.ZodObject<{
3171
- type: z.ZodLiteral<"PING">;
3172
- timestamp: z.ZodNumber;
3173
- }, z.core.$strip>, z.ZodObject<{
3174
- type: z.ZodLiteral<"PONG">;
3175
- timestamp: z.ZodNumber;
3176
- serverTime: z.ZodNumber;
3315
+ type: z.ZodLiteral<"BATCH">;
3316
+ count: z.ZodNumber;
3317
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
3177
3318
  }, z.core.$strip>, z.ZodObject<{
3178
3319
  type: z.ZodLiteral<"ORMAP_SYNC_INIT">;
3179
3320
  mapName: z.ZodString;
@@ -3269,36 +3410,360 @@ declare const MessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3269
3410
  }, z.core.$strip>>;
3270
3411
  }, z.core.$strip>;
3271
3412
  }, z.core.$strip>, z.ZodObject<{
3272
- type: z.ZodLiteral<"PARTITION_MAP_REQUEST">;
3273
- payload: z.ZodOptional<z.ZodObject<{
3274
- currentVersion: z.ZodOptional<z.ZodNumber>;
3275
- }, z.core.$strip>>;
3276
- }, z.core.$strip>, z.ZodObject<{
3277
- type: z.ZodLiteral<"COUNTER_REQUEST">;
3413
+ type: z.ZodLiteral<"QUERY_SUB">;
3278
3414
  payload: z.ZodObject<{
3279
- name: z.ZodString;
3415
+ queryId: z.ZodString;
3416
+ mapName: z.ZodString;
3417
+ query: z.ZodObject<{
3418
+ where: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3419
+ predicate: z.ZodOptional<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
3420
+ sort: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
3421
+ asc: "asc";
3422
+ desc: "desc";
3423
+ }>>>;
3424
+ limit: z.ZodOptional<z.ZodNumber>;
3425
+ cursor: z.ZodOptional<z.ZodString>;
3426
+ }, z.core.$strip>;
3427
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
3280
3428
  }, z.core.$strip>;
3281
3429
  }, z.core.$strip>, z.ZodObject<{
3282
- type: z.ZodLiteral<"COUNTER_SYNC">;
3430
+ type: z.ZodLiteral<"QUERY_UNSUB">;
3283
3431
  payload: z.ZodObject<{
3284
- name: z.ZodString;
3285
- state: z.ZodObject<{
3286
- p: z.ZodRecord<z.ZodString, z.ZodNumber>;
3287
- n: z.ZodRecord<z.ZodString, z.ZodNumber>;
3288
- }, z.core.$strip>;
3432
+ queryId: z.ZodString;
3289
3433
  }, z.core.$strip>;
3290
3434
  }, z.core.$strip>, z.ZodObject<{
3291
- type: z.ZodLiteral<"ENTRY_PROCESS">;
3292
- requestId: z.ZodString;
3293
- mapName: z.ZodString;
3294
- key: z.ZodString;
3295
- processor: z.ZodObject<{
3296
- name: z.ZodString;
3297
- code: z.ZodString;
3298
- args: z.ZodOptional<z.ZodUnknown>;
3435
+ type: z.ZodLiteral<"QUERY_RESP">;
3436
+ payload: z.ZodObject<{
3437
+ queryId: z.ZodString;
3438
+ results: z.ZodArray<z.ZodObject<{
3439
+ key: z.ZodString;
3440
+ value: z.ZodUnknown;
3441
+ }, z.core.$strip>>;
3442
+ nextCursor: z.ZodOptional<z.ZodString>;
3443
+ hasMore: z.ZodOptional<z.ZodBoolean>;
3444
+ cursorStatus: z.ZodOptional<z.ZodEnum<{
3445
+ valid: "valid";
3446
+ expired: "expired";
3447
+ invalid: "invalid";
3448
+ none: "none";
3449
+ }>>;
3450
+ merkleRootHash: z.ZodOptional<z.ZodNumber>;
3299
3451
  }, z.core.$strip>;
3300
3452
  }, z.core.$strip>, z.ZodObject<{
3301
- type: z.ZodLiteral<"ENTRY_PROCESS_BATCH">;
3453
+ type: z.ZodLiteral<"QUERY_SYNC_INIT">;
3454
+ payload: z.ZodObject<{
3455
+ queryId: z.ZodString;
3456
+ rootHash: z.ZodNumber;
3457
+ }, z.core.$strip>;
3458
+ }, z.core.$strip>, z.ZodObject<{
3459
+ type: z.ZodLiteral<"QUERY_UPDATE">;
3460
+ payload: z.ZodObject<{
3461
+ queryId: z.ZodString;
3462
+ key: z.ZodString;
3463
+ value: z.ZodUnknown;
3464
+ changeType: z.ZodEnum<{
3465
+ UPDATE: "UPDATE";
3466
+ ENTER: "ENTER";
3467
+ LEAVE: "LEAVE";
3468
+ }>;
3469
+ }, z.core.$strip>;
3470
+ }, z.core.$strip>, z.ZodObject<{
3471
+ type: z.ZodLiteral<"SEARCH">;
3472
+ payload: z.ZodObject<{
3473
+ requestId: z.ZodString;
3474
+ mapName: z.ZodString;
3475
+ query: z.ZodString;
3476
+ options: z.ZodOptional<z.ZodObject<{
3477
+ limit: z.ZodOptional<z.ZodNumber>;
3478
+ minScore: z.ZodOptional<z.ZodNumber>;
3479
+ boost: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
3480
+ }, z.core.$strip>>;
3481
+ }, z.core.$strip>;
3482
+ }, z.core.$strip>, z.ZodObject<{
3483
+ type: z.ZodLiteral<"SEARCH_RESP">;
3484
+ payload: z.ZodObject<{
3485
+ requestId: z.ZodString;
3486
+ results: z.ZodArray<z.ZodObject<{
3487
+ key: z.ZodString;
3488
+ value: z.ZodUnknown;
3489
+ score: z.ZodNumber;
3490
+ matchedTerms: z.ZodArray<z.ZodString>;
3491
+ }, z.core.$strip>>;
3492
+ totalCount: z.ZodNumber;
3493
+ error: z.ZodOptional<z.ZodString>;
3494
+ }, z.core.$strip>;
3495
+ }, z.core.$strip>, z.ZodObject<{
3496
+ type: z.ZodLiteral<"SEARCH_SUB">;
3497
+ payload: z.ZodObject<{
3498
+ subscriptionId: z.ZodString;
3499
+ mapName: z.ZodString;
3500
+ query: z.ZodString;
3501
+ options: z.ZodOptional<z.ZodObject<{
3502
+ limit: z.ZodOptional<z.ZodNumber>;
3503
+ minScore: z.ZodOptional<z.ZodNumber>;
3504
+ boost: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
3505
+ }, z.core.$strip>>;
3506
+ }, z.core.$strip>;
3507
+ }, z.core.$strip>, z.ZodObject<{
3508
+ type: z.ZodLiteral<"SEARCH_UPDATE">;
3509
+ payload: z.ZodObject<{
3510
+ subscriptionId: z.ZodString;
3511
+ key: z.ZodString;
3512
+ value: z.ZodUnknown;
3513
+ score: z.ZodNumber;
3514
+ matchedTerms: z.ZodArray<z.ZodString>;
3515
+ changeType: z.ZodEnum<{
3516
+ UPDATE: "UPDATE";
3517
+ ENTER: "ENTER";
3518
+ LEAVE: "LEAVE";
3519
+ }>;
3520
+ }, z.core.$strip>;
3521
+ }, z.core.$strip>, z.ZodObject<{
3522
+ type: z.ZodLiteral<"SEARCH_UNSUB">;
3523
+ payload: z.ZodObject<{
3524
+ subscriptionId: z.ZodString;
3525
+ }, z.core.$strip>;
3526
+ }, z.core.$strip>, z.ZodObject<{
3527
+ type: z.ZodLiteral<"PARTITION_MAP_REQUEST">;
3528
+ payload: z.ZodOptional<z.ZodObject<{
3529
+ currentVersion: z.ZodOptional<z.ZodNumber>;
3530
+ }, z.core.$strip>>;
3531
+ }, z.core.$strip>, z.ZodObject<{
3532
+ type: z.ZodLiteral<"PARTITION_MAP">;
3533
+ payload: z.ZodObject<{
3534
+ version: z.ZodNumber;
3535
+ partitionCount: z.ZodNumber;
3536
+ nodes: z.ZodArray<z.ZodObject<{
3537
+ nodeId: z.ZodString;
3538
+ endpoints: z.ZodObject<{
3539
+ websocket: z.ZodString;
3540
+ http: z.ZodOptional<z.ZodString>;
3541
+ }, z.core.$strip>;
3542
+ status: z.ZodEnum<{
3543
+ ACTIVE: "ACTIVE";
3544
+ JOINING: "JOINING";
3545
+ LEAVING: "LEAVING";
3546
+ SUSPECTED: "SUSPECTED";
3547
+ FAILED: "FAILED";
3548
+ }>;
3549
+ }, z.core.$strip>>;
3550
+ partitions: z.ZodArray<z.ZodObject<{
3551
+ partitionId: z.ZodNumber;
3552
+ ownerNodeId: z.ZodString;
3553
+ backupNodeIds: z.ZodArray<z.ZodString>;
3554
+ }, z.core.$strip>>;
3555
+ generatedAt: z.ZodNumber;
3556
+ }, z.core.$strip>;
3557
+ }, z.core.$strip>, z.ZodObject<{
3558
+ type: z.ZodLiteral<"CLUSTER_SUB_REGISTER">;
3559
+ payload: z.ZodObject<{
3560
+ subscriptionId: z.ZodString;
3561
+ coordinatorNodeId: z.ZodString;
3562
+ mapName: z.ZodString;
3563
+ type: z.ZodEnum<{
3564
+ SEARCH: "SEARCH";
3565
+ QUERY: "QUERY";
3566
+ }>;
3567
+ searchQuery: z.ZodOptional<z.ZodString>;
3568
+ searchOptions: z.ZodOptional<z.ZodObject<{
3569
+ limit: z.ZodOptional<z.ZodNumber>;
3570
+ minScore: z.ZodOptional<z.ZodNumber>;
3571
+ boost: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
3572
+ }, z.core.$strip>>;
3573
+ queryPredicate: z.ZodOptional<z.ZodAny>;
3574
+ querySort: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
3575
+ asc: "asc";
3576
+ desc: "desc";
3577
+ }>>>;
3578
+ }, z.core.$strip>;
3579
+ }, z.core.$strip>, z.ZodObject<{
3580
+ type: z.ZodLiteral<"CLUSTER_SUB_ACK">;
3581
+ payload: z.ZodObject<{
3582
+ subscriptionId: z.ZodString;
3583
+ nodeId: z.ZodString;
3584
+ success: z.ZodBoolean;
3585
+ error: z.ZodOptional<z.ZodString>;
3586
+ initialResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
3587
+ key: z.ZodString;
3588
+ value: z.ZodUnknown;
3589
+ score: z.ZodOptional<z.ZodNumber>;
3590
+ matchedTerms: z.ZodOptional<z.ZodArray<z.ZodString>>;
3591
+ }, z.core.$strip>>>;
3592
+ totalHits: z.ZodOptional<z.ZodNumber>;
3593
+ }, z.core.$strip>;
3594
+ }, z.core.$strip>, z.ZodObject<{
3595
+ type: z.ZodLiteral<"CLUSTER_SUB_UPDATE">;
3596
+ payload: z.ZodObject<{
3597
+ subscriptionId: z.ZodString;
3598
+ sourceNodeId: z.ZodString;
3599
+ key: z.ZodString;
3600
+ value: z.ZodUnknown;
3601
+ score: z.ZodOptional<z.ZodNumber>;
3602
+ matchedTerms: z.ZodOptional<z.ZodArray<z.ZodString>>;
3603
+ changeType: z.ZodEnum<{
3604
+ UPDATE: "UPDATE";
3605
+ ENTER: "ENTER";
3606
+ LEAVE: "LEAVE";
3607
+ }>;
3608
+ timestamp: z.ZodNumber;
3609
+ }, z.core.$strip>;
3610
+ }, z.core.$strip>, z.ZodObject<{
3611
+ type: z.ZodLiteral<"CLUSTER_SUB_UNREGISTER">;
3612
+ payload: z.ZodObject<{
3613
+ subscriptionId: z.ZodString;
3614
+ }, z.core.$strip>;
3615
+ }, z.core.$strip>, z.ZodObject<{
3616
+ type: z.ZodLiteral<"CLUSTER_SEARCH_REQ">;
3617
+ payload: z.ZodObject<{
3618
+ requestId: z.ZodString;
3619
+ mapName: z.ZodString;
3620
+ query: z.ZodString;
3621
+ options: z.ZodObject<{
3622
+ minScore: z.ZodOptional<z.ZodNumber>;
3623
+ boost: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
3624
+ limit: z.ZodNumber;
3625
+ includeMatchedTerms: z.ZodOptional<z.ZodBoolean>;
3626
+ afterScore: z.ZodOptional<z.ZodNumber>;
3627
+ afterKey: z.ZodOptional<z.ZodString>;
3628
+ }, z.core.$strip>;
3629
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
3630
+ }, z.core.$strip>;
3631
+ }, z.core.$strip>, z.ZodObject<{
3632
+ type: z.ZodLiteral<"CLUSTER_SEARCH_RESP">;
3633
+ payload: z.ZodObject<{
3634
+ requestId: z.ZodString;
3635
+ nodeId: z.ZodString;
3636
+ results: z.ZodArray<z.ZodObject<{
3637
+ key: z.ZodString;
3638
+ value: z.ZodUnknown;
3639
+ score: z.ZodNumber;
3640
+ matchedTerms: z.ZodOptional<z.ZodArray<z.ZodString>>;
3641
+ }, z.core.$strip>>;
3642
+ totalHits: z.ZodNumber;
3643
+ executionTimeMs: z.ZodNumber;
3644
+ error: z.ZodOptional<z.ZodString>;
3645
+ }, z.core.$strip>;
3646
+ }, z.core.$strip>, z.ZodObject<{
3647
+ type: z.ZodLiteral<"CLUSTER_SEARCH_SUBSCRIBE">;
3648
+ payload: z.ZodObject<{
3649
+ subscriptionId: z.ZodString;
3650
+ mapName: z.ZodString;
3651
+ query: z.ZodString;
3652
+ options: z.ZodOptional<z.ZodObject<{
3653
+ limit: z.ZodOptional<z.ZodNumber>;
3654
+ minScore: z.ZodOptional<z.ZodNumber>;
3655
+ boost: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
3656
+ }, z.core.$strip>>;
3657
+ }, z.core.$strip>;
3658
+ }, z.core.$strip>, z.ZodObject<{
3659
+ type: z.ZodLiteral<"CLUSTER_SEARCH_UNSUBSCRIBE">;
3660
+ payload: z.ZodObject<{
3661
+ subscriptionId: z.ZodString;
3662
+ }, z.core.$strip>;
3663
+ }, z.core.$strip>, z.ZodObject<{
3664
+ type: z.ZodLiteral<"CLUSTER_SEARCH_UPDATE">;
3665
+ payload: z.ZodObject<{
3666
+ subscriptionId: z.ZodString;
3667
+ nodeId: z.ZodString;
3668
+ key: z.ZodString;
3669
+ value: z.ZodUnknown;
3670
+ score: z.ZodNumber;
3671
+ matchedTerms: z.ZodOptional<z.ZodArray<z.ZodString>>;
3672
+ changeType: z.ZodEnum<{
3673
+ UPDATE: "UPDATE";
3674
+ ENTER: "ENTER";
3675
+ LEAVE: "LEAVE";
3676
+ }>;
3677
+ }, z.core.$strip>;
3678
+ }, z.core.$strip>, z.ZodObject<{
3679
+ type: z.ZodLiteral<"TOPIC_SUB">;
3680
+ payload: z.ZodObject<{
3681
+ topic: z.ZodString;
3682
+ }, z.core.$strip>;
3683
+ }, z.core.$strip>, z.ZodObject<{
3684
+ type: z.ZodLiteral<"TOPIC_UNSUB">;
3685
+ payload: z.ZodObject<{
3686
+ topic: z.ZodString;
3687
+ }, z.core.$strip>;
3688
+ }, z.core.$strip>, z.ZodObject<{
3689
+ type: z.ZodLiteral<"TOPIC_PUB">;
3690
+ payload: z.ZodObject<{
3691
+ topic: z.ZodString;
3692
+ data: z.ZodAny;
3693
+ }, z.core.$strip>;
3694
+ }, z.core.$strip>, z.ZodObject<{
3695
+ type: z.ZodLiteral<"TOPIC_MESSAGE">;
3696
+ payload: z.ZodObject<{
3697
+ topic: z.ZodString;
3698
+ data: z.ZodAny;
3699
+ publisherId: z.ZodOptional<z.ZodString>;
3700
+ timestamp: z.ZodNumber;
3701
+ }, z.core.$strip>;
3702
+ }, z.core.$strip>, z.ZodObject<{
3703
+ type: z.ZodLiteral<"LOCK_REQUEST">;
3704
+ payload: z.ZodObject<{
3705
+ requestId: z.ZodString;
3706
+ name: z.ZodString;
3707
+ ttl: z.ZodOptional<z.ZodNumber>;
3708
+ }, z.core.$strip>;
3709
+ }, z.core.$strip>, z.ZodObject<{
3710
+ type: z.ZodLiteral<"LOCK_RELEASE">;
3711
+ payload: z.ZodObject<{
3712
+ requestId: z.ZodOptional<z.ZodString>;
3713
+ name: z.ZodString;
3714
+ fencingToken: z.ZodNumber;
3715
+ }, z.core.$strip>;
3716
+ }, z.core.$strip>, z.ZodObject<{
3717
+ type: z.ZodLiteral<"COUNTER_REQUEST">;
3718
+ payload: z.ZodObject<{
3719
+ name: z.ZodString;
3720
+ }, z.core.$strip>;
3721
+ }, z.core.$strip>, z.ZodObject<{
3722
+ type: z.ZodLiteral<"COUNTER_SYNC">;
3723
+ payload: z.ZodObject<{
3724
+ name: z.ZodString;
3725
+ state: z.ZodObject<{
3726
+ p: z.ZodRecord<z.ZodString, z.ZodNumber>;
3727
+ n: z.ZodRecord<z.ZodString, z.ZodNumber>;
3728
+ }, z.core.$strip>;
3729
+ }, z.core.$strip>;
3730
+ }, z.core.$strip>, z.ZodObject<{
3731
+ type: z.ZodLiteral<"COUNTER_RESPONSE">;
3732
+ payload: z.ZodObject<{
3733
+ name: z.ZodString;
3734
+ state: z.ZodObject<{
3735
+ p: z.ZodRecord<z.ZodString, z.ZodNumber>;
3736
+ n: z.ZodRecord<z.ZodString, z.ZodNumber>;
3737
+ }, z.core.$strip>;
3738
+ }, z.core.$strip>;
3739
+ }, z.core.$strip>, z.ZodObject<{
3740
+ type: z.ZodLiteral<"COUNTER_UPDATE">;
3741
+ payload: z.ZodObject<{
3742
+ name: z.ZodString;
3743
+ state: z.ZodObject<{
3744
+ p: z.ZodRecord<z.ZodString, z.ZodNumber>;
3745
+ n: z.ZodRecord<z.ZodString, z.ZodNumber>;
3746
+ }, z.core.$strip>;
3747
+ }, z.core.$strip>;
3748
+ }, z.core.$strip>, z.ZodObject<{
3749
+ type: z.ZodLiteral<"PING">;
3750
+ timestamp: z.ZodNumber;
3751
+ }, z.core.$strip>, z.ZodObject<{
3752
+ type: z.ZodLiteral<"PONG">;
3753
+ timestamp: z.ZodNumber;
3754
+ serverTime: z.ZodNumber;
3755
+ }, z.core.$strip>, z.ZodObject<{
3756
+ type: z.ZodLiteral<"ENTRY_PROCESS">;
3757
+ requestId: z.ZodString;
3758
+ mapName: z.ZodString;
3759
+ key: z.ZodString;
3760
+ processor: z.ZodObject<{
3761
+ name: z.ZodString;
3762
+ code: z.ZodString;
3763
+ args: z.ZodOptional<z.ZodUnknown>;
3764
+ }, z.core.$strip>;
3765
+ }, z.core.$strip>, z.ZodObject<{
3766
+ type: z.ZodLiteral<"ENTRY_PROCESS_BATCH">;
3302
3767
  requestId: z.ZodString;
3303
3768
  mapName: z.ZodString;
3304
3769
  keys: z.ZodArray<z.ZodString>;
@@ -3436,118 +3901,114 @@ declare const MessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3436
3901
  keyPattern: z.ZodOptional<z.ZodString>;
3437
3902
  }, z.core.$strip>>;
3438
3903
  }, z.core.$strip>, z.ZodObject<{
3439
- type: z.ZodLiteral<"SEARCH">;
3904
+ type: z.ZodLiteral<"SERVER_EVENT">;
3440
3905
  payload: z.ZodObject<{
3441
- requestId: z.ZodString;
3442
3906
  mapName: z.ZodString;
3443
- query: z.ZodString;
3444
- options: z.ZodOptional<z.ZodObject<{
3445
- limit: z.ZodOptional<z.ZodNumber>;
3446
- minScore: z.ZodOptional<z.ZodNumber>;
3447
- boost: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
3907
+ eventType: z.ZodEnum<{
3908
+ PUT: "PUT";
3909
+ REMOVE: "REMOVE";
3910
+ OR_ADD: "OR_ADD";
3911
+ OR_REMOVE: "OR_REMOVE";
3912
+ }>;
3913
+ key: z.ZodString;
3914
+ record: z.ZodOptional<z.ZodObject<{
3915
+ value: z.ZodNullable<z.ZodAny>;
3916
+ timestamp: z.ZodObject<{
3917
+ millis: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
3918
+ counter: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
3919
+ nodeId: z.ZodString;
3920
+ }, z.core.$strip>;
3921
+ ttlMs: z.ZodOptional<z.ZodNumber>;
3448
3922
  }, z.core.$strip>>;
3923
+ orRecord: z.ZodOptional<z.ZodObject<{
3924
+ value: z.ZodAny;
3925
+ timestamp: z.ZodObject<{
3926
+ millis: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
3927
+ counter: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
3928
+ nodeId: z.ZodString;
3929
+ }, z.core.$strip>;
3930
+ tag: z.ZodString;
3931
+ ttlMs: z.ZodOptional<z.ZodNumber>;
3932
+ }, z.core.$strip>>;
3933
+ orTag: z.ZodOptional<z.ZodString>;
3449
3934
  }, z.core.$strip>;
3450
3935
  }, z.core.$strip>, z.ZodObject<{
3451
- type: z.ZodLiteral<"SEARCH_RESP">;
3936
+ type: z.ZodLiteral<"SERVER_BATCH_EVENT">;
3452
3937
  payload: z.ZodObject<{
3453
- requestId: z.ZodString;
3454
- results: z.ZodArray<z.ZodObject<{
3938
+ events: z.ZodArray<z.ZodObject<{
3939
+ mapName: z.ZodString;
3940
+ eventType: z.ZodEnum<{
3941
+ PUT: "PUT";
3942
+ REMOVE: "REMOVE";
3943
+ OR_ADD: "OR_ADD";
3944
+ OR_REMOVE: "OR_REMOVE";
3945
+ }>;
3455
3946
  key: z.ZodString;
3456
- value: z.ZodUnknown;
3457
- score: z.ZodNumber;
3458
- matchedTerms: z.ZodArray<z.ZodString>;
3947
+ record: z.ZodOptional<z.ZodObject<{
3948
+ value: z.ZodNullable<z.ZodAny>;
3949
+ timestamp: z.ZodObject<{
3950
+ millis: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
3951
+ counter: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
3952
+ nodeId: z.ZodString;
3953
+ }, z.core.$strip>;
3954
+ ttlMs: z.ZodOptional<z.ZodNumber>;
3955
+ }, z.core.$strip>>;
3956
+ orRecord: z.ZodOptional<z.ZodObject<{
3957
+ value: z.ZodAny;
3958
+ timestamp: z.ZodObject<{
3959
+ millis: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
3960
+ counter: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
3961
+ nodeId: z.ZodString;
3962
+ }, z.core.$strip>;
3963
+ tag: z.ZodString;
3964
+ ttlMs: z.ZodOptional<z.ZodNumber>;
3965
+ }, z.core.$strip>>;
3966
+ orTag: z.ZodOptional<z.ZodString>;
3459
3967
  }, z.core.$strip>>;
3460
- totalCount: z.ZodNumber;
3461
- error: z.ZodOptional<z.ZodString>;
3462
3968
  }, z.core.$strip>;
3463
3969
  }, z.core.$strip>, z.ZodObject<{
3464
- type: z.ZodLiteral<"SEARCH_SUB">;
3970
+ type: z.ZodLiteral<"GC_PRUNE">;
3465
3971
  payload: z.ZodObject<{
3466
- subscriptionId: z.ZodString;
3467
- mapName: z.ZodString;
3468
- query: z.ZodString;
3469
- options: z.ZodOptional<z.ZodObject<{
3470
- limit: z.ZodOptional<z.ZodNumber>;
3471
- minScore: z.ZodOptional<z.ZodNumber>;
3472
- boost: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
3473
- }, z.core.$strip>>;
3972
+ olderThan: z.ZodObject<{
3973
+ millis: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
3974
+ counter: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
3975
+ nodeId: z.ZodString;
3976
+ }, z.core.$strip>;
3474
3977
  }, z.core.$strip>;
3475
3978
  }, z.core.$strip>, z.ZodObject<{
3476
- type: z.ZodLiteral<"SEARCH_UPDATE">;
3477
- payload: z.ZodObject<{
3478
- subscriptionId: z.ZodString;
3479
- key: z.ZodString;
3480
- value: z.ZodUnknown;
3481
- score: z.ZodNumber;
3482
- matchedTerms: z.ZodArray<z.ZodString>;
3483
- type: z.ZodEnum<{
3484
- UPDATE: "UPDATE";
3485
- ENTER: "ENTER";
3486
- LEAVE: "LEAVE";
3487
- }>;
3488
- }, z.core.$strip>;
3979
+ type: z.ZodLiteral<"AUTH_ACK">;
3980
+ protocolVersion: z.ZodOptional<z.ZodNumber>;
3981
+ userId: z.ZodOptional<z.ZodString>;
3489
3982
  }, z.core.$strip>, z.ZodObject<{
3490
- type: z.ZodLiteral<"SEARCH_UNSUB">;
3491
- payload: z.ZodObject<{
3492
- subscriptionId: z.ZodString;
3493
- }, z.core.$strip>;
3983
+ type: z.ZodLiteral<"AUTH_FAIL">;
3984
+ error: z.ZodOptional<z.ZodString>;
3985
+ code: z.ZodOptional<z.ZodNumber>;
3494
3986
  }, z.core.$strip>, z.ZodObject<{
3495
- type: z.ZodLiteral<"CLUSTER_SUB_REGISTER">;
3987
+ type: z.ZodLiteral<"ERROR">;
3496
3988
  payload: z.ZodObject<{
3497
- subscriptionId: z.ZodString;
3498
- coordinatorNodeId: z.ZodString;
3499
- mapName: z.ZodString;
3500
- type: z.ZodEnum<{
3501
- SEARCH: "SEARCH";
3502
- QUERY: "QUERY";
3503
- }>;
3504
- searchQuery: z.ZodOptional<z.ZodString>;
3505
- searchOptions: z.ZodOptional<z.ZodObject<{
3506
- limit: z.ZodOptional<z.ZodNumber>;
3507
- minScore: z.ZodOptional<z.ZodNumber>;
3508
- boost: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
3509
- }, z.core.$strip>>;
3510
- queryPredicate: z.ZodOptional<z.ZodAny>;
3511
- querySort: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
3512
- asc: "asc";
3513
- desc: "desc";
3514
- }>>>;
3989
+ code: z.ZodNumber;
3990
+ message: z.ZodString;
3991
+ details: z.ZodOptional<z.ZodUnknown>;
3515
3992
  }, z.core.$strip>;
3516
3993
  }, z.core.$strip>, z.ZodObject<{
3517
- type: z.ZodLiteral<"CLUSTER_SUB_ACK">;
3994
+ type: z.ZodLiteral<"LOCK_GRANTED">;
3518
3995
  payload: z.ZodObject<{
3519
- subscriptionId: z.ZodString;
3520
- nodeId: z.ZodString;
3521
- success: z.ZodBoolean;
3522
- error: z.ZodOptional<z.ZodString>;
3523
- initialResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
3524
- key: z.ZodString;
3525
- value: z.ZodUnknown;
3526
- score: z.ZodOptional<z.ZodNumber>;
3527
- matchedTerms: z.ZodOptional<z.ZodArray<z.ZodString>>;
3528
- }, z.core.$strip>>>;
3529
- totalHits: z.ZodOptional<z.ZodNumber>;
3996
+ requestId: z.ZodString;
3997
+ name: z.ZodString;
3998
+ fencingToken: z.ZodNumber;
3530
3999
  }, z.core.$strip>;
3531
4000
  }, z.core.$strip>, z.ZodObject<{
3532
- type: z.ZodLiteral<"CLUSTER_SUB_UPDATE">;
4001
+ type: z.ZodLiteral<"LOCK_RELEASED">;
3533
4002
  payload: z.ZodObject<{
3534
- subscriptionId: z.ZodString;
3535
- sourceNodeId: z.ZodString;
3536
- key: z.ZodString;
3537
- value: z.ZodUnknown;
3538
- score: z.ZodOptional<z.ZodNumber>;
3539
- matchedTerms: z.ZodOptional<z.ZodArray<z.ZodString>>;
3540
- changeType: z.ZodEnum<{
3541
- UPDATE: "UPDATE";
3542
- ENTER: "ENTER";
3543
- LEAVE: "LEAVE";
3544
- }>;
3545
- timestamp: z.ZodNumber;
4003
+ requestId: z.ZodString;
4004
+ name: z.ZodString;
4005
+ success: z.ZodBoolean;
3546
4006
  }, z.core.$strip>;
3547
4007
  }, z.core.$strip>, z.ZodObject<{
3548
- type: z.ZodLiteral<"CLUSTER_SUB_UNREGISTER">;
4008
+ type: z.ZodLiteral<"SYNC_RESET_REQUIRED">;
3549
4009
  payload: z.ZodObject<{
3550
- subscriptionId: z.ZodString;
4010
+ mapName: z.ZodString;
4011
+ reason: z.ZodString;
3551
4012
  }, z.core.$strip>;
3552
4013
  }, z.core.$strip>], "type">;
3553
4014
 
@@ -3704,16 +4165,7 @@ interface PartitionMap {
3704
4165
  partitions: PartitionInfo[];
3705
4166
  generatedAt: number;
3706
4167
  }
3707
- interface PartitionMapMessage {
3708
- type: 'PARTITION_MAP';
3709
- payload: PartitionMap;
3710
- }
3711
- interface PartitionMapRequestMessage {
3712
- type: 'PARTITION_MAP_REQUEST';
3713
- payload?: {
3714
- currentVersion?: number;
3715
- };
3716
- }
4168
+
3717
4169
  interface PartitionChange {
3718
4170
  partitionId: number;
3719
4171
  previousOwner: string;
@@ -10059,4 +10511,4 @@ declare class ScenarioRunner {
10059
10511
  setState(nodeId: string, state: unknown): void;
10060
10512
  }
10061
10513
 
10062
- export { type Attribute, type AuthFailMessage, AuthFailMessageSchema, AuthMessageSchema, type BM25DebugInfo, type BM25Options, BM25Scorer, type BatchMessage, BatchMessageSchema, BuiltInProcessors, BuiltInResolvers, COST_WEIGHTS, CRDTDebugger, CRDTInvariants, type CRDTSnapshot, type CircuitBreakerConfig, type ClientOp, ClientOpMessageSchema, ClientOpSchema, type ClockSource, 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, DeltaRecordSchema, type DistributedCost, 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, HttpQueryRequestSchema, HttpQueryResultSchema, HttpSearchRequestSchema, HttpSearchResultSchema, HttpSyncErrorSchema, type HttpSyncRequest, HttpSyncRequestSchema, type HttpSyncResponse, HttpSyncResponseSchema, type HybridQueryDeltaPayload, HybridQueryDeltaPayloadSchema, type HybridQueryRespPayload, HybridQueryRespPayloadSchema, type Index, type IndexQuery, IndexRegistry, type IndexRegistryStats, type IndexScanStep, type IndexStats, IndexedLWWMap, IndexedORMap, IntersectionResultSet, type IntersectionStep, type Invariant, InvariantChecker, type InvariantResult, 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, MapDeltaSchema, 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 NetworkConfig, 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, type QueryContext, 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, RealClock, 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 ScenarioConfig, type ScenarioResult, ScenarioRunner, 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, SeededRNG, 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, SyncMapEntrySchema, 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, VirtualClock, VirtualNetwork, WRITE_CONCERN_ORDER, WhitespaceTokenizer, WordBoundaryTokenizer, WriteConcern, WriteConcernSchema, type WriteConcernValue, type WriteOptions$1 as WriteOptions, type WriteResult, calculateTotalCost, 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 };
10514
+ export { type Attribute, type AuthAckMessage, AuthAckMessageSchema, type AuthFailMessage, AuthFailMessageSchema, type AuthMessage, AuthMessageSchema, type AuthRequiredMessage, AuthRequiredMessageSchema, type BM25DebugInfo, type BM25Options, BM25Scorer, type BatchMessage, BatchMessageSchema, BuiltInProcessors, BuiltInResolvers, COST_WEIGHTS, CRDTDebugger, CRDTInvariants, type CRDTSnapshot, type ChangeEventType, ChangeEventTypeSchema, type CircuitBreakerConfig, type ClientOp, type ClientOpMessage, ClientOpMessageSchema, ClientOpSchema, type ClockSource, 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, type CounterRequest, CounterRequestSchema, type CounterResponse, CounterResponseSchema, type CounterSync, CounterSyncSchema, type CounterUpdate, 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, type DeltaRecord, DeltaRecordSchema, type DistributedCost, ENGLISH_STOPWORDS, type EntryProcessBatchRequest, EntryProcessBatchRequestSchema, type EntryProcessBatchResponse, EntryProcessBatchResponseSchema, type EntryProcessKeyResult, EntryProcessKeyResultSchema, type EntryProcessRequest, EntryProcessRequestSchema, type EntryProcessResponse, EntryProcessResponseSchema, type EntryProcessor, type EntryProcessorDef, EntryProcessorDefSchema, type EntryProcessorFn, type EntryProcessorResult, EntryProcessorSchema, type ErrorMessage, ErrorMessageSchema, 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 HttpQueryRequest, HttpQueryRequestSchema, type HttpQueryResult, HttpQueryResultSchema, type HttpSearchRequest, HttpSearchRequestSchema, type HttpSearchResult, HttpSearchResultSchema, type HttpSyncError, HttpSyncErrorSchema, type HttpSyncRequest, HttpSyncRequestSchema, type HttpSyncResponse, HttpSyncResponseSchema, type Index, type IndexQuery, IndexRegistry, type IndexRegistryStats, type IndexScanStep, type IndexStats, IndexedLWWMap, IndexedORMap, IntersectionResultSet, type IntersectionStep, type Invariant, InvariantChecker, type InvariantResult, 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 LockGrantedMessage, LockGrantedMessageSchema, type LockGrantedPayload, LockGrantedPayloadSchema, type LockRelease, LockReleaseSchema, type LockReleasedMessage, LockReleasedMessageSchema, type LockReleasedPayload, LockReleasedPayloadSchema, type LockRequest, LockRequestSchema, type Logger, type LogicalQueryNode, LowercaseFilter, type MapDelta, MapDeltaSchema, type MatchOptions, MaxLengthFilter, type MergeContext, type MergeKeyResult, type MergeRejectedMessage, MergeRejectedMessageSchema, type MergeRejection, type MergeResult, type MergedResult, type MerkleReqBucketMessage, 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 NetworkConfig, type NodeHealth, type NodeInfo, NodeInfoSchema, type NodeInfoZod, type NodeStatus, type NotOwnerError, type NotStep, ORMap, type ORMapDiffRequest, ORMapDiffRequestSchema, type ORMapDiffResponse, type ORMapDiffResponsePayload, ORMapDiffResponseSchema, type ORMapEntry, ORMapEntrySchema, type ORMapMerkleNode, type ORMapMerkleReqBucket, ORMapMerkleReqBucketSchema, ORMapMerkleTree, type ORMapPushDiff, ORMapPushDiffSchema, type ORMapQueryResult, type ORMapRecord, ORMapRecordSchema, type ORMapSearchResult, type ORMapSnapshot, type ORMapSyncInit, ORMapSyncInitSchema, type ORMapSyncRespBuckets, type ORMapSyncRespBucketsPayload, ORMapSyncRespBucketsSchema, type ORMapSyncRespLeaf, type ORMapSyncRespLeafPayload, ORMapSyncRespLeafSchema, type ORMapSyncRespRoot, type ORMapSyncRespRootPayload, ORMapSyncRespRootSchema, type OpAckMessage, OpAckMessageSchema, type OpBatchMessage, 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, PartitionInfoSchema, type PartitionInfoZod, type PartitionMap, type PartitionMapDeltaMessage, type PartitionMapMessage, PartitionMapMessageSchema, type PartitionMapPayload, PartitionMapPayloadSchema, type PartitionMapRequest, type PartitionMapRequest as 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, type QueryContext, 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, type QuerySubMessage, QuerySubMessageSchema, type QuerySyncInitMessage, QuerySyncInitMessageSchema, type QuerySyncInitPayload, QuerySyncInitPayloadSchema, type QueryUnsubMessage, QueryUnsubMessageSchema, type QueryUpdateMessage, QueryUpdateMessageSchema, type QueryUpdatePayload, QueryUpdatePayloadSchema, RESOLVER_FORBIDDEN_PATTERNS, type RRFConfig, type RRFDebugInfo, type RankedResult, RealClock, 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 ScenarioConfig, type ScenarioResult, ScenarioRunner, 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, SeededRNG, 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, type SyncInitMessage, SyncInitMessageSchema, type SyncMapEntry, SyncMapEntrySchema, type SyncResetRequiredMessage, SyncResetRequiredMessageSchema, type SyncResetRequiredPayload, SyncResetRequiredPayloadSchema, type SyncRespBucketsMessage, SyncRespBucketsMessageSchema, type SyncRespBucketsPayload, type SyncRespLeafMessage, SyncRespLeafMessageSchema, type SyncRespLeafPayload, type SyncRespRootMessage, SyncRespRootMessageSchema, type SyncRespRootPayload, type TermInfo, type Timestamp, TimestampSchema, type TokenFilter, TokenizationPipeline, type TokenizationPipelineOptions, type Tokenizer, type TopicMessageEvent, TopicMessageEventSchema, type TopicPub, TopicPubSchema, type TopicSub, TopicSubSchema, type TopicUnsub, TopicUnsubSchema, TrimFilter, UnionResultSet, type UnionStep, UniqueFilter, type UnregisterResolverRequest, UnregisterResolverRequestSchema, type UnregisterResolverResponse, UnregisterResolverResponseSchema, type VectorDebugInfo, VirtualClock, VirtualNetwork, WRITE_CONCERN_ORDER, WhitespaceTokenizer, WordBoundaryTokenizer, WriteConcern, WriteConcernSchema, type WriteConcernValue, type WriteOptions$1 as WriteOptions, type WriteResult, calculateTotalCost, combineHashes, compareHLCTimestamps, compareTimestamps, compareValues, createFieldComparator, createPredicateMatcher, decodeBase64Url, deepMerge, deserialize, encodeBase64Url, evaluatePredicate, getCRDTDebugger, getHighestWriteConcernLevel, getSearchDebugger, hashORMapEntry, hashORMapRecord, hashObject, hashString, isLogicalQuery, isSimpleQuery, isWriteConcernAchieved, logger, multiAttribute, porterStem, resetCRDTDebugger, resetSearchDebugger, serialize, simpleAttribute, timestampToString, validateProcessorCode, validateResolverCode };