@s2-dev/streamstore 0.15.1 → 0.15.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.
Files changed (316) hide show
  1. package/README.md +16 -16
  2. package/bin/mcp-server.js +493 -683
  3. package/bin/mcp-server.js.map +55 -55
  4. package/dist/commonjs/funcs/basinsGetBasinConfig.d.ts +1 -1
  5. package/dist/commonjs/funcs/basinsGetBasinConfig.js +1 -1
  6. package/dist/commonjs/funcs/metricsAccountMetrics.d.ts +1 -1
  7. package/dist/commonjs/funcs/metricsAccountMetrics.js +1 -1
  8. package/dist/commonjs/funcs/metricsBasinMetrics.d.ts +1 -1
  9. package/dist/commonjs/funcs/metricsBasinMetrics.js +1 -1
  10. package/dist/commonjs/funcs/metricsStreamMetrics.d.ts +1 -1
  11. package/dist/commonjs/funcs/metricsStreamMetrics.js +1 -1
  12. package/dist/commonjs/funcs/recordsAppend.d.ts +0 -3
  13. package/dist/commonjs/funcs/recordsAppend.d.ts.map +1 -1
  14. package/dist/commonjs/funcs/recordsAppend.js +0 -3
  15. package/dist/commonjs/funcs/recordsAppend.js.map +1 -1
  16. package/dist/commonjs/funcs/recordsCheckTail.d.ts +0 -3
  17. package/dist/commonjs/funcs/recordsCheckTail.d.ts.map +1 -1
  18. package/dist/commonjs/funcs/recordsCheckTail.js +0 -3
  19. package/dist/commonjs/funcs/recordsCheckTail.js.map +1 -1
  20. package/dist/commonjs/funcs/recordsRead.d.ts +1 -4
  21. package/dist/commonjs/funcs/recordsRead.d.ts.map +1 -1
  22. package/dist/commonjs/funcs/recordsRead.js +2 -7
  23. package/dist/commonjs/funcs/recordsRead.js.map +1 -1
  24. package/dist/commonjs/lib/config.d.ts +3 -3
  25. package/dist/commonjs/lib/config.js +3 -3
  26. package/dist/commonjs/lib/event-streams.d.ts +4 -10
  27. package/dist/commonjs/lib/event-streams.d.ts.map +1 -1
  28. package/dist/commonjs/lib/event-streams.js +110 -194
  29. package/dist/commonjs/lib/event-streams.js.map +1 -1
  30. package/dist/commonjs/lib/files.d.ts +5 -0
  31. package/dist/commonjs/lib/files.d.ts.map +1 -1
  32. package/dist/commonjs/lib/files.js +41 -0
  33. package/dist/commonjs/lib/files.js.map +1 -1
  34. package/dist/commonjs/lib/matchers.d.ts.map +1 -1
  35. package/dist/commonjs/lib/matchers.js +1 -4
  36. package/dist/commonjs/lib/matchers.js.map +1 -1
  37. package/dist/commonjs/lib/security.d.ts +2 -2
  38. package/dist/commonjs/lib/security.d.ts.map +1 -1
  39. package/dist/commonjs/mcp-server/cli/start/command.d.ts.map +1 -1
  40. package/dist/commonjs/mcp-server/cli/start/command.js +7 -11
  41. package/dist/commonjs/mcp-server/cli/start/command.js.map +1 -1
  42. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  43. package/dist/commonjs/mcp-server/server.js +1 -1
  44. package/dist/commonjs/mcp-server/tools/basinsGetBasinConfig.js +1 -1
  45. package/dist/commonjs/mcp-server/tools/basinsGetBasinConfig.js.map +1 -1
  46. package/dist/commonjs/mcp-server/tools/metricsAccountMetrics.js +1 -1
  47. package/dist/commonjs/mcp-server/tools/metricsAccountMetrics.js.map +1 -1
  48. package/dist/commonjs/mcp-server/tools/metricsBasinMetrics.js +1 -1
  49. package/dist/commonjs/mcp-server/tools/metricsBasinMetrics.js.map +1 -1
  50. package/dist/commonjs/mcp-server/tools/metricsStreamMetrics.js +1 -1
  51. package/dist/commonjs/mcp-server/tools/metricsStreamMetrics.js.map +1 -1
  52. package/dist/commonjs/mcp-server/tools/recordsAppend.d.ts.map +1 -1
  53. package/dist/commonjs/mcp-server/tools/recordsAppend.js +1 -3
  54. package/dist/commonjs/mcp-server/tools/recordsAppend.js.map +1 -1
  55. package/dist/commonjs/mcp-server/tools/recordsCheckTail.d.ts.map +1 -1
  56. package/dist/commonjs/mcp-server/tools/recordsCheckTail.js +1 -3
  57. package/dist/commonjs/mcp-server/tools/recordsCheckTail.js.map +1 -1
  58. package/dist/commonjs/mcp-server/tools/recordsRead.d.ts.map +1 -1
  59. package/dist/commonjs/mcp-server/tools/recordsRead.js +1 -3
  60. package/dist/commonjs/mcp-server/tools/recordsRead.js.map +1 -1
  61. package/dist/commonjs/models/components/accesstokeninfo.d.ts +1 -2
  62. package/dist/commonjs/models/components/accesstokeninfo.d.ts.map +1 -1
  63. package/dist/commonjs/models/components/accesstokeninfo.js.map +1 -1
  64. package/dist/commonjs/models/components/accountmetricset.d.ts +6 -6
  65. package/dist/commonjs/models/components/accountmetricset.js +2 -2
  66. package/dist/commonjs/models/components/accumulation.d.ts +2 -6
  67. package/dist/commonjs/models/components/accumulation.d.ts.map +1 -1
  68. package/dist/commonjs/models/components/accumulation.js.map +1 -1
  69. package/dist/commonjs/models/components/appendack.d.ts +1 -1
  70. package/dist/commonjs/models/components/appendinput.d.ts +4 -4
  71. package/dist/commonjs/models/components/basinconfig.d.ts +2 -8
  72. package/dist/commonjs/models/components/basinconfig.d.ts.map +1 -1
  73. package/dist/commonjs/models/components/basinconfig.js.map +1 -1
  74. package/dist/commonjs/models/components/basinmetricset.d.ts +15 -15
  75. package/dist/commonjs/models/components/basinmetricset.js +5 -5
  76. package/dist/commonjs/models/components/createbasinrequest.d.ts +1 -2
  77. package/dist/commonjs/models/components/createbasinrequest.d.ts.map +1 -1
  78. package/dist/commonjs/models/components/createbasinrequest.js.map +1 -1
  79. package/dist/commonjs/models/components/gauge.d.ts +2 -5
  80. package/dist/commonjs/models/components/gauge.d.ts.map +1 -1
  81. package/dist/commonjs/models/components/gauge.js.map +1 -1
  82. package/dist/commonjs/models/components/listaccesstokensresponse.d.ts +2 -2
  83. package/dist/commonjs/models/components/listbasinsresponse.d.ts +1 -1
  84. package/dist/commonjs/models/components/liststreamsresponse.d.ts +1 -1
  85. package/dist/commonjs/models/components/metric.d.ts +4 -4
  86. package/dist/commonjs/models/components/readbatch.d.ts +2 -2
  87. package/dist/commonjs/models/components/readevent.d.ts +17 -67
  88. package/dist/commonjs/models/components/readevent.d.ts.map +1 -1
  89. package/dist/commonjs/models/components/readevent.js +27 -88
  90. package/dist/commonjs/models/components/readevent.js.map +1 -1
  91. package/dist/commonjs/models/components/retentionpolicy.d.ts +12 -0
  92. package/dist/commonjs/models/components/retentionpolicy.d.ts.map +1 -1
  93. package/dist/commonjs/models/components/retentionpolicy.js.map +1 -1
  94. package/dist/commonjs/models/components/streamposition.d.ts +1 -1
  95. package/dist/commonjs/models/components/timestampingconfig.d.ts +1 -1
  96. package/dist/commonjs/models/errors/apierror.d.ts.map +1 -1
  97. package/dist/commonjs/models/errors/apierror.js +8 -2
  98. package/dist/commonjs/models/errors/apierror.js.map +1 -1
  99. package/dist/commonjs/models/errors/appendconditionfailed.d.ts +1 -1
  100. package/dist/commonjs/models/errors/errorresponse.d.ts.map +1 -1
  101. package/dist/commonjs/models/errors/errorresponse.js +1 -3
  102. package/dist/commonjs/models/errors/errorresponse.js.map +1 -1
  103. package/dist/commonjs/models/operations/accountmetrics.d.ts +4 -4
  104. package/dist/commonjs/models/operations/append.d.ts +3 -2
  105. package/dist/commonjs/models/operations/append.d.ts.map +1 -1
  106. package/dist/commonjs/models/operations/append.js.map +1 -1
  107. package/dist/commonjs/models/operations/basinmetrics.d.ts +4 -4
  108. package/dist/commonjs/models/operations/createorreconfigurebasin.d.ts +1 -1
  109. package/dist/commonjs/models/operations/createorreconfigurestream.d.ts +1 -1
  110. package/dist/commonjs/models/operations/listaccesstokens.d.ts +2 -2
  111. package/dist/commonjs/models/operations/listbasins.d.ts +3 -4
  112. package/dist/commonjs/models/operations/listbasins.d.ts.map +1 -1
  113. package/dist/commonjs/models/operations/listbasins.js.map +1 -1
  114. package/dist/commonjs/models/operations/liststreams.d.ts +3 -4
  115. package/dist/commonjs/models/operations/liststreams.d.ts.map +1 -1
  116. package/dist/commonjs/models/operations/liststreams.js.map +1 -1
  117. package/dist/commonjs/models/operations/read.d.ts +4 -3
  118. package/dist/commonjs/models/operations/read.d.ts.map +1 -1
  119. package/dist/commonjs/models/operations/read.js +4 -6
  120. package/dist/commonjs/models/operations/read.js.map +1 -1
  121. package/dist/commonjs/sdk/basins.d.ts +1 -1
  122. package/dist/commonjs/sdk/basins.js +1 -1
  123. package/dist/commonjs/sdk/metrics.d.ts +3 -3
  124. package/dist/commonjs/sdk/metrics.js +3 -3
  125. package/dist/commonjs/sdk/records.d.ts +1 -10
  126. package/dist/commonjs/sdk/records.d.ts.map +1 -1
  127. package/dist/commonjs/sdk/records.js +1 -10
  128. package/dist/commonjs/sdk/records.js.map +1 -1
  129. package/dist/commonjs/types/constdatetime.js +1 -1
  130. package/dist/esm/funcs/basinsGetBasinConfig.d.ts +1 -1
  131. package/dist/esm/funcs/basinsGetBasinConfig.js +1 -1
  132. package/dist/esm/funcs/metricsAccountMetrics.d.ts +1 -1
  133. package/dist/esm/funcs/metricsAccountMetrics.js +1 -1
  134. package/dist/esm/funcs/metricsBasinMetrics.d.ts +1 -1
  135. package/dist/esm/funcs/metricsBasinMetrics.js +1 -1
  136. package/dist/esm/funcs/metricsStreamMetrics.d.ts +1 -1
  137. package/dist/esm/funcs/metricsStreamMetrics.js +1 -1
  138. package/dist/esm/funcs/recordsAppend.d.ts +0 -3
  139. package/dist/esm/funcs/recordsAppend.d.ts.map +1 -1
  140. package/dist/esm/funcs/recordsAppend.js +0 -3
  141. package/dist/esm/funcs/recordsAppend.js.map +1 -1
  142. package/dist/esm/funcs/recordsCheckTail.d.ts +0 -3
  143. package/dist/esm/funcs/recordsCheckTail.d.ts.map +1 -1
  144. package/dist/esm/funcs/recordsCheckTail.js +0 -3
  145. package/dist/esm/funcs/recordsCheckTail.js.map +1 -1
  146. package/dist/esm/funcs/recordsRead.d.ts +1 -4
  147. package/dist/esm/funcs/recordsRead.d.ts.map +1 -1
  148. package/dist/esm/funcs/recordsRead.js +2 -7
  149. package/dist/esm/funcs/recordsRead.js.map +1 -1
  150. package/dist/esm/lib/config.d.ts +3 -3
  151. package/dist/esm/lib/config.js +3 -3
  152. package/dist/esm/lib/event-streams.d.ts +4 -10
  153. package/dist/esm/lib/event-streams.d.ts.map +1 -1
  154. package/dist/esm/lib/event-streams.js +110 -193
  155. package/dist/esm/lib/event-streams.js.map +1 -1
  156. package/dist/esm/lib/files.d.ts +5 -0
  157. package/dist/esm/lib/files.d.ts.map +1 -1
  158. package/dist/esm/lib/files.js +40 -0
  159. package/dist/esm/lib/files.js.map +1 -1
  160. package/dist/esm/lib/matchers.d.ts.map +1 -1
  161. package/dist/esm/lib/matchers.js +1 -4
  162. package/dist/esm/lib/matchers.js.map +1 -1
  163. package/dist/esm/lib/security.d.ts +2 -2
  164. package/dist/esm/lib/security.d.ts.map +1 -1
  165. package/dist/esm/mcp-server/cli/start/command.d.ts.map +1 -1
  166. package/dist/esm/mcp-server/cli/start/command.js +7 -11
  167. package/dist/esm/mcp-server/cli/start/command.js.map +1 -1
  168. package/dist/esm/mcp-server/mcp-server.js +1 -1
  169. package/dist/esm/mcp-server/server.js +1 -1
  170. package/dist/esm/mcp-server/tools/basinsGetBasinConfig.js +1 -1
  171. package/dist/esm/mcp-server/tools/basinsGetBasinConfig.js.map +1 -1
  172. package/dist/esm/mcp-server/tools/metricsAccountMetrics.js +1 -1
  173. package/dist/esm/mcp-server/tools/metricsAccountMetrics.js.map +1 -1
  174. package/dist/esm/mcp-server/tools/metricsBasinMetrics.js +1 -1
  175. package/dist/esm/mcp-server/tools/metricsBasinMetrics.js.map +1 -1
  176. package/dist/esm/mcp-server/tools/metricsStreamMetrics.js +1 -1
  177. package/dist/esm/mcp-server/tools/metricsStreamMetrics.js.map +1 -1
  178. package/dist/esm/mcp-server/tools/recordsAppend.d.ts.map +1 -1
  179. package/dist/esm/mcp-server/tools/recordsAppend.js +1 -3
  180. package/dist/esm/mcp-server/tools/recordsAppend.js.map +1 -1
  181. package/dist/esm/mcp-server/tools/recordsCheckTail.d.ts.map +1 -1
  182. package/dist/esm/mcp-server/tools/recordsCheckTail.js +1 -3
  183. package/dist/esm/mcp-server/tools/recordsCheckTail.js.map +1 -1
  184. package/dist/esm/mcp-server/tools/recordsRead.d.ts.map +1 -1
  185. package/dist/esm/mcp-server/tools/recordsRead.js +1 -3
  186. package/dist/esm/mcp-server/tools/recordsRead.js.map +1 -1
  187. package/dist/esm/models/components/accesstokeninfo.d.ts +1 -2
  188. package/dist/esm/models/components/accesstokeninfo.d.ts.map +1 -1
  189. package/dist/esm/models/components/accesstokeninfo.js.map +1 -1
  190. package/dist/esm/models/components/accountmetricset.d.ts +6 -6
  191. package/dist/esm/models/components/accountmetricset.js +2 -2
  192. package/dist/esm/models/components/accumulation.d.ts +2 -6
  193. package/dist/esm/models/components/accumulation.d.ts.map +1 -1
  194. package/dist/esm/models/components/accumulation.js.map +1 -1
  195. package/dist/esm/models/components/appendack.d.ts +1 -1
  196. package/dist/esm/models/components/appendinput.d.ts +4 -4
  197. package/dist/esm/models/components/basinconfig.d.ts +2 -8
  198. package/dist/esm/models/components/basinconfig.d.ts.map +1 -1
  199. package/dist/esm/models/components/basinconfig.js.map +1 -1
  200. package/dist/esm/models/components/basinmetricset.d.ts +15 -15
  201. package/dist/esm/models/components/basinmetricset.js +5 -5
  202. package/dist/esm/models/components/createbasinrequest.d.ts +1 -2
  203. package/dist/esm/models/components/createbasinrequest.d.ts.map +1 -1
  204. package/dist/esm/models/components/createbasinrequest.js.map +1 -1
  205. package/dist/esm/models/components/gauge.d.ts +2 -5
  206. package/dist/esm/models/components/gauge.d.ts.map +1 -1
  207. package/dist/esm/models/components/gauge.js.map +1 -1
  208. package/dist/esm/models/components/listaccesstokensresponse.d.ts +2 -2
  209. package/dist/esm/models/components/listbasinsresponse.d.ts +1 -1
  210. package/dist/esm/models/components/liststreamsresponse.d.ts +1 -1
  211. package/dist/esm/models/components/metric.d.ts +4 -4
  212. package/dist/esm/models/components/readbatch.d.ts +2 -2
  213. package/dist/esm/models/components/readevent.d.ts +17 -67
  214. package/dist/esm/models/components/readevent.d.ts.map +1 -1
  215. package/dist/esm/models/components/readevent.js +26 -85
  216. package/dist/esm/models/components/readevent.js.map +1 -1
  217. package/dist/esm/models/components/retentionpolicy.d.ts +12 -0
  218. package/dist/esm/models/components/retentionpolicy.d.ts.map +1 -1
  219. package/dist/esm/models/components/retentionpolicy.js.map +1 -1
  220. package/dist/esm/models/components/streamposition.d.ts +1 -1
  221. package/dist/esm/models/components/timestampingconfig.d.ts +1 -1
  222. package/dist/esm/models/errors/apierror.d.ts.map +1 -1
  223. package/dist/esm/models/errors/apierror.js +8 -2
  224. package/dist/esm/models/errors/apierror.js.map +1 -1
  225. package/dist/esm/models/errors/appendconditionfailed.d.ts +1 -1
  226. package/dist/esm/models/errors/errorresponse.d.ts.map +1 -1
  227. package/dist/esm/models/errors/errorresponse.js +1 -3
  228. package/dist/esm/models/errors/errorresponse.js.map +1 -1
  229. package/dist/esm/models/operations/accountmetrics.d.ts +4 -4
  230. package/dist/esm/models/operations/append.d.ts +3 -2
  231. package/dist/esm/models/operations/append.d.ts.map +1 -1
  232. package/dist/esm/models/operations/append.js.map +1 -1
  233. package/dist/esm/models/operations/basinmetrics.d.ts +4 -4
  234. package/dist/esm/models/operations/createorreconfigurebasin.d.ts +1 -1
  235. package/dist/esm/models/operations/createorreconfigurestream.d.ts +1 -1
  236. package/dist/esm/models/operations/listaccesstokens.d.ts +2 -2
  237. package/dist/esm/models/operations/listbasins.d.ts +3 -4
  238. package/dist/esm/models/operations/listbasins.d.ts.map +1 -1
  239. package/dist/esm/models/operations/listbasins.js.map +1 -1
  240. package/dist/esm/models/operations/liststreams.d.ts +3 -4
  241. package/dist/esm/models/operations/liststreams.d.ts.map +1 -1
  242. package/dist/esm/models/operations/liststreams.js.map +1 -1
  243. package/dist/esm/models/operations/read.d.ts +4 -3
  244. package/dist/esm/models/operations/read.d.ts.map +1 -1
  245. package/dist/esm/models/operations/read.js +4 -6
  246. package/dist/esm/models/operations/read.js.map +1 -1
  247. package/dist/esm/sdk/basins.d.ts +1 -1
  248. package/dist/esm/sdk/basins.js +1 -1
  249. package/dist/esm/sdk/metrics.d.ts +3 -3
  250. package/dist/esm/sdk/metrics.js +3 -3
  251. package/dist/esm/sdk/records.d.ts +1 -10
  252. package/dist/esm/sdk/records.d.ts.map +1 -1
  253. package/dist/esm/sdk/records.js +1 -10
  254. package/dist/esm/sdk/records.js.map +1 -1
  255. package/dist/esm/types/constdatetime.js +1 -1
  256. package/docs/sdks/basins/README.md +2 -2
  257. package/docs/sdks/metrics/README.md +8 -8
  258. package/docs/sdks/records/README.md +4 -4
  259. package/jsr.json +1 -1
  260. package/package.json +3 -3
  261. package/src/funcs/basinsGetBasinConfig.ts +1 -1
  262. package/src/funcs/metricsAccountMetrics.ts +1 -1
  263. package/src/funcs/metricsBasinMetrics.ts +1 -1
  264. package/src/funcs/metricsStreamMetrics.ts +1 -1
  265. package/src/funcs/recordsAppend.ts +0 -3
  266. package/src/funcs/recordsCheckTail.ts +0 -3
  267. package/src/funcs/recordsRead.ts +2 -7
  268. package/src/lib/config.ts +3 -3
  269. package/src/lib/event-streams.ts +114 -231
  270. package/src/lib/files.ts +42 -0
  271. package/src/lib/matchers.ts +1 -4
  272. package/src/lib/security.ts +2 -2
  273. package/src/mcp-server/cli/start/command.ts +7 -12
  274. package/src/mcp-server/mcp-server.ts +1 -1
  275. package/src/mcp-server/server.ts +1 -1
  276. package/src/mcp-server/tools/basinsGetBasinConfig.ts +1 -1
  277. package/src/mcp-server/tools/metricsAccountMetrics.ts +1 -1
  278. package/src/mcp-server/tools/metricsBasinMetrics.ts +1 -1
  279. package/src/mcp-server/tools/metricsStreamMetrics.ts +1 -1
  280. package/src/mcp-server/tools/recordsAppend.ts +1 -3
  281. package/src/mcp-server/tools/recordsCheckTail.ts +1 -3
  282. package/src/mcp-server/tools/recordsRead.ts +1 -3
  283. package/src/models/components/accesstokeninfo.ts +1 -2
  284. package/src/models/components/accountmetricset.ts +2 -2
  285. package/src/models/components/accumulation.ts +2 -6
  286. package/src/models/components/appendack.ts +1 -1
  287. package/src/models/components/appendinput.ts +4 -4
  288. package/src/models/components/basinconfig.ts +2 -8
  289. package/src/models/components/basinmetricset.ts +5 -5
  290. package/src/models/components/createbasinrequest.ts +1 -2
  291. package/src/models/components/gauge.ts +2 -5
  292. package/src/models/components/listaccesstokensresponse.ts +2 -2
  293. package/src/models/components/listbasinsresponse.ts +1 -1
  294. package/src/models/components/liststreamsresponse.ts +1 -1
  295. package/src/models/components/metric.ts +4 -4
  296. package/src/models/components/readbatch.ts +2 -2
  297. package/src/models/components/readevent.ts +36 -139
  298. package/src/models/components/retentionpolicy.ts +12 -0
  299. package/src/models/components/streamposition.ts +1 -1
  300. package/src/models/components/timestampingconfig.ts +1 -1
  301. package/src/models/errors/apierror.ts +8 -2
  302. package/src/models/errors/appendconditionfailed.ts +1 -1
  303. package/src/models/errors/errorresponse.ts +1 -3
  304. package/src/models/operations/accountmetrics.ts +4 -4
  305. package/src/models/operations/append.ts +3 -2
  306. package/src/models/operations/basinmetrics.ts +4 -4
  307. package/src/models/operations/createorreconfigurebasin.ts +1 -1
  308. package/src/models/operations/createorreconfigurestream.ts +1 -1
  309. package/src/models/operations/listaccesstokens.ts +2 -2
  310. package/src/models/operations/listbasins.ts +3 -4
  311. package/src/models/operations/liststreams.ts +3 -4
  312. package/src/models/operations/read.ts +7 -9
  313. package/src/sdk/basins.ts +1 -1
  314. package/src/sdk/metrics.ts +3 -3
  315. package/src/sdk/records.ts +1 -10
  316. package/src/types/constdatetime.ts +1 -1
