@encore.dev/sdk 2.0.0-beta.15 → 2.0.0-beta.17

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 (235) hide show
  1. package/README.md +111 -101
  2. package/app_meta.ts +56 -54
  3. package/config/config.ts +60 -57
  4. package/config/secrets.ts +45 -52
  5. package/config/value.ts +23 -26
  6. package/cron/mod.ts +28 -29
  7. package/dist/app_meta.d.ts +52 -50
  8. package/dist/app_meta.d.ts.map +1 -1
  9. package/dist/app_meta.js +2 -2
  10. package/dist/app_meta.js.map +1 -1
  11. package/dist/config/config.d.ts +58 -55
  12. package/dist/config/config.d.ts.map +1 -1
  13. package/dist/config/config.js +8 -9
  14. package/dist/config/config.js.map +1 -1
  15. package/dist/config/secrets.d.ts +45 -52
  16. package/dist/config/secrets.d.ts.map +1 -1
  17. package/dist/config/secrets.js +8 -9
  18. package/dist/config/secrets.js.map +1 -1
  19. package/dist/config/value.d.ts +20 -23
  20. package/dist/config/value.d.ts.map +1 -1
  21. package/dist/config/value.js +20 -23
  22. package/dist/config/value.js.map +1 -1
  23. package/dist/cron/mod.d.ts +26 -27
  24. package/dist/cron/mod.d.ts.map +1 -1
  25. package/dist/cron/mod.js +13 -14
  26. package/dist/cron/mod.js.map +1 -1
  27. package/dist/frontends/mod.d.ts +20 -19
  28. package/dist/frontends/mod.d.ts.map +1 -1
  29. package/dist/frontends/mod.js +20 -19
  30. package/dist/frontends/mod.js.map +1 -1
  31. package/dist/gateway/errors.d.ts +28 -30
  32. package/dist/gateway/errors.d.ts.map +1 -1
  33. package/dist/gateway/errors.js +29 -31
  34. package/dist/gateway/errors.js.map +1 -1
  35. package/dist/gateway/match.d.ts +54 -54
  36. package/dist/gateway/match.d.ts.map +1 -1
  37. package/dist/gateway/match.js +56 -56
  38. package/dist/gateway/match.js.map +1 -1
  39. package/dist/gateway/middleware.d.ts +62 -64
  40. package/dist/gateway/middleware.d.ts.map +1 -1
  41. package/dist/gateway/middleware.js +1 -1
  42. package/dist/gateway/middleware.js.map +1 -1
  43. package/dist/gateway/mod.d.ts +64 -67
  44. package/dist/gateway/mod.d.ts.map +1 -1
  45. package/dist/gateway/mod.js +72 -76
  46. package/dist/gateway/mod.js.map +1 -1
  47. package/dist/gateway/request.d.ts +138 -134
  48. package/dist/gateway/request.d.ts.map +1 -1
  49. package/dist/gateway/request.js +117 -108
  50. package/dist/gateway/request.js.map +1 -1
  51. package/dist/gateway/serve.d.ts +29 -34
  52. package/dist/gateway/serve.d.ts.map +1 -1
  53. package/dist/gateway/serve.js +51 -56
  54. package/dist/gateway/serve.js.map +1 -1
  55. package/dist/gateways/mod.d.ts +23 -21
  56. package/dist/gateways/mod.d.ts.map +1 -1
  57. package/dist/gateways/mod.js +25 -23
  58. package/dist/gateways/mod.js.map +1 -1
  59. package/dist/internal/runtime/napi/napi.cjs +1 -1
  60. package/dist/internal/runtime/napi/napi.d.cts +10 -3
  61. package/dist/internal/runtime/shutdown.d.ts +75 -57
  62. package/dist/internal/runtime/shutdown.d.ts.map +1 -1
  63. package/dist/internal/runtime/shutdown.js +88 -84
  64. package/dist/internal/runtime/shutdown.js.map +1 -1
  65. package/dist/log/logger.d.ts +43 -37
  66. package/dist/log/logger.d.ts.map +1 -1
  67. package/dist/log/logger.js +26 -25
  68. package/dist/log/logger.js.map +1 -1
  69. package/dist/metrics/mod.d.ts +133 -114
  70. package/dist/metrics/mod.d.ts.map +1 -1
  71. package/dist/metrics/mod.js +109 -101
  72. package/dist/metrics/mod.js.map +1 -1
  73. package/dist/otel.d.ts +6 -3
  74. package/dist/otel.d.ts.map +1 -1
  75. package/dist/otel.js +6 -3
  76. package/dist/otel.js.map +1 -1
  77. package/dist/pubsub/subscription.d.ts +88 -116
  78. package/dist/pubsub/subscription.d.ts.map +1 -1
  79. package/dist/pubsub/subscription.js +14 -17
  80. package/dist/pubsub/subscription.js.map +1 -1
  81. package/dist/pubsub/topic.d.ts +86 -113
  82. package/dist/pubsub/topic.d.ts.map +1 -1
  83. package/dist/pubsub/topic.js +68 -82
  84. package/dist/pubsub/topic.js.map +1 -1
  85. package/dist/reqctx/mod.d.ts +83 -86
  86. package/dist/reqctx/mod.d.ts.map +1 -1
  87. package/dist/reqctx/mod.js +39 -41
  88. package/dist/reqctx/mod.js.map +1 -1
  89. package/dist/services/index.d.ts +76 -75
  90. package/dist/services/index.d.ts.map +1 -1
  91. package/dist/services/index.js +73 -71
  92. package/dist/services/index.js.map +1 -1
  93. package/dist/shutdown/mod.d.ts +26 -25
  94. package/dist/shutdown/mod.d.ts.map +1 -1
  95. package/dist/shutdown/mod.js +26 -25
  96. package/dist/shutdown/mod.js.map +1 -1
  97. package/dist/storage/clickhouse/database.d.ts +113 -115
  98. package/dist/storage/clickhouse/database.d.ts.map +1 -1
  99. package/dist/storage/clickhouse/database.js +65 -79
  100. package/dist/storage/clickhouse/database.js.map +1 -1
  101. package/dist/storage/clickhouse/errors.d.ts +25 -26
  102. package/dist/storage/clickhouse/errors.d.ts.map +1 -1
  103. package/dist/storage/clickhouse/errors.js +15 -17
  104. package/dist/storage/clickhouse/errors.js.map +1 -1
  105. package/dist/storage/clickhouse/mod.d.ts +10 -10
  106. package/dist/storage/clickhouse/mod.js +10 -10
  107. package/dist/storage/objects/bucket.d.ts +196 -225
  108. package/dist/storage/objects/bucket.d.ts.map +1 -1
  109. package/dist/storage/objects/bucket.js +71 -84
  110. package/dist/storage/objects/bucket.js.map +1 -1
  111. package/dist/storage/objects/error.d.ts +4 -4
  112. package/dist/storage/objects/error.js +4 -4
  113. package/dist/storage/postgres/database.d.ts +124 -149
  114. package/dist/storage/postgres/database.d.ts.map +1 -1
  115. package/dist/storage/postgres/database.js +98 -135
  116. package/dist/storage/postgres/database.js.map +1 -1
  117. package/dist/storage/postgres/errors.d.ts +42 -48
  118. package/dist/storage/postgres/errors.d.ts.map +1 -1
  119. package/dist/storage/postgres/errors.js +44 -51
  120. package/dist/storage/postgres/errors.js.map +1 -1
  121. package/dist/storage/postgres/interval.d.ts +19 -19
  122. package/dist/storage/postgres/interval.d.ts.map +1 -1
  123. package/dist/storage/postgres/interval.js +21 -21
  124. package/dist/storage/postgres/interval.js.map +1 -1
  125. package/dist/storage/redis/bitfield.d.ts +48 -23
  126. package/dist/storage/redis/bitfield.d.ts.map +1 -1
  127. package/dist/storage/redis/bitfield.js +38 -19
  128. package/dist/storage/redis/bitfield.js.map +1 -1
  129. package/dist/storage/redis/command.d.ts +16 -12
  130. package/dist/storage/redis/command.d.ts.map +1 -1
  131. package/dist/storage/redis/command.js +16 -12
  132. package/dist/storage/redis/command.js.map +1 -1
  133. package/dist/storage/redis/commands.d.ts +99 -100
  134. package/dist/storage/redis/commands.d.ts.map +1 -1
  135. package/dist/storage/redis/commands.js +84 -85
  136. package/dist/storage/redis/commands.js.map +1 -1
  137. package/dist/storage/redis/database.d.ts +138 -122
  138. package/dist/storage/redis/database.d.ts.map +1 -1
  139. package/dist/storage/redis/database.js +120 -101
  140. package/dist/storage/redis/database.js.map +1 -1
  141. package/dist/storage/redis/mod.d.ts +52 -48
  142. package/dist/storage/redis/mod.d.ts.map +1 -1
  143. package/dist/storage/redis/mod.js +52 -48
  144. package/dist/storage/redis/mod.js.map +1 -1
  145. package/dist/storage/redis/options.d.ts +26 -24
  146. package/dist/storage/redis/options.d.ts.map +1 -1
  147. package/dist/storage/redis/options.js.map +1 -1
  148. package/dist/storage/redis/pubsub.d.ts +16 -16
  149. package/dist/storage/redis/pubsub.d.ts.map +1 -1
  150. package/dist/storage/redis/pubsub.js +14 -14
  151. package/dist/storage/redis/pubsub.js.map +1 -1
  152. package/dist/storage/redis/reply.d.ts +80 -72
  153. package/dist/storage/redis/reply.d.ts.map +1 -1
  154. package/dist/storage/redis/reply.js +53 -46
  155. package/dist/storage/redis/reply.js.map +1 -1
  156. package/dist/storage/redis/scan.d.ts +4 -4
  157. package/dist/storage/redis/scan.d.ts.map +1 -1
  158. package/dist/storage/redis/scan.js +6 -6
  159. package/dist/storage/redis/scan.js.map +1 -1
  160. package/dist/storage/redis/script.d.ts +28 -21
  161. package/dist/storage/redis/script.d.ts.map +1 -1
  162. package/dist/storage/redis/script.js +29 -22
  163. package/dist/storage/redis/script.js.map +1 -1
  164. package/dist/storage/redis/target.d.ts +17 -1
  165. package/dist/storage/redis/target.d.ts.map +1 -1
  166. package/dist/storage/redis/target.js +30 -1
  167. package/dist/storage/redis/target.js.map +1 -1
  168. package/dist/storage/redis/wire.d.ts +6 -6
  169. package/dist/storage/redis/wire.d.ts.map +1 -1
  170. package/dist/storage/redis/wire.js +6 -6
  171. package/dist/storage/redis/wire.js.map +1 -1
  172. package/dist/testing/mod.d.ts +83 -88
  173. package/dist/testing/mod.d.ts.map +1 -1
  174. package/dist/testing/mod.js +75 -81
  175. package/dist/testing/mod.js.map +1 -1
  176. package/dist/testing/playwright.d.ts +28 -32
  177. package/dist/testing/playwright.d.ts.map +1 -1
  178. package/dist/testing/playwright.js +22 -27
  179. package/dist/testing/playwright.js.map +1 -1
  180. package/dist/testing/puppeteer.d.ts +11 -12
  181. package/dist/testing/puppeteer.d.ts.map +1 -1
  182. package/dist/testing/puppeteer.js +17 -18
  183. package/dist/testing/puppeteer.js.map +1 -1
  184. package/dist/testing/system.d.ts +72 -90
  185. package/dist/testing/system.d.ts.map +1 -1
  186. package/dist/testing/system.js +90 -107
  187. package/dist/testing/system.js.map +1 -1
  188. package/dist/tsconfig.build.tsbuildinfo +1 -1
  189. package/frontends/mod.test.ts +6 -2
  190. package/frontends/mod.ts +20 -19
  191. package/gateway/errors.ts +30 -32
  192. package/gateway/match.ts +61 -57
  193. package/gateway/middleware.ts +62 -64
  194. package/gateway/mod.ts +73 -76
  195. package/gateway/request.ts +143 -140
  196. package/gateway/serve.ts +58 -63
  197. package/gateways/mod.ts +25 -23
  198. package/internal/runtime/napi/napi.cjs +1 -1
  199. package/internal/runtime/napi/napi.d.cts +10 -3
  200. package/internal/runtime/shutdown.ts +113 -101
  201. package/log/logger.test.ts +8 -0
  202. package/log/logger.ts +48 -45
  203. package/metrics/mod.ts +138 -122
  204. package/otel.ts +6 -3
  205. package/package.json +1 -1
  206. package/pubsub/subscription.ts +93 -123
  207. package/pubsub/topic.ts +96 -130
  208. package/reqctx/mod.ts +83 -86
  209. package/services/index.ts +78 -78
  210. package/shutdown/mod.ts +26 -25
  211. package/storage/clickhouse/database.ts +115 -129
  212. package/storage/clickhouse/errors.ts +27 -29
  213. package/storage/clickhouse/mod.ts +10 -10
  214. package/storage/objects/bucket.ts +209 -239
  215. package/storage/objects/error.ts +4 -4
  216. package/storage/postgres/database.ts +131 -164
  217. package/storage/postgres/errors.ts +45 -52
  218. package/storage/postgres/interval.ts +21 -21
  219. package/storage/redis/bitfield.ts +51 -26
  220. package/storage/redis/command.ts +16 -12
  221. package/storage/redis/commands.ts +99 -100
  222. package/storage/redis/database.ts +145 -123
  223. package/storage/redis/mod.ts +52 -48
  224. package/storage/redis/options.ts +26 -24
  225. package/storage/redis/pubsub.ts +14 -14
  226. package/storage/redis/redis.test.ts +17 -2
  227. package/storage/redis/reply.ts +85 -77
  228. package/storage/redis/scan.ts +6 -6
  229. package/storage/redis/script.ts +29 -22
  230. package/storage/redis/target.ts +34 -1
  231. package/storage/redis/wire.ts +8 -8
  232. package/testing/mod.ts +99 -105
  233. package/testing/playwright.ts +32 -37
  234. package/testing/puppeteer.ts +22 -23
  235. package/testing/system.ts +117 -133
