@valkey/valkey-glide-darwin-arm64 1.2.0-rc2 → 1.2.0-rc20

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.
Files changed (37) hide show
  1. package/README.md +8 -4
  2. package/build-ts/index.d.ts +2 -0
  3. package/build-ts/index.js +2 -0
  4. package/build-ts/index.js.map +1 -1
  5. package/build-ts/src/BaseClient.d.ts +164 -11
  6. package/build-ts/src/BaseClient.js +129 -20
  7. package/build-ts/src/BaseClient.js.map +1 -1
  8. package/build-ts/src/GlideClient.d.ts +84 -2
  9. package/build-ts/src/GlideClient.js +50 -0
  10. package/build-ts/src/GlideClient.js.map +1 -1
  11. package/build-ts/src/GlideClusterClient.d.ts +265 -4
  12. package/build-ts/src/GlideClusterClient.js +50 -2
  13. package/build-ts/src/GlideClusterClient.js.map +1 -1
  14. package/build-ts/src/ProtobufMessage.js +281 -3
  15. package/build-ts/src/ProtobufMessage.js.map +1 -1
  16. package/build-ts/src/server-modules/GlideFt.d.ts +412 -0
  17. package/build-ts/src/server-modules/GlideFt.js +664 -0
  18. package/build-ts/src/server-modules/GlideFt.js.map +1 -0
  19. package/build-ts/src/server-modules/GlideFtOptions.d.ts +244 -0
  20. package/build-ts/src/server-modules/GlideFtOptions.js +6 -0
  21. package/build-ts/src/server-modules/GlideFtOptions.js.map +1 -0
  22. package/build-ts/src/server-modules/GlideJson.d.ts +746 -17
  23. package/build-ts/src/server-modules/GlideJson.js +886 -17
  24. package/build-ts/src/server-modules/GlideJson.js.map +1 -1
  25. package/index.ts +2 -0
  26. package/node_modules/glide-rs/glide-rs.darwin-arm64.node +0 -0
  27. package/node_modules/glide-rs/index.d.ts +1 -0
  28. package/node_modules/glide-rs/index.js +2 -0
  29. package/npm/glide/index.ts +48 -0
  30. package/npm/glide/package.json +2 -2
  31. package/package.json +18 -9
  32. package/.ort.yml +0 -9
  33. package/.prettierignore +0 -7
  34. package/DEVELOPER.md +0 -191
  35. package/THIRD_PARTY_LICENSES_NODE +0 -35625
  36. package/npm/glide/tsconfig.json +0 -30
  37. package/tsconfig.json +0 -31
@@ -5233,6 +5233,228 @@
5233
5233
  };
5234
5234
  return ClusterScan;
5235
5235
  })();
