@topgunbuild/core 0.11.0 → 0.12.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.ts 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;
@@ -1782,12 +1819,14 @@ declare const QuerySubMessageSchema: z.ZodObject<{
1782
1819
  }, z.core.$strip>;
1783
1820
  }, z.core.$strip>;
1784
1821
  }, z.core.$strip>;
1822
+ type QuerySubMessage = z.infer<typeof QuerySubMessageSchema>;
1785
1823
  declare const QueryUnsubMessageSchema: z.ZodObject<{
1786
1824
  type: z.ZodLiteral<"QUERY_UNSUB">;
1787
1825
  payload: z.ZodObject<{
1788
1826
  queryId: z.ZodString;
1789
1827
  }, z.core.$strip>;
1790
1828
  }, z.core.$strip>;
1829
+ type QueryUnsubMessage = z.infer<typeof QueryUnsubMessageSchema>;
1791
1830
  declare const CursorStatusSchema: z.ZodEnum<{
1792
1831
  valid: "valid";
1793
1832
  expired: "expired";
@@ -1926,7 +1965,7 @@ declare const SearchUpdatePayloadSchema: z.ZodObject<{
1926
1965
  value: z.ZodUnknown;
1927
1966
  score: z.ZodNumber;
1928
1967
  matchedTerms: z.ZodArray<z.ZodString>;
1929
- type: z.ZodEnum<{
1968
+ changeType: z.ZodEnum<{
1930
1969
  UPDATE: "UPDATE";
1931
1970
  ENTER: "ENTER";
1932
1971
  LEAVE: "LEAVE";
@@ -1941,7 +1980,7 @@ declare const SearchUpdateMessageSchema: z.ZodObject<{
1941
1980
  value: z.ZodUnknown;
1942
1981
  score: z.ZodNumber;
1943
1982
  matchedTerms: z.ZodArray<z.ZodString>;
1944
- type: z.ZodEnum<{
1983
+ changeType: z.ZodEnum<{
1945
1984
  UPDATE: "UPDATE";
1946
1985
  ENTER: "ENTER";
1947
1986
  LEAVE: "LEAVE";
@@ -1967,6 +2006,81 @@ declare const PartitionMapRequestSchema: z.ZodObject<{
1967
2006
  currentVersion: z.ZodOptional<z.ZodNumber>;
1968
2007
  }, z.core.$strip>>;
1969
2008
  }, z.core.$strip>;
2009
+ type PartitionMapRequest = z.infer<typeof PartitionMapRequestSchema>;
2010
+ declare const NodeInfoSchema: z.ZodObject<{
2011
+ nodeId: z.ZodString;
2012
+ endpoints: z.ZodObject<{
2013
+ websocket: z.ZodString;
2014
+ http: z.ZodOptional<z.ZodString>;
2015
+ }, z.core.$strip>;
2016
+ status: z.ZodEnum<{
2017
+ ACTIVE: "ACTIVE";
2018
+ JOINING: "JOINING";
2019
+ LEAVING: "LEAVING";
2020
+ SUSPECTED: "SUSPECTED";
2021
+ FAILED: "FAILED";
2022
+ }>;
2023
+ }, z.core.$strip>;
2024
+ type NodeInfoZod = z.infer<typeof NodeInfoSchema>;
2025
+ declare const PartitionInfoSchema: z.ZodObject<{
2026
+ partitionId: z.ZodNumber;
2027
+ ownerNodeId: z.ZodString;
2028
+ backupNodeIds: z.ZodArray<z.ZodString>;
2029
+ }, z.core.$strip>;
2030
+ type PartitionInfoZod = z.infer<typeof PartitionInfoSchema>;
2031
+ declare const PartitionMapPayloadSchema: z.ZodObject<{
2032
+ version: z.ZodNumber;
2033
+ partitionCount: z.ZodNumber;
2034
+ nodes: z.ZodArray<z.ZodObject<{
2035
+ nodeId: z.ZodString;
2036
+ endpoints: z.ZodObject<{
2037
+ websocket: z.ZodString;
2038
+ http: z.ZodOptional<z.ZodString>;
2039
+ }, z.core.$strip>;
2040
+ status: z.ZodEnum<{
2041
+ ACTIVE: "ACTIVE";
2042
+ JOINING: "JOINING";
2043
+ LEAVING: "LEAVING";
2044
+ SUSPECTED: "SUSPECTED";
2045
+ FAILED: "FAILED";
2046
+ }>;
2047
+ }, z.core.$strip>>;
2048
+ partitions: z.ZodArray<z.ZodObject<{
2049
+ partitionId: z.ZodNumber;
2050
+ ownerNodeId: z.ZodString;
2051
+ backupNodeIds: z.ZodArray<z.ZodString>;
2052
+ }, z.core.$strip>>;
2053
+ generatedAt: z.ZodNumber;
2054
+ }, z.core.$strip>;
2055
+ type PartitionMapPayload = z.infer<typeof PartitionMapPayloadSchema>;
2056
+ declare const PartitionMapMessageSchema: z.ZodObject<{
2057
+ type: z.ZodLiteral<"PARTITION_MAP">;
2058
+ payload: z.ZodObject<{
2059
+ version: z.ZodNumber;
2060
+ partitionCount: z.ZodNumber;
2061
+ nodes: z.ZodArray<z.ZodObject<{
2062
+ nodeId: z.ZodString;
2063
+ endpoints: z.ZodObject<{
2064
+ websocket: z.ZodString;
2065
+ http: z.ZodOptional<z.ZodString>;
2066
+ }, z.core.$strip>;
2067
+ status: z.ZodEnum<{
2068
+ ACTIVE: "ACTIVE";
2069
+ JOINING: "JOINING";
2070
+ LEAVING: "LEAVING";
2071
+ SUSPECTED: "SUSPECTED";
2072
+ FAILED: "FAILED";
2073
+ }>;
2074
+ }, z.core.$strip>>;
2075
+ partitions: z.ZodArray<z.ZodObject<{
2076
+ partitionId: z.ZodNumber;
2077
+ ownerNodeId: z.ZodString;
2078
+ backupNodeIds: z.ZodArray<z.ZodString>;
2079
+ }, z.core.$strip>>;
2080
+ generatedAt: z.ZodNumber;
2081
+ }, z.core.$strip>;
2082
+ }, z.core.$strip>;
2083
+ type PartitionMapMessage = z.infer<typeof PartitionMapMessageSchema>;
1970
2084
  declare const ClusterSubRegisterPayloadSchema: z.ZodObject<{
1971
2085
  subscriptionId: z.ZodString;
1972
2086
  coordinatorNodeId: z.ZodString;
@@ -2092,9 +2206,9 @@ declare const ClusterSearchReqPayloadSchema: z.ZodObject<{
2092
2206
  mapName: z.ZodString;
2093
2207
  query: z.ZodString;
2094
2208
  options: z.ZodObject<{
2095
- limit: z.ZodNumber;
2096
2209
  minScore: z.ZodOptional<z.ZodNumber>;
2097
2210
  boost: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
2211
+ limit: z.ZodNumber;
2098
2212
  includeMatchedTerms: z.ZodOptional<z.ZodBoolean>;
2099
2213
  afterScore: z.ZodOptional<z.ZodNumber>;
2100
2214
  afterKey: z.ZodOptional<z.ZodString>;
@@ -2109,9 +2223,9 @@ declare const ClusterSearchReqMessageSchema: z.ZodObject<{
2109
2223
  mapName: z.ZodString;
2110
2224
  query: z.ZodString;
2111
2225
  options: z.ZodObject<{
2112
- limit: z.ZodNumber;
2113
2226
  minScore: z.ZodOptional<z.ZodNumber>;
2114
2227
  boost: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
2228
+ limit: z.ZodNumber;
2115
2229
  includeMatchedTerms: z.ZodOptional<z.ZodBoolean>;
2116
2230
  afterScore: z.ZodOptional<z.ZodNumber>;
2117
2231
  afterKey: z.ZodOptional<z.ZodString>;
@@ -2194,7 +2308,7 @@ declare const ClusterSearchUpdatePayloadSchema: z.ZodObject<{
2194
2308
  value: z.ZodUnknown;
2195
2309
  score: z.ZodNumber;
2196
2310
  matchedTerms: z.ZodOptional<z.ZodArray<z.ZodString>>;
2197
- type: z.ZodEnum<{
2311
+ changeType: z.ZodEnum<{
2198
2312
  UPDATE: "UPDATE";
2199
2313
  ENTER: "ENTER";
2200
2314
  LEAVE: "LEAVE";
@@ -2210,7 +2324,7 @@ declare const ClusterSearchUpdateMessageSchema: z.ZodObject<{
2210
2324
  value: z.ZodUnknown;
2211
2325
  score: z.ZodNumber;
2212
2326
  matchedTerms: z.ZodOptional<z.ZodArray<z.ZodString>>;
2213
- type: z.ZodEnum<{
2327
+ changeType: z.ZodEnum<{
2214
2328
  UPDATE: "UPDATE";
2215
2329
  ENTER: "ENTER";
2216
2330
  LEAVE: "LEAVE";
@@ -2225,12 +2339,14 @@ declare const TopicSubSchema: z.ZodObject<{
2225
2339
  topic: z.ZodString;
2226
2340
  }, z.core.$strip>;
2227
2341
  }, z.core.$strip>;
2342
+ type TopicSub = z.infer<typeof TopicSubSchema>;
2228
2343
  declare const TopicUnsubSchema: z.ZodObject<{
2229
2344
  type: z.ZodLiteral<"TOPIC_UNSUB">;
2230
2345
  payload: z.ZodObject<{
2231
2346
  topic: z.ZodString;
2232
2347
  }, z.core.$strip>;
2233
2348
  }, z.core.$strip>;
2349
+ type TopicUnsub = z.infer<typeof TopicUnsubSchema>;
2234
2350
  declare const TopicPubSchema: z.ZodObject<{
2235
2351
  type: z.ZodLiteral<"TOPIC_PUB">;
2236
2352
  payload: z.ZodObject<{
@@ -2238,6 +2354,7 @@ declare const TopicPubSchema: z.ZodObject<{
2238
2354
  data: z.ZodAny;
2239
2355
  }, z.core.$strip>;
2240
2356
  }, z.core.$strip>;
2357
+ type TopicPub = z.infer<typeof TopicPubSchema>;
2241
2358
  declare const TopicMessageEventSchema: z.ZodObject<{
2242
2359
  type: z.ZodLiteral<"TOPIC_MESSAGE">;
2243
2360
  payload: z.ZodObject<{
@@ -2247,6 +2364,7 @@ declare const TopicMessageEventSchema: z.ZodObject<{
2247
2364
  timestamp: z.ZodNumber;
2248
2365
  }, z.core.$strip>;
2249
2366
  }, z.core.$strip>;
2367
+ type TopicMessageEvent = z.infer<typeof TopicMessageEventSchema>;
2250
2368
  declare const LockRequestSchema: z.ZodObject<{
2251
2369
  type: z.ZodLiteral<"LOCK_REQUEST">;
2252
2370
  payload: z.ZodObject<{
@@ -2255,6 +2373,7 @@ declare const LockRequestSchema: z.ZodObject<{
2255
2373
  ttl: z.ZodOptional<z.ZodNumber>;
2256
2374
  }, z.core.$strip>;
2257
2375
  }, z.core.$strip>;
2376
+ type LockRequest = z.infer<typeof LockRequestSchema>;
2258
2377
  declare const LockReleaseSchema: z.ZodObject<{
2259
2378
  type: z.ZodLiteral<"LOCK_RELEASE">;
2260
2379
  payload: z.ZodObject<{
@@ -2263,6 +2382,7 @@ declare const LockReleaseSchema: z.ZodObject<{
2263
2382
  fencingToken: z.ZodNumber;
2264
2383
  }, z.core.$strip>;
2265
2384
  }, z.core.$strip>;
2385
+ type LockRelease = z.infer<typeof LockReleaseSchema>;
2266
2386
  declare const PNCounterStateObjectSchema: z.ZodObject<{
2267
2387
  p: z.ZodRecord<z.ZodString, z.ZodNumber>;
2268
2388
  n: z.ZodRecord<z.ZodString, z.ZodNumber>;
@@ -2273,6 +2393,7 @@ declare const CounterRequestSchema: z.ZodObject<{
2273
2393
  name: z.ZodString;
2274
2394
  }, z.core.$strip>;
2275
2395
  }, z.core.$strip>;
2396
+ type CounterRequest = z.infer<typeof CounterRequestSchema>;
2276
2397
  declare const CounterSyncSchema: z.ZodObject<{
2277
2398
  type: z.ZodLiteral<"COUNTER_SYNC">;
2278
2399
  payload: z.ZodObject<{
@@ -2283,6 +2404,7 @@ declare const CounterSyncSchema: z.ZodObject<{
2283
2404
  }, z.core.$strip>;
2284
2405
  }, z.core.$strip>;
2285
2406
  }, z.core.$strip>;
2407
+ type CounterSync = z.infer<typeof CounterSyncSchema>;
2286
2408
  declare const CounterResponseSchema: z.ZodObject<{
2287
2409
  type: z.ZodLiteral<"COUNTER_RESPONSE">;
2288
2410
  payload: z.ZodObject<{
@@ -2293,6 +2415,7 @@ declare const CounterResponseSchema: z.ZodObject<{
2293
2415
  }, z.core.$strip>;
2294
2416
  }, z.core.$strip>;
2295
2417
  }, z.core.$strip>;
2418
+ type CounterResponse = z.infer<typeof CounterResponseSchema>;
2296
2419
  declare const CounterUpdateSchema: z.ZodObject<{
2297
2420
  type: z.ZodLiteral<"COUNTER_UPDATE">;
2298
2421
  payload: z.ZodObject<{
@@ -2303,6 +2426,7 @@ declare const CounterUpdateSchema: z.ZodObject<{
2303
2426
  }, z.core.$strip>;
2304
2427
  }, z.core.$strip>;
2305
2428
  }, z.core.$strip>;
2429
+ type CounterUpdate = z.infer<typeof CounterUpdateSchema>;
2306
2430
  declare const PingMessageSchema: z.ZodObject<{
2307
2431
  type: z.ZodLiteral<"PING">;
2308
2432
  timestamp: z.ZodNumber;
@@ -2319,6 +2443,7 @@ declare const EntryProcessorSchema: z.ZodObject<{
2319
2443
  code: z.ZodString;
2320
2444
  args: z.ZodOptional<z.ZodUnknown>;
2321
2445
  }, z.core.$strip>;
2446
+ type EntryProcessor = z.infer<typeof EntryProcessorSchema>;
2322
2447
  declare const EntryProcessRequestSchema: z.ZodObject<{
2323
2448
  type: z.ZodLiteral<"ENTRY_PROCESS">;
2324
2449
  requestId: z.ZodString;
@@ -2644,10 +2769,10 @@ declare const QueryUpdatePayloadSchema: z.ZodObject<{
2644
2769
  queryId: z.ZodString;
2645
2770
  key: z.ZodString;
2646
2771
  value: z.ZodUnknown;
2647
- type: z.ZodEnum<{
2772
+ changeType: z.ZodEnum<{
2648
2773
  UPDATE: "UPDATE";
2649
- REMOVE: "REMOVE";
2650
2774
  ENTER: "ENTER";
2775
+ LEAVE: "LEAVE";
2651
2776
  }>;
2652
2777
  }, z.core.$strip>;
2653
2778
  type QueryUpdatePayload = z.infer<typeof QueryUpdatePayloadSchema>;
@@ -2657,10 +2782,10 @@ declare const QueryUpdateMessageSchema: z.ZodObject<{
2657
2782
  queryId: z.ZodString;
2658
2783
  key: z.ZodString;
2659
2784
  value: z.ZodUnknown;
2660
- type: z.ZodEnum<{
2785
+ changeType: z.ZodEnum<{
2661
2786
  UPDATE: "UPDATE";
2662
- REMOVE: "REMOVE";
2663
2787
  ENTER: "ENTER";
2788
+ LEAVE: "LEAVE";
2664
2789
  }>;
2665
2790
  }, z.core.$strip>;
2666
2791
  }, z.core.$strip>;
@@ -2684,58 +2809,70 @@ declare const GcPruneMessageSchema: z.ZodObject<{
2684
2809
  }, z.core.$strip>;
2685
2810
  }, z.core.$strip>;
2686
2811
  type GcPruneMessage = z.infer<typeof GcPruneMessageSchema>;
2812
+ declare const AuthAckMessageSchema: z.ZodObject<{
2813
+ type: z.ZodLiteral<"AUTH_ACK">;
2814
+ protocolVersion: z.ZodOptional<z.ZodNumber>;
2815
+ userId: z.ZodOptional<z.ZodString>;
2816
+ }, z.core.$strip>;
2817
+ type AuthAckMessage = z.infer<typeof AuthAckMessageSchema>;
2687
2818
  declare const AuthFailMessageSchema: z.ZodObject<{
2688
2819
  type: z.ZodLiteral<"AUTH_FAIL">;
2689
2820
  error: z.ZodOptional<z.ZodString>;
2690
2821
  code: z.ZodOptional<z.ZodNumber>;
2691
2822
  }, z.core.$strip>;
2692
2823
  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
- }>;
2824
+ declare const ErrorMessageSchema: z.ZodObject<{
2825
+ type: z.ZodLiteral<"ERROR">;
2826
+ payload: z.ZodObject<{
2827
+ code: z.ZodNumber;
2828
+ message: z.ZodString;
2829
+ details: z.ZodOptional<z.ZodUnknown>;
2830
+ }, z.core.$strip>;
2722
2831
  }, z.core.$strip>;
2723
- type HybridQueryDeltaPayload = z.infer<typeof HybridQueryDeltaPayloadSchema>;
2832
+ type ErrorMessage = z.infer<typeof ErrorMessageSchema>;
2724
2833
  declare const LockGrantedPayloadSchema: z.ZodObject<{
2725
2834
  requestId: z.ZodString;
2835
+ name: z.ZodString;
2726
2836
  fencingToken: z.ZodNumber;
2727
2837
  }, z.core.$strip>;
2728
2838
  type LockGrantedPayload = z.infer<typeof LockGrantedPayloadSchema>;
2729
2839
  declare const LockReleasedPayloadSchema: z.ZodObject<{
2730
2840
  requestId: z.ZodString;
2841
+ name: z.ZodString;
2731
2842
  success: z.ZodBoolean;
2732
2843
  }, z.core.$strip>;
2733
2844
  type LockReleasedPayload = z.infer<typeof LockReleasedPayloadSchema>;
2845
+ declare const LockGrantedMessageSchema: z.ZodObject<{
2846
+ type: z.ZodLiteral<"LOCK_GRANTED">;
2847
+ payload: z.ZodObject<{
2848
+ requestId: z.ZodString;
2849
+ name: z.ZodString;
2850
+ fencingToken: z.ZodNumber;
2851
+ }, z.core.$strip>;
2852
+ }, z.core.$strip>;
2853
+ type LockGrantedMessage = z.infer<typeof LockGrantedMessageSchema>;
2854
+ declare const LockReleasedMessageSchema: z.ZodObject<{
2855
+ type: z.ZodLiteral<"LOCK_RELEASED">;
2856
+ payload: z.ZodObject<{
2857
+ requestId: z.ZodString;
2858
+ name: z.ZodString;
2859
+ success: z.ZodBoolean;
2860
+ }, z.core.$strip>;
2861
+ }, z.core.$strip>;
2862
+ type LockReleasedMessage = z.infer<typeof LockReleasedMessageSchema>;
2734
2863
  declare const SyncResetRequiredPayloadSchema: z.ZodObject<{
2735
2864
  mapName: z.ZodString;
2736
2865
  reason: z.ZodString;
2737
2866
  }, z.core.$strip>;
2738
2867
  type SyncResetRequiredPayload = z.infer<typeof SyncResetRequiredPayloadSchema>;
2868
+ declare const SyncResetRequiredMessageSchema: z.ZodObject<{
2869
+ type: z.ZodLiteral<"SYNC_RESET_REQUIRED">;
2870
+ payload: z.ZodObject<{
2871
+ mapName: z.ZodString;
2872
+ reason: z.ZodString;
2873
+ }, z.core.$strip>;
2874
+ }, z.core.$strip>;
2875
+ type SyncResetRequiredMessage = z.infer<typeof SyncResetRequiredMessageSchema>;
2739
2876
  type SyncRespRootPayload = z.infer<typeof SyncRespRootMessageSchema>['payload'];
2740
2877
  type SyncRespBucketsPayload = z.infer<typeof SyncRespBucketsMessageSchema>['payload'];
2741
2878
  type SyncRespLeafPayload = z.infer<typeof SyncRespLeafMessageSchema>['payload'];
@@ -2756,6 +2893,7 @@ declare const SyncMapEntrySchema: z.ZodObject<{
2756
2893
  nodeId: z.ZodString;
2757
2894
  }, z.core.$strip>;
2758
2895
  }, z.core.$strip>;
2896
+ type SyncMapEntry = z.infer<typeof SyncMapEntrySchema>;
2759
2897
  /**
2760
2898
  * Schema for one-shot query requests over HTTP.
2761
2899
  */
@@ -2766,6 +2904,7 @@ declare const HttpQueryRequestSchema: z.ZodObject<{
2766
2904
  limit: z.ZodOptional<z.ZodNumber>;
2767
2905
  offset: z.ZodOptional<z.ZodNumber>;
2768
2906
  }, z.core.$strip>;
2907
+ type HttpQueryRequest = z.infer<typeof HttpQueryRequestSchema>;
2769
2908
  /**
2770
2909
  * Schema for one-shot search requests over HTTP.
2771
2910
  */
@@ -2775,6 +2914,7 @@ declare const HttpSearchRequestSchema: z.ZodObject<{
2775
2914
  query: z.ZodString;
2776
2915
  options: z.ZodOptional<z.ZodAny>;
2777
2916
  }, z.core.$strip>;
2917
+ type HttpSearchRequest = z.infer<typeof HttpSearchRequestSchema>;
2778
2918
  /**
2779
2919
  * HTTP sync request body sent by the client as POST /sync.
2780
2920
  * Contains all context needed for a stateless request: client identity,
@@ -2863,6 +3003,7 @@ declare const DeltaRecordSchema: z.ZodObject<{
2863
3003
  REMOVE: "REMOVE";
2864
3004
  }>;
2865
3005
  }, z.core.$strip>;
3006
+ type DeltaRecord = z.infer<typeof DeltaRecordSchema>;
2866
3007
  /**
2867
3008
  * Delta records for a specific map, containing all new/changed records
2868
3009
  * since the client's lastSyncTimestamp.
@@ -2891,6 +3032,7 @@ declare const MapDeltaSchema: z.ZodObject<{
2891
3032
  nodeId: z.ZodString;
2892
3033
  }, z.core.$strip>;
2893
3034
  }, z.core.$strip>;
3035
+ type MapDelta = z.infer<typeof MapDeltaSchema>;
2894
3036
  /**
2895
3037
  * Query result for a one-shot HTTP query.
2896
3038
  */
@@ -2900,6 +3042,7 @@ declare const HttpQueryResultSchema: z.ZodObject<{
2900
3042
  hasMore: z.ZodOptional<z.ZodBoolean>;
2901
3043
  nextCursor: z.ZodOptional<z.ZodString>;
2902
3044
  }, z.core.$strip>;
3045
+ type HttpQueryResult = z.infer<typeof HttpQueryResultSchema>;
2903
3046
  /**
2904
3047
  * Search result for a one-shot HTTP search.
2905
3048
  */
@@ -2908,6 +3051,7 @@ declare const HttpSearchResultSchema: z.ZodObject<{
2908
3051
  results: z.ZodArray<z.ZodAny>;
2909
3052
  totalCount: z.ZodOptional<z.ZodNumber>;
2910
3053
  }, z.core.$strip>;
3054
+ type HttpSearchResult = z.infer<typeof HttpSearchResultSchema>;
2911
3055
  /**
2912
3056
  * Error entry for individual operation failures.
2913
3057
  */
@@ -2916,6 +3060,7 @@ declare const HttpSyncErrorSchema: z.ZodObject<{
2916
3060
  message: z.ZodString;
2917
3061
  context: z.ZodOptional<z.ZodString>;
2918
3062
  }, z.core.$strip>;
3063
+ type HttpSyncError = z.infer<typeof HttpSyncErrorSchema>;
2919
3064
  /**
2920
3065
  * HTTP sync response returned by the server for POST /sync.
2921
3066
  * Contains operation acknowledgments, delta records, query/search results,
@@ -2988,27 +3133,9 @@ type HttpSyncResponse = z.infer<typeof HttpSyncResponseSchema>;
2988
3133
  declare const MessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2989
3134
  type: z.ZodLiteral<"AUTH">;
2990
3135
  token: z.ZodString;
3136
+ protocolVersion: z.ZodOptional<z.ZodNumber>;
2991
3137
  }, 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>;
3138
+ type: z.ZodLiteral<"AUTH_REQUIRED">;
3012
3139
  }, z.core.$strip>, z.ZodObject<{
3013
3140
  type: z.ZodLiteral<"CLIENT_OP">;
3014
3141
  payload: z.ZodObject<{
@@ -3138,42 +3265,40 @@ declare const MessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3138
3265
  path: z.ZodString;
3139
3266
  }, z.core.$strip>;
3140
3267
  }, 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">;
3268
+ type: z.ZodLiteral<"OP_ACK">;
3161
3269
  payload: z.ZodObject<{
3162
- topic: z.ZodString;
3270
+ lastId: z.ZodString;
3271
+ achievedLevel: z.ZodOptional<z.ZodEnum<{
3272
+ FIRE_AND_FORGET: "FIRE_AND_FORGET";
3273
+ MEMORY: "MEMORY";
3274
+ APPLIED: "APPLIED";
3275
+ REPLICATED: "REPLICATED";
3276
+ PERSISTED: "PERSISTED";
3277
+ }>>;
3278
+ results: z.ZodOptional<z.ZodArray<z.ZodObject<{
3279
+ opId: z.ZodString;
3280
+ success: z.ZodBoolean;
3281
+ achievedLevel: z.ZodEnum<{
3282
+ FIRE_AND_FORGET: "FIRE_AND_FORGET";
3283
+ MEMORY: "MEMORY";
3284
+ APPLIED: "APPLIED";
3285
+ REPLICATED: "REPLICATED";
3286
+ PERSISTED: "PERSISTED";
3287
+ }>;
3288
+ error: z.ZodOptional<z.ZodString>;
3289
+ }, z.core.$strip>>>;
3163
3290
  }, z.core.$strip>;
3164
3291
  }, z.core.$strip>, z.ZodObject<{
3165
- type: z.ZodLiteral<"TOPIC_PUB">;
3292
+ type: z.ZodLiteral<"OP_REJECTED">;
3166
3293
  payload: z.ZodObject<{
3167
- topic: z.ZodString;
3168
- data: z.ZodAny;
3294
+ opId: z.ZodString;
3295
+ reason: z.ZodString;
3296
+ code: z.ZodOptional<z.ZodNumber>;
3169
3297
  }, z.core.$strip>;
3170
3298
  }, 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;
3299
+ type: z.ZodLiteral<"BATCH">;
3300
+ count: z.ZodNumber;
3301
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
3177
3302
  }, z.core.$strip>, z.ZodObject<{
3178
3303
  type: z.ZodLiteral<"ORMAP_SYNC_INIT">;
3179
3304
  mapName: z.ZodString;
@@ -3269,44 +3394,360 @@ declare const MessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3269
3394
  }, z.core.$strip>>;
3270
3395
  }, z.core.$strip>;
3271
3396
  }, 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">;
3397
+ type: z.ZodLiteral<"QUERY_SUB">;
3278
3398
  payload: z.ZodObject<{
3279
- name: z.ZodString;
3399
+ queryId: z.ZodString;
3400
+ mapName: z.ZodString;
3401
+ query: z.ZodObject<{
3402
+ where: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3403
+ predicate: z.ZodOptional<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
3404
+ sort: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
3405
+ asc: "asc";
3406
+ desc: "desc";
3407
+ }>>>;
3408
+ limit: z.ZodOptional<z.ZodNumber>;
3409
+ cursor: z.ZodOptional<z.ZodString>;
3410
+ }, z.core.$strip>;
3280
3411
  }, z.core.$strip>;
3281
3412
  }, z.core.$strip>, z.ZodObject<{
3282
- type: z.ZodLiteral<"COUNTER_SYNC">;
3413
+ type: z.ZodLiteral<"QUERY_UNSUB">;
3283
3414
  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>;
3415
+ queryId: z.ZodString;
3289
3416
  }, z.core.$strip>;
3290
3417
  }, 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>;
3418
+ type: z.ZodLiteral<"QUERY_RESP">;
3419
+ payload: z.ZodObject<{
3420
+ queryId: z.ZodString;
3421
+ results: z.ZodArray<z.ZodObject<{
3422
+ key: z.ZodString;
3423
+ value: z.ZodUnknown;
3424
+ }, z.core.$strip>>;
3425
+ nextCursor: z.ZodOptional<z.ZodString>;
3426
+ hasMore: z.ZodOptional<z.ZodBoolean>;
3427
+ cursorStatus: z.ZodOptional<z.ZodEnum<{
3428
+ valid: "valid";
3429
+ expired: "expired";
3430
+ invalid: "invalid";
3431
+ none: "none";
3432
+ }>>;
3299
3433
  }, z.core.$strip>;
3300
3434
  }, z.core.$strip>, z.ZodObject<{
3301
- type: z.ZodLiteral<"ENTRY_PROCESS_BATCH">;
3302
- requestId: z.ZodString;
3303
- mapName: z.ZodString;
3304
- keys: z.ZodArray<z.ZodString>;
3305
- processor: z.ZodObject<{
3306
- name: z.ZodString;
3307
- code: z.ZodString;
3308
- args: z.ZodOptional<z.ZodUnknown>;
3309
- }, z.core.$strip>;
3435
+ type: z.ZodLiteral<"QUERY_UPDATE">;
3436
+ payload: z.ZodObject<{
3437
+ queryId: z.ZodString;
3438
+ key: z.ZodString;
3439
+ value: z.ZodUnknown;
3440
+ changeType: z.ZodEnum<{
3441
+ UPDATE: "UPDATE";
3442
+ ENTER: "ENTER";
3443
+ LEAVE: "LEAVE";
3444
+ }>;
3445
+ }, z.core.$strip>;
3446
+ }, z.core.$strip>, z.ZodObject<{
3447
+ type: z.ZodLiteral<"SEARCH">;
3448
+ payload: z.ZodObject<{
3449
+ requestId: z.ZodString;
3450
+ mapName: z.ZodString;
3451
+ query: z.ZodString;
3452
+ options: z.ZodOptional<z.ZodObject<{
3453
+ limit: z.ZodOptional<z.ZodNumber>;
3454
+ minScore: z.ZodOptional<z.ZodNumber>;
3455
+ boost: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
3456
+ }, z.core.$strip>>;
3457
+ }, z.core.$strip>;
3458
+ }, z.core.$strip>, z.ZodObject<{
3459
+ type: z.ZodLiteral<"SEARCH_RESP">;
3460
+ payload: z.ZodObject<{
3461
+ requestId: z.ZodString;
3462
+ results: z.ZodArray<z.ZodObject<{
3463
+ key: z.ZodString;
3464
+ value: z.ZodUnknown;
3465
+ score: z.ZodNumber;
3466
+ matchedTerms: z.ZodArray<z.ZodString>;
3467
+ }, z.core.$strip>>;
3468
+ totalCount: z.ZodNumber;
3469
+ error: z.ZodOptional<z.ZodString>;
3470
+ }, z.core.$strip>;
3471
+ }, z.core.$strip>, z.ZodObject<{
3472
+ type: z.ZodLiteral<"SEARCH_SUB">;
3473
+ payload: z.ZodObject<{
3474
+ subscriptionId: z.ZodString;
3475
+ mapName: z.ZodString;
3476
+ query: z.ZodString;
3477
+ options: z.ZodOptional<z.ZodObject<{
3478
+ limit: z.ZodOptional<z.ZodNumber>;
3479
+ minScore: z.ZodOptional<z.ZodNumber>;
3480
+ boost: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
3481
+ }, z.core.$strip>>;
3482
+ }, z.core.$strip>;
3483
+ }, z.core.$strip>, z.ZodObject<{
3484
+ type: z.ZodLiteral<"SEARCH_UPDATE">;
3485
+ payload: z.ZodObject<{
3486
+ subscriptionId: z.ZodString;
3487
+ key: z.ZodString;
3488
+ value: z.ZodUnknown;
3489
+ score: z.ZodNumber;
3490
+ matchedTerms: z.ZodArray<z.ZodString>;
3491
+ changeType: z.ZodEnum<{
3492
+ UPDATE: "UPDATE";
3493
+ ENTER: "ENTER";
3494
+ LEAVE: "LEAVE";
3495
+ }>;
3496
+ }, z.core.$strip>;
3497
+ }, z.core.$strip>, z.ZodObject<{
3498
+ type: z.ZodLiteral<"SEARCH_UNSUB">;
3499
+ payload: z.ZodObject<{
3500
+ subscriptionId: z.ZodString;
3501
+ }, z.core.$strip>;
3502
+ }, z.core.$strip>, z.ZodObject<{
3503
+ type: z.ZodLiteral<"PARTITION_MAP_REQUEST">;
3504
+ payload: z.ZodOptional<z.ZodObject<{
3505
+ currentVersion: z.ZodOptional<z.ZodNumber>;
3506
+ }, z.core.$strip>>;
3507
+ }, z.core.$strip>, z.ZodObject<{
3508
+ type: z.ZodLiteral<"PARTITION_MAP">;
3509
+ payload: z.ZodObject<{
3510
+ version: z.ZodNumber;
3511
+ partitionCount: z.ZodNumber;
3512
+ nodes: z.ZodArray<z.ZodObject<{
3513
+ nodeId: z.ZodString;
3514
+ endpoints: z.ZodObject<{
3515
+ websocket: z.ZodString;
3516
+ http: z.ZodOptional<z.ZodString>;
3517
+ }, z.core.$strip>;
3518
+ status: z.ZodEnum<{
3519
+ ACTIVE: "ACTIVE";
3520
+ JOINING: "JOINING";
3521
+ LEAVING: "LEAVING";
3522
+ SUSPECTED: "SUSPECTED";
3523
+ FAILED: "FAILED";
3524
+ }>;
3525
+ }, z.core.$strip>>;
3526
+ partitions: z.ZodArray<z.ZodObject<{
3527
+ partitionId: z.ZodNumber;
3528
+ ownerNodeId: z.ZodString;
3529
+ backupNodeIds: z.ZodArray<z.ZodString>;
3530
+ }, z.core.$strip>>;
3531
+ generatedAt: z.ZodNumber;
3532
+ }, z.core.$strip>;
3533
+ }, z.core.$strip>, z.ZodObject<{
3534
+ type: z.ZodLiteral<"CLUSTER_SUB_REGISTER">;
3535
+ payload: z.ZodObject<{
3536
+ subscriptionId: z.ZodString;
3537
+ coordinatorNodeId: z.ZodString;
3538
+ mapName: z.ZodString;
3539
+ type: z.ZodEnum<{
3540
+ SEARCH: "SEARCH";
3541
+ QUERY: "QUERY";
3542
+ }>;
3543
+ searchQuery: z.ZodOptional<z.ZodString>;
3544
+ searchOptions: z.ZodOptional<z.ZodObject<{
3545
+ limit: z.ZodOptional<z.ZodNumber>;
3546
+ minScore: z.ZodOptional<z.ZodNumber>;
3547
+ boost: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
3548
+ }, z.core.$strip>>;
3549
+ queryPredicate: z.ZodOptional<z.ZodAny>;
3550
+ querySort: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
3551
+ asc: "asc";
3552
+ desc: "desc";
3553
+ }>>>;
3554
+ }, z.core.$strip>;
3555
+ }, z.core.$strip>, z.ZodObject<{
3556
+ type: z.ZodLiteral<"CLUSTER_SUB_ACK">;
3557
+ payload: z.ZodObject<{
3558
+ subscriptionId: z.ZodString;
3559
+ nodeId: z.ZodString;
3560
+ success: z.ZodBoolean;
3561
+ error: z.ZodOptional<z.ZodString>;
3562
+ initialResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
3563
+ key: z.ZodString;
3564
+ value: z.ZodUnknown;
3565
+ score: z.ZodOptional<z.ZodNumber>;
3566
+ matchedTerms: z.ZodOptional<z.ZodArray<z.ZodString>>;
3567
+ }, z.core.$strip>>>;
3568
+ totalHits: z.ZodOptional<z.ZodNumber>;
3569
+ }, z.core.$strip>;
3570
+ }, z.core.$strip>, z.ZodObject<{
3571
+ type: z.ZodLiteral<"CLUSTER_SUB_UPDATE">;
3572
+ payload: z.ZodObject<{
3573
+ subscriptionId: z.ZodString;
3574
+ sourceNodeId: z.ZodString;
3575
+ key: z.ZodString;
3576
+ value: z.ZodUnknown;
3577
+ score: z.ZodOptional<z.ZodNumber>;
3578
+ matchedTerms: z.ZodOptional<z.ZodArray<z.ZodString>>;
3579
+ changeType: z.ZodEnum<{
3580
+ UPDATE: "UPDATE";
3581
+ ENTER: "ENTER";
3582
+ LEAVE: "LEAVE";
3583
+ }>;
3584
+ timestamp: z.ZodNumber;
3585
+ }, z.core.$strip>;
3586
+ }, z.core.$strip>, z.ZodObject<{
3587
+ type: z.ZodLiteral<"CLUSTER_SUB_UNREGISTER">;
3588
+ payload: z.ZodObject<{
3589
+ subscriptionId: z.ZodString;
3590
+ }, z.core.$strip>;
3591
+ }, z.core.$strip>, z.ZodObject<{
3592
+ type: z.ZodLiteral<"CLUSTER_SEARCH_REQ">;
3593
+ payload: z.ZodObject<{
3594
+ requestId: z.ZodString;
3595
+ mapName: z.ZodString;
3596
+ query: z.ZodString;
3597
+ options: z.ZodObject<{
3598
+ minScore: z.ZodOptional<z.ZodNumber>;
3599
+ boost: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
3600
+ limit: z.ZodNumber;
3601
+ includeMatchedTerms: z.ZodOptional<z.ZodBoolean>;
3602
+ afterScore: z.ZodOptional<z.ZodNumber>;
3603
+ afterKey: z.ZodOptional<z.ZodString>;
3604
+ }, z.core.$strip>;
3605
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
3606
+ }, z.core.$strip>;
3607
+ }, z.core.$strip>, z.ZodObject<{
3608
+ type: z.ZodLiteral<"CLUSTER_SEARCH_RESP">;
3609
+ payload: z.ZodObject<{
3610
+ requestId: z.ZodString;
3611
+ nodeId: z.ZodString;
3612
+ results: z.ZodArray<z.ZodObject<{
3613
+ key: z.ZodString;
3614
+ value: z.ZodUnknown;
3615
+ score: z.ZodNumber;
3616
+ matchedTerms: z.ZodOptional<z.ZodArray<z.ZodString>>;
3617
+ }, z.core.$strip>>;
3618
+ totalHits: z.ZodNumber;
3619
+ executionTimeMs: z.ZodNumber;
3620
+ error: z.ZodOptional<z.ZodString>;
3621
+ }, z.core.$strip>;
3622
+ }, z.core.$strip>, z.ZodObject<{
3623
+ type: z.ZodLiteral<"CLUSTER_SEARCH_SUBSCRIBE">;
3624
+ payload: z.ZodObject<{
3625
+ subscriptionId: z.ZodString;
3626
+ mapName: z.ZodString;
3627
+ query: z.ZodString;
3628
+ options: z.ZodOptional<z.ZodObject<{
3629
+ limit: z.ZodOptional<z.ZodNumber>;
3630
+ minScore: z.ZodOptional<z.ZodNumber>;
3631
+ boost: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
3632
+ }, z.core.$strip>>;
3633
+ }, z.core.$strip>;
3634
+ }, z.core.$strip>, z.ZodObject<{
3635
+ type: z.ZodLiteral<"CLUSTER_SEARCH_UNSUBSCRIBE">;
3636
+ payload: z.ZodObject<{
3637
+ subscriptionId: z.ZodString;
3638
+ }, z.core.$strip>;
3639
+ }, z.core.$strip>, z.ZodObject<{
3640
+ type: z.ZodLiteral<"CLUSTER_SEARCH_UPDATE">;
3641
+ payload: z.ZodObject<{
3642
+ subscriptionId: z.ZodString;
3643
+ nodeId: z.ZodString;
3644
+ key: z.ZodString;
3645
+ value: z.ZodUnknown;
3646
+ score: z.ZodNumber;
3647
+ matchedTerms: z.ZodOptional<z.ZodArray<z.ZodString>>;
3648
+ changeType: z.ZodEnum<{
3649
+ UPDATE: "UPDATE";
3650
+ ENTER: "ENTER";
3651
+ LEAVE: "LEAVE";
3652
+ }>;
3653
+ }, z.core.$strip>;
3654
+ }, z.core.$strip>, z.ZodObject<{
3655
+ type: z.ZodLiteral<"TOPIC_SUB">;
3656
+ payload: z.ZodObject<{
3657
+ topic: z.ZodString;
3658
+ }, z.core.$strip>;
3659
+ }, z.core.$strip>, z.ZodObject<{
3660
+ type: z.ZodLiteral<"TOPIC_UNSUB">;
3661
+ payload: z.ZodObject<{
3662
+ topic: z.ZodString;
3663
+ }, z.core.$strip>;
3664
+ }, z.core.$strip>, z.ZodObject<{
3665
+ type: z.ZodLiteral<"TOPIC_PUB">;
3666
+ payload: z.ZodObject<{
3667
+ topic: z.ZodString;
3668
+ data: z.ZodAny;
3669
+ }, z.core.$strip>;
3670
+ }, z.core.$strip>, z.ZodObject<{
3671
+ type: z.ZodLiteral<"TOPIC_MESSAGE">;
3672
+ payload: z.ZodObject<{
3673
+ topic: z.ZodString;
3674
+ data: z.ZodAny;
3675
+ publisherId: z.ZodOptional<z.ZodString>;
3676
+ timestamp: z.ZodNumber;
3677
+ }, z.core.$strip>;
3678
+ }, z.core.$strip>, z.ZodObject<{
3679
+ type: z.ZodLiteral<"LOCK_REQUEST">;
3680
+ payload: z.ZodObject<{
3681
+ requestId: z.ZodString;
3682
+ name: z.ZodString;
3683
+ ttl: z.ZodOptional<z.ZodNumber>;
3684
+ }, z.core.$strip>;
3685
+ }, z.core.$strip>, z.ZodObject<{
3686
+ type: z.ZodLiteral<"LOCK_RELEASE">;
3687
+ payload: z.ZodObject<{
3688
+ requestId: z.ZodOptional<z.ZodString>;
3689
+ name: z.ZodString;
3690
+ fencingToken: z.ZodNumber;
3691
+ }, z.core.$strip>;
3692
+ }, z.core.$strip>, z.ZodObject<{
3693
+ type: z.ZodLiteral<"COUNTER_REQUEST">;
3694
+ payload: z.ZodObject<{
3695
+ name: z.ZodString;
3696
+ }, z.core.$strip>;
3697
+ }, z.core.$strip>, z.ZodObject<{
3698
+ type: z.ZodLiteral<"COUNTER_SYNC">;
3699
+ payload: z.ZodObject<{
3700
+ name: z.ZodString;
3701
+ state: z.ZodObject<{
3702
+ p: z.ZodRecord<z.ZodString, z.ZodNumber>;
3703
+ n: z.ZodRecord<z.ZodString, z.ZodNumber>;
3704
+ }, z.core.$strip>;
3705
+ }, z.core.$strip>;
3706
+ }, z.core.$strip>, z.ZodObject<{
3707
+ type: z.ZodLiteral<"COUNTER_RESPONSE">;
3708
+ payload: z.ZodObject<{
3709
+ name: z.ZodString;
3710
+ state: z.ZodObject<{
3711
+ p: z.ZodRecord<z.ZodString, z.ZodNumber>;
3712
+ n: z.ZodRecord<z.ZodString, z.ZodNumber>;
3713
+ }, z.core.$strip>;
3714
+ }, z.core.$strip>;
3715
+ }, z.core.$strip>, z.ZodObject<{
3716
+ type: z.ZodLiteral<"COUNTER_UPDATE">;
3717
+ payload: z.ZodObject<{
3718
+ name: z.ZodString;
3719
+ state: z.ZodObject<{
3720
+ p: z.ZodRecord<z.ZodString, z.ZodNumber>;
3721
+ n: z.ZodRecord<z.ZodString, z.ZodNumber>;
3722
+ }, z.core.$strip>;
3723
+ }, z.core.$strip>;
3724
+ }, z.core.$strip>, z.ZodObject<{
3725
+ type: z.ZodLiteral<"PING">;
3726
+ timestamp: z.ZodNumber;
3727
+ }, z.core.$strip>, z.ZodObject<{
3728
+ type: z.ZodLiteral<"PONG">;
3729
+ timestamp: z.ZodNumber;
3730
+ serverTime: z.ZodNumber;
3731
+ }, z.core.$strip>, z.ZodObject<{
3732
+ type: z.ZodLiteral<"ENTRY_PROCESS">;
3733
+ requestId: z.ZodString;
3734
+ mapName: z.ZodString;
3735
+ key: z.ZodString;
3736
+ processor: z.ZodObject<{
3737
+ name: z.ZodString;
3738
+ code: z.ZodString;
3739
+ args: z.ZodOptional<z.ZodUnknown>;
3740
+ }, z.core.$strip>;
3741
+ }, z.core.$strip>, z.ZodObject<{
3742
+ type: z.ZodLiteral<"ENTRY_PROCESS_BATCH">;
3743
+ requestId: z.ZodString;
3744
+ mapName: z.ZodString;
3745
+ keys: z.ZodArray<z.ZodString>;
3746
+ processor: z.ZodObject<{
3747
+ name: z.ZodString;
3748
+ code: z.ZodString;
3749
+ args: z.ZodOptional<z.ZodUnknown>;
3750
+ }, z.core.$strip>;
3310
3751
  }, z.core.$strip>, z.ZodObject<{
3311
3752
  type: z.ZodLiteral<"ENTRY_PROCESS_RESPONSE">;
3312
3753
  requestId: z.ZodString;
@@ -3436,118 +3877,114 @@ declare const MessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3436
3877
  keyPattern: z.ZodOptional<z.ZodString>;
3437
3878
  }, z.core.$strip>>;
3438
3879
  }, z.core.$strip>, z.ZodObject<{
3439
- type: z.ZodLiteral<"SEARCH">;
3880
+ type: z.ZodLiteral<"SERVER_EVENT">;
3440
3881
  payload: z.ZodObject<{
3441
- requestId: z.ZodString;
3442
3882
  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>>;
3883
+ eventType: z.ZodEnum<{
3884
+ PUT: "PUT";
3885
+ REMOVE: "REMOVE";
3886
+ OR_ADD: "OR_ADD";
3887
+ OR_REMOVE: "OR_REMOVE";
3888
+ }>;
3889
+ key: z.ZodString;
3890
+ record: z.ZodOptional<z.ZodObject<{
3891
+ value: z.ZodNullable<z.ZodAny>;
3892
+ timestamp: z.ZodObject<{
3893
+ millis: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
3894
+ counter: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
3895
+ nodeId: z.ZodString;
3896
+ }, z.core.$strip>;
3897
+ ttlMs: z.ZodOptional<z.ZodNumber>;
3448
3898
  }, z.core.$strip>>;
3899
+ orRecord: z.ZodOptional<z.ZodObject<{
3900
+ value: z.ZodAny;
3901
+ timestamp: z.ZodObject<{
3902
+ millis: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
3903
+ counter: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
3904
+ nodeId: z.ZodString;
3905
+ }, z.core.$strip>;
3906
+ tag: z.ZodString;
3907
+ ttlMs: z.ZodOptional<z.ZodNumber>;
3908
+ }, z.core.$strip>>;
3909
+ orTag: z.ZodOptional<z.ZodString>;
3449
3910
  }, z.core.$strip>;
3450
3911
  }, z.core.$strip>, z.ZodObject<{
3451
- type: z.ZodLiteral<"SEARCH_RESP">;
3912
+ type: z.ZodLiteral<"SERVER_BATCH_EVENT">;
3452
3913
  payload: z.ZodObject<{
3453
- requestId: z.ZodString;
3454
- results: z.ZodArray<z.ZodObject<{
3914
+ events: z.ZodArray<z.ZodObject<{
3915
+ mapName: z.ZodString;
3916
+ eventType: z.ZodEnum<{
3917
+ PUT: "PUT";
3918
+ REMOVE: "REMOVE";
3919
+ OR_ADD: "OR_ADD";
3920
+ OR_REMOVE: "OR_REMOVE";
3921
+ }>;
3455
3922
  key: z.ZodString;
3456
- value: z.ZodUnknown;
3457
- score: z.ZodNumber;
3458
- matchedTerms: z.ZodArray<z.ZodString>;
3923
+ record: z.ZodOptional<z.ZodObject<{
3924
+ value: z.ZodNullable<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
+ ttlMs: z.ZodOptional<z.ZodNumber>;
3931
+ }, z.core.$strip>>;
3932
+ orRecord: z.ZodOptional<z.ZodObject<{
3933
+ value: z.ZodAny;
3934
+ timestamp: z.ZodObject<{
3935
+ millis: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
3936
+ counter: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
3937
+ nodeId: z.ZodString;
3938
+ }, z.core.$strip>;
3939
+ tag: z.ZodString;
3940
+ ttlMs: z.ZodOptional<z.ZodNumber>;
3941
+ }, z.core.$strip>>;
3942
+ orTag: z.ZodOptional<z.ZodString>;
3459
3943
  }, z.core.$strip>>;
3460
- totalCount: z.ZodNumber;
3461
- error: z.ZodOptional<z.ZodString>;
3462
3944
  }, z.core.$strip>;
3463
3945
  }, z.core.$strip>, z.ZodObject<{
3464
- type: z.ZodLiteral<"SEARCH_SUB">;
3946
+ type: z.ZodLiteral<"GC_PRUNE">;
3465
3947
  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>>;
3948
+ olderThan: z.ZodObject<{
3949
+ millis: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
3950
+ counter: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>;
3951
+ nodeId: z.ZodString;
3952
+ }, z.core.$strip>;
3474
3953
  }, z.core.$strip>;
3475
3954
  }, 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>;
3955
+ type: z.ZodLiteral<"AUTH_ACK">;
3956
+ protocolVersion: z.ZodOptional<z.ZodNumber>;
3957
+ userId: z.ZodOptional<z.ZodString>;
3489
3958
  }, z.core.$strip>, z.ZodObject<{
3490
- type: z.ZodLiteral<"SEARCH_UNSUB">;
3491
- payload: z.ZodObject<{
3492
- subscriptionId: z.ZodString;
3493
- }, z.core.$strip>;
3959
+ type: z.ZodLiteral<"AUTH_FAIL">;
3960
+ error: z.ZodOptional<z.ZodString>;
3961
+ code: z.ZodOptional<z.ZodNumber>;
3494
3962
  }, z.core.$strip>, z.ZodObject<{
3495
- type: z.ZodLiteral<"CLUSTER_SUB_REGISTER">;
3963
+ type: z.ZodLiteral<"ERROR">;
3496
3964
  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
- }>>>;
3965
+ code: z.ZodNumber;
3966
+ message: z.ZodString;
3967
+ details: z.ZodOptional<z.ZodUnknown>;
3515
3968
  }, z.core.$strip>;
3516
3969
  }, z.core.$strip>, z.ZodObject<{
3517
- type: z.ZodLiteral<"CLUSTER_SUB_ACK">;
3970
+ type: z.ZodLiteral<"LOCK_GRANTED">;
3518
3971
  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>;
3972
+ requestId: z.ZodString;
3973
+ name: z.ZodString;
3974
+ fencingToken: z.ZodNumber;
3530
3975
  }, z.core.$strip>;
3531
3976
  }, z.core.$strip>, z.ZodObject<{
3532
- type: z.ZodLiteral<"CLUSTER_SUB_UPDATE">;
3977
+ type: z.ZodLiteral<"LOCK_RELEASED">;
3533
3978
  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;
3979
+ requestId: z.ZodString;
3980
+ name: z.ZodString;
3981
+ success: z.ZodBoolean;
3546
3982
  }, z.core.$strip>;
3547
3983
  }, z.core.$strip>, z.ZodObject<{
3548
- type: z.ZodLiteral<"CLUSTER_SUB_UNREGISTER">;
3984
+ type: z.ZodLiteral<"SYNC_RESET_REQUIRED">;
3549
3985
  payload: z.ZodObject<{
3550
- subscriptionId: z.ZodString;
3986
+ mapName: z.ZodString;
3987
+ reason: z.ZodString;
3551
3988
  }, z.core.$strip>;
3552
3989
  }, z.core.$strip>], "type">;
3553
3990
 
@@ -3704,16 +4141,7 @@ interface PartitionMap {
3704
4141
  partitions: PartitionInfo[];
3705
4142
  generatedAt: number;
3706
4143
  }
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
- }
4144
+
3717
4145
  interface PartitionChange {
3718
4146
  partitionId: number;
3719
4147
  previousOwner: string;
@@ -10059,4 +10487,4 @@ declare class ScenarioRunner {
10059
10487
  setState(nodeId: string, state: unknown): void;
10060
10488
  }
10061
10489
 
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 };
10490
+ 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 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 };