@s2-dev/streamstore 0.13.3 → 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 (485) hide show
  1. package/README.md +9 -0
  2. package/bin/mcp-server.js +920 -110
  3. package/bin/mcp-server.js.map +67 -47
  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 +5 -1
  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/accesstokeninfo.d.ts +1 -1
  83. package/dist/commonjs/models/components/accountmetricset.d.ts +28 -0
  84. package/dist/commonjs/models/components/accountmetricset.d.ts.map +1 -0
  85. package/dist/commonjs/models/components/accountmetricset.js +60 -0
  86. package/dist/commonjs/models/components/accountmetricset.js.map +1 -0
  87. package/dist/commonjs/models/components/accumulation.d.ts +72 -0
  88. package/dist/commonjs/models/components/accumulation.d.ts.map +1 -0
  89. package/dist/commonjs/models/components/accumulation.js +110 -0
  90. package/dist/commonjs/models/components/accumulation.js.map +1 -0
  91. package/dist/commonjs/models/components/basinmetricset.d.ts +40 -0
  92. package/dist/commonjs/models/components/basinmetricset.d.ts.map +1 -0
  93. package/dist/commonjs/models/components/basinmetricset.js +64 -0
  94. package/dist/commonjs/models/components/basinmetricset.js.map +1 -0
  95. package/dist/commonjs/models/components/createbasinrequest.d.ts +6 -1
  96. package/dist/commonjs/models/components/createbasinrequest.d.ts.map +1 -1
  97. package/dist/commonjs/models/components/createbasinrequest.js.map +1 -1
  98. package/dist/commonjs/models/components/createstreamrequest.d.ts +4 -1
  99. package/dist/commonjs/models/components/createstreamrequest.d.ts.map +1 -1
  100. package/dist/commonjs/models/components/createstreamrequest.js.map +1 -1
  101. package/dist/commonjs/models/components/gauge.d.ts +68 -0
  102. package/dist/commonjs/models/components/gauge.d.ts.map +1 -0
  103. package/dist/commonjs/models/components/gauge.js +98 -0
  104. package/dist/commonjs/models/components/gauge.js.map +1 -0
  105. package/dist/commonjs/models/components/index.d.ts +11 -0
  106. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  107. package/dist/commonjs/models/components/index.js +11 -0
  108. package/dist/commonjs/models/components/index.js.map +1 -1
  109. package/dist/commonjs/models/components/label.d.ts +37 -0
  110. package/dist/commonjs/models/components/label.d.ts.map +1 -0
  111. package/dist/commonjs/models/components/label.js +72 -0
  112. package/dist/commonjs/models/components/label.js.map +1 -0
  113. package/dist/commonjs/models/components/metric.d.ts +144 -0
  114. package/dist/commonjs/models/components/metric.d.ts.map +1 -0
  115. package/dist/commonjs/models/components/metric.js +192 -0
  116. package/dist/commonjs/models/components/metric.js.map +1 -0
  117. package/dist/commonjs/models/components/metricsetresponse.d.ts +33 -0
  118. package/dist/commonjs/models/components/metricsetresponse.d.ts.map +1 -0
  119. package/dist/commonjs/models/components/metricsetresponse.js +70 -0
  120. package/dist/commonjs/models/components/metricsetresponse.js.map +1 -0
  121. package/dist/commonjs/models/components/metricunit.d.ts +28 -0
  122. package/dist/commonjs/models/components/metricunit.d.ts.map +1 -0
  123. package/dist/commonjs/models/components/metricunit.js +61 -0
  124. package/dist/commonjs/models/components/metricunit.js.map +1 -0
  125. package/dist/commonjs/models/components/operation.d.ts +9 -0
  126. package/dist/commonjs/models/components/operation.d.ts.map +1 -1
  127. package/dist/commonjs/models/components/operation.js +3 -0
  128. package/dist/commonjs/models/components/operation.js.map +1 -1
  129. package/dist/commonjs/models/components/pingeventdata.d.ts +29 -0
  130. package/dist/commonjs/models/components/pingeventdata.d.ts.map +1 -0
  131. package/dist/commonjs/models/components/pingeventdata.js +69 -0
  132. package/dist/commonjs/models/components/pingeventdata.js.map +1 -0
  133. package/dist/commonjs/models/components/readevent.d.ts +127 -7
  134. package/dist/commonjs/models/components/readevent.d.ts.map +1 -1
  135. package/dist/commonjs/models/components/readevent.js +140 -11
  136. package/dist/commonjs/models/components/readevent.js.map +1 -1
  137. package/dist/commonjs/models/components/s2format.d.ts +6 -6
  138. package/dist/commonjs/models/components/s2format.js +2 -2
  139. package/dist/commonjs/models/components/s2format.js.map +1 -1
  140. package/dist/commonjs/models/components/scalar.d.ts +40 -0
  141. package/dist/commonjs/models/components/scalar.d.ts.map +1 -0
  142. package/dist/commonjs/models/components/scalar.js +75 -0
  143. package/dist/commonjs/models/components/scalar.js.map +1 -0
  144. package/dist/commonjs/models/components/timeseriesinterval.d.ts +31 -0
  145. package/dist/commonjs/models/components/timeseriesinterval.d.ts.map +1 -0
  146. package/dist/commonjs/models/components/timeseriesinterval.js +61 -0
  147. package/dist/commonjs/models/components/timeseriesinterval.js.map +1 -0
  148. package/dist/commonjs/models/errors/appendconditionfailed.d.ts +4 -4
  149. package/dist/commonjs/models/errors/appendconditionfailed.js +1 -1
  150. package/dist/commonjs/models/operations/accountmetrics.d.ts +48 -0
  151. package/dist/commonjs/models/operations/accountmetrics.d.ts.map +1 -0
  152. package/dist/commonjs/models/operations/accountmetrics.js +76 -0
  153. package/dist/commonjs/models/operations/accountmetrics.js.map +1 -0
  154. package/dist/commonjs/models/operations/append.d.ts +3 -7
  155. package/dist/commonjs/models/operations/append.d.ts.map +1 -1
  156. package/dist/commonjs/models/operations/append.js.map +1 -1
  157. package/dist/commonjs/models/operations/basinmetrics.d.ts +53 -0
  158. package/dist/commonjs/models/operations/basinmetrics.d.ts.map +1 -0
  159. package/dist/commonjs/models/operations/basinmetrics.js +78 -0
  160. package/dist/commonjs/models/operations/basinmetrics.js.map +1 -0
  161. package/dist/commonjs/models/operations/checktail.d.ts +1 -4
  162. package/dist/commonjs/models/operations/checktail.d.ts.map +1 -1
  163. package/dist/commonjs/models/operations/checktail.js.map +1 -1
  164. package/dist/commonjs/models/operations/createorreconfigurebasin.d.ts +1 -5
  165. package/dist/commonjs/models/operations/createorreconfigurebasin.d.ts.map +1 -1
  166. package/dist/commonjs/models/operations/createorreconfigurebasin.js.map +1 -1
  167. package/dist/commonjs/models/operations/createorreconfigurestream.d.ts +1 -4
  168. package/dist/commonjs/models/operations/createorreconfigurestream.d.ts.map +1 -1
  169. package/dist/commonjs/models/operations/createorreconfigurestream.js.map +1 -1
  170. package/dist/commonjs/models/operations/deletebasin.d.ts +1 -5
  171. package/dist/commonjs/models/operations/deletebasin.d.ts.map +1 -1
  172. package/dist/commonjs/models/operations/deletebasin.js.map +1 -1
  173. package/dist/commonjs/models/operations/deletestream.d.ts +1 -4
  174. package/dist/commonjs/models/operations/deletestream.d.ts.map +1 -1
  175. package/dist/commonjs/models/operations/deletestream.js.map +1 -1
  176. package/dist/commonjs/models/operations/getbasinconfig.d.ts +1 -5
  177. package/dist/commonjs/models/operations/getbasinconfig.d.ts.map +1 -1
  178. package/dist/commonjs/models/operations/getbasinconfig.js.map +1 -1
  179. package/dist/commonjs/models/operations/getstreamconfig.d.ts +1 -4
  180. package/dist/commonjs/models/operations/getstreamconfig.d.ts.map +1 -1
  181. package/dist/commonjs/models/operations/getstreamconfig.js.map +1 -1
  182. package/dist/commonjs/models/operations/index.d.ts +3 -0
  183. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  184. package/dist/commonjs/models/operations/index.js +3 -0
  185. package/dist/commonjs/models/operations/index.js.map +1 -1
  186. package/dist/commonjs/models/operations/read.d.ts +3 -7
  187. package/dist/commonjs/models/operations/read.d.ts.map +1 -1
  188. package/dist/commonjs/models/operations/read.js.map +1 -1
  189. package/dist/commonjs/models/operations/reconfigurebasin.d.ts +1 -5
  190. package/dist/commonjs/models/operations/reconfigurebasin.d.ts.map +1 -1
  191. package/dist/commonjs/models/operations/reconfigurebasin.js.map +1 -1
  192. package/dist/commonjs/models/operations/reconfigurestream.d.ts +1 -4
  193. package/dist/commonjs/models/operations/reconfigurestream.d.ts.map +1 -1
  194. package/dist/commonjs/models/operations/reconfigurestream.js.map +1 -1
  195. package/dist/commonjs/models/operations/revokeaccesstoken.d.ts +0 -3
  196. package/dist/commonjs/models/operations/revokeaccesstoken.d.ts.map +1 -1
  197. package/dist/commonjs/models/operations/revokeaccesstoken.js.map +1 -1
  198. package/dist/commonjs/models/operations/streammetrics.d.ts +37 -0
  199. package/dist/commonjs/models/operations/streammetrics.d.ts.map +1 -0
  200. package/dist/commonjs/models/operations/streammetrics.js +71 -0
  201. package/dist/commonjs/models/operations/streammetrics.js.map +1 -0
  202. package/dist/commonjs/sdk/metrics.d.ts +18 -0
  203. package/dist/commonjs/sdk/metrics.d.ts.map +1 -0
  204. package/dist/commonjs/sdk/metrics.js +33 -0
  205. package/dist/commonjs/sdk/metrics.js.map +1 -0
  206. package/dist/commonjs/sdk/sdk.d.ts +3 -0
  207. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  208. package/dist/commonjs/sdk/sdk.js +4 -0
  209. package/dist/commonjs/sdk/sdk.js.map +1 -1
  210. package/dist/esm/funcs/accessTokensIssueAccessToken.js +2 -0
  211. package/dist/esm/funcs/accessTokensIssueAccessToken.js.map +1 -1
  212. package/dist/esm/funcs/accessTokensListAccessTokens.js +2 -0
  213. package/dist/esm/funcs/accessTokensListAccessTokens.js.map +1 -1
  214. package/dist/esm/funcs/accessTokensRevokeAccessToken.js +2 -0
  215. package/dist/esm/funcs/accessTokensRevokeAccessToken.js.map +1 -1
  216. package/dist/esm/funcs/basinsCreateBasin.js +2 -0
  217. package/dist/esm/funcs/basinsCreateBasin.js.map +1 -1
  218. package/dist/esm/funcs/basinsCreateOrReconfigureBasin.js +2 -0
  219. package/dist/esm/funcs/basinsCreateOrReconfigureBasin.js.map +1 -1
  220. package/dist/esm/funcs/basinsDeleteBasin.js +2 -0
  221. package/dist/esm/funcs/basinsDeleteBasin.js.map +1 -1
  222. package/dist/esm/funcs/basinsGetBasinConfig.js +2 -0
  223. package/dist/esm/funcs/basinsGetBasinConfig.js.map +1 -1
  224. package/dist/esm/funcs/basinsListBasins.js +2 -0
  225. package/dist/esm/funcs/basinsListBasins.js.map +1 -1
  226. package/dist/esm/funcs/basinsReconfigureBasin.js +2 -0
  227. package/dist/esm/funcs/basinsReconfigureBasin.js.map +1 -1
  228. package/dist/esm/funcs/metricsAccountMetrics.d.ts +15 -0
  229. package/dist/esm/funcs/metricsAccountMetrics.d.ts.map +1 -0
  230. package/dist/esm/funcs/metricsAccountMetrics.js +86 -0
  231. package/dist/esm/funcs/metricsAccountMetrics.js.map +1 -0
  232. package/dist/esm/funcs/metricsBasinMetrics.d.ts +15 -0
  233. package/dist/esm/funcs/metricsBasinMetrics.d.ts.map +1 -0
  234. package/dist/esm/funcs/metricsBasinMetrics.js +92 -0
  235. package/dist/esm/funcs/metricsBasinMetrics.js.map +1 -0
  236. package/dist/esm/funcs/metricsStreamMetrics.d.ts +15 -0
  237. package/dist/esm/funcs/metricsStreamMetrics.d.ts.map +1 -0
  238. package/dist/esm/funcs/metricsStreamMetrics.js +89 -0
  239. package/dist/esm/funcs/metricsStreamMetrics.js.map +1 -0
  240. package/dist/esm/funcs/recordsAppend.js +2 -0
  241. package/dist/esm/funcs/recordsAppend.js.map +1 -1
  242. package/dist/esm/funcs/recordsCheckTail.js +2 -0
  243. package/dist/esm/funcs/recordsCheckTail.js.map +1 -1
  244. package/dist/esm/funcs/recordsRead.js +5 -1
  245. package/dist/esm/funcs/recordsRead.js.map +1 -1
  246. package/dist/esm/funcs/streamsCreateOrReconfigureStream.js +2 -0
  247. package/dist/esm/funcs/streamsCreateOrReconfigureStream.js.map +1 -1
  248. package/dist/esm/funcs/streamsCreateStream.js +2 -0
  249. package/dist/esm/funcs/streamsCreateStream.js.map +1 -1
  250. package/dist/esm/funcs/streamsDeleteStream.js +2 -0
  251. package/dist/esm/funcs/streamsDeleteStream.js.map +1 -1
  252. package/dist/esm/funcs/streamsGetStreamConfig.js +2 -0
  253. package/dist/esm/funcs/streamsGetStreamConfig.js.map +1 -1
  254. package/dist/esm/funcs/streamsListStreams.js +2 -0
  255. package/dist/esm/funcs/streamsListStreams.js.map +1 -1
  256. package/dist/esm/funcs/streamsReconfigureStream.js +2 -0
  257. package/dist/esm/funcs/streamsReconfigureStream.js.map +1 -1
  258. package/dist/esm/hooks/types.d.ts +2 -0
  259. package/dist/esm/hooks/types.d.ts.map +1 -1
  260. package/dist/esm/index.d.ts +2 -0
  261. package/dist/esm/index.d.ts.map +1 -1
  262. package/dist/esm/index.js +1 -0
  263. package/dist/esm/index.js.map +1 -1
  264. package/dist/esm/lib/config.d.ts +7 -3
  265. package/dist/esm/lib/config.d.ts.map +1 -1
  266. package/dist/esm/lib/config.js +3 -3
  267. package/dist/esm/lib/config.js.map +1 -1
  268. package/dist/esm/lib/sdks.d.ts +1 -0
  269. package/dist/esm/lib/sdks.d.ts.map +1 -1
  270. package/dist/esm/lib/sdks.js +3 -3
  271. package/dist/esm/lib/sdks.js.map +1 -1
  272. package/dist/esm/mcp-server/mcp-server.js +1 -1
  273. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  274. package/dist/esm/mcp-server/server.js +7 -1
  275. package/dist/esm/mcp-server/server.js.map +1 -1
  276. package/dist/esm/mcp-server/tools/metricsAccountMetrics.d.ts +8 -0
  277. package/dist/esm/mcp-server/tools/metricsAccountMetrics.d.ts.map +1 -0
  278. package/dist/esm/mcp-server/tools/metricsAccountMetrics.js +27 -0
  279. package/dist/esm/mcp-server/tools/metricsAccountMetrics.js.map +1 -0
  280. package/dist/esm/mcp-server/tools/metricsBasinMetrics.d.ts +8 -0
  281. package/dist/esm/mcp-server/tools/metricsBasinMetrics.d.ts.map +1 -0
  282. package/dist/esm/mcp-server/tools/metricsBasinMetrics.js +27 -0
  283. package/dist/esm/mcp-server/tools/metricsBasinMetrics.js.map +1 -0
  284. package/dist/esm/mcp-server/tools/metricsStreamMetrics.d.ts +8 -0
  285. package/dist/esm/mcp-server/tools/metricsStreamMetrics.d.ts.map +1 -0
  286. package/dist/esm/mcp-server/tools/metricsStreamMetrics.js +27 -0
  287. package/dist/esm/mcp-server/tools/metricsStreamMetrics.js.map +1 -0
  288. package/dist/esm/models/components/accesstokeninfo.d.ts +1 -1
  289. package/dist/esm/models/components/accountmetricset.d.ts +28 -0
  290. package/dist/esm/models/components/accountmetricset.d.ts.map +1 -0
  291. package/dist/esm/models/components/accountmetricset.js +24 -0
  292. package/dist/esm/models/components/accountmetricset.js.map +1 -0
  293. package/dist/esm/models/components/accumulation.d.ts +72 -0
  294. package/dist/esm/models/components/accumulation.d.ts.map +1 -0
  295. package/dist/esm/models/components/accumulation.js +70 -0
  296. package/dist/esm/models/components/accumulation.js.map +1 -0
  297. package/dist/esm/models/components/basinmetricset.d.ts +40 -0
  298. package/dist/esm/models/components/basinmetricset.d.ts.map +1 -0
  299. package/dist/esm/models/components/basinmetricset.js +28 -0
  300. package/dist/esm/models/components/basinmetricset.js.map +1 -0
  301. package/dist/esm/models/components/createbasinrequest.d.ts +6 -1
  302. package/dist/esm/models/components/createbasinrequest.d.ts.map +1 -1
  303. package/dist/esm/models/components/createbasinrequest.js.map +1 -1
  304. package/dist/esm/models/components/createstreamrequest.d.ts +4 -1
  305. package/dist/esm/models/components/createstreamrequest.d.ts.map +1 -1
  306. package/dist/esm/models/components/createstreamrequest.js.map +1 -1
  307. package/dist/esm/models/components/gauge.d.ts +68 -0
  308. package/dist/esm/models/components/gauge.d.ts.map +1 -0
  309. package/dist/esm/models/components/gauge.js +58 -0
  310. package/dist/esm/models/components/gauge.js.map +1 -0
  311. package/dist/esm/models/components/index.d.ts +11 -0
  312. package/dist/esm/models/components/index.d.ts.map +1 -1
  313. package/dist/esm/models/components/index.js +11 -0
  314. package/dist/esm/models/components/index.js.map +1 -1
  315. package/dist/esm/models/components/label.d.ts +37 -0
  316. package/dist/esm/models/components/label.d.ts.map +1 -0
  317. package/dist/esm/models/components/label.js +34 -0
  318. package/dist/esm/models/components/label.js.map +1 -0
  319. package/dist/esm/models/components/metric.d.ts +144 -0
  320. package/dist/esm/models/components/metric.d.ts.map +1 -0
  321. package/dist/esm/models/components/metric.js +146 -0
  322. package/dist/esm/models/components/metric.js.map +1 -0
  323. package/dist/esm/models/components/metricsetresponse.d.ts +33 -0
  324. package/dist/esm/models/components/metricsetresponse.d.ts.map +1 -0
  325. package/dist/esm/models/components/metricsetresponse.js +32 -0
  326. package/dist/esm/models/components/metricsetresponse.js.map +1 -0
  327. package/dist/esm/models/components/metricunit.d.ts +28 -0
  328. package/dist/esm/models/components/metricunit.d.ts.map +1 -0
  329. package/dist/esm/models/components/metricunit.js +25 -0
  330. package/dist/esm/models/components/metricunit.js.map +1 -0
  331. package/dist/esm/models/components/operation.d.ts +9 -0
  332. package/dist/esm/models/components/operation.d.ts.map +1 -1
  333. package/dist/esm/models/components/operation.js +3 -0
  334. package/dist/esm/models/components/operation.js.map +1 -1
  335. package/dist/esm/models/components/pingeventdata.d.ts +29 -0
  336. package/dist/esm/models/components/pingeventdata.d.ts.map +1 -0
  337. package/dist/esm/models/components/pingeventdata.js +31 -0
  338. package/dist/esm/models/components/pingeventdata.js.map +1 -0
  339. package/dist/esm/models/components/readevent.d.ts +127 -7
  340. package/dist/esm/models/components/readevent.d.ts.map +1 -1
  341. package/dist/esm/models/components/readevent.js +137 -10
  342. package/dist/esm/models/components/readevent.js.map +1 -1
  343. package/dist/esm/models/components/s2format.d.ts +6 -6
  344. package/dist/esm/models/components/s2format.js +2 -2
  345. package/dist/esm/models/components/s2format.js.map +1 -1
  346. package/dist/esm/models/components/scalar.d.ts +40 -0
  347. package/dist/esm/models/components/scalar.d.ts.map +1 -0
  348. package/dist/esm/models/components/scalar.js +37 -0
  349. package/dist/esm/models/components/scalar.js.map +1 -0
  350. package/dist/esm/models/components/timeseriesinterval.d.ts +31 -0
  351. package/dist/esm/models/components/timeseriesinterval.d.ts.map +1 -0
  352. package/dist/esm/models/components/timeseriesinterval.js +25 -0
  353. package/dist/esm/models/components/timeseriesinterval.js.map +1 -0
  354. package/dist/esm/models/errors/appendconditionfailed.d.ts +4 -4
  355. package/dist/esm/models/errors/appendconditionfailed.js +1 -1
  356. package/dist/esm/models/operations/accountmetrics.d.ts +48 -0
  357. package/dist/esm/models/operations/accountmetrics.d.ts.map +1 -0
  358. package/dist/esm/models/operations/accountmetrics.js +38 -0
  359. package/dist/esm/models/operations/accountmetrics.js.map +1 -0
  360. package/dist/esm/models/operations/append.d.ts +3 -7
  361. package/dist/esm/models/operations/append.d.ts.map +1 -1
  362. package/dist/esm/models/operations/append.js.map +1 -1
  363. package/dist/esm/models/operations/basinmetrics.d.ts +53 -0
  364. package/dist/esm/models/operations/basinmetrics.d.ts.map +1 -0
  365. package/dist/esm/models/operations/basinmetrics.js +40 -0
  366. package/dist/esm/models/operations/basinmetrics.js.map +1 -0
  367. package/dist/esm/models/operations/checktail.d.ts +1 -4
  368. package/dist/esm/models/operations/checktail.d.ts.map +1 -1
  369. package/dist/esm/models/operations/checktail.js.map +1 -1
  370. package/dist/esm/models/operations/createorreconfigurebasin.d.ts +1 -5
  371. package/dist/esm/models/operations/createorreconfigurebasin.d.ts.map +1 -1
  372. package/dist/esm/models/operations/createorreconfigurebasin.js.map +1 -1
  373. package/dist/esm/models/operations/createorreconfigurestream.d.ts +1 -4
  374. package/dist/esm/models/operations/createorreconfigurestream.d.ts.map +1 -1
  375. package/dist/esm/models/operations/createorreconfigurestream.js.map +1 -1
  376. package/dist/esm/models/operations/deletebasin.d.ts +1 -5
  377. package/dist/esm/models/operations/deletebasin.d.ts.map +1 -1
  378. package/dist/esm/models/operations/deletebasin.js.map +1 -1
  379. package/dist/esm/models/operations/deletestream.d.ts +1 -4
  380. package/dist/esm/models/operations/deletestream.d.ts.map +1 -1
  381. package/dist/esm/models/operations/deletestream.js.map +1 -1
  382. package/dist/esm/models/operations/getbasinconfig.d.ts +1 -5
  383. package/dist/esm/models/operations/getbasinconfig.d.ts.map +1 -1
  384. package/dist/esm/models/operations/getbasinconfig.js.map +1 -1
  385. package/dist/esm/models/operations/getstreamconfig.d.ts +1 -4
  386. package/dist/esm/models/operations/getstreamconfig.d.ts.map +1 -1
  387. package/dist/esm/models/operations/getstreamconfig.js.map +1 -1
  388. package/dist/esm/models/operations/index.d.ts +3 -0
  389. package/dist/esm/models/operations/index.d.ts.map +1 -1
  390. package/dist/esm/models/operations/index.js +3 -0
  391. package/dist/esm/models/operations/index.js.map +1 -1
  392. package/dist/esm/models/operations/read.d.ts +3 -7
  393. package/dist/esm/models/operations/read.d.ts.map +1 -1
  394. package/dist/esm/models/operations/read.js.map +1 -1
  395. package/dist/esm/models/operations/reconfigurebasin.d.ts +1 -5
  396. package/dist/esm/models/operations/reconfigurebasin.d.ts.map +1 -1
  397. package/dist/esm/models/operations/reconfigurebasin.js.map +1 -1
  398. package/dist/esm/models/operations/reconfigurestream.d.ts +1 -4
  399. package/dist/esm/models/operations/reconfigurestream.d.ts.map +1 -1
  400. package/dist/esm/models/operations/reconfigurestream.js.map +1 -1
  401. package/dist/esm/models/operations/revokeaccesstoken.d.ts +0 -3
  402. package/dist/esm/models/operations/revokeaccesstoken.d.ts.map +1 -1
  403. package/dist/esm/models/operations/revokeaccesstoken.js.map +1 -1
  404. package/dist/esm/models/operations/streammetrics.d.ts +37 -0
  405. package/dist/esm/models/operations/streammetrics.d.ts.map +1 -0
  406. package/dist/esm/models/operations/streammetrics.js +33 -0
  407. package/dist/esm/models/operations/streammetrics.js.map +1 -0
  408. package/dist/esm/sdk/metrics.d.ts +18 -0
  409. package/dist/esm/sdk/metrics.d.ts.map +1 -0
  410. package/dist/esm/sdk/metrics.js +29 -0
  411. package/dist/esm/sdk/metrics.js.map +1 -0
  412. package/dist/esm/sdk/sdk.d.ts +3 -0
  413. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  414. package/dist/esm/sdk/sdk.js +4 -0
  415. package/dist/esm/sdk/sdk.js.map +1 -1
  416. package/docs/sdks/metrics/README.md +247 -0
  417. package/jsr.json +1 -1
  418. package/package.json +1 -1
  419. package/src/funcs/accessTokensIssueAccessToken.ts +2 -0
  420. package/src/funcs/accessTokensListAccessTokens.ts +2 -0
  421. package/src/funcs/accessTokensRevokeAccessToken.ts +2 -0
  422. package/src/funcs/basinsCreateBasin.ts +2 -0
  423. package/src/funcs/basinsCreateOrReconfigureBasin.ts +2 -0
  424. package/src/funcs/basinsDeleteBasin.ts +2 -0
  425. package/src/funcs/basinsGetBasinConfig.ts +2 -0
  426. package/src/funcs/basinsListBasins.ts +2 -0
  427. package/src/funcs/basinsReconfigureBasin.ts +2 -0
  428. package/src/funcs/metricsAccountMetrics.ts +170 -0
  429. package/src/funcs/metricsBasinMetrics.ts +177 -0
  430. package/src/funcs/metricsStreamMetrics.ts +173 -0
  431. package/src/funcs/recordsAppend.ts +2 -0
  432. package/src/funcs/recordsCheckTail.ts +2 -0
  433. package/src/funcs/recordsRead.ts +5 -1
  434. package/src/funcs/streamsCreateOrReconfigureStream.ts +2 -0
  435. package/src/funcs/streamsCreateStream.ts +2 -0
  436. package/src/funcs/streamsDeleteStream.ts +2 -0
  437. package/src/funcs/streamsGetStreamConfig.ts +2 -0
  438. package/src/funcs/streamsListStreams.ts +2 -0
  439. package/src/funcs/streamsReconfigureStream.ts +2 -0
  440. package/src/hooks/types.ts +2 -0
  441. package/src/index.ts +2 -0
  442. package/src/lib/config.ts +7 -3
  443. package/src/lib/sdks.ts +10 -4
  444. package/src/mcp-server/mcp-server.ts +1 -1
  445. package/src/mcp-server/server.ts +7 -1
  446. package/src/mcp-server/tools/metricsAccountMetrics.ts +36 -0
  447. package/src/mcp-server/tools/metricsBasinMetrics.ts +36 -0
  448. package/src/mcp-server/tools/metricsStreamMetrics.ts +36 -0
  449. package/src/models/components/accesstokeninfo.ts +1 -1
  450. package/src/models/components/accountmetricset.ts +33 -0
  451. package/src/models/components/accumulation.ts +150 -0
  452. package/src/models/components/basinmetricset.ts +37 -0
  453. package/src/models/components/createbasinrequest.ts +6 -1
  454. package/src/models/components/createstreamrequest.ts +4 -1
  455. package/src/models/components/gauge.ts +131 -0
  456. package/src/models/components/index.ts +11 -0
  457. package/src/models/components/label.ts +69 -0
  458. package/src/models/components/metric.ts +302 -0
  459. package/src/models/components/metricsetresponse.ts +75 -0
  460. package/src/models/components/metricunit.ts +31 -0
  461. package/src/models/components/operation.ts +3 -0
  462. package/src/models/components/pingeventdata.ts +62 -0
  463. package/src/models/components/readevent.ts +219 -18
  464. package/src/models/components/s2format.ts +2 -2
  465. package/src/models/components/scalar.ts +78 -0
  466. package/src/models/components/timeseriesinterval.ts +34 -0
  467. package/src/models/errors/appendconditionfailed.ts +4 -4
  468. package/src/models/operations/accountmetrics.ts +91 -0
  469. package/src/models/operations/append.ts +3 -7
  470. package/src/models/operations/basinmetrics.ts +98 -0
  471. package/src/models/operations/checktail.ts +1 -4
  472. package/src/models/operations/createorreconfigurebasin.ts +1 -5
  473. package/src/models/operations/createorreconfigurestream.ts +1 -4
  474. package/src/models/operations/deletebasin.ts +1 -5
  475. package/src/models/operations/deletestream.ts +1 -4
  476. package/src/models/operations/getbasinconfig.ts +1 -5
  477. package/src/models/operations/getstreamconfig.ts +1 -4
  478. package/src/models/operations/index.ts +3 -0
  479. package/src/models/operations/read.ts +3 -7
  480. package/src/models/operations/reconfigurebasin.ts +1 -5
  481. package/src/models/operations/reconfigurestream.ts +1 -4
  482. package/src/models/operations/revokeaccesstoken.ts +0 -3
  483. package/src/models/operations/streammetrics.ts +76 -0
  484. package/src/sdk/metrics.ts +55 -0
  485. 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.13.3",
