@upstash/redis 1.36.0-rc.2 → 1.36.0-rc.3

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.
@@ -424,55 +424,119 @@ function flattenSchema(schema, pathPrefix = []) {
424
424
  }
425
425
  return fields;
426
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
- });
427
+ function deserializeQueryResponse(rawResponse, options) {
428
+ const hasEmptySelect = options?.select && Object.keys(options.select).length === 0;
429
+ return rawResponse.map((itemRaw) => {
430
+ const raw = itemRaw;
431
+ const key = raw[0];
432
+ const score = raw[1];
433
+ const rawFields = raw[2];
434
+ if (hasEmptySelect) {
435
+ return { key, score };
436
+ }
437
+ if (!Array.isArray(rawFields) || rawFields.length === 0) {
438
+ return { key, score, data: {} };
439
+ }
440
+ const mergedFields = {};
441
+ for (const fieldRaw of rawFields) {
442
+ const fieldObj = kvArrayToObject(fieldRaw);
443
+ Object.assign(mergedFields, fieldObj);
444
+ }
445
+ if ("$" in mergedFields) {
446
+ const data2 = mergedFields["$"];
447
+ return { key, score, data: data2 };
448
+ }
449
+ const data = dotNotationToNested(mergedFields);
450
+ return { key, score, data };
451
+ });
452
+ }
453
+ function parseFieldInfo(fieldRaw) {
454
+ const fieldType = fieldRaw[1];
455
+ const options = fieldRaw.slice(2);
456
+ const fieldInfo = { type: fieldType };
457
+ for (const option of options) {
458
+ switch (option.toUpperCase()) {
459
+ case "NOTOKENIZE":
460
+ fieldInfo.noTokenize = true;
461
+ break;
462
+ case "NOSTEM":
463
+ fieldInfo.noStem = true;
464
+ break;
465
+ case "FAST":
466
+ fieldInfo.fast = true;
467
+ break;
446
468
  }
447
469
  }
448
- return results;
470
+ return fieldInfo;
449
471
  }
