@upstash/redis 1.35.8-canary → 1.36.0-rc.1

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.
@@ -378,6 +378,360 @@ var Command = class {
378
378
  }
379
379
  };
380
380
 
381
+ // pkg/commands/exec.ts
382
+ var ExecCommand = class extends Command {
383
+ constructor(cmd, opts) {
384
+ const normalizedCmd = cmd.map((arg) => typeof arg === "string" ? arg : String(arg));
385
+ super(normalizedCmd, opts);
386
+ }
387
+ };
388
+
389
+ // pkg/commands/search/types.ts
390
+ var FIELD_TYPES = ["TEXT", "U64", "I64", "F64", "BOOL", "DATE"];
391
+
392
+ // pkg/commands/search/utils.ts
393
+ function isFieldType(value) {
394
+ return typeof value === "string" && FIELD_TYPES.includes(value);
395
+ }
396
+ function isDetailedField(value) {
397
+ return typeof value === "object" && value !== null && "type" in value && isFieldType(value.type);
398
+ }
399
+ function isNestedSchema(value) {
400
+ return typeof value === "object" && value !== null && !isDetailedField(value);
401
+ }
402
+ function flattenSchema(schema, pathPrefix = []) {
403
+ const fields = [];
404
+ for (const [key, value] of Object.entries(schema)) {
405
+ const currentPath = [...pathPrefix, key];
406
+ const pathString = currentPath.join(".");
407
+ if (isFieldType(value)) {
408
+ fields.push({
409
+ path: pathString,
410
+ type: value
411
+ });
412
+ } else if (isDetailedField(value)) {
413
+ fields.push({
414
+ path: pathString,
415
+ type: value.type,
416
+ fast: "fast" in value ? value.fast : void 0,
417
+ noTokenize: "noTokenize" in value ? value.noTokenize : void 0,
418
+ noStem: "noStem" in value ? value.noStem : void 0
419
+ });
420
+ } else if (isNestedSchema(value)) {
421
+ const nestedFields = flattenSchema(value, currentPath);
422
+ fields.push(...nestedFields);
423
+ }
424
+ }
425
+ return fields;
426
+ }
427
+ function parseQueryResponse(rawResponse, options) {
428
+ const results = [];
429
+ if (options && "noContent" in options && options.noContent) {
430
+ for (const item of rawResponse) {
431
+ results.push({
432
+ key: item[0],
433
+ score: item[1]
434
+ });
435
+ }
436
+ } else {
437
+ for (const item of rawResponse) {
438
+ const fields = Array.isArray(item[2]) ? item[2].map((field) => ({
439
+ [field[0]]: field[1]
440
+ })) : [];
441
+ results.push({
442
+ key: item[0],
443
+ score: item[1],
444
+ fields
445
+ });
446
+ }
447
+ }
448
+ return results;
449
+ }
450
+ function parseDescribeResponse(rawResponse) {
451
+ return rawResponse;
452
+ }
453
+ function parseCountResponse(rawResponse) {
454
+ return typeof rawResponse === "number" ? rawResponse : parseInt(rawResponse, 10);
455
+ }
456
+
457
+ // pkg/commands/search/command-builder.ts
458
+ function buildQueryCommand(redisCommand, indexName, query, options) {
459
+ const command = [redisCommand, indexName, query];
460
+ if (options?.limit !== void 0) {
461
+ command.push("LIMIT", options.limit.toString());
462
+ }
463
+ if (options?.offset !== void 0) {
464
+ command.push("OFFSET", options.offset.toString());
465
+ }
466
+ if (options?.noContent) {
467
+ command.push("NOCONTENT");
468
+ }
469
+ if (options?.sortBy) {
470
+ command.push("SORTBY", options.sortBy.field);
471
+ if (options.sortBy.direction) {
472
+ command.push(options.sortBy.direction);
473
+ }
474
+ }
475
+ if (options && "highlight" in options && options.highlight) {
476
+ command.push(
477
+ "HIGHLIGHT",
478
+ "FIELDS",
479
+ options.highlight.fields.length.toString(),
480
+ ...options.highlight.fields
481
+ );
482
+ if (options.highlight.preTag && options.highlight.postTag) {
483
+ command.push("TAGS", options.highlight.preTag, options.highlight.postTag);
484
+ }
485
+ }
486
+ if (options && "returnFields" in options && options.returnFields && options.returnFields.length > 0) {
487
+ command.push("RETURN", options.returnFields.length.toString(), ...options.returnFields);
488
+ }
489
+ return command;
490
+ }
491
+ function buildCreateIndexCommand(props) {
492
+ const { indexName, schema, dataType, prefix, language } = props;
493
+ const prefixArray = Array.isArray(prefix) ? prefix : [prefix];
494
+ const payload = [
495
+ indexName,
496
+ "ON",
497
+ dataType.toUpperCase(),
498
+ "PREFIX",
499
+ prefixArray.length.toString(),
500
+ ...prefixArray,
501
+ ...language ? ["LANGUAGE", language] : [],
502
+ "SCHEMA"
503
+ ];
504
+ const fields = flattenSchema(schema);
505
+ for (const field of fields) {
506
+ payload.push(field.path, field.type);
507
+ if (field.fast) {
508
+ payload.push("FAST");
509
+ }
510
+ if (field.noTokenize) {
511
+ payload.push("NOTOKENIZE");
512
+ }
513
+ if (field.noStem) {
514
+ payload.push("NOSTEM");
515
+ }
516
+ }
517
+ return ["SEARCH.CREATE", ...payload];
518
+ }
519
+
520
+ // pkg/commands/search/search.ts
521
+ var SearchIndex = class {
522
+ indexName;
523
+ schema;
524
+ client;
525
+ constructor({ indexName, schema, client }) {
526
+ this.indexName = indexName;
527
+ this.schema = schema;
528
+ this.client = client;
529
+ }
530
+ async waitIndexing() {
531
+ let command = ["SEARCH.COMMIT", this.indexName];
532
+ const result = await new ExecCommand(command).exec(
533
+ this.client
534
+ );
535
+ return result;
536
+ }
537
+ async describe() {
538
+ let command = ["SEARCH.DESCRIBE", this.indexName];
539
+ const rawResult = await new ExecCommand(command).exec(
540
+ this.client
541
+ );
542
+ return parseDescribeResponse(rawResult);
543
+ }
544
+ async query(filter, options) {
545
+ const queryString = JSON.stringify(filter);
546
+ const command = buildQueryCommand(
547
+ "SEARCH.QUERY",
548
+ this.indexName,
549
+ queryString,
550
+ options
551
+ );
552
+ const rawResult = await new ExecCommand(command).exec(
553
+ this.client
554
+ );
555
+ return parseQueryResponse(rawResult, options);
556
+ }
557
+ async count(filter) {
558
+ const queryString = JSON.stringify(filter);
559
+ const command = buildQueryCommand("SEARCH.COUNT", this.indexName, queryString);
560
+ const rawResult = await new ExecCommand(command).exec(
561
+ this.client
562
+ );
563
+ return parseCountResponse(rawResult);
564
+ }
565
+ async drop() {
566
+ let command = ["SEARCH.DROP", this.indexName];
567
+ const result = await new ExecCommand(command).exec(
568
+ this.client
569
+ );
570
+ return result;
571
+ }
572
+ };
573
+ async function createSearchIndex(props) {
574
+ const { indexName, schema, client } = props;
575
+ const createIndexCommand = buildCreateIndexCommand(props);
576
+ await new ExecCommand(createIndexCommand).exec(client);
577
+ return getSearchIndex({ indexName, schema, client });
578
+ }
579
+ function getSearchIndex(props) {
580
+ return new SearchIndex(props);
581
+ }
582
+
583
+ // pkg/commands/search/schema-builder.ts
584
+ var BUILD = Symbol("build");
585
+ var TextFieldBuilder = class _TextFieldBuilder {
586
+ _noTokenize;
587
+ _noStem;
588
+ constructor(noTokenize = { noTokenize: false }, noStem = { noStem: false }) {
589
+ this._noTokenize = noTokenize;
590
+ this._noStem = noStem;
591
+ }
592
+ noTokenize() {
593
+ return new _TextFieldBuilder({ noTokenize: true }, this._noStem);
594
+ }
595
+ noStem() {
596
+ return new _TextFieldBuilder(this._noTokenize, { noStem: true });
597
+ }
598
+ [BUILD]() {
599
+ return this._noTokenize.noTokenize || this._noStem.noStem ? {
600
+ type: "TEXT",
601
+ ...this._noTokenize.noTokenize ? { noTokenize: true } : {},
602
+ ...this._noStem.noStem ? { noStem: true } : {}
603
+ } : "TEXT";
604
+ }
605
+ };
606
+ var NumericFieldBuilder = class _NumericFieldBuilder {
607
+ _fast;
608
+ type;
609
+ constructor(type, fast = { fast: false }) {
610
+ this.type = type;
611
+ this._fast = fast;
612
+ }
613
+ fast() {
614
+ return new _NumericFieldBuilder(this.type, { fast: true });
615
+ }
616
+ [BUILD]() {
617
+ return this._fast.fast ? {
618
+ type: this.type,
619
+ fast: true
620
+ } : this.type;
621
+ }
622
+ };
623
+ var BoolFieldBuilder = class _BoolFieldBuilder {
624
+ _fast;
625
+ constructor(fast = { fast: false }) {
626
+ this._fast = fast;
627
+ }
628
+ fast() {
629
+ return new _BoolFieldBuilder({ fast: true });
630
+ }
631
+ [BUILD]() {
632
+ return this._fast.fast ? {
633
+ type: "BOOL",
634
+ fast: true
635
+ } : "BOOL";
636
+ }
637
+ };
638
+ var DateFieldBuilder = class _DateFieldBuilder {
639
+ _fast;
640
+ constructor(fast = { fast: false }) {
641
+ this._fast = fast;
642
+ }
643
+ fast() {
644
+ return new _DateFieldBuilder({ fast: true });
645
+ }
646
+ [BUILD]() {
647
+ return this._fast.fast ? {
648
+ type: "DATE",
649
+ fast: true
650
+ } : "DATE";
651
+ }
652
+ };
653
+ var s = {
654
+ /**
655
+ * Full-text search field (TEXT)
656
+ * @example
657
+ * s.text() // Simple text field
658
+ * s.text().noTokenize() // Exact phrase matching
659
+ * s.text().noStem() // Disable stemming
660
+ */
661
+ text() {
662
+ return new TextFieldBuilder();
663
+ },
664
+ /**
665
+ * Unsigned 64-bit integer (U64)
666
+ * Range: 0 to 2^64-1
667
+ * @example
668
+ * s.unsigned() // Simple unsigned field
669
+ * s.unsigned().fast() // Enable sorting and range queries
670
+ */
671
+ unsignedInteger() {
672
+ return new NumericFieldBuilder("U64");
673
+ },
674
+ /**
675
+ * Signed 64-bit integer (I64)
676
+ * Range: -2^63 to 2^63-1
677
+ * @example
678
+ * s.integer() // Simple integer field
679
+ * s.integer().fast() // Enable sorting and range queries
680
+ */
681
+ integer() {
682
+ return new NumericFieldBuilder("I64");
683
+ },
684
+ /**
685
+ * 64-bit floating point (F64)
686
+ * @example
687
+ * s.float() // Simple float field
688
+ * s.float().fast() // Enable sorting and range queries
689
+ */
690
+ float() {
691
+ return new NumericFieldBuilder("F64");
692
+ },
693
+ /**
694
+ * Boolean field (BOOL)
695
+ * @example
696
+ * s.bool() // Simple boolean field
697
+ * s.bool().fast() // Enable efficient filtering
698
+ */
699
+ bool() {
700
+ return new BoolFieldBuilder();
701
+ },
702
+ /**
703
+ * ISO 8601 date field (DATE)
704
+ * @example
705
+ * s.date() // Simple date field
706
+ * s.date().fast() // Enable sorting and range queries
707
+ */
708
+ date() {
709
+ return new DateFieldBuilder();
710
+ },
711
+ /**
712
+ * Create a string/JSON index schema (supports nesting)
713
+ * @example
714
+ * s.object({
715
+ * name: s.text(),
716
+ * profile: s.object({
717
+ * age: s.unsigned(),
718
+ * city: s.text()
719
+ * })
720
+ * })
721
+ */
722
+ object(fields) {
723
+ const result = {};
724
+ for (const [key, value] of Object.entries(fields)) {
725
+ if (value && typeof value === "object" && BUILD in value) {
726
+ result[key] = value[BUILD]();
727
+ } else {
728
+ result[key] = value;
729
+ }
730
+ }
731
+ return result;
732
+ }
733
+ };
734
+
381
735
  // pkg/commands/hrandfield.ts