@@ -23,7 +23,7 @@ import { Reply, ReplyPromise } from './reply.js';
23
23
  import { type Subscription } from './pubsub.js';
24
24
  import type { Target } from './target.js';
25
25
  import { Cmd, type Pairs, type RedisArg, type Value } from './wire.js';
26
- /** A score bound: a number, `"-inf"` or `"+inf"`, or exclusive as `"(1.5"`. */
26
+ /** A sorted set score bound: a number, `"-inf"`, `"+inf"`, or an exclusive bound such as `"(1.5"`. */
27
27
  export type ScoreBound = number | string;
28
28
  /**
29
29
  * A command: whether it writes, whether it blocks, how it is built, and what
@@ -89,35 +89,35 @@ declare const groups: {
89
89
  * many existed.
90
90
  */
91
91
  unlink: CommandDef<string[], number, true, false>;
92
- /** Has the key expire in `seconds`. `false` if it does not exist. */
92
+ /** Sets the key to expire after `seconds`. Returns `false` if the key does not exist. */
93
93
  expire: CommandDef<[key: string, seconds: number], boolean, true, false>;
94
- /** Has the key expire in `milliseconds`. `false` if it does not exist. */
94
+ /** Sets the key to expire after `milliseconds`. Returns `false` if the key does not exist. */
95
95
  pexpire: CommandDef<[key: string, milliseconds: number], boolean, true, false>;
