@valkey/valkey-glide 2.4.2-rc2 → 2.5.0-rc2

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.
@@ -2265,6 +2265,9 @@ export namespace connection_request {
2265
2265
 
2266
2266
  /** ClientSideCache enableMetrics */
2267
2267
  enableMetrics?: (boolean|null);
2268
+
2269
+ /** ClientSideCache serverAssisted */
2270
+ serverAssisted?: (boolean|null);
2268
2271
  }
2269
2272
 
2270
2273
  /** Represents a ClientSideCache. */
@@ -2291,6 +2294,9 @@ export namespace connection_request {
2291
2294
  /** ClientSideCache enableMetrics. */
2292
2295
  public enableMetrics: boolean;
2293
2296
 
2297
+ /** ClientSideCache serverAssisted. */
2298
+ public serverAssisted: boolean;
2299
+
2294
2300
  /**
2295
2301
  * Creates a new ClientSideCache instance using the specified properties.
2296
2302
  * @param [properties] Properties to set
@@ -2436,6 +2442,9 @@ export namespace connection_request {
2436
2442
 
2437
2443
  /** ConnectionRequest addressResolverKey */
2438
2444
  addressResolverKey?: (string|null);
2445
+
2446
+ /** ConnectionRequest clientCircuitBreaker */
2447
+ clientCircuitBreaker?: (connection_request.IClientCircuitBreakerConfig|null);
2439
2448
  }
2440
2449
 
2441
2450
  /** Represents a ConnectionRequest. */
