@s2-dev/streamstore 0.14.0 → 0.15.0

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 (368) hide show
  1. package/README.md +9 -0
  2. package/bin/mcp-server.js +921 -170
  3. package/bin/mcp-server.js.map +50 -31
  4. package/dist/commonjs/funcs/accessTokensIssueAccessToken.js +2 -0
  5. package/dist/commonjs/funcs/accessTokensIssueAccessToken.js.map +1 -1
  6. package/dist/commonjs/funcs/accessTokensListAccessTokens.js +2 -0
  7. package/dist/commonjs/funcs/accessTokensListAccessTokens.js.map +1 -1
  8. package/dist/commonjs/funcs/accessTokensRevokeAccessToken.js +2 -0
  9. package/dist/commonjs/funcs/accessTokensRevokeAccessToken.js.map +1 -1
  10. package/dist/commonjs/funcs/basinsCreateBasin.js +2 -0
  11. package/dist/commonjs/funcs/basinsCreateBasin.js.map +1 -1
  12. package/dist/commonjs/funcs/basinsCreateOrReconfigureBasin.js +2 -0
  13. package/dist/commonjs/funcs/basinsCreateOrReconfigureBasin.js.map +1 -1
  14. package/dist/commonjs/funcs/basinsDeleteBasin.js +2 -0
  15. package/dist/commonjs/funcs/basinsDeleteBasin.js.map +1 -1
  16. package/dist/commonjs/funcs/basinsGetBasinConfig.js +2 -0
  17. package/dist/commonjs/funcs/basinsGetBasinConfig.js.map +1 -1
  18. package/dist/commonjs/funcs/basinsListBasins.js +2 -0
  19. package/dist/commonjs/funcs/basinsListBasins.js.map +1 -1
  20. package/dist/commonjs/funcs/basinsReconfigureBasin.js +2 -0
  21. package/dist/commonjs/funcs/basinsReconfigureBasin.js.map +1 -1
  22. package/dist/commonjs/funcs/metricsAccountMetrics.d.ts +15 -0
  23. package/dist/commonjs/funcs/metricsAccountMetrics.d.ts.map +1 -0
  24. package/dist/commonjs/funcs/metricsAccountMetrics.js +122 -0
  25. package/dist/commonjs/funcs/metricsAccountMetrics.js.map +1 -0
  26. package/dist/commonjs/funcs/metricsBasinMetrics.d.ts +15 -0
  27. package/dist/commonjs/funcs/metricsBasinMetrics.d.ts.map +1 -0
  28. package/dist/commonjs/funcs/metricsBasinMetrics.js +128 -0
  29. package/dist/commonjs/funcs/metricsBasinMetrics.js.map +1 -0
  30. package/dist/commonjs/funcs/metricsStreamMetrics.d.ts +15 -0
  31. package/dist/commonjs/funcs/metricsStreamMetrics.d.ts.map +1 -0
  32. package/dist/commonjs/funcs/metricsStreamMetrics.js +125 -0
  33. package/dist/commonjs/funcs/metricsStreamMetrics.js.map +1 -0
  34. package/dist/commonjs/funcs/recordsAppend.js +2 -0
  35. package/dist/commonjs/funcs/recordsAppend.js.map +1 -1
  36. package/dist/commonjs/funcs/recordsCheckTail.js +2 -0
  37. package/dist/commonjs/funcs/recordsCheckTail.js.map +1 -1
  38. package/dist/commonjs/funcs/recordsRead.js +2 -0
  39. package/dist/commonjs/funcs/recordsRead.js.map +1 -1
  40. package/dist/commonjs/funcs/streamsCreateOrReconfigureStream.js +2 -0
  41. package/dist/commonjs/funcs/streamsCreateOrReconfigureStream.js.map +1 -1
  42. package/dist/commonjs/funcs/streamsCreateStream.js +2 -0
  43. package/dist/commonjs/funcs/streamsCreateStream.js.map +1 -1
  44. package/dist/commonjs/funcs/streamsDeleteStream.js +2 -0
  45. package/dist/commonjs/funcs/streamsDeleteStream.js.map +1 -1
  46. package/dist/commonjs/funcs/streamsGetStreamConfig.js +2 -0
  47. package/dist/commonjs/funcs/streamsGetStreamConfig.js.map +1 -1
  48. package/dist/commonjs/funcs/streamsListStreams.js +2 -0
  49. package/dist/commonjs/funcs/streamsListStreams.js.map +1 -1
  50. package/dist/commonjs/funcs/streamsReconfigureStream.js +2 -0
  51. package/dist/commonjs/funcs/streamsReconfigureStream.js.map +1 -1
  52. package/dist/commonjs/hooks/types.d.ts +2 -0
  53. package/dist/commonjs/hooks/types.d.ts.map +1 -1
  54. package/dist/commonjs/index.d.ts +2 -0
  55. package/dist/commonjs/index.d.ts.map +1 -1
  56. package/dist/commonjs/index.js +3 -1
  57. package/dist/commonjs/index.js.map +1 -1
  58. package/dist/commonjs/lib/config.d.ts +7 -3
  59. package/dist/commonjs/lib/config.d.ts.map +1 -1
  60. package/dist/commonjs/lib/config.js +3 -3
  61. package/dist/commonjs/lib/config.js.map +1 -1
  62. package/dist/commonjs/lib/sdks.d.ts +1 -0
  63. package/dist/commonjs/lib/sdks.d.ts.map +1 -1
  64. package/dist/commonjs/lib/sdks.js +3 -3
  65. package/dist/commonjs/lib/sdks.js.map +1 -1
  66. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  67. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  68. package/dist/commonjs/mcp-server/server.js +7 -1
  69. package/dist/commonjs/mcp-server/server.js.map +1 -1
  70. package/dist/commonjs/mcp-server/tools/metricsAccountMetrics.d.ts +8 -0
  71. package/dist/commonjs/mcp-server/tools/metricsAccountMetrics.d.ts.map +1 -0
  72. package/dist/commonjs/mcp-server/tools/metricsAccountMetrics.js +63 -0
  73. package/dist/commonjs/mcp-server/tools/metricsAccountMetrics.js.map +1 -0
  74. package/dist/commonjs/mcp-server/tools/metricsBasinMetrics.d.ts +8 -0
  75. package/dist/commonjs/mcp-server/tools/metricsBasinMetrics.d.ts.map +1 -0
  76. package/dist/commonjs/mcp-server/tools/metricsBasinMetrics.js +63 -0
  77. package/dist/commonjs/mcp-server/tools/metricsBasinMetrics.js.map +1 -0
  78. package/dist/commonjs/mcp-server/tools/metricsStreamMetrics.d.ts +8 -0
  79. package/dist/commonjs/mcp-server/tools/metricsStreamMetrics.d.ts.map +1 -0
  80. package/dist/commonjs/mcp-server/tools/metricsStreamMetrics.js +63 -0
  81. package/dist/commonjs/mcp-server/tools/metricsStreamMetrics.js.map +1 -0
  82. package/dist/commonjs/models/components/accountmetricset.d.ts +28 -0
  83. package/dist/commonjs/models/components/accountmetricset.d.ts.map +1 -0
  84. package/dist/commonjs/models/components/accountmetricset.js +60 -0
  85. package/dist/commonjs/models/components/accountmetricset.js.map +1 -0
  86. package/dist/commonjs/models/components/accumulation.d.ts +72 -0
  87. package/dist/commonjs/models/components/accumulation.d.ts.map +1 -0
  88. package/dist/commonjs/models/components/accumulation.js +110 -0
  89. package/dist/commonjs/models/components/accumulation.js.map +1 -0
  90. package/dist/commonjs/models/components/basinmetricset.d.ts +40 -0
  91. package/dist/commonjs/models/components/basinmetricset.d.ts.map +1 -0
  92. package/dist/commonjs/models/components/basinmetricset.js +64 -0
  93. package/dist/commonjs/models/components/basinmetricset.js.map +1 -0
  94. package/dist/commonjs/models/components/gauge.d.ts +68 -0
  95. package/dist/commonjs/models/components/gauge.d.ts.map +1 -0
  96. package/dist/commonjs/models/components/gauge.js +98 -0
  97. package/dist/commonjs/models/components/gauge.js.map +1 -0
  98. package/dist/commonjs/models/components/index.d.ts +10 -0
  99. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  100. package/dist/commonjs/models/components/index.js +10 -0
  101. package/dist/commonjs/models/components/index.js.map +1 -1
  102. package/dist/commonjs/models/components/label.d.ts +37 -0
  103. package/dist/commonjs/models/components/label.d.ts.map +1 -0
  104. package/dist/commonjs/models/components/label.js +72 -0
  105. package/dist/commonjs/models/components/label.js.map +1 -0
  106. package/dist/commonjs/models/components/metric.d.ts +144 -0
  107. package/dist/commonjs/models/components/metric.d.ts.map +1 -0
  108. package/dist/commonjs/models/components/metric.js +192 -0
  109. package/dist/commonjs/models/components/metric.js.map +1 -0
  110. package/dist/commonjs/models/components/metricsetresponse.d.ts +33 -0
  111. package/dist/commonjs/models/components/metricsetresponse.d.ts.map +1 -0
  112. package/dist/commonjs/models/components/metricsetresponse.js +70 -0
  113. package/dist/commonjs/models/components/metricsetresponse.js.map +1 -0
  114. package/dist/commonjs/models/components/metricunit.d.ts +28 -0
  115. package/dist/commonjs/models/components/metricunit.d.ts.map +1 -0
  116. package/dist/commonjs/models/components/metricunit.js +61 -0
  117. package/dist/commonjs/models/components/metricunit.js.map +1 -0
  118. package/dist/commonjs/models/components/operation.d.ts +9 -0
  119. package/dist/commonjs/models/components/operation.d.ts.map +1 -1
  120. package/dist/commonjs/models/components/operation.js +3 -0
  121. package/dist/commonjs/models/components/operation.js.map +1 -1
  122. package/dist/commonjs/models/components/readevent.d.ts +67 -17
  123. package/dist/commonjs/models/components/readevent.d.ts.map +1 -1
  124. package/dist/commonjs/models/components/readevent.js +86 -25
  125. package/dist/commonjs/models/components/readevent.js.map +1 -1
  126. package/dist/commonjs/models/components/scalar.d.ts +40 -0
  127. package/dist/commonjs/models/components/scalar.d.ts.map +1 -0
  128. package/dist/commonjs/models/components/scalar.js +75 -0
  129. package/dist/commonjs/models/components/scalar.js.map +1 -0
  130. package/dist/commonjs/models/components/timeseriesinterval.d.ts +31 -0
  131. package/dist/commonjs/models/components/timeseriesinterval.d.ts.map +1 -0
  132. package/dist/commonjs/models/components/timeseriesinterval.js +61 -0
  133. package/dist/commonjs/models/components/timeseriesinterval.js.map +1 -0
  134. package/dist/commonjs/models/errors/appendconditionfailed.d.ts +4 -4
  135. package/dist/commonjs/models/errors/appendconditionfailed.js +1 -1
  136. package/dist/commonjs/models/operations/accountmetrics.d.ts +48 -0
  137. package/dist/commonjs/models/operations/accountmetrics.d.ts.map +1 -0
  138. package/dist/commonjs/models/operations/accountmetrics.js +76 -0
  139. package/dist/commonjs/models/operations/accountmetrics.js.map +1 -0
  140. package/dist/commonjs/models/operations/basinmetrics.d.ts +53 -0
  141. package/dist/commonjs/models/operations/basinmetrics.d.ts.map +1 -0
  142. package/dist/commonjs/models/operations/basinmetrics.js +78 -0
  143. package/dist/commonjs/models/operations/basinmetrics.js.map +1 -0
  144. package/dist/commonjs/models/operations/index.d.ts +3 -0
  145. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  146. package/dist/commonjs/models/operations/index.js +3 -0
  147. package/dist/commonjs/models/operations/index.js.map +1 -1
  148. package/dist/commonjs/models/operations/streammetrics.d.ts +37 -0
  149. package/dist/commonjs/models/operations/streammetrics.d.ts.map +1 -0
  150. package/dist/commonjs/models/operations/streammetrics.js +71 -0
  151. package/dist/commonjs/models/operations/streammetrics.js.map +1 -0
  152. package/dist/commonjs/sdk/metrics.d.ts +18 -0
  153. package/dist/commonjs/sdk/metrics.d.ts.map +1 -0
  154. package/dist/commonjs/sdk/metrics.js +33 -0
  155. package/dist/commonjs/sdk/metrics.js.map +1 -0
  156. package/dist/commonjs/sdk/sdk.d.ts +3 -0
  157. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  158. package/dist/commonjs/sdk/sdk.js +4 -0
  159. package/dist/commonjs/sdk/sdk.js.map +1 -1
  160. package/dist/esm/funcs/accessTokensIssueAccessToken.js +2 -0
  161. package/dist/esm/funcs/accessTokensIssueAccessToken.js.map +1 -1
  162. package/dist/esm/funcs/accessTokensListAccessTokens.js +2 -0
  163. package/dist/esm/funcs/accessTokensListAccessTokens.js.map +1 -1
  164. package/dist/esm/funcs/accessTokensRevokeAccessToken.js +2 -0
  165. package/dist/esm/funcs/accessTokensRevokeAccessToken.js.map +1 -1
  166. package/dist/esm/funcs/basinsCreateBasin.js +2 -0
  167. package/dist/esm/funcs/basinsCreateBasin.js.map +1 -1
  168. package/dist/esm/funcs/basinsCreateOrReconfigureBasin.js +2 -0
  169. package/dist/esm/funcs/basinsCreateOrReconfigureBasin.js.map +1 -1
  170. package/dist/esm/funcs/basinsDeleteBasin.js +2 -0
  171. package/dist/esm/funcs/basinsDeleteBasin.js.map +1 -1
  172. package/dist/esm/funcs/basinsGetBasinConfig.js +2 -0
  173. package/dist/esm/funcs/basinsGetBasinConfig.js.map +1 -1
  174. package/dist/esm/funcs/basinsListBasins.js +2 -0
  175. package/dist/esm/funcs/basinsListBasins.js.map +1 -1
  176. package/dist/esm/funcs/basinsReconfigureBasin.js +2 -0
  177. package/dist/esm/funcs/basinsReconfigureBasin.js.map +1 -1
  178. package/dist/esm/funcs/metricsAccountMetrics.d.ts +15 -0
  179. package/dist/esm/funcs/metricsAccountMetrics.d.ts.map +1 -0
  180. package/dist/esm/funcs/metricsAccountMetrics.js +86 -0
  181. package/dist/esm/funcs/metricsAccountMetrics.js.map +1 -0
  182. package/dist/esm/funcs/metricsBasinMetrics.d.ts +15 -0
  183. package/dist/esm/funcs/metricsBasinMetrics.d.ts.map +1 -0
  184. package/dist/esm/funcs/metricsBasinMetrics.js +92 -0
  185. package/dist/esm/funcs/metricsBasinMetrics.js.map +1 -0
  186. package/dist/esm/funcs/metricsStreamMetrics.d.ts +15 -0
  187. package/dist/esm/funcs/metricsStreamMetrics.d.ts.map +1 -0
  188. package/dist/esm/funcs/metricsStreamMetrics.js +89 -0
  189. package/dist/esm/funcs/metricsStreamMetrics.js.map +1 -0
  190. package/dist/esm/funcs/recordsAppend.js +2 -0
  191. package/dist/esm/funcs/recordsAppend.js.map +1 -1
  192. package/dist/esm/funcs/recordsCheckTail.js +2 -0
  193. package/dist/esm/funcs/recordsCheckTail.js.map +1 -1
  194. package/dist/esm/funcs/recordsRead.js +2 -0
  195. package/dist/esm/funcs/recordsRead.js.map +1 -1
  196. package/dist/esm/funcs/streamsCreateOrReconfigureStream.js +2 -0
  197. package/dist/esm/funcs/streamsCreateOrReconfigureStream.js.map +1 -1
  198. package/dist/esm/funcs/streamsCreateStream.js +2 -0
  199. package/dist/esm/funcs/streamsCreateStream.js.map +1 -1
  200. package/dist/esm/funcs/streamsDeleteStream.js +2 -0
  201. package/dist/esm/funcs/streamsDeleteStream.js.map +1 -1
  202. package/dist/esm/funcs/streamsGetStreamConfig.js +2 -0
  203. package/dist/esm/funcs/streamsGetStreamConfig.js.map +1 -1
  204. package/dist/esm/funcs/streamsListStreams.js +2 -0
  205. package/dist/esm/funcs/streamsListStreams.js.map +1 -1
  206. package/dist/esm/funcs/streamsReconfigureStream.js +2 -0
  207. package/dist/esm/funcs/streamsReconfigureStream.js.map +1 -1
  208. package/dist/esm/hooks/types.d.ts +2 -0
  209. package/dist/esm/hooks/types.d.ts.map +1 -1
  210. package/dist/esm/index.d.ts +2 -0
  211. package/dist/esm/index.d.ts.map +1 -1
  212. package/dist/esm/index.js +1 -0
  213. package/dist/esm/index.js.map +1 -1
  214. package/dist/esm/lib/config.d.ts +7 -3
  215. package/dist/esm/lib/config.d.ts.map +1 -1
  216. package/dist/esm/lib/config.js +3 -3
  217. package/dist/esm/lib/config.js.map +1 -1
  218. package/dist/esm/lib/sdks.d.ts +1 -0
  219. package/dist/esm/lib/sdks.d.ts.map +1 -1
  220. package/dist/esm/lib/sdks.js +3 -3
  221. package/dist/esm/lib/sdks.js.map +1 -1
  222. package/dist/esm/mcp-server/mcp-server.js +1 -1
  223. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  224. package/dist/esm/mcp-server/server.js +7 -1
  225. package/dist/esm/mcp-server/server.js.map +1 -1
  226. package/dist/esm/mcp-server/tools/metricsAccountMetrics.d.ts +8 -0
  227. package/dist/esm/mcp-server/tools/metricsAccountMetrics.d.ts.map +1 -0
  228. package/dist/esm/mcp-server/tools/metricsAccountMetrics.js +27 -0
  229. package/dist/esm/mcp-server/tools/metricsAccountMetrics.js.map +1 -0
  230. package/dist/esm/mcp-server/tools/metricsBasinMetrics.d.ts +8 -0
  231. package/dist/esm/mcp-server/tools/metricsBasinMetrics.d.ts.map +1 -0
  232. package/dist/esm/mcp-server/tools/metricsBasinMetrics.js +27 -0
  233. package/dist/esm/mcp-server/tools/metricsBasinMetrics.js.map +1 -0
  234. package/dist/esm/mcp-server/tools/metricsStreamMetrics.d.ts +8 -0
  235. package/dist/esm/mcp-server/tools/metricsStreamMetrics.d.ts.map +1 -0
  236. package/dist/esm/mcp-server/tools/metricsStreamMetrics.js +27 -0
  237. package/dist/esm/mcp-server/tools/metricsStreamMetrics.js.map +1 -0
  238. package/dist/esm/models/components/accountmetricset.d.ts +28 -0
  239. package/dist/esm/models/components/accountmetricset.d.ts.map +1 -0
  240. package/dist/esm/models/components/accountmetricset.js +24 -0
  241. package/dist/esm/models/components/accountmetricset.js.map +1 -0
  242. package/dist/esm/models/components/accumulation.d.ts +72 -0
  243. package/dist/esm/models/components/accumulation.d.ts.map +1 -0
  244. package/dist/esm/models/components/accumulation.js +70 -0
  245. package/dist/esm/models/components/accumulation.js.map +1 -0
  246. package/dist/esm/models/components/basinmetricset.d.ts +40 -0
  247. package/dist/esm/models/components/basinmetricset.d.ts.map +1 -0
  248. package/dist/esm/models/components/basinmetricset.js +28 -0
  249. package/dist/esm/models/components/basinmetricset.js.map +1 -0
  250. package/dist/esm/models/components/gauge.d.ts +68 -0
  251. package/dist/esm/models/components/gauge.d.ts.map +1 -0
  252. package/dist/esm/models/components/gauge.js +58 -0
  253. package/dist/esm/models/components/gauge.js.map +1 -0
  254. package/dist/esm/models/components/index.d.ts +10 -0
  255. package/dist/esm/models/components/index.d.ts.map +1 -1
  256. package/dist/esm/models/components/index.js +10 -0
  257. package/dist/esm/models/components/index.js.map +1 -1
  258. package/dist/esm/models/components/label.d.ts +37 -0
  259. package/dist/esm/models/components/label.d.ts.map +1 -0
  260. package/dist/esm/models/components/label.js +34 -0
  261. package/dist/esm/models/components/label.js.map +1 -0
  262. package/dist/esm/models/components/metric.d.ts +144 -0
  263. package/dist/esm/models/components/metric.d.ts.map +1 -0
  264. package/dist/esm/models/components/metric.js +146 -0
  265. package/dist/esm/models/components/metric.js.map +1 -0
  266. package/dist/esm/models/components/metricsetresponse.d.ts +33 -0
  267. package/dist/esm/models/components/metricsetresponse.d.ts.map +1 -0
  268. package/dist/esm/models/components/metricsetresponse.js +32 -0
  269. package/dist/esm/models/components/metricsetresponse.js.map +1 -0
  270. package/dist/esm/models/components/metricunit.d.ts +28 -0
  271. package/dist/esm/models/components/metricunit.d.ts.map +1 -0
  272. package/dist/esm/models/components/metricunit.js +25 -0
  273. package/dist/esm/models/components/metricunit.js.map +1 -0
  274. package/dist/esm/models/components/operation.d.ts +9 -0
  275. package/dist/esm/models/components/operation.d.ts.map +1 -1
  276. package/dist/esm/models/components/operation.js +3 -0
  277. package/dist/esm/models/components/operation.js.map +1 -1
  278. package/dist/esm/models/components/readevent.d.ts +67 -17
  279. package/dist/esm/models/components/readevent.d.ts.map +1 -1
  280. package/dist/esm/models/components/readevent.js +83 -24
  281. package/dist/esm/models/components/readevent.js.map +1 -1
  282. package/dist/esm/models/components/scalar.d.ts +40 -0
  283. package/dist/esm/models/components/scalar.d.ts.map +1 -0
  284. package/dist/esm/models/components/scalar.js +37 -0
  285. package/dist/esm/models/components/scalar.js.map +1 -0
  286. package/dist/esm/models/components/timeseriesinterval.d.ts +31 -0
  287. package/dist/esm/models/components/timeseriesinterval.d.ts.map +1 -0
  288. package/dist/esm/models/components/timeseriesinterval.js +25 -0
  289. package/dist/esm/models/components/timeseriesinterval.js.map +1 -0
  290. package/dist/esm/models/errors/appendconditionfailed.d.ts +4 -4
  291. package/dist/esm/models/errors/appendconditionfailed.js +1 -1
  292. package/dist/esm/models/operations/accountmetrics.d.ts +48 -0
  293. package/dist/esm/models/operations/accountmetrics.d.ts.map +1 -0
  294. package/dist/esm/models/operations/accountmetrics.js +38 -0
  295. package/dist/esm/models/operations/accountmetrics.js.map +1 -0
  296. package/dist/esm/models/operations/basinmetrics.d.ts +53 -0
  297. package/dist/esm/models/operations/basinmetrics.d.ts.map +1 -0
  298. package/dist/esm/models/operations/basinmetrics.js +40 -0
  299. package/dist/esm/models/operations/basinmetrics.js.map +1 -0
  300. package/dist/esm/models/operations/index.d.ts +3 -0
  301. package/dist/esm/models/operations/index.d.ts.map +1 -1
  302. package/dist/esm/models/operations/index.js +3 -0
  303. package/dist/esm/models/operations/index.js.map +1 -1
  304. package/dist/esm/models/operations/streammetrics.d.ts +37 -0
  305. package/dist/esm/models/operations/streammetrics.d.ts.map +1 -0
  306. package/dist/esm/models/operations/streammetrics.js +33 -0
  307. package/dist/esm/models/operations/streammetrics.js.map +1 -0
  308. package/dist/esm/sdk/metrics.d.ts +18 -0
  309. package/dist/esm/sdk/metrics.d.ts.map +1 -0
  310. package/dist/esm/sdk/metrics.js +29 -0
  311. package/dist/esm/sdk/metrics.js.map +1 -0
  312. package/dist/esm/sdk/sdk.d.ts +3 -0
  313. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  314. package/dist/esm/sdk/sdk.js +4 -0
  315. package/dist/esm/sdk/sdk.js.map +1 -1
  316. package/docs/sdks/metrics/README.md +247 -0
  317. package/jsr.json +1 -1
  318. package/package.json +1 -1
  319. package/src/funcs/accessTokensIssueAccessToken.ts +2 -0
  320. package/src/funcs/accessTokensListAccessTokens.ts +2 -0
  321. package/src/funcs/accessTokensRevokeAccessToken.ts +2 -0
  322. package/src/funcs/basinsCreateBasin.ts +2 -0
  323. package/src/funcs/basinsCreateOrReconfigureBasin.ts +2 -0
  324. package/src/funcs/basinsDeleteBasin.ts +2 -0
  325. package/src/funcs/basinsGetBasinConfig.ts +2 -0
  326. package/src/funcs/basinsListBasins.ts +2 -0
  327. package/src/funcs/basinsReconfigureBasin.ts +2 -0
  328. package/src/funcs/metricsAccountMetrics.ts +170 -0
  329. package/src/funcs/metricsBasinMetrics.ts +177 -0
  330. package/src/funcs/metricsStreamMetrics.ts +173 -0
  331. package/src/funcs/recordsAppend.ts +2 -0
  332. package/src/funcs/recordsCheckTail.ts +2 -0
  333. package/src/funcs/recordsRead.ts +2 -0
  334. package/src/funcs/streamsCreateOrReconfigureStream.ts +2 -0
  335. package/src/funcs/streamsCreateStream.ts +2 -0
  336. package/src/funcs/streamsDeleteStream.ts +2 -0
  337. package/src/funcs/streamsGetStreamConfig.ts +2 -0
  338. package/src/funcs/streamsListStreams.ts +2 -0
  339. package/src/funcs/streamsReconfigureStream.ts +2 -0
  340. package/src/hooks/types.ts +2 -0
  341. package/src/index.ts +2 -0
  342. package/src/lib/config.ts +7 -3
  343. package/src/lib/sdks.ts +10 -4
  344. package/src/mcp-server/mcp-server.ts +1 -1
  345. package/src/mcp-server/server.ts +7 -1
  346. package/src/mcp-server/tools/metricsAccountMetrics.ts +36 -0
  347. package/src/mcp-server/tools/metricsBasinMetrics.ts +36 -0
  348. package/src/mcp-server/tools/metricsStreamMetrics.ts +36 -0
  349. package/src/models/components/accountmetricset.ts +33 -0
  350. package/src/models/components/accumulation.ts +150 -0
  351. package/src/models/components/basinmetricset.ts +37 -0
  352. package/src/models/components/gauge.ts +131 -0
  353. package/src/models/components/index.ts +10 -0
  354. package/src/models/components/label.ts +69 -0
  355. package/src/models/components/metric.ts +302 -0
  356. package/src/models/components/metricsetresponse.ts +75 -0
  357. package/src/models/components/metricunit.ts +31 -0
  358. package/src/models/components/operation.ts +3 -0
  359. package/src/models/components/readevent.ts +135 -32
  360. package/src/models/components/scalar.ts +78 -0
  361. package/src/models/components/timeseriesinterval.ts +34 -0
  362. package/src/models/errors/appendconditionfailed.ts +4 -4
  363. package/src/models/operations/accountmetrics.ts +91 -0
  364. package/src/models/operations/basinmetrics.ts +98 -0
  365. package/src/models/operations/index.ts +3 -0
  366. package/src/models/operations/streammetrics.ts +76 -0
  367. package/src/sdk/metrics.ts +55 -0
  368. package/src/sdk/sdk.ts +6 -0