34269
- genVersion: "2.610.0",
34270
- userAgent: "speakeasy-sdk/typescript 0.13.3 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,126 @@ 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
+
36904
+ // src/models/components/pingeventdata.ts
36905
+ var PingEventData$inboundSchema, PingEventData$outboundSchema, PingEventData$;
36906
+ var init_pingeventdata = __esm(() => {
36907
+ init_esm();
36908
+ PingEventData$inboundSchema = objectType({
36909
+ timestamp: numberType().int()
36910
+ });
36911
+ PingEventData$outboundSchema = objectType({
36912
+ timestamp: numberType().int()
36913
+ });
36914
+ ((PingEventData$) => {
36915
+ PingEventData$.inboundSchema = PingEventData$inboundSchema;
36916
+ PingEventData$.outboundSchema = PingEventData$outboundSchema;
36917
+ })(PingEventData$ ||= {});
36918
+ });
36919
+
36644
36920
  // src/models/components/sequencedrecord.ts
36645
36921
  var SequencedRecord$inboundSchema, SequencedRecord$outboundSchema, SequencedRecord$;
36646
36922
  var init_sequencedrecord = __esm(() => {
@@ -36689,35 +36965,122 @@ var init_readbatch = __esm(() => {
36689
36965
  })(ReadBatch$ ||= {});
36690
36966
  });