@@ -16,17 +16,11 @@ import {
16
16
 
17
17
  export type BasinConfig = {
18
18
  /**
19
- * Create stream on append if it doesn't exist,
20
- *
21
- * @remarks
22
- * using the default stream configuration.
19
+ * Create stream on append if it doesn't exist, using the default stream configuration.
23
20
  */
24
21
  createStreamOnAppend?: boolean | undefined;
25
22
  /**
26
- * Create stream on read if it doesn't exist,
27
- *
28
- * @remarks
29
- * using the default stream configuration.
23
+ * Create stream on read if it doesn't exist, using the default stream configuration.
30
24
  */
31
25
  createStreamOnRead?: boolean | undefined;
32
26
  defaultStreamConfig?: StreamConfig | null | undefined;
@@ -7,11 +7,11 @@ import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
8
  export const BasinMetricSet = {
9
9
  Storage: "storage",
10
- AppendOps: "append_ops",
11
- ReadOps: "read_ops",
12
- ReadThroughput: "read_throughput",
13
- AppendThroughput: "append_throughput",
14
- BasinOps: "basin_ops",
10
+ AppendOps: "append-ops",
11
+ ReadOps: "read-ops",
12
+ ReadThroughput: "read-throughput",
13
+ AppendThroughput: "append-throughput",
14
+ BasinOps: "basin-ops",
15
15
  } as const;
16
16
  export type BasinMetricSet = ClosedEnum<typeof BasinMetricSet>;
17
17
 
@@ -25,8 +25,7 @@ export type CreateBasinRequest = {
25
25
  * Basin name which must be globally unique.
26
26
  *
27
27
  * @remarks
28
- * It can be between 8 and 48 characters in length,
29
- * and comprise lowercase letters, numbers and hyphens.
28
+ * It can be between 8 and 48 characters in length, and comprise lowercase letters, numbers and hyphens.
30
29
  * It cannot begin or end with a hyphen.
31
30
  */
32
31
  basin: string;
@@ -24,11 +24,8 @@ export type Gauge = {
24
24
  * Timeseries values.
25
25
  *
26
26
  * @remarks
27
- *
28
- * Each element is a tuple containing the seconds since Unix epoch, followed by the data
29
- * point.
30
- *
31
- * The data point represents the value at the instant of the epoch.
27
+ * Each element is a tuple of a timestamp in Unix epoch seconds and a data point.
28
+ * The data point represents the value at the instant of the timestamp.
32
29
  */
33
30
  values: Array<Array<number | number>>;
34
31
  };
@@ -16,11 +16,11 @@ import {
16
16
 
17
17
  export type ListAccessTokensResponse = {
18
18
  /**
19
- * Access tokens information.
19
+ * Matching access tokens.
20
20
  */
21
21
  accessTokens: Array<AccessTokenInfo>;
22
22
  /**
23
- * Indicates that there are more results that can be listed with `start_after`.
23
+ * Indicates that there are more access tokens that match the criteria.
24
24
  */
25
25
  hasMore: boolean;
26
26
  };
@@ -20,7 +20,7 @@ export type ListBasinsResponse = {
20
20
  */
21
21
  basins: Array<BasinInfo>;
22
22
  /**
23
- * Indicates that there are more results that can be listed with `start_after`.
23
+ * Indicates that there are more basins that match the criteria.
24
24
  */
25
25
  hasMore: boolean;
26
26
  };
@@ -16,7 +16,7 @@ import {
16
16
 
17
17
  export type ListStreamsResponse = {
18
18
  /**
19
- * Indicates that there are more results that can be listed with `start_after`.
19
+ * Indicates that there are more results that match the criteria.
20
20
  */
21
21
  hasMore: boolean;
22
22
  /**
@@ -32,21 +32,21 @@ import {
32
32
  } from "./scalar.js";
33
33
 
34
34
  /**
35
- * A set of string labels.
35
+ * Set of string labels.
36
36
  */
37
37
  export type Four = {
38
38
  label: Label;
39
39
  };
40
40
 
41
41
  /**
42
- * A named series of (timestamp, value) points each representing an instantaneous value.
42
+ * Named series of `(timestamp, value)` points each representing an instantaneous value.
43
43
  */
44
44
  export type Three = {
45
45
  gauge: Gauge;
46
46
  };
47
47
 
48
48
  /**
49
- * A named series of (timestamp, value) points representing an accumulation over a specified
49
+ * Named series of `(timestamp, value)` points representing an accumulation over a specified
50
50
  *
51
51
  * @remarks
52
52
  * bucket.
@@ -56,7 +56,7 @@ export type Two = {
56
56
  };
57
57
 
58
58
  /**
59
- * A single named value.
59
+ * Single named value.
60
60
  */
61
61
  export type Metric1 = {
62
62
  scalar: Scalar;
@@ -21,10 +21,10 @@ import {
21
21
 
22
22
  export type ReadBatch = {
23
23
  /**
24
- * Records that are durably sequenced on the stream,
24
+ * Records that are durably sequenced on the stream, retrieved based on the requested criteria.
25
25
  *
26
26
  * @remarks
27
- * retrieved based on the requested criteria.
27
+ * This can only be empty in response to a regular (non-SSE) read, if the request cannot be satisfied without violating an explicit limit.
28
28
  */
29
29
  records: Array<SequencedRecord>;
30
30
  tail?: StreamPosition | null | undefined;
@@ -19,40 +19,24 @@ import {
19
19
  ReadBatch$Outbound,
20
20
  ReadBatch$outboundSchema,
21
21
  } from "./readbatch.js";
22
- import {
23
- TailResponse,
24
- TailResponse$inboundSchema,
25
- TailResponse$Outbound,
26
- TailResponse$outboundSchema,
27
- } from "./tailresponse.js";
28
22
 
29
- export const ReadEvent4Event = {
23
+ export const ReadEvent3Event = {
30
24
  Ping: "ping",
31
25
  } as const;
32
- export type ReadEvent4Event = ClosedEnum<typeof ReadEvent4Event>;
26
+ export type ReadEvent3Event = ClosedEnum<typeof ReadEvent3Event>;
33
27
 
34
28
  export type Ping = {
35
29
  data: PingEventData;
36
- event: ReadEvent4Event;
37
- };
38
-
39
- export const ReadEvent3Event = {
40
- Error: "error",
41
- } as const;
42
- export type ReadEvent3Event = ClosedEnum<typeof ReadEvent3Event>;
43
-
44
- export type ErrorT = {
45
- data: string;
46
30
  event: ReadEvent3Event;
47
31
  };
48
32
 
49
33
  export const ReadEventEvent = {
50
- Tail: "tail",
34
+ Error: "error",
51
35
  } as const;
52
36
  export type ReadEventEvent = ClosedEnum<typeof ReadEventEvent>;
53
37
 
54
- export type ReadEvent2 = {
55
- data: TailResponse;
38
+ export type ErrorT = {
39
+ data: string;
56
40
  event: ReadEventEvent;
57
41
  };
58
42
 
@@ -67,27 +51,27 @@ export type Batch = {
67
51
  id: string;
68
52
  };
69
53
 
70
- export type ReadEvent = ReadEvent2 | ErrorT | Ping | Batch;
54
+ export type ReadEvent = Batch | ErrorT | Ping;
71
55
 
72
56
  /** @internal */
73
- export const ReadEvent4Event$inboundSchema: z.ZodNativeEnum<
74
- typeof ReadEvent4Event
75
- > = z.nativeEnum(ReadEvent4Event);
57
+ export const ReadEvent3Event$inboundSchema: z.ZodNativeEnum<
58
+ typeof ReadEvent3Event
59
+ > = z.nativeEnum(ReadEvent3Event);
76
60
 
77
61
  /** @internal */
78
- export const ReadEvent4Event$outboundSchema: z.ZodNativeEnum<
79
- typeof ReadEvent4Event
80
- > = ReadEvent4Event$inboundSchema;
62
+ export const ReadEvent3Event$outboundSchema: z.ZodNativeEnum<
63
+ typeof ReadEvent3Event
64
+ > = ReadEvent3Event$inboundSchema;
81
65
 
82
66
  /**
83
67
  * @internal
84
68
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
85
69
  */
86
- export namespace ReadEvent4Event$ {
87
- /** @deprecated use `ReadEvent4Event$inboundSchema` instead. */
88
- export const inboundSchema = ReadEvent4Event$inboundSchema;
89
- /** @deprecated use `ReadEvent4Event$outboundSchema` instead. */
90
- export const outboundSchema = ReadEvent4Event$outboundSchema;
70
+ export namespace ReadEvent3Event$ {
71
+ /** @deprecated use `ReadEvent3Event$inboundSchema` instead. */
72
+ export const inboundSchema = ReadEvent3Event$inboundSchema;
73
+ /** @deprecated use `ReadEvent3Event$outboundSchema` instead. */
74
+ export const outboundSchema = ReadEvent3Event$outboundSchema;
91
75
  }
92
76
 
93
77
  /** @internal */
@@ -104,7 +88,7 @@ export const Ping$inboundSchema: z.ZodType<Ping, z.ZodTypeDef, unknown> = z
104
88
  return z.NEVER;
105
89
  }
106
90
  }).pipe(PingEventData$inboundSchema),
107
- event: ReadEvent4Event$inboundSchema,
91
+ event: ReadEvent3Event$inboundSchema,
108
92
  });
109
93
 
110
94
  /** @internal */
@@ -117,7 +101,7 @@ export type Ping$Outbound = {
117
101
  export const Ping$outboundSchema: z.ZodType<Ping$Outbound, z.ZodTypeDef, Ping> =
118
102
  z.object({
119
103
  data: PingEventData$outboundSchema,
120
- event: ReadEvent4Event$outboundSchema,
104
+ event: ReadEvent3Event$outboundSchema,
121
105
  });
122
106
 
123
107
  /**
@@ -148,31 +132,31 @@ export function pingFromJSON(
148
132
  }
149
133
 
150
134
  /** @internal */
151
- export const ReadEvent3Event$inboundSchema: z.ZodNativeEnum<
152
- typeof ReadEvent3Event
153
- > = z.nativeEnum(ReadEvent3Event);
135
+ export const ReadEventEvent$inboundSchema: z.ZodNativeEnum<
136
+ typeof ReadEventEvent
137
+ > = z.nativeEnum(ReadEventEvent);
154
138
 
155
139
  /** @internal */
156
- export const ReadEvent3Event$outboundSchema: z.ZodNativeEnum<
157
- typeof ReadEvent3Event
158
- > = ReadEvent3Event$inboundSchema;
140
+ export const ReadEventEvent$outboundSchema: z.ZodNativeEnum<
141
+ typeof ReadEventEvent
142
+ > = ReadEventEvent$inboundSchema;
159
143
 
160
144
  /**
161
145
  * @internal
162
146
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
163
147
  */
164
- export namespace ReadEvent3Event$ {
165
- /** @deprecated use `ReadEvent3Event$inboundSchema` instead. */
166
- export const inboundSchema = ReadEvent3Event$inboundSchema;
167
- /** @deprecated use `ReadEvent3Event$outboundSchema` instead. */
168
- export const outboundSchema = ReadEvent3Event$outboundSchema;
148
+ export namespace ReadEventEvent$ {
149
+ /** @deprecated use `ReadEventEvent$inboundSchema` instead. */
150
+ export const inboundSchema = ReadEventEvent$inboundSchema;
151
+ /** @deprecated use `ReadEventEvent$outboundSchema` instead. */
152
+ export const outboundSchema = ReadEventEvent$outboundSchema;
169
153
  }
170
154
 
171
155
  /** @internal */
172
156
  export const ErrorT$inboundSchema: z.ZodType<ErrorT, z.ZodTypeDef, unknown> = z
173
157
  .object({
174
158
  data: z.string(),
175
- event: ReadEvent3Event$inboundSchema,
159
+ event: ReadEventEvent$inboundSchema,
176
160
  });
177
161
 
178
162
  /** @internal */
@@ -188,7 +172,7 @@ export const ErrorT$outboundSchema: z.ZodType<
188
172
  ErrorT
189
173
  > = z.object({
190
174
  data: z.string(),
191
- event: ReadEvent3Event$outboundSchema,
175
+ event: ReadEventEvent$outboundSchema,
192
176
  });
193
177
 
194
178
  /**
@@ -218,90 +202,6 @@ export function errorFromJSON(
218
202
  );
219
203
  }
220
204
 
221
- /** @internal */
222
- export const ReadEventEvent$inboundSchema: z.ZodNativeEnum<
223
- typeof ReadEventEvent
224
- > = z.nativeEnum(ReadEventEvent);
225
-
226
- /** @internal */
227
- export const ReadEventEvent$outboundSchema: z.ZodNativeEnum<
228
- typeof ReadEventEvent
229
- > = ReadEventEvent$inboundSchema;
230
-
231
- /**
232
- * @internal
233
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
234
- */
235
- export namespace ReadEventEvent$ {
236
- /** @deprecated use `ReadEventEvent$inboundSchema` instead. */
237
- export const inboundSchema = ReadEventEvent$inboundSchema;
238
- /** @deprecated use `ReadEventEvent$outboundSchema` instead. */
239
- export const outboundSchema = ReadEventEvent$outboundSchema;
240
- }
241
-
242
- /** @internal */
243
- export const ReadEvent2$inboundSchema: z.ZodType<
244
- ReadEvent2,
245
- z.ZodTypeDef,
246
- unknown
247
- > = z.object({
248
- data: z.string().transform((v, ctx) => {
249
- try {
250
- return JSON.parse(v);
251
- } catch (err) {
252
- ctx.addIssue({
253
- code: z.ZodIssueCode.custom,
254
- message: `malformed json: ${err}`,
255
- });
256
- return z.NEVER;
257
- }
258
- }).pipe(TailResponse$inboundSchema),
259
- event: ReadEventEvent$inboundSchema,
260
- });
261
-
262
- /** @internal */
263
- export type ReadEvent2$Outbound = {
264
- data: TailResponse$Outbound;
265
- event: string;
266
- };
267
-
268
- /** @internal */
269
- export const ReadEvent2$outboundSchema: z.ZodType<
270
- ReadEvent2$Outbound,
271
- z.ZodTypeDef,
272
- ReadEvent2
273
- > = z.object({
274
- data: TailResponse$outboundSchema,
275
- event: ReadEventEvent$outboundSchema,
276
- });
277
-
278
- /**
279
- * @internal
280
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
281
- */
282
- export namespace ReadEvent2$ {
283
- /** @deprecated use `ReadEvent2$inboundSchema` instead. */
284
- export const inboundSchema = ReadEvent2$inboundSchema;
285
- /** @deprecated use `ReadEvent2$outboundSchema` instead. */
286
- export const outboundSchema = ReadEvent2$outboundSchema;
287
- /** @deprecated use `ReadEvent2$Outbound` instead. */
288
- export type Outbound = ReadEvent2$Outbound;
289
- }
290
-
291
- export function readEvent2ToJSON(readEvent2: ReadEvent2): string {
292
- return JSON.stringify(ReadEvent2$outboundSchema.parse(readEvent2));
293
- }
294
-
295
- export function readEvent2FromJSON(
296
- jsonString: string,
297
- ): SafeParseResult<ReadEvent2, SDKValidationError> {
298
- return safeParse(
299
- jsonString,
300
- (x) => ReadEvent2$inboundSchema.parse(JSON.parse(x)),
301
- `Failed to parse 'ReadEvent2' from JSON`,
302
- );
303
- }
304
-
305
205
  /** @internal */
306
206
  export const Event$inboundSchema: z.ZodNativeEnum<typeof Event> = z.nativeEnum(
307
207
  Event,
@@ -391,18 +291,16 @@ export const ReadEvent$inboundSchema: z.ZodType<
391
291
  z.ZodTypeDef,
392
292
  unknown
393
293
  > = z.union([
394
- z.lazy(() => ReadEvent2$inboundSchema),
294
+ z.lazy(() => Batch$inboundSchema),
395
295
  z.lazy(() => ErrorT$inboundSchema),
396
296
  z.lazy(() => Ping$inboundSchema),
397
- z.lazy(() => Batch$inboundSchema),
398
297
  ]);
399
298
 
400
299
  /** @internal */
401
300
  export type ReadEvent$Outbound =
402
- | ReadEvent2$Outbound
301
+ | Batch$Outbound
403
302
  | ErrorT$Outbound
404
- | Ping$Outbound
405
- | Batch$Outbound;
303
+ | Ping$Outbound;
406
304
 
407
305
  /** @internal */
408
306
  export const ReadEvent$outboundSchema: z.ZodType<
@@ -410,10 +308,9 @@ export const ReadEvent$outboundSchema: z.ZodType<
410
308
  z.ZodTypeDef,
411
309
  ReadEvent
412
310
  > = z.union([
413
- z.lazy(() => ReadEvent2$outboundSchema),
311
+ z.lazy(() => Batch$outboundSchema),
414
312
  z.lazy(() => ErrorT$outboundSchema),
415
313
  z.lazy(() => Ping$outboundSchema),
416
- z.lazy(() => Batch$outboundSchema),
417
314
  ]);
418
315
 
419
316
  /**
@@ -7,7 +7,19 @@ import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
9
 
10
+ /**
11
+ * Age in seconds for automatic trimming of records older than this threshold.
12
+ *
13
+ * @remarks
14
+ * If this is set to 0, the stream will have infinite retention.
15
+ */
10
16
  export type One = {
17
+ /**
18
+ * Age in seconds for automatic trimming of records older than this threshold.
19
+ *
20
+ * @remarks
21
+ * If this is set to 0, the stream will have infinite retention.
22
+ */
11
23
  age: number;
12
24
  };
13
25
 
@@ -17,7 +17,7 @@ export type StreamPosition = {
17
17
  */
18
18
  seqNum: number;
19
19
  /**
20
- * Timestamp, which may be user-specified or assigned by the service.
20
+ * Timestamp, which may be client-specified or assigned by the service.
21
21
  *
22
22
  * @remarks
23
23
  * If it is assigned by the service, it will represent milliseconds since Unix epoch.
@@ -18,7 +18,7 @@ export type TimestampingConfig = {
18
18
  * Allow client-specified timestamps to exceed the arrival time.
19
19
  *
20
20
  * @remarks
21
- * If this is false or not set, client timestamps will be capped at the arrival time.
21
+ * If this is `false` or not set, client timestamps will be capped at the arrival time.
22
22
  */
23
23
  uncapped?: boolean | null | undefined;
24
24
  };
@@ -25,8 +25,14 @@ export class APIError extends S2Error {
25
25
  }`;
26
26
  }
27
27
  const body = httpMeta.body || `""`;
28
- message += body.length > 100 ? "\n" : " ";
29
- message += `Body ${body}`;
28
+ message += body.length > 100 ? "\n" : ". ";
29
+ let bodyDisplay = body;
30
+ if (body.length > 10000) {
31
+ const truncated = body.substring(0, 10000);
32
+ const remaining = body.length - 10000;
33
+ bodyDisplay = `${truncated}...and ${remaining} more chars`;
34
+ }
35
+ message += `Body: ${bodyDisplay}`;
30
36
  message = message.trim();
31
37
  super(message, httpMeta);
32
38
  this.name = "APIError";
@@ -108,7 +108,7 @@ export class FencingToken extends S2Error {
108
108
  }
109
109
 
110
110
  /**
111
- * Failure response message when an Append is aborted due to a failed condition.
111
+ * Aborted due to a failed condition.
112
112
  */
113
113
  export type AppendConditionFailed = FencingToken | SeqNum;
114
114
 
@@ -20,9 +20,7 @@ export class ErrorResponse extends S2Error {
20
20
  err: ErrorResponseData,
21
21
  httpMeta: { response: Response; request: Request; body: string },
22
22
  ) {
23
- const message = "message" in err && typeof err.message === "string"
24
- ? err.message
25
- : `API error occurred: ${JSON.stringify(err)}`;
23
+ const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
26
24
  super(message, httpMeta);
27
25
  this.data$ = err;
28
26
  if (err.code != null) this.code = err.code;
@@ -10,19 +10,19 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
11
  export type AccountMetricsRequest = {
12
12
  /**
13
- * Metric type to return.
13
+ * Metric set to return.
14
14
  */
15
15
  set: components.AccountMetricSet;
16
16
  /**
17
- * Start timestamp, in Unix epoch seconds, if applicable for metric set.
17
+ * Start timestamp as Unix epoch seconds, if applicable for the metric set.
18
18
  */
19
19
  start?: number | undefined;
20
20
  /**
21
- * End timestamp, in Unix epoch seconds, if applicable for metric set.
21
+ * End timestamp as Unix epoch seconds, if applicable for the metric set.
22
22
  */
23
23
  end?: number | undefined;
24
24
  /**
25
- * For timeseries metric sets, the interval to aggregate over.
25
+ * Interval to aggregate over for timeseries metric sets.
26
26
  */
27
27
  interval?: components.TimeseriesInterval | undefined;
28
28
  };
@@ -22,10 +22,11 @@ export type AppendRequest = {
22
22
  */
23
23
  stream: string;
24
24
  /**
25
- * Define treatment of blob fields when exchanging records as JSON.
25
+ * Defines the interpretation of record data (header name, header value, and body) with the JSON content type.
26
26
  *
27
27
  * @remarks
28
- * The default is `raw`.
28
+ * Use `raw` (default) for efficient transmission and storage of Unicode data — storage will be in UTF-8.
29
+ * Use `base64` for safe transmission with efficient storage of binary data.
29
30
  */
30
31
  s2Format?: components.S2Format | undefined;
31
32
  /**
@@ -10,19 +10,19 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
11
  export type BasinMetricsRequest = {
12
12
  /**
13
- * Metric type to return.
13
+ * Metric set to return.
14
14
  */
15
15
  set: components.BasinMetricSet;
16
16
  /**
17
- * Start timestamp, in Unix epoch seconds, if applicable for metric set.
17
+ * Start timestamp as Unix epoch seconds, if applicable for the metric set.
18
18
  */
19
19
  start?: number | undefined;
20
20
  /**
21
- * End timestamp, in Unix epoch seconds, if applicable for metric set.
21
+ * End timestamp as Unix epoch seconds, if applicable for the metric set.
22
22
  */
23
23
  end?: number | undefined;
24
24
  /**
25
- * For timeseries metric sets, the interval to aggregate over.
25
+ * Interval to aggregate over for timeseries metric sets.
26
26
  */
27
27
  interval?: components.TimeseriesInterval | undefined;
28
28
  /**
@@ -11,7 +11,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
12
  export type CreateOrReconfigureBasinRequest = {
13
13
  /**
14
- * Provide a client request token header for idempotent retry behaviour.
14
+ * Client-specified request token for idempotent retries.
15
15
  */
16
16
  s2RequestToken?: string | undefined;
17
17
  /**
@@ -22,7 +22,7 @@ export type CreateOrReconfigureStreamRequest = {
22
22
  */
23
23
  stream: string;
24
24
  /**
25
- * Provide a client request token header for idempotent retry behaviour.
25
+ * Client-specified request token for idempotent retries.
26
26
  */
27
27
  s2RequestToken?: string | undefined;
28
28
  /**
@@ -10,11 +10,11 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
11
  export type ListAccessTokensRequest = {
12
12
  /**
13
- * List access tokens that begin with this prefix.
13
+ * Filter to access tokens whose ID begins with this prefix.
14
14
  */
15
15
  prefix?: string | undefined;
16
16
  /**
17
- * Only return access tokens that lexicographically start after this ID.
17
+ * Filter to access tokens whose ID lexicographically starts after this string.
18
18
  */
19
19
  startAfter?: string | undefined;
20
20
  /**
@@ -11,15 +11,14 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
12
  export type ListBasinsRequest = {
13
13
  /**
14
- * List basin names that begin with this prefix.
14
+ * Filter to basins whose names begin with this prefix.
15
15
  */
16
16
  prefix?: string | undefined;
17
17
  /**
18
- * Only return basins names that lexicographically start after this name.
18
+ * Filter to basins whose names lexicographically start after this string.
19
19
  *
20
20
  * @remarks
21
- * This can be the last basin name seen in a previous listing, to continue from there.
22
- * It must be greater than or equal to the `prefix` if that is specified.
21
+ * It must be greater than or equal to the `prefix` if specified.
23
22
  */
24
23
  startAfter?: string | undefined;
25
24
  /**
@@ -18,15 +18,14 @@ export const ListStreamsServerList = [
18
18
 
19
19
  export type ListStreamsRequest = {
20
20
  /**
21
- * List stream names that begin with this prefix.
21
+ * Filter to streams whose name begins with this prefix.
22
22
  */
23
23
  prefix?: string | undefined;
24
24
  /**
25
- * Only return stream names that lexicographically start after this name.
25
+ * Filter to streams whose name begins with this prefix.
26
26
  *
27
27
  * @remarks
28
- * This can be the last stream name seen in a previous listing, to continue from there.
29
- * It must be greater than or equal to the prefix if specified.
28
+ * It must be greater than or equal to the `prefix` if specified.
30
29
  */
31
30
  startAfter?: string | undefined;
32
31
  /**