96
96
  /**
97
- * Has the key expire at a Unix time, in seconds. `false` if it does not
98
- * exist.
97
+ * Sets the key to expire at the given Unix timestamp in seconds. Returns
98
+ * `false` if the key does not exist.
99
99
  */
100
100
  expireAt: CommandDef<[key: string, timestamp: number], boolean, true, false>;
101
- /** Removes the key's expiry. `false` if it had none, or does not exist. */
101
+ /** Removes the key's expiration. Returns `false` if it had none or does not exist. */
102
102
  persist: CommandDef<[key: string], boolean, true, false>;
103
103
  /** Renames the key, replacing `newKey` if it exists. */
104
104
  rename: CommandDef<[key: string, newKey: string], void, true, false>;
105
- /** Renames the key unless `newKey` exists. `false` if it does. */
105
+ /** Renames the key only if `newKey` does not exist. Returns `false` if `newKey` already exists. */
106
106
  renameNx: CommandDef<[key: string, newKey: string], boolean, true, false>;
107
107
  /**
108
- * Copies the value at `source` to `destination`. `false` if `destination`
109
- * exists.
108
+ * Copies the value at `source` to `destination`. Returns `false` if
109
+ * `destination` already exists.
110
110
  */
111
111
  copy: CommandDef<[source: string, destination: string], boolean, true, false>;