450
- function parseDescribeResponse(rawResponse) {
451
- return rawResponse;
472
+ function deserializeDescribeResponse(rawResponse) {
473
+ const raw = kvArrayToObject(rawResponse);
474
+ const schema = {};
475
+ if (Array.isArray(raw.schema)) {
476
+ for (const fieldRaw of raw.schema) {
477
+ if (Array.isArray(fieldRaw) && fieldRaw.length >= 2) {
478
+ const fieldName = fieldRaw[0];
479
+ schema[fieldName] = parseFieldInfo(fieldRaw);
480
+ }
481
+ }
482
+ }
483
+ return {
484
+ name: raw.name,
485
+ dataType: raw.type.toLowerCase(),
486
+ prefixes: raw.prefixes,
487
+ ...raw.language && { language: raw.language },
488
+ schema
489
+ };
452
490
  }
453
491
  function parseCountResponse(rawResponse) {
454
492
  return typeof rawResponse === "number" ? rawResponse : parseInt(rawResponse, 10);
455
493
  }
494
+ function kvArrayToObject(v) {
495
+ if (typeof v === "object" && v !== null && !Array.isArray(v)) return v;
496
+ if (!Array.isArray(v)) return {};
497
+ const obj = {};
498
+ for (let i = 0; i < v.length; i += 2) {
499
+ if (typeof v[i] === "string") obj[v[i]] = v[i + 1];
500
+ }
501
+ return obj;
502
+ }
503
+ function dotNotationToNested(obj) {
504
+ const result = {};
505
+ for (const [key, value] of Object.entries(obj)) {
506
+ const parts = key.split(".");
507
+ let current = result;
508
+ for (let i = 0; i < parts.length - 1; i++) {
509
+ const part = parts[i];
510
+ if (!(part in current)) {
511
+ current[part] = {};
512
+ }
513
+ current = current[part];
514
+ }
515
+ current[parts[parts.length - 1]] = value;
516
+ }
517
+ return result;
518
+ }
456
519
 
457
520
  // pkg/commands/search/command-builder.ts
458
- function buildQueryCommand(redisCommand, indexName, query, options) {
459
- const command = [redisCommand, indexName, query];
521
+ function buildQueryCommand(redisCommand, name, options) {
522
+ const query = JSON.stringify(options?.filter);
523
+ const command = [redisCommand, name, query];
460
524
  if (options?.limit !== void 0) {
461
525
  command.push("LIMIT", options.limit.toString());
462
526
  }
463
527
  if (options?.offset !== void 0) {
464
528
  command.push("OFFSET", options.offset.toString());
465
529
  }
466
- if (options?.noContent) {
530
+ if (options?.select && Object.keys(options.select).length === 0) {
467
531
  command.push("NOCONTENT");
468
532
  }
469
- if (options?.sortBy) {
470
- command.push("SORTBY", options.sortBy.field);
471
- if (options.sortBy.direction) {
472
- command.push(options.sortBy.direction);
473
- }
533
+ if (options?.orderBy) {
534
+ command.push("SORTBY");
535
+ Object.entries(options.orderBy).forEach(([field, direction]) => {
536
+ command.push(field, direction);
537
+ });
474
538
  }
475
- if (options && "highlight" in options && options.highlight) {
539
+ if (options?.highlight) {
476
540
  command.push(
477
541
  "HIGHLIGHT",
478
542
  "FIELDS",
@@ -483,16 +547,20 @@ function buildQueryCommand(redisCommand, indexName, query, options) {
483
547
  command.push("TAGS", options.highlight.preTag, options.highlight.postTag);
484
548
  }
485
549
  }
486
- if (options && "returnFields" in options && options.returnFields && options.returnFields.length > 0) {
487
- command.push("RETURN", options.returnFields.length.toString(), ...options.returnFields);
550
+ if (options?.select && Object.keys(options.select).length > 0) {
551
+ command.push(
552
+ "RETURN",
553
+ Object.keys(options.select).length.toString(),
554
+ ...Object.keys(options.select)
555
+ );
488
556
  }
489
557
  return command;
490
558
  }
491
559
  function buildCreateIndexCommand(props) {
492
- const { indexName, schema, dataType, prefix, language } = props;
560
+ const { name, schema, dataType, prefix, language } = props;
493
561
  const prefixArray = Array.isArray(prefix) ? prefix : [prefix];
494
562
  const payload = [
495
- indexName,
563
+ name,
496
564
  "ON",
497
565
  dataType.toUpperCase(),
498
566
  "PREFIX",
@@ -519,65 +587,58 @@ function buildCreateIndexCommand(props) {
519
587
 
520
588
  // pkg/commands/search/search.ts
521
589
  var SearchIndex = class {
522
- indexName;
590
+ name;
523
591
  schema;
524
592
  client;
525
- constructor({ indexName, schema, client }) {
526
- this.indexName = indexName;
593
+ constructor({ name, schema, client }) {
594
+ this.name = name;
527
595
  this.schema = schema;
528
596
  this.client = client;
529
597
  }
530
598
  async waitIndexing() {
531
- const command = ["SEARCH.COMMIT", this.indexName];
599
+ const command = ["SEARCH.COMMIT", this.name];
532
600
  const result = await new ExecCommand(command).exec(
533
601
  this.client
534
602
  );
535
603
  return result;
536
604
  }
537
605
  async describe() {
538
- const command = ["SEARCH.DESCRIBE", this.indexName];
606
+ const command = ["SEARCH.DESCRIBE", this.name];
539
607
  const rawResult = await new ExecCommand(command).exec(
540
608
  this.client
541
609
  );
542
- return parseDescribeResponse(rawResult);
610
+ return deserializeDescribeResponse(rawResult);
543
611
  }
544
612
  async query(options) {
545
- const queryString = JSON.stringify(options.filter);
546
- const command = buildQueryCommand(
547
- "SEARCH.QUERY",
548
- this.indexName,
549
- queryString,
550
- options
551
- );
613
+ const command = buildQueryCommand("SEARCH.QUERY", this.name, options);
552
614
  const rawResult = await new ExecCommand(command).exec(
553
615
  this.client
554
616
  );
555
- return parseQueryResponse(rawResult, options);
617
+ return deserializeQueryResponse(rawResult, options);
556
618
  }
557
- async count(filter) {
558
- const queryString = JSON.stringify(filter);
559
- const command = buildQueryCommand("SEARCH.COUNT", this.indexName, queryString);
619
+ async count({ filter }) {
620
+ const command = buildQueryCommand("SEARCH.COUNT", this.name, { filter });
560
621
  const rawResult = await new ExecCommand(command).exec(
561
622
  this.client
562
623
  );
563
- return parseCountResponse(rawResult);
624
+ return { count: parseCountResponse(rawResult) };
564
625
  }
565
626
  async drop() {
566
- const command = ["SEARCH.DROP", this.indexName];
627
+ const command = ["SEARCH.DROP", this.name];
567
628
  const result = await new ExecCommand(command).exec(
568
629
  this.client
569
630
  );
570
631
  return result;
571
632
  }
572
633
  };
573
- async function createSearchIndex(props) {
574
- const { indexName, schema, client } = props;
634
+ async function createIndex(props) {
635
+ const { name, schema, client } = props;
575
636
  const createIndexCommand = buildCreateIndexCommand(props);
576
637
  await new ExecCommand(createIndexCommand).exec(client);
577
- return getSearchIndex({ indexName, schema, client });
638
+ return index(client, name, schema);
578
639
  }
579
- function getSearchIndex(props) {
580
- return new SearchIndex(props);
640
+ function index(client, name, schema) {
641
+ return new SearchIndex({ name, schema, client });
581
642
  }
582
643
 
583
644
  // pkg/commands/search/schema-builder.ts
@@ -603,21 +664,16 @@ var TextFieldBuilder = class _TextFieldBuilder {
603
664
  } : "TEXT";
604
665
  }
605
666
  };
606
- var NumericFieldBuilder = class _NumericFieldBuilder {
607
- _fast;
667
+ var NumericFieldBuilder = class {
608
668
  type;
609
- constructor(type, fast = { fast: false }) {
669
+ constructor(type) {
610
670
  this.type = type;
611
- this._fast = fast;
612
- }
613
- fast() {
614
- return new _NumericFieldBuilder(this.type, { fast: true });
615
671
  }
616
672
  [BUILD]() {
617
- return this._fast.fast ? {
673
+ return {
618
674
  type: this.type,
619
675
  fast: true
620
- } : this.type;
676
+ };
621
677
  }
622
678
  };
623
679
  var BoolFieldBuilder = class _BoolFieldBuilder {
@@ -651,74 +707,18 @@ var DateFieldBuilder = class _DateFieldBuilder {
651
707
  }
652
708
  };
653
709
  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() {
710
+ string() {
662
711
  return new TextFieldBuilder();
663
712
  },
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");
713
+ number(type = "F64") {
714
+ return new NumericFieldBuilder(type);
692
715
  },
693
- /**
694
- * Boolean field (BOOL)
695
- * @example
696
- * s.bool() // Simple boolean field
697
- * s.bool().fast() // Enable efficient filtering
698
- */
699
- bool() {
716
+ boolean() {
700
717
  return new BoolFieldBuilder();
701
718
  },
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
719
  date() {
709
720
  return new DateFieldBuilder();
710
721
  },
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
722
  object(fields) {
723
723
  const result = {};
724
724
  for (const [key, value] of Object.entries(fields)) {
@@ -3102,7 +3102,7 @@ var Pipeline = class {
3102
3102
  /**
3103
3103
  * @see https://redis.io/commands/lset
3104
3104
  */
3105
- lset = (key, index, value) => this.chain(new LSetCommand([key, index, value], this.commandOptions));
3105
+ lset = (key, index2, value) => this.chain(new LSetCommand([key, index2, value], this.commandOptions));
3106
3106
  /**
3107
3107
  * @see https://redis.io/commands/ltrim
3108
3108
  */
@@ -3630,7 +3630,7 @@ var AutoPipelineExecutor = class {
3630
3630
  this.activePipeline = pipeline;
3631
3631
  this.indexInCurrentPipeline = 0;
3632
3632
  }
3633
- const index = this.indexInCurrentPipeline++;
3633
+ const index2 = this.indexInCurrentPipeline++;
3634
3634
  executeWithPipeline(pipeline);
3635
3635
  const pipelineDone = this.deferExecution().then(() => {
3636
3636
  if (!this.pipelinePromises.has(pipeline)) {
@@ -3642,7 +3642,7 @@ var AutoPipelineExecutor = class {
3642
3642
  return this.pipelinePromises.get(pipeline);
3643
3643
  });
3644
3644
  const results = await pipelineDone;
3645
- const commandResult = results[index];
3645
+ const commandResult = results[index2];
3646
3646
  if (commandResult.error) {
3647
3647
  throw new UpstashError(`Command failed: ${commandResult.error}`);
3648
3648
  }
@@ -4149,18 +4149,19 @@ var Redis = class {
4149
4149
  createScript(script, opts) {
4150
4150
  return opts?.readonly ? new ScriptRO(this, script) : new Script(this, script);
4151
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
- };
4152
+ get search() {
4153
+ return {
4154
+ createIndex: (props) => {
4155
+ return createIndex({
4156
+ ...props,
4157
+ client: this.client
4158
+ });
4159
+ },
4160
+ index: (name, schema) => {
4161
+ return index(this.client, name, schema);
4162
+ }
4163
+ };
4164
+ }
4164
4165
  /**
4165
4166
  * Create a new pipeline that allows you to send requests in bulk.
4166
4167
  *
@@ -4497,7 +4498,7 @@ var Redis = class {
4497
4498
  /**
4498
4499
  * @see https://redis.io/commands/lset
4499
4500
  */
4500
- lset = (key, index, value) => new LSetCommand([key, index, value], this.opts).exec(this.client);
4501
+ lset = (key, index2, value) => new LSetCommand([key, index2, value], this.opts).exec(this.client);
4501
4502
  /**
4502
4503
  * @see https://redis.io/commands/ltrim
4503
4504
  */
@@ -4868,13 +4869,13 @@ var Redis = class {
4868
4869
  };
4869
4870
 
4870
4871
  // version.ts
4871
- var VERSION = "v1.36.0-rc.2";
4872
+ var VERSION = "v1.36.0-rc.3";
4872
4873
 
4873
4874
  export {
4874
4875
  error_exports,
4875
4876
  HttpClient,
4876
- createSearchIndex,
4877
- getSearchIndex,
4877
+ createIndex,
4878
+ index,
4878
4879
  s,
4879
4880
  Redis,
4880
4881
  VERSION
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-DPwiA5Z8.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-DPwiA5Z8.mjs';
1
+ import { H as HttpClientConfig, R as RedisOptions, b as RequesterConfig, c as Redis$1 } from './zmscore-DQw_6S0p.mjs';
2
+ export { A as AppendCommand, B as BitCountCommand, g as BitOpCommand, h as BitPosCommand, C as CopyCommand, D as DBSizeCommand, j as DecrByCommand, i as DecrCommand, k as DelCommand, E as EchoCommand, m as EvalCommand, l as EvalROCommand, o as EvalshaCommand, n as EvalshaROCommand, p as ExistsCommand, s as ExpireAtCommand, q as ExpireCommand, r as ExpireOption, F as FlushAllCommand, t as FlushDBCommand, G as GeoAddCommand, u as GeoAddCommandOptions, w as GeoDistCommand, x as GeoHashCommand, v as GeoMember, y as GeoPosCommand, z as GeoSearchCommand, I as GeoSearchStoreCommand, K as GetBitCommand, J as GetCommand, L as GetDelCommand, M as GetExCommand, O as GetRangeCommand, Q as GetSetCommand, S as HDelCommand, T as HExistsCommand, W as HExpireAtCommand, V as HExpireCommand, X as HExpireTimeCommand, a3 as HGetAllCommand, a2 as HGetCommand, a4 as HIncrByCommand, a5 as HIncrByFloatCommand, a6 as HKeysCommand, a7 as HLenCommand, a8 as HMGetCommand, a9 as HMSetCommand, _ as HPExpireAtCommand, Z as HPExpireCommand, $ as HPExpireTimeCommand, a0 as HPTtlCommand, a1 as HPersistCommand, aa as HRandFieldCommand, ab as HScanCommand, ac as HSetCommand, ad as HSetNXCommand, ae as HStrLenCommand, Y as HTtlCommand, af as HValsCommand, ah as IncrByCommand, ai as IncrByFloatCommand, ag as IncrCommand, aj as JsonArrAppendCommand, ak as JsonArrIndexCommand, al as JsonArrInsertCommand, am as JsonArrLenCommand, an as JsonArrPopCommand, ao as JsonArrTrimCommand, ap as JsonClearCommand, aq as JsonDelCommand, ar as JsonForgetCommand, as as JsonGetCommand, au as JsonMGetCommand, at as JsonMergeCommand, av as JsonNumIncrByCommand, aw as JsonNumMultByCommand, ax as JsonObjKeysCommand, ay as JsonObjLenCommand, az as JsonRespCommand, aA as JsonSetCommand, aB as JsonStrAppendCommand, aC as JsonStrLenCommand, aD as JsonToggleCommand, aE as JsonTypeCommand, aF as KeysCommand, aG as LIndexCommand, aH as LInsertCommand, aI as LLenCommand, aJ as LMoveCommand, aK as LPopCommand, aL as LPushCommand, aM as LPushXCommand, aN as LRangeCommand, aO as LRemCommand, aP as LSetCommand, aQ as LTrimCommand, aR as MGetCommand, aS as MSetCommand, aT as MSetNXCommand, aW as PExpireAtCommand, aV as PExpireCommand, aY as PSetEXCommand, aZ as PTtlCommand, aU as PersistCommand, aX as PingCommand, P as Pipeline, a_ as PublishCommand, b2 as RPopCommand, b3 as RPushCommand, b4 as RPushXCommand, a$ as RandomKeyCommand, b0 as RenameCommand, b1 as RenameNXCommand, d as Requester, b5 as SAddCommand, b8 as SCardCommand, bc as SDiffCommand, bd as SDiffStoreCommand, bk as SInterCommand, bl as SInterStoreCommand, bm as SIsMemberCommand, bo as SMIsMemberCommand, bn as SMembersCommand, bp as SMoveCommand, bq as SPopCommand, br as SRandMemberCommand, bs as SRemCommand, bt as SScanCommand, bv as SUnionCommand, bw as SUnionStoreCommand, b6 as ScanCommand, b7 as ScanCommandOptions, bF as ScoreMember, b9 as ScriptExistsCommand, ba as ScriptFlushCommand, bb as ScriptLoadCommand, bg as SetBitCommand, be as SetCommand, bf as SetCommandOptions, bh as SetExCommand, bi as SetNxCommand, bj as SetRangeCommand, bu as StrLenCommand, bx as TimeCommand, by as TouchCommand, bz as TtlCommand, bA as Type, bB as TypeCommand, bC as UnlinkCommand, U as UpstashRequest, f as UpstashResponse, bD as XAddCommand, bE as XRangeCommand, bH as ZAddCommand, bG as ZAddCommandOptions, bI as ZCardCommand, bJ as ZCountCommand, bK as ZDiffStoreCommand, bL as ZIncrByCommand, bM as ZInterStoreCommand, bN as ZInterStoreCommandOptions, bO as ZLexCountCommand, bP as ZMScoreCommand, bQ as ZPopMaxCommand, bR as ZPopMinCommand, bS as ZRangeCommand, bT as ZRangeCommandOptions, bU as ZRankCommand, bV as ZRemCommand, bW as ZRemRangeByLexCommand, bX as ZRemRangeByRankCommand, bY as ZRemRangeByScoreCommand, bZ as ZRevRankCommand, b_ as ZScanCommand, b$ as ZScoreCommand, c0 as ZUnionCommand, c1 as ZUnionCommandOptions, c2 as ZUnionStoreCommand, c3 as ZUnionStoreCommandOptions, e as errors } from './zmscore-DQw_6S0p.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-DPwiA5Z8.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-DPwiA5Z8.js';
1
+ import { H as HttpClientConfig, R as RedisOptions, b as RequesterConfig, c as Redis$1 } from './zmscore-DQw_6S0p.js';
2
+ export { A as AppendCommand, B as BitCountCommand, g as BitOpCommand, h as BitPosCommand, C as CopyCommand, D as DBSizeCommand, j as DecrByCommand, i as DecrCommand, k as DelCommand, E as EchoCommand, m as EvalCommand, l as EvalROCommand, o as EvalshaCommand, n as EvalshaROCommand, p as ExistsCommand, s as ExpireAtCommand, q as ExpireCommand, r as ExpireOption, F as FlushAllCommand, t as FlushDBCommand, G as GeoAddCommand, u as GeoAddCommandOptions, w as GeoDistCommand, x as GeoHashCommand, v as GeoMember, y as GeoPosCommand, z as GeoSearchCommand, I as GeoSearchStoreCommand, K as GetBitCommand, J as GetCommand, L as GetDelCommand, M as GetExCommand, O as GetRangeCommand, Q as GetSetCommand, S as HDelCommand, T as HExistsCommand, W as HExpireAtCommand, V as HExpireCommand, X as HExpireTimeCommand, a3 as HGetAllCommand, a2 as HGetCommand, a4 as HIncrByCommand, a5 as HIncrByFloatCommand, a6 as HKeysCommand, a7 as HLenCommand, a8 as HMGetCommand, a9 as HMSetCommand, _ as HPExpireAtCommand, Z as HPExpireCommand, $ as HPExpireTimeCommand, a0 as HPTtlCommand, a1 as HPersistCommand, aa as HRandFieldCommand, ab as HScanCommand, ac as HSetCommand, ad as HSetNXCommand, ae as HStrLenCommand, Y as HTtlCommand, af as HValsCommand, ah as IncrByCommand, ai as IncrByFloatCommand, ag as IncrCommand, aj as JsonArrAppendCommand, ak as JsonArrIndexCommand, al as JsonArrInsertCommand, am as JsonArrLenCommand, an as JsonArrPopCommand, ao as JsonArrTrimCommand, ap as JsonClearCommand, aq as JsonDelCommand, ar as JsonForgetCommand, as as JsonGetCommand, au as JsonMGetCommand, at as JsonMergeCommand, av as JsonNumIncrByCommand, aw as JsonNumMultByCommand, ax as JsonObjKeysCommand, ay as JsonObjLenCommand, az as JsonRespCommand, aA as JsonSetCommand, aB as JsonStrAppendCommand, aC as JsonStrLenCommand, aD as JsonToggleCommand, aE as JsonTypeCommand, aF as KeysCommand, aG as LIndexCommand, aH as LInsertCommand, aI as LLenCommand, aJ as LMoveCommand, aK as LPopCommand, aL as LPushCommand, aM as LPushXCommand, aN as LRangeCommand, aO as LRemCommand, aP as LSetCommand, aQ as LTrimCommand, aR as MGetCommand, aS as MSetCommand, aT as MSetNXCommand, aW as PExpireAtCommand, aV as PExpireCommand, aY as PSetEXCommand, aZ as PTtlCommand, aU as PersistCommand, aX as PingCommand, P as Pipeline, a_ as PublishCommand, b2 as RPopCommand, b3 as RPushCommand, b4 as RPushXCommand, a$ as RandomKeyCommand, b0 as RenameCommand, b1 as RenameNXCommand, d as Requester, b5 as SAddCommand, b8 as SCardCommand, bc as SDiffCommand, bd as SDiffStoreCommand, bk as SInterCommand, bl as SInterStoreCommand, bm as SIsMemberCommand, bo as SMIsMemberCommand, bn as SMembersCommand, bp as SMoveCommand, bq as SPopCommand, br as SRandMemberCommand, bs as SRemCommand, bt as SScanCommand, bv as SUnionCommand, bw as SUnionStoreCommand, b6 as ScanCommand, b7 as ScanCommandOptions, bF as ScoreMember, b9 as ScriptExistsCommand, ba as ScriptFlushCommand, bb as ScriptLoadCommand, bg as SetBitCommand, be as SetCommand, bf as SetCommandOptions, bh as SetExCommand, bi as SetNxCommand, bj as SetRangeCommand, bu as StrLenCommand, bx as TimeCommand, by as TouchCommand, bz as TtlCommand, bA as Type, bB as TypeCommand, bC as UnlinkCommand, U as UpstashRequest, f as UpstashResponse, bD as XAddCommand, bE as XRangeCommand, bH as ZAddCommand, bG as ZAddCommandOptions, bI as ZCardCommand, bJ as ZCountCommand, bK as ZDiffStoreCommand, bL as ZIncrByCommand, bM as ZInterStoreCommand, bN as ZInterStoreCommandOptions, bO as ZLexCountCommand, bP as ZMScoreCommand, bQ as ZPopMaxCommand, bR as ZPopMinCommand, bS as ZRangeCommand, bT as ZRangeCommandOptions, bU as ZRankCommand, bV as ZRemCommand, bW as ZRemRangeByLexCommand, bX as ZRemRangeByRankCommand, bY as ZRemRangeByScoreCommand, bZ as ZRevRankCommand, b_ as ZScanCommand, b$ as ZScoreCommand, c0 as ZUnionCommand, c1 as ZUnionCommandOptions, c2 as ZUnionStoreCommand, c3 as ZUnionStoreCommandOptions, e as errors } from './zmscore-DQw_6S0p.js';
3
3
 
4
4
  type Env = {
5
5
  UPSTASH_DISABLE_TELEMETRY?: string;