@slycode/slycode 0.2.11 → 0.2.12
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/dist/messaging/index.js +4 -2
- package/dist/messaging/index.js.map +1 -1
- package/dist/messaging/stt.d.ts +1 -0
- package/dist/messaging/stt.js +66 -57
- package/dist/messaging/stt.js.map +1 -1
- package/dist/messaging/types.d.ts +1 -0
- package/dist/web/.next/BUILD_ID +1 -1
- package/dist/web/.next/build-manifest.json +2 -2
- package/dist/web/.next/node_modules/@aws-sdk/client-s3-ecbef8e33fd0b8f0/dist-cjs/auth/httpAuthSchemeProvider.js +126 -0
- package/dist/web/.next/node_modules/@aws-sdk/client-s3-ecbef8e33fd0b8f0/dist-cjs/endpoint/endpointResolver.js +33 -0
- package/dist/web/.next/node_modules/@aws-sdk/client-s3-ecbef8e33fd0b8f0/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist/web/.next/node_modules/@aws-sdk/client-s3-ecbef8e33fd0b8f0/dist-cjs/index.js +3057 -0
- package/dist/web/.next/node_modules/@aws-sdk/client-s3-ecbef8e33fd0b8f0/dist-cjs/models/S3ServiceException.js +12 -0
- package/dist/web/.next/node_modules/@aws-sdk/client-s3-ecbef8e33fd0b8f0/dist-cjs/models/errors.js +203 -0
- package/dist/web/.next/node_modules/@aws-sdk/client-s3-ecbef8e33fd0b8f0/dist-cjs/runtimeConfig.js +67 -0
- package/dist/web/.next/node_modules/@aws-sdk/client-s3-ecbef8e33fd0b8f0/dist-cjs/runtimeConfig.shared.js +56 -0
- package/dist/web/.next/node_modules/@aws-sdk/client-s3-ecbef8e33fd0b8f0/dist-cjs/schemas/schemas_0.js +3258 -0
- package/dist/web/.next/node_modules/@aws-sdk/client-s3-ecbef8e33fd0b8f0/package.json +127 -0
- package/dist/web/.next/prerender-manifest.json +3 -3
- package/dist/web/.next/server/app/_global-error.html +2 -2
- package/dist/web/.next/server/app/_global-error.rsc +1 -1
- package/dist/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/dist/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/dist/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/dist/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/dist/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/dist/web/.next/server/app/_not-found.html +1 -1
- package/dist/web/.next/server/app/_not-found.rsc +1 -1
- package/dist/web/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
- package/dist/web/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/dist/web/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
- package/dist/web/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/dist/web/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/dist/web/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/dist/web/.next/server/app/api/transcribe/route.js +5 -5
- package/dist/web/.next/server/app/api/transcribe/route.js.nft.json +1 -1
- package/dist/web/.next/server/app/page_client-reference-manifest.js +1 -1
- package/dist/web/.next/server/app/project/[id]/page_client-reference-manifest.js +1 -1
- package/dist/web/.next/server/chunks/[root-of-the-server]__1b9e0d6e._.js +19 -0
- package/dist/web/.next/server/chunks/{[root-of-the-server]__a4d171b5._.js → [root-of-the-server]__4297cb97._.js} +3 -3
- package/dist/web/.next/server/chunks/[root-of-the-server]__52da7fe0._.js +5 -0
- package/dist/web/.next/server/chunks/{[root-of-the-server]__53ef96b9._.js → [root-of-the-server]__cf14e306._.js} +2 -2
- package/dist/web/.next/server/chunks/[root-of-the-server]__d5272169._.js +3 -0
- package/dist/web/.next/server/chunks/[root-of-the-server]__d56e68cb._.js +3 -0
- package/dist/web/.next/server/chunks/[root-of-the-server]__f5dae2ad._.js +3 -0
- package/dist/web/.next/server/chunks/{node_modules_ec9ae6c4._.js → node_modules_269a84e6._.js} +5 -5
- package/dist/web/.next/server/chunks/node_modules_9fc3887b._.js +3 -0
- package/dist/web/.next/server/chunks/node_modules_@aws-sdk_credential-provider-sso_dist-es_loadSso_570f147e.js +3 -0
- package/dist/web/.next/server/chunks/node_modules_@aws-sdk_nested-clients_dist-es_submodules_sts_index_c78619b3.js +1 -1
- package/dist/web/.next/server/chunks/node_modules_@smithy_smithy-client_dist-es_create-aggregated-client_db42850b.js +3 -0
- package/dist/web/.next/server/chunks/node_modules_c58ca22f._.js +3 -0
- package/dist/web/.next/server/chunks/node_modules_f96dfac4._.js +7 -0
- package/dist/web/.next/server/pages/404.html +1 -1
- package/dist/web/.next/server/pages/500.html +2 -2
- package/dist/web/.next/server/server-reference-manifest.js +1 -1
- package/dist/web/.next/server/server-reference-manifest.json +1 -1
- package/dist/web/.next/static/chunks/{0bab8c7c82cef548.js → 17bf7ad67057dc74.js} +1 -1
- package/dist/web/.next/static/chunks/{1b46e836090e130b.js → 29b5d391d655a999.js} +1 -1
- package/dist/web/.next/static/chunks/{345c46e638c28d26.js → 8cb404d087e9f3c7.js} +1 -1
- package/dist/web/.next/static/chunks/{de965b463aff71a9.js → e8b318caa49fce00.js} +1 -1
- package/dist/web/node_modules/@aws/lambda-invoke-store/dist-cjs/invoke-store.js +119 -0
- package/dist/web/node_modules/@aws/lambda-invoke-store/package.json +55 -0
- package/dist/web/node_modules/@aws-crypto/crc32/build/main/aws_crc32.js +31 -0
- package/dist/web/node_modules/@aws-crypto/crc32/build/main/index.js +108 -0
- package/dist/web/node_modules/@aws-crypto/crc32/package.json +32 -0
- package/dist/web/node_modules/@aws-crypto/crc32c/build/main/aws_crc32c.js +31 -0
- package/dist/web/node_modules/@aws-crypto/crc32c/build/main/index.js +78 -0
- package/dist/web/node_modules/@aws-crypto/crc32c/package.json +32 -0
- package/dist/web/node_modules/@aws-crypto/util/build/main/convertToBuffer.js +24 -0
- package/dist/web/node_modules/@aws-crypto/util/build/main/index.js +14 -0
- package/dist/web/node_modules/@aws-crypto/util/build/main/isEmptyData.js +13 -0
- package/dist/web/node_modules/@aws-crypto/util/build/main/numToUint8.js +15 -0
- package/dist/web/node_modules/@aws-crypto/util/build/main/uint32ArrayFrom.js +20 -0
- package/dist/web/node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +32 -0
- package/dist/web/node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer/package.json +60 -0
- package/dist/web/node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +47 -0
- package/dist/web/node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from/package.json +61 -0
- package/dist/web/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-cjs/index.js +65 -0
- package/dist/web/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/package.json +66 -0
- package/dist/web/node_modules/@aws-crypto/util/package.json +32 -0
- package/dist/web/node_modules/@aws-sdk/client-s3/dist-cjs/auth/httpAuthSchemeProvider.js +126 -0
- package/dist/web/node_modules/@aws-sdk/client-s3/dist-cjs/endpoint/endpointResolver.js +33 -0
- package/dist/web/node_modules/@aws-sdk/client-s3/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist/web/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +3057 -0
- package/dist/web/node_modules/@aws-sdk/client-s3/dist-cjs/models/S3ServiceException.js +12 -0
- package/dist/web/node_modules/@aws-sdk/client-s3/dist-cjs/models/errors.js +203 -0
- package/dist/web/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.js +67 -0
- package/dist/web/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.shared.js +56 -0
- package/dist/web/node_modules/@aws-sdk/client-s3/dist-cjs/schemas/schemas_0.js +3258 -0
- package/dist/web/node_modules/@aws-sdk/client-s3/package.json +127 -0
- package/dist/web/node_modules/@aws-sdk/core/dist-cjs/index.js +2212 -0
- package/dist/web/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +51 -0
- package/dist/web/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +307 -0
- package/dist/web/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +1859 -0
- package/dist/web/node_modules/@aws-sdk/core/package.json +121 -0
- package/dist/web/node_modules/@aws-sdk/crc64-nvme/dist-cjs/index.js +101 -0
- package/dist/web/node_modules/@aws-sdk/crc64-nvme/package.json +50 -0
- package/dist/web/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +41 -0
- package/dist/web/node_modules/@aws-sdk/credential-provider-env/package.json +63 -0
- package/dist/web/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/checkUrl.js +46 -0
- package/dist/web/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +70 -0
- package/dist/web/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/requestHelpers.js +53 -0
- package/dist/web/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/retry-wrapper.js +17 -0
- package/dist/web/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js +5 -0
- package/dist/web/node_modules/@aws-sdk/credential-provider-http/package.json +70 -0
- package/dist/web/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +224 -0
- package/dist/web/node_modules/@aws-sdk/credential-provider-ini/package.json +74 -0
- package/dist/web/node_modules/@aws-sdk/credential-provider-login/dist-cjs/index.js +286 -0
- package/dist/web/node_modules/@aws-sdk/credential-provider-login/package.json +68 -0
- package/dist/web/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +156 -0
- package/dist/web/node_modules/@aws-sdk/credential-provider-node/package.json +72 -0
- package/dist/web/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +79 -0
- package/dist/web/node_modules/@aws-sdk/credential-provider-process/package.json +64 -0
- package/dist/web/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +192 -0
- package/dist/web/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-BKDNrsal.js +8 -0
- package/dist/web/node_modules/@aws-sdk/credential-provider-sso/package.json +66 -0
- package/dist/web/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +34 -0
- package/dist/web/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +62 -0
- package/dist/web/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +27 -0
- package/dist/web/node_modules/@aws-sdk/credential-provider-web-identity/package.json +73 -0
- package/dist/web/node_modules/@aws-sdk/middleware-bucket-endpoint/dist-cjs/index.js +352 -0
- package/dist/web/node_modules/@aws-sdk/middleware-bucket-endpoint/package.json +60 -0
- package/dist/web/node_modules/@aws-sdk/middleware-expect-continue/dist-cjs/index.js +48 -0
- package/dist/web/node_modules/@aws-sdk/middleware-expect-continue/package.json +58 -0
- package/dist/web/node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/getCrc32ChecksumAlgorithmFunction.js +26 -0
- package/dist/web/node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/index.js +451 -0
- package/dist/web/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +78 -0
- package/dist/web/node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js +41 -0
- package/dist/web/node_modules/@aws-sdk/middleware-host-header/package.json +59 -0
- package/dist/web/node_modules/@aws-sdk/middleware-location-constraint/dist-cjs/index.js +30 -0
- package/dist/web/node_modules/@aws-sdk/middleware-location-constraint/package.json +57 -0
- package/dist/web/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js +48 -0
- package/dist/web/node_modules/@aws-sdk/middleware-logger/package.json +59 -0
- package/dist/web/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js +29 -0
- package/dist/web/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/recursionDetectionMiddleware.js +33 -0
- package/dist/web/node_modules/@aws-sdk/middleware-recursion-detection/package.json +63 -0
- package/dist/web/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js +570 -0
- package/dist/web/node_modules/@aws-sdk/middleware-sdk-s3/package.json +72 -0
- package/dist/web/node_modules/@aws-sdk/middleware-ssec/dist-cjs/index.js +73 -0
- package/dist/web/node_modules/@aws-sdk/middleware-ssec/package.json +57 -0
- package/dist/web/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +194 -0
- package/dist/web/node_modules/@aws-sdk/middleware-user-agent/package.json +63 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/auth/httpAuthSchemeProvider.js +56 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/endpointResolver.js +18 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/ruleset.js +133 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +170 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/models/SigninServiceException.js +12 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/models/errors.js +64 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/runtimeConfig.js +53 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/runtimeConfig.shared.js +49 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/schemas/schemas_0.js +125 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/auth/httpAuthSchemeProvider.js +56 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/endpointResolver.js +18 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/ruleset.js +106 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +160 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/models/SSOServiceException.js +12 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/models/errors.js +56 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/runtimeConfig.js +53 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/runtimeConfig.shared.js +49 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/schemas/schemas_0.js +90 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/auth/httpAuthSchemeProvider.js +56 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/endpointResolver.js +18 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/ruleset.js +106 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +172 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/models/SSOOIDCServiceException.js +12 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/models/errors.js +195 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.js +53 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.shared.js +49 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/schemas/schemas_0.js +140 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/STSClient.js +54 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/auth/httpAuthSchemeProvider.js +62 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/EndpointParameters.js +19 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/endpointResolver.js +18 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/ruleset.js +145 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +202 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/models/STSServiceException.js +12 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/models/errors.js +95 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.js +67 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.shared.js +50 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeExtensions.js +13 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/schemas/schemas_0.js +195 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/package.json +147 -0
- package/dist/web/node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js +38 -0
- package/dist/web/node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/stsRegionDefaultResolver.js +20 -0
- package/dist/web/node_modules/@aws-sdk/region-config-resolver/package.json +62 -0
- package/dist/web/node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js +121 -0
- package/dist/web/node_modules/@aws-sdk/signature-v4-multi-region/package.json +61 -0
- package/dist/web/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +157 -0
- package/dist/web/node_modules/@aws-sdk/token-providers/package.json +70 -0
- package/dist/web/node_modules/@aws-sdk/util-arn-parser/dist-cjs/index.js +27 -0
- package/dist/web/node_modules/@aws-sdk/util-arn-parser/package.json +55 -0
- package/dist/web/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +406 -0
- package/dist/web/node_modules/@aws-sdk/util-endpoints/package.json +60 -0
- package/dist/web/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +185 -0
- package/dist/web/node_modules/@aws-sdk/util-user-agent-node/package.json +69 -0
- package/dist/web/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +131 -0
- package/dist/web/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js +23 -0
- package/dist/web/node_modules/@aws-sdk/xml-builder/package.json +63 -0
- package/dist/web/node_modules/@smithy/config-resolver/dist-cjs/index.js +198 -0
- package/dist/web/node_modules/@smithy/config-resolver/package.json +66 -0
- package/dist/web/node_modules/@smithy/core/dist-cjs/index.js +345 -0
- package/dist/web/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +1096 -0
- package/dist/web/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +22 -0
- package/dist/web/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +259 -0
- package/dist/web/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +884 -0
- package/dist/web/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +698 -0
- package/dist/web/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +694 -0
- package/dist/web/node_modules/@smithy/core/package.json +146 -0
- package/dist/web/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +372 -0
- package/dist/web/node_modules/@smithy/credential-provider-imds/package.json +70 -0
- package/dist/web/node_modules/@smithy/eventstream-codec/dist-cjs/index.js +388 -0
- package/dist/web/node_modules/@smithy/eventstream-codec/package.json +65 -0
- package/dist/web/node_modules/@smithy/eventstream-serde-config-resolver/dist-cjs/index.js +7 -0
- package/dist/web/node_modules/@smithy/eventstream-serde-config-resolver/package.json +62 -0
- package/dist/web/node_modules/@smithy/eventstream-serde-node/dist-cjs/index.js +53 -0
- package/dist/web/node_modules/@smithy/eventstream-serde-node/package.json +62 -0
- package/dist/web/node_modules/@smithy/eventstream-serde-universal/dist-cjs/index.js +132 -0
- package/dist/web/node_modules/@smithy/eventstream-serde-universal/package.json +66 -0
- package/dist/web/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +233 -0
- package/dist/web/node_modules/@smithy/fetch-http-handler/package.json +69 -0
- package/dist/web/node_modules/@smithy/hash-node/dist-cjs/index.js +42 -0
- package/dist/web/node_modules/@smithy/hash-node/package.json +65 -0
- package/dist/web/node_modules/@smithy/hash-stream-node/dist-cjs/index.js +67 -0
- package/dist/web/node_modules/@smithy/hash-stream-node/package.json +65 -0
- package/dist/web/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
- package/dist/web/node_modules/@smithy/is-array-buffer/package.json +61 -0
- package/dist/web/node_modules/@smithy/middleware-content-length/dist-cjs/index.js +46 -0
- package/dist/web/node_modules/@smithy/middleware-content-length/package.json +64 -0
- package/dist/web/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromConfig.js +7 -0
- package/dist/web/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointUrlConfig.js +35 -0
- package/dist/web/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +264 -0
- package/dist/web/node_modules/@smithy/middleware-endpoint/package.json +75 -0
- package/dist/web/node_modules/@smithy/middleware-retry/dist-cjs/index.js +355 -0
- package/dist/web/node_modules/@smithy/middleware-retry/dist-cjs/isStreamingPayload/isStreamingPayload.js +7 -0
- package/dist/web/node_modules/@smithy/middleware-retry/package.json +79 -0
- package/dist/web/node_modules/@smithy/middleware-serde/dist-cjs/index.js +104 -0
- package/dist/web/node_modules/@smithy/middleware-serde/package.json +66 -0
- package/dist/web/node_modules/@smithy/middleware-stack/dist-cjs/index.js +285 -0
- package/dist/web/node_modules/@smithy/middleware-stack/package.json +64 -0
- package/dist/web/node_modules/@smithy/node-config-provider/dist-cjs/index.js +62 -0
- package/dist/web/node_modules/@smithy/node-config-provider/package.json +66 -0
- package/dist/web/node_modules/@smithy/node-http-handler/dist-cjs/index.js +762 -0
- package/dist/web/node_modules/@smithy/node-http-handler/package.json +68 -0
- package/dist/web/node_modules/@smithy/property-provider/dist-cjs/index.js +117 -0
- package/dist/web/node_modules/@smithy/property-provider/package.json +61 -0
- package/dist/web/node_modules/@smithy/protocol-http/dist-cjs/index.js +169 -0
- package/dist/web/node_modules/@smithy/protocol-http/package.json +62 -0
- package/dist/web/node_modules/@smithy/querystring-builder/dist-cjs/index.js +26 -0
- package/dist/web/node_modules/@smithy/querystring-builder/package.json +61 -0
- package/dist/web/node_modules/@smithy/querystring-parser/dist-cjs/index.js +27 -0
- package/dist/web/node_modules/@smithy/querystring-parser/package.json +61 -0
- package/dist/web/node_modules/@smithy/service-error-classification/dist-cjs/index.js +77 -0
- package/dist/web/node_modules/@smithy/service-error-classification/package.json +60 -0
- package/dist/web/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getHomeDir.js +26 -0
- package/dist/web/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js +12 -0
- package/dist/web/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js +15 -0
- package/dist/web/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +196 -0
- package/dist/web/node_modules/@smithy/shared-ini-file-loader/dist-cjs/readFile.js +16 -0
- package/dist/web/node_modules/@smithy/shared-ini-file-loader/package.json +73 -0
- package/dist/web/node_modules/@smithy/signature-v4/dist-cjs/index.js +556 -0
- package/dist/web/node_modules/@smithy/signature-v4/package.json +70 -0
- package/dist/web/node_modules/@smithy/smithy-client/dist-cjs/index.js +635 -0
- package/dist/web/node_modules/@smithy/smithy-client/package.json +70 -0
- package/dist/web/node_modules/@smithy/types/dist-cjs/index.js +91 -0
- package/dist/web/node_modules/@smithy/types/package.json +61 -0
- package/dist/web/node_modules/@smithy/url-parser/dist-cjs/index.js +23 -0
- package/dist/web/node_modules/@smithy/url-parser/package.json +62 -0
- package/dist/web/node_modules/@smithy/util-base64/dist-cjs/fromBase64.js +16 -0
- package/dist/web/node_modules/@smithy/util-base64/dist-cjs/index.js +27 -0
- package/dist/web/node_modules/@smithy/util-base64/dist-cjs/toBase64.js +19 -0
- package/dist/web/node_modules/@smithy/util-base64/package.json +74 -0
- package/dist/web/node_modules/@smithy/util-body-length-browser/dist-cjs/index.js +30 -0
- package/dist/web/node_modules/@smithy/util-body-length-browser/package.json +61 -0
- package/dist/web/node_modules/@smithy/util-body-length-node/dist-cjs/index.js +32 -0
- package/dist/web/node_modules/@smithy/util-body-length-node/package.json +62 -0
- package/dist/web/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
- package/dist/web/node_modules/@smithy/util-buffer-from/package.json +62 -0
- package/dist/web/node_modules/@smithy/util-config-provider/dist-cjs/index.js +30 -0
- package/dist/web/node_modules/@smithy/util-config-provider/package.json +63 -0
- package/dist/web/node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js +74 -0
- package/dist/web/node_modules/@smithy/util-defaults-mode-node/package.json +67 -0
- package/dist/web/node_modules/@smithy/util-endpoints/dist-cjs/index.js +472 -0
- package/dist/web/node_modules/@smithy/util-endpoints/package.json +69 -0
- package/dist/web/node_modules/@smithy/util-hex-encoding/dist-cjs/index.js +38 -0
- package/dist/web/node_modules/@smithy/util-hex-encoding/package.json +61 -0
- package/dist/web/node_modules/@smithy/util-middleware/dist-cjs/index.js +15 -0
- package/dist/web/node_modules/@smithy/util-middleware/package.json +67 -0
- package/dist/web/node_modules/@smithy/util-retry/dist-cjs/index.js +278 -0
- package/dist/web/node_modules/@smithy/util-retry/package.json +71 -0
- package/dist/web/node_modules/@smithy/util-stream/dist-cjs/ByteArrayCollector.js +36 -0
- package/dist/web/node_modules/@smithy/util-stream/dist-cjs/checksum/ChecksumStream.browser.js +7 -0
- package/dist/web/node_modules/@smithy/util-stream/dist-cjs/checksum/ChecksumStream.js +64 -0
- package/dist/web/node_modules/@smithy/util-stream/dist-cjs/checksum/createChecksumStream.browser.js +39 -0
- package/dist/web/node_modules/@smithy/util-stream/dist-cjs/checksum/createChecksumStream.js +12 -0
- package/dist/web/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadable.js +60 -0
- package/dist/web/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadableStream.js +103 -0
- package/dist/web/node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.browser.js +31 -0
- package/dist/web/node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.js +41 -0
- package/dist/web/node_modules/@smithy/util-stream/dist-cjs/headStream.browser.js +34 -0
- package/dist/web/node_modules/@smithy/util-stream/dist-cjs/headStream.js +42 -0
- package/dist/web/node_modules/@smithy/util-stream/dist-cjs/index.js +108 -0
- package/dist/web/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.browser.js +68 -0
- package/dist/web/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.js +54 -0
- package/dist/web/node_modules/@smithy/util-stream/dist-cjs/splitStream.browser.js +10 -0
- package/dist/web/node_modules/@smithy/util-stream/dist-cjs/splitStream.js +16 -0
- package/dist/web/node_modules/@smithy/util-stream/dist-cjs/stream-type-check.js +10 -0
- package/dist/web/node_modules/@smithy/util-stream/package.json +99 -0
- package/dist/web/node_modules/@smithy/util-uri-escape/dist-cjs/index.js +9 -0
- package/dist/web/node_modules/@smithy/util-uri-escape/package.json +60 -0
- package/dist/web/node_modules/@smithy/util-utf8/dist-cjs/index.js +32 -0
- package/dist/web/node_modules/@smithy/util-utf8/package.json +67 -0
- package/dist/web/node_modules/@smithy/util-waiter/dist-cjs/index.js +179 -0
- package/dist/web/node_modules/@smithy/util-waiter/package.json +63 -0
- package/dist/web/node_modules/@smithy/uuid/dist-cjs/index.js +36 -0
- package/dist/web/node_modules/@smithy/uuid/dist-cjs/randomUUID.js +6 -0
- package/dist/web/node_modules/@smithy/uuid/package.json +66 -0
- package/dist/web/node_modules/fast-xml-parser/lib/fxp.cjs +1 -0
- package/dist/web/node_modules/fast-xml-parser/package.json +94 -0
- package/dist/web/node_modules/tslib/package.json +47 -0
- package/dist/web/node_modules/tslib/tslib.js +484 -0
- package/dist/web/package-lock.json +433 -161
- package/dist/web/package.json +2 -1
- package/dist/web/src/app/api/transcribe/route.ts +84 -74
- package/dist/web/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/templates/kanban-seed.json +1 -1
- package/dist/web/.next/server/chunks/[root-of-the-server]__0f8687da._.js +0 -3
- package/dist/web/.next/server/chunks/[root-of-the-server]__0f9b71fd._.js +0 -5
- package/dist/web/.next/server/chunks/[root-of-the-server]__1dec5018._.js +0 -3
- package/dist/web/.next/server/chunks/[root-of-the-server]__2605d761._.js +0 -9
- package/dist/web/.next/server/chunks/[root-of-the-server]__8ce673c9._.js +0 -3
- package/dist/web/.next/server/chunks/[root-of-the-server]__a43db24d._.js +0 -19
- package/dist/web/.next/server/chunks/[root-of-the-server]__c7ac3578._.js +0 -5
- package/dist/web/.next/server/chunks/a9bf9_@aws-sdk_core_dist-es_submodules_protocols_json_AwsRestJsonProtocol_764d7a83.js +0 -3
- /package/dist/web/.next/static/{eGpcv9LfmamGIm1II8SKL → rlJUIaeDUP-JDj2nvHySS}/_buildManifest.js +0 -0
- /package/dist/web/.next/static/{eGpcv9LfmamGIm1II8SKL → rlJUIaeDUP-JDj2nvHySS}/_clientMiddlewareManifest.json +0 -0
- /package/dist/web/.next/static/{eGpcv9LfmamGIm1II8SKL → rlJUIaeDUP-JDj2nvHySS}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
function ssecMiddleware(options) {
|
|
4
|
+
return (next) => async (args) => {
|
|
5
|
+
const input = { ...args.input };
|
|
6
|
+
const properties = [
|
|
7
|
+
{
|
|
8
|
+
target: "SSECustomerKey",
|
|
9
|
+
hash: "SSECustomerKeyMD5",
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
target: "CopySourceSSECustomerKey",
|
|
13
|
+
hash: "CopySourceSSECustomerKeyMD5",
|
|
14
|
+
},
|
|
15
|
+
];
|
|
16
|
+
for (const prop of properties) {
|
|
17
|
+
const value = input[prop.target];
|
|
18
|
+
if (value) {
|
|
19
|
+
let valueForHash;
|
|
20
|
+
if (typeof value === "string") {
|
|
21
|
+
if (isValidBase64EncodedSSECustomerKey(value, options)) {
|
|
22
|
+
valueForHash = options.base64Decoder(value);
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
valueForHash = options.utf8Decoder(value);
|
|
26
|
+
input[prop.target] = options.base64Encoder(valueForHash);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
valueForHash = ArrayBuffer.isView(value)
|
|
31
|
+
? new Uint8Array(value.buffer, value.byteOffset, value.byteLength)
|
|
32
|
+
: new Uint8Array(value);
|
|
33
|
+
input[prop.target] = options.base64Encoder(valueForHash);
|
|
34
|
+
}
|
|
35
|
+
const hash = new options.md5();
|
|
36
|
+
hash.update(valueForHash);
|
|
37
|
+
input[prop.hash] = options.base64Encoder(await hash.digest());
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return next({
|
|
41
|
+
...args,
|
|
42
|
+
input,
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
const ssecMiddlewareOptions = {
|
|
47
|
+
name: "ssecMiddleware",
|
|
48
|
+
step: "initialize",
|
|
49
|
+
tags: ["SSE"],
|
|
50
|
+
override: true,
|
|
51
|
+
};
|
|
52
|
+
const getSsecPlugin = (config) => ({
|
|
53
|
+
applyToStack: (clientStack) => {
|
|
54
|
+
clientStack.add(ssecMiddleware(config), ssecMiddlewareOptions);
|
|
55
|
+
},
|
|
56
|
+
});
|
|
57
|
+
function isValidBase64EncodedSSECustomerKey(str, options) {
|
|
58
|
+
const base64Regex = /^(?:[A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/;
|
|
59
|
+
if (!base64Regex.test(str))
|
|
60
|
+
return false;
|
|
61
|
+
try {
|
|
62
|
+
const decodedBytes = options.base64Decoder(str);
|
|
63
|
+
return decodedBytes.length === 32;
|
|
64
|
+
}
|
|
65
|
+
catch {
|
|
66
|
+
return false;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
exports.getSsecPlugin = getSsecPlugin;
|
|
71
|
+
exports.isValidBase64EncodedSSECustomerKey = isValidBase64EncodedSSECustomerKey;
|
|
72
|
+
exports.ssecMiddleware = ssecMiddleware;
|
|
73
|
+
exports.ssecMiddlewareOptions = ssecMiddlewareOptions;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@aws-sdk/middleware-ssec",
|
|
3
|
+
"version": "3.972.8",
|
|
4
|
+
"scripts": {
|
|
5
|
+
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
6
|
+
"build:cjs": "node ../../scripts/compilation/inline middleware-ssec",
|
|
7
|
+
"build:es": "tsc -p tsconfig.es.json",
|
|
8
|
+
"build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
|
|
9
|
+
"build:types": "tsc -p tsconfig.types.json",
|
|
10
|
+
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
11
|
+
"clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
|
|
12
|
+
"test": "yarn g:vitest run",
|
|
13
|
+
"test:integration": "yarn g:vitest run -c vitest.config.integ.mts",
|
|
14
|
+
"test:watch": "yarn g:vitest watch",
|
|
15
|
+
"test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
|
|
16
|
+
},
|
|
17
|
+
"main": "./dist-cjs/index.js",
|
|
18
|
+
"module": "./dist-es/index.js",
|
|
19
|
+
"types": "./dist-types/index.d.ts",
|
|
20
|
+
"sideEffects": false,
|
|
21
|
+
"author": {
|
|
22
|
+
"name": "AWS SDK for JavaScript Team",
|
|
23
|
+
"url": "https://aws.amazon.com/javascript/"
|
|
24
|
+
},
|
|
25
|
+
"license": "Apache-2.0",
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@aws-sdk/types": "^3.973.6",
|
|
28
|
+
"@smithy/types": "^4.13.1",
|
|
29
|
+
"tslib": "^2.6.2"
|
|
30
|
+
},
|
|
31
|
+
"engines": {
|
|
32
|
+
"node": ">=20.0.0"
|
|
33
|
+
},
|
|
34
|
+
"typesVersions": {
|
|
35
|
+
"<4.5": {
|
|
36
|
+
"dist-types/*": [
|
|
37
|
+
"dist-types/ts3.4/*"
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"files": [
|
|
42
|
+
"dist-*/**"
|
|
43
|
+
],
|
|
44
|
+
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/middleware-ssec",
|
|
45
|
+
"repository": {
|
|
46
|
+
"type": "git",
|
|
47
|
+
"url": "https://github.com/aws/aws-sdk-js-v3.git",
|
|
48
|
+
"directory": "packages-internal/middleware-ssec"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@tsconfig/recommended": "1.0.1",
|
|
52
|
+
"concurrently": "7.0.0",
|
|
53
|
+
"downlevel-dts": "0.10.1",
|
|
54
|
+
"premove": "4.0.0",
|
|
55
|
+
"typescript": "~5.8.3"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var core = require('@smithy/core');
|
|
4
|
+
var utilEndpoints = require('@aws-sdk/util-endpoints');
|
|
5
|
+
var protocolHttp = require('@smithy/protocol-http');
|
|
6
|
+
var core$1 = require('@aws-sdk/core');
|
|
7
|
+
var utilRetry = require('@smithy/util-retry');
|
|
8
|
+
|
|
9
|
+
const DEFAULT_UA_APP_ID = undefined;
|
|
10
|
+
function isValidUserAgentAppId(appId) {
|
|
11
|
+
if (appId === undefined) {
|
|
12
|
+
return true;
|
|
13
|
+
}
|
|
14
|
+
return typeof appId === "string" && appId.length <= 50;
|
|
15
|
+
}
|
|
16
|
+
function resolveUserAgentConfig(input) {
|
|
17
|
+
const normalizedAppIdProvider = core.normalizeProvider(input.userAgentAppId ?? DEFAULT_UA_APP_ID);
|
|
18
|
+
const { customUserAgent } = input;
|
|
19
|
+
return Object.assign(input, {
|
|
20
|
+
customUserAgent: typeof customUserAgent === "string" ? [[customUserAgent]] : customUserAgent,
|
|
21
|
+
userAgentAppId: async () => {
|
|
22
|
+
const appId = await normalizedAppIdProvider();
|
|
23
|
+
if (!isValidUserAgentAppId(appId)) {
|
|
24
|
+
const logger = input.logger?.constructor?.name === "NoOpLogger" || !input.logger ? console : input.logger;
|
|
25
|
+
if (typeof appId !== "string") {
|
|
26
|
+
logger?.warn("userAgentAppId must be a string or undefined.");
|
|
27
|
+
}
|
|
28
|
+
else if (appId.length > 50) {
|
|
29
|
+
logger?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.");
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return appId;
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
const ACCOUNT_ID_ENDPOINT_REGEX = /\d{12}\.ddb/;
|
|
38
|
+
async function checkFeatures(context, config, args) {
|
|
39
|
+
const request = args.request;
|
|
40
|
+
if (request?.headers?.["smithy-protocol"] === "rpc-v2-cbor") {
|
|
41
|
+
core$1.setFeature(context, "PROTOCOL_RPC_V2_CBOR", "M");
|
|
42
|
+
}
|
|
43
|
+
if (typeof config.retryStrategy === "function") {
|
|
44
|
+
const retryStrategy = await config.retryStrategy();
|
|
45
|
+
if (typeof retryStrategy.mode === "string") {
|
|
46
|
+
switch (retryStrategy.mode) {
|
|
47
|
+
case utilRetry.RETRY_MODES.ADAPTIVE:
|
|
48
|
+
core$1.setFeature(context, "RETRY_MODE_ADAPTIVE", "F");
|
|
49
|
+
break;
|
|
50
|
+
case utilRetry.RETRY_MODES.STANDARD:
|
|
51
|
+
core$1.setFeature(context, "RETRY_MODE_STANDARD", "E");
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
if (typeof config.accountIdEndpointMode === "function") {
|
|
57
|
+
const endpointV2 = context.endpointV2;
|
|
58
|
+
if (String(endpointV2?.url?.hostname).match(ACCOUNT_ID_ENDPOINT_REGEX)) {
|
|
59
|
+
core$1.setFeature(context, "ACCOUNT_ID_ENDPOINT", "O");
|
|
60
|
+
}
|
|
61
|
+
switch (await config.accountIdEndpointMode?.()) {
|
|
62
|
+
case "disabled":
|
|
63
|
+
core$1.setFeature(context, "ACCOUNT_ID_MODE_DISABLED", "Q");
|
|
64
|
+
break;
|
|
65
|
+
case "preferred":
|
|
66
|
+
core$1.setFeature(context, "ACCOUNT_ID_MODE_PREFERRED", "P");
|
|
67
|
+
break;
|
|
68
|
+
case "required":
|
|
69
|
+
core$1.setFeature(context, "ACCOUNT_ID_MODE_REQUIRED", "R");
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
const identity = context.__smithy_context?.selectedHttpAuthScheme?.identity;
|
|
74
|
+
if (identity?.$source) {
|
|
75
|
+
const credentials = identity;
|
|
76
|
+
if (credentials.accountId) {
|
|
77
|
+
core$1.setFeature(context, "RESOLVED_ACCOUNT_ID", "T");
|
|
78
|
+
}
|
|
79
|
+
for (const [key, value] of Object.entries(credentials.$source ?? {})) {
|
|
80
|
+
core$1.setFeature(context, key, value);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
const USER_AGENT = "user-agent";
|
|
86
|
+
const X_AMZ_USER_AGENT = "x-amz-user-agent";
|
|
87
|
+
const SPACE = " ";
|
|
88
|
+
const UA_NAME_SEPARATOR = "/";
|
|
89
|
+
const UA_NAME_ESCAPE_REGEX = /[^!$%&'*+\-.^_`|~\w]/g;
|
|
90
|
+
const UA_VALUE_ESCAPE_REGEX = /[^!$%&'*+\-.^_`|~\w#]/g;
|
|
91
|
+
const UA_ESCAPE_CHAR = "-";
|
|
92
|
+
|
|
93
|
+
const BYTE_LIMIT = 1024;
|
|
94
|
+
function encodeFeatures(features) {
|
|
95
|
+
let buffer = "";
|
|
96
|
+
for (const key in features) {
|
|
97
|
+
const val = features[key];
|
|
98
|
+
if (buffer.length + val.length + 1 <= BYTE_LIMIT) {
|
|
99
|
+
if (buffer.length) {
|
|
100
|
+
buffer += "," + val;
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
buffer += val;
|
|
104
|
+
}
|
|
105
|
+
continue;
|
|
106
|
+
}
|
|
107
|
+
break;
|
|
108
|
+
}
|
|
109
|
+
return buffer;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
const userAgentMiddleware = (options) => (next, context) => async (args) => {
|
|
113
|
+
const { request } = args;
|
|
114
|
+
if (!protocolHttp.HttpRequest.isInstance(request)) {
|
|
115
|
+
return next(args);
|
|
116
|
+
}
|
|
117
|
+
const { headers } = request;
|
|
118
|
+
const userAgent = context?.userAgent?.map(escapeUserAgent) || [];
|
|
119
|
+
const defaultUserAgent = (await options.defaultUserAgentProvider()).map(escapeUserAgent);
|
|
120
|
+
await checkFeatures(context, options, args);
|
|
121
|
+
const awsContext = context;
|
|
122
|
+
defaultUserAgent.push(`m/${encodeFeatures(Object.assign({}, context.__smithy_context?.features, awsContext.__aws_sdk_context?.features))}`);
|
|
123
|
+
const customUserAgent = options?.customUserAgent?.map(escapeUserAgent) || [];
|
|
124
|
+
const appId = await options.userAgentAppId();
|
|
125
|
+
if (appId) {
|
|
126
|
+
defaultUserAgent.push(escapeUserAgent([`app`, `${appId}`]));
|
|
127
|
+
}
|
|
128
|
+
const prefix = utilEndpoints.getUserAgentPrefix();
|
|
129
|
+
const sdkUserAgentValue = (prefix ? [prefix] : [])
|
|
130
|
+
.concat([...defaultUserAgent, ...userAgent, ...customUserAgent])
|
|
131
|
+
.join(SPACE);
|
|
132
|
+
const normalUAValue = [
|
|
133
|
+
...defaultUserAgent.filter((section) => section.startsWith("aws-sdk-")),
|
|
134
|
+
...customUserAgent,
|
|
135
|
+
].join(SPACE);
|
|
136
|
+
if (options.runtime !== "browser") {
|
|
137
|
+
if (normalUAValue) {
|
|
138
|
+
headers[X_AMZ_USER_AGENT] = headers[X_AMZ_USER_AGENT]
|
|
139
|
+
? `${headers[USER_AGENT]} ${normalUAValue}`
|
|
140
|
+
: normalUAValue;
|
|
141
|
+
}
|
|
142
|
+
headers[USER_AGENT] = sdkUserAgentValue;
|
|
143
|
+
}
|
|
144
|
+
else {
|
|
145
|
+
headers[X_AMZ_USER_AGENT] = sdkUserAgentValue;
|
|
146
|
+
}
|
|
147
|
+
return next({
|
|
148
|
+
...args,
|
|
149
|
+
request,
|
|
150
|
+
});
|
|
151
|
+
};
|
|
152
|
+
const escapeUserAgent = (userAgentPair) => {
|
|
153
|
+
const name = userAgentPair[0]
|
|
154
|
+
.split(UA_NAME_SEPARATOR)
|
|
155
|
+
.map((part) => part.replace(UA_NAME_ESCAPE_REGEX, UA_ESCAPE_CHAR))
|
|
156
|
+
.join(UA_NAME_SEPARATOR);
|
|
157
|
+
const version = userAgentPair[1]?.replace(UA_VALUE_ESCAPE_REGEX, UA_ESCAPE_CHAR);
|
|
158
|
+
const prefixSeparatorIndex = name.indexOf(UA_NAME_SEPARATOR);
|
|
159
|
+
const prefix = name.substring(0, prefixSeparatorIndex);
|
|
160
|
+
let uaName = name.substring(prefixSeparatorIndex + 1);
|
|
161
|
+
if (prefix === "api") {
|
|
162
|
+
uaName = uaName.toLowerCase();
|
|
163
|
+
}
|
|
164
|
+
return [prefix, uaName, version]
|
|
165
|
+
.filter((item) => item && item.length > 0)
|
|
166
|
+
.reduce((acc, item, index) => {
|
|
167
|
+
switch (index) {
|
|
168
|
+
case 0:
|
|
169
|
+
return item;
|
|
170
|
+
case 1:
|
|
171
|
+
return `${acc}/${item}`;
|
|
172
|
+
default:
|
|
173
|
+
return `${acc}#${item}`;
|
|
174
|
+
}
|
|
175
|
+
}, "");
|
|
176
|
+
};
|
|
177
|
+
const getUserAgentMiddlewareOptions = {
|
|
178
|
+
name: "getUserAgentMiddleware",
|
|
179
|
+
step: "build",
|
|
180
|
+
priority: "low",
|
|
181
|
+
tags: ["SET_USER_AGENT", "USER_AGENT"],
|
|
182
|
+
override: true,
|
|
183
|
+
};
|
|
184
|
+
const getUserAgentPlugin = (config) => ({
|
|
185
|
+
applyToStack: (clientStack) => {
|
|
186
|
+
clientStack.add(userAgentMiddleware(config), getUserAgentMiddlewareOptions);
|
|
187
|
+
},
|
|
188
|
+
});
|
|
189
|
+
|
|
190
|
+
exports.DEFAULT_UA_APP_ID = DEFAULT_UA_APP_ID;
|
|
191
|
+
exports.getUserAgentMiddlewareOptions = getUserAgentMiddlewareOptions;
|
|
192
|
+
exports.getUserAgentPlugin = getUserAgentPlugin;
|
|
193
|
+
exports.resolveUserAgentConfig = resolveUserAgentConfig;
|
|
194
|
+
exports.userAgentMiddleware = userAgentMiddleware;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@aws-sdk/middleware-user-agent",
|
|
3
|
+
"version": "3.972.23",
|
|
4
|
+
"scripts": {
|
|
5
|
+
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
6
|
+
"build:cjs": "node ../../scripts/compilation/inline middleware-user-agent",
|
|
7
|
+
"build:es": "tsc -p tsconfig.es.json",
|
|
8
|
+
"build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
|
|
9
|
+
"build:types": "tsc -p tsconfig.types.json",
|
|
10
|
+
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
11
|
+
"clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
|
|
12
|
+
"test": "yarn g:vitest run",
|
|
13
|
+
"test:integration": "yarn g:vitest run -c vitest.config.integ.mts",
|
|
14
|
+
"extract:docs": "api-extractor run --local",
|
|
15
|
+
"test:watch": "yarn g:vitest watch",
|
|
16
|
+
"test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
|
|
17
|
+
},
|
|
18
|
+
"main": "./dist-cjs/index.js",
|
|
19
|
+
"module": "./dist-es/index.js",
|
|
20
|
+
"types": "./dist-types/index.d.ts",
|
|
21
|
+
"sideEffects": false,
|
|
22
|
+
"author": {
|
|
23
|
+
"name": "AWS SDK for JavaScript Team",
|
|
24
|
+
"url": "https://aws.amazon.com/javascript/"
|
|
25
|
+
},
|
|
26
|
+
"license": "Apache-2.0",
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@aws-sdk/core": "^3.973.22",
|
|
29
|
+
"@aws-sdk/types": "^3.973.6",
|
|
30
|
+
"@aws-sdk/util-endpoints": "^3.996.5",
|
|
31
|
+
"@smithy/core": "^3.23.12",
|
|
32
|
+
"@smithy/protocol-http": "^5.3.12",
|
|
33
|
+
"@smithy/types": "^4.13.1",
|
|
34
|
+
"@smithy/util-retry": "^4.2.12",
|
|
35
|
+
"tslib": "^2.6.2"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@tsconfig/recommended": "1.0.1",
|
|
39
|
+
"concurrently": "7.0.0",
|
|
40
|
+
"downlevel-dts": "0.10.1",
|
|
41
|
+
"premove": "4.0.0",
|
|
42
|
+
"typescript": "~5.8.3"
|
|
43
|
+
},
|
|
44
|
+
"engines": {
|
|
45
|
+
"node": ">=20.0.0"
|
|
46
|
+
},
|
|
47
|
+
"typesVersions": {
|
|
48
|
+
"<4.5": {
|
|
49
|
+
"dist-types/*": [
|
|
50
|
+
"dist-types/ts3.4/*"
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"files": [
|
|
55
|
+
"dist-*/**"
|
|
56
|
+
],
|
|
57
|
+
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/middleware-user-agent",
|
|
58
|
+
"repository": {
|
|
59
|
+
"type": "git",
|
|
60
|
+
"url": "https://github.com/aws/aws-sdk-js-v3.git",
|
|
61
|
+
"directory": "packages-internal/middleware-user-agent"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolveHttpAuthSchemeConfig = exports.defaultSigninHttpAuthSchemeProvider = exports.defaultSigninHttpAuthSchemeParametersProvider = void 0;
|
|
4
|
+
const core_1 = require("@aws-sdk/core");
|
|
5
|
+
const util_middleware_1 = require("@smithy/util-middleware");
|
|
6
|
+
const defaultSigninHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
7
|
+
return {
|
|
8
|
+
operation: (0, util_middleware_1.getSmithyContext)(context).operation,
|
|
9
|
+
region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||
|
|
10
|
+
(() => {
|
|
11
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
12
|
+
})(),
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
exports.defaultSigninHttpAuthSchemeParametersProvider = defaultSigninHttpAuthSchemeParametersProvider;
|
|
16
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
17
|
+
return {
|
|
18
|
+
schemeId: "aws.auth#sigv4",
|
|
19
|
+
signingProperties: {
|
|
20
|
+
name: "signin",
|
|
21
|
+
region: authParameters.region,
|
|
22
|
+
},
|
|
23
|
+
propertiesExtractor: (config, context) => ({
|
|
24
|
+
signingProperties: {
|
|
25
|
+
config,
|
|
26
|
+
context,
|
|
27
|
+
},
|
|
28
|
+
}),
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
|
32
|
+
return {
|
|
33
|
+
schemeId: "smithy.api#noAuth",
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
const defaultSigninHttpAuthSchemeProvider = (authParameters) => {
|
|
37
|
+
const options = [];
|
|
38
|
+
switch (authParameters.operation) {
|
|
39
|
+
case "CreateOAuth2Token": {
|
|
40
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
default: {
|
|
44
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return options;
|
|
48
|
+
};
|
|
49
|
+
exports.defaultSigninHttpAuthSchemeProvider = defaultSigninHttpAuthSchemeProvider;
|
|
50
|
+
const resolveHttpAuthSchemeConfig = (config) => {
|
|
51
|
+
const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
|
|
52
|
+
return Object.assign(config_0, {
|
|
53
|
+
authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? []),
|
|
54
|
+
});
|
|
55
|
+
};
|
|
56
|
+
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defaultEndpointResolver = void 0;
|
|
4
|
+
const util_endpoints_1 = require("@aws-sdk/util-endpoints");
|
|
5
|
+
const util_endpoints_2 = require("@smithy/util-endpoints");
|
|
6
|
+
const ruleset_1 = require("./ruleset");
|
|
7
|
+
const cache = new util_endpoints_2.EndpointCache({
|
|
8
|
+
size: 50,
|
|
9
|
+
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
10
|
+
});
|
|
11
|
+
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
12
|
+
return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
|
|
13
|
+
endpointParams: endpointParams,
|
|
14
|
+
logger: context.logger,
|
|
15
|
+
}));
|
|
16
|
+
};
|
|
17
|
+
exports.defaultEndpointResolver = defaultEndpointResolver;
|
|
18
|
+
util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|
package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/ruleset.js
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ruleSet = void 0;
|
|
4
|
+
const u = "required", v = "fn", w = "argv", x = "ref";
|
|
5
|
+
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "stringEquals", i = { [u]: true, default: false, type: "boolean" }, j = { [u]: false, type: "string" }, k = { [x]: "Endpoint" }, l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] }, m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] }, n = {}, o = { [v]: "getAttr", [w]: [{ [x]: g }, "name"] }, p = { [v]: c, [w]: [{ [x]: "UseFIPS" }, false] }, q = { [v]: c, [w]: [{ [x]: "UseDualStack" }, false] }, r = { [v]: "getAttr", [w]: [{ [x]: g }, "supportsFIPS"] }, s = { [v]: c, [w]: [true, { [v]: "getAttr", [w]: [{ [x]: g }, "supportsDualStack"] }] }, t = [{ [x]: "Region" }];
|
|
6
|
+
const _data = {
|
|
7
|
+
version: "1.0",
|
|
8
|
+
parameters: { UseDualStack: i, UseFIPS: i, Endpoint: j, Region: j },
|
|
9
|
+
rules: [
|
|
10
|
+
{
|
|
11
|
+
conditions: [{ [v]: b, [w]: [k] }],
|
|
12
|
+
rules: [
|
|
13
|
+
{ conditions: [l], error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d },
|
|
14
|
+
{
|
|
15
|
+
rules: [
|
|
16
|
+
{
|
|
17
|
+
conditions: [m],
|
|
18
|
+
error: "Invalid Configuration: Dualstack and custom endpoint are not supported",
|
|
19
|
+
type: d,
|
|
20
|
+
},
|
|
21
|
+
{ endpoint: { url: k, properties: n, headers: n }, type: e },
|
|
22
|
+
],
|
|
23
|
+
type: f,
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
type: f,
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
rules: [
|
|
30
|
+
{
|
|
31
|
+
conditions: [{ [v]: b, [w]: t }],
|
|
32
|
+
rules: [
|
|
33
|
+
{
|
|
34
|
+
conditions: [{ [v]: "aws.partition", [w]: t, assign: g }],
|
|
35
|
+
rules: [
|
|
36
|
+
{
|
|
37
|
+
conditions: [{ [v]: h, [w]: [o, "aws"] }, p, q],
|
|
38
|
+
endpoint: { url: "https://{Region}.signin.aws.amazon.com", properties: n, headers: n },
|
|
39
|
+
type: e,
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
conditions: [{ [v]: h, [w]: [o, "aws-cn"] }, p, q],
|
|
43
|
+
endpoint: { url: "https://{Region}.signin.amazonaws.cn", properties: n, headers: n },
|
|
44
|
+
type: e,
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
conditions: [{ [v]: h, [w]: [o, "aws-us-gov"] }, p, q],
|
|
48
|
+
endpoint: { url: "https://{Region}.signin.amazonaws-us-gov.com", properties: n, headers: n },
|
|
49
|
+
type: e,
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
conditions: [l, m],
|
|
53
|
+
rules: [
|
|
54
|
+
{
|
|
55
|
+
conditions: [{ [v]: c, [w]: [a, r] }, s],
|
|
56
|
+
rules: [
|
|
57
|
+
{
|
|
58
|
+
endpoint: {
|
|
59
|
+
url: "https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
60
|
+
properties: n,
|
|
61
|
+
headers: n,
|
|
62
|
+
},
|
|
63
|
+
type: e,
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
type: f,
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
error: "FIPS and DualStack are enabled, but this partition does not support one or both",
|
|
70
|
+
type: d,
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
type: f,
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
conditions: [l, q],
|
|
77
|
+
rules: [
|
|
78
|
+
{
|
|
79
|
+
conditions: [{ [v]: c, [w]: [r, a] }],
|
|
80
|
+
rules: [
|
|
81
|
+
{
|
|
82
|
+
endpoint: {
|
|
83
|
+
url: "https://signin-fips.{Region}.{PartitionResult#dnsSuffix}",
|
|
84
|
+
properties: n,
|
|
85
|
+
headers: n,
|
|
86
|
+
},
|
|
87
|
+
type: e,
|
|
88
|
+
},
|
|
89
|
+
],
|
|
90
|
+
type: f,
|
|
91
|
+
},
|
|
92
|
+
{ error: "FIPS is enabled but this partition does not support FIPS", type: d },
|
|
93
|
+
],
|
|
94
|
+
type: f,
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
conditions: [p, m],
|
|
98
|
+
rules: [
|
|
99
|
+
{
|
|
100
|
+
conditions: [s],
|
|
101
|
+
rules: [
|
|
102
|
+
{
|
|
103
|
+
endpoint: {
|
|
104
|
+
url: "https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
105
|
+
properties: n,
|
|
106
|
+
headers: n,
|
|
107
|
+
},
|
|
108
|
+
type: e,
|
|
109
|
+
},
|
|
110
|
+
],
|
|
111
|
+
type: f,
|
|
112
|
+
},
|
|
113
|
+
{ error: "DualStack is enabled but this partition does not support DualStack", type: d },
|
|
114
|
+
],
|
|
115
|
+
type: f,
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
endpoint: { url: "https://signin.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n },
|
|
119
|
+
type: e,
|
|
120
|
+
},
|
|
121
|
+
],
|
|
122
|
+
type: f,
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
type: f,
|
|
126
|
+
},
|
|
127
|
+
{ error: "Invalid Configuration: Missing Region", type: d },
|
|
128
|
+
],
|
|
129
|
+
type: f,
|
|
130
|
+
},
|
|
131
|
+
],
|
|
132
|
+
};
|
|
133
|
+
exports.ruleSet = _data;
|