@s2-dev/streamstore 0.11.1 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +50 -1
- package/bin/mcp-server.js +1705 -192
- package/bin/mcp-server.js.map +73 -40
- package/dist/commonjs/funcs/accessTokensIssueAccessToken.js +2 -2
- package/dist/commonjs/funcs/accessTokensIssueAccessToken.js.map +1 -1
- package/dist/commonjs/funcs/accessTokensListAccessTokens.js +2 -2
- package/dist/commonjs/funcs/accessTokensRevokeAccessToken.js +2 -2
- package/dist/commonjs/funcs/basinsCreateBasin.d.ts +14 -0
- package/dist/commonjs/funcs/basinsCreateBasin.d.ts.map +1 -0
- package/dist/commonjs/funcs/basinsCreateBasin.js +124 -0
- package/dist/commonjs/funcs/basinsCreateBasin.js.map +1 -0
- package/dist/commonjs/funcs/basinsCreateOrReconfigureBasin.js +3 -3
- 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 +13 -2
- package/dist/commonjs/funcs/basinsDeleteBasin.js.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.js +2 -2
- package/dist/commonjs/funcs/basinsReconfigureBasin.js +2 -2
- package/dist/commonjs/funcs/basinsReconfigureBasin.js.map +1 -1
- package/dist/commonjs/funcs/recordsAppend.d.ts +18 -0
- package/dist/commonjs/funcs/recordsAppend.d.ts.map +1 -0
- package/dist/commonjs/funcs/recordsAppend.js +144 -0
- package/dist/commonjs/funcs/recordsAppend.js.map +1 -0
- package/dist/commonjs/funcs/recordsCheckTail.d.ts +18 -0
- package/dist/commonjs/funcs/recordsCheckTail.d.ts.map +1 -0
- package/dist/commonjs/funcs/recordsCheckTail.js +138 -0
- package/dist/commonjs/funcs/recordsCheckTail.js.map +1 -0
- package/dist/commonjs/funcs/recordsRead.d.ts +23 -0
- package/dist/commonjs/funcs/recordsRead.d.ts.map +1 -0
- package/dist/commonjs/funcs/recordsRead.js +157 -0
- package/dist/commonjs/funcs/recordsRead.js.map +1 -0
- package/dist/commonjs/funcs/streamsCreateOrReconfigureStream.js +14 -3
- package/dist/commonjs/funcs/streamsCreateOrReconfigureStream.js.map +1 -1
- package/dist/commonjs/funcs/streamsCreateStream.d.ts +14 -0
- package/dist/commonjs/funcs/streamsCreateStream.d.ts.map +1 -0
- package/dist/commonjs/funcs/streamsCreateStream.js +129 -0
- package/dist/commonjs/funcs/streamsCreateStream.js.map +1 -0
- 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 +2 -2
- package/dist/commonjs/funcs/streamsDeleteStream.js.map +1 -1
- package/dist/commonjs/funcs/streamsGetStreamConfig.js +13 -2
- package/dist/commonjs/funcs/streamsGetStreamConfig.js.map +1 -1
- package/dist/commonjs/funcs/streamsListStreams.js +2 -2
- package/dist/commonjs/funcs/streamsListStreams.js.map +1 -1
- package/dist/commonjs/funcs/streamsReconfigureStream.js +13 -2
- package/dist/commonjs/funcs/streamsReconfigureStream.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/event-streams.d.ts +17 -0
- package/dist/commonjs/lib/event-streams.d.ts.map +1 -0
- package/dist/commonjs/lib/event-streams.js +220 -0
- package/dist/commonjs/lib/event-streams.js.map +1 -0
- package/dist/commonjs/lib/matchers.d.ts.map +1 -1
- package/dist/commonjs/lib/matchers.js +4 -1
- package/dist/commonjs/lib/matchers.js.map +1 -1
- package/dist/commonjs/lib/sdks.d.ts +3 -1
- package/dist/commonjs/lib/sdks.d.ts.map +1 -1
- package/dist/commonjs/lib/sdks.js +6 -11
- package/dist/commonjs/lib/sdks.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +11 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/basinsCreateBasin.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/basinsCreateBasin.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/basinsCreateBasin.js +63 -0
- package/dist/commonjs/mcp-server/tools/basinsCreateBasin.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/recordsAppend.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/recordsAppend.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/recordsAppend.js +65 -0
- package/dist/commonjs/mcp-server/tools/recordsAppend.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/recordsCheckTail.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/recordsCheckTail.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/recordsCheckTail.js +65 -0
- package/dist/commonjs/mcp-server/tools/recordsCheckTail.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/recordsRead.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/recordsRead.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/recordsRead.js +65 -0
- package/dist/commonjs/mcp-server/tools/recordsRead.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/streamsCreateStream.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/streamsCreateStream.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/streamsCreateStream.js +63 -0
- package/dist/commonjs/mcp-server/tools/streamsCreateStream.js.map +1 -0
- package/dist/commonjs/models/components/accesstokeninfo.d.ts +2 -2
- package/dist/commonjs/models/components/appendack.d.ts +46 -0
- package/dist/commonjs/models/components/appendack.d.ts.map +1 -0
- package/dist/commonjs/models/components/appendack.js +74 -0
- package/dist/commonjs/models/components/appendack.js.map +1 -0
- package/dist/commonjs/models/components/appendinput.d.ts +46 -0
- package/dist/commonjs/models/components/appendinput.d.ts.map +1 -0
- package/dist/commonjs/models/components/appendinput.js +85 -0
- package/dist/commonjs/models/components/appendinput.js.map +1 -0
- package/dist/commonjs/models/components/appendrecord.d.ts +43 -0
- package/dist/commonjs/models/components/appendrecord.d.ts.map +1 -0
- package/dist/commonjs/models/components/appendrecord.js +74 -0
- package/dist/commonjs/models/components/appendrecord.js.map +1 -0
- package/dist/commonjs/models/components/basinconfig.d.ts +4 -4
- package/dist/commonjs/models/components/basinconfig.d.ts.map +1 -1
- package/dist/commonjs/models/components/basinconfig.js +4 -4
- package/dist/commonjs/models/components/basinconfig.js.map +1 -1
- package/dist/commonjs/models/components/createbasinrequest.d.ts +5 -0
- package/dist/commonjs/models/components/createbasinrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/createbasinrequest.js +2 -0
- package/dist/commonjs/models/components/createbasinrequest.js.map +1 -1
- package/dist/commonjs/models/components/createorreconfigurebasinrequest.d.ts +54 -0
- package/dist/commonjs/models/components/createorreconfigurebasinrequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/createorreconfigurebasinrequest.js +96 -0
- package/dist/commonjs/models/components/createorreconfigurebasinrequest.js.map +1 -0
- package/dist/commonjs/models/components/createstreamrequest.d.ts +35 -0
- package/dist/commonjs/models/components/createstreamrequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/createstreamrequest.js +72 -0
- package/dist/commonjs/models/components/createstreamrequest.js.map +1 -0
- package/dist/commonjs/models/components/header.d.ts +43 -0
- package/dist/commonjs/models/components/header.d.ts.map +1 -0
- package/dist/commonjs/models/components/header.js +72 -0
- package/dist/commonjs/models/components/header.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +15 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +15 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/listaccesstokensresponse.d.ts +5 -5
- package/dist/commonjs/models/components/listaccesstokensresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/listaccesstokensresponse.js +4 -2
- package/dist/commonjs/models/components/listaccesstokensresponse.js.map +1 -1
- package/dist/commonjs/models/components/listbasinsresponse.d.ts +1 -1
- package/dist/commonjs/models/components/liststreamsresponse.d.ts +1 -1
- package/dist/commonjs/models/components/readbatch.d.ts +30 -0
- package/dist/commonjs/models/components/readbatch.d.ts.map +1 -0
- package/dist/commonjs/models/components/readbatch.js +70 -0
- package/dist/commonjs/models/components/readbatch.js.map +1 -0
- package/dist/commonjs/models/components/readevent.d.ts +107 -0
- package/dist/commonjs/models/components/readevent.d.ts.map +1 -0
- package/dist/commonjs/models/components/readevent.js +175 -0
- package/dist/commonjs/models/components/readevent.js.map +1 -0
- package/dist/commonjs/models/components/s2format.d.ts +28 -0
- package/dist/commonjs/models/components/s2format.d.ts.map +1 -0
- package/dist/commonjs/models/components/s2format.js +61 -0
- package/dist/commonjs/models/components/s2format.js.map +1 -0
- package/dist/commonjs/models/components/sequencedrecord.d.ts +45 -0
- package/dist/commonjs/models/components/sequencedrecord.d.ts.map +1 -0
- package/dist/commonjs/models/components/sequencedrecord.js +85 -0
- package/dist/commonjs/models/components/sequencedrecord.js.map +1 -0
- package/dist/commonjs/models/components/streamconfig.d.ts +3 -18
- package/dist/commonjs/models/components/streamconfig.d.ts.map +1 -1
- package/dist/commonjs/models/components/streamconfig.js +3 -8
- package/dist/commonjs/models/components/streamconfig.js.map +1 -1
- package/dist/commonjs/models/components/streaminfo.d.ts +2 -2
- package/dist/commonjs/models/components/streamposition.d.ts +43 -0
- package/dist/commonjs/models/components/streamposition.d.ts.map +1 -0
- package/dist/commonjs/models/components/streamposition.js +80 -0
- package/dist/commonjs/models/components/streamposition.js.map +1 -0
- package/dist/commonjs/models/components/streamreconfiguration.d.ts +3 -18
- package/dist/commonjs/models/components/streamreconfiguration.d.ts.map +1 -1
- package/dist/commonjs/models/components/streamreconfiguration.js +5 -8
- package/dist/commonjs/models/components/streamreconfiguration.js.map +1 -1
- package/dist/commonjs/models/components/tailresponse.d.ts +33 -0
- package/dist/commonjs/models/components/tailresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/tailresponse.js +70 -0
- package/dist/commonjs/models/components/tailresponse.js.map +1 -0
- package/dist/commonjs/models/components/timestampingconfig.d.ts +38 -0
- package/dist/commonjs/models/components/timestampingconfig.d.ts.map +1 -0
- package/dist/commonjs/models/components/timestampingconfig.js +72 -0
- package/dist/commonjs/models/components/timestampingconfig.js.map +1 -0
- package/dist/commonjs/models/components/timestampingmode.d.ts +31 -0
- package/dist/commonjs/models/components/timestampingmode.d.ts.map +1 -0
- package/dist/commonjs/models/components/timestampingmode.js +61 -0
- package/dist/commonjs/models/components/timestampingmode.js.map +1 -0
- package/dist/commonjs/models/components/timestampingreconfiguration.d.ts +35 -0
- package/dist/commonjs/models/components/timestampingreconfiguration.d.ts.map +1 -0
- package/dist/commonjs/models/components/timestampingreconfiguration.js +72 -0
- package/dist/commonjs/models/components/timestampingreconfiguration.js.map +1 -0
- package/dist/commonjs/models/errors/appendconditionfailed.d.ts +134 -0
- package/dist/commonjs/models/errors/appendconditionfailed.d.ts.map +1 -0
- package/dist/commonjs/models/errors/appendconditionfailed.js +171 -0
- package/dist/commonjs/models/errors/appendconditionfailed.js.map +1 -0
- package/dist/commonjs/models/errors/index.d.ts +3 -0
- package/dist/commonjs/models/errors/index.d.ts.map +1 -1
- package/dist/commonjs/models/errors/index.js +3 -0
- package/dist/commonjs/models/errors/index.js.map +1 -1
- package/dist/commonjs/models/errors/notfounderror.d.ts +31 -0
- package/dist/commonjs/models/errors/notfounderror.d.ts.map +1 -0
- package/dist/commonjs/models/errors/notfounderror.js +75 -0
- package/dist/commonjs/models/errors/notfounderror.js.map +1 -0
- package/dist/commonjs/models/errors/tailresponse.d.ts +38 -0
- package/dist/commonjs/models/errors/tailresponse.d.ts.map +1 -0
- package/dist/commonjs/models/errors/tailresponse.js +78 -0
- package/dist/commonjs/models/errors/tailresponse.js.map +1 -0
- package/dist/commonjs/models/operations/append.d.ts +48 -0
- package/dist/commonjs/models/operations/append.d.ts.map +1 -0
- package/dist/commonjs/models/operations/append.js +91 -0
- package/dist/commonjs/models/operations/append.js.map +1 -0
- package/dist/commonjs/models/operations/checktail.d.ts +36 -0
- package/dist/commonjs/models/operations/checktail.d.ts.map +1 -0
- package/dist/commonjs/models/operations/checktail.js +75 -0
- package/dist/commonjs/models/operations/checktail.js.map +1 -0
- package/dist/commonjs/models/operations/createorreconfigurebasin.d.ts +7 -7
- package/dist/commonjs/models/operations/createorreconfigurebasin.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createorreconfigurebasin.js +6 -6
- package/dist/commonjs/models/operations/createorreconfigurebasin.js.map +1 -1
- package/dist/commonjs/models/operations/createorreconfigurestream.d.ts +3 -4
- package/dist/commonjs/models/operations/createorreconfigurestream.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createorreconfigurestream.js +2 -2
- package/dist/commonjs/models/operations/createorreconfigurestream.js.map +1 -1
- package/dist/commonjs/models/operations/createstream.d.ts +2 -0
- package/dist/commonjs/models/operations/createstream.d.ts.map +1 -0
- package/dist/commonjs/models/operations/createstream.js +13 -0
- package/dist/commonjs/models/operations/createstream.js.map +1 -0
- package/dist/commonjs/models/operations/deletestream.d.ts +1 -2
- package/dist/commonjs/models/operations/deletestream.d.ts.map +1 -1
- package/dist/commonjs/models/operations/deletestream.js.map +1 -1
- package/dist/commonjs/models/operations/getstreamconfig.d.ts +1 -2
- package/dist/commonjs/models/operations/getstreamconfig.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getstreamconfig.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +4 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +4 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listbasins.d.ts +1 -1
- package/dist/commonjs/models/operations/read.d.ts +93 -0
- package/dist/commonjs/models/operations/read.d.ts.map +1 -0
- package/dist/commonjs/models/operations/read.js +136 -0
- package/dist/commonjs/models/operations/read.js.map +1 -0
- package/dist/commonjs/models/operations/reconfigurestream.d.ts +1 -2
- package/dist/commonjs/models/operations/reconfigurestream.d.ts.map +1 -1
- package/dist/commonjs/models/operations/reconfigurestream.js.map +1 -1
- package/dist/commonjs/models/operations/revokeaccesstoken.d.ts +1 -1
- package/dist/commonjs/sdk/basins.d.ts +4 -0
- package/dist/commonjs/sdk/basins.d.ts.map +1 -1
- package/dist/commonjs/sdk/basins.js +7 -0
- package/dist/commonjs/sdk/basins.js.map +1 -1
- package/dist/commonjs/sdk/records.d.ts +31 -0
- package/dist/commonjs/sdk/records.d.ts.map +1 -0
- package/dist/commonjs/sdk/records.js +44 -0
- package/dist/commonjs/sdk/records.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +4 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/streams.d.ts +4 -0
- package/dist/commonjs/sdk/streams.d.ts.map +1 -1
- package/dist/commonjs/sdk/streams.js +7 -0
- package/dist/commonjs/sdk/streams.js.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.js +2 -2
- package/dist/esm/funcs/accessTokensRevokeAccessToken.js +2 -2
- package/dist/esm/funcs/basinsCreateBasin.d.ts +14 -0
- package/dist/esm/funcs/basinsCreateBasin.d.ts.map +1 -0
- package/dist/esm/funcs/basinsCreateBasin.js +88 -0
- package/dist/esm/funcs/basinsCreateBasin.js.map +1 -0
- package/dist/esm/funcs/basinsCreateOrReconfigureBasin.js +3 -3
- 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 +13 -2
- package/dist/esm/funcs/basinsDeleteBasin.js.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.js +2 -2
- package/dist/esm/funcs/basinsReconfigureBasin.js +2 -2
- package/dist/esm/funcs/basinsReconfigureBasin.js.map +1 -1
- package/dist/esm/funcs/recordsAppend.d.ts +18 -0
- package/dist/esm/funcs/recordsAppend.d.ts.map +1 -0
- package/dist/esm/funcs/recordsAppend.js +108 -0
- package/dist/esm/funcs/recordsAppend.js.map +1 -0
- package/dist/esm/funcs/recordsCheckTail.d.ts +18 -0
- package/dist/esm/funcs/recordsCheckTail.d.ts.map +1 -0
- package/dist/esm/funcs/recordsCheckTail.js +102 -0
- package/dist/esm/funcs/recordsCheckTail.js.map +1 -0
- package/dist/esm/funcs/recordsRead.d.ts +23 -0
- package/dist/esm/funcs/recordsRead.d.ts.map +1 -0
- package/dist/esm/funcs/recordsRead.js +120 -0
- package/dist/esm/funcs/recordsRead.js.map +1 -0
- package/dist/esm/funcs/streamsCreateOrReconfigureStream.js +14 -3
- package/dist/esm/funcs/streamsCreateOrReconfigureStream.js.map +1 -1
- package/dist/esm/funcs/streamsCreateStream.d.ts +14 -0
- package/dist/esm/funcs/streamsCreateStream.d.ts.map +1 -0
- package/dist/esm/funcs/streamsCreateStream.js +93 -0
- package/dist/esm/funcs/streamsCreateStream.js.map +1 -0
- 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 +2 -2
- package/dist/esm/funcs/streamsDeleteStream.js.map +1 -1
- package/dist/esm/funcs/streamsGetStreamConfig.js +13 -2
- package/dist/esm/funcs/streamsGetStreamConfig.js.map +1 -1
- package/dist/esm/funcs/streamsListStreams.js +2 -2
- package/dist/esm/funcs/streamsListStreams.js.map +1 -1
- package/dist/esm/funcs/streamsReconfigureStream.js +13 -2
- package/dist/esm/funcs/streamsReconfigureStream.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/event-streams.d.ts +17 -0
- package/dist/esm/lib/event-streams.d.ts.map +1 -0
- package/dist/esm/lib/event-streams.js +215 -0
- package/dist/esm/lib/event-streams.js.map +1 -0
- package/dist/esm/lib/matchers.d.ts.map +1 -1
- package/dist/esm/lib/matchers.js +4 -1
- package/dist/esm/lib/matchers.js.map +1 -1
- package/dist/esm/lib/sdks.d.ts +3 -1
- package/dist/esm/lib/sdks.d.ts.map +1 -1
- package/dist/esm/lib/sdks.js +6 -11
- package/dist/esm/lib/sdks.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +11 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/basinsCreateBasin.d.ts +8 -0
- package/dist/esm/mcp-server/tools/basinsCreateBasin.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/basinsCreateBasin.js +27 -0
- package/dist/esm/mcp-server/tools/basinsCreateBasin.js.map +1 -0
- package/dist/esm/mcp-server/tools/recordsAppend.d.ts +8 -0
- package/dist/esm/mcp-server/tools/recordsAppend.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/recordsAppend.js +29 -0
- package/dist/esm/mcp-server/tools/recordsAppend.js.map +1 -0
- package/dist/esm/mcp-server/tools/recordsCheckTail.d.ts +8 -0
- package/dist/esm/mcp-server/tools/recordsCheckTail.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/recordsCheckTail.js +29 -0
- package/dist/esm/mcp-server/tools/recordsCheckTail.js.map +1 -0
- package/dist/esm/mcp-server/tools/recordsRead.d.ts +8 -0
- package/dist/esm/mcp-server/tools/recordsRead.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/recordsRead.js +29 -0
- package/dist/esm/mcp-server/tools/recordsRead.js.map +1 -0
- package/dist/esm/mcp-server/tools/streamsCreateStream.d.ts +8 -0
- package/dist/esm/mcp-server/tools/streamsCreateStream.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/streamsCreateStream.js +27 -0
- package/dist/esm/mcp-server/tools/streamsCreateStream.js.map +1 -0
- package/dist/esm/models/components/accesstokeninfo.d.ts +2 -2
- package/dist/esm/models/components/appendack.d.ts +46 -0
- package/dist/esm/models/components/appendack.d.ts.map +1 -0
- package/dist/esm/models/components/appendack.js +36 -0
- package/dist/esm/models/components/appendack.js.map +1 -0
- package/dist/esm/models/components/appendinput.d.ts +46 -0
- package/dist/esm/models/components/appendinput.d.ts.map +1 -0
- package/dist/esm/models/components/appendinput.js +47 -0
- package/dist/esm/models/components/appendinput.js.map +1 -0
- package/dist/esm/models/components/appendrecord.d.ts +43 -0
- package/dist/esm/models/components/appendrecord.d.ts.map +1 -0
- package/dist/esm/models/components/appendrecord.js +36 -0
- package/dist/esm/models/components/appendrecord.js.map +1 -0
- package/dist/esm/models/components/basinconfig.d.ts +4 -4
- package/dist/esm/models/components/basinconfig.d.ts.map +1 -1
- package/dist/esm/models/components/basinconfig.js +4 -4
- package/dist/esm/models/components/basinconfig.js.map +1 -1
- package/dist/esm/models/components/createbasinrequest.d.ts +5 -0
- package/dist/esm/models/components/createbasinrequest.d.ts.map +1 -1
- package/dist/esm/models/components/createbasinrequest.js +2 -0
- package/dist/esm/models/components/createbasinrequest.js.map +1 -1
- package/dist/esm/models/components/createorreconfigurebasinrequest.d.ts +54 -0
- package/dist/esm/models/components/createorreconfigurebasinrequest.d.ts.map +1 -0
- package/dist/esm/models/components/createorreconfigurebasinrequest.js +56 -0
- package/dist/esm/models/components/createorreconfigurebasinrequest.js.map +1 -0
- package/dist/esm/models/components/createstreamrequest.d.ts +35 -0
- package/dist/esm/models/components/createstreamrequest.d.ts.map +1 -0
- package/dist/esm/models/components/createstreamrequest.js +34 -0
- package/dist/esm/models/components/createstreamrequest.js.map +1 -0
- package/dist/esm/models/components/header.d.ts +43 -0
- package/dist/esm/models/components/header.d.ts.map +1 -0
- package/dist/esm/models/components/header.js +34 -0
- package/dist/esm/models/components/header.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +15 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +15 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/listaccesstokensresponse.d.ts +5 -5
- package/dist/esm/models/components/listaccesstokensresponse.d.ts.map +1 -1
- package/dist/esm/models/components/listaccesstokensresponse.js +4 -2
- package/dist/esm/models/components/listaccesstokensresponse.js.map +1 -1
- package/dist/esm/models/components/listbasinsresponse.d.ts +1 -1
- package/dist/esm/models/components/liststreamsresponse.d.ts +1 -1
- package/dist/esm/models/components/readbatch.d.ts +30 -0
- package/dist/esm/models/components/readbatch.d.ts.map +1 -0
- package/dist/esm/models/components/readbatch.js +32 -0
- package/dist/esm/models/components/readbatch.js.map +1 -0
- package/dist/esm/models/components/readevent.d.ts +107 -0
- package/dist/esm/models/components/readevent.d.ts.map +1 -0
- package/dist/esm/models/components/readevent.js +131 -0
- package/dist/esm/models/components/readevent.js.map +1 -0
- package/dist/esm/models/components/s2format.d.ts +28 -0
- package/dist/esm/models/components/s2format.d.ts.map +1 -0
- package/dist/esm/models/components/s2format.js +25 -0
- package/dist/esm/models/components/s2format.js.map +1 -0
- package/dist/esm/models/components/sequencedrecord.d.ts +45 -0
- package/dist/esm/models/components/sequencedrecord.d.ts.map +1 -0
- package/dist/esm/models/components/sequencedrecord.js +47 -0
- package/dist/esm/models/components/sequencedrecord.js.map +1 -0
- package/dist/esm/models/components/streamconfig.d.ts +3 -18
- package/dist/esm/models/components/streamconfig.d.ts.map +1 -1
- package/dist/esm/models/components/streamconfig.js +3 -8
- package/dist/esm/models/components/streamconfig.js.map +1 -1
- package/dist/esm/models/components/streaminfo.d.ts +2 -2
- package/dist/esm/models/components/streamposition.d.ts +43 -0
- package/dist/esm/models/components/streamposition.d.ts.map +1 -0
- package/dist/esm/models/components/streamposition.js +42 -0
- package/dist/esm/models/components/streamposition.js.map +1 -0
- package/dist/esm/models/components/streamreconfiguration.d.ts +3 -18
- package/dist/esm/models/components/streamreconfiguration.d.ts.map +1 -1
- package/dist/esm/models/components/streamreconfiguration.js +5 -8
- package/dist/esm/models/components/streamreconfiguration.js.map +1 -1
- package/dist/esm/models/components/tailresponse.d.ts +33 -0
- package/dist/esm/models/components/tailresponse.d.ts.map +1 -0
- package/dist/esm/models/components/tailresponse.js +32 -0
- package/dist/esm/models/components/tailresponse.js.map +1 -0
- package/dist/esm/models/components/timestampingconfig.d.ts +38 -0
- package/dist/esm/models/components/timestampingconfig.d.ts.map +1 -0
- package/dist/esm/models/components/timestampingconfig.js +34 -0
- package/dist/esm/models/components/timestampingconfig.js.map +1 -0
- package/dist/esm/models/components/timestampingmode.d.ts +31 -0
- package/dist/esm/models/components/timestampingmode.d.ts.map +1 -0
- package/dist/esm/models/components/timestampingmode.js +25 -0
- package/dist/esm/models/components/timestampingmode.js.map +1 -0
- package/dist/esm/models/components/timestampingreconfiguration.d.ts +35 -0
- package/dist/esm/models/components/timestampingreconfiguration.d.ts.map +1 -0
- package/dist/esm/models/components/timestampingreconfiguration.js +34 -0
- package/dist/esm/models/components/timestampingreconfiguration.js.map +1 -0
- package/dist/esm/models/errors/appendconditionfailed.d.ts +134 -0
- package/dist/esm/models/errors/appendconditionfailed.d.ts.map +1 -0
- package/dist/esm/models/errors/appendconditionfailed.js +131 -0
- package/dist/esm/models/errors/appendconditionfailed.js.map +1 -0
- package/dist/esm/models/errors/index.d.ts +3 -0
- package/dist/esm/models/errors/index.d.ts.map +1 -1
- package/dist/esm/models/errors/index.js +3 -0
- package/dist/esm/models/errors/index.js.map +1 -1
- package/dist/esm/models/errors/notfounderror.d.ts +31 -0
- package/dist/esm/models/errors/notfounderror.d.ts.map +1 -0
- package/dist/esm/models/errors/notfounderror.js +38 -0
- package/dist/esm/models/errors/notfounderror.js.map +1 -0
- package/dist/esm/models/errors/tailresponse.d.ts +38 -0
- package/dist/esm/models/errors/tailresponse.d.ts.map +1 -0
- package/dist/esm/models/errors/tailresponse.js +41 -0
- package/dist/esm/models/errors/tailresponse.js.map +1 -0
- package/dist/esm/models/operations/append.d.ts +48 -0
- package/dist/esm/models/operations/append.d.ts.map +1 -0
- package/dist/esm/models/operations/append.js +53 -0
- package/dist/esm/models/operations/append.js.map +1 -0
- package/dist/esm/models/operations/checktail.d.ts +36 -0
- package/dist/esm/models/operations/checktail.d.ts.map +1 -0
- package/dist/esm/models/operations/checktail.js +37 -0
- package/dist/esm/models/operations/checktail.js.map +1 -0
- package/dist/esm/models/operations/createorreconfigurebasin.d.ts +7 -7
- package/dist/esm/models/operations/createorreconfigurebasin.d.ts.map +1 -1
- package/dist/esm/models/operations/createorreconfigurebasin.js +6 -6
- package/dist/esm/models/operations/createorreconfigurebasin.js.map +1 -1
- package/dist/esm/models/operations/createorreconfigurestream.d.ts +3 -4
- package/dist/esm/models/operations/createorreconfigurestream.d.ts.map +1 -1
- package/dist/esm/models/operations/createorreconfigurestream.js +2 -2
- package/dist/esm/models/operations/createorreconfigurestream.js.map +1 -1
- package/dist/esm/models/operations/createstream.d.ts +2 -0
- package/dist/esm/models/operations/createstream.d.ts.map +1 -0
- package/dist/esm/models/operations/createstream.js +10 -0
- package/dist/esm/models/operations/createstream.js.map +1 -0
- package/dist/esm/models/operations/deletestream.d.ts +1 -2
- package/dist/esm/models/operations/deletestream.d.ts.map +1 -1
- package/dist/esm/models/operations/deletestream.js.map +1 -1
- package/dist/esm/models/operations/getstreamconfig.d.ts +1 -2
- package/dist/esm/models/operations/getstreamconfig.d.ts.map +1 -1
- package/dist/esm/models/operations/getstreamconfig.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +4 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +4 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listbasins.d.ts +1 -1
- package/dist/esm/models/operations/read.d.ts +93 -0
- package/dist/esm/models/operations/read.d.ts.map +1 -0
- package/dist/esm/models/operations/read.js +96 -0
- package/dist/esm/models/operations/read.js.map +1 -0
- package/dist/esm/models/operations/reconfigurestream.d.ts +1 -2
- package/dist/esm/models/operations/reconfigurestream.d.ts.map +1 -1
- package/dist/esm/models/operations/reconfigurestream.js.map +1 -1
- package/dist/esm/models/operations/revokeaccesstoken.d.ts +1 -1
- package/dist/esm/sdk/basins.d.ts +4 -0
- package/dist/esm/sdk/basins.d.ts.map +1 -1
- package/dist/esm/sdk/basins.js +7 -0
- package/dist/esm/sdk/basins.js.map +1 -1
- package/dist/esm/sdk/records.d.ts +31 -0
- package/dist/esm/sdk/records.d.ts.map +1 -0
- package/dist/esm/sdk/records.js +39 -0
- package/dist/esm/sdk/records.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +4 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/streams.d.ts +4 -0
- package/dist/esm/sdk/streams.d.ts.map +1 -1
- package/dist/esm/sdk/streams.js +7 -0
- package/dist/esm/sdk/streams.js.map +1 -1
- package/docs/sdks/accesstokens/README.md +3 -3
- package/docs/sdks/basins/README.md +86 -7
- package/docs/sdks/records/README.md +271 -0
- package/docs/sdks/streams/README.md +87 -7
- package/jsr.json +2 -1
- package/package.json +1 -1
- package/src/funcs/accessTokensIssueAccessToken.ts +2 -2
- package/src/funcs/accessTokensListAccessTokens.ts +2 -2
- package/src/funcs/accessTokensRevokeAccessToken.ts +2 -2
- package/src/funcs/basinsCreateBasin.ts +179 -0
- package/src/funcs/basinsCreateOrReconfigureBasin.ts +3 -3
- package/src/funcs/basinsDeleteBasin.ts +17 -2
- package/src/funcs/basinsGetBasinConfig.ts +2 -2
- package/src/funcs/basinsListBasins.ts +2 -2
- package/src/funcs/basinsReconfigureBasin.ts +2 -2
- package/src/funcs/recordsAppend.ts +205 -0
- package/src/funcs/recordsCheckTail.ts +195 -0
- package/src/funcs/recordsRead.ts +219 -0
- package/src/funcs/streamsCreateOrReconfigureStream.ts +14 -3
- package/src/funcs/streamsCreateStream.ts +185 -0
- package/src/funcs/streamsDeleteStream.ts +6 -2
- package/src/funcs/streamsGetStreamConfig.ts +13 -2
- package/src/funcs/streamsListStreams.ts +2 -2
- package/src/funcs/streamsReconfigureStream.ts +13 -2
- package/src/lib/config.ts +3 -3
- package/src/lib/event-streams.ts +264 -0
- package/src/lib/matchers.ts +4 -1
- package/src/lib/sdks.ts +11 -11
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +11 -1
- package/src/mcp-server/tools/basinsCreateBasin.ts +36 -0
- package/src/mcp-server/tools/recordsAppend.ts +38 -0
- package/src/mcp-server/tools/recordsCheckTail.ts +38 -0
- package/src/mcp-server/tools/recordsRead.ts +38 -0
- package/src/mcp-server/tools/streamsCreateStream.ts +36 -0
- package/src/models/components/accesstokeninfo.ts +2 -2
- package/src/models/components/appendack.ts +88 -0
- package/src/models/components/appendinput.ts +99 -0
- package/src/models/components/appendrecord.ts +85 -0
- package/src/models/components/basinconfig.ts +8 -8
- package/src/models/components/createbasinrequest.ts +7 -0
- package/src/models/components/createorreconfigurebasinrequest.ts +138 -0
- package/src/models/components/createstreamrequest.ts +79 -0
- package/src/models/components/header.ts +75 -0
- package/src/models/components/index.ts +15 -0
- package/src/models/components/listaccesstokensresponse.ts +9 -7
- package/src/models/components/listbasinsresponse.ts +1 -1
- package/src/models/components/liststreamsresponse.ts +1 -1
- package/src/models/components/readbatch.ts +68 -0
- package/src/models/components/readevent.ts +243 -0
- package/src/models/components/s2format.ts +31 -0
- package/src/models/components/sequencedrecord.ts +100 -0
- package/src/models/components/streamconfig.ts +10 -26
- package/src/models/components/streaminfo.ts +2 -2
- package/src/models/components/streamposition.ts +87 -0
- package/src/models/components/streamreconfiguration.ts +12 -26
- package/src/models/components/tailresponse.ts +71 -0
- package/src/models/components/timestampingconfig.ts +81 -0
- package/src/models/components/timestampingmode.ts +34 -0
- package/src/models/components/timestampingreconfiguration.ts +80 -0
- package/src/models/errors/appendconditionfailed.ts +249 -0
- package/src/models/errors/index.ts +3 -0
- package/src/models/errors/notfounderror.ts +67 -0
- package/src/models/errors/tailresponse.ts +76 -0
- package/src/models/operations/append.ts +102 -0
- package/src/models/operations/checktail.ts +79 -0
- package/src/models/operations/createorreconfigurebasin.ts +23 -13
- package/src/models/operations/createorreconfigurestream.ts +5 -6
- package/src/models/operations/createstream.ts +10 -0
- package/src/models/operations/deletestream.ts +1 -2
- package/src/models/operations/getstreamconfig.ts +1 -2
- package/src/models/operations/index.ts +4 -0
- package/src/models/operations/listbasins.ts +1 -1
- package/src/models/operations/read.ts +195 -0
- package/src/models/operations/reconfigurestream.ts +1 -2
- package/src/models/operations/revokeaccesstoken.ts +1 -1
- package/src/sdk/basins.ts +15 -0
- package/src/sdk/records.ts +66 -0
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/streams.ts +15 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import * as components from "../components/index.js";
|
|
7
|
+
|
|
8
|
+
export type TailResponseData = {
|
|
9
|
+
/**
|
|
10
|
+
* Position of a record in a stream.
|
|
11
|
+
*/
|
|
12
|
+
tail: components.StreamPosition;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export class TailResponse extends Error {
|
|
16
|
+
/**
|
|
17
|
+
* Position of a record in a stream.
|
|
18
|
+
*/
|
|
19
|
+
tail: components.StreamPosition;
|
|
20
|
+
|
|
21
|
+
/** The original data that was passed to this error instance. */
|
|
22
|
+
data$: TailResponseData;
|
|
23
|
+
|
|
24
|
+
constructor(err: TailResponseData) {
|
|
25
|
+
const message = "message" in err && typeof err.message === "string"
|
|
26
|
+
? err.message
|
|
27
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
28
|
+
super(message);
|
|
29
|
+
this.data$ = err;
|
|
30
|
+
|
|
31
|
+
this.tail = err.tail;
|
|
32
|
+
|
|
33
|
+
this.name = "TailResponse";
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const TailResponse$inboundSchema: z.ZodType<
|
|
39
|
+
TailResponse,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
unknown
|
|
42
|
+
> = z.object({
|
|
43
|
+
tail: components.StreamPosition$inboundSchema,
|
|
44
|
+
})
|
|
45
|
+
.transform((v) => {
|
|
46
|
+
return new TailResponse(v);
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export type TailResponse$Outbound = {
|
|
51
|
+
tail: components.StreamPosition$Outbound;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export const TailResponse$outboundSchema: z.ZodType<
|
|
56
|
+
TailResponse$Outbound,
|
|
57
|
+
z.ZodTypeDef,
|
|
58
|
+
TailResponse
|
|
59
|
+
> = z.instanceof(TailResponse)
|
|
60
|
+
.transform(v => v.data$)
|
|
61
|
+
.pipe(z.object({
|
|
62
|
+
tail: components.StreamPosition$outboundSchema,
|
|
63
|
+
}));
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @internal
|
|
67
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
68
|
+
*/
|
|
69
|
+
export namespace TailResponse$ {
|
|
70
|
+
/** @deprecated use `TailResponse$inboundSchema` instead. */
|
|
71
|
+
export const inboundSchema = TailResponse$inboundSchema;
|
|
72
|
+
/** @deprecated use `TailResponse$outboundSchema` instead. */
|
|
73
|
+
export const outboundSchema = TailResponse$outboundSchema;
|
|
74
|
+
/** @deprecated use `TailResponse$Outbound` instead. */
|
|
75
|
+
export type Outbound = TailResponse$Outbound;
|
|
76
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as components from "../components/index.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export const AppendServerList = [
|
|
13
|
+
/**
|
|
14
|
+
* Endpoint for the basin
|
|
15
|
+
*/
|
|
16
|
+
"https://{basin}.b.aws.s2.dev/v1",
|
|
17
|
+
] as const;
|
|
18
|
+
|
|
19
|
+
export type AppendRequest = {
|
|
20
|
+
/**
|
|
21
|
+
* Stream name, which must be unique within the basin.
|
|
22
|
+
*
|
|
23
|
+
* @remarks
|
|
24
|
+
* It can be an arbitrary string up to 512 characters.
|
|
25
|
+
*/
|
|
26
|
+
stream: string;
|
|
27
|
+
/**
|
|
28
|
+
* Recognized when the Content-Type is `application/json`.
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
* json: UTF-8 data
|
|
32
|
+
* json-binsafe: Base64-encoded binary data
|
|
33
|
+
*/
|
|
34
|
+
s2Format?: components.S2Format | undefined;
|
|
35
|
+
appendInput: components.AppendInput;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const AppendRequest$inboundSchema: z.ZodType<
|
|
40
|
+
AppendRequest,
|
|
41
|
+
z.ZodTypeDef,
|
|
42
|
+
unknown
|
|
43
|
+
> = z.object({
|
|
44
|
+
stream: z.string(),
|
|
45
|
+
"s2-format": components.S2Format$inboundSchema.optional(),
|
|
46
|
+
AppendInput: components.AppendInput$inboundSchema,
|
|
47
|
+
}).transform((v) => {
|
|
48
|
+
return remap$(v, {
|
|
49
|
+
"s2-format": "s2Format",
|
|
50
|
+
"AppendInput": "appendInput",
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export type AppendRequest$Outbound = {
|
|
56
|
+
stream: string;
|
|
57
|
+
"s2-format"?: string | undefined;
|
|
58
|
+
AppendInput: components.AppendInput$Outbound;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
/** @internal */
|
|
62
|
+
export const AppendRequest$outboundSchema: z.ZodType<
|
|
63
|
+
AppendRequest$Outbound,
|
|
64
|
+
z.ZodTypeDef,
|
|
65
|
+
AppendRequest
|
|
66
|
+
> = z.object({
|
|
67
|
+
stream: z.string(),
|
|
68
|
+
s2Format: components.S2Format$outboundSchema.optional(),
|
|
69
|
+
appendInput: components.AppendInput$outboundSchema,
|
|
70
|
+
}).transform((v) => {
|
|
71
|
+
return remap$(v, {
|
|
72
|
+
s2Format: "s2-format",
|
|
73
|
+
appendInput: "AppendInput",
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* @internal
|
|
79
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
80
|
+
*/
|
|
81
|
+
export namespace AppendRequest$ {
|
|
82
|
+
/** @deprecated use `AppendRequest$inboundSchema` instead. */
|
|
83
|
+
export const inboundSchema = AppendRequest$inboundSchema;
|
|
84
|
+
/** @deprecated use `AppendRequest$outboundSchema` instead. */
|
|
85
|
+
export const outboundSchema = AppendRequest$outboundSchema;
|
|
86
|
+
/** @deprecated use `AppendRequest$Outbound` instead. */
|
|
87
|
+
export type Outbound = AppendRequest$Outbound;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function appendRequestToJSON(appendRequest: AppendRequest): string {
|
|
91
|
+
return JSON.stringify(AppendRequest$outboundSchema.parse(appendRequest));
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function appendRequestFromJSON(
|
|
95
|
+
jsonString: string,
|
|
96
|
+
): SafeParseResult<AppendRequest, SDKValidationError> {
|
|
97
|
+
return safeParse(
|
|
98
|
+
jsonString,
|
|
99
|
+
(x) => AppendRequest$inboundSchema.parse(JSON.parse(x)),
|
|
100
|
+
`Failed to parse 'AppendRequest' from JSON`,
|
|
101
|
+
);
|
|
102
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export const CheckTailServerList = [
|
|
11
|
+
/**
|
|
12
|
+
* Endpoint for the basin
|
|
13
|
+
*/
|
|
14
|
+
"https://{basin}.b.aws.s2.dev/v1",
|
|
15
|
+
] as const;
|
|
16
|
+
|
|
17
|
+
export type CheckTailRequest = {
|
|
18
|
+
/**
|
|
19
|
+
* Stream name, which must be unique within the basin.
|
|
20
|
+
*
|
|
21
|
+
* @remarks
|
|
22
|
+
* It can be an arbitrary string up to 512 characters.
|
|
23
|
+
*/
|
|
24
|
+
stream: string;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const CheckTailRequest$inboundSchema: z.ZodType<
|
|
29
|
+
CheckTailRequest,
|
|
30
|
+
z.ZodTypeDef,
|
|
31
|
+
unknown
|
|
32
|
+
> = z.object({
|
|
33
|
+
stream: z.string(),
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export type CheckTailRequest$Outbound = {
|
|
38
|
+
stream: string;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const CheckTailRequest$outboundSchema: z.ZodType<
|
|
43
|
+
CheckTailRequest$Outbound,
|
|
44
|
+
z.ZodTypeDef,
|
|
45
|
+
CheckTailRequest
|
|
46
|
+
> = z.object({
|
|
47
|
+
stream: z.string(),
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @internal
|
|
52
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
53
|
+
*/
|
|
54
|
+
export namespace CheckTailRequest$ {
|
|
55
|
+
/** @deprecated use `CheckTailRequest$inboundSchema` instead. */
|
|
56
|
+
export const inboundSchema = CheckTailRequest$inboundSchema;
|
|
57
|
+
/** @deprecated use `CheckTailRequest$outboundSchema` instead. */
|
|
58
|
+
export const outboundSchema = CheckTailRequest$outboundSchema;
|
|
59
|
+
/** @deprecated use `CheckTailRequest$Outbound` instead. */
|
|
60
|
+
export type Outbound = CheckTailRequest$Outbound;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function checkTailRequestToJSON(
|
|
64
|
+
checkTailRequest: CheckTailRequest,
|
|
65
|
+
): string {
|
|
66
|
+
return JSON.stringify(
|
|
67
|
+
CheckTailRequest$outboundSchema.parse(checkTailRequest),
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function checkTailRequestFromJSON(
|
|
72
|
+
jsonString: string,
|
|
73
|
+
): SafeParseResult<CheckTailRequest, SDKValidationError> {
|
|
74
|
+
return safeParse(
|
|
75
|
+
jsonString,
|
|
76
|
+
(x) => CheckTailRequest$inboundSchema.parse(JSON.parse(x)),
|
|
77
|
+
`Failed to parse 'CheckTailRequest' from JSON`,
|
|
78
|
+
);
|
|
79
|
+
}
|
|
@@ -10,6 +10,10 @@ import * as components from "../components/index.js";
|
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
12
|
export type CreateOrReconfigureBasinRequest = {
|
|
13
|
+
/**
|
|
14
|
+
* Provide a client request token header for idempotent retry behaviour.
|
|
15
|
+
*/
|
|
16
|
+
s2RequestToken?: string | undefined;
|
|
13
17
|
/**
|
|
14
18
|
* Basin name, which must be globally unique.
|
|
15
19
|
*
|
|
@@ -18,11 +22,10 @@ export type CreateOrReconfigureBasinRequest = {
|
|
|
18
22
|
* letters, numbers and hyphens. It cannot begin or end with a hyphen.
|
|
19
23
|
*/
|
|
20
24
|
basin: string;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
createBasinRequest: components.CreateBasinRequest;
|
|
25
|
+
createOrReconfigureBasinRequest?:
|
|
26
|
+
| components.CreateOrReconfigureBasinRequest
|
|
27
|
+
| null
|
|
28
|
+
| undefined;
|
|
26
29
|
};
|
|
27
30
|
|
|
28
31
|
/** @internal */
|
|
@@ -31,21 +34,26 @@ export const CreateOrReconfigureBasinRequest$inboundSchema: z.ZodType<
|
|
|
31
34
|
z.ZodTypeDef,
|
|
32
35
|
unknown
|
|
33
36
|
> = z.object({
|
|
34
|
-
basin: z.string(),
|
|
35
37
|
"s2-request-token": z.string().optional(),
|
|
36
|
-
|
|
38
|
+
basin: z.string(),
|
|
39
|
+
CreateOrReconfigureBasinRequest: z.nullable(
|
|
40
|
+
components.CreateOrReconfigureBasinRequest$inboundSchema,
|
|
41
|
+
).optional(),
|
|
37
42
|
}).transform((v) => {
|
|
38
43
|
return remap$(v, {
|
|
39
44
|
"s2-request-token": "s2RequestToken",
|
|
40
|
-
"
|
|
45
|
+
"CreateOrReconfigureBasinRequest": "createOrReconfigureBasinRequest",
|
|
41
46
|
});
|
|
42
47
|
});
|
|
43
48
|
|
|
44
49
|
/** @internal */
|
|
45
50
|
export type CreateOrReconfigureBasinRequest$Outbound = {
|
|
46
|
-
basin: string;
|
|
47
51
|
"s2-request-token"?: string | undefined;
|
|
48
|
-
|
|
52
|
+
basin: string;
|
|
53
|
+
CreateOrReconfigureBasinRequest?:
|
|
54
|
+
| components.CreateOrReconfigureBasinRequest$Outbound
|
|
55
|
+
| null
|
|
56
|
+
| undefined;
|
|
49
57
|
};
|
|
50
58
|
|
|
51
59
|
/** @internal */
|
|
@@ -54,13 +62,15 @@ export const CreateOrReconfigureBasinRequest$outboundSchema: z.ZodType<
|
|
|
54
62
|
z.ZodTypeDef,
|
|
55
63
|
CreateOrReconfigureBasinRequest
|
|
56
64
|
> = z.object({
|
|
57
|
-
basin: z.string(),
|
|
58
65
|
s2RequestToken: z.string().optional(),
|
|
59
|
-
|
|
66
|
+
basin: z.string(),
|
|
67
|
+
createOrReconfigureBasinRequest: z.nullable(
|
|
68
|
+
components.CreateOrReconfigureBasinRequest$outboundSchema,
|
|
69
|
+
).optional(),
|
|
60
70
|
}).transform((v) => {
|
|
61
71
|
return remap$(v, {
|
|
62
72
|
s2RequestToken: "s2-request-token",
|
|
63
|
-
|
|
73
|
+
createOrReconfigureBasinRequest: "CreateOrReconfigureBasinRequest",
|
|
64
74
|
});
|
|
65
75
|
});
|
|
66
76
|
|
|
@@ -21,15 +21,14 @@ export type CreateOrReconfigureStreamRequest = {
|
|
|
21
21
|
* Stream name, which must be unique within the basin.
|
|
22
22
|
*
|
|
23
23
|
* @remarks
|
|
24
|
-
* It can be an arbitrary string
|
|
25
|
-
* Backslash (`/`) is recommended as a delimiter for hierarchical naming.
|
|
24
|
+
* It can be an arbitrary string up to 512 characters.
|
|
26
25
|
*/
|
|
27
26
|
stream: string;
|
|
28
27
|
/**
|
|
29
28
|
* Provide a client request token header for idempotent retry behaviour.
|
|
30
29
|
*/
|
|
31
30
|
s2RequestToken?: string | undefined;
|
|
32
|
-
streamConfig
|
|
31
|
+
streamConfig?: components.StreamConfig | null | undefined;
|
|
33
32
|
};
|
|
34
33
|
|
|
35
34
|
/** @internal */
|
|
@@ -40,7 +39,7 @@ export const CreateOrReconfigureStreamRequest$inboundSchema: z.ZodType<
|
|
|
40
39
|
> = z.object({
|
|
41
40
|
stream: z.string(),
|
|
42
41
|
"s2-request-token": z.string().optional(),
|
|
43
|
-
StreamConfig: components.StreamConfig$inboundSchema,
|
|
42
|
+
StreamConfig: z.nullable(components.StreamConfig$inboundSchema).optional(),
|
|
44
43
|
}).transform((v) => {
|
|
45
44
|
return remap$(v, {
|
|
46
45
|
"s2-request-token": "s2RequestToken",
|
|
@@ -52,7 +51,7 @@ export const CreateOrReconfigureStreamRequest$inboundSchema: z.ZodType<
|
|
|
52
51
|
export type CreateOrReconfigureStreamRequest$Outbound = {
|
|
53
52
|
stream: string;
|
|
54
53
|
"s2-request-token"?: string | undefined;
|
|
55
|
-
StreamConfig
|
|
54
|
+
StreamConfig?: components.StreamConfig$Outbound | null | undefined;
|
|
56
55
|
};
|
|
57
56
|
|
|
58
57
|
/** @internal */
|
|
@@ -63,7 +62,7 @@ export const CreateOrReconfigureStreamRequest$outboundSchema: z.ZodType<
|
|
|
63
62
|
> = z.object({
|
|
64
63
|
stream: z.string(),
|
|
65
64
|
s2RequestToken: z.string().optional(),
|
|
66
|
-
streamConfig: components.StreamConfig$outboundSchema,
|
|
65
|
+
streamConfig: z.nullable(components.StreamConfig$outboundSchema).optional(),
|
|
67
66
|
}).transform((v) => {
|
|
68
67
|
return remap$(v, {
|
|
69
68
|
s2RequestToken: "s2-request-token",
|
|
@@ -19,8 +19,7 @@ export type DeleteStreamRequest = {
|
|
|
19
19
|
* Stream name, which must be unique within the basin.
|
|
20
20
|
*
|
|
21
21
|
* @remarks
|
|
22
|
-
* It can be an arbitrary string
|
|
23
|
-
* Backslash (`/`) is recommended as a delimiter for hierarchical naming.
|
|
22
|
+
* It can be an arbitrary string up to 512 characters.
|
|
24
23
|
*/
|
|
25
24
|
stream: string;
|
|
26
25
|
};
|
|
@@ -19,8 +19,7 @@ export type GetStreamConfigRequest = {
|
|
|
19
19
|
* Stream name, which must be unique within the basin.
|
|
20
20
|
*
|
|
21
21
|
* @remarks
|
|
22
|
-
* It can be an arbitrary string
|
|
23
|
-
* Backslash (`/`) is recommended as a delimiter for hierarchical naming.
|
|
22
|
+
* It can be an arbitrary string up to 512 characters.
|
|
24
23
|
*/
|
|
25
24
|
stream: string;
|
|
26
25
|
};
|
|
@@ -2,8 +2,11 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
export * from "./append.js";
|
|
6
|
+
export * from "./checktail.js";
|
|
5
7
|
export * from "./createorreconfigurebasin.js";
|
|
6
8
|
export * from "./createorreconfigurestream.js";
|
|
9
|
+
export * from "./createstream.js";
|
|
7
10
|
export * from "./deletebasin.js";
|
|
8
11
|
export * from "./deletestream.js";
|
|
9
12
|
export * from "./getbasinconfig.js";
|
|
@@ -11,6 +14,7 @@ export * from "./getstreamconfig.js";
|
|
|
11
14
|
export * from "./listaccesstokens.js";
|
|
12
15
|
export * from "./listbasins.js";
|
|
13
16
|
export * from "./liststreams.js";
|
|
17
|
+
export * from "./read.js";
|
|
14
18
|
export * from "./reconfigurebasin.js";
|
|
15
19
|
export * from "./reconfigurestream.js";
|
|
16
20
|
export * from "./revokeaccesstoken.js";
|
|
@@ -19,7 +19,7 @@ export type ListBasinsRequest = {
|
|
|
19
19
|
*
|
|
20
20
|
* @remarks
|
|
21
21
|
* This can be the last basin name seen in a previous listing, to continue from there.
|
|
22
|
-
* It must be greater than or equal to the prefix if specified.
|
|
22
|
+
* It must be greater than or equal to the `prefix` if that is specified.
|
|
23
23
|
*/
|
|
24
24
|
startAfter?: string | undefined;
|
|
25
25
|
/**
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { EventStream } from "../../lib/event-streams.js";
|
|
7
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
8
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import * as components from "../components/index.js";
|
|
11
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
|
+
|
|
13
|
+
export const ReadServerList = [
|
|
14
|
+
/**
|
|
15
|
+
* Endpoint for the basin
|
|
16
|
+
*/
|
|
17
|
+
"https://{basin}.b.aws.s2.dev/v1",
|
|
18
|
+
] as const;
|
|
19
|
+
|
|
20
|
+
export type ReadRequest = {
|
|
21
|
+
/**
|
|
22
|
+
* Stream name, which must be unique within the basin.
|
|
23
|
+
*
|
|
24
|
+
* @remarks
|
|
25
|
+
* It can be an arbitrary string up to 512 characters.
|
|
26
|
+
*/
|
|
27
|
+
stream: string;
|
|
28
|
+
/**
|
|
29
|
+
* Recognized when the Content-Type is `application/json`.
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* json: UTF-8 data
|
|
33
|
+
* json-binsafe: Base64-encoded binary data
|
|
34
|
+
*/
|
|
35
|
+
s2Format?: components.S2Format | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Start from a sequence number.
|
|
38
|
+
*/
|
|
39
|
+
seqNum?: number | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Start from a timestamp.
|
|
42
|
+
*/
|
|
43
|
+
timestamp?: number | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* Start from number of records before the tail, i.e. before the next sequence number.
|
|
46
|
+
*/
|
|
47
|
+
tailOffset?: number | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* Limit total records to return.
|
|
50
|
+
*/
|
|
51
|
+
count?: number | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* Limit total metered bytes to return.
|
|
54
|
+
*/
|
|
55
|
+
bytes?: number | undefined;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export type ReadResponse =
|
|
59
|
+
| components.ReadBatch
|
|
60
|
+
| EventStream<components.ReadEvent>;
|
|
61
|
+
|
|
62
|
+
/** @internal */
|
|
63
|
+
export const ReadRequest$inboundSchema: z.ZodType<
|
|
64
|
+
ReadRequest,
|
|
65
|
+
z.ZodTypeDef,
|
|
66
|
+
unknown
|
|
67
|
+
> = z.object({
|
|
68
|
+
stream: z.string(),
|
|
69
|
+
"s2-format": components.S2Format$inboundSchema.optional(),
|
|
70
|
+
seq_num: z.number().int().optional(),
|
|
71
|
+
timestamp: z.number().int().optional(),
|
|
72
|
+
tail_offset: z.number().int().optional(),
|
|
73
|
+
count: z.number().int().optional(),
|
|
74
|
+
bytes: z.number().int().optional(),
|
|
75
|
+
}).transform((v) => {
|
|
76
|
+
return remap$(v, {
|
|
77
|
+
"s2-format": "s2Format",
|
|
78
|
+
"seq_num": "seqNum",
|
|
79
|
+
"tail_offset": "tailOffset",
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
/** @internal */
|
|
84
|
+
export type ReadRequest$Outbound = {
|
|
85
|
+
stream: string;
|
|
86
|
+
"s2-format"?: string | undefined;
|
|
87
|
+
seq_num?: number | undefined;
|
|
88
|
+
timestamp?: number | undefined;
|
|
89
|
+
tail_offset?: number | undefined;
|
|
90
|
+
count?: number | undefined;
|
|
91
|
+
bytes?: number | undefined;
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
/** @internal */
|
|
95
|
+
export const ReadRequest$outboundSchema: z.ZodType<
|
|
96
|
+
ReadRequest$Outbound,
|
|
97
|
+
z.ZodTypeDef,
|
|
98
|
+
ReadRequest
|
|
99
|
+
> = z.object({
|
|
100
|
+
stream: z.string(),
|
|
101
|
+
s2Format: components.S2Format$outboundSchema.optional(),
|
|
102
|
+
seqNum: z.number().int().optional(),
|
|
103
|
+
timestamp: z.number().int().optional(),
|
|
104
|
+
tailOffset: z.number().int().optional(),
|
|
105
|
+
count: z.number().int().optional(),
|
|
106
|
+
bytes: z.number().int().optional(),
|
|
107
|
+
}).transform((v) => {
|
|
108
|
+
return remap$(v, {
|
|
109
|
+
s2Format: "s2-format",
|
|
110
|
+
seqNum: "seq_num",
|
|
111
|
+
tailOffset: "tail_offset",
|
|
112
|
+
});
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* @internal
|
|
117
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
118
|
+
*/
|
|
119
|
+
export namespace ReadRequest$ {
|
|
120
|
+
/** @deprecated use `ReadRequest$inboundSchema` instead. */
|
|
121
|
+
export const inboundSchema = ReadRequest$inboundSchema;
|
|
122
|
+
/** @deprecated use `ReadRequest$outboundSchema` instead. */
|
|
123
|
+
export const outboundSchema = ReadRequest$outboundSchema;
|
|
124
|
+
/** @deprecated use `ReadRequest$Outbound` instead. */
|
|
125
|
+
export type Outbound = ReadRequest$Outbound;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export function readRequestToJSON(readRequest: ReadRequest): string {
|
|
129
|
+
return JSON.stringify(ReadRequest$outboundSchema.parse(readRequest));
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export function readRequestFromJSON(
|
|
133
|
+
jsonString: string,
|
|
134
|
+
): SafeParseResult<ReadRequest, SDKValidationError> {
|
|
135
|
+
return safeParse(
|
|
136
|
+
jsonString,
|
|
137
|
+
(x) => ReadRequest$inboundSchema.parse(JSON.parse(x)),
|
|
138
|
+
`Failed to parse 'ReadRequest' from JSON`,
|
|
139
|
+
);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/** @internal */
|
|
143
|
+
export const ReadResponse$inboundSchema: z.ZodType<
|
|
144
|
+
ReadResponse,
|
|
145
|
+
z.ZodTypeDef,
|
|
146
|
+
unknown
|
|
147
|
+
> = z.union([
|
|
148
|
+
components.ReadBatch$inboundSchema,
|
|
149
|
+
z.instanceof(ReadableStream<Uint8Array>).transform(stream => {
|
|
150
|
+
return new EventStream({
|
|
151
|
+
stream,
|
|
152
|
+
decoder(rawEvent) {
|
|
153
|
+
const schema = components.ReadEvent$inboundSchema;
|
|
154
|
+
return schema.parse(rawEvent);
|
|
155
|
+
},
|
|
156
|
+
});
|
|
157
|
+
}),
|
|
158
|
+
]);
|
|
159
|
+
|
|
160
|
+
/** @internal */
|
|
161
|
+
export type ReadResponse$Outbound = components.ReadBatch$Outbound | never;
|
|
162
|
+
|
|
163
|
+
/** @internal */
|
|
164
|
+
export const ReadResponse$outboundSchema: z.ZodType<
|
|
165
|
+
ReadResponse$Outbound,
|
|
166
|
+
z.ZodTypeDef,
|
|
167
|
+
ReadResponse
|
|
168
|
+
> = z.union([components.ReadBatch$outboundSchema, z.never()]);
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* @internal
|
|
172
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
173
|
+
*/
|
|
174
|
+
export namespace ReadResponse$ {
|
|
175
|
+
/** @deprecated use `ReadResponse$inboundSchema` instead. */
|
|
176
|
+
export const inboundSchema = ReadResponse$inboundSchema;
|
|
177
|
+
/** @deprecated use `ReadResponse$outboundSchema` instead. */
|
|
178
|
+
export const outboundSchema = ReadResponse$outboundSchema;
|
|
179
|
+
/** @deprecated use `ReadResponse$Outbound` instead. */
|
|
180
|
+
export type Outbound = ReadResponse$Outbound;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export function readResponseToJSON(readResponse: ReadResponse): string {
|
|
184
|
+
return JSON.stringify(ReadResponse$outboundSchema.parse(readResponse));
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export function readResponseFromJSON(
|
|
188
|
+
jsonString: string,
|
|
189
|
+
): SafeParseResult<ReadResponse, SDKValidationError> {
|
|
190
|
+
return safeParse(
|
|
191
|
+
jsonString,
|
|
192
|
+
(x) => ReadResponse$inboundSchema.parse(JSON.parse(x)),
|
|
193
|
+
`Failed to parse 'ReadResponse' from JSON`,
|
|
194
|
+
);
|
|
195
|
+
}
|
|
@@ -21,8 +21,7 @@ export type ReconfigureStreamRequest = {
|
|
|
21
21
|
* Stream name, which must be unique within the basin.
|
|
22
22
|
*
|
|
23
23
|
* @remarks
|
|
24
|
-
* It can be an arbitrary string
|
|
25
|
-
* Backslash (`/`) is recommended as a delimiter for hierarchical naming.
|
|
24
|
+
* It can be an arbitrary string up to 512 characters.
|
|
26
25
|
*/
|
|
27
26
|
stream: string;
|
|
28
27
|
streamReconfiguration: components.StreamReconfiguration;
|
package/src/sdk/basins.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
import { basinsCreateBasin } from "../funcs/basinsCreateBasin.js";
|
|
5
6
|
import { basinsCreateOrReconfigureBasin } from "../funcs/basinsCreateOrReconfigureBasin.js";
|
|
6
7
|
import { basinsDeleteBasin } from "../funcs/basinsDeleteBasin.js";
|
|
7
8
|
import { basinsGetBasinConfig } from "../funcs/basinsGetBasinConfig.js";
|
|
@@ -28,6 +29,20 @@ export class Basins extends ClientSDK {
|
|
|
28
29
|
));
|
|
29
30
|
}
|
|
30
31
|
|
|
32
|
+
/**
|
|
33
|
+
* Create a basin.
|
|
34
|
+
*/
|
|
35
|
+
async createBasin(
|
|
36
|
+
request: components.CreateBasinRequest,
|
|
37
|
+
options?: RequestOptions,
|
|
38
|
+
): Promise<components.BasinInfo> {
|
|
39
|
+
return unwrapAsync(basinsCreateBasin(
|
|
40
|
+
this,
|
|
41
|
+
request,
|
|
42
|
+
options,
|
|
43
|
+
));
|
|
44
|
+
}
|
|
45
|
+
|
|
31
46
|
/**
|
|
32
47
|
* Get basin config.
|
|
33
48
|
*/
|