@@ -2534,6 +2543,9 @@ export namespace connection_request {
2534
2543
  /** ConnectionRequest addressResolverKey. */
2535
2544
  public addressResolverKey?: (string|null);
2536
2545
 
2546
+ /** ConnectionRequest clientCircuitBreaker. */
2547
+ public clientCircuitBreaker?: (connection_request.IClientCircuitBreakerConfig|null);
2548
+
2537
2549
  /** ConnectionRequest periodicChecks. */
2538
2550
  public periodicChecks?: ("periodicChecksManualInterval"|"periodicChecksDisabled");
2539
2551
 
@@ -2587,6 +2599,105 @@ export namespace connection_request {
2587
2599
  public static getTypeUrl(typeUrlPrefix?: string): string;
2588
2600
  }
2589
2601
 
2602
+ /** Properties of a ClientCircuitBreakerConfig. */
2603
+ interface IClientCircuitBreakerConfig {
2604
+
2605
+ /** ClientCircuitBreakerConfig windowSizeMs */
2606
+ windowSizeMs?: (number|null);
2607
+
2608
+ /** ClientCircuitBreakerConfig failureRateThreshold */
2609
+ failureRateThreshold?: (number|null);
2610
+
2611
+ /** ClientCircuitBreakerConfig minErrors */
2612
+ minErrors?: (number|null);
2613
+
2614
+ /** ClientCircuitBreakerConfig openTimeoutMs */
2615
+ openTimeoutMs?: (number|null);
2616
+
2617
+ /** ClientCircuitBreakerConfig countTimeouts */
2618
+ countTimeouts?: (boolean|null);
2619
+
2620
+ /** ClientCircuitBreakerConfig consecutiveSuccesses */
2621
+ consecutiveSuccesses?: (number|null);
2622
+ }
2623
+
2624
+ /** Represents a ClientCircuitBreakerConfig. */
2625
+ class ClientCircuitBreakerConfig implements IClientCircuitBreakerConfig {
2626
+
2627
+ /**
2628
+ * Constructs a new ClientCircuitBreakerConfig.
2629
+ * @param [properties] Properties to set
2630
+ */
2631
+ constructor(properties?: connection_request.IClientCircuitBreakerConfig);
2632
+
2633
+ /** ClientCircuitBreakerConfig windowSizeMs. */
2634
+ public windowSizeMs: number;
2635
+
2636
+ /** ClientCircuitBreakerConfig failureRateThreshold. */
2637
+ public failureRateThreshold: number;
2638
+
2639
+ /** ClientCircuitBreakerConfig minErrors. */
2640
+ public minErrors: number;
2641
+
2642
+ /** ClientCircuitBreakerConfig openTimeoutMs. */
2643
+ public openTimeoutMs: number;
2644
+
2645
+ /** ClientCircuitBreakerConfig countTimeouts. */
2646
+ public countTimeouts: boolean;
2647
+
2648
+ /** ClientCircuitBreakerConfig consecutiveSuccesses. */
2649
+ public consecutiveSuccesses: number;
2650
+
2651
+ /**
2652
+ * Creates a new ClientCircuitBreakerConfig instance using the specified properties.
2653
+ * @param [properties] Properties to set
2654
+ * @returns ClientCircuitBreakerConfig instance
2655
+ */
2656
+ public static create(properties?: connection_request.IClientCircuitBreakerConfig): connection_request.ClientCircuitBreakerConfig;
2657
+
2658
+ /**
2659
+ * Encodes the specified ClientCircuitBreakerConfig message. Does not implicitly {@link connection_request.ClientCircuitBreakerConfig.verify|verify} messages.
2660
+ * @param message ClientCircuitBreakerConfig message or plain object to encode
2661
+ * @param [writer] Writer to encode to
2662
+ * @returns Writer
2663
+ */
2664
+ public static encode(message: connection_request.IClientCircuitBreakerConfig, writer?: $protobuf.Writer): $protobuf.Writer;
2665
+
2666
+ /**
2667
+ * Encodes the specified ClientCircuitBreakerConfig message, length delimited. Does not implicitly {@link connection_request.ClientCircuitBreakerConfig.verify|verify} messages.
2668
+ * @param message ClientCircuitBreakerConfig message or plain object to encode
2669
+ * @param [writer] Writer to encode to
2670
+ * @returns Writer
2671
+ */
2672
+ public static encodeDelimited(message: connection_request.IClientCircuitBreakerConfig, writer?: $protobuf.Writer): $protobuf.Writer;
2673
+
2674
+ /**
2675
+ * Decodes a ClientCircuitBreakerConfig message from the specified reader or buffer.
2676
+ * @param reader Reader or buffer to decode from
2677
+ * @param [length] Message length if known beforehand
2678
+ * @returns ClientCircuitBreakerConfig
2679
+ * @throws {Error} If the payload is not a reader or valid buffer
2680
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2681
+ */
2682
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): connection_request.ClientCircuitBreakerConfig;
2683
+
2684
+ /**
2685
+ * Decodes a ClientCircuitBreakerConfig message from the specified reader or buffer, length delimited.
2686
+ * @param reader Reader or buffer to decode from
2687
+ * @returns ClientCircuitBreakerConfig
2688
+ * @throws {Error} If the payload is not a reader or valid buffer
2689
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2690
+ */
2691
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): connection_request.ClientCircuitBreakerConfig;
2692
+
2693
+ /**
2694
+ * Gets the default type url for ClientCircuitBreakerConfig
2695
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2696
+ * @returns The default type url
2697
+ */
2698
+ public static getTypeUrl(typeUrlPrefix?: string): string;
2699
+ }
2700
+
2590
2701
  /** Properties of a ConnectionRetryStrategy. */