5236
+ command_request.UpdateConnectionPassword = (function () {
5237
+ /**
5238
+ * Properties of an UpdateConnectionPassword.
5239
+ * @memberof command_request
5240
+ * @interface IUpdateConnectionPassword
5241
+ * @property {string|null} [password] UpdateConnectionPassword password
5242
+ * @property {boolean|null} [immediateAuth] UpdateConnectionPassword immediateAuth
5243
+ */
5244
+ /**
5245
+ * Constructs a new UpdateConnectionPassword.
5246
+ * @memberof command_request
5247
+ * @classdesc Represents an UpdateConnectionPassword.
5248
+ * @implements IUpdateConnectionPassword
5249
+ * @constructor
5250
+ * @param {command_request.IUpdateConnectionPassword=} [properties] Properties to set
5251
+ */
5252
+ function UpdateConnectionPassword(properties) {
5253
+ if (properties)
5254
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
5255
+ if (properties[keys[i]] != null)
5256
+ this[keys[i]] = properties[keys[i]];
5257
+ }
5258
+ /**
5259
+ * UpdateConnectionPassword password.
5260
+ * @member {string|null|undefined} password
5261
+ * @memberof command_request.UpdateConnectionPassword
5262
+ * @instance
5263
+ */
5264
+ UpdateConnectionPassword.prototype.password = null;
5265
+ /**
5266
+ * UpdateConnectionPassword immediateAuth.
5267
+ * @member {boolean} immediateAuth
5268
+ * @memberof command_request.UpdateConnectionPassword
5269
+ * @instance
5270
+ */
5271
+ UpdateConnectionPassword.prototype.immediateAuth = false;
5272
+ // OneOf field names bound to virtual getters and setters
5273
+ var $oneOfFields;
5274
+ // Virtual OneOf for proto3 optional field
5275
+ Object.defineProperty(UpdateConnectionPassword.prototype, "_password", {
5276
+ get: $util.oneOfGetter($oneOfFields = ["password"]),
5277
+ set: $util.oneOfSetter($oneOfFields)
5278
+ });
5279
+ /**
5280
+ * Creates a new UpdateConnectionPassword instance using the specified properties.
5281
+ * @function create
5282
+ * @memberof command_request.UpdateConnectionPassword
5283
+ * @static
5284
+ * @param {command_request.IUpdateConnectionPassword=} [properties] Properties to set
5285
+ * @returns {command_request.UpdateConnectionPassword} UpdateConnectionPassword instance
5286
+ */
5287
+ UpdateConnectionPassword.create = function create(properties) {
5288
+ return new UpdateConnectionPassword(properties);
5289
+ };
5290
+ /**
5291
+ * Encodes the specified UpdateConnectionPassword message. Does not implicitly {@link command_request.UpdateConnectionPassword.verify|verify} messages.
5292
+ * @function encode
5293
+ * @memberof command_request.UpdateConnectionPassword
5294
+ * @static
5295
+ * @param {command_request.IUpdateConnectionPassword} message UpdateConnectionPassword message or plain object to encode
5296
+ * @param {$protobuf.Writer} [writer] Writer to encode to
5297
+ * @returns {$protobuf.Writer} Writer
5298
+ */
5299
+ UpdateConnectionPassword.encode = function encode(message, writer) {
5300
+ if (!writer)
5301
+ writer = $Writer.create();
5302
+ if (message.password != null && Object.hasOwnProperty.call(message, "password"))
5303
+ writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.password);
5304
+ if (message.immediateAuth != null && Object.hasOwnProperty.call(message, "immediateAuth"))
5305
+ writer.uint32(/* id 2, wireType 0 =*/ 16).bool(message.immediateAuth);
5306
+ return writer;
5307
+ };
5308
+ /**
5309
+ * Encodes the specified UpdateConnectionPassword message, length delimited. Does not implicitly {@link command_request.UpdateConnectionPassword.verify|verify} messages.
5310
+ * @function encodeDelimited
5311
+ * @memberof command_request.UpdateConnectionPassword
5312
+ * @static
5313
+ * @param {command_request.IUpdateConnectionPassword} message UpdateConnectionPassword message or plain object to encode
5314
+ * @param {$protobuf.Writer} [writer] Writer to encode to
5315
+ * @returns {$protobuf.Writer} Writer
5316
+ */
5317
+ UpdateConnectionPassword.encodeDelimited = function encodeDelimited(message, writer) {
5318
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
5319
+ };
5320
+ /**
5321
+ * Decodes an UpdateConnectionPassword message from the specified reader or buffer.
5322
+ * @function decode
5323
+ * @memberof command_request.UpdateConnectionPassword
5324
+ * @static
5325
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
5326
+ * @param {number} [length] Message length if known beforehand
5327
+ * @returns {command_request.UpdateConnectionPassword} UpdateConnectionPassword
5328
+ * @throws {Error} If the payload is not a reader or valid buffer
5329
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5330
+ */
5331
+ UpdateConnectionPassword.decode = function decode(reader, length) {
5332
+ if (!(reader instanceof $Reader))
5333
+ reader = $Reader.create(reader);
5334
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.command_request.UpdateConnectionPassword();
5335
+ while (reader.pos < end) {
5336
+ var tag = reader.uint32();
5337
+ switch (tag >>> 3) {
5338
+ case 1: {
5339
+ message.password = reader.string();
5340
+ break;
5341
+ }
5342
+ case 2: {
5343
+ message.immediateAuth = reader.bool();
5344
+ break;
5345
+ }
5346
+ default:
5347
+ reader.skipType(tag & 7);
5348
+ break;
5349
+ }
5350
+ }
5351
+ return message;
5352
+ };
5353
+ /**
5354
+ * Decodes an UpdateConnectionPassword message from the specified reader or buffer, length delimited.
5355
+ * @function decodeDelimited
5356
+ * @memberof command_request.UpdateConnectionPassword
5357
+ * @static
5358
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
5359
+ * @returns {command_request.UpdateConnectionPassword} UpdateConnectionPassword
5360
+ * @throws {Error} If the payload is not a reader or valid buffer
5361
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5362
+ */
5363
+ UpdateConnectionPassword.decodeDelimited = function decodeDelimited(reader) {
5364
+ if (!(reader instanceof $Reader))
5365
+ reader = new $Reader(reader);
5366
+ return this.decode(reader, reader.uint32());
5367
+ };
5368
+ /**
5369
+ * Verifies an UpdateConnectionPassword message.
5370
+ * @function verify
5371
+ * @memberof command_request.UpdateConnectionPassword
5372
+ * @static
5373
+ * @param {Object.<string,*>} message Plain object to verify
5374
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
5375
+ */
5376
+ UpdateConnectionPassword.verify = function verify(message) {
5377
+ if (typeof message !== "object" || message === null)
5378
+ return "object expected";
5379
+ var properties = {};
5380
+ if (message.password != null && message.hasOwnProperty("password")) {
5381
+ properties._password = 1;
5382
+ if (!$util.isString(message.password))
5383
+ return "password: string expected";
5384
+ }
5385
+ if (message.immediateAuth != null && message.hasOwnProperty("immediateAuth"))
5386
+ if (typeof message.immediateAuth !== "boolean")
5387
+ return "immediateAuth: boolean expected";
5388
+ return null;
5389
+ };
5390
+ /**
5391
+ * Creates an UpdateConnectionPassword message from a plain object. Also converts values to their respective internal types.
5392
+ * @function fromObject
5393
+ * @memberof command_request.UpdateConnectionPassword
5394
+ * @static
5395
+ * @param {Object.<string,*>} object Plain object
5396
+ * @returns {command_request.UpdateConnectionPassword} UpdateConnectionPassword
5397
+ */
5398
+ UpdateConnectionPassword.fromObject = function fromObject(object) {
5399
+ if (object instanceof $root.command_request.UpdateConnectionPassword)
5400
+ return object;
5401
+ var message = new $root.command_request.UpdateConnectionPassword();
5402
+ if (object.password != null)
5403
+ message.password = String(object.password);
5404
+ if (object.immediateAuth != null)
5405
+ message.immediateAuth = Boolean(object.immediateAuth);
5406
+ return message;
5407
+ };
5408
+ /**
5409
+ * Creates a plain object from an UpdateConnectionPassword message. Also converts values to other types if specified.
5410
+ * @function toObject
5411
+ * @memberof command_request.UpdateConnectionPassword
5412
+ * @static
5413
+ * @param {command_request.UpdateConnectionPassword} message UpdateConnectionPassword
5414
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
5415
+ * @returns {Object.<string,*>} Plain object
5416
+ */
5417
+ UpdateConnectionPassword.toObject = function toObject(message, options) {
5418
+ if (!options)
5419
+ options = {};
5420
+ var object = {};
5421
+ if (options.defaults)
5422
+ object.immediateAuth = false;
5423
+ if (message.password != null && message.hasOwnProperty("password")) {
5424
+ object.password = message.password;
5425
+ if (options.oneofs)
5426
+ object._password = "password";
5427
+ }
5428
+ if (message.immediateAuth != null && message.hasOwnProperty("immediateAuth"))
5429
+ object.immediateAuth = message.immediateAuth;
5430
+ return object;
5431
+ };
5432
+ /**
5433
+ * Converts this UpdateConnectionPassword to JSON.
5434
+ * @function toJSON
5435
+ * @memberof command_request.UpdateConnectionPassword
5436
+ * @instance
5437
+ * @returns {Object.<string,*>} JSON object
5438
+ */
5439
+ UpdateConnectionPassword.prototype.toJSON = function toJSON() {
5440
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
5441
+ };
5442
+ /**
5443
+ * Gets the default type url for UpdateConnectionPassword
5444
+ * @function getTypeUrl
5445
+ * @memberof command_request.UpdateConnectionPassword
5446
+ * @static
5447
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
5448
+ * @returns {string} The default type url
5449
+ */
5450
+ UpdateConnectionPassword.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
5451
+ if (typeUrlPrefix === undefined) {
5452
+ typeUrlPrefix = "type.googleapis.com";
5453
+ }
5454
+ return typeUrlPrefix + "/command_request.UpdateConnectionPassword";
5455
+ };
5456
+ return UpdateConnectionPassword;
5457
+ })();
5236
5458
  command_request.CommandRequest = (function () {
5237
5459
  /**
5238
5460
  * Properties of a CommandRequest.
@@ -5244,6 +5466,7 @@
5244
5466
  * @property {command_request.IScriptInvocation|null} [scriptInvocation] CommandRequest scriptInvocation
5245
5467
  * @property {command_request.IScriptInvocationPointers|null} [scriptInvocationPointers] CommandRequest scriptInvocationPointers
5246
5468
  * @property {command_request.IClusterScan|null} [clusterScan] CommandRequest clusterScan
5469
+ * @property {command_request.IUpdateConnectionPassword|null} [updateConnectionPassword] CommandRequest updateConnectionPassword
5247
5470
  * @property {command_request.IRoutes|null} [route] CommandRequest route
5248
5471
  */
5249
5472
  /**
@@ -5302,6 +5525,13 @@
5302
5525
  * @instance
5303
5526
  */
5304
5527
  CommandRequest.prototype.clusterScan = null;
5528
+ /**
5529
+ * CommandRequest updateConnectionPassword.
5530
+ * @member {command_request.IUpdateConnectionPassword|null|undefined} updateConnectionPassword
5531
+ * @memberof command_request.CommandRequest
5532
+ * @instance
5533
+ */
5534
+ CommandRequest.prototype.updateConnectionPassword = null;
5305
5535
  /**
5306
5536
  * CommandRequest route.
5307
5537
  * @member {command_request.IRoutes|null|undefined} route
@@ -5313,12 +5543,12 @@
5313
5543
  var $oneOfFields;
5314
5544
  /**
5315
5545
  * CommandRequest command.
5316
- * @member {"singleCommand"|"transaction"|"scriptInvocation"|"scriptInvocationPointers"|"clusterScan"|undefined} command
5546
+ * @member {"singleCommand"|"transaction"|"scriptInvocation"|"scriptInvocationPointers"|"clusterScan"|"updateConnectionPassword"|undefined} command
5317
5547
  * @memberof command_request.CommandRequest
5318
5548
  * @instance
5319
5549
  */
5320
5550
  Object.defineProperty(CommandRequest.prototype, "command", {
5321
- get: $util.oneOfGetter($oneOfFields = ["singleCommand", "transaction", "scriptInvocation", "scriptInvocationPointers", "clusterScan"]),
5551
+ get: $util.oneOfGetter($oneOfFields = ["singleCommand", "transaction", "scriptInvocation", "scriptInvocationPointers", "clusterScan", "updateConnectionPassword"]),
5322
5552
  set: $util.oneOfSetter($oneOfFields)
5323
5553
  });
5324
5554
  /**
@@ -5356,8 +5586,10 @@
5356
5586
  $root.command_request.ScriptInvocationPointers.encode(message.scriptInvocationPointers, writer.uint32(/* id 5, wireType 2 =*/ 42).fork()).ldelim();
