@valkey/valkey-glide 1.3.4 → 1.3.5-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.
Files changed (29) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +36 -14
  3. package/build-ts/{src/BaseClient.d.ts → BaseClient.d.ts} +62 -118
  4. package/build-ts/BaseClient.js +6049 -0
  5. package/build-ts/{src/Transaction.d.ts → Batch.d.ts} +124 -67
  6. package/build-ts/Batch.js +3457 -0
  7. package/build-ts/{src/Commands.d.ts → Commands.d.ts} +171 -791
  8. package/build-ts/Commands.js +2708 -0
  9. package/build-ts/Errors.js +42 -0
  10. package/build-ts/{src/GlideClient.d.ts → GlideClient.d.ts} +55 -19
  11. package/build-ts/GlideClient.js +899 -0
  12. package/build-ts/{src/GlideClusterClient.d.ts → GlideClusterClient.d.ts} +78 -42
  13. package/build-ts/GlideClusterClient.js +1251 -0
  14. package/build-ts/Logger.js +67 -0
  15. package/build-ts/{src/ProtobufMessage.d.ts → ProtobufMessage.d.ts} +171 -634
  16. package/build-ts/ProtobufMessage.js +5265 -0
  17. package/build-ts/index.d.ts +16 -11
  18. package/build-ts/index.js +53 -216
  19. package/build-ts/native.d.ts +14 -0
  20. package/build-ts/native.js +342 -0
  21. package/build-ts/server-modules/GlideFt.js +628 -0
  22. package/build-ts/{src/server-modules → server-modules}/GlideFtOptions.d.ts +1 -1
  23. package/build-ts/server-modules/GlideFtOptions.js +5 -0
  24. package/build-ts/{src/server-modules → server-modules}/GlideJson.d.ts +65 -65
  25. package/build-ts/server-modules/GlideJson.js +1572 -0
  26. package/package.json +141 -64
  27. /package/build-ts/{src/Errors.d.ts → Errors.d.ts} +0 -0
  28. /package/build-ts/{src/Logger.d.ts → Logger.d.ts} +0 -0
  29. /package/build-ts/{src/server-modules → server-modules}/GlideFt.d.ts +0 -0
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
3
3
  */
4
- import { // eslint-disable-line @typescript-eslint/no-unused-vars
5
- GlideRecord, GlideString, HashDataType, Score, ElementAndScore } from "./BaseClient";
4
+ import { ElementAndScore, GlideRecord, GlideString, HashDataType, // eslint-disable-line @typescript-eslint/no-unused-vars
5
+ Score } from "./BaseClient";
6
6
  import { AggregationType, BaseScanOptions, BitFieldGet, // eslint-disable-line @typescript-eslint/no-unused-vars
7
7
  BitFieldSubCommands, // eslint-disable-line @typescript-eslint/no-unused-vars
8
8
  BitOffsetOptions, BitwiseOperation, Boundary, // eslint-disable-line @typescript-eslint/no-unused-vars
@@ -11,49 +11,41 @@ FunctionRestorePolicy, // eslint-disable-line @typescript-eslint/no-unused-vars
11
11
  GeoAddOptions, // eslint-disable-line @typescript-eslint/no-unused-vars
12
12
  GeoSearchResultOptions, GeoSearchShape, GeoSearchStoreResultOptions, GeoUnit, GeospatialData, HScanOptions, InfoOptions, InsertPosition, KeyWeight, LPosOptions, ListDirection, LolwutOptions, // eslint-disable-line @typescript-eslint/no-unused-vars
13
13
  RangeByIndex, RangeByLex, RangeByScore, RestoreOptions, ScoreFilter, SearchOrigin, SetOptions, SortOptions, StreamAddOptions, StreamClaimOptions, StreamGroupOptions, StreamPendingOptions, StreamReadGroupOptions, StreamReadOptions, StreamTrimOptions, TimeUnit, ZAddOptions, ZScanOptions } from "./Commands";
