@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.mjs CHANGED
@@ -1,10 +1,3 @@
1
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
2
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
3
- }) : x)(function(x) {
4
- if (typeof require !== "undefined") return require.apply(this, arguments);
5
- throw Error('Dynamic require of "' + x + '" is not supported');
6
- });
7
-
8
1
  // src/utils/logger.ts
9
2
  import pino from "pino";
10
3
  var logLevel = typeof process !== "undefined" && process.env && process.env.LOG_LEVEL || "info";
@@ -18,6 +11,9 @@ var logger = pino({
18
11
  // src/HLC.ts
19
12
  var HLC = class {
20
13
  constructor(nodeId, options = {}) {
14
+ if (nodeId.includes(":")) {
15
+ throw new Error('Node ID must not contain ":" (used as delimiter in timestamp format)');
16
+ }
21
17
  this.nodeId = nodeId;
22
18
  this.strictMode = options.strictMode ?? false;
23
19
  this.maxDriftMs = options.maxDriftMs ?? 6e4;
@@ -64,27 +60,33 @@ var HLC = class {
64
60
  * Must be called whenever a message/event is received from another node.
65
61
  */
66
62
  update(remote) {
63
+ const remoteMillis = Number(remote.millis);
64
+ const remoteCounter = Number(remote.counter);
65
+ if (!Number.isFinite(remoteMillis) || !Number.isFinite(remoteCounter)) {
66
+ logger.warn({ remoteMillis, remoteCounter, remote }, "HLC.update() received invalid timestamp, ignoring");
67
+ return;
68
+ }
67
69
  const systemTime = this.clockSource.now();
68
- const drift = remote.millis - systemTime;
70
+ const drift = remoteMillis - systemTime;
69
71
  if (drift > this.maxDriftMs) {
70
72
  if (this.strictMode) {
71
- throw new Error(`Clock drift detected: Remote time ${remote.millis} is ${drift}ms ahead of local ${systemTime} (threshold: ${this.maxDriftMs}ms)`);
73
+ throw new Error(`Clock drift detected: Remote time ${remoteMillis} is ${drift}ms ahead of local ${systemTime} (threshold: ${this.maxDriftMs}ms)`);
72
74
  } else {
73
75
  logger.warn({
74
76
  drift,
75
- remoteMillis: remote.millis,
77
+ remoteMillis,
76
78
  localMillis: systemTime,
77
79
  maxDriftMs: this.maxDriftMs
78
80
  }, "Clock drift detected");
79
81
  }
80
82
  }
81
- const maxMillis = Math.max(this.lastMillis, systemTime, remote.millis);
82
- if (maxMillis === this.lastMillis && maxMillis === remote.millis) {
83
- this.lastCounter = Math.max(this.lastCounter, remote.counter) + 1;
83
+ const maxMillis = Math.max(this.lastMillis, systemTime, remoteMillis);
84
+ if (maxMillis === this.lastMillis && maxMillis === remoteMillis) {
85
+ this.lastCounter = Math.max(this.lastCounter, remoteCounter) + 1;
84
86
  } else if (maxMillis === this.lastMillis) {
85
87
  this.lastCounter++;
86
- } else if (maxMillis === remote.millis) {
87
- this.lastCounter = remote.counter + 1;
88
+ } else if (maxMillis === remoteMillis) {
89
+ this.lastCounter = remoteCounter + 1;
88
90
  } else {
89
91
  this.lastCounter = 0;
90
92
  }
@@ -127,17 +129,7 @@ var HLC = class {
127
129
  };
128
130
 
129
131
  // src/utils/hash.ts
130
- var nativeHash = null;
131
- var nativeLoadAttempted = false;
132
- function tryLoadNative() {
133
- if (nativeLoadAttempted) return;
134
- nativeLoadAttempted = true;
135
- try {
136
- nativeHash = __require("@topgunbuild/native");
137
- } catch {
138
- }
139
- }
140
- function fnv1aHash(str) {
132
+ function hashString(str) {
141
133
  let hash = 2166136261;
142
134
  for (let i = 0; i < str.length; i++) {
143
135
  hash ^= str.charCodeAt(i);
@@ -145,13 +137,6 @@ function fnv1aHash(str) {
145
137
  }
146
138
  return hash >>> 0;
147
139
  }
148
- function hashString(str) {
149
- tryLoadNative();
150
- if (nativeHash && nativeHash.isNativeHashAvailable()) {
151
- return nativeHash.hashString(str);
152
- }
153
- return fnv1aHash(str);
154
- }
155
140
  function combineHashes(hashes) {
156
141
  let result = 0;
157
142
  for (const h of hashes) {
@@ -159,18 +144,6 @@ function combineHashes(hashes) {
159
144
  }
160
145
  return result >>> 0;
161
146
  }
162
- function isUsingNativeHash() {
163
- tryLoadNative();
164
- return nativeHash?.isNativeHashAvailable() === true;
165
- }
166
- function disableNativeHash() {
167
- nativeHash = null;
168
- nativeLoadAttempted = true;
169
- }
170
- function resetNativeHash() {
171
- nativeHash = null;
172
- nativeLoadAttempted = false;
173
- }
174
147
  function hashObject(obj) {
175
148
  const json = JSON.stringify(obj, (_, value) => {
176
149
  if (value && typeof value === "object" && !Array.isArray(value)) {
@@ -1008,11 +981,49 @@ var ORMap = class {
1008
981
  // src/serializer.ts
1009
982
  import { pack, unpack } from "msgpackr";
1010
983
  function serialize(data) {
1011
- return pack(data);
984
+ return pack(stripUndefined(data));
1012
985
  }
1013
986
  function deserialize(data) {
1014
987
  const buffer = data instanceof ArrayBuffer ? new Uint8Array(data) : data;
1015
- return unpack(buffer);
988
+ const result = unpack(buffer);
989
+ return coerceBigInts(result);
990
+ }
991
+ function stripUndefined(value) {
992
+ if (value === void 0) {
993
+ return null;
994
+ }
995
+ if (Array.isArray(value)) {
996
+ return value.map(stripUndefined);
997
+ }
998
+ if (value !== null && typeof value === "object") {
999
+ const result = {};
1000
+ for (const [k, v] of Object.entries(value)) {
1001
+ if (v !== void 0) {
1002
+ result[k] = stripUndefined(v);
1003
+ }
1004
+ }
1005
+ return result;
1006
+ }
1007
+ return value;
1008
+ }
1009
+ function coerceBigInts(value) {
1010
+ if (typeof value === "bigint") {
1011
+ return Number(value);
1012
+ }
1013
+ if (Array.isArray(value)) {
1014
+ for (let i = 0; i < value.length; i++) {
1015
+ value[i] = coerceBigInts(value[i]);
1016
+ }
1017
+ return value;
1018
+ }
1019
+ if (value !== null && typeof value === "object") {
1020
+ const obj = value;
1021
+ for (const key of Object.keys(obj)) {
1022
+ obj[key] = coerceBigInts(obj[key]);
1023
+ }
1024
+ return obj;
1025
+ }
1026
+ return value;
1016
1027
  }
1017
1028
 
1018
1029
  // src/PNCounter.ts
@@ -2187,6 +2198,7 @@ var ORMapRecordSchema = z3.object({
2187
2198
  tag: z3.string(),
2188
2199
  ttlMs: z3.number().optional()
2189
2200
  });
2201
+ var ChangeEventTypeSchema = z3.enum(["ENTER", "UPDATE", "LEAVE"]);
2190
2202
  var PredicateOpSchema = z3.enum([
2191
2203
  "eq",
2192
2204
  "neq",
@@ -2227,7 +2239,11 @@ var ClientOpSchema = z3.object({
2227
2239
  });
2228
2240
  var AuthMessageSchema = z3.object({
2229
2241
  type: z3.literal("AUTH"),
2230
- token: z3.string()
2242
+ token: z3.string(),
2243
+ protocolVersion: z3.number().optional()
2244
+ });
2245
+ var AuthRequiredMessageSchema = z3.object({
2246
+ type: z3.literal("AUTH_REQUIRED")
2231
2247
  });
2232
2248
 
2233
2249
  // src/schemas/sync-schemas.ts
@@ -2283,6 +2299,11 @@ var MerkleReqBucketMessageSchema = z4.object({
2283
2299
  path: z4.string()
2284
2300
  })
2285
2301
  });
2302
+ var ORMapEntrySchema = z4.object({
2303
+ key: z4.string(),
2304
+ records: z4.array(ORMapRecordSchema),
2305
+ tombstones: z4.array(z4.string())
2306
+ });
2286
2307
  var ORMapSyncInitSchema = z4.object({
2287
2308
  type: z4.literal("ORMAP_SYNC_INIT"),
2288
2309
  mapName: z4.string(),
@@ -2318,11 +2339,7 @@ var ORMapSyncRespLeafSchema = z4.object({
2318
2339
  payload: z4.object({
2319
2340
  mapName: z4.string(),
2320
2341
  path: z4.string(),
2321
- entries: z4.array(z4.object({
2322
- key: z4.string(),
2323
- records: z4.array(ORMapRecordSchema),
2324
- tombstones: z4.array(z4.string())
2325
- }))
2342
+ entries: z4.array(ORMapEntrySchema)
2326
2343
  })
2327
2344
  });
2328
2345
  var ORMapDiffRequestSchema = z4.object({
@@ -2336,22 +2353,14 @@ var ORMapDiffResponseSchema = z4.object({
2336
2353
  type: z4.literal("ORMAP_DIFF_RESPONSE"),
2337
2354
  payload: z4.object({
2338
2355
  mapName: z4.string(),
2339
- entries: z4.array(z4.object({
2340
- key: z4.string(),
2341
- records: z4.array(ORMapRecordSchema),
2342
- tombstones: z4.array(z4.string())
2343
- }))
2356
+ entries: z4.array(ORMapEntrySchema)
2344
2357
  })
2345
2358
  });
2346
2359
  var ORMapPushDiffSchema = z4.object({
2347
2360
  type: z4.literal("ORMAP_PUSH_DIFF"),
2348
2361
  payload: z4.object({
2349
2362
  mapName: z4.string(),
2350
- entries: z4.array(z4.object({
2351
- key: z4.string(),
2352
- records: z4.array(ORMapRecordSchema),
2353
- tombstones: z4.array(z4.string())
2354
- }))
2363
+ entries: z4.array(ORMapEntrySchema)
2355
2364
  })
2356
2365
  });
2357
2366
  var OpResultSchema = z4.object({
@@ -2446,7 +2455,7 @@ var SearchRespMessageSchema = z6.object({
2446
2455
  type: z6.literal("SEARCH_RESP"),
2447
2456
  payload: SearchRespPayloadSchema
2448
2457
  });
2449
- var SearchUpdateTypeSchema = z6.enum(["ENTER", "UPDATE", "LEAVE"]);
2458
+ var SearchUpdateTypeSchema = ChangeEventTypeSchema;
2450
2459
  var SearchSubPayloadSchema = z6.object({
2451
2460
  subscriptionId: z6.string(),
2452
2461
  mapName: z6.string(),
@@ -2463,7 +2472,7 @@ var SearchUpdatePayloadSchema = z6.object({
2463
2472
  value: z6.unknown(),
2464
2473
  score: z6.number(),
2465
2474
  matchedTerms: z6.array(z6.string()),
2466
- type: SearchUpdateTypeSchema
2475
+ changeType: SearchUpdateTypeSchema
2467
2476
  });
2468
2477
  var SearchUpdateMessageSchema = z6.object({
2469
2478
  type: z6.literal("SEARCH_UPDATE"),
@@ -2485,17 +2494,37 @@ var PartitionMapRequestSchema = z7.object({
2485
2494
  currentVersion: z7.number().optional()
2486
2495
  }).optional()
2487
2496
  });
2497
+ var NodeInfoSchema = z7.object({
2498
+ nodeId: z7.string(),
2499
+ endpoints: z7.object({
2500
+ websocket: z7.string(),
2501
+ http: z7.string().optional()
2502
+ }),
2503
+ status: z7.enum(["ACTIVE", "JOINING", "LEAVING", "SUSPECTED", "FAILED"])
2504
+ });
2505
+ var PartitionInfoSchema = z7.object({
2506
+ partitionId: z7.number(),
2507
+ ownerNodeId: z7.string(),
2508
+ backupNodeIds: z7.array(z7.string())
2509
+ });
2510
+ var PartitionMapPayloadSchema = z7.object({
2511
+ version: z7.number(),
2512
+ partitionCount: z7.number(),
2513
+ nodes: z7.array(NodeInfoSchema),
2514
+ partitions: z7.array(PartitionInfoSchema),
2515
+ generatedAt: z7.number()
2516
+ });
2517
+ var PartitionMapMessageSchema = z7.object({
2518
+ type: z7.literal("PARTITION_MAP"),
2519
+ payload: PartitionMapPayloadSchema
2520
+ });
2488
2521
  var ClusterSubRegisterPayloadSchema = z7.object({
2489
2522
  subscriptionId: z7.string(),
2490
2523
  coordinatorNodeId: z7.string(),
2491
2524
  mapName: z7.string(),
2492
2525
  type: z7.enum(["SEARCH", "QUERY"]),
2493
2526
  searchQuery: z7.string().optional(),
2494
- searchOptions: z7.object({
2495
- limit: z7.number().int().positive().optional(),
2496
- minScore: z7.number().optional(),
2497
- boost: z7.record(z7.string(), z7.number()).optional()
2498
- }).optional(),
2527
+ searchOptions: SearchOptionsSchema.optional(),
2499
2528
  queryPredicate: z7.any().optional(),
2500
2529
  querySort: z7.record(z7.string(), z7.enum(["asc", "desc"])).optional()
2501
2530
  });
@@ -2527,7 +2556,7 @@ var ClusterSubUpdatePayloadSchema = z7.object({
2527
2556
  value: z7.unknown(),
2528
2557
  score: z7.number().optional(),
2529
2558
  matchedTerms: z7.array(z7.string()).optional(),
2530
- changeType: z7.enum(["ENTER", "UPDATE", "LEAVE"]),
2559
+ changeType: ChangeEventTypeSchema,
2531
2560
  timestamp: z7.number()
2532
2561
  });
2533
2562
  var ClusterSubUpdateMessageSchema = z7.object({
@@ -2545,10 +2574,8 @@ var ClusterSearchReqPayloadSchema = z7.object({
2545
2574
  requestId: z7.string(),
2546
2575
  mapName: z7.string(),
2547
2576
  query: z7.string(),
2548
- options: z7.object({
2577
+ options: SearchOptionsSchema.extend({
2549
2578
  limit: z7.number().int().positive().max(1e3),
2550
- minScore: z7.number().optional(),
2551
- boost: z7.record(z7.string(), z7.number()).optional(),
2552
2579
  includeMatchedTerms: z7.boolean().optional(),
2553
2580
  afterScore: z7.number().optional(),
2554
2581
  afterKey: z7.string().optional()
@@ -2600,7 +2627,7 @@ var ClusterSearchUpdatePayloadSchema = z7.object({
2600
2627
  value: z7.unknown(),
2601
2628
  score: z7.number(),
2602
2629
  matchedTerms: z7.array(z7.string()).optional(),
2603
- type: SearchUpdateTypeSchema
2630
+ changeType: ChangeEventTypeSchema
2604
2631
  });
2605
2632
  var ClusterSearchUpdateMessageSchema = z7.object({
2606
2633
  type: z7.literal("CLUSTER_SEARCH_UPDATE"),
@@ -2843,7 +2870,7 @@ var QueryUpdatePayloadSchema = z9.object({
2843
2870
  queryId: z9.string(),
2844
2871
  key: z9.string(),
2845
2872
  value: z9.unknown(),
2846
- type: z9.enum(["ENTER", "UPDATE", "REMOVE"])
2873
+ changeType: ChangeEventTypeSchema
2847
2874
  });
2848
2875
  var QueryUpdateMessageSchema = z9.object({
2849
2876
  type: z9.literal("QUERY_UPDATE"),
@@ -2856,43 +2883,50 @@ var GcPruneMessageSchema = z9.object({
2856
2883
  type: z9.literal("GC_PRUNE"),
2857
2884
  payload: GcPrunePayloadSchema
2858
2885
  });
2886
+ var AuthAckMessageSchema = z9.object({
2887
+ type: z9.literal("AUTH_ACK"),
2888
+ protocolVersion: z9.number().optional(),
2889
+ userId: z9.string().optional()
2890
+ });
2859
2891
  var AuthFailMessageSchema = z9.object({
2860
2892
  type: z9.literal("AUTH_FAIL"),
2861
2893
  error: z9.string().optional(),
2862
2894
  code: z9.number().optional()
2863
2895
  });
2864
- var HybridQueryRespPayloadSchema = z9.object({
2865
- subscriptionId: z9.string(),
2866
- results: z9.array(z9.object({
2867
- key: z9.string(),
2868
- value: z9.unknown(),
2869
- score: z9.number(),
2870
- matchedTerms: z9.array(z9.string())
2871
- })),
2872
- nextCursor: z9.string().optional(),
2873
- hasMore: z9.boolean().optional(),
2874
- cursorStatus: CursorStatusSchema.optional()
2875
- });
2876
- var HybridQueryDeltaPayloadSchema = z9.object({
2877
- subscriptionId: z9.string(),
2878
- key: z9.string(),
2879
- value: z9.unknown().nullable(),
2880
- score: z9.number().optional(),
2881
- matchedTerms: z9.array(z9.string()).optional(),
2882
- type: z9.enum(["ENTER", "UPDATE", "LEAVE"])
2896
+ var ErrorMessageSchema = z9.object({
2897
+ type: z9.literal("ERROR"),
2898
+ payload: z9.object({
2899
+ code: z9.number(),
2900
+ message: z9.string(),
2901
+ details: z9.unknown().optional()
2902
+ })
2883
2903
  });
2884
2904
  var LockGrantedPayloadSchema = z9.object({
2885
2905
  requestId: z9.string(),
2906
+ name: z9.string(),
2886
2907
  fencingToken: z9.number()
2887
2908
  });
2888
2909
  var LockReleasedPayloadSchema = z9.object({
2889
2910
  requestId: z9.string(),
2911
+ name: z9.string(),
2890
2912
  success: z9.boolean()
2891
2913
  });
2914
+ var LockGrantedMessageSchema = z9.object({
2915
+ type: z9.literal("LOCK_GRANTED"),
2916
+ payload: LockGrantedPayloadSchema
2917
+ });
2918
+ var LockReleasedMessageSchema = z9.object({
2919
+ type: z9.literal("LOCK_RELEASED"),
2920
+ payload: LockReleasedPayloadSchema
2921
+ });
2892
2922
  var SyncResetRequiredPayloadSchema = z9.object({
2893
2923
  mapName: z9.string(),
2894
2924
  reason: z9.string()
2895
2925
  });
2926
+ var SyncResetRequiredMessageSchema = z9.object({
2927
+ type: z9.literal("SYNC_RESET_REQUIRED"),
2928
+ payload: SyncResetRequiredPayloadSchema
2929
+ });
2896
2930
 
2897
2931
  // src/schemas/http-sync-schemas.ts
2898
2932
  import { z as z10 } from "zod";
@@ -2974,9 +3008,10 @@ var HttpSyncResponseSchema = z10.object({
2974
3008
  // src/schemas/index.ts
2975
3009
  import { z as z11 } from "zod";
2976
3010
  var MessageSchema = z11.discriminatedUnion("type", [
3011
+ // --- Base ---
2977
3012
  AuthMessageSchema,
2978
- QuerySubMessageSchema,
2979
- QueryUnsubMessageSchema,
3013
+ AuthRequiredMessageSchema,
3014
+ // --- Sync ---
2980
3015
  ClientOpMessageSchema,
2981
3016
  OpBatchMessageSchema,
2982
3017
  SyncInitMessageSchema,
@@ -2984,13 +3019,10 @@ var MessageSchema = z11.discriminatedUnion("type", [
2984
3019
  SyncRespBucketsMessageSchema,
2985
3020
  SyncRespLeafMessageSchema,
2986
3021
  MerkleReqBucketMessageSchema,
2987
- LockRequestSchema,
2988
- LockReleaseSchema,
2989
- TopicSubSchema,
2990
- TopicUnsubSchema,
2991
- TopicPubSchema,
2992
- PingMessageSchema,
2993
- PongMessageSchema,
3022
+ OpAckMessageSchema,
3023
+ OpRejectedMessageSchema,
3024
+ BatchMessageSchema,
3025
+ // --- ORMap Sync ---
2994
3026
  ORMapSyncInitSchema,
2995
3027
  ORMapSyncRespRootSchema,
2996
3028
  ORMapSyncRespBucketsSchema,
@@ -2999,18 +3031,54 @@ var MessageSchema = z11.discriminatedUnion("type", [
2999
3031
  ORMapDiffRequestSchema,
3000
3032
  ORMapDiffResponseSchema,
3001
3033
  ORMapPushDiffSchema,
3034
+ // --- Query ---
3035
+ QuerySubMessageSchema,
3036
+ QueryUnsubMessageSchema,
3037
+ QueryRespMessageSchema,
3038
+ QueryUpdateMessageSchema,
3039
+ // --- Search ---
3040
+ SearchMessageSchema,
3041
+ SearchRespMessageSchema,
3042
+ SearchSubMessageSchema,
3043
+ SearchUpdateMessageSchema,
3044
+ SearchUnsubMessageSchema,
3045
+ // --- Cluster ---
3002
3046
  PartitionMapRequestSchema,
3047
+ PartitionMapMessageSchema,
3048
+ ClusterSubRegisterMessageSchema,
3049
+ ClusterSubAckMessageSchema,
3050
+ ClusterSubUpdateMessageSchema,
3051
+ ClusterSubUnregisterMessageSchema,
3052
+ ClusterSearchReqMessageSchema,
3053
+ ClusterSearchRespMessageSchema,
3054
+ ClusterSearchSubscribeMessageSchema,
3055
+ ClusterSearchUnsubscribeMessageSchema,
3056
+ ClusterSearchUpdateMessageSchema,
3057
+ // --- Messaging ---
3058
+ TopicSubSchema,
3059
+ TopicUnsubSchema,
3060
+ TopicPubSchema,
3061
+ TopicMessageEventSchema,
3062
+ LockRequestSchema,
3063
+ LockReleaseSchema,
3003
3064
  CounterRequestSchema,
3004
3065
  CounterSyncSchema,
3066
+ CounterResponseSchema,
3067
+ CounterUpdateSchema,
3068
+ PingMessageSchema,
3069
+ PongMessageSchema,
3070
+ // --- Entry Processor ---
3005
3071
  EntryProcessRequestSchema,
3006
3072
  EntryProcessBatchRequestSchema,
3007
3073
  EntryProcessResponseSchema,
3008
3074
  EntryProcessBatchResponseSchema,
3075
+ // --- Journal ---
3009
3076
  JournalSubscribeRequestSchema,
3010
3077
  JournalUnsubscribeRequestSchema,
3011
3078
  JournalEventMessageSchema,
3012
3079
  JournalReadRequestSchema,
3013
3080
  JournalReadResponseSchema,
3081
+ // --- Conflict Resolver ---
3014
3082
  RegisterResolverRequestSchema,
3015
3083
  RegisterResolverResponseSchema,
3016
3084
  UnregisterResolverRequestSchema,
@@ -3018,15 +3086,16 @@ var MessageSchema = z11.discriminatedUnion("type", [
3018
3086
  MergeRejectedMessageSchema,
3019
3087
  ListResolversRequestSchema,
3020
3088
  ListResolversResponseSchema,
3021
- SearchMessageSchema,
3022
- SearchRespMessageSchema,
3023
- SearchSubMessageSchema,
3024
- SearchUpdateMessageSchema,
3025
- SearchUnsubMessageSchema,
3026
- ClusterSubRegisterMessageSchema,
3027
- ClusterSubAckMessageSchema,
3028
- ClusterSubUpdateMessageSchema,
3029
- ClusterSubUnregisterMessageSchema
3089
+ // --- Server-to-Client ---
3090
+ ServerEventMessageSchema,
3091
+ ServerBatchEventMessageSchema,
3092
+ GcPruneMessageSchema,
3093
+ AuthAckMessageSchema,
3094
+ AuthFailMessageSchema,
3095
+ ErrorMessageSchema,
3096
+ LockGrantedMessageSchema,
3097
+ LockReleasedMessageSchema,
3098
+ SyncResetRequiredMessageSchema
3030
3099
  ]);
3031
3100
 
3032
3101
  // src/types/WriteConcern.ts
@@ -12766,8 +12835,10 @@ var ScenarioRunner = class {
12766
12835
  }
12767
12836
  };
12768
12837
  export {
12838
+ AuthAckMessageSchema,
12769
12839
  AuthFailMessageSchema,
12770
12840
  AuthMessageSchema,
12841
+ AuthRequiredMessageSchema,
12771
12842
  BM25Scorer,
12772
12843
  BatchMessageSchema,
12773
12844
  BuiltInProcessors,
@@ -12775,6 +12846,7 @@ export {
12775
12846
  COST_WEIGHTS,
12776
12847
  CRDTDebugger,
12777
12848
  CRDTInvariants,
12849
+ ChangeEventTypeSchema,
12778
12850
  ClientOpMessageSchema,
12779
12851
  ClientOpSchema,
12780
12852
  ClusterSearchReqMessageSchema,
@@ -12825,6 +12897,7 @@ export {
12825
12897
  EntryProcessResponseSchema,
12826
12898
  EntryProcessorDefSchema,
12827
12899
  EntryProcessorSchema,
12900
+ ErrorMessageSchema,
12828
12901
  EventJournalImpl,
12829
12902
  FORBIDDEN_PATTERNS,
12830
12903
  BM25InvertedIndex as FTSInvertedIndex,
@@ -12843,8 +12916,6 @@ export {
12843
12916
  HttpSyncErrorSchema,
12844
12917
  HttpSyncRequestSchema,
12845
12918
  HttpSyncResponseSchema,
12846
- HybridQueryDeltaPayloadSchema,
12847
- HybridQueryRespPayloadSchema,
12848
12919
  IndexRegistry,
12849
12920
  IndexedLWWMap,
12850
12921
  IndexedORMap,
@@ -12865,8 +12936,10 @@ export {
12865
12936
  ListResolversRequestSchema,
12866
12937
  ListResolversResponseSchema,
12867
12938
  LiveQueryManager,
12939
+ LockGrantedMessageSchema,
12868
12940
  LockGrantedPayloadSchema,
12869
12941
  LockReleaseSchema,
12942
+ LockReleasedMessageSchema,
12870
12943
  LockReleasedPayloadSchema,
12871
12944
  LockRequestSchema,
12872
12945
  LowercaseFilter,
@@ -12880,9 +12953,11 @@ export {
12880
12953
  MultiValueAttribute,
12881
12954
  NGramTokenizer,
12882
12955
  NavigableIndex,
12956
+ NodeInfoSchema,
12883
12957
  ORMap,
12884
12958
  ORMapDiffRequestSchema,
12885
12959
  ORMapDiffResponseSchema,
12960
+ ORMapEntrySchema,
12886
12961
  ORMapMerkleReqBucketSchema,
12887
12962
  ORMapMerkleTree,
12888
12963
  ORMapPushDiffSchema,
@@ -12898,6 +12973,9 @@ export {
12898
12973
  PARTITION_COUNT,
12899
12974
  PNCounterImpl,
12900
12975
  PNCounterStateObjectSchema,
12976
+ PartitionInfoSchema,
12977
+ PartitionMapMessageSchema,
12978
+ PartitionMapPayloadSchema,
12901
12979
  PartitionMapRequestSchema,
12902
12980
  PartitionState,
12903
12981
  PingMessageSchema,
@@ -12948,6 +13026,7 @@ export {
12948
13026
  StopWordFilter,
12949
13027
  SyncInitMessageSchema,
12950
13028
  SyncMapEntrySchema,
13029
+ SyncResetRequiredMessageSchema,
12951
13030
  SyncResetRequiredPayloadSchema,
12952
13031
  SyncRespBucketsMessageSchema,
12953
13032
  SyncRespLeafMessageSchema,
@@ -12980,7 +13059,6 @@ export {
12980
13059
  decodeBase64Url,
12981
13060
  deepMerge,
12982
13061
  deserialize,
12983
- disableNativeHash,
12984
13062
  encodeBase64Url,
12985
13063
  evaluatePredicate,
12986
13064
  getCRDTDebugger,
@@ -12992,13 +13070,11 @@ export {
12992
13070
  hashString,
12993
13071
  isLogicalQuery,
12994
13072
  isSimpleQuery,
12995
- isUsingNativeHash,
12996
13073
  isWriteConcernAchieved,
12997
13074
  logger,
12998
13075
  multiAttribute,
12999
13076
  porterStem,
13000
13077
  resetCRDTDebugger,
13001
- resetNativeHash,
13002
13078
  resetSearchDebugger,
13003
13079
  serialize,
13004
13080
  simpleAttribute,