5357
5587
  if (message.clusterScan != null && Object.hasOwnProperty.call(message, "clusterScan"))
5358
5588
  $root.command_request.ClusterScan.encode(message.clusterScan, writer.uint32(/* id 6, wireType 2 =*/ 50).fork()).ldelim();
5589
+ if (message.updateConnectionPassword != null && Object.hasOwnProperty.call(message, "updateConnectionPassword"))
5590
+ $root.command_request.UpdateConnectionPassword.encode(message.updateConnectionPassword, writer.uint32(/* id 7, wireType 2 =*/ 58).fork()).ldelim();
5359
5591
  if (message.route != null && Object.hasOwnProperty.call(message, "route"))
5360
- $root.command_request.Routes.encode(message.route, writer.uint32(/* id 7, wireType 2 =*/ 58).fork()).ldelim();
5592
+ $root.command_request.Routes.encode(message.route, writer.uint32(/* id 8, wireType 2 =*/ 66).fork()).ldelim();
5361
5593
  return writer;
5362
5594
  };
5363
5595
  /**
@@ -5415,6 +5647,10 @@
5415
5647
  break;
5416
5648
  }
5417
5649
  case 7: {
5650
+ message.updateConnectionPassword = $root.command_request.UpdateConnectionPassword.decode(reader, reader.uint32());
5651
+ break;
5652
+ }
5653
+ case 8: {
5418
5654
  message.route = $root.command_request.Routes.decode(reader, reader.uint32());
5419
5655
  break;
5420
5656
  }
@@ -5503,6 +5739,16 @@
5503
5739
  return "clusterScan." + error;
5504
5740
  }
5505
5741
  }
5742
+ if (message.updateConnectionPassword != null && message.hasOwnProperty("updateConnectionPassword")) {
5743
+ if (properties.command === 1)
5744
+ return "command: multiple values";
5745
+ properties.command = 1;
5746
+ {
5747
+ var error = $root.command_request.UpdateConnectionPassword.verify(message.updateConnectionPassword);
5748
+ if (error)
5749
+ return "updateConnectionPassword." + error;
5750
+ }
5751
+ }
5506
5752
  if (message.route != null && message.hasOwnProperty("route")) {
5507
5753
  var error = $root.command_request.Routes.verify(message.route);
5508
5754
  if (error)
@@ -5549,6 +5795,11 @@
5549
5795
  throw TypeError(".command_request.CommandRequest.clusterScan: object expected");
5550
5796
  message.clusterScan = $root.command_request.ClusterScan.fromObject(object.clusterScan);
5551
5797
  }
5798
+ if (object.updateConnectionPassword != null) {
5799
+ if (typeof object.updateConnectionPassword !== "object")
5800
+ throw TypeError(".command_request.CommandRequest.updateConnectionPassword: object expected");
5801
+ message.updateConnectionPassword = $root.command_request.UpdateConnectionPassword.fromObject(object.updateConnectionPassword);
5802
+ }
5552
5803
  if (object.route != null) {
5553
5804
  if (typeof object.route !== "object")
5554
5805
  throw TypeError(".command_request.CommandRequest.route: object expected");
@@ -5600,6 +5851,11 @@
5600
5851
  if (options.oneofs)
5601
5852
  object.command = "clusterScan";
5602
5853
  }
5854
+ if (message.updateConnectionPassword != null && message.hasOwnProperty("updateConnectionPassword")) {
5855
+ object.updateConnectionPassword = $root.command_request.UpdateConnectionPassword.toObject(message.updateConnectionPassword, options);
5856
+ if (options.oneofs)
5857
+ object.command = "updateConnectionPassword";
5858
+ }
5603
5859
  if (message.route != null && message.hasOwnProperty("route"))
5604
5860
  object.route = $root.command_request.Routes.toObject(message.route, options);
5605
5861
  return object;
@@ -6930,6 +7186,7 @@
6930
7186
  * @property {connection_request.IPeriodicChecksDisabled|null} [periodicChecksDisabled] ConnectionRequest periodicChecksDisabled
6931
7187
  * @property {connection_request.IPubSubSubscriptions|null} [pubsubSubscriptions] ConnectionRequest pubsubSubscriptions
6932
7188
  * @property {number|null} [inflightRequestsLimit] ConnectionRequest inflightRequestsLimit
7189
+ * @property {string|null} [clientAz] ConnectionRequest clientAz
6933
7190
  */
