@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,200 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.ReadResponse$ = exports.ReadResponse$outboundSchema = exports.ReadResponse$inboundSchema = exports.ReadRequest$ = exports.ReadRequest$outboundSchema = exports.ReadRequest$inboundSchema = exports.S2Format$ = exports.S2Format$outboundSchema = exports.S2Format$inboundSchema = exports.One$ = exports.One$outboundSchema = exports.One$inboundSchema = exports.Limit$ = exports.Limit$outboundSchema = exports.Limit$inboundSchema = exports.One = exports.ReadServerList = void 0;
|
|
40
|
+
exports.limitToJSON = limitToJSON;
|
|
41
|
+
exports.limitFromJSON = limitFromJSON;
|
|
42
|
+
exports.s2FormatToJSON = s2FormatToJSON;
|
|
43
|
+
exports.s2FormatFromJSON = s2FormatFromJSON;
|
|
44
|
+
exports.readRequestToJSON = readRequestToJSON;
|
|
45
|
+
exports.readRequestFromJSON = readRequestFromJSON;
|
|
46
|
+
exports.readResponseToJSON = readResponseToJSON;
|
|
47
|
+
exports.readResponseFromJSON = readResponseFromJSON;
|
|
48
|
+
const z = __importStar(require("zod"));
|
|
49
|
+
const event_streams_js_1 = require("../../lib/event-streams.js");
|
|
50
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
51
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
52
|
+
const components = __importStar(require("../components/index.js"));
|
|
53
|
+
exports.ReadServerList = [
|
|
54
|
+
/**
|
|
55
|
+
* Endpoint for the basin
|
|
56
|
+
*/
|
|
57
|
+
"https://{basin}.b.aws.s2.dev/v1alpha",
|
|
58
|
+
];
|
|
59
|
+
exports.One = {
|
|
60
|
+
Json: "json",
|
|
61
|
+
JsonBinsafe: "json-binsafe",
|
|
62
|
+
};
|
|
63
|
+
/** @internal */
|
|
64
|
+
exports.Limit$inboundSchema = z
|
|
65
|
+
.object({
|
|
66
|
+
bytes: z.nullable(z.number().int()).optional(),
|
|
67
|
+
count: z.nullable(z.number().int()).optional(),
|
|
68
|
+
});
|
|
69
|
+
/** @internal */
|
|
70
|
+
exports.Limit$outboundSchema = z.object({
|
|
71
|
+
bytes: z.nullable(z.number().int()).optional(),
|
|
72
|
+
count: z.nullable(z.number().int()).optional(),
|
|
73
|
+
});
|
|
74
|
+
/**
|
|
75
|
+
* @internal
|
|
76
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
77
|
+
*/
|
|
78
|
+
var Limit$;
|
|
79
|
+
(function (Limit$) {
|
|
80
|
+
/** @deprecated use `Limit$inboundSchema` instead. */
|
|
81
|
+
Limit$.inboundSchema = exports.Limit$inboundSchema;
|
|
82
|
+
/** @deprecated use `Limit$outboundSchema` instead. */
|
|
83
|
+
Limit$.outboundSchema = exports.Limit$outboundSchema;
|
|
84
|
+
})(Limit$ || (exports.Limit$ = Limit$ = {}));
|
|
85
|
+
function limitToJSON(limit) {
|
|
86
|
+
return JSON.stringify(exports.Limit$outboundSchema.parse(limit));
|
|
87
|
+
}
|
|
88
|
+
function limitFromJSON(jsonString) {
|
|
89
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Limit$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Limit' from JSON`);
|
|
90
|
+
}
|
|
91
|
+
/** @internal */
|
|
92
|
+
exports.One$inboundSchema = z.nativeEnum(exports.One);
|
|
93
|
+
/** @internal */
|
|
94
|
+
exports.One$outboundSchema = exports.One$inboundSchema;
|
|
95
|
+
/**
|
|
96
|
+
* @internal
|
|
97
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
98
|
+
*/
|
|
99
|
+
var One$;
|
|
100
|
+
(function (One$) {
|
|
101
|
+
/** @deprecated use `One$inboundSchema` instead. */
|
|
102
|
+
One$.inboundSchema = exports.One$inboundSchema;
|
|
103
|
+
/** @deprecated use `One$outboundSchema` instead. */
|
|
104
|
+
One$.outboundSchema = exports.One$outboundSchema;
|
|
105
|
+
})(One$ || (exports.One$ = One$ = {}));
|
|
106
|
+
/** @internal */
|
|
107
|
+
exports.S2Format$inboundSchema = exports.One$inboundSchema;
|
|
108
|
+
/** @internal */
|
|
109
|
+
exports.S2Format$outboundSchema = exports.One$outboundSchema;
|
|
110
|
+
/**
|
|
111
|
+
* @internal
|
|
112
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
113
|
+
*/
|
|
114
|
+
var S2Format$;
|
|
115
|
+
(function (S2Format$) {
|
|
116
|
+
/** @deprecated use `S2Format$inboundSchema` instead. */
|
|
117
|
+
S2Format$.inboundSchema = exports.S2Format$inboundSchema;
|
|
118
|
+
/** @deprecated use `S2Format$outboundSchema` instead. */
|
|
119
|
+
S2Format$.outboundSchema = exports.S2Format$outboundSchema;
|
|
120
|
+
})(S2Format$ || (exports.S2Format$ = S2Format$ = {}));
|
|
121
|
+
function s2FormatToJSON(s2Format) {
|
|
122
|
+
return JSON.stringify(exports.S2Format$outboundSchema.parse(s2Format));
|
|
123
|
+
}
|
|
124
|
+
function s2FormatFromJSON(jsonString) {
|
|
125
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.S2Format$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'S2Format' from JSON`);
|
|
126
|
+
}
|
|
127
|
+
/** @internal */
|
|
128
|
+
exports.ReadRequest$inboundSchema = z.object({
|
|
129
|
+
start_seq_num: z.number().int().optional(),
|
|
130
|
+
limit: z.lazy(() => exports.Limit$inboundSchema).optional(),
|
|
131
|
+
"s2-format": exports.One$inboundSchema.optional(),
|
|
132
|
+
stream: z.string(),
|
|
133
|
+
}).transform((v) => {
|
|
134
|
+
return (0, primitives_js_1.remap)(v, {
|
|
135
|
+
"start_seq_num": "startSeqNum",
|
|
136
|
+
"s2-format": "s2Format",
|
|
137
|
+
});
|
|
138
|
+
});
|
|
139
|
+
/** @internal */
|
|
140
|
+
exports.ReadRequest$outboundSchema = z.object({
|
|
141
|
+
startSeqNum: z.number().int().optional(),
|
|
142
|
+
limit: z.lazy(() => exports.Limit$outboundSchema).optional(),
|
|
143
|
+
s2Format: exports.One$outboundSchema.optional(),
|
|
144
|
+
stream: z.string(),
|
|
145
|
+
}).transform((v) => {
|
|
146
|
+
return (0, primitives_js_1.remap)(v, {
|
|
147
|
+
startSeqNum: "start_seq_num",
|
|
148
|
+
s2Format: "s2-format",
|
|
149
|
+
});
|
|
150
|
+
});
|
|
151
|
+
/**
|
|
152
|
+
* @internal
|
|
153
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
154
|
+
*/
|
|
155
|
+
var ReadRequest$;
|
|
156
|
+
(function (ReadRequest$) {
|
|
157
|
+
/** @deprecated use `ReadRequest$inboundSchema` instead. */
|
|
158
|
+
ReadRequest$.inboundSchema = exports.ReadRequest$inboundSchema;
|
|
159
|
+
/** @deprecated use `ReadRequest$outboundSchema` instead. */
|
|
160
|
+
ReadRequest$.outboundSchema = exports.ReadRequest$outboundSchema;
|
|
161
|
+
})(ReadRequest$ || (exports.ReadRequest$ = ReadRequest$ = {}));
|
|
162
|
+
function readRequestToJSON(readRequest) {
|
|
163
|
+
return JSON.stringify(exports.ReadRequest$outboundSchema.parse(readRequest));
|
|
164
|
+
}
|
|
165
|
+
function readRequestFromJSON(jsonString) {
|
|
166
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ReadRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ReadRequest' from JSON`);
|
|
167
|
+
}
|
|
168
|
+
/** @internal */
|
|
169
|
+
exports.ReadResponse$inboundSchema = z.union([
|
|
170
|
+
components.Output$inboundSchema,
|
|
171
|
+
z.instanceof((ReadableStream)).transform(stream => {
|
|
172
|
+
return new event_streams_js_1.EventStream({
|
|
173
|
+
stream,
|
|
174
|
+
decoder(rawEvent) {
|
|
175
|
+
const schema = components.ReadResponse$inboundSchema;
|
|
176
|
+
return schema.parse(rawEvent);
|
|
177
|
+
},
|
|
178
|
+
});
|
|
179
|
+
}),
|
|
180
|
+
]);
|
|
181
|
+
/** @internal */
|
|
182
|
+
exports.ReadResponse$outboundSchema = z.union([components.Output$outboundSchema, z.never()]);
|
|
183
|
+
/**
|
|
184
|
+
* @internal
|
|
185
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
186
|
+
*/
|
|
187
|
+
var ReadResponse$;
|
|
188
|
+
(function (ReadResponse$) {
|
|
189
|
+
/** @deprecated use `ReadResponse$inboundSchema` instead. */
|
|
190
|
+
ReadResponse$.inboundSchema = exports.ReadResponse$inboundSchema;
|
|
191
|
+
/** @deprecated use `ReadResponse$outboundSchema` instead. */
|
|
192
|
+
ReadResponse$.outboundSchema = exports.ReadResponse$outboundSchema;
|
|
193
|
+
})(ReadResponse$ || (exports.ReadResponse$ = ReadResponse$ = {}));
|
|
194
|
+
function readResponseToJSON(readResponse) {
|
|
195
|
+
return JSON.stringify(exports.ReadResponse$outboundSchema.parse(readResponse));
|
|
196
|
+
}
|
|
197
|
+
function readResponseFromJSON(jsonString) {
|
|
198
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ReadResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ReadResponse' from JSON`);
|
|
199
|
+
}
|
|
200
|
+
//# sourceMappingURL=read.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read.js","sourceRoot":"","sources":["../../src/models/operations/read.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import * as components from "../components/index.js";
|
|
4
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
+
export type ReconfigureBasinRequest = {
|
|
6
|
+
/**
|
|
7
|
+
* Name of the basin.
|
|
8
|
+
*/
|
|
9
|
+
basin: string;
|
|
10
|
+
basinConfig: components.BasinConfig;
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export declare const ReconfigureBasinRequest$inboundSchema: z.ZodType<ReconfigureBasinRequest, z.ZodTypeDef, unknown>;
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type ReconfigureBasinRequest$Outbound = {
|
|
16
|
+
basin: string;
|
|
17
|
+
BasinConfig: components.BasinConfig$Outbound;
|
|
18
|
+
};
|
|
19
|
+
/** @internal */
|
|
20
|
+
export declare const ReconfigureBasinRequest$outboundSchema: z.ZodType<ReconfigureBasinRequest$Outbound, z.ZodTypeDef, ReconfigureBasinRequest>;
|
|
21
|
+
/**
|
|
22
|
+
* @internal
|
|
23
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
24
|
+
*/
|
|
25
|
+
export declare namespace ReconfigureBasinRequest$ {
|
|
26
|
+
/** @deprecated use `ReconfigureBasinRequest$inboundSchema` instead. */
|
|
27
|
+
const inboundSchema: z.ZodType<ReconfigureBasinRequest, z.ZodTypeDef, unknown>;
|
|
28
|
+
/** @deprecated use `ReconfigureBasinRequest$outboundSchema` instead. */
|
|
29
|
+
const outboundSchema: z.ZodType<ReconfigureBasinRequest$Outbound, z.ZodTypeDef, ReconfigureBasinRequest>;
|
|
30
|
+
/** @deprecated use `ReconfigureBasinRequest$Outbound` instead. */
|
|
31
|
+
type Outbound = ReconfigureBasinRequest$Outbound;
|
|
32
|
+
}
|
|
33
|
+
export declare function reconfigureBasinRequestToJSON(reconfigureBasinRequest: ReconfigureBasinRequest): string;
|
|
34
|
+
export declare function reconfigureBasinRequestFromJSON(jsonString: string): SafeParseResult<ReconfigureBasinRequest, SDKValidationError>;
|
|
35
|
+
//# sourceMappingURL=reconfigurebasin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reconfigurebasin.d.ts","sourceRoot":"","sources":["../../src/models/operations/reconfigurebasin.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,UAAU,CAAC,WAAW,CAAC;CACrC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,uBAAuB,EACvB,CAAC,CAAC,UAAU,EACZ,OAAO,CAQP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,gCAAgC,GAAG;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,UAAU,CAAC,oBAAoB,CAAC;CAC9C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,OAAO,CAC5D,gCAAgC,EAChC,CAAC,CAAC,UAAU,EACZ,uBAAuB,CAQvB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,wBAAwB,CAAC;IACxC,uEAAuE;IAChE,MAAM,aAAa,2DAAwC,CAAC;IACnE,wEAAwE;IACjE,MAAM,cAAc,oFAAyC,CAAC;IACrE,kEAAkE;IAClE,KAAY,QAAQ,GAAG,gCAAgC,CAAC;CACzD;AAED,wBAAgB,6BAA6B,CAC3C,uBAAuB,EAAE,uBAAuB,GAC/C,MAAM,CAIR;AAED,wBAAgB,+BAA+B,CAC7C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,uBAAuB,EAAE,kBAAkB,CAAC,CAM9D"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.ReconfigureBasinRequest$ = exports.ReconfigureBasinRequest$outboundSchema = exports.ReconfigureBasinRequest$inboundSchema = void 0;
|
|
40
|
+
exports.reconfigureBasinRequestToJSON = reconfigureBasinRequestToJSON;
|
|
41
|
+
exports.reconfigureBasinRequestFromJSON = reconfigureBasinRequestFromJSON;
|
|
42
|
+
const z = __importStar(require("zod"));
|
|
43
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
44
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
45
|
+
const components = __importStar(require("../components/index.js"));
|
|
46
|
+
/** @internal */
|
|
47
|
+
exports.ReconfigureBasinRequest$inboundSchema = z.object({
|
|
48
|
+
basin: z.string(),
|
|
49
|
+
BasinConfig: components.BasinConfig$inboundSchema,
|
|
50
|
+
}).transform((v) => {
|
|
51
|
+
return (0, primitives_js_1.remap)(v, {
|
|
52
|
+
"BasinConfig": "basinConfig",
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
/** @internal */
|
|
56
|
+
exports.ReconfigureBasinRequest$outboundSchema = z.object({
|
|
57
|
+
basin: z.string(),
|
|
58
|
+
basinConfig: components.BasinConfig$outboundSchema,
|
|
59
|
+
}).transform((v) => {
|
|
60
|
+
return (0, primitives_js_1.remap)(v, {
|
|
61
|
+
basinConfig: "BasinConfig",
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
/**
|
|
65
|
+
* @internal
|
|
66
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
67
|
+
*/
|
|
68
|
+
var ReconfigureBasinRequest$;
|
|
69
|
+
(function (ReconfigureBasinRequest$) {
|
|
70
|
+
/** @deprecated use `ReconfigureBasinRequest$inboundSchema` instead. */
|
|
71
|
+
ReconfigureBasinRequest$.inboundSchema = exports.ReconfigureBasinRequest$inboundSchema;
|
|
72
|
+
/** @deprecated use `ReconfigureBasinRequest$outboundSchema` instead. */
|
|
73
|
+
ReconfigureBasinRequest$.outboundSchema = exports.ReconfigureBasinRequest$outboundSchema;
|
|
74
|
+
})(ReconfigureBasinRequest$ || (exports.ReconfigureBasinRequest$ = ReconfigureBasinRequest$ = {}));
|
|
75
|
+
function reconfigureBasinRequestToJSON(reconfigureBasinRequest) {
|
|
76
|
+
return JSON.stringify(exports.ReconfigureBasinRequest$outboundSchema.parse(reconfigureBasinRequest));
|
|
77
|
+
}
|
|
78
|
+
function reconfigureBasinRequestFromJSON(jsonString) {
|
|
79
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ReconfigureBasinRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ReconfigureBasinRequest' from JSON`);
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=reconfigurebasin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reconfigurebasin.js","sourceRoot":"","sources":["../../src/models/operations/reconfigurebasin.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgEH,sEAMC;AAED,0EAQC;AA9ED,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAEjD,mEAAqD;AAWrD,gBAAgB;AACH,QAAA,qCAAqC,GAI9C,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,WAAW,EAAE,UAAU,CAAC,yBAAyB;CAClD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,aAAa,EAAE,aAAa;KAC7B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,sCAAsC,GAI/C,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,WAAW,EAAE,UAAU,CAAC,0BAA0B;CACnD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,WAAW,EAAE,aAAa;KAC3B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,wBAAwB,CAOxC;AAPD,WAAiB,wBAAwB;IACvC,uEAAuE;IAC1D,sCAAa,GAAG,6CAAqC,CAAC;IACnE,wEAAwE;IAC3D,uCAAc,GAAG,8CAAsC,CAAC;AAGvE,CAAC,EAPgB,wBAAwB,wCAAxB,wBAAwB,QAOxC;AAED,SAAgB,6BAA6B,CAC3C,uBAAgD;IAEhD,OAAO,IAAI,CAAC,SAAS,CACnB,8CAAsC,CAAC,KAAK,CAAC,uBAAuB,CAAC,CACtE,CAAC;AACJ,CAAC;AAED,SAAgB,+BAA+B,CAC7C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,6CAAqC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACjE,qDAAqD,CACtD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import * as components from "../components/index.js";
|
|
4
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
+
export declare const ReconfigureStreamServerList: readonly ["https://{basin}.b.aws.s2.dev/v1alpha"];
|
|
6
|
+
export type ReconfigureStreamRequest = {
|
|
7
|
+
/**
|
|
8
|
+
* Name of the stream.
|
|
9
|
+
*/
|
|
10
|
+
stream: string;
|
|
11
|
+
streamConfig: components.StreamConfig;
|
|
12
|
+
};
|
|
13
|
+
/** @internal */
|
|
14
|
+
export declare const ReconfigureStreamRequest$inboundSchema: z.ZodType<ReconfigureStreamRequest, z.ZodTypeDef, unknown>;
|
|
15
|
+
/** @internal */
|
|
16
|
+
export type ReconfigureStreamRequest$Outbound = {
|
|
17
|
+
stream: string;
|
|
18
|
+
StreamConfig: components.StreamConfig$Outbound;
|
|
19
|
+
};
|
|
20
|
+
/** @internal */
|
|
21
|
+
export declare const ReconfigureStreamRequest$outboundSchema: z.ZodType<ReconfigureStreamRequest$Outbound, z.ZodTypeDef, ReconfigureStreamRequest>;
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
25
|
+
*/
|
|
26
|
+
export declare namespace ReconfigureStreamRequest$ {
|
|
27
|
+
/** @deprecated use `ReconfigureStreamRequest$inboundSchema` instead. */
|
|
28
|
+
const inboundSchema: z.ZodType<ReconfigureStreamRequest, z.ZodTypeDef, unknown>;
|
|
29
|
+
/** @deprecated use `ReconfigureStreamRequest$outboundSchema` instead. */
|
|
30
|
+
const outboundSchema: z.ZodType<ReconfigureStreamRequest$Outbound, z.ZodTypeDef, ReconfigureStreamRequest>;
|
|
31
|
+
/** @deprecated use `ReconfigureStreamRequest$Outbound` instead. */
|
|
32
|
+
type Outbound = ReconfigureStreamRequest$Outbound;
|
|
33
|
+
}
|
|
34
|
+
export declare function reconfigureStreamRequestToJSON(reconfigureStreamRequest: ReconfigureStreamRequest): string;
|
|
35
|
+
export declare function reconfigureStreamRequestFromJSON(jsonString: string): SafeParseResult<ReconfigureStreamRequest, SDKValidationError>;
|
|
36
|
+
//# sourceMappingURL=reconfigurestream.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reconfigurestream.d.ts","sourceRoot":"","sources":["../../src/models/operations/reconfigurestream.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,eAAO,MAAM,2BAA2B,mDAK9B,CAAC;AAEX,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,UAAU,CAAC,YAAY,CAAC;CACvC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,OAAO,CAC5D,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,OAAO,CAQP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,iCAAiC,GAAG;IAC9C,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,UAAU,CAAC,qBAAqB,CAAC;CAChD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,OAAO,CAC7D,iCAAiC,EACjC,CAAC,CAAC,UAAU,EACZ,wBAAwB,CAQxB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,yBAAyB,CAAC;IACzC,wEAAwE;IACjE,MAAM,aAAa,4DAAyC,CAAC;IACpE,yEAAyE;IAClE,MAAM,cAAc,sFAA0C,CAAC;IACtE,mEAAmE;IACnE,KAAY,QAAQ,GAAG,iCAAiC,CAAC;CAC1D;AAED,wBAAgB,8BAA8B,CAC5C,wBAAwB,EAAE,wBAAwB,GACjD,MAAM,CAIR;AAED,wBAAgB,gCAAgC,CAC9C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,wBAAwB,EAAE,kBAAkB,CAAC,CAM/D"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.ReconfigureStreamRequest$ = exports.ReconfigureStreamRequest$outboundSchema = exports.ReconfigureStreamRequest$inboundSchema = exports.ReconfigureStreamServerList = void 0;
|
|
40
|
+
exports.reconfigureStreamRequestToJSON = reconfigureStreamRequestToJSON;
|
|
41
|
+
exports.reconfigureStreamRequestFromJSON = reconfigureStreamRequestFromJSON;
|
|
42
|
+
const z = __importStar(require("zod"));
|
|
43
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
44
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
45
|
+
const components = __importStar(require("../components/index.js"));
|
|
46
|
+
exports.ReconfigureStreamServerList = [
|
|
47
|
+
/**
|
|
48
|
+
* Endpoint for the basin
|
|
49
|
+
*/
|
|
50
|
+
"https://{basin}.b.aws.s2.dev/v1alpha",
|
|
51
|
+
];
|
|
52
|
+
/** @internal */
|
|
53
|
+
exports.ReconfigureStreamRequest$inboundSchema = z.object({
|
|
54
|
+
stream: z.string(),
|
|
55
|
+
StreamConfig: components.StreamConfig$inboundSchema,
|
|
56
|
+
}).transform((v) => {
|
|
57
|
+
return (0, primitives_js_1.remap)(v, {
|
|
58
|
+
"StreamConfig": "streamConfig",
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
/** @internal */
|
|
62
|
+
exports.ReconfigureStreamRequest$outboundSchema = z.object({
|
|
63
|
+
stream: z.string(),
|
|
64
|
+
streamConfig: components.StreamConfig$outboundSchema,
|
|
65
|
+
}).transform((v) => {
|
|
66
|
+
return (0, primitives_js_1.remap)(v, {
|
|
67
|
+
streamConfig: "StreamConfig",
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
/**
|
|
71
|
+
* @internal
|
|
72
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
73
|
+
*/
|
|
74
|
+
var ReconfigureStreamRequest$;
|
|
75
|
+
(function (ReconfigureStreamRequest$) {
|
|
76
|
+
/** @deprecated use `ReconfigureStreamRequest$inboundSchema` instead. */
|
|
77
|
+
ReconfigureStreamRequest$.inboundSchema = exports.ReconfigureStreamRequest$inboundSchema;
|
|
78
|
+
/** @deprecated use `ReconfigureStreamRequest$outboundSchema` instead. */
|
|
79
|
+
ReconfigureStreamRequest$.outboundSchema = exports.ReconfigureStreamRequest$outboundSchema;
|
|
80
|
+
})(ReconfigureStreamRequest$ || (exports.ReconfigureStreamRequest$ = ReconfigureStreamRequest$ = {}));
|
|
81
|
+
function reconfigureStreamRequestToJSON(reconfigureStreamRequest) {
|
|
82
|
+
return JSON.stringify(exports.ReconfigureStreamRequest$outboundSchema.parse(reconfigureStreamRequest));
|
|
83
|
+
}
|
|
84
|
+
function reconfigureStreamRequestFromJSON(jsonString) {
|
|
85
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ReconfigureStreamRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ReconfigureStreamRequest' from JSON`);
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=reconfigurestream.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reconfigurestream.js","sourceRoot":"","sources":["../../src/models/operations/reconfigurestream.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuEH,wEAMC;AAED,4EAQC;AArFD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAEjD,mEAAqD;AAGxC,QAAA,2BAA2B,GAAG;IACzC;;OAEG;IACH,sCAAsC;CAC9B,CAAC;AAUX,gBAAgB;AACH,QAAA,sCAAsC,GAI/C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,YAAY,EAAE,UAAU,CAAC,0BAA0B;CACpD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,cAAc,EAAE,cAAc;KAC/B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,uCAAuC,GAIhD,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,YAAY,EAAE,UAAU,CAAC,2BAA2B;CACrD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,YAAY,EAAE,cAAc;KAC7B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,yBAAyB,CAOzC;AAPD,WAAiB,yBAAyB;IACxC,wEAAwE;IAC3D,uCAAa,GAAG,8CAAsC,CAAC;IACpE,yEAAyE;IAC5D,wCAAc,GAAG,+CAAuC,CAAC;AAGxE,CAAC,EAPgB,yBAAyB,yCAAzB,yBAAyB,QAOzC;AAED,SAAgB,8BAA8B,CAC5C,wBAAkD;IAElD,OAAO,IAAI,CAAC,SAAS,CACnB,+CAAuC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CACxE,CAAC;AACJ,CAAC;AAED,SAAgB,gCAAgC,CAC9C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,8CAAsC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAClE,sDAAsD,CACvD,CAAC;AACJ,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@s2-dev/streamstore",
|
|
3
|
+
"version": "0.2.5",
|
|
4
|
+
"author": "Speakeasy",
|
|
5
|
+
"main": "./index.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/s2-streamstore/s2-sdk-typescript.git"
|
|
10
|
+
},
|
|
11
|
+
"scripts": {
|
|
12
|
+
"lint": "eslint --max-warnings=0 src",
|
|
13
|
+
"build": "tsc",
|
|
14
|
+
"prepublishOnly": "npm run build"
|
|
15
|
+
},
|
|
16
|
+
"peerDependencies": {
|
|
17
|
+
"zod": ">= 3"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"@types/jsonpath": "^0.2.4",
|
|
21
|
+
"@typescript-eslint/eslint-plugin": "^7.7.1",
|
|
22
|
+
"@typescript-eslint/parser": "^7.7.1",
|
|
23
|
+
"eslint": "^8.57.0",
|
|
24
|
+
"eslint-import-resolver-typescript": "^3.6.1",
|
|
25
|
+
"eslint-plugin-import": "^2.29.1",
|
|
26
|
+
"typescript": "^5.4.5",
|
|
27
|
+
"zod": "^3.23.4"
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"jsonpath": "^1.1.1"
|
|
31
|
+
}
|
|
32
|
+
}
|
package/sdk/account.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
|
+
import * as components from "../models/components/index.js";
|
|
3
|
+
import * as operations from "../models/operations/index.js";
|
|
4
|
+
import { PageIterator } from "../types/operations.js";
|
|
5
|
+
export declare class Account extends ClientSDK {
|
|
6
|
+
/**
|
|
7
|
+
* List basins.
|
|
8
|
+
*/
|
|
9
|
+
listBasins(request: operations.ListBasinsRequest, options?: RequestOptions): Promise<PageIterator<operations.ListBasinsResponse, {
|
|
10
|
+
cursor: string;
|
|
11
|
+
}>>;
|
|
12
|
+
/**
|
|
13
|
+
* Get basin configuration.
|
|
14
|
+
*/
|
|
15
|
+
getBasinConfig(request: operations.GetBasinConfigRequest, options?: RequestOptions): Promise<components.BasinConfig>;
|
|
16
|
+
/**
|
|
17
|
+
* Create a new basin.
|
|
18
|
+
*/
|
|
19
|
+
createBasin(request: operations.CreateBasinRequest, options?: RequestOptions): Promise<components.BasinInfo>;
|
|
20
|
+
/**
|
|
21
|
+
* Delete a basin.
|
|
22
|
+
*/
|
|
23
|
+
deleteBasin(request: operations.DeleteBasinRequest, options?: RequestOptions): Promise<void>;
|
|
24
|
+
/**
|
|
25
|
+
* Update basin configuration.
|
|
26
|
+
*/
|
|
27
|
+
reconfigureBasin(request: operations.ReconfigureBasinRequest, options?: RequestOptions): Promise<components.BasinConfig>;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=account.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../src/sdk/account.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,YAAY,EAAwB,MAAM,wBAAwB,CAAC;AAE5E,qBAAa,OAAQ,SAAQ,SAAS;IACpC;;OAEG;IACG,UAAU,CACd,OAAO,EAAE,UAAU,CAAC,iBAAiB,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,YAAY,CAAC,UAAU,CAAC,kBAAkB,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAQ3E;;OAEG;IACG,cAAc,CAClB,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC;IAQlC;;OAEG;IACG,WAAW,CACf,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC;IAQhC;;OAEG;IACG,WAAW,CACf,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,IAAI,CAAC;IAQhB;;OAEG;IACG,gBAAgB,CACpB,OAAO,EAAE,UAAU,CAAC,uBAAuB,EAC3C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC;CAOnC"}
|
package/sdk/account.js
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Account = void 0;
|
|
7
|
+
const accountCreateBasin_js_1 = require("../funcs/accountCreateBasin.js");
|
|
8
|
+
const accountDeleteBasin_js_1 = require("../funcs/accountDeleteBasin.js");
|
|
9
|
+
const accountGetBasinConfig_js_1 = require("../funcs/accountGetBasinConfig.js");
|
|
10
|
+
const accountListBasins_js_1 = require("../funcs/accountListBasins.js");
|
|
11
|
+
const accountReconfigureBasin_js_1 = require("../funcs/accountReconfigureBasin.js");
|
|
12
|
+
const sdks_js_1 = require("../lib/sdks.js");
|
|
13
|
+
const fp_js_1 = require("../types/fp.js");
|
|
14
|
+
const operations_js_1 = require("../types/operations.js");
|
|
15
|
+
class Account extends sdks_js_1.ClientSDK {
|
|
16
|
+
/**
|
|
17
|
+
* List basins.
|
|
18
|
+
*/
|
|
19
|
+
async listBasins(request, options) {
|
|
20
|
+
return (0, operations_js_1.unwrapResultIterator)((0, accountListBasins_js_1.accountListBasins)(this, request, options));
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Get basin configuration.
|
|
24
|
+
*/
|
|
25
|
+
async getBasinConfig(request, options) {
|
|
26
|
+
return (0, fp_js_1.unwrapAsync)((0, accountGetBasinConfig_js_1.accountGetBasinConfig)(this, request, options));
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Create a new basin.
|
|
30
|
+
*/
|
|
31
|
+
async createBasin(request, options) {
|
|
32
|
+
return (0, fp_js_1.unwrapAsync)((0, accountCreateBasin_js_1.accountCreateBasin)(this, request, options));
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Delete a basin.
|
|
36
|
+
*/
|
|
37
|
+
async deleteBasin(request, options) {
|
|
38
|
+
return (0, fp_js_1.unwrapAsync)((0, accountDeleteBasin_js_1.accountDeleteBasin)(this, request, options));
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Update basin configuration.
|
|
42
|
+
*/
|
|
43
|
+
async reconfigureBasin(request, options) {
|
|
44
|
+
return (0, fp_js_1.unwrapAsync)((0, accountReconfigureBasin_js_1.accountReconfigureBasin)(this, request, options));
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.Account = Account;
|
|
48
|
+
//# sourceMappingURL=account.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account.js","sourceRoot":"","sources":["../src/sdk/account.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,0EAAoE;AACpE,0EAAoE;AACpE,gFAA0E;AAC1E,wEAAkE;AAClE,oFAA8E;AAC9E,4CAA2D;AAG3D,0CAA6C;AAC7C,0DAA4E;AAE5E,MAAa,OAAQ,SAAQ,mBAAS;IACpC;;OAEG;IACH,KAAK,CAAC,UAAU,CACd,OAAqC,EACrC,OAAwB;QAExB,OAAO,IAAA,oCAAoB,EAAC,IAAA,wCAAiB,EAC3C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,cAAc,CAClB,OAAyC,EACzC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gDAAqB,EACtC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,WAAW,CACf,OAAsC,EACtC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0CAAkB,EACnC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,WAAW,CACf,OAAsC,EACtC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0CAAkB,EACnC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,gBAAgB,CACpB,OAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oDAAuB,EACxC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAtED,0BAsEC"}
|
package/sdk/basin.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
|
+
import * as components from "../models/components/index.js";
|
|
3
|
+
import * as operations from "../models/operations/index.js";
|
|
4
|
+
import { PageIterator } from "../types/operations.js";
|
|
5
|
+
export declare class Basin extends ClientSDK {
|
|
6
|
+
/**
|
|
7
|
+
* List Streams.
|
|
8
|
+
*/
|
|
9
|
+
listStreams(request: operations.ListStreamsRequest, options?: RequestOptions): Promise<PageIterator<operations.ListStreamsResponse, {
|
|
10
|
+
cursor: string;
|
|
11
|
+
}>>;
|
|
12
|
+
/**
|
|
13
|
+
* Get stream configuration.
|
|
14
|
+
*/
|
|
15
|
+
getStreamConfig(request: operations.GetStreamConfigRequest, options?: RequestOptions): Promise<components.StreamConfig>;
|
|
16
|
+
/**
|
|
17
|
+
* Create a stream.
|
|
18
|
+
*/
|
|
19
|
+
createStream(request: operations.CreateStreamRequest, options?: RequestOptions): Promise<components.StreamInfo>;
|
|
20
|
+
/**
|
|
21
|
+
* Delete a stream.
|
|
22
|
+
*/
|
|
23
|
+
deleteStream(request: operations.DeleteStreamRequest, options?: RequestOptions): Promise<void>;
|
|
24
|
+
/**
|
|
25
|
+
* Update stream configuration.
|
|
26
|
+
*/
|
|
27
|
+
reconfigureStream(request: operations.ReconfigureStreamRequest, options?: RequestOptions): Promise<components.StreamConfig>;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=basin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"basin.d.ts","sourceRoot":"","sources":["../src/sdk/basin.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,YAAY,EAAwB,MAAM,wBAAwB,CAAC;AAE5E,qBAAa,KAAM,SAAQ,SAAS;IAClC;;OAEG;IACG,WAAW,CACf,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,YAAY,CAAC,UAAU,CAAC,mBAAmB,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAQ5E;;OAEG;IACG,eAAe,CACnB,OAAO,EAAE,UAAU,CAAC,sBAAsB,EAC1C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,YAAY,CAAC;IAQnC;;OAEG;IACG,YAAY,CAChB,OAAO,EAAE,UAAU,CAAC,mBAAmB,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,UAAU,CAAC;IAQjC;;OAEG;IACG,YAAY,CAChB,OAAO,EAAE,UAAU,CAAC,mBAAmB,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,IAAI,CAAC;IAQhB;;OAEG;IACG,iBAAiB,CACrB,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,YAAY,CAAC;CAOpC"}
|