@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,115 @@
|
|
|
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.SDKValidationError = void 0;
|
|
40
|
+
exports.formatZodError = formatZodError;
|
|
41
|
+
const z = __importStar(require("zod"));
|
|
42
|
+
class SDKValidationError extends Error {
|
|
43
|
+
constructor(message, cause, rawValue) {
|
|
44
|
+
super(`${message}: ${cause}`);
|
|
45
|
+
this.name = "SDKValidationError";
|
|
46
|
+
this.cause = cause;
|
|
47
|
+
this.rawValue = rawValue;
|
|
48
|
+
this.rawMessage = message;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Return a pretty-formatted error message if the underlying validation error
|
|
52
|
+
* is a ZodError or some other recognized error type, otherwise return the
|
|
53
|
+
* default error message.
|
|
54
|
+
*/
|
|
55
|
+
pretty() {
|
|
56
|
+
if (this.cause instanceof z.ZodError) {
|
|
57
|
+
return `${this.rawMessage}\n${formatZodError(this.cause)}`;
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
return this.toString();
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
exports.SDKValidationError = SDKValidationError;
|
|
65
|
+
function formatZodError(err, level = 0) {
|
|
66
|
+
let pre = " ".repeat(level);
|
|
67
|
+
pre = level > 0 ? `│${pre}` : pre;
|
|
68
|
+
pre += " ".repeat(level);
|
|
69
|
+
let message = "";
|
|
70
|
+
const append = (str) => (message += `\n${pre}${str}`);
|
|
71
|
+
const len = err.issues.length;
|
|
72
|
+
const headline = len === 1 ? `${len} issue found` : `${len} issues found`;
|
|
73
|
+
if (len) {
|
|
74
|
+
append(`┌ ${headline}:`);
|
|
75
|
+
}
|
|
76
|
+
for (const issue of err.issues) {
|
|
77
|
+
let path = issue.path.join(".");
|
|
78
|
+
path = path ? `<root>.${path}` : "<root>";
|
|
79
|
+
append(`│ • [${path}]: ${issue.message} (${issue.code})`);
|
|
80
|
+
switch (issue.code) {
|
|
81
|
+
case "invalid_literal":
|
|
82
|
+
case "invalid_type": {
|
|
83
|
+
append(`│ Want: ${issue.expected}`);
|
|
84
|
+
append(`│ Got: ${issue.received}`);
|
|
85
|
+
break;
|
|
86
|
+
}
|
|
87
|
+
case "unrecognized_keys": {
|
|
88
|
+
append(`│ Keys: ${issue.keys.join(", ")}`);
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
case "invalid_enum_value": {
|
|
92
|
+
append(`│ Allowed: ${issue.options.join(", ")}`);
|
|
93
|
+
append(`│ Got: ${issue.received}`);
|
|
94
|
+
break;
|
|
95
|
+
}
|
|
96
|
+
case "invalid_union_discriminator": {
|
|
97
|
+
append(`│ Allowed: ${issue.options.join(", ")}`);
|
|
98
|
+
break;
|
|
99
|
+
}
|
|
100
|
+
case "invalid_union": {
|
|
101
|
+
const len = issue.unionErrors.length;
|
|
102
|
+
append(`│ ✖︎ Attemped to deserialize into one of ${len} union members:`);
|
|
103
|
+
issue.unionErrors.forEach((err, i) => {
|
|
104
|
+
append(`│ ✖︎ Member ${i + 1} of ${len}`);
|
|
105
|
+
append(`${formatZodError(err, level + 1)}`);
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
if (err.issues.length) {
|
|
111
|
+
append(`└─*`);
|
|
112
|
+
}
|
|
113
|
+
return message.slice(1);
|
|
114
|
+
}
|
|
115
|
+
//# sourceMappingURL=sdkvalidationerror.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sdkvalidationerror.js","sourceRoot":"","sources":["../../src/models/errors/sdkvalidationerror.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCH,wCAyDC;AA5FD,uCAAyB;AAEzB,MAAa,kBAAmB,SAAQ,KAAK;IAW3C,YAAY,OAAe,EAAE,KAAc,EAAE,QAAiB;QAC5D,KAAK,CAAC,GAAG,OAAO,KAAK,KAAK,EAAE,CAAC,CAAC;QAC9B,IAAI,CAAC,IAAI,GAAG,oBAAoB,CAAC;QACjC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC;IAC5B,CAAC;IAED;;;;OAIG;IACI,MAAM;QACX,IAAI,IAAI,CAAC,KAAK,YAAY,CA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CAAC,CAAC,CAAC;YACL,CAAC;QACH,CAAC;IACH,CAAC;IAED,IAAI,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;QACtB,MAAM,CAAC,KAAK,CAAC,CAAC;IAChB,CAAC;IAED,OAAO,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAC1B,CAAC"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
+
import * as components from "../components/index.js";
|
|
5
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
6
|
+
export declare const AppendServerList: readonly ["https://{basin}.b.aws.s2.dev/v1alpha"];
|
|
7
|
+
export declare const Header1: {
|
|
8
|
+
readonly Json: "json";
|
|
9
|
+
readonly JsonBinsafe: "json-binsafe";
|
|
10
|
+
};
|
|
11
|
+
export type Header1 = ClosedEnum<typeof Header1>;
|
|
12
|
+
/**
|
|
13
|
+
* json: utf-8 plaintext data.
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* json-binsafe: base64 encoded binary data.
|
|
17
|
+
*/
|
|
18
|
+
export type HeaderS2Format = Header1;
|
|
19
|
+
export type AppendRequest = {
|
|
20
|
+
/**
|
|
21
|
+
* json: utf-8 plaintext data.
|
|
22
|
+
*
|
|
23
|
+
* @remarks
|
|
24
|
+
* json-binsafe: base64 encoded binary data.
|
|
25
|
+
*/
|
|
26
|
+
s2Format?: Header1 | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Name of the stream.
|
|
29
|
+
*/
|
|
30
|
+
stream: string;
|
|
31
|
+
appendInput: components.AppendInput;
|
|
32
|
+
};
|
|
33
|
+
/** @internal */
|
|
34
|
+
export declare const Header1$inboundSchema: z.ZodNativeEnum<typeof Header1>;
|
|
35
|
+
/** @internal */
|
|
36
|
+
export declare const Header1$outboundSchema: z.ZodNativeEnum<typeof Header1>;
|
|
37
|
+
/**
|
|
38
|
+
* @internal
|
|
39
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
40
|
+
*/
|
|
41
|
+
export declare namespace Header1$ {
|
|
42
|
+
/** @deprecated use `Header1$inboundSchema` instead. */
|
|
43
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
44
|
+
readonly Json: "json";
|
|
45
|
+
readonly JsonBinsafe: "json-binsafe";
|
|
46
|
+
}>;
|
|
47
|
+
/** @deprecated use `Header1$outboundSchema` instead. */
|
|
48
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
49
|
+
readonly Json: "json";
|
|
50
|
+
readonly JsonBinsafe: "json-binsafe";
|
|
51
|
+
}>;
|
|
52
|
+
}
|
|
53
|
+
/** @internal */
|
|
54
|
+
export declare const HeaderS2Format$inboundSchema: z.ZodType<HeaderS2Format, z.ZodTypeDef, unknown>;
|
|
55
|
+
/** @internal */
|
|
56
|
+
export type HeaderS2Format$Outbound = string;
|
|
57
|
+
/** @internal */
|
|
58
|
+
export declare const HeaderS2Format$outboundSchema: z.ZodType<HeaderS2Format$Outbound, z.ZodTypeDef, HeaderS2Format>;
|
|
59
|
+
/**
|
|
60
|
+
* @internal
|
|
61
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
62
|
+
*/
|
|
63
|
+
export declare namespace HeaderS2Format$ {
|
|
64
|
+
/** @deprecated use `HeaderS2Format$inboundSchema` instead. */
|
|
65
|
+
const inboundSchema: z.ZodType<Header1, z.ZodTypeDef, unknown>;
|
|
66
|
+
/** @deprecated use `HeaderS2Format$outboundSchema` instead. */
|
|
67
|
+
const outboundSchema: z.ZodType<string, z.ZodTypeDef, Header1>;
|
|
68
|
+
/** @deprecated use `HeaderS2Format$Outbound` instead. */
|
|
69
|
+
type Outbound = HeaderS2Format$Outbound;
|
|
70
|
+
}
|
|
71
|
+
export declare function headerS2FormatToJSON(headerS2Format: HeaderS2Format): string;
|
|
72
|
+
export declare function headerS2FormatFromJSON(jsonString: string): SafeParseResult<HeaderS2Format, SDKValidationError>;
|
|
73
|
+
/** @internal */
|
|
74
|
+
export declare const AppendRequest$inboundSchema: z.ZodType<AppendRequest, z.ZodTypeDef, unknown>;
|
|
75
|
+
/** @internal */
|
|
76
|
+
export type AppendRequest$Outbound = {
|
|
77
|
+
"s2-format"?: string | undefined;
|
|
78
|
+
stream: string;
|
|
79
|
+
AppendInput: components.AppendInput$Outbound;
|
|
80
|
+
};
|
|
81
|
+
/** @internal */
|
|
82
|
+
export declare const AppendRequest$outboundSchema: z.ZodType<AppendRequest$Outbound, z.ZodTypeDef, AppendRequest>;
|
|
83
|
+
/**
|
|
84
|
+
* @internal
|
|
85
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
86
|
+
*/
|
|
87
|
+
export declare namespace AppendRequest$ {
|
|
88
|
+
/** @deprecated use `AppendRequest$inboundSchema` instead. */
|
|
89
|
+
const inboundSchema: z.ZodType<AppendRequest, z.ZodTypeDef, unknown>;
|
|
90
|
+
/** @deprecated use `AppendRequest$outboundSchema` instead. */
|
|
91
|
+
const outboundSchema: z.ZodType<AppendRequest$Outbound, z.ZodTypeDef, AppendRequest>;
|
|
92
|
+
/** @deprecated use `AppendRequest$Outbound` instead. */
|
|
93
|
+
type Outbound = AppendRequest$Outbound;
|
|
94
|
+
}
|
|
95
|
+
export declare function appendRequestToJSON(appendRequest: AppendRequest): string;
|
|
96
|
+
export declare function appendRequestFromJSON(jsonString: string): SafeParseResult<AppendRequest, SDKValidationError>;
|
|
97
|
+
//# sourceMappingURL=append.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"append.d.ts","sourceRoot":"","sources":["../../src/models/operations/append.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,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
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.AppendRequest$ = exports.AppendRequest$outboundSchema = exports.AppendRequest$inboundSchema = exports.HeaderS2Format$ = exports.HeaderS2Format$outboundSchema = exports.HeaderS2Format$inboundSchema = exports.Header1$ = exports.Header1$outboundSchema = exports.Header1$inboundSchema = exports.Header1 = exports.AppendServerList = void 0;
|
|
40
|
+
exports.headerS2FormatToJSON = headerS2FormatToJSON;
|
|
41
|
+
exports.headerS2FormatFromJSON = headerS2FormatFromJSON;
|
|
42
|
+
exports.appendRequestToJSON = appendRequestToJSON;
|
|
43
|
+
exports.appendRequestFromJSON = appendRequestFromJSON;
|
|
44
|
+
const z = __importStar(require("zod"));
|
|
45
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
46
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
47
|
+
const components = __importStar(require("../components/index.js"));
|
|
48
|
+
exports.AppendServerList = [
|
|
49
|
+
/**
|
|
50
|
+
* Endpoint for the basin
|
|
51
|
+
*/
|
|
52
|
+
"https://{basin}.b.aws.s2.dev/v1alpha",
|
|
53
|
+
];
|
|
54
|
+
exports.Header1 = {
|
|
55
|
+
Json: "json",
|
|
56
|
+
JsonBinsafe: "json-binsafe",
|
|
57
|
+
};
|
|
58
|
+
/** @internal */
|
|
59
|
+
exports.Header1$inboundSchema = z
|
|
60
|
+
.nativeEnum(exports.Header1);
|
|
61
|
+
/** @internal */
|
|
62
|
+
exports.Header1$outboundSchema = exports.Header1$inboundSchema;
|
|
63
|
+
/**
|
|
64
|
+
* @internal
|
|
65
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
66
|
+
*/
|
|
67
|
+
var Header1$;
|
|
68
|
+
(function (Header1$) {
|
|
69
|
+
/** @deprecated use `Header1$inboundSchema` instead. */
|
|
70
|
+
Header1$.inboundSchema = exports.Header1$inboundSchema;
|
|
71
|
+
/** @deprecated use `Header1$outboundSchema` instead. */
|
|
72
|
+
Header1$.outboundSchema = exports.Header1$outboundSchema;
|
|
73
|
+
})(Header1$ || (exports.Header1$ = Header1$ = {}));
|
|
74
|
+
/** @internal */
|
|
75
|
+
exports.HeaderS2Format$inboundSchema = exports.Header1$inboundSchema;
|
|
76
|
+
/** @internal */
|
|
77
|
+
exports.HeaderS2Format$outboundSchema = exports.Header1$outboundSchema;
|
|
78
|
+
/**
|
|
79
|
+
* @internal
|
|
80
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
81
|
+
*/
|
|
82
|
+
var HeaderS2Format$;
|
|
83
|
+
(function (HeaderS2Format$) {
|
|
84
|
+
/** @deprecated use `HeaderS2Format$inboundSchema` instead. */
|
|
85
|
+
HeaderS2Format$.inboundSchema = exports.HeaderS2Format$inboundSchema;
|
|
86
|
+
/** @deprecated use `HeaderS2Format$outboundSchema` instead. */
|
|
87
|
+
HeaderS2Format$.outboundSchema = exports.HeaderS2Format$outboundSchema;
|
|
88
|
+
})(HeaderS2Format$ || (exports.HeaderS2Format$ = HeaderS2Format$ = {}));
|
|
89
|
+
function headerS2FormatToJSON(headerS2Format) {
|
|
90
|
+
return JSON.stringify(exports.HeaderS2Format$outboundSchema.parse(headerS2Format));
|
|
91
|
+
}
|
|
92
|
+
function headerS2FormatFromJSON(jsonString) {
|
|
93
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HeaderS2Format$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HeaderS2Format' from JSON`);
|
|
94
|
+
}
|
|
95
|
+
/** @internal */
|
|
96
|
+
exports.AppendRequest$inboundSchema = z.object({
|
|
97
|
+
"s2-format": exports.Header1$inboundSchema.optional(),
|
|
98
|
+
stream: z.string(),
|
|
99
|
+
AppendInput: components.AppendInput$inboundSchema,
|
|
100
|
+
}).transform((v) => {
|
|
101
|
+
return (0, primitives_js_1.remap)(v, {
|
|
102
|
+
"s2-format": "s2Format",
|
|
103
|
+
"AppendInput": "appendInput",
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
/** @internal */
|
|
107
|
+
exports.AppendRequest$outboundSchema = z.object({
|
|
108
|
+
s2Format: exports.Header1$outboundSchema.optional(),
|
|
109
|
+
stream: z.string(),
|
|
110
|
+
appendInput: components.AppendInput$outboundSchema,
|
|
111
|
+
}).transform((v) => {
|
|
112
|
+
return (0, primitives_js_1.remap)(v, {
|
|
113
|
+
s2Format: "s2-format",
|
|
114
|
+
appendInput: "AppendInput",
|
|
115
|
+
});
|
|
116
|
+
});
|
|
117
|
+
/**
|
|
118
|
+
* @internal
|
|
119
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
120
|
+
*/
|
|
121
|
+
var AppendRequest$;
|
|
122
|
+
(function (AppendRequest$) {
|
|
123
|
+
/** @deprecated use `AppendRequest$inboundSchema` instead. */
|
|
124
|
+
AppendRequest$.inboundSchema = exports.AppendRequest$inboundSchema;
|
|
125
|
+
/** @deprecated use `AppendRequest$outboundSchema` instead. */
|
|
126
|
+
AppendRequest$.outboundSchema = exports.AppendRequest$outboundSchema;
|
|
127
|
+
})(AppendRequest$ || (exports.AppendRequest$ = AppendRequest$ = {}));
|
|
128
|
+
function appendRequestToJSON(appendRequest) {
|
|
129
|
+
return JSON.stringify(exports.AppendRequest$outboundSchema.parse(appendRequest));
|
|
130
|
+
}
|
|
131
|
+
function appendRequestFromJSON(jsonString) {
|
|
132
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AppendRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AppendRequest' from JSON`);
|
|
133
|
+
}
|
|
134
|
+
//# sourceMappingURL=append.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"append.js","sourceRoot":"","sources":["../../src/models/operations/append.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+FH,oDAEC;AAED,wDAQC;AAsDD,kDAEC;AAED,sDAQC;AA3KD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAGjD,mEAAqD;AAGxC,QAAA,gBAAgB,GAAG;IAC9B;;OAEG;IACH,sCAAsC;CAC9B,CAAC;AAEE,QAAA,OAAO,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../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
export declare const CheckTailServerList: readonly ["https://{basin}.b.aws.s2.dev/v1alpha"];
|
|
5
|
+
export type CheckTailRequest = {
|
|
6
|
+
/**
|
|
7
|
+
* Name of the stream.
|
|
8
|
+
*/
|
|
9
|
+
stream: string;
|
|
10
|
+
};
|
|
11
|
+
/** @internal */
|
|
12
|
+
export declare const CheckTailRequest$inboundSchema: z.ZodType<CheckTailRequest, z.ZodTypeDef, unknown>;
|
|
13
|
+
/** @internal */
|
|
14
|
+
export type CheckTailRequest$Outbound = {
|
|
15
|
+
stream: string;
|
|
16
|
+
};
|
|
17
|
+
/** @internal */
|
|
18
|
+
export declare const CheckTailRequest$outboundSchema: z.ZodType<CheckTailRequest$Outbound, z.ZodTypeDef, CheckTailRequest>;
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
22
|
+
*/
|
|
23
|
+
export declare namespace CheckTailRequest$ {
|
|
24
|
+
/** @deprecated use `CheckTailRequest$inboundSchema` instead. */
|
|
25
|
+
const inboundSchema: z.ZodType<CheckTailRequest, z.ZodTypeDef, unknown>;
|
|
26
|
+
/** @deprecated use `CheckTailRequest$outboundSchema` instead. */
|
|
27
|
+
const outboundSchema: z.ZodType<CheckTailRequest$Outbound, z.ZodTypeDef, CheckTailRequest>;
|
|
28
|
+
/** @deprecated use `CheckTailRequest$Outbound` instead. */
|
|
29
|
+
type Outbound = CheckTailRequest$Outbound;
|
|
30
|
+
}
|
|
31
|
+
export declare function checkTailRequestToJSON(checkTailRequest: CheckTailRequest): string;
|
|
32
|
+
export declare function checkTailRequestFromJSON(jsonString: string): SafeParseResult<CheckTailRequest, SDKValidationError>;
|
|
33
|
+
//# sourceMappingURL=checktail.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checktail.d.ts","sourceRoot":"","sources":["../../src/models/operations/checktail.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,eAAO,MAAM,mBAAmB,mDAKtB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,gBAAgB,EAChB,CAAC,CAAC,UAAU,EACZ,OAAO,CAGP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,yBAAyB,GAAG;IACtC,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CACrD,yBAAyB,EACzB,CAAC,CAAC,UAAU,EACZ,gBAAgB,CAGhB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,iBAAiB,CAAC;IACjC,gEAAgE;IACzD,MAAM,aAAa,oDAAiC,CAAC;IAC5D,iEAAiE;IAC1D,MAAM,cAAc,sEAAkC,CAAC;IAC9D,2DAA2D;IAC3D,KAAY,QAAQ,GAAG,yBAAyB,CAAC;CAClD;AAED,wBAAgB,sBAAsB,CACpC,gBAAgB,EAAE,gBAAgB,GACjC,MAAM,CAIR;AAED,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAMvD"}
|
|
@@ -0,0 +1,75 @@
|
|
|
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.CheckTailRequest$ = exports.CheckTailRequest$outboundSchema = exports.CheckTailRequest$inboundSchema = exports.CheckTailServerList = void 0;
|
|
40
|
+
exports.checkTailRequestToJSON = checkTailRequestToJSON;
|
|
41
|
+
exports.checkTailRequestFromJSON = checkTailRequestFromJSON;
|
|
42
|
+
const z = __importStar(require("zod"));
|
|
43
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
exports.CheckTailServerList = [
|
|
45
|
+
/**
|
|
46
|
+
* Endpoint for the basin
|
|
47
|
+
*/
|
|
48
|
+
"https://{basin}.b.aws.s2.dev/v1alpha",
|
|
49
|
+
];
|
|
50
|
+
/** @internal */
|
|
51
|
+
exports.CheckTailRequest$inboundSchema = z.object({
|
|
52
|
+
stream: z.string(),
|
|
53
|
+
});
|
|
54
|
+
/** @internal */
|
|
55
|
+
exports.CheckTailRequest$outboundSchema = z.object({
|
|
56
|
+
stream: z.string(),
|
|
57
|
+
});
|
|
58
|
+
/**
|
|
59
|
+
* @internal
|
|
60
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
61
|
+
*/
|
|
62
|
+
var CheckTailRequest$;
|
|
63
|
+
(function (CheckTailRequest$) {
|
|
64
|
+
/** @deprecated use `CheckTailRequest$inboundSchema` instead. */
|
|
65
|
+
CheckTailRequest$.inboundSchema = exports.CheckTailRequest$inboundSchema;
|
|
66
|
+
/** @deprecated use `CheckTailRequest$outboundSchema` instead. */
|
|
67
|
+
CheckTailRequest$.outboundSchema = exports.CheckTailRequest$outboundSchema;
|
|
68
|
+
})(CheckTailRequest$ || (exports.CheckTailRequest$ = CheckTailRequest$ = {}));
|
|
69
|
+
function checkTailRequestToJSON(checkTailRequest) {
|
|
70
|
+
return JSON.stringify(exports.CheckTailRequest$outboundSchema.parse(checkTailRequest));
|
|
71
|
+
}
|
|
72
|
+
function checkTailRequestFromJSON(jsonString) {
|
|
73
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CheckTailRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CheckTailRequest' from JSON`);
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=checktail.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checktail.js","sourceRoot":"","sources":["../../src/models/operations/checktail.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyDH,wDAMC;AAED,4DAQC;AAvED,uCAAyB;AACzB,qDAAiD;AAIpC,QAAA,mBAAmB,GAAG;IACjC;;OAEG;IACH,sCAAsC;CAC9B,CAAC;AASX,gBAAgB;AACH,QAAA,8BAA8B,GAIvC,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,+BAA+B,GAIxC,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,iBAAiB,CAOjC;AAPD,WAAiB,iBAAiB;IAChC,gEAAgE;IACnD,+BAAa,GAAG,sCAA8B,CAAC;IAC5D,iEAAiE;IACpD,gCAAc,GAAG,uCAA+B,CAAC;AAGhE,CAAC,EAPgB,iBAAiB,iCAAjB,iBAAiB,QAOjC;AAED,SAAgB,sBAAsB,CACpC,gBAAkC;IAElC,OAAO,IAAI,CAAC,SAAS,CACnB,uCAA+B,CAAC,KAAK,CAAC,gBAAgB,CAAC,CACxD,CAAC;AACJ,CAAC;AAED,SAAgB,wBAAwB,CACtC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,sCAA8B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1D,8CAA8C,CAC/C,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
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 CreateBasinRequest = {
|
|
6
|
+
/**
|
|
7
|
+
* Name of the basin.
|
|
8
|
+
*/
|
|
9
|
+
basin: string;
|
|
10
|
+
s2RequestToken?: string | undefined;
|
|
11
|
+
createBasinRequest: components.CreateBasinRequest;
|
|
12
|
+
};
|
|
13
|
+
/** @internal */
|
|
14
|
+
export declare const CreateBasinRequest$inboundSchema: z.ZodType<CreateBasinRequest, z.ZodTypeDef, unknown>;
|
|
15
|
+
/** @internal */
|
|
16
|
+
export type CreateBasinRequest$Outbound = {
|
|
17
|
+
basin: string;
|
|
18
|
+
"s2-request-token"?: string | undefined;
|
|
19
|
+
CreateBasinRequest: components.CreateBasinRequest$Outbound;
|
|
20
|
+
};
|
|
21
|
+
/** @internal */
|
|
22
|
+
export declare const CreateBasinRequest$outboundSchema: z.ZodType<CreateBasinRequest$Outbound, z.ZodTypeDef, CreateBasinRequest>;
|
|
23
|
+
/**
|
|
24
|
+
* @internal
|
|
25
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
26
|
+
*/
|
|
27
|
+
export declare namespace CreateBasinRequest$ {
|
|
28
|
+
/** @deprecated use `CreateBasinRequest$inboundSchema` instead. */
|
|
29
|
+
const inboundSchema: z.ZodType<CreateBasinRequest, z.ZodTypeDef, unknown>;
|
|
30
|
+
/** @deprecated use `CreateBasinRequest$outboundSchema` instead. */
|
|
31
|
+
const outboundSchema: z.ZodType<CreateBasinRequest$Outbound, z.ZodTypeDef, CreateBasinRequest>;
|
|
32
|
+
/** @deprecated use `CreateBasinRequest$Outbound` instead. */
|
|
33
|
+
type Outbound = CreateBasinRequest$Outbound;
|
|
34
|
+
}
|
|
35
|
+
export declare function createBasinRequestToJSON(createBasinRequest: CreateBasinRequest): string;
|
|
36
|
+
export declare function createBasinRequestFromJSON(jsonString: string): SafeParseResult<CreateBasinRequest, SDKValidationError>;
|
|
37
|
+
//# sourceMappingURL=createbasin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"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AkB,EAAE,kBAAkB,CAAC,CAMzD"}
|
|
@@ -0,0 +1,85 @@
|
|
|
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.CreateBasinRequest$ = exports.CreateBasinRequest$outboundSchema = exports.CreateBasinRequest$inboundSchema = void 0;
|
|
40
|
+
exports.createBasinRequestToJSON = createBasinRequestToJSON;
|
|
41
|
+
exports.createBasinRequestFromJSON = createBasinRequestFromJSON;
|
|
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.CreateBasinRequest$inboundSchema = z.object({
|
|
48
|
+
basin: z.string(),
|
|
49
|
+
"s2-request-token": z.string().optional(),
|
|
50
|
+
CreateBasinRequest: components.CreateBasinRequest$inboundSchema,
|
|
51
|
+
}).transform((v) => {
|
|
52
|
+
return (0, primitives_js_1.remap)(v, {
|
|
53
|
+
"s2-request-token": "s2RequestToken",
|
|
54
|
+
"CreateBasinRequest": "createBasinRequest",
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
/** @internal */
|
|
58
|
+
exports.CreateBasinRequest$outboundSchema = z.object({
|
|
59
|
+
basin: z.string(),
|
|
60
|
+
s2RequestToken: z.string().optional(),
|
|
61
|
+
createBasinRequest: components.CreateBasinRequest$outboundSchema,
|
|
62
|
+
}).transform((v) => {
|
|
63
|
+
return (0, primitives_js_1.remap)(v, {
|
|
64
|
+
s2RequestToken: "s2-request-token",
|
|
65
|
+
createBasinRequest: "CreateBasinRequest",
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
/**
|
|
69
|
+
* @internal
|
|
70
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
71
|
+
*/
|
|
72
|
+
var CreateBasinRequest$;
|
|
73
|
+
(function (CreateBasinRequest$) {
|
|
74
|
+
/** @deprecated use `CreateBasinRequest$inboundSchema` instead. */
|
|
75
|
+
CreateBasinRequest$.inboundSchema = exports.CreateBasinRequest$inboundSchema;
|
|
76
|
+
/** @deprecated use `CreateBasinRequest$outboundSchema` instead. */
|
|
77
|
+
CreateBasinRequest$.outboundSchema = exports.CreateBasinRequest$outboundSchema;
|
|
78
|
+
})(CreateBasinRequest$ || (exports.CreateBasinRequest$ = CreateBasinRequest$ = {}));
|
|
79
|
+
function createBasinRequestToJSON(createBasinRequest) {
|
|
80
|
+
return JSON.stringify(exports.CreateBasinRequest$outboundSchema.parse(createBasinRequest));
|
|
81
|
+
}
|
|
82
|
+
function createBasinRequestFromJSON(jsonString) {
|
|
83
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateBasinRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateBasinRequest' from JSON`);
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=createbasin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createbasin.js","sourceRoot":"","sources":["../../src/models/operations/createbasin.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsEH,4DAMC;AAED,gEAQC;AApFD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAEjD,mEAAqD;AAYrD,gBAAgB;AACH,QAAA,gCAAgC,GAIzC,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzC,kBAAkB,EAAE,UAAU,CAAC,gCAAgC;CAChE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,kBAAkB,EAAE,gBAAgB;QACpC,oBAAoB,EAAE,oBAAoB;KAC3C,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AASH,gBAAgB;AACH,QAAA,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,kBAAkB,EAAE,UAAU,CAAC,iCAAiC;CACjE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,cAAc,EAAE,kBAAkB;QAClC,kBAAkB,EAAE,oBAAoB;KACzC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,mBAAmB,CAOnC;AAPD,WAAiB,mBAAmB;IAClC,kEAAkE;IACrD,iCAAa,GAAG,wCAAgC,CAAC;IAC9D,mEAAmE;IACtD,kCAAc,GAAG,yCAAiC,CAAC;AAGlE,CAAC,EAPgB,mBAAmB,mCAAnB,mBAAmB,QAOnC;AAED,SAAgB,wBAAwB,CACtC,kBAAsC;IAEtC,OAAO,IAAI,CAAC,SAAS,CACnB,yCAAiC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAC5D,CAAC;AACJ,CAAC;AAED,SAAgB,0BAA0B,CACxC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,wCAAgC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC5D,gDAAgD,CACjD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 CreateStreamServerList: readonly ["https://{basin}.b.aws.s2.dev/v1alpha"];
|
|
6
|
+
export type CreateStreamRequest = {
|
|
7
|
+
/**
|
|
8
|
+
* Name of the stream.
|
|
9
|
+
*/
|
|
10
|
+
stream: string;
|
|
11
|
+
s2RequestToken?: string | undefined;
|
|
12
|
+
createStreamRequest: components.CreateStreamRequest;
|
|
13
|
+
};
|
|
14
|
+
/** @internal */
|
|
15
|
+
export declare const CreateStreamRequest$inboundSchema: z.ZodType<CreateStreamRequest, z.ZodTypeDef, unknown>;
|
|
16
|
+
/** @internal */
|
|
17
|
+
export type CreateStreamRequest$Outbound = {
|
|
18
|
+
stream: string;
|
|
19
|
+
"s2-request-token"?: string | undefined;
|
|
20
|
+
CreateStreamRequest: components.CreateStreamRequest$Outbound;
|
|
21
|
+
};
|
|
22
|
+
/** @internal */
|
|
23
|
+
export declare const CreateStreamRequest$outboundSchema: z.ZodType<CreateStreamRequest$Outbound, z.ZodTypeDef, CreateStreamRequest>;
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
27
|
+
*/
|
|
28
|
+
export declare namespace CreateStreamRequest$ {
|
|
29
|
+
/** @deprecated use `CreateStreamRequest$inboundSchema` instead. */
|
|
30
|
+
const inboundSchema: z.ZodType<CreateStreamRequest, z.ZodTypeDef, unknown>;
|
|
31
|
+
/** @deprecated use `CreateStreamRequest$outboundSchema` instead. */
|
|
32
|
+
const outboundSchema: z.ZodType<CreateStreamRequest$Outbound, z.ZodTypeDef, CreateStreamRequest>;
|
|
33
|
+
/** @deprecated use `CreateStreamRequest$Outbound` instead. */
|
|
34
|
+
type Outbound = CreateStreamRequest$Outbound;
|
|
35
|
+
}
|
|
36
|
+
export declare function createStreamRequestToJSON(createStreamRequest: CreateStreamRequest): string;
|
|
37
|
+
export declare function createStreamRequestFromJSON(jsonString: string): SafeParseResult<CreateStreamRequest, SDKValidationError>;
|
|
38
|
+
//# sourceMappingURL=createstream.d.ts.map
|