@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,146 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@smithy/core",
|
|
3
|
+
"version": "3.23.12",
|
|
4
|
+
"scripts": {
|
|
5
|
+
"build": "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
|
+
"build:cjs": "node ../../scripts/inline core",
|
|
7
|
+
"build:es": "yarn g:tsc -p tsconfig.es.json",
|
|
8
|
+
"build:types": "yarn g:tsc -p tsconfig.types.json",
|
|
9
|
+
"build:types:downlevel": "premove dist-types/ts3.4 && downlevel-dts dist-types dist-types/ts3.4",
|
|
10
|
+
"stage-release": "premove .release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
|
|
11
|
+
"clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
|
|
12
|
+
"lint": "npx eslint -c ../../.eslintrc.js \"src/**/*.ts\" --fix && node ./scripts/lint",
|
|
13
|
+
"format": "prettier --config ../../prettier.config.js --ignore-path ../../.prettierignore --write \"**/*.{ts,md,json}\"",
|
|
14
|
+
"extract:docs": "api-extractor run --local",
|
|
15
|
+
"test:cbor:perf": "node ./scripts/cbor-perf.mjs",
|
|
16
|
+
"test": "yarn g:vitest run",
|
|
17
|
+
"test:watch": "yarn g:vitest watch",
|
|
18
|
+
"test:integration": "yarn g:vitest run -c vitest.config.integ.mts",
|
|
19
|
+
"test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
|
|
20
|
+
},
|
|
21
|
+
"main": "./dist-cjs/index.js",
|
|
22
|
+
"module": "./dist-es/index.js",
|
|
23
|
+
"types": "./dist-types/index.d.ts",
|
|
24
|
+
"exports": {
|
|
25
|
+
".": {
|
|
26
|
+
"types": "./dist-types/index.d.ts",
|
|
27
|
+
"module": "./dist-es/index.js",
|
|
28
|
+
"node": "./dist-cjs/index.js",
|
|
29
|
+
"import": "./dist-es/index.js",
|
|
30
|
+
"require": "./dist-cjs/index.js"
|
|
31
|
+
},
|
|
32
|
+
"./package.json": {
|
|
33
|
+
"module": "./package.json",
|
|
34
|
+
"node": "./package.json",
|
|
35
|
+
"import": "./package.json",
|
|
36
|
+
"require": "./package.json"
|
|
37
|
+
},
|
|
38
|
+
"./cbor": {
|
|
39
|
+
"types": "./dist-types/submodules/cbor/index.d.ts",
|
|
40
|
+
"module": "./dist-es/submodules/cbor/index.js",
|
|
41
|
+
"node": "./dist-cjs/submodules/cbor/index.js",
|
|
42
|
+
"import": "./dist-es/submodules/cbor/index.js",
|
|
43
|
+
"require": "./dist-cjs/submodules/cbor/index.js"
|
|
44
|
+
},
|
|
45
|
+
"./protocols": {
|
|
46
|
+
"types": "./dist-types/submodules/protocols/index.d.ts",
|
|
47
|
+
"module": "./dist-es/submodules/protocols/index.js",
|
|
48
|
+
"node": "./dist-cjs/submodules/protocols/index.js",
|
|
49
|
+
"import": "./dist-es/submodules/protocols/index.js",
|
|
50
|
+
"require": "./dist-cjs/submodules/protocols/index.js"
|
|
51
|
+
},
|
|
52
|
+
"./serde": {
|
|
53
|
+
"types": "./dist-types/submodules/serde/index.d.ts",
|
|
54
|
+
"module": "./dist-es/submodules/serde/index.js",
|
|
55
|
+
"node": "./dist-cjs/submodules/serde/index.js",
|
|
56
|
+
"import": "./dist-es/submodules/serde/index.js",
|
|
57
|
+
"require": "./dist-cjs/submodules/serde/index.js"
|
|
58
|
+
},
|
|
59
|
+
"./schema": {
|
|
60
|
+
"types": "./dist-types/submodules/schema/index.d.ts",
|
|
61
|
+
"module": "./dist-es/submodules/schema/index.js",
|
|
62
|
+
"node": "./dist-cjs/submodules/schema/index.js",
|
|
63
|
+
"import": "./dist-es/submodules/schema/index.js",
|
|
64
|
+
"require": "./dist-cjs/submodules/schema/index.js"
|
|
65
|
+
},
|
|
66
|
+
"./event-streams": {
|
|
67
|
+
"types": "./dist-types/submodules/event-streams/index.d.ts",
|
|
68
|
+
"module": "./dist-es/submodules/event-streams/index.js",
|
|
69
|
+
"node": "./dist-cjs/submodules/event-streams/index.js",
|
|
70
|
+
"import": "./dist-es/submodules/event-streams/index.js",
|
|
71
|
+
"require": "./dist-cjs/submodules/event-streams/index.js"
|
|
72
|
+
},
|
|
73
|
+
"./endpoints": {
|
|
74
|
+
"types": "./dist-types/submodules/endpoints/index.d.ts",
|
|
75
|
+
"module": "./dist-es/submodules/endpoints/index.js",
|
|
76
|
+
"node": "./dist-cjs/submodules/endpoints/index.js",
|
|
77
|
+
"import": "./dist-es/submodules/endpoints/index.js",
|
|
78
|
+
"require": "./dist-cjs/submodules/endpoints/index.js"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"author": {
|
|
82
|
+
"name": "AWS Smithy Team",
|
|
83
|
+
"email": "",
|
|
84
|
+
"url": "https://smithy.io"
|
|
85
|
+
},
|
|
86
|
+
"license": "Apache-2.0",
|
|
87
|
+
"sideEffects": false,
|
|
88
|
+
"dependencies": {
|
|
89
|
+
"@smithy/protocol-http": "^5.3.12",
|
|
90
|
+
"@smithy/types": "^4.13.1",
|
|
91
|
+
"@smithy/url-parser": "^4.2.12",
|
|
92
|
+
"@smithy/util-base64": "^4.3.2",
|
|
93
|
+
"@smithy/util-body-length-browser": "^4.2.2",
|
|
94
|
+
"@smithy/util-middleware": "^4.2.12",
|
|
95
|
+
"@smithy/util-stream": "^4.5.20",
|
|
96
|
+
"@smithy/util-utf8": "^4.2.2",
|
|
97
|
+
"@smithy/uuid": "^1.1.2",
|
|
98
|
+
"tslib": "^2.6.2"
|
|
99
|
+
},
|
|
100
|
+
"engines": {
|
|
101
|
+
"node": ">=18.0.0"
|
|
102
|
+
},
|
|
103
|
+
"typesVersions": {
|
|
104
|
+
"<4.5": {
|
|
105
|
+
"dist-types/*": [
|
|
106
|
+
"dist-types/ts3.4/*"
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"files": [
|
|
111
|
+
"./cbor.d.ts",
|
|
112
|
+
"./cbor.js",
|
|
113
|
+
"./endpoints.d.ts",
|
|
114
|
+
"./endpoints.js",
|
|
115
|
+
"./event-streams.d.ts",
|
|
116
|
+
"./event-streams.js",
|
|
117
|
+
"./protocols.d.ts",
|
|
118
|
+
"./protocols.js",
|
|
119
|
+
"./schema.d.ts",
|
|
120
|
+
"./schema.js",
|
|
121
|
+
"./serde.d.ts",
|
|
122
|
+
"./serde.js",
|
|
123
|
+
"dist-*/**"
|
|
124
|
+
],
|
|
125
|
+
"homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/core",
|
|
126
|
+
"repository": {
|
|
127
|
+
"type": "git",
|
|
128
|
+
"url": "https://github.com/smithy-lang/smithy-typescript.git",
|
|
129
|
+
"directory": "packages/core"
|
|
130
|
+
},
|
|
131
|
+
"devDependencies": {
|
|
132
|
+
"@smithy/eventstream-serde-node": "^4.2.12",
|
|
133
|
+
"@types/node": "^18.11.9",
|
|
134
|
+
"concurrently": "7.0.0",
|
|
135
|
+
"downlevel-dts": "0.10.1",
|
|
136
|
+
"json-bigint": "^1.0.0",
|
|
137
|
+
"premove": "4.0.0",
|
|
138
|
+
"typedoc": "0.23.23"
|
|
139
|
+
},
|
|
140
|
+
"typedoc": {
|
|
141
|
+
"entryPoint": "src/index.ts"
|
|
142
|
+
},
|
|
143
|
+
"publishConfig": {
|
|
144
|
+
"directory": ".release/package"
|
|
145
|
+
}
|
|
146
|
+
}
|
|
@@ -0,0 +1,372 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var propertyProvider = require('@smithy/property-provider');
|
|
4
|
+
var url = require('url');
|
|
5
|
+
var buffer = require('buffer');
|
|
6
|
+
var http = require('http');
|
|
7
|
+
var nodeConfigProvider = require('@smithy/node-config-provider');
|
|
8
|
+
var urlParser = require('@smithy/url-parser');
|
|
9
|
+
|
|
10
|
+
function httpRequest(options) {
|
|
11
|
+
return new Promise((resolve, reject) => {
|
|
12
|
+
const req = http.request({
|
|
13
|
+
method: "GET",
|
|
14
|
+
...options,
|
|
15
|
+
hostname: options.hostname?.replace(/^\[(.+)\]$/, "$1"),
|
|
16
|
+
});
|
|
17
|
+
req.on("error", (err) => {
|
|
18
|
+
reject(Object.assign(new propertyProvider.ProviderError("Unable to connect to instance metadata service"), err));
|
|
19
|
+
req.destroy();
|
|
20
|
+
});
|
|
21
|
+
req.on("timeout", () => {
|
|
22
|
+
reject(new propertyProvider.ProviderError("TimeoutError from instance metadata service"));
|
|
23
|
+
req.destroy();
|
|
24
|
+
});
|
|
25
|
+
req.on("response", (res) => {
|
|
26
|
+
const { statusCode = 400 } = res;
|
|
27
|
+
if (statusCode < 200 || 300 <= statusCode) {
|
|
28
|
+
reject(Object.assign(new propertyProvider.ProviderError("Error response received from instance metadata service"), { statusCode }));
|
|
29
|
+
req.destroy();
|
|
30
|
+
}
|
|
31
|
+
const chunks = [];
|
|
32
|
+
res.on("data", (chunk) => {
|
|
33
|
+
chunks.push(chunk);
|
|
34
|
+
});
|
|
35
|
+
res.on("end", () => {
|
|
36
|
+
resolve(buffer.Buffer.concat(chunks));
|
|
37
|
+
req.destroy();
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
req.end();
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
const isImdsCredentials = (arg) => Boolean(arg) &&
|
|
45
|
+
typeof arg === "object" &&
|
|
46
|
+
typeof arg.AccessKeyId === "string" &&
|
|
47
|
+
typeof arg.SecretAccessKey === "string" &&
|
|
48
|
+
typeof arg.Token === "string" &&
|
|
49
|
+
typeof arg.Expiration === "string";
|
|
50
|
+
const fromImdsCredentials = (creds) => ({
|
|
51
|
+
accessKeyId: creds.AccessKeyId,
|
|
52
|
+
secretAccessKey: creds.SecretAccessKey,
|
|
53
|
+
sessionToken: creds.Token,
|
|
54
|
+
expiration: new Date(creds.Expiration),
|
|
55
|
+
...(creds.AccountId && { accountId: creds.AccountId }),
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
const DEFAULT_TIMEOUT = 1000;
|
|
59
|
+
const DEFAULT_MAX_RETRIES = 0;
|
|
60
|
+
const providerConfigFromInit = ({ maxRetries = DEFAULT_MAX_RETRIES, timeout = DEFAULT_TIMEOUT, }) => ({ maxRetries, timeout });
|
|
61
|
+
|
|
62
|
+
const retry = (toRetry, maxRetries) => {
|
|
63
|
+
let promise = toRetry();
|
|
64
|
+
for (let i = 0; i < maxRetries; i++) {
|
|
65
|
+
promise = promise.catch(toRetry);
|
|
66
|
+
}
|
|
67
|
+
return promise;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
const ENV_CMDS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI";
|
|
71
|
+
const ENV_CMDS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";
|
|
72
|
+
const ENV_CMDS_AUTH_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN";
|
|
73
|
+
const fromContainerMetadata = (init = {}) => {
|
|
74
|
+
const { timeout, maxRetries } = providerConfigFromInit(init);
|
|
75
|
+
return () => retry(async () => {
|
|
76
|
+
const requestOptions = await getCmdsUri({ logger: init.logger });
|
|
77
|
+
const credsResponse = JSON.parse(await requestFromEcsImds(timeout, requestOptions));
|
|
78
|
+
if (!isImdsCredentials(credsResponse)) {
|
|
79
|
+
throw new propertyProvider.CredentialsProviderError("Invalid response received from instance metadata service.", {
|
|
80
|
+
logger: init.logger,
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
return fromImdsCredentials(credsResponse);
|
|
84
|
+
}, maxRetries);
|
|
85
|
+
};
|
|
86
|
+
const requestFromEcsImds = async (timeout, options) => {
|
|
87
|
+
if (process.env[ENV_CMDS_AUTH_TOKEN]) {
|
|
88
|
+
options.headers = {
|
|
89
|
+
...options.headers,
|
|
90
|
+
Authorization: process.env[ENV_CMDS_AUTH_TOKEN],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
const buffer = await httpRequest({
|
|
94
|
+
...options,
|
|
95
|
+
timeout,
|
|
96
|
+
});
|
|
97
|
+
return buffer.toString();
|
|
98
|
+
};
|
|
99
|
+
const CMDS_IP = "169.254.170.2";
|
|
100
|
+
const GREENGRASS_HOSTS = {
|
|
101
|
+
localhost: true,
|
|
102
|
+
"127.0.0.1": true,
|
|
103
|
+
};
|
|
104
|
+
const GREENGRASS_PROTOCOLS = {
|
|
105
|
+
"http:": true,
|
|
106
|
+
"https:": true,
|
|
107
|
+
};
|
|
108
|
+
const getCmdsUri = async ({ logger }) => {
|
|
109
|
+
if (process.env[ENV_CMDS_RELATIVE_URI]) {
|
|
110
|
+
return {
|
|
111
|
+
hostname: CMDS_IP,
|
|
112
|
+
path: process.env[ENV_CMDS_RELATIVE_URI],
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
if (process.env[ENV_CMDS_FULL_URI]) {
|
|
116
|
+
const parsed = url.parse(process.env[ENV_CMDS_FULL_URI]);
|
|
117
|
+
if (!parsed.hostname || !(parsed.hostname in GREENGRASS_HOSTS)) {
|
|
118
|
+
throw new propertyProvider.CredentialsProviderError(`${parsed.hostname} is not a valid container metadata service hostname`, {
|
|
119
|
+
tryNextLink: false,
|
|
120
|
+
logger,
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
if (!parsed.protocol || !(parsed.protocol in GREENGRASS_PROTOCOLS)) {
|
|
124
|
+
throw new propertyProvider.CredentialsProviderError(`${parsed.protocol} is not a valid container metadata service protocol`, {
|
|
125
|
+
tryNextLink: false,
|
|
126
|
+
logger,
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
return {
|
|
130
|
+
...parsed,
|
|
131
|
+
port: parsed.port ? parseInt(parsed.port, 10) : undefined,
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
throw new propertyProvider.CredentialsProviderError("The container metadata credential provider cannot be used unless" +
|
|
135
|
+
` the ${ENV_CMDS_RELATIVE_URI} or ${ENV_CMDS_FULL_URI} environment` +
|
|
136
|
+
" variable is set", {
|
|
137
|
+
tryNextLink: false,
|
|
138
|
+
logger,
|
|
139
|
+
});
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
class InstanceMetadataV1FallbackError extends propertyProvider.CredentialsProviderError {
|
|
143
|
+
tryNextLink;
|
|
144
|
+
name = "InstanceMetadataV1FallbackError";
|
|
145
|
+
constructor(message, tryNextLink = true) {
|
|
146
|
+
super(message, tryNextLink);
|
|
147
|
+
this.tryNextLink = tryNextLink;
|
|
148
|
+
Object.setPrototypeOf(this, InstanceMetadataV1FallbackError.prototype);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
exports.Endpoint = void 0;
|
|
153
|
+
(function (Endpoint) {
|
|
154
|
+
Endpoint["IPv4"] = "http://169.254.169.254";
|
|
155
|
+
Endpoint["IPv6"] = "http://[fd00:ec2::254]";
|
|
156
|
+
})(exports.Endpoint || (exports.Endpoint = {}));
|
|
157
|
+
|
|
158
|
+
const ENV_ENDPOINT_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT";
|
|
159
|
+
const CONFIG_ENDPOINT_NAME = "ec2_metadata_service_endpoint";
|
|
160
|
+
const ENDPOINT_CONFIG_OPTIONS = {
|
|
161
|
+
environmentVariableSelector: (env) => env[ENV_ENDPOINT_NAME],
|
|
162
|
+
configFileSelector: (profile) => profile[CONFIG_ENDPOINT_NAME],
|
|
163
|
+
default: undefined,
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
var EndpointMode;
|
|
167
|
+
(function (EndpointMode) {
|
|
168
|
+
EndpointMode["IPv4"] = "IPv4";
|
|
169
|
+
EndpointMode["IPv6"] = "IPv6";
|
|
170
|
+
})(EndpointMode || (EndpointMode = {}));
|
|
171
|
+
|
|
172
|
+
const ENV_ENDPOINT_MODE_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";
|
|
173
|
+
const CONFIG_ENDPOINT_MODE_NAME = "ec2_metadata_service_endpoint_mode";
|
|
174
|
+
const ENDPOINT_MODE_CONFIG_OPTIONS = {
|
|
175
|
+
environmentVariableSelector: (env) => env[ENV_ENDPOINT_MODE_NAME],
|
|
176
|
+
configFileSelector: (profile) => profile[CONFIG_ENDPOINT_MODE_NAME],
|
|
177
|
+
default: EndpointMode.IPv4,
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
const getInstanceMetadataEndpoint = async () => urlParser.parseUrl((await getFromEndpointConfig()) || (await getFromEndpointModeConfig()));
|
|
181
|
+
const getFromEndpointConfig = async () => nodeConfigProvider.loadConfig(ENDPOINT_CONFIG_OPTIONS)();
|
|
182
|
+
const getFromEndpointModeConfig = async () => {
|
|
183
|
+
const endpointMode = await nodeConfigProvider.loadConfig(ENDPOINT_MODE_CONFIG_OPTIONS)();
|
|
184
|
+
switch (endpointMode) {
|
|
185
|
+
case EndpointMode.IPv4:
|
|
186
|
+
return exports.Endpoint.IPv4;
|
|
187
|
+
case EndpointMode.IPv6:
|
|
188
|
+
return exports.Endpoint.IPv6;
|
|
189
|
+
default:
|
|
190
|
+
throw new Error(`Unsupported endpoint mode: ${endpointMode}.` + ` Select from ${Object.values(EndpointMode)}`);
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
const STATIC_STABILITY_REFRESH_INTERVAL_SECONDS = 5 * 60;
|
|
195
|
+
const STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS = 5 * 60;
|
|
196
|
+
const STATIC_STABILITY_DOC_URL = "https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html";
|
|
197
|
+
const getExtendedInstanceMetadataCredentials = (credentials, logger) => {
|
|
198
|
+
const refreshInterval = STATIC_STABILITY_REFRESH_INTERVAL_SECONDS +
|
|
199
|
+
Math.floor(Math.random() * STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS);
|
|
200
|
+
const newExpiration = new Date(Date.now() + refreshInterval * 1000);
|
|
201
|
+
logger.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these " +
|
|
202
|
+
`credentials will be attempted after ${new Date(newExpiration)}.\nFor more information, please visit: ` +
|
|
203
|
+
STATIC_STABILITY_DOC_URL);
|
|
204
|
+
const originalExpiration = credentials.originalExpiration ?? credentials.expiration;
|
|
205
|
+
return {
|
|
206
|
+
...credentials,
|
|
207
|
+
...(originalExpiration ? { originalExpiration } : {}),
|
|
208
|
+
expiration: newExpiration,
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
const staticStabilityProvider = (provider, options = {}) => {
|
|
213
|
+
const logger = options?.logger || console;
|
|
214
|
+
let pastCredentials;
|
|
215
|
+
return async () => {
|
|
216
|
+
let credentials;
|
|
217
|
+
try {
|
|
218
|
+
credentials = await provider();
|
|
219
|
+
if (credentials.expiration && credentials.expiration.getTime() < Date.now()) {
|
|
220
|
+
credentials = getExtendedInstanceMetadataCredentials(credentials, logger);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
catch (e) {
|
|
224
|
+
if (pastCredentials) {
|
|
225
|
+
logger.warn("Credential renew failed: ", e);
|
|
226
|
+
credentials = getExtendedInstanceMetadataCredentials(pastCredentials, logger);
|
|
227
|
+
}
|
|
228
|
+
else {
|
|
229
|
+
throw e;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
pastCredentials = credentials;
|
|
233
|
+
return credentials;
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
const IMDS_PATH = "/latest/meta-data/iam/security-credentials/";
|
|
238
|
+
const IMDS_TOKEN_PATH = "/latest/api/token";
|
|
239
|
+
const AWS_EC2_METADATA_V1_DISABLED = "AWS_EC2_METADATA_V1_DISABLED";
|
|
240
|
+
const PROFILE_AWS_EC2_METADATA_V1_DISABLED = "ec2_metadata_v1_disabled";
|
|
241
|
+
const X_AWS_EC2_METADATA_TOKEN = "x-aws-ec2-metadata-token";
|
|
242
|
+
const fromInstanceMetadata = (init = {}) => staticStabilityProvider(getInstanceMetadataProvider(init), { logger: init.logger });
|
|
243
|
+
const getInstanceMetadataProvider = (init = {}) => {
|
|
244
|
+
let disableFetchToken = false;
|
|
245
|
+
const { logger, profile } = init;
|
|
246
|
+
const { timeout, maxRetries } = providerConfigFromInit(init);
|
|
247
|
+
const getCredentials = async (maxRetries, options) => {
|
|
248
|
+
const isImdsV1Fallback = disableFetchToken || options.headers?.[X_AWS_EC2_METADATA_TOKEN] == null;
|
|
249
|
+
if (isImdsV1Fallback) {
|
|
250
|
+
let fallbackBlockedFromProfile = false;
|
|
251
|
+
let fallbackBlockedFromProcessEnv = false;
|
|
252
|
+
const configValue = await nodeConfigProvider.loadConfig({
|
|
253
|
+
environmentVariableSelector: (env) => {
|
|
254
|
+
const envValue = env[AWS_EC2_METADATA_V1_DISABLED];
|
|
255
|
+
fallbackBlockedFromProcessEnv = !!envValue && envValue !== "false";
|
|
256
|
+
if (envValue === undefined) {
|
|
257
|
+
throw new propertyProvider.CredentialsProviderError(`${AWS_EC2_METADATA_V1_DISABLED} not set in env, checking config file next.`, { logger: init.logger });
|
|
258
|
+
}
|
|
259
|
+
return fallbackBlockedFromProcessEnv;
|
|
260
|
+
},
|
|
261
|
+
configFileSelector: (profile) => {
|
|
262
|
+
const profileValue = profile[PROFILE_AWS_EC2_METADATA_V1_DISABLED];
|
|
263
|
+
fallbackBlockedFromProfile = !!profileValue && profileValue !== "false";
|
|
264
|
+
return fallbackBlockedFromProfile;
|
|
265
|
+
},
|
|
266
|
+
default: false,
|
|
267
|
+
}, {
|
|
268
|
+
profile,
|
|
269
|
+
})();
|
|
270
|
+
if (init.ec2MetadataV1Disabled || configValue) {
|
|
271
|
+
const causes = [];
|
|
272
|
+
if (init.ec2MetadataV1Disabled)
|
|
273
|
+
causes.push("credential provider initialization (runtime option ec2MetadataV1Disabled)");
|
|
274
|
+
if (fallbackBlockedFromProfile)
|
|
275
|
+
causes.push(`config file profile (${PROFILE_AWS_EC2_METADATA_V1_DISABLED})`);
|
|
276
|
+
if (fallbackBlockedFromProcessEnv)
|
|
277
|
+
causes.push(`process environment variable (${AWS_EC2_METADATA_V1_DISABLED})`);
|
|
278
|
+
throw new InstanceMetadataV1FallbackError(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${causes.join(", ")}].`);
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
const imdsProfile = (await retry(async () => {
|
|
282
|
+
let profile;
|
|
283
|
+
try {
|
|
284
|
+
profile = await getProfile(options);
|
|
285
|
+
}
|
|
286
|
+
catch (err) {
|
|
287
|
+
if (err.statusCode === 401) {
|
|
288
|
+
disableFetchToken = false;
|
|
289
|
+
}
|
|
290
|
+
throw err;
|
|
291
|
+
}
|
|
292
|
+
return profile;
|
|
293
|
+
}, maxRetries)).trim();
|
|
294
|
+
return retry(async () => {
|
|
295
|
+
let creds;
|
|
296
|
+
try {
|
|
297
|
+
creds = await getCredentialsFromProfile(imdsProfile, options, init);
|
|
298
|
+
}
|
|
299
|
+
catch (err) {
|
|
300
|
+
if (err.statusCode === 401) {
|
|
301
|
+
disableFetchToken = false;
|
|
302
|
+
}
|
|
303
|
+
throw err;
|
|
304
|
+
}
|
|
305
|
+
return creds;
|
|
306
|
+
}, maxRetries);
|
|
307
|
+
};
|
|
308
|
+
return async () => {
|
|
309
|
+
const endpoint = await getInstanceMetadataEndpoint();
|
|
310
|
+
if (disableFetchToken) {
|
|
311
|
+
logger?.debug("AWS SDK Instance Metadata", "using v1 fallback (no token fetch)");
|
|
312
|
+
return getCredentials(maxRetries, { ...endpoint, timeout });
|
|
313
|
+
}
|
|
314
|
+
else {
|
|
315
|
+
let token;
|
|
316
|
+
try {
|
|
317
|
+
token = (await getMetadataToken({ ...endpoint, timeout })).toString();
|
|
318
|
+
}
|
|
319
|
+
catch (error) {
|
|
320
|
+
if (error?.statusCode === 400) {
|
|
321
|
+
throw Object.assign(error, {
|
|
322
|
+
message: "EC2 Metadata token request returned error",
|
|
323
|
+
});
|
|
324
|
+
}
|
|
325
|
+
else if (error.message === "TimeoutError" || [403, 404, 405].includes(error.statusCode)) {
|
|
326
|
+
disableFetchToken = true;
|
|
327
|
+
}
|
|
328
|
+
logger?.debug("AWS SDK Instance Metadata", "using v1 fallback (initial)");
|
|
329
|
+
return getCredentials(maxRetries, { ...endpoint, timeout });
|
|
330
|
+
}
|
|
331
|
+
return getCredentials(maxRetries, {
|
|
332
|
+
...endpoint,
|
|
333
|
+
headers: {
|
|
334
|
+
[X_AWS_EC2_METADATA_TOKEN]: token,
|
|
335
|
+
},
|
|
336
|
+
timeout,
|
|
337
|
+
});
|
|
338
|
+
}
|
|
339
|
+
};
|
|
340
|
+
};
|
|
341
|
+
const getMetadataToken = async (options) => httpRequest({
|
|
342
|
+
...options,
|
|
343
|
+
path: IMDS_TOKEN_PATH,
|
|
344
|
+
method: "PUT",
|
|
345
|
+
headers: {
|
|
346
|
+
"x-aws-ec2-metadata-token-ttl-seconds": "21600",
|
|
347
|
+
},
|
|
348
|
+
});
|
|
349
|
+
const getProfile = async (options) => (await httpRequest({ ...options, path: IMDS_PATH })).toString();
|
|
350
|
+
const getCredentialsFromProfile = async (profile, options, init) => {
|
|
351
|
+
const credentialsResponse = JSON.parse((await httpRequest({
|
|
352
|
+
...options,
|
|
353
|
+
path: IMDS_PATH + profile,
|
|
354
|
+
})).toString());
|
|
355
|
+
if (!isImdsCredentials(credentialsResponse)) {
|
|
356
|
+
throw new propertyProvider.CredentialsProviderError("Invalid response received from instance metadata service.", {
|
|
357
|
+
logger: init.logger,
|
|
358
|
+
});
|
|
359
|
+
}
|
|
360
|
+
return fromImdsCredentials(credentialsResponse);
|
|
361
|
+
};
|
|
362
|
+
|
|
363
|
+
exports.DEFAULT_MAX_RETRIES = DEFAULT_MAX_RETRIES;
|
|
364
|
+
exports.DEFAULT_TIMEOUT = DEFAULT_TIMEOUT;
|
|
365
|
+
exports.ENV_CMDS_AUTH_TOKEN = ENV_CMDS_AUTH_TOKEN;
|
|
366
|
+
exports.ENV_CMDS_FULL_URI = ENV_CMDS_FULL_URI;
|
|
367
|
+
exports.ENV_CMDS_RELATIVE_URI = ENV_CMDS_RELATIVE_URI;
|
|
368
|
+
exports.fromContainerMetadata = fromContainerMetadata;
|
|
369
|
+
exports.fromInstanceMetadata = fromInstanceMetadata;
|
|
370
|
+
exports.getInstanceMetadataEndpoint = getInstanceMetadataEndpoint;
|
|
371
|
+
exports.httpRequest = httpRequest;
|
|
372
|
+
exports.providerConfigFromInit = providerConfigFromInit;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@smithy/credential-provider-imds",
|
|
3
|
+
"version": "4.2.12",
|
|
4
|
+
"description": "AWS credential provider that sources credentials from the EC2 instance metadata service and ECS container metadata service",
|
|
5
|
+
"main": "./dist-cjs/index.js",
|
|
6
|
+
"module": "./dist-es/index.js",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
9
|
+
"build:cjs": "node ../../scripts/inline credential-provider-imds",
|
|
10
|
+
"build:es": "yarn g:tsc -p tsconfig.es.json",
|
|
11
|
+
"build:types": "yarn g:tsc -p tsconfig.types.json",
|
|
12
|
+
"build:types:downlevel": "premove dist-types/ts3.4 && downlevel-dts dist-types dist-types/ts3.4",
|
|
13
|
+
"stage-release": "premove .release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
|
|
14
|
+
"clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
|
|
15
|
+
"lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
|
|
16
|
+
"format": "prettier --config ../../prettier.config.js --ignore-path ../../.prettierignore --write \"**/*.{ts,md,json}\"",
|
|
17
|
+
"test": "yarn g:vitest run",
|
|
18
|
+
"test:watch": "yarn g:vitest watch"
|
|
19
|
+
},
|
|
20
|
+
"keywords": [
|
|
21
|
+
"aws",
|
|
22
|
+
"credentials"
|
|
23
|
+
],
|
|
24
|
+
"author": {
|
|
25
|
+
"name": "AWS SDK for JavaScript Team",
|
|
26
|
+
"url": "https://aws.amazon.com/javascript/"
|
|
27
|
+
},
|
|
28
|
+
"license": "Apache-2.0",
|
|
29
|
+
"sideEffects": false,
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@smithy/node-config-provider": "^4.3.12",
|
|
32
|
+
"@smithy/property-provider": "^4.2.12",
|
|
33
|
+
"@smithy/types": "^4.13.1",
|
|
34
|
+
"@smithy/url-parser": "^4.2.12",
|
|
35
|
+
"tslib": "^2.6.2"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@types/node": "^18.11.9",
|
|
39
|
+
"concurrently": "7.0.0",
|
|
40
|
+
"downlevel-dts": "0.10.1",
|
|
41
|
+
"premove": "4.0.0",
|
|
42
|
+
"typedoc": "0.23.23"
|
|
43
|
+
},
|
|
44
|
+
"types": "./dist-types/index.d.ts",
|
|
45
|
+
"engines": {
|
|
46
|
+
"node": ">=18.0.0"
|
|
47
|
+
},
|
|
48
|
+
"typesVersions": {
|
|
49
|
+
"<4.5": {
|
|
50
|
+
"dist-types/*": [
|
|
51
|
+
"dist-types/ts3.4/*"
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"files": [
|
|
56
|
+
"dist-*/**"
|
|
57
|
+
],
|
|
58
|
+
"homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/credential-provider-imds",
|
|
59
|
+
"repository": {
|
|
60
|
+
"type": "git",
|
|
61
|
+
"url": "https://github.com/smithy-lang/smithy-typescript.git",
|
|
62
|
+
"directory": "packages/credential-provider-imds"
|
|
63
|
+
},
|
|
64
|
+
"typedoc": {
|
|
65
|
+
"entryPoint": "src/index.ts"
|
|
66
|
+
},
|
|
67
|
+
"publishConfig": {
|
|
68
|
+
"directory": ".release/package"
|
|
69
|
+
}
|
|
70
|
+
}
|