112
- /** Marks the keys as used just now, returning how many exist. */
112
+ /** Updates the last-access time of the keys and returns how many exist. */
113
113
  touch: CommandDef<string[], number, true, false>;
114
114
  };
115
115
  string: {
116
- /** The value at the key: nil if it does not exist. */
116
+ /** Returns the value at the key, or nil if it does not exist. */
117
117
  get: CommandDef<[key: string], Reply, false, false>;
118
118
  /**
119
- * The values at the keys, in order, each missing one as nil: read it with
120
- * {@link Reply.optionalTexts}.
119
+ * Returns the values for the keys in order, with missing keys as nil.
120
+ * Decode with {@link Reply.optionalTexts}.
121
121
  */
122
122
  mget: CommandDef<string[], Reply, false, false>;
123
123
  /** The length of the value at the key, in bytes. */
@@ -131,23 +131,23 @@ declare const groups: {
131
131
  set: CommandDef<[key: string, value: RedisArg], void, true, false>;
132
132
  /** Sets the key to the value, expiring in `seconds`. */
133
133
  setEx: CommandDef<[key: string, value: RedisArg, seconds: number], void, true, false>;
134
- /** Sets the key to the value unless the key exists. `false` if it does. */
134
+ /** Sets the key to the value only if it does not exist. Returns `false` if it already exists. */
135
135
  setNx: CommandDef<[key: string, value: RedisArg], boolean, true, false>;
136
136
  /**
137
- * Sets the key to the value as `options` say: only if it exists or does
138
- * not, with an expiry, replying the old value.
137
+ * Sets the key to the value using `options` (existence condition,
138
+ * expiration, and optionally returning the previous value).
139
139
  */
140
140
  setOptions: CommandDef<[key: string, value: RedisArg, options: SetOptions], Reply, true, false>;
141
141
  /** Sets each key to its value, all at once. */
142
142
  mset: CommandDef<[items: Pairs<RedisArg>], void, true, false>;
143
143
  /**
144
- * Sets each key to its value unless any of the keys exists. `false` if one
145
- * does, in which case none is set.
144
+ * Sets each key to its value only if none of the keys exist. Returns `false`
145
+ * if any key already exists, leaving all keys unchanged.
146
146
  */
147
147
  msetNx: CommandDef<[items: Pairs<RedisArg>], boolean, true, false>;
148
- /** The value at the key, which is deleted. */
148
+ /** Returns the value at the key and deletes the key. */
149
149
  getDel: CommandDef<[key: string], Reply, true, false>;
150
- /** The value at the key, whose expiry is set as `expiry` says. */
150
+ /** Returns the value at the key and updates its expiration according to `expiry`. */
151
151
  getEx: CommandDef<[key: string, expiry: Expiry], Reply, true, false>;
152
152
  /** Appends to the value at the key, returning its new length. */
153
153
  append: CommandDef<[key: string, value: RedisArg], number, true, false>;
@@ -175,7 +175,7 @@ declare const groups: {
175
175
  bitcountRange: CommandDef<[key: string, start: number, end: number], number, false, false>;
176
176
  /** The position of the first bit that is `bit`, or -1 if there is none. */
177
177
  bitpos: CommandDef<[key: string, bit: boolean], number, false, false>;
178
- /** Sets the bit at `offset`, returning what it was. */
178
+ /** Sets the bit at `offset` and returns its previous value. */
179
179
  setbit: CommandDef<[key: string, offset: number, value: boolean], boolean, true, false>;
180
180
  /**
181
181
  * Stores the AND of the sources at `destination`, returning its length in
@@ -198,19 +198,19 @@ declare const groups: {
198
198
  */
199
199
  bitNot: CommandDef<[destination: string, source: string], number, true, false>;
200
200
  /**
201
- * Integers of any width up to 64 bits, read and written at any bit offset of
202
- * the string: add the operations, then {@link Bitfield.invoke}.
201
+ * Reads and writes arbitrary-width integers (up to 64 bits) at any bit
202
+ * offset in the string. Chain operations, then call {@link Bitfield.invoke}.
203
203
  */
204
204
  bitfield: BuilderDef<[key: string], Bitfield, QueuedBitfield, true>;
205
- /** {@link Bitfield} that only reads (`BITFIELD_RO`). */
205
+ /** Read-only variant of {@link Bitfield} (`BITFIELD_RO`). */
206
206
  bitfieldRo: BuilderDef<[key: string], BitfieldRo, QueuedBitfieldRo, false>;
207
207
  };
208
208
  hash: {
209
209
  /** The value of a field: nil if it does not exist. */
210
210
  hget: CommandDef<[key: string, field: RedisArg], Reply, false, false>;
211
211
  /**
212
- * The values of the fields, in order, each missing one as nil: read it with
213
- * {@link Reply.optionalTexts}.
212
+ * Returns the values of the fields in order, with missing fields as nil.
213
+ * Decode with {@link Reply.optionalTexts}.
214
214
  */
215
215
  hmget: CommandDef<[key: string, ...fields: RedisArg[]], Reply, false, false>;
216
216
  /** Every field and its value: read it with {@link Reply.textMap}. */
@@ -231,7 +231,7 @@ declare const groups: {
231
231
  hset: CommandDef<[key: string, field: RedisArg, value: RedisArg], number, true, false>;
232
232
  /** Sets several fields, returning how many are new. */
233
233
  hsetMultiple: CommandDef<[key: string, items: Pairs<RedisArg>], number, true, false>;
234
- /** Sets a field unless it exists. `false` if it does. */
234
+ /** Sets a field only if it does not exist. Returns `false` if it already exists. */
235
235
  hsetNx: CommandDef<[key: string, field: RedisArg, value: RedisArg], boolean, true, false>;
236
236
  /** Deletes the fields, returning how many existed. */
237
237
  hdel: CommandDef<[key: string, ...fields: RedisArg[]], number, true, false>;
@@ -261,13 +261,13 @@ declare const groups: {
261
261
  /** Appends the values if the list exists, returning its length. */
262
262
  rpushExists: CommandDef<[key: string, ...values: RedisArg[]], number, true, false>;
263
263
  /**
264
- * Removes and returns the first element, or with a `count`, that many, as a
265
- * list.
264
+ * Removes and returns the first element, or up to `count` elements as an
265
+ * array when `count` is specified.
266
266
  */
267
267
  lpop: CommandDef<[key: string, count?: number | undefined], Reply, true, false>;
268
268
  /**
269
- * Removes and returns the last element, or with a `count`, that many, as a
270
- * list.
269
+ * Removes and returns the last element, or up to `count` elements as an
270
+ * array when `count` is specified.
271
271
  */
272
272
  rpop: CommandDef<[key: string, count?: number | undefined], Reply, true, false>;
273
273
  /** Replaces the element at an index. */
@@ -285,8 +285,9 @@ declare const groups: {
285
285
  */
286
286
  linsertAfter: CommandDef<[key: string, pivot: RedisArg, value: RedisArg], number, true, false>;
287
287
  /**
288
- * Removes elements equal to `value`: the first `count` of them, the last
289
- * `-count` if it is negative, or all if it is 0. Returns how many.
288
+ * Removes elements equal to `value`: the first `count` matches when positive,
289
+ * the last `-count` matches when negative, or all matches when 0. Returns the
290
+ * number of removed elements.
290
291
  */
291
292
  lrem: CommandDef<[key: string, count: number, value: RedisArg], number, true, false>;
292
293
  /**
@@ -295,22 +296,22 @@ declare const groups: {
295
296
  */
296
297
  lmove: CommandDef<[source: string, destination: string, from: Direction, to: Direction], Reply, true, false>;
297
298
  /**
298
- * Removes and returns the first element of the first of `keys` that has
299
- * one, with its key, waiting up to `timeout` seconds for one to be pushed:
300
- * 0 waits for ever. `null` once the timeout passes.
299
+ * Removes and returns the first element (along with its key) from the first
300
+ * non-empty list in `keys`, waiting up to `timeout` seconds (`0` waits
301
+ * forever). Returns `null` on timeout.
301
302
  */
302
303
  blpop: CommandDef<[keys: string | string[], timeout: number], import("./reply.js").Popped | null, true, true>;
303
- /** `blpop`, from the end of the list. */
304
+ /** Like `blpop`, but pops from the tail of the list. */
304
305
  brpop: CommandDef<[keys: string | string[], timeout: number], import("./reply.js").Popped | null, true, true>;
305
306
  /**
306
- * `lmove`, waiting up to `timeout` seconds for `source`
307
- * to have an element: 0 waits for ever. A nil reply once the timeout passes.
307
+ * Like `lmove`, waiting up to `timeout` seconds for `source` to have an
308
+ * element (`0` waits forever). Returns nil on timeout.
308
309
  */
309
310
  blmove: CommandDef<[source: string, destination: string, from: Direction, to: Direction, timeout: number], Reply, true, true>;
310
311
  /**
311
- * Removes and returns up to `count` elements from one end of the first of
312
- * `keys` that has any, with its key, waiting up to `timeout` seconds for
313
- * one: 0 waits for ever. `null` once the timeout passes.
312
+ * Removes and returns up to `count` elements (along with their key) from the
313
+ * first non-empty list in `keys`, waiting up to `timeout` seconds (`0` waits
314
+ * forever). Returns `null` on timeout.
314
315
  */
315
316
  blmpop: CommandDef<[keys: string[], from: Direction, count: number, timeout: number], import("./reply.js").PoppedMany | null, true, true>;
316
317
  };
@@ -362,21 +363,21 @@ declare const groups: {
362
363
  */
363
364
  zrange: CommandDef<[key: string, start: number, stop: number], Reply, false, false>;
364
365
  /**
365
- * `zrange`, each member with its score: read it with
366
+ * Like `zrange`, including each member's score. Decode with
366
367
  * {@link Reply.scoredMembers}.
367
368
  */
368
369
  zrangeWithscores: CommandDef<[key: string, start: number, stop: number], Reply, false, false>;
369
370
  /** The members ranked `start` to `stop`, inclusive, highest score first. */
370
371
  zrevrange: CommandDef<[key: string, start: number, stop: number], Reply, false, false>;
371
372
  /**
372
- * `zrevrange`, each member with its score: read it with
373
+ * Like `zrevrange`, including each member's score. Decode with
373
374
  * {@link Reply.scoredMembers}.
374
375
  */
375
376
  zrevrangeWithscores: CommandDef<[key: string, start: number, stop: number], Reply, false, false>;
376
377
  /** The members with a score from `min` to `max`, lowest first. */
377
378
  zrangebyscore: CommandDef<[key: string, min: ScoreBound, max: ScoreBound], Reply, false, false>;
378
379
  /**
379
- * `zrangebyscore`, each member with its score: read it with
380
+ * Like `zrangebyscore`, including each member's score. Decode with
380
381
  * {@link Reply.scoredMembers}.
381
382
  */
382
383
  zrangebyscoreWithscores: CommandDef<[key: string, min: ScoreBound, max: ScoreBound], Reply, false, false>;
@@ -439,25 +440,25 @@ declare const groups: {
439
440
  */
440
441
  zunionstore: CommandDef<[destination: string, ...keys: string[]], number, true, false>;
441
442
  /**
442
- * Removes and returns the lowest scored member of the first of `keys` that
443
- * has one, with its key and score, waiting up to `timeout` seconds for one
444
- * to be added: 0 waits for ever. `null` once the timeout passes.
443
+ * Removes and returns the lowest-scoring member (along with its key and
444
+ * score) from the first non-empty sorted set in `keys`, waiting up to
445
+ * `timeout` seconds (`0` waits forever). Returns `null` on timeout.
445
446
  */
446
447
  bzpopmin: CommandDef<[keys: string | string[], timeout: number], import("./reply.js").PoppedScored | null, true, true>;
447
- /** `bzpopmin`, the highest scored member. */
448
+ /** Like `bzpopmin`, but pops the highest-scoring member. */
448
449
  bzpopmax: CommandDef<[keys: string | string[], timeout: number], import("./reply.js").PoppedScored | null, true, true>;
449
450
  /**
450
- * Removes and returns up to `count` of the lowest (`'min'`) or highest
451
- * (`'max'`) scored members of the first of `keys` that has any, with its
452
- * key and their scores, waiting up to `timeout` seconds for one: 0 waits
453
- * for ever. `null` once the timeout passes.
451
+ * Removes and returns up to `count` lowest-scoring (`'min'`) or
452
+ * highest-scoring (`'max'`) members (along with their key and scores) from
453
+ * the first non-empty sorted set in `keys`, waiting up to `timeout` seconds
454
+ * (`0` waits forever). Returns `null` on timeout.
454
455
  */
455
456
  bzmpop: CommandDef<[keys: string[], which: "min" | "max", count: number, timeout: number], import("./reply.js").PoppedScoredMany | null, true, true>;
456
457
  };
457
458
  geo: {
458
459
  /**
459
- * The positions of the members, each missing one as nil: read it with
460
- * {@link Reply.geoPositions}.
460
+ * Returns the positions of the members, with missing members as nil. Decode
461
+ * with {@link Reply.geoPositions}.
461
462
  */
462
463
  geoPos: CommandDef<[key: string, ...members: RedisArg[]], Reply, false, false>;
463
464
  /** The distance between two members: `null` if either is not a member. */
@@ -493,27 +494,25 @@ declare const groups: {
493
494
  /** How many entries the stream has. */
494
495
  xlen: CommandDef<[key: string], number, false, false>;
495
496
  /**
496
- * The entries after an id in each of the streams, `ids` giving the id for
497
- * each of `keys` in order. Returns at once with what is there. Read it with
498
- * {@link Reply.streams}.
497
+ * Reads entries after the given IDs across `keys` (`ids` corresponds to
498
+ * `keys` in order) without blocking. Decode with {@link Reply.streams}.
499
499
  */
500
500
  xread: CommandDef<[keys: string[], ids: string[]], Reply, false, false>;
501
501
  /**
502
- * A summary of the entries a consumer group has been given and not
503
- * acknowledged: read it with {@link Reply.streamPending}.
502
+ * Returns a summary of pending (unacknowledged) entries for a consumer
503
+ * group. Decode with {@link Reply.streamPending}.
504
504
  */
505
505
  xpending: CommandDef<[key: string, group: string], Reply, false, false>;
506
506
  /**
507
- * What the server knows about the stream: read it with
508
- * {@link Reply.streamInfo}.
507
+ * Returns metadata about the stream. Decode with {@link Reply.streamInfo}.
509
508
  */
510
509
  xinfoStream: CommandDef<[key: string], Reply, false, false>;
511
510
  /**
512
- * Appends an entry with the given fields, replying its id. Pass `"*"` as
513
- * the id to have the server choose it.
511
+ * Appends an entry with the given fields and returns its ID. Pass `"*"` as
512
+ * the ID to let Redis generate one.
514
513
  */
515
514
  xadd: CommandDef<[key: string, id: string, fields: Pairs<RedisArg>], Reply, true, false>;
516
- /** `xadd`, trimming the stream to a maximum length. */
515
+ /** Like `xadd`, while trimming the stream to a maximum length. */
517
516
  xaddMaxlen: CommandDef<[key: string, maxlen: StreamMaxlen, id: string, fields: Pairs<RedisArg>], Reply, true, false>;
518
517
  /** Deletes the entries with the given ids, returning how many existed. */
519
518
  xdel: CommandDef<[key: string, ...ids: string[]], number, true, false>;
@@ -527,42 +526,42 @@ declare const groups: {
527
526
  * new entries, `"0"` for all. The stream must exist.
528
527
  */
529
528
  xgroupCreate: CommandDef<[key: string, group: string, id: string], void, true, false>;
530
- /** `xgroupCreate`, creating the stream if it does not exist. */
529
+ /** Like `xgroupCreate`, creating the stream if it does not already exist. */
531
530
  xgroupCreateMkstream: CommandDef<[key: string, group: string, id: string], void, true, false>;
532
- /** Deletes a consumer group. `false` if there was none. */
531
+ /** Deletes a consumer group. Returns `false` if the group did not exist. */
533
532
  xgroupDestroy: CommandDef<[key: string, group: string], boolean, true, false>;
534
533
  /**
535
- * Reads entries as `consumer` of a group: `">"` as the id for the ones no
536
- * consumer has been given yet. With a `count`, at most that many per
537
- * stream. A write: it records them as given to the consumer. Read it with
538
- * {@link Reply.streams}.
534
+ * Reads entries as `consumer` in a consumer group (pass `">"` as the ID to
535
+ * read undelivered entries). When `count` is provided, reads at most `count`
536
+ * entries per stream. Treated as a write because Redis records delivery to
537
+ * the consumer. Decode with {@link Reply.streams}.
539
538
  */
540
539
  xreadGroup: CommandDef<[group: string, consumer: string, keys: string[], ids: string[], count?: number | undefined], Reply, true, false>;
541
540
  /**
542
- * Acknowledges entries a consumer group was given, returning how many were
543
- * pending.
541
+ * Acknowledges entries delivered to a consumer group and returns how many
542
+ * were pending.
544
543
  */
545
544
  xack: CommandDef<[key: string, group: string, ...ids: string[]], number, true, false>;
546
545
  /**
547
- * Takes over pending entries that have been idle for `minIdleMs`, for
548
- * `consumer`: read it with {@link Reply.streamEntries}.
546
+ * Claims pending entries that have been idle for at least `minIdleMs` for
547
+ * `consumer`. Decode with {@link Reply.streamEntries}.
549
548
  */
550
549
  xclaim: CommandDef<[key: string, group: string, consumer: string, minIdleMs: number, ...ids: string[]], Reply, true, false>;
551
550
  /**
552
- * Takes over the pending entries from id `start` that have been idle for
553
- * `minIdleMs`, for `consumer`: read it with {@link Reply.streamAutoClaim}.
551
+ * Claims pending entries starting from `start` that have been idle for at
552
+ * least `minIdleMs` for `consumer`. Decode with
553
+ * {@link Reply.streamAutoClaim}.
554
554
  */
555
555
  xautoclaim: CommandDef<[key: string, group: string, consumer: string, minIdleMs: number, start: string], Reply, true, false>;
556
556
  /**
557
- * `xread`, waiting up to `blockMs` milliseconds for an
558
- * entry if there is none yet: 0 waits for ever. With a `count`, at most that
559
- * many per stream. A nil reply once the wait passes.
557
+ * Like `xread`, waiting up to `blockMs` milliseconds if no entries are
558
+ * immediately available (`0` waits forever). When `count` is provided, reads
559
+ * at most `count` entries per stream. Returns nil on timeout.
560
560
  */
561
561
  xreadBlock: CommandDef<[keys: string[], ids: string[], blockMs: number, count?: number | undefined], Reply, false, true>;
562
562
  /**
563
- * `xreadGroup`, waiting up to `blockMs` milliseconds
564
- * for an entry if there is none yet: 0 waits for ever. A nil reply once the
565
- * wait passes.
563
+ * Like `xreadGroup`, waiting up to `blockMs` milliseconds if no entries are
564
+ * immediately available (`0` waits forever). Returns nil on timeout.
566
565
  */
567
566
  xreadGroupBlock: CommandDef<[group: string, consumer: string, keys: string[], ids: string[], blockMs: number, count?: number | undefined], Reply, true, true>;
568
567
  };
@@ -578,11 +577,11 @@ declare const groups: {
578
577
  pfmerge: CommandDef<[destination: string, ...sources: string[]], void, true, false>;
579
578
  };
580
579
  pubsub: {
581
- /** Subscribes to one or more channels, on a connection of its own. */
580
+ /** Subscribes to one or more channels on a dedicated connection. */
582
581
  subscribe: RunDef<string[], Promise<Subscription>, false>;
583
582
  /**
584
- * Subscribes to the channels matching one or more glob-style patterns, on a
585
- * connection of its own.
583
+ * Subscribes to channels matching one or more glob-style patterns on a
584
+ * dedicated connection.
586
585
  */
587
586
  psubscribe: RunDef<string[], Promise<Subscription>, false>;
588
587
  /**
@@ -596,54 +595,54 @@ declare const groups: {
596
595
  type Groups = typeof groups;
597
596
  /** A command run now: a reply for the caller to read, or one of one shape. */
598
597
  type RunForm<D> = D extends BuilderDef<infer A, infer R, any, boolean> ? (...args: A) => R : D extends CommandDef<infer A, infer R, boolean> ? (...args: A) => R extends Reply ? ReplyPromise : Promise<R> : D extends RunDef<infer A, infer R, boolean> ? (...args: A) => R : never;
599
- /** A command group's commands, run as they are called. */
598
+ /** Immediate-execution methods for a command group. */
600
599
  export type Commands<G> = {
601
600
  readonly [K in keyof G]: RunForm<G[K]>;
602
601
  };
603
- /** A command group's commands that only read. */
602
+ /** Read-only immediate-execution methods for a command group. */
604
603
  export type ReadCommands<G> = {
605
604
  readonly [K in keyof G as G[K] extends {
606
605
  write: false;
607
606
  } ? K : never]: RunForm<G[K]>;
608
607
  };
609
608
  /**
610
- * A command group's commands, queued on a pipeline or a transaction. What
611
- * each replies is read from `exec`, in the order queued.
609
+ * Queued methods for a command group on a pipeline or transaction. Replies
610
+ * are returned by `exec()` in the order queued.
612
611
  */
613
612
  export type Queue<G> = {
614
613
  readonly [K in keyof G as G[K] extends BuilderDef<any, any, any, boolean> | CommandDef<any, any, boolean, false> ? K : never]: G[K] extends BuilderDef<infer A, any, infer Q, boolean> ? (...args: A) => Q : G[K] extends CommandDef<infer A, any, boolean> ? (...args: A) => Queue<G> : never;
615
614
  };
616
- /** Commands that work on a key of any type: expiry, deletion, renaming. */
615
+ /** Commands that operate on keys of any type (expiration, deletion, renaming). */
617
616
  export type GenericCommands = Commands<Groups['generic']>;
618
- /** Commands on strings, which is what a plain value is. */
617
+ /** Commands on Redis string values. */
619
618
  export type StringCommands = Commands<Groups['string']>;
620
- /** Commands on the bits of a string. */
619
+ /** Bit-level commands on Redis string values. */
621
620
  export type BitmapCommands = Commands<Groups['bitmap']>;
622
- /** Commands on hashes: a key holding fields, each with a value. */
621
+ /** Commands on Redis hashes (field-value maps). */
623
622
  export type HashCommands = Commands<Groups['hash']>;
624
623
  /** Commands on lists. */
625
624
  export type ListCommands = Commands<Groups['list']>;
626
625
  /** Commands on sets. */
627
626
  export type SetCommands = Commands<Groups['set']>;
628
- /** Commands on sorted sets: members ordered by a score. */
627
+ /** Commands on Redis sorted sets (members ordered by score). */
629
628
  export type SortedSetCommands = Commands<Groups['sortedSet']>;
630
629
  /** Commands on geospatial indexes. */
631
630
  export type GeoCommands = Commands<Groups['geo']>;
632
631
  /** Commands on streams. */
633
632
  export type StreamCommands = Commands<Groups['stream']>;
634
- /** Commands on HyperLogLogs: estimates of how many distinct elements were added. */
633
+ /** Commands on Redis HyperLogLogs (approximate cardinality counters). */
635
634
  export type HyperLogLogCommands = Commands<Groups['hyperloglog']>;
636
- /** Publishing to channels, and subscribing to them. */
635
+ /** Commands for Redis pub/sub channels. */
637
636
  export type PubsubCommands = Commands<Groups['pubsub']>;
638
- /** The command groups of a database, a writing handle and a connection. */
637
+ /** Command groups available on a database, read-write handle, and connection. */
639
638
  export type CommandGroups = {
640
639
  readonly [G in keyof Groups]: Commands<Groups[G]>;
641
640
  };
642
- /** The command groups of a handle that can only read. */
641
+ /** Read-only command groups available on a read-only database handle. */
643
642
  export type ReadCommandGroups = {
644
643
  readonly [G in keyof Groups]: ReadCommands<Groups[G]>;
645
644
  };
646
- /** The command groups of a pipeline or a transaction. */
645
+ /** Queued command groups available on a pipeline or transaction. */
647
646
  export type QueueGroups = {
648
647
  readonly [G in keyof Groups]: Queue<Groups[G]>;
649
648
  };
@@ -1 +1 @@
1
- {"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../storage/redis/commands.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAML,KAAK,SAAS,EACd,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,IAAI,EACV,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,QAAQ,EACR,UAAU,EACV,cAAc,EACd,gBAAgB,EACjB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAK,KAAK,EAAE,YAAY,EAAC,MAAM,SAAS,CAAC;AAEhD,OAAO,EAAY,KAAK,YAAY,EAAC,MAAM,UAAU,CAAC;AACtD,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AACrC,OAAO,EAAC,GAAG,EAAE,KAAK,KAAK,EAAE,KAAK,QAAQ,EAAE,KAAK,KAAK,EAAC,MAAM,QAAQ,CAAC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