@s2-dev/streamstore 0.12.0 → 0.13.2
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 +8 -98
- package/bin/mcp-server.js +242 -282
- package/bin/mcp-server.js.map +59 -61
- 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/index.d.ts +1 -0
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.extras.d.ts +2 -0
- package/dist/commonjs/index.extras.d.ts.map +1 -0
- package/dist/commonjs/index.extras.js +18 -0
- package/dist/commonjs/index.extras.js.map +1 -0
- package/dist/commonjs/index.js +1 -0
- package/dist/commonjs/index.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/components/appendrecord.d.ts +2 -3
- package/dist/commonjs/models/components/appendrecord.d.ts.map +1 -1
- package/dist/commonjs/models/components/appendrecord.js +2 -3
- package/dist/commonjs/models/components/appendrecord.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +0 -1
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +0 -1
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/sequencedrecord.d.ts +2 -3
- package/dist/commonjs/models/components/sequencedrecord.d.ts.map +1 -1
- package/dist/commonjs/models/components/sequencedrecord.js +2 -3
- package/dist/commonjs/models/components/sequencedrecord.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/index.d.ts +1 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.extras.d.ts +2 -0
- package/dist/esm/index.extras.d.ts.map +1 -0
- package/dist/esm/index.extras.js +2 -0
- package/dist/esm/index.extras.js.map +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.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/components/appendrecord.d.ts +2 -3
- package/dist/esm/models/components/appendrecord.d.ts.map +1 -1
- package/dist/esm/models/components/appendrecord.js +2 -3
- package/dist/esm/models/components/appendrecord.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +0 -1
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +0 -1
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/sequencedrecord.d.ts +2 -3
- package/dist/esm/models/components/sequencedrecord.d.ts.map +1 -1
- package/dist/esm/models/components/sequencedrecord.js +2 -3
- package/dist/esm/models/components/sequencedrecord.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/index.extras.ts +1 -0
- package/src/index.ts +2 -0
- 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/components/appendrecord.ts +4 -10
- package/src/models/components/index.ts +0 -1
- package/src/models/components/sequencedrecord.ts +4 -10
- 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/components/header.d.ts +0 -43
- package/dist/commonjs/models/components/header.d.ts.map +0 -1
- package/dist/commonjs/models/components/header.js +0 -72
- package/dist/commonjs/models/components/header.js.map +0 -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/components/header.d.ts +0 -43
- package/dist/esm/models/components/header.d.ts.map +0 -1
- package/dist/esm/models/components/header.js +0 -34
- package/dist/esm/models/components/header.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/components/header.ts +0 -75
- package/src/models/errors/notfounderror.ts +0 -67
- package/src/models/errors/retryableerror.ts +0 -67
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// import { CompressionHook } from "./compression.js";
|
|
2
|
+
import { AddBasinToUrlHook } from "./basin.js";
|
|
2
3
|
import { Hooks } from "./types.js";
|
|
3
4
|
|
|
4
5
|
/*
|
|
@@ -7,10 +8,10 @@ import { Hooks } from "./types.js";
|
|
|
7
8
|
* in this file or in separate files in the hooks folder.
|
|
8
9
|
*/
|
|
9
10
|
|
|
10
|
-
// @ts-expect-error remove this line when you add your first hook and hooks is used
|
|
11
11
|
export function initHooks(hooks: Hooks) {
|
|
12
12
|
// Add hooks by calling hooks.register{ClientInit/BeforeCreateRequest/BeforeRequest/AfterSuccess/AfterError}Hook
|
|
13
13
|
// with an instance of a hook that implements that specific Hook interface
|
|
14
14
|
// Hooks are registered per SDK instance, and are valid for the lifetime of the SDK instance
|
|
15
15
|
// hooks.registerBeforeCreateRequestHook(new CompressionHook());
|
|
16
|
+
hooks.registerBeforeCreateRequestHook(new AddBasinToUrlHook());
|
|
16
17
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./endpoints.js";
|
package/src/index.ts
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -54,8 +54,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
54
54
|
export const SDK_METADATA = {
|
|
55
55
|
language: "typescript",
|
|
56
56
|
openapiDocVersion: "1.0.0",
|
|
57
|
-
sdkVersion: "0.
|
|
58
|
-
genVersion: "2.
|
|
57
|
+
sdkVersion: "0.13.2",
|
|
58
|
+
genVersion: "2.605.6",
|
|
59
59
|
userAgent:
|
|
60
|
-
"speakeasy-sdk/typescript 0.
|
|
60
|
+
"speakeasy-sdk/typescript 0.13.2 2.605.6 1.0.0 @s2-dev/streamstore",
|
|
61
61
|
} as const;
|
|
@@ -50,7 +50,7 @@ async function startStdio(flags: StartCommandFlags) {
|
|
|
50
50
|
logger,
|
|
51
51
|
allowedTools: flags.tool,
|
|
52
52
|
scopes: flags.scope,
|
|
53
|
-
...{ accessToken: flags["access-token"] },
|
|
53
|
+
...{ accessToken: flags["access-token"] ?? "" },
|
|
54
54
|
serverURL: flags["server-url"],
|
|
55
55
|
serverIdx: flags["server-index"],
|
|
56
56
|
});
|
|
@@ -71,7 +71,7 @@ async function startSSE(flags: StartCommandFlags) {
|
|
|
71
71
|
logger,
|
|
72
72
|
allowedTools: flags.tool,
|
|
73
73
|
scopes: flags.scope,
|
|
74
|
-
...{ accessToken: flags["access-token"] },
|
|
74
|
+
...{ accessToken: flags["access-token"] ?? "" },
|
|
75
75
|
serverURL: flags["server-url"],
|
|
76
76
|
serverIdx: flags["server-index"],
|
|
77
77
|
});
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -13,7 +13,7 @@ const args = {
|
|
|
13
13
|
export const tool$accessTokensIssueAccessToken: ToolDefinition<typeof args> = {
|
|
14
14
|
name: "access-tokens-issue-access-token",
|
|
15
15
|
description: `Issue a new access token.`,
|
|
16
|
-
scopes: ["write"],
|
|
16
|
+
scopes: ["write", "write", "write"],
|
|
17
17
|
args,
|
|
18
18
|
tool: async (client, args, ctx) => {
|
|
19
19
|
const [result, apiCall] = await accessTokensIssueAccessToken(
|
|
@@ -13,7 +13,7 @@ const args = {
|
|
|
13
13
|
export const tool$accessTokensListAccessTokens: ToolDefinition<typeof args> = {
|
|
14
14
|
name: "access-tokens-list-access-tokens",
|
|
15
15
|
description: `List access tokens.`,
|
|
16
|
-
scopes: ["read"],
|
|
16
|
+
scopes: ["read", "read", "read"],
|
|
17
17
|
args,
|
|
18
18
|
tool: async (client, args, ctx) => {
|
|
19
19
|
const [result, apiCall] = await accessTokensListAccessTokens(
|
|
@@ -13,7 +13,7 @@ const args = {
|
|
|
13
13
|
export const tool$accessTokensRevokeAccessToken: ToolDefinition<typeof args> = {
|
|
14
14
|
name: "access-tokens-revoke-access-token",
|
|
15
15
|
description: `Revoke an access token.`,
|
|
16
|
-
scopes: ["write"],
|
|
16
|
+
scopes: ["write", "write", "write"],
|
|
17
17
|
args,
|
|
18
18
|
tool: async (client, args, ctx) => {
|
|
19
19
|
const [result, apiCall] = await accessTokensRevokeAccessToken(
|
|
@@ -13,7 +13,7 @@ const args = {
|
|
|
13
13
|
export const tool$basinsCreateBasin: ToolDefinition<typeof args> = {
|
|
14
14
|
name: "basins-create-basin",
|
|
15
15
|
description: `Create a basin.`,
|
|
16
|
-
scopes: ["write"],
|
|
16
|
+
scopes: ["write", "write", "write"],
|
|
17
17
|
args,
|
|
18
18
|
tool: async (client, args, ctx) => {
|
|
19
19
|
const [result, apiCall] = await basinsCreateBasin(
|
|
@@ -14,7 +14,7 @@ export const tool$basinsCreateOrReconfigureBasin: ToolDefinition<typeof args> =
|
|
|
14
14
|
{
|
|
15
15
|
name: "basins-create-or-reconfigure-basin",
|
|
16
16
|
description: `Create or reconfigure a basin.`,
|
|
17
|
-
scopes: ["write"],
|
|
17
|
+
scopes: ["write", "write", "write"],
|
|
18
18
|
args,
|
|
19
19
|
tool: async (client, args, ctx) => {
|
|
20
20
|
const [result, apiCall] = await basinsCreateOrReconfigureBasin(
|
|
@@ -13,7 +13,7 @@ const args = {
|
|
|
13
13
|
export const tool$basinsDeleteBasin: ToolDefinition<typeof args> = {
|
|
14
14
|
name: "basins-delete-basin",
|
|
15
15
|
description: `Delete a basin.`,
|
|
16
|
-
scopes: ["write"],
|
|
16
|
+
scopes: ["write", "write", "write"],
|
|
17
17
|
args,
|
|
18
18
|
tool: async (client, args, ctx) => {
|
|
19
19
|
const [result, apiCall] = await basinsDeleteBasin(
|
|
@@ -13,7 +13,7 @@ const args = {
|
|
|
13
13
|
export const tool$basinsGetBasinConfig: ToolDefinition<typeof args> = {
|
|
14
14
|
name: "basins-get-basin-config",
|
|
15
15
|
description: `Get basin config.`,
|
|
16
|
-
scopes: ["read"],
|
|
16
|
+
scopes: ["read", "read", "read"],
|
|
17
17
|
args,
|
|
18
18
|
tool: async (client, args, ctx) => {
|
|
19
19
|
const [result, apiCall] = await basinsGetBasinConfig(
|
|
@@ -13,7 +13,7 @@ const args = {
|
|
|
13
13
|
export const tool$basinsListBasins: ToolDefinition<typeof args> = {
|
|
14
14
|
name: "basins-list-basins",
|
|
15
15
|
description: `List basins.`,
|
|
16
|
-
scopes: ["read"],
|
|
16
|
+
scopes: ["read", "read", "read"],
|
|
17
17
|
args,
|
|
18
18
|
tool: async (client, args, ctx) => {
|
|
19
19
|
const [result, apiCall] = await basinsListBasins(
|
|
@@ -13,7 +13,7 @@ const args = {
|
|
|
13
13
|
export const tool$basinsReconfigureBasin: ToolDefinition<typeof args> = {
|
|
14
14
|
name: "basins-reconfigure-basin",
|
|
15
15
|
description: `Reconfigure a basin.`,
|
|
16
|
-
scopes: ["write"],
|
|
16
|
+
scopes: ["write", "write", "write"],
|
|
17
17
|
args,
|
|
18
18
|
tool: async (client, args, ctx) => {
|
|
19
19
|
const [result, apiCall] = await basinsReconfigureBasin(
|
|
@@ -15,7 +15,7 @@ export const tool$recordsAppend: ToolDefinition<typeof args> = {
|
|
|
15
15
|
description: `Append records.
|
|
16
16
|
|
|
17
17
|
Append a batch of records to a stream.`,
|
|
18
|
-
scopes: ["write"],
|
|
18
|
+
scopes: ["write", "write", "write"],
|
|
19
19
|
args,
|
|
20
20
|
tool: async (client, args, ctx) => {
|
|
21
21
|
const [result, apiCall] = await recordsAppend(
|
|
@@ -15,7 +15,7 @@ export const tool$recordsCheckTail: ToolDefinition<typeof args> = {
|
|
|
15
15
|
description: `Check the tail.
|
|
16
16
|
|
|
17
17
|
Check the tail of a stream.`,
|
|
18
|
-
scopes: ["read"],
|
|
18
|
+
scopes: ["read", "read", "read"],
|
|
19
19
|
args,
|
|
20
20
|
tool: async (client, args, ctx) => {
|
|
21
21
|
const [result, apiCall] = await recordsCheckTail(
|
|
@@ -15,7 +15,7 @@ export const tool$recordsRead: ToolDefinition<typeof args> = {
|
|
|
15
15
|
description: `Retrieve records.
|
|
16
16
|
|
|
17
17
|
Retrieve a batch of records, or set \`Accept: text/event-stream\` to stream using server-sent events.`,
|
|
18
|
-
scopes: ["read"],
|
|
18
|
+
scopes: ["read", "read", "read"],
|
|
19
19
|
args,
|
|
20
20
|
tool: async (client, args, ctx) => {
|
|
21
21
|
const [result, apiCall] = await recordsRead(
|
|
@@ -15,7 +15,7 @@ export const tool$streamsCreateOrReconfigureStream: ToolDefinition<
|
|
|
15
15
|
> = {
|
|
16
16
|
name: "streams-create-or-reconfigure-stream",
|
|
17
17
|
description: `Create or reconfigure a stream.`,
|
|
18
|
-
scopes: ["write"],
|
|
18
|
+
scopes: ["write", "write", "write"],
|
|
19
19
|
args,
|
|
20
20
|
tool: async (client, args, ctx) => {
|
|
21
21
|
const [result, apiCall] = await streamsCreateOrReconfigureStream(
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { streamsCreateStream } from "../../funcs/streamsCreateStream.js";
|
|
6
|
-
import * as
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
7
|
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
8
|
|
|
9
9
|
const args = {
|
|
10
|
-
request:
|
|
10
|
+
request: operations.CreateStreamRequest$inboundSchema,
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export const tool$streamsCreateStream: ToolDefinition<typeof args> = {
|
|
14
14
|
name: "streams-create-stream",
|
|
15
15
|
description: `Create a stream.`,
|
|
16
|
-
scopes: ["write"],
|
|
16
|
+
scopes: ["write", "write", "write"],
|
|
17
17
|
args,
|
|
18
18
|
tool: async (client, args, ctx) => {
|
|
19
19
|
const [result, apiCall] = await streamsCreateStream(
|
|
@@ -13,7 +13,7 @@ const args = {
|
|
|
13
13
|
export const tool$streamsDeleteStream: ToolDefinition<typeof args> = {
|
|
14
14
|
name: "streams-delete-stream",
|
|
15
15
|
description: `Delete a stream.`,
|
|
16
|
-
scopes: ["write"],
|
|
16
|
+
scopes: ["write", "write", "write"],
|
|
17
17
|
args,
|
|
18
18
|
tool: async (client, args, ctx) => {
|
|
19
19
|
const [result, apiCall] = await streamsDeleteStream(
|
|
@@ -13,7 +13,7 @@ const args = {
|
|
|
13
13
|
export const tool$streamsGetStreamConfig: ToolDefinition<typeof args> = {
|
|
14
14
|
name: "streams-get-stream-config",
|
|
15
15
|
description: `Get stream configuration.`,
|
|
16
|
-
scopes: ["read"],
|
|
16
|
+
scopes: ["read", "read", "read"],
|
|
17
17
|
args,
|
|
18
18
|
tool: async (client, args, ctx) => {
|
|
19
19
|
const [result, apiCall] = await streamsGetStreamConfig(
|
|
@@ -13,7 +13,7 @@ const args = {
|
|
|
13
13
|
export const tool$streamsListStreams: ToolDefinition<typeof args> = {
|
|
14
14
|
name: "streams-list-streams",
|
|
15
15
|
description: `List streams.`,
|
|
16
|
-
scopes: ["read"],
|
|
16
|
+
scopes: ["read", "read", "read"],
|
|
17
17
|
args,
|
|
18
18
|
tool: async (client, args, ctx) => {
|
|
19
19
|
const [result, apiCall] = await streamsListStreams(
|
|
@@ -13,7 +13,7 @@ const args = {
|
|
|
13
13
|
export const tool$streamsReconfigureStream: ToolDefinition<typeof args> = {
|
|
14
14
|
name: "streams-reconfigure-stream",
|
|
15
15
|
description: `Reconfigure a stream.`,
|
|
16
|
-
scopes: ["write"],
|
|
16
|
+
scopes: ["write", "write", "write"],
|
|
17
17
|
args,
|
|
18
18
|
tool: async (client, args, ctx) => {
|
|
19
19
|
const [result, apiCall] = await streamsReconfigureStream(
|
|
@@ -6,12 +6,6 @@ import * as z from "zod";
|
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
-
import {
|
|
10
|
-
Header,
|
|
11
|
-
Header$inboundSchema,
|
|
12
|
-
Header$Outbound,
|
|
13
|
-
Header$outboundSchema,
|
|
14
|
-
} from "./header.js";
|
|
15
9
|
|
|
16
10
|
/**
|
|
17
11
|
* Record to be appended to a stream.
|
|
@@ -24,7 +18,7 @@ export type AppendRecord = {
|
|
|
24
18
|
/**
|
|
25
19
|
* Series of name-value pairs for this record.
|
|
26
20
|
*/
|
|
27
|
-
headers?: Array<
|
|
21
|
+
headers?: Array<Array<string>> | undefined;
|
|
28
22
|
timestamp?: number | null | undefined;
|
|
29
23
|
};
|
|
30
24
|
|
|
@@ -35,14 +29,14 @@ export const AppendRecord$inboundSchema: z.ZodType<
|
|
|
35
29
|
unknown
|
|
36
30
|
> = z.object({
|
|
37
31
|
body: z.string().optional(),
|
|
38
|
-
headers: z.array(
|
|
32
|
+
headers: z.array(z.array(z.string())).optional(),
|
|
39
33
|
timestamp: z.nullable(z.number().int()).optional(),
|
|
40
34
|
});
|
|
41
35
|
|
|
42
36
|
/** @internal */
|
|
43
37
|
export type AppendRecord$Outbound = {
|
|
44
38
|
body?: string | undefined;
|
|
45
|
-
headers?: Array<
|
|
39
|
+
headers?: Array<Array<string>> | undefined;
|
|
46
40
|
timestamp?: number | null | undefined;
|
|
47
41
|
};
|
|
48
42
|
|
|
@@ -53,7 +47,7 @@ export const AppendRecord$outboundSchema: z.ZodType<
|
|
|
53
47
|
AppendRecord
|
|
54
48
|
> = z.object({
|
|
55
49
|
body: z.string().optional(),
|
|
56
|
-
headers: z.array(
|
|
50
|
+
headers: z.array(z.array(z.string())).optional(),
|
|
57
51
|
timestamp: z.nullable(z.number().int()).optional(),
|
|
58
52
|
});
|
|
59
53
|
|
|
@@ -15,7 +15,6 @@ export * from "./basinstate.js";
|
|
|
15
15
|
export * from "./createbasinrequest.js";
|
|
16
16
|
export * from "./createorreconfigurebasinrequest.js";
|
|
17
17
|
export * from "./createstreamrequest.js";
|
|
18
|
-
export * from "./header.js";
|
|
19
18
|
export * from "./issueaccesstokenresponse.js";
|
|
20
19
|
export * from "./listaccesstokensresponse.js";
|
|
21
20
|
export * from "./listbasinsresponse.js";
|
|
@@ -7,12 +7,6 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
import {
|
|
11
|
-
Header,
|
|
12
|
-
Header$inboundSchema,
|
|
13
|
-
Header$Outbound,
|
|
14
|
-
Header$outboundSchema,
|
|
15
|
-
} from "./header.js";
|
|
16
10
|
|
|
17
11
|
/**
|
|
18
12
|
* Record that is durably sequenced on a stream.
|
|
@@ -25,7 +19,7 @@ export type SequencedRecord = {
|
|
|
25
19
|
/**
|
|
26
20
|
* Series of name-value pairs for this record.
|
|
27
21
|
*/
|
|
28
|
-
headers?: Array<
|
|
22
|
+
headers?: Array<Array<string>> | undefined;
|
|
29
23
|
seqNum: number;
|
|
30
24
|
timestamp: number;
|
|
31
25
|
};
|
|
@@ -37,7 +31,7 @@ export const SequencedRecord$inboundSchema: z.ZodType<
|
|
|
37
31
|
unknown
|
|
38
32
|
> = z.object({
|
|
39
33
|
body: z.string().optional(),
|
|
40
|
-
headers: z.array(
|
|
34
|
+
headers: z.array(z.array(z.string())).optional(),
|
|
41
35
|
seq_num: z.number().int(),
|
|
42
36
|
timestamp: z.number().int(),
|
|
43
37
|
}).transform((v) => {
|
|
@@ -49,7 +43,7 @@ export const SequencedRecord$inboundSchema: z.ZodType<
|
|
|
49
43
|
/** @internal */
|
|
50
44
|
export type SequencedRecord$Outbound = {
|
|
51
45
|
body?: string | undefined;
|
|
52
|
-
headers?: Array<
|
|
46
|
+
headers?: Array<Array<string>> | undefined;
|
|
53
47
|
seq_num: number;
|
|
54
48
|
timestamp: number;
|
|
55
49
|
};
|
|
@@ -61,7 +55,7 @@ export const SequencedRecord$outboundSchema: z.ZodType<
|
|
|
61
55
|
SequencedRecord
|
|
62
56
|
> = z.object({
|
|
63
57
|
body: z.string().optional(),
|
|
64
|
-
headers: z.array(
|
|
58
|
+
headers: z.array(z.array(z.string())).optional(),
|
|
65
59
|
seqNum: z.number().int(),
|
|
66
60
|
timestamp: z.number().int(),
|
|
67
61
|
}).transform((v) => {
|
|
@@ -7,23 +7,22 @@ import * as z from "zod";
|
|
|
7
7
|
export type ErrorResponseData = {
|
|
8
8
|
code?: string | null | undefined;
|
|
9
9
|
message: string;
|
|
10
|
-
error: string;
|
|
11
10
|
};
|
|
12
11
|
|
|
13
12
|
export class ErrorResponse extends Error {
|
|
14
13
|
code?: string | null | undefined;
|
|
15
|
-
error: string;
|
|
16
14
|
|
|
17
15
|
/** The original data that was passed to this error instance. */
|
|
18
16
|
data$: ErrorResponseData;
|
|
19
17
|
|
|
20
18
|
constructor(err: ErrorResponseData) {
|
|
21
|
-
const message = err
|
|
19
|
+
const message = "message" in err && typeof err.message === "string"
|
|
20
|
+
? err.message
|
|
21
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
22
22
|
super(message);
|
|
23
23
|
this.data$ = err;
|
|
24
24
|
|
|
25
25
|
if (err.code != null) this.code = err.code;
|
|
26
|
-
this.error = err.error;
|
|
27
26
|
|
|
28
27
|
this.name = "ErrorResponse";
|
|
29
28
|
}
|
|
@@ -37,7 +36,6 @@ export const ErrorResponse$inboundSchema: z.ZodType<
|
|
|
37
36
|
> = z.object({
|
|
38
37
|
code: z.nullable(z.string()).optional(),
|
|
39
38
|
message: z.string(),
|
|
40
|
-
error: z.string(),
|
|
41
39
|
})
|
|
42
40
|
.transform((v) => {
|
|
43
41
|
return new ErrorResponse(v);
|
|
@@ -47,7 +45,6 @@ export const ErrorResponse$inboundSchema: z.ZodType<
|
|
|
47
45
|
export type ErrorResponse$Outbound = {
|
|
48
46
|
code?: string | null | undefined;
|
|
49
47
|
message: string;
|
|
50
|
-
error: string;
|
|
51
48
|
};
|
|
52
49
|
|
|
53
50
|
/** @internal */
|
|
@@ -60,7 +57,6 @@ export const ErrorResponse$outboundSchema: z.ZodType<
|
|
|
60
57
|
.pipe(z.object({
|
|
61
58
|
code: z.nullable(z.string()).optional(),
|
|
62
59
|
message: z.string(),
|
|
63
|
-
error: z.string(),
|
|
64
60
|
}));
|
|
65
61
|
|
|
66
62
|
/**
|
|
@@ -6,7 +6,5 @@ export * from "./apierror.js";
|
|
|
6
6
|
export * from "./appendconditionfailed.js";
|
|
7
7
|
export * from "./errorresponse.js";
|
|
8
8
|
export * from "./httpclienterrors.js";
|
|
9
|
-
export * from "./notfounderror.js";
|
|
10
|
-
export * from "./retryableerror.js";
|
|
11
9
|
export * from "./sdkvalidationerror.js";
|
|
12
10
|
export * from "./tailresponse.js";
|
|
@@ -32,6 +32,10 @@ export type AppendRequest = {
|
|
|
32
32
|
* json-binsafe: Base64-encoded binary data
|
|
33
33
|
*/
|
|
34
34
|
s2Format?: components.S2Format | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Basin name for basin-specific endpoints
|
|
37
|
+
*/
|
|
38
|
+
s2Basin: string;
|
|
35
39
|
appendInput: components.AppendInput;
|
|
36
40
|
};
|
|
37
41
|
|
|
@@ -43,10 +47,12 @@ export const AppendRequest$inboundSchema: z.ZodType<
|
|
|
43
47
|
> = z.object({
|
|
44
48
|
stream: z.string(),
|
|
45
49
|
"s2-format": components.S2Format$inboundSchema.optional(),
|
|
50
|
+
"s2-basin": z.string(),
|
|
46
51
|
AppendInput: components.AppendInput$inboundSchema,
|
|
47
52
|
}).transform((v) => {
|
|
48
53
|
return remap$(v, {
|
|
49
54
|
"s2-format": "s2Format",
|
|
55
|
+
"s2-basin": "s2Basin",
|
|
50
56
|
"AppendInput": "appendInput",
|
|
51
57
|
});
|
|
52
58
|
});
|
|
@@ -55,6 +61,7 @@ export const AppendRequest$inboundSchema: z.ZodType<
|
|
|
55
61
|
export type AppendRequest$Outbound = {
|
|
56
62
|
stream: string;
|
|
57
63
|
"s2-format"?: string | undefined;
|
|
64
|
+
"s2-basin": string;
|
|
58
65
|
AppendInput: components.AppendInput$Outbound;
|
|
59
66
|
};
|
|
60
67
|
|
|
@@ -66,10 +73,12 @@ export const AppendRequest$outboundSchema: z.ZodType<
|
|
|
66
73
|
> = z.object({
|
|
67
74
|
stream: z.string(),
|
|
68
75
|
s2Format: components.S2Format$outboundSchema.optional(),
|
|
76
|
+
s2Basin: z.string(),
|
|
69
77
|
appendInput: components.AppendInput$outboundSchema,
|
|
70
78
|
}).transform((v) => {
|
|
71
79
|
return remap$(v, {
|
|
72
80
|
s2Format: "s2-format",
|
|
81
|
+
s2Basin: "s2-basin",
|
|
73
82
|
appendInput: "AppendInput",
|
|
74
83
|
});
|
|
75
84
|
});
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
@@ -22,6 +23,10 @@ export type CheckTailRequest = {
|
|
|
22
23
|
* It can be an arbitrary string up to 512 characters.
|
|
23
24
|
*/
|
|
24
25
|
stream: string;
|
|
26
|
+
/**
|
|
27
|
+
* Basin name for basin-specific endpoints
|
|
28
|
+
*/
|
|
29
|
+
s2Basin: string;
|
|
25
30
|
};
|
|
26
31
|
|
|
27
32
|
/** @internal */
|
|
@@ -31,11 +36,17 @@ export const CheckTailRequest$inboundSchema: z.ZodType<
|
|
|
31
36
|
unknown
|
|
32
37
|
> = z.object({
|
|
33
38
|
stream: z.string(),
|
|
39
|
+
"s2-basin": z.string(),
|
|
40
|
+
}).transform((v) => {
|
|
41
|
+
return remap$(v, {
|
|
42
|
+
"s2-basin": "s2Basin",
|
|
43
|
+
});
|
|
34
44
|
});
|
|
35
45
|
|
|
36
46
|
/** @internal */
|
|
37
47
|
export type CheckTailRequest$Outbound = {
|
|
38
48
|
stream: string;
|
|
49
|
+
"s2-basin": string;
|
|
39
50
|
};
|
|
40
51
|
|
|
41
52
|
/** @internal */
|
|
@@ -45,6 +56,11 @@ export const CheckTailRequest$outboundSchema: z.ZodType<
|
|
|
45
56
|
CheckTailRequest
|
|
46
57
|
> = z.object({
|
|
47
58
|
stream: z.string(),
|
|
59
|
+
s2Basin: z.string(),
|
|
60
|
+
}).transform((v) => {
|
|
61
|
+
return remap$(v, {
|
|
62
|
+
s2Basin: "s2-basin",
|
|
63
|
+
});
|
|
48
64
|
});
|
|
49
65
|
|
|
50
66
|
/**
|
|
@@ -28,6 +28,10 @@ export type CreateOrReconfigureStreamRequest = {
|
|
|
28
28
|
* Provide a client request token header for idempotent retry behaviour.
|
|
29
29
|
*/
|
|
30
30
|
s2RequestToken?: string | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Basin name for basin-specific endpoints
|
|
33
|
+
*/
|
|
34
|
+
s2Basin: string;
|
|
31
35
|
streamConfig?: components.StreamConfig | null | undefined;
|
|
32
36
|
};
|
|
33
37
|
|
|
@@ -39,10 +43,12 @@ export const CreateOrReconfigureStreamRequest$inboundSchema: z.ZodType<
|
|
|
39
43
|
> = z.object({
|
|
40
44
|
stream: z.string(),
|
|
41
45
|
"s2-request-token": z.string().optional(),
|
|
46
|
+
"s2-basin": z.string(),
|
|
42
47
|
StreamConfig: z.nullable(components.StreamConfig$inboundSchema).optional(),
|
|
43
48
|
}).transform((v) => {
|
|
44
49
|
return remap$(v, {
|
|
45
50
|
"s2-request-token": "s2RequestToken",
|
|
51
|
+
"s2-basin": "s2Basin",
|
|
46
52
|
"StreamConfig": "streamConfig",
|
|
47
53
|
});
|
|
48
54
|
});
|
|
@@ -51,6 +57,7 @@ export const CreateOrReconfigureStreamRequest$inboundSchema: z.ZodType<
|
|
|
51
57
|
export type CreateOrReconfigureStreamRequest$Outbound = {
|
|
52
58
|
stream: string;
|
|
53
59
|
"s2-request-token"?: string | undefined;
|
|
60
|
+
"s2-basin": string;
|
|
54
61
|
StreamConfig?: components.StreamConfig$Outbound | null | undefined;
|
|
55
62
|
};
|
|
56
63
|
|
|
@@ -62,10 +69,12 @@ export const CreateOrReconfigureStreamRequest$outboundSchema: z.ZodType<
|
|
|
62
69
|
> = z.object({
|
|
63
70
|
stream: z.string(),
|
|
64
71
|
s2RequestToken: z.string().optional(),
|
|
72
|
+
s2Basin: z.string(),
|
|
65
73
|
streamConfig: z.nullable(components.StreamConfig$outboundSchema).optional(),
|
|
66
74
|
}).transform((v) => {
|
|
67
75
|
return remap$(v, {
|
|
68
76
|
s2RequestToken: "s2-request-token",
|
|
77
|
+
s2Basin: "s2-basin",
|
|
69
78
|
streamConfig: "StreamConfig",
|
|
70
79
|
});
|
|
71
80
|
});
|