@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,177 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Explicit cell assignment, if it is owned by the account.
|
|
12
|
+
*/
|
|
13
|
+
export type Two = {
|
|
14
|
+
/**
|
|
15
|
+
* Explicit cell assignment, if it is owned by the account.
|
|
16
|
+
*/
|
|
17
|
+
cell: string;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Basin scope. It should be formatted as "{cloud}:{region}", e.g. "aws:us-east-1".
|
|
22
|
+
*/
|
|
23
|
+
export type Assignment1 = {
|
|
24
|
+
/**
|
|
25
|
+
* Basin scope. It should be formatted as "{cloud}:{region}", e.g. "aws:us-east-1".
|
|
26
|
+
*/
|
|
27
|
+
scope: string;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Assignment of the basin to a cloud and region, or an explicit cell.
|
|
32
|
+
*/
|
|
33
|
+
export type Assignment = Assignment1 | Two;
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export const Two$inboundSchema: z.ZodType<Two, z.ZodTypeDef, unknown> = z
|
|
37
|
+
.object({
|
|
38
|
+
cell: z.string(),
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export type Two$Outbound = {
|
|
43
|
+
cell: string;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const Two$outboundSchema: z.ZodType<Two$Outbound, z.ZodTypeDef, Two> = z
|
|
48
|
+
.object({
|
|
49
|
+
cell: z.string(),
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @internal
|
|
54
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
55
|
+
*/
|
|
56
|
+
export namespace Two$ {
|
|
57
|
+
/** @deprecated use `Two$inboundSchema` instead. */
|
|
58
|
+
export const inboundSchema = Two$inboundSchema;
|
|
59
|
+
/** @deprecated use `Two$outboundSchema` instead. */
|
|
60
|
+
export const outboundSchema = Two$outboundSchema;
|
|
61
|
+
/** @deprecated use `Two$Outbound` instead. */
|
|
62
|
+
export type Outbound = Two$Outbound;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function twoToJSON(two: Two): string {
|
|
66
|
+
return JSON.stringify(Two$outboundSchema.parse(two));
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function twoFromJSON(
|
|
70
|
+
jsonString: string,
|
|
71
|
+
): SafeParseResult<Two, SDKValidationError> {
|
|
72
|
+
return safeParse(
|
|
73
|
+
jsonString,
|
|
74
|
+
(x) => Two$inboundSchema.parse(JSON.parse(x)),
|
|
75
|
+
`Failed to parse 'Two' from JSON`,
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/** @internal */
|
|
80
|
+
export const Assignment1$inboundSchema: z.ZodType<
|
|
81
|
+
Assignment1,
|
|
82
|
+
z.ZodTypeDef,
|
|
83
|
+
unknown
|
|
84
|
+
> = z.object({
|
|
85
|
+
scope: z.string(),
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
/** @internal */
|
|
89
|
+
export type Assignment1$Outbound = {
|
|
90
|
+
scope: string;
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
/** @internal */
|
|
94
|
+
export const Assignment1$outboundSchema: z.ZodType<
|
|
95
|
+
Assignment1$Outbound,
|
|
96
|
+
z.ZodTypeDef,
|
|
97
|
+
Assignment1
|
|
98
|
+
> = z.object({
|
|
99
|
+
scope: z.string(),
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* @internal
|
|
104
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
105
|
+
*/
|
|
106
|
+
export namespace Assignment1$ {
|
|
107
|
+
/** @deprecated use `Assignment1$inboundSchema` instead. */
|
|
108
|
+
export const inboundSchema = Assignment1$inboundSchema;
|
|
109
|
+
/** @deprecated use `Assignment1$outboundSchema` instead. */
|
|
110
|
+
export const outboundSchema = Assignment1$outboundSchema;
|
|
111
|
+
/** @deprecated use `Assignment1$Outbound` instead. */
|
|
112
|
+
export type Outbound = Assignment1$Outbound;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function assignment1ToJSON(assignment1: Assignment1): string {
|
|
116
|
+
return JSON.stringify(Assignment1$outboundSchema.parse(assignment1));
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export function assignment1FromJSON(
|
|
120
|
+
jsonString: string,
|
|
121
|
+
): SafeParseResult<Assignment1, SDKValidationError> {
|
|
122
|
+
return safeParse(
|
|
123
|
+
jsonString,
|
|
124
|
+
(x) => Assignment1$inboundSchema.parse(JSON.parse(x)),
|
|
125
|
+
`Failed to parse 'Assignment1' from JSON`,
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/** @internal */
|
|
130
|
+
export const Assignment$inboundSchema: z.ZodType<
|
|
131
|
+
Assignment,
|
|
132
|
+
z.ZodTypeDef,
|
|
133
|
+
unknown
|
|
134
|
+
> = z.union([
|
|
135
|
+
z.lazy(() => Assignment1$inboundSchema),
|
|
136
|
+
z.lazy(() => Two$inboundSchema),
|
|
137
|
+
]);
|
|
138
|
+
|
|
139
|
+
/** @internal */
|
|
140
|
+
export type Assignment$Outbound = Assignment1$Outbound | Two$Outbound;
|
|
141
|
+
|
|
142
|
+
/** @internal */
|
|
143
|
+
export const Assignment$outboundSchema: z.ZodType<
|
|
144
|
+
Assignment$Outbound,
|
|
145
|
+
z.ZodTypeDef,
|
|
146
|
+
Assignment
|
|
147
|
+
> = z.union([
|
|
148
|
+
z.lazy(() => Assignment1$outboundSchema),
|
|
149
|
+
z.lazy(() => Two$outboundSchema),
|
|
150
|
+
]);
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* @internal
|
|
154
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
155
|
+
*/
|
|
156
|
+
export namespace Assignment$ {
|
|
157
|
+
/** @deprecated use `Assignment$inboundSchema` instead. */
|
|
158
|
+
export const inboundSchema = Assignment$inboundSchema;
|
|
159
|
+
/** @deprecated use `Assignment$outboundSchema` instead. */
|
|
160
|
+
export const outboundSchema = Assignment$outboundSchema;
|
|
161
|
+
/** @deprecated use `Assignment$Outbound` instead. */
|
|
162
|
+
export type Outbound = Assignment$Outbound;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export function assignmentToJSON(assignment: Assignment): string {
|
|
166
|
+
return JSON.stringify(Assignment$outboundSchema.parse(assignment));
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export function assignmentFromJSON(
|
|
170
|
+
jsonString: string,
|
|
171
|
+
): SafeParseResult<Assignment, SDKValidationError> {
|
|
172
|
+
return safeParse(
|
|
173
|
+
jsonString,
|
|
174
|
+
(x) => Assignment$inboundSchema.parse(JSON.parse(x)),
|
|
175
|
+
`Failed to parse 'Assignment' from JSON`,
|
|
176
|
+
);
|
|
177
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
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 { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
StreamConfig,
|
|
12
|
+
StreamConfig$inboundSchema,
|
|
13
|
+
StreamConfig$Outbound,
|
|
14
|
+
StreamConfig$outboundSchema,
|
|
15
|
+
} from "./streamconfig.js";
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Basin configuration.
|
|
19
|
+
*/
|
|
20
|
+
export type BasinConfig = {
|
|
21
|
+
defaultStreamConfig?: StreamConfig | null | undefined;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const BasinConfig$inboundSchema: z.ZodType<
|
|
26
|
+
BasinConfig,
|
|
27
|
+
z.ZodTypeDef,
|
|
28
|
+
unknown
|
|
29
|
+
> = z.object({
|
|
30
|
+
default_stream_config: z.nullable(StreamConfig$inboundSchema).optional(),
|
|
31
|
+
}).transform((v) => {
|
|
32
|
+
return remap$(v, {
|
|
33
|
+
"default_stream_config": "defaultStreamConfig",
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export type BasinConfig$Outbound = {
|
|
39
|
+
default_stream_config?: StreamConfig$Outbound | null | undefined;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const BasinConfig$outboundSchema: z.ZodType<
|
|
44
|
+
BasinConfig$Outbound,
|
|
45
|
+
z.ZodTypeDef,
|
|
46
|
+
BasinConfig
|
|
47
|
+
> = z.object({
|
|
48
|
+
defaultStreamConfig: z.nullable(StreamConfig$outboundSchema).optional(),
|
|
49
|
+
}).transform((v) => {
|
|
50
|
+
return remap$(v, {
|
|
51
|
+
defaultStreamConfig: "default_stream_config",
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @internal
|
|
57
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
58
|
+
*/
|
|
59
|
+
export namespace BasinConfig$ {
|
|
60
|
+
/** @deprecated use `BasinConfig$inboundSchema` instead. */
|
|
61
|
+
export const inboundSchema = BasinConfig$inboundSchema;
|
|
62
|
+
/** @deprecated use `BasinConfig$outboundSchema` instead. */
|
|
63
|
+
export const outboundSchema = BasinConfig$outboundSchema;
|
|
64
|
+
/** @deprecated use `BasinConfig$Outbound` instead. */
|
|
65
|
+
export type Outbound = BasinConfig$Outbound;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function basinConfigToJSON(basinConfig: BasinConfig): string {
|
|
69
|
+
return JSON.stringify(BasinConfig$outboundSchema.parse(basinConfig));
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function basinConfigFromJSON(
|
|
73
|
+
jsonString: string,
|
|
74
|
+
): SafeParseResult<BasinConfig, SDKValidationError> {
|
|
75
|
+
return safeParse(
|
|
76
|
+
jsonString,
|
|
77
|
+
(x) => BasinConfig$inboundSchema.parse(JSON.parse(x)),
|
|
78
|
+
`Failed to parse 'BasinConfig' from JSON`,
|
|
79
|
+
);
|
|
80
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
BasinState,
|
|
11
|
+
BasinState$inboundSchema,
|
|
12
|
+
BasinState$outboundSchema,
|
|
13
|
+
} from "./basinstate.js";
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Basin information.
|
|
17
|
+
*/
|
|
18
|
+
export type BasinInfo = {
|
|
19
|
+
/**
|
|
20
|
+
* Cell assignment.
|
|
21
|
+
*/
|
|
22
|
+
cell: string;
|
|
23
|
+
/**
|
|
24
|
+
* Basin name.
|
|
25
|
+
*/
|
|
26
|
+
name: string;
|
|
27
|
+
/**
|
|
28
|
+
* Basin scope.
|
|
29
|
+
*/
|
|
30
|
+
scope: string;
|
|
31
|
+
/**
|
|
32
|
+
* Current state of the basin.
|
|
33
|
+
*/
|
|
34
|
+
state: BasinState;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const BasinInfo$inboundSchema: z.ZodType<
|
|
39
|
+
BasinInfo,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
unknown
|
|
42
|
+
> = z.object({
|
|
43
|
+
cell: z.string(),
|
|
44
|
+
name: z.string(),
|
|
45
|
+
scope: z.string(),
|
|
46
|
+
state: BasinState$inboundSchema,
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export type BasinInfo$Outbound = {
|
|
51
|
+
cell: string;
|
|
52
|
+
name: string;
|
|
53
|
+
scope: string;
|
|
54
|
+
state: string;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/** @internal */
|
|
58
|
+
export const BasinInfo$outboundSchema: z.ZodType<
|
|
59
|
+
BasinInfo$Outbound,
|
|
60
|
+
z.ZodTypeDef,
|
|
61
|
+
BasinInfo
|
|
62
|
+
> = z.object({
|
|
63
|
+
cell: z.string(),
|
|
64
|
+
name: z.string(),
|
|
65
|
+
scope: z.string(),
|
|
66
|
+
state: BasinState$outboundSchema,
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* @internal
|
|
71
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
72
|
+
*/
|
|
73
|
+
export namespace BasinInfo$ {
|
|
74
|
+
/** @deprecated use `BasinInfo$inboundSchema` instead. */
|
|
75
|
+
export const inboundSchema = BasinInfo$inboundSchema;
|
|
76
|
+
/** @deprecated use `BasinInfo$outboundSchema` instead. */
|
|
77
|
+
export const outboundSchema = BasinInfo$outboundSchema;
|
|
78
|
+
/** @deprecated use `BasinInfo$Outbound` instead. */
|
|
79
|
+
export type Outbound = BasinInfo$Outbound;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function basinInfoToJSON(basinInfo: BasinInfo): string {
|
|
83
|
+
return JSON.stringify(BasinInfo$outboundSchema.parse(basinInfo));
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function basinInfoFromJSON(
|
|
87
|
+
jsonString: string,
|
|
88
|
+
): SafeParseResult<BasinInfo, SDKValidationError> {
|
|
89
|
+
return safeParse(
|
|
90
|
+
jsonString,
|
|
91
|
+
(x) => BasinInfo$inboundSchema.parse(JSON.parse(x)),
|
|
92
|
+
`Failed to parse 'BasinInfo' from JSON`,
|
|
93
|
+
);
|
|
94
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Current state of the basin.
|
|
10
|
+
*/
|
|
11
|
+
export const BasinState = {
|
|
12
|
+
Unspecified: "unspecified",
|
|
13
|
+
Active: "active",
|
|
14
|
+
Creating: "creating",
|
|
15
|
+
Deleting: "deleting",
|
|
16
|
+
} as const;
|
|
17
|
+
/**
|
|
18
|
+
* Current state of the basin.
|
|
19
|
+
*/
|
|
20
|
+
export type BasinState = ClosedEnum<typeof BasinState>;
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const BasinState$inboundSchema: z.ZodNativeEnum<typeof BasinState> = z
|
|
24
|
+
.nativeEnum(BasinState);
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const BasinState$outboundSchema: z.ZodNativeEnum<typeof BasinState> =
|
|
28
|
+
BasinState$inboundSchema;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @internal
|
|
32
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
33
|
+
*/
|
|
34
|
+
export namespace BasinState$ {
|
|
35
|
+
/** @deprecated use `BasinState$inboundSchema` instead. */
|
|
36
|
+
export const inboundSchema = BasinState$inboundSchema;
|
|
37
|
+
/** @deprecated use `BasinState$outboundSchema` instead. */
|
|
38
|
+
export const outboundSchema = BasinState$outboundSchema;
|
|
39
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
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 { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Check tail response.
|
|
13
|
+
*/
|
|
14
|
+
export type CheckTailResponse = {
|
|
15
|
+
/**
|
|
16
|
+
* Sequence number that will be assigned to the next record on the stream.
|
|
17
|
+
*/
|
|
18
|
+
nextSeqNum: number;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const CheckTailResponse$inboundSchema: z.ZodType<
|
|
23
|
+
CheckTailResponse,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
unknown
|
|
26
|
+
> = z.object({
|
|
27
|
+
next_seq_num: z.number().int(),
|
|
28
|
+
}).transform((v) => {
|
|
29
|
+
return remap$(v, {
|
|
30
|
+
"next_seq_num": "nextSeqNum",
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export type CheckTailResponse$Outbound = {
|
|
36
|
+
next_seq_num: number;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const CheckTailResponse$outboundSchema: z.ZodType<
|
|
41
|
+
CheckTailResponse$Outbound,
|
|
42
|
+
z.ZodTypeDef,
|
|
43
|
+
CheckTailResponse
|
|
44
|
+
> = z.object({
|
|
45
|
+
nextSeqNum: z.number().int(),
|
|
46
|
+
}).transform((v) => {
|
|
47
|
+
return remap$(v, {
|
|
48
|
+
nextSeqNum: "next_seq_num",
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @internal
|
|
54
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
55
|
+
*/
|
|
56
|
+
export namespace CheckTailResponse$ {
|
|
57
|
+
/** @deprecated use `CheckTailResponse$inboundSchema` instead. */
|
|
58
|
+
export const inboundSchema = CheckTailResponse$inboundSchema;
|
|
59
|
+
/** @deprecated use `CheckTailResponse$outboundSchema` instead. */
|
|
60
|
+
export const outboundSchema = CheckTailResponse$outboundSchema;
|
|
61
|
+
/** @deprecated use `CheckTailResponse$Outbound` instead. */
|
|
62
|
+
export type Outbound = CheckTailResponse$Outbound;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function checkTailResponseToJSON(
|
|
66
|
+
checkTailResponse: CheckTailResponse,
|
|
67
|
+
): string {
|
|
68
|
+
return JSON.stringify(
|
|
69
|
+
CheckTailResponse$outboundSchema.parse(checkTailResponse),
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function checkTailResponseFromJSON(
|
|
74
|
+
jsonString: string,
|
|
75
|
+
): SafeParseResult<CheckTailResponse, SDKValidationError> {
|
|
76
|
+
return safeParse(
|
|
77
|
+
jsonString,
|
|
78
|
+
(x) => CheckTailResponse$inboundSchema.parse(JSON.parse(x)),
|
|
79
|
+
`Failed to parse 'CheckTailResponse' from JSON`,
|
|
80
|
+
);
|
|
81
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
Assignment,
|
|
11
|
+
Assignment$inboundSchema,
|
|
12
|
+
Assignment$Outbound,
|
|
13
|
+
Assignment$outboundSchema,
|
|
14
|
+
} from "./assignment.js";
|
|
15
|
+
import {
|
|
16
|
+
BasinConfig,
|
|
17
|
+
BasinConfig$inboundSchema,
|
|
18
|
+
BasinConfig$Outbound,
|
|
19
|
+
BasinConfig$outboundSchema,
|
|
20
|
+
} from "./basinconfig.js";
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Create basin request.
|
|
24
|
+
*/
|
|
25
|
+
export type CreateBasinRequest = {
|
|
26
|
+
assignment?: Assignment | null | undefined;
|
|
27
|
+
config?: BasinConfig | null | undefined;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const CreateBasinRequest$inboundSchema: z.ZodType<
|
|
32
|
+
CreateBasinRequest,
|
|
33
|
+
z.ZodTypeDef,
|
|
34
|
+
unknown
|
|
35
|
+
> = z.object({
|
|
36
|
+
assignment: z.nullable(Assignment$inboundSchema).optional(),
|
|
37
|
+
config: z.nullable(BasinConfig$inboundSchema).optional(),
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export type CreateBasinRequest$Outbound = {
|
|
42
|
+
assignment?: Assignment$Outbound | null | undefined;
|
|
43
|
+
config?: BasinConfig$Outbound | null | undefined;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const CreateBasinRequest$outboundSchema: z.ZodType<
|
|
48
|
+
CreateBasinRequest$Outbound,
|
|
49
|
+
z.ZodTypeDef,
|
|
50
|
+
CreateBasinRequest
|
|
51
|
+
> = z.object({
|
|
52
|
+
assignment: z.nullable(Assignment$outboundSchema).optional(),
|
|
53
|
+
config: z.nullable(BasinConfig$outboundSchema).optional(),
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @internal
|
|
58
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
59
|
+
*/
|
|
60
|
+
export namespace CreateBasinRequest$ {
|
|
61
|
+
/** @deprecated use `CreateBasinRequest$inboundSchema` instead. */
|
|
62
|
+
export const inboundSchema = CreateBasinRequest$inboundSchema;
|
|
63
|
+
/** @deprecated use `CreateBasinRequest$outboundSchema` instead. */
|
|
64
|
+
export const outboundSchema = CreateBasinRequest$outboundSchema;
|
|
65
|
+
/** @deprecated use `CreateBasinRequest$Outbound` instead. */
|
|
66
|
+
export type Outbound = CreateBasinRequest$Outbound;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function createBasinRequestToJSON(
|
|
70
|
+
createBasinRequest: CreateBasinRequest,
|
|
71
|
+
): string {
|
|
72
|
+
return JSON.stringify(
|
|
73
|
+
CreateBasinRequest$outboundSchema.parse(createBasinRequest),
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function createBasinRequestFromJSON(
|
|
78
|
+
jsonString: string,
|
|
79
|
+
): SafeParseResult<CreateBasinRequest, SDKValidationError> {
|
|
80
|
+
return safeParse(
|
|
81
|
+
jsonString,
|
|
82
|
+
(x) => CreateBasinRequest$inboundSchema.parse(JSON.parse(x)),
|
|
83
|
+
`Failed to parse 'CreateBasinRequest' from JSON`,
|
|
84
|
+
);
|
|
85
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
StreamConfig,
|
|
11
|
+
StreamConfig$inboundSchema,
|
|
12
|
+
StreamConfig$Outbound,
|
|
13
|
+
StreamConfig$outboundSchema,
|
|
14
|
+
} from "./streamconfig.js";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Create stream request.
|
|
18
|
+
*/
|
|
19
|
+
export type CreateStreamRequest = {
|
|
20
|
+
config?: StreamConfig | null | undefined;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const CreateStreamRequest$inboundSchema: z.ZodType<
|
|
25
|
+
CreateStreamRequest,
|
|
26
|
+
z.ZodTypeDef,
|
|
27
|
+
unknown
|
|
28
|
+
> = z.object({
|
|
29
|
+
config: z.nullable(StreamConfig$inboundSchema).optional(),
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export type CreateStreamRequest$Outbound = {
|
|
34
|
+
config?: StreamConfig$Outbound | null | undefined;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const CreateStreamRequest$outboundSchema: z.ZodType<
|
|
39
|
+
CreateStreamRequest$Outbound,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
CreateStreamRequest
|
|
42
|
+
> = z.object({
|
|
43
|
+
config: z.nullable(StreamConfig$outboundSchema).optional(),
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @internal
|
|
48
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
49
|
+
*/
|
|
50
|
+
export namespace CreateStreamRequest$ {
|
|
51
|
+
/** @deprecated use `CreateStreamRequest$inboundSchema` instead. */
|
|
52
|
+
export const inboundSchema = CreateStreamRequest$inboundSchema;
|
|
53
|
+
/** @deprecated use `CreateStreamRequest$outboundSchema` instead. */
|
|
54
|
+
export const outboundSchema = CreateStreamRequest$outboundSchema;
|
|
55
|
+
/** @deprecated use `CreateStreamRequest$Outbound` instead. */
|
|
56
|
+
export type Outbound = CreateStreamRequest$Outbound;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function createStreamRequestToJSON(
|
|
60
|
+
createStreamRequest: CreateStreamRequest,
|
|
61
|
+
): string {
|
|
62
|
+
return JSON.stringify(
|
|
63
|
+
CreateStreamRequest$outboundSchema.parse(createStreamRequest),
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function createStreamRequestFromJSON(
|
|
68
|
+
jsonString: string,
|
|
69
|
+
): SafeParseResult<CreateStreamRequest, SDKValidationError> {
|
|
70
|
+
return safeParse(
|
|
71
|
+
jsonString,
|
|
72
|
+
(x) => CreateStreamRequest$inboundSchema.parse(JSON.parse(x)),
|
|
73
|
+
`Failed to parse 'CreateStreamRequest' from JSON`,
|
|
74
|
+
);
|
|
75
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Headers add structured information to a record as name-value pairs.
|
|
12
|
+
*/
|
|
13
|
+
export type Header = {
|
|
14
|
+
/**
|
|
15
|
+
* Header name blob.
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* The name cannot be empty, with the exception of an S2 command record.
|
|
19
|
+
*/
|
|
20
|
+
name: string;
|
|
21
|
+
/**
|
|
22
|
+
* Header value blob.
|
|
23
|
+
*/
|
|
24
|
+
value: string;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const Header$inboundSchema: z.ZodType<Header, z.ZodTypeDef, unknown> = z
|
|
29
|
+
.object({
|
|
30
|
+
name: z.string(),
|
|
31
|
+
value: z.string(),
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export type Header$Outbound = {
|
|
36
|
+
name: string;
|
|
37
|
+
value: string;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const Header$outboundSchema: z.ZodType<
|
|
42
|
+
Header$Outbound,
|
|
43
|
+
z.ZodTypeDef,
|
|
44
|
+
Header
|
|
45
|
+
> = z.object({
|
|
46
|
+
name: z.string(),
|
|
47
|
+
value: z.string(),
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @internal
|
|
52
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
53
|
+
*/
|
|
54
|
+
export namespace Header$ {
|
|
55
|
+
/** @deprecated use `Header$inboundSchema` instead. */
|
|
56
|
+
export const inboundSchema = Header$inboundSchema;
|
|
57
|
+
/** @deprecated use `Header$outboundSchema` instead. */
|
|
58
|
+
export const outboundSchema = Header$outboundSchema;
|
|
59
|
+
/** @deprecated use `Header$Outbound` instead. */
|
|
60
|
+
export type Outbound = Header$Outbound;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function headerToJSON(header: Header): string {
|
|
64
|
+
return JSON.stringify(Header$outboundSchema.parse(header));
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function headerFromJSON(
|
|
68
|
+
jsonString: string,
|
|
69
|
+
): SafeParseResult<Header, SDKValidationError> {
|
|
70
|
+
return safeParse(
|
|
71
|
+
jsonString,
|
|
72
|
+
(x) => Header$inboundSchema.parse(JSON.parse(x)),
|
|
73
|
+
`Failed to parse 'Header' from JSON`,
|
|
74
|
+
);
|
|
75
|
+
}
|