6934
7191
  /**
6935
7192
  * Constructs a new ConnectionRequest.
@@ -7044,6 +7301,13 @@
7044
7301
  * @instance
7045
7302
  */
7046
7303
  ConnectionRequest.prototype.inflightRequestsLimit = 0;
7304
+ /**
7305
+ * ConnectionRequest clientAz.
7306
+ * @member {string} clientAz
7307
+ * @memberof connection_request.ConnectionRequest
7308
+ * @instance
7309
+ */
7310
+ ConnectionRequest.prototype.clientAz = "";
7047
7311
  // OneOf field names bound to virtual getters and setters
7048
7312
  var $oneOfFields;
7049
7313
  /**
@@ -7108,6 +7372,8 @@
7108
7372
  $root.connection_request.PubSubSubscriptions.encode(message.pubsubSubscriptions, writer.uint32(/* id 13, wireType 2 =*/ 106).fork()).ldelim();
7109
7373
  if (message.inflightRequestsLimit != null && Object.hasOwnProperty.call(message, "inflightRequestsLimit"))
7110
7374
  writer.uint32(/* id 14, wireType 0 =*/ 112).uint32(message.inflightRequestsLimit);
7375
+ if (message.clientAz != null && Object.hasOwnProperty.call(message, "clientAz"))
7376
+ writer.uint32(/* id 15, wireType 2 =*/ 122).string(message.clientAz);
7111
7377
  return writer;
