@s2-dev/streamstore 0.14.0 → 0.15.1
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.
- package/FUNCTIONS.md +5 -22
- package/README.md +57 -48
- package/bin/mcp-server.js +1144 -284
- package/bin/mcp-server.js.map +61 -40
- package/dist/commonjs/funcs/accessTokensIssueAccessToken.d.ts +3 -2
- package/dist/commonjs/funcs/accessTokensIssueAccessToken.d.ts.map +1 -1
- package/dist/commonjs/funcs/accessTokensIssueAccessToken.js +3 -1
- package/dist/commonjs/funcs/accessTokensIssueAccessToken.js.map +1 -1
- package/dist/commonjs/funcs/accessTokensListAccessTokens.d.ts +3 -2
- package/dist/commonjs/funcs/accessTokensListAccessTokens.d.ts.map +1 -1
- package/dist/commonjs/funcs/accessTokensListAccessTokens.js +3 -1
- package/dist/commonjs/funcs/accessTokensListAccessTokens.js.map +1 -1
- package/dist/commonjs/funcs/accessTokensRevokeAccessToken.d.ts +3 -2
- package/dist/commonjs/funcs/accessTokensRevokeAccessToken.d.ts.map +1 -1
- package/dist/commonjs/funcs/accessTokensRevokeAccessToken.js +3 -1
- package/dist/commonjs/funcs/accessTokensRevokeAccessToken.js.map +1 -1
- package/dist/commonjs/funcs/basinsCreateBasin.d.ts +3 -2
- package/dist/commonjs/funcs/basinsCreateBasin.d.ts.map +1 -1
- package/dist/commonjs/funcs/basinsCreateBasin.js +3 -1
- package/dist/commonjs/funcs/basinsCreateBasin.js.map +1 -1
- package/dist/commonjs/funcs/basinsCreateOrReconfigureBasin.d.ts +3 -2
- package/dist/commonjs/funcs/basinsCreateOrReconfigureBasin.d.ts.map +1 -1
- package/dist/commonjs/funcs/basinsCreateOrReconfigureBasin.js +3 -1
- package/dist/commonjs/funcs/basinsCreateOrReconfigureBasin.js.map +1 -1
- package/dist/commonjs/funcs/basinsDeleteBasin.d.ts +3 -2
- package/dist/commonjs/funcs/basinsDeleteBasin.d.ts.map +1 -1
- package/dist/commonjs/funcs/basinsDeleteBasin.js +3 -1
- package/dist/commonjs/funcs/basinsDeleteBasin.js.map +1 -1
- package/dist/commonjs/funcs/basinsGetBasinConfig.d.ts +3 -2
- package/dist/commonjs/funcs/basinsGetBasinConfig.d.ts.map +1 -1
- package/dist/commonjs/funcs/basinsGetBasinConfig.js +3 -1
- package/dist/commonjs/funcs/basinsGetBasinConfig.js.map +1 -1
- package/dist/commonjs/funcs/basinsListBasins.d.ts +3 -2
- package/dist/commonjs/funcs/basinsListBasins.d.ts.map +1 -1
- package/dist/commonjs/funcs/basinsListBasins.js +3 -1
- package/dist/commonjs/funcs/basinsListBasins.js.map +1 -1
- package/dist/commonjs/funcs/basinsReconfigureBasin.d.ts +3 -2
- package/dist/commonjs/funcs/basinsReconfigureBasin.d.ts.map +1 -1
- package/dist/commonjs/funcs/basinsReconfigureBasin.js +3 -1
- package/dist/commonjs/funcs/basinsReconfigureBasin.js.map +1 -1
- package/dist/commonjs/funcs/metricsAccountMetrics.d.ts +16 -0
- package/dist/commonjs/funcs/metricsAccountMetrics.d.ts.map +1 -0
- package/dist/commonjs/funcs/metricsAccountMetrics.js +122 -0
- package/dist/commonjs/funcs/metricsAccountMetrics.js.map +1 -0
- package/dist/commonjs/funcs/metricsBasinMetrics.d.ts +16 -0
- package/dist/commonjs/funcs/metricsBasinMetrics.d.ts.map +1 -0
- package/dist/commonjs/funcs/metricsBasinMetrics.js +128 -0
- package/dist/commonjs/funcs/metricsBasinMetrics.js.map +1 -0
- package/dist/commonjs/funcs/metricsStreamMetrics.d.ts +16 -0
- package/dist/commonjs/funcs/metricsStreamMetrics.d.ts.map +1 -0
- package/dist/commonjs/funcs/metricsStreamMetrics.js +125 -0
- package/dist/commonjs/funcs/metricsStreamMetrics.js.map +1 -0
- package/dist/commonjs/funcs/recordsAppend.d.ts +3 -2
- package/dist/commonjs/funcs/recordsAppend.d.ts.map +1 -1
- package/dist/commonjs/funcs/recordsAppend.js +3 -1
- package/dist/commonjs/funcs/recordsAppend.js.map +1 -1
- package/dist/commonjs/funcs/recordsCheckTail.d.ts +3 -2
- package/dist/commonjs/funcs/recordsCheckTail.d.ts.map +1 -1
- package/dist/commonjs/funcs/recordsCheckTail.js +3 -1
- package/dist/commonjs/funcs/recordsCheckTail.js.map +1 -1
- package/dist/commonjs/funcs/recordsRead.d.ts +3 -2
- package/dist/commonjs/funcs/recordsRead.d.ts.map +1 -1
- package/dist/commonjs/funcs/recordsRead.js +4 -1
- package/dist/commonjs/funcs/recordsRead.js.map +1 -1
- package/dist/commonjs/funcs/streamsCreateOrReconfigureStream.d.ts +3 -2
- package/dist/commonjs/funcs/streamsCreateOrReconfigureStream.d.ts.map +1 -1
- package/dist/commonjs/funcs/streamsCreateOrReconfigureStream.js +3 -1
- package/dist/commonjs/funcs/streamsCreateOrReconfigureStream.js.map +1 -1
- package/dist/commonjs/funcs/streamsCreateStream.d.ts +3 -2
- package/dist/commonjs/funcs/streamsCreateStream.d.ts.map +1 -1
- package/dist/commonjs/funcs/streamsCreateStream.js +3 -1
- package/dist/commonjs/funcs/streamsCreateStream.js.map +1 -1
- package/dist/commonjs/funcs/streamsDeleteStream.d.ts +3 -2
- package/dist/commonjs/funcs/streamsDeleteStream.d.ts.map +1 -1
- package/dist/commonjs/funcs/streamsDeleteStream.js +3 -1
- package/dist/commonjs/funcs/streamsDeleteStream.js.map +1 -1
- package/dist/commonjs/funcs/streamsGetStreamConfig.d.ts +3 -2
- package/dist/commonjs/funcs/streamsGetStreamConfig.d.ts.map +1 -1
- package/dist/commonjs/funcs/streamsGetStreamConfig.js +3 -1
- package/dist/commonjs/funcs/streamsGetStreamConfig.js.map +1 -1
- package/dist/commonjs/funcs/streamsListStreams.d.ts +3 -2
- package/dist/commonjs/funcs/streamsListStreams.d.ts.map +1 -1
- package/dist/commonjs/funcs/streamsListStreams.js +3 -1
- package/dist/commonjs/funcs/streamsListStreams.js.map +1 -1
- package/dist/commonjs/funcs/streamsReconfigureStream.d.ts +3 -2
- package/dist/commonjs/funcs/streamsReconfigureStream.d.ts.map +1 -1
- package/dist/commonjs/funcs/streamsReconfigureStream.js +3 -1
- package/dist/commonjs/funcs/streamsReconfigureStream.js.map +1 -1
- package/dist/commonjs/hooks/types.d.ts +2 -0
- package/dist/commonjs/hooks/types.d.ts.map +1 -1
- package/dist/commonjs/index.d.ts +2 -0
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +3 -1
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +7 -3
- package/dist/commonjs/lib/config.d.ts.map +1 -1
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/lib/matchers.d.ts +3 -10
- package/dist/commonjs/lib/matchers.d.ts.map +1 -1
- package/dist/commonjs/lib/matchers.js +33 -31
- package/dist/commonjs/lib/matchers.js.map +1 -1
- package/dist/commonjs/lib/sdks.d.ts +1 -0
- package/dist/commonjs/lib/sdks.d.ts.map +1 -1
- package/dist/commonjs/lib/sdks.js +3 -3
- package/dist/commonjs/lib/sdks.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +7 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/metricsAccountMetrics.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/metricsAccountMetrics.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/metricsAccountMetrics.js +63 -0
- package/dist/commonjs/mcp-server/tools/metricsAccountMetrics.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/metricsBasinMetrics.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/metricsBasinMetrics.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/metricsBasinMetrics.js +63 -0
- package/dist/commonjs/mcp-server/tools/metricsBasinMetrics.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/metricsStreamMetrics.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/metricsStreamMetrics.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/metricsStreamMetrics.js +63 -0
- package/dist/commonjs/mcp-server/tools/metricsStreamMetrics.js.map +1 -0
- package/dist/commonjs/models/components/accountmetricset.d.ts +28 -0
- package/dist/commonjs/models/components/accountmetricset.d.ts.map +1 -0
- package/dist/commonjs/models/components/accountmetricset.js +60 -0
- package/dist/commonjs/models/components/accountmetricset.js.map +1 -0
- package/dist/commonjs/models/components/accumulation.d.ts +72 -0
- package/dist/commonjs/models/components/accumulation.d.ts.map +1 -0
- package/dist/commonjs/models/components/accumulation.js +110 -0
- package/dist/commonjs/models/components/accumulation.js.map +1 -0
- package/dist/commonjs/models/components/basinmetricset.d.ts +40 -0
- package/dist/commonjs/models/components/basinmetricset.d.ts.map +1 -0
- package/dist/commonjs/models/components/basinmetricset.js +64 -0
- package/dist/commonjs/models/components/basinmetricset.js.map +1 -0
- package/dist/commonjs/models/components/gauge.d.ts +68 -0
- package/dist/commonjs/models/components/gauge.d.ts.map +1 -0
- package/dist/commonjs/models/components/gauge.js +98 -0
- package/dist/commonjs/models/components/gauge.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +10 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +10 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/label.d.ts +37 -0
- package/dist/commonjs/models/components/label.d.ts.map +1 -0
- package/dist/commonjs/models/components/label.js +72 -0
- package/dist/commonjs/models/components/label.js.map +1 -0
- package/dist/commonjs/models/components/metric.d.ts +144 -0
- package/dist/commonjs/models/components/metric.d.ts.map +1 -0
- package/dist/commonjs/models/components/metric.js +192 -0
- package/dist/commonjs/models/components/metric.js.map +1 -0
- package/dist/commonjs/models/components/metricsetresponse.d.ts +33 -0
- package/dist/commonjs/models/components/metricsetresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/metricsetresponse.js +70 -0
- package/dist/commonjs/models/components/metricsetresponse.js.map +1 -0
- package/dist/commonjs/models/components/metricunit.d.ts +28 -0
- package/dist/commonjs/models/components/metricunit.d.ts.map +1 -0
- package/dist/commonjs/models/components/metricunit.js +61 -0
- package/dist/commonjs/models/components/metricunit.js.map +1 -0
- package/dist/commonjs/models/components/operation.d.ts +9 -0
- package/dist/commonjs/models/components/operation.d.ts.map +1 -1
- package/dist/commonjs/models/components/operation.js +3 -0
- package/dist/commonjs/models/components/operation.js.map +1 -1
- package/dist/commonjs/models/components/readbatch.d.ts +9 -0
- package/dist/commonjs/models/components/readbatch.d.ts.map +1 -1
- package/dist/commonjs/models/components/readbatch.js +3 -0
- package/dist/commonjs/models/components/readbatch.js.map +1 -1
- package/dist/commonjs/models/components/readevent.d.ts +67 -17
- package/dist/commonjs/models/components/readevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/readevent.js +86 -25
- package/dist/commonjs/models/components/readevent.js.map +1 -1
- package/dist/commonjs/models/components/scalar.d.ts +40 -0
- package/dist/commonjs/models/components/scalar.d.ts.map +1 -0
- package/dist/commonjs/models/components/scalar.js +75 -0
- package/dist/commonjs/models/components/scalar.js.map +1 -0
- package/dist/commonjs/models/components/timeseriesinterval.d.ts +31 -0
- package/dist/commonjs/models/components/timeseriesinterval.d.ts.map +1 -0
- package/dist/commonjs/models/components/timeseriesinterval.js +61 -0
- package/dist/commonjs/models/components/timeseriesinterval.js.map +1 -0
- package/dist/commonjs/models/errors/apierror.d.ts +8 -6
- package/dist/commonjs/models/errors/apierror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/apierror.js +17 -10
- package/dist/commonjs/models/errors/apierror.js.map +1 -1
- package/dist/commonjs/models/errors/appendconditionfailed.d.ts +17 -8
- package/dist/commonjs/models/errors/appendconditionfailed.d.ts.map +1 -1
- package/dist/commonjs/models/errors/appendconditionfailed.js +24 -9
- package/dist/commonjs/models/errors/appendconditionfailed.js.map +1 -1
- package/dist/commonjs/models/errors/errorresponse.d.ts +7 -2
- package/dist/commonjs/models/errors/errorresponse.d.ts.map +1 -1
- package/dist/commonjs/models/errors/errorresponse.js +12 -4
- package/dist/commonjs/models/errors/errorresponse.js.map +1 -1
- package/dist/commonjs/models/errors/index.d.ts +1 -0
- package/dist/commonjs/models/errors/index.d.ts.map +1 -1
- package/dist/commonjs/models/errors/index.js +1 -0
- package/dist/commonjs/models/errors/index.js.map +1 -1
- package/dist/commonjs/models/errors/responsevalidationerror.d.ts +26 -0
- package/dist/commonjs/models/errors/responsevalidationerror.d.ts.map +1 -0
- package/dist/commonjs/models/errors/responsevalidationerror.js +66 -0
- package/dist/commonjs/models/errors/responsevalidationerror.js.map +1 -0
- package/dist/commonjs/models/errors/s2error.d.ts +19 -0
- package/dist/commonjs/models/errors/s2error.d.ts.map +1 -0
- package/dist/commonjs/models/errors/s2error.js +20 -0
- package/dist/commonjs/models/errors/s2error.js.map +1 -0
- package/dist/commonjs/models/errors/sdkvalidationerror.d.ts +1 -0
- package/dist/commonjs/models/errors/sdkvalidationerror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/sdkvalidationerror.js +14 -0
- package/dist/commonjs/models/errors/sdkvalidationerror.js.map +1 -1
- package/dist/commonjs/models/errors/tailresponse.d.ts +7 -2
- package/dist/commonjs/models/errors/tailresponse.d.ts.map +1 -1
- package/dist/commonjs/models/errors/tailresponse.js +12 -4
- package/dist/commonjs/models/errors/tailresponse.js.map +1 -1
- package/dist/commonjs/models/operations/accountmetrics.d.ts +48 -0
- package/dist/commonjs/models/operations/accountmetrics.d.ts.map +1 -0
- package/dist/commonjs/models/operations/accountmetrics.js +76 -0
- package/dist/commonjs/models/operations/accountmetrics.js.map +1 -0
- package/dist/commonjs/models/operations/basinmetrics.d.ts +53 -0
- package/dist/commonjs/models/operations/basinmetrics.d.ts.map +1 -0
- package/dist/commonjs/models/operations/basinmetrics.js +78 -0
- package/dist/commonjs/models/operations/basinmetrics.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +3 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +3 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/read.d.ts +14 -0
- package/dist/commonjs/models/operations/read.d.ts.map +1 -1
- package/dist/commonjs/models/operations/read.js +2 -0
- package/dist/commonjs/models/operations/read.js.map +1 -1
- package/dist/commonjs/models/operations/streammetrics.d.ts +37 -0
- package/dist/commonjs/models/operations/streammetrics.d.ts.map +1 -0
- package/dist/commonjs/models/operations/streammetrics.js +71 -0
- package/dist/commonjs/models/operations/streammetrics.js.map +1 -0
- package/dist/commonjs/sdk/metrics.d.ts +18 -0
- package/dist/commonjs/sdk/metrics.d.ts.map +1 -0
- package/dist/commonjs/sdk/metrics.js +33 -0
- package/dist/commonjs/sdk/metrics.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +4 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/esm/funcs/accessTokensIssueAccessToken.d.ts +3 -2
- package/dist/esm/funcs/accessTokensIssueAccessToken.d.ts.map +1 -1
- package/dist/esm/funcs/accessTokensIssueAccessToken.js +3 -1
- package/dist/esm/funcs/accessTokensIssueAccessToken.js.map +1 -1
- package/dist/esm/funcs/accessTokensListAccessTokens.d.ts +3 -2
- package/dist/esm/funcs/accessTokensListAccessTokens.d.ts.map +1 -1
- package/dist/esm/funcs/accessTokensListAccessTokens.js +3 -1
- package/dist/esm/funcs/accessTokensListAccessTokens.js.map +1 -1
- package/dist/esm/funcs/accessTokensRevokeAccessToken.d.ts +3 -2
- package/dist/esm/funcs/accessTokensRevokeAccessToken.d.ts.map +1 -1
- package/dist/esm/funcs/accessTokensRevokeAccessToken.js +3 -1
- package/dist/esm/funcs/accessTokensRevokeAccessToken.js.map +1 -1
- package/dist/esm/funcs/basinsCreateBasin.d.ts +3 -2
- package/dist/esm/funcs/basinsCreateBasin.d.ts.map +1 -1
- package/dist/esm/funcs/basinsCreateBasin.js +3 -1
- package/dist/esm/funcs/basinsCreateBasin.js.map +1 -1
- package/dist/esm/funcs/basinsCreateOrReconfigureBasin.d.ts +3 -2
- package/dist/esm/funcs/basinsCreateOrReconfigureBasin.d.ts.map +1 -1
- package/dist/esm/funcs/basinsCreateOrReconfigureBasin.js +3 -1
- package/dist/esm/funcs/basinsCreateOrReconfigureBasin.js.map +1 -1
- package/dist/esm/funcs/basinsDeleteBasin.d.ts +3 -2
- package/dist/esm/funcs/basinsDeleteBasin.d.ts.map +1 -1
- package/dist/esm/funcs/basinsDeleteBasin.js +3 -1
- package/dist/esm/funcs/basinsDeleteBasin.js.map +1 -1
- package/dist/esm/funcs/basinsGetBasinConfig.d.ts +3 -2
- package/dist/esm/funcs/basinsGetBasinConfig.d.ts.map +1 -1
- package/dist/esm/funcs/basinsGetBasinConfig.js +3 -1
- package/dist/esm/funcs/basinsGetBasinConfig.js.map +1 -1
- package/dist/esm/funcs/basinsListBasins.d.ts +3 -2
- package/dist/esm/funcs/basinsListBasins.d.ts.map +1 -1
- package/dist/esm/funcs/basinsListBasins.js +3 -1
- package/dist/esm/funcs/basinsListBasins.js.map +1 -1
- package/dist/esm/funcs/basinsReconfigureBasin.d.ts +3 -2
- package/dist/esm/funcs/basinsReconfigureBasin.d.ts.map +1 -1
- package/dist/esm/funcs/basinsReconfigureBasin.js +3 -1
- package/dist/esm/funcs/basinsReconfigureBasin.js.map +1 -1
- package/dist/esm/funcs/metricsAccountMetrics.d.ts +16 -0
- package/dist/esm/funcs/metricsAccountMetrics.d.ts.map +1 -0
- package/dist/esm/funcs/metricsAccountMetrics.js +86 -0
- package/dist/esm/funcs/metricsAccountMetrics.js.map +1 -0
- package/dist/esm/funcs/metricsBasinMetrics.d.ts +16 -0
- package/dist/esm/funcs/metricsBasinMetrics.d.ts.map +1 -0
- package/dist/esm/funcs/metricsBasinMetrics.js +92 -0
- package/dist/esm/funcs/metricsBasinMetrics.js.map +1 -0
- package/dist/esm/funcs/metricsStreamMetrics.d.ts +16 -0
- package/dist/esm/funcs/metricsStreamMetrics.d.ts.map +1 -0
- package/dist/esm/funcs/metricsStreamMetrics.js +89 -0
- package/dist/esm/funcs/metricsStreamMetrics.js.map +1 -0
- package/dist/esm/funcs/recordsAppend.d.ts +3 -2
- package/dist/esm/funcs/recordsAppend.d.ts.map +1 -1
- package/dist/esm/funcs/recordsAppend.js +3 -1
- package/dist/esm/funcs/recordsAppend.js.map +1 -1
- package/dist/esm/funcs/recordsCheckTail.d.ts +3 -2
- package/dist/esm/funcs/recordsCheckTail.d.ts.map +1 -1
- package/dist/esm/funcs/recordsCheckTail.js +3 -1
- package/dist/esm/funcs/recordsCheckTail.js.map +1 -1
- package/dist/esm/funcs/recordsRead.d.ts +3 -2
- package/dist/esm/funcs/recordsRead.d.ts.map +1 -1
- package/dist/esm/funcs/recordsRead.js +4 -1
- package/dist/esm/funcs/recordsRead.js.map +1 -1
- package/dist/esm/funcs/streamsCreateOrReconfigureStream.d.ts +3 -2
- package/dist/esm/funcs/streamsCreateOrReconfigureStream.d.ts.map +1 -1
- package/dist/esm/funcs/streamsCreateOrReconfigureStream.js +3 -1
- package/dist/esm/funcs/streamsCreateOrReconfigureStream.js.map +1 -1
- package/dist/esm/funcs/streamsCreateStream.d.ts +3 -2
- package/dist/esm/funcs/streamsCreateStream.d.ts.map +1 -1
- package/dist/esm/funcs/streamsCreateStream.js +3 -1
- package/dist/esm/funcs/streamsCreateStream.js.map +1 -1
- package/dist/esm/funcs/streamsDeleteStream.d.ts +3 -2
- package/dist/esm/funcs/streamsDeleteStream.d.ts.map +1 -1
- package/dist/esm/funcs/streamsDeleteStream.js +3 -1
- package/dist/esm/funcs/streamsDeleteStream.js.map +1 -1
- package/dist/esm/funcs/streamsGetStreamConfig.d.ts +3 -2
- package/dist/esm/funcs/streamsGetStreamConfig.d.ts.map +1 -1
- package/dist/esm/funcs/streamsGetStreamConfig.js +3 -1
- package/dist/esm/funcs/streamsGetStreamConfig.js.map +1 -1
- package/dist/esm/funcs/streamsListStreams.d.ts +3 -2
- package/dist/esm/funcs/streamsListStreams.d.ts.map +1 -1
- package/dist/esm/funcs/streamsListStreams.js +3 -1
- package/dist/esm/funcs/streamsListStreams.js.map +1 -1
- package/dist/esm/funcs/streamsReconfigureStream.d.ts +3 -2
- package/dist/esm/funcs/streamsReconfigureStream.d.ts.map +1 -1
- package/dist/esm/funcs/streamsReconfigureStream.js +3 -1
- package/dist/esm/funcs/streamsReconfigureStream.js.map +1 -1
- package/dist/esm/hooks/types.d.ts +2 -0
- package/dist/esm/hooks/types.d.ts.map +1 -1
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lib/config.d.ts +7 -3
- package/dist/esm/lib/config.d.ts.map +1 -1
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/lib/matchers.d.ts +3 -10
- package/dist/esm/lib/matchers.d.ts.map +1 -1
- package/dist/esm/lib/matchers.js +33 -30
- package/dist/esm/lib/matchers.js.map +1 -1
- package/dist/esm/lib/sdks.d.ts +1 -0
- package/dist/esm/lib/sdks.d.ts.map +1 -1
- package/dist/esm/lib/sdks.js +3 -3
- package/dist/esm/lib/sdks.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +7 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/metricsAccountMetrics.d.ts +8 -0
- package/dist/esm/mcp-server/tools/metricsAccountMetrics.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/metricsAccountMetrics.js +27 -0
- package/dist/esm/mcp-server/tools/metricsAccountMetrics.js.map +1 -0
- package/dist/esm/mcp-server/tools/metricsBasinMetrics.d.ts +8 -0
- package/dist/esm/mcp-server/tools/metricsBasinMetrics.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/metricsBasinMetrics.js +27 -0
- package/dist/esm/mcp-server/tools/metricsBasinMetrics.js.map +1 -0
- package/dist/esm/mcp-server/tools/metricsStreamMetrics.d.ts +8 -0
- package/dist/esm/mcp-server/tools/metricsStreamMetrics.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/metricsStreamMetrics.js +27 -0
- package/dist/esm/mcp-server/tools/metricsStreamMetrics.js.map +1 -0
- package/dist/esm/models/components/accountmetricset.d.ts +28 -0
- package/dist/esm/models/components/accountmetricset.d.ts.map +1 -0
- package/dist/esm/models/components/accountmetricset.js +24 -0
- package/dist/esm/models/components/accountmetricset.js.map +1 -0
- package/dist/esm/models/components/accumulation.d.ts +72 -0
- package/dist/esm/models/components/accumulation.d.ts.map +1 -0
- package/dist/esm/models/components/accumulation.js +70 -0
- package/dist/esm/models/components/accumulation.js.map +1 -0
- package/dist/esm/models/components/basinmetricset.d.ts +40 -0
- package/dist/esm/models/components/basinmetricset.d.ts.map +1 -0
- package/dist/esm/models/components/basinmetricset.js +28 -0
- package/dist/esm/models/components/basinmetricset.js.map +1 -0
- package/dist/esm/models/components/gauge.d.ts +68 -0
- package/dist/esm/models/components/gauge.d.ts.map +1 -0
- package/dist/esm/models/components/gauge.js +58 -0
- package/dist/esm/models/components/gauge.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +10 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +10 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/label.d.ts +37 -0
- package/dist/esm/models/components/label.d.ts.map +1 -0
- package/dist/esm/models/components/label.js +34 -0
- package/dist/esm/models/components/label.js.map +1 -0
- package/dist/esm/models/components/metric.d.ts +144 -0
- package/dist/esm/models/components/metric.d.ts.map +1 -0
- package/dist/esm/models/components/metric.js +146 -0
- package/dist/esm/models/components/metric.js.map +1 -0
- package/dist/esm/models/components/metricsetresponse.d.ts +33 -0
- package/dist/esm/models/components/metricsetresponse.d.ts.map +1 -0
- package/dist/esm/models/components/metricsetresponse.js +32 -0
- package/dist/esm/models/components/metricsetresponse.js.map +1 -0
- package/dist/esm/models/components/metricunit.d.ts +28 -0
- package/dist/esm/models/components/metricunit.d.ts.map +1 -0
- package/dist/esm/models/components/metricunit.js +25 -0
- package/dist/esm/models/components/metricunit.js.map +1 -0
- package/dist/esm/models/components/operation.d.ts +9 -0
- package/dist/esm/models/components/operation.d.ts.map +1 -1
- package/dist/esm/models/components/operation.js +3 -0
- package/dist/esm/models/components/operation.js.map +1 -1
- package/dist/esm/models/components/readbatch.d.ts +9 -0
- package/dist/esm/models/components/readbatch.d.ts.map +1 -1
- package/dist/esm/models/components/readbatch.js +3 -0
- package/dist/esm/models/components/readbatch.js.map +1 -1
- package/dist/esm/models/components/readevent.d.ts +67 -17
- package/dist/esm/models/components/readevent.d.ts.map +1 -1
- package/dist/esm/models/components/readevent.js +83 -24
- package/dist/esm/models/components/readevent.js.map +1 -1
- package/dist/esm/models/components/scalar.d.ts +40 -0
- package/dist/esm/models/components/scalar.d.ts.map +1 -0
- package/dist/esm/models/components/scalar.js +37 -0
- package/dist/esm/models/components/scalar.js.map +1 -0
- package/dist/esm/models/components/timeseriesinterval.d.ts +31 -0
- package/dist/esm/models/components/timeseriesinterval.d.ts.map +1 -0
- package/dist/esm/models/components/timeseriesinterval.js +25 -0
- package/dist/esm/models/components/timeseriesinterval.js.map +1 -0
- package/dist/esm/models/errors/apierror.d.ts +8 -6
- package/dist/esm/models/errors/apierror.d.ts.map +1 -1
- package/dist/esm/models/errors/apierror.js +17 -10
- package/dist/esm/models/errors/apierror.js.map +1 -1
- package/dist/esm/models/errors/appendconditionfailed.d.ts +17 -8
- package/dist/esm/models/errors/appendconditionfailed.d.ts.map +1 -1
- package/dist/esm/models/errors/appendconditionfailed.js +24 -9
- package/dist/esm/models/errors/appendconditionfailed.js.map +1 -1
- package/dist/esm/models/errors/errorresponse.d.ts +7 -2
- package/dist/esm/models/errors/errorresponse.d.ts.map +1 -1
- package/dist/esm/models/errors/errorresponse.js +12 -4
- package/dist/esm/models/errors/errorresponse.js.map +1 -1
- package/dist/esm/models/errors/index.d.ts +1 -0
- package/dist/esm/models/errors/index.d.ts.map +1 -1
- package/dist/esm/models/errors/index.js +1 -0
- package/dist/esm/models/errors/index.js.map +1 -1
- package/dist/esm/models/errors/responsevalidationerror.d.ts +26 -0
- package/dist/esm/models/errors/responsevalidationerror.d.ts.map +1 -0
- package/dist/esm/models/errors/responsevalidationerror.js +29 -0
- package/dist/esm/models/errors/responsevalidationerror.js.map +1 -0
- package/dist/esm/models/errors/s2error.d.ts +19 -0
- package/dist/esm/models/errors/s2error.d.ts.map +1 -0
- package/dist/esm/models/errors/s2error.js +16 -0
- package/dist/esm/models/errors/s2error.js.map +1 -0
- package/dist/esm/models/errors/sdkvalidationerror.d.ts +1 -0
- package/dist/esm/models/errors/sdkvalidationerror.d.ts.map +1 -1
- package/dist/esm/models/errors/sdkvalidationerror.js +14 -0
- package/dist/esm/models/errors/sdkvalidationerror.js.map +1 -1
- package/dist/esm/models/errors/tailresponse.d.ts +7 -2
- package/dist/esm/models/errors/tailresponse.d.ts.map +1 -1
- package/dist/esm/models/errors/tailresponse.js +12 -4
- package/dist/esm/models/errors/tailresponse.js.map +1 -1
- package/dist/esm/models/operations/accountmetrics.d.ts +48 -0
- package/dist/esm/models/operations/accountmetrics.d.ts.map +1 -0
- package/dist/esm/models/operations/accountmetrics.js +38 -0
- package/dist/esm/models/operations/accountmetrics.js.map +1 -0
- package/dist/esm/models/operations/basinmetrics.d.ts +53 -0
- package/dist/esm/models/operations/basinmetrics.d.ts.map +1 -0
- package/dist/esm/models/operations/basinmetrics.js +40 -0
- package/dist/esm/models/operations/basinmetrics.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +3 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +3 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/read.d.ts +14 -0
- package/dist/esm/models/operations/read.d.ts.map +1 -1
- package/dist/esm/models/operations/read.js +2 -0
- package/dist/esm/models/operations/read.js.map +1 -1
- package/dist/esm/models/operations/streammetrics.d.ts +37 -0
- package/dist/esm/models/operations/streammetrics.d.ts.map +1 -0
- package/dist/esm/models/operations/streammetrics.js +33 -0
- package/dist/esm/models/operations/streammetrics.js.map +1 -0
- package/dist/esm/sdk/metrics.d.ts +18 -0
- package/dist/esm/sdk/metrics.d.ts.map +1 -0
- package/dist/esm/sdk/metrics.js +29 -0
- package/dist/esm/sdk/metrics.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +4 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/docs/sdks/accesstokens/README.md +15 -25
- package/docs/sdks/basins/README.md +31 -53
- package/docs/sdks/metrics/README.md +235 -0
- package/docs/sdks/records/README.md +16 -26
- package/docs/sdks/streams/README.md +31 -53
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/accessTokensIssueAccessToken.ts +23 -17
- package/src/funcs/accessTokensListAccessTokens.ts +23 -17
- package/src/funcs/accessTokensRevokeAccessToken.ts +23 -17
- package/src/funcs/basinsCreateBasin.ts +23 -17
- package/src/funcs/basinsCreateOrReconfigureBasin.ts +23 -17
- package/src/funcs/basinsDeleteBasin.ts +23 -17
- package/src/funcs/basinsGetBasinConfig.ts +23 -17
- package/src/funcs/basinsListBasins.ts +29 -22
- package/src/funcs/basinsReconfigureBasin.ts +23 -17
- package/src/funcs/metricsAccountMetrics.ts +174 -0
- package/src/funcs/metricsBasinMetrics.ts +181 -0
- package/src/funcs/metricsStreamMetrics.ts +177 -0
- package/src/funcs/recordsAppend.ts +23 -20
- package/src/funcs/recordsCheckTail.ts +23 -20
- package/src/funcs/recordsRead.ts +24 -20
- package/src/funcs/streamsCreateOrReconfigureStream.ts +23 -17
- package/src/funcs/streamsCreateStream.ts +23 -17
- package/src/funcs/streamsDeleteStream.ts +23 -17
- package/src/funcs/streamsGetStreamConfig.ts +23 -17
- package/src/funcs/streamsListStreams.ts +29 -22
- package/src/funcs/streamsReconfigureStream.ts +23 -17
- package/src/hooks/types.ts +2 -0
- package/src/index.ts +2 -0
- package/src/lib/config.ts +7 -3
- package/src/lib/matchers.ts +44 -41
- package/src/lib/sdks.ts +10 -4
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +7 -1
- package/src/mcp-server/tools/metricsAccountMetrics.ts +36 -0
- package/src/mcp-server/tools/metricsBasinMetrics.ts +36 -0
- package/src/mcp-server/tools/metricsStreamMetrics.ts +36 -0
- package/src/models/components/accountmetricset.ts +33 -0
- package/src/models/components/accumulation.ts +150 -0
- package/src/models/components/basinmetricset.ts +37 -0
- package/src/models/components/gauge.ts +131 -0
- package/src/models/components/index.ts +10 -0
- package/src/models/components/label.ts +69 -0
- package/src/models/components/metric.ts +302 -0
- package/src/models/components/metricsetresponse.ts +75 -0
- package/src/models/components/metricunit.ts +31 -0
- package/src/models/components/operation.ts +3 -0
- package/src/models/components/readbatch.ts +16 -0
- package/src/models/components/readevent.ts +135 -32
- package/src/models/components/scalar.ts +78 -0
- package/src/models/components/timeseriesinterval.ts +34 -0
- package/src/models/errors/apierror.ts +23 -16
- package/src/models/errors/appendconditionfailed.ts +33 -14
- package/src/models/errors/errorresponse.ts +15 -5
- package/src/models/errors/index.ts +1 -0
- package/src/models/errors/responsevalidationerror.ts +50 -0
- package/src/models/errors/s2error.ts +35 -0
- package/src/models/errors/sdkvalidationerror.ts +12 -0
- package/src/models/errors/tailresponse.ts +15 -5
- package/src/models/operations/accountmetrics.ts +91 -0
- package/src/models/operations/basinmetrics.ts +98 -0
- package/src/models/operations/index.ts +3 -0
- package/src/models/operations/read.ts +16 -0
- package/src/models/operations/streammetrics.ts +76 -0
- package/src/sdk/metrics.ts +55 -0
- 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.
|
|
34269
|
-
genVersion: "2.
|
|
34270
|
-
userAgent: "speakeasy-sdk/typescript 0.
|
|
34268
|
+
sdkVersion: "0.15.1",
|
|
34269
|
+
genVersion: "2.624.0",
|
|
34270
|
+
userAgent: "speakeasy-sdk/typescript 0.15.1 2.624.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
|
|
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,
|
|
@@ -35247,29 +35247,168 @@ var init_tools = __esm(() => {
|
|
|
35247
35247
|
init_shared();
|
|
35248
35248
|
});
|
|
35249
35249
|
|
|
35250
|
+
// src/models/errors/s2error.ts
|
|
35251
|
+
var S2Error;
|
|
35252
|
+
var init_s2error = __esm(() => {
|
|
35253
|
+
S2Error = class S2Error extends Error {
|
|
35254
|
+
statusCode;
|
|
35255
|
+
body;
|
|
35256
|
+
headers;
|
|
35257
|
+
contentType;
|
|
35258
|
+
rawResponse;
|
|
35259
|
+
constructor(message, httpMeta) {
|
|
35260
|
+
super(message);
|
|
35261
|
+
this.statusCode = httpMeta.response.status;
|
|
35262
|
+
this.body = httpMeta.body;
|
|
35263
|
+
this.headers = httpMeta.response.headers;
|
|
35264
|
+
this.contentType = httpMeta.response.headers.get("content-type") || "";
|
|
35265
|
+
this.rawResponse = httpMeta.response;
|
|
35266
|
+
this.name = "S2Error";
|
|
35267
|
+
}
|
|
35268
|
+
};
|
|
35269
|
+
});
|
|
35270
|
+
|
|
35250
35271
|
// src/models/errors/apierror.ts
|
|
35251
35272
|
var APIError;
|
|
35252
35273
|
var init_apierror = __esm(() => {
|
|
35253
|
-
|
|
35254
|
-
|
|
35255
|
-
|
|
35256
|
-
|
|
35257
|
-
|
|
35258
|
-
|
|
35259
|
-
|
|
35260
|
-
const contentType2 =
|
|
35261
|
-
|
|
35262
|
-
${
|
|
35263
|
-
|
|
35264
|
-
|
|
35265
|
-
|
|
35266
|
-
|
|
35267
|
-
|
|
35274
|
+
init_s2error();
|
|
35275
|
+
APIError = class APIError extends S2Error {
|
|
35276
|
+
constructor(message, httpMeta) {
|
|
35277
|
+
if (message) {
|
|
35278
|
+
message += `: `;
|
|
35279
|
+
}
|
|
35280
|
+
message += `Status ${httpMeta.response.status}`;
|
|
35281
|
+
const contentType2 = httpMeta.response.headers.get("content-type") || `""`;
|
|
35282
|
+
if (contentType2 !== "application/json") {
|
|
35283
|
+
message += ` Content-Type ${contentType2.includes(" ") ? `"${contentType2}"` : contentType2}`;
|
|
35284
|
+
}
|
|
35285
|
+
const body = httpMeta.body || `""`;
|
|
35286
|
+
message += body.length > 100 ? `
|
|
35287
|
+
` : " ";
|
|
35288
|
+
message += `Body ${body}`;
|
|
35289
|
+
message = message.trim();
|
|
35290
|
+
super(message, httpMeta);
|
|
35268
35291
|
this.name = "APIError";
|
|
35269
35292
|
}
|
|
35270
35293
|
};
|
|
35271
35294
|
});
|
|
35272
35295
|
|
|
35296
|
+
// src/models/errors/sdkvalidationerror.ts
|
|
35297
|
+
function formatZodError(err, level = 0) {
|
|
35298
|
+
let pre = " ".repeat(level);
|
|
35299
|
+
pre = level > 0 ? `│${pre}` : pre;
|
|
35300
|
+
pre += " ".repeat(level);
|
|
35301
|
+
let message = "";
|
|
35302
|
+
const append = (str) => message += `
|
|
35303
|
+
${pre}${str}`;
|
|
35304
|
+
const len = err.issues.length;
|
|
35305
|
+
const headline = len === 1 ? `${len} issue found` : `${len} issues found`;
|
|
35306
|
+
if (len) {
|
|
35307
|
+
append(`┌ ${headline}:`);
|
|
35308
|
+
}
|
|
35309
|
+
for (const issue of err.issues) {
|
|
35310
|
+
let path = issue.path.join(".");
|
|
35311
|
+
path = path ? `<root>.${path}` : "<root>";
|
|
35312
|
+
append(`│ • [${path}]: ${issue.message} (${issue.code})`);
|
|
35313
|
+
switch (issue.code) {
|
|
35314
|
+
case "invalid_literal":
|
|
35315
|
+
case "invalid_type": {
|
|
35316
|
+
append(`│ Want: ${issue.expected}`);
|
|
35317
|
+
append(`│ Got: ${issue.received}`);
|
|
35318
|
+
break;
|
|
35319
|
+
}
|
|
35320
|
+
case "unrecognized_keys": {
|
|
35321
|
+
append(`│ Keys: ${issue.keys.join(", ")}`);
|
|
35322
|
+
break;
|
|
35323
|
+
}
|
|
35324
|
+
case "invalid_enum_value": {
|
|
35325
|
+
append(`│ Allowed: ${issue.options.join(", ")}`);
|
|
35326
|
+
append(`│ Got: ${issue.received}`);
|
|
35327
|
+
break;
|
|
35328
|
+
}
|
|
35329
|
+
case "invalid_union_discriminator": {
|
|
35330
|
+
append(`│ Allowed: ${issue.options.join(", ")}`);
|
|
35331
|
+
break;
|
|
35332
|
+
}
|
|
35333
|
+
case "invalid_union": {
|
|
35334
|
+
const len2 = issue.unionErrors.length;
|
|
35335
|
+
append(`│ ✖︎ Attemped to deserialize into one of ${len2} union members:`);
|
|
35336
|
+
issue.unionErrors.forEach((err2, i) => {
|
|
35337
|
+
append(`│ ✖︎ Member ${i + 1} of ${len2}`);
|
|
35338
|
+
append(`${formatZodError(err2, level + 1)}`);
|
|
35339
|
+
});
|
|
35340
|
+
}
|
|
35341
|
+
}
|
|
35342
|
+
}
|
|
35343
|
+
if (err.issues.length) {
|
|
35344
|
+
append(`└─*`);
|
|
35345
|
+
}
|
|
35346
|
+
return message.slice(1);
|
|
35347
|
+
}
|
|
35348
|
+
var SDKValidationError;
|
|
35349
|
+
var init_sdkvalidationerror = __esm(() => {
|
|
35350
|
+
init_esm();
|
|
35351
|
+
SDKValidationError = class SDKValidationError extends Error {
|
|
35352
|
+
rawValue;
|
|
35353
|
+
rawMessage;
|
|
35354
|
+
static [Symbol.hasInstance](instance) {
|
|
35355
|
+
if (!(instance instanceof Error))
|
|
35356
|
+
return false;
|
|
35357
|
+
if (!("rawValue" in instance))
|
|
35358
|
+
return false;
|
|
35359
|
+
if (!("rawMessage" in instance))
|
|
35360
|
+
return false;
|
|
35361
|
+
if (!("pretty" in instance))
|
|
35362
|
+
return false;
|
|
35363
|
+
if (typeof instance.pretty !== "function")
|
|
35364
|
+
return false;
|
|
35365
|
+
return true;
|
|
35366
|
+
}
|
|
35367
|
+
constructor(message, cause, rawValue) {
|
|
35368
|
+
super(`${message}: ${cause}`);
|
|
35369
|
+
this.name = "SDKValidationError";
|
|
35370
|
+
this.cause = cause;
|
|
35371
|
+
this.rawValue = rawValue;
|
|
35372
|
+
this.rawMessage = message;
|
|
35373
|
+
}
|
|
35374
|
+
pretty() {
|
|
35375
|
+
if (this.cause instanceof ZodError) {
|
|
35376
|
+
return `${this.rawMessage}
|
|
35377
|
+
${formatZodError(this.cause)}`;
|
|
35378
|
+
} else {
|
|
35379
|
+
return this.toString();
|
|
35380
|
+
}
|
|
35381
|
+
}
|
|
35382
|
+
};
|
|
35383
|
+
});
|
|
35384
|
+
|
|
35385
|
+
// src/models/errors/responsevalidationerror.ts
|
|
35386
|
+
var ResponseValidationError;
|
|
35387
|
+
var init_responsevalidationerror = __esm(() => {
|
|
35388
|
+
init_esm();
|
|
35389
|
+
init_s2error();
|
|
35390
|
+
init_sdkvalidationerror();
|
|
35391
|
+
ResponseValidationError = class ResponseValidationError extends S2Error {
|
|
35392
|
+
rawValue;
|
|
35393
|
+
rawMessage;
|
|
35394
|
+
constructor(message, extra) {
|
|
35395
|
+
super(message, extra);
|
|
35396
|
+
this.name = "ResponseValidationError";
|
|
35397
|
+
this.cause = extra.cause;
|
|
35398
|
+
this.rawValue = extra.rawValue;
|
|
35399
|
+
this.rawMessage = extra.rawMessage;
|
|
35400
|
+
}
|
|
35401
|
+
pretty() {
|
|
35402
|
+
if (this.cause instanceof ZodError) {
|
|
35403
|
+
return `${this.rawMessage}
|
|
35404
|
+
${formatZodError(this.cause)}`;
|
|
35405
|
+
} else {
|
|
35406
|
+
return this.toString();
|
|
35407
|
+
}
|
|
35408
|
+
}
|
|
35409
|
+
};
|
|
35410
|
+
});
|
|
35411
|
+
|
|
35273
35412
|
// src/lib/event-streams.ts
|
|
35274
35413
|
function findBoundary(buffer, start) {
|
|
35275
35414
|
const char1 = buffer[start];
|
|
@@ -35472,94 +35611,6 @@ var init_event_streams = __esm(() => {
|
|
|
35472
35611
|
};
|
|
35473
35612
|
});
|
|
35474
35613
|
|
|
35475
|
-
// src/models/errors/sdkvalidationerror.ts
|
|
35476
|
-
function formatZodError(err, level = 0) {
|
|
35477
|
-
let pre = " ".repeat(level);
|
|
35478
|
-
pre = level > 0 ? `│${pre}` : pre;
|
|
35479
|
-
pre += " ".repeat(level);
|
|
35480
|
-
let message = "";
|
|
35481
|
-
const append = (str) => message += `
|
|
35482
|
-
${pre}${str}`;
|
|
35483
|
-
const len = err.issues.length;
|
|
35484
|
-
const headline = len === 1 ? `${len} issue found` : `${len} issues found`;
|
|
35485
|
-
if (len) {
|
|
35486
|
-
append(`┌ ${headline}:`);
|
|
35487
|
-
}
|
|
35488
|
-
for (const issue of err.issues) {
|
|
35489
|
-
let path = issue.path.join(".");
|
|
35490
|
-
path = path ? `<root>.${path}` : "<root>";
|
|
35491
|
-
append(`│ • [${path}]: ${issue.message} (${issue.code})`);
|
|
35492
|
-
switch (issue.code) {
|
|
35493
|
-
case "invalid_literal":
|
|
35494
|
-
case "invalid_type": {
|
|
35495
|
-
append(`│ Want: ${issue.expected}`);
|
|
35496
|
-
append(`│ Got: ${issue.received}`);
|
|
35497
|
-
break;
|
|
35498
|
-
}
|
|
35499
|
-
case "unrecognized_keys": {
|
|
35500
|
-
append(`│ Keys: ${issue.keys.join(", ")}`);
|
|
35501
|
-
break;
|
|
35502
|
-
}
|
|
35503
|
-
case "invalid_enum_value": {
|
|
35504
|
-
append(`│ Allowed: ${issue.options.join(", ")}`);
|
|
35505
|
-
append(`│ Got: ${issue.received}`);
|
|
35506
|
-
break;
|
|
35507
|
-
}
|
|
35508
|
-
case "invalid_union_discriminator": {
|
|
35509
|
-
append(`│ Allowed: ${issue.options.join(", ")}`);
|
|
35510
|
-
break;
|
|
35511
|
-
}
|
|
35512
|
-
case "invalid_union": {
|
|
35513
|
-
const len2 = issue.unionErrors.length;
|
|
35514
|
-
append(`│ ✖︎ Attemped to deserialize into one of ${len2} union members:`);
|
|
35515
|
-
issue.unionErrors.forEach((err2, i) => {
|
|
35516
|
-
append(`│ ✖︎ Member ${i + 1} of ${len2}`);
|
|
35517
|
-
append(`${formatZodError(err2, level + 1)}`);
|
|
35518
|
-
});
|
|
35519
|
-
}
|
|
35520
|
-
}
|
|
35521
|
-
}
|
|
35522
|
-
if (err.issues.length) {
|
|
35523
|
-
append(`└─*`);
|
|
35524
|
-
}
|
|
35525
|
-
return message.slice(1);
|
|
35526
|
-
}
|
|
35527
|
-
var SDKValidationError;
|
|
35528
|
-
var init_sdkvalidationerror = __esm(() => {
|
|
35529
|
-
init_esm();
|
|
35530
|
-
SDKValidationError = class SDKValidationError extends Error {
|
|
35531
|
-
rawValue;
|
|
35532
|
-
rawMessage;
|
|
35533
|
-
constructor(message, cause, rawValue) {
|
|
35534
|
-
super(`${message}: ${cause}`);
|
|
35535
|
-
this.name = "SDKValidationError";
|
|
35536
|
-
this.cause = cause;
|
|
35537
|
-
this.rawValue = rawValue;
|
|
35538
|
-
this.rawMessage = message;
|
|
35539
|
-
}
|
|
35540
|
-
pretty() {
|
|
35541
|
-
if (this.cause instanceof ZodError) {
|
|
35542
|
-
return `${this.rawMessage}
|
|
35543
|
-
${formatZodError(this.cause)}`;
|
|
35544
|
-
} else {
|
|
35545
|
-
return this.toString();
|
|
35546
|
-
}
|
|
35547
|
-
}
|
|
35548
|
-
};
|
|
35549
|
-
});
|
|
35550
|
-
|
|
35551
|
-
// src/lib/schemas.ts
|
|
35552
|
-
function safeParse(rawValue, fn, errorMessage) {
|
|
35553
|
-
try {
|
|
35554
|
-
return OK2(fn(rawValue));
|
|
35555
|
-
} catch (err) {
|
|
35556
|
-
return ERR(new SDKValidationError(errorMessage, err, rawValue));
|
|
35557
|
-
}
|
|
35558
|
-
}
|
|
35559
|
-
var init_schemas = __esm(() => {
|
|
35560
|
-
init_sdkvalidationerror();
|
|
35561
|
-
});
|
|
35562
|
-
|
|
35563
35614
|
// src/lib/matchers.ts
|
|
35564
35615
|
function jsonErr(codes, schema, options) {
|
|
35565
35616
|
return { ...options, err: true, enc: "json", codes, schema };
|
|
@@ -35577,7 +35628,7 @@ function fail(codes) {
|
|
|
35577
35628
|
return { enc: "fail", codes };
|
|
35578
35629
|
}
|
|
35579
35630
|
function match(...matchers) {
|
|
35580
|
-
return async function matchFunc(response, options) {
|
|
35631
|
+
return async function matchFunc(response, request, options) {
|
|
35581
35632
|
let raw;
|
|
35582
35633
|
let matcher;
|
|
35583
35634
|
for (const match2 of matchers) {
|
|
@@ -35592,16 +35643,21 @@ function match(...matchers) {
|
|
|
35592
35643
|
}
|
|
35593
35644
|
}
|
|
35594
35645
|
if (!matcher) {
|
|
35595
|
-
const responseBody = await response.text();
|
|
35596
35646
|
return [{
|
|
35597
35647
|
ok: false,
|
|
35598
|
-
error: new APIError("Unexpected
|
|
35599
|
-
|
|
35648
|
+
error: new APIError("Unexpected Status or Content-Type", {
|
|
35649
|
+
response,
|
|
35650
|
+
request,
|
|
35651
|
+
body: await response.text().catch(() => "")
|
|
35652
|
+
})
|
|
35653
|
+
}, raw];
|
|
35600
35654
|
}
|
|
35601
35655
|
const encoding = matcher.enc;
|
|
35656
|
+
let body = "";
|
|
35602
35657
|
switch (encoding) {
|
|
35603
35658
|
case "json":
|
|
35604
|
-
|
|
35659
|
+
body = await response.text();
|
|
35660
|
+
raw = JSON.parse(body);
|
|
35605
35661
|
break;
|
|
35606
35662
|
case "jsonl":
|
|
35607
35663
|
raw = response.body;
|
|
@@ -35613,16 +35669,19 @@ function match(...matchers) {
|
|
|
35613
35669
|
raw = response.body;
|
|
35614
35670
|
break;
|
|
35615
35671
|
case "text":
|
|
35616
|
-
|
|
35672
|
+
body = await response.text();
|
|
35673
|
+
raw = body;
|
|
35617
35674
|
break;
|
|
35618
35675
|
case "sse":
|
|
35619
35676
|
raw = response.body && matcher.sseSentinel ? discardSentinel(response.body, matcher.sseSentinel) : response.body;
|
|
35620
35677
|
break;
|
|
35621
35678
|
case "nil":
|
|
35622
|
-
|
|
35679
|
+
body = await response.text();
|
|
35680
|
+
raw = undefined;
|
|
35623
35681
|
break;
|
|
35624
35682
|
case "fail":
|
|
35625
|
-
|
|
35683
|
+
body = await response.text();
|
|
35684
|
+
raw = body;
|
|
35626
35685
|
break;
|
|
35627
35686
|
default:
|
|
35628
35687
|
throw new Error(`Unsupported response type: ${encoding}`);
|
|
@@ -35630,7 +35689,7 @@ function match(...matchers) {
|
|
|
35630
35689
|
if (matcher.enc === "fail") {
|
|
35631
35690
|
return [{
|
|
35632
35691
|
ok: false,
|
|
35633
|
-
error: new APIError("API error occurred", response,
|
|
35692
|
+
error: new APIError("API error occurred", { request, response, body })
|
|
35634
35693
|
}, raw];
|
|
35635
35694
|
}
|
|
35636
35695
|
const resultKey = matcher.key || options?.resultKey;
|
|
@@ -35639,7 +35698,10 @@ function match(...matchers) {
|
|
|
35639
35698
|
data = {
|
|
35640
35699
|
...options?.extraFields,
|
|
35641
35700
|
...matcher.hdrs ? { Headers: unpackHeaders(response.headers) } : null,
|
|
35642
|
-
...isPlainObject(raw) ? raw : null
|
|
35701
|
+
...isPlainObject(raw) ? raw : null,
|
|
35702
|
+
request$: request,
|
|
35703
|
+
response$: response,
|
|
35704
|
+
body$: body
|
|
35643
35705
|
};
|
|
35644
35706
|
} else if (resultKey) {
|
|
35645
35707
|
data = {
|
|
@@ -35657,11 +35719,11 @@ function match(...matchers) {
|
|
|
35657
35719
|
data = raw;
|
|
35658
35720
|
}
|
|
35659
35721
|
if ("err" in matcher) {
|
|
35660
|
-
const result =
|
|
35722
|
+
const result = safeParseResponse(data, (v2) => matcher.schema.parse(v2), "Response validation failed", { request, response, body });
|
|
35661
35723
|
return [result.ok ? { ok: false, error: result.value } : result, raw];
|
|
35662
35724
|
} else {
|
|
35663
35725
|
return [
|
|
35664
|
-
|
|
35726
|
+
safeParseResponse(data, (v2) => matcher.schema.parse(v2), "Response validation failed", { request, response, body }),
|
|
35665
35727
|
raw
|
|
35666
35728
|
];
|
|
35667
35729
|
}
|
|
@@ -35674,27 +35736,24 @@ function unpackHeaders(headers) {
|
|
|
35674
35736
|
}
|
|
35675
35737
|
return out;
|
|
35676
35738
|
}
|
|
35677
|
-
|
|
35678
|
-
const reader = res.body?.getReader();
|
|
35679
|
-
if (reader == null) {
|
|
35680
|
-
return;
|
|
35681
|
-
}
|
|
35739
|
+
function safeParseResponse(rawValue, fn, errorMessage, httpMeta) {
|
|
35682
35740
|
try {
|
|
35683
|
-
|
|
35684
|
-
|
|
35685
|
-
|
|
35686
|
-
|
|
35687
|
-
|
|
35688
|
-
|
|
35689
|
-
|
|
35741
|
+
return OK2(fn(rawValue));
|
|
35742
|
+
} catch (err) {
|
|
35743
|
+
return ERR(new ResponseValidationError(errorMessage, {
|
|
35744
|
+
cause: err,
|
|
35745
|
+
rawValue,
|
|
35746
|
+
rawMessage: errorMessage,
|
|
35747
|
+
...httpMeta
|
|
35748
|
+
}));
|
|
35690
35749
|
}
|
|
35691
35750
|
}
|
|
35692
35751
|
var DEFAULT_CONTENT_TYPES, headerValRE;
|
|
35693
35752
|
var init_matchers = __esm(() => {
|
|
35694
35753
|
init_apierror();
|
|
35754
|
+
init_responsevalidationerror();
|
|
35695
35755
|
init_event_streams();
|
|
35696
35756
|
init_http();
|
|
35697
|
-
init_schemas();
|
|
35698
35757
|
DEFAULT_CONTENT_TYPES = {
|
|
35699
35758
|
jsonl: "application/jsonl",
|
|
35700
35759
|
json: "application/json",
|
|
@@ -35736,6 +35795,18 @@ function compactMap(values) {
|
|
|
35736
35795
|
var init_primitives = () => {
|
|
35737
35796
|
};
|
|
35738
35797
|
|
|
35798
|
+
// src/lib/schemas.ts
|
|
35799
|
+
function safeParse(rawValue, fn, errorMessage) {
|
|
35800
|
+
try {
|
|
35801
|
+
return OK2(fn(rawValue));
|
|
35802
|
+
} catch (err) {
|
|
35803
|
+
return ERR(new SDKValidationError(errorMessage, err, rawValue));
|
|
35804
|
+
}
|
|
35805
|
+
}
|
|
35806
|
+
var init_schemas = __esm(() => {
|
|
35807
|
+
init_sdkvalidationerror();
|
|
35808
|
+
});
|
|
35809
|
+
|
|
35739
35810
|
// src/lib/security.ts
|
|
35740
35811
|
function resolveSecurity(...options) {
|
|
35741
35812
|
const state = {
|
|
@@ -35884,7 +35955,10 @@ var init_operation = __esm(() => {
|
|
|
35884
35955
|
Append: "append",
|
|
35885
35956
|
Read: "read",
|
|
35886
35957
|
Trim: "trim",
|
|
35887
|
-
Fence: "fence"
|
|
35958
|
+
Fence: "fence",
|
|
35959
|
+
AccountMetrics: "account-metrics",
|
|
35960
|
+
BasinMetrics: "basin-metrics",
|
|
35961
|
+
StreamMetrics: "stream-metrics"
|
|
35888
35962
|
};
|
|
35889
35963
|
Operation$inboundSchema = nativeEnumType(Operation);
|
|
35890
35964
|
Operation$outboundSchema = Operation$inboundSchema;
|
|
@@ -36043,6 +36117,94 @@ var init_accesstokeninfo = __esm(() => {
|
|
|
36043
36117
|
})(AccessTokenInfo$ ||= {});
|
|
36044
36118
|
});
|
|
36045
36119
|
|
|
36120
|
+
// src/models/components/accountmetricset.ts
|
|
36121
|
+
var AccountMetricSet, AccountMetricSet$inboundSchema, AccountMetricSet$outboundSchema, AccountMetricSet$;
|
|
36122
|
+
var init_accountmetricset = __esm(() => {
|
|
36123
|
+
init_esm();
|
|
36124
|
+
AccountMetricSet = {
|
|
36125
|
+
ActiveBasins: "active_basins",
|
|
36126
|
+
AccountOps: "account_ops"
|
|
36127
|
+
};
|
|
36128
|
+
AccountMetricSet$inboundSchema = nativeEnumType(AccountMetricSet);
|
|
36129
|
+
AccountMetricSet$outboundSchema = AccountMetricSet$inboundSchema;
|
|
36130
|
+
((AccountMetricSet$) => {
|
|
36131
|
+
AccountMetricSet$.inboundSchema = AccountMetricSet$inboundSchema;
|
|
36132
|
+
AccountMetricSet$.outboundSchema = AccountMetricSet$outboundSchema;
|
|
36133
|
+
})(AccountMetricSet$ ||= {});
|
|
36134
|
+
});
|
|
36135
|
+
|
|
36136
|
+
// src/models/components/metricunit.ts
|
|
36137
|
+
var MetricUnit, MetricUnit$inboundSchema, MetricUnit$outboundSchema, MetricUnit$;
|
|
36138
|
+
var init_metricunit = __esm(() => {
|
|
36139
|
+
init_esm();
|
|
36140
|
+
MetricUnit = {
|
|
36141
|
+
Bytes: "bytes",
|
|
36142
|
+
Operations: "operations"
|
|
36143
|
+
};
|
|
36144
|
+
MetricUnit$inboundSchema = nativeEnumType(MetricUnit);
|
|
36145
|
+
MetricUnit$outboundSchema = MetricUnit$inboundSchema;
|
|
36146
|
+
((MetricUnit$) => {
|
|
36147
|
+
MetricUnit$.inboundSchema = MetricUnit$inboundSchema;
|
|
36148
|
+
MetricUnit$.outboundSchema = MetricUnit$outboundSchema;
|
|
36149
|
+
})(MetricUnit$ ||= {});
|
|
36150
|
+
});
|
|
36151
|
+
|
|
36152
|
+
// src/models/components/timeseriesinterval.ts
|
|
36153
|
+
var TimeseriesInterval, TimeseriesInterval$inboundSchema, TimeseriesInterval$outboundSchema, TimeseriesInterval$;
|
|
36154
|
+
var init_timeseriesinterval = __esm(() => {
|
|
36155
|
+
init_esm();
|
|
36156
|
+
TimeseriesInterval = {
|
|
36157
|
+
Minute: "minute",
|
|
36158
|
+
Hour: "hour",
|
|
36159
|
+
Day: "day"
|
|
36160
|
+
};
|
|
36161
|
+
TimeseriesInterval$inboundSchema = nativeEnumType(TimeseriesInterval);
|
|
36162
|
+
TimeseriesInterval$outboundSchema = TimeseriesInterval$inboundSchema;
|
|
36163
|
+
((TimeseriesInterval$) => {
|
|
36164
|
+
TimeseriesInterval$.inboundSchema = TimeseriesInterval$inboundSchema;
|
|
36165
|
+
TimeseriesInterval$.outboundSchema = TimeseriesInterval$outboundSchema;
|
|
36166
|
+
})(TimeseriesInterval$ ||= {});
|
|
36167
|
+
});
|
|
36168
|
+
|
|
36169
|
+
// src/models/components/accumulation.ts
|
|
36170
|
+
var Values$inboundSchema, Values$outboundSchema, Values$, Accumulation$inboundSchema, Accumulation$outboundSchema, Accumulation$;
|
|
36171
|
+
var init_accumulation = __esm(() => {
|
|
36172
|
+
init_esm();
|
|
36173
|
+
init_primitives();
|
|
36174
|
+
init_metricunit();
|
|
36175
|
+
init_timeseriesinterval();
|
|
36176
|
+
Values$inboundSchema = unionType([numberType().int(), numberType()]);
|
|
36177
|
+
Values$outboundSchema = unionType([numberType().int(), numberType()]);
|
|
36178
|
+
((Values$) => {
|
|
36179
|
+
Values$.inboundSchema = Values$inboundSchema;
|
|
36180
|
+
Values$.outboundSchema = Values$outboundSchema;
|
|
36181
|
+
})(Values$ ||= {});
|
|
36182
|
+
Accumulation$inboundSchema = objectType({
|
|
36183
|
+
bucket_length: TimeseriesInterval$inboundSchema,
|
|
36184
|
+
name: stringType(),
|
|
36185
|
+
unit: MetricUnit$inboundSchema,
|
|
36186
|
+
values: arrayType(arrayType(unionType([numberType().int(), numberType()])))
|
|
36187
|
+
}).transform((v2) => {
|
|
36188
|
+
return remap(v2, {
|
|
36189
|
+
bucket_length: "bucketLength"
|
|
36190
|
+
});
|
|
36191
|
+
});
|
|
36192
|
+
Accumulation$outboundSchema = objectType({
|
|
36193
|
+
bucketLength: TimeseriesInterval$outboundSchema,
|
|
36194
|
+
name: stringType(),
|
|
36195
|
+
unit: MetricUnit$outboundSchema,
|
|
36196
|
+
values: arrayType(arrayType(unionType([numberType().int(), numberType()])))
|
|
36197
|
+
}).transform((v2) => {
|
|
36198
|
+
return remap(v2, {
|
|
36199
|
+
bucketLength: "bucket_length"
|
|
36200
|
+
});
|
|
36201
|
+
});
|
|
36202
|
+
((Accumulation$) => {
|
|
36203
|
+
Accumulation$.inboundSchema = Accumulation$inboundSchema;
|
|
36204
|
+
Accumulation$.outboundSchema = Accumulation$outboundSchema;
|
|
36205
|
+
})(Accumulation$ ||= {});
|
|
36206
|
+
});
|
|
36207
|
+
|
|
36046
36208
|
// src/models/components/streamposition.ts
|
|
36047
36209
|
var StreamPosition$inboundSchema, StreamPosition$outboundSchema, StreamPosition$;
|
|
36048
36210
|
var init_streamposition = __esm(() => {
|
|
@@ -36339,6 +36501,26 @@ var init_basininfo = __esm(() => {
|
|
|
36339
36501
|
})(BasinInfo$ ||= {});
|
|
36340
36502
|
});
|
|
36341
36503
|
|
|
36504
|
+
// src/models/components/basinmetricset.ts
|
|
36505
|
+
var BasinMetricSet, BasinMetricSet$inboundSchema, BasinMetricSet$outboundSchema, BasinMetricSet$;
|
|
36506
|
+
var init_basinmetricset = __esm(() => {
|
|
36507
|
+
init_esm();
|
|
36508
|
+
BasinMetricSet = {
|
|
36509
|
+
Storage: "storage",
|
|
36510
|
+
AppendOps: "append_ops",
|
|
36511
|
+
ReadOps: "read_ops",
|
|
36512
|
+
ReadThroughput: "read_throughput",
|
|
36513
|
+
AppendThroughput: "append_throughput",
|
|
36514
|
+
BasinOps: "basin_ops"
|
|
36515
|
+
};
|
|
36516
|
+
BasinMetricSet$inboundSchema = nativeEnumType(BasinMetricSet);
|
|
36517
|
+
BasinMetricSet$outboundSchema = BasinMetricSet$inboundSchema;
|
|
36518
|
+
((BasinMetricSet$) => {
|
|
36519
|
+
BasinMetricSet$.inboundSchema = BasinMetricSet$inboundSchema;
|
|
36520
|
+
BasinMetricSet$.outboundSchema = BasinMetricSet$outboundSchema;
|
|
36521
|
+
})(BasinMetricSet$ ||= {});
|
|
36522
|
+
});
|
|
36523
|
+
|
|
36342
36524
|
// src/models/components/timestampingreconfiguration.ts
|
|
36343
36525
|
var TimestampingReconfiguration$inboundSchema, TimestampingReconfiguration$outboundSchema, TimestampingReconfiguration$;
|
|
36344
36526
|
var init_timestampingreconfiguration = __esm(() => {
|
|
@@ -36499,11 +36681,38 @@ var init_createstreamrequest = __esm(() => {
|
|
|
36499
36681
|
})(CreateStreamRequest$ ||= {});
|
|
36500
36682
|
});
|
|
36501
36683
|
|
|
36502
|
-
// src/models/components/
|
|
36503
|
-
var
|
|
36504
|
-
var
|
|
36684
|
+
// src/models/components/gauge.ts
|
|
36685
|
+
var GaugeValues$inboundSchema, GaugeValues$outboundSchema, GaugeValues$, Gauge$inboundSchema, Gauge$outboundSchema, Gauge$;
|
|
36686
|
+
var init_gauge = __esm(() => {
|
|
36505
36687
|
init_esm();
|
|
36506
|
-
|
|
36688
|
+
init_metricunit();
|
|
36689
|
+
GaugeValues$inboundSchema = unionType([numberType().int(), numberType()]);
|
|
36690
|
+
GaugeValues$outboundSchema = unionType([numberType().int(), numberType()]);
|
|
36691
|
+
((GaugeValues$) => {
|
|
36692
|
+
GaugeValues$.inboundSchema = GaugeValues$inboundSchema;
|
|
36693
|
+
GaugeValues$.outboundSchema = GaugeValues$outboundSchema;
|
|
36694
|
+
})(GaugeValues$ ||= {});
|
|
36695
|
+
Gauge$inboundSchema = objectType({
|
|
36696
|
+
name: stringType(),
|
|
36697
|
+
unit: MetricUnit$inboundSchema,
|
|
36698
|
+
values: arrayType(arrayType(unionType([numberType().int(), numberType()])))
|
|
36699
|
+
});
|
|
36700
|
+
Gauge$outboundSchema = objectType({
|
|
36701
|
+
name: stringType(),
|
|
36702
|
+
unit: MetricUnit$outboundSchema,
|
|
36703
|
+
values: arrayType(arrayType(unionType([numberType().int(), numberType()])))
|
|
36704
|
+
});
|
|
36705
|
+
((Gauge$) => {
|
|
36706
|
+
Gauge$.inboundSchema = Gauge$inboundSchema;
|
|
36707
|
+
Gauge$.outboundSchema = Gauge$outboundSchema;
|
|
36708
|
+
})(Gauge$ ||= {});
|
|
36709
|
+
});
|
|
36710
|
+
|
|
36711
|
+
// src/models/components/issueaccesstokenresponse.ts
|
|
36712
|
+
var IssueAccessTokenResponse$inboundSchema, IssueAccessTokenResponse$outboundSchema, IssueAccessTokenResponse$;
|
|
36713
|
+
var init_issueaccesstokenresponse = __esm(() => {
|
|
36714
|
+
init_esm();
|
|
36715
|
+
init_primitives();
|
|
36507
36716
|
IssueAccessTokenResponse$inboundSchema = objectType({
|
|
36508
36717
|
access_token: stringType()
|
|
36509
36718
|
}).transform((v2) => {
|
|
@@ -36524,6 +36733,24 @@ var init_issueaccesstokenresponse = __esm(() => {
|
|
|
36524
36733
|
})(IssueAccessTokenResponse$ ||= {});
|
|
36525
36734
|
});
|
|
36526
36735
|
|
|
36736
|
+
// src/models/components/label.ts
|
|
36737
|
+
var Label$inboundSchema, Label$outboundSchema, Label$;
|
|
36738
|
+
var init_label = __esm(() => {
|
|
36739
|
+
init_esm();
|
|
36740
|
+
Label$inboundSchema = objectType({
|
|
36741
|
+
name: stringType(),
|
|
36742
|
+
values: arrayType(stringType())
|
|
36743
|
+
});
|
|
36744
|
+
Label$outboundSchema = objectType({
|
|
36745
|
+
name: stringType(),
|
|
36746
|
+
values: arrayType(stringType())
|
|
36747
|
+
});
|
|
36748
|
+
((Label$) => {
|
|
36749
|
+
Label$.inboundSchema = Label$inboundSchema;
|
|
36750
|
+
Label$.outboundSchema = Label$outboundSchema;
|
|
36751
|
+
})(Label$ ||= {});
|
|
36752
|
+
});
|
|
36753
|
+
|
|
36527
36754
|
// src/models/components/listaccesstokensresponse.ts
|
|
36528
36755
|
var ListAccessTokensResponse$inboundSchema, ListAccessTokensResponse$outboundSchema, ListAccessTokensResponse$;
|
|
36529
36756
|
var init_listaccesstokensresponse = __esm(() => {
|
|
@@ -36641,6 +36868,110 @@ var init_liststreamsresponse = __esm(() => {
|
|
|
36641
36868
|
})(ListStreamsResponse$ ||= {});
|
|
36642
36869
|
});
|
|
36643
36870
|
|
|
36871
|
+
// src/models/components/scalar.ts
|
|
36872
|
+
var Scalar$inboundSchema, Scalar$outboundSchema, Scalar$;
|
|
36873
|
+
var init_scalar = __esm(() => {
|
|
36874
|
+
init_esm();
|
|
36875
|
+
init_metricunit();
|
|
36876
|
+
Scalar$inboundSchema = objectType({
|
|
36877
|
+
name: stringType(),
|
|
36878
|
+
unit: MetricUnit$inboundSchema,
|
|
36879
|
+
value: numberType()
|
|
36880
|
+
});
|
|
36881
|
+
Scalar$outboundSchema = objectType({
|
|
36882
|
+
name: stringType(),
|
|
36883
|
+
unit: MetricUnit$outboundSchema,
|
|
36884
|
+
value: numberType()
|
|
36885
|
+
});
|
|
36886
|
+
((Scalar$) => {
|
|
36887
|
+
Scalar$.inboundSchema = Scalar$inboundSchema;
|
|
36888
|
+
Scalar$.outboundSchema = Scalar$outboundSchema;
|
|
36889
|
+
})(Scalar$ ||= {});
|
|
36890
|
+
});
|
|
36891
|
+
|
|
36892
|
+
// src/models/components/metric.ts
|
|
36893
|
+
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$;
|
|
36894
|
+
var init_metric = __esm(() => {
|
|
36895
|
+
init_esm();
|
|
36896
|
+
init_accumulation();
|
|
36897
|
+
init_gauge();
|
|
36898
|
+
init_label();
|
|
36899
|
+
init_scalar();
|
|
36900
|
+
Four$inboundSchema = objectType({
|
|
36901
|
+
label: Label$inboundSchema
|
|
36902
|
+
});
|
|
36903
|
+
Four$outboundSchema = objectType({
|
|
36904
|
+
label: Label$outboundSchema
|
|
36905
|
+
});
|
|
36906
|
+
((Four$) => {
|
|
36907
|
+
Four$.inboundSchema = Four$inboundSchema;
|
|
36908
|
+
Four$.outboundSchema = Four$outboundSchema;
|
|
36909
|
+
})(Four$ ||= {});
|
|
36910
|
+
Three$inboundSchema = objectType({
|
|
36911
|
+
gauge: Gauge$inboundSchema
|
|
36912
|
+
});
|
|
36913
|
+
Three$outboundSchema = objectType({
|
|
36914
|
+
gauge: Gauge$outboundSchema
|
|
36915
|
+
});
|
|
36916
|
+
((Three$) => {
|
|
36917
|
+
Three$.inboundSchema = Three$inboundSchema;
|
|
36918
|
+
Three$.outboundSchema = Three$outboundSchema;
|
|
36919
|
+
})(Three$ ||= {});
|
|
36920
|
+
Two$inboundSchema = objectType({
|
|
36921
|
+
accumulation: Accumulation$inboundSchema
|
|
36922
|
+
});
|
|
36923
|
+
Two$outboundSchema = objectType({
|
|
36924
|
+
accumulation: Accumulation$outboundSchema
|
|
36925
|
+
});
|
|
36926
|
+
((Two$) => {
|
|
36927
|
+
Two$.inboundSchema = Two$inboundSchema;
|
|
36928
|
+
Two$.outboundSchema = Two$outboundSchema;
|
|
36929
|
+
})(Two$ ||= {});
|
|
36930
|
+
Metric1$inboundSchema = objectType({
|
|
36931
|
+
scalar: Scalar$inboundSchema
|
|
36932
|
+
});
|
|
36933
|
+
Metric1$outboundSchema = objectType({
|
|
36934
|
+
scalar: Scalar$outboundSchema
|
|
36935
|
+
});
|
|
36936
|
+
((Metric1$) => {
|
|
36937
|
+
Metric1$.inboundSchema = Metric1$inboundSchema;
|
|
36938
|
+
Metric1$.outboundSchema = Metric1$outboundSchema;
|
|
36939
|
+
})(Metric1$ ||= {});
|
|
36940
|
+
Metric$inboundSchema = unionType([
|
|
36941
|
+
lazyType(() => Metric1$inboundSchema),
|
|
36942
|
+
lazyType(() => Two$inboundSchema),
|
|
36943
|
+
lazyType(() => Three$inboundSchema),
|
|
36944
|
+
lazyType(() => Four$inboundSchema)
|
|
36945
|
+
]);
|
|
36946
|
+
Metric$outboundSchema = unionType([
|
|
36947
|
+
lazyType(() => Metric1$outboundSchema),
|
|
36948
|
+
lazyType(() => Two$outboundSchema),
|
|
36949
|
+
lazyType(() => Three$outboundSchema),
|
|
36950
|
+
lazyType(() => Four$outboundSchema)
|
|
36951
|
+
]);
|
|
36952
|
+
((Metric$) => {
|
|
36953
|
+
Metric$.inboundSchema = Metric$inboundSchema;
|
|
36954
|
+
Metric$.outboundSchema = Metric$outboundSchema;
|
|
36955
|
+
})(Metric$ ||= {});
|
|
36956
|
+
});
|
|
36957
|
+
|
|
36958
|
+
// src/models/components/metricsetresponse.ts
|
|
36959
|
+
var MetricSetResponse$inboundSchema, MetricSetResponse$outboundSchema, MetricSetResponse$;
|
|
36960
|
+
var init_metricsetresponse = __esm(() => {
|
|
36961
|
+
init_esm();
|
|
36962
|
+
init_metric();
|
|
36963
|
+
MetricSetResponse$inboundSchema = objectType({
|
|
36964
|
+
values: arrayType(Metric$inboundSchema)
|
|
36965
|
+
});
|
|
36966
|
+
MetricSetResponse$outboundSchema = objectType({
|
|
36967
|
+
values: arrayType(Metric$outboundSchema)
|
|
36968
|
+
});
|
|
36969
|
+
((MetricSetResponse$) => {
|
|
36970
|
+
MetricSetResponse$.inboundSchema = MetricSetResponse$inboundSchema;
|
|
36971
|
+
MetricSetResponse$.outboundSchema = MetricSetResponse$outboundSchema;
|
|
36972
|
+
})(MetricSetResponse$ ||= {});
|
|
36973
|
+
});
|
|
36974
|
+
|
|
36644
36975
|
// src/models/components/pingeventdata.ts
|
|
36645
36976
|
var PingEventData$inboundSchema, PingEventData$outboundSchema, PingEventData$;
|
|
36646
36977
|
var init_pingeventdata = __esm(() => {
|
|
@@ -36693,11 +37024,14 @@ var ReadBatch$inboundSchema, ReadBatch$outboundSchema, ReadBatch$;
|
|
|
36693
37024
|
var init_readbatch = __esm(() => {
|
|
36694
37025
|
init_esm();
|
|
36695
37026
|
init_sequencedrecord();
|
|
37027
|
+
init_streamposition();
|
|
36696
37028
|
ReadBatch$inboundSchema = objectType({
|
|
36697
|
-
records: arrayType(SequencedRecord$inboundSchema)
|
|
37029
|
+
records: arrayType(SequencedRecord$inboundSchema),
|
|
37030
|
+
tail: nullableType(StreamPosition$inboundSchema).optional()
|
|
36698
37031
|
});
|
|
36699
37032
|
ReadBatch$outboundSchema = objectType({
|
|
36700
|
-
records: arrayType(SequencedRecord$outboundSchema)
|
|
37033
|
+
records: arrayType(SequencedRecord$outboundSchema),
|
|
37034
|
+
tail: nullableType(StreamPosition$outboundSchema).optional()
|
|
36701
37035
|
});
|
|
36702
37036
|
((ReadBatch$) => {
|
|
36703
37037
|
ReadBatch$.inboundSchema = ReadBatch$inboundSchema;
|
|
@@ -36705,27 +37039,48 @@ var init_readbatch = __esm(() => {
|
|
|
36705
37039
|
})(ReadBatch$ ||= {});
|
|
36706
37040
|
});
|
|
36707
37041
|
|
|
37042
|
+
// src/models/components/tailresponse.ts
|
|
37043
|
+
var TailResponse$inboundSchema, TailResponse$outboundSchema, TailResponse$;
|
|
37044
|
+
var init_tailresponse = __esm(() => {
|
|
37045
|
+
init_esm();
|
|
37046
|
+
init_streamposition();
|
|
37047
|
+
TailResponse$inboundSchema = objectType({
|
|
37048
|
+
tail: StreamPosition$inboundSchema
|
|
37049
|
+
});
|
|
37050
|
+
TailResponse$outboundSchema = objectType({
|
|
37051
|
+
tail: StreamPosition$outboundSchema
|
|
37052
|
+
});
|
|
37053
|
+
((TailResponse$) => {
|
|
37054
|
+
TailResponse$.inboundSchema = TailResponse$inboundSchema;
|
|
37055
|
+
TailResponse$.outboundSchema = TailResponse$outboundSchema;
|
|
37056
|
+
})(TailResponse$ ||= {});
|
|
37057
|
+
});
|
|
37058
|
+
|
|
36708
37059
|
// src/models/components/readevent.ts
|
|
36709
|
-
var ReadEvent3Event, ReadEventEvent, Event,
|
|
37060
|
+
var ReadEvent4Event, ReadEvent3Event, ReadEventEvent, Event, ReadEvent4Event$inboundSchema, ReadEvent4Event$outboundSchema, ReadEvent4Event$, Ping$inboundSchema, Ping$outboundSchema, Ping$, ReadEvent3Event$inboundSchema, ReadEvent3Event$outboundSchema, ReadEvent3Event$, ErrorT$inboundSchema, ErrorT$outboundSchema, ErrorT$, ReadEventEvent$inboundSchema, ReadEventEvent$outboundSchema, ReadEventEvent$, ReadEvent2$inboundSchema, ReadEvent2$outboundSchema, ReadEvent2$, Event$inboundSchema, Event$outboundSchema, Event$, Batch$inboundSchema, Batch$outboundSchema, Batch$, ReadEvent$inboundSchema, ReadEvent$outboundSchema, ReadEvent$;
|
|
36710
37061
|
var init_readevent = __esm(() => {
|
|
36711
37062
|
init_esm();
|
|
36712
37063
|
init_pingeventdata();
|
|
36713
37064
|
init_readbatch();
|
|
36714
|
-
|
|
37065
|
+
init_tailresponse();
|
|
37066
|
+
ReadEvent4Event = {
|
|
36715
37067
|
Ping: "ping"
|
|
36716
37068
|
};
|
|
36717
|
-
|
|
37069
|
+
ReadEvent3Event = {
|
|
36718
37070
|
Error: "error"
|
|
36719
37071
|
};
|
|
37072
|
+
ReadEventEvent = {
|
|
37073
|
+
Tail: "tail"
|
|
37074
|
+
};
|
|
36720
37075
|
Event = {
|
|
36721
37076
|
Batch: "batch"
|
|
36722
37077
|
};
|
|
36723
|
-
|
|
36724
|
-
|
|
36725
|
-
((
|
|
36726
|
-
|
|
36727
|
-
|
|
36728
|
-
})(
|
|
37078
|
+
ReadEvent4Event$inboundSchema = nativeEnumType(ReadEvent4Event);
|
|
37079
|
+
ReadEvent4Event$outboundSchema = ReadEvent4Event$inboundSchema;
|
|
37080
|
+
((ReadEvent4Event$) => {
|
|
37081
|
+
ReadEvent4Event$.inboundSchema = ReadEvent4Event$inboundSchema;
|
|
37082
|
+
ReadEvent4Event$.outboundSchema = ReadEvent4Event$outboundSchema;
|
|
37083
|
+
})(ReadEvent4Event$ ||= {});
|
|
36729
37084
|
Ping$inboundSchema = objectType({
|
|
36730
37085
|
data: stringType().transform((v2, ctx) => {
|
|
36731
37086
|
try {
|
|
@@ -36738,34 +37093,62 @@ var init_readevent = __esm(() => {
|
|
|
36738
37093
|
return NEVER;
|
|
36739
37094
|
}
|
|
36740
37095
|
}).pipe(PingEventData$inboundSchema),
|
|
36741
|
-
event:
|
|
37096
|
+
event: ReadEvent4Event$inboundSchema
|
|
36742
37097
|
});
|
|
36743
37098
|
Ping$outboundSchema = objectType({
|
|
36744
37099
|
data: PingEventData$outboundSchema,
|
|
36745
|
-
event:
|
|
37100
|
+
event: ReadEvent4Event$outboundSchema
|
|
36746
37101
|
});
|
|
36747
37102
|
((Ping$) => {
|
|
36748
37103
|
Ping$.inboundSchema = Ping$inboundSchema;
|
|
36749
37104
|
Ping$.outboundSchema = Ping$outboundSchema;
|
|
36750
37105
|
})(Ping$ ||= {});
|
|
36751
|
-
|
|
36752
|
-
|
|
36753
|
-
((
|
|
36754
|
-
|
|
36755
|
-
|
|
36756
|
-
})(
|
|
37106
|
+
ReadEvent3Event$inboundSchema = nativeEnumType(ReadEvent3Event);
|
|
37107
|
+
ReadEvent3Event$outboundSchema = ReadEvent3Event$inboundSchema;
|
|
37108
|
+
((ReadEvent3Event$) => {
|
|
37109
|
+
ReadEvent3Event$.inboundSchema = ReadEvent3Event$inboundSchema;
|
|
37110
|
+
ReadEvent3Event$.outboundSchema = ReadEvent3Event$outboundSchema;
|
|
37111
|
+
})(ReadEvent3Event$ ||= {});
|
|
36757
37112
|
ErrorT$inboundSchema = objectType({
|
|
36758
37113
|
data: stringType(),
|
|
36759
|
-
event:
|
|
37114
|
+
event: ReadEvent3Event$inboundSchema
|
|
36760
37115
|
});
|
|
36761
37116
|
ErrorT$outboundSchema = objectType({
|
|
36762
37117
|
data: stringType(),
|
|
36763
|
-
event:
|
|
37118
|
+
event: ReadEvent3Event$outboundSchema
|
|
36764
37119
|
});
|
|
36765
37120
|
((ErrorT$) => {
|
|
36766
37121
|
ErrorT$.inboundSchema = ErrorT$inboundSchema;
|
|
36767
37122
|
ErrorT$.outboundSchema = ErrorT$outboundSchema;
|
|
36768
37123
|
})(ErrorT$ ||= {});
|
|
37124
|
+
ReadEventEvent$inboundSchema = nativeEnumType(ReadEventEvent);
|
|
37125
|
+
ReadEventEvent$outboundSchema = ReadEventEvent$inboundSchema;
|
|
37126
|
+
((ReadEventEvent$) => {
|
|
37127
|
+
ReadEventEvent$.inboundSchema = ReadEventEvent$inboundSchema;
|
|
37128
|
+
ReadEventEvent$.outboundSchema = ReadEventEvent$outboundSchema;
|
|
37129
|
+
})(ReadEventEvent$ ||= {});
|
|
37130
|
+
ReadEvent2$inboundSchema = objectType({
|
|
37131
|
+
data: stringType().transform((v2, ctx) => {
|
|
37132
|
+
try {
|
|
37133
|
+
return JSON.parse(v2);
|
|
37134
|
+
} catch (err) {
|
|
37135
|
+
ctx.addIssue({
|
|
37136
|
+
code: ZodIssueCode.custom,
|
|
37137
|
+
message: `malformed json: ${err}`
|
|
37138
|
+
});
|
|
37139
|
+
return NEVER;
|
|
37140
|
+
}
|
|
37141
|
+
}).pipe(TailResponse$inboundSchema),
|
|
37142
|
+
event: ReadEventEvent$inboundSchema
|
|
37143
|
+
});
|
|
37144
|
+
ReadEvent2$outboundSchema = objectType({
|
|
37145
|
+
data: TailResponse$outboundSchema,
|
|
37146
|
+
event: ReadEventEvent$outboundSchema
|
|
37147
|
+
});
|
|
37148
|
+
((ReadEvent2$) => {
|
|
37149
|
+
ReadEvent2$.inboundSchema = ReadEvent2$inboundSchema;
|
|
37150
|
+
ReadEvent2$.outboundSchema = ReadEvent2$outboundSchema;
|
|
37151
|
+
})(ReadEvent2$ ||= {});
|
|
36769
37152
|
Event$inboundSchema = nativeEnumType(Event);
|
|
36770
37153
|
Event$outboundSchema = Event$inboundSchema;
|
|
36771
37154
|
((Event$) => {
|
|
@@ -36797,11 +37180,13 @@ var init_readevent = __esm(() => {
|
|
|
36797
37180
|
Batch$.outboundSchema = Batch$outboundSchema;
|
|
36798
37181
|
})(Batch$ ||= {});
|
|
36799
37182
|
ReadEvent$inboundSchema = unionType([
|
|
37183
|
+
lazyType(() => ReadEvent2$inboundSchema),
|
|
36800
37184
|
lazyType(() => ErrorT$inboundSchema),
|
|
36801
37185
|
lazyType(() => Ping$inboundSchema),
|
|
36802
37186
|
lazyType(() => Batch$inboundSchema)
|
|
36803
37187
|
]);
|
|
36804
37188
|
ReadEvent$outboundSchema = unionType([
|
|
37189
|
+
lazyType(() => ReadEvent2$outboundSchema),
|
|
36805
37190
|
lazyType(() => ErrorT$outboundSchema),
|
|
36806
37191
|
lazyType(() => Ping$outboundSchema),
|
|
36807
37192
|
lazyType(() => Batch$outboundSchema)
|
|
@@ -36853,42 +37238,33 @@ var init_security2 = __esm(() => {
|
|
|
36853
37238
|
})(Security$ ||= {});
|
|
36854
37239
|
});
|
|
36855
37240
|
|
|
36856
|
-
// src/models/components/tailresponse.ts
|
|
36857
|
-
var TailResponse$inboundSchema, TailResponse$outboundSchema, TailResponse$;
|
|
36858
|
-
var init_tailresponse = __esm(() => {
|
|
36859
|
-
init_esm();
|
|
36860
|
-
init_streamposition();
|
|
36861
|
-
TailResponse$inboundSchema = objectType({
|
|
36862
|
-
tail: StreamPosition$inboundSchema
|
|
36863
|
-
});
|
|
36864
|
-
TailResponse$outboundSchema = objectType({
|
|
36865
|
-
tail: StreamPosition$outboundSchema
|
|
36866
|
-
});
|
|
36867
|
-
((TailResponse$) => {
|
|
36868
|
-
TailResponse$.inboundSchema = TailResponse$inboundSchema;
|
|
36869
|
-
TailResponse$.outboundSchema = TailResponse$outboundSchema;
|
|
36870
|
-
})(TailResponse$ ||= {});
|
|
36871
|
-
});
|
|
36872
|
-
|
|
36873
37241
|
// src/models/components/index.ts
|
|
36874
37242
|
var init_components = __esm(() => {
|
|
36875
37243
|
init_accesstokeninfo();
|
|
36876
37244
|
init_accesstokenscope();
|
|
37245
|
+
init_accountmetricset();
|
|
37246
|
+
init_accumulation();
|
|
36877
37247
|
init_appendack();
|
|
36878
37248
|
init_appendinput();
|
|
36879
37249
|
init_appendrecord();
|
|
36880
37250
|
init_basinconfig();
|
|
36881
37251
|
init_basininfo();
|
|
37252
|
+
init_basinmetricset();
|
|
36882
37253
|
init_basinreconfiguration();
|
|
36883
37254
|
init_basinscope();
|
|
36884
37255
|
init_basinstate();
|
|
36885
37256
|
init_createbasinrequest();
|
|
36886
37257
|
init_createorreconfigurebasinrequest();
|
|
36887
37258
|
init_createstreamrequest();
|
|
37259
|
+
init_gauge();
|
|
36888
37260
|
init_issueaccesstokenresponse();
|
|
37261
|
+
init_label();
|
|
36889
37262
|
init_listaccesstokensresponse();
|
|
36890
37263
|
init_listbasinsresponse();
|
|
36891
37264
|
init_liststreamsresponse();
|
|
37265
|
+
init_metric();
|
|
37266
|
+
init_metricsetresponse();
|
|
37267
|
+
init_metricunit();
|
|
36892
37268
|
init_operation();
|
|
36893
37269
|
init_permittedoperationgroups();
|
|
36894
37270
|
init_pingeventdata();
|
|
@@ -36898,6 +37274,7 @@ var init_components = __esm(() => {
|
|
|
36898
37274
|
init_resourceset();
|
|
36899
37275
|
init_retentionpolicy();
|
|
36900
37276
|
init_s2format();
|
|
37277
|
+
init_scalar();
|
|
36901
37278
|
init_security2();
|
|
36902
37279
|
init_sequencedrecord();
|
|
36903
37280
|
init_storageclass();
|
|
@@ -36906,6 +37283,7 @@ var init_components = __esm(() => {
|
|
|
36906
37283
|
init_streamposition();
|
|
36907
37284
|
init_streamreconfiguration();
|
|
36908
37285
|
init_tailresponse();
|
|
37286
|
+
init_timeseriesinterval();
|
|
36909
37287
|
init_timestampingconfig();
|
|
36910
37288
|
init_timestampingmode();
|
|
36911
37289
|
init_timestampingreconfiguration();
|
|
@@ -36916,35 +37294,43 @@ var SeqNum, FencingToken, SeqNum$inboundSchema, SeqNum$outboundSchema, SeqNum$,
|
|
|
36916
37294
|
var init_appendconditionfailed = __esm(() => {
|
|
36917
37295
|
init_esm();
|
|
36918
37296
|
init_primitives();
|
|
36919
|
-
|
|
37297
|
+
init_s2error();
|
|
37298
|
+
SeqNum = class SeqNum extends S2Error {
|
|
36920
37299
|
seqNumMismatch;
|
|
36921
37300
|
data$;
|
|
36922
|
-
constructor(err) {
|
|
37301
|
+
constructor(err, httpMeta) {
|
|
36923
37302
|
const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
|
|
36924
|
-
super(message);
|
|
37303
|
+
super(message, httpMeta);
|
|
36925
37304
|
this.data$ = err;
|
|
36926
37305
|
this.seqNumMismatch = err.seqNumMismatch;
|
|
36927
37306
|
this.name = "SeqNum";
|
|
36928
37307
|
}
|
|
36929
37308
|
};
|
|
36930
|
-
FencingToken = class FencingToken extends
|
|
37309
|
+
FencingToken = class FencingToken extends S2Error {
|
|
36931
37310
|
fencingTokenMismatch;
|
|
36932
37311
|
data$;
|
|
36933
|
-
constructor(err) {
|
|
37312
|
+
constructor(err, httpMeta) {
|
|
36934
37313
|
const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
|
|
36935
|
-
super(message);
|
|
37314
|
+
super(message, httpMeta);
|
|
36936
37315
|
this.data$ = err;
|
|
36937
37316
|
this.fencingTokenMismatch = err.fencingTokenMismatch;
|
|
36938
37317
|
this.name = "FencingToken";
|
|
36939
37318
|
}
|
|
36940
37319
|
};
|
|
36941
37320
|
SeqNum$inboundSchema = objectType({
|
|
36942
|
-
seq_num_mismatch: numberType().int()
|
|
37321
|
+
seq_num_mismatch: numberType().int(),
|
|
37322
|
+
request$: instanceOfType(Request),
|
|
37323
|
+
response$: instanceOfType(Response),
|
|
37324
|
+
body$: stringType()
|
|
36943
37325
|
}).transform((v2) => {
|
|
36944
37326
|
const remapped = remap(v2, {
|
|
36945
37327
|
seq_num_mismatch: "seqNumMismatch"
|
|
36946
37328
|
});
|
|
36947
|
-
return new SeqNum(remapped
|
|
37329
|
+
return new SeqNum(remapped, {
|
|
37330
|
+
request: v2.request$,
|
|
37331
|
+
response: v2.response$,
|
|
37332
|
+
body: v2.body$
|
|
37333
|
+
});
|
|
36948
37334
|
});
|
|
36949
37335
|
SeqNum$outboundSchema = instanceOfType(SeqNum).transform((v2) => v2.data$).pipe(objectType({
|
|
36950
37336
|
seqNumMismatch: numberType().int()
|
|
@@ -36958,12 +37344,19 @@ var init_appendconditionfailed = __esm(() => {
|
|
|
36958
37344
|
SeqNum$.outboundSchema = SeqNum$outboundSchema;
|
|
36959
37345
|
})(SeqNum$ ||= {});
|
|
36960
37346
|
FencingToken$inboundSchema = objectType({
|
|
36961
|
-
fencing_token_mismatch: stringType()
|
|
37347
|
+
fencing_token_mismatch: stringType(),
|
|
37348
|
+
request$: instanceOfType(Request),
|
|
37349
|
+
response$: instanceOfType(Response),
|
|
37350
|
+
body$: stringType()
|
|
36962
37351
|
}).transform((v2) => {
|
|
36963
37352
|
const remapped = remap(v2, {
|
|
36964
37353
|
fencing_token_mismatch: "fencingTokenMismatch"
|
|
36965
37354
|
});
|
|
36966
|
-
return new FencingToken(remapped
|
|
37355
|
+
return new FencingToken(remapped, {
|
|
37356
|
+
request: v2.request$,
|
|
37357
|
+
response: v2.response$,
|
|
37358
|
+
body: v2.body$
|
|
37359
|
+
});
|
|
36967
37360
|
});
|
|
36968
37361
|
FencingToken$outboundSchema = instanceOfType(FencingToken).transform((v2) => v2.data$).pipe(objectType({
|
|
36969
37362
|
fencingTokenMismatch: stringType()
|
|
@@ -36994,12 +37387,13 @@ var init_appendconditionfailed = __esm(() => {
|
|
|
36994
37387
|
var ErrorResponse, ErrorResponse$inboundSchema, ErrorResponse$outboundSchema, ErrorResponse$;
|
|
36995
37388
|
var init_errorresponse = __esm(() => {
|
|
36996
37389
|
init_esm();
|
|
36997
|
-
|
|
37390
|
+
init_s2error();
|
|
37391
|
+
ErrorResponse = class ErrorResponse extends S2Error {
|
|
36998
37392
|
code;
|
|
36999
37393
|
data$;
|
|
37000
|
-
constructor(err) {
|
|
37394
|
+
constructor(err, httpMeta) {
|
|
37001
37395
|
const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
|
|
37002
|
-
super(message);
|
|
37396
|
+
super(message, httpMeta);
|
|
37003
37397
|
this.data$ = err;
|
|
37004
37398
|
if (err.code != null)
|
|
37005
37399
|
this.code = err.code;
|
|
@@ -37008,9 +37402,16 @@ var init_errorresponse = __esm(() => {
|
|
|
37008
37402
|
};
|
|
37009
37403
|
ErrorResponse$inboundSchema = objectType({
|
|
37010
37404
|
code: nullableType(stringType()).optional(),
|
|
37011
|
-
message: stringType()
|
|
37405
|
+
message: stringType(),
|
|
37406
|
+
request$: instanceOfType(Request),
|
|
37407
|
+
response$: instanceOfType(Response),
|
|
37408
|
+
body$: stringType()
|
|
37012
37409
|
}).transform((v2) => {
|
|
37013
|
-
return new ErrorResponse(v2
|
|
37410
|
+
return new ErrorResponse(v2, {
|
|
37411
|
+
request: v2.request$,
|
|
37412
|
+
response: v2.response$,
|
|
37413
|
+
body: v2.body$
|
|
37414
|
+
});
|
|
37014
37415
|
});
|
|
37015
37416
|
ErrorResponse$outboundSchema = instanceOfType(ErrorResponse).transform((v2) => v2.data$).pipe(objectType({
|
|
37016
37417
|
code: nullableType(stringType()).optional(),
|
|
@@ -37023,27 +37424,35 @@ var init_errorresponse = __esm(() => {
|
|
|
37023
37424
|
});
|
|
37024
37425
|
|
|
37025
37426
|
// src/models/errors/tailresponse.ts
|
|
37026
|
-
var
|
|
37427
|
+
var TailResponse2, TailResponse$inboundSchema2, TailResponse$outboundSchema2, TailResponse$2;
|
|
37027
37428
|
var init_tailresponse2 = __esm(() => {
|
|
37028
37429
|
init_esm();
|
|
37029
37430
|
init_components();
|
|
37030
|
-
|
|
37431
|
+
init_s2error();
|
|
37432
|
+
TailResponse2 = class TailResponse2 extends S2Error {
|
|
37031
37433
|
tail;
|
|
37032
37434
|
data$;
|
|
37033
|
-
constructor(err) {
|
|
37435
|
+
constructor(err, httpMeta) {
|
|
37034
37436
|
const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
|
|
37035
|
-
super(message);
|
|
37437
|
+
super(message, httpMeta);
|
|
37036
37438
|
this.data$ = err;
|
|
37037
37439
|
this.tail = err.tail;
|
|
37038
37440
|
this.name = "TailResponse";
|
|
37039
37441
|
}
|
|
37040
37442
|
};
|
|
37041
37443
|
TailResponse$inboundSchema2 = objectType({
|
|
37042
|
-
tail: StreamPosition$inboundSchema
|
|
37444
|
+
tail: StreamPosition$inboundSchema,
|
|
37445
|
+
request$: instanceOfType(Request),
|
|
37446
|
+
response$: instanceOfType(Response),
|
|
37447
|
+
body$: stringType()
|
|
37043
37448
|
}).transform((v2) => {
|
|
37044
|
-
return new
|
|
37449
|
+
return new TailResponse2(v2, {
|
|
37450
|
+
request: v2.request$,
|
|
37451
|
+
response: v2.response$,
|
|
37452
|
+
body: v2.body$
|
|
37453
|
+
});
|
|
37045
37454
|
});
|
|
37046
|
-
TailResponse$outboundSchema2 = instanceOfType(
|
|
37455
|
+
TailResponse$outboundSchema2 = instanceOfType(TailResponse2).transform((v2) => v2.data$).pipe(objectType({
|
|
37047
37456
|
tail: StreamPosition$outboundSchema
|
|
37048
37457
|
}));
|
|
37049
37458
|
((TailResponse$) => {
|
|
@@ -37058,6 +37467,7 @@ var init_errors2 = __esm(() => {
|
|
|
37058
37467
|
init_appendconditionfailed();
|
|
37059
37468
|
init_errorresponse();
|
|
37060
37469
|
init_httpclienterrors();
|
|
37470
|
+
init_responsevalidationerror();
|
|
37061
37471
|
init_sdkvalidationerror();
|
|
37062
37472
|
init_tailresponse2();
|
|
37063
37473
|
});
|
|
@@ -37108,6 +37518,7 @@ async function $do(client, request, options) {
|
|
|
37108
37518
|
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
37109
37519
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
37110
37520
|
const context = {
|
|
37521
|
+
options: client._options,
|
|
37111
37522
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
37112
37523
|
operationID: "issue_access_token",
|
|
37113
37524
|
oAuth2Scopes: [],
|
|
@@ -37123,6 +37534,7 @@ async function $do(client, request, options) {
|
|
|
37123
37534
|
path,
|
|
37124
37535
|
headers,
|
|
37125
37536
|
body,
|
|
37537
|
+
userAgent: client._options.userAgent,
|
|
37126
37538
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
37127
37539
|
}, options);
|
|
37128
37540
|
if (!requestRes.ok) {
|
|
@@ -37142,7 +37554,7 @@ async function $do(client, request, options) {
|
|
|
37142
37554
|
const responseFields = {
|
|
37143
37555
|
HttpMeta: { Response: response, Request: req }
|
|
37144
37556
|
};
|
|
37145
|
-
const [result] = await match(json(201, IssueAccessTokenResponse$inboundSchema), jsonErr([400, 403, 409], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
37557
|
+
const [result] = await match(json(201, IssueAccessTokenResponse$inboundSchema), jsonErr([400, 403, 409], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
37146
37558
|
if (!result.ok) {
|
|
37147
37559
|
return [result, { status: "complete", request: req, response }];
|
|
37148
37560
|
}
|
|
@@ -37188,6 +37600,29 @@ var init_accessTokensIssueAccessToken2 = __esm(() => {
|
|
|
37188
37600
|
};
|
|
37189
37601
|
});
|
|
37190
37602
|
|
|
37603
|
+
// src/models/operations/accountmetrics.ts
|
|
37604
|
+
var AccountMetricsRequest$inboundSchema, AccountMetricsRequest$outboundSchema, AccountMetricsRequest$;
|
|
37605
|
+
var init_accountmetrics = __esm(() => {
|
|
37606
|
+
init_esm();
|
|
37607
|
+
init_components();
|
|
37608
|
+
AccountMetricsRequest$inboundSchema = objectType({
|
|
37609
|
+
set: AccountMetricSet$inboundSchema,
|
|
37610
|
+
start: numberType().int().optional(),
|
|
37611
|
+
end: numberType().int().optional(),
|
|
37612
|
+
interval: TimeseriesInterval$inboundSchema.optional()
|
|
37613
|
+
});
|
|
37614
|
+
AccountMetricsRequest$outboundSchema = objectType({
|
|
37615
|
+
set: AccountMetricSet$outboundSchema,
|
|
37616
|
+
start: numberType().int().optional(),
|
|
37617
|
+
end: numberType().int().optional(),
|
|
37618
|
+
interval: TimeseriesInterval$outboundSchema.optional()
|
|
37619
|
+
});
|
|
37620
|
+
((AccountMetricsRequest$) => {
|
|
37621
|
+
AccountMetricsRequest$.inboundSchema = AccountMetricsRequest$inboundSchema;
|
|
37622
|
+
AccountMetricsRequest$.outboundSchema = AccountMetricsRequest$outboundSchema;
|
|
37623
|
+
})(AccountMetricsRequest$ ||= {});
|
|
37624
|
+
});
|
|
37625
|
+
|
|
37191
37626
|
// src/models/operations/append.ts
|
|
37192
37627
|
var AppendServerList, AppendRequest$inboundSchema, AppendRequest$outboundSchema, AppendRequest$;
|
|
37193
37628
|
var init_append = __esm(() => {
|
|
@@ -37227,6 +37662,31 @@ var init_append = __esm(() => {
|
|
|
37227
37662
|
})(AppendRequest$ ||= {});
|
|
37228
37663
|
});
|
|
37229
37664
|
|
|
37665
|
+
// src/models/operations/basinmetrics.ts
|
|
37666
|
+
var BasinMetricsRequest$inboundSchema, BasinMetricsRequest$outboundSchema, BasinMetricsRequest$;
|
|
37667
|
+
var init_basinmetrics = __esm(() => {
|
|
37668
|
+
init_esm();
|
|
37669
|
+
init_components();
|
|
37670
|
+
BasinMetricsRequest$inboundSchema = objectType({
|
|
37671
|
+
set: BasinMetricSet$inboundSchema,
|
|
37672
|
+
start: numberType().int().optional(),
|
|
37673
|
+
end: numberType().int().optional(),
|
|
37674
|
+
interval: TimeseriesInterval$inboundSchema.optional(),
|
|
37675
|
+
basin: stringType()
|
|
37676
|
+
});
|
|
37677
|
+
BasinMetricsRequest$outboundSchema = objectType({
|
|
37678
|
+
set: BasinMetricSet$outboundSchema,
|
|
37679
|
+
start: numberType().int().optional(),
|
|
37680
|
+
end: numberType().int().optional(),
|
|
37681
|
+
interval: TimeseriesInterval$outboundSchema.optional(),
|
|
37682
|
+
basin: stringType()
|
|
37683
|
+
});
|
|
37684
|
+
((BasinMetricsRequest$) => {
|
|
37685
|
+
BasinMetricsRequest$.inboundSchema = BasinMetricsRequest$inboundSchema;
|
|
37686
|
+
BasinMetricsRequest$.outboundSchema = BasinMetricsRequest$outboundSchema;
|
|
37687
|
+
})(BasinMetricsRequest$ ||= {});
|
|
37688
|
+
});
|
|
37689
|
+
|
|
37230
37690
|
// src/models/operations/checktail.ts
|
|
37231
37691
|
var CheckTailServerList, CheckTailRequest$inboundSchema, CheckTailRequest$outboundSchema, CheckTailRequest$;
|
|
37232
37692
|
var init_checktail = __esm(() => {
|
|
@@ -37603,6 +38063,7 @@ var init_read = __esm(() => {
|
|
|
37603
38063
|
tail_offset: numberType().int().optional(),
|
|
37604
38064
|
count: numberType().int().optional(),
|
|
37605
38065
|
bytes: numberType().int().optional(),
|
|
38066
|
+
until: numberType().int().optional(),
|
|
37606
38067
|
"s2-basin": stringType()
|
|
37607
38068
|
}).transform((v2) => {
|
|
37608
38069
|
return remap(v2, {
|
|
@@ -37620,6 +38081,7 @@ var init_read = __esm(() => {
|
|
|
37620
38081
|
tailOffset: numberType().int().optional(),
|
|
37621
38082
|
count: numberType().int().optional(),
|
|
37622
38083
|
bytes: numberType().int().optional(),
|
|
38084
|
+
until: numberType().int().optional(),
|
|
37623
38085
|
s2Basin: stringType()
|
|
37624
38086
|
}).transform((v2) => {
|
|
37625
38087
|
return remap(v2, {
|
|
@@ -37731,9 +38193,29 @@ var init_revokeaccesstoken = __esm(() => {
|
|
|
37731
38193
|
})(RevokeAccessTokenRequest$ ||= {});
|
|
37732
38194
|
});
|
|
37733
38195
|
|
|
38196
|
+
// src/models/operations/streammetrics.ts
|
|
38197
|
+
var StreamMetricsRequest$inboundSchema, StreamMetricsRequest$outboundSchema, StreamMetricsRequest$;
|
|
38198
|
+
var init_streammetrics = __esm(() => {
|
|
38199
|
+
init_esm();
|
|
38200
|
+
StreamMetricsRequest$inboundSchema = objectType({
|
|
38201
|
+
basin: stringType(),
|
|
38202
|
+
stream: stringType()
|
|
38203
|
+
});
|
|
38204
|
+
StreamMetricsRequest$outboundSchema = objectType({
|
|
38205
|
+
basin: stringType(),
|
|
38206
|
+
stream: stringType()
|
|
38207
|
+
});
|
|
38208
|
+
((StreamMetricsRequest$) => {
|
|
38209
|
+
StreamMetricsRequest$.inboundSchema = StreamMetricsRequest$inboundSchema;
|
|
38210
|
+
StreamMetricsRequest$.outboundSchema = StreamMetricsRequest$outboundSchema;
|
|
38211
|
+
})(StreamMetricsRequest$ ||= {});
|
|
38212
|
+
});
|
|
38213
|
+
|
|
37734
38214
|
// src/models/operations/index.ts
|
|
37735
38215
|
var init_operations = __esm(() => {
|
|
38216
|
+
init_accountmetrics();
|
|
37736
38217
|
init_append();
|
|
38218
|
+
init_basinmetrics();
|
|
37737
38219
|
init_checktail();
|
|
37738
38220
|
init_createorreconfigurebasin();
|
|
37739
38221
|
init_createorreconfigurestream();
|
|
@@ -37749,6 +38231,7 @@ var init_operations = __esm(() => {
|
|
|
37749
38231
|
init_reconfigurebasin();
|
|
37750
38232
|
init_reconfigurestream();
|
|
37751
38233
|
init_revokeaccesstoken();
|
|
38234
|
+
init_streammetrics();
|
|
37752
38235
|
});
|
|
37753
38236
|
|
|
37754
38237
|
// src/funcs/accessTokensListAccessTokens.ts
|
|
@@ -37775,6 +38258,7 @@ async function $do2(client, request, options) {
|
|
|
37775
38258
|
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
37776
38259
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
37777
38260
|
const context = {
|
|
38261
|
+
options: client._options,
|
|
37778
38262
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
37779
38263
|
operationID: "list_access_tokens",
|
|
37780
38264
|
oAuth2Scopes: [],
|
|
@@ -37791,6 +38275,7 @@ async function $do2(client, request, options) {
|
|
|
37791
38275
|
headers,
|
|
37792
38276
|
query,
|
|
37793
38277
|
body,
|
|
38278
|
+
userAgent: client._options.userAgent,
|
|
37794
38279
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
37795
38280
|
}, options);
|
|
37796
38281
|
if (!requestRes.ok) {
|
|
@@ -37810,7 +38295,7 @@ async function $do2(client, request, options) {
|
|
|
37810
38295
|
const responseFields = {
|
|
37811
38296
|
HttpMeta: { Response: response, Request: req }
|
|
37812
38297
|
};
|
|
37813
|
-
const [result] = await match(json(200, ListAccessTokensResponse$inboundSchema), jsonErr([400, 403], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
38298
|
+
const [result] = await match(json(200, ListAccessTokensResponse$inboundSchema), jsonErr([400, 403], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
37814
38299
|
if (!result.ok) {
|
|
37815
38300
|
return [result, { status: "complete", request: req, response }];
|
|
37816
38301
|
}
|
|
@@ -37882,6 +38367,7 @@ async function $do3(client, request, options) {
|
|
|
37882
38367
|
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
37883
38368
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
37884
38369
|
const context = {
|
|
38370
|
+
options: client._options,
|
|
37885
38371
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
37886
38372
|
operationID: "revoke_access_token",
|
|
37887
38373
|
oAuth2Scopes: [],
|
|
@@ -37897,6 +38383,7 @@ async function $do3(client, request, options) {
|
|
|
37897
38383
|
path,
|
|
37898
38384
|
headers,
|
|
37899
38385
|
body,
|
|
38386
|
+
userAgent: client._options.userAgent,
|
|
37900
38387
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
37901
38388
|
}, options);
|
|
37902
38389
|
if (!requestRes.ok) {
|
|
@@ -37916,7 +38403,7 @@ async function $do3(client, request, options) {
|
|
|
37916
38403
|
const responseFields = {
|
|
37917
38404
|
HttpMeta: { Response: response, Request: req }
|
|
37918
38405
|
};
|
|
37919
|
-
const [result] = await match(nil(200, voidType()), jsonErr([400, 403], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
38406
|
+
const [result] = await match(nil(200, voidType()), jsonErr([400, 403], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
37920
38407
|
if (!result.ok) {
|
|
37921
38408
|
return [result, { status: "complete", request: req, response }];
|
|
37922
38409
|
}
|
|
@@ -37982,6 +38469,7 @@ async function $do4(client, request, options) {
|
|
|
37982
38469
|
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
37983
38470
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
37984
38471
|
const context = {
|
|
38472
|
+
options: client._options,
|
|
37985
38473
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
37986
38474
|
operationID: "create_basin",
|
|
37987
38475
|
oAuth2Scopes: [],
|
|
@@ -37997,6 +38485,7 @@ async function $do4(client, request, options) {
|
|
|
37997
38485
|
path,
|
|
37998
38486
|
headers,
|
|
37999
38487
|
body,
|
|
38488
|
+
userAgent: client._options.userAgent,
|
|
38000
38489
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
38001
38490
|
}, options);
|
|
38002
38491
|
if (!requestRes.ok) {
|
|
@@ -38016,7 +38505,7 @@ async function $do4(client, request, options) {
|
|
|
38016
38505
|
const responseFields = {
|
|
38017
38506
|
HttpMeta: { Response: response, Request: req }
|
|
38018
38507
|
};
|
|
38019
|
-
const [result] = await match(json(201, BasinInfo$inboundSchema), jsonErr([400, 401, 403, 409], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
38508
|
+
const [result] = await match(json(201, BasinInfo$inboundSchema), jsonErr([400, 401, 403, 409], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
38020
38509
|
if (!result.ok) {
|
|
38021
38510
|
return [result, { status: "complete", request: req, response }];
|
|
38022
38511
|
}
|
|
@@ -38091,6 +38580,7 @@ async function $do5(client, request, options) {
|
|
|
38091
38580
|
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
38092
38581
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
38093
38582
|
const context = {
|
|
38583
|
+
options: client._options,
|
|
38094
38584
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
38095
38585
|
operationID: "create_or_reconfigure_basin",
|
|
38096
38586
|
oAuth2Scopes: [],
|
|
@@ -38106,6 +38596,7 @@ async function $do5(client, request, options) {
|
|
|
38106
38596
|
path,
|
|
38107
38597
|
headers,
|
|
38108
38598
|
body,
|
|
38599
|
+
userAgent: client._options.userAgent,
|
|
38109
38600
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
38110
38601
|
}, options);
|
|
38111
38602
|
if (!requestRes.ok) {
|
|
@@ -38125,7 +38616,7 @@ async function $do5(client, request, options) {
|
|
|
38125
38616
|
const responseFields = {
|
|
38126
38617
|
HttpMeta: { Response: response, Request: req }
|
|
38127
38618
|
};
|
|
38128
|
-
const [result] = await match(json(201, BasinInfo$inboundSchema.optional()), nil(204, BasinInfo$inboundSchema.optional()), jsonErr(400, ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
38619
|
+
const [result] = await match(json(201, BasinInfo$inboundSchema.optional()), nil(204, BasinInfo$inboundSchema.optional()), jsonErr(400, ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
38129
38620
|
if (!result.ok) {
|
|
38130
38621
|
return [result, { status: "complete", request: req, response }];
|
|
38131
38622
|
}
|
|
@@ -38197,6 +38688,7 @@ async function $do6(client, request, options) {
|
|
|
38197
38688
|
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
38198
38689
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
38199
38690
|
const context = {
|
|
38691
|
+
options: client._options,
|
|
38200
38692
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
38201
38693
|
operationID: "delete_basin",
|
|
38202
38694
|
oAuth2Scopes: [],
|
|
@@ -38212,6 +38704,7 @@ async function $do6(client, request, options) {
|
|
|
38212
38704
|
path,
|
|
38213
38705
|
headers,
|
|
38214
38706
|
body,
|
|
38707
|
+
userAgent: client._options.userAgent,
|
|
38215
38708
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
38216
38709
|
}, options);
|
|
38217
38710
|
if (!requestRes.ok) {
|
|
@@ -38231,7 +38724,7 @@ async function $do6(client, request, options) {
|
|
|
38231
38724
|
const responseFields = {
|
|
38232
38725
|
HttpMeta: { Response: response, Request: req }
|
|
38233
38726
|
};
|
|
38234
|
-
const [result] = await match(nil(202, voidType()), jsonErr([400, 401, 403, 404], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
38727
|
+
const [result] = await match(nil(202, voidType()), jsonErr([400, 401, 403, 404], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
38235
38728
|
if (!result.ok) {
|
|
38236
38729
|
return [result, { status: "complete", request: req, response }];
|
|
38237
38730
|
}
|
|
@@ -38302,6 +38795,7 @@ async function $do7(client, request, options) {
|
|
|
38302
38795
|
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
38303
38796
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
38304
38797
|
const context = {
|
|
38798
|
+
options: client._options,
|
|
38305
38799
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
38306
38800
|
operationID: "get_basin_config",
|
|
38307
38801
|
oAuth2Scopes: [],
|
|
@@ -38317,6 +38811,7 @@ async function $do7(client, request, options) {
|
|
|
38317
38811
|
path,
|
|
38318
38812
|
headers,
|
|
38319
38813
|
body,
|
|
38814
|
+
userAgent: client._options.userAgent,
|
|
38320
38815
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
38321
38816
|
}, options);
|
|
38322
38817
|
if (!requestRes.ok) {
|
|
@@ -38336,7 +38831,7 @@ async function $do7(client, request, options) {
|
|
|
38336
38831
|
const responseFields = {
|
|
38337
38832
|
HttpMeta: { Response: response, Request: req }
|
|
38338
38833
|
};
|
|
38339
|
-
const [result] = await match(json(200, BasinConfig$inboundSchema), jsonErr([400, 403, 404], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
38834
|
+
const [result] = await match(json(200, BasinConfig$inboundSchema), jsonErr([400, 403, 404], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
38340
38835
|
if (!result.ok) {
|
|
38341
38836
|
return [result, { status: "complete", request: req, response }];
|
|
38342
38837
|
}
|
|
@@ -42226,6 +42721,7 @@ async function $do8(client, request, options) {
|
|
|
42226
42721
|
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
42227
42722
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
42228
42723
|
const context = {
|
|
42724
|
+
options: client._options,
|
|
42229
42725
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
42230
42726
|
operationID: "list_basins",
|
|
42231
42727
|
oAuth2Scopes: [],
|
|
@@ -42242,6 +42738,7 @@ async function $do8(client, request, options) {
|
|
|
42242
42738
|
headers,
|
|
42243
42739
|
query: query2,
|
|
42244
42740
|
body,
|
|
42741
|
+
userAgent: client._options.userAgent,
|
|
42245
42742
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
42246
42743
|
}, options);
|
|
42247
42744
|
if (!requestRes.ok) {
|
|
@@ -42261,7 +42758,7 @@ async function $do8(client, request, options) {
|
|
|
42261
42758
|
const responseFields = {
|
|
42262
42759
|
HttpMeta: { Response: response, Request: req }
|
|
42263
42760
|
};
|
|
42264
|
-
const [result, raw] = await match(json(200, ListBasinsResponse$inboundSchema2, { key: "Result" }), jsonErr([400, 403], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
42761
|
+
const [result, raw] = await match(json(200, ListBasinsResponse$inboundSchema2, { key: "Result" }), jsonErr([400, 403], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
42265
42762
|
if (!result.ok) {
|
|
42266
42763
|
return [haltIterator(result), {
|
|
42267
42764
|
status: "complete",
|
|
@@ -42357,6 +42854,7 @@ async function $do9(client, request, options) {
|
|
|
42357
42854
|
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
42358
42855
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
42359
42856
|
const context = {
|
|
42857
|
+
options: client._options,
|
|
42360
42858
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
42361
42859
|
operationID: "reconfigure_basin",
|
|
42362
42860
|
oAuth2Scopes: [],
|
|
@@ -42372,6 +42870,7 @@ async function $do9(client, request, options) {
|
|
|
42372
42870
|
path,
|
|
42373
42871
|
headers,
|
|
42374
42872
|
body,
|
|
42873
|
+
userAgent: client._options.userAgent,
|
|
42375
42874
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
42376
42875
|
}, options);
|
|
42377
42876
|
if (!requestRes.ok) {
|
|
@@ -42391,7 +42890,7 @@ async function $do9(client, request, options) {
|
|
|
42391
42890
|
const responseFields = {
|
|
42392
42891
|
HttpMeta: { Response: response, Request: req }
|
|
42393
42892
|
};
|
|
42394
|
-
const [result] = await match(json(200, BasinConfig$inboundSchema), jsonErr([400, 403, 404], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
42893
|
+
const [result] = await match(json(200, BasinConfig$inboundSchema), jsonErr([400, 403, 404], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
42395
42894
|
if (!result.ok) {
|
|
42396
42895
|
return [result, { status: "complete", request: req, response }];
|
|
42397
42896
|
}
|
|
@@ -42438,11 +42937,347 @@ var init_basinsReconfigureBasin2 = __esm(() => {
|
|
|
42438
42937
|
};
|
|
42439
42938
|
});
|
|
42440
42939
|
|
|
42441
|
-
// src/funcs/
|
|
42442
|
-
function
|
|
42940
|
+
// src/funcs/metricsAccountMetrics.ts
|
|
42941
|
+
function metricsAccountMetrics(client, request, options) {
|
|
42443
42942
|
return new APIPromise($do10(client, request, options));
|
|
42444
42943
|
}
|
|
42445
42944
|
async function $do10(client, request, options) {
|
|
42945
|
+
const parsed = safeParse(request, (value2) => AccountMetricsRequest$outboundSchema.parse(value2), "Input validation failed");
|
|
42946
|
+
if (!parsed.ok) {
|
|
42947
|
+
return [parsed, { status: "invalid" }];
|
|
42948
|
+
}
|
|
42949
|
+
const payload = parsed.value;
|
|
42950
|
+
const body = null;
|
|
42951
|
+
const path = pathToFunc("/metrics")();
|
|
42952
|
+
const query2 = encodeFormQuery({
|
|
42953
|
+
end: payload.end,
|
|
42954
|
+
interval: payload.interval,
|
|
42955
|
+
set: payload.set,
|
|
42956
|
+
start: payload.start
|
|
42957
|
+
});
|
|
42958
|
+
const headers = new Headers(compactMap({
|
|
42959
|
+
Accept: "application/json"
|
|
42960
|
+
}));
|
|
42961
|
+
const secConfig = await extractSecurity(client._options.accessToken);
|
|
42962
|
+
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
42963
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
42964
|
+
const context = {
|
|
42965
|
+
options: client._options,
|
|
42966
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
42967
|
+
operationID: "account_metrics",
|
|
42968
|
+
oAuth2Scopes: [],
|
|
42969
|
+
resolvedSecurity: requestSecurity,
|
|
42970
|
+
securitySource: client._options.accessToken,
|
|
42971
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
42972
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
42973
|
+
};
|
|
42974
|
+
const requestRes = client._createRequest(context, {
|
|
42975
|
+
security: requestSecurity,
|
|
42976
|
+
method: "GET",
|
|
42977
|
+
baseURL: options?.serverURL,
|
|
42978
|
+
path,
|
|
42979
|
+
headers,
|
|
42980
|
+
query: query2,
|
|
42981
|
+
body,
|
|
42982
|
+
userAgent: client._options.userAgent,
|
|
42983
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
42984
|
+
}, options);
|
|
42985
|
+
if (!requestRes.ok) {
|
|
42986
|
+
return [requestRes, { status: "invalid" }];
|
|
42987
|
+
}
|
|
42988
|
+
const req = requestRes.value;
|
|
42989
|
+
const doResult = await client._do(req, {
|
|
42990
|
+
context,
|
|
42991
|
+
errorCodes: ["400", "403", "4XX", "5XX"],
|
|
42992
|
+
retryConfig: context.retryConfig,
|
|
42993
|
+
retryCodes: context.retryCodes
|
|
42994
|
+
});
|
|
42995
|
+
if (!doResult.ok) {
|
|
42996
|
+
return [doResult, { status: "request-error", request: req }];
|
|
42997
|
+
}
|
|
42998
|
+
const response = doResult.value;
|
|
42999
|
+
const responseFields = {
|
|
43000
|
+
HttpMeta: { Response: response, Request: req }
|
|
43001
|
+
};
|
|
43002
|
+
const [result] = await match(json(200, MetricSetResponse$inboundSchema), jsonErr([400, 403], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
43003
|
+
if (!result.ok) {
|
|
43004
|
+
return [result, { status: "complete", request: req, response }];
|
|
43005
|
+
}
|
|
43006
|
+
return [result, { status: "complete", request: req, response }];
|
|
43007
|
+
}
|
|
43008
|
+
var init_metricsAccountMetrics = __esm(() => {
|
|
43009
|
+
init_encodings();
|
|
43010
|
+
init_matchers();
|
|
43011
|
+
init_primitives();
|
|
43012
|
+
init_schemas();
|
|
43013
|
+
init_security();
|
|
43014
|
+
init_url();
|
|
43015
|
+
init_components();
|
|
43016
|
+
init_errors2();
|
|
43017
|
+
init_operations();
|
|
43018
|
+
init_async();
|
|
43019
|
+
});
|
|
43020
|
+
|
|
43021
|
+
// src/mcp-server/tools/metricsAccountMetrics.ts
|
|
43022
|
+
var args10, tool$metricsAccountMetrics;
|
|
43023
|
+
var init_metricsAccountMetrics2 = __esm(() => {
|
|
43024
|
+
init_metricsAccountMetrics();
|
|
43025
|
+
init_operations();
|
|
43026
|
+
init_tools();
|
|
43027
|
+
args10 = {
|
|
43028
|
+
request: AccountMetricsRequest$inboundSchema
|
|
43029
|
+
};
|
|
43030
|
+
tool$metricsAccountMetrics = {
|
|
43031
|
+
name: "metrics-account-metrics",
|
|
43032
|
+
description: `Get account level metrics.`,
|
|
43033
|
+
scopes: ["read", "read", "read"],
|
|
43034
|
+
args: args10,
|
|
43035
|
+
tool: async (client, args11, ctx) => {
|
|
43036
|
+
const [result, apiCall] = await metricsAccountMetrics(client, args11.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43037
|
+
if (!result.ok) {
|
|
43038
|
+
return {
|
|
43039
|
+
content: [{ type: "text", text: result.error.message }],
|
|
43040
|
+
isError: true
|
|
43041
|
+
};
|
|
43042
|
+
}
|
|
43043
|
+
const value2 = result.value;
|
|
43044
|
+
return formatResult(value2, apiCall);
|
|
43045
|
+
}
|
|
43046
|
+
};
|
|
43047
|
+
});
|
|
43048
|
+
|
|
43049
|
+
// src/funcs/metricsBasinMetrics.ts
|
|
43050
|
+
function metricsBasinMetrics(client, request, options) {
|
|
43051
|
+
return new APIPromise($do11(client, request, options));
|
|
43052
|
+
}
|
|
43053
|
+
async function $do11(client, request, options) {
|
|
43054
|
+
const parsed = safeParse(request, (value2) => BasinMetricsRequest$outboundSchema.parse(value2), "Input validation failed");
|
|
43055
|
+
if (!parsed.ok) {
|
|
43056
|
+
return [parsed, { status: "invalid" }];
|
|
43057
|
+
}
|
|
43058
|
+
const payload = parsed.value;
|
|
43059
|
+
const body = null;
|
|
43060
|
+
const pathParams = {
|
|
43061
|
+
basin: encodeSimple("basin", payload.basin, {
|
|
43062
|
+
explode: false,
|
|
43063
|
+
charEncoding: "percent"
|
|
43064
|
+
})
|
|
43065
|
+
};
|
|
43066
|
+
const path = pathToFunc("/metrics/{basin}")(pathParams);
|
|
43067
|
+
const query2 = encodeFormQuery({
|
|
43068
|
+
end: payload.end,
|
|
43069
|
+
interval: payload.interval,
|
|
43070
|
+
set: payload.set,
|
|
43071
|
+
start: payload.start
|
|
43072
|
+
});
|
|
43073
|
+
const headers = new Headers(compactMap({
|
|
43074
|
+
Accept: "application/json"
|
|
43075
|
+
}));
|
|
43076
|
+
const secConfig = await extractSecurity(client._options.accessToken);
|
|
43077
|
+
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
43078
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
43079
|
+
const context = {
|
|
43080
|
+
options: client._options,
|
|
43081
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
43082
|
+
operationID: "basin_metrics",
|
|
43083
|
+
oAuth2Scopes: [],
|
|
43084
|
+
resolvedSecurity: requestSecurity,
|
|
43085
|
+
securitySource: client._options.accessToken,
|
|
43086
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
43087
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
43088
|
+
};
|
|
43089
|
+
const requestRes = client._createRequest(context, {
|
|
43090
|
+
security: requestSecurity,
|
|
43091
|
+
method: "GET",
|
|
43092
|
+
baseURL: options?.serverURL,
|
|
43093
|
+
path,
|
|
43094
|
+
headers,
|
|
43095
|
+
query: query2,
|
|
43096
|
+
body,
|
|
43097
|
+
userAgent: client._options.userAgent,
|
|
43098
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
43099
|
+
}, options);
|
|
43100
|
+
if (!requestRes.ok) {
|
|
43101
|
+
return [requestRes, { status: "invalid" }];
|
|
43102
|
+
}
|
|
43103
|
+
const req = requestRes.value;
|
|
43104
|
+
const doResult = await client._do(req, {
|
|
43105
|
+
context,
|
|
43106
|
+
errorCodes: ["400", "403", "4XX", "5XX"],
|
|
43107
|
+
retryConfig: context.retryConfig,
|
|
43108
|
+
retryCodes: context.retryCodes
|
|
43109
|
+
});
|
|
43110
|
+
if (!doResult.ok) {
|
|
43111
|
+
return [doResult, { status: "request-error", request: req }];
|
|
43112
|
+
}
|
|
43113
|
+
const response = doResult.value;
|
|
43114
|
+
const responseFields = {
|
|
43115
|
+
HttpMeta: { Response: response, Request: req }
|
|
43116
|
+
};
|
|
43117
|
+
const [result] = await match(json(200, MetricSetResponse$inboundSchema), jsonErr([400, 403], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
43118
|
+
if (!result.ok) {
|
|
43119
|
+
return [result, { status: "complete", request: req, response }];
|
|
43120
|
+
}
|
|
43121
|
+
return [result, { status: "complete", request: req, response }];
|
|
43122
|
+
}
|
|
43123
|
+
var init_metricsBasinMetrics = __esm(() => {
|
|
43124
|
+
init_encodings();
|
|
43125
|
+
init_matchers();
|
|
43126
|
+
init_primitives();
|
|
43127
|
+
init_schemas();
|
|
43128
|
+
init_security();
|
|
43129
|
+
init_url();
|
|
43130
|
+
init_components();
|
|
43131
|
+
init_errors2();
|
|
43132
|
+
init_operations();
|
|
43133
|
+
init_async();
|
|
43134
|
+
});
|
|
43135
|
+
|
|
43136
|
+
// src/mcp-server/tools/metricsBasinMetrics.ts
|
|
43137
|
+
var args11, tool$metricsBasinMetrics;
|
|
43138
|
+
var init_metricsBasinMetrics2 = __esm(() => {
|
|
43139
|
+
init_metricsBasinMetrics();
|
|
43140
|
+
init_operations();
|
|
43141
|
+
init_tools();
|
|
43142
|
+
args11 = {
|
|
43143
|
+
request: BasinMetricsRequest$inboundSchema
|
|
43144
|
+
};
|
|
43145
|
+
tool$metricsBasinMetrics = {
|
|
43146
|
+
name: "metrics-basin-metrics",
|
|
43147
|
+
description: `Get metrics for a basin.`,
|
|
43148
|
+
scopes: ["read", "read", "read"],
|
|
43149
|
+
args: args11,
|
|
43150
|
+
tool: async (client, args12, ctx) => {
|
|
43151
|
+
const [result, apiCall] = await metricsBasinMetrics(client, args12.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43152
|
+
if (!result.ok) {
|
|
43153
|
+
return {
|
|
43154
|
+
content: [{ type: "text", text: result.error.message }],
|
|
43155
|
+
isError: true
|
|
43156
|
+
};
|
|
43157
|
+
}
|
|
43158
|
+
const value2 = result.value;
|
|
43159
|
+
return formatResult(value2, apiCall);
|
|
43160
|
+
}
|
|
43161
|
+
};
|
|
43162
|
+
});
|
|
43163
|
+
|
|
43164
|
+
// src/funcs/metricsStreamMetrics.ts
|
|
43165
|
+
function metricsStreamMetrics(client, request, options) {
|
|
43166
|
+
return new APIPromise($do12(client, request, options));
|
|
43167
|
+
}
|
|
43168
|
+
async function $do12(client, request, options) {
|
|
43169
|
+
const parsed = safeParse(request, (value2) => StreamMetricsRequest$outboundSchema.parse(value2), "Input validation failed");
|
|
43170
|
+
if (!parsed.ok) {
|
|
43171
|
+
return [parsed, { status: "invalid" }];
|
|
43172
|
+
}
|
|
43173
|
+
const payload = parsed.value;
|
|
43174
|
+
const body = null;
|
|
43175
|
+
const pathParams = {
|
|
43176
|
+
basin: encodeSimple("basin", payload.basin, {
|
|
43177
|
+
explode: false,
|
|
43178
|
+
charEncoding: "percent"
|
|
43179
|
+
}),
|
|
43180
|
+
stream: encodeSimple("stream", payload.stream, {
|
|
43181
|
+
explode: false,
|
|
43182
|
+
charEncoding: "percent"
|
|
43183
|
+
})
|
|
43184
|
+
};
|
|
43185
|
+
const path = pathToFunc("/metrics/{basin}/{stream}")(pathParams);
|
|
43186
|
+
const headers = new Headers(compactMap({
|
|
43187
|
+
Accept: "application/json"
|
|
43188
|
+
}));
|
|
43189
|
+
const secConfig = await extractSecurity(client._options.accessToken);
|
|
43190
|
+
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
43191
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
43192
|
+
const context = {
|
|
43193
|
+
options: client._options,
|
|
43194
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
43195
|
+
operationID: "stream_metrics",
|
|
43196
|
+
oAuth2Scopes: [],
|
|
43197
|
+
resolvedSecurity: requestSecurity,
|
|
43198
|
+
securitySource: client._options.accessToken,
|
|
43199
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
43200
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
43201
|
+
};
|
|
43202
|
+
const requestRes = client._createRequest(context, {
|
|
43203
|
+
security: requestSecurity,
|
|
43204
|
+
method: "GET",
|
|
43205
|
+
baseURL: options?.serverURL,
|
|
43206
|
+
path,
|
|
43207
|
+
headers,
|
|
43208
|
+
body,
|
|
43209
|
+
userAgent: client._options.userAgent,
|
|
43210
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
43211
|
+
}, options);
|
|
43212
|
+
if (!requestRes.ok) {
|
|
43213
|
+
return [requestRes, { status: "invalid" }];
|
|
43214
|
+
}
|
|
43215
|
+
const req = requestRes.value;
|
|
43216
|
+
const doResult = await client._do(req, {
|
|
43217
|
+
context,
|
|
43218
|
+
errorCodes: ["400", "403", "4XX", "5XX"],
|
|
43219
|
+
retryConfig: context.retryConfig,
|
|
43220
|
+
retryCodes: context.retryCodes
|
|
43221
|
+
});
|
|
43222
|
+
if (!doResult.ok) {
|
|
43223
|
+
return [doResult, { status: "request-error", request: req }];
|
|
43224
|
+
}
|
|
43225
|
+
const response = doResult.value;
|
|
43226
|
+
const responseFields = {
|
|
43227
|
+
HttpMeta: { Response: response, Request: req }
|
|
43228
|
+
};
|
|
43229
|
+
const [result] = await match(json(200, MetricSetResponse$inboundSchema), jsonErr([400, 403], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
43230
|
+
if (!result.ok) {
|
|
43231
|
+
return [result, { status: "complete", request: req, response }];
|
|
43232
|
+
}
|
|
43233
|
+
return [result, { status: "complete", request: req, response }];
|
|
43234
|
+
}
|
|
43235
|
+
var init_metricsStreamMetrics = __esm(() => {
|
|
43236
|
+
init_encodings();
|
|
43237
|
+
init_matchers();
|
|
43238
|
+
init_primitives();
|
|
43239
|
+
init_schemas();
|
|
43240
|
+
init_security();
|
|
43241
|
+
init_url();
|
|
43242
|
+
init_components();
|
|
43243
|
+
init_errors2();
|
|
43244
|
+
init_operations();
|
|
43245
|
+
init_async();
|
|
43246
|
+
});
|
|
43247
|
+
|
|
43248
|
+
// src/mcp-server/tools/metricsStreamMetrics.ts
|
|
43249
|
+
var args12, tool$metricsStreamMetrics;
|
|
43250
|
+
var init_metricsStreamMetrics2 = __esm(() => {
|
|
43251
|
+
init_metricsStreamMetrics();
|
|
43252
|
+
init_operations();
|
|
43253
|
+
init_tools();
|
|
43254
|
+
args12 = {
|
|
43255
|
+
request: StreamMetricsRequest$inboundSchema
|
|
43256
|
+
};
|
|
43257
|
+
tool$metricsStreamMetrics = {
|
|
43258
|
+
name: "metrics-stream-metrics",
|
|
43259
|
+
description: `Get metrics for a stream.`,
|
|
43260
|
+
scopes: ["read", "read", "read"],
|
|
43261
|
+
args: args12,
|
|
43262
|
+
tool: async (client, args13, ctx) => {
|
|
43263
|
+
const [result, apiCall] = await metricsStreamMetrics(client, args13.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43264
|
+
if (!result.ok) {
|
|
43265
|
+
return {
|
|
43266
|
+
content: [{ type: "text", text: result.error.message }],
|
|
43267
|
+
isError: true
|
|
43268
|
+
};
|
|
43269
|
+
}
|
|
43270
|
+
const value2 = result.value;
|
|
43271
|
+
return formatResult(value2, apiCall);
|
|
43272
|
+
}
|
|
43273
|
+
};
|
|
43274
|
+
});
|
|
43275
|
+
|
|
43276
|
+
// src/funcs/recordsAppend.ts
|
|
43277
|
+
function recordsAppend(client, request, options) {
|
|
43278
|
+
return new APIPromise($do13(client, request, options));
|
|
43279
|
+
}
|
|
43280
|
+
async function $do13(client, request, options) {
|
|
42446
43281
|
const parsed = safeParse(request, (value2) => AppendRequest$outboundSchema.parse(value2), "Input validation failed");
|
|
42447
43282
|
if (!parsed.ok) {
|
|
42448
43283
|
return [parsed, { status: "invalid" }];
|
|
@@ -42475,6 +43310,7 @@ async function $do10(client, request, options) {
|
|
|
42475
43310
|
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
42476
43311
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
42477
43312
|
const context = {
|
|
43313
|
+
options: client._options,
|
|
42478
43314
|
baseURL: baseURL ?? "",
|
|
42479
43315
|
operationID: "append",
|
|
42480
43316
|
oAuth2Scopes: [],
|
|
@@ -42490,6 +43326,7 @@ async function $do10(client, request, options) {
|
|
|
42490
43326
|
path,
|
|
42491
43327
|
headers,
|
|
42492
43328
|
body,
|
|
43329
|
+
userAgent: client._options.userAgent,
|
|
42493
43330
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
42494
43331
|
}, options);
|
|
42495
43332
|
if (!requestRes.ok) {
|
|
@@ -42509,7 +43346,7 @@ async function $do10(client, request, options) {
|
|
|
42509
43346
|
const responseFields = {
|
|
42510
43347
|
HttpMeta: { Response: response, Request: req }
|
|
42511
43348
|
};
|
|
42512
|
-
const [result] = await match(json(200, AppendAck$inboundSchema), jsonErr([400, 401, 404, 409], ErrorResponse$inboundSchema), jsonErr(412, AppendConditionFailed$inboundSchema), jsonErr(500, ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
43349
|
+
const [result] = await match(json(200, AppendAck$inboundSchema), jsonErr([400, 401, 404, 409], ErrorResponse$inboundSchema), jsonErr(412, AppendConditionFailed$inboundSchema), jsonErr(500, ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
42513
43350
|
if (!result.ok) {
|
|
42514
43351
|
return [result, { status: "complete", request: req, response }];
|
|
42515
43352
|
}
|
|
@@ -42530,12 +43367,12 @@ var init_recordsAppend = __esm(() => {
|
|
|
42530
43367
|
});
|
|
42531
43368
|
|
|
42532
43369
|
// src/mcp-server/tools/recordsAppend.ts
|
|
42533
|
-
var
|
|
43370
|
+
var args13, tool$recordsAppend;
|
|
42534
43371
|
var init_recordsAppend2 = __esm(() => {
|
|
42535
43372
|
init_recordsAppend();
|
|
42536
43373
|
init_operations();
|
|
42537
43374
|
init_tools();
|
|
42538
|
-
|
|
43375
|
+
args13 = {
|
|
42539
43376
|
request: AppendRequest$inboundSchema
|
|
42540
43377
|
};
|
|
42541
43378
|
tool$recordsAppend = {
|
|
@@ -42544,9 +43381,9 @@ var init_recordsAppend2 = __esm(() => {
|
|
|
42544
43381
|
|
|
42545
43382
|
Append a batch of records to a stream.`,
|
|
42546
43383
|
scopes: ["write", "write", "write"],
|
|
42547
|
-
args:
|
|
42548
|
-
tool: async (client,
|
|
42549
|
-
const [result, apiCall] = await recordsAppend(client,
|
|
43384
|
+
args: args13,
|
|
43385
|
+
tool: async (client, args14, ctx) => {
|
|
43386
|
+
const [result, apiCall] = await recordsAppend(client, args14.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42550
43387
|
if (!result.ok) {
|
|
42551
43388
|
return {
|
|
42552
43389
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -42561,9 +43398,9 @@ Append a batch of records to a stream.`,
|
|
|
42561
43398
|
|
|
42562
43399
|
// src/funcs/recordsCheckTail.ts
|
|
42563
43400
|
function recordsCheckTail(client, request, options) {
|
|
42564
|
-
return new APIPromise($
|
|
43401
|
+
return new APIPromise($do14(client, request, options));
|
|
42565
43402
|
}
|
|
42566
|
-
async function $
|
|
43403
|
+
async function $do14(client, request, options) {
|
|
42567
43404
|
const parsed = safeParse(request, (value2) => CheckTailRequest$outboundSchema.parse(value2), "Input validation failed");
|
|
42568
43405
|
if (!parsed.ok) {
|
|
42569
43406
|
return [parsed, { status: "invalid" }];
|
|
@@ -42591,6 +43428,7 @@ async function $do11(client, request, options) {
|
|
|
42591
43428
|
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
42592
43429
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
42593
43430
|
const context = {
|
|
43431
|
+
options: client._options,
|
|
42594
43432
|
baseURL: baseURL ?? "",
|
|
42595
43433
|
operationID: "check_tail",
|
|
42596
43434
|
oAuth2Scopes: [],
|
|
@@ -42606,6 +43444,7 @@ async function $do11(client, request, options) {
|
|
|
42606
43444
|
path,
|
|
42607
43445
|
headers,
|
|
42608
43446
|
body,
|
|
43447
|
+
userAgent: client._options.userAgent,
|
|
42609
43448
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
42610
43449
|
}, options);
|
|
42611
43450
|
if (!requestRes.ok) {
|
|
@@ -42625,7 +43464,7 @@ async function $do11(client, request, options) {
|
|
|
42625
43464
|
const responseFields = {
|
|
42626
43465
|
HttpMeta: { Response: response, Request: req }
|
|
42627
43466
|
};
|
|
42628
|
-
const [result] = await match(json(200, TailResponse$inboundSchema), jsonErr([400, 401, 404, 409], ErrorResponse$inboundSchema), jsonErr(500, ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
43467
|
+
const [result] = await match(json(200, TailResponse$inboundSchema), jsonErr([400, 401, 404, 409], ErrorResponse$inboundSchema), jsonErr(500, ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
42629
43468
|
if (!result.ok) {
|
|
42630
43469
|
return [result, { status: "complete", request: req, response }];
|
|
42631
43470
|
}
|
|
@@ -42646,12 +43485,12 @@ var init_recordsCheckTail = __esm(() => {
|
|
|
42646
43485
|
});
|
|
42647
43486
|
|
|
42648
43487
|
// src/mcp-server/tools/recordsCheckTail.ts
|
|
42649
|
-
var
|
|
43488
|
+
var args14, tool$recordsCheckTail;
|
|
42650
43489
|
var init_recordsCheckTail2 = __esm(() => {
|
|
42651
43490
|
init_recordsCheckTail();
|
|
42652
43491
|
init_operations();
|
|
42653
43492
|
init_tools();
|
|
42654
|
-
|
|
43493
|
+
args14 = {
|
|
42655
43494
|
request: CheckTailRequest$inboundSchema
|
|
42656
43495
|
};
|
|
42657
43496
|
tool$recordsCheckTail = {
|
|
@@ -42660,9 +43499,9 @@ var init_recordsCheckTail2 = __esm(() => {
|
|
|
42660
43499
|
|
|
42661
43500
|
Check the tail of a stream.`,
|
|
42662
43501
|
scopes: ["read", "read", "read"],
|
|
42663
|
-
args:
|
|
42664
|
-
tool: async (client,
|
|
42665
|
-
const [result, apiCall] = await recordsCheckTail(client,
|
|
43502
|
+
args: args14,
|
|
43503
|
+
tool: async (client, args15, ctx) => {
|
|
43504
|
+
const [result, apiCall] = await recordsCheckTail(client, args15.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42666
43505
|
if (!result.ok) {
|
|
42667
43506
|
return {
|
|
42668
43507
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -42677,9 +43516,9 @@ Check the tail of a stream.`,
|
|
|
42677
43516
|
|
|
42678
43517
|
// src/funcs/recordsRead.ts
|
|
42679
43518
|
function recordsRead(client, request, options) {
|
|
42680
|
-
return new APIPromise($
|
|
43519
|
+
return new APIPromise($do15(client, request, options));
|
|
42681
43520
|
}
|
|
42682
|
-
async function $
|
|
43521
|
+
async function $do15(client, request, options) {
|
|
42683
43522
|
const parsed = safeParse(request, (value2) => ReadRequest$outboundSchema.parse(value2), "Input validation failed");
|
|
42684
43523
|
if (!parsed.ok) {
|
|
42685
43524
|
return [parsed, { status: "invalid" }];
|
|
@@ -42701,7 +43540,8 @@ async function $do12(client, request, options) {
|
|
|
42701
43540
|
count: payload.count,
|
|
42702
43541
|
seq_num: payload.seq_num,
|
|
42703
43542
|
tail_offset: payload.tail_offset,
|
|
42704
|
-
timestamp: payload.timestamp
|
|
43543
|
+
timestamp: payload.timestamp,
|
|
43544
|
+
until: payload.until
|
|
42705
43545
|
});
|
|
42706
43546
|
const headers = new Headers(compactMap({
|
|
42707
43547
|
Accept: options?.acceptHeaderOverride || "application/json;q=1, text/event-stream;q=0",
|
|
@@ -42718,6 +43558,7 @@ async function $do12(client, request, options) {
|
|
|
42718
43558
|
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
42719
43559
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
42720
43560
|
const context = {
|
|
43561
|
+
options: client._options,
|
|
42721
43562
|
baseURL: baseURL ?? "",
|
|
42722
43563
|
operationID: "read",
|
|
42723
43564
|
oAuth2Scopes: [],
|
|
@@ -42734,6 +43575,7 @@ async function $do12(client, request, options) {
|
|
|
42734
43575
|
headers,
|
|
42735
43576
|
query: query2,
|
|
42736
43577
|
body,
|
|
43578
|
+
userAgent: client._options.userAgent,
|
|
42737
43579
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
42738
43580
|
}, options);
|
|
42739
43581
|
if (!requestRes.ok) {
|
|
@@ -42755,7 +43597,7 @@ async function $do12(client, request, options) {
|
|
|
42755
43597
|
};
|
|
42756
43598
|
const [result] = await match(json(200, ReadResponse$inboundSchema), sse(200, ReadResponse$inboundSchema, {
|
|
42757
43599
|
sseSentinel: "[DONE]"
|
|
42758
|
-
}), jsonErr([400, 401, 404, 409], ErrorResponse$inboundSchema), jsonErr(416, TailResponse$inboundSchema2), jsonErr(500, ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
43600
|
+
}), jsonErr([400, 401, 404, 409], ErrorResponse$inboundSchema), jsonErr(416, TailResponse$inboundSchema2), jsonErr(500, ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
42759
43601
|
if (!result.ok) {
|
|
42760
43602
|
return [result, { status: "complete", request: req, response }];
|
|
42761
43603
|
}
|
|
@@ -42775,12 +43617,12 @@ var init_recordsRead = __esm(() => {
|
|
|
42775
43617
|
});
|
|
42776
43618
|
|
|
42777
43619
|
// src/mcp-server/tools/recordsRead.ts
|
|
42778
|
-
var
|
|
43620
|
+
var args15, tool$recordsRead;
|
|
42779
43621
|
var init_recordsRead2 = __esm(() => {
|
|
42780
43622
|
init_recordsRead();
|
|
42781
43623
|
init_operations();
|
|
42782
43624
|
init_tools();
|
|
42783
|
-
|
|
43625
|
+
args15 = {
|
|
42784
43626
|
request: ReadRequest$inboundSchema
|
|
42785
43627
|
};
|
|
42786
43628
|
tool$recordsRead = {
|
|
@@ -42789,9 +43631,9 @@ var init_recordsRead2 = __esm(() => {
|
|
|
42789
43631
|
|
|
42790
43632
|
Retrieve a batch of records, or set \`Accept: text/event-stream\` to stream using server-sent events.`,
|
|
42791
43633
|
scopes: ["read", "read", "read"],
|
|
42792
|
-
args:
|
|
42793
|
-
tool: async (client,
|
|
42794
|
-
const [result, apiCall] = await recordsRead(client,
|
|
43634
|
+
args: args15,
|
|
43635
|
+
tool: async (client, args16, ctx) => {
|
|
43636
|
+
const [result, apiCall] = await recordsRead(client, args16.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42795
43637
|
if (!result.ok) {
|
|
42796
43638
|
return {
|
|
42797
43639
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -42806,9 +43648,9 @@ Retrieve a batch of records, or set \`Accept: text/event-stream\` to stream usin
|
|
|
42806
43648
|
|
|
42807
43649
|
// src/funcs/streamsCreateOrReconfigureStream.ts
|
|
42808
43650
|
function streamsCreateOrReconfigureStream(client, request, options) {
|
|
42809
|
-
return new APIPromise($
|
|
43651
|
+
return new APIPromise($do16(client, request, options));
|
|
42810
43652
|
}
|
|
42811
|
-
async function $
|
|
43653
|
+
async function $do16(client, request, options) {
|
|
42812
43654
|
const parsed = safeParse(request, (value2) => CreateOrReconfigureStreamRequest$outboundSchema.parse(value2), "Input validation failed");
|
|
42813
43655
|
if (!parsed.ok) {
|
|
42814
43656
|
return [parsed, { status: "invalid" }];
|
|
@@ -42840,6 +43682,7 @@ async function $do13(client, request, options) {
|
|
|
42840
43682
|
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
42841
43683
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
42842
43684
|
const context = {
|
|
43685
|
+
options: client._options,
|
|
42843
43686
|
baseURL: baseURL ?? "",
|
|
42844
43687
|
operationID: "create_or_reconfigure_stream",
|
|
42845
43688
|
oAuth2Scopes: [],
|
|
@@ -42855,6 +43698,7 @@ async function $do13(client, request, options) {
|
|
|
42855
43698
|
path,
|
|
42856
43699
|
headers,
|
|
42857
43700
|
body,
|
|
43701
|
+
userAgent: client._options.userAgent,
|
|
42858
43702
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
42859
43703
|
}, options);
|
|
42860
43704
|
if (!requestRes.ok) {
|
|
@@ -42874,7 +43718,7 @@ async function $do13(client, request, options) {
|
|
|
42874
43718
|
const responseFields = {
|
|
42875
43719
|
HttpMeta: { Response: response, Request: req }
|
|
42876
43720
|
};
|
|
42877
|
-
const [result] = await match(json(201, StreamInfo$inboundSchema.optional()), nil(204, StreamInfo$inboundSchema.optional()), jsonErr([400, 403, 404, 409], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
43721
|
+
const [result] = await match(json(201, StreamInfo$inboundSchema.optional()), nil(204, StreamInfo$inboundSchema.optional()), jsonErr([400, 403, 404, 409], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
42878
43722
|
if (!result.ok) {
|
|
42879
43723
|
return [result, { status: "complete", request: req, response }];
|
|
42880
43724
|
}
|
|
@@ -42895,21 +43739,21 @@ var init_streamsCreateOrReconfigureStream = __esm(() => {
|
|
|
42895
43739
|
});
|
|
42896
43740
|
|
|
42897
43741
|
// src/mcp-server/tools/streamsCreateOrReconfigureStream.ts
|
|
42898
|
-
var
|
|
43742
|
+
var args16, tool$streamsCreateOrReconfigureStream;
|
|
42899
43743
|
var init_streamsCreateOrReconfigureStream2 = __esm(() => {
|
|
42900
43744
|
init_streamsCreateOrReconfigureStream();
|
|
42901
43745
|
init_operations();
|
|
42902
43746
|
init_tools();
|
|
42903
|
-
|
|
43747
|
+
args16 = {
|
|
42904
43748
|
request: CreateOrReconfigureStreamRequest$inboundSchema
|
|
42905
43749
|
};
|
|
42906
43750
|
tool$streamsCreateOrReconfigureStream = {
|
|
42907
43751
|
name: "streams-create-or-reconfigure-stream",
|
|
42908
43752
|
description: `Create or reconfigure a stream.`,
|
|
42909
43753
|
scopes: ["write", "write", "write"],
|
|
42910
|
-
args:
|
|
42911
|
-
tool: async (client,
|
|
42912
|
-
const [result, apiCall] = await streamsCreateOrReconfigureStream(client,
|
|
43754
|
+
args: args16,
|
|
43755
|
+
tool: async (client, args17, ctx) => {
|
|
43756
|
+
const [result, apiCall] = await streamsCreateOrReconfigureStream(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42913
43757
|
if (!result.ok) {
|
|
42914
43758
|
return {
|
|
42915
43759
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -42924,9 +43768,9 @@ var init_streamsCreateOrReconfigureStream2 = __esm(() => {
|
|
|
42924
43768
|
|
|
42925
43769
|
// src/funcs/streamsCreateStream.ts
|
|
42926
43770
|
function streamsCreateStream(client, request, options) {
|
|
42927
|
-
return new APIPromise($
|
|
43771
|
+
return new APIPromise($do17(client, request, options));
|
|
42928
43772
|
}
|
|
42929
|
-
async function $
|
|
43773
|
+
async function $do17(client, request, options) {
|
|
42930
43774
|
const parsed = safeParse(request, (value2) => CreateStreamRequest$outboundSchema2.parse(value2), "Input validation failed");
|
|
42931
43775
|
if (!parsed.ok) {
|
|
42932
43776
|
return [parsed, { status: "invalid" }];
|
|
@@ -42951,6 +43795,7 @@ async function $do14(client, request, options) {
|
|
|
42951
43795
|
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
42952
43796
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
42953
43797
|
const context = {
|
|
43798
|
+
options: client._options,
|
|
42954
43799
|
baseURL: baseURL ?? "",
|
|
42955
43800
|
operationID: "create_stream",
|
|
42956
43801
|
oAuth2Scopes: [],
|
|
@@ -42966,6 +43811,7 @@ async function $do14(client, request, options) {
|
|
|
42966
43811
|
path,
|
|
42967
43812
|
headers,
|
|
42968
43813
|
body,
|
|
43814
|
+
userAgent: client._options.userAgent,
|
|
42969
43815
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
42970
43816
|
}, options);
|
|
42971
43817
|
if (!requestRes.ok) {
|
|
@@ -42985,7 +43831,7 @@ async function $do14(client, request, options) {
|
|
|
42985
43831
|
const responseFields = {
|
|
42986
43832
|
HttpMeta: { Response: response, Request: req }
|
|
42987
43833
|
};
|
|
42988
|
-
const [result] = await match(json(201, StreamInfo$inboundSchema), jsonErr([400, 403, 404, 409], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
43834
|
+
const [result] = await match(json(201, StreamInfo$inboundSchema), jsonErr([400, 403, 404, 409], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
42989
43835
|
if (!result.ok) {
|
|
42990
43836
|
return [result, { status: "complete", request: req, response }];
|
|
42991
43837
|
}
|
|
@@ -43006,21 +43852,21 @@ var init_streamsCreateStream = __esm(() => {
|
|
|
43006
43852
|
});
|
|
43007
43853
|
|
|
43008
43854
|
// src/mcp-server/tools/streamsCreateStream.ts
|
|
43009
|
-
var
|
|
43855
|
+
var args17, tool$streamsCreateStream;
|
|
43010
43856
|
var init_streamsCreateStream2 = __esm(() => {
|
|
43011
43857
|
init_streamsCreateStream();
|
|
43012
43858
|
init_operations();
|
|
43013
43859
|
init_tools();
|
|
43014
|
-
|
|
43860
|
+
args17 = {
|
|
43015
43861
|
request: CreateStreamRequest$inboundSchema2
|
|
43016
43862
|
};
|
|
43017
43863
|
tool$streamsCreateStream = {
|
|
43018
43864
|
name: "streams-create-stream",
|
|
43019
43865
|
description: `Create a stream.`,
|
|
43020
43866
|
scopes: ["write", "write", "write"],
|
|
43021
|
-
args:
|
|
43022
|
-
tool: async (client,
|
|
43023
|
-
const [result, apiCall] = await streamsCreateStream(client,
|
|
43867
|
+
args: args17,
|
|
43868
|
+
tool: async (client, args18, ctx) => {
|
|
43869
|
+
const [result, apiCall] = await streamsCreateStream(client, args18.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43024
43870
|
if (!result.ok) {
|
|
43025
43871
|
return {
|
|
43026
43872
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43035,9 +43881,9 @@ var init_streamsCreateStream2 = __esm(() => {
|
|
|
43035
43881
|
|
|
43036
43882
|
// src/funcs/streamsDeleteStream.ts
|
|
43037
43883
|
function streamsDeleteStream(client, request, options) {
|
|
43038
|
-
return new APIPromise($
|
|
43884
|
+
return new APIPromise($do18(client, request, options));
|
|
43039
43885
|
}
|
|
43040
|
-
async function $
|
|
43886
|
+
async function $do18(client, request, options) {
|
|
43041
43887
|
const parsed = safeParse(request, (value2) => DeleteStreamRequest$outboundSchema.parse(value2), "Input validation failed");
|
|
43042
43888
|
if (!parsed.ok) {
|
|
43043
43889
|
return [parsed, { status: "invalid" }];
|
|
@@ -43065,6 +43911,7 @@ async function $do15(client, request, options) {
|
|
|
43065
43911
|
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
43066
43912
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
43067
43913
|
const context = {
|
|
43914
|
+
options: client._options,
|
|
43068
43915
|
baseURL: baseURL ?? "",
|
|
43069
43916
|
operationID: "delete_stream",
|
|
43070
43917
|
oAuth2Scopes: [],
|
|
@@ -43080,6 +43927,7 @@ async function $do15(client, request, options) {
|
|
|
43080
43927
|
path,
|
|
43081
43928
|
headers,
|
|
43082
43929
|
body,
|
|
43930
|
+
userAgent: client._options.userAgent,
|
|
43083
43931
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
43084
43932
|
}, options);
|
|
43085
43933
|
if (!requestRes.ok) {
|
|
@@ -43099,7 +43947,7 @@ async function $do15(client, request, options) {
|
|
|
43099
43947
|
const responseFields = {
|
|
43100
43948
|
HttpMeta: { Response: response, Request: req }
|
|
43101
43949
|
};
|
|
43102
|
-
const [result] = await match(nil(202, voidType()), jsonErr([400, 403, 404], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
43950
|
+
const [result] = await match(nil(202, voidType()), jsonErr([400, 403, 404], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
43103
43951
|
if (!result.ok) {
|
|
43104
43952
|
return [result, { status: "complete", request: req, response }];
|
|
43105
43953
|
}
|
|
@@ -43120,21 +43968,21 @@ var init_streamsDeleteStream = __esm(() => {
|
|
|
43120
43968
|
});
|
|
43121
43969
|
|
|
43122
43970
|
// src/mcp-server/tools/streamsDeleteStream.ts
|
|
43123
|
-
var
|
|
43971
|
+
var args18, tool$streamsDeleteStream;
|
|
43124
43972
|
var init_streamsDeleteStream2 = __esm(() => {
|
|
43125
43973
|
init_streamsDeleteStream();
|
|
43126
43974
|
init_operations();
|
|
43127
43975
|
init_tools();
|
|
43128
|
-
|
|
43976
|
+
args18 = {
|
|
43129
43977
|
request: DeleteStreamRequest$inboundSchema
|
|
43130
43978
|
};
|
|
43131
43979
|
tool$streamsDeleteStream = {
|
|
43132
43980
|
name: "streams-delete-stream",
|
|
43133
43981
|
description: `Delete a stream.`,
|
|
43134
43982
|
scopes: ["write", "write", "write"],
|
|
43135
|
-
args:
|
|
43136
|
-
tool: async (client,
|
|
43137
|
-
const [result, apiCall] = await streamsDeleteStream(client,
|
|
43983
|
+
args: args18,
|
|
43984
|
+
tool: async (client, args19, ctx) => {
|
|
43985
|
+
const [result, apiCall] = await streamsDeleteStream(client, args19.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43138
43986
|
if (!result.ok) {
|
|
43139
43987
|
return {
|
|
43140
43988
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43148,9 +43996,9 @@ var init_streamsDeleteStream2 = __esm(() => {
|
|
|
43148
43996
|
|
|
43149
43997
|
// src/funcs/streamsGetStreamConfig.ts
|
|
43150
43998
|
function streamsGetStreamConfig(client, request, options) {
|
|
43151
|
-
return new APIPromise($
|
|
43999
|
+
return new APIPromise($do19(client, request, options));
|
|
43152
44000
|
}
|
|
43153
|
-
async function $
|
|
44001
|
+
async function $do19(client, request, options) {
|
|
43154
44002
|
const parsed = safeParse(request, (value2) => GetStreamConfigRequest$outboundSchema.parse(value2), "Input validation failed");
|
|
43155
44003
|
if (!parsed.ok) {
|
|
43156
44004
|
return [parsed, { status: "invalid" }];
|
|
@@ -43178,6 +44026,7 @@ async function $do16(client, request, options) {
|
|
|
43178
44026
|
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
43179
44027
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
43180
44028
|
const context = {
|
|
44029
|
+
options: client._options,
|
|
43181
44030
|
baseURL: baseURL ?? "",
|
|
43182
44031
|
operationID: "get_stream_config",
|
|
43183
44032
|
oAuth2Scopes: [],
|
|
@@ -43193,6 +44042,7 @@ async function $do16(client, request, options) {
|
|
|
43193
44042
|
path,
|
|
43194
44043
|
headers,
|
|
43195
44044
|
body,
|
|
44045
|
+
userAgent: client._options.userAgent,
|
|
43196
44046
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
43197
44047
|
}, options);
|
|
43198
44048
|
if (!requestRes.ok) {
|
|
@@ -43212,7 +44062,7 @@ async function $do16(client, request, options) {
|
|
|
43212
44062
|
const responseFields = {
|
|
43213
44063
|
HttpMeta: { Response: response, Request: req }
|
|
43214
44064
|
};
|
|
43215
|
-
const [result] = await match(json(200, StreamConfig$inboundSchema), jsonErr([400, 403, 404, 409], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
44065
|
+
const [result] = await match(json(200, StreamConfig$inboundSchema), jsonErr([400, 403, 404, 409], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
43216
44066
|
if (!result.ok) {
|
|
43217
44067
|
return [result, { status: "complete", request: req, response }];
|
|
43218
44068
|
}
|
|
@@ -43233,21 +44083,21 @@ var init_streamsGetStreamConfig = __esm(() => {
|
|
|
43233
44083
|
});
|
|
43234
44084
|
|
|
43235
44085
|
// src/mcp-server/tools/streamsGetStreamConfig.ts
|
|
43236
|
-
var
|
|
44086
|
+
var args19, tool$streamsGetStreamConfig;
|
|
43237
44087
|
var init_streamsGetStreamConfig2 = __esm(() => {
|
|
43238
44088
|
init_streamsGetStreamConfig();
|
|
43239
44089
|
init_operations();
|
|
43240
44090
|
init_tools();
|
|
43241
|
-
|
|
44091
|
+
args19 = {
|
|
43242
44092
|
request: GetStreamConfigRequest$inboundSchema
|
|
43243
44093
|
};
|
|
43244
44094
|
tool$streamsGetStreamConfig = {
|
|
43245
44095
|
name: "streams-get-stream-config",
|
|
43246
44096
|
description: `Get stream configuration.`,
|
|
43247
44097
|
scopes: ["read", "read", "read"],
|
|
43248
|
-
args:
|
|
43249
|
-
tool: async (client,
|
|
43250
|
-
const [result, apiCall] = await streamsGetStreamConfig(client,
|
|
44098
|
+
args: args19,
|
|
44099
|
+
tool: async (client, args20, ctx) => {
|
|
44100
|
+
const [result, apiCall] = await streamsGetStreamConfig(client, args20.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43251
44101
|
if (!result.ok) {
|
|
43252
44102
|
return {
|
|
43253
44103
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43262,9 +44112,9 @@ var init_streamsGetStreamConfig2 = __esm(() => {
|
|
|
43262
44112
|
|
|
43263
44113
|
// src/funcs/streamsListStreams.ts
|
|
43264
44114
|
function streamsListStreams(client, request, options) {
|
|
43265
|
-
return new APIPromise($
|
|
44115
|
+
return new APIPromise($do20(client, request, options));
|
|
43266
44116
|
}
|
|
43267
|
-
async function $
|
|
44117
|
+
async function $do20(client, request, options) {
|
|
43268
44118
|
const parsed = safeParse(request, (value2) => ListStreamsRequest$outboundSchema.parse(value2), "Input validation failed");
|
|
43269
44119
|
if (!parsed.ok) {
|
|
43270
44120
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -43291,6 +44141,7 @@ async function $do17(client, request, options) {
|
|
|
43291
44141
|
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
43292
44142
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
43293
44143
|
const context = {
|
|
44144
|
+
options: client._options,
|
|
43294
44145
|
baseURL: baseURL ?? "",
|
|
43295
44146
|
operationID: "list_streams",
|
|
43296
44147
|
oAuth2Scopes: [],
|
|
@@ -43307,6 +44158,7 @@ async function $do17(client, request, options) {
|
|
|
43307
44158
|
headers,
|
|
43308
44159
|
query: query2,
|
|
43309
44160
|
body,
|
|
44161
|
+
userAgent: client._options.userAgent,
|
|
43310
44162
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
43311
44163
|
}, options);
|
|
43312
44164
|
if (!requestRes.ok) {
|
|
@@ -43328,7 +44180,7 @@ async function $do17(client, request, options) {
|
|
|
43328
44180
|
};
|
|
43329
44181
|
const [result, raw] = await match(json(200, ListStreamsResponse$inboundSchema2, {
|
|
43330
44182
|
key: "Result"
|
|
43331
|
-
}), jsonErr([400, 403, 404], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
44183
|
+
}), jsonErr([400, 403, 404], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
43332
44184
|
if (!result.ok) {
|
|
43333
44185
|
return [haltIterator(result), {
|
|
43334
44186
|
status: "complete",
|
|
@@ -43370,21 +44222,21 @@ var init_streamsListStreams = __esm(() => {
|
|
|
43370
44222
|
});
|
|
43371
44223
|
|
|
43372
44224
|
// src/mcp-server/tools/streamsListStreams.ts
|
|
43373
|
-
var
|
|
44225
|
+
var args20, tool$streamsListStreams;
|
|
43374
44226
|
var init_streamsListStreams2 = __esm(() => {
|
|
43375
44227
|
init_streamsListStreams();
|
|
43376
44228
|
init_operations();
|
|
43377
44229
|
init_tools();
|
|
43378
|
-
|
|
44230
|
+
args20 = {
|
|
43379
44231
|
request: ListStreamsRequest$inboundSchema
|
|
43380
44232
|
};
|
|
43381
44233
|
tool$streamsListStreams = {
|
|
43382
44234
|
name: "streams-list-streams",
|
|
43383
44235
|
description: `List streams.`,
|
|
43384
44236
|
scopes: ["read", "read", "read"],
|
|
43385
|
-
args:
|
|
43386
|
-
tool: async (client,
|
|
43387
|
-
const [result, apiCall] = await streamsListStreams(client,
|
|
44237
|
+
args: args20,
|
|
44238
|
+
tool: async (client, args21, ctx) => {
|
|
44239
|
+
const [result, apiCall] = await streamsListStreams(client, args21.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43388
44240
|
if (!result.ok) {
|
|
43389
44241
|
return {
|
|
43390
44242
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43399,9 +44251,9 @@ var init_streamsListStreams2 = __esm(() => {
|
|
|
43399
44251
|
|
|
43400
44252
|
// src/funcs/streamsReconfigureStream.ts
|
|
43401
44253
|
function streamsReconfigureStream(client, request, options) {
|
|
43402
|
-
return new APIPromise($
|
|
44254
|
+
return new APIPromise($do21(client, request, options));
|
|
43403
44255
|
}
|
|
43404
|
-
async function $
|
|
44256
|
+
async function $do21(client, request, options) {
|
|
43405
44257
|
const parsed = safeParse(request, (value2) => ReconfigureStreamRequest$outboundSchema.parse(value2), "Input validation failed");
|
|
43406
44258
|
if (!parsed.ok) {
|
|
43407
44259
|
return [parsed, { status: "invalid" }];
|
|
@@ -43432,6 +44284,7 @@ async function $do18(client, request, options) {
|
|
|
43432
44284
|
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
43433
44285
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
43434
44286
|
const context = {
|
|
44287
|
+
options: client._options,
|
|
43435
44288
|
baseURL: baseURL ?? "",
|
|
43436
44289
|
operationID: "reconfigure_stream",
|
|
43437
44290
|
oAuth2Scopes: [],
|
|
@@ -43447,6 +44300,7 @@ async function $do18(client, request, options) {
|
|
|
43447
44300
|
path,
|
|
43448
44301
|
headers,
|
|
43449
44302
|
body,
|
|
44303
|
+
userAgent: client._options.userAgent,
|
|
43450
44304
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
43451
44305
|
}, options);
|
|
43452
44306
|
if (!requestRes.ok) {
|
|
@@ -43466,7 +44320,7 @@ async function $do18(client, request, options) {
|
|
|
43466
44320
|
const responseFields = {
|
|
43467
44321
|
HttpMeta: { Response: response, Request: req }
|
|
43468
44322
|
};
|
|
43469
|
-
const [result] = await match(json(200, StreamConfig$inboundSchema), jsonErr([400, 403, 404, 409], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
44323
|
+
const [result] = await match(json(200, StreamConfig$inboundSchema), jsonErr([400, 403, 404, 409], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
43470
44324
|
if (!result.ok) {
|
|
43471
44325
|
return [result, { status: "complete", request: req, response }];
|
|
43472
44326
|
}
|
|
@@ -43487,21 +44341,21 @@ var init_streamsReconfigureStream = __esm(() => {
|
|
|
43487
44341
|
});
|
|
43488
44342
|
|
|
43489
44343
|
// src/mcp-server/tools/streamsReconfigureStream.ts
|
|
43490
|
-
var
|
|
44344
|
+
var args21, tool$streamsReconfigureStream;
|
|
43491
44345
|
var init_streamsReconfigureStream2 = __esm(() => {
|
|
43492
44346
|
init_streamsReconfigureStream();
|
|
43493
44347
|
init_operations();
|
|
43494
44348
|
init_tools();
|
|
43495
|
-
|
|
44349
|
+
args21 = {
|
|
43496
44350
|
request: ReconfigureStreamRequest$inboundSchema
|
|
43497
44351
|
};
|
|
43498
44352
|
tool$streamsReconfigureStream = {
|
|
43499
44353
|
name: "streams-reconfigure-stream",
|
|
43500
44354
|
description: `Reconfigure a stream.`,
|
|
43501
44355
|
scopes: ["write", "write", "write"],
|
|
43502
|
-
args:
|
|
43503
|
-
tool: async (client,
|
|
43504
|
-
const [result, apiCall] = await streamsReconfigureStream(client,
|
|
44356
|
+
args: args21,
|
|
44357
|
+
tool: async (client, args22, ctx) => {
|
|
44358
|
+
const [result, apiCall] = await streamsReconfigureStream(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43505
44359
|
if (!result.ok) {
|
|
43506
44360
|
return {
|
|
43507
44361
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43518,7 +44372,7 @@ var init_streamsReconfigureStream2 = __esm(() => {
|
|
|
43518
44372
|
function createMCPServer(deps) {
|
|
43519
44373
|
const server = new McpServer({
|
|
43520
44374
|
name: "S2",
|
|
43521
|
-
version: "0.
|
|
44375
|
+
version: "0.15.1"
|
|
43522
44376
|
});
|
|
43523
44377
|
const client = new S2Core({
|
|
43524
44378
|
accessToken: deps.accessToken,
|
|
@@ -43541,6 +44395,9 @@ function createMCPServer(deps) {
|
|
|
43541
44395
|
tool(tool$basinsCreateOrReconfigureBasin);
|
|
43542
44396
|
tool(tool$basinsDeleteBasin);
|
|
43543
44397
|
tool(tool$basinsReconfigureBasin);
|
|
44398
|
+
tool(tool$metricsAccountMetrics);
|
|
44399
|
+
tool(tool$metricsBasinMetrics);
|
|
44400
|
+
tool(tool$metricsStreamMetrics);
|
|
43544
44401
|
tool(tool$streamsListStreams);
|
|
43545
44402
|
tool(tool$streamsCreateStream);
|
|
43546
44403
|
tool(tool$streamsGetStreamConfig);
|
|
@@ -43566,6 +44423,9 @@ var init_server2 = __esm(() => {
|
|
|
43566
44423
|
init_basinsGetBasinConfig2();
|
|
43567
44424
|
init_basinsListBasins2();
|
|
43568
44425
|
init_basinsReconfigureBasin2();
|
|
44426
|
+
init_metricsAccountMetrics2();
|
|
44427
|
+
init_metricsBasinMetrics2();
|
|
44428
|
+
init_metricsStreamMetrics2();
|
|
43569
44429
|
init_recordsAppend2();
|
|
43570
44430
|
init_recordsCheckTail2();
|
|
43571
44431
|
init_recordsRead2();
|
|
@@ -44771,7 +45631,7 @@ var routes = rn({
|
|
|
44771
45631
|
var app = Ve(routes, {
|
|
44772
45632
|
name: "mcp",
|
|
44773
45633
|
versionInfo: {
|
|
44774
|
-
currentVersion: "0.
|
|
45634
|
+
currentVersion: "0.15.1"
|
|
44775
45635
|
}
|
|
44776
45636
|
});
|
|
44777
45637
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -44779,5 +45639,5 @@ export {
|
|
|
44779
45639
|
app
|
|
44780
45640
|
};
|
|
44781
45641
|
|
|
44782
|
-
//# debugId=
|
|
45642
|
+
//# debugId=BAB6F4539938DA0264756E2164756E21
|
|
44783
45643
|
//# sourceMappingURL=mcp-server.js.map
|