2591
2702
  interface IConnectionRetryStrategy {
2592
2703
 
@@ -2683,7 +2794,8 @@ export namespace response {
2683
2794
  Unspecified = 0,
2684
2795
  ExecAbort = 1,
2685
2796
  Timeout = 2,
2686
- Disconnect = 3
2797
+ Disconnect = 3,
2798
+ CircuitBreakerOpen = 4
2687
2799
  }
2688
2800
 
2689
2801
  /** Properties of a RequestError. */
@@ -5057,6 +5057,7 @@ $root.connection_request = (function() {
5057
5057
  * @property {number|Long|null} [entryTtlMs] ClientSideCache entryTtlMs
5058
5058
  * @property {connection_request.EvictionPolicy|null} [evictionPolicy] ClientSideCache evictionPolicy
5059
5059
  * @property {boolean|null} [enableMetrics] ClientSideCache enableMetrics
5060
+ * @property {boolean|null} [serverAssisted] ClientSideCache serverAssisted
5060
5061
  */
5061
5062
 
5062
5063
  /**
@@ -5114,6 +5115,14 @@ $root.connection_request = (function() {
5114
5115
  */
5115
5116
  ClientSideCache.prototype.enableMetrics = false;
5116
5117
 
5118
+ /**
5119
+ * ClientSideCache serverAssisted.
5120
+ * @member {boolean} serverAssisted
5121
+ * @memberof connection_request.ClientSideCache
5122
+ * @instance
5123
+ */
5124
+ ClientSideCache.prototype.serverAssisted = false;
5125
+
5117
5126
  // OneOf field names bound to virtual getters and setters
5118
5127
  var $oneOfFields;
5119
5128
 
@@ -5161,6 +5170,8 @@ $root.connection_request = (function() {
5161
5170
  writer.uint32(/* id 4, wireType 0 =*/32).int32(message.evictionPolicy);
5162
5171
  if (message.enableMetrics != null && Object.hasOwnProperty.call(message, "enableMetrics"))
5163
5172
  writer.uint32(/* id 5, wireType 0 =*/40).bool(message.enableMetrics);
5173
+ if (message.serverAssisted != null && Object.hasOwnProperty.call(message, "serverAssisted"))
5174
+ writer.uint32(/* id 6, wireType 0 =*/48).bool(message.serverAssisted);
5164
5175
  return writer;
5165
5176
  };
5166
5177
 
@@ -5221,6 +5232,10 @@ $root.connection_request = (function() {
5221
5232
  message.enableMetrics = reader.bool();
5222
5233
  break;
5223
5234
  }
5235
+ case 6: {
5236
+ message.serverAssisted = reader.bool();
5237
+ break;
5238
+ }
5224
5239
  default:
5225
5240
  reader.skipType(tag & 7, long);
5226
5241
  break;
@@ -5312,6 +5327,7 @@ $root.connection_request = (function() {
5312
5327
  * @property {connection_request.IClientSideCache|null} [clientSideCache] ConnectionRequest clientSideCache
5313
5328
  * @property {connection_request.NodeDiscoveryMode|null} [nodeDiscoveryMode] ConnectionRequest nodeDiscoveryMode
5314
5329
  * @property {string|null} [addressResolverKey] ConnectionRequest addressResolverKey
5330
+ * @property {connection_request.IClientCircuitBreakerConfig|null} [clientCircuitBreaker] ConnectionRequest clientCircuitBreaker
5315
5331
  */
5316
5332
 
5317
5333
  /**
@@ -5563,6 +5579,14 @@ $root.connection_request = (function() {
5563
5579
  */
5564
5580
  ConnectionRequest.prototype.addressResolverKey = null;
5565
5581
 
5582
+ /**
5583
+ * ConnectionRequest clientCircuitBreaker.
5584
+ * @member {connection_request.IClientCircuitBreakerConfig|null|undefined} clientCircuitBreaker
5585
+ * @memberof connection_request.ConnectionRequest
5586
+ * @instance
5587
+ */
5588
+ ConnectionRequest.prototype.clientCircuitBreaker = null;
5589
+
5566
5590
  // OneOf field names bound to virtual getters and setters
5567
5591
  var $oneOfFields;
5568
5592
 
@@ -5613,6 +5637,12 @@ $root.connection_request = (function() {
5613
5637
  set: $util.oneOfSetter($oneOfFields)
5614
5638
  });
5615
5639
 
5640
+ // Virtual OneOf for proto3 optional field
5641
+ Object.defineProperty(ConnectionRequest.prototype, "_clientCircuitBreaker", {
5642
+ get: $util.oneOfGetter($oneOfFields = ["clientCircuitBreaker"]),
5643
+ set: $util.oneOfSetter($oneOfFields)
5644
+ });
5645
+
5616
5646
  /**
5617
5647
  * Creates a new ConnectionRequest instance using the specified properties.
5618
5648
  * @function create
@@ -5701,6 +5731,8 @@ $root.connection_request = (function() {
5701
5731
  writer.uint32(/* id 28, wireType 0 =*/224).int32(message.nodeDiscoveryMode);
5702
5732
  if (message.addressResolverKey != null && Object.hasOwnProperty.call(message, "addressResolverKey"))
5703
5733
  writer.uint32(/* id 29, wireType 2 =*/234).string(message.addressResolverKey);
5734
+ if (message.clientCircuitBreaker != null && Object.hasOwnProperty.call(message, "clientCircuitBreaker"))
5735
+ $root.connection_request.ClientCircuitBreakerConfig.encode(message.clientCircuitBreaker, writer.uint32(/* id 30, wireType 2 =*/242).fork(), q + 1).ldelim();
5704
5736
  return writer;
5705
5737
  };
5706
5738
 
@@ -5861,6 +5893,10 @@ $root.connection_request = (function() {
5861
5893
  message.addressResolverKey = reader.string();
5862
5894
  break;
5863
5895
  }
5896
+ case 30: {
5897
+ message.clientCircuitBreaker = $root.connection_request.ClientCircuitBreakerConfig.decode(reader, reader.uint32(), undefined, long + 1);
5898
+ break;
5899
+ }
5864
5900
  default:
5865
5901
  reader.skipType(tag & 7, long);
5866
5902
  break;
@@ -5903,6 +5939,229 @@ $root.connection_request = (function() {
5903
5939
  return ConnectionRequest;
5904
5940
  })();
5905
5941
 
5942
+ connection_request.ClientCircuitBreakerConfig = (function() {
5943
+
5944
+ /**
5945
+ * Properties of a ClientCircuitBreakerConfig.
5946
+ * @memberof connection_request
5947
+ * @interface IClientCircuitBreakerConfig
5948
+ * @property {number|null} [windowSizeMs] ClientCircuitBreakerConfig windowSizeMs
5949
+ * @property {number|null} [failureRateThreshold] ClientCircuitBreakerConfig failureRateThreshold
5950
+ * @property {number|null} [minErrors] ClientCircuitBreakerConfig minErrors
5951
+ * @property {number|null} [openTimeoutMs] ClientCircuitBreakerConfig openTimeoutMs
5952
+ * @property {boolean|null} [countTimeouts] ClientCircuitBreakerConfig countTimeouts
5953
+ * @property {number|null} [consecutiveSuccesses] ClientCircuitBreakerConfig consecutiveSuccesses
5954
+ */
5955
+
5956
+ /**
5957
+ * Constructs a new ClientCircuitBreakerConfig.
5958
+ * @memberof connection_request
5959
+ * @classdesc Represents a ClientCircuitBreakerConfig.
5960
+ * @implements IClientCircuitBreakerConfig
5961
+ * @constructor
5962
+ * @param {connection_request.IClientCircuitBreakerConfig=} [properties] Properties to set
5963
+ */
5964
+ function ClientCircuitBreakerConfig(properties) {
5965
+ if (properties)
5966
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
5967
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
5968
+ this[keys[i]] = properties[keys[i]];
5969
+ }
5970
+
5971
+ /**
5972
+ * ClientCircuitBreakerConfig windowSizeMs.
5973
+ * @member {number} windowSizeMs
5974
+ * @memberof connection_request.ClientCircuitBreakerConfig
5975
+ * @instance
5976
+ */
5977
+ ClientCircuitBreakerConfig.prototype.windowSizeMs = 0;
5978
+
5979
+ /**
5980
+ * ClientCircuitBreakerConfig failureRateThreshold.
5981
+ * @member {number} failureRateThreshold
5982
+ * @memberof connection_request.ClientCircuitBreakerConfig
5983
+ * @instance
5984
+ */
5985
+ ClientCircuitBreakerConfig.prototype.failureRateThreshold = 0;
5986
+
5987
+ /**
5988
+ * ClientCircuitBreakerConfig minErrors.
5989
+ * @member {number} minErrors
5990
+ * @memberof connection_request.ClientCircuitBreakerConfig
5991
+ * @instance
5992
+ */
5993
+ ClientCircuitBreakerConfig.prototype.minErrors = 0;
5994
+
5995
+ /**
5996
+ * ClientCircuitBreakerConfig openTimeoutMs.
5997
+ * @member {number} openTimeoutMs
5998
+ * @memberof connection_request.ClientCircuitBreakerConfig
5999
+ * @instance
6000
+ */
6001
+ ClientCircuitBreakerConfig.prototype.openTimeoutMs = 0;
6002
+
6003
+ /**
6004
+ * ClientCircuitBreakerConfig countTimeouts.
6005
+ * @member {boolean} countTimeouts
6006
+ * @memberof connection_request.ClientCircuitBreakerConfig
6007
+ * @instance
6008
+ */
6009
+ ClientCircuitBreakerConfig.prototype.countTimeouts = false;
6010
+
6011
+ /**
6012
+ * ClientCircuitBreakerConfig consecutiveSuccesses.
6013
+ * @member {number} consecutiveSuccesses
6014
+ * @memberof connection_request.ClientCircuitBreakerConfig
6015
+ * @instance
6016
+ */
6017
+ ClientCircuitBreakerConfig.prototype.consecutiveSuccesses = 0;
6018
+
6019
+ /**
6020
+ * Creates a new ClientCircuitBreakerConfig instance using the specified properties.
6021
+ * @function create
6022
+ * @memberof connection_request.ClientCircuitBreakerConfig
6023
+ * @static
6024
+ * @param {connection_request.IClientCircuitBreakerConfig=} [properties] Properties to set
6025
+ * @returns {connection_request.ClientCircuitBreakerConfig} ClientCircuitBreakerConfig instance
6026
+ */
6027
+ ClientCircuitBreakerConfig.create = function create(properties) {
6028
+ return new ClientCircuitBreakerConfig(properties);
6029
+ };
6030
+
6031
+ /**
6032
+ * Encodes the specified ClientCircuitBreakerConfig message. Does not implicitly {@link connection_request.ClientCircuitBreakerConfig.verify|verify} messages.
6033
+ * @function encode
6034
+ * @memberof connection_request.ClientCircuitBreakerConfig
6035
+ * @static
6036
+ * @param {connection_request.IClientCircuitBreakerConfig} message ClientCircuitBreakerConfig message or plain object to encode
6037
+ * @param {$protobuf.Writer} [writer] Writer to encode to
6038
+ * @returns {$protobuf.Writer} Writer
6039
+ */
6040
+ ClientCircuitBreakerConfig.encode = function encode(message, writer, q) {
6041
+ if (!writer)
6042
+ writer = $Writer.create();
6043
+ if (q === undefined)
6044
+ q = 0;
6045
+ if (q > $util.recursionLimit)
6046
+ throw Error("max depth exceeded");
6047
+ if (message.windowSizeMs != null && Object.hasOwnProperty.call(message, "windowSizeMs"))
6048
+ writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.windowSizeMs);
6049
+ if (message.failureRateThreshold != null && Object.hasOwnProperty.call(message, "failureRateThreshold"))
6050
+ writer.uint32(/* id 2, wireType 5 =*/21).float(message.failureRateThreshold);
6051
+ if (message.minErrors != null && Object.hasOwnProperty.call(message, "minErrors"))
6052
+ writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.minErrors);
6053
+ if (message.openTimeoutMs != null && Object.hasOwnProperty.call(message, "openTimeoutMs"))
6054
+ writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.openTimeoutMs);
6055
+ if (message.countTimeouts != null && Object.hasOwnProperty.call(message, "countTimeouts"))
6056
+ writer.uint32(/* id 5, wireType 0 =*/40).bool(message.countTimeouts);
6057
+ if (message.consecutiveSuccesses != null && Object.hasOwnProperty.call(message, "consecutiveSuccesses"))
6058
+ writer.uint32(/* id 6, wireType 0 =*/48).uint32(message.consecutiveSuccesses);
6059
+ return writer;
6060
+ };
6061
+
6062
+ /**
6063
+ * Encodes the specified ClientCircuitBreakerConfig message, length delimited. Does not implicitly {@link connection_request.ClientCircuitBreakerConfig.verify|verify} messages.
6064
+ * @function encodeDelimited
6065
+ * @memberof connection_request.ClientCircuitBreakerConfig
6066
+ * @static
6067
+ * @param {connection_request.IClientCircuitBreakerConfig} message ClientCircuitBreakerConfig message or plain object to encode
6068
+ * @param {$protobuf.Writer} [writer] Writer to encode to
6069
+ * @returns {$protobuf.Writer} Writer
6070
+ */
6071
+ ClientCircuitBreakerConfig.encodeDelimited = function encodeDelimited(message, writer) {
6072
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
6073
+ };
6074
+
6075
+ /**
6076
+ * Decodes a ClientCircuitBreakerConfig message from the specified reader or buffer.
6077
+ * @function decode
6078
+ * @memberof connection_request.ClientCircuitBreakerConfig
6079
+ * @static
6080
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
6081
+ * @param {number} [length] Message length if known beforehand
6082
+ * @returns {connection_request.ClientCircuitBreakerConfig} ClientCircuitBreakerConfig
6083
+ * @throws {Error} If the payload is not a reader or valid buffer
6084
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6085
+ */
6086
+ ClientCircuitBreakerConfig.decode = function decode(reader, length, error, long) {
6087
+ if (!(reader instanceof $Reader))
6088
+ reader = $Reader.create(reader);
6089
+ if (long === undefined)
6090
+ long = 0;
6091
+ if (long > $Reader.recursionLimit)
6092
+ throw Error("maximum nesting depth exceeded");
6093
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.connection_request.ClientCircuitBreakerConfig();
6094
+ while (reader.pos < end) {
6095
+ var tag = reader.uint32();
6096
+ if (tag === error)
6097
+ break;
6098
+ switch (tag >>> 3) {
6099
+ case 1: {
6100
+ message.windowSizeMs = reader.uint32();
6101
+ break;
6102
+ }
6103
+ case 2: {
6104
+ message.failureRateThreshold = reader.float();
6105
+ break;
6106
+ }
6107
+ case 3: {
6108
+ message.minErrors = reader.uint32();
6109
+ break;
6110
+ }
6111
+ case 4: {
6112
+ message.openTimeoutMs = reader.uint32();
6113
+ break;
6114
+ }
6115
+ case 5: {
6116
+ message.countTimeouts = reader.bool();
6117
+ break;
6118
+ }
6119
+ case 6: {
6120
+ message.consecutiveSuccesses = reader.uint32();
6121
+ break;
6122
+ }
6123
+ default:
6124
+ reader.skipType(tag & 7, long);
6125
+ break;
6126
+ }
6127
+ }
6128
+ return message;
6129
+ };
6130
+
6131
+ /**
6132
+ * Decodes a ClientCircuitBreakerConfig message from the specified reader or buffer, length delimited.
6133
+ * @function decodeDelimited
6134
+ * @memberof connection_request.ClientCircuitBreakerConfig
6135
+ * @static
6136
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
6137
+ * @returns {connection_request.ClientCircuitBreakerConfig} ClientCircuitBreakerConfig
6138
+ * @throws {Error} If the payload is not a reader or valid buffer
6139
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6140
+ */
6141
+ ClientCircuitBreakerConfig.decodeDelimited = function decodeDelimited(reader) {
6142
+ if (!(reader instanceof $Reader))
6143
+ reader = new $Reader(reader);
6144
+ return this.decode(reader, reader.uint32());
6145
+ };
6146
+
6147
+ /**
6148
+ * Gets the default type url for ClientCircuitBreakerConfig
6149
+ * @function getTypeUrl
6150
+ * @memberof connection_request.ClientCircuitBreakerConfig
6151
+ * @static
6152
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
6153
+ * @returns {string} The default type url
6154
+ */
6155
+ ClientCircuitBreakerConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
6156
+ if (typeUrlPrefix === undefined) {
6157
+ typeUrlPrefix = "type.googleapis.com";
6158
+ }
6159
+ return typeUrlPrefix + "/connection_request.ClientCircuitBreakerConfig";
6160
+ };
6161
+
6162
+ return ClientCircuitBreakerConfig;
6163
+ })();
6164
+
5906
6165
  connection_request.ConnectionRetryStrategy = (function() {
5907
6166
 
5908
6167
  /**
@@ -6125,6 +6384,7 @@ $root.response = (function() {
6125
6384
  * @property {number} ExecAbort=1 ExecAbort value
6126
6385
  * @property {number} Timeout=2 Timeout value
6127
6386
  * @property {number} Disconnect=3 Disconnect value
6387
+ * @property {number} CircuitBreakerOpen=4 CircuitBreakerOpen value
6128
6388
  */
6129
6389
  response.RequestErrorType = (function() {
6130
6390
  var valuesById = {}, values = Object.create(valuesById);
@@ -6132,6 +6392,7 @@ $root.response = (function() {
6132
6392
  values[valuesById[1] = "ExecAbort"] = 1;
6133
6393
  values[valuesById[2] = "Timeout"] = 2;
6134
6394
  values[valuesById[3] = "Disconnect"] = 3;
6395
+ values[valuesById[4] = "CircuitBreakerOpen"] = 4;
6135
6396
  return values;
6136
6397
  })();
6137
6398
 
@@ -15,6 +15,7 @@ export * from "./Errors.js";
15
15
  export * from "./EvictionPolicy.js";
16
16
  export * from "./GlideClient.js";
17
17
  export * from "./GlideClusterClient.js";
18
+ export * from "./GlideMonitorClient.js";
18
19
  export * from "./Logger.js";
19
20
  export * from "./OpenTelemetry.js";
20
21
  export * from "./server-modules/GlideFt.js";
package/build-ts/index.js CHANGED
@@ -32,6 +32,7 @@ __exportStar(require("./Errors.js"), exports);
32
32
  __exportStar(require("./EvictionPolicy.js"), exports);
33
33
  __exportStar(require("./GlideClient.js"), exports);
34
34
  __exportStar(require("./GlideClusterClient.js"), exports);
35
+ __exportStar(require("./GlideMonitorClient.js"), exports);
35
36
  __exportStar(require("./Logger.js"), exports);
36
37
  __exportStar(require("./OpenTelemetry.js"), exports);
37
38
  __exportStar(require("./server-modules/GlideFt.js"), exports);
@@ -96,6 +96,18 @@ export declare function createLeakedOtelSpan(name: string): [number, number]
96
96
  export declare function createOtelSpanWithTraceContext(name: string, traceId: string, spanId: string, traceFlags: number, traceState?: string | undefined | null): [number, number]
97
97
  export declare function dropOtelSpan(spanPtr: bigint): void
98
98
  export declare function getStatistics(): object
99
+ /**
100
+ * Register a JavaScript address resolver callback in the global registry.
101
+ * Returns the registry key (UUID) that must be set in the ConnectionRequest's
102
+ * `address_resolver_key` field so the socket listener can look it up.
103
+ *
104
+ * The JS callback signature is: `(host: string, port: number) => [string, number]`
105
+ */
106
+ export declare function registerAddressResolver(callback: (host: string, port: number) => [string, number]): string
107
+ /** Remove an address resolver from the global registry by key. */
108
+ export declare function removeAddressResolver(key: string): void
109
+ export declare function createMonitorClient(connectionRequestBytes: Uint8Array, callback: (timestamp: number, db: number, clientAddr: string, command: string, args: string[]) => void): Promise<number>
110
+ export declare function closeMonitorClient(handleId: number): Promise<void>
99
111
  export declare class AsyncClient {
100
112
  static CreateConnection(connectionAddress: string): AsyncClient
101
113
  get(key: string): Promise<string | Buffer | null>
@@ -310,7 +310,7 @@ if (!nativeBinding) {
310
310
  throw new Error(`Failed to load native binding`)
311
311
  }
312
312
 
313
- const { Level, MAX_REQUEST_ARGS_LEN, DEFAULT_REQUEST_TIMEOUT_IN_MILLISECONDS, DEFAULT_CONNECTION_TIMEOUT_IN_MILLISECONDS, DEFAULT_INFLIGHT_REQUESTS_LIMIT, AsyncClient, StartSocketConnection, InitOpenTelemetry, log, InitInternalLogger, valueFromPointer, createLeakedStringVec, createLeakedOtelSpan, createOtelSpanWithTraceContext, dropOtelSpan, Script, ClusterScanCursor, getStatistics } = nativeBinding
313
+ const { Level, MAX_REQUEST_ARGS_LEN, DEFAULT_REQUEST_TIMEOUT_IN_MILLISECONDS, DEFAULT_CONNECTION_TIMEOUT_IN_MILLISECONDS, DEFAULT_INFLIGHT_REQUESTS_LIMIT, AsyncClient, StartSocketConnection, InitOpenTelemetry, log, InitInternalLogger, valueFromPointer, createLeakedStringVec, createLeakedOtelSpan, createOtelSpanWithTraceContext, dropOtelSpan, Script, ClusterScanCursor, getStatistics, registerAddressResolver, removeAddressResolver, createMonitorClient, closeMonitorClient } = nativeBinding
314
314
 
315
315
  module.exports.Level = Level
316
316
  module.exports.MAX_REQUEST_ARGS_LEN = MAX_REQUEST_ARGS_LEN
@@ -330,3 +330,7 @@ module.exports.dropOtelSpan = dropOtelSpan
330
330
  module.exports.Script = Script
331
331
  module.exports.ClusterScanCursor = ClusterScanCursor
332
332
  module.exports.getStatistics = getStatistics
333
+ module.exports.registerAddressResolver = registerAddressResolver
334
+ module.exports.removeAddressResolver = removeAddressResolver
335
+ module.exports.createMonitorClient = createMonitorClient
336
+ module.exports.closeMonitorClient = closeMonitorClient
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "main": "build-ts/index.js",
5
5
  "module": "build-ts/index.js",
6
6
  "types": "build-ts/index.d.ts",
7
- "version": "2.4.2-rc2",
7
+ "version": "2.5.0-rc2",
8
8
  "exports": {
9
9
  ".": {
10
10
  "import": {
@@ -32,7 +32,7 @@
32
32
  "license": "Apache-2.0",
33
33
  "dependencies": {
34
34
  "long": "5",
35
- "protobufjs": "7"
35
+ "protobufjs": "^7.6.3"
36
36
  },
37
37
  "keywords": [
38
38
  "valkey",
@@ -75,17 +75,18 @@
75
75
  "repl": "ts-node --project tsconfig.json",
76
76
  "lint": "npm run install-linting && eslint -c ../eslint.config.mjs && npm run prettier:check",
77
77
  "lint:fix": "npm run install-linting && eslint -c ../eslint.config.mjs --fix && npm run prettier:format",
78
- "install-linting": "(cd ../ && npm install)",
78
+ "install-linting": "(cd ../ && npm ci)",
79
79
  "prettier:check": "prettier --check . --ignore-unknown '!**/*.{js,d.ts}'",
80
80
  "prettier:format": "prettier --write . --ignore-unknown '!**/*.{js,d.ts}'",
81
81
  "staged": "lint-staged",
82
- "prereq": "npm install",
82
+ "prereq": "npm ci",
83
83
  "artifacts": "napi artifacts",
84
84
  "prepublishOnly": "cd ../.. && napi prepublish --config npm/glide/package.json -t npm --skip-gh-release",
85
85
  "docs": "npm run build && ./docs/build-docs"
86
86
  },
87
87
  "devDependencies": {
88
88
  "@jest/globals": "29",
89
+ "@napi-rs/cli": "^2.18.4",
89
90
  "@types/jest": "29",
90
91
  "@types/minimist": "1",
91
92
  "@types/node": "24",
@@ -103,7 +104,7 @@
103
104
  "typedoc": "0.28",
104
105
  "typedoc-plugin-markdown": "4",
105
106
  "typescript": "5",
106
- "uuid": "13"
107
+ "uuid": "14"
107
108
  },
108
109
  "lint-staged": {
109
110
  "*.@(js|ts|tsx)": [
@@ -113,6 +114,14 @@
113
114
  "prettier --write"
114
115
  ]
115
116
  },
117
+ "overrides": {
118
+ "replace": {
119
+ "minimatch": "3.1.5"
120
+ },
121
+ "markdown-it@<14.2.0": "^14.2.0",
122
+ "@babel/core@<7.29.6": "^7.29.6",
123
+ "js-yaml@<4.2.0": "^4.2.0"
124
+ },
116
125
  "publishConfig": {
117
126
  "registry": "https://registry.npmjs.org/",
118
127
  "access": "public"
@@ -135,11 +144,11 @@
135
144
  }
136
145
  },
137
146
  "optionalDependencies": {
138
- "@valkey/valkey-glide-darwin-x64": "2.4.2-rc2",
139
- "@valkey/valkey-glide-darwin-arm64": "2.4.2-rc2",
140
- "@valkey/valkey-glide-linux-x64-gnu": "2.4.2-rc2",
141
- "@valkey/valkey-glide-linux-arm64-gnu": "2.4.2-rc2",
142
- "@valkey/valkey-glide-linux-x64-musl": "2.4.2-rc2",
143
- "@valkey/valkey-glide-linux-arm64-musl": "2.4.2-rc2"
147
+ "@valkey/valkey-glide-darwin-x64": "2.5.0-rc2",
148
+ "@valkey/valkey-glide-darwin-arm64": "2.5.0-rc2",
149
+ "@valkey/valkey-glide-linux-x64-gnu": "2.5.0-rc2",
150
+ "@valkey/valkey-glide-linux-arm64-gnu": "2.5.0-rc2",
151
+ "@valkey/valkey-glide-linux-x64-musl": "2.5.0-rc2",
152
+ "@valkey/valkey-glide-linux-arm64-musl": "2.5.0-rc2"
144
153
  }
145
154
  }