@s2-dev/streamstore 0.2.5
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/.devcontainer/README.md +35 -0
- package/.devcontainer/devcontainer.json +45 -0
- package/FUNCTIONS.md +106 -0
- package/README.md +559 -0
- package/RUNTIMES.md +48 -0
- package/core.d.ts +10 -0
- package/core.d.ts.map +1 -0
- package/core.js +17 -0
- package/core.js.map +1 -0
- package/docs/sdks/account/README.md +406 -0
- package/docs/sdks/basin/README.md +415 -0
- package/docs/sdks/s2/README.md +7 -0
- package/docs/sdks/stream/README.md +267 -0
- package/funcs/accountCreateBasin.d.ts +14 -0
- package/funcs/accountCreateBasin.d.ts.map +1 -0
- package/funcs/accountCreateBasin.js +118 -0
- package/funcs/accountCreateBasin.js.map +1 -0
- package/funcs/accountDeleteBasin.d.ts +13 -0
- package/funcs/accountDeleteBasin.d.ts.map +1 -0
- package/funcs/accountDeleteBasin.js +114 -0
- package/funcs/accountDeleteBasin.js.map +1 -0
- package/funcs/accountGetBasinConfig.d.ts +14 -0
- package/funcs/accountGetBasinConfig.d.ts.map +1 -0
- package/funcs/accountGetBasinConfig.js +114 -0
- package/funcs/accountGetBasinConfig.js.map +1 -0
- package/funcs/accountListBasins.d.ts +16 -0
- package/funcs/accountListBasins.d.ts.map +1 -0
- package/funcs/accountListBasins.js +130 -0
- package/funcs/accountListBasins.js.map +1 -0
- package/funcs/accountReconfigureBasin.d.ts +14 -0
- package/funcs/accountReconfigureBasin.d.ts.map +1 -0
- package/funcs/accountReconfigureBasin.js +115 -0
- package/funcs/accountReconfigureBasin.js.map +1 -0
- package/funcs/basinCreateStream.d.ts +14 -0
- package/funcs/basinCreateStream.d.ts.map +1 -0
- package/funcs/basinCreateStream.js +123 -0
- package/funcs/basinCreateStream.js.map +1 -0
- package/funcs/basinDeleteStream.d.ts +13 -0
- package/funcs/basinDeleteStream.d.ts.map +1 -0
- package/funcs/basinDeleteStream.js +119 -0
- package/funcs/basinDeleteStream.js.map +1 -0
- package/funcs/basinGetStreamConfig.d.ts +14 -0
- package/funcs/basinGetStreamConfig.d.ts.map +1 -0
- package/funcs/basinGetStreamConfig.js +119 -0
- package/funcs/basinGetStreamConfig.js.map +1 -0
- package/funcs/basinListStreams.d.ts +16 -0
- package/funcs/basinListStreams.d.ts.map +1 -0
- package/funcs/basinListStreams.js +137 -0
- package/funcs/basinListStreams.js.map +1 -0
- package/funcs/basinReconfigureStream.d.ts +14 -0
- package/funcs/basinReconfigureStream.d.ts.map +1 -0
- package/funcs/basinReconfigureStream.js +120 -0
- package/funcs/basinReconfigureStream.js.map +1 -0
- package/funcs/streamAppend.d.ts +14 -0
- package/funcs/streamAppend.d.ts.map +1 -0
- package/funcs/streamAppend.js +124 -0
- package/funcs/streamAppend.js.map +1 -0
- package/funcs/streamCheckTail.d.ts +14 -0
- package/funcs/streamCheckTail.d.ts.map +1 -0
- package/funcs/streamCheckTail.js +119 -0
- package/funcs/streamCheckTail.js.map +1 -0
- package/funcs/streamRead.d.ts +19 -0
- package/funcs/streamRead.d.ts.map +1 -0
- package/funcs/streamRead.js +134 -0
- package/funcs/streamRead.js.map +1 -0
- package/hooks/hooks.d.ts +24 -0
- package/hooks/hooks.d.ts.map +1 -0
- package/hooks/hooks.js +86 -0
- package/hooks/hooks.js.map +1 -0
- package/hooks/index.d.ts +3 -0
- package/hooks/index.d.ts.map +1 -0
- package/hooks/index.js +22 -0
- package/hooks/index.js.map +1 -0
- package/hooks/registration.d.ts +3 -0
- package/hooks/registration.d.ts.map +1 -0
- package/hooks/registration.js +15 -0
- package/hooks/registration.js.map +1 -0
- package/hooks/types.d.ts +77 -0
- package/hooks/types.d.ts.map +1 -0
- package/hooks/types.js +6 -0
- package/hooks/types.js.map +1 -0
- package/index.d.ts +4 -0
- package/index.d.ts.map +1 -0
- package/index.js +46 -0
- package/index.js.map +1 -0
- package/jsr.json +28 -0
- package/lib/base64.d.ts +10 -0
- package/lib/base64.d.ts.map +1 -0
- package/lib/base64.js +71 -0
- package/lib/base64.js.map +1 -0
- package/lib/config.d.ts +34 -0
- package/lib/config.d.ts.map +1 -0
- package/lib/config.js +35 -0
- package/lib/config.js.map +1 -0
- package/lib/dlv.d.ts +14 -0
- package/lib/dlv.d.ts.map +1 -0
- package/lib/dlv.js +49 -0
- package/lib/dlv.js.map +1 -0
- package/lib/encodings.d.ts +52 -0
- package/lib/encodings.d.ts.map +1 -0
- package/lib/encodings.js +368 -0
- package/lib/encodings.js.map +1 -0
- package/lib/env.d.ts +15 -0
- package/lib/env.d.ts.map +1 -0
- package/lib/env.js +65 -0
- package/lib/env.js.map +1 -0
- package/lib/event-streams.d.ts +17 -0
- package/lib/event-streams.d.ts.map +1 -0
- package/lib/event-streams.js +220 -0
- package/lib/event-streams.js.map +1 -0
- package/lib/files.d.ts +8 -0
- package/lib/files.d.ts.map +1 -0
- package/lib/files.js +36 -0
- package/lib/files.js.map +1 -0
- package/lib/http.d.ts +67 -0
- package/lib/http.d.ts.map +1 -0
- package/lib/http.js +217 -0
- package/lib/http.js.map +1 -0
- package/lib/is-plain-object.d.ts +2 -0
- package/lib/is-plain-object.d.ts.map +1 -0
- package/lib/is-plain-object.js +41 -0
- package/lib/is-plain-object.js.map +1 -0
- package/lib/logger.d.ts +6 -0
- package/lib/logger.d.ts.map +1 -0
- package/lib/logger.js +6 -0
- package/lib/logger.js.map +1 -0
- package/lib/matchers.d.ts +64 -0
- package/lib/matchers.d.ts.map +1 -0
- package/lib/matchers.js +207 -0
- package/lib/matchers.js.map +1 -0
- package/lib/primitives.d.ts +23 -0
- package/lib/primitives.d.ts.map +1 -0
- package/lib/primitives.js +104 -0
- package/lib/primitives.js.map +1 -0
- package/lib/retries.d.ts +38 -0
- package/lib/retries.d.ts.map +1 -0
- package/lib/retries.js +154 -0
- package/lib/retries.js.map +1 -0
- package/lib/schemas.d.ts +19 -0
- package/lib/schemas.d.ts.map +1 -0
- package/lib/schemas.js +62 -0
- package/lib/schemas.js.map +1 -0
- package/lib/sdks.d.ts +60 -0
- package/lib/sdks.d.ts.map +1 -0
- package/lib/sdks.js +280 -0
- package/lib/sdks.js.map +1 -0
- package/lib/security.d.ts +82 -0
- package/lib/security.d.ts.map +1 -0
- package/lib/security.js +139 -0
- package/lib/security.js.map +1 -0
- package/lib/url.d.ts +5 -0
- package/lib/url.d.ts.map +1 -0
- package/lib/url.js +25 -0
- package/lib/url.js.map +1 -0
- package/models/components/appendinput.d.ts +49 -0
- package/models/components/appendinput.d.ts.map +1 -0
- package/models/components/appendinput.js +85 -0
- package/models/components/appendinput.js.map +1 -0
- package/models/components/appendoutput.d.ts +51 -0
- package/models/components/appendoutput.d.ts.map +1 -0
- package/models/components/appendoutput.js +86 -0
- package/models/components/appendoutput.js.map +1 -0
- package/models/components/appendrecord.d.ts +40 -0
- package/models/components/appendrecord.d.ts.map +1 -0
- package/models/components/appendrecord.js +71 -0
- package/models/components/appendrecord.js.map +1 -0
- package/models/components/assignment.d.ts +90 -0
- package/models/components/assignment.d.ts.map +1 -0
- package/models/components/assignment.js +127 -0
- package/models/components/assignment.js.map +1 -0
- package/models/components/basinconfig.d.ts +33 -0
- package/models/components/basinconfig.d.ts.map +1 -0
- package/models/components/basinconfig.js +79 -0
- package/models/components/basinconfig.js.map +1 -0
- package/models/components/basininfo.d.ts +51 -0
- package/models/components/basininfo.d.ts.map +1 -0
- package/models/components/basininfo.js +76 -0
- package/models/components/basininfo.js.map +1 -0
- package/models/components/basinstate.d.ts +40 -0
- package/models/components/basinstate.d.ts.map +1 -0
- package/models/components/basinstate.js +66 -0
- package/models/components/basinstate.js.map +1 -0
- package/models/components/checktailresponse.d.ts +35 -0
- package/models/components/checktailresponse.d.ts.map +1 -0
- package/models/components/checktailresponse.js +78 -0
- package/models/components/checktailresponse.js.map +1 -0
- package/models/components/createbasinrequest.d.ts +36 -0
- package/models/components/createbasinrequest.d.ts.map +1 -0
- package/models/components/createbasinrequest.js +73 -0
- package/models/components/createbasinrequest.js.map +1 -0
- package/models/components/createstreamrequest.d.ts +33 -0
- package/models/components/createstreamrequest.d.ts.map +1 -0
- package/models/components/createstreamrequest.js +70 -0
- package/models/components/createstreamrequest.js.map +1 -0
- package/models/components/header.d.ts +43 -0
- package/models/components/header.d.ts.map +1 -0
- package/models/components/header.js +72 -0
- package/models/components/header.js.map +1 -0
- package/models/components/index.d.ts +23 -0
- package/models/components/index.d.ts.map +1 -0
- package/models/components/index.js +42 -0
- package/models/components/index.js.map +1 -0
- package/models/components/listbasinsresponse.d.ts +41 -0
- package/models/components/listbasinsresponse.d.ts.map +1 -0
- package/models/components/listbasinsresponse.js +81 -0
- package/models/components/listbasinsresponse.js.map +1 -0
- package/models/components/liststreamsresponse.d.ts +41 -0
- package/models/components/liststreamsresponse.d.ts.map +1 -0
- package/models/components/liststreamsresponse.js +81 -0
- package/models/components/liststreamsresponse.js.map +1 -0
- package/models/components/output.d.ts +140 -0
- package/models/components/output.d.ts.map +1 -0
- package/models/components/output.js +174 -0
- package/models/components/output.js.map +1 -0
- package/models/components/readresponse.d.ts +83 -0
- package/models/components/readresponse.d.ts.map +1 -0
- package/models/components/readresponse.js +141 -0
- package/models/components/readresponse.js.map +1 -0
- package/models/components/retentionpolicy.d.ts +68 -0
- package/models/components/retentionpolicy.d.ts.map +1 -0
- package/models/components/retentionpolicy.js +94 -0
- package/models/components/retentionpolicy.js.map +1 -0
- package/models/components/security.d.ts +29 -0
- package/models/components/security.d.ts.map +1 -0
- package/models/components/security.js +69 -0
- package/models/components/security.js.map +1 -0
- package/models/components/sequencedrecord.d.ts +46 -0
- package/models/components/sequencedrecord.d.ts.map +1 -0
- package/models/components/sequencedrecord.js +83 -0
- package/models/components/sequencedrecord.js.map +1 -0
- package/models/components/sequencedrecordbatch.d.ts +36 -0
- package/models/components/sequencedrecordbatch.d.ts.map +1 -0
- package/models/components/sequencedrecordbatch.js +70 -0
- package/models/components/sequencedrecordbatch.js.map +1 -0
- package/models/components/storageclass.d.ts +37 -0
- package/models/components/storageclass.d.ts.map +1 -0
- package/models/components/storageclass.js +64 -0
- package/models/components/storageclass.js.map +1 -0
- package/models/components/streamconfig.d.ts +39 -0
- package/models/components/streamconfig.d.ts.map +1 -0
- package/models/components/streamconfig.js +84 -0
- package/models/components/streamconfig.js.map +1 -0
- package/models/components/streaminfo.d.ts +45 -0
- package/models/components/streaminfo.d.ts.map +1 -0
- package/models/components/streaminfo.js +84 -0
- package/models/components/streaminfo.js.map +1 -0
- package/models/errors/apierror.d.ts +8 -0
- package/models/errors/apierror.d.ts.map +1 -0
- package/models/errors/apierror.js +21 -0
- package/models/errors/apierror.js.map +1 -0
- package/models/errors/errorresponse.d.ts +31 -0
- package/models/errors/errorresponse.d.ts.map +1 -0
- package/models/errors/errorresponse.js +77 -0
- package/models/errors/errorresponse.js.map +1 -0
- package/models/errors/httpclienterrors.d.ts +44 -0
- package/models/errors/httpclienterrors.d.ts.map +1 -0
- package/models/errors/httpclienterrors.js +78 -0
- package/models/errors/httpclienterrors.js.map +1 -0
- package/models/errors/index.d.ts +5 -0
- package/models/errors/index.d.ts.map +1 -0
- package/models/errors/index.js +24 -0
- package/models/errors/index.js.map +1 -0
- package/models/errors/sdkvalidationerror.d.ts +20 -0
- package/models/errors/sdkvalidationerror.d.ts.map +1 -0
- package/models/errors/sdkvalidationerror.js +115 -0
- package/models/errors/sdkvalidationerror.js.map +1 -0
- package/models/operations/append.d.ts +97 -0
- package/models/operations/append.d.ts.map +1 -0
- package/models/operations/append.js +134 -0
- package/models/operations/append.js.map +1 -0
- package/models/operations/checktail.d.ts +33 -0
- package/models/operations/checktail.d.ts.map +1 -0
- package/models/operations/checktail.js +75 -0
- package/models/operations/checktail.js.map +1 -0
- package/models/operations/createbasin.d.ts +37 -0
- package/models/operations/createbasin.d.ts.map +1 -0
- package/models/operations/createbasin.js +85 -0
- package/models/operations/createbasin.js.map +1 -0
- package/models/operations/createstream.d.ts +38 -0
- package/models/operations/createstream.d.ts.map +1 -0
- package/models/operations/createstream.js +91 -0
- package/models/operations/createstream.js.map +1 -0
- package/models/operations/deletebasin.d.ts +32 -0
- package/models/operations/deletebasin.d.ts.map +1 -0
- package/models/operations/deletebasin.js +69 -0
- package/models/operations/deletebasin.js.map +1 -0
- package/models/operations/deletestream.d.ts +33 -0
- package/models/operations/deletestream.d.ts.map +1 -0
- package/models/operations/deletestream.js +75 -0
- package/models/operations/deletestream.js.map +1 -0
- package/models/operations/getbasinconfig.d.ts +32 -0
- package/models/operations/getbasinconfig.d.ts.map +1 -0
- package/models/operations/getbasinconfig.js +69 -0
- package/models/operations/getbasinconfig.js.map +1 -0
- package/models/operations/getstreamconfig.d.ts +33 -0
- package/models/operations/getstreamconfig.d.ts.map +1 -0
- package/models/operations/getstreamconfig.js +75 -0
- package/models/operations/getstreamconfig.js.map +1 -0
- package/models/operations/index.d.ts +14 -0
- package/models/operations/index.d.ts.map +1 -0
- package/models/operations/index.js +33 -0
- package/models/operations/index.js.map +1 -0
- package/models/operations/listbasins.d.ts +72 -0
- package/models/operations/listbasins.d.ts.map +1 -0
- package/models/operations/listbasins.js +118 -0
- package/models/operations/listbasins.js.map +1 -0
- package/models/operations/liststreams.d.ts +73 -0
- package/models/operations/liststreams.d.ts.map +1 -0
- package/models/operations/liststreams.js +124 -0
- package/models/operations/liststreams.js.map +1 -0
- package/models/operations/read.d.ts +163 -0
- package/models/operations/read.d.ts.map +1 -0
- package/models/operations/read.js +200 -0
- package/models/operations/read.js.map +1 -0
- package/models/operations/reconfigurebasin.d.ts +35 -0
- package/models/operations/reconfigurebasin.d.ts.map +1 -0
- package/models/operations/reconfigurebasin.js +81 -0
- package/models/operations/reconfigurebasin.js.map +1 -0
- package/models/operations/reconfigurestream.d.ts +36 -0
- package/models/operations/reconfigurestream.d.ts.map +1 -0
- package/models/operations/reconfigurestream.js +87 -0
- package/models/operations/reconfigurestream.js.map +1 -0
- package/package.json +32 -0
- package/sdk/account.d.ts +29 -0
- package/sdk/account.d.ts.map +1 -0
- package/sdk/account.js +48 -0
- package/sdk/account.js.map +1 -0
- package/sdk/basin.d.ts +29 -0
- package/sdk/basin.d.ts.map +1 -0
- package/sdk/basin.js +48 -0
- package/sdk/basin.js.map +1 -0
- package/sdk/index.d.ts +2 -0
- package/sdk/index.d.ts.map +1 -0
- package/sdk/index.js +21 -0
- package/sdk/index.js.map +1 -0
- package/sdk/sdk.d.ts +13 -0
- package/sdk/sdk.d.ts.map +1 -0
- package/sdk/sdk.js +23 -0
- package/sdk/sdk.js.map +1 -0
- package/sdk/stream.d.ts +22 -0
- package/sdk/stream.d.ts.map +1 -0
- package/sdk/stream.js +35 -0
- package/sdk/stream.js.map +1 -0
- package/src/core.ts +13 -0
- package/src/funcs/accountCreateBasin.ts +149 -0
- package/src/funcs/accountDeleteBasin.ts +141 -0
- package/src/funcs/accountGetBasinConfig.ts +141 -0
- package/src/funcs/accountListBasins.ts +188 -0
- package/src/funcs/accountReconfigureBasin.ts +142 -0
- package/src/funcs/basinCreateStream.ts +155 -0
- package/src/funcs/basinDeleteStream.ts +147 -0
- package/src/funcs/basinGetStreamConfig.ts +147 -0
- package/src/funcs/basinListStreams.ts +196 -0
- package/src/funcs/basinReconfigureStream.ts +148 -0
- package/src/funcs/streamAppend.ts +152 -0
- package/src/funcs/streamCheckTail.ts +147 -0
- package/src/funcs/streamRead.ts +163 -0
- package/src/hooks/hooks.ts +132 -0
- package/src/hooks/index.ts +6 -0
- package/src/hooks/registration.ts +14 -0
- package/src/hooks/types.ts +109 -0
- package/src/index.ts +7 -0
- package/src/lib/base64.ts +37 -0
- package/src/lib/config.ts +60 -0
- package/src/lib/dlv.ts +53 -0
- package/src/lib/encodings.ts +483 -0
- package/src/lib/env.ts +41 -0
- package/src/lib/event-streams.ts +264 -0
- package/src/lib/files.ts +40 -0
- package/src/lib/http.ts +323 -0
- package/src/lib/is-plain-object.ts +43 -0
- package/src/lib/logger.ts +9 -0
- package/src/lib/matchers.ts +325 -0
- package/src/lib/primitives.ts +136 -0
- package/src/lib/retries.ts +219 -0
- package/src/lib/schemas.ts +91 -0
- package/src/lib/sdks.ts +400 -0
- package/src/lib/security.ts +254 -0
- package/src/lib/url.ts +33 -0
- package/src/models/components/appendinput.ts +102 -0
- package/src/models/components/appendoutput.ts +101 -0
- package/src/models/components/appendrecord.ts +75 -0
- package/src/models/components/assignment.ts +177 -0
- package/src/models/components/basinconfig.ts +80 -0
- package/src/models/components/basininfo.ts +94 -0
- package/src/models/components/basinstate.ts +39 -0
- package/src/models/components/checktailresponse.ts +81 -0
- package/src/models/components/createbasinrequest.ts +85 -0
- package/src/models/components/createstreamrequest.ts +75 -0
- package/src/models/components/header.ts +75 -0
- package/src/models/components/index.ts +26 -0
- package/src/models/components/listbasinsresponse.ts +94 -0
- package/src/models/components/liststreamsresponse.ts +94 -0
- package/src/models/components/output.ts +277 -0
- package/src/models/components/readresponse.ts +197 -0
- package/src/models/components/retentionpolicy.ts +122 -0
- package/src/models/components/security.ts +62 -0
- package/src/models/components/sequencedrecord.ts +99 -0
- package/src/models/components/sequencedrecordbatch.ts +78 -0
- package/src/models/components/storageclass.ts +38 -0
- package/src/models/components/streamconfig.ts +94 -0
- package/src/models/components/streaminfo.ts +93 -0
- package/src/models/errors/apierror.ts +27 -0
- package/src/models/errors/errorresponse.ts +69 -0
- package/src/models/errors/httpclienterrors.ts +62 -0
- package/src/models/errors/index.ts +8 -0
- package/src/models/errors/sdkvalidationerror.ts +97 -0
- package/src/models/operations/append.ts +176 -0
- package/src/models/operations/checktail.ts +76 -0
- package/src/models/operations/createbasin.ts +89 -0
- package/src/models/operations/createstream.ts +96 -0
- package/src/models/operations/deletebasin.ts +69 -0
- package/src/models/operations/deletestream.ts +76 -0
- package/src/models/operations/getbasinconfig.ts +69 -0
- package/src/models/operations/getstreamconfig.ts +76 -0
- package/src/models/operations/index.ts +17 -0
- package/src/models/operations/listbasins.ts +163 -0
- package/src/models/operations/liststreams.ts +170 -0
- package/src/models/operations/read.ts +309 -0
- package/src/models/operations/reconfigurebasin.ts +83 -0
- package/src/models/operations/reconfigurestream.ts +90 -0
- package/src/sdk/account.ts +86 -0
- package/src/sdk/basin.ts +86 -0
- package/src/sdk/index.ts +5 -0
- package/src/sdk/sdk.ts +25 -0
- package/src/sdk/stream.ts +57 -0
- package/src/types/blobs.ts +31 -0
- package/src/types/constdatetime.ts +15 -0
- package/src/types/enums.ts +16 -0
- package/src/types/fp.ts +50 -0
- package/src/types/index.ts +11 -0
- package/src/types/operations.ts +105 -0
- package/src/types/rfcdate.ts +54 -0
- package/src/types/streams.ts +21 -0
- package/tsconfig.json +41 -0
- package/types/blobs.d.ts +4 -0
- package/types/blobs.d.ts.map +1 -0
- package/types/blobs.js +62 -0
- package/types/blobs.js.map +1 -0
- package/types/constdatetime.d.ts +3 -0
- package/types/constdatetime.d.ts.map +1 -0
- package/types/constdatetime.js +46 -0
- package/types/constdatetime.js.map +1 -0
- package/types/enums.d.ts +12 -0
- package/types/enums.d.ts.map +1 -0
- package/types/enums.js +10 -0
- package/types/enums.js.map +1 -0
- package/types/fp.d.ts +31 -0
- package/types/fp.d.ts.map +1 -0
- package/types/fp.js +37 -0
- package/types/fp.js.map +1 -0
- package/types/index.d.ts +8 -0
- package/types/index.d.ts.map +1 -0
- package/types/index.js +16 -0
- package/types/index.js.map +1 -0
- package/types/operations.d.ts +27 -0
- package/types/operations.d.ts.map +1 -0
- package/types/operations.js +83 -0
- package/types/operations.js.map +1 -0
- package/types/rfcdate.d.ts +21 -0
- package/types/rfcdate.d.ts.map +1 -0
- package/types/rfcdate.js +46 -0
- package/types/rfcdate.js.map +1 -0
- package/types/streams.d.ts +2 -0
- package/types/streams.d.ts.map +1 -0
- package/types/streams.js +18 -0
- package/types/streams.js.map +1 -0
|
@@ -0,0 +1,309 @@
|
|
|
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 { ClosedEnum } from "../../types/enums.js";
|
|
10
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
11
|
+
import * as components from "../components/index.js";
|
|
12
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
13
|
+
|
|
14
|
+
export const ReadServerList = [
|
|
15
|
+
/**
|
|
16
|
+
* Endpoint for the basin
|
|
17
|
+
*/
|
|
18
|
+
"https://{basin}.b.aws.s2.dev/v1alpha",
|
|
19
|
+
] as const;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Limit on how many records can be returned upto a maximum of 1000, or 1MiB of metered bytes.
|
|
23
|
+
*/
|
|
24
|
+
export type Limit = {
|
|
25
|
+
/**
|
|
26
|
+
* Metered bytes limit.
|
|
27
|
+
*/
|
|
28
|
+
bytes?: number | null | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Record count limit.
|
|
31
|
+
*/
|
|
32
|
+
count?: number | null | undefined;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export const One = {
|
|
36
|
+
Json: "json",
|
|
37
|
+
JsonBinsafe: "json-binsafe",
|
|
38
|
+
} as const;
|
|
39
|
+
export type One = ClosedEnum<typeof One>;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* json: utf-8 plaintext data.
|
|
43
|
+
*
|
|
44
|
+
* @remarks
|
|
45
|
+
* json-binsafe: base64 encoded binary data.
|
|
46
|
+
*/
|
|
47
|
+
export type S2Format = One;
|
|
48
|
+
|
|
49
|
+
export type ReadRequest = {
|
|
50
|
+
/**
|
|
51
|
+
* Starting sequence number (inclusive).
|
|
52
|
+
*/
|
|
53
|
+
startSeqNum?: number | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* Limit on how many records can be returned upto a maximum of 1000, or 1MiB of metered bytes.
|
|
56
|
+
*/
|
|
57
|
+
limit?: Limit | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* json: utf-8 plaintext data.
|
|
60
|
+
*
|
|
61
|
+
* @remarks
|
|
62
|
+
* json-binsafe: base64 encoded binary data.
|
|
63
|
+
*/
|
|
64
|
+
s2Format?: One | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* Name of the stream.
|
|
67
|
+
*/
|
|
68
|
+
stream: string;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
export type ReadResponse =
|
|
72
|
+
| components.Output
|
|
73
|
+
| EventStream<components.ReadResponse>;
|
|
74
|
+
|
|
75
|
+
/** @internal */
|
|
76
|
+
export const Limit$inboundSchema: z.ZodType<Limit, z.ZodTypeDef, unknown> = z
|
|
77
|
+
.object({
|
|
78
|
+
bytes: z.nullable(z.number().int()).optional(),
|
|
79
|
+
count: z.nullable(z.number().int()).optional(),
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
/** @internal */
|
|
83
|
+
export type Limit$Outbound = {
|
|
84
|
+
bytes?: number | null | undefined;
|
|
85
|
+
count?: number | null | undefined;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
/** @internal */
|
|
89
|
+
export const Limit$outboundSchema: z.ZodType<
|
|
90
|
+
Limit$Outbound,
|
|
91
|
+
z.ZodTypeDef,
|
|
92
|
+
Limit
|
|
93
|
+
> = z.object({
|
|
94
|
+
bytes: z.nullable(z.number().int()).optional(),
|
|
95
|
+
count: z.nullable(z.number().int()).optional(),
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* @internal
|
|
100
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
101
|
+
*/
|
|
102
|
+
export namespace Limit$ {
|
|
103
|
+
/** @deprecated use `Limit$inboundSchema` instead. */
|
|
104
|
+
export const inboundSchema = Limit$inboundSchema;
|
|
105
|
+
/** @deprecated use `Limit$outboundSchema` instead. */
|
|
106
|
+
export const outboundSchema = Limit$outboundSchema;
|
|
107
|
+
/** @deprecated use `Limit$Outbound` instead. */
|
|
108
|
+
export type Outbound = Limit$Outbound;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function limitToJSON(limit: Limit): string {
|
|
112
|
+
return JSON.stringify(Limit$outboundSchema.parse(limit));
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function limitFromJSON(
|
|
116
|
+
jsonString: string,
|
|
117
|
+
): SafeParseResult<Limit, SDKValidationError> {
|
|
118
|
+
return safeParse(
|
|
119
|
+
jsonString,
|
|
120
|
+
(x) => Limit$inboundSchema.parse(JSON.parse(x)),
|
|
121
|
+
`Failed to parse 'Limit' from JSON`,
|
|
122
|
+
);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/** @internal */
|
|
126
|
+
export const One$inboundSchema: z.ZodNativeEnum<typeof One> = z.nativeEnum(One);
|
|
127
|
+
|
|
128
|
+
/** @internal */
|
|
129
|
+
export const One$outboundSchema: z.ZodNativeEnum<typeof One> =
|
|
130
|
+
One$inboundSchema;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* @internal
|
|
134
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
135
|
+
*/
|
|
136
|
+
export namespace One$ {
|
|
137
|
+
/** @deprecated use `One$inboundSchema` instead. */
|
|
138
|
+
export const inboundSchema = One$inboundSchema;
|
|
139
|
+
/** @deprecated use `One$outboundSchema` instead. */
|
|
140
|
+
export const outboundSchema = One$outboundSchema;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/** @internal */
|
|
144
|
+
export const S2Format$inboundSchema: z.ZodType<
|
|
145
|
+
S2Format,
|
|
146
|
+
z.ZodTypeDef,
|
|
147
|
+
unknown
|
|
148
|
+
> = One$inboundSchema;
|
|
149
|
+
|
|
150
|
+
/** @internal */
|
|
151
|
+
export type S2Format$Outbound = string;
|
|
152
|
+
|
|
153
|
+
/** @internal */
|
|
154
|
+
export const S2Format$outboundSchema: z.ZodType<
|
|
155
|
+
S2Format$Outbound,
|
|
156
|
+
z.ZodTypeDef,
|
|
157
|
+
S2Format
|
|
158
|
+
> = One$outboundSchema;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* @internal
|
|
162
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
163
|
+
*/
|
|
164
|
+
export namespace S2Format$ {
|
|
165
|
+
/** @deprecated use `S2Format$inboundSchema` instead. */
|
|
166
|
+
export const inboundSchema = S2Format$inboundSchema;
|
|
167
|
+
/** @deprecated use `S2Format$outboundSchema` instead. */
|
|
168
|
+
export const outboundSchema = S2Format$outboundSchema;
|
|
169
|
+
/** @deprecated use `S2Format$Outbound` instead. */
|
|
170
|
+
export type Outbound = S2Format$Outbound;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export function s2FormatToJSON(s2Format: S2Format): string {
|
|
174
|
+
return JSON.stringify(S2Format$outboundSchema.parse(s2Format));
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export function s2FormatFromJSON(
|
|
178
|
+
jsonString: string,
|
|
179
|
+
): SafeParseResult<S2Format, SDKValidationError> {
|
|
180
|
+
return safeParse(
|
|
181
|
+
jsonString,
|
|
182
|
+
(x) => S2Format$inboundSchema.parse(JSON.parse(x)),
|
|
183
|
+
`Failed to parse 'S2Format' from JSON`,
|
|
184
|
+
);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/** @internal */
|
|
188
|
+
export const ReadRequest$inboundSchema: z.ZodType<
|
|
189
|
+
ReadRequest,
|
|
190
|
+
z.ZodTypeDef,
|
|
191
|
+
unknown
|
|
192
|
+
> = z.object({
|
|
193
|
+
start_seq_num: z.number().int().optional(),
|
|
194
|
+
limit: z.lazy(() => Limit$inboundSchema).optional(),
|
|
195
|
+
"s2-format": One$inboundSchema.optional(),
|
|
196
|
+
stream: z.string(),
|
|
197
|
+
}).transform((v) => {
|
|
198
|
+
return remap$(v, {
|
|
199
|
+
"start_seq_num": "startSeqNum",
|
|
200
|
+
"s2-format": "s2Format",
|
|
201
|
+
});
|
|
202
|
+
});
|
|
203
|
+
|
|
204
|
+
/** @internal */
|
|
205
|
+
export type ReadRequest$Outbound = {
|
|
206
|
+
start_seq_num?: number | undefined;
|
|
207
|
+
limit?: Limit$Outbound | undefined;
|
|
208
|
+
"s2-format"?: string | undefined;
|
|
209
|
+
stream: string;
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
/** @internal */
|
|
213
|
+
export const ReadRequest$outboundSchema: z.ZodType<
|
|
214
|
+
ReadRequest$Outbound,
|
|
215
|
+
z.ZodTypeDef,
|
|
216
|
+
ReadRequest
|
|
217
|
+
> = z.object({
|
|
218
|
+
startSeqNum: z.number().int().optional(),
|
|
219
|
+
limit: z.lazy(() => Limit$outboundSchema).optional(),
|
|
220
|
+
s2Format: One$outboundSchema.optional(),
|
|
221
|
+
stream: z.string(),
|
|
222
|
+
}).transform((v) => {
|
|
223
|
+
return remap$(v, {
|
|
224
|
+
startSeqNum: "start_seq_num",
|
|
225
|
+
s2Format: "s2-format",
|
|
226
|
+
});
|
|
227
|
+
});
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* @internal
|
|
231
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
232
|
+
*/
|
|
233
|
+
export namespace ReadRequest$ {
|
|
234
|
+
/** @deprecated use `ReadRequest$inboundSchema` instead. */
|
|
235
|
+
export const inboundSchema = ReadRequest$inboundSchema;
|
|
236
|
+
/** @deprecated use `ReadRequest$outboundSchema` instead. */
|
|
237
|
+
export const outboundSchema = ReadRequest$outboundSchema;
|
|
238
|
+
/** @deprecated use `ReadRequest$Outbound` instead. */
|
|
239
|
+
export type Outbound = ReadRequest$Outbound;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
export function readRequestToJSON(readRequest: ReadRequest): string {
|
|
243
|
+
return JSON.stringify(ReadRequest$outboundSchema.parse(readRequest));
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
export function readRequestFromJSON(
|
|
247
|
+
jsonString: string,
|
|
248
|
+
): SafeParseResult<ReadRequest, SDKValidationError> {
|
|
249
|
+
return safeParse(
|
|
250
|
+
jsonString,
|
|
251
|
+
(x) => ReadRequest$inboundSchema.parse(JSON.parse(x)),
|
|
252
|
+
`Failed to parse 'ReadRequest' from JSON`,
|
|
253
|
+
);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
/** @internal */
|
|
257
|
+
export const ReadResponse$inboundSchema: z.ZodType<
|
|
258
|
+
ReadResponse,
|
|
259
|
+
z.ZodTypeDef,
|
|
260
|
+
unknown
|
|
261
|
+
> = z.union([
|
|
262
|
+
components.Output$inboundSchema,
|
|
263
|
+
z.instanceof(ReadableStream<Uint8Array>).transform(stream => {
|
|
264
|
+
return new EventStream({
|
|
265
|
+
stream,
|
|
266
|
+
decoder(rawEvent) {
|
|
267
|
+
const schema = components.ReadResponse$inboundSchema;
|
|
268
|
+
return schema.parse(rawEvent);
|
|
269
|
+
},
|
|
270
|
+
});
|
|
271
|
+
}),
|
|
272
|
+
]);
|
|
273
|
+
|
|
274
|
+
/** @internal */
|
|
275
|
+
export type ReadResponse$Outbound = components.Output$Outbound | never;
|
|
276
|
+
|
|
277
|
+
/** @internal */
|
|
278
|
+
export const ReadResponse$outboundSchema: z.ZodType<
|
|
279
|
+
ReadResponse$Outbound,
|
|
280
|
+
z.ZodTypeDef,
|
|
281
|
+
ReadResponse
|
|
282
|
+
> = z.union([components.Output$outboundSchema, z.never()]);
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* @internal
|
|
286
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
287
|
+
*/
|
|
288
|
+
export namespace ReadResponse$ {
|
|
289
|
+
/** @deprecated use `ReadResponse$inboundSchema` instead. */
|
|
290
|
+
export const inboundSchema = ReadResponse$inboundSchema;
|
|
291
|
+
/** @deprecated use `ReadResponse$outboundSchema` instead. */
|
|
292
|
+
export const outboundSchema = ReadResponse$outboundSchema;
|
|
293
|
+
/** @deprecated use `ReadResponse$Outbound` instead. */
|
|
294
|
+
export type Outbound = ReadResponse$Outbound;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
export function readResponseToJSON(readResponse: ReadResponse): string {
|
|
298
|
+
return JSON.stringify(ReadResponse$outboundSchema.parse(readResponse));
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
export function readResponseFromJSON(
|
|
302
|
+
jsonString: string,
|
|
303
|
+
): SafeParseResult<ReadResponse, SDKValidationError> {
|
|
304
|
+
return safeParse(
|
|
305
|
+
jsonString,
|
|
306
|
+
(x) => ReadResponse$inboundSchema.parse(JSON.parse(x)),
|
|
307
|
+
`Failed to parse 'ReadResponse' from JSON`,
|
|
308
|
+
);
|
|
309
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
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 type ReconfigureBasinRequest = {
|
|
13
|
+
/**
|
|
14
|
+
* Name of the basin.
|
|
15
|
+
*/
|
|
16
|
+
basin: string;
|
|
17
|
+
basinConfig: components.BasinConfig;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const ReconfigureBasinRequest$inboundSchema: z.ZodType<
|
|
22
|
+
ReconfigureBasinRequest,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
basin: z.string(),
|
|
27
|
+
BasinConfig: components.BasinConfig$inboundSchema,
|
|
28
|
+
}).transform((v) => {
|
|
29
|
+
return remap$(v, {
|
|
30
|
+
"BasinConfig": "basinConfig",
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export type ReconfigureBasinRequest$Outbound = {
|
|
36
|
+
basin: string;
|
|
37
|
+
BasinConfig: components.BasinConfig$Outbound;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const ReconfigureBasinRequest$outboundSchema: z.ZodType<
|
|
42
|
+
ReconfigureBasinRequest$Outbound,
|
|
43
|
+
z.ZodTypeDef,
|
|
44
|
+
ReconfigureBasinRequest
|
|
45
|
+
> = z.object({
|
|
46
|
+
basin: z.string(),
|
|
47
|
+
basinConfig: components.BasinConfig$outboundSchema,
|
|
48
|
+
}).transform((v) => {
|
|
49
|
+
return remap$(v, {
|
|
50
|
+
basinConfig: "BasinConfig",
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* @internal
|
|
56
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
57
|
+
*/
|
|
58
|
+
export namespace ReconfigureBasinRequest$ {
|
|
59
|
+
/** @deprecated use `ReconfigureBasinRequest$inboundSchema` instead. */
|
|
60
|
+
export const inboundSchema = ReconfigureBasinRequest$inboundSchema;
|
|
61
|
+
/** @deprecated use `ReconfigureBasinRequest$outboundSchema` instead. */
|
|
62
|
+
export const outboundSchema = ReconfigureBasinRequest$outboundSchema;
|
|
63
|
+
/** @deprecated use `ReconfigureBasinRequest$Outbound` instead. */
|
|
64
|
+
export type Outbound = ReconfigureBasinRequest$Outbound;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function reconfigureBasinRequestToJSON(
|
|
68
|
+
reconfigureBasinRequest: ReconfigureBasinRequest,
|
|
69
|
+
): string {
|
|
70
|
+
return JSON.stringify(
|
|
71
|
+
ReconfigureBasinRequest$outboundSchema.parse(reconfigureBasinRequest),
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function reconfigureBasinRequestFromJSON(
|
|
76
|
+
jsonString: string,
|
|
77
|
+
): SafeParseResult<ReconfigureBasinRequest, SDKValidationError> {
|
|
78
|
+
return safeParse(
|
|
79
|
+
jsonString,
|
|
80
|
+
(x) => ReconfigureBasinRequest$inboundSchema.parse(JSON.parse(x)),
|
|
81
|
+
`Failed to parse 'ReconfigureBasinRequest' from JSON`,
|
|
82
|
+
);
|
|
83
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
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 ReconfigureStreamServerList = [
|
|
13
|
+
/**
|
|
14
|
+
* Endpoint for the basin
|
|
15
|
+
*/
|
|
16
|
+
"https://{basin}.b.aws.s2.dev/v1alpha",
|
|
17
|
+
] as const;
|
|
18
|
+
|
|
19
|
+
export type ReconfigureStreamRequest = {
|
|
20
|
+
/**
|
|
21
|
+
* Name of the stream.
|
|
22
|
+
*/
|
|
23
|
+
stream: string;
|
|
24
|
+
streamConfig: components.StreamConfig;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const ReconfigureStreamRequest$inboundSchema: z.ZodType<
|
|
29
|
+
ReconfigureStreamRequest,
|
|
30
|
+
z.ZodTypeDef,
|
|
31
|
+
unknown
|
|
32
|
+
> = z.object({
|
|
33
|
+
stream: z.string(),
|
|
34
|
+
StreamConfig: components.StreamConfig$inboundSchema,
|
|
35
|
+
}).transform((v) => {
|
|
36
|
+
return remap$(v, {
|
|
37
|
+
"StreamConfig": "streamConfig",
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export type ReconfigureStreamRequest$Outbound = {
|
|
43
|
+
stream: string;
|
|
44
|
+
StreamConfig: components.StreamConfig$Outbound;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
/** @internal */
|
|
48
|
+
export const ReconfigureStreamRequest$outboundSchema: z.ZodType<
|
|
49
|
+
ReconfigureStreamRequest$Outbound,
|
|
50
|
+
z.ZodTypeDef,
|
|
51
|
+
ReconfigureStreamRequest
|
|
52
|
+
> = z.object({
|
|
53
|
+
stream: z.string(),
|
|
54
|
+
streamConfig: components.StreamConfig$outboundSchema,
|
|
55
|
+
}).transform((v) => {
|
|
56
|
+
return remap$(v, {
|
|
57
|
+
streamConfig: "StreamConfig",
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @internal
|
|
63
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
64
|
+
*/
|
|
65
|
+
export namespace ReconfigureStreamRequest$ {
|
|
66
|
+
/** @deprecated use `ReconfigureStreamRequest$inboundSchema` instead. */
|
|
67
|
+
export const inboundSchema = ReconfigureStreamRequest$inboundSchema;
|
|
68
|
+
/** @deprecated use `ReconfigureStreamRequest$outboundSchema` instead. */
|
|
69
|
+
export const outboundSchema = ReconfigureStreamRequest$outboundSchema;
|
|
70
|
+
/** @deprecated use `ReconfigureStreamRequest$Outbound` instead. */
|
|
71
|
+
export type Outbound = ReconfigureStreamRequest$Outbound;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function reconfigureStreamRequestToJSON(
|
|
75
|
+
reconfigureStreamRequest: ReconfigureStreamRequest,
|
|
76
|
+
): string {
|
|
77
|
+
return JSON.stringify(
|
|
78
|
+
ReconfigureStreamRequest$outboundSchema.parse(reconfigureStreamRequest),
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function reconfigureStreamRequestFromJSON(
|
|
83
|
+
jsonString: string,
|
|
84
|
+
): SafeParseResult<ReconfigureStreamRequest, SDKValidationError> {
|
|
85
|
+
return safeParse(
|
|
86
|
+
jsonString,
|
|
87
|
+
(x) => ReconfigureStreamRequest$inboundSchema.parse(JSON.parse(x)),
|
|
88
|
+
`Failed to parse 'ReconfigureStreamRequest' from JSON`,
|
|
89
|
+
);
|
|
90
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { accountCreateBasin } from "../funcs/accountCreateBasin.js";
|
|
6
|
+
import { accountDeleteBasin } from "../funcs/accountDeleteBasin.js";
|
|
7
|
+
import { accountGetBasinConfig } from "../funcs/accountGetBasinConfig.js";
|
|
8
|
+
import { accountListBasins } from "../funcs/accountListBasins.js";
|
|
9
|
+
import { accountReconfigureBasin } from "../funcs/accountReconfigureBasin.js";
|
|
10
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import * as components from "../models/components/index.js";
|
|
12
|
+
import * as operations from "../models/operations/index.js";
|
|
13
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
14
|
+
import { PageIterator, unwrapResultIterator } from "../types/operations.js";
|
|
15
|
+
|
|
16
|
+
export class Account extends ClientSDK {
|
|
17
|
+
/**
|
|
18
|
+
* List basins.
|
|
19
|
+
*/
|
|
20
|
+
async listBasins(
|
|
21
|
+
request: operations.ListBasinsRequest,
|
|
22
|
+
options?: RequestOptions,
|
|
23
|
+
): Promise<PageIterator<operations.ListBasinsResponse, { cursor: string }>> {
|
|
24
|
+
return unwrapResultIterator(accountListBasins(
|
|
25
|
+
this,
|
|
26
|
+
request,
|
|
27
|
+
options,
|
|
28
|
+
));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Get basin configuration.
|
|
33
|
+
*/
|
|
34
|
+
async getBasinConfig(
|
|
35
|
+
request: operations.GetBasinConfigRequest,
|
|
36
|
+
options?: RequestOptions,
|
|
37
|
+
): Promise<components.BasinConfig> {
|
|
38
|
+
return unwrapAsync(accountGetBasinConfig(
|
|
39
|
+
this,
|
|
40
|
+
request,
|
|
41
|
+
options,
|
|
42
|
+
));
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Create a new basin.
|
|
47
|
+
*/
|
|
48
|
+
async createBasin(
|
|
49
|
+
request: operations.CreateBasinRequest,
|
|
50
|
+
options?: RequestOptions,
|
|
51
|
+
): Promise<components.BasinInfo> {
|
|
52
|
+
return unwrapAsync(accountCreateBasin(
|
|
53
|
+
this,
|
|
54
|
+
request,
|
|
55
|
+
options,
|
|
56
|
+
));
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Delete a basin.
|
|
61
|
+
*/
|
|
62
|
+
async deleteBasin(
|
|
63
|
+
request: operations.DeleteBasinRequest,
|
|
64
|
+
options?: RequestOptions,
|
|
65
|
+
): Promise<void> {
|
|
66
|
+
return unwrapAsync(accountDeleteBasin(
|
|
67
|
+
this,
|
|
68
|
+
request,
|
|
69
|
+
options,
|
|
70
|
+
));
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Update basin configuration.
|
|
75
|
+
*/
|
|
76
|
+
async reconfigureBasin(
|
|
77
|
+
request: operations.ReconfigureBasinRequest,
|
|
78
|
+
options?: RequestOptions,
|
|
79
|
+
): Promise<components.BasinConfig> {
|
|
80
|
+
return unwrapAsync(accountReconfigureBasin(
|
|
81
|
+
this,
|
|
82
|
+
request,
|
|
83
|
+
options,
|
|
84
|
+
));
|
|
85
|
+
}
|
|
86
|
+
}
|
package/src/sdk/basin.ts
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { basinCreateStream } from "../funcs/basinCreateStream.js";
|
|
6
|
+
import { basinDeleteStream } from "../funcs/basinDeleteStream.js";
|
|
7
|
+
import { basinGetStreamConfig } from "../funcs/basinGetStreamConfig.js";
|
|
8
|
+
import { basinListStreams } from "../funcs/basinListStreams.js";
|
|
9
|
+
import { basinReconfigureStream } from "../funcs/basinReconfigureStream.js";
|
|
10
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import * as components from "../models/components/index.js";
|
|
12
|
+
import * as operations from "../models/operations/index.js";
|
|
13
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
14
|
+
import { PageIterator, unwrapResultIterator } from "../types/operations.js";
|
|
15
|
+
|
|
16
|
+
export class Basin extends ClientSDK {
|
|
17
|
+
/**
|
|
18
|
+
* List Streams.
|
|
19
|
+
*/
|
|
20
|
+
async listStreams(
|
|
21
|
+
request: operations.ListStreamsRequest,
|
|
22
|
+
options?: RequestOptions,
|
|
23
|
+
): Promise<PageIterator<operations.ListStreamsResponse, { cursor: string }>> {
|
|
24
|
+
return unwrapResultIterator(basinListStreams(
|
|
25
|
+
this,
|
|
26
|
+
request,
|
|
27
|
+
options,
|
|
28
|
+
));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Get stream configuration.
|
|
33
|
+
*/
|
|
34
|
+
async getStreamConfig(
|
|
35
|
+
request: operations.GetStreamConfigRequest,
|
|
36
|
+
options?: RequestOptions,
|
|
37
|
+
): Promise<components.StreamConfig> {
|
|
38
|
+
return unwrapAsync(basinGetStreamConfig(
|
|
39
|
+
this,
|
|
40
|
+
request,
|
|
41
|
+
options,
|
|
42
|
+
));
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Create a stream.
|
|
47
|
+
*/
|
|
48
|
+
async createStream(
|
|
49
|
+
request: operations.CreateStreamRequest,
|
|
50
|
+
options?: RequestOptions,
|
|
51
|
+
): Promise<components.StreamInfo> {
|
|
52
|
+
return unwrapAsync(basinCreateStream(
|
|
53
|
+
this,
|
|
54
|
+
request,
|
|
55
|
+
options,
|
|
56
|
+
));
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Delete a stream.
|
|
61
|
+
*/
|
|
62
|
+
async deleteStream(
|
|
63
|
+
request: operations.DeleteStreamRequest,
|
|
64
|
+
options?: RequestOptions,
|
|
65
|
+
): Promise<void> {
|
|
66
|
+
return unwrapAsync(basinDeleteStream(
|
|
67
|
+
this,
|
|
68
|
+
request,
|
|
69
|
+
options,
|
|
70
|
+
));
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Update stream configuration.
|
|
75
|
+
*/
|
|
76
|
+
async reconfigureStream(
|
|
77
|
+
request: operations.ReconfigureStreamRequest,
|
|
78
|
+
options?: RequestOptions,
|
|
79
|
+
): Promise<components.StreamConfig> {
|
|
80
|
+
return unwrapAsync(basinReconfigureStream(
|
|
81
|
+
this,
|
|
82
|
+
request,
|
|
83
|
+
options,
|
|
84
|
+
));
|
|
85
|
+
}
|
|
86
|
+
}
|
package/src/sdk/index.ts
ADDED
package/src/sdk/sdk.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { ClientSDK } from "../lib/sdks.js";
|
|
6
|
+
import { Account } from "./account.js";
|
|
7
|
+
import { Basin } from "./basin.js";
|
|
8
|
+
import { Stream } from "./stream.js";
|
|
9
|
+
|
|
10
|
+
export class S2 extends ClientSDK {
|
|
11
|
+
private _account?: Account;
|
|
12
|
+
get account(): Account {
|
|
13
|
+
return (this._account ??= new Account(this._options));
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
private _basin?: Basin;
|
|
17
|
+
get basin(): Basin {
|
|
18
|
+
return (this._basin ??= new Basin(this._options));
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
private _stream?: Stream;
|
|
22
|
+
get stream(): Stream {
|
|
23
|
+
return (this._stream ??= new Stream(this._options));
|
|
24
|
+
}
|
|
25
|
+
}
|