@slycode/slycode 0.2.11 → 0.2.13
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/state.js +1 -0
- package/dist/messaging/state.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/lib/cli/stop.d.ts.map +1 -1
- package/lib/cli/stop.js +38 -18
- package/lib/cli/stop.js.map +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 → 5LMWBFPioBVfTpJ4F5OT6}/_buildManifest.js +0 -0
- /package/dist/web/.next/static/{eGpcv9LfmamGIm1II8SKL → 5LMWBFPioBVfTpJ4F5OT6}/_clientMiddlewareManifest.json +0 -0
- /package/dist/web/.next/static/{eGpcv9LfmamGIm1II8SKL → 5LMWBFPioBVfTpJ4F5OT6}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,472 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var types = require('@smithy/types');
|
|
4
|
+
|
|
5
|
+
class EndpointCache {
|
|
6
|
+
capacity;
|
|
7
|
+
data = new Map();
|
|
8
|
+
parameters = [];
|
|
9
|
+
constructor({ size, params }) {
|
|
10
|
+
this.capacity = size ?? 50;
|
|
11
|
+
if (params) {
|
|
12
|
+
this.parameters = params;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
get(endpointParams, resolver) {
|
|
16
|
+
const key = this.hash(endpointParams);
|
|
17
|
+
if (key === false) {
|
|
18
|
+
return resolver();
|
|
19
|
+
}
|
|
20
|
+
if (!this.data.has(key)) {
|
|
21
|
+
if (this.data.size > this.capacity + 10) {
|
|
22
|
+
const keys = this.data.keys();
|
|
23
|
+
let i = 0;
|
|
24
|
+
while (true) {
|
|
25
|
+
const { value, done } = keys.next();
|
|
26
|
+
this.data.delete(value);
|
|
27
|
+
if (done || ++i > 10) {
|
|
28
|
+
break;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
this.data.set(key, resolver());
|
|
33
|
+
}
|
|
34
|
+
return this.data.get(key);
|
|
35
|
+
}
|
|
36
|
+
size() {
|
|
37
|
+
return this.data.size;
|
|
38
|
+
}
|
|
39
|
+
hash(endpointParams) {
|
|
40
|
+
let buffer = "";
|
|
41
|
+
const { parameters } = this;
|
|
42
|
+
if (parameters.length === 0) {
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
45
|
+
for (const param of parameters) {
|
|
46
|
+
const val = String(endpointParams[param] ?? "");
|
|
47
|
+
if (val.includes("|;")) {
|
|
48
|
+
return false;
|
|
49
|
+
}
|
|
50
|
+
buffer += val + "|;";
|
|
51
|
+
}
|
|
52
|
+
return buffer;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const IP_V4_REGEX = new RegExp(`^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$`);
|
|
57
|
+
const isIpAddress = (value) => IP_V4_REGEX.test(value) || (value.startsWith("[") && value.endsWith("]"));
|
|
58
|
+
|
|
59
|
+
const VALID_HOST_LABEL_REGEX = new RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`);
|
|
60
|
+
const isValidHostLabel = (value, allowSubDomains = false) => {
|
|
61
|
+
if (!allowSubDomains) {
|
|
62
|
+
return VALID_HOST_LABEL_REGEX.test(value);
|
|
63
|
+
}
|
|
64
|
+
const labels = value.split(".");
|
|
65
|
+
for (const label of labels) {
|
|
66
|
+
if (!isValidHostLabel(label)) {
|
|
67
|
+
return false;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
return true;
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
const customEndpointFunctions = {};
|
|
74
|
+
|
|
75
|
+
const debugId = "endpoints";
|
|
76
|
+
|
|
77
|
+
function toDebugString(input) {
|
|
78
|
+
if (typeof input !== "object" || input == null) {
|
|
79
|
+
return input;
|
|
80
|
+
}
|
|
81
|
+
if ("ref" in input) {
|
|
82
|
+
return `$${toDebugString(input.ref)}`;
|
|
83
|
+
}
|
|
84
|
+
if ("fn" in input) {
|
|
85
|
+
return `${input.fn}(${(input.argv || []).map(toDebugString).join(", ")})`;
|
|
86
|
+
}
|
|
87
|
+
return JSON.stringify(input, null, 2);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
class EndpointError extends Error {
|
|
91
|
+
constructor(message) {
|
|
92
|
+
super(message);
|
|
93
|
+
this.name = "EndpointError";
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
const booleanEquals = (value1, value2) => value1 === value2;
|
|
98
|
+
|
|
99
|
+
const getAttrPathList = (path) => {
|
|
100
|
+
const parts = path.split(".");
|
|
101
|
+
const pathList = [];
|
|
102
|
+
for (const part of parts) {
|
|
103
|
+
const squareBracketIndex = part.indexOf("[");
|
|
104
|
+
if (squareBracketIndex !== -1) {
|
|
105
|
+
if (part.indexOf("]") !== part.length - 1) {
|
|
106
|
+
throw new EndpointError(`Path: '${path}' does not end with ']'`);
|
|
107
|
+
}
|
|
108
|
+
const arrayIndex = part.slice(squareBracketIndex + 1, -1);
|
|
109
|
+
if (Number.isNaN(parseInt(arrayIndex))) {
|
|
110
|
+
throw new EndpointError(`Invalid array index: '${arrayIndex}' in path: '${path}'`);
|
|
111
|
+
}
|
|
112
|
+
if (squareBracketIndex !== 0) {
|
|
113
|
+
pathList.push(part.slice(0, squareBracketIndex));
|
|
114
|
+
}
|
|
115
|
+
pathList.push(arrayIndex);
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
pathList.push(part);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
return pathList;
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
const getAttr = (value, path) => getAttrPathList(path).reduce((acc, index) => {
|
|
125
|
+
if (typeof acc !== "object") {
|
|
126
|
+
throw new EndpointError(`Index '${index}' in '${path}' not found in '${JSON.stringify(value)}'`);
|
|
127
|
+
}
|
|
128
|
+
else if (Array.isArray(acc)) {
|
|
129
|
+
return acc[parseInt(index)];
|
|
130
|
+
}
|
|
131
|
+
return acc[index];
|
|
132
|
+
}, value);
|
|
133
|
+
|
|
134
|
+
const isSet = (value) => value != null;
|
|
135
|
+
|
|
136
|
+
const not = (value) => !value;
|
|
137
|
+
|
|
138
|
+
const DEFAULT_PORTS = {
|
|
139
|
+
[types.EndpointURLScheme.HTTP]: 80,
|
|
140
|
+
[types.EndpointURLScheme.HTTPS]: 443,
|
|
141
|
+
};
|
|
142
|
+
const parseURL = (value) => {
|
|
143
|
+
const whatwgURL = (() => {
|
|
144
|
+
try {
|
|
145
|
+
if (value instanceof URL) {
|
|
146
|
+
return value;
|
|
147
|
+
}
|
|
148
|
+
if (typeof value === "object" && "hostname" in value) {
|
|
149
|
+
const { hostname, port, protocol = "", path = "", query = {} } = value;
|
|
150
|
+
const url = new URL(`${protocol}//${hostname}${port ? `:${port}` : ""}${path}`);
|
|
151
|
+
url.search = Object.entries(query)
|
|
152
|
+
.map(([k, v]) => `${k}=${v}`)
|
|
153
|
+
.join("&");
|
|
154
|
+
return url;
|
|
155
|
+
}
|
|
156
|
+
return new URL(value);
|
|
157
|
+
}
|
|
158
|
+
catch (error) {
|
|
159
|
+
return null;
|
|
160
|
+
}
|
|
161
|
+
})();
|
|
162
|
+
if (!whatwgURL) {
|
|
163
|
+
console.error(`Unable to parse ${JSON.stringify(value)} as a whatwg URL.`);
|
|
164
|
+
return null;
|
|
165
|
+
}
|
|
166
|
+
const urlString = whatwgURL.href;
|
|
167
|
+
const { host, hostname, pathname, protocol, search } = whatwgURL;
|
|
168
|
+
if (search) {
|
|
169
|
+
return null;
|
|
170
|
+
}
|
|
171
|
+
const scheme = protocol.slice(0, -1);
|
|
172
|
+
if (!Object.values(types.EndpointURLScheme).includes(scheme)) {
|
|
173
|
+
return null;
|
|
174
|
+
}
|
|
175
|
+
const isIp = isIpAddress(hostname);
|
|
176
|
+
const inputContainsDefaultPort = urlString.includes(`${host}:${DEFAULT_PORTS[scheme]}`) ||
|
|
177
|
+
(typeof value === "string" && value.includes(`${host}:${DEFAULT_PORTS[scheme]}`));
|
|
178
|
+
const authority = `${host}${inputContainsDefaultPort ? `:${DEFAULT_PORTS[scheme]}` : ``}`;
|
|
179
|
+
return {
|
|
180
|
+
scheme,
|
|
181
|
+
authority,
|
|
182
|
+
path: pathname,
|
|
183
|
+
normalizedPath: pathname.endsWith("/") ? pathname : `${pathname}/`,
|
|
184
|
+
isIp,
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
const stringEquals = (value1, value2) => value1 === value2;
|
|
189
|
+
|
|
190
|
+
const substring = (input, start, stop, reverse) => {
|
|
191
|
+
if (start >= stop || input.length < stop || /[^\u0000-\u007f]/.test(input)) {
|
|
192
|
+
return null;
|
|
193
|
+
}
|
|
194
|
+
if (!reverse) {
|
|
195
|
+
return input.substring(start, stop);
|
|
196
|
+
}
|
|
197
|
+
return input.substring(input.length - stop, input.length - start);
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
const uriEncode = (value) => encodeURIComponent(value).replace(/[!*'()]/g, (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`);
|
|
201
|
+
|
|
202
|
+
const endpointFunctions = {
|
|
203
|
+
booleanEquals,
|
|
204
|
+
getAttr,
|
|
205
|
+
isSet,
|
|
206
|
+
isValidHostLabel,
|
|
207
|
+
not,
|
|
208
|
+
parseURL,
|
|
209
|
+
stringEquals,
|
|
210
|
+
substring,
|
|
211
|
+
uriEncode,
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
const evaluateTemplate = (template, options) => {
|
|
215
|
+
const evaluatedTemplateArr = [];
|
|
216
|
+
const templateContext = {
|
|
217
|
+
...options.endpointParams,
|
|
218
|
+
...options.referenceRecord,
|
|
219
|
+
};
|
|
220
|
+
let currentIndex = 0;
|
|
221
|
+
while (currentIndex < template.length) {
|
|
222
|
+
const openingBraceIndex = template.indexOf("{", currentIndex);
|
|
223
|
+
if (openingBraceIndex === -1) {
|
|
224
|
+
evaluatedTemplateArr.push(template.slice(currentIndex));
|
|
225
|
+
break;
|
|
226
|
+
}
|
|
227
|
+
evaluatedTemplateArr.push(template.slice(currentIndex, openingBraceIndex));
|
|
228
|
+
const closingBraceIndex = template.indexOf("}", openingBraceIndex);
|
|
229
|
+
if (closingBraceIndex === -1) {
|
|
230
|
+
evaluatedTemplateArr.push(template.slice(openingBraceIndex));
|
|
231
|
+
break;
|
|
232
|
+
}
|
|
233
|
+
if (template[openingBraceIndex + 1] === "{" && template[closingBraceIndex + 1] === "}") {
|
|
234
|
+
evaluatedTemplateArr.push(template.slice(openingBraceIndex + 1, closingBraceIndex));
|
|
235
|
+
currentIndex = closingBraceIndex + 2;
|
|
236
|
+
}
|
|
237
|
+
const parameterName = template.substring(openingBraceIndex + 1, closingBraceIndex);
|
|
238
|
+
if (parameterName.includes("#")) {
|
|
239
|
+
const [refName, attrName] = parameterName.split("#");
|
|
240
|
+
evaluatedTemplateArr.push(getAttr(templateContext[refName], attrName));
|
|
241
|
+
}
|
|
242
|
+
else {
|
|
243
|
+
evaluatedTemplateArr.push(templateContext[parameterName]);
|
|
244
|
+
}
|
|
245
|
+
currentIndex = closingBraceIndex + 1;
|
|
246
|
+
}
|
|
247
|
+
return evaluatedTemplateArr.join("");
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
const getReferenceValue = ({ ref }, options) => {
|
|
251
|
+
const referenceRecord = {
|
|
252
|
+
...options.endpointParams,
|
|
253
|
+
...options.referenceRecord,
|
|
254
|
+
};
|
|
255
|
+
return referenceRecord[ref];
|
|
256
|
+
};
|
|
257
|
+
|
|
258
|
+
const evaluateExpression = (obj, keyName, options) => {
|
|
259
|
+
if (typeof obj === "string") {
|
|
260
|
+
return evaluateTemplate(obj, options);
|
|
261
|
+
}
|
|
262
|
+
else if (obj["fn"]) {
|
|
263
|
+
return group$2.callFunction(obj, options);
|
|
264
|
+
}
|
|
265
|
+
else if (obj["ref"]) {
|
|
266
|
+
return getReferenceValue(obj, options);
|
|
267
|
+
}
|
|
268
|
+
throw new EndpointError(`'${keyName}': ${String(obj)} is not a string, function or reference.`);
|
|
269
|
+
};
|
|
270
|
+
const callFunction = ({ fn, argv }, options) => {
|
|
271
|
+
const evaluatedArgs = argv.map((arg) => ["boolean", "number"].includes(typeof arg) ? arg : group$2.evaluateExpression(arg, "arg", options));
|
|
272
|
+
const fnSegments = fn.split(".");
|
|
273
|
+
if (fnSegments[0] in customEndpointFunctions && fnSegments[1] != null) {
|
|
274
|
+
return customEndpointFunctions[fnSegments[0]][fnSegments[1]](...evaluatedArgs);
|
|
275
|
+
}
|
|
276
|
+
return endpointFunctions[fn](...evaluatedArgs);
|
|
277
|
+
};
|
|
278
|
+
const group$2 = {
|
|
279
|
+
evaluateExpression,
|
|
280
|
+
callFunction,
|
|
281
|
+
};
|
|
282
|
+
|
|
283
|
+
const evaluateCondition = ({ assign, ...fnArgs }, options) => {
|
|
284
|
+
if (assign && assign in options.referenceRecord) {
|
|
285
|
+
throw new EndpointError(`'${assign}' is already defined in Reference Record.`);
|
|
286
|
+
}
|
|
287
|
+
const value = callFunction(fnArgs, options);
|
|
288
|
+
options.logger?.debug?.(`${debugId} evaluateCondition: ${toDebugString(fnArgs)} = ${toDebugString(value)}`);
|
|
289
|
+
return {
|
|
290
|
+
result: value === "" ? true : !!value,
|
|
291
|
+
...(assign != null && { toAssign: { name: assign, value } }),
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
|
|
295
|
+
const evaluateConditions = (conditions = [], options) => {
|
|
296
|
+
const conditionsReferenceRecord = {};
|
|
297
|
+
for (const condition of conditions) {
|
|
298
|
+
const { result, toAssign } = evaluateCondition(condition, {
|
|
299
|
+
...options,
|
|
300
|
+
referenceRecord: {
|
|
301
|
+
...options.referenceRecord,
|
|
302
|
+
...conditionsReferenceRecord,
|
|
303
|
+
},
|
|
304
|
+
});
|
|
305
|
+
if (!result) {
|
|
306
|
+
return { result };
|
|
307
|
+
}
|
|
308
|
+
if (toAssign) {
|
|
309
|
+
conditionsReferenceRecord[toAssign.name] = toAssign.value;
|
|
310
|
+
options.logger?.debug?.(`${debugId} assign: ${toAssign.name} := ${toDebugString(toAssign.value)}`);
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
return { result: true, referenceRecord: conditionsReferenceRecord };
|
|
314
|
+
};
|
|
315
|
+
|
|
316
|
+
const getEndpointHeaders = (headers, options) => Object.entries(headers).reduce((acc, [headerKey, headerVal]) => ({
|
|
317
|
+
...acc,
|
|
318
|
+
[headerKey]: headerVal.map((headerValEntry) => {
|
|
319
|
+
const processedExpr = evaluateExpression(headerValEntry, "Header value entry", options);
|
|
320
|
+
if (typeof processedExpr !== "string") {
|
|
321
|
+
throw new EndpointError(`Header '${headerKey}' value '${processedExpr}' is not a string`);
|
|
322
|
+
}
|
|
323
|
+
return processedExpr;
|
|
324
|
+
}),
|
|
325
|
+
}), {});
|
|
326
|
+
|
|
327
|
+
const getEndpointProperties = (properties, options) => Object.entries(properties).reduce((acc, [propertyKey, propertyVal]) => ({
|
|
328
|
+
...acc,
|
|
329
|
+
[propertyKey]: group$1.getEndpointProperty(propertyVal, options),
|
|
330
|
+
}), {});
|
|
331
|
+
const getEndpointProperty = (property, options) => {
|
|
332
|
+
if (Array.isArray(property)) {
|
|
333
|
+
return property.map((propertyEntry) => getEndpointProperty(propertyEntry, options));
|
|
334
|
+
}
|
|
335
|
+
switch (typeof property) {
|
|
336
|
+
case "string":
|
|
337
|
+
return evaluateTemplate(property, options);
|
|
338
|
+
case "object":
|
|
339
|
+
if (property === null) {
|
|
340
|
+
throw new EndpointError(`Unexpected endpoint property: ${property}`);
|
|
341
|
+
}
|
|
342
|
+
return group$1.getEndpointProperties(property, options);
|
|
343
|
+
case "boolean":
|
|
344
|
+
return property;
|
|
345
|
+
default:
|
|
346
|
+
throw new EndpointError(`Unexpected endpoint property type: ${typeof property}`);
|
|
347
|
+
}
|
|
348
|
+
};
|
|
349
|
+
const group$1 = {
|
|
350
|
+
getEndpointProperty,
|
|
351
|
+
getEndpointProperties,
|
|
352
|
+
};
|
|
353
|
+
|
|
354
|
+
const getEndpointUrl = (endpointUrl, options) => {
|
|
355
|
+
const expression = evaluateExpression(endpointUrl, "Endpoint URL", options);
|
|
356
|
+
if (typeof expression === "string") {
|
|
357
|
+
try {
|
|
358
|
+
return new URL(expression);
|
|
359
|
+
}
|
|
360
|
+
catch (error) {
|
|
361
|
+
console.error(`Failed to construct URL with ${expression}`, error);
|
|
362
|
+
throw error;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
throw new EndpointError(`Endpoint URL must be a string, got ${typeof expression}`);
|
|
366
|
+
};
|
|
367
|
+
|
|
368
|
+
const evaluateEndpointRule = (endpointRule, options) => {
|
|
369
|
+
const { conditions, endpoint } = endpointRule;
|
|
370
|
+
const { result, referenceRecord } = evaluateConditions(conditions, options);
|
|
371
|
+
if (!result) {
|
|
372
|
+
return;
|
|
373
|
+
}
|
|
374
|
+
const endpointRuleOptions = {
|
|
375
|
+
...options,
|
|
376
|
+
referenceRecord: { ...options.referenceRecord, ...referenceRecord },
|
|
377
|
+
};
|
|
378
|
+
const { url, properties, headers } = endpoint;
|
|
379
|
+
options.logger?.debug?.(`${debugId} Resolving endpoint from template: ${toDebugString(endpoint)}`);
|
|
380
|
+
return {
|
|
381
|
+
...(headers != undefined && {
|
|
382
|
+
headers: getEndpointHeaders(headers, endpointRuleOptions),
|
|
383
|
+
}),
|
|
384
|
+
...(properties != undefined && {
|
|
385
|
+
properties: getEndpointProperties(properties, endpointRuleOptions),
|
|
386
|
+
}),
|
|
387
|
+
url: getEndpointUrl(url, endpointRuleOptions),
|
|
388
|
+
};
|
|
389
|
+
};
|
|
390
|
+
|
|
391
|
+
const evaluateErrorRule = (errorRule, options) => {
|
|
392
|
+
const { conditions, error } = errorRule;
|
|
393
|
+
const { result, referenceRecord } = evaluateConditions(conditions, options);
|
|
394
|
+
if (!result) {
|
|
395
|
+
return;
|
|
396
|
+
}
|
|
397
|
+
throw new EndpointError(evaluateExpression(error, "Error", {
|
|
398
|
+
...options,
|
|
399
|
+
referenceRecord: { ...options.referenceRecord, ...referenceRecord },
|
|
400
|
+
}));
|
|
401
|
+
};
|
|
402
|
+
|
|
403
|
+
const evaluateRules = (rules, options) => {
|
|
404
|
+
for (const rule of rules) {
|
|
405
|
+
if (rule.type === "endpoint") {
|
|
406
|
+
const endpointOrUndefined = evaluateEndpointRule(rule, options);
|
|
407
|
+
if (endpointOrUndefined) {
|
|
408
|
+
return endpointOrUndefined;
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
else if (rule.type === "error") {
|
|
412
|
+
evaluateErrorRule(rule, options);
|
|
413
|
+
}
|
|
414
|
+
else if (rule.type === "tree") {
|
|
415
|
+
const endpointOrUndefined = group.evaluateTreeRule(rule, options);
|
|
416
|
+
if (endpointOrUndefined) {
|
|
417
|
+
return endpointOrUndefined;
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
else {
|
|
421
|
+
throw new EndpointError(`Unknown endpoint rule: ${rule}`);
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
throw new EndpointError(`Rules evaluation failed`);
|
|
425
|
+
};
|
|
426
|
+
const evaluateTreeRule = (treeRule, options) => {
|
|
427
|
+
const { conditions, rules } = treeRule;
|
|
428
|
+
const { result, referenceRecord } = evaluateConditions(conditions, options);
|
|
429
|
+
if (!result) {
|
|
430
|
+
return;
|
|
431
|
+
}
|
|
432
|
+
return group.evaluateRules(rules, {
|
|
433
|
+
...options,
|
|
434
|
+
referenceRecord: { ...options.referenceRecord, ...referenceRecord },
|
|
435
|
+
});
|
|
436
|
+
};
|
|
437
|
+
const group = {
|
|
438
|
+
evaluateRules,
|
|
439
|
+
evaluateTreeRule,
|
|
440
|
+
};
|
|
441
|
+
|
|
442
|
+
const resolveEndpoint = (ruleSetObject, options) => {
|
|
443
|
+
const { endpointParams, logger } = options;
|
|
444
|
+
const { parameters, rules } = ruleSetObject;
|
|
445
|
+
options.logger?.debug?.(`${debugId} Initial EndpointParams: ${toDebugString(endpointParams)}`);
|
|
446
|
+
const paramsWithDefault = Object.entries(parameters)
|
|
447
|
+
.filter(([, v]) => v.default != null)
|
|
448
|
+
.map(([k, v]) => [k, v.default]);
|
|
449
|
+
if (paramsWithDefault.length > 0) {
|
|
450
|
+
for (const [paramKey, paramDefaultValue] of paramsWithDefault) {
|
|
451
|
+
endpointParams[paramKey] = endpointParams[paramKey] ?? paramDefaultValue;
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
const requiredParams = Object.entries(parameters)
|
|
455
|
+
.filter(([, v]) => v.required)
|
|
456
|
+
.map(([k]) => k);
|
|
457
|
+
for (const requiredParam of requiredParams) {
|
|
458
|
+
if (endpointParams[requiredParam] == null) {
|
|
459
|
+
throw new EndpointError(`Missing required parameter: '${requiredParam}'`);
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
const endpoint = evaluateRules(rules, { endpointParams, logger, referenceRecord: {} });
|
|
463
|
+
options.logger?.debug?.(`${debugId} Resolved endpoint: ${toDebugString(endpoint)}`);
|
|
464
|
+
return endpoint;
|
|
465
|
+
};
|
|
466
|
+
|
|
467
|
+
exports.EndpointCache = EndpointCache;
|
|
468
|
+
exports.EndpointError = EndpointError;
|
|
469
|
+
exports.customEndpointFunctions = customEndpointFunctions;
|
|
470
|
+
exports.isIpAddress = isIpAddress;
|
|
471
|
+
exports.isValidHostLabel = isValidHostLabel;
|
|
472
|
+
exports.resolveEndpoint = resolveEndpoint;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@smithy/util-endpoints",
|
|
3
|
+
"version": "3.3.3",
|
|
4
|
+
"description": "Utilities to help with endpoint resolution.",
|
|
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 util-endpoints",
|
|
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:integration": "yarn g:vitest run -c vitest.config.integ.mts",
|
|
19
|
+
"test:watch": "yarn g:vitest watch",
|
|
20
|
+
"test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
|
|
21
|
+
},
|
|
22
|
+
"keywords": [
|
|
23
|
+
"endpoint"
|
|
24
|
+
],
|
|
25
|
+
"author": {
|
|
26
|
+
"name": "AWS SDK for JavaScript Team",
|
|
27
|
+
"url": "https://aws.amazon.com/javascript/"
|
|
28
|
+
},
|
|
29
|
+
"license": "Apache-2.0",
|
|
30
|
+
"sideEffects": false,
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@smithy/node-config-provider": "^4.3.12",
|
|
33
|
+
"@smithy/types": "^4.13.1",
|
|
34
|
+
"tslib": "^2.6.2"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@types/node": "^18.11.9",
|
|
38
|
+
"concurrently": "7.0.0",
|
|
39
|
+
"downlevel-dts": "0.10.1",
|
|
40
|
+
"premove": "4.0.0",
|
|
41
|
+
"typedoc": "0.23.23"
|
|
42
|
+
},
|
|
43
|
+
"types": "./dist-types/index.d.ts",
|
|
44
|
+
"engines": {
|
|
45
|
+
"node": ">=18.0.0"
|
|
46
|
+
},
|
|
47
|
+
"typesVersions": {
|
|
48
|
+
"<4.5": {
|
|
49
|
+
"types/*": [
|
|
50
|
+
"types/ts3.4/*"
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"files": [
|
|
55
|
+
"dist-*/**"
|
|
56
|
+
],
|
|
57
|
+
"homepage": "https://github.com/smithy-lang/smithy-typescript/tree/master/packages/util-endpoints",
|
|
58
|
+
"repository": {
|
|
59
|
+
"type": "git",
|
|
60
|
+
"url": "https://github.com/smithy-lang/smithy-typescript.git",
|
|
61
|
+
"directory": "packages/util-endpoints"
|
|
62
|
+
},
|
|
63
|
+
"typedoc": {
|
|
64
|
+
"entryPoint": "src/index.ts"
|
|
65
|
+
},
|
|
66
|
+
"publishConfig": {
|
|
67
|
+
"directory": ".release/package"
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const SHORT_TO_HEX = {};
|
|
4
|
+
const HEX_TO_SHORT = {};
|
|
5
|
+
for (let i = 0; i < 256; i++) {
|
|
6
|
+
let encodedByte = i.toString(16).toLowerCase();
|
|
7
|
+
if (encodedByte.length === 1) {
|
|
8
|
+
encodedByte = `0${encodedByte}`;
|
|
9
|
+
}
|
|
10
|
+
SHORT_TO_HEX[i] = encodedByte;
|
|
11
|
+
HEX_TO_SHORT[encodedByte] = i;
|
|
12
|
+
}
|
|
13
|
+
function fromHex(encoded) {
|
|
14
|
+
if (encoded.length % 2 !== 0) {
|
|
15
|
+
throw new Error("Hex encoded strings must have an even number length");
|
|
16
|
+
}
|
|
17
|
+
const out = new Uint8Array(encoded.length / 2);
|
|
18
|
+
for (let i = 0; i < encoded.length; i += 2) {
|
|
19
|
+
const encodedByte = encoded.slice(i, i + 2).toLowerCase();
|
|
20
|
+
if (encodedByte in HEX_TO_SHORT) {
|
|
21
|
+
out[i / 2] = HEX_TO_SHORT[encodedByte];
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error(`Cannot decode unrecognized sequence ${encodedByte} as hexadecimal`);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return out;
|
|
28
|
+
}
|
|
29
|
+
function toHex(bytes) {
|
|
30
|
+
let out = "";
|
|
31
|
+
for (let i = 0; i < bytes.byteLength; i++) {
|
|
32
|
+
out += SHORT_TO_HEX[bytes[i]];
|
|
33
|
+
}
|
|
34
|
+
return out;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
exports.fromHex = fromHex;
|
|
38
|
+
exports.toHex = toHex;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@smithy/util-hex-encoding",
|
|
3
|
+
"version": "4.2.2",
|
|
4
|
+
"description": "Converts binary buffers to and from lowercase hexadecimal encoding",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
7
|
+
"build:cjs": "node ../../scripts/inline util-hex-encoding",
|
|
8
|
+
"build:es": "yarn g:tsc -p tsconfig.es.json",
|
|
9
|
+
"build:types": "yarn g:tsc -p tsconfig.types.json",
|
|
10
|
+
"build:types:downlevel": "premove dist-types/ts3.4 && downlevel-dts dist-types dist-types/ts3.4",
|
|
11
|
+
"stage-release": "premove .release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
|
|
12
|
+
"clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
|
|
13
|
+
"lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
|
|
14
|
+
"format": "prettier --config ../../prettier.config.js --ignore-path ../../.prettierignore --write \"**/*.{ts,md,json}\"",
|
|
15
|
+
"test": "yarn g:vitest run",
|
|
16
|
+
"test:watch": "yarn g:vitest watch"
|
|
17
|
+
},
|
|
18
|
+
"author": {
|
|
19
|
+
"name": "AWS SDK for JavaScript Team",
|
|
20
|
+
"url": "https://aws.amazon.com/javascript/"
|
|
21
|
+
},
|
|
22
|
+
"license": "Apache-2.0",
|
|
23
|
+
"sideEffects": false,
|
|
24
|
+
"main": "./dist-cjs/index.js",
|
|
25
|
+
"module": "./dist-es/index.js",
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"tslib": "^2.6.2"
|
|
28
|
+
},
|
|
29
|
+
"types": "./dist-types/index.d.ts",
|
|
30
|
+
"engines": {
|
|
31
|
+
"node": ">=18.0.0"
|
|
32
|
+
},
|
|
33
|
+
"typesVersions": {
|
|
34
|
+
"<4.5": {
|
|
35
|
+
"dist-types/*": [
|
|
36
|
+
"dist-types/ts3.4/*"
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"files": [
|
|
41
|
+
"dist-*/**"
|
|
42
|
+
],
|
|
43
|
+
"homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/util-hex-encoding",
|
|
44
|
+
"repository": {
|
|
45
|
+
"type": "git",
|
|
46
|
+
"url": "https://github.com/smithy-lang/smithy-typescript.git",
|
|
47
|
+
"directory": "packages/util-hex-encoding"
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"concurrently": "7.0.0",
|
|
51
|
+
"downlevel-dts": "0.10.1",
|
|
52
|
+
"premove": "4.0.0",
|
|
53
|
+
"typedoc": "0.23.23"
|
|
54
|
+
},
|
|
55
|
+
"typedoc": {
|
|
56
|
+
"entryPoint": "src/index.ts"
|
|
57
|
+
},
|
|
58
|
+
"publishConfig": {
|
|
59
|
+
"directory": ".release/package"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var types = require('@smithy/types');
|
|
4
|
+
|
|
5
|
+
const getSmithyContext = (context) => context[types.SMITHY_CONTEXT_KEY] || (context[types.SMITHY_CONTEXT_KEY] = {});
|
|
6
|
+
|
|
7
|
+
const normalizeProvider = (input) => {
|
|
8
|
+
if (typeof input === "function")
|
|
9
|
+
return input;
|
|
10
|
+
const promisified = Promise.resolve(input);
|
|
11
|
+
return () => promisified;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
exports.getSmithyContext = getSmithyContext;
|
|
15
|
+
exports.normalizeProvider = normalizeProvider;
|