package/bin/mcp-server.js CHANGED
@@ -34265,9 +34265,9 @@ var init_config = __esm(() => {
34265
34265
  SDK_METADATA = {
34266
34266
  language: "typescript",
34267
34267
  openapiDocVersion: "1.0.0",
34268
- sdkVersion: "0.14.0",
34269
- genVersion: "2.610.0",
34270
- userAgent: "speakeasy-sdk/typescript 0.14.0 2.610.0 1.0.0 @s2-dev/streamstore"
34268
+ sdkVersion: "0.15.0",
34269
+ genVersion: "2.618.0",
34270
+ userAgent: "speakeasy-sdk/typescript 0.15.0 2.618.0 1.0.0 @s2-dev/streamstore"
34271
34271
  };
34272
34272
  });
34273
34273
 
@@ -34832,7 +34832,6 @@ class ClientSDK {
34832
34832
  } else {
34833
34833
  this.#hooks = new SDKHooks;
34834
34834
  }
34835
- this._options = { ...options, hooks: this.#hooks };
34836
34835
  const url = serverURLFromOptions(options);
34837
34836
  if (url) {
34838
34837
  url.pathname = url.pathname.replace(/\/+$/, "") + "/";
@@ -34843,7 +34842,8 @@ class ClientSDK {
34843
34842
  });
34844
34843
  this._baseURL = baseURL;
34845
34844
  this.#httpClient = client;
34846
- this.#logger = options.debugLogger;
34845
+ this._options = { ...options, hooks: this.#hooks };
34846
+ this.#logger = this._options.debugLogger;
34847
34847
  if (!this.#logger && env().S2_DEBUG) {
34848
34848
  this.#logger = console;
34849
34849
  }
@@ -34897,7 +34897,7 @@ class ClientSDK {
34897
34897
  headers.set(k2, v2);
34898
34898
  }
34899
34899
  if (!isBrowserLike) {
34900
- headers.set(conf.uaHeader ?? "user-agent", SDK_METADATA.userAgent);
34900
+ headers.set(conf.uaHeader ?? "user-agent", conf.userAgent ?? SDK_METADATA.userAgent);
34901
34901
  }
34902
34902
  const fetchOptions = {
34903
34903
  ...options?.fetchOptions,
@@ -35884,7 +35884,10 @@ var init_operation = __esm(() => {
35884
35884
  Append: "append",
35885
35885
  Read: "read",
35886
35886
  Trim: "trim",
35887
- Fence: "fence"
35887
+ Fence: "fence",
35888
+ AccountMetrics: "account-metrics",
35889
+ BasinMetrics: "basin-metrics",
35890
+ StreamMetrics: "stream-metrics"
35888
35891
  };
35889
35892
  Operation$inboundSchema = nativeEnumType(Operation);
35890
35893
  Operation$outboundSchema = Operation$inboundSchema;
@@ -36043,6 +36046,94 @@ var init_accesstokeninfo = __esm(() => {
36043
36046
  })(AccessTokenInfo$ ||= {});
36044
36047
  });
36045
36048
 
36049
+ // src/models/components/accountmetricset.ts
36050
+ var AccountMetricSet, AccountMetricSet$inboundSchema, AccountMetricSet$outboundSchema, AccountMetricSet$;
36051
+ var init_accountmetricset = __esm(() => {
36052
+ init_esm();
36053
+ AccountMetricSet = {
36054
+ ActiveBasins: "active_basins",
36055
+ AccountOps: "account_ops"
36056
+ };
36057
+ AccountMetricSet$inboundSchema = nativeEnumType(AccountMetricSet);
36058
+ AccountMetricSet$outboundSchema = AccountMetricSet$inboundSchema;
36059
+ ((AccountMetricSet$) => {
36060
+ AccountMetricSet$.inboundSchema = AccountMetricSet$inboundSchema;
36061
+ AccountMetricSet$.outboundSchema = AccountMetricSet$outboundSchema;
36062
+ })(AccountMetricSet$ ||= {});
36063
+ });
36064
+
36065
+ // src/models/components/metricunit.ts
36066
+ var MetricUnit, MetricUnit$inboundSchema, MetricUnit$outboundSchema, MetricUnit$;
36067
+ var init_metricunit = __esm(() => {
36068
+ init_esm();
36069
+ MetricUnit = {
36070
+ Bytes: "bytes",
36071
+ Operations: "operations"
36072
+ };
36073
+ MetricUnit$inboundSchema = nativeEnumType(MetricUnit);
36074
+ MetricUnit$outboundSchema = MetricUnit$inboundSchema;
36075
+ ((MetricUnit$) => {
36076
+ MetricUnit$.inboundSchema = MetricUnit$inboundSchema;
36077
+ MetricUnit$.outboundSchema = MetricUnit$outboundSchema;
36078
+ })(MetricUnit$ ||= {});
36079
+ });
36080
+
36081
+ // src/models/components/timeseriesinterval.ts
36082
+ var TimeseriesInterval, TimeseriesInterval$inboundSchema, TimeseriesInterval$outboundSchema, TimeseriesInterval$;
36083
+ var init_timeseriesinterval = __esm(() => {
36084
+ init_esm();
36085
+ TimeseriesInterval = {
36086
+ Minute: "minute",
36087
+ Hour: "hour",
36088
+ Day: "day"
36089
+ };
36090
+ TimeseriesInterval$inboundSchema = nativeEnumType(TimeseriesInterval);
36091
+ TimeseriesInterval$outboundSchema = TimeseriesInterval$inboundSchema;
36092
+ ((TimeseriesInterval$) => {
36093
+ TimeseriesInterval$.inboundSchema = TimeseriesInterval$inboundSchema;
36094
+ TimeseriesInterval$.outboundSchema = TimeseriesInterval$outboundSchema;
36095
+ })(TimeseriesInterval$ ||= {});
36096
+ });
36097
+
36098
+ // src/models/components/accumulation.ts
36099
+ var Values$inboundSchema, Values$outboundSchema, Values$, Accumulation$inboundSchema, Accumulation$outboundSchema, Accumulation$;
36100
+ var init_accumulation = __esm(() => {
36101
+ init_esm();
36102
+ init_primitives();
36103
+ init_metricunit();
36104
+ init_timeseriesinterval();
36105
+ Values$inboundSchema = unionType([numberType().int(), numberType()]);
36106
+ Values$outboundSchema = unionType([numberType().int(), numberType()]);
36107
+ ((Values$) => {
36108
+ Values$.inboundSchema = Values$inboundSchema;
36109
+ Values$.outboundSchema = Values$outboundSchema;
36110
+ })(Values$ ||= {});
36111
+ Accumulation$inboundSchema = objectType({
36112
+ bucket_length: TimeseriesInterval$inboundSchema,
36113
+ name: stringType(),
36114
+ unit: MetricUnit$inboundSchema,
36115
+ values: arrayType(arrayType(unionType([numberType().int(), numberType()])))
36116
+ }).transform((v2) => {
36117
+ return remap(v2, {
36118
+ bucket_length: "bucketLength"
36119
+ });
36120
+ });
36121
+ Accumulation$outboundSchema = objectType({
36122
+ bucketLength: TimeseriesInterval$outboundSchema,
36123
+ name: stringType(),
36124
+ unit: MetricUnit$outboundSchema,
36125
+ values: arrayType(arrayType(unionType([numberType().int(), numberType()])))
36126
+ }).transform((v2) => {
36127
+ return remap(v2, {
36128
+ bucketLength: "bucket_length"
36129
+ });
36130
+ });
36131
+ ((Accumulation$) => {
36132
+ Accumulation$.inboundSchema = Accumulation$inboundSchema;
36133
+ Accumulation$.outboundSchema = Accumulation$outboundSchema;
36134
+ })(Accumulation$ ||= {});
36135
+ });
36136
+
36046
36137
  // src/models/components/streamposition.ts
36047
36138
  var StreamPosition$inboundSchema, StreamPosition$outboundSchema, StreamPosition$;
36048
36139
  var init_streamposition = __esm(() => {
@@ -36339,6 +36430,26 @@ var init_basininfo = __esm(() => {
36339
36430
  })(BasinInfo$ ||= {});
36340
36431
  });
36341
36432
 
36433
+ // src/models/components/basinmetricset.ts
36434
+ var BasinMetricSet, BasinMetricSet$inboundSchema, BasinMetricSet$outboundSchema, BasinMetricSet$;
36435
+ var init_basinmetricset = __esm(() => {
36436
+ init_esm();
36437
+ BasinMetricSet = {
36438
+ Storage: "storage",
36439
+ AppendOps: "append_ops",
36440
+ ReadOps: "read_ops",
36441
+ ReadThroughput: "read_throughput",
36442
+ AppendThroughput: "append_throughput",
36443
+ BasinOps: "basin_ops"
36444
+ };
36445
+ BasinMetricSet$inboundSchema = nativeEnumType(BasinMetricSet);
36446
+ BasinMetricSet$outboundSchema = BasinMetricSet$inboundSchema;
36447
+ ((BasinMetricSet$) => {
36448
+ BasinMetricSet$.inboundSchema = BasinMetricSet$inboundSchema;
36449
+ BasinMetricSet$.outboundSchema = BasinMetricSet$outboundSchema;
36450
+ })(BasinMetricSet$ ||= {});
36451
+ });
36452
+
36342
36453
  // src/models/components/timestampingreconfiguration.ts
36343
36454
  var TimestampingReconfiguration$inboundSchema, TimestampingReconfiguration$outboundSchema, TimestampingReconfiguration$;
36344
36455
  var init_timestampingreconfiguration = __esm(() => {
@@ -36499,6 +36610,33 @@ var init_createstreamrequest = __esm(() => {
36499
36610
  })(CreateStreamRequest$ ||= {});
36500
36611
  });
36501
36612
 
36613
+ // src/models/components/gauge.ts
36614
+ var GaugeValues$inboundSchema, GaugeValues$outboundSchema, GaugeValues$, Gauge$inboundSchema, Gauge$outboundSchema, Gauge$;
36615
+ var init_gauge = __esm(() => {
36616
+ init_esm();
36617
+ init_metricunit();
36618
+ GaugeValues$inboundSchema = unionType([numberType().int(), numberType()]);
36619
+ GaugeValues$outboundSchema = unionType([numberType().int(), numberType()]);
36620
+ ((GaugeValues$) => {
36621
+ GaugeValues$.inboundSchema = GaugeValues$inboundSchema;
36622
+ GaugeValues$.outboundSchema = GaugeValues$outboundSchema;
36623
+ })(GaugeValues$ ||= {});
36624
+ Gauge$inboundSchema = objectType({
36625
+ name: stringType(),
36626
+ unit: MetricUnit$inboundSchema,
36627
+ values: arrayType(arrayType(unionType([numberType().int(), numberType()])))
36628
+ });
36629
+ Gauge$outboundSchema = objectType({
36630
+ name: stringType(),
36631
+ unit: MetricUnit$outboundSchema,
36632
+ values: arrayType(arrayType(unionType([numberType().int(), numberType()])))
36633
+ });
36634
+ ((Gauge$) => {
36635
+ Gauge$.inboundSchema = Gauge$inboundSchema;
36636
+ Gauge$.outboundSchema = Gauge$outboundSchema;
36637
+ })(Gauge$ ||= {});
36638
+ });
36639
+
36502
36640
  // src/models/components/issueaccesstokenresponse.ts
36503
36641
  var IssueAccessTokenResponse$inboundSchema, IssueAccessTokenResponse$outboundSchema, IssueAccessTokenResponse$;
36504
36642
  var init_issueaccesstokenresponse = __esm(() => {
@@ -36524,6 +36662,24 @@ var init_issueaccesstokenresponse = __esm(() => {
36524
36662
  })(IssueAccessTokenResponse$ ||= {});
36525
36663
  });
36526
36664
 
36665
+ // src/models/components/label.ts
36666
+ var Label$inboundSchema, Label$outboundSchema, Label$;
36667
+ var init_label = __esm(() => {
36668
+ init_esm();
36669
+ Label$inboundSchema = objectType({
36670
+ name: stringType(),
36671
+ values: arrayType(stringType())
36672
+ });
36673
+ Label$outboundSchema = objectType({
36674
+ name: stringType(),
36675
+ values: arrayType(stringType())
36676
+ });
36677
+ ((Label$) => {
36678
+ Label$.inboundSchema = Label$inboundSchema;
36679
+ Label$.outboundSchema = Label$outboundSchema;
36680
+ })(Label$ ||= {});
36681
+ });
36682
+
36527
36683
  // src/models/components/listaccesstokensresponse.ts
36528
36684
  var ListAccessTokensResponse$inboundSchema, ListAccessTokensResponse$outboundSchema, ListAccessTokensResponse$;
36529
36685
  var init_listaccesstokensresponse = __esm(() => {
@@ -36641,6 +36797,110 @@ var init_liststreamsresponse = __esm(() => {
36641
36797
  })(ListStreamsResponse$ ||= {});
36642
36798
  });
36643
36799
 
36800
+ // src/models/components/scalar.ts
36801
+ var Scalar$inboundSchema, Scalar$outboundSchema, Scalar$;
36802
+ var init_scalar = __esm(() => {
36803
+ init_esm();
36804
+ init_metricunit();
36805
+ Scalar$inboundSchema = objectType({
36806
+ name: stringType(),
36807
+ unit: MetricUnit$inboundSchema,
36808
+ value: numberType()
36809
+ });
36810
+ Scalar$outboundSchema = objectType({
36811
+ name: stringType(),
36812
+ unit: MetricUnit$outboundSchema,
36813
+ value: numberType()
36814
+ });
36815
+ ((Scalar$) => {
36816
+ Scalar$.inboundSchema = Scalar$inboundSchema;
36817
+ Scalar$.outboundSchema = Scalar$outboundSchema;
36818
+ })(Scalar$ ||= {});
36819
+ });
36820
+
36821
+ // src/models/components/metric.ts
36822
+ var Four$inboundSchema, Four$outboundSchema, Four$, Three$inboundSchema, Three$outboundSchema, Three$, Two$inboundSchema, Two$outboundSchema, Two$, Metric1$inboundSchema, Metric1$outboundSchema, Metric1$, Metric$inboundSchema, Metric$outboundSchema, Metric$;
36823
+ var init_metric = __esm(() => {
36824
+ init_esm();
36825
+ init_accumulation();
36826
+ init_gauge();
36827
+ init_label();
36828
+ init_scalar();
36829
+ Four$inboundSchema = objectType({
36830
+ label: Label$inboundSchema
36831
+ });
36832
+ Four$outboundSchema = objectType({
36833
+ label: Label$outboundSchema
36834
+ });
36835
+ ((Four$) => {
36836
+ Four$.inboundSchema = Four$inboundSchema;
36837
+ Four$.outboundSchema = Four$outboundSchema;
36838
+ })(Four$ ||= {});
36839
+ Three$inboundSchema = objectType({
36840
+ gauge: Gauge$inboundSchema
36841
+ });
36842
+ Three$outboundSchema = objectType({
36843
+ gauge: Gauge$outboundSchema
36844
+ });
36845
+ ((Three$) => {
36846
+ Three$.inboundSchema = Three$inboundSchema;
36847
+ Three$.outboundSchema = Three$outboundSchema;
36848
+ })(Three$ ||= {});
36849
+ Two$inboundSchema = objectType({
36850
+ accumulation: Accumulation$inboundSchema
36851
+ });
36852
+ Two$outboundSchema = objectType({
36853
+ accumulation: Accumulation$outboundSchema
36854
+ });
36855
+ ((Two$) => {
36856
+ Two$.inboundSchema = Two$inboundSchema;
36857
+ Two$.outboundSchema = Two$outboundSchema;
36858
+ })(Two$ ||= {});
36859
+ Metric1$inboundSchema = objectType({
36860
+ scalar: Scalar$inboundSchema
36861
+ });
36862
+ Metric1$outboundSchema = objectType({
36863
+ scalar: Scalar$outboundSchema
36864
+ });
36865
+ ((Metric1$) => {
36866
+ Metric1$.inboundSchema = Metric1$inboundSchema;
36867
+ Metric1$.outboundSchema = Metric1$outboundSchema;
36868
+ })(Metric1$ ||= {});
36869
+ Metric$inboundSchema = unionType([
36870
+ lazyType(() => Metric1$inboundSchema),
36871
+ lazyType(() => Two$inboundSchema),
36872
+ lazyType(() => Three$inboundSchema),
36873
+ lazyType(() => Four$inboundSchema)
36874
+ ]);
36875
+ Metric$outboundSchema = unionType([
36876
+ lazyType(() => Metric1$outboundSchema),
36877
+ lazyType(() => Two$outboundSchema),
36878
+ lazyType(() => Three$outboundSchema),
36879
+ lazyType(() => Four$outboundSchema)
36880
+ ]);
36881
+ ((Metric$) => {
36882
+ Metric$.inboundSchema = Metric$inboundSchema;
36883
+ Metric$.outboundSchema = Metric$outboundSchema;
36884
+ })(Metric$ ||= {});
36885
+ });
36886
+
36887
+ // src/models/components/metricsetresponse.ts
36888
+ var MetricSetResponse$inboundSchema, MetricSetResponse$outboundSchema, MetricSetResponse$;
36889
+ var init_metricsetresponse = __esm(() => {
36890
+ init_esm();
36891
+ init_metric();
36892
+ MetricSetResponse$inboundSchema = objectType({
36893
+ values: arrayType(Metric$inboundSchema)
36894
+ });
36895
+ MetricSetResponse$outboundSchema = objectType({
36896
+ values: arrayType(Metric$outboundSchema)
36897
+ });
36898
+ ((MetricSetResponse$) => {
36899
+ MetricSetResponse$.inboundSchema = MetricSetResponse$inboundSchema;
36900
+ MetricSetResponse$.outboundSchema = MetricSetResponse$outboundSchema;
36901
+ })(MetricSetResponse$ ||= {});
36902
+ });
36903
+
36644
36904
  // src/models/components/pingeventdata.ts
36645
36905
  var PingEventData$inboundSchema, PingEventData$outboundSchema, PingEventData$;
36646
36906
  var init_pingeventdata = __esm(() => {
@@ -36705,27 +36965,48 @@ var init_readbatch = __esm(() => {
36705
36965
  })(ReadBatch$ ||= {});
36706
36966
  });
36707
36967
 
36968
+ // src/models/components/tailresponse.ts
36969
+ var TailResponse$inboundSchema, TailResponse$outboundSchema, TailResponse$;
36970
+ var init_tailresponse = __esm(() => {
36971
+ init_esm();
36972
+ init_streamposition();
36973
+ TailResponse$inboundSchema = objectType({
36974
+ tail: StreamPosition$inboundSchema
36975
+ });
36976
+ TailResponse$outboundSchema = objectType({
36977
+ tail: StreamPosition$outboundSchema
36978
+ });
36979
+ ((TailResponse$) => {
36980
+ TailResponse$.inboundSchema = TailResponse$inboundSchema;
36981
+ TailResponse$.outboundSchema = TailResponse$outboundSchema;
36982
+ })(TailResponse$ ||= {});
36983
+ });
36984
+
36708
36985
  // src/models/components/readevent.ts
36709
- var ReadEvent3Event, ReadEventEvent, Event, ReadEvent3Event$inboundSchema, ReadEvent3Event$outboundSchema, ReadEvent3Event$, Ping$inboundSchema, Ping$outboundSchema, Ping$, ReadEventEvent$inboundSchema, ReadEventEvent$outboundSchema, ReadEventEvent$, ErrorT$inboundSchema, ErrorT$outboundSchema, ErrorT$, Event$inboundSchema, Event$outboundSchema, Event$, Batch$inboundSchema, Batch$outboundSchema, Batch$, ReadEvent$inboundSchema, ReadEvent$outboundSchema, ReadEvent$;
36986
+ var ReadEvent4Event, ReadEvent3Event, ReadEventEvent, Event, ReadEvent4Event$inboundSchema, ReadEvent4Event$outboundSchema, ReadEvent4Event$, Ping$inboundSchema, Ping$outboundSchema, Ping$, ReadEvent3Event$inboundSchema, ReadEvent3Event$outboundSchema, ReadEvent3Event$, ErrorT$inboundSchema, ErrorT$outboundSchema, ErrorT$, ReadEventEvent$inboundSchema, ReadEventEvent$outboundSchema, ReadEventEvent$, ReadEvent2$inboundSchema, ReadEvent2$outboundSchema, ReadEvent2$, Event$inboundSchema, Event$outboundSchema, Event$, Batch$inboundSchema, Batch$outboundSchema, Batch$, ReadEvent$inboundSchema, ReadEvent$outboundSchema, ReadEvent$;
36710
36987
  var init_readevent = __esm(() => {
36711
36988
  init_esm();
36712
36989
  init_pingeventdata();
36713
36990
  init_readbatch();
36714
- ReadEvent3Event = {
36991
+ init_tailresponse();
36992
+ ReadEvent4Event = {
36715
36993
  Ping: "ping"
36716
36994
  };
36717
- ReadEventEvent = {
36995
+ ReadEvent3Event = {
36718
36996
  Error: "error"
36719
36997
  };
36998
+ ReadEventEvent = {
36999
+ Tail: "tail"
37000
+ };
36720
37001
  Event = {
36721
37002
  Batch: "batch"
36722
37003
  };
36723
- ReadEvent3Event$inboundSchema = nativeEnumType(ReadEvent3Event);
36724
- ReadEvent3Event$outboundSchema = ReadEvent3Event$inboundSchema;
36725
- ((ReadEvent3Event$) => {
36726
- ReadEvent3Event$.inboundSchema = ReadEvent3Event$inboundSchema;
36727
- ReadEvent3Event$.outboundSchema = ReadEvent3Event$outboundSchema;
36728
- })(ReadEvent3Event$ ||= {});
37004
+ ReadEvent4Event$inboundSchema = nativeEnumType(ReadEvent4Event);
37005
+ ReadEvent4Event$outboundSchema = ReadEvent4Event$inboundSchema;
37006
+ ((ReadEvent4Event$) => {
37007
+ ReadEvent4Event$.inboundSchema = ReadEvent4Event$inboundSchema;
37008
+ ReadEvent4Event$.outboundSchema = ReadEvent4Event$outboundSchema;
37009
+ })(ReadEvent4Event$ ||= {});
36729
37010
  Ping$inboundSchema = objectType({
36730
37011
  data: stringType().transform((v2, ctx) => {
36731
37012
  try {
@@ -36738,34 +37019,62 @@ var init_readevent = __esm(() => {
36738
37019
  return NEVER;
36739
37020
  }
36740
37021
  }).pipe(PingEventData$inboundSchema),
36741
- event: ReadEvent3Event$inboundSchema
37022
+ event: ReadEvent4Event$inboundSchema
36742
37023
  });
36743
37024
  Ping$outboundSchema = objectType({
36744
37025
  data: PingEventData$outboundSchema,
36745
- event: ReadEvent3Event$outboundSchema
37026
+ event: ReadEvent4Event$outboundSchema
36746
37027
  });
36747
37028
  ((Ping$) => {
36748
37029
  Ping$.inboundSchema = Ping$inboundSchema;
36749
37030
  Ping$.outboundSchema = Ping$outboundSchema;
36750
37031
  })(Ping$ ||= {});
36751
- ReadEventEvent$inboundSchema = nativeEnumType(ReadEventEvent);
36752
- ReadEventEvent$outboundSchema = ReadEventEvent$inboundSchema;
36753
- ((ReadEventEvent$) => {
36754
- ReadEventEvent$.inboundSchema = ReadEventEvent$inboundSchema;
36755
- ReadEventEvent$.outboundSchema = ReadEventEvent$outboundSchema;
36756
- })(ReadEventEvent$ ||= {});
37032
+ ReadEvent3Event$inboundSchema = nativeEnumType(ReadEvent3Event);
37033
+ ReadEvent3Event$outboundSchema = ReadEvent3Event$inboundSchema;
37034
+ ((ReadEvent3Event$) => {
37035
+ ReadEvent3Event$.inboundSchema = ReadEvent3Event$inboundSchema;
37036
+ ReadEvent3Event$.outboundSchema = ReadEvent3Event$outboundSchema;
37037
+ })(ReadEvent3Event$ ||= {});
36757
37038
  ErrorT$inboundSchema = objectType({
36758
37039
  data: stringType(),
36759
- event: ReadEventEvent$inboundSchema
37040
+ event: ReadEvent3Event$inboundSchema
36760
37041
  });
36761
37042
  ErrorT$outboundSchema = objectType({
36762
37043
  data: stringType(),
36763
- event: ReadEventEvent$outboundSchema
37044
+ event: ReadEvent3Event$outboundSchema
36764
37045
  });
36765
37046
  ((ErrorT$) => {
36766
37047
  ErrorT$.inboundSchema = ErrorT$inboundSchema;
36767
37048
  ErrorT$.outboundSchema = ErrorT$outboundSchema;
36768
37049
  })(ErrorT$ ||= {});
37050
+ ReadEventEvent$inboundSchema = nativeEnumType(ReadEventEvent);
37051
+ ReadEventEvent$outboundSchema = ReadEventEvent$inboundSchema;
37052
+ ((ReadEventEvent$) => {
37053
+ ReadEventEvent$.inboundSchema = ReadEventEvent$inboundSchema;
37054
+ ReadEventEvent$.outboundSchema = ReadEventEvent$outboundSchema;
37055
+ })(ReadEventEvent$ ||= {});
37056
+ ReadEvent2$inboundSchema = objectType({
37057
+ data: stringType().transform((v2, ctx) => {
37058
+ try {
37059
+ return JSON.parse(v2);
37060
+ } catch (err) {
37061
+ ctx.addIssue({
37062
+ code: ZodIssueCode.custom,
37063
+ message: `malformed json: ${err}`
37064
+ });
37065
+ return NEVER;
37066
+ }
37067
+ }).pipe(TailResponse$inboundSchema),
37068
+ event: ReadEventEvent$inboundSchema
37069
+ });
37070
+ ReadEvent2$outboundSchema = objectType({
37071
+ data: TailResponse$outboundSchema,
37072
+ event: ReadEventEvent$outboundSchema
37073
+ });
37074
+ ((ReadEvent2$) => {
37075
+ ReadEvent2$.inboundSchema = ReadEvent2$inboundSchema;
37076
+ ReadEvent2$.outboundSchema = ReadEvent2$outboundSchema;
37077
+ })(ReadEvent2$ ||= {});
36769
37078
  Event$inboundSchema = nativeEnumType(Event);
36770
37079
  Event$outboundSchema = Event$inboundSchema;
36771
37080
  ((Event$) => {
@@ -36797,11 +37106,13 @@ var init_readevent = __esm(() => {
36797
37106
  Batch$.outboundSchema = Batch$outboundSchema;
36798
37107
  })(Batch$ ||= {});
36799
37108
  ReadEvent$inboundSchema = unionType([
37109
+ lazyType(() => ReadEvent2$inboundSchema),
36800
37110
  lazyType(() => ErrorT$inboundSchema),
36801
37111
  lazyType(() => Ping$inboundSchema),
36802
37112
  lazyType(() => Batch$inboundSchema)
36803
37113
  ]);
36804
37114
  ReadEvent$outboundSchema = unionType([
37115
+ lazyType(() => ReadEvent2$outboundSchema),
36805
37116
  lazyType(() => ErrorT$outboundSchema),
36806
37117
  lazyType(() => Ping$outboundSchema),
36807
37118
  lazyType(() => Batch$outboundSchema)
@@ -36853,42 +37164,33 @@ var init_security2 = __esm(() => {
36853
37164
  })(Security$ ||= {});
36854
37165
  });
36855
37166
 
36856
- // src/models/components/tailresponse.ts
36857
- var TailResponse$inboundSchema, TailResponse$outboundSchema, TailResponse$;
36858
- var init_tailresponse = __esm(() => {
36859
- init_esm();
36860
- init_streamposition();
36861
- TailResponse$inboundSchema = objectType({
36862
- tail: StreamPosition$inboundSchema
36863
- });
36864
- TailResponse$outboundSchema = objectType({
36865
- tail: StreamPosition$outboundSchema
36866
- });
36867
- ((TailResponse$) => {
36868
- TailResponse$.inboundSchema = TailResponse$inboundSchema;
36869
- TailResponse$.outboundSchema = TailResponse$outboundSchema;
36870
- })(TailResponse$ ||= {});
36871
- });
36872
-
36873
37167
  // src/models/components/index.ts
36874
37168
  var init_components = __esm(() => {
36875
37169
  init_accesstokeninfo();
36876
37170
  init_accesstokenscope();
37171
+ init_accountmetricset();
37172
+ init_accumulation();
36877
37173
  init_appendack();
36878
37174
  init_appendinput();
36879
37175
  init_appendrecord();
36880
37176
  init_basinconfig();
36881
37177
  init_basininfo();
37178
+ init_basinmetricset();
36882
37179
  init_basinreconfiguration();
36883
37180
  init_basinscope();
36884
37181
  init_basinstate();
36885
37182
  init_createbasinrequest();
36886
37183
  init_createorreconfigurebasinrequest();
36887
37184
  init_createstreamrequest();
37185
+ init_gauge();
36888
37186
  init_issueaccesstokenresponse();
37187
+ init_label();
36889
37188
  init_listaccesstokensresponse();
36890
37189
  init_listbasinsresponse();
36891
37190
  init_liststreamsresponse();
37191
+ init_metric();
37192
+ init_metricsetresponse();
37193
+ init_metricunit();
36892
37194
  init_operation();
36893
37195
  init_permittedoperationgroups();
36894
37196
  init_pingeventdata();
@@ -36898,6 +37200,7 @@ var init_components = __esm(() => {
36898
37200
  init_resourceset();
36899
37201
  init_retentionpolicy();
36900
37202
  init_s2format();
37203
+ init_scalar();
36901
37204
  init_security2();
36902
37205
  init_sequencedrecord();
36903
37206
  init_storageclass();
@@ -36906,6 +37209,7 @@ var init_components = __esm(() => {
36906
37209
  init_streamposition();
36907
37210
  init_streamreconfiguration();
36908
37211
  init_tailresponse();
37212
+ init_timeseriesinterval();
36909
37213
  init_timestampingconfig();
36910
37214
  init_timestampingmode();
36911
37215
  init_timestampingreconfiguration();
@@ -37023,11 +37327,11 @@ var init_errorresponse = __esm(() => {
37023
37327
  });
37024
37328
 
37025
37329
  // src/models/errors/tailresponse.ts
37026
- var TailResponse, TailResponse$inboundSchema2, TailResponse$outboundSchema2, TailResponse$2;
37330
+ var TailResponse2, TailResponse$inboundSchema2, TailResponse$outboundSchema2, TailResponse$2;
37027
37331
  var init_tailresponse2 = __esm(() => {
37028
37332
  init_esm();
37029
37333
  init_components();
37030
- TailResponse = class TailResponse extends Error {
37334
+ TailResponse2 = class TailResponse2 extends Error {
37031
37335
  tail;
37032
37336
  data$;
37033
37337
  constructor(err) {
@@ -37041,9 +37345,9 @@ var init_tailresponse2 = __esm(() => {
37041
37345
  TailResponse$inboundSchema2 = objectType({
37042
37346
  tail: StreamPosition$inboundSchema
37043
37347
  }).transform((v2) => {
37044
- return new TailResponse(v2);
37348
+ return new TailResponse2(v2);
37045
37349
  });
37046
- TailResponse$outboundSchema2 = instanceOfType(TailResponse).transform((v2) => v2.data$).pipe(objectType({
37350
+ TailResponse$outboundSchema2 = instanceOfType(TailResponse2).transform((v2) => v2.data$).pipe(objectType({
37047
37351
  tail: StreamPosition$outboundSchema
37048
37352
  }));
37049
37353
  ((TailResponse$) => {
@@ -37108,6 +37412,7 @@ async function $do(client, request, options) {
37108
37412
  const securityInput = secConfig == null ? {} : { accessToken: secConfig };
37109
37413
  const requestSecurity = resolveGlobalSecurity(securityInput);
37110
37414
  const context = {
37415
+ options: client._options,
37111
37416
  baseURL: options?.serverURL ?? client._baseURL ?? "",
37112
37417
  operationID: "issue_access_token",
37113
37418
  oAuth2Scopes: [],
@@ -37123,6 +37428,7 @@ async function $do(client, request, options) {
37123
37428
  path,
37124
37429
  headers,
37125
37430
  body,
37431
+ userAgent: client._options.userAgent,
37126
37432
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
37127
37433
  }, options);
37128
37434
  if (!requestRes.ok) {
@@ -37188,6 +37494,29 @@ var init_accessTokensIssueAccessToken2 = __esm(() => {
37188
37494
  };
37189
37495
  });
37190
37496
 
37497
+ // src/models/operations/accountmetrics.ts
37498
+ var AccountMetricsRequest$inboundSchema, AccountMetricsRequest$outboundSchema, AccountMetricsRequest$;
37499
+ var init_accountmetrics = __esm(() => {
37500
+ init_esm();
37501
+ init_components();
37502
+ AccountMetricsRequest$inboundSchema = objectType({
37503
+ set: AccountMetricSet$inboundSchema,
37504
+ start: numberType().int().optional(),
37505
+ end: numberType().int().optional(),
37506
+ interval: TimeseriesInterval$inboundSchema.optional()
37507
+ });
37508
+ AccountMetricsRequest$outboundSchema = objectType({
37509
+ set: AccountMetricSet$outboundSchema,
37510
+ start: numberType().int().optional(),
37511
+ end: numberType().int().optional(),
37512
+ interval: TimeseriesInterval$outboundSchema.optional()
37513
+ });
37514
+ ((AccountMetricsRequest$) => {
37515
+ AccountMetricsRequest$.inboundSchema = AccountMetricsRequest$inboundSchema;
37516
+ AccountMetricsRequest$.outboundSchema = AccountMetricsRequest$outboundSchema;
37517
+ })(AccountMetricsRequest$ ||= {});
37518
+ });
37519
+
37191
37520
  // src/models/operations/append.ts
37192
37521
  var AppendServerList, AppendRequest$inboundSchema, AppendRequest$outboundSchema, AppendRequest$;
37193
37522
  var init_append = __esm(() => {
@@ -37227,6 +37556,31 @@ var init_append = __esm(() => {
37227
37556
  })(AppendRequest$ ||= {});
37228
37557
  });
37229
37558
 
37559
+ // src/models/operations/basinmetrics.ts
37560
+ var BasinMetricsRequest$inboundSchema, BasinMetricsRequest$outboundSchema, BasinMetricsRequest$;
37561
+ var init_basinmetrics = __esm(() => {
37562
+ init_esm();
37563
+ init_components();
37564
+ BasinMetricsRequest$inboundSchema = objectType({
37565
+ set: BasinMetricSet$inboundSchema,
37566
+ start: numberType().int().optional(),
37567
+ end: numberType().int().optional(),
37568
+ interval: TimeseriesInterval$inboundSchema.optional(),
37569
+ basin: stringType()
37570
+ });
37571
+ BasinMetricsRequest$outboundSchema = objectType({
37572
+ set: BasinMetricSet$outboundSchema,
37573
+ start: numberType().int().optional(),
37574
+ end: numberType().int().optional(),
37575
+ interval: TimeseriesInterval$outboundSchema.optional(),
37576
+ basin: stringType()
37577
+ });
37578
+ ((BasinMetricsRequest$) => {
37579
+ BasinMetricsRequest$.inboundSchema = BasinMetricsRequest$inboundSchema;
37580
+ BasinMetricsRequest$.outboundSchema = BasinMetricsRequest$outboundSchema;
37581
+ })(BasinMetricsRequest$ ||= {});
37582
+ });
37583
+
37230
37584
  // src/models/operations/checktail.ts
37231
37585
  var CheckTailServerList, CheckTailRequest$inboundSchema, CheckTailRequest$outboundSchema, CheckTailRequest$;
37232
37586
  var init_checktail = __esm(() => {
@@ -37731,9 +38085,29 @@ var init_revokeaccesstoken = __esm(() => {
37731
38085
  })(RevokeAccessTokenRequest$ ||= {});
37732
38086
  });
37733
38087
 
38088
+ // src/models/operations/streammetrics.ts
38089
+ var StreamMetricsRequest$inboundSchema, StreamMetricsRequest$outboundSchema, StreamMetricsRequest$;
38090
+ var init_streammetrics = __esm(() => {
38091
+ init_esm();
38092
+ StreamMetricsRequest$inboundSchema = objectType({
38093
+ basin: stringType(),
38094
+ stream: stringType()
38095
+ });
38096
+ StreamMetricsRequest$outboundSchema = objectType({
38097
+ basin: stringType(),
38098
+ stream: stringType()
38099
+ });
38100
+ ((StreamMetricsRequest$) => {
38101
+ StreamMetricsRequest$.inboundSchema = StreamMetricsRequest$inboundSchema;
38102
+ StreamMetricsRequest$.outboundSchema = StreamMetricsRequest$outboundSchema;
38103
+ })(StreamMetricsRequest$ ||= {});
38104
+ });
38105
+
37734
38106
  // src/models/operations/index.ts
37735
38107
  var init_operations = __esm(() => {
38108
+ init_accountmetrics();
37736
38109
  init_append();
38110
+ init_basinmetrics();
37737
38111
  init_checktail();
37738
38112
  init_createorreconfigurebasin();
37739
38113
  init_createorreconfigurestream();
@@ -37749,6 +38123,7 @@ var init_operations = __esm(() => {
37749
38123
  init_reconfigurebasin();
37750
38124
  init_reconfigurestream();
37751
38125
  init_revokeaccesstoken();
38126
+ init_streammetrics();
37752
38127
  });
37753
38128
 
37754
38129
  // src/funcs/accessTokensListAccessTokens.ts
@@ -37775,6 +38150,7 @@ async function $do2(client, request, options) {
37775
38150
  const securityInput = secConfig == null ? {} : { accessToken: secConfig };
37776
38151
  const requestSecurity = resolveGlobalSecurity(securityInput);
37777
38152
  const context = {
38153
+ options: client._options,
37778
38154
  baseURL: options?.serverURL ?? client._baseURL ?? "",
37779
38155
  operationID: "list_access_tokens",
37780
38156
  oAuth2Scopes: [],
@@ -37791,6 +38167,7 @@ async function $do2(client, request, options) {
37791
38167
  headers,
37792
38168
  query,
37793
38169
  body,
38170
+ userAgent: client._options.userAgent,
37794
38171
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
37795
38172
  }, options);
37796
38173
  if (!requestRes.ok) {
@@ -37882,6 +38259,7 @@ async function $do3(client, request, options) {
37882
38259
  const securityInput = secConfig == null ? {} : { accessToken: secConfig };
37883
38260
  const requestSecurity = resolveGlobalSecurity(securityInput);
37884
38261
  const context = {
38262
+ options: client._options,
37885
38263
  baseURL: options?.serverURL ?? client._baseURL ?? "",
37886
38264
  operationID: "revoke_access_token",
37887
38265
  oAuth2Scopes: [],
@@ -37897,6 +38275,7 @@ async function $do3(client, request, options) {
37897
38275
  path,
37898
38276
  headers,
37899
38277
  body,
38278
+ userAgent: client._options.userAgent,
37900
38279
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
37901
38280
  }, options);
37902
38281
  if (!requestRes.ok) {
@@ -37982,6 +38361,7 @@ async function $do4(client, request, options) {
37982
38361
  const securityInput = secConfig == null ? {} : { accessToken: secConfig };
37983
38362
  const requestSecurity = resolveGlobalSecurity(securityInput);
37984
38363
  const context = {
38364
+ options: client._options,
37985
38365
  baseURL: options?.serverURL ?? client._baseURL ?? "",
37986
38366
  operationID: "create_basin",
37987
38367
  oAuth2Scopes: [],
@@ -37997,6 +38377,7 @@ async function $do4(client, request, options) {
37997
38377
  path,
37998
38378
  headers,
37999
38379
  body,
38380
+ userAgent: client._options.userAgent,
38000
38381
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
38001
38382
  }, options);
38002
38383
  if (!requestRes.ok) {
@@ -38091,6 +38472,7 @@ async function $do5(client, request, options) {
38091
38472
  const securityInput = secConfig == null ? {} : { accessToken: secConfig };
38092
38473
  const requestSecurity = resolveGlobalSecurity(securityInput);
38093
38474
  const context = {
38475
+ options: client._options,
38094
38476
  baseURL: options?.serverURL ?? client._baseURL ?? "",
38095
38477
  operationID: "create_or_reconfigure_basin",
38096
38478
  oAuth2Scopes: [],
@@ -38106,6 +38488,7 @@ async function $do5(client, request, options) {
38106
38488
  path,
38107
38489
  headers,
38108
38490
  body,
38491
+ userAgent: client._options.userAgent,
38109
38492
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
38110
38493
  }, options);
38111
38494
  if (!requestRes.ok) {
@@ -38197,6 +38580,7 @@ async function $do6(client, request, options) {
38197
38580
  const securityInput = secConfig == null ? {} : { accessToken: secConfig };
38198
38581
  const requestSecurity = resolveGlobalSecurity(securityInput);
38199
38582
  const context = {
38583
+ options: client._options,
38200
38584
  baseURL: options?.serverURL ?? client._baseURL ?? "",
38201
38585
  operationID: "delete_basin",
38202
38586
  oAuth2Scopes: [],
@@ -38212,6 +38596,7 @@ async function $do6(client, request, options) {
38212
38596
  path,
38213
38597
  headers,
38214
38598
  body,
38599
+ userAgent: client._options.userAgent,
38215
38600
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
38216
38601
  }, options);
38217
38602
  if (!requestRes.ok) {
@@ -38302,6 +38687,7 @@ async function $do7(client, request, options) {
38302
38687
  const securityInput = secConfig == null ? {} : { accessToken: secConfig };
38303
38688
  const requestSecurity = resolveGlobalSecurity(securityInput);
38304
38689
  const context = {
38690
+ options: client._options,
38305
38691
  baseURL: options?.serverURL ?? client._baseURL ?? "",
38306
38692
  operationID: "get_basin_config",
38307
38693
  oAuth2Scopes: [],
@@ -38317,6 +38703,7 @@ async function $do7(client, request, options) {
38317
38703
  path,
38318
38704
  headers,
38319
38705
  body,
38706
+ userAgent: client._options.userAgent,
38320
38707
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
38321
38708
  }, options);
38322
38709
  if (!requestRes.ok) {
@@ -42226,6 +42613,7 @@ async function $do8(client, request, options) {
42226
42613
  const securityInput = secConfig == null ? {} : { accessToken: secConfig };
42227
42614
  const requestSecurity = resolveGlobalSecurity(securityInput);
42228
42615
  const context = {
42616
+ options: client._options,
42229
42617
  baseURL: options?.serverURL ?? client._baseURL ?? "",
42230
42618
  operationID: "list_basins",
42231
42619
  oAuth2Scopes: [],
@@ -42242,6 +42630,7 @@ async function $do8(client, request, options) {
42242
42630
  headers,
42243
42631
  query: query2,
42244
42632
  body,
42633
+ userAgent: client._options.userAgent,
42245
42634
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
42246
42635
  }, options);
42247
42636
  if (!requestRes.ok) {
@@ -42357,6 +42746,7 @@ async function $do9(client, request, options) {
42357
42746
  const securityInput = secConfig == null ? {} : { accessToken: secConfig };
42358
42747
  const requestSecurity = resolveGlobalSecurity(securityInput);
42359
42748
  const context = {
42749
+ options: client._options,
42360
42750
  baseURL: options?.serverURL ?? client._baseURL ?? "",
42361
42751
  operationID: "reconfigure_basin",
42362
42752
  oAuth2Scopes: [],
@@ -42372,6 +42762,7 @@ async function $do9(client, request, options) {
42372
42762
  path,
42373
42763
  headers,
42374
42764
  body,
42765
+ userAgent: client._options.userAgent,
42375
42766
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
42376
42767
  }, options);
42377
42768
  if (!requestRes.ok) {
@@ -42438,45 +42829,34 @@ var init_basinsReconfigureBasin2 = __esm(() => {
42438
42829
  };
42439
42830
  });
42440
42831
 
42441
- // src/funcs/recordsAppend.ts
42442
- function recordsAppend(client, request, options) {
42832
+ // src/funcs/metricsAccountMetrics.ts
42833
+ function metricsAccountMetrics(client, request, options) {
42443
42834
  return new APIPromise($do10(client, request, options));
42444
42835
  }
42445
42836
  async function $do10(client, request, options) {
42446
- const parsed = safeParse(request, (value2) => AppendRequest$outboundSchema.parse(value2), "Input validation failed");
42837
+ const parsed = safeParse(request, (value2) => AccountMetricsRequest$outboundSchema.parse(value2), "Input validation failed");
42447
42838
  if (!parsed.ok) {
42448
42839
  return [parsed, { status: "invalid" }];
42449
42840
  }
42450
42841
  const payload = parsed.value;
42451
- const body = encodeJSON("body", payload.AppendInput, { explode: true });
42452
- const baseURL = options?.serverURL || pathToFunc(AppendServerList[0], { charEncoding: "percent" })({
42453
- basin: ""
42842
+ const body = null;
42843
+ const path = pathToFunc("/metrics")();
42844
+ const query2 = encodeFormQuery({
42845
+ end: payload.end,
42846
+ interval: payload.interval,
42847
+ set: payload.set,
42848
+ start: payload.start
42454
42849
  });
42455
- const pathParams = {
42456
- stream: encodeSimple("stream", payload.stream, {
42457
- explode: false,
42458
- charEncoding: "percent"
42459
- })
42460
- };
42461
- const path = pathToFunc("/streams/{stream}/records")(pathParams);
42462
42850
  const headers = new Headers(compactMap({
42463
- "Content-Type": "application/json",
42464
- Accept: "application/json",
42465
- "s2-basin": encodeSimple("s2-basin", payload["s2-basin"], {
42466
- explode: false,
42467
- charEncoding: "none"
42468
- }),
42469
- "s2-format": encodeSimple("s2-format", payload["s2-format"], {
42470
- explode: false,
42471
- charEncoding: "none"
42472
- })
42851
+ Accept: "application/json"
42473
42852
  }));
42474
42853
  const secConfig = await extractSecurity(client._options.accessToken);
42475
42854
  const securityInput = secConfig == null ? {} : { accessToken: secConfig };
42476
42855
  const requestSecurity = resolveGlobalSecurity(securityInput);
42477
42856
  const context = {
42478
- baseURL: baseURL ?? "",
42479
- operationID: "append",
42857
+ options: client._options,
42858
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
42859
+ operationID: "account_metrics",
42480
42860
  oAuth2Scopes: [],
42481
42861
  resolvedSecurity: requestSecurity,
42482
42862
  securitySource: client._options.accessToken,
@@ -42485,11 +42865,13 @@ async function $do10(client, request, options) {
42485
42865
  };
42486
42866
  const requestRes = client._createRequest(context, {
42487
42867
  security: requestSecurity,
42488
- method: "POST",
42489
- baseURL,
42868
+ method: "GET",
42869
+ baseURL: options?.serverURL,
42490
42870
  path,
42491
42871
  headers,
42872
+ query: query2,
42492
42873
  body,
42874
+ userAgent: client._options.userAgent,
42493
42875
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
42494
42876
  }, options);
42495
42877
  if (!requestRes.ok) {
@@ -42498,7 +42880,7 @@ async function $do10(client, request, options) {
42498
42880
  const req = requestRes.value;
42499
42881
  const doResult = await client._do(req, {
42500
42882
  context,
42501
- errorCodes: ["400", "401", "404", "409", "412", "4XX", "500", "5XX"],
42883
+ errorCodes: ["400", "403", "4XX", "5XX"],
42502
42884
  retryConfig: context.retryConfig,
42503
42885
  retryCodes: context.retryCodes
42504
42886
  });
@@ -42509,13 +42891,13 @@ async function $do10(client, request, options) {
42509
42891
  const responseFields = {
42510
42892
  HttpMeta: { Response: response, Request: req }
42511
42893
  };
42512
- const [result] = await match(json(200, AppendAck$inboundSchema), jsonErr([400, 401, 404, 409], ErrorResponse$inboundSchema), jsonErr(412, AppendConditionFailed$inboundSchema), jsonErr(500, ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
42894
+ const [result] = await match(json(200, MetricSetResponse$inboundSchema), jsonErr([400, 403], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
42513
42895
  if (!result.ok) {
42514
42896
  return [result, { status: "complete", request: req, response }];
42515
42897
  }
42516
42898
  return [result, { status: "complete", request: req, response }];
42517
42899
  }
42518
- var init_recordsAppend = __esm(() => {
42900
+ var init_metricsAccountMetrics = __esm(() => {
42519
42901
  init_encodings();
42520
42902
  init_matchers();
42521
42903
  init_primitives();
@@ -42524,29 +42906,26 @@ var init_recordsAppend = __esm(() => {
42524
42906
  init_url();
42525
42907
  init_components();
42526
42908
  init_errors2();
42527
- init_append();
42528
42909
  init_operations();
42529
42910
  init_async();
42530
42911
  });
42531
42912
 
42532
- // src/mcp-server/tools/recordsAppend.ts
42533
- var args10, tool$recordsAppend;
42534
- var init_recordsAppend2 = __esm(() => {
42535
- init_recordsAppend();
42913
+ // src/mcp-server/tools/metricsAccountMetrics.ts
42914
+ var args10, tool$metricsAccountMetrics;
42915
+ var init_metricsAccountMetrics2 = __esm(() => {
42916
+ init_metricsAccountMetrics();
42536
42917
  init_operations();
42537
42918
  init_tools();
42538
42919
  args10 = {
42539
- request: AppendRequest$inboundSchema
42920
+ request: AccountMetricsRequest$inboundSchema
42540
42921
  };
42541
- tool$recordsAppend = {
42542
- name: "records-append",
42543
- description: `Append records.
42544
-
42545
- Append a batch of records to a stream.`,
42546
- scopes: ["write", "write", "write"],
42922
+ tool$metricsAccountMetrics = {
42923
+ name: "metrics-account-metrics",
42924
+ description: `Get account level metrics.`,
42925
+ scopes: ["read", "read", "read"],
42547
42926
  args: args10,
42548
42927
  tool: async (client, args11, ctx) => {
42549
- const [result, apiCall] = await recordsAppend(client, args11.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
42928
+ const [result, apiCall] = await metricsAccountMetrics(client, args11.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
42550
42929
  if (!result.ok) {
42551
42930
  return {
42552
42931
  content: [{ type: "text", text: result.error.message }],
@@ -42559,40 +42938,40 @@ Append a batch of records to a stream.`,
42559
42938
  };
42560
42939
  });
42561
42940
 
42562
- // src/funcs/recordsCheckTail.ts
42563
- function recordsCheckTail(client, request, options) {
42941
+ // src/funcs/metricsBasinMetrics.ts
42942
+ function metricsBasinMetrics(client, request, options) {
42564
42943
  return new APIPromise($do11(client, request, options));
42565
42944
  }
42566
42945
  async function $do11(client, request, options) {
42567
- const parsed = safeParse(request, (value2) => CheckTailRequest$outboundSchema.parse(value2), "Input validation failed");
42946
+ const parsed = safeParse(request, (value2) => BasinMetricsRequest$outboundSchema.parse(value2), "Input validation failed");
42568
42947
  if (!parsed.ok) {
42569
42948
  return [parsed, { status: "invalid" }];
42570
42949
  }
42571
42950
  const payload = parsed.value;
42572
42951
  const body = null;
42573
- const baseURL = options?.serverURL || pathToFunc(CheckTailServerList[0], { charEncoding: "percent" })({
42574
- basin: ""
42575
- });
42576
42952
  const pathParams = {
42577
- stream: encodeSimple("stream", payload.stream, {
42953
+ basin: encodeSimple("basin", payload.basin, {
42578
42954
  explode: false,
42579
42955
  charEncoding: "percent"
42580
42956
  })
42581
42957
  };
42582
- const path = pathToFunc("/streams/{stream}/records/tail")(pathParams);
42958
+ const path = pathToFunc("/metrics/{basin}")(pathParams);
42959
+ const query2 = encodeFormQuery({
42960
+ end: payload.end,
42961
+ interval: payload.interval,
42962
+ set: payload.set,
42963
+ start: payload.start
42964
+ });
42583
42965
  const headers = new Headers(compactMap({
42584
- Accept: "application/json",
42585
- "s2-basin": encodeSimple("s2-basin", payload["s2-basin"], {
42586
- explode: false,
42587
- charEncoding: "none"
42588
- })
42966
+ Accept: "application/json"
42589
42967
  }));
42590
42968
  const secConfig = await extractSecurity(client._options.accessToken);
42591
42969
  const securityInput = secConfig == null ? {} : { accessToken: secConfig };
42592
42970
  const requestSecurity = resolveGlobalSecurity(securityInput);
42593
42971
  const context = {
42594
- baseURL: baseURL ?? "",
42595
- operationID: "check_tail",
42972
+ options: client._options,
42973
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
42974
+ operationID: "basin_metrics",
42596
42975
  oAuth2Scopes: [],
42597
42976
  resolvedSecurity: requestSecurity,
42598
42977
  securitySource: client._options.accessToken,
@@ -42602,10 +42981,12 @@ async function $do11(client, request, options) {
42602
42981
  const requestRes = client._createRequest(context, {
42603
42982
  security: requestSecurity,
42604
42983
  method: "GET",
42605
- baseURL,
42984
+ baseURL: options?.serverURL,
42606
42985
  path,
42607
42986
  headers,
42987
+ query: query2,
42608
42988
  body,
42989
+ userAgent: client._options.userAgent,
42609
42990
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
42610
42991
  }, options);
42611
42992
  if (!requestRes.ok) {
@@ -42614,7 +42995,7 @@ async function $do11(client, request, options) {
42614
42995
  const req = requestRes.value;
42615
42996
  const doResult = await client._do(req, {
42616
42997
  context,
42617
- errorCodes: ["400", "401", "404", "409", "4XX", "500", "5XX"],
42998
+ errorCodes: ["400", "403", "4XX", "5XX"],
42618
42999
  retryConfig: context.retryConfig,
42619
43000
  retryCodes: context.retryCodes
42620
43001
  });
@@ -42625,13 +43006,13 @@ async function $do11(client, request, options) {
42625
43006
  const responseFields = {
42626
43007
  HttpMeta: { Response: response, Request: req }
42627
43008
  };
42628
- const [result] = await match(json(200, TailResponse$inboundSchema), jsonErr([400, 401, 404, 409], ErrorResponse$inboundSchema), jsonErr(500, ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
43009
+ const [result] = await match(json(200, MetricSetResponse$inboundSchema), jsonErr([400, 403], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
42629
43010
  if (!result.ok) {
42630
43011
  return [result, { status: "complete", request: req, response }];
42631
43012
  }
42632
43013
  return [result, { status: "complete", request: req, response }];
42633
43014
  }
42634
- var init_recordsCheckTail = __esm(() => {
43015
+ var init_metricsBasinMetrics = __esm(() => {
42635
43016
  init_encodings();
42636
43017
  init_matchers();
42637
43018
  init_primitives();
@@ -42640,19 +43021,369 @@ var init_recordsCheckTail = __esm(() => {
42640
43021
  init_url();
42641
43022
  init_components();
42642
43023
  init_errors2();
42643
- init_checktail();
42644
43024
  init_operations();
42645
43025
  init_async();
42646
43026
  });
42647
43027
 
42648
- // src/mcp-server/tools/recordsCheckTail.ts
42649
- var args11, tool$recordsCheckTail;
42650
- var init_recordsCheckTail2 = __esm(() => {
42651
- init_recordsCheckTail();
43028
+ // src/mcp-server/tools/metricsBasinMetrics.ts
43029
+ var args11, tool$metricsBasinMetrics;
43030
+ var init_metricsBasinMetrics2 = __esm(() => {
43031
+ init_metricsBasinMetrics();
42652
43032
  init_operations();
42653
43033
  init_tools();
42654
43034
  args11 = {
42655
- request: CheckTailRequest$inboundSchema
43035
+ request: BasinMetricsRequest$inboundSchema
43036
+ };
43037
+ tool$metricsBasinMetrics = {
43038
+ name: "metrics-basin-metrics",
43039
+ description: `Get metrics for a basin.`,
43040
+ scopes: ["read", "read", "read"],
43041
+ args: args11,
43042
+ tool: async (client, args12, ctx) => {
43043
+ const [result, apiCall] = await metricsBasinMetrics(client, args12.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
43044
+ if (!result.ok) {
43045
+ return {
43046
+ content: [{ type: "text", text: result.error.message }],
43047
+ isError: true
43048
+ };
43049
+ }
43050
+ const value2 = result.value;
43051
+ return formatResult(value2, apiCall);
43052
+ }
43053
+ };
43054
+ });
43055
+
43056
+ // src/funcs/metricsStreamMetrics.ts
43057
+ function metricsStreamMetrics(client, request, options) {
43058
+ return new APIPromise($do12(client, request, options));
43059
+ }
43060
+ async function $do12(client, request, options) {
43061
+ const parsed = safeParse(request, (value2) => StreamMetricsRequest$outboundSchema.parse(value2), "Input validation failed");
43062
+ if (!parsed.ok) {
43063
+ return [parsed, { status: "invalid" }];
43064
+ }
43065
+ const payload = parsed.value;
43066
+ const body = null;
43067
+ const pathParams = {
43068
+ basin: encodeSimple("basin", payload.basin, {
43069
+ explode: false,
43070
+ charEncoding: "percent"
43071
+ }),
43072
+ stream: encodeSimple("stream", payload.stream, {
43073
+ explode: false,
43074
+ charEncoding: "percent"
43075
+ })
43076
+ };
43077
+ const path = pathToFunc("/metrics/{basin}/{stream}")(pathParams);
43078
+ const headers = new Headers(compactMap({
43079
+ Accept: "application/json"
43080
+ }));
43081
+ const secConfig = await extractSecurity(client._options.accessToken);
43082
+ const securityInput = secConfig == null ? {} : { accessToken: secConfig };
43083
+ const requestSecurity = resolveGlobalSecurity(securityInput);
43084
+ const context = {
43085
+ options: client._options,
43086
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
43087
+ operationID: "stream_metrics",
43088
+ oAuth2Scopes: [],
43089
+ resolvedSecurity: requestSecurity,
43090
+ securitySource: client._options.accessToken,
43091
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
43092
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
43093
+ };
43094
+ const requestRes = client._createRequest(context, {
43095
+ security: requestSecurity,
43096
+ method: "GET",
43097
+ baseURL: options?.serverURL,
43098
+ path,
43099
+ headers,
43100
+ body,
43101
+ userAgent: client._options.userAgent,
43102
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
43103
+ }, options);
43104
+ if (!requestRes.ok) {
43105
+ return [requestRes, { status: "invalid" }];
43106
+ }
43107
+ const req = requestRes.value;
43108
+ const doResult = await client._do(req, {
43109
+ context,
43110
+ errorCodes: ["400", "403", "4XX", "5XX"],
43111
+ retryConfig: context.retryConfig,
43112
+ retryCodes: context.retryCodes
43113
+ });
43114
+ if (!doResult.ok) {
43115
+ return [doResult, { status: "request-error", request: req }];
43116
+ }
43117
+ const response = doResult.value;
43118
+ const responseFields = {
43119
+ HttpMeta: { Response: response, Request: req }
43120
+ };
43121
+ const [result] = await match(json(200, MetricSetResponse$inboundSchema), jsonErr([400, 403], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
43122
+ if (!result.ok) {
43123
+ return [result, { status: "complete", request: req, response }];
43124
+ }
43125
+ return [result, { status: "complete", request: req, response }];
43126
+ }
43127
+ var init_metricsStreamMetrics = __esm(() => {
43128
+ init_encodings();
43129
+ init_matchers();
43130
+ init_primitives();
43131
+ init_schemas();
43132
+ init_security();
43133
+ init_url();
43134
+ init_components();
43135
+ init_errors2();
43136
+ init_operations();
43137
+ init_async();
43138
+ });
43139
+
43140
+ // src/mcp-server/tools/metricsStreamMetrics.ts
43141
+ var args12, tool$metricsStreamMetrics;
43142
+ var init_metricsStreamMetrics2 = __esm(() => {
43143
+ init_metricsStreamMetrics();
43144
+ init_operations();
43145
+ init_tools();
43146
+ args12 = {
43147
+ request: StreamMetricsRequest$inboundSchema
43148
+ };
43149
+ tool$metricsStreamMetrics = {
43150
+ name: "metrics-stream-metrics",
43151
+ description: `Get metrics for a stream.`,
43152
+ scopes: ["read", "read", "read"],
43153
+ args: args12,
43154
+ tool: async (client, args13, ctx) => {
43155
+ const [result, apiCall] = await metricsStreamMetrics(client, args13.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
43156
+ if (!result.ok) {
43157
+ return {
43158
+ content: [{ type: "text", text: result.error.message }],
43159
+ isError: true
43160
+ };
43161
+ }
43162
+ const value2 = result.value;
43163
+ return formatResult(value2, apiCall);
43164
+ }
43165
+ };
43166
+ });
43167
+
43168
+ // src/funcs/recordsAppend.ts
43169
+ function recordsAppend(client, request, options) {
43170
+ return new APIPromise($do13(client, request, options));
43171
+ }
43172
+ async function $do13(client, request, options) {
43173
+ const parsed = safeParse(request, (value2) => AppendRequest$outboundSchema.parse(value2), "Input validation failed");
43174
+ if (!parsed.ok) {
43175
+ return [parsed, { status: "invalid" }];
43176
+ }
43177
+ const payload = parsed.value;
43178
+ const body = encodeJSON("body", payload.AppendInput, { explode: true });
43179
+ const baseURL = options?.serverURL || pathToFunc(AppendServerList[0], { charEncoding: "percent" })({
43180
+ basin: ""
43181
+ });
43182
+ const pathParams = {
43183
+ stream: encodeSimple("stream", payload.stream, {
43184
+ explode: false,
43185
+ charEncoding: "percent"
43186
+ })
43187
+ };
43188
+ const path = pathToFunc("/streams/{stream}/records")(pathParams);
43189
+ const headers = new Headers(compactMap({
43190
+ "Content-Type": "application/json",
43191
+ Accept: "application/json",
43192
+ "s2-basin": encodeSimple("s2-basin", payload["s2-basin"], {
43193
+ explode: false,
43194
+ charEncoding: "none"
43195
+ }),
43196
+ "s2-format": encodeSimple("s2-format", payload["s2-format"], {
43197
+ explode: false,
43198
+ charEncoding: "none"
43199
+ })
43200
+ }));
43201
+ const secConfig = await extractSecurity(client._options.accessToken);
43202
+ const securityInput = secConfig == null ? {} : { accessToken: secConfig };
43203
+ const requestSecurity = resolveGlobalSecurity(securityInput);
43204
+ const context = {
43205
+ options: client._options,
43206
+ baseURL: baseURL ?? "",
43207
+ operationID: "append",
43208
+ oAuth2Scopes: [],
43209
+ resolvedSecurity: requestSecurity,
43210
+ securitySource: client._options.accessToken,
43211
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
43212
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
43213
+ };
43214
+ const requestRes = client._createRequest(context, {
43215
+ security: requestSecurity,
43216
+ method: "POST",
43217
+ baseURL,
43218
+ path,
43219
+ headers,
43220
+ body,
43221
+ userAgent: client._options.userAgent,
43222
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
43223
+ }, options);
43224
+ if (!requestRes.ok) {
43225
+ return [requestRes, { status: "invalid" }];
43226
+ }
43227
+ const req = requestRes.value;
43228
+ const doResult = await client._do(req, {
43229
+ context,
43230
+ errorCodes: ["400", "401", "404", "409", "412", "4XX", "500", "5XX"],
43231
+ retryConfig: context.retryConfig,
43232
+ retryCodes: context.retryCodes
43233
+ });
43234
+ if (!doResult.ok) {
43235
+ return [doResult, { status: "request-error", request: req }];
43236
+ }
43237
+ const response = doResult.value;
43238
+ const responseFields = {
43239
+ HttpMeta: { Response: response, Request: req }
43240
+ };
43241
+ const [result] = await match(json(200, AppendAck$inboundSchema), jsonErr([400, 401, 404, 409], ErrorResponse$inboundSchema), jsonErr(412, AppendConditionFailed$inboundSchema), jsonErr(500, ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
43242
+ if (!result.ok) {
43243
+ return [result, { status: "complete", request: req, response }];
43244
+ }
43245
+ return [result, { status: "complete", request: req, response }];
43246
+ }
43247
+ var init_recordsAppend = __esm(() => {
43248
+ init_encodings();
43249
+ init_matchers();
43250
+ init_primitives();
43251
+ init_schemas();
43252
+ init_security();
43253
+ init_url();
43254
+ init_components();
43255
+ init_errors2();
43256
+ init_append();
43257
+ init_operations();
43258
+ init_async();
43259
+ });
43260
+
43261
+ // src/mcp-server/tools/recordsAppend.ts
43262
+ var args13, tool$recordsAppend;
43263
+ var init_recordsAppend2 = __esm(() => {
43264
+ init_recordsAppend();
43265
+ init_operations();
43266
+ init_tools();
43267
+ args13 = {
43268
+ request: AppendRequest$inboundSchema
43269
+ };
43270
+ tool$recordsAppend = {
43271
+ name: "records-append",
43272
+ description: `Append records.
43273
+
43274
+ Append a batch of records to a stream.`,
43275
+ scopes: ["write", "write", "write"],
43276
+ args: args13,
43277
+ tool: async (client, args14, ctx) => {
43278
+ const [result, apiCall] = await recordsAppend(client, args14.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
43279
+ if (!result.ok) {
43280
+ return {
43281
+ content: [{ type: "text", text: result.error.message }],
43282
+ isError: true
43283
+ };
43284
+ }
43285
+ const value2 = result.value;
43286
+ return formatResult(value2, apiCall);
43287
+ }
43288
+ };
43289
+ });
43290
+
43291
+ // src/funcs/recordsCheckTail.ts
43292
+ function recordsCheckTail(client, request, options) {
43293
+ return new APIPromise($do14(client, request, options));
43294
+ }
43295
+ async function $do14(client, request, options) {
43296
+ const parsed = safeParse(request, (value2) => CheckTailRequest$outboundSchema.parse(value2), "Input validation failed");
43297
+ if (!parsed.ok) {
43298
+ return [parsed, { status: "invalid" }];
43299
+ }
43300
+ const payload = parsed.value;
43301
+ const body = null;
43302
+ const baseURL = options?.serverURL || pathToFunc(CheckTailServerList[0], { charEncoding: "percent" })({
43303
+ basin: ""
43304
+ });
43305
+ const pathParams = {
43306
+ stream: encodeSimple("stream", payload.stream, {
43307
+ explode: false,
43308
+ charEncoding: "percent"
43309
+ })
43310
+ };
43311
+ const path = pathToFunc("/streams/{stream}/records/tail")(pathParams);
43312
+ const headers = new Headers(compactMap({
43313
+ Accept: "application/json",
43314
+ "s2-basin": encodeSimple("s2-basin", payload["s2-basin"], {
43315
+ explode: false,
43316
+ charEncoding: "none"
43317
+ })
43318
+ }));
43319
+ const secConfig = await extractSecurity(client._options.accessToken);
43320
+ const securityInput = secConfig == null ? {} : { accessToken: secConfig };
43321
+ const requestSecurity = resolveGlobalSecurity(securityInput);
43322
+ const context = {
43323
+ options: client._options,
43324
+ baseURL: baseURL ?? "",
43325
+ operationID: "check_tail",
43326
+ oAuth2Scopes: [],
43327
+ resolvedSecurity: requestSecurity,
43328
+ securitySource: client._options.accessToken,
43329
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
43330
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
43331
+ };
43332
+ const requestRes = client._createRequest(context, {
43333
+ security: requestSecurity,
43334
+ method: "GET",
43335
+ baseURL,
43336
+ path,
43337
+ headers,
43338
+ body,
43339
+ userAgent: client._options.userAgent,
43340
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
43341
+ }, options);
43342
+ if (!requestRes.ok) {
43343
+ return [requestRes, { status: "invalid" }];
43344
+ }
43345
+ const req = requestRes.value;
43346
+ const doResult = await client._do(req, {
43347
+ context,
43348
+ errorCodes: ["400", "401", "404", "409", "4XX", "500", "5XX"],
43349
+ retryConfig: context.retryConfig,
43350
+ retryCodes: context.retryCodes
43351
+ });
43352
+ if (!doResult.ok) {
43353
+ return [doResult, { status: "request-error", request: req }];
43354
+ }
43355
+ const response = doResult.value;
43356
+ const responseFields = {
43357
+ HttpMeta: { Response: response, Request: req }
43358
+ };
43359
+ const [result] = await match(json(200, TailResponse$inboundSchema), jsonErr([400, 401, 404, 409], ErrorResponse$inboundSchema), jsonErr(500, ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
43360
+ if (!result.ok) {
43361
+ return [result, { status: "complete", request: req, response }];
43362
+ }
43363
+ return [result, { status: "complete", request: req, response }];
43364
+ }
43365
+ var init_recordsCheckTail = __esm(() => {
43366
+ init_encodings();
43367
+ init_matchers();
43368
+ init_primitives();
43369
+ init_schemas();
43370
+ init_security();
43371
+ init_url();
43372
+ init_components();
43373
+ init_errors2();
43374
+ init_checktail();
43375
+ init_operations();
43376
+ init_async();
43377
+ });
43378
+
43379
+ // src/mcp-server/tools/recordsCheckTail.ts
43380
+ var args14, tool$recordsCheckTail;
43381
+ var init_recordsCheckTail2 = __esm(() => {
43382
+ init_recordsCheckTail();
43383
+ init_operations();
43384
+ init_tools();
43385
+ args14 = {
43386
+ request: CheckTailRequest$inboundSchema
42656
43387
  };
42657
43388
  tool$recordsCheckTail = {
42658
43389
  name: "records-check-tail",
@@ -42660,9 +43391,9 @@ var init_recordsCheckTail2 = __esm(() => {
42660
43391
 
42661
43392
  Check the tail of a stream.`,
42662
43393
  scopes: ["read", "read", "read"],
42663
- args: args11,
42664
- tool: async (client, args12, ctx) => {
42665
- const [result, apiCall] = await recordsCheckTail(client, args12.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
43394
+ args: args14,
43395
+ tool: async (client, args15, ctx) => {
43396
+ const [result, apiCall] = await recordsCheckTail(client, args15.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
42666
43397
  if (!result.ok) {
42667
43398
  return {
42668
43399
  content: [{ type: "text", text: result.error.message }],
@@ -42677,9 +43408,9 @@ Check the tail of a stream.`,
42677
43408
 
42678
43409
  // src/funcs/recordsRead.ts
42679
43410
  function recordsRead(client, request, options) {
42680
- return new APIPromise($do12(client, request, options));
43411
+ return new APIPromise($do15(client, request, options));
42681
43412
  }
42682
- async function $do12(client, request, options) {
43413
+ async function $do15(client, request, options) {
42683
43414
  const parsed = safeParse(request, (value2) => ReadRequest$outboundSchema.parse(value2), "Input validation failed");
42684
43415
  if (!parsed.ok) {
42685
43416
  return [parsed, { status: "invalid" }];
@@ -42718,6 +43449,7 @@ async function $do12(client, request, options) {
42718
43449
  const securityInput = secConfig == null ? {} : { accessToken: secConfig };
42719
43450
  const requestSecurity = resolveGlobalSecurity(securityInput);
42720
43451
  const context = {
43452
+ options: client._options,
42721
43453
  baseURL: baseURL ?? "",
42722
43454
  operationID: "read",
42723
43455
  oAuth2Scopes: [],
@@ -42734,6 +43466,7 @@ async function $do12(client, request, options) {
42734
43466
  headers,
42735
43467
  query: query2,
42736
43468
  body,
43469
+ userAgent: client._options.userAgent,
42737
43470
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
42738
43471
  }, options);
42739
43472
  if (!requestRes.ok) {
@@ -42775,12 +43508,12 @@ var init_recordsRead = __esm(() => {
42775
43508
  });
42776
43509
 
42777
43510
  // src/mcp-server/tools/recordsRead.ts
42778
- var args12, tool$recordsRead;
43511
+ var args15, tool$recordsRead;
42779
43512
  var init_recordsRead2 = __esm(() => {
42780
43513
  init_recordsRead();
42781
43514
  init_operations();
42782
43515
  init_tools();
42783
- args12 = {
43516
+ args15 = {
42784
43517
  request: ReadRequest$inboundSchema
42785
43518
  };
42786
43519
  tool$recordsRead = {
@@ -42789,9 +43522,9 @@ var init_recordsRead2 = __esm(() => {
42789
43522
 
42790
43523
  Retrieve a batch of records, or set \`Accept: text/event-stream\` to stream using server-sent events.`,
42791
43524
  scopes: ["read", "read", "read"],
42792
- args: args12,
42793
- tool: async (client, args13, ctx) => {
42794
- const [result, apiCall] = await recordsRead(client, args13.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
43525
+ args: args15,
43526
+ tool: async (client, args16, ctx) => {
43527
+ const [result, apiCall] = await recordsRead(client, args16.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
42795
43528
  if (!result.ok) {
42796
43529
  return {
42797
43530
  content: [{ type: "text", text: result.error.message }],
@@ -42806,9 +43539,9 @@ Retrieve a batch of records, or set \`Accept: text/event-stream\` to stream usin
42806
43539
 
42807
43540
  // src/funcs/streamsCreateOrReconfigureStream.ts
42808
43541
  function streamsCreateOrReconfigureStream(client, request, options) {
42809
- return new APIPromise($do13(client, request, options));
43542
+ return new APIPromise($do16(client, request, options));
42810
43543
  }
42811
- async function $do13(client, request, options) {
43544
+ async function $do16(client, request, options) {
42812
43545
  const parsed = safeParse(request, (value2) => CreateOrReconfigureStreamRequest$outboundSchema.parse(value2), "Input validation failed");
42813
43546
  if (!parsed.ok) {
42814
43547
  return [parsed, { status: "invalid" }];
@@ -42840,6 +43573,7 @@ async function $do13(client, request, options) {
42840
43573
  const securityInput = secConfig == null ? {} : { accessToken: secConfig };
42841
43574
  const requestSecurity = resolveGlobalSecurity(securityInput);
42842
43575
  const context = {
43576
+ options: client._options,
42843
43577
  baseURL: baseURL ?? "",
42844
43578
  operationID: "create_or_reconfigure_stream",
42845
43579
  oAuth2Scopes: [],
@@ -42855,6 +43589,7 @@ async function $do13(client, request, options) {
42855
43589
  path,
42856
43590
  headers,
42857
43591
  body,
43592
+ userAgent: client._options.userAgent,
42858
43593
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
42859
43594
  }, options);
42860
43595
  if (!requestRes.ok) {
@@ -42895,21 +43630,21 @@ var init_streamsCreateOrReconfigureStream = __esm(() => {
42895
43630
  });
42896
43631
 
42897
43632
  // src/mcp-server/tools/streamsCreateOrReconfigureStream.ts
42898
- var args13, tool$streamsCreateOrReconfigureStream;
43633
+ var args16, tool$streamsCreateOrReconfigureStream;
42899
43634
  var init_streamsCreateOrReconfigureStream2 = __esm(() => {
42900
43635
  init_streamsCreateOrReconfigureStream();
42901
43636
  init_operations();
42902
43637
  init_tools();
42903
- args13 = {
43638
+ args16 = {
42904
43639
  request: CreateOrReconfigureStreamRequest$inboundSchema
42905
43640
  };
42906
43641
  tool$streamsCreateOrReconfigureStream = {
42907
43642
  name: "streams-create-or-reconfigure-stream",
42908
43643
  description: `Create or reconfigure a stream.`,
42909
43644
  scopes: ["write", "write", "write"],
42910
- args: args13,
42911
- tool: async (client, args14, ctx) => {
42912
- const [result, apiCall] = await streamsCreateOrReconfigureStream(client, args14.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
43645
+ args: args16,
43646
+ tool: async (client, args17, ctx) => {
43647
+ const [result, apiCall] = await streamsCreateOrReconfigureStream(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
42913
43648
  if (!result.ok) {
42914
43649
  return {
42915
43650
  content: [{ type: "text", text: result.error.message }],
@@ -42924,9 +43659,9 @@ var init_streamsCreateOrReconfigureStream2 = __esm(() => {
42924
43659
 
42925
43660
  // src/funcs/streamsCreateStream.ts
42926
43661
  function streamsCreateStream(client, request, options) {
42927
- return new APIPromise($do14(client, request, options));
43662
+ return new APIPromise($do17(client, request, options));
42928
43663
  }
42929
- async function $do14(client, request, options) {
43664
+ async function $do17(client, request, options) {
42930
43665
  const parsed = safeParse(request, (value2) => CreateStreamRequest$outboundSchema2.parse(value2), "Input validation failed");
42931
43666
  if (!parsed.ok) {
42932
43667
  return [parsed, { status: "invalid" }];
@@ -42951,6 +43686,7 @@ async function $do14(client, request, options) {
42951
43686
  const securityInput = secConfig == null ? {} : { accessToken: secConfig };
42952
43687
  const requestSecurity = resolveGlobalSecurity(securityInput);
42953
43688
  const context = {
43689
+ options: client._options,
42954
43690
  baseURL: baseURL ?? "",
42955
43691
  operationID: "create_stream",
42956
43692
  oAuth2Scopes: [],
@@ -42966,6 +43702,7 @@ async function $do14(client, request, options) {
42966
43702
  path,
42967
43703
  headers,
42968
43704
  body,
43705
+ userAgent: client._options.userAgent,
42969
43706
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
42970
43707
  }, options);
42971
43708
  if (!requestRes.ok) {
@@ -43006,21 +43743,21 @@ var init_streamsCreateStream = __esm(() => {
43006
43743
  });
43007
43744
 
43008
43745
  // src/mcp-server/tools/streamsCreateStream.ts
43009
- var args14, tool$streamsCreateStream;
43746
+ var args17, tool$streamsCreateStream;
43010
43747
  var init_streamsCreateStream2 = __esm(() => {
43011
43748
  init_streamsCreateStream();
43012
43749
  init_operations();
43013
43750
  init_tools();
43014
- args14 = {
43751
+ args17 = {
43015
43752
  request: CreateStreamRequest$inboundSchema2
43016
43753
  };
43017
43754
  tool$streamsCreateStream = {
43018
43755
  name: "streams-create-stream",
43019
43756
  description: `Create a stream.`,
43020
43757
  scopes: ["write", "write", "write"],
43021
- args: args14,
43022
- tool: async (client, args15, ctx) => {
43023
- const [result, apiCall] = await streamsCreateStream(client, args15.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
43758
+ args: args17,
43759
+ tool: async (client, args18, ctx) => {
43760
+ const [result, apiCall] = await streamsCreateStream(client, args18.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
43024
43761
  if (!result.ok) {
43025
43762
  return {
43026
43763
  content: [{ type: "text", text: result.error.message }],
@@ -43035,9 +43772,9 @@ var init_streamsCreateStream2 = __esm(() => {
43035
43772
 
43036
43773
  // src/funcs/streamsDeleteStream.ts
43037
43774
  function streamsDeleteStream(client, request, options) {
43038
- return new APIPromise($do15(client, request, options));
43775
+ return new APIPromise($do18(client, request, options));
43039
43776
  }
43040
- async function $do15(client, request, options) {
43777
+ async function $do18(client, request, options) {
43041
43778
  const parsed = safeParse(request, (value2) => DeleteStreamRequest$outboundSchema.parse(value2), "Input validation failed");
43042
43779
  if (!parsed.ok) {
43043
43780
  return [parsed, { status: "invalid" }];
@@ -43065,6 +43802,7 @@ async function $do15(client, request, options) {
43065
43802
  const securityInput = secConfig == null ? {} : { accessToken: secConfig };
43066
43803
  const requestSecurity = resolveGlobalSecurity(securityInput);
43067
43804
  const context = {
43805
+ options: client._options,
43068
43806
  baseURL: baseURL ?? "",
43069
43807
  operationID: "delete_stream",
43070
43808
  oAuth2Scopes: [],
@@ -43080,6 +43818,7 @@ async function $do15(client, request, options) {
43080
43818
  path,
43081
43819
  headers,
43082
43820
  body,
43821
+ userAgent: client._options.userAgent,
43083
43822
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
43084
43823
  }, options);
43085
43824
  if (!requestRes.ok) {
@@ -43120,21 +43859,21 @@ var init_streamsDeleteStream = __esm(() => {
43120
43859
  });
43121
43860
 
43122
43861
  // src/mcp-server/tools/streamsDeleteStream.ts
43123
- var args15, tool$streamsDeleteStream;
43862
+ var args18, tool$streamsDeleteStream;
43124
43863
  var init_streamsDeleteStream2 = __esm(() => {
43125
43864
  init_streamsDeleteStream();
43126
43865
  init_operations();
43127
43866
  init_tools();
43128
- args15 = {
43867
+ args18 = {
43129
43868
  request: DeleteStreamRequest$inboundSchema
43130
43869
  };
43131
43870
  tool$streamsDeleteStream = {
43132
43871
  name: "streams-delete-stream",
43133
43872
  description: `Delete a stream.`,
43134
43873
  scopes: ["write", "write", "write"],
43135
- args: args15,
43136
- tool: async (client, args16, ctx) => {
43137
- const [result, apiCall] = await streamsDeleteStream(client, args16.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
43874
+ args: args18,
43875
+ tool: async (client, args19, ctx) => {
43876
+ const [result, apiCall] = await streamsDeleteStream(client, args19.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
43138
43877
  if (!result.ok) {
43139
43878
  return {
43140
43879
  content: [{ type: "text", text: result.error.message }],
@@ -43148,9 +43887,9 @@ var init_streamsDeleteStream2 = __esm(() => {
43148
43887
 
43149
43888
  // src/funcs/streamsGetStreamConfig.ts
43150
43889
  function streamsGetStreamConfig(client, request, options) {
43151
- return new APIPromise($do16(client, request, options));
43890
+ return new APIPromise($do19(client, request, options));
43152
43891
  }
43153
- async function $do16(client, request, options) {
43892
+ async function $do19(client, request, options) {
43154
43893
  const parsed = safeParse(request, (value2) => GetStreamConfigRequest$outboundSchema.parse(value2), "Input validation failed");
43155
43894
  if (!parsed.ok) {
43156
43895
  return [parsed, { status: "invalid" }];
@@ -43178,6 +43917,7 @@ async function $do16(client, request, options) {
43178
43917
  const securityInput = secConfig == null ? {} : { accessToken: secConfig };
43179
43918
  const requestSecurity = resolveGlobalSecurity(securityInput);
43180
43919
  const context = {
43920
+ options: client._options,
43181
43921
  baseURL: baseURL ?? "",
43182
43922
  operationID: "get_stream_config",
43183
43923
  oAuth2Scopes: [],
@@ -43193,6 +43933,7 @@ async function $do16(client, request, options) {
43193
43933
  path,
43194
43934
  headers,
43195
43935
  body,
43936
+ userAgent: client._options.userAgent,
43196
43937
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
43197
43938
  }, options);
43198
43939
  if (!requestRes.ok) {
@@ -43233,21 +43974,21 @@ var init_streamsGetStreamConfig = __esm(() => {
43233
43974
  });
43234
43975
 
43235
43976
  // src/mcp-server/tools/streamsGetStreamConfig.ts
43236
- var args16, tool$streamsGetStreamConfig;
43977
+ var args19, tool$streamsGetStreamConfig;
43237
43978
  var init_streamsGetStreamConfig2 = __esm(() => {
43238
43979
  init_streamsGetStreamConfig();
43239
43980
  init_operations();
43240
43981
  init_tools();
43241
- args16 = {
43982
+ args19 = {
43242
43983
  request: GetStreamConfigRequest$inboundSchema
43243
43984
  };
43244
43985
  tool$streamsGetStreamConfig = {
43245
43986
  name: "streams-get-stream-config",
43246
43987
  description: `Get stream configuration.`,
43247
43988
  scopes: ["read", "read", "read"],
43248
- args: args16,
43249
- tool: async (client, args17, ctx) => {
43250
- const [result, apiCall] = await streamsGetStreamConfig(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
43989
+ args: args19,
43990
+ tool: async (client, args20, ctx) => {
43991
+ const [result, apiCall] = await streamsGetStreamConfig(client, args20.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
43251
43992
  if (!result.ok) {
43252
43993
  return {
43253
43994
  content: [{ type: "text", text: result.error.message }],
@@ -43262,9 +44003,9 @@ var init_streamsGetStreamConfig2 = __esm(() => {
43262
44003
 
43263
44004
  // src/funcs/streamsListStreams.ts
43264
44005
  function streamsListStreams(client, request, options) {
43265
- return new APIPromise($do17(client, request, options));
44006
+ return new APIPromise($do20(client, request, options));
43266
44007
  }
43267
- async function $do17(client, request, options) {
44008
+ async function $do20(client, request, options) {
43268
44009
  const parsed = safeParse(request, (value2) => ListStreamsRequest$outboundSchema.parse(value2), "Input validation failed");
43269
44010
  if (!parsed.ok) {
43270
44011
  return [haltIterator(parsed), { status: "invalid" }];
@@ -43291,6 +44032,7 @@ async function $do17(client, request, options) {
43291
44032
  const securityInput = secConfig == null ? {} : { accessToken: secConfig };
43292
44033
  const requestSecurity = resolveGlobalSecurity(securityInput);
43293
44034
  const context = {
44035
+ options: client._options,
43294
44036
  baseURL: baseURL ?? "",
43295
44037
  operationID: "list_streams",
43296
44038
  oAuth2Scopes: [],
@@ -43307,6 +44049,7 @@ async function $do17(client, request, options) {
43307
44049
  headers,
43308
44050
  query: query2,
43309
44051
  body,
44052
+ userAgent: client._options.userAgent,
43310
44053
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
43311
44054
  }, options);
43312
44055
  if (!requestRes.ok) {
@@ -43370,21 +44113,21 @@ var init_streamsListStreams = __esm(() => {
43370
44113
  });
43371
44114
 
43372
44115
  // src/mcp-server/tools/streamsListStreams.ts
43373
- var args17, tool$streamsListStreams;
44116
+ var args20, tool$streamsListStreams;
43374
44117
  var init_streamsListStreams2 = __esm(() => {
43375
44118
  init_streamsListStreams();
43376
44119
  init_operations();
43377
44120
  init_tools();
43378
- args17 = {
44121
+ args20 = {
43379
44122
  request: ListStreamsRequest$inboundSchema
43380
44123
  };
43381
44124
  tool$streamsListStreams = {
43382
44125
  name: "streams-list-streams",
43383
44126
  description: `List streams.`,
43384
44127
  scopes: ["read", "read", "read"],
43385
- args: args17,
43386
- tool: async (client, args18, ctx) => {
43387
- const [result, apiCall] = await streamsListStreams(client, args18.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44128
+ args: args20,
44129
+ tool: async (client, args21, ctx) => {
44130
+ const [result, apiCall] = await streamsListStreams(client, args21.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
43388
44131
  if (!result.ok) {
43389
44132
  return {
43390
44133
  content: [{ type: "text", text: result.error.message }],
@@ -43399,9 +44142,9 @@ var init_streamsListStreams2 = __esm(() => {
43399
44142
 
43400
44143
  // src/funcs/streamsReconfigureStream.ts
43401
44144
  function streamsReconfigureStream(client, request, options) {
43402
- return new APIPromise($do18(client, request, options));
44145
+ return new APIPromise($do21(client, request, options));
43403
44146
  }
43404
- async function $do18(client, request, options) {
44147
+ async function $do21(client, request, options) {
43405
44148
  const parsed = safeParse(request, (value2) => ReconfigureStreamRequest$outboundSchema.parse(value2), "Input validation failed");
43406
44149
  if (!parsed.ok) {
43407
44150
  return [parsed, { status: "invalid" }];
@@ -43432,6 +44175,7 @@ async function $do18(client, request, options) {
43432
44175
  const securityInput = secConfig == null ? {} : { accessToken: secConfig };
43433
44176
  const requestSecurity = resolveGlobalSecurity(securityInput);
43434
44177
  const context = {
44178
+ options: client._options,
43435
44179
  baseURL: baseURL ?? "",
43436
44180
  operationID: "reconfigure_stream",
43437
44181
  oAuth2Scopes: [],
@@ -43447,6 +44191,7 @@ async function $do18(client, request, options) {
43447
44191
  path,
43448
44192
  headers,
43449
44193
  body,
44194
+ userAgent: client._options.userAgent,
43450
44195
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
43451
44196
  }, options);
43452
44197
  if (!requestRes.ok) {
@@ -43487,21 +44232,21 @@ var init_streamsReconfigureStream = __esm(() => {
43487
44232
  });
43488
44233
 
43489
44234
  // src/mcp-server/tools/streamsReconfigureStream.ts
43490
- var args18, tool$streamsReconfigureStream;
44235
+ var args21, tool$streamsReconfigureStream;
43491
44236
  var init_streamsReconfigureStream2 = __esm(() => {
43492
44237
  init_streamsReconfigureStream();
43493
44238
  init_operations();
43494
44239
  init_tools();
43495
- args18 = {
44240
+ args21 = {
43496
44241
  request: ReconfigureStreamRequest$inboundSchema
43497
44242
  };
43498
44243
  tool$streamsReconfigureStream = {
43499
44244
  name: "streams-reconfigure-stream",
43500
44245
  description: `Reconfigure a stream.`,
43501
44246
  scopes: ["write", "write", "write"],
43502
- args: args18,
43503
- tool: async (client, args19, ctx) => {
43504
- const [result, apiCall] = await streamsReconfigureStream(client, args19.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44247
+ args: args21,
44248
+ tool: async (client, args22, ctx) => {
44249
+ const [result, apiCall] = await streamsReconfigureStream(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
43505
44250
  if (!result.ok) {
43506
44251
  return {
43507
44252
  content: [{ type: "text", text: result.error.message }],
@@ -43518,7 +44263,7 @@ var init_streamsReconfigureStream2 = __esm(() => {
43518
44263
  function createMCPServer(deps) {
43519
44264
  const server = new McpServer({
43520
44265
  name: "S2",
43521
- version: "0.14.0"
44266
+ version: "0.15.0"
43522
44267
  });
43523
44268
  const client = new S2Core({
43524
44269
  accessToken: deps.accessToken,
@@ -43541,6 +44286,9 @@ function createMCPServer(deps) {
43541
44286
  tool(tool$basinsCreateOrReconfigureBasin);
43542
44287
  tool(tool$basinsDeleteBasin);
43543
44288
  tool(tool$basinsReconfigureBasin);
44289
+ tool(tool$metricsAccountMetrics);
44290
+ tool(tool$metricsBasinMetrics);
44291
+ tool(tool$metricsStreamMetrics);
43544
44292
  tool(tool$streamsListStreams);
43545
44293
  tool(tool$streamsCreateStream);
43546
44294
  tool(tool$streamsGetStreamConfig);
@@ -43566,6 +44314,9 @@ var init_server2 = __esm(() => {
43566
44314
  init_basinsGetBasinConfig2();
43567
44315
  init_basinsListBasins2();
43568
44316
  init_basinsReconfigureBasin2();
44317
+ init_metricsAccountMetrics2();
44318
+ init_metricsBasinMetrics2();
44319
+ init_metricsStreamMetrics2();
43569
44320
  init_recordsAppend2();
43570
44321
  init_recordsCheckTail2();
43571
44322
  init_recordsRead2();
@@ -44771,7 +45522,7 @@ var routes = rn({
44771
45522
  var app = Ve(routes, {
44772
45523
  name: "mcp",
44773
45524
  versionInfo: {
44774
- currentVersion: "0.14.0"
45525
+ currentVersion: "0.15.0"
44775
45526
  }
44776
45527
  });
44777
45528
  _t(app, process3.argv.slice(2), buildContext(process3));
@@ -44779,5 +45530,5 @@ export {
44779
45530
  app
44780
45531
  };
44781
45532
 
44782
- //# debugId=FBE343C91ADA849A64756E2164756E21
45533
+ //# debugId=B8A24AF531C0F67064756E2164756E21
44783
45534
  //# sourceMappingURL=mcp-server.js.map