@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,156 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var credentialProviderEnv = require('@aws-sdk/credential-provider-env');
|
|
4
|
+
var propertyProvider = require('@smithy/property-provider');
|
|
5
|
+
var sharedIniFileLoader = require('@smithy/shared-ini-file-loader');
|
|
6
|
+
|
|
7
|
+
const ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED";
|
|
8
|
+
const remoteProvider = async (init) => {
|
|
9
|
+
const { ENV_CMDS_FULL_URI, ENV_CMDS_RELATIVE_URI, fromContainerMetadata, fromInstanceMetadata } = await import('@smithy/credential-provider-imds');
|
|
10
|
+
if (process.env[ENV_CMDS_RELATIVE_URI] || process.env[ENV_CMDS_FULL_URI]) {
|
|
11
|
+
init.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");
|
|
12
|
+
const { fromHttp } = await import('@aws-sdk/credential-provider-http');
|
|
13
|
+
return propertyProvider.chain(fromHttp(init), fromContainerMetadata(init));
|
|
14
|
+
}
|
|
15
|
+
if (process.env[ENV_IMDS_DISABLED] && process.env[ENV_IMDS_DISABLED] !== "false") {
|
|
16
|
+
return async () => {
|
|
17
|
+
throw new propertyProvider.CredentialsProviderError("EC2 Instance Metadata Service access disabled", { logger: init.logger });
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
init.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata");
|
|
21
|
+
return fromInstanceMetadata(init);
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
function memoizeChain(providers, treatAsExpired) {
|
|
25
|
+
const chain = internalCreateChain(providers);
|
|
26
|
+
let activeLock;
|
|
27
|
+
let passiveLock;
|
|
28
|
+
let credentials;
|
|
29
|
+
const provider = async (options) => {
|
|
30
|
+
if (options?.forceRefresh) {
|
|
31
|
+
return await chain(options);
|
|
32
|
+
}
|
|
33
|
+
if (credentials?.expiration) {
|
|
34
|
+
if (credentials?.expiration?.getTime() < Date.now()) {
|
|
35
|
+
credentials = undefined;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
if (activeLock) {
|
|
39
|
+
await activeLock;
|
|
40
|
+
}
|
|
41
|
+
else if (!credentials || treatAsExpired?.(credentials)) {
|
|
42
|
+
if (credentials) {
|
|
43
|
+
if (!passiveLock) {
|
|
44
|
+
passiveLock = chain(options)
|
|
45
|
+
.then((c) => {
|
|
46
|
+
credentials = c;
|
|
47
|
+
})
|
|
48
|
+
.finally(() => {
|
|
49
|
+
passiveLock = undefined;
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
activeLock = chain(options)
|
|
55
|
+
.then((c) => {
|
|
56
|
+
credentials = c;
|
|
57
|
+
})
|
|
58
|
+
.finally(() => {
|
|
59
|
+
activeLock = undefined;
|
|
60
|
+
});
|
|
61
|
+
return provider(options);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
return credentials;
|
|
65
|
+
};
|
|
66
|
+
return provider;
|
|
67
|
+
}
|
|
68
|
+
const internalCreateChain = (providers) => async (awsIdentityProperties) => {
|
|
69
|
+
let lastProviderError;
|
|
70
|
+
for (const provider of providers) {
|
|
71
|
+
try {
|
|
72
|
+
return await provider(awsIdentityProperties);
|
|
73
|
+
}
|
|
74
|
+
catch (err) {
|
|
75
|
+
lastProviderError = err;
|
|
76
|
+
if (err?.tryNextLink) {
|
|
77
|
+
continue;
|
|
78
|
+
}
|
|
79
|
+
throw err;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
throw lastProviderError;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
let multipleCredentialSourceWarningEmitted = false;
|
|
86
|
+
const defaultProvider = (init = {}) => memoizeChain([
|
|
87
|
+
async () => {
|
|
88
|
+
const profile = init.profile ?? process.env[sharedIniFileLoader.ENV_PROFILE];
|
|
89
|
+
if (profile) {
|
|
90
|
+
const envStaticCredentialsAreSet = process.env[credentialProviderEnv.ENV_KEY] && process.env[credentialProviderEnv.ENV_SECRET];
|
|
91
|
+
if (envStaticCredentialsAreSet) {
|
|
92
|
+
if (!multipleCredentialSourceWarningEmitted) {
|
|
93
|
+
const warnFn = init.logger?.warn && init.logger?.constructor?.name !== "NoOpLogger"
|
|
94
|
+
? init.logger.warn.bind(init.logger)
|
|
95
|
+
: console.warn;
|
|
96
|
+
warnFn(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:
|
|
97
|
+
Multiple credential sources detected:
|
|
98
|
+
Both AWS_PROFILE and the pair AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY static credentials are set.
|
|
99
|
+
This SDK will proceed with the AWS_PROFILE value.
|
|
100
|
+
|
|
101
|
+
However, a future version may change this behavior to prefer the ENV static credentials.
|
|
102
|
+
Please ensure that your environment only sets either the AWS_PROFILE or the
|
|
103
|
+
AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY pair.
|
|
104
|
+
`);
|
|
105
|
+
multipleCredentialSourceWarningEmitted = true;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
throw new propertyProvider.CredentialsProviderError("AWS_PROFILE is set, skipping fromEnv provider.", {
|
|
109
|
+
logger: init.logger,
|
|
110
|
+
tryNextLink: true,
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv");
|
|
114
|
+
return credentialProviderEnv.fromEnv(init)();
|
|
115
|
+
},
|
|
116
|
+
async (awsIdentityProperties) => {
|
|
117
|
+
init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");
|
|
118
|
+
const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init;
|
|
119
|
+
if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
|
|
120
|
+
throw new propertyProvider.CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).", { logger: init.logger });
|
|
121
|
+
}
|
|
122
|
+
const { fromSSO } = await import('@aws-sdk/credential-provider-sso');
|
|
123
|
+
return fromSSO(init)(awsIdentityProperties);
|
|
124
|
+
},
|
|
125
|
+
async (awsIdentityProperties) => {
|
|
126
|
+
init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");
|
|
127
|
+
const { fromIni } = await import('@aws-sdk/credential-provider-ini');
|
|
128
|
+
return fromIni(init)(awsIdentityProperties);
|
|
129
|
+
},
|
|
130
|
+
async (awsIdentityProperties) => {
|
|
131
|
+
init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");
|
|
132
|
+
const { fromProcess } = await import('@aws-sdk/credential-provider-process');
|
|
133
|
+
return fromProcess(init)(awsIdentityProperties);
|
|
134
|
+
},
|
|
135
|
+
async (awsIdentityProperties) => {
|
|
136
|
+
init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");
|
|
137
|
+
const { fromTokenFile } = await import('@aws-sdk/credential-provider-web-identity');
|
|
138
|
+
return fromTokenFile(init)(awsIdentityProperties);
|
|
139
|
+
},
|
|
140
|
+
async () => {
|
|
141
|
+
init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider");
|
|
142
|
+
return (await remoteProvider(init))();
|
|
143
|
+
},
|
|
144
|
+
async () => {
|
|
145
|
+
throw new propertyProvider.CredentialsProviderError("Could not load credentials from any providers", {
|
|
146
|
+
tryNextLink: false,
|
|
147
|
+
logger: init.logger,
|
|
148
|
+
});
|
|
149
|
+
},
|
|
150
|
+
], credentialsTreatedAsExpired);
|
|
151
|
+
const credentialsWillNeedRefresh = (credentials) => credentials?.expiration !== undefined;
|
|
152
|
+
const credentialsTreatedAsExpired = (credentials) => credentials?.expiration !== undefined && credentials.expiration.getTime() - Date.now() < 300000;
|
|
153
|
+
|
|
154
|
+
exports.credentialsTreatedAsExpired = credentialsTreatedAsExpired;
|
|
155
|
+
exports.credentialsWillNeedRefresh = credentialsWillNeedRefresh;
|
|
156
|
+
exports.defaultProvider = defaultProvider;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@aws-sdk/credential-provider-node",
|
|
3
|
+
"version": "3.972.23",
|
|
4
|
+
"description": "AWS credential provider that sources credentials from a Node.JS environment. ",
|
|
5
|
+
"engines": {
|
|
6
|
+
"node": ">=20.0.0"
|
|
7
|
+
},
|
|
8
|
+
"main": "./dist-cjs/index.js",
|
|
9
|
+
"module": "./dist-es/index.js",
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
12
|
+
"build:cjs": "node ../../scripts/compilation/inline credential-provider-node",
|
|
13
|
+
"build:es": "tsc -p tsconfig.es.json",
|
|
14
|
+
"build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
|
|
15
|
+
"build:types": "tsc -p tsconfig.types.json",
|
|
16
|
+
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
17
|
+
"clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
|
|
18
|
+
"test": "yarn g:vitest run --reporter verbose",
|
|
19
|
+
"test:watch": "yarn g:vitest watch",
|
|
20
|
+
"test:integration": "yarn g:vitest run -c vitest.config.integ.mts",
|
|
21
|
+
"test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
|
|
22
|
+
},
|
|
23
|
+
"keywords": [
|
|
24
|
+
"aws",
|
|
25
|
+
"credentials"
|
|
26
|
+
],
|
|
27
|
+
"sideEffects": false,
|
|
28
|
+
"author": {
|
|
29
|
+
"name": "AWS SDK for JavaScript Team",
|
|
30
|
+
"url": "https://aws.amazon.com/javascript/"
|
|
31
|
+
},
|
|
32
|
+
"license": "Apache-2.0",
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@aws-sdk/credential-provider-env": "^3.972.20",
|
|
35
|
+
"@aws-sdk/credential-provider-http": "^3.972.22",
|
|
36
|
+
"@aws-sdk/credential-provider-ini": "^3.972.22",
|
|
37
|
+
"@aws-sdk/credential-provider-process": "^3.972.20",
|
|
38
|
+
"@aws-sdk/credential-provider-sso": "^3.972.22",
|
|
39
|
+
"@aws-sdk/credential-provider-web-identity": "^3.972.22",
|
|
40
|
+
"@aws-sdk/types": "^3.973.6",
|
|
41
|
+
"@smithy/credential-provider-imds": "^4.2.12",
|
|
42
|
+
"@smithy/property-provider": "^4.2.12",
|
|
43
|
+
"@smithy/shared-ini-file-loader": "^4.4.7",
|
|
44
|
+
"@smithy/types": "^4.13.1",
|
|
45
|
+
"tslib": "^2.6.2"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@tsconfig/recommended": "1.0.1",
|
|
49
|
+
"@types/node": "^20.14.8",
|
|
50
|
+
"concurrently": "7.0.0",
|
|
51
|
+
"downlevel-dts": "0.10.1",
|
|
52
|
+
"premove": "4.0.0",
|
|
53
|
+
"typescript": "~5.8.3"
|
|
54
|
+
},
|
|
55
|
+
"types": "./dist-types/index.d.ts",
|
|
56
|
+
"typesVersions": {
|
|
57
|
+
"<4.5": {
|
|
58
|
+
"dist-types/*": [
|
|
59
|
+
"dist-types/ts3.4/*"
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"files": [
|
|
64
|
+
"dist-*/**"
|
|
65
|
+
],
|
|
66
|
+
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/credential-provider-node",
|
|
67
|
+
"repository": {
|
|
68
|
+
"type": "git",
|
|
69
|
+
"url": "https://github.com/aws/aws-sdk-js-v3.git",
|
|
70
|
+
"directory": "packages-internal/credential-provider-node"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var sharedIniFileLoader = require('@smithy/shared-ini-file-loader');
|
|
4
|
+
var propertyProvider = require('@smithy/property-provider');
|
|
5
|
+
var node_child_process = require('node:child_process');
|
|
6
|
+
var node_util = require('node:util');
|
|
7
|
+
var client = require('@aws-sdk/core/client');
|
|
8
|
+
|
|
9
|
+
const getValidatedProcessCredentials = (profileName, data, profiles) => {
|
|
10
|
+
if (data.Version !== 1) {
|
|
11
|
+
throw Error(`Profile ${profileName} credential_process did not return Version 1.`);
|
|
12
|
+
}
|
|
13
|
+
if (data.AccessKeyId === undefined || data.SecretAccessKey === undefined) {
|
|
14
|
+
throw Error(`Profile ${profileName} credential_process returned invalid credentials.`);
|
|
15
|
+
}
|
|
16
|
+
if (data.Expiration) {
|
|
17
|
+
const currentTime = new Date();
|
|
18
|
+
const expireTime = new Date(data.Expiration);
|
|
19
|
+
if (expireTime < currentTime) {
|
|
20
|
+
throw Error(`Profile ${profileName} credential_process returned expired credentials.`);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
let accountId = data.AccountId;
|
|
24
|
+
if (!accountId && profiles?.[profileName]?.aws_account_id) {
|
|
25
|
+
accountId = profiles[profileName].aws_account_id;
|
|
26
|
+
}
|
|
27
|
+
const credentials = {
|
|
28
|
+
accessKeyId: data.AccessKeyId,
|
|
29
|
+
secretAccessKey: data.SecretAccessKey,
|
|
30
|
+
...(data.SessionToken && { sessionToken: data.SessionToken }),
|
|
31
|
+
...(data.Expiration && { expiration: new Date(data.Expiration) }),
|
|
32
|
+
...(data.CredentialScope && { credentialScope: data.CredentialScope }),
|
|
33
|
+
...(accountId && { accountId }),
|
|
34
|
+
};
|
|
35
|
+
client.setCredentialFeature(credentials, "CREDENTIALS_PROCESS", "w");
|
|
36
|
+
return credentials;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
const resolveProcessCredentials = async (profileName, profiles, logger) => {
|
|
40
|
+
const profile = profiles[profileName];
|
|
41
|
+
if (profiles[profileName]) {
|
|
42
|
+
const credentialProcess = profile["credential_process"];
|
|
43
|
+
if (credentialProcess !== undefined) {
|
|
44
|
+
const execPromise = node_util.promisify(sharedIniFileLoader.externalDataInterceptor?.getTokenRecord?.().exec ?? node_child_process.exec);
|
|
45
|
+
try {
|
|
46
|
+
const { stdout } = await execPromise(credentialProcess);
|
|
47
|
+
let data;
|
|
48
|
+
try {
|
|
49
|
+
data = JSON.parse(stdout.trim());
|
|
50
|
+
}
|
|
51
|
+
catch {
|
|
52
|
+
throw Error(`Profile ${profileName} credential_process returned invalid JSON.`);
|
|
53
|
+
}
|
|
54
|
+
return getValidatedProcessCredentials(profileName, data, profiles);
|
|
55
|
+
}
|
|
56
|
+
catch (error) {
|
|
57
|
+
throw new propertyProvider.CredentialsProviderError(error.message, { logger });
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
throw new propertyProvider.CredentialsProviderError(`Profile ${profileName} did not contain credential_process.`, { logger });
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
throw new propertyProvider.CredentialsProviderError(`Profile ${profileName} could not be found in shared credentials file.`, {
|
|
66
|
+
logger,
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
const fromProcess = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
72
|
+
init.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");
|
|
73
|
+
const profiles = await sharedIniFileLoader.parseKnownFiles(init);
|
|
74
|
+
return resolveProcessCredentials(sharedIniFileLoader.getProfileName({
|
|
75
|
+
profile: init.profile ?? callerClientConfig?.profile,
|
|
76
|
+
}), profiles, init.logger);
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
exports.fromProcess = fromProcess;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@aws-sdk/credential-provider-process",
|
|
3
|
+
"version": "3.972.20",
|
|
4
|
+
"description": "AWS credential provider that sources credential_process from ~/.aws/credentials and ~/.aws/config",
|
|
5
|
+
"main": "./dist-cjs/index.js",
|
|
6
|
+
"module": "./dist-es/index.js",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
9
|
+
"build:cjs": "node ../../scripts/compilation/inline credential-provider-process",
|
|
10
|
+
"build:es": "tsc -p tsconfig.es.json",
|
|
11
|
+
"build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
|
|
12
|
+
"build:types": "tsc -p tsconfig.types.json",
|
|
13
|
+
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
14
|
+
"clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
|
|
15
|
+
"test": "yarn g:vitest run",
|
|
16
|
+
"test:watch": "yarn g:vitest watch"
|
|
17
|
+
},
|
|
18
|
+
"keywords": [
|
|
19
|
+
"aws",
|
|
20
|
+
"credentials"
|
|
21
|
+
],
|
|
22
|
+
"sideEffects": false,
|
|
23
|
+
"author": {
|
|
24
|
+
"name": "AWS SDK for JavaScript Team",
|
|
25
|
+
"url": "https://aws.amazon.com/javascript/"
|
|
26
|
+
},
|
|
27
|
+
"license": "Apache-2.0",
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@aws-sdk/core": "^3.973.22",
|
|
30
|
+
"@aws-sdk/types": "^3.973.6",
|
|
31
|
+
"@smithy/property-provider": "^4.2.12",
|
|
32
|
+
"@smithy/shared-ini-file-loader": "^4.4.7",
|
|
33
|
+
"@smithy/types": "^4.13.1",
|
|
34
|
+
"tslib": "^2.6.2"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@tsconfig/recommended": "1.0.1",
|
|
38
|
+
"@types/node": "^20.14.8",
|
|
39
|
+
"concurrently": "7.0.0",
|
|
40
|
+
"downlevel-dts": "0.10.1",
|
|
41
|
+
"premove": "4.0.0",
|
|
42
|
+
"typescript": "~5.8.3"
|
|
43
|
+
},
|
|
44
|
+
"types": "./dist-types/index.d.ts",
|
|
45
|
+
"engines": {
|
|
46
|
+
"node": ">=20.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/aws/aws-sdk-js-v3/tree/main/packages-internal/credential-provider-process",
|
|
59
|
+
"repository": {
|
|
60
|
+
"type": "git",
|
|
61
|
+
"url": "https://github.com/aws/aws-sdk-js-v3.git",
|
|
62
|
+
"directory": "packages-internal/credential-provider-process"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var propertyProvider = require('@smithy/property-provider');
|
|
4
|
+
var sharedIniFileLoader = require('@smithy/shared-ini-file-loader');
|
|
5
|
+
var client = require('@aws-sdk/core/client');
|
|
6
|
+
var tokenProviders = require('@aws-sdk/token-providers');
|
|
7
|
+
|
|
8
|
+
const isSsoProfile = (arg) => arg &&
|
|
9
|
+
(typeof arg.sso_start_url === "string" ||
|
|
10
|
+
typeof arg.sso_account_id === "string" ||
|
|
11
|
+
typeof arg.sso_session === "string" ||
|
|
12
|
+
typeof arg.sso_region === "string" ||
|
|
13
|
+
typeof arg.sso_role_name === "string");
|
|
14
|
+
|
|
15
|
+
const SHOULD_FAIL_CREDENTIAL_CHAIN = false;
|
|
16
|
+
const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, clientConfig, parentClientConfig, callerClientConfig, profile, filepath, configFilepath, ignoreCache, logger, }) => {
|
|
17
|
+
let token;
|
|
18
|
+
const refreshMessage = `To refresh this SSO session run aws sso login with the corresponding profile.`;
|
|
19
|
+
if (ssoSession) {
|
|
20
|
+
try {
|
|
21
|
+
const _token = await tokenProviders.fromSso({
|
|
22
|
+
profile,
|
|
23
|
+
filepath,
|
|
24
|
+
configFilepath,
|
|
25
|
+
ignoreCache,
|
|
26
|
+
})();
|
|
27
|
+
token = {
|
|
28
|
+
accessToken: _token.token,
|
|
29
|
+
expiresAt: new Date(_token.expiration).toISOString(),
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
catch (e) {
|
|
33
|
+
throw new propertyProvider.CredentialsProviderError(e.message, {
|
|
34
|
+
tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
|
|
35
|
+
logger,
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
try {
|
|
41
|
+
token = await sharedIniFileLoader.getSSOTokenFromFile(ssoStartUrl);
|
|
42
|
+
}
|
|
43
|
+
catch (e) {
|
|
44
|
+
throw new propertyProvider.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${refreshMessage}`, {
|
|
45
|
+
tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
|
|
46
|
+
logger,
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
if (new Date(token.expiresAt).getTime() - Date.now() <= 0) {
|
|
51
|
+
throw new propertyProvider.CredentialsProviderError(`The SSO session associated with this profile has expired. ${refreshMessage}`, {
|
|
52
|
+
tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
|
|
53
|
+
logger,
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
const { accessToken } = token;
|
|
57
|
+
const { SSOClient, GetRoleCredentialsCommand } = await Promise.resolve().then(function () { return require('./loadSso-BKDNrsal.js'); });
|
|
58
|
+
const sso = ssoClient ||
|
|
59
|
+
new SSOClient(Object.assign({}, clientConfig ?? {}, {
|
|
60
|
+
logger: clientConfig?.logger ?? callerClientConfig?.logger ?? parentClientConfig?.logger,
|
|
61
|
+
region: clientConfig?.region ?? ssoRegion,
|
|
62
|
+
userAgentAppId: clientConfig?.userAgentAppId ?? callerClientConfig?.userAgentAppId ?? parentClientConfig?.userAgentAppId,
|
|
63
|
+
}));
|
|
64
|
+
let ssoResp;
|
|
65
|
+
try {
|
|
66
|
+
ssoResp = await sso.send(new GetRoleCredentialsCommand({
|
|
67
|
+
accountId: ssoAccountId,
|
|
68
|
+
roleName: ssoRoleName,
|
|
69
|
+
accessToken,
|
|
70
|
+
}));
|
|
71
|
+
}
|
|
72
|
+
catch (e) {
|
|
73
|
+
throw new propertyProvider.CredentialsProviderError(e, {
|
|
74
|
+
tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
|
|
75
|
+
logger,
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
const { roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration, credentialScope, accountId } = {}, } = ssoResp;
|
|
79
|
+
if (!accessKeyId || !secretAccessKey || !sessionToken || !expiration) {
|
|
80
|
+
throw new propertyProvider.CredentialsProviderError("SSO returns an invalid temporary credential.", {
|
|
81
|
+
tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
|
|
82
|
+
logger,
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
const credentials = {
|
|
86
|
+
accessKeyId,
|
|
87
|
+
secretAccessKey,
|
|
88
|
+
sessionToken,
|
|
89
|
+
expiration: new Date(expiration),
|
|
90
|
+
...(credentialScope && { credentialScope }),
|
|
91
|
+
...(accountId && { accountId }),
|
|
92
|
+
};
|
|
93
|
+
if (ssoSession) {
|
|
94
|
+
client.setCredentialFeature(credentials, "CREDENTIALS_SSO", "s");
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
client.setCredentialFeature(credentials, "CREDENTIALS_SSO_LEGACY", "u");
|
|
98
|
+
}
|
|
99
|
+
return credentials;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
const validateSsoProfile = (profile, logger) => {
|
|
103
|
+
const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile;
|
|
104
|
+
if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) {
|
|
105
|
+
throw new propertyProvider.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", ` +
|
|
106
|
+
`"sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(profile).join(", ")}\nReference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`, { tryNextLink: false, logger });
|
|
107
|
+
}
|
|
108
|
+
return profile;
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
const fromSSO = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
112
|
+
init.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");
|
|
113
|
+
const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init;
|
|
114
|
+
const { ssoClient } = init;
|
|
115
|
+
const profileName = sharedIniFileLoader.getProfileName({
|
|
116
|
+
profile: init.profile ?? callerClientConfig?.profile,
|
|
117
|
+
});
|
|
118
|
+
if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
|
|
119
|
+
const profiles = await sharedIniFileLoader.parseKnownFiles(init);
|
|
120
|
+
const profile = profiles[profileName];
|
|
121
|
+
if (!profile) {
|
|
122
|
+
throw new propertyProvider.CredentialsProviderError(`Profile ${profileName} was not found.`, { logger: init.logger });
|
|
123
|
+
}
|
|
124
|
+
if (!isSsoProfile(profile)) {
|
|
125
|
+
throw new propertyProvider.CredentialsProviderError(`Profile ${profileName} is not configured with SSO credentials.`, {
|
|
126
|
+
logger: init.logger,
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
if (profile?.sso_session) {
|
|
130
|
+
const ssoSessions = await sharedIniFileLoader.loadSsoSessionData(init);
|
|
131
|
+
const session = ssoSessions[profile.sso_session];
|
|
132
|
+
const conflictMsg = ` configurations in profile ${profileName} and sso-session ${profile.sso_session}`;
|
|
133
|
+
if (ssoRegion && ssoRegion !== session.sso_region) {
|
|
134
|
+
throw new propertyProvider.CredentialsProviderError(`Conflicting SSO region` + conflictMsg, {
|
|
135
|
+
tryNextLink: false,
|
|
136
|
+
logger: init.logger,
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
if (ssoStartUrl && ssoStartUrl !== session.sso_start_url) {
|
|
140
|
+
throw new propertyProvider.CredentialsProviderError(`Conflicting SSO start_url` + conflictMsg, {
|
|
141
|
+
tryNextLink: false,
|
|
142
|
+
logger: init.logger,
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
profile.sso_region = session.sso_region;
|
|
146
|
+
profile.sso_start_url = session.sso_start_url;
|
|
147
|
+
}
|
|
148
|
+
const { sso_start_url, sso_account_id, sso_region, sso_role_name, sso_session } = validateSsoProfile(profile, init.logger);
|
|
149
|
+
return resolveSSOCredentials({
|
|
150
|
+
ssoStartUrl: sso_start_url,
|
|
151
|
+
ssoSession: sso_session,
|
|
152
|
+
ssoAccountId: sso_account_id,
|
|
153
|
+
ssoRegion: sso_region,
|
|
154
|
+
ssoRoleName: sso_role_name,
|
|
155
|
+
ssoClient: ssoClient,
|
|
156
|
+
clientConfig: init.clientConfig,
|
|
157
|
+
parentClientConfig: init.parentClientConfig,
|
|
158
|
+
callerClientConfig: init.callerClientConfig,
|
|
159
|
+
profile: profileName,
|
|
160
|
+
filepath: init.filepath,
|
|
161
|
+
configFilepath: init.configFilepath,
|
|
162
|
+
ignoreCache: init.ignoreCache,
|
|
163
|
+
logger: init.logger,
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
else if (!ssoStartUrl || !ssoAccountId || !ssoRegion || !ssoRoleName) {
|
|
167
|
+
throw new propertyProvider.CredentialsProviderError("Incomplete configuration. The fromSSO() argument hash must include " +
|
|
168
|
+
'"ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"', { tryNextLink: false, logger: init.logger });
|
|
169
|
+
}
|
|
170
|
+
else {
|
|
171
|
+
return resolveSSOCredentials({
|
|
172
|
+
ssoStartUrl,
|
|
173
|
+
ssoSession,
|
|
174
|
+
ssoAccountId,
|
|
175
|
+
ssoRegion,
|
|
176
|
+
ssoRoleName,
|
|
177
|
+
ssoClient,
|
|
178
|
+
clientConfig: init.clientConfig,
|
|
179
|
+
parentClientConfig: init.parentClientConfig,
|
|
180
|
+
callerClientConfig: init.callerClientConfig,
|
|
181
|
+
profile: profileName,
|
|
182
|
+
filepath: init.filepath,
|
|
183
|
+
configFilepath: init.configFilepath,
|
|
184
|
+
ignoreCache: init.ignoreCache,
|
|
185
|
+
logger: init.logger,
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
exports.fromSSO = fromSSO;
|
|
191
|
+
exports.isSsoProfile = isSsoProfile;
|
|
192
|
+
exports.validateSsoProfile = validateSsoProfile;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@aws-sdk/credential-provider-sso",
|
|
3
|
+
"version": "3.972.22",
|
|
4
|
+
"description": "AWS credential provider that exchanges a resolved SSO login token file for temporary AWS credentials",
|
|
5
|
+
"main": "./dist-cjs/index.js",
|
|
6
|
+
"module": "./dist-es/index.js",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
9
|
+
"build:cjs": "node ../../scripts/compilation/inline credential-provider-sso",
|
|
10
|
+
"build:es": "tsc -p tsconfig.es.json",
|
|
11
|
+
"build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
|
|
12
|
+
"build:types": "tsc -p tsconfig.types.json",
|
|
13
|
+
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
14
|
+
"clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
|
|
15
|
+
"test": "yarn g:vitest run",
|
|
16
|
+
"test:watch": "yarn g:vitest watch"
|
|
17
|
+
},
|
|
18
|
+
"keywords": [
|
|
19
|
+
"aws",
|
|
20
|
+
"credentials"
|
|
21
|
+
],
|
|
22
|
+
"sideEffects": false,
|
|
23
|
+
"author": {
|
|
24
|
+
"name": "AWS SDK for JavaScript Team",
|
|
25
|
+
"url": "https://aws.amazon.com/javascript/"
|
|
26
|
+
},
|
|
27
|
+
"license": "Apache-2.0",
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@aws-sdk/core": "^3.973.22",
|
|
30
|
+
"@aws-sdk/nested-clients": "^3.996.12",
|
|
31
|
+
"@aws-sdk/token-providers": "3.1013.0",
|
|
32
|
+
"@aws-sdk/types": "^3.973.6",
|
|
33
|
+
"@smithy/property-provider": "^4.2.12",
|
|
34
|
+
"@smithy/shared-ini-file-loader": "^4.4.7",
|
|
35
|
+
"@smithy/types": "^4.13.1",
|
|
36
|
+
"tslib": "^2.6.2"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@tsconfig/recommended": "1.0.1",
|
|
40
|
+
"@types/node": "^20.14.8",
|
|
41
|
+
"concurrently": "7.0.0",
|
|
42
|
+
"downlevel-dts": "0.10.1",
|
|
43
|
+
"premove": "4.0.0",
|
|
44
|
+
"typescript": "~5.8.3"
|
|
45
|
+
},
|
|
46
|
+
"types": "./dist-types/index.d.ts",
|
|
47
|
+
"engines": {
|
|
48
|
+
"node": ">=20.0.0"
|
|
49
|
+
},
|
|
50
|
+
"typesVersions": {
|
|
51
|
+
"<4.5": {
|
|
52
|
+
"dist-types/*": [
|
|
53
|
+
"dist-types/ts3.4/*"
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"files": [
|
|
58
|
+
"dist-*/**"
|
|
59
|
+
],
|
|
60
|
+
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/credential-provider-sso",
|
|
61
|
+
"repository": {
|
|
62
|
+
"type": "git",
|
|
63
|
+
"url": "https://github.com/aws/aws-sdk-js-v3.git",
|
|
64
|
+
"directory": "packages-internal/credential-provider-sso"
|
|
65
|
+
}
|
|
66
|
+
}
|
package/dist/web/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fromTokenFile = void 0;
|
|
4
|
+
const client_1 = require("@aws-sdk/core/client");
|
|
5
|
+
const property_provider_1 = require("@smithy/property-provider");
|
|
6
|
+
const shared_ini_file_loader_1 = require("@smithy/shared-ini-file-loader");
|
|
7
|
+
const node_fs_1 = require("node:fs");
|
|
8
|
+
const fromWebToken_1 = require("./fromWebToken");
|
|
9
|
+
const ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE";
|
|
10
|
+
const ENV_ROLE_ARN = "AWS_ROLE_ARN";
|
|
11
|
+
const ENV_ROLE_SESSION_NAME = "AWS_ROLE_SESSION_NAME";
|
|
12
|
+
const fromTokenFile = (init = {}) => async (awsIdentityProperties) => {
|
|
13
|
+
init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");
|
|
14
|
+
const webIdentityTokenFile = init?.webIdentityTokenFile ?? process.env[ENV_TOKEN_FILE];
|
|
15
|
+
const roleArn = init?.roleArn ?? process.env[ENV_ROLE_ARN];
|
|
16
|
+
const roleSessionName = init?.roleSessionName ?? process.env[ENV_ROLE_SESSION_NAME];
|
|
17
|
+
if (!webIdentityTokenFile || !roleArn) {
|
|
18
|
+
throw new property_provider_1.CredentialsProviderError("Web identity configuration not specified", {
|
|
19
|
+
logger: init.logger,
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
const credentials = await (0, fromWebToken_1.fromWebToken)({
|
|
23
|
+
...init,
|
|
24
|
+
webIdentityToken: shared_ini_file_loader_1.externalDataInterceptor?.getTokenRecord?.()[webIdentityTokenFile] ??
|
|
25
|
+
(0, node_fs_1.readFileSync)(webIdentityTokenFile, { encoding: "ascii" }),
|
|
26
|
+
roleArn,
|
|
27
|
+
roleSessionName,
|
|
28
|
+
})(awsIdentityProperties);
|
|
29
|
+
if (webIdentityTokenFile === process.env[ENV_TOKEN_FILE]) {
|
|
30
|
+
(0, client_1.setCredentialFeature)(credentials, "CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN", "h");
|
|
31
|
+
}
|
|
32
|
+
return credentials;
|
|
33
|
+
};
|
|
34
|
+
exports.fromTokenFile = fromTokenFile;
|