36691
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
+
36692
36985
  // src/models/components/readevent.ts
36693
- var Ping$inboundSchema, Ping$outboundSchema, Ping$, ErrorT$inboundSchema, ErrorT$outboundSchema, ErrorT$, 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$;
36694
36987
  var init_readevent = __esm(() => {
36695
36988
  init_esm();
36989
+ init_pingeventdata();
36696
36990
  init_readbatch();
36991
+ init_tailresponse();
36992
+ ReadEvent4Event = {
36993
+ Ping: "ping"
36994
+ };
36995
+ ReadEvent3Event = {
36996
+ Error: "error"
36997
+ };
36998
+ ReadEventEvent = {
36999
+ Tail: "tail"
37000
+ };
37001
+ Event = {
37002
+ Batch: "batch"
37003
+ };
37004
+ ReadEvent4Event$inboundSchema = nativeEnumType(ReadEvent4Event);
37005
+ ReadEvent4Event$outboundSchema = ReadEvent4Event$inboundSchema;
37006
+ ((ReadEvent4Event$) => {
37007
+ ReadEvent4Event$.inboundSchema = ReadEvent4Event$inboundSchema;
37008
+ ReadEvent4Event$.outboundSchema = ReadEvent4Event$outboundSchema;
37009
+ })(ReadEvent4Event$ ||= {});
36697
37010
  Ping$inboundSchema = objectType({
36698
- data: stringType(),
36699
- event: stringType()
37011
+ data: stringType().transform((v2, ctx) => {
37012
+ try {
37013
+ return JSON.parse(v2);
37014
+ } catch (err) {
37015
+ ctx.addIssue({
37016
+ code: ZodIssueCode.custom,
37017
+ message: `malformed json: ${err}`
37018
+ });
37019
+ return NEVER;
37020
+ }
37021
+ }).pipe(PingEventData$inboundSchema),
37022
+ event: ReadEvent4Event$inboundSchema
36700
37023
  });
36701
37024
  Ping$outboundSchema = objectType({
36702
- data: stringType(),
36703
- event: stringType()
37025
+ data: PingEventData$outboundSchema,
37026
+ event: ReadEvent4Event$outboundSchema
36704
37027
  });
36705
37028
  ((Ping$) => {
36706
37029
  Ping$.inboundSchema = Ping$inboundSchema;
36707
37030
  Ping$.outboundSchema = Ping$outboundSchema;
36708
37031
  })(Ping$ ||= {});
37032
+ ReadEvent3Event$inboundSchema = nativeEnumType(ReadEvent3Event);
37033
+ ReadEvent3Event$outboundSchema = ReadEvent3Event$inboundSchema;
37034
+ ((ReadEvent3Event$) => {
37035
+ ReadEvent3Event$.inboundSchema = ReadEvent3Event$inboundSchema;
37036
+ ReadEvent3Event$.outboundSchema = ReadEvent3Event$outboundSchema;
37037
+ })(ReadEvent3Event$ ||= {});
36709
37038
  ErrorT$inboundSchema = objectType({
36710
37039
  data: stringType(),
36711
- event: stringType()
37040
+ event: ReadEvent3Event$inboundSchema
36712
37041
  });
36713
37042
  ErrorT$outboundSchema = objectType({
36714
37043
  data: stringType(),
36715
- event: stringType()
37044
+ event: ReadEvent3Event$outboundSchema
36716
37045
  });
36717
37046
  ((ErrorT$) => {
36718
37047
  ErrorT$.inboundSchema = ErrorT$inboundSchema;
36719
37048
  ErrorT$.outboundSchema = ErrorT$outboundSchema;
36720
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$ ||= {});
37078
+ Event$inboundSchema = nativeEnumType(Event);
37079
+ Event$outboundSchema = Event$inboundSchema;
37080
+ ((Event$) => {
37081
+ Event$.inboundSchema = Event$inboundSchema;
37082
+ Event$.outboundSchema = Event$outboundSchema;
37083
+ })(Event$ ||= {});
36721
37084
  Batch$inboundSchema = objectType({
36722
37085
  data: stringType().transform((v2, ctx) => {
36723
37086
  try {
@@ -36730,25 +37093,29 @@ var init_readevent = __esm(() => {
36730
37093
  return NEVER;
36731
37094
  }
36732
37095
  }).pipe(ReadBatch$inboundSchema),
36733
- event: stringType()
37096
+ event: Event$inboundSchema,
37097
+ id: stringType()
36734
37098
  });
36735
37099
  Batch$outboundSchema = objectType({
36736
37100
  data: ReadBatch$outboundSchema,
36737
- event: stringType()
37101
+ event: Event$outboundSchema,
37102
+ id: stringType()
36738
37103
  });
36739
37104
  ((Batch$) => {
36740
37105
  Batch$.inboundSchema = Batch$inboundSchema;
36741
37106
  Batch$.outboundSchema = Batch$outboundSchema;
36742
37107
  })(Batch$ ||= {});
36743
37108
  ReadEvent$inboundSchema = unionType([
36744
- lazyType(() => Batch$inboundSchema),
37109
+ lazyType(() => ReadEvent2$inboundSchema),
36745
37110
  lazyType(() => ErrorT$inboundSchema),
36746
- lazyType(() => Ping$inboundSchema)
37111
+ lazyType(() => Ping$inboundSchema),
37112
+ lazyType(() => Batch$inboundSchema)
36747
37113
  ]);
36748
37114
  ReadEvent$outboundSchema = unionType([
36749
- lazyType(() => Batch$outboundSchema),
37115
+ lazyType(() => ReadEvent2$outboundSchema),
36750
37116
  lazyType(() => ErrorT$outboundSchema),
36751
- lazyType(() => Ping$outboundSchema)
37117
+ lazyType(() => Ping$outboundSchema),
37118
+ lazyType(() => Batch$outboundSchema)
36752
37119
  ]);
36753
37120
  ((ReadEvent$) => {
36754
37121
  ReadEvent$.inboundSchema = ReadEvent$inboundSchema;
@@ -36761,8 +37128,8 @@ var S2Format, S2Format$inboundSchema, S2Format$outboundSchema, S2Format$;
36761
37128
  var init_s2format = __esm(() => {
36762
37129
  init_esm();
36763
37130
  S2Format = {
36764
- Json: "json",
36765
- JsonBinsafe: "json-binsafe"
37131
+ Raw: "raw",
37132
+ Base64: "base64"
36766
37133
  };
36767
37134
  S2Format$inboundSchema = nativeEnumType(S2Format);
36768
37135
  S2Format$outboundSchema = S2Format$inboundSchema;
@@ -36797,50 +37164,43 @@ var init_security2 = __esm(() => {
36797
37164
  })(Security$ ||= {});
36798
37165
  });
36799
37166
 
36800
- // src/models/components/tailresponse.ts
36801
- var TailResponse$inboundSchema, TailResponse$outboundSchema, TailResponse$;
36802
- var init_tailresponse = __esm(() => {
36803
- init_esm();
36804
- init_streamposition();
36805
- TailResponse$inboundSchema = objectType({
36806
- tail: StreamPosition$inboundSchema
36807
- });
36808
- TailResponse$outboundSchema = objectType({
36809
- tail: StreamPosition$outboundSchema
36810
- });
36811
- ((TailResponse$) => {
36812
- TailResponse$.inboundSchema = TailResponse$inboundSchema;
36813
- TailResponse$.outboundSchema = TailResponse$outboundSchema;
36814
- })(TailResponse$ ||= {});
36815
- });
36816
-
36817
37167
  // src/models/components/index.ts
36818
37168
  var init_components = __esm(() => {
36819
37169
  init_accesstokeninfo();
36820
37170
  init_accesstokenscope();
37171
+ init_accountmetricset();
37172
+ init_accumulation();
36821
37173
  init_appendack();
36822
37174
  init_appendinput();
36823
37175
  init_appendrecord();
36824
37176
  init_basinconfig();
36825
37177
  init_basininfo();
37178
+ init_basinmetricset();
36826
37179
  init_basinreconfiguration();
36827
37180
  init_basinscope();
36828
37181
  init_basinstate();
36829
37182
  init_createbasinrequest();
36830
37183
  init_createorreconfigurebasinrequest();
36831
37184
  init_createstreamrequest();
37185
+ init_gauge();
36832
37186
  init_issueaccesstokenresponse();
37187
+ init_label();
36833
37188
  init_listaccesstokensresponse();
36834
37189
  init_listbasinsresponse();
36835
37190
  init_liststreamsresponse();
37191
+ init_metric();
37192
+ init_metricsetresponse();
37193
+ init_metricunit();
36836
37194
  init_operation();
36837
37195
  init_permittedoperationgroups();
37196
+ init_pingeventdata();
36838
37197
  init_readbatch();
36839
37198
  init_readevent();
36840
37199
  init_readwritepermissions();
36841
37200
  init_resourceset();
36842
37201
  init_retentionpolicy();
36843
37202
  init_s2format();
37203
+ init_scalar();
36844
37204
  init_security2();
36845
37205
  init_sequencedrecord();
36846
37206
  init_storageclass();
@@ -36849,6 +37209,7 @@ var init_components = __esm(() => {
36849
37209
  init_streamposition();
36850
37210
  init_streamreconfiguration();
36851
37211
  init_tailresponse();
37212
+ init_timeseriesinterval();
36852
37213
  init_timestampingconfig();
36853
37214
  init_timestampingmode();
36854
37215
  init_timestampingreconfiguration();
@@ -36966,11 +37327,11 @@ var init_errorresponse = __esm(() => {
36966
37327
  });
36967
37328
 
36968
37329
  // src/models/errors/tailresponse.ts
36969
- var TailResponse, TailResponse$inboundSchema2, TailResponse$outboundSchema2, TailResponse$2;
37330
+ var TailResponse2, TailResponse$inboundSchema2, TailResponse$outboundSchema2, TailResponse$2;
36970
37331
  var init_tailresponse2 = __esm(() => {
36971
37332
  init_esm();
36972
37333
  init_components();
36973
- TailResponse = class TailResponse extends Error {
37334
+ TailResponse2 = class TailResponse2 extends Error {
36974
37335
  tail;
36975
37336
  data$;
36976
37337
  constructor(err) {
@@ -36984,9 +37345,9 @@ var init_tailresponse2 = __esm(() => {
36984
37345
  TailResponse$inboundSchema2 = objectType({
36985
37346
  tail: StreamPosition$inboundSchema
36986
37347
  }).transform((v2) => {
36987
- return new TailResponse(v2);
37348
+ return new TailResponse2(v2);
36988
37349
  });
36989
- TailResponse$outboundSchema2 = instanceOfType(TailResponse).transform((v2) => v2.data$).pipe(objectType({
37350
+ TailResponse$outboundSchema2 = instanceOfType(TailResponse2).transform((v2) => v2.data$).pipe(objectType({
36990
37351
  tail: StreamPosition$outboundSchema
36991
37352
  }));
36992
37353
  ((TailResponse$) => {
@@ -37051,6 +37412,7 @@ async function $do(client, request, options) {
37051
37412
  const securityInput = secConfig == null ? {} : { accessToken: secConfig };
37052
37413
  const requestSecurity = resolveGlobalSecurity(securityInput);
37053
37414
  const context = {
37415
+ options: client._options,
37054
37416
  baseURL: options?.serverURL ?? client._baseURL ?? "",
37055
37417
  operationID: "issue_access_token",
37056
37418
  oAuth2Scopes: [],
@@ -37066,6 +37428,7 @@ async function $do(client, request, options) {
37066
37428
  path,
37067
37429
  headers,
37068
37430
  body,
37431
+ userAgent: client._options.userAgent,
37069
37432
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
37070
37433
  }, options);
37071
37434
  if (!requestRes.ok) {
@@ -37131,6 +37494,29 @@ var init_accessTokensIssueAccessToken2 = __esm(() => {
37131
37494
  };
37132
37495
  });
37133
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
+
37134
37520
  // src/models/operations/append.ts
37135
37521
  var AppendServerList, AppendRequest$inboundSchema, AppendRequest$outboundSchema, AppendRequest$;
37136
37522
  var init_append = __esm(() => {
@@ -37170,6 +37556,31 @@ var init_append = __esm(() => {
37170
37556
  })(AppendRequest$ ||= {});
37171
37557
  });
37172
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
+
37173
37584
  // src/models/operations/checktail.ts
37174
37585
  var CheckTailServerList, CheckTailRequest$inboundSchema, CheckTailRequest$outboundSchema, CheckTailRequest$;
37175
37586
  var init_checktail = __esm(() => {
@@ -37674,9 +38085,29 @@ var init_revokeaccesstoken = __esm(() => {
37674
38085
  })(RevokeAccessTokenRequest$ ||= {});
37675
38086
  });
37676
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
+
37677
38106
  // src/models/operations/index.ts
37678
38107
  var init_operations = __esm(() => {
38108
+ init_accountmetrics();
37679
38109
  init_append();
38110
+ init_basinmetrics();
37680
38111
  init_checktail();
37681
38112
  init_createorreconfigurebasin();
37682
38113
  init_createorreconfigurestream();
@@ -37692,6 +38123,7 @@ var init_operations = __esm(() => {
37692
38123
  init_reconfigurebasin();
37693
38124
  init_reconfigurestream();
37694
38125
  init_revokeaccesstoken();
38126
+ init_streammetrics();
37695
38127
  });
37696
38128
 
37697
38129
  // src/funcs/accessTokensListAccessTokens.ts
@@ -37718,6 +38150,7 @@ async function $do2(client, request, options) {
37718
38150
  const securityInput = secConfig == null ? {} : { accessToken: secConfig };
37719
38151
  const requestSecurity = resolveGlobalSecurity(securityInput);
37720
38152
  const context = {
38153
+ options: client._options,
37721
38154
  baseURL: options?.serverURL ?? client._baseURL ?? "",
37722
38155
  operationID: "list_access_tokens",
37723
38156
  oAuth2Scopes: [],
@@ -37734,6 +38167,7 @@ async function $do2(client, request, options) {
37734
38167
  headers,
37735
38168
  query,
37736
38169
  body,
38170
+ userAgent: client._options.userAgent,
37737
38171
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
37738
38172
  }, options);
37739
38173
  if (!requestRes.ok) {
@@ -37825,6 +38259,7 @@ async function $do3(client, request, options) {
37825
38259
  const securityInput = secConfig == null ? {} : { accessToken: secConfig };
37826
38260
  const requestSecurity = resolveGlobalSecurity(securityInput);
37827
38261
  const context = {
38262
+ options: client._options,
37828
38263
  baseURL: options?.serverURL ?? client._baseURL ?? "",
37829
38264
  operationID: "revoke_access_token",
37830
38265
  oAuth2Scopes: [],
@@ -37840,6 +38275,7 @@ async function $do3(client, request, options) {
37840
38275
  path,
37841
38276
  headers,
37842
38277
  body,
38278
+ userAgent: client._options.userAgent,
37843
38279
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
37844
38280
  }, options);
37845
38281
  if (!requestRes.ok) {
@@ -37925,6 +38361,7 @@ async function $do4(client, request, options) {
37925
38361
  const securityInput = secConfig == null ? {} : { accessToken: secConfig };
37926
38362
  const requestSecurity = resolveGlobalSecurity(securityInput);
37927
38363
  const context = {
38364
+ options: client._options,
37928
38365
  baseURL: options?.serverURL ?? client._baseURL ?? "",
37929
38366
  operationID: "create_basin",
37930
38367
  oAuth2Scopes: [],
@@ -37940,6 +38377,7 @@ async function $do4(client, request, options) {
37940
38377
  path,
37941
38378
  headers,
37942
38379
  body,
38380
+ userAgent: client._options.userAgent,
37943
38381
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
37944
38382
  }, options);
37945
38383
  if (!requestRes.ok) {
@@ -38034,6 +38472,7 @@ async function $do5(client, request, options) {
38034
38472
  const securityInput = secConfig == null ? {} : { accessToken: secConfig };
38035
38473
  const requestSecurity = resolveGlobalSecurity(securityInput);
38036
38474
  const context = {
38475
+ options: client._options,
38037
38476
  baseURL: options?.serverURL ?? client._baseURL ?? "",
38038
38477
  operationID: "create_or_reconfigure_basin",
38039
38478
  oAuth2Scopes: [],
@@ -38049,6 +38488,7 @@ async function $do5(client, request, options) {
38049
38488
  path,
38050
38489
  headers,
38051
38490
  body,
38491
+ userAgent: client._options.userAgent,
38052
38492
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
38053
38493
  }, options);
38054
38494
  if (!requestRes.ok) {
@@ -38140,6 +38580,7 @@ async function $do6(client, request, options) {
38140
38580
  const securityInput = secConfig == null ? {} : { accessToken: secConfig };
38141
38581
  const requestSecurity = resolveGlobalSecurity(securityInput);
38142
38582
  const context = {
38583
+ options: client._options,
38143
38584
  baseURL: options?.serverURL ?? client._baseURL ?? "",
38144
38585
  operationID: "delete_basin",
38145
38586
  oAuth2Scopes: [],
@@ -38155,6 +38596,7 @@ async function $do6(client, request, options) {
38155
38596
  path,
38156
38597
  headers,
38157
38598
  body,
38599
+ userAgent: client._options.userAgent,
38158
38600
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
38159
38601
  }, options);
38160
38602
  if (!requestRes.ok) {
@@ -38245,6 +38687,7 @@ async function $do7(client, request, options) {
38245
38687
  const securityInput = secConfig == null ? {} : { accessToken: secConfig };
38246
38688
  const requestSecurity = resolveGlobalSecurity(securityInput);
38247
38689
  const context = {
38690
+ options: client._options,
38248
38691
  baseURL: options?.serverURL ?? client._baseURL ?? "",
38249
38692
  operationID: "get_basin_config",
38250
38693
  oAuth2Scopes: [],
@@ -38260,6 +38703,7 @@ async function $do7(client, request, options) {
38260
38703
  path,
38261
38704
  headers,
38262
38705
  body,
38706
+ userAgent: client._options.userAgent,
38263
38707
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
38264
38708
  }, options);
38265
38709
  if (!requestRes.ok) {
@@ -42169,6 +42613,7 @@ async function $do8(client, request, options) {
42169
42613
  const securityInput = secConfig == null ? {} : { accessToken: secConfig };
42170
42614
  const requestSecurity = resolveGlobalSecurity(securityInput);
42171
42615
  const context = {
42616
+ options: client._options,
42172
42617
  baseURL: options?.serverURL ?? client._baseURL ?? "",
42173
42618
  operationID: "list_basins",
42174
42619
  oAuth2Scopes: [],
@@ -42185,6 +42630,7 @@ async function $do8(client, request, options) {
42185
42630
  headers,
42186
42631
  query: query2,
42187
42632
  body,
42633
+ userAgent: client._options.userAgent,
42188
42634
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
42189
42635
  }, options);
42190
42636
  if (!requestRes.ok) {
@@ -42300,6 +42746,7 @@ async function $do9(client, request, options) {
42300
42746
  const securityInput = secConfig == null ? {} : { accessToken: secConfig };
42301
42747
  const requestSecurity = resolveGlobalSecurity(securityInput);
42302
42748
  const context = {
42749
+ options: client._options,
42303
42750
  baseURL: options?.serverURL ?? client._baseURL ?? "",
42304
42751
  operationID: "reconfigure_basin",
42305
42752
  oAuth2Scopes: [],
@@ -42315,6 +42762,7 @@ async function $do9(client, request, options) {
42315
42762
  path,
42316
42763
  headers,
42317
42764
  body,
42765
+ userAgent: client._options.userAgent,
42318
42766
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
42319
42767
  }, options);
42320
42768
  if (!requestRes.ok) {
@@ -42381,11 +42829,347 @@ var init_basinsReconfigureBasin2 = __esm(() => {
42381
42829
  };
42382
42830
  });
42383
42831
 
42384
- // src/funcs/recordsAppend.ts
42385
- function recordsAppend(client, request, options) {
42832
+ // src/funcs/metricsAccountMetrics.ts
42833
+ function metricsAccountMetrics(client, request, options) {
42386
42834
  return new APIPromise($do10(client, request, options));
42387
42835
  }
42388
42836
  async function $do10(client, request, options) {
42837
+ const parsed = safeParse(request, (value2) => AccountMetricsRequest$outboundSchema.parse(value2), "Input validation failed");
42838
+ if (!parsed.ok) {
42839
+ return [parsed, { status: "invalid" }];
42840
+ }
42841
+ const payload = parsed.value;
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
42849
+ });
42850
+ const headers = new Headers(compactMap({
42851
+ Accept: "application/json"
42852
+ }));
42853
+ const secConfig = await extractSecurity(client._options.accessToken);
42854
+ const securityInput = secConfig == null ? {} : { accessToken: secConfig };
42855
+ const requestSecurity = resolveGlobalSecurity(securityInput);
42856
+ const context = {
42857
+ options: client._options,
42858
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
42859
+ operationID: "account_metrics",
42860
+ oAuth2Scopes: [],
42861
+ resolvedSecurity: requestSecurity,
42862
+ securitySource: client._options.accessToken,
42863
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
42864
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
42865
+ };
42866
+ const requestRes = client._createRequest(context, {
42867
+ security: requestSecurity,
42868
+ method: "GET",
42869
+ baseURL: options?.serverURL,
42870
+ path,
42871
+ headers,
42872
+ query: query2,
42873
+ body,
42874
+ userAgent: client._options.userAgent,
42875
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
42876
+ }, options);
42877
+ if (!requestRes.ok) {
42878
+ return [requestRes, { status: "invalid" }];
42879
+ }
42880
+ const req = requestRes.value;
42881
+ const doResult = await client._do(req, {
42882
+ context,
42883
+ errorCodes: ["400", "403", "4XX", "5XX"],
42884
+ retryConfig: context.retryConfig,
42885
+ retryCodes: context.retryCodes
42886
+ });
42887
+ if (!doResult.ok) {
42888
+ return [doResult, { status: "request-error", request: req }];
42889
+ }
42890
+ const response = doResult.value;
42891
+ const responseFields = {
42892
+ HttpMeta: { Response: response, Request: req }
42893
+ };
42894
+ const [result] = await match(json(200, MetricSetResponse$inboundSchema), jsonErr([400, 403], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
42895
+ if (!result.ok) {
42896
+ return [result, { status: "complete", request: req, response }];
42897
+ }
42898
+ return [result, { status: "complete", request: req, response }];
42899
+ }
42900
+ var init_metricsAccountMetrics = __esm(() => {
42901
+ init_encodings();
42902
+ init_matchers();
42903
+ init_primitives();
42904
+ init_schemas();
42905
+ init_security();
42906
+ init_url();
42907
+ init_components();
42908
+ init_errors2();
42909
+ init_operations();
42910
+ init_async();
42911
+ });
42912
+
42913
+ // src/mcp-server/tools/metricsAccountMetrics.ts
42914
+ var args10, tool$metricsAccountMetrics;
42915
+ var init_metricsAccountMetrics2 = __esm(() => {
42916
+ init_metricsAccountMetrics();
42917
+ init_operations();
42918
+ init_tools();
42919
+ args10 = {
42920
+ request: AccountMetricsRequest$inboundSchema
42921
+ };
42922
+ tool$metricsAccountMetrics = {
42923
+ name: "metrics-account-metrics",
42924
+ description: `Get account level metrics.`,
42925
+ scopes: ["read", "read", "read"],
42926
+ args: args10,
42927
+ tool: async (client, args11, ctx) => {
42928
+ const [result, apiCall] = await metricsAccountMetrics(client, args11.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
42929
+ if (!result.ok) {
42930
+ return {
42931
+ content: [{ type: "text", text: result.error.message }],
42932
+ isError: true
42933
+ };
42934
+ }
42935
+ const value2 = result.value;
42936
+ return formatResult(value2, apiCall);
42937
+ }
42938
+ };
42939
+ });
42940
+
42941
+ // src/funcs/metricsBasinMetrics.ts
42942
+ function metricsBasinMetrics(client, request, options) {
42943
+ return new APIPromise($do11(client, request, options));
42944
+ }
42945
+ async function $do11(client, request, options) {
42946
+ const parsed = safeParse(request, (value2) => BasinMetricsRequest$outboundSchema.parse(value2), "Input validation failed");
42947
+ if (!parsed.ok) {
42948
+ return [parsed, { status: "invalid" }];
42949
+ }
42950
+ const payload = parsed.value;
42951
+ const body = null;
42952
+ const pathParams = {
42953
+ basin: encodeSimple("basin", payload.basin, {
42954
+ explode: false,
42955
+ charEncoding: "percent"
42956
+ })
42957
+ };
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
+ });
42965
+ const headers = new Headers(compactMap({
42966
+ Accept: "application/json"
42967
+ }));
42968
+ const secConfig = await extractSecurity(client._options.accessToken);
42969
+ const securityInput = secConfig == null ? {} : { accessToken: secConfig };
42970
+ const requestSecurity = resolveGlobalSecurity(securityInput);
42971
+ const context = {
42972
+ options: client._options,
42973
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
42974
+ operationID: "basin_metrics",
42975
+ oAuth2Scopes: [],
42976
+ resolvedSecurity: requestSecurity,
42977
+ securitySource: client._options.accessToken,
42978
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
42979
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
42980
+ };
42981
+ const requestRes = client._createRequest(context, {
42982
+ security: requestSecurity,
42983
+ method: "GET",
42984
+ baseURL: options?.serverURL,
42985
+ path,
42986
+ headers,
42987
+ query: query2,
42988
+ body,
42989
+ userAgent: client._options.userAgent,
42990
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
42991
+ }, options);
42992
+ if (!requestRes.ok) {
42993
+ return [requestRes, { status: "invalid" }];
42994
+ }
42995
+ const req = requestRes.value;
42996
+ const doResult = await client._do(req, {
42997
+ context,
42998
+ errorCodes: ["400", "403", "4XX", "5XX"],
42999
+ retryConfig: context.retryConfig,
43000
+ retryCodes: context.retryCodes
43001
+ });
43002
+ if (!doResult.ok) {
43003
+ return [doResult, { status: "request-error", request: req }];
43004
+ }
43005
+ const response = doResult.value;
43006
+ const responseFields = {
43007
+ HttpMeta: { Response: response, Request: req }
43008
+ };
43009
+ const [result] = await match(json(200, MetricSetResponse$inboundSchema), jsonErr([400, 403], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
43010
+ if (!result.ok) {
43011
+ return [result, { status: "complete", request: req, response }];
43012
+ }
43013
+ return [result, { status: "complete", request: req, response }];
43014
+ }
43015
+ var init_metricsBasinMetrics = __esm(() => {
43016
+ init_encodings();
43017
+ init_matchers();
43018
+ init_primitives();
43019
+ init_schemas();
43020
+ init_security();
43021
+ init_url();
43022
+ init_components();
43023
+ init_errors2();
43024
+ init_operations();
43025
+ init_async();
43026
+ });
43027
+
43028
+ // src/mcp-server/tools/metricsBasinMetrics.ts
43029
+ var args11, tool$metricsBasinMetrics;
43030
+ var init_metricsBasinMetrics2 = __esm(() => {
43031
+ init_metricsBasinMetrics();
43032
+ init_operations();
43033
+ init_tools();
43034
+ args11 = {
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) {
42389
43173
  const parsed = safeParse(request, (value2) => AppendRequest$outboundSchema.parse(value2), "Input validation failed");
42390
43174
  if (!parsed.ok) {
42391
43175
  return [parsed, { status: "invalid" }];
@@ -42418,6 +43202,7 @@ async function $do10(client, request, options) {
42418
43202
  const securityInput = secConfig == null ? {} : { accessToken: secConfig };
42419
43203
  const requestSecurity = resolveGlobalSecurity(securityInput);
42420
43204
  const context = {
43205
+ options: client._options,
42421
43206
  baseURL: baseURL ?? "",
42422
43207
  operationID: "append",
42423
43208
  oAuth2Scopes: [],
@@ -42433,6 +43218,7 @@ async function $do10(client, request, options) {
42433
43218
  path,
42434
43219
  headers,
42435
43220
  body,
43221
+ userAgent: client._options.userAgent,
42436
43222
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
42437
43223
  }, options);
42438
43224
  if (!requestRes.ok) {
@@ -42473,12 +43259,12 @@ var init_recordsAppend = __esm(() => {
42473
43259
  });
42474
43260
 
42475
43261
  // src/mcp-server/tools/recordsAppend.ts
42476
- var args10, tool$recordsAppend;
43262
+ var args13, tool$recordsAppend;
42477
43263
  var init_recordsAppend2 = __esm(() => {
42478
43264
  init_recordsAppend();
42479
43265
  init_operations();
42480
43266
  init_tools();
42481
- args10 = {
43267
+ args13 = {
42482
43268
  request: AppendRequest$inboundSchema
42483
43269
  };
42484
43270
  tool$recordsAppend = {
@@ -42487,9 +43273,9 @@ var init_recordsAppend2 = __esm(() => {
42487
43273
 
42488
43274
  Append a batch of records to a stream.`,
42489
43275
  scopes: ["write", "write", "write"],
42490
- args: args10,
42491
- tool: async (client, args11, ctx) => {
42492
- const [result, apiCall] = await recordsAppend(client, args11.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
43276
+ args: args13,
43277
+ tool: async (client, args14, ctx) => {
43278
+ const [result, apiCall] = await recordsAppend(client, args14.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
42493
43279
  if (!result.ok) {
42494
43280
  return {
42495
43281
  content: [{ type: "text", text: result.error.message }],
@@ -42504,9 +43290,9 @@ Append a batch of records to a stream.`,
42504
43290
 
42505
43291
  // src/funcs/recordsCheckTail.ts
42506
43292
  function recordsCheckTail(client, request, options) {
42507
- return new APIPromise($do11(client, request, options));
43293
+ return new APIPromise($do14(client, request, options));
42508
43294
  }
42509
- async function $do11(client, request, options) {
43295
+ async function $do14(client, request, options) {
42510
43296
  const parsed = safeParse(request, (value2) => CheckTailRequest$outboundSchema.parse(value2), "Input validation failed");
42511
43297
  if (!parsed.ok) {
42512
43298
  return [parsed, { status: "invalid" }];
@@ -42534,6 +43320,7 @@ async function $do11(client, request, options) {
42534
43320
  const securityInput = secConfig == null ? {} : { accessToken: secConfig };
42535
43321
  const requestSecurity = resolveGlobalSecurity(securityInput);
42536
43322
  const context = {
43323
+ options: client._options,
42537
43324
  baseURL: baseURL ?? "",
42538
43325
  operationID: "check_tail",
42539
43326
  oAuth2Scopes: [],
@@ -42549,6 +43336,7 @@ async function $do11(client, request, options) {
42549
43336
  path,
42550
43337
  headers,
42551
43338
  body,
43339
+ userAgent: client._options.userAgent,
42552
43340
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
42553
43341
  }, options);
42554
43342
  if (!requestRes.ok) {
@@ -42589,12 +43377,12 @@ var init_recordsCheckTail = __esm(() => {
42589
43377
  });
42590
43378
 
42591
43379
  // src/mcp-server/tools/recordsCheckTail.ts
42592
- var args11, tool$recordsCheckTail;
43380
+ var args14, tool$recordsCheckTail;
42593
43381
  var init_recordsCheckTail2 = __esm(() => {
42594
43382
  init_recordsCheckTail();
42595
43383
  init_operations();
42596
43384
  init_tools();
42597
- args11 = {
43385
+ args14 = {
42598
43386
  request: CheckTailRequest$inboundSchema
42599
43387
  };
42600
43388
  tool$recordsCheckTail = {
@@ -42603,9 +43391,9 @@ var init_recordsCheckTail2 = __esm(() => {
42603
43391
 
42604
43392
  Check the tail of a stream.`,
42605
43393
  scopes: ["read", "read", "read"],
42606
- args: args11,
42607
- tool: async (client, args12, ctx) => {
42608
- 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();
42609
43397
  if (!result.ok) {
42610
43398
  return {
42611
43399
  content: [{ type: "text", text: result.error.message }],
@@ -42620,9 +43408,9 @@ Check the tail of a stream.`,
42620
43408
 
42621
43409
  // src/funcs/recordsRead.ts
42622
43410
  function recordsRead(client, request, options) {
42623
- return new APIPromise($do12(client, request, options));
43411
+ return new APIPromise($do15(client, request, options));
42624
43412
  }
42625
- async function $do12(client, request, options) {
43413
+ async function $do15(client, request, options) {
42626
43414
  const parsed = safeParse(request, (value2) => ReadRequest$outboundSchema.parse(value2), "Input validation failed");
42627
43415
  if (!parsed.ok) {
42628
43416
  return [parsed, { status: "invalid" }];
@@ -42661,6 +43449,7 @@ async function $do12(client, request, options) {
42661
43449
  const securityInput = secConfig == null ? {} : { accessToken: secConfig };
42662
43450
  const requestSecurity = resolveGlobalSecurity(securityInput);
42663
43451
  const context = {
43452
+ options: client._options,
42664
43453
  baseURL: baseURL ?? "",
42665
43454
  operationID: "read",
42666
43455
  oAuth2Scopes: [],
@@ -42677,6 +43466,7 @@ async function $do12(client, request, options) {
42677
43466
  headers,
42678
43467
  query: query2,
42679
43468
  body,
43469
+ userAgent: client._options.userAgent,
42680
43470
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
42681
43471
  }, options);
42682
43472
  if (!requestRes.ok) {
@@ -42696,7 +43486,9 @@ async function $do12(client, request, options) {
42696
43486
  const responseFields = {
42697
43487
  HttpMeta: { Response: response, Request: req }
42698
43488
  };
42699
- const [result] = await match(json(200, ReadResponse$inboundSchema), sse(200, ReadResponse$inboundSchema), jsonErr([400, 401, 404, 409], ErrorResponse$inboundSchema), jsonErr(416, TailResponse$inboundSchema2), jsonErr(500, ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
43489
+ const [result] = await match(json(200, ReadResponse$inboundSchema), sse(200, ReadResponse$inboundSchema, {
43490
+ sseSentinel: "[DONE]"
43491
+ }), jsonErr([400, 401, 404, 409], ErrorResponse$inboundSchema), jsonErr(416, TailResponse$inboundSchema2), jsonErr(500, ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
42700
43492
  if (!result.ok) {
42701
43493
  return [result, { status: "complete", request: req, response }];
42702
43494
  }
@@ -42716,12 +43508,12 @@ var init_recordsRead = __esm(() => {
42716
43508
  });
42717
43509
 
42718
43510
  // src/mcp-server/tools/recordsRead.ts
42719
- var args12, tool$recordsRead;
43511
+ var args15, tool$recordsRead;
42720
43512
  var init_recordsRead2 = __esm(() => {
42721
43513
  init_recordsRead();
42722
43514
  init_operations();
42723
43515
  init_tools();
42724
- args12 = {
43516
+ args15 = {
42725
43517
  request: ReadRequest$inboundSchema
42726
43518
  };
42727
43519
  tool$recordsRead = {
@@ -42730,9 +43522,9 @@ var init_recordsRead2 = __esm(() => {
42730
43522
 
42731
43523
  Retrieve a batch of records, or set \`Accept: text/event-stream\` to stream using server-sent events.`,
42732
43524
  scopes: ["read", "read", "read"],
42733
- args: args12,
42734
- tool: async (client, args13, ctx) => {
42735
- 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();
42736
43528
  if (!result.ok) {
42737
43529
  return {
42738
43530
  content: [{ type: "text", text: result.error.message }],
@@ -42747,9 +43539,9 @@ Retrieve a batch of records, or set \`Accept: text/event-stream\` to stream usin
42747
43539
 
42748
43540
  // src/funcs/streamsCreateOrReconfigureStream.ts
42749
43541
  function streamsCreateOrReconfigureStream(client, request, options) {
42750
- return new APIPromise($do13(client, request, options));
43542
+ return new APIPromise($do16(client, request, options));
42751
43543
  }
42752
- async function $do13(client, request, options) {
43544
+ async function $do16(client, request, options) {
42753
43545
  const parsed = safeParse(request, (value2) => CreateOrReconfigureStreamRequest$outboundSchema.parse(value2), "Input validation failed");
42754
43546
  if (!parsed.ok) {
42755
43547
  return [parsed, { status: "invalid" }];
@@ -42781,6 +43573,7 @@ async function $do13(client, request, options) {
42781
43573
  const securityInput = secConfig == null ? {} : { accessToken: secConfig };
42782
43574
  const requestSecurity = resolveGlobalSecurity(securityInput);
42783
43575
  const context = {
43576
+ options: client._options,
42784
43577
  baseURL: baseURL ?? "",
42785
43578
  operationID: "create_or_reconfigure_stream",
42786
43579
  oAuth2Scopes: [],
@@ -42796,6 +43589,7 @@ async function $do13(client, request, options) {
42796
43589
  path,
42797
43590
  headers,
42798
43591
  body,
43592
+ userAgent: client._options.userAgent,
42799
43593
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
42800
43594
  }, options);
42801
43595
  if (!requestRes.ok) {
@@ -42836,21 +43630,21 @@ var init_streamsCreateOrReconfigureStream = __esm(() => {
42836
43630
  });
42837
43631
 
42838
43632
  // src/mcp-server/tools/streamsCreateOrReconfigureStream.ts
42839
- var args13, tool$streamsCreateOrReconfigureStream;
43633
+ var args16, tool$streamsCreateOrReconfigureStream;
42840
43634
  var init_streamsCreateOrReconfigureStream2 = __esm(() => {
42841
43635
  init_streamsCreateOrReconfigureStream();
42842
43636
  init_operations();
42843
43637
  init_tools();
42844
- args13 = {
43638
+ args16 = {
42845
43639
  request: CreateOrReconfigureStreamRequest$inboundSchema
42846
43640
  };
42847
43641
  tool$streamsCreateOrReconfigureStream = {
42848
43642
  name: "streams-create-or-reconfigure-stream",
42849
43643
  description: `Create or reconfigure a stream.`,
42850
43644
  scopes: ["write", "write", "write"],
42851
- args: args13,
42852
- tool: async (client, args14, ctx) => {
42853
- 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();
42854
43648
  if (!result.ok) {
42855
43649
  return {
42856
43650
  content: [{ type: "text", text: result.error.message }],
@@ -42865,9 +43659,9 @@ var init_streamsCreateOrReconfigureStream2 = __esm(() => {
42865
43659
 
42866
43660
  // src/funcs/streamsCreateStream.ts
42867
43661
  function streamsCreateStream(client, request, options) {
42868
- return new APIPromise($do14(client, request, options));
43662
+ return new APIPromise($do17(client, request, options));
42869
43663
  }
42870
- async function $do14(client, request, options) {
43664
+ async function $do17(client, request, options) {
42871
43665
  const parsed = safeParse(request, (value2) => CreateStreamRequest$outboundSchema2.parse(value2), "Input validation failed");
42872
43666
  if (!parsed.ok) {
42873
43667
  return [parsed, { status: "invalid" }];
@@ -42892,6 +43686,7 @@ async function $do14(client, request, options) {
42892
43686
  const securityInput = secConfig == null ? {} : { accessToken: secConfig };
42893
43687
  const requestSecurity = resolveGlobalSecurity(securityInput);
42894
43688
  const context = {
43689
+ options: client._options,
42895
43690
  baseURL: baseURL ?? "",
42896
43691
  operationID: "create_stream",
42897
43692
  oAuth2Scopes: [],
@@ -42907,6 +43702,7 @@ async function $do14(client, request, options) {
42907
43702
  path,
42908
43703
  headers,
42909
43704
  body,
43705
+ userAgent: client._options.userAgent,
42910
43706
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
42911
43707
  }, options);
42912
43708
  if (!requestRes.ok) {
@@ -42947,21 +43743,21 @@ var init_streamsCreateStream = __esm(() => {
42947
43743
  });
42948
43744
 
42949
43745
  // src/mcp-server/tools/streamsCreateStream.ts
42950
- var args14, tool$streamsCreateStream;
43746
+ var args17, tool$streamsCreateStream;
42951
43747
  var init_streamsCreateStream2 = __esm(() => {
42952
43748
  init_streamsCreateStream();
42953
43749
  init_operations();
42954
43750
  init_tools();
42955
- args14 = {
43751
+ args17 = {
42956
43752
  request: CreateStreamRequest$inboundSchema2
42957
43753
  };
42958
43754
  tool$streamsCreateStream = {
42959
43755
  name: "streams-create-stream",
42960
43756
  description: `Create a stream.`,
42961
43757
  scopes: ["write", "write", "write"],
42962
- args: args14,
42963
- tool: async (client, args15, ctx) => {
42964
- 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();
42965
43761
  if (!result.ok) {
42966
43762
  return {
42967
43763
  content: [{ type: "text", text: result.error.message }],
@@ -42976,9 +43772,9 @@ var init_streamsCreateStream2 = __esm(() => {
42976
43772
 
42977
43773
  // src/funcs/streamsDeleteStream.ts
42978
43774
  function streamsDeleteStream(client, request, options) {
42979
- return new APIPromise($do15(client, request, options));
43775
+ return new APIPromise($do18(client, request, options));
42980
43776
  }
42981
- async function $do15(client, request, options) {
43777
+ async function $do18(client, request, options) {
42982
43778
  const parsed = safeParse(request, (value2) => DeleteStreamRequest$outboundSchema.parse(value2), "Input validation failed");
42983
43779
  if (!parsed.ok) {
42984
43780
  return [parsed, { status: "invalid" }];
@@ -43006,6 +43802,7 @@ async function $do15(client, request, options) {
43006
43802
  const securityInput = secConfig == null ? {} : { accessToken: secConfig };
43007
43803
  const requestSecurity = resolveGlobalSecurity(securityInput);
43008
43804
  const context = {
43805
+ options: client._options,
43009
43806
  baseURL: baseURL ?? "",
43010
43807
  operationID: "delete_stream",
43011
43808
  oAuth2Scopes: [],
@@ -43021,6 +43818,7 @@ async function $do15(client, request, options) {
43021
43818
  path,
43022
43819
  headers,
43023
43820
  body,
43821
+ userAgent: client._options.userAgent,
43024
43822
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
43025
43823
  }, options);
43026
43824
  if (!requestRes.ok) {
@@ -43061,21 +43859,21 @@ var init_streamsDeleteStream = __esm(() => {
43061
43859
  });
43062
43860
 
43063
43861
  // src/mcp-server/tools/streamsDeleteStream.ts
43064
- var args15, tool$streamsDeleteStream;
43862
+ var args18, tool$streamsDeleteStream;
43065
43863
  var init_streamsDeleteStream2 = __esm(() => {
43066
43864
  init_streamsDeleteStream();
43067
43865
  init_operations();
43068
43866
  init_tools();
43069
- args15 = {
43867
+ args18 = {
43070
43868
  request: DeleteStreamRequest$inboundSchema
43071
43869
  };
43072
43870
  tool$streamsDeleteStream = {
43073
43871
  name: "streams-delete-stream",
43074
43872
  description: `Delete a stream.`,
43075
43873
  scopes: ["write", "write", "write"],
43076
- args: args15,
43077
- tool: async (client, args16, ctx) => {
43078
- 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();
43079
43877
  if (!result.ok) {
43080
43878
  return {
43081
43879
  content: [{ type: "text", text: result.error.message }],
@@ -43089,9 +43887,9 @@ var init_streamsDeleteStream2 = __esm(() => {
43089
43887
 
43090
43888
  // src/funcs/streamsGetStreamConfig.ts
43091
43889
  function streamsGetStreamConfig(client, request, options) {
43092
- return new APIPromise($do16(client, request, options));
43890
+ return new APIPromise($do19(client, request, options));
43093
43891
  }
43094
- async function $do16(client, request, options) {
43892
+ async function $do19(client, request, options) {
43095
43893
  const parsed = safeParse(request, (value2) => GetStreamConfigRequest$outboundSchema.parse(value2), "Input validation failed");
43096
43894
  if (!parsed.ok) {
43097
43895
  return [parsed, { status: "invalid" }];
@@ -43119,6 +43917,7 @@ async function $do16(client, request, options) {
43119
43917
  const securityInput = secConfig == null ? {} : { accessToken: secConfig };
43120
43918
  const requestSecurity = resolveGlobalSecurity(securityInput);
43121
43919
  const context = {
43920
+ options: client._options,
43122
43921
  baseURL: baseURL ?? "",
43123
43922
  operationID: "get_stream_config",
43124
43923
  oAuth2Scopes: [],
@@ -43134,6 +43933,7 @@ async function $do16(client, request, options) {
43134
43933
  path,
43135
43934
  headers,
43136
43935
  body,
43936
+ userAgent: client._options.userAgent,
43137
43937
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
43138
43938
  }, options);
43139
43939
  if (!requestRes.ok) {
@@ -43174,21 +43974,21 @@ var init_streamsGetStreamConfig = __esm(() => {
43174
43974
  });
43175
43975
 
43176
43976
  // src/mcp-server/tools/streamsGetStreamConfig.ts
43177
- var args16, tool$streamsGetStreamConfig;
43977
+ var args19, tool$streamsGetStreamConfig;
43178
43978
  var init_streamsGetStreamConfig2 = __esm(() => {
43179
43979
  init_streamsGetStreamConfig();
43180
43980
  init_operations();
43181
43981
  init_tools();
43182
- args16 = {
43982
+ args19 = {
43183
43983
  request: GetStreamConfigRequest$inboundSchema
43184
43984
  };
43185
43985
  tool$streamsGetStreamConfig = {
43186
43986
  name: "streams-get-stream-config",
43187
43987
  description: `Get stream configuration.`,
43188
43988
  scopes: ["read", "read", "read"],
43189
- args: args16,
43190
- tool: async (client, args17, ctx) => {
43191
- 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();
43192
43992
  if (!result.ok) {
43193
43993
  return {
43194
43994
  content: [{ type: "text", text: result.error.message }],
@@ -43203,9 +44003,9 @@ var init_streamsGetStreamConfig2 = __esm(() => {
43203
44003
 
43204
44004
  // src/funcs/streamsListStreams.ts
43205
44005
  function streamsListStreams(client, request, options) {
43206
- return new APIPromise($do17(client, request, options));
44006
+ return new APIPromise($do20(client, request, options));
43207
44007
  }
43208
- async function $do17(client, request, options) {
44008
+ async function $do20(client, request, options) {
43209
44009
  const parsed = safeParse(request, (value2) => ListStreamsRequest$outboundSchema.parse(value2), "Input validation failed");
43210
44010
  if (!parsed.ok) {
43211
44011
  return [haltIterator(parsed), { status: "invalid" }];
@@ -43232,6 +44032,7 @@ async function $do17(client, request, options) {
43232
44032
  const securityInput = secConfig == null ? {} : { accessToken: secConfig };
43233
44033
  const requestSecurity = resolveGlobalSecurity(securityInput);
43234
44034
  const context = {
44035
+ options: client._options,
43235
44036
  baseURL: baseURL ?? "",
43236
44037
  operationID: "list_streams",
43237
44038
  oAuth2Scopes: [],
@@ -43248,6 +44049,7 @@ async function $do17(client, request, options) {
43248
44049
  headers,
43249
44050
  query: query2,
43250
44051
  body,
44052
+ userAgent: client._options.userAgent,
43251
44053
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
43252
44054
  }, options);
43253
44055
  if (!requestRes.ok) {
@@ -43311,21 +44113,21 @@ var init_streamsListStreams = __esm(() => {
43311
44113
  });
43312
44114
 
43313
44115
  // src/mcp-server/tools/streamsListStreams.ts
43314
- var args17, tool$streamsListStreams;
44116
+ var args20, tool$streamsListStreams;
43315
44117
  var init_streamsListStreams2 = __esm(() => {
43316
44118
  init_streamsListStreams();
43317
44119
  init_operations();
43318
44120
  init_tools();
43319
- args17 = {
44121
+ args20 = {
43320
44122
  request: ListStreamsRequest$inboundSchema
43321
44123
  };
43322
44124
  tool$streamsListStreams = {
43323
44125
  name: "streams-list-streams",
43324
44126
  description: `List streams.`,
43325
44127
  scopes: ["read", "read", "read"],
43326
- args: args17,
43327
- tool: async (client, args18, ctx) => {
43328
- 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();
43329
44131
  if (!result.ok) {
43330
44132
  return {
43331
44133
  content: [{ type: "text", text: result.error.message }],
@@ -43340,9 +44142,9 @@ var init_streamsListStreams2 = __esm(() => {
43340
44142
 
43341
44143
  // src/funcs/streamsReconfigureStream.ts
43342
44144
  function streamsReconfigureStream(client, request, options) {
43343
- return new APIPromise($do18(client, request, options));
44145
+ return new APIPromise($do21(client, request, options));
43344
44146
  }
43345
- async function $do18(client, request, options) {
44147
+ async function $do21(client, request, options) {
43346
44148
  const parsed = safeParse(request, (value2) => ReconfigureStreamRequest$outboundSchema.parse(value2), "Input validation failed");
43347
44149
  if (!parsed.ok) {
43348
44150
  return [parsed, { status: "invalid" }];
@@ -43373,6 +44175,7 @@ async function $do18(client, request, options) {
43373
44175
  const securityInput = secConfig == null ? {} : { accessToken: secConfig };
43374
44176
  const requestSecurity = resolveGlobalSecurity(securityInput);
43375
44177
  const context = {
44178
+ options: client._options,
43376
44179
  baseURL: baseURL ?? "",
43377
44180
  operationID: "reconfigure_stream",
43378
44181
  oAuth2Scopes: [],
@@ -43388,6 +44191,7 @@ async function $do18(client, request, options) {
43388
44191
  path,
43389
44192
  headers,
43390
44193
  body,
44194
+ userAgent: client._options.userAgent,
43391
44195
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
43392
44196
  }, options);
43393
44197
  if (!requestRes.ok) {
@@ -43428,21 +44232,21 @@ var init_streamsReconfigureStream = __esm(() => {
43428
44232
  });
43429
44233
 
43430
44234
  // src/mcp-server/tools/streamsReconfigureStream.ts
43431
- var args18, tool$streamsReconfigureStream;
44235
+ var args21, tool$streamsReconfigureStream;
43432
44236
  var init_streamsReconfigureStream2 = __esm(() => {
43433
44237
  init_streamsReconfigureStream();
43434
44238
  init_operations();
43435
44239
  init_tools();
43436
- args18 = {
44240
+ args21 = {
43437
44241
  request: ReconfigureStreamRequest$inboundSchema
43438
44242
  };
43439
44243
  tool$streamsReconfigureStream = {
43440
44244
  name: "streams-reconfigure-stream",
43441
44245
  description: `Reconfigure a stream.`,
43442
44246
  scopes: ["write", "write", "write"],
43443
- args: args18,
43444
- tool: async (client, args19, ctx) => {
43445
- 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();
43446
44250
  if (!result.ok) {
43447
44251
  return {
43448
44252
  content: [{ type: "text", text: result.error.message }],
@@ -43459,7 +44263,7 @@ var init_streamsReconfigureStream2 = __esm(() => {
43459
44263
  function createMCPServer(deps) {
43460
44264
  const server = new McpServer({
43461
44265
  name: "S2",
43462
- version: "0.13.3"
44266
+ version: "0.15.0"
43463
44267
  });
43464
44268
  const client = new S2Core({
43465
44269
  accessToken: deps.accessToken,
@@ -43482,6 +44286,9 @@ function createMCPServer(deps) {
43482
44286
  tool(tool$basinsCreateOrReconfigureBasin);
43483
44287
  tool(tool$basinsDeleteBasin);
43484
44288
  tool(tool$basinsReconfigureBasin);
44289
+ tool(tool$metricsAccountMetrics);
44290
+ tool(tool$metricsBasinMetrics);
44291
+ tool(tool$metricsStreamMetrics);
43485
44292
  tool(tool$streamsListStreams);
43486
44293
  tool(tool$streamsCreateStream);
43487
44294
  tool(tool$streamsGetStreamConfig);
@@ -43507,6 +44314,9 @@ var init_server2 = __esm(() => {
43507
44314
  init_basinsGetBasinConfig2();
43508
44315
  init_basinsListBasins2();
43509
44316
  init_basinsReconfigureBasin2();
44317
+ init_metricsAccountMetrics2();
44318
+ init_metricsBasinMetrics2();
44319
+ init_metricsStreamMetrics2();
43510
44320
  init_recordsAppend2();
43511
44321
  init_recordsCheckTail2();
43512
44322
  init_recordsRead2();
@@ -44712,7 +45522,7 @@ var routes = rn({
44712
45522
  var app = Ve(routes, {
44713
45523
  name: "mcp",
44714
45524
  versionInfo: {
44715
- currentVersion: "0.13.3"
45525
+ currentVersion: "0.15.0"
44716
45526
  }
44717
45527
  });
44718
45528
  _t(app, process3.argv.slice(2), buildContext(process3));
@@ -44720,5 +45530,5 @@ export {
44720
45530
  app
44721
45531
  };
44722
45532
 
44723
- //# debugId=5B199AFA93E2FE7964756E2164756E21
45533
+ //# debugId=B8A24AF531C0F67064756E2164756E21
44724
45534
  //# sourceMappingURL=mcp-server.js.map