382
736
  function deserialize(result) {
383
737
  if (result.length === 0) {
@@ -556,14 +910,6 @@ var EvalshaCommand = class extends Command {
556
910
  }
557
911
  };
558
912
 
559
- // pkg/commands/exec.ts
560
- var ExecCommand = class extends Command {
561
- constructor(cmd, opts) {
562
- const normalizedCmd = cmd.map((arg) => typeof arg === "string" ? arg : String(arg));
563
- super(normalizedCmd, opts);
564
- }
565
- };
566
-
567
913
  // pkg/commands/exists.ts
568
914
  var ExistsCommand = class extends Command {
569
915
  constructor(cmd, opts) {
@@ -3553,8 +3899,8 @@ var Script = class {
3553
3899
  /**
3554
3900
  * Compute the sha1 hash of the script and return its hex representation.
3555
3901
  */
3556
- async digest(s) {
3557
- const data = new TextEncoder().encode(s);
3902
+ async digest(s2) {
3903
+ const data = new TextEncoder().encode(s2);
3558
3904
  const hashBuffer = await subtle.digest("SHA-1", data);
3559
3905
  const hashArray = [...new Uint8Array(hashBuffer)];
3560
3906
  return hashArray.map((b) => b.toString(16).padStart(2, "0")).join("");
@@ -3617,8 +3963,8 @@ var ScriptRO = class {
3617
3963
  /**
3618
3964
  * Compute the sha1 hash of the script and return its hex representation.
3619
3965
  */
3620
- async digest(s) {
3621
- const data = new TextEncoder().encode(s);
3966
+ async digest(s2) {
3967
+ const data = new TextEncoder().encode(s2);
3622
3968
  const hashBuffer = await subtle2.digest("SHA-1", data);
3623
3969
  const hashArray = [...new Uint8Array(hashBuffer)];
3624
3970
  return hashArray.map((b) => b.toString(16).padStart(2, "0")).join("");
@@ -3803,6 +4149,18 @@ var Redis = class {
3803
4149
  createScript(script, opts) {
3804
4150
  return opts?.readonly ? new ScriptRO(this, script) : new Script(this, script);
3805
4151
  }
4152
+ createSearchIndex = (props) => {
4153
+ return createSearchIndex({
4154
+ ...props,
4155
+ client: this.client
4156
+ });
4157
+ };
4158
+ getSearchIndex = (props) => {
4159
+ return getSearchIndex({
4160
+ ...props,
4161
+ client: this.client
4162
+ });
4163
+ };
3806
4164
  /**
3807
4165
  * Create a new pipeline that allows you to send requests in bulk.
3808
4166
  *
@@ -4510,11 +4868,14 @@ var Redis = class {
4510
4868
  };
4511
4869
 
4512
4870
  // version.ts
4513
- var VERSION = "v1.35.8-canary";
4871
+ var VERSION = "v1.36.0-rc.1";
4514
4872
 
4515
4873
  export {
4516
4874
  error_exports,
4517
4875
  HttpClient,
4876
+ createSearchIndex,
4877
+ getSearchIndex,
4878
+ s,
4518
4879
  Redis,
4519
4880
  VERSION
4520
4881
  };
package/cloudflare.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { H as HttpClientConfig, R as RedisOptions, a as RequesterConfig, b as Redis$1 } from './zmscore-DhpQcqpW.mjs';
2
- export { A as AppendCommand, B as BitCountCommand, f as BitOpCommand, g as BitPosCommand, C as CopyCommand, D as DBSizeCommand, i as DecrByCommand, h as DecrCommand, j as DelCommand, E as EchoCommand, l as EvalCommand, k as EvalROCommand, n as EvalshaCommand, m as EvalshaROCommand, o as ExistsCommand, r as ExpireAtCommand, p as ExpireCommand, q as ExpireOption, F as FlushAllCommand, s as FlushDBCommand, G as GeoAddCommand, t as GeoAddCommandOptions, v as GeoDistCommand, w as GeoHashCommand, u as GeoMember, x as GeoPosCommand, y as GeoSearchCommand, z as GeoSearchStoreCommand, J as GetBitCommand, I as GetCommand, K as GetDelCommand, L as GetExCommand, M as GetRangeCommand, N as GetSetCommand, O as HDelCommand, Q as HExistsCommand, T as HExpireAtCommand, S as HExpireCommand, V as HExpireTimeCommand, a1 as HGetAllCommand, a0 as HGetCommand, a2 as HIncrByCommand, a3 as HIncrByFloatCommand, a4 as HKeysCommand, a5 as HLenCommand, a6 as HMGetCommand, a7 as HMSetCommand, Y as HPExpireAtCommand, X as HPExpireCommand, Z as HPExpireTimeCommand, _ as HPTtlCommand, $ as HPersistCommand, a8 as HRandFieldCommand, a9 as HScanCommand, aa as HSetCommand, ab as HSetNXCommand, ac as HStrLenCommand, W as HTtlCommand, ad as HValsCommand, af as IncrByCommand, ag as IncrByFloatCommand, ae as IncrCommand, ah as JsonArrAppendCommand, ai as JsonArrIndexCommand, aj as JsonArrInsertCommand, ak as JsonArrLenCommand, al as JsonArrPopCommand, am as JsonArrTrimCommand, an as JsonClearCommand, ao as JsonDelCommand, ap as JsonForgetCommand, aq as JsonGetCommand, as as JsonMGetCommand, ar as JsonMergeCommand, at as JsonNumIncrByCommand, au as JsonNumMultByCommand, av as JsonObjKeysCommand, aw as JsonObjLenCommand, ax as JsonRespCommand, ay as JsonSetCommand, az as JsonStrAppendCommand, aA as JsonStrLenCommand, aB as JsonToggleCommand, aC as JsonTypeCommand, aD as KeysCommand, aE as LIndexCommand, aF as LInsertCommand, aG as LLenCommand, aH as LMoveCommand, aI as LPopCommand, aJ as LPushCommand, aK as LPushXCommand, aL as LRangeCommand, aM as LRemCommand, aN as LSetCommand, aO as LTrimCommand, aP as MGetCommand, aQ as MSetCommand, aR as MSetNXCommand, aU as PExpireAtCommand, aT as PExpireCommand, aW as PSetEXCommand, aX as PTtlCommand, aS as PersistCommand, aV as PingCommand, P as Pipeline, aY as PublishCommand, b0 as RPopCommand, b1 as RPushCommand, b2 as RPushXCommand, aZ as RandomKeyCommand, a_ as RenameCommand, a$ as RenameNXCommand, c as Requester, b3 as SAddCommand, b6 as SCardCommand, ba as SDiffCommand, bb as SDiffStoreCommand, bi as SInterCommand, bj as SInterStoreCommand, bk as SIsMemberCommand, bm as SMIsMemberCommand, bl as SMembersCommand, bn as SMoveCommand, bo as SPopCommand, bp as SRandMemberCommand, bq as SRemCommand, br as SScanCommand, bt as SUnionCommand, bu as SUnionStoreCommand, b4 as ScanCommand, b5 as ScanCommandOptions, bD as ScoreMember, b7 as ScriptExistsCommand, b8 as ScriptFlushCommand, b9 as ScriptLoadCommand, be as SetBitCommand, bc as SetCommand, bd as SetCommandOptions, bf as SetExCommand, bg as SetNxCommand, bh as SetRangeCommand, bs as StrLenCommand, bv as TimeCommand, bw as TouchCommand, bx as TtlCommand, by as Type, bz as TypeCommand, bA as UnlinkCommand, U as UpstashRequest, d as UpstashResponse, bB as XAddCommand, bC as XRangeCommand, bF as ZAddCommand, bE as ZAddCommandOptions, bG as ZCardCommand, bH as ZCountCommand, bI as ZDiffStoreCommand, bJ as ZIncrByCommand, bK as ZInterStoreCommand, bL as ZInterStoreCommandOptions, bM as ZLexCountCommand, bN as ZMScoreCommand, bO as ZPopMaxCommand, bP as ZPopMinCommand, bQ as ZRangeCommand, bR as ZRangeCommandOptions, bS as ZRankCommand, bT as ZRemCommand, bU as ZRemRangeByLexCommand, bV as ZRemRangeByRankCommand, bW as ZRemRangeByScoreCommand, bX as ZRevRankCommand, bY as ZScanCommand, bZ as ZScoreCommand, b_ as ZUnionCommand, b$ as ZUnionCommandOptions, c0 as ZUnionStoreCommand, c1 as ZUnionStoreCommandOptions, e as errors } from './zmscore-DhpQcqpW.mjs';
1
+ import { H as HttpClientConfig, R as RedisOptions, a as RequesterConfig, b as Redis$1 } from './zmscore-BVyzI3wx.mjs';
2
+ export { A as AppendCommand, B as BitCountCommand, f as BitOpCommand, g as BitPosCommand, C as CopyCommand, D as DBSizeCommand, i as DecrByCommand, h as DecrCommand, j as DelCommand, E as EchoCommand, l as EvalCommand, k as EvalROCommand, n as EvalshaCommand, m as EvalshaROCommand, o as ExistsCommand, r as ExpireAtCommand, p as ExpireCommand, q as ExpireOption, F as FlushAllCommand, s as FlushDBCommand, G as GeoAddCommand, t as GeoAddCommandOptions, v as GeoDistCommand, w as GeoHashCommand, u as GeoMember, x as GeoPosCommand, y as GeoSearchCommand, z as GeoSearchStoreCommand, J as GetBitCommand, I as GetCommand, K as GetDelCommand, L as GetExCommand, M as GetRangeCommand, O as GetSetCommand, Q as HDelCommand, S as HExistsCommand, V as HExpireAtCommand, T as HExpireCommand, W as HExpireTimeCommand, a2 as HGetAllCommand, a1 as HGetCommand, a3 as HIncrByCommand, a4 as HIncrByFloatCommand, a5 as HKeysCommand, a6 as HLenCommand, a7 as HMGetCommand, a8 as HMSetCommand, Z as HPExpireAtCommand, Y as HPExpireCommand, _ as HPExpireTimeCommand, $ as HPTtlCommand, a0 as HPersistCommand, a9 as HRandFieldCommand, aa as HScanCommand, ab as HSetCommand, ac as HSetNXCommand, ad as HStrLenCommand, X as HTtlCommand, ae as HValsCommand, ag as IncrByCommand, ah as IncrByFloatCommand, af as IncrCommand, ai as JsonArrAppendCommand, aj as JsonArrIndexCommand, ak as JsonArrInsertCommand, al as JsonArrLenCommand, am as JsonArrPopCommand, an as JsonArrTrimCommand, ao as JsonClearCommand, ap as JsonDelCommand, aq as JsonForgetCommand, ar as JsonGetCommand, at as JsonMGetCommand, as as JsonMergeCommand, au as JsonNumIncrByCommand, av as JsonNumMultByCommand, aw as JsonObjKeysCommand, ax as JsonObjLenCommand, ay as JsonRespCommand, az as JsonSetCommand, aA as JsonStrAppendCommand, aB as JsonStrLenCommand, aC as JsonToggleCommand, aD as JsonTypeCommand, aE as KeysCommand, aF as LIndexCommand, aG as LInsertCommand, aH as LLenCommand, aI as LMoveCommand, aJ as LPopCommand, aK as LPushCommand, aL as LPushXCommand, aM as LRangeCommand, aN as LRemCommand, aO as LSetCommand, aP as LTrimCommand, aQ as MGetCommand, aR as MSetCommand, aS as MSetNXCommand, aV as PExpireAtCommand, aU as PExpireCommand, aX as PSetEXCommand, aY as PTtlCommand, aT as PersistCommand, aW as PingCommand, P as Pipeline, aZ as PublishCommand, b1 as RPopCommand, b2 as RPushCommand, b3 as RPushXCommand, a_ as RandomKeyCommand, a$ as RenameCommand, b0 as RenameNXCommand, c as Requester, b4 as SAddCommand, b7 as SCardCommand, bb as SDiffCommand, bc as SDiffStoreCommand, bj as SInterCommand, bk as SInterStoreCommand, bl as SIsMemberCommand, bn as SMIsMemberCommand, bm as SMembersCommand, bo as SMoveCommand, bp as SPopCommand, bq as SRandMemberCommand, br as SRemCommand, bs as SScanCommand, bu as SUnionCommand, bv as SUnionStoreCommand, b5 as ScanCommand, b6 as ScanCommandOptions, bE as ScoreMember, b8 as ScriptExistsCommand, b9 as ScriptFlushCommand, ba as ScriptLoadCommand, bf as SetBitCommand, bd as SetCommand, be as SetCommandOptions, bg as SetExCommand, bh as SetNxCommand, bi as SetRangeCommand, bt as StrLenCommand, bw as TimeCommand, bx as TouchCommand, by as TtlCommand, bz as Type, bA as TypeCommand, bB as UnlinkCommand, U as UpstashRequest, d as UpstashResponse, bC as XAddCommand, bD as XRangeCommand, bG as ZAddCommand, bF as ZAddCommandOptions, bH as ZCardCommand, bI as ZCountCommand, bJ as ZDiffStoreCommand, bK as ZIncrByCommand, bL as ZInterStoreCommand, bM as ZInterStoreCommandOptions, bN as ZLexCountCommand, bO as ZMScoreCommand, bP as ZPopMaxCommand, bQ as ZPopMinCommand, bR as ZRangeCommand, bS as ZRangeCommandOptions, bT as ZRankCommand, bU as ZRemCommand, bV as ZRemRangeByLexCommand, bW as ZRemRangeByRankCommand, bX as ZRemRangeByScoreCommand, bY as ZRevRankCommand, bZ as ZScanCommand, b_ as ZScoreCommand, b$ as ZUnionCommand, c0 as ZUnionCommandOptions, c1 as ZUnionStoreCommand, c2 as ZUnionStoreCommandOptions, e as errors } from './zmscore-BVyzI3wx.mjs';
3
3
 
4
4
  type Env = {
5
5
  UPSTASH_DISABLE_TELEMETRY?: string;
package/cloudflare.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { H as HttpClientConfig, R as RedisOptions, a as RequesterConfig, b as Redis$1 } from './zmscore-DhpQcqpW.js';
2
- export { A as AppendCommand, B as BitCountCommand, f as BitOpCommand, g as BitPosCommand, C as CopyCommand, D as DBSizeCommand, i as DecrByCommand, h as DecrCommand, j as DelCommand, E as EchoCommand, l as EvalCommand, k as EvalROCommand, n as EvalshaCommand, m as EvalshaROCommand, o as ExistsCommand, r as ExpireAtCommand, p as ExpireCommand, q as ExpireOption, F as FlushAllCommand, s as FlushDBCommand, G as GeoAddCommand, t as GeoAddCommandOptions, v as GeoDistCommand, w as GeoHashCommand, u as GeoMember, x as GeoPosCommand, y as GeoSearchCommand, z as GeoSearchStoreCommand, J as GetBitCommand, I as GetCommand, K as GetDelCommand, L as GetExCommand, M as GetRangeCommand, N as GetSetCommand, O as HDelCommand, Q as HExistsCommand, T as HExpireAtCommand, S as HExpireCommand, V as HExpireTimeCommand, a1 as HGetAllCommand, a0 as HGetCommand, a2 as HIncrByCommand, a3 as HIncrByFloatCommand, a4 as HKeysCommand, a5 as HLenCommand, a6 as HMGetCommand, a7 as HMSetCommand, Y as HPExpireAtCommand, X as HPExpireCommand, Z as HPExpireTimeCommand, _ as HPTtlCommand, $ as HPersistCommand, a8 as HRandFieldCommand, a9 as HScanCommand, aa as HSetCommand, ab as HSetNXCommand, ac as HStrLenCommand, W as HTtlCommand, ad as HValsCommand, af as IncrByCommand, ag as IncrByFloatCommand, ae as IncrCommand, ah as JsonArrAppendCommand, ai as JsonArrIndexCommand, aj as JsonArrInsertCommand, ak as JsonArrLenCommand, al as JsonArrPopCommand, am as JsonArrTrimCommand, an as JsonClearCommand, ao as JsonDelCommand, ap as JsonForgetCommand, aq as JsonGetCommand, as as JsonMGetCommand, ar as JsonMergeCommand, at as JsonNumIncrByCommand, au as JsonNumMultByCommand, av as JsonObjKeysCommand, aw as JsonObjLenCommand, ax as JsonRespCommand, ay as JsonSetCommand, az as JsonStrAppendCommand, aA as JsonStrLenCommand, aB as JsonToggleCommand, aC as JsonTypeCommand, aD as KeysCommand, aE as LIndexCommand, aF as LInsertCommand, aG as LLenCommand, aH as LMoveCommand, aI as LPopCommand, aJ as LPushCommand, aK as LPushXCommand, aL as LRangeCommand, aM as LRemCommand, aN as LSetCommand, aO as LTrimCommand, aP as MGetCommand, aQ as MSetCommand, aR as MSetNXCommand, aU as PExpireAtCommand, aT as PExpireCommand, aW as PSetEXCommand, aX as PTtlCommand, aS as PersistCommand, aV as PingCommand, P as Pipeline, aY as PublishCommand, b0 as RPopCommand, b1 as RPushCommand, b2 as RPushXCommand, aZ as RandomKeyCommand, a_ as RenameCommand, a$ as RenameNXCommand, c as Requester, b3 as SAddCommand, b6 as SCardCommand, ba as SDiffCommand, bb as SDiffStoreCommand, bi as SInterCommand, bj as SInterStoreCommand, bk as SIsMemberCommand, bm as SMIsMemberCommand, bl as SMembersCommand, bn as SMoveCommand, bo as SPopCommand, bp as SRandMemberCommand, bq as SRemCommand, br as SScanCommand, bt as SUnionCommand, bu as SUnionStoreCommand, b4 as ScanCommand, b5 as ScanCommandOptions, bD as ScoreMember, b7 as ScriptExistsCommand, b8 as ScriptFlushCommand, b9 as ScriptLoadCommand, be as SetBitCommand, bc as SetCommand, bd as SetCommandOptions, bf as SetExCommand, bg as SetNxCommand, bh as SetRangeCommand, bs as StrLenCommand, bv as TimeCommand, bw as TouchCommand, bx as TtlCommand, by as Type, bz as TypeCommand, bA as UnlinkCommand, U as UpstashRequest, d as UpstashResponse, bB as XAddCommand, bC as XRangeCommand, bF as ZAddCommand, bE as ZAddCommandOptions, bG as ZCardCommand, bH as ZCountCommand, bI as ZDiffStoreCommand, bJ as ZIncrByCommand, bK as ZInterStoreCommand, bL as ZInterStoreCommandOptions, bM as ZLexCountCommand, bN as ZMScoreCommand, bO as ZPopMaxCommand, bP as ZPopMinCommand, bQ as ZRangeCommand, bR as ZRangeCommandOptions, bS as ZRankCommand, bT as ZRemCommand, bU as ZRemRangeByLexCommand, bV as ZRemRangeByRankCommand, bW as ZRemRangeByScoreCommand, bX as ZRevRankCommand, bY as ZScanCommand, bZ as ZScoreCommand, b_ as ZUnionCommand, b$ as ZUnionCommandOptions, c0 as ZUnionStoreCommand, c1 as ZUnionStoreCommandOptions, e as errors } from './zmscore-DhpQcqpW.js';
1
+ import { H as HttpClientConfig, R as RedisOptions, a as RequesterConfig, b as Redis$1 } from './zmscore-BVyzI3wx.js';
2
+ export { A as AppendCommand, B as BitCountCommand, f as BitOpCommand, g as BitPosCommand, C as CopyCommand, D as DBSizeCommand, i as DecrByCommand, h as DecrCommand, j as DelCommand, E as EchoCommand, l as EvalCommand, k as EvalROCommand, n as EvalshaCommand, m as EvalshaROCommand, o as ExistsCommand, r as ExpireAtCommand, p as ExpireCommand, q as ExpireOption, F as FlushAllCommand, s as FlushDBCommand, G as GeoAddCommand, t as GeoAddCommandOptions, v as GeoDistCommand, w as GeoHashCommand, u as GeoMember, x as GeoPosCommand, y as GeoSearchCommand, z as GeoSearchStoreCommand, J as GetBitCommand, I as GetCommand, K as GetDelCommand, L as GetExCommand, M as GetRangeCommand, O as GetSetCommand, Q as HDelCommand, S as HExistsCommand, V as HExpireAtCommand, T as HExpireCommand, W as HExpireTimeCommand, a2 as HGetAllCommand, a1 as HGetCommand, a3 as HIncrByCommand, a4 as HIncrByFloatCommand, a5 as HKeysCommand, a6 as HLenCommand, a7 as HMGetCommand, a8 as HMSetCommand, Z as HPExpireAtCommand, Y as HPExpireCommand, _ as HPExpireTimeCommand, $ as HPTtlCommand, a0 as HPersistCommand, a9 as HRandFieldCommand, aa as HScanCommand, ab as HSetCommand, ac as HSetNXCommand, ad as HStrLenCommand, X as HTtlCommand, ae as HValsCommand, ag as IncrByCommand, ah as IncrByFloatCommand, af as IncrCommand, ai as JsonArrAppendCommand, aj as JsonArrIndexCommand, ak as JsonArrInsertCommand, al as JsonArrLenCommand, am as JsonArrPopCommand, an as JsonArrTrimCommand, ao as JsonClearCommand, ap as JsonDelCommand, aq as JsonForgetCommand, ar as JsonGetCommand, at as JsonMGetCommand, as as JsonMergeCommand, au as JsonNumIncrByCommand, av as JsonNumMultByCommand, aw as JsonObjKeysCommand, ax as JsonObjLenCommand, ay as JsonRespCommand, az as JsonSetCommand, aA as JsonStrAppendCommand, aB as JsonStrLenCommand, aC as JsonToggleCommand, aD as JsonTypeCommand, aE as KeysCommand, aF as LIndexCommand, aG as LInsertCommand, aH as LLenCommand, aI as LMoveCommand, aJ as LPopCommand, aK as LPushCommand, aL as LPushXCommand, aM as LRangeCommand, aN as LRemCommand, aO as LSetCommand, aP as LTrimCommand, aQ as MGetCommand, aR as MSetCommand, aS as MSetNXCommand, aV as PExpireAtCommand, aU as PExpireCommand, aX as PSetEXCommand, aY as PTtlCommand, aT as PersistCommand, aW as PingCommand, P as Pipeline, aZ as PublishCommand, b1 as RPopCommand, b2 as RPushCommand, b3 as RPushXCommand, a_ as RandomKeyCommand, a$ as RenameCommand, b0 as RenameNXCommand, c as Requester, b4 as SAddCommand, b7 as SCardCommand, bb as SDiffCommand, bc as SDiffStoreCommand, bj as SInterCommand, bk as SInterStoreCommand, bl as SIsMemberCommand, bn as SMIsMemberCommand, bm as SMembersCommand, bo as SMoveCommand, bp as SPopCommand, bq as SRandMemberCommand, br as SRemCommand, bs as SScanCommand, bu as SUnionCommand, bv as SUnionStoreCommand, b5 as ScanCommand, b6 as ScanCommandOptions, bE as ScoreMember, b8 as ScriptExistsCommand, b9 as ScriptFlushCommand, ba as ScriptLoadCommand, bf as SetBitCommand, bd as SetCommand, be as SetCommandOptions, bg as SetExCommand, bh as SetNxCommand, bi as SetRangeCommand, bt as StrLenCommand, bw as TimeCommand, bx as TouchCommand, by as TtlCommand, bz as Type, bA as TypeCommand, bB as UnlinkCommand, U as UpstashRequest, d as UpstashResponse, bC as XAddCommand, bD as XRangeCommand, bG as ZAddCommand, bF as ZAddCommandOptions, bH as ZCardCommand, bI as ZCountCommand, bJ as ZDiffStoreCommand, bK as ZIncrByCommand, bL as ZInterStoreCommand, bM as ZInterStoreCommandOptions, bN as ZLexCountCommand, bO as ZMScoreCommand, bP as ZPopMaxCommand, bQ as ZPopMinCommand, bR as ZRangeCommand, bS as ZRangeCommandOptions, bT as ZRankCommand, bU as ZRemCommand, bV as ZRemRangeByLexCommand, bW as ZRemRangeByRankCommand, bX as ZRemRangeByScoreCommand, bY as ZRevRankCommand, bZ as ZScanCommand, b_ as ZScoreCommand, b$ as ZUnionCommand, c0 as ZUnionCommandOptions, c1 as ZUnionStoreCommand, c2 as ZUnionStoreCommandOptions, e as errors } from './zmscore-BVyzI3wx.js';
3
3
 
4
4
  type Env = {
5
5
  UPSTASH_DISABLE_TELEMETRY?: string;