7112
7378
  };
7113
7379
  /**
@@ -7198,6 +7464,10 @@
7198
7464
  message.inflightRequestsLimit = reader.uint32();
7199
7465
  break;
7200
7466
  }
7467
+ case 15: {
7468
+ message.clientAz = reader.string();
7469
+ break;
7470
+ }
7201
7471
  default:
7202
7472
  reader.skipType(tag & 7);
7203
7473
  break;
@@ -7316,6 +7586,9 @@
7316
7586
  if (message.inflightRequestsLimit != null && message.hasOwnProperty("inflightRequestsLimit"))
7317
7587
  if (!$util.isInteger(message.inflightRequestsLimit))
7318
7588
  return "inflightRequestsLimit: integer expected";
7589
+ if (message.clientAz != null && message.hasOwnProperty("clientAz"))
7590
+ if (!$util.isString(message.clientAz))
7591
+ return "clientAz: string expected";
7319
7592
  return null;
7320
7593
  };
7321
7594
  /**
@@ -7435,6 +7708,8 @@
7435
7708
  }
7436
7709
  if (object.inflightRequestsLimit != null)
7437
7710
  message.inflightRequestsLimit = object.inflightRequestsLimit >>> 0;
7711
+ if (object.clientAz != null)
7712
+ message.clientAz = String(object.clientAz);
7438
7713
  return message;
7439
7714
  };
7440
7715
  /**
@@ -7464,6 +7739,7 @@
7464
7739
  object.clientName = "";
7465
7740
  object.pubsubSubscriptions = null;
7466
7741
  object.inflightRequestsLimit = 0;
7742
+ object.clientAz = "";
7467
7743
  }
7468
7744
  if (message.addresses && message.addresses.length) {
7469
7745
  object.addresses = [];
@@ -7502,6 +7778,8 @@
7502
7778
  object.pubsubSubscriptions = $root.connection_request.PubSubSubscriptions.toObject(message.pubsubSubscriptions, options);
7503
7779
  if (message.inflightRequestsLimit != null && message.hasOwnProperty("inflightRequestsLimit"))
7504
7780
  object.inflightRequestsLimit = message.inflightRequestsLimit;
7781
+ if (message.clientAz != null && message.hasOwnProperty("clientAz"))
7782
+ object.clientAz = message.clientAz;
7505
7783
  return object;
7506
7784
  };
7507
7785
  /**