14
- import { command_request } from "./ProtobufMessage";
14
+ import { command_request } from "../build-ts/ProtobufMessage";
15
15
  /**
16
- * Base class encompassing shared commands for both standalone and cluster mode implementations in a transaction.
17
- * Transactions allow the execution of a group of commands in a single step.
16
+ * Base class encompassing shared commands for both standalone and cluster mode implementations in a Batch.
17
+ * Batches allow the execution of a group of commands in a single step.
18
18
  *
19
- * Command Response:
19
+ * ### Batch Response:
20
20
  * An array of command responses is returned by the client exec command, in the order they were given.
21
- * Each element in the array represents a command given to the transaction.
21
+ * Each element in the array represents a command given to the batch.
22
22
  * The response for each command depends on the executed Valkey command.
23
23
  * Specific response types are documented alongside each method.
24
24
  *
25
- * @example
26
- * ```typescript
27
- * const transaction = new BaseTransaction()
28
- * .set("key", "value")
29
- * .get("key");
30
- * const result = await client.exec(transaction);
31
- * console.log(result); // Output: ['OK', 'value']
32
- * ```
25
+ * @param isAtomic - Indicates whether the batch is atomic or non-atomic. If `true`, the batch will be executed as an atomic transaction.
26
+ * If `false`, the batch will be executed as a non-atomic pipeline.
33
27
  */
