@s2-dev/streamstore 0.12.0 → 0.13.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/README.md +9 -99
- package/bin/mcp-server.js +238 -257
- package/bin/mcp-server.js.map +56 -57
- package/dist/commonjs/funcs/accessTokensIssueAccessToken.d.ts +1 -1
- package/dist/commonjs/funcs/accessTokensIssueAccessToken.d.ts.map +1 -1
- package/dist/commonjs/funcs/accessTokensIssueAccessToken.js +2 -2
- package/dist/commonjs/funcs/accessTokensIssueAccessToken.js.map +1 -1
- package/dist/commonjs/funcs/accessTokensListAccessTokens.d.ts +1 -1
- package/dist/commonjs/funcs/accessTokensListAccessTokens.d.ts.map +1 -1
- package/dist/commonjs/funcs/accessTokensListAccessTokens.js +2 -2
- package/dist/commonjs/funcs/accessTokensListAccessTokens.js.map +1 -1
- package/dist/commonjs/funcs/accessTokensRevokeAccessToken.d.ts +1 -1
- package/dist/commonjs/funcs/accessTokensRevokeAccessToken.d.ts.map +1 -1
- package/dist/commonjs/funcs/accessTokensRevokeAccessToken.js +2 -2
- package/dist/commonjs/funcs/accessTokensRevokeAccessToken.js.map +1 -1
- package/dist/commonjs/funcs/basinsCreateBasin.d.ts +1 -1
- package/dist/commonjs/funcs/basinsCreateBasin.d.ts.map +1 -1
- package/dist/commonjs/funcs/basinsCreateBasin.js +2 -13
- package/dist/commonjs/funcs/basinsCreateBasin.js.map +1 -1
- package/dist/commonjs/funcs/basinsCreateOrReconfigureBasin.d.ts +1 -1
- package/dist/commonjs/funcs/basinsCreateOrReconfigureBasin.d.ts.map +1 -1
- package/dist/commonjs/funcs/basinsCreateOrReconfigureBasin.js +2 -2
- package/dist/commonjs/funcs/basinsCreateOrReconfigureBasin.js.map +1 -1
- package/dist/commonjs/funcs/basinsDeleteBasin.d.ts +1 -1
- package/dist/commonjs/funcs/basinsDeleteBasin.d.ts.map +1 -1
- package/dist/commonjs/funcs/basinsDeleteBasin.js +2 -13
- package/dist/commonjs/funcs/basinsDeleteBasin.js.map +1 -1
- package/dist/commonjs/funcs/basinsGetBasinConfig.d.ts +1 -1
- package/dist/commonjs/funcs/basinsGetBasinConfig.d.ts.map +1 -1
- package/dist/commonjs/funcs/basinsGetBasinConfig.js +2 -2
- package/dist/commonjs/funcs/basinsGetBasinConfig.js.map +1 -1
- package/dist/commonjs/funcs/basinsListBasins.d.ts +1 -1
- package/dist/commonjs/funcs/basinsListBasins.d.ts.map +1 -1
- package/dist/commonjs/funcs/basinsListBasins.js +2 -2
- package/dist/commonjs/funcs/basinsListBasins.js.map +1 -1
- package/dist/commonjs/funcs/basinsReconfigureBasin.d.ts +1 -1
- package/dist/commonjs/funcs/basinsReconfigureBasin.d.ts.map +1 -1
- package/dist/commonjs/funcs/basinsReconfigureBasin.js +2 -2
- package/dist/commonjs/funcs/basinsReconfigureBasin.js.map +1 -1
- package/dist/commonjs/funcs/recordsAppend.d.ts +1 -1
- package/dist/commonjs/funcs/recordsAppend.d.ts.map +1 -1
- package/dist/commonjs/funcs/recordsAppend.js +6 -14
- package/dist/commonjs/funcs/recordsAppend.js.map +1 -1
- package/dist/commonjs/funcs/recordsCheckTail.d.ts +1 -1
- package/dist/commonjs/funcs/recordsCheckTail.d.ts.map +1 -1
- package/dist/commonjs/funcs/recordsCheckTail.js +6 -13
- package/dist/commonjs/funcs/recordsCheckTail.js.map +1 -1
- package/dist/commonjs/funcs/recordsRead.d.ts +1 -1
- package/dist/commonjs/funcs/recordsRead.d.ts.map +1 -1
- package/dist/commonjs/funcs/recordsRead.js +6 -14
- package/dist/commonjs/funcs/recordsRead.js.map +1 -1
- package/dist/commonjs/funcs/streamsCreateOrReconfigureStream.d.ts +1 -1
- package/dist/commonjs/funcs/streamsCreateOrReconfigureStream.d.ts.map +1 -1
- package/dist/commonjs/funcs/streamsCreateOrReconfigureStream.js +6 -13
- package/dist/commonjs/funcs/streamsCreateOrReconfigureStream.js.map +1 -1
- package/dist/commonjs/funcs/streamsCreateStream.d.ts +2 -1
- package/dist/commonjs/funcs/streamsCreateStream.d.ts.map +1 -1
- package/dist/commonjs/funcs/streamsCreateStream.js +11 -15
- package/dist/commonjs/funcs/streamsCreateStream.js.map +1 -1
- package/dist/commonjs/funcs/streamsDeleteStream.d.ts +1 -1
- package/dist/commonjs/funcs/streamsDeleteStream.d.ts.map +1 -1
- package/dist/commonjs/funcs/streamsDeleteStream.js +6 -2
- package/dist/commonjs/funcs/streamsDeleteStream.js.map +1 -1
- package/dist/commonjs/funcs/streamsGetStreamConfig.d.ts +1 -1
- package/dist/commonjs/funcs/streamsGetStreamConfig.d.ts.map +1 -1
- package/dist/commonjs/funcs/streamsGetStreamConfig.js +6 -13
- package/dist/commonjs/funcs/streamsGetStreamConfig.js.map +1 -1
- package/dist/commonjs/funcs/streamsListStreams.d.ts +1 -1
- package/dist/commonjs/funcs/streamsListStreams.d.ts.map +1 -1
- package/dist/commonjs/funcs/streamsListStreams.js +6 -2
- package/dist/commonjs/funcs/streamsListStreams.js.map +1 -1
- package/dist/commonjs/funcs/streamsReconfigureStream.d.ts +1 -1
- package/dist/commonjs/funcs/streamsReconfigureStream.d.ts.map +1 -1
- package/dist/commonjs/funcs/streamsReconfigureStream.js +6 -13
- package/dist/commonjs/funcs/streamsReconfigureStream.js.map +1 -1
- package/dist/commonjs/hooks/basin.d.ts +6 -0
- package/dist/commonjs/hooks/basin.d.ts.map +1 -0
- package/dist/commonjs/hooks/basin.js +32 -0
- package/dist/commonjs/hooks/basin.js.map +1 -0
- package/dist/commonjs/hooks/registration.d.ts.map +1 -1
- package/dist/commonjs/hooks/registration.js +3 -1
- package/dist/commonjs/hooks/registration.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/cli/start/impl.js +2 -2
- package/dist/commonjs/mcp-server/cli/start/impl.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/mcp-server/tools/accessTokensIssueAccessToken.js +1 -1
- package/dist/commonjs/mcp-server/tools/accessTokensIssueAccessToken.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/accessTokensListAccessTokens.js +1 -1
- package/dist/commonjs/mcp-server/tools/accessTokensListAccessTokens.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/accessTokensRevokeAccessToken.js +1 -1
- package/dist/commonjs/mcp-server/tools/accessTokensRevokeAccessToken.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/basinsCreateBasin.js +1 -1
- package/dist/commonjs/mcp-server/tools/basinsCreateBasin.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/basinsCreateOrReconfigureBasin.js +1 -1
- package/dist/commonjs/mcp-server/tools/basinsCreateOrReconfigureBasin.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/basinsDeleteBasin.js +1 -1
- package/dist/commonjs/mcp-server/tools/basinsDeleteBasin.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/basinsGetBasinConfig.js +1 -1
- package/dist/commonjs/mcp-server/tools/basinsGetBasinConfig.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/basinsListBasins.js +1 -1
- package/dist/commonjs/mcp-server/tools/basinsListBasins.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/basinsReconfigureBasin.js +1 -1
- package/dist/commonjs/mcp-server/tools/basinsReconfigureBasin.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/recordsAppend.js +1 -1
- package/dist/commonjs/mcp-server/tools/recordsAppend.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/recordsCheckTail.js +1 -1
- package/dist/commonjs/mcp-server/tools/recordsCheckTail.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/recordsRead.js +1 -1
- package/dist/commonjs/mcp-server/tools/recordsRead.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/streamsCreateOrReconfigureStream.js +1 -1
- package/dist/commonjs/mcp-server/tools/streamsCreateOrReconfigureStream.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/streamsCreateStream.d.ts +2 -2
- package/dist/commonjs/mcp-server/tools/streamsCreateStream.js +3 -3
- package/dist/commonjs/mcp-server/tools/streamsCreateStream.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/streamsDeleteStream.js +1 -1
- package/dist/commonjs/mcp-server/tools/streamsDeleteStream.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/streamsGetStreamConfig.js +1 -1
- package/dist/commonjs/mcp-server/tools/streamsGetStreamConfig.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/streamsListStreams.js +1 -1
- package/dist/commonjs/mcp-server/tools/streamsListStreams.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/streamsReconfigureStream.js +1 -1
- package/dist/commonjs/mcp-server/tools/streamsReconfigureStream.js.map +1 -1
- package/dist/commonjs/models/errors/errorresponse.d.ts +0 -3
- package/dist/commonjs/models/errors/errorresponse.d.ts.map +1 -1
- package/dist/commonjs/models/errors/errorresponse.js +3 -4
- package/dist/commonjs/models/errors/errorresponse.js.map +1 -1
- package/dist/commonjs/models/errors/index.d.ts +0 -2
- package/dist/commonjs/models/errors/index.d.ts.map +1 -1
- package/dist/commonjs/models/errors/index.js +0 -2
- package/dist/commonjs/models/errors/index.js.map +1 -1
- package/dist/commonjs/models/operations/append.d.ts +5 -0
- package/dist/commonjs/models/operations/append.d.ts.map +1 -1
- package/dist/commonjs/models/operations/append.js +4 -0
- package/dist/commonjs/models/operations/append.js.map +1 -1
- package/dist/commonjs/models/operations/checktail.d.ts +5 -0
- package/dist/commonjs/models/operations/checktail.d.ts.map +1 -1
- package/dist/commonjs/models/operations/checktail.js +11 -0
- package/dist/commonjs/models/operations/checktail.js.map +1 -1
- package/dist/commonjs/models/operations/createorreconfigurestream.d.ts +5 -0
- package/dist/commonjs/models/operations/createorreconfigurestream.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createorreconfigurestream.js +4 -0
- package/dist/commonjs/models/operations/createorreconfigurestream.js.map +1 -1
- package/dist/commonjs/models/operations/createstream.d.ts +34 -0
- package/dist/commonjs/models/operations/createstream.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createstream.js +77 -1
- package/dist/commonjs/models/operations/createstream.js.map +1 -1
- package/dist/commonjs/models/operations/deletestream.d.ts +5 -0
- package/dist/commonjs/models/operations/deletestream.d.ts.map +1 -1
- package/dist/commonjs/models/operations/deletestream.js +11 -0
- package/dist/commonjs/models/operations/deletestream.js.map +1 -1
- package/dist/commonjs/models/operations/getstreamconfig.d.ts +5 -0
- package/dist/commonjs/models/operations/getstreamconfig.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getstreamconfig.js +11 -0
- package/dist/commonjs/models/operations/getstreamconfig.js.map +1 -1
- package/dist/commonjs/models/operations/liststreams.d.ts +5 -0
- package/dist/commonjs/models/operations/liststreams.d.ts.map +1 -1
- package/dist/commonjs/models/operations/liststreams.js +4 -0
- package/dist/commonjs/models/operations/liststreams.js.map +1 -1
- package/dist/commonjs/models/operations/read.d.ts +5 -0
- package/dist/commonjs/models/operations/read.d.ts.map +1 -1
- package/dist/commonjs/models/operations/read.js +4 -0
- package/dist/commonjs/models/operations/read.js.map +1 -1
- package/dist/commonjs/models/operations/reconfigurestream.d.ts +5 -0
- package/dist/commonjs/models/operations/reconfigurestream.d.ts.map +1 -1
- package/dist/commonjs/models/operations/reconfigurestream.js +4 -0
- package/dist/commonjs/models/operations/reconfigurestream.js.map +1 -1
- package/dist/commonjs/sdk/streams.d.ts +1 -1
- package/dist/esm/funcs/accessTokensIssueAccessToken.d.ts +1 -1
- package/dist/esm/funcs/accessTokensIssueAccessToken.d.ts.map +1 -1
- package/dist/esm/funcs/accessTokensIssueAccessToken.js +2 -2
- package/dist/esm/funcs/accessTokensIssueAccessToken.js.map +1 -1
- package/dist/esm/funcs/accessTokensListAccessTokens.d.ts +1 -1
- package/dist/esm/funcs/accessTokensListAccessTokens.d.ts.map +1 -1
- package/dist/esm/funcs/accessTokensListAccessTokens.js +2 -2
- package/dist/esm/funcs/accessTokensListAccessTokens.js.map +1 -1
- package/dist/esm/funcs/accessTokensRevokeAccessToken.d.ts +1 -1
- package/dist/esm/funcs/accessTokensRevokeAccessToken.d.ts.map +1 -1
- package/dist/esm/funcs/accessTokensRevokeAccessToken.js +2 -2
- package/dist/esm/funcs/accessTokensRevokeAccessToken.js.map +1 -1
- package/dist/esm/funcs/basinsCreateBasin.d.ts +1 -1
- package/dist/esm/funcs/basinsCreateBasin.d.ts.map +1 -1
- package/dist/esm/funcs/basinsCreateBasin.js +2 -13
- package/dist/esm/funcs/basinsCreateBasin.js.map +1 -1
- package/dist/esm/funcs/basinsCreateOrReconfigureBasin.d.ts +1 -1
- package/dist/esm/funcs/basinsCreateOrReconfigureBasin.d.ts.map +1 -1
- package/dist/esm/funcs/basinsCreateOrReconfigureBasin.js +2 -2
- package/dist/esm/funcs/basinsCreateOrReconfigureBasin.js.map +1 -1
- package/dist/esm/funcs/basinsDeleteBasin.d.ts +1 -1
- package/dist/esm/funcs/basinsDeleteBasin.d.ts.map +1 -1
- package/dist/esm/funcs/basinsDeleteBasin.js +2 -13
- package/dist/esm/funcs/basinsDeleteBasin.js.map +1 -1
- package/dist/esm/funcs/basinsGetBasinConfig.d.ts +1 -1
- package/dist/esm/funcs/basinsGetBasinConfig.d.ts.map +1 -1
- package/dist/esm/funcs/basinsGetBasinConfig.js +2 -2
- package/dist/esm/funcs/basinsGetBasinConfig.js.map +1 -1
- package/dist/esm/funcs/basinsListBasins.d.ts +1 -1
- package/dist/esm/funcs/basinsListBasins.d.ts.map +1 -1
- package/dist/esm/funcs/basinsListBasins.js +2 -2
- package/dist/esm/funcs/basinsListBasins.js.map +1 -1
- package/dist/esm/funcs/basinsReconfigureBasin.d.ts +1 -1
- package/dist/esm/funcs/basinsReconfigureBasin.d.ts.map +1 -1
- package/dist/esm/funcs/basinsReconfigureBasin.js +2 -2
- package/dist/esm/funcs/basinsReconfigureBasin.js.map +1 -1
- package/dist/esm/funcs/recordsAppend.d.ts +1 -1
- package/dist/esm/funcs/recordsAppend.d.ts.map +1 -1
- package/dist/esm/funcs/recordsAppend.js +6 -14
- package/dist/esm/funcs/recordsAppend.js.map +1 -1
- package/dist/esm/funcs/recordsCheckTail.d.ts +1 -1
- package/dist/esm/funcs/recordsCheckTail.d.ts.map +1 -1
- package/dist/esm/funcs/recordsCheckTail.js +6 -13
- package/dist/esm/funcs/recordsCheckTail.js.map +1 -1
- package/dist/esm/funcs/recordsRead.d.ts +1 -1
- package/dist/esm/funcs/recordsRead.d.ts.map +1 -1
- package/dist/esm/funcs/recordsRead.js +6 -14
- package/dist/esm/funcs/recordsRead.js.map +1 -1
- package/dist/esm/funcs/streamsCreateOrReconfigureStream.d.ts +1 -1
- package/dist/esm/funcs/streamsCreateOrReconfigureStream.d.ts.map +1 -1
- package/dist/esm/funcs/streamsCreateOrReconfigureStream.js +6 -13
- package/dist/esm/funcs/streamsCreateOrReconfigureStream.js.map +1 -1
- package/dist/esm/funcs/streamsCreateStream.d.ts +2 -1
- package/dist/esm/funcs/streamsCreateStream.d.ts.map +1 -1
- package/dist/esm/funcs/streamsCreateStream.js +12 -16
- package/dist/esm/funcs/streamsCreateStream.js.map +1 -1
- package/dist/esm/funcs/streamsDeleteStream.d.ts +1 -1
- package/dist/esm/funcs/streamsDeleteStream.d.ts.map +1 -1
- package/dist/esm/funcs/streamsDeleteStream.js +6 -2
- package/dist/esm/funcs/streamsDeleteStream.js.map +1 -1
- package/dist/esm/funcs/streamsGetStreamConfig.d.ts +1 -1
- package/dist/esm/funcs/streamsGetStreamConfig.d.ts.map +1 -1
- package/dist/esm/funcs/streamsGetStreamConfig.js +6 -13
- package/dist/esm/funcs/streamsGetStreamConfig.js.map +1 -1
- package/dist/esm/funcs/streamsListStreams.d.ts +1 -1
- package/dist/esm/funcs/streamsListStreams.d.ts.map +1 -1
- package/dist/esm/funcs/streamsListStreams.js +7 -3
- package/dist/esm/funcs/streamsListStreams.js.map +1 -1
- package/dist/esm/funcs/streamsReconfigureStream.d.ts +1 -1
- package/dist/esm/funcs/streamsReconfigureStream.d.ts.map +1 -1
- package/dist/esm/funcs/streamsReconfigureStream.js +6 -13
- package/dist/esm/funcs/streamsReconfigureStream.js.map +1 -1
- package/dist/esm/hooks/basin.d.ts +6 -0
- package/dist/esm/hooks/basin.d.ts.map +1 -0
- package/dist/esm/hooks/basin.js +28 -0
- package/dist/esm/hooks/basin.js.map +1 -0
- package/dist/esm/hooks/registration.d.ts.map +1 -1
- package/dist/esm/hooks/registration.js +3 -1
- package/dist/esm/hooks/registration.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/cli/start/impl.js +2 -2
- package/dist/esm/mcp-server/cli/start/impl.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/mcp-server/tools/accessTokensIssueAccessToken.js +1 -1
- package/dist/esm/mcp-server/tools/accessTokensIssueAccessToken.js.map +1 -1
- package/dist/esm/mcp-server/tools/accessTokensListAccessTokens.js +1 -1
- package/dist/esm/mcp-server/tools/accessTokensListAccessTokens.js.map +1 -1
- package/dist/esm/mcp-server/tools/accessTokensRevokeAccessToken.js +1 -1
- package/dist/esm/mcp-server/tools/accessTokensRevokeAccessToken.js.map +1 -1
- package/dist/esm/mcp-server/tools/basinsCreateBasin.js +1 -1
- package/dist/esm/mcp-server/tools/basinsCreateBasin.js.map +1 -1
- package/dist/esm/mcp-server/tools/basinsCreateOrReconfigureBasin.js +1 -1
- package/dist/esm/mcp-server/tools/basinsCreateOrReconfigureBasin.js.map +1 -1
- package/dist/esm/mcp-server/tools/basinsDeleteBasin.js +1 -1
- package/dist/esm/mcp-server/tools/basinsDeleteBasin.js.map +1 -1
- package/dist/esm/mcp-server/tools/basinsGetBasinConfig.js +1 -1
- package/dist/esm/mcp-server/tools/basinsGetBasinConfig.js.map +1 -1
- package/dist/esm/mcp-server/tools/basinsListBasins.js +1 -1
- package/dist/esm/mcp-server/tools/basinsListBasins.js.map +1 -1
- package/dist/esm/mcp-server/tools/basinsReconfigureBasin.js +1 -1
- package/dist/esm/mcp-server/tools/basinsReconfigureBasin.js.map +1 -1
- package/dist/esm/mcp-server/tools/recordsAppend.js +1 -1
- package/dist/esm/mcp-server/tools/recordsAppend.js.map +1 -1
- package/dist/esm/mcp-server/tools/recordsCheckTail.js +1 -1
- package/dist/esm/mcp-server/tools/recordsCheckTail.js.map +1 -1
- package/dist/esm/mcp-server/tools/recordsRead.js +1 -1
- package/dist/esm/mcp-server/tools/recordsRead.js.map +1 -1
- package/dist/esm/mcp-server/tools/streamsCreateOrReconfigureStream.js +1 -1
- package/dist/esm/mcp-server/tools/streamsCreateOrReconfigureStream.js.map +1 -1
- package/dist/esm/mcp-server/tools/streamsCreateStream.d.ts +2 -2
- package/dist/esm/mcp-server/tools/streamsCreateStream.js +3 -3
- package/dist/esm/mcp-server/tools/streamsCreateStream.js.map +1 -1
- package/dist/esm/mcp-server/tools/streamsDeleteStream.js +1 -1
- package/dist/esm/mcp-server/tools/streamsDeleteStream.js.map +1 -1
- package/dist/esm/mcp-server/tools/streamsGetStreamConfig.js +1 -1
- package/dist/esm/mcp-server/tools/streamsGetStreamConfig.js.map +1 -1
- package/dist/esm/mcp-server/tools/streamsListStreams.js +1 -1
- package/dist/esm/mcp-server/tools/streamsListStreams.js.map +1 -1
- package/dist/esm/mcp-server/tools/streamsReconfigureStream.js +1 -1
- package/dist/esm/mcp-server/tools/streamsReconfigureStream.js.map +1 -1
- package/dist/esm/models/errors/errorresponse.d.ts +0 -3
- package/dist/esm/models/errors/errorresponse.d.ts.map +1 -1
- package/dist/esm/models/errors/errorresponse.js +3 -4
- package/dist/esm/models/errors/errorresponse.js.map +1 -1
- package/dist/esm/models/errors/index.d.ts +0 -2
- package/dist/esm/models/errors/index.d.ts.map +1 -1
- package/dist/esm/models/errors/index.js +0 -2
- package/dist/esm/models/errors/index.js.map +1 -1
- package/dist/esm/models/operations/append.d.ts +5 -0
- package/dist/esm/models/operations/append.d.ts.map +1 -1
- package/dist/esm/models/operations/append.js +4 -0
- package/dist/esm/models/operations/append.js.map +1 -1
- package/dist/esm/models/operations/checktail.d.ts +5 -0
- package/dist/esm/models/operations/checktail.d.ts.map +1 -1
- package/dist/esm/models/operations/checktail.js +11 -0
- package/dist/esm/models/operations/checktail.js.map +1 -1
- package/dist/esm/models/operations/createorreconfigurestream.d.ts +5 -0
- package/dist/esm/models/operations/createorreconfigurestream.d.ts.map +1 -1
- package/dist/esm/models/operations/createorreconfigurestream.js +4 -0
- package/dist/esm/models/operations/createorreconfigurestream.js.map +1 -1
- package/dist/esm/models/operations/createstream.d.ts +34 -0
- package/dist/esm/models/operations/createstream.d.ts.map +1 -1
- package/dist/esm/models/operations/createstream.js +41 -0
- package/dist/esm/models/operations/createstream.js.map +1 -1
- package/dist/esm/models/operations/deletestream.d.ts +5 -0
- package/dist/esm/models/operations/deletestream.d.ts.map +1 -1
- package/dist/esm/models/operations/deletestream.js +11 -0
- package/dist/esm/models/operations/deletestream.js.map +1 -1
- package/dist/esm/models/operations/getstreamconfig.d.ts +5 -0
- package/dist/esm/models/operations/getstreamconfig.d.ts.map +1 -1
- package/dist/esm/models/operations/getstreamconfig.js +11 -0
- package/dist/esm/models/operations/getstreamconfig.js.map +1 -1
- package/dist/esm/models/operations/liststreams.d.ts +5 -0
- package/dist/esm/models/operations/liststreams.d.ts.map +1 -1
- package/dist/esm/models/operations/liststreams.js +4 -0
- package/dist/esm/models/operations/liststreams.js.map +1 -1
- package/dist/esm/models/operations/read.d.ts +5 -0
- package/dist/esm/models/operations/read.d.ts.map +1 -1
- package/dist/esm/models/operations/read.js +4 -0
- package/dist/esm/models/operations/read.js.map +1 -1
- package/dist/esm/models/operations/reconfigurestream.d.ts +5 -0
- package/dist/esm/models/operations/reconfigurestream.d.ts.map +1 -1
- package/dist/esm/models/operations/reconfigurestream.js +4 -0
- package/dist/esm/models/operations/reconfigurestream.js.map +1 -1
- package/dist/esm/sdk/streams.d.ts +1 -1
- package/docs/sdks/accesstokens/README.md +12 -18
- package/docs/sdks/basins/README.md +24 -37
- package/docs/sdks/records/README.md +24 -21
- package/docs/sdks/streams/README.md +47 -42
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/accessTokensIssueAccessToken.ts +1 -9
- package/src/funcs/accessTokensListAccessTokens.ts +1 -9
- package/src/funcs/accessTokensRevokeAccessToken.ts +1 -9
- package/src/funcs/basinsCreateBasin.ts +1 -20
- package/src/funcs/basinsCreateOrReconfigureBasin.ts +1 -9
- package/src/funcs/basinsDeleteBasin.ts +2 -25
- package/src/funcs/basinsGetBasinConfig.ts +1 -9
- package/src/funcs/basinsListBasins.ts +1 -11
- package/src/funcs/basinsReconfigureBasin.ts +1 -9
- package/src/funcs/recordsAppend.ts +9 -21
- package/src/funcs/recordsCheckTail.ts +9 -20
- package/src/funcs/recordsRead.ts +9 -21
- package/src/funcs/streamsCreateOrReconfigureStream.ts +5 -20
- package/src/funcs/streamsCreateStream.ts +13 -25
- package/src/funcs/streamsDeleteStream.ts +6 -14
- package/src/funcs/streamsGetStreamConfig.ts +5 -20
- package/src/funcs/streamsListStreams.ts +6 -12
- package/src/funcs/streamsReconfigureStream.ts +5 -20
- package/src/hooks/basin.ts +39 -0
- package/src/hooks/registration.ts +2 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/cli/start/impl.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/accessTokensIssueAccessToken.ts +1 -1
- package/src/mcp-server/tools/accessTokensListAccessTokens.ts +1 -1
- package/src/mcp-server/tools/accessTokensRevokeAccessToken.ts +1 -1
- package/src/mcp-server/tools/basinsCreateBasin.ts +1 -1
- package/src/mcp-server/tools/basinsCreateOrReconfigureBasin.ts +1 -1
- package/src/mcp-server/tools/basinsDeleteBasin.ts +1 -1
- package/src/mcp-server/tools/basinsGetBasinConfig.ts +1 -1
- package/src/mcp-server/tools/basinsListBasins.ts +1 -1
- package/src/mcp-server/tools/basinsReconfigureBasin.ts +1 -1
- package/src/mcp-server/tools/recordsAppend.ts +1 -1
- package/src/mcp-server/tools/recordsCheckTail.ts +1 -1
- package/src/mcp-server/tools/recordsRead.ts +1 -1
- package/src/mcp-server/tools/streamsCreateOrReconfigureStream.ts +1 -1
- package/src/mcp-server/tools/streamsCreateStream.ts +3 -3
- package/src/mcp-server/tools/streamsDeleteStream.ts +1 -1
- package/src/mcp-server/tools/streamsGetStreamConfig.ts +1 -1
- package/src/mcp-server/tools/streamsListStreams.ts +1 -1
- package/src/mcp-server/tools/streamsReconfigureStream.ts +1 -1
- package/src/models/errors/errorresponse.ts +3 -7
- package/src/models/errors/index.ts +0 -2
- package/src/models/operations/append.ts +9 -0
- package/src/models/operations/checktail.ts +16 -0
- package/src/models/operations/createorreconfigurestream.ts +9 -0
- package/src/models/operations/createstream.ts +82 -0
- package/src/models/operations/deletestream.ts +16 -0
- package/src/models/operations/getstreamconfig.ts +16 -0
- package/src/models/operations/liststreams.ts +9 -0
- package/src/models/operations/read.ts +9 -0
- package/src/models/operations/reconfigurestream.ts +9 -0
- package/src/sdk/streams.ts +1 -1
- package/dist/commonjs/models/errors/notfounderror.d.ts +0 -31
- package/dist/commonjs/models/errors/notfounderror.d.ts.map +0 -1
- package/dist/commonjs/models/errors/notfounderror.js +0 -75
- package/dist/commonjs/models/errors/notfounderror.js.map +0 -1
- package/dist/commonjs/models/errors/retryableerror.d.ts +0 -31
- package/dist/commonjs/models/errors/retryableerror.d.ts.map +0 -1
- package/dist/commonjs/models/errors/retryableerror.js +0 -75
- package/dist/commonjs/models/errors/retryableerror.js.map +0 -1
- package/dist/esm/models/errors/notfounderror.d.ts +0 -31
- package/dist/esm/models/errors/notfounderror.d.ts.map +0 -1
- package/dist/esm/models/errors/notfounderror.js +0 -38
- package/dist/esm/models/errors/notfounderror.js.map +0 -1
- package/dist/esm/models/errors/retryableerror.d.ts +0 -31
- package/dist/esm/models/errors/retryableerror.d.ts.map +0 -1
- package/dist/esm/models/errors/retryableerror.js +0 -38
- package/dist/esm/models/errors/retryableerror.js.map +0 -1
- package/src/models/errors/notfounderror.ts +0 -67
- package/src/models/errors/retryableerror.ts +0 -67
package/bin/mcp-server.js
CHANGED
|
@@ -33982,9 +33982,37 @@ var init_mcp = __esm(() => {
|
|
|
33982
33982
|
};
|
|
33983
33983
|
});
|
|
33984
33984
|
|
|
33985
|
+
// src/hooks/basin.ts
|
|
33986
|
+
class AddBasinToUrlHook {
|
|
33987
|
+
beforeCreateRequest(_hookCtx, input) {
|
|
33988
|
+
const headers = input.options?.headers;
|
|
33989
|
+
if (!headers)
|
|
33990
|
+
return input;
|
|
33991
|
+
const basinHeader = headers instanceof Headers ? headers.get("s2-basin") : headers["s2-basin"];
|
|
33992
|
+
if (!basinHeader)
|
|
33993
|
+
return input;
|
|
33994
|
+
const url = new URL(input.url);
|
|
33995
|
+
if (!url.hostname.includes(".b.aws.s2.dev"))
|
|
33996
|
+
return input;
|
|
33997
|
+
url.hostname = `${basinHeader}.b.aws.s2.dev`;
|
|
33998
|
+
const remainingHeaders = headers instanceof Headers ? Object.fromEntries([...headers.entries()].filter(([key]) => key !== "s2-basin")) : Object.fromEntries(Object.entries(headers).filter(([key]) => key !== "s2-basin"));
|
|
33999
|
+
return {
|
|
34000
|
+
...input,
|
|
34001
|
+
url,
|
|
34002
|
+
options: {
|
|
34003
|
+
...input.options,
|
|
34004
|
+
headers: remainingHeaders
|
|
34005
|
+
}
|
|
34006
|
+
};
|
|
34007
|
+
}
|
|
34008
|
+
}
|
|
34009
|
+
|
|
33985
34010
|
// src/hooks/registration.ts
|
|
33986
34011
|
function initHooks(hooks) {
|
|
34012
|
+
hooks.registerBeforeCreateRequestHook(new AddBasinToUrlHook);
|
|
33987
34013
|
}
|
|
34014
|
+
var init_registration = () => {
|
|
34015
|
+
};
|
|
33988
34016
|
|
|
33989
34017
|
// src/hooks/hooks.ts
|
|
33990
34018
|
class SDKHooks {
|
|
@@ -34064,8 +34092,9 @@ class SDKHooks {
|
|
|
34064
34092
|
return { response: res, error: err };
|
|
34065
34093
|
}
|
|
34066
34094
|
}
|
|
34067
|
-
var init_hooks = () => {
|
|
34068
|
-
|
|
34095
|
+
var init_hooks = __esm(() => {
|
|
34096
|
+
init_registration();
|
|
34097
|
+
});
|
|
34069
34098
|
|
|
34070
34099
|
// src/models/errors/httpclienterrors.ts
|
|
34071
34100
|
var HTTPClientError, UnexpectedClientError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, ConnectionError;
|
|
@@ -34173,9 +34202,9 @@ var init_config = __esm(() => {
|
|
|
34173
34202
|
SDK_METADATA = {
|
|
34174
34203
|
language: "typescript",
|
|
34175
34204
|
openapiDocVersion: "1.0.0",
|
|
34176
|
-
sdkVersion: "0.
|
|
34177
|
-
genVersion: "2.
|
|
34178
|
-
userAgent: "speakeasy-sdk/typescript 0.
|
|
34205
|
+
sdkVersion: "0.13.1",
|
|
34206
|
+
genVersion: "2.605.0",
|
|
34207
|
+
userAgent: "speakeasy-sdk/typescript 0.13.1 2.605.0 1.0.0 @s2-dev/streamstore"
|
|
34179
34208
|
};
|
|
34180
34209
|
});
|
|
34181
34210
|
|
|
@@ -36865,29 +36894,25 @@ var init_errorresponse = __esm(() => {
|
|
|
36865
36894
|
init_lib();
|
|
36866
36895
|
ErrorResponse = class ErrorResponse extends Error {
|
|
36867
36896
|
code;
|
|
36868
|
-
error;
|
|
36869
36897
|
data$;
|
|
36870
36898
|
constructor(err) {
|
|
36871
|
-
const message = err.
|
|
36899
|
+
const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
|
|
36872
36900
|
super(message);
|
|
36873
36901
|
this.data$ = err;
|
|
36874
36902
|
if (err.code != null)
|
|
36875
36903
|
this.code = err.code;
|
|
36876
|
-
this.error = err.error;
|
|
36877
36904
|
this.name = "ErrorResponse";
|
|
36878
36905
|
}
|
|
36879
36906
|
};
|
|
36880
36907
|
ErrorResponse$inboundSchema = objectType({
|
|
36881
36908
|
code: nullableType(stringType()).optional(),
|
|
36882
|
-
message: stringType()
|
|
36883
|
-
error: stringType()
|
|
36909
|
+
message: stringType()
|
|
36884
36910
|
}).transform((v2) => {
|
|
36885
36911
|
return new ErrorResponse(v2);
|
|
36886
36912
|
});
|
|
36887
36913
|
ErrorResponse$outboundSchema = instanceOfType(ErrorResponse).transform((v2) => v2.data$).pipe(objectType({
|
|
36888
36914
|
code: nullableType(stringType()).optional(),
|
|
36889
|
-
message: stringType()
|
|
36890
|
-
error: stringType()
|
|
36915
|
+
message: stringType()
|
|
36891
36916
|
}));
|
|
36892
36917
|
((ErrorResponse$) => {
|
|
36893
36918
|
ErrorResponse$.inboundSchema = ErrorResponse$inboundSchema;
|
|
@@ -36895,64 +36920,6 @@ var init_errorresponse = __esm(() => {
|
|
|
36895
36920
|
})(ErrorResponse$ ||= {});
|
|
36896
36921
|
});
|
|
36897
36922
|
|
|
36898
|
-
// src/models/errors/notfounderror.ts
|
|
36899
|
-
var NotFoundError, NotFoundError$inboundSchema, NotFoundError$outboundSchema, NotFoundError$;
|
|
36900
|
-
var init_notfounderror = __esm(() => {
|
|
36901
|
-
init_lib();
|
|
36902
|
-
NotFoundError = class NotFoundError extends Error {
|
|
36903
|
-
error;
|
|
36904
|
-
data$;
|
|
36905
|
-
constructor(err) {
|
|
36906
|
-
const message = err.error || "API error occurred";
|
|
36907
|
-
super(message);
|
|
36908
|
-
this.data$ = err;
|
|
36909
|
-
this.error = err.error;
|
|
36910
|
-
this.name = "NotFoundError";
|
|
36911
|
-
}
|
|
36912
|
-
};
|
|
36913
|
-
NotFoundError$inboundSchema = objectType({
|
|
36914
|
-
error: stringType()
|
|
36915
|
-
}).transform((v2) => {
|
|
36916
|
-
return new NotFoundError(v2);
|
|
36917
|
-
});
|
|
36918
|
-
NotFoundError$outboundSchema = instanceOfType(NotFoundError).transform((v2) => v2.data$).pipe(objectType({
|
|
36919
|
-
error: stringType()
|
|
36920
|
-
}));
|
|
36921
|
-
((NotFoundError$) => {
|
|
36922
|
-
NotFoundError$.inboundSchema = NotFoundError$inboundSchema;
|
|
36923
|
-
NotFoundError$.outboundSchema = NotFoundError$outboundSchema;
|
|
36924
|
-
})(NotFoundError$ ||= {});
|
|
36925
|
-
});
|
|
36926
|
-
|
|
36927
|
-
// src/models/errors/retryableerror.ts
|
|
36928
|
-
var RetryableError, RetryableError$inboundSchema, RetryableError$outboundSchema, RetryableError$;
|
|
36929
|
-
var init_retryableerror = __esm(() => {
|
|
36930
|
-
init_lib();
|
|
36931
|
-
RetryableError = class RetryableError extends Error {
|
|
36932
|
-
error;
|
|
36933
|
-
data$;
|
|
36934
|
-
constructor(err) {
|
|
36935
|
-
const message = err.error || "API error occurred";
|
|
36936
|
-
super(message);
|
|
36937
|
-
this.data$ = err;
|
|
36938
|
-
this.error = err.error;
|
|
36939
|
-
this.name = "RetryableError";
|
|
36940
|
-
}
|
|
36941
|
-
};
|
|
36942
|
-
RetryableError$inboundSchema = objectType({
|
|
36943
|
-
error: stringType()
|
|
36944
|
-
}).transform((v2) => {
|
|
36945
|
-
return new RetryableError(v2);
|
|
36946
|
-
});
|
|
36947
|
-
RetryableError$outboundSchema = instanceOfType(RetryableError).transform((v2) => v2.data$).pipe(objectType({
|
|
36948
|
-
error: stringType()
|
|
36949
|
-
}));
|
|
36950
|
-
((RetryableError$) => {
|
|
36951
|
-
RetryableError$.inboundSchema = RetryableError$inboundSchema;
|
|
36952
|
-
RetryableError$.outboundSchema = RetryableError$outboundSchema;
|
|
36953
|
-
})(RetryableError$ ||= {});
|
|
36954
|
-
});
|
|
36955
|
-
|
|
36956
36923
|
// src/models/errors/tailresponse.ts
|
|
36957
36924
|
var TailResponse, TailResponse$inboundSchema2, TailResponse$outboundSchema2, TailResponse$2;
|
|
36958
36925
|
var init_tailresponse2 = __esm(() => {
|
|
@@ -36989,8 +36956,6 @@ var init_errors = __esm(() => {
|
|
|
36989
36956
|
init_appendconditionfailed();
|
|
36990
36957
|
init_errorresponse();
|
|
36991
36958
|
init_httpclienterrors();
|
|
36992
|
-
init_notfounderror();
|
|
36993
|
-
init_retryableerror();
|
|
36994
36959
|
init_sdkvalidationerror();
|
|
36995
36960
|
init_tailresponse2();
|
|
36996
36961
|
});
|
|
@@ -37064,7 +37029,7 @@ async function $do(client, request, options) {
|
|
|
37064
37029
|
const req = requestRes.value;
|
|
37065
37030
|
const doResult = await client._do(req, {
|
|
37066
37031
|
context,
|
|
37067
|
-
errorCodes: ["400", "403", "409", "
|
|
37032
|
+
errorCodes: ["400", "403", "409", "4XX", "5XX"],
|
|
37068
37033
|
retryConfig: context.retryConfig,
|
|
37069
37034
|
retryCodes: context.retryCodes
|
|
37070
37035
|
});
|
|
@@ -37075,7 +37040,7 @@ async function $do(client, request, options) {
|
|
|
37075
37040
|
const responseFields = {
|
|
37076
37041
|
HttpMeta: { Response: response, Request: req }
|
|
37077
37042
|
};
|
|
37078
|
-
const [result] = await match(json(201, IssueAccessTokenResponse$inboundSchema), jsonErr([400, 403, 409], ErrorResponse$inboundSchema),
|
|
37043
|
+
const [result] = await match(json(201, IssueAccessTokenResponse$inboundSchema), jsonErr([400, 403, 409], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
37079
37044
|
if (!result.ok) {
|
|
37080
37045
|
return [result, { status: "complete", request: req, response }];
|
|
37081
37046
|
}
|
|
@@ -37105,7 +37070,7 @@ var init_accessTokensIssueAccessToken2 = __esm(() => {
|
|
|
37105
37070
|
tool$accessTokensIssueAccessToken = {
|
|
37106
37071
|
name: "access-tokens-issue-access-token",
|
|
37107
37072
|
description: `Issue a new access token.`,
|
|
37108
|
-
scopes: ["write"],
|
|
37073
|
+
scopes: ["write", "write", "write"],
|
|
37109
37074
|
args,
|
|
37110
37075
|
tool: async (client, args2, ctx) => {
|
|
37111
37076
|
const [result, apiCall] = await accessTokensIssueAccessToken(client, args2.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -37133,20 +37098,24 @@ var init_append = __esm(() => {
|
|
|
37133
37098
|
AppendRequest$inboundSchema = objectType({
|
|
37134
37099
|
stream: stringType(),
|
|
37135
37100
|
"s2-format": S2Format$inboundSchema.optional(),
|
|
37101
|
+
"s2-basin": stringType(),
|
|
37136
37102
|
AppendInput: AppendInput$inboundSchema
|
|
37137
37103
|
}).transform((v2) => {
|
|
37138
37104
|
return remap(v2, {
|
|
37139
37105
|
"s2-format": "s2Format",
|
|
37106
|
+
"s2-basin": "s2Basin",
|
|
37140
37107
|
AppendInput: "appendInput"
|
|
37141
37108
|
});
|
|
37142
37109
|
});
|
|
37143
37110
|
AppendRequest$outboundSchema = objectType({
|
|
37144
37111
|
stream: stringType(),
|
|
37145
37112
|
s2Format: S2Format$outboundSchema.optional(),
|
|
37113
|
+
s2Basin: stringType(),
|
|
37146
37114
|
appendInput: AppendInput$outboundSchema
|
|
37147
37115
|
}).transform((v2) => {
|
|
37148
37116
|
return remap(v2, {
|
|
37149
37117
|
s2Format: "s2-format",
|
|
37118
|
+
s2Basin: "s2-basin",
|
|
37150
37119
|
appendInput: "AppendInput"
|
|
37151
37120
|
});
|
|
37152
37121
|
});
|
|
@@ -37160,14 +37129,25 @@ var init_append = __esm(() => {
|
|
|
37160
37129
|
var CheckTailServerList, CheckTailRequest$inboundSchema, CheckTailRequest$outboundSchema, CheckTailRequest$;
|
|
37161
37130
|
var init_checktail = __esm(() => {
|
|
37162
37131
|
init_lib();
|
|
37132
|
+
init_primitives();
|
|
37163
37133
|
CheckTailServerList = [
|
|
37164
37134
|
"https://{basin}.b.aws.s2.dev/v1"
|
|
37165
37135
|
];
|
|
37166
37136
|
CheckTailRequest$inboundSchema = objectType({
|
|
37167
|
-
stream: stringType()
|
|
37137
|
+
stream: stringType(),
|
|
37138
|
+
"s2-basin": stringType()
|
|
37139
|
+
}).transform((v2) => {
|
|
37140
|
+
return remap(v2, {
|
|
37141
|
+
"s2-basin": "s2Basin"
|
|
37142
|
+
});
|
|
37168
37143
|
});
|
|
37169
37144
|
CheckTailRequest$outboundSchema = objectType({
|
|
37170
|
-
stream: stringType()
|
|
37145
|
+
stream: stringType(),
|
|
37146
|
+
s2Basin: stringType()
|
|
37147
|
+
}).transform((v2) => {
|
|
37148
|
+
return remap(v2, {
|
|
37149
|
+
s2Basin: "s2-basin"
|
|
37150
|
+
});
|
|
37171
37151
|
});
|
|
37172
37152
|
((CheckTailRequest$) => {
|
|
37173
37153
|
CheckTailRequest$.inboundSchema = CheckTailRequest$inboundSchema;
|
|
@@ -37219,20 +37199,24 @@ var init_createorreconfigurestream = __esm(() => {
|
|
|
37219
37199
|
CreateOrReconfigureStreamRequest$inboundSchema = objectType({
|
|
37220
37200
|
stream: stringType(),
|
|
37221
37201
|
"s2-request-token": stringType().optional(),
|
|
37202
|
+
"s2-basin": stringType(),
|
|
37222
37203
|
StreamConfig: nullableType(StreamConfig$inboundSchema).optional()
|
|
37223
37204
|
}).transform((v2) => {
|
|
37224
37205
|
return remap(v2, {
|
|
37225
37206
|
"s2-request-token": "s2RequestToken",
|
|
37207
|
+
"s2-basin": "s2Basin",
|
|
37226
37208
|
StreamConfig: "streamConfig"
|
|
37227
37209
|
});
|
|
37228
37210
|
});
|
|
37229
37211
|
CreateOrReconfigureStreamRequest$outboundSchema = objectType({
|
|
37230
37212
|
stream: stringType(),
|
|
37231
37213
|
s2RequestToken: stringType().optional(),
|
|
37214
|
+
s2Basin: stringType(),
|
|
37232
37215
|
streamConfig: nullableType(StreamConfig$outboundSchema).optional()
|
|
37233
37216
|
}).transform((v2) => {
|
|
37234
37217
|
return remap(v2, {
|
|
37235
37218
|
s2RequestToken: "s2-request-token",
|
|
37219
|
+
s2Basin: "s2-basin",
|
|
37236
37220
|
streamConfig: "StreamConfig"
|
|
37237
37221
|
});
|
|
37238
37222
|
});
|
|
@@ -37243,11 +37227,36 @@ var init_createorreconfigurestream = __esm(() => {
|
|
|
37243
37227
|
});
|
|
37244
37228
|
|
|
37245
37229
|
// src/models/operations/createstream.ts
|
|
37246
|
-
var CreateStreamServerList;
|
|
37230
|
+
var CreateStreamServerList, CreateStreamRequest$inboundSchema2, CreateStreamRequest$outboundSchema2, CreateStreamRequest$2;
|
|
37247
37231
|
var init_createstream = __esm(() => {
|
|
37232
|
+
init_lib();
|
|
37233
|
+
init_primitives();
|
|
37234
|
+
init_components();
|
|
37248
37235
|
CreateStreamServerList = [
|
|
37249
37236
|
"https://{basin}.b.aws.s2.dev/v1"
|
|
37250
37237
|
];
|
|
37238
|
+
CreateStreamRequest$inboundSchema2 = objectType({
|
|
37239
|
+
"s2-basin": stringType(),
|
|
37240
|
+
CreateStreamRequest: CreateStreamRequest$inboundSchema
|
|
37241
|
+
}).transform((v2) => {
|
|
37242
|
+
return remap(v2, {
|
|
37243
|
+
"s2-basin": "s2Basin",
|
|
37244
|
+
CreateStreamRequest: "createStreamRequest"
|
|
37245
|
+
});
|
|
37246
|
+
});
|
|
37247
|
+
CreateStreamRequest$outboundSchema2 = objectType({
|
|
37248
|
+
s2Basin: stringType(),
|
|
37249
|
+
createStreamRequest: CreateStreamRequest$outboundSchema
|
|
37250
|
+
}).transform((v2) => {
|
|
37251
|
+
return remap(v2, {
|
|
37252
|
+
s2Basin: "s2-basin",
|
|
37253
|
+
createStreamRequest: "CreateStreamRequest"
|
|
37254
|
+
});
|
|
37255
|
+
});
|
|
37256
|
+
((CreateStreamRequest$) => {
|
|
37257
|
+
CreateStreamRequest$.inboundSchema = CreateStreamRequest$inboundSchema2;
|
|
37258
|
+
CreateStreamRequest$.outboundSchema = CreateStreamRequest$outboundSchema2;
|
|
37259
|
+
})(CreateStreamRequest$2 ||= {});
|
|
37251
37260
|
});
|
|
37252
37261
|
|
|
37253
37262
|
// src/models/operations/deletebasin.ts
|
|
@@ -37270,14 +37279,25 @@ var init_deletebasin = __esm(() => {
|
|
|
37270
37279
|
var DeleteStreamServerList, DeleteStreamRequest$inboundSchema, DeleteStreamRequest$outboundSchema, DeleteStreamRequest$;
|
|
37271
37280
|
var init_deletestream = __esm(() => {
|
|
37272
37281
|
init_lib();
|
|
37282
|
+
init_primitives();
|
|
37273
37283
|
DeleteStreamServerList = [
|
|
37274
37284
|
"https://{basin}.b.aws.s2.dev/v1"
|
|
37275
37285
|
];
|
|
37276
37286
|
DeleteStreamRequest$inboundSchema = objectType({
|
|
37277
|
-
stream: stringType()
|
|
37287
|
+
stream: stringType(),
|
|
37288
|
+
"s2-basin": stringType()
|
|
37289
|
+
}).transform((v2) => {
|
|
37290
|
+
return remap(v2, {
|
|
37291
|
+
"s2-basin": "s2Basin"
|
|
37292
|
+
});
|
|
37278
37293
|
});
|
|
37279
37294
|
DeleteStreamRequest$outboundSchema = objectType({
|
|
37280
|
-
stream: stringType()
|
|
37295
|
+
stream: stringType(),
|
|
37296
|
+
s2Basin: stringType()
|
|
37297
|
+
}).transform((v2) => {
|
|
37298
|
+
return remap(v2, {
|
|
37299
|
+
s2Basin: "s2-basin"
|
|
37300
|
+
});
|
|
37281
37301
|
});
|
|
37282
37302
|
((DeleteStreamRequest$) => {
|
|
37283
37303
|
DeleteStreamRequest$.inboundSchema = DeleteStreamRequest$inboundSchema;
|
|
@@ -37305,14 +37325,25 @@ var init_getbasinconfig = __esm(() => {
|
|
|
37305
37325
|
var GetStreamConfigServerList, GetStreamConfigRequest$inboundSchema, GetStreamConfigRequest$outboundSchema, GetStreamConfigRequest$;
|
|
37306
37326
|
var init_getstreamconfig = __esm(() => {
|
|
37307
37327
|
init_lib();
|
|
37328
|
+
init_primitives();
|
|
37308
37329
|
GetStreamConfigServerList = [
|
|
37309
37330
|
"https://{basin}.b.aws.s2.dev/v1"
|
|
37310
37331
|
];
|
|
37311
37332
|
GetStreamConfigRequest$inboundSchema = objectType({
|
|
37312
|
-
stream: stringType()
|
|
37333
|
+
stream: stringType(),
|
|
37334
|
+
"s2-basin": stringType()
|
|
37335
|
+
}).transform((v2) => {
|
|
37336
|
+
return remap(v2, {
|
|
37337
|
+
"s2-basin": "s2Basin"
|
|
37338
|
+
});
|
|
37313
37339
|
});
|
|
37314
37340
|
GetStreamConfigRequest$outboundSchema = objectType({
|
|
37315
|
-
stream: stringType()
|
|
37341
|
+
stream: stringType(),
|
|
37342
|
+
s2Basin: stringType()
|
|
37343
|
+
}).transform((v2) => {
|
|
37344
|
+
return remap(v2, {
|
|
37345
|
+
s2Basin: "s2-basin"
|
|
37346
|
+
});
|
|
37316
37347
|
});
|
|
37317
37348
|
((GetStreamConfigRequest$) => {
|
|
37318
37349
|
GetStreamConfigRequest$.inboundSchema = GetStreamConfigRequest$inboundSchema;
|
|
@@ -37409,19 +37440,23 @@ var init_liststreams = __esm(() => {
|
|
|
37409
37440
|
ListStreamsRequest$inboundSchema = objectType({
|
|
37410
37441
|
prefix: stringType().default(""),
|
|
37411
37442
|
start_after: stringType().default(""),
|
|
37412
|
-
limit: numberType().int().default(1000)
|
|
37443
|
+
limit: numberType().int().default(1000),
|
|
37444
|
+
"s2-basin": stringType()
|
|
37413
37445
|
}).transform((v2) => {
|
|
37414
37446
|
return remap(v2, {
|
|
37415
|
-
start_after: "startAfter"
|
|
37447
|
+
start_after: "startAfter",
|
|
37448
|
+
"s2-basin": "s2Basin"
|
|
37416
37449
|
});
|
|
37417
37450
|
});
|
|
37418
37451
|
ListStreamsRequest$outboundSchema = objectType({
|
|
37419
37452
|
prefix: stringType().default(""),
|
|
37420
37453
|
startAfter: stringType().default(""),
|
|
37421
|
-
limit: numberType().int().default(1000)
|
|
37454
|
+
limit: numberType().int().default(1000),
|
|
37455
|
+
s2Basin: stringType()
|
|
37422
37456
|
}).transform((v2) => {
|
|
37423
37457
|
return remap(v2, {
|
|
37424
|
-
startAfter: "start_after"
|
|
37458
|
+
startAfter: "start_after",
|
|
37459
|
+
s2Basin: "s2-basin"
|
|
37425
37460
|
});
|
|
37426
37461
|
});
|
|
37427
37462
|
((ListStreamsRequest$) => {
|
|
@@ -37465,12 +37500,14 @@ var init_read = __esm(() => {
|
|
|
37465
37500
|
timestamp: numberType().int().optional(),
|
|
37466
37501
|
tail_offset: numberType().int().optional(),
|
|
37467
37502
|
count: numberType().int().optional(),
|
|
37468
|
-
bytes: numberType().int().optional()
|
|
37503
|
+
bytes: numberType().int().optional(),
|
|
37504
|
+
"s2-basin": stringType()
|
|
37469
37505
|
}).transform((v2) => {
|
|
37470
37506
|
return remap(v2, {
|
|
37471
37507
|
"s2-format": "s2Format",
|
|
37472
37508
|
seq_num: "seqNum",
|
|
37473
|
-
tail_offset: "tailOffset"
|
|
37509
|
+
tail_offset: "tailOffset",
|
|
37510
|
+
"s2-basin": "s2Basin"
|
|
37474
37511
|
});
|
|
37475
37512
|
});
|
|
37476
37513
|
ReadRequest$outboundSchema = objectType({
|
|
@@ -37480,12 +37517,14 @@ var init_read = __esm(() => {
|
|
|
37480
37517
|
timestamp: numberType().int().optional(),
|
|
37481
37518
|
tailOffset: numberType().int().optional(),
|
|
37482
37519
|
count: numberType().int().optional(),
|
|
37483
|
-
bytes: numberType().int().optional()
|
|
37520
|
+
bytes: numberType().int().optional(),
|
|
37521
|
+
s2Basin: stringType()
|
|
37484
37522
|
}).transform((v2) => {
|
|
37485
37523
|
return remap(v2, {
|
|
37486
37524
|
s2Format: "s2-format",
|
|
37487
37525
|
seqNum: "seq_num",
|
|
37488
|
-
tailOffset: "tail_offset"
|
|
37526
|
+
tailOffset: "tail_offset",
|
|
37527
|
+
s2Basin: "s2-basin"
|
|
37489
37528
|
});
|
|
37490
37529
|
});
|
|
37491
37530
|
((ReadRequest$) => {
|
|
@@ -37550,17 +37589,21 @@ var init_reconfigurestream = __esm(() => {
|
|
|
37550
37589
|
];
|
|
37551
37590
|
ReconfigureStreamRequest$inboundSchema = objectType({
|
|
37552
37591
|
stream: stringType(),
|
|
37592
|
+
"s2-basin": stringType(),
|
|
37553
37593
|
StreamReconfiguration: StreamReconfiguration$inboundSchema
|
|
37554
37594
|
}).transform((v2) => {
|
|
37555
37595
|
return remap(v2, {
|
|
37596
|
+
"s2-basin": "s2Basin",
|
|
37556
37597
|
StreamReconfiguration: "streamReconfiguration"
|
|
37557
37598
|
});
|
|
37558
37599
|
});
|
|
37559
37600
|
ReconfigureStreamRequest$outboundSchema = objectType({
|
|
37560
37601
|
stream: stringType(),
|
|
37602
|
+
s2Basin: stringType(),
|
|
37561
37603
|
streamReconfiguration: StreamReconfiguration$outboundSchema
|
|
37562
37604
|
}).transform((v2) => {
|
|
37563
37605
|
return remap(v2, {
|
|
37606
|
+
s2Basin: "s2-basin",
|
|
37564
37607
|
streamReconfiguration: "StreamReconfiguration"
|
|
37565
37608
|
});
|
|
37566
37609
|
});
|
|
@@ -37654,7 +37697,7 @@ async function $do2(client, request, options) {
|
|
|
37654
37697
|
const req = requestRes.value;
|
|
37655
37698
|
const doResult = await client._do(req, {
|
|
37656
37699
|
context,
|
|
37657
|
-
errorCodes: ["400", "403", "
|
|
37700
|
+
errorCodes: ["400", "403", "4XX", "5XX"],
|
|
37658
37701
|
retryConfig: context.retryConfig,
|
|
37659
37702
|
retryCodes: context.retryCodes
|
|
37660
37703
|
});
|
|
@@ -37665,7 +37708,7 @@ async function $do2(client, request, options) {
|
|
|
37665
37708
|
const responseFields = {
|
|
37666
37709
|
HttpMeta: { Response: response, Request: req }
|
|
37667
37710
|
};
|
|
37668
|
-
const [result] = await match(json(200, ListAccessTokensResponse$inboundSchema), jsonErr([400, 403], ErrorResponse$inboundSchema),
|
|
37711
|
+
const [result] = await match(json(200, ListAccessTokensResponse$inboundSchema), jsonErr([400, 403], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
37669
37712
|
if (!result.ok) {
|
|
37670
37713
|
return [result, { status: "complete", request: req, response }];
|
|
37671
37714
|
}
|
|
@@ -37696,7 +37739,7 @@ var init_accessTokensListAccessTokens2 = __esm(() => {
|
|
|
37696
37739
|
tool$accessTokensListAccessTokens = {
|
|
37697
37740
|
name: "access-tokens-list-access-tokens",
|
|
37698
37741
|
description: `List access tokens.`,
|
|
37699
|
-
scopes: ["read"],
|
|
37742
|
+
scopes: ["read", "read", "read"],
|
|
37700
37743
|
args: args2,
|
|
37701
37744
|
tool: async (client, args3, ctx) => {
|
|
37702
37745
|
const [result, apiCall] = await accessTokensListAccessTokens(client, args3.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -37760,7 +37803,7 @@ async function $do3(client, request, options) {
|
|
|
37760
37803
|
const req = requestRes.value;
|
|
37761
37804
|
const doResult = await client._do(req, {
|
|
37762
37805
|
context,
|
|
37763
|
-
errorCodes: ["400", "403", "
|
|
37806
|
+
errorCodes: ["400", "403", "4XX", "5XX"],
|
|
37764
37807
|
retryConfig: context.retryConfig,
|
|
37765
37808
|
retryCodes: context.retryCodes
|
|
37766
37809
|
});
|
|
@@ -37771,7 +37814,7 @@ async function $do3(client, request, options) {
|
|
|
37771
37814
|
const responseFields = {
|
|
37772
37815
|
HttpMeta: { Response: response, Request: req }
|
|
37773
37816
|
};
|
|
37774
|
-
const [result] = await match(nil(200, voidType()), jsonErr([400, 403], ErrorResponse$inboundSchema),
|
|
37817
|
+
const [result] = await match(nil(200, voidType()), jsonErr([400, 403], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
37775
37818
|
if (!result.ok) {
|
|
37776
37819
|
return [result, { status: "complete", request: req, response }];
|
|
37777
37820
|
}
|
|
@@ -37802,7 +37845,7 @@ var init_accessTokensRevokeAccessToken2 = __esm(() => {
|
|
|
37802
37845
|
tool$accessTokensRevokeAccessToken = {
|
|
37803
37846
|
name: "access-tokens-revoke-access-token",
|
|
37804
37847
|
description: `Revoke an access token.`,
|
|
37805
|
-
scopes: ["write"],
|
|
37848
|
+
scopes: ["write", "write", "write"],
|
|
37806
37849
|
args: args3,
|
|
37807
37850
|
tool: async (client, args4, ctx) => {
|
|
37808
37851
|
const [result, apiCall] = await accessTokensRevokeAccessToken(client, args4.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -37860,18 +37903,7 @@ async function $do4(client, request, options) {
|
|
|
37860
37903
|
const req = requestRes.value;
|
|
37861
37904
|
const doResult = await client._do(req, {
|
|
37862
37905
|
context,
|
|
37863
|
-
errorCodes: [
|
|
37864
|
-
"400",
|
|
37865
|
-
"401",
|
|
37866
|
-
"403",
|
|
37867
|
-
"409",
|
|
37868
|
-
"499",
|
|
37869
|
-
"4XX",
|
|
37870
|
-
"500",
|
|
37871
|
-
"503",
|
|
37872
|
-
"504",
|
|
37873
|
-
"5XX"
|
|
37874
|
-
],
|
|
37906
|
+
errorCodes: ["400", "401", "403", "409", "4XX", "5XX"],
|
|
37875
37907
|
retryConfig: context.retryConfig,
|
|
37876
37908
|
retryCodes: context.retryCodes
|
|
37877
37909
|
});
|
|
@@ -37882,7 +37914,7 @@ async function $do4(client, request, options) {
|
|
|
37882
37914
|
const responseFields = {
|
|
37883
37915
|
HttpMeta: { Response: response, Request: req }
|
|
37884
37916
|
};
|
|
37885
|
-
const [result] = await match(json(201, BasinInfo$inboundSchema), jsonErr([400, 401, 403, 409], ErrorResponse$inboundSchema),
|
|
37917
|
+
const [result] = await match(json(201, BasinInfo$inboundSchema), jsonErr([400, 401, 403, 409], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
37886
37918
|
if (!result.ok) {
|
|
37887
37919
|
return [result, { status: "complete", request: req, response }];
|
|
37888
37920
|
}
|
|
@@ -37912,7 +37944,7 @@ var init_basinsCreateBasin2 = __esm(() => {
|
|
|
37912
37944
|
tool$basinsCreateBasin = {
|
|
37913
37945
|
name: "basins-create-basin",
|
|
37914
37946
|
description: `Create a basin.`,
|
|
37915
|
-
scopes: ["write"],
|
|
37947
|
+
scopes: ["write", "write", "write"],
|
|
37916
37948
|
args: args4,
|
|
37917
37949
|
tool: async (client, args5, ctx) => {
|
|
37918
37950
|
const [result, apiCall] = await basinsCreateBasin(client, args5.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -37980,7 +38012,7 @@ async function $do5(client, request, options) {
|
|
|
37980
38012
|
const req = requestRes.value;
|
|
37981
38013
|
const doResult = await client._do(req, {
|
|
37982
38014
|
context,
|
|
37983
|
-
errorCodes: ["400", "
|
|
38015
|
+
errorCodes: ["400", "4XX", "5XX"],
|
|
37984
38016
|
retryConfig: context.retryConfig,
|
|
37985
38017
|
retryCodes: context.retryCodes
|
|
37986
38018
|
});
|
|
@@ -37991,7 +38023,7 @@ async function $do5(client, request, options) {
|
|
|
37991
38023
|
const responseFields = {
|
|
37992
38024
|
HttpMeta: { Response: response, Request: req }
|
|
37993
38025
|
};
|
|
37994
|
-
const [result] = await match(json(201, BasinInfo$inboundSchema.optional()), nil(204, BasinInfo$inboundSchema.optional()), jsonErr(400, ErrorResponse$inboundSchema),
|
|
38026
|
+
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 });
|
|
37995
38027
|
if (!result.ok) {
|
|
37996
38028
|
return [result, { status: "complete", request: req, response }];
|
|
37997
38029
|
}
|
|
@@ -38022,7 +38054,7 @@ var init_basinsCreateOrReconfigureBasin2 = __esm(() => {
|
|
|
38022
38054
|
tool$basinsCreateOrReconfigureBasin = {
|
|
38023
38055
|
name: "basins-create-or-reconfigure-basin",
|
|
38024
38056
|
description: `Create or reconfigure a basin.`,
|
|
38025
|
-
scopes: ["write"],
|
|
38057
|
+
scopes: ["write", "write", "write"],
|
|
38026
38058
|
args: args5,
|
|
38027
38059
|
tool: async (client, args6, ctx) => {
|
|
38028
38060
|
const [result, apiCall] = await basinsCreateOrReconfigureBasin(client, args6.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -38086,18 +38118,7 @@ async function $do6(client, request, options) {
|
|
|
38086
38118
|
const req = requestRes.value;
|
|
38087
38119
|
const doResult = await client._do(req, {
|
|
38088
38120
|
context,
|
|
38089
|
-
errorCodes: [
|
|
38090
|
-
"400",
|
|
38091
|
-
"401",
|
|
38092
|
-
"403",
|
|
38093
|
-
"404",
|
|
38094
|
-
"499",
|
|
38095
|
-
"4XX",
|
|
38096
|
-
"500",
|
|
38097
|
-
"503",
|
|
38098
|
-
"504",
|
|
38099
|
-
"5XX"
|
|
38100
|
-
],
|
|
38121
|
+
errorCodes: ["400", "401", "403", "404", "4XX", "5XX"],
|
|
38101
38122
|
retryConfig: context.retryConfig,
|
|
38102
38123
|
retryCodes: context.retryCodes
|
|
38103
38124
|
});
|
|
@@ -38108,7 +38129,7 @@ async function $do6(client, request, options) {
|
|
|
38108
38129
|
const responseFields = {
|
|
38109
38130
|
HttpMeta: { Response: response, Request: req }
|
|
38110
38131
|
};
|
|
38111
|
-
const [result] = await match(nil(202, voidType()), jsonErr([400, 401, 403
|
|
38132
|
+
const [result] = await match(nil(202, voidType()), jsonErr([400, 401, 403, 404], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
38112
38133
|
if (!result.ok) {
|
|
38113
38134
|
return [result, { status: "complete", request: req, response }];
|
|
38114
38135
|
}
|
|
@@ -38139,7 +38160,7 @@ var init_basinsDeleteBasin2 = __esm(() => {
|
|
|
38139
38160
|
tool$basinsDeleteBasin = {
|
|
38140
38161
|
name: "basins-delete-basin",
|
|
38141
38162
|
description: `Delete a basin.`,
|
|
38142
|
-
scopes: ["write"],
|
|
38163
|
+
scopes: ["write", "write", "write"],
|
|
38143
38164
|
args: args6,
|
|
38144
38165
|
tool: async (client, args7, ctx) => {
|
|
38145
38166
|
const [result, apiCall] = await basinsDeleteBasin(client, args7.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -38202,7 +38223,7 @@ async function $do7(client, request, options) {
|
|
|
38202
38223
|
const req = requestRes.value;
|
|
38203
38224
|
const doResult = await client._do(req, {
|
|
38204
38225
|
context,
|
|
38205
|
-
errorCodes: ["400", "403", "404", "
|
|
38226
|
+
errorCodes: ["400", "403", "404", "4XX", "5XX"],
|
|
38206
38227
|
retryConfig: context.retryConfig,
|
|
38207
38228
|
retryCodes: context.retryCodes
|
|
38208
38229
|
});
|
|
@@ -38213,7 +38234,7 @@ async function $do7(client, request, options) {
|
|
|
38213
38234
|
const responseFields = {
|
|
38214
38235
|
HttpMeta: { Response: response, Request: req }
|
|
38215
38236
|
};
|
|
38216
|
-
const [result] = await match(json(200, BasinConfig$inboundSchema), jsonErr([400, 403, 404], ErrorResponse$inboundSchema),
|
|
38237
|
+
const [result] = await match(json(200, BasinConfig$inboundSchema), jsonErr([400, 403, 404], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
38217
38238
|
if (!result.ok) {
|
|
38218
38239
|
return [result, { status: "complete", request: req, response }];
|
|
38219
38240
|
}
|
|
@@ -38244,7 +38265,7 @@ var init_basinsGetBasinConfig2 = __esm(() => {
|
|
|
38244
38265
|
tool$basinsGetBasinConfig = {
|
|
38245
38266
|
name: "basins-get-basin-config",
|
|
38246
38267
|
description: `Get basin config.`,
|
|
38247
|
-
scopes: ["read"],
|
|
38268
|
+
scopes: ["read", "read", "read"],
|
|
38248
38269
|
args: args7,
|
|
38249
38270
|
tool: async (client, args8, ctx) => {
|
|
38250
38271
|
const [result, apiCall] = await basinsGetBasinConfig(client, args8.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -42127,7 +42148,7 @@ async function $do8(client, request, options) {
|
|
|
42127
42148
|
const req = requestRes.value;
|
|
42128
42149
|
const doResult = await client._do(req, {
|
|
42129
42150
|
context,
|
|
42130
|
-
errorCodes: ["400", "403", "
|
|
42151
|
+
errorCodes: ["400", "403", "4XX", "5XX"],
|
|
42131
42152
|
retryConfig: context.retryConfig,
|
|
42132
42153
|
retryCodes: context.retryCodes
|
|
42133
42154
|
});
|
|
@@ -42138,7 +42159,7 @@ async function $do8(client, request, options) {
|
|
|
42138
42159
|
const responseFields = {
|
|
42139
42160
|
HttpMeta: { Response: response, Request: req }
|
|
42140
42161
|
};
|
|
42141
|
-
const [result, raw] = await match(json(200, ListBasinsResponse$inboundSchema2, { key: "Result" }), jsonErr([400, 403], ErrorResponse$inboundSchema),
|
|
42162
|
+
const [result, raw] = await match(json(200, ListBasinsResponse$inboundSchema2, { key: "Result" }), jsonErr([400, 403], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
42142
42163
|
if (!result.ok) {
|
|
42143
42164
|
return [haltIterator(result), {
|
|
42144
42165
|
status: "complete",
|
|
@@ -42190,7 +42211,7 @@ var init_basinsListBasins2 = __esm(() => {
|
|
|
42190
42211
|
tool$basinsListBasins = {
|
|
42191
42212
|
name: "basins-list-basins",
|
|
42192
42213
|
description: `List basins.`,
|
|
42193
|
-
scopes: ["read"],
|
|
42214
|
+
scopes: ["read", "read", "read"],
|
|
42194
42215
|
args: args8,
|
|
42195
42216
|
tool: async (client, args9, ctx) => {
|
|
42196
42217
|
const [result, apiCall] = await basinsListBasins(client, args9.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -42257,7 +42278,7 @@ async function $do9(client, request, options) {
|
|
|
42257
42278
|
const req = requestRes.value;
|
|
42258
42279
|
const doResult = await client._do(req, {
|
|
42259
42280
|
context,
|
|
42260
|
-
errorCodes: ["400", "403", "404", "
|
|
42281
|
+
errorCodes: ["400", "403", "404", "4XX", "5XX"],
|
|
42261
42282
|
retryConfig: context.retryConfig,
|
|
42262
42283
|
retryCodes: context.retryCodes
|
|
42263
42284
|
});
|
|
@@ -42268,7 +42289,7 @@ async function $do9(client, request, options) {
|
|
|
42268
42289
|
const responseFields = {
|
|
42269
42290
|
HttpMeta: { Response: response, Request: req }
|
|
42270
42291
|
};
|
|
42271
|
-
const [result] = await match(json(200, BasinConfig$inboundSchema), jsonErr([400, 403, 404], ErrorResponse$inboundSchema),
|
|
42292
|
+
const [result] = await match(json(200, BasinConfig$inboundSchema), jsonErr([400, 403, 404], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
42272
42293
|
if (!result.ok) {
|
|
42273
42294
|
return [result, { status: "complete", request: req, response }];
|
|
42274
42295
|
}
|
|
@@ -42299,7 +42320,7 @@ var init_basinsReconfigureBasin2 = __esm(() => {
|
|
|
42299
42320
|
tool$basinsReconfigureBasin = {
|
|
42300
42321
|
name: "basins-reconfigure-basin",
|
|
42301
42322
|
description: `Reconfigure a basin.`,
|
|
42302
|
-
scopes: ["write"],
|
|
42323
|
+
scopes: ["write", "write", "write"],
|
|
42303
42324
|
args: args9,
|
|
42304
42325
|
tool: async (client, args10, ctx) => {
|
|
42305
42326
|
const [result, apiCall] = await basinsReconfigureBasin(client, args10.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -42339,6 +42360,10 @@ async function $do10(client, request, options) {
|
|
|
42339
42360
|
const headers = new Headers(compactMap({
|
|
42340
42361
|
"Content-Type": "application/json",
|
|
42341
42362
|
Accept: "application/json",
|
|
42363
|
+
"s2-basin": encodeSimple("s2-basin", payload["s2-basin"], {
|
|
42364
|
+
explode: false,
|
|
42365
|
+
charEncoding: "none"
|
|
42366
|
+
}),
|
|
42342
42367
|
"s2-format": encodeSimple("s2-format", payload["s2-format"], {
|
|
42343
42368
|
explode: false,
|
|
42344
42369
|
charEncoding: "none"
|
|
@@ -42371,19 +42396,7 @@ async function $do10(client, request, options) {
|
|
|
42371
42396
|
const req = requestRes.value;
|
|
42372
42397
|
const doResult = await client._do(req, {
|
|
42373
42398
|
context,
|
|
42374
|
-
errorCodes: [
|
|
42375
|
-
"400",
|
|
42376
|
-
"401",
|
|
42377
|
-
"404",
|
|
42378
|
-
"409",
|
|
42379
|
-
"412",
|
|
42380
|
-
"499",
|
|
42381
|
-
"4XX",
|
|
42382
|
-
"500",
|
|
42383
|
-
"503",
|
|
42384
|
-
"504",
|
|
42385
|
-
"5XX"
|
|
42386
|
-
],
|
|
42399
|
+
errorCodes: ["400", "401", "404", "409", "412", "4XX", "500", "5XX"],
|
|
42387
42400
|
retryConfig: context.retryConfig,
|
|
42388
42401
|
retryCodes: context.retryCodes
|
|
42389
42402
|
});
|
|
@@ -42394,7 +42407,7 @@ async function $do10(client, request, options) {
|
|
|
42394
42407
|
const responseFields = {
|
|
42395
42408
|
HttpMeta: { Response: response, Request: req }
|
|
42396
42409
|
};
|
|
42397
|
-
const [result] = await match(json(200, AppendAck$inboundSchema), jsonErr([400, 401, 404, 409], ErrorResponse$inboundSchema), jsonErr(412, AppendConditionFailed$inboundSchema), jsonErr(
|
|
42410
|
+
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 });
|
|
42398
42411
|
if (!result.ok) {
|
|
42399
42412
|
return [result, { status: "complete", request: req, response }];
|
|
42400
42413
|
}
|
|
@@ -42428,7 +42441,7 @@ var init_recordsAppend2 = __esm(() => {
|
|
|
42428
42441
|
description: `Append records.
|
|
42429
42442
|
|
|
42430
42443
|
Append a batch of records to a stream.`,
|
|
42431
|
-
scopes: ["write"],
|
|
42444
|
+
scopes: ["write", "write", "write"],
|
|
42432
42445
|
args: args10,
|
|
42433
42446
|
tool: async (client, args11, ctx) => {
|
|
42434
42447
|
const [result, apiCall] = await recordsAppend(client, args11.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -42466,7 +42479,11 @@ async function $do11(client, request, options) {
|
|
|
42466
42479
|
};
|
|
42467
42480
|
const path = pathToFunc("/streams/{stream}/records/tail")(pathParams);
|
|
42468
42481
|
const headers = new Headers(compactMap({
|
|
42469
|
-
Accept: "application/json"
|
|
42482
|
+
Accept: "application/json",
|
|
42483
|
+
"s2-basin": encodeSimple("s2-basin", payload["s2-basin"], {
|
|
42484
|
+
explode: false,
|
|
42485
|
+
charEncoding: "none"
|
|
42486
|
+
})
|
|
42470
42487
|
}));
|
|
42471
42488
|
const secConfig = await extractSecurity(client._options.accessToken);
|
|
42472
42489
|
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
@@ -42495,18 +42512,7 @@ async function $do11(client, request, options) {
|
|
|
42495
42512
|
const req = requestRes.value;
|
|
42496
42513
|
const doResult = await client._do(req, {
|
|
42497
42514
|
context,
|
|
42498
|
-
errorCodes: [
|
|
42499
|
-
"400",
|
|
42500
|
-
"401",
|
|
42501
|
-
"404",
|
|
42502
|
-
"409",
|
|
42503
|
-
"499",
|
|
42504
|
-
"4XX",
|
|
42505
|
-
"500",
|
|
42506
|
-
"503",
|
|
42507
|
-
"504",
|
|
42508
|
-
"5XX"
|
|
42509
|
-
],
|
|
42515
|
+
errorCodes: ["400", "401", "404", "409", "4XX", "500", "5XX"],
|
|
42510
42516
|
retryConfig: context.retryConfig,
|
|
42511
42517
|
retryCodes: context.retryCodes
|
|
42512
42518
|
});
|
|
@@ -42517,7 +42523,7 @@ async function $do11(client, request, options) {
|
|
|
42517
42523
|
const responseFields = {
|
|
42518
42524
|
HttpMeta: { Response: response, Request: req }
|
|
42519
42525
|
};
|
|
42520
|
-
const [result] = await match(json(200, TailResponse$inboundSchema), jsonErr([400, 401, 404, 409], ErrorResponse$inboundSchema), jsonErr(
|
|
42526
|
+
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 });
|
|
42521
42527
|
if (!result.ok) {
|
|
42522
42528
|
return [result, { status: "complete", request: req, response }];
|
|
42523
42529
|
}
|
|
@@ -42551,7 +42557,7 @@ var init_recordsCheckTail2 = __esm(() => {
|
|
|
42551
42557
|
description: `Check the tail.
|
|
42552
42558
|
|
|
42553
42559
|
Check the tail of a stream.`,
|
|
42554
|
-
scopes: ["read"],
|
|
42560
|
+
scopes: ["read", "read", "read"],
|
|
42555
42561
|
args: args11,
|
|
42556
42562
|
tool: async (client, args12, ctx) => {
|
|
42557
42563
|
const [result, apiCall] = await recordsCheckTail(client, args12.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -42597,6 +42603,10 @@ async function $do12(client, request, options) {
|
|
|
42597
42603
|
});
|
|
42598
42604
|
const headers = new Headers(compactMap({
|
|
42599
42605
|
Accept: options?.acceptHeaderOverride || "application/json;q=1, text/event-stream;q=0",
|
|
42606
|
+
"s2-basin": encodeSimple("s2-basin", payload["s2-basin"], {
|
|
42607
|
+
explode: false,
|
|
42608
|
+
charEncoding: "none"
|
|
42609
|
+
}),
|
|
42600
42610
|
"s2-format": encodeSimple("s2-format", payload["s2-format"], {
|
|
42601
42611
|
explode: false,
|
|
42602
42612
|
charEncoding: "none"
|
|
@@ -42630,19 +42640,7 @@ async function $do12(client, request, options) {
|
|
|
42630
42640
|
const req = requestRes.value;
|
|
42631
42641
|
const doResult = await client._do(req, {
|
|
42632
42642
|
context,
|
|
42633
|
-
errorCodes: [
|
|
42634
|
-
"400",
|
|
42635
|
-
"401",
|
|
42636
|
-
"404",
|
|
42637
|
-
"409",
|
|
42638
|
-
"416",
|
|
42639
|
-
"499",
|
|
42640
|
-
"4XX",
|
|
42641
|
-
"500",
|
|
42642
|
-
"503",
|
|
42643
|
-
"504",
|
|
42644
|
-
"5XX"
|
|
42645
|
-
],
|
|
42643
|
+
errorCodes: ["400", "401", "404", "409", "416", "4XX", "500", "5XX"],
|
|
42646
42644
|
retryConfig: context.retryConfig,
|
|
42647
42645
|
retryCodes: context.retryCodes
|
|
42648
42646
|
});
|
|
@@ -42653,7 +42651,7 @@ async function $do12(client, request, options) {
|
|
|
42653
42651
|
const responseFields = {
|
|
42654
42652
|
HttpMeta: { Response: response, Request: req }
|
|
42655
42653
|
};
|
|
42656
|
-
const [result] = await match(json(200, ReadResponse$inboundSchema), sse(200, ReadResponse$inboundSchema), jsonErr([400, 401, 404, 409], ErrorResponse$inboundSchema), jsonErr(416, TailResponse$inboundSchema2), jsonErr(
|
|
42654
|
+
const [result] = await match(json(200, ReadResponse$inboundSchema), sse(200, ReadResponse$inboundSchema), jsonErr([400, 401, 404, 409], ErrorResponse$inboundSchema), jsonErr(416, TailResponse$inboundSchema2), jsonErr(500, ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
42657
42655
|
if (!result.ok) {
|
|
42658
42656
|
return [result, { status: "complete", request: req, response }];
|
|
42659
42657
|
}
|
|
@@ -42686,7 +42684,7 @@ var init_recordsRead2 = __esm(() => {
|
|
|
42686
42684
|
description: `Retrieve records.
|
|
42687
42685
|
|
|
42688
42686
|
Retrieve a batch of records, or set \`Accept: text/event-stream\` to stream using server-sent events.`,
|
|
42689
|
-
scopes: ["read"],
|
|
42687
|
+
scopes: ["read", "read", "read"],
|
|
42690
42688
|
args: args12,
|
|
42691
42689
|
tool: async (client, args13, ctx) => {
|
|
42692
42690
|
const [result, apiCall] = await recordsRead(client, args13.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -42728,6 +42726,10 @@ async function $do13(client, request, options) {
|
|
|
42728
42726
|
const headers = new Headers(compactMap({
|
|
42729
42727
|
"Content-Type": "application/json",
|
|
42730
42728
|
Accept: "application/json",
|
|
42729
|
+
"s2-basin": encodeSimple("s2-basin", payload["s2-basin"], {
|
|
42730
|
+
explode: false,
|
|
42731
|
+
charEncoding: "none"
|
|
42732
|
+
}),
|
|
42731
42733
|
"s2-request-token": encodeSimple("s2-request-token", payload["s2-request-token"], { explode: false, charEncoding: "none" })
|
|
42732
42734
|
}));
|
|
42733
42735
|
const secConfig = await extractSecurity(client._options.accessToken);
|
|
@@ -42757,18 +42759,7 @@ async function $do13(client, request, options) {
|
|
|
42757
42759
|
const req = requestRes.value;
|
|
42758
42760
|
const doResult = await client._do(req, {
|
|
42759
42761
|
context,
|
|
42760
|
-
errorCodes: [
|
|
42761
|
-
"400",
|
|
42762
|
-
"403",
|
|
42763
|
-
"404",
|
|
42764
|
-
"409",
|
|
42765
|
-
"499",
|
|
42766
|
-
"4XX",
|
|
42767
|
-
"500",
|
|
42768
|
-
"503",
|
|
42769
|
-
"504",
|
|
42770
|
-
"5XX"
|
|
42771
|
-
],
|
|
42762
|
+
errorCodes: ["400", "403", "404", "409", "4XX", "5XX"],
|
|
42772
42763
|
retryConfig: context.retryConfig,
|
|
42773
42764
|
retryCodes: context.retryCodes
|
|
42774
42765
|
});
|
|
@@ -42779,7 +42770,7 @@ async function $do13(client, request, options) {
|
|
|
42779
42770
|
const responseFields = {
|
|
42780
42771
|
HttpMeta: { Response: response, Request: req }
|
|
42781
42772
|
};
|
|
42782
|
-
const [result] = await match(json(201, StreamInfo$inboundSchema.optional()), nil(204, StreamInfo$inboundSchema.optional()), jsonErr([400, 403, 404, 409], ErrorResponse$inboundSchema),
|
|
42773
|
+
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 });
|
|
42783
42774
|
if (!result.ok) {
|
|
42784
42775
|
return [result, { status: "complete", request: req, response }];
|
|
42785
42776
|
}
|
|
@@ -42811,7 +42802,7 @@ var init_streamsCreateOrReconfigureStream2 = __esm(() => {
|
|
|
42811
42802
|
tool$streamsCreateOrReconfigureStream = {
|
|
42812
42803
|
name: "streams-create-or-reconfigure-stream",
|
|
42813
42804
|
description: `Create or reconfigure a stream.`,
|
|
42814
|
-
scopes: ["write"],
|
|
42805
|
+
scopes: ["write", "write", "write"],
|
|
42815
42806
|
args: args13,
|
|
42816
42807
|
tool: async (client, args14, ctx) => {
|
|
42817
42808
|
const [result, apiCall] = await streamsCreateOrReconfigureStream(client, args14.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -42832,19 +42823,25 @@ function streamsCreateStream(client, request, options) {
|
|
|
42832
42823
|
return new APIPromise($do14(client, request, options));
|
|
42833
42824
|
}
|
|
42834
42825
|
async function $do14(client, request, options) {
|
|
42835
|
-
const parsed = safeParse(request, (value2) => CreateStreamRequest$
|
|
42826
|
+
const parsed = safeParse(request, (value2) => CreateStreamRequest$outboundSchema2.parse(value2), "Input validation failed");
|
|
42836
42827
|
if (!parsed.ok) {
|
|
42837
42828
|
return [parsed, { status: "invalid" }];
|
|
42838
42829
|
}
|
|
42839
42830
|
const payload = parsed.value;
|
|
42840
|
-
const body = encodeJSON("body", payload, {
|
|
42831
|
+
const body = encodeJSON("body", payload.CreateStreamRequest, {
|
|
42832
|
+
explode: true
|
|
42833
|
+
});
|
|
42841
42834
|
const baseURL = options?.serverURL || pathToFunc(CreateStreamServerList[0], { charEncoding: "percent" })({
|
|
42842
42835
|
basin: ""
|
|
42843
42836
|
});
|
|
42844
42837
|
const path = pathToFunc("/streams")();
|
|
42845
42838
|
const headers = new Headers(compactMap({
|
|
42846
42839
|
"Content-Type": "application/json",
|
|
42847
|
-
Accept: "application/json"
|
|
42840
|
+
Accept: "application/json",
|
|
42841
|
+
"s2-basin": encodeSimple("s2-basin", payload["s2-basin"], {
|
|
42842
|
+
explode: false,
|
|
42843
|
+
charEncoding: "none"
|
|
42844
|
+
})
|
|
42848
42845
|
}));
|
|
42849
42846
|
const secConfig = await extractSecurity(client._options.accessToken);
|
|
42850
42847
|
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
@@ -42873,18 +42870,7 @@ async function $do14(client, request, options) {
|
|
|
42873
42870
|
const req = requestRes.value;
|
|
42874
42871
|
const doResult = await client._do(req, {
|
|
42875
42872
|
context,
|
|
42876
|
-
errorCodes: [
|
|
42877
|
-
"400",
|
|
42878
|
-
"403",
|
|
42879
|
-
"404",
|
|
42880
|
-
"409",
|
|
42881
|
-
"499",
|
|
42882
|
-
"4XX",
|
|
42883
|
-
"500",
|
|
42884
|
-
"503",
|
|
42885
|
-
"504",
|
|
42886
|
-
"5XX"
|
|
42887
|
-
],
|
|
42873
|
+
errorCodes: ["400", "403", "404", "409", "4XX", "5XX"],
|
|
42888
42874
|
retryConfig: context.retryConfig,
|
|
42889
42875
|
retryCodes: context.retryCodes
|
|
42890
42876
|
});
|
|
@@ -42895,7 +42881,7 @@ async function $do14(client, request, options) {
|
|
|
42895
42881
|
const responseFields = {
|
|
42896
42882
|
HttpMeta: { Response: response, Request: req }
|
|
42897
42883
|
};
|
|
42898
|
-
const [result] = await match(json(201, StreamInfo$inboundSchema), jsonErr([400, 403, 404, 409], ErrorResponse$inboundSchema),
|
|
42884
|
+
const [result] = await match(json(201, StreamInfo$inboundSchema), jsonErr([400, 403, 404, 409], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
42899
42885
|
if (!result.ok) {
|
|
42900
42886
|
return [result, { status: "complete", request: req, response }];
|
|
42901
42887
|
}
|
|
@@ -42911,6 +42897,7 @@ var init_streamsCreateStream = __esm(() => {
|
|
|
42911
42897
|
init_components();
|
|
42912
42898
|
init_errors();
|
|
42913
42899
|
init_createstream();
|
|
42900
|
+
init_operations();
|
|
42914
42901
|
init_async();
|
|
42915
42902
|
});
|
|
42916
42903
|
|
|
@@ -42918,15 +42905,15 @@ var init_streamsCreateStream = __esm(() => {
|
|
|
42918
42905
|
var args14, tool$streamsCreateStream;
|
|
42919
42906
|
var init_streamsCreateStream2 = __esm(() => {
|
|
42920
42907
|
init_streamsCreateStream();
|
|
42921
|
-
|
|
42908
|
+
init_operations();
|
|
42922
42909
|
init_tools();
|
|
42923
42910
|
args14 = {
|
|
42924
|
-
request: CreateStreamRequest$
|
|
42911
|
+
request: CreateStreamRequest$inboundSchema2
|
|
42925
42912
|
};
|
|
42926
42913
|
tool$streamsCreateStream = {
|
|
42927
42914
|
name: "streams-create-stream",
|
|
42928
42915
|
description: `Create a stream.`,
|
|
42929
|
-
scopes: ["write"],
|
|
42916
|
+
scopes: ["write", "write", "write"],
|
|
42930
42917
|
args: args14,
|
|
42931
42918
|
tool: async (client, args15, ctx) => {
|
|
42932
42919
|
const [result, apiCall] = await streamsCreateStream(client, args15.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -42964,7 +42951,11 @@ async function $do15(client, request, options) {
|
|
|
42964
42951
|
};
|
|
42965
42952
|
const path = pathToFunc("/streams/{stream}")(pathParams);
|
|
42966
42953
|
const headers = new Headers(compactMap({
|
|
42967
|
-
Accept: "application/json"
|
|
42954
|
+
Accept: "application/json",
|
|
42955
|
+
"s2-basin": encodeSimple("s2-basin", payload["s2-basin"], {
|
|
42956
|
+
explode: false,
|
|
42957
|
+
charEncoding: "none"
|
|
42958
|
+
})
|
|
42968
42959
|
}));
|
|
42969
42960
|
const secConfig = await extractSecurity(client._options.accessToken);
|
|
42970
42961
|
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
@@ -42993,7 +42984,7 @@ async function $do15(client, request, options) {
|
|
|
42993
42984
|
const req = requestRes.value;
|
|
42994
42985
|
const doResult = await client._do(req, {
|
|
42995
42986
|
context,
|
|
42996
|
-
errorCodes: ["400", "403", "404", "
|
|
42987
|
+
errorCodes: ["400", "403", "404", "4XX", "5XX"],
|
|
42997
42988
|
retryConfig: context.retryConfig,
|
|
42998
42989
|
retryCodes: context.retryCodes
|
|
42999
42990
|
});
|
|
@@ -43004,7 +42995,7 @@ async function $do15(client, request, options) {
|
|
|
43004
42995
|
const responseFields = {
|
|
43005
42996
|
HttpMeta: { Response: response, Request: req }
|
|
43006
42997
|
};
|
|
43007
|
-
const [result] = await match(nil(202, voidType()), jsonErr([400, 403
|
|
42998
|
+
const [result] = await match(nil(202, voidType()), jsonErr([400, 403, 404], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
43008
42999
|
if (!result.ok) {
|
|
43009
43000
|
return [result, { status: "complete", request: req, response }];
|
|
43010
43001
|
}
|
|
@@ -43036,7 +43027,7 @@ var init_streamsDeleteStream2 = __esm(() => {
|
|
|
43036
43027
|
tool$streamsDeleteStream = {
|
|
43037
43028
|
name: "streams-delete-stream",
|
|
43038
43029
|
description: `Delete a stream.`,
|
|
43039
|
-
scopes: ["write"],
|
|
43030
|
+
scopes: ["write", "write", "write"],
|
|
43040
43031
|
args: args15,
|
|
43041
43032
|
tool: async (client, args16, ctx) => {
|
|
43042
43033
|
const [result, apiCall] = await streamsDeleteStream(client, args16.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -43073,7 +43064,11 @@ async function $do16(client, request, options) {
|
|
|
43073
43064
|
};
|
|
43074
43065
|
const path = pathToFunc("/streams/{stream}")(pathParams);
|
|
43075
43066
|
const headers = new Headers(compactMap({
|
|
43076
|
-
Accept: "application/json"
|
|
43067
|
+
Accept: "application/json",
|
|
43068
|
+
"s2-basin": encodeSimple("s2-basin", payload["s2-basin"], {
|
|
43069
|
+
explode: false,
|
|
43070
|
+
charEncoding: "none"
|
|
43071
|
+
})
|
|
43077
43072
|
}));
|
|
43078
43073
|
const secConfig = await extractSecurity(client._options.accessToken);
|
|
43079
43074
|
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
@@ -43102,18 +43097,7 @@ async function $do16(client, request, options) {
|
|
|
43102
43097
|
const req = requestRes.value;
|
|
43103
43098
|
const doResult = await client._do(req, {
|
|
43104
43099
|
context,
|
|
43105
|
-
errorCodes: [
|
|
43106
|
-
"400",
|
|
43107
|
-
"403",
|
|
43108
|
-
"404",
|
|
43109
|
-
"409",
|
|
43110
|
-
"499",
|
|
43111
|
-
"4XX",
|
|
43112
|
-
"500",
|
|
43113
|
-
"503",
|
|
43114
|
-
"504",
|
|
43115
|
-
"5XX"
|
|
43116
|
-
],
|
|
43100
|
+
errorCodes: ["400", "403", "404", "409", "4XX", "5XX"],
|
|
43117
43101
|
retryConfig: context.retryConfig,
|
|
43118
43102
|
retryCodes: context.retryCodes
|
|
43119
43103
|
});
|
|
@@ -43124,7 +43108,7 @@ async function $do16(client, request, options) {
|
|
|
43124
43108
|
const responseFields = {
|
|
43125
43109
|
HttpMeta: { Response: response, Request: req }
|
|
43126
43110
|
};
|
|
43127
|
-
const [result] = await match(json(200, StreamConfig$inboundSchema), jsonErr([400, 403, 404, 409], ErrorResponse$inboundSchema),
|
|
43111
|
+
const [result] = await match(json(200, StreamConfig$inboundSchema), jsonErr([400, 403, 404, 409], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
43128
43112
|
if (!result.ok) {
|
|
43129
43113
|
return [result, { status: "complete", request: req, response }];
|
|
43130
43114
|
}
|
|
@@ -43156,7 +43140,7 @@ var init_streamsGetStreamConfig2 = __esm(() => {
|
|
|
43156
43140
|
tool$streamsGetStreamConfig = {
|
|
43157
43141
|
name: "streams-get-stream-config",
|
|
43158
43142
|
description: `Get stream configuration.`,
|
|
43159
|
-
scopes: ["read"],
|
|
43143
|
+
scopes: ["read", "read", "read"],
|
|
43160
43144
|
args: args16,
|
|
43161
43145
|
tool: async (client, args17, ctx) => {
|
|
43162
43146
|
const [result, apiCall] = await streamsGetStreamConfig(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -43193,7 +43177,11 @@ async function $do17(client, request, options) {
|
|
|
43193
43177
|
start_after: payload.start_after
|
|
43194
43178
|
});
|
|
43195
43179
|
const headers = new Headers(compactMap({
|
|
43196
|
-
Accept: "application/json"
|
|
43180
|
+
Accept: "application/json",
|
|
43181
|
+
"s2-basin": encodeSimple("s2-basin", payload["s2-basin"], {
|
|
43182
|
+
explode: false,
|
|
43183
|
+
charEncoding: "none"
|
|
43184
|
+
})
|
|
43197
43185
|
}));
|
|
43198
43186
|
const secConfig = await extractSecurity(client._options.accessToken);
|
|
43199
43187
|
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
@@ -43223,7 +43211,7 @@ async function $do17(client, request, options) {
|
|
|
43223
43211
|
const req = requestRes.value;
|
|
43224
43212
|
const doResult = await client._do(req, {
|
|
43225
43213
|
context,
|
|
43226
|
-
errorCodes: ["400", "403", "404", "
|
|
43214
|
+
errorCodes: ["400", "403", "404", "4XX", "5XX"],
|
|
43227
43215
|
retryConfig: context.retryConfig,
|
|
43228
43216
|
retryCodes: context.retryCodes
|
|
43229
43217
|
});
|
|
@@ -43236,7 +43224,7 @@ async function $do17(client, request, options) {
|
|
|
43236
43224
|
};
|
|
43237
43225
|
const [result, raw] = await match(json(200, ListStreamsResponse$inboundSchema2, {
|
|
43238
43226
|
key: "Result"
|
|
43239
|
-
}), jsonErr([400, 403, 404], ErrorResponse$inboundSchema),
|
|
43227
|
+
}), jsonErr([400, 403, 404], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
43240
43228
|
if (!result.ok) {
|
|
43241
43229
|
return [haltIterator(result), {
|
|
43242
43230
|
status: "complete",
|
|
@@ -43289,7 +43277,7 @@ var init_streamsListStreams2 = __esm(() => {
|
|
|
43289
43277
|
tool$streamsListStreams = {
|
|
43290
43278
|
name: "streams-list-streams",
|
|
43291
43279
|
description: `List streams.`,
|
|
43292
|
-
scopes: ["read"],
|
|
43280
|
+
scopes: ["read", "read", "read"],
|
|
43293
43281
|
args: args17,
|
|
43294
43282
|
tool: async (client, args18, ctx) => {
|
|
43295
43283
|
const [result, apiCall] = await streamsListStreams(client, args18.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -43330,7 +43318,11 @@ async function $do18(client, request, options) {
|
|
|
43330
43318
|
const path = pathToFunc("/streams/{stream}")(pathParams);
|
|
43331
43319
|
const headers = new Headers(compactMap({
|
|
43332
43320
|
"Content-Type": "application/json",
|
|
43333
|
-
Accept: "application/json"
|
|
43321
|
+
Accept: "application/json",
|
|
43322
|
+
"s2-basin": encodeSimple("s2-basin", payload["s2-basin"], {
|
|
43323
|
+
explode: false,
|
|
43324
|
+
charEncoding: "none"
|
|
43325
|
+
})
|
|
43334
43326
|
}));
|
|
43335
43327
|
const secConfig = await extractSecurity(client._options.accessToken);
|
|
43336
43328
|
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
@@ -43359,18 +43351,7 @@ async function $do18(client, request, options) {
|
|
|
43359
43351
|
const req = requestRes.value;
|
|
43360
43352
|
const doResult = await client._do(req, {
|
|
43361
43353
|
context,
|
|
43362
|
-
errorCodes: [
|
|
43363
|
-
"400",
|
|
43364
|
-
"403",
|
|
43365
|
-
"404",
|
|
43366
|
-
"409",
|
|
43367
|
-
"499",
|
|
43368
|
-
"4XX",
|
|
43369
|
-
"500",
|
|
43370
|
-
"503",
|
|
43371
|
-
"504",
|
|
43372
|
-
"5XX"
|
|
43373
|
-
],
|
|
43354
|
+
errorCodes: ["400", "403", "404", "409", "4XX", "5XX"],
|
|
43374
43355
|
retryConfig: context.retryConfig,
|
|
43375
43356
|
retryCodes: context.retryCodes
|
|
43376
43357
|
});
|
|
@@ -43381,7 +43362,7 @@ async function $do18(client, request, options) {
|
|
|
43381
43362
|
const responseFields = {
|
|
43382
43363
|
HttpMeta: { Response: response, Request: req }
|
|
43383
43364
|
};
|
|
43384
|
-
const [result] = await match(json(200, StreamConfig$inboundSchema), jsonErr([400, 403, 404, 409], ErrorResponse$inboundSchema),
|
|
43365
|
+
const [result] = await match(json(200, StreamConfig$inboundSchema), jsonErr([400, 403, 404, 409], ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
43385
43366
|
if (!result.ok) {
|
|
43386
43367
|
return [result, { status: "complete", request: req, response }];
|
|
43387
43368
|
}
|
|
@@ -43413,7 +43394,7 @@ var init_streamsReconfigureStream2 = __esm(() => {
|
|
|
43413
43394
|
tool$streamsReconfigureStream = {
|
|
43414
43395
|
name: "streams-reconfigure-stream",
|
|
43415
43396
|
description: `Reconfigure a stream.`,
|
|
43416
|
-
scopes: ["write"],
|
|
43397
|
+
scopes: ["write", "write", "write"],
|
|
43417
43398
|
args: args18,
|
|
43418
43399
|
tool: async (client, args19, ctx) => {
|
|
43419
43400
|
const [result, apiCall] = await streamsReconfigureStream(client, args19.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -43433,7 +43414,7 @@ var init_streamsReconfigureStream2 = __esm(() => {
|
|
|
43433
43414
|
function createMCPServer(deps) {
|
|
43434
43415
|
const server = new McpServer({
|
|
43435
43416
|
name: "S2",
|
|
43436
|
-
version: "0.
|
|
43417
|
+
version: "0.13.1"
|
|
43437
43418
|
});
|
|
43438
43419
|
const client = new S2Core({
|
|
43439
43420
|
accessToken: deps.accessToken,
|
|
@@ -43519,7 +43500,7 @@ async function startStdio(flags) {
|
|
|
43519
43500
|
logger,
|
|
43520
43501
|
allowedTools: flags.tool,
|
|
43521
43502
|
scopes: flags.scope,
|
|
43522
|
-
...{ accessToken: flags["access-token"] },
|
|
43503
|
+
...{ accessToken: flags["access-token"] ?? "" },
|
|
43523
43504
|
serverURL: flags["server-url"],
|
|
43524
43505
|
serverIdx: flags["server-index"]
|
|
43525
43506
|
});
|
|
@@ -43538,7 +43519,7 @@ async function startSSE(flags) {
|
|
|
43538
43519
|
logger,
|
|
43539
43520
|
allowedTools: flags.tool,
|
|
43540
43521
|
scopes: flags.scope,
|
|
43541
|
-
...{ accessToken: flags["access-token"] },
|
|
43522
|
+
...{ accessToken: flags["access-token"] ?? "" },
|
|
43542
43523
|
serverURL: flags["server-url"],
|
|
43543
43524
|
serverIdx: flags["server-index"]
|
|
43544
43525
|
});
|
|
@@ -44686,7 +44667,7 @@ var routes = rn({
|
|
|
44686
44667
|
var app = Ve(routes, {
|
|
44687
44668
|
name: "mcp",
|
|
44688
44669
|
versionInfo: {
|
|
44689
|
-
currentVersion: "0.
|
|
44670
|
+
currentVersion: "0.13.1"
|
|
44690
44671
|
}
|
|
44691
44672
|
});
|
|
44692
44673
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -44694,5 +44675,5 @@ export {
|
|
|
44694
44675
|
app
|
|
44695
44676
|
};
|
|
44696
44677
|
|
|
44697
|
-
//# debugId=
|
|
44678
|
+
//# debugId=D9CB368BB929347964756E2164756E21
|
|
44698
44679
|
//# sourceMappingURL=mcp-server.js.map
|