34
- export declare class BaseTransaction<T extends BaseTransaction<T>> {
35
- /**
36
- * @internal
37
- */
38
- readonly commands: command_request.Command[];
28
+ export declare class BaseBatch<T extends BaseBatch<T>> {
29
+ readonly isAtomic: boolean;
39
30
  /**
40
- * Array of command indexes indicating commands that need to be converted into a `Set` within the transaction.
41
- * @internal
31
+ * @param isAtomic - Determines whether the batch is atomic or non-atomic. If `true`, the
32
+ * batch will be executed as an atomic `transaction`. If `false`, the batch will be
33
+ * executed as a non-atomic `pipeline`.
42
34
  */
43
- readonly setCommandsIndexes: number[];
35
+ constructor(isAtomic: boolean);
44
36
  /**
45
- * Adds a command to the transaction and returns the transaction instance.
37
+ * Adds a command to the batch and returns the batch instance.
46
38
  * @param command - The command to add.
47
39
  * @param shouldConvertToSet - Indicates if the command should be converted to a `Set`.
48
- * @returns The updated transaction instance.
40
+ * @returns The updated batch instance.
49
41
  */
50
42
  protected addAndReturn(command: command_request.Command, shouldConvertToSet?: boolean): T;
51
- /** Get the value associated with the given key, or null if no such value exists.
43
+ /** Get the value associated with the given `key`, or `null` if no such `key` exists.
52
44
  * @see {@link https://valkey.io/commands/get/|valkey.io} for details.
53
45
  *
54
- * @param key - The key to retrieve from the database.
46
+ * @param key - The `key` to retrieve from the database.
55
47
  *
56
- * Command Response - If `key` exists, returns the value of `key`. Otherwise, return null.
48
+ * Command Response - If `key` exists, returns the value of `key`. Otherwise, return `null`.
57
49
  */
58
50
  get(key: GlideString): T;
59
51
  /**
@@ -126,6 +118,8 @@ export declare class BaseTransaction<T extends BaseTransaction<T>> {
126
118
  /**
127
119
  * Gets information and statistics about the server.
128
120
  *
121
+ * Starting from server version 7, command supports multiple section arguments.
122
+ *
129
123
  * @see {@link https://valkey.io/commands/info/|valkey.io} for details.
130
124
  *
131
125
  * @param sections - (Optional) A list of {@link InfoOptions} values specifying which sections of information to retrieve.
@@ -148,7 +142,7 @@ export declare class BaseTransaction<T extends BaseTransaction<T>> {
148
142
  * Serialize the value stored at `key` in a Valkey-specific format and return it to the user.
149
143
  *
150
144
  * @see {@link https://valkey.io/commands/dump/|valkey.io} for details.
151
- * @remarks To execute a transaction with a `dump` command, the `exec` command requires `Decoder.Bytes` to handle the response.
145
+ * @remarks To execute a batch with a `dump` command, the `exec` command requires `Decoder.Bytes` to handle the response.
152
146
  *
153
147
  * @param key - The `key` to serialize.
154
148
  *
@@ -171,7 +165,7 @@ export declare class BaseTransaction<T extends BaseTransaction<T>> {
171
165
  */
172
166
  restore(key: GlideString, ttl: number, value: Buffer, options?: RestoreOptions): T;
173
167
  /**
174
- * Gets the name of the connection on which the transaction is being executed.
168
+ * Gets the name of the connection on which the batch is being executed.
175
169
  *
176
170
  * @see {@link https://valkey.io/commands/client-getname/|valkey.io} for details.
177
171
  *
@@ -183,7 +177,7 @@ export declare class BaseTransaction<T extends BaseTransaction<T>> {
183
177
  *
184
178
  * @see {@link https://valkey.io/commands/select/|valkey.io} for details.
185
179
  *
186
- * Command Response - "OK" when the configuration was rewritten properly. Otherwise, the transaction fails with an error.
180
+ * Command Response - "OK" when the configuration was rewritten properly. Otherwise, the command fails with an error.
187
181
  */
188
182
  configRewrite(): T;
189
183
  /**
@@ -390,7 +384,7 @@ export declare class BaseTransaction<T extends BaseTransaction<T>> {
390
384
  *
391
385
  * @param parameters - A map consisting of configuration parameters and their respective values to set.
392
386
  *
393
- * Command Response - "OK" when the configuration was set properly. Otherwise, the transaction fails with an error.
387
+ * Command Response - "OK" when the configuration was set properly. Otherwise, the command fails with an error.
394
388
  */
395
389
  configSet(parameters: Record<string, GlideString>): T;
396
390
  /** Retrieve the value associated with `field` in the hash stored at `key`.
@@ -565,8 +559,8 @@ export declare class BaseTransaction<T extends BaseTransaction<T>> {
565
559
  *
566
560
  * @param key - The key of the hash.
567
561
  * @param count - The number of field names to return.
568
- *
569
- * If `count` is positive, returns unique elements. If negative, allows for duplicates.
562
+ * If `count` is positive, returns unique elements.
563
+ * If negative, allows for duplicates.
570
564
  *
571
565
  * Command Response - An `array` of random field names from the hash stored at `key`,
572
566
  * or an `empty array` when the key does not exist.
@@ -581,8 +575,8 @@ export declare class BaseTransaction<T extends BaseTransaction<T>> {
581
575
  *
582
576
  * @param key - The key of the hash.
583
577
  * @param count - The number of field names to return.
584
- *
585
- * If `count` is positive, returns unique elements. If negative, allows for duplicates.
578
+ * If `count` is positive, returns unique elements.
579
+ * If negative, allows for duplicates.
586
580
  *
587
581
  * Command Response - A 2D `array` of `[fieldName, value]` `arrays`, where `fieldName` is a random
588
582
  * field name from the hash and `value` is the associated value of the field name.
@@ -1740,6 +1734,7 @@ export declare class BaseTransaction<T extends BaseTransaction<T>> {
1740
1734
  linsert(key: GlideString, position: InsertPosition, pivot: GlideString, element: GlideString): T;
1741
1735
  /**
1742
1736
  * Adds an entry to the specified stream stored at `key`. If the `key` doesn't exist, the stream is created.
1737
+ *
1743
1738
  * @see {@link https://valkey.io/commands/xadd/|valkey.io} for details.
1744
1739
  *
1745
1740
  * @param key - The key of the stream.
@@ -1968,7 +1963,7 @@ export declare class BaseTransaction<T extends BaseTransaction<T>> {
1968
1963
  * @param start - Filters the claimed entries to those that have an ID equal or greater than the
1969
1964
  * specified value.
1970
1965
  * @param options - (Optional) Additional parameters:
1971
- * - (Optional) `count`: the number of claimed entries.
1966
+ * - (Optional) `count`: the number of claimed entries. Default value is 100.
1972
1967
  *
1973
1968
  * Command Response - An `array` containing the following elements:
1974
1969
  * - A stream ID to be used as the start argument for the next call to `XAUTOCLAIM`. This ID is
@@ -1997,7 +1992,7 @@ export declare class BaseTransaction<T extends BaseTransaction<T>> {
1997
1992
  * @param start - Filters the claimed entries to those that have an ID equal or greater than the
1998
1993
  * specified value.
1999
1994
  * @param options - (Optional) Additional parameters:
2000
- * - (Optional) `count`: limits the number of claimed entries to the specified value.
1995
+ * - (Optional) `count`: limits the number of claimed entries to the specified value. Default value is 100.
2001
1996
  *
2002
1997
  * Command Response - An `array` containing the following elements:
2003
1998
  * - A stream ID to be used as the start argument for the next call to `XAUTOCLAIM`. This ID is
@@ -2020,7 +2015,8 @@ export declare class BaseTransaction<T extends BaseTransaction<T>> {
2020
2015
  * @param key - The key of the stream.
2021
2016
  * @param groupName - The newly created consumer group name.
2022
2017
  * @param id - Stream entry ID that specifies the last delivered entry in the stream from the new
2023
- * groups perspective. The special ID `"$"` can be used to specify the last entry in the stream.
2018
+ * group's perspective. The special ID `"$"` can be used to specify the last entry in the stream.
2019
+ * @param options - The group options {@link StreamGroupOptions}
2024
2020
  *
2025
2021
  * Command Response - `"OK"`.
2026
2022
  */
@@ -2031,7 +2027,7 @@ export declare class BaseTransaction<T extends BaseTransaction<T>> {
2031
2027
  * @see {@link https://valkey.io/commands/xgroup-destroy/|valkey.io} for details.
2032
2028
  *
2033
2029
  * @param key - The key of the stream.
2034
- * @param groupname - The newly created consumer group name.
2030
+ * @param groupname - The consumer group name to delete.
2035
2031
  *
2036
2032
  * Command Response - `true` if the consumer group is destroyed. Otherwise, `false`.
2037
2033
  */
@@ -2335,7 +2331,7 @@ export declare class BaseTransaction<T extends BaseTransaction<T>> {
2335
2331
  *
2336
2332
  * @see {@link https://valkey.io/commands/function-dump/|valkey.io} for details.
2337
2333
  * @remarks Since Valkey version 7.0.0.
2338
- * @remarks To execute a transaction with a `functionDump` command, the `exec` command requires `Decoder.Bytes` to handle the response.
2334
+ * @remarks To execute a batch with a `functionDump` command, the `exec` command requires `Decoder.Bytes` to handle the response.
2339
2335
  *
2340
2336
  * Command Response - The serialized payload of all loaded libraries.
2341
2337
  */
@@ -2712,6 +2708,7 @@ export declare class BaseTransaction<T extends BaseTransaction<T>> {
2712
2708
  * @param count - (Optional) The maximum number of popped elements.
2713
2709
  *
2714
2710
  * Command Response - A `Record` which stores the key name where elements were popped out and the array of popped elements.
2711
+ * If no member could be popped, returns `null`.
2715
2712
  */
2716
2713
  lmpop(keys: GlideString[], direction: ListDirection, count?: number): T;
2717
2714
  /**
@@ -2826,26 +2823,47 @@ export declare class BaseTransaction<T extends BaseTransaction<T>> {
2826
2823
  sortStore(key: GlideString, destination: GlideString, options?: SortOptions): T;
2827
2824
  }
2828
2825
  /**
2829
- * Extends BaseTransaction class for Valkey standalone commands.
2830
- * Transactions allow the execution of a group of commands in a single step.
2826
+ * Batch implementation for standalone {@link GlideClient}.
2827
+ * Batches allow the execution of a group of commands in a single step.
2831
2828
  *
2832
- * Command Response:
2833
- * An array of command responses is returned by the GlideClient.exec command, in the order they were given.
2834
- * Each element in the array represents a command given to the transaction.
2829
+ * ### Batch Response:
2830
+ * An array of command responses is returned by the client {@link GlideClient.exec | exec} command, in the order they were given.
2831
+ * Each element in the array represents a command given to the batch.
2835
2832
  * The response for each command depends on the executed Valkey command.
2836
2833
  * Specific response types are documented alongside each method.
2837
2834
  *
2835
+ * @param isAtomic - Indicates whether the batch is atomic or non-atomic. If `true`, the batch will be executed as an atomic transaction.
2836
+ * If `false`, the batch will be executed as a non-atomic pipeline.
2837
+ *
2838
+ * @see {@link https://valkey.io/docs/topics/transactions/ | Valkey Transactions (Atomic Batches)}
2839
+ * @see {@link https://valkey.io/topics/pipelining | Valkey Pipelines (Non-Atomic Batches)}
2840
+ * @remarks Standalone Batches are executed on the primary node.
2841
+ *
2842
+ * @example
2843
+ * ```typescript
2844
+ * // Example of Atomic Batch (Transaction)
2845
+ * const transaction = new Batch(true) // Atomic (Transactional)
2846
+ * .set("key", "value")
2847
+ * .get("key");
2848
+ * const result = await client.exec(transaction, true);
2849
+ * // result contains: OK and "value"
2850
+ * console.log(result); // ["OK", "value"]
2851
+ * ```
2852
+ *
2838
2853
  * @example
2839
2854
  * ```typescript
2840
- * const transaction = new Transaction()
2841
- * .set("key", "value")
2842
- * .select(1) /// Standalone command
2843
- * .get("key");
2844
- * const result = await GlideClient.exec(transaction);
2845
- * console.log(result); // Output: ['OK', 'OK', null]
2855
+ * // Example of Non-Atomic Batch (Pipeline)
2856
+ * const pipeline = new Batch(false) // Non-Atomic (Pipeline)
2857
+ * .set("key1", "value1")
2858
+ * .set("key2", "value2")
2859
+ * .get("key1")
2860
+ * .get("key2");
2861
+ * const result = await client.exec(pipeline, true);
2862
+ * // result contains: OK, OK, "value1", "value2"
2863
+ * console.log(result); // ["OK", "OK", "value1", "value2"]
2846
2864
  * ```
2847
2865
  */
2848
- export declare class Transaction extends BaseTransaction<Transaction> {
2866
+ export declare class Batch extends BaseBatch<Batch> {
2849
2867
  /**
2850
2868
  * Change the currently selected database.
2851
2869
  *
@@ -2855,7 +2873,7 @@ export declare class Transaction extends BaseTransaction<Transaction> {
2855
2873
  *
2856
2874
  * Command Response - A simple `"OK"` response.
2857
2875
  */
2858
- select(index: number): Transaction;
2876
+ select(index: number): Batch;
2859
2877
  /**
2860
2878
  * Copies the value stored at the `source` to the `destination` key. If `destinationDB` is specified,
2861
2879
  * the value will be copied to the database specified, otherwise the current database will be used.
@@ -2877,7 +2895,7 @@ export declare class Transaction extends BaseTransaction<Transaction> {
2877
2895
  copy(source: GlideString, destination: GlideString, options?: {
2878
2896
  destinationDB?: number;
2879
2897
  replace?: boolean;
2880
- }): Transaction;
2898
+ }): Batch;
2881
2899
  /**
2882
2900
  * Move `key` from the currently selected database to the database specified by `dbIndex`.
2883
2901
  *
@@ -2889,7 +2907,7 @@ export declare class Transaction extends BaseTransaction<Transaction> {
2889
2907
  * Command Response - `true` if `key` was moved, or `false` if the `key` already exists in the destination
2890
2908
  * database or does not exist in the source database.
2891
2909
  */
2892
- move(key: GlideString, dbIndex: number): Transaction;
2910
+ move(key: GlideString, dbIndex: number): Batch;
2893
2911
  /** Publish a message on pubsub channel.
2894
2912
  *
2895
2913
  * @see {@link https://valkey.io/commands/publish/|valkey.io} for more details.
@@ -2900,20 +2918,47 @@ export declare class Transaction extends BaseTransaction<Transaction> {
2900
2918
  * Command Response - Number of subscriptions in primary node that received the message.
2901
2919
  * Note that this value does not include subscriptions that configured on replicas.
2902
2920
  */
2903
- publish(message: GlideString, channel: GlideString): Transaction;
2921
+ publish(message: GlideString, channel: GlideString): Batch;
2904
2922
  }
2905
2923
  /**
2906
- * Extends BaseTransaction class for cluster mode commands.
2907
- * Transactions allow the execution of a group of commands in a single step.
2924
+ * Batch implementation for standalone {@link GlideClusterClient | GlideClusterClient}.
2925
+ * Batches allow the execution of a group of commands in a single step.
2908
2926
  *
2909
- * Command Response:
2910
- * An array of command responses is returned by the GlideClusterClient.exec command, in the order they were given.
2911
- * Each element in the array represents a command given to the transaction.
2927
+ * ### Batch Response:
2928
+ * An array of command responses is returned by the client {@link GlideClusterClient.exec | exec} command, in the order they were given.
2929
+ * Each element in the array represents a command given to the batch.
2912
2930
  * The response for each command depends on the executed Valkey command.
2913
2931
  * Specific response types are documented alongside each method.
2914
2932
  *
2933
+ * @param isAtomic - Indicates whether the batch is atomic or non-atomic. If `true`, the batch will be executed as an atomic transaction.
2934
+ * If `false`, the batch will be executed as a non-atomic pipeline.
2935
+ *
2936
+ * @see {@link https://valkey.io/docs/topics/transactions/ | Valkey Transactions (Atomic Batches)}
2937
+ * @see {@link https://valkey.io/topics/pipelining | Valkey Pipelines (Non-Atomic Batches)}
2938
+ *
2939
+ * @example
2940
+ * ```typescript
2941
+ * // Example of Atomic Batch (Transaction) in a Cluster
2942
+ * const transaction = new ClusterBatch(true) // Atomic (Transactional)
2943
+ * .set("key", "value")
2944
+ * .get("key");
2945
+ * const result = await client.exec(transaction, true);
2946
+ * console.log(result); // ["OK", "value"]
2947
+ * ```
2948
+ *
2949
+ * @example
2950
+ * ```typescript
2951
+ * // Example of Non-Atomic Batch (Pipeline) in a Cluster
2952
+ * const pipeline = new ClusterBatch(false) // Non-Atomic (Pipeline)
2953
+ * .set("key1", "value1")
2954
+ * .set("key2", "value2")
2955
+ * .get("key1")
2956
+ * .get("key2");
2957
+ * const result = await client.exec(pipeline, true);
2958
+ * console.log(result); // ["OK", "OK", "value1", "value2"]
2959
+ * ```
2915
2960
  */
2916
- export declare class ClusterTransaction extends BaseTransaction<ClusterTransaction> {
2961
+ export declare class ClusterBatch extends BaseBatch<ClusterBatch> {
2917
2962
  /**
2918
2963
  * Copies the value stored at the `source` to the `destination` key. When `replace` is true,
2919
2964
  * removes the `destination` key first if it already exists, otherwise performs no action.
@@ -2930,7 +2975,7 @@ export declare class ClusterTransaction extends BaseTransaction<ClusterTransacti
2930
2975
  */
2931
2976
  copy(source: GlideString, destination: GlideString, options?: {
2932
2977
  replace?: boolean;
2933
- }): ClusterTransaction;
2978
+ }): ClusterBatch;
2934
2979
  /** Publish a message on pubsub channel.
2935
2980
  * This command aggregates PUBLISH and SPUBLISH commands functionalities.
2936
2981
  * The mode is selected using the 'sharded' parameter.
@@ -2944,7 +2989,7 @@ export declare class ClusterTransaction extends BaseTransaction<ClusterTransacti
2944
2989
  *
2945
2990
  * Command Response - Number of subscriptions in primary node that received the message.
2946
2991
  */
2947
- publish(message: GlideString, channel: GlideString, sharded?: boolean): ClusterTransaction;
2992
+ publish(message: GlideString, channel: GlideString, sharded?: boolean): ClusterBatch;
2948
2993
  /**
2949
2994
  * Lists the currently active shard channels.
2950
2995
  * The command is routed to all nodes, and aggregates the response to a single array.
@@ -2957,7 +3002,7 @@ export declare class ClusterTransaction extends BaseTransaction<ClusterTransacti
2957
3002
  * Command Response - A list of currently active shard channels matching the given pattern.
2958
3003
  * If no pattern is specified, all active shard channels are returned.
2959
3004
  */
2960
- pubsubShardChannels(pattern?: GlideString): ClusterTransaction;
3005
+ pubsubShardChannels(pattern?: GlideString): ClusterBatch;
2961
3006
  /**
2962
3007
  * Returns the number of subscribers (exclusive of clients subscribed to patterns) for the specified shard channels.
2963
3008
  *
@@ -2968,5 +3013,17 @@ export declare class ClusterTransaction extends BaseTransaction<ClusterTransacti
2968
3013
  *
2969
3014
  * Command Response - A list of the shard channel names and their numbers of subscribers.
2970
3015
  */
2971
- pubsubShardNumSub(channels: GlideString[]): ClusterTransaction;
3016
+ pubsubShardNumSub(channels: GlideString[]): ClusterBatch;
3017
+ }
3018
+ /**
3019
+ * @deprecated This class is deprecated and should no longer be used. Use {@link ClusterBatch} instead.
3020
+ */
3021
+ export declare class ClusterTransaction extends ClusterBatch {
3022
+ constructor();
3023
+ }
3024
+ /**
3025
+ * @deprecated This class is deprecated and should no longer be used. Use {@link Batch} instead.
3026
+ */
3027
+ export declare class Transaction extends Batch {
3028
+ constructor();
2972
3029
  }