@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.
Files changed (343) hide show
  1. package/dist/messaging/index.js +4 -2
  2. package/dist/messaging/index.js.map +1 -1
  3. package/dist/messaging/state.js +1 -0
  4. package/dist/messaging/state.js.map +1 -1
  5. package/dist/messaging/stt.d.ts +1 -0
  6. package/dist/messaging/stt.js +66 -57
  7. package/dist/messaging/stt.js.map +1 -1
  8. package/dist/messaging/types.d.ts +1 -0
  9. package/dist/web/.next/BUILD_ID +1 -1
  10. package/dist/web/.next/build-manifest.json +2 -2
  11. package/dist/web/.next/node_modules/@aws-sdk/client-s3-ecbef8e33fd0b8f0/dist-cjs/auth/httpAuthSchemeProvider.js +126 -0
  12. package/dist/web/.next/node_modules/@aws-sdk/client-s3-ecbef8e33fd0b8f0/dist-cjs/endpoint/endpointResolver.js +33 -0
  13. package/dist/web/.next/node_modules/@aws-sdk/client-s3-ecbef8e33fd0b8f0/dist-cjs/endpoint/ruleset.js +7 -0
  14. package/dist/web/.next/node_modules/@aws-sdk/client-s3-ecbef8e33fd0b8f0/dist-cjs/index.js +3057 -0
  15. package/dist/web/.next/node_modules/@aws-sdk/client-s3-ecbef8e33fd0b8f0/dist-cjs/models/S3ServiceException.js +12 -0
  16. package/dist/web/.next/node_modules/@aws-sdk/client-s3-ecbef8e33fd0b8f0/dist-cjs/models/errors.js +203 -0
  17. package/dist/web/.next/node_modules/@aws-sdk/client-s3-ecbef8e33fd0b8f0/dist-cjs/runtimeConfig.js +67 -0
  18. package/dist/web/.next/node_modules/@aws-sdk/client-s3-ecbef8e33fd0b8f0/dist-cjs/runtimeConfig.shared.js +56 -0
  19. package/dist/web/.next/node_modules/@aws-sdk/client-s3-ecbef8e33fd0b8f0/dist-cjs/schemas/schemas_0.js +3258 -0
  20. package/dist/web/.next/node_modules/@aws-sdk/client-s3-ecbef8e33fd0b8f0/package.json +127 -0
  21. package/dist/web/.next/prerender-manifest.json +3 -3
  22. package/dist/web/.next/server/app/_global-error.html +2 -2
  23. package/dist/web/.next/server/app/_global-error.rsc +1 -1
  24. package/dist/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  25. package/dist/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  26. package/dist/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  27. package/dist/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  28. package/dist/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  29. package/dist/web/.next/server/app/_not-found.html +1 -1
  30. package/dist/web/.next/server/app/_not-found.rsc +1 -1
  31. package/dist/web/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
  32. package/dist/web/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  33. package/dist/web/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
  34. package/dist/web/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  35. package/dist/web/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  36. package/dist/web/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  37. package/dist/web/.next/server/app/api/transcribe/route.js +5 -5
  38. package/dist/web/.next/server/app/api/transcribe/route.js.nft.json +1 -1
  39. package/dist/web/.next/server/app/page_client-reference-manifest.js +1 -1
  40. package/dist/web/.next/server/app/project/[id]/page_client-reference-manifest.js +1 -1
  41. package/dist/web/.next/server/chunks/[root-of-the-server]__1b9e0d6e._.js +19 -0
  42. package/dist/web/.next/server/chunks/{[root-of-the-server]__a4d171b5._.js → [root-of-the-server]__4297cb97._.js} +3 -3
  43. package/dist/web/.next/server/chunks/[root-of-the-server]__52da7fe0._.js +5 -0
  44. package/dist/web/.next/server/chunks/{[root-of-the-server]__53ef96b9._.js → [root-of-the-server]__cf14e306._.js} +2 -2
  45. package/dist/web/.next/server/chunks/[root-of-the-server]__d5272169._.js +3 -0
  46. package/dist/web/.next/server/chunks/[root-of-the-server]__d56e68cb._.js +3 -0
  47. package/dist/web/.next/server/chunks/[root-of-the-server]__f5dae2ad._.js +3 -0
  48. package/dist/web/.next/server/chunks/{node_modules_ec9ae6c4._.js → node_modules_269a84e6._.js} +5 -5
  49. package/dist/web/.next/server/chunks/node_modules_9fc3887b._.js +3 -0
  50. package/dist/web/.next/server/chunks/node_modules_@aws-sdk_credential-provider-sso_dist-es_loadSso_570f147e.js +3 -0
  51. package/dist/web/.next/server/chunks/node_modules_@aws-sdk_nested-clients_dist-es_submodules_sts_index_c78619b3.js +1 -1
  52. package/dist/web/.next/server/chunks/node_modules_@smithy_smithy-client_dist-es_create-aggregated-client_db42850b.js +3 -0
  53. package/dist/web/.next/server/chunks/node_modules_c58ca22f._.js +3 -0
  54. package/dist/web/.next/server/chunks/node_modules_f96dfac4._.js +7 -0
  55. package/dist/web/.next/server/pages/404.html +1 -1
  56. package/dist/web/.next/server/pages/500.html +2 -2
  57. package/dist/web/.next/server/server-reference-manifest.js +1 -1
  58. package/dist/web/.next/server/server-reference-manifest.json +1 -1
  59. package/dist/web/.next/static/chunks/{0bab8c7c82cef548.js → 17bf7ad67057dc74.js} +1 -1
  60. package/dist/web/.next/static/chunks/{1b46e836090e130b.js → 29b5d391d655a999.js} +1 -1
  61. package/dist/web/.next/static/chunks/{345c46e638c28d26.js → 8cb404d087e9f3c7.js} +1 -1
  62. package/dist/web/.next/static/chunks/{de965b463aff71a9.js → e8b318caa49fce00.js} +1 -1
  63. package/dist/web/node_modules/@aws/lambda-invoke-store/dist-cjs/invoke-store.js +119 -0
  64. package/dist/web/node_modules/@aws/lambda-invoke-store/package.json +55 -0
  65. package/dist/web/node_modules/@aws-crypto/crc32/build/main/aws_crc32.js +31 -0
  66. package/dist/web/node_modules/@aws-crypto/crc32/build/main/index.js +108 -0
  67. package/dist/web/node_modules/@aws-crypto/crc32/package.json +32 -0
  68. package/dist/web/node_modules/@aws-crypto/crc32c/build/main/aws_crc32c.js +31 -0
  69. package/dist/web/node_modules/@aws-crypto/crc32c/build/main/index.js +78 -0
  70. package/dist/web/node_modules/@aws-crypto/crc32c/package.json +32 -0
  71. package/dist/web/node_modules/@aws-crypto/util/build/main/convertToBuffer.js +24 -0
  72. package/dist/web/node_modules/@aws-crypto/util/build/main/index.js +14 -0
  73. package/dist/web/node_modules/@aws-crypto/util/build/main/isEmptyData.js +13 -0
  74. package/dist/web/node_modules/@aws-crypto/util/build/main/numToUint8.js +15 -0
  75. package/dist/web/node_modules/@aws-crypto/util/build/main/uint32ArrayFrom.js +20 -0
  76. package/dist/web/node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +32 -0
  77. package/dist/web/node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer/package.json +60 -0
  78. package/dist/web/node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +47 -0
  79. package/dist/web/node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from/package.json +61 -0
  80. package/dist/web/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-cjs/index.js +65 -0
  81. package/dist/web/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/package.json +66 -0
  82. package/dist/web/node_modules/@aws-crypto/util/package.json +32 -0
  83. package/dist/web/node_modules/@aws-sdk/client-s3/dist-cjs/auth/httpAuthSchemeProvider.js +126 -0
  84. package/dist/web/node_modules/@aws-sdk/client-s3/dist-cjs/endpoint/endpointResolver.js +33 -0
  85. package/dist/web/node_modules/@aws-sdk/client-s3/dist-cjs/endpoint/ruleset.js +7 -0
  86. package/dist/web/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +3057 -0
  87. package/dist/web/node_modules/@aws-sdk/client-s3/dist-cjs/models/S3ServiceException.js +12 -0
  88. package/dist/web/node_modules/@aws-sdk/client-s3/dist-cjs/models/errors.js +203 -0
  89. package/dist/web/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.js +67 -0
  90. package/dist/web/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.shared.js +56 -0
  91. package/dist/web/node_modules/@aws-sdk/client-s3/dist-cjs/schemas/schemas_0.js +3258 -0
  92. package/dist/web/node_modules/@aws-sdk/client-s3/package.json +127 -0
  93. package/dist/web/node_modules/@aws-sdk/core/dist-cjs/index.js +2212 -0
  94. package/dist/web/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +51 -0
  95. package/dist/web/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +307 -0
  96. package/dist/web/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +1859 -0
  97. package/dist/web/node_modules/@aws-sdk/core/package.json +121 -0
  98. package/dist/web/node_modules/@aws-sdk/crc64-nvme/dist-cjs/index.js +101 -0
  99. package/dist/web/node_modules/@aws-sdk/crc64-nvme/package.json +50 -0
  100. package/dist/web/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +41 -0
  101. package/dist/web/node_modules/@aws-sdk/credential-provider-env/package.json +63 -0
  102. package/dist/web/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/checkUrl.js +46 -0
  103. package/dist/web/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +70 -0
  104. package/dist/web/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/requestHelpers.js +53 -0
  105. package/dist/web/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/retry-wrapper.js +17 -0
  106. package/dist/web/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js +5 -0
  107. package/dist/web/node_modules/@aws-sdk/credential-provider-http/package.json +70 -0
  108. package/dist/web/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +224 -0
  109. package/dist/web/node_modules/@aws-sdk/credential-provider-ini/package.json +74 -0
  110. package/dist/web/node_modules/@aws-sdk/credential-provider-login/dist-cjs/index.js +286 -0
  111. package/dist/web/node_modules/@aws-sdk/credential-provider-login/package.json +68 -0
  112. package/dist/web/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +156 -0
  113. package/dist/web/node_modules/@aws-sdk/credential-provider-node/package.json +72 -0
  114. package/dist/web/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +79 -0
  115. package/dist/web/node_modules/@aws-sdk/credential-provider-process/package.json +64 -0
  116. package/dist/web/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +192 -0
  117. package/dist/web/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-BKDNrsal.js +8 -0
  118. package/dist/web/node_modules/@aws-sdk/credential-provider-sso/package.json +66 -0
  119. package/dist/web/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +34 -0
  120. package/dist/web/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +62 -0
  121. package/dist/web/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +27 -0
  122. package/dist/web/node_modules/@aws-sdk/credential-provider-web-identity/package.json +73 -0
  123. package/dist/web/node_modules/@aws-sdk/middleware-bucket-endpoint/dist-cjs/index.js +352 -0
  124. package/dist/web/node_modules/@aws-sdk/middleware-bucket-endpoint/package.json +60 -0
  125. package/dist/web/node_modules/@aws-sdk/middleware-expect-continue/dist-cjs/index.js +48 -0
  126. package/dist/web/node_modules/@aws-sdk/middleware-expect-continue/package.json +58 -0
  127. package/dist/web/node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/getCrc32ChecksumAlgorithmFunction.js +26 -0
  128. package/dist/web/node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/index.js +451 -0
  129. package/dist/web/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +78 -0
  130. package/dist/web/node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js +41 -0
  131. package/dist/web/node_modules/@aws-sdk/middleware-host-header/package.json +59 -0
  132. package/dist/web/node_modules/@aws-sdk/middleware-location-constraint/dist-cjs/index.js +30 -0
  133. package/dist/web/node_modules/@aws-sdk/middleware-location-constraint/package.json +57 -0
  134. package/dist/web/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js +48 -0
  135. package/dist/web/node_modules/@aws-sdk/middleware-logger/package.json +59 -0
  136. package/dist/web/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js +29 -0
  137. package/dist/web/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/recursionDetectionMiddleware.js +33 -0
  138. package/dist/web/node_modules/@aws-sdk/middleware-recursion-detection/package.json +63 -0
  139. package/dist/web/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js +570 -0
  140. package/dist/web/node_modules/@aws-sdk/middleware-sdk-s3/package.json +72 -0
  141. package/dist/web/node_modules/@aws-sdk/middleware-ssec/dist-cjs/index.js +73 -0
  142. package/dist/web/node_modules/@aws-sdk/middleware-ssec/package.json +57 -0
  143. package/dist/web/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +194 -0
  144. package/dist/web/node_modules/@aws-sdk/middleware-user-agent/package.json +63 -0
  145. package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/auth/httpAuthSchemeProvider.js +56 -0
  146. package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/endpointResolver.js +18 -0
  147. package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/ruleset.js +133 -0
  148. package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +170 -0
  149. package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/models/SigninServiceException.js +12 -0
  150. package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/models/errors.js +64 -0
  151. package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/runtimeConfig.js +53 -0
  152. package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/runtimeConfig.shared.js +49 -0
  153. package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/schemas/schemas_0.js +125 -0
  154. package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/auth/httpAuthSchemeProvider.js +56 -0
  155. package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/endpointResolver.js +18 -0
  156. package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/ruleset.js +106 -0
  157. package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +160 -0
  158. package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/models/SSOServiceException.js +12 -0
  159. package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/models/errors.js +56 -0
  160. package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/runtimeConfig.js +53 -0
  161. package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/runtimeConfig.shared.js +49 -0
  162. package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/schemas/schemas_0.js +90 -0
  163. package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/auth/httpAuthSchemeProvider.js +56 -0
  164. package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/endpointResolver.js +18 -0
  165. package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/ruleset.js +106 -0
  166. package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +172 -0
  167. package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/models/SSOOIDCServiceException.js +12 -0
  168. package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/models/errors.js +195 -0
  169. package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.js +53 -0
  170. package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.shared.js +49 -0
  171. package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/schemas/schemas_0.js +140 -0
  172. package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/STSClient.js +54 -0
  173. package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/auth/httpAuthExtensionConfiguration.js +43 -0
  174. package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/auth/httpAuthSchemeProvider.js +62 -0
  175. package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/EndpointParameters.js +19 -0
  176. package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/endpointResolver.js +18 -0
  177. package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/ruleset.js +145 -0
  178. package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +202 -0
  179. package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/models/STSServiceException.js +12 -0
  180. package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/models/errors.js +95 -0
  181. package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.js +67 -0
  182. package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.shared.js +50 -0
  183. package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeExtensions.js +13 -0
  184. package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/schemas/schemas_0.js +195 -0
  185. package/dist/web/node_modules/@aws-sdk/nested-clients/package.json +147 -0
  186. package/dist/web/node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js +38 -0
  187. package/dist/web/node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/stsRegionDefaultResolver.js +20 -0
  188. package/dist/web/node_modules/@aws-sdk/region-config-resolver/package.json +62 -0
  189. package/dist/web/node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js +121 -0
  190. package/dist/web/node_modules/@aws-sdk/signature-v4-multi-region/package.json +61 -0
  191. package/dist/web/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +157 -0
  192. package/dist/web/node_modules/@aws-sdk/token-providers/package.json +70 -0
  193. package/dist/web/node_modules/@aws-sdk/util-arn-parser/dist-cjs/index.js +27 -0
  194. package/dist/web/node_modules/@aws-sdk/util-arn-parser/package.json +55 -0
  195. package/dist/web/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +406 -0
  196. package/dist/web/node_modules/@aws-sdk/util-endpoints/package.json +60 -0
  197. package/dist/web/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +185 -0
  198. package/dist/web/node_modules/@aws-sdk/util-user-agent-node/package.json +69 -0
  199. package/dist/web/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +131 -0
  200. package/dist/web/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js +23 -0
  201. package/dist/web/node_modules/@aws-sdk/xml-builder/package.json +63 -0
  202. package/dist/web/node_modules/@smithy/config-resolver/dist-cjs/index.js +198 -0
  203. package/dist/web/node_modules/@smithy/config-resolver/package.json +66 -0
  204. package/dist/web/node_modules/@smithy/core/dist-cjs/index.js +345 -0
  205. package/dist/web/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +1096 -0
  206. package/dist/web/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +22 -0
  207. package/dist/web/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +259 -0
  208. package/dist/web/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +884 -0
  209. package/dist/web/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +698 -0
  210. package/dist/web/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +694 -0
  211. package/dist/web/node_modules/@smithy/core/package.json +146 -0
  212. package/dist/web/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +372 -0
  213. package/dist/web/node_modules/@smithy/credential-provider-imds/package.json +70 -0
  214. package/dist/web/node_modules/@smithy/eventstream-codec/dist-cjs/index.js +388 -0
  215. package/dist/web/node_modules/@smithy/eventstream-codec/package.json +65 -0
  216. package/dist/web/node_modules/@smithy/eventstream-serde-config-resolver/dist-cjs/index.js +7 -0
  217. package/dist/web/node_modules/@smithy/eventstream-serde-config-resolver/package.json +62 -0
  218. package/dist/web/node_modules/@smithy/eventstream-serde-node/dist-cjs/index.js +53 -0
  219. package/dist/web/node_modules/@smithy/eventstream-serde-node/package.json +62 -0
  220. package/dist/web/node_modules/@smithy/eventstream-serde-universal/dist-cjs/index.js +132 -0
  221. package/dist/web/node_modules/@smithy/eventstream-serde-universal/package.json +66 -0
  222. package/dist/web/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +233 -0
  223. package/dist/web/node_modules/@smithy/fetch-http-handler/package.json +69 -0
  224. package/dist/web/node_modules/@smithy/hash-node/dist-cjs/index.js +42 -0
  225. package/dist/web/node_modules/@smithy/hash-node/package.json +65 -0
  226. package/dist/web/node_modules/@smithy/hash-stream-node/dist-cjs/index.js +67 -0
  227. package/dist/web/node_modules/@smithy/hash-stream-node/package.json +65 -0
  228. package/dist/web/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  229. package/dist/web/node_modules/@smithy/is-array-buffer/package.json +61 -0
  230. package/dist/web/node_modules/@smithy/middleware-content-length/dist-cjs/index.js +46 -0
  231. package/dist/web/node_modules/@smithy/middleware-content-length/package.json +64 -0
  232. package/dist/web/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromConfig.js +7 -0
  233. package/dist/web/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointUrlConfig.js +35 -0
  234. package/dist/web/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +264 -0
  235. package/dist/web/node_modules/@smithy/middleware-endpoint/package.json +75 -0
  236. package/dist/web/node_modules/@smithy/middleware-retry/dist-cjs/index.js +355 -0
  237. package/dist/web/node_modules/@smithy/middleware-retry/dist-cjs/isStreamingPayload/isStreamingPayload.js +7 -0
  238. package/dist/web/node_modules/@smithy/middleware-retry/package.json +79 -0
  239. package/dist/web/node_modules/@smithy/middleware-serde/dist-cjs/index.js +104 -0
  240. package/dist/web/node_modules/@smithy/middleware-serde/package.json +66 -0
  241. package/dist/web/node_modules/@smithy/middleware-stack/dist-cjs/index.js +285 -0
  242. package/dist/web/node_modules/@smithy/middleware-stack/package.json +64 -0
  243. package/dist/web/node_modules/@smithy/node-config-provider/dist-cjs/index.js +62 -0
  244. package/dist/web/node_modules/@smithy/node-config-provider/package.json +66 -0
  245. package/dist/web/node_modules/@smithy/node-http-handler/dist-cjs/index.js +762 -0
  246. package/dist/web/node_modules/@smithy/node-http-handler/package.json +68 -0
  247. package/dist/web/node_modules/@smithy/property-provider/dist-cjs/index.js +117 -0
  248. package/dist/web/node_modules/@smithy/property-provider/package.json +61 -0
  249. package/dist/web/node_modules/@smithy/protocol-http/dist-cjs/index.js +169 -0
  250. package/dist/web/node_modules/@smithy/protocol-http/package.json +62 -0
  251. package/dist/web/node_modules/@smithy/querystring-builder/dist-cjs/index.js +26 -0
  252. package/dist/web/node_modules/@smithy/querystring-builder/package.json +61 -0
  253. package/dist/web/node_modules/@smithy/querystring-parser/dist-cjs/index.js +27 -0
  254. package/dist/web/node_modules/@smithy/querystring-parser/package.json +61 -0
  255. package/dist/web/node_modules/@smithy/service-error-classification/dist-cjs/index.js +77 -0
  256. package/dist/web/node_modules/@smithy/service-error-classification/package.json +60 -0
  257. package/dist/web/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getHomeDir.js +26 -0
  258. package/dist/web/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js +12 -0
  259. package/dist/web/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js +15 -0
  260. package/dist/web/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +196 -0
  261. package/dist/web/node_modules/@smithy/shared-ini-file-loader/dist-cjs/readFile.js +16 -0
  262. package/dist/web/node_modules/@smithy/shared-ini-file-loader/package.json +73 -0
  263. package/dist/web/node_modules/@smithy/signature-v4/dist-cjs/index.js +556 -0
  264. package/dist/web/node_modules/@smithy/signature-v4/package.json +70 -0
  265. package/dist/web/node_modules/@smithy/smithy-client/dist-cjs/index.js +635 -0
  266. package/dist/web/node_modules/@smithy/smithy-client/package.json +70 -0
  267. package/dist/web/node_modules/@smithy/types/dist-cjs/index.js +91 -0
  268. package/dist/web/node_modules/@smithy/types/package.json +61 -0
  269. package/dist/web/node_modules/@smithy/url-parser/dist-cjs/index.js +23 -0
  270. package/dist/web/node_modules/@smithy/url-parser/package.json +62 -0
  271. package/dist/web/node_modules/@smithy/util-base64/dist-cjs/fromBase64.js +16 -0
  272. package/dist/web/node_modules/@smithy/util-base64/dist-cjs/index.js +27 -0
  273. package/dist/web/node_modules/@smithy/util-base64/dist-cjs/toBase64.js +19 -0
  274. package/dist/web/node_modules/@smithy/util-base64/package.json +74 -0
  275. package/dist/web/node_modules/@smithy/util-body-length-browser/dist-cjs/index.js +30 -0
  276. package/dist/web/node_modules/@smithy/util-body-length-browser/package.json +61 -0
  277. package/dist/web/node_modules/@smithy/util-body-length-node/dist-cjs/index.js +32 -0
  278. package/dist/web/node_modules/@smithy/util-body-length-node/package.json +62 -0
  279. package/dist/web/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  280. package/dist/web/node_modules/@smithy/util-buffer-from/package.json +62 -0
  281. package/dist/web/node_modules/@smithy/util-config-provider/dist-cjs/index.js +30 -0
  282. package/dist/web/node_modules/@smithy/util-config-provider/package.json +63 -0
  283. package/dist/web/node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js +74 -0
  284. package/dist/web/node_modules/@smithy/util-defaults-mode-node/package.json +67 -0
  285. package/dist/web/node_modules/@smithy/util-endpoints/dist-cjs/index.js +472 -0
  286. package/dist/web/node_modules/@smithy/util-endpoints/package.json +69 -0
  287. package/dist/web/node_modules/@smithy/util-hex-encoding/dist-cjs/index.js +38 -0
  288. package/dist/web/node_modules/@smithy/util-hex-encoding/package.json +61 -0
  289. package/dist/web/node_modules/@smithy/util-middleware/dist-cjs/index.js +15 -0
  290. package/dist/web/node_modules/@smithy/util-middleware/package.json +67 -0
  291. package/dist/web/node_modules/@smithy/util-retry/dist-cjs/index.js +278 -0
  292. package/dist/web/node_modules/@smithy/util-retry/package.json +71 -0
  293. package/dist/web/node_modules/@smithy/util-stream/dist-cjs/ByteArrayCollector.js +36 -0
  294. package/dist/web/node_modules/@smithy/util-stream/dist-cjs/checksum/ChecksumStream.browser.js +7 -0
  295. package/dist/web/node_modules/@smithy/util-stream/dist-cjs/checksum/ChecksumStream.js +64 -0
  296. package/dist/web/node_modules/@smithy/util-stream/dist-cjs/checksum/createChecksumStream.browser.js +39 -0
  297. package/dist/web/node_modules/@smithy/util-stream/dist-cjs/checksum/createChecksumStream.js +12 -0
  298. package/dist/web/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadable.js +60 -0
  299. package/dist/web/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadableStream.js +103 -0
  300. package/dist/web/node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.browser.js +31 -0
  301. package/dist/web/node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.js +41 -0
  302. package/dist/web/node_modules/@smithy/util-stream/dist-cjs/headStream.browser.js +34 -0
  303. package/dist/web/node_modules/@smithy/util-stream/dist-cjs/headStream.js +42 -0
  304. package/dist/web/node_modules/@smithy/util-stream/dist-cjs/index.js +108 -0
  305. package/dist/web/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.browser.js +68 -0
  306. package/dist/web/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.js +54 -0
  307. package/dist/web/node_modules/@smithy/util-stream/dist-cjs/splitStream.browser.js +10 -0
  308. package/dist/web/node_modules/@smithy/util-stream/dist-cjs/splitStream.js +16 -0
  309. package/dist/web/node_modules/@smithy/util-stream/dist-cjs/stream-type-check.js +10 -0
  310. package/dist/web/node_modules/@smithy/util-stream/package.json +99 -0
  311. package/dist/web/node_modules/@smithy/util-uri-escape/dist-cjs/index.js +9 -0
  312. package/dist/web/node_modules/@smithy/util-uri-escape/package.json +60 -0
  313. package/dist/web/node_modules/@smithy/util-utf8/dist-cjs/index.js +32 -0
  314. package/dist/web/node_modules/@smithy/util-utf8/package.json +67 -0
  315. package/dist/web/node_modules/@smithy/util-waiter/dist-cjs/index.js +179 -0
  316. package/dist/web/node_modules/@smithy/util-waiter/package.json +63 -0
  317. package/dist/web/node_modules/@smithy/uuid/dist-cjs/index.js +36 -0
  318. package/dist/web/node_modules/@smithy/uuid/dist-cjs/randomUUID.js +6 -0
  319. package/dist/web/node_modules/@smithy/uuid/package.json +66 -0
  320. package/dist/web/node_modules/fast-xml-parser/lib/fxp.cjs +1 -0
  321. package/dist/web/node_modules/fast-xml-parser/package.json +94 -0
  322. package/dist/web/node_modules/tslib/package.json +47 -0
  323. package/dist/web/node_modules/tslib/tslib.js +484 -0
  324. package/dist/web/package-lock.json +433 -161
  325. package/dist/web/package.json +2 -1
  326. package/dist/web/src/app/api/transcribe/route.ts +84 -74
  327. package/dist/web/tsconfig.tsbuildinfo +1 -1
  328. package/lib/cli/stop.d.ts.map +1 -1
  329. package/lib/cli/stop.js +38 -18
  330. package/lib/cli/stop.js.map +1 -1
  331. package/package.json +1 -1
  332. package/templates/kanban-seed.json +1 -1
  333. package/dist/web/.next/server/chunks/[root-of-the-server]__0f8687da._.js +0 -3
  334. package/dist/web/.next/server/chunks/[root-of-the-server]__0f9b71fd._.js +0 -5
  335. package/dist/web/.next/server/chunks/[root-of-the-server]__1dec5018._.js +0 -3
  336. package/dist/web/.next/server/chunks/[root-of-the-server]__2605d761._.js +0 -9
  337. package/dist/web/.next/server/chunks/[root-of-the-server]__8ce673c9._.js +0 -3
  338. package/dist/web/.next/server/chunks/[root-of-the-server]__a43db24d._.js +0 -19
  339. package/dist/web/.next/server/chunks/[root-of-the-server]__c7ac3578._.js +0 -5
  340. package/dist/web/.next/server/chunks/a9bf9_@aws-sdk_core_dist-es_submodules_protocols_json_AwsRestJsonProtocol_764d7a83.js +0 -3
  341. /package/dist/web/.next/static/{eGpcv9LfmamGIm1II8SKL → 5LMWBFPioBVfTpJ4F5OT6}/_buildManifest.js +0 -0
  342. /package/dist/web/.next/static/{eGpcv9LfmamGIm1II8SKL → 5LMWBFPioBVfTpJ4F5OT6}/_clientMiddlewareManifest.json +0 -0
  343. /package/dist/web/.next/static/{eGpcv9LfmamGIm1II8SKL → 5LMWBFPioBVfTpJ4F5OT6}/_ssgManifest.js +0 -0
@@ -0,0 +1,132 @@
1
+ 'use strict';
2
+
3
+ var eventstreamCodec = require('@smithy/eventstream-codec');
4
+
5
+ function getChunkedStream(source) {
6
+ let currentMessageTotalLength = 0;
7
+ let currentMessagePendingLength = 0;
8
+ let currentMessage = null;
9
+ let messageLengthBuffer = null;
10
+ const allocateMessage = (size) => {
11
+ if (typeof size !== "number") {
12
+ throw new Error("Attempted to allocate an event message where size was not a number: " + size);
13
+ }
14
+ currentMessageTotalLength = size;
15
+ currentMessagePendingLength = 4;
16
+ currentMessage = new Uint8Array(size);
17
+ const currentMessageView = new DataView(currentMessage.buffer);
18
+ currentMessageView.setUint32(0, size, false);
19
+ };
20
+ const iterator = async function* () {
21
+ const sourceIterator = source[Symbol.asyncIterator]();
22
+ while (true) {
23
+ const { value, done } = await sourceIterator.next();
24
+ if (done) {
25
+ if (!currentMessageTotalLength) {
26
+ return;
27
+ }
28
+ else if (currentMessageTotalLength === currentMessagePendingLength) {
29
+ yield currentMessage;
30
+ }
31
+ else {
32
+ throw new Error("Truncated event message received.");
33
+ }
34
+ return;
35
+ }
36
+ const chunkLength = value.length;
37
+ let currentOffset = 0;
38
+ while (currentOffset < chunkLength) {
39
+ if (!currentMessage) {
40
+ const bytesRemaining = chunkLength - currentOffset;
41
+ if (!messageLengthBuffer) {
42
+ messageLengthBuffer = new Uint8Array(4);
43
+ }
44
+ const numBytesForTotal = Math.min(4 - currentMessagePendingLength, bytesRemaining);
45
+ messageLengthBuffer.set(value.slice(currentOffset, currentOffset + numBytesForTotal), currentMessagePendingLength);
46
+ currentMessagePendingLength += numBytesForTotal;
47
+ currentOffset += numBytesForTotal;
48
+ if (currentMessagePendingLength < 4) {
49
+ break;
50
+ }
51
+ allocateMessage(new DataView(messageLengthBuffer.buffer).getUint32(0, false));
52
+ messageLengthBuffer = null;
53
+ }
54
+ const numBytesToWrite = Math.min(currentMessageTotalLength - currentMessagePendingLength, chunkLength - currentOffset);
55
+ currentMessage.set(value.slice(currentOffset, currentOffset + numBytesToWrite), currentMessagePendingLength);
56
+ currentMessagePendingLength += numBytesToWrite;
57
+ currentOffset += numBytesToWrite;
58
+ if (currentMessageTotalLength && currentMessageTotalLength === currentMessagePendingLength) {
59
+ yield currentMessage;
60
+ currentMessage = null;
61
+ currentMessageTotalLength = 0;
62
+ currentMessagePendingLength = 0;
63
+ }
64
+ }
65
+ }
66
+ };
67
+ return {
68
+ [Symbol.asyncIterator]: iterator,
69
+ };
70
+ }
71
+
72
+ function getMessageUnmarshaller(deserializer, toUtf8) {
73
+ return async function (message) {
74
+ const { value: messageType } = message.headers[":message-type"];
75
+ if (messageType === "error") {
76
+ const unmodeledError = new Error(message.headers[":error-message"].value || "UnknownError");
77
+ unmodeledError.name = message.headers[":error-code"].value;
78
+ throw unmodeledError;
79
+ }
80
+ else if (messageType === "exception") {
81
+ const code = message.headers[":exception-type"].value;
82
+ const exception = { [code]: message };
83
+ const deserializedException = await deserializer(exception);
84
+ if (deserializedException.$unknown) {
85
+ const error = new Error(toUtf8(message.body));
86
+ error.name = code;
87
+ throw error;
88
+ }
89
+ throw deserializedException[code];
90
+ }
91
+ else if (messageType === "event") {
92
+ const event = {
93
+ [message.headers[":event-type"].value]: message,
94
+ };
95
+ const deserialized = await deserializer(event);
96
+ if (deserialized.$unknown)
97
+ return;
98
+ return deserialized;
99
+ }
100
+ else {
101
+ throw Error(`Unrecognizable event type: ${message.headers[":event-type"].value}`);
102
+ }
103
+ };
104
+ }
105
+
106
+ class EventStreamMarshaller {
107
+ eventStreamCodec;
108
+ utfEncoder;
109
+ constructor({ utf8Encoder, utf8Decoder }) {
110
+ this.eventStreamCodec = new eventstreamCodec.EventStreamCodec(utf8Encoder, utf8Decoder);
111
+ this.utfEncoder = utf8Encoder;
112
+ }
113
+ deserialize(body, deserializer) {
114
+ const inputStream = getChunkedStream(body);
115
+ return new eventstreamCodec.SmithyMessageDecoderStream({
116
+ messageStream: new eventstreamCodec.MessageDecoderStream({ inputStream, decoder: this.eventStreamCodec }),
117
+ deserializer: getMessageUnmarshaller(deserializer, this.utfEncoder),
118
+ });
119
+ }
120
+ serialize(inputStream, serializer) {
121
+ return new eventstreamCodec.MessageEncoderStream({
122
+ messageStream: new eventstreamCodec.SmithyMessageEncoderStream({ inputStream, serializer }),
123
+ encoder: this.eventStreamCodec,
124
+ includeEndFrame: true,
125
+ });
126
+ }
127
+ }
128
+
129
+ const eventStreamSerdeProvider = (options) => new EventStreamMarshaller(options);
130
+
131
+ exports.EventStreamMarshaller = EventStreamMarshaller;
132
+ exports.eventStreamSerdeProvider = eventStreamSerdeProvider;
@@ -0,0 +1,66 @@
1
+ {
2
+ "name": "@smithy/eventstream-serde-universal",
3
+ "version": "4.2.12",
4
+ "scripts": {
5
+ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
+ "build:cjs": "node ../../scripts/inline eventstream-serde-universal",
7
+ "build:es": "yarn g:tsc -p tsconfig.es.json",
8
+ "build:types": "yarn g:tsc -p tsconfig.types.json",
9
+ "build:types:downlevel": "premove dist-types/ts3.4 && downlevel-dts dist-types dist-types/ts3.4",
10
+ "stage-release": "premove .release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
11
+ "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
12
+ "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
13
+ "format": "prettier --config ../../prettier.config.js --ignore-path ../../.prettierignore --write \"**/*.{ts,md,json}\"",
14
+ "test": "yarn g:vitest run",
15
+ "test:watch": "yarn g:vitest watch",
16
+ "test:integration": "yarn g:vitest run -c vitest.config.integ.mts",
17
+ "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
18
+ },
19
+ "main": "./dist-cjs/index.js",
20
+ "module": "./dist-es/index.js",
21
+ "types": "./dist-types/index.d.ts",
22
+ "author": {
23
+ "name": "AWS SDK for JavaScript Team",
24
+ "url": "https://aws.amazon.com/javascript/"
25
+ },
26
+ "license": "Apache-2.0",
27
+ "sideEffects": false,
28
+ "dependencies": {
29
+ "@smithy/eventstream-codec": "^4.2.12",
30
+ "@smithy/types": "^4.13.1",
31
+ "tslib": "^2.6.2"
32
+ },
33
+ "devDependencies": {
34
+ "@smithy/util-utf8": "^4.2.2",
35
+ "@types/node": "^18.11.9",
36
+ "concurrently": "7.0.0",
37
+ "downlevel-dts": "0.10.1",
38
+ "premove": "4.0.0",
39
+ "typedoc": "0.23.23"
40
+ },
41
+ "engines": {
42
+ "node": ">=18.0.0"
43
+ },
44
+ "typesVersions": {
45
+ "<4.5": {
46
+ "dist-types/*": [
47
+ "dist-types/ts3.4/*"
48
+ ]
49
+ }
50
+ },
51
+ "files": [
52
+ "dist-*/**"
53
+ ],
54
+ "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/eventstream-serde-universal",
55
+ "repository": {
56
+ "type": "git",
57
+ "url": "https://github.com/smithy-lang/smithy-typescript.git",
58
+ "directory": "packages/eventstream-serde-universal"
59
+ },
60
+ "typedoc": {
61
+ "entryPoint": "src/index.ts"
62
+ },
63
+ "publishConfig": {
64
+ "directory": ".release/package"
65
+ }
66
+ }
@@ -0,0 +1,233 @@
1
+ 'use strict';
2
+
3
+ var protocolHttp = require('@smithy/protocol-http');
4
+ var querystringBuilder = require('@smithy/querystring-builder');
5
+ var utilBase64 = require('@smithy/util-base64');
6
+
7
+ function createRequest(url, requestOptions) {
8
+ return new Request(url, requestOptions);
9
+ }
10
+
11
+ function requestTimeout(timeoutInMs = 0) {
12
+ return new Promise((resolve, reject) => {
13
+ if (timeoutInMs) {
14
+ setTimeout(() => {
15
+ const timeoutError = new Error(`Request did not complete within ${timeoutInMs} ms`);
16
+ timeoutError.name = "TimeoutError";
17
+ reject(timeoutError);
18
+ }, timeoutInMs);
19
+ }
20
+ });
21
+ }
22
+
23
+ const keepAliveSupport = {
24
+ supported: undefined,
25
+ };
26
+ class FetchHttpHandler {
27
+ config;
28
+ configProvider;
29
+ static create(instanceOrOptions) {
30
+ if (typeof instanceOrOptions?.handle === "function") {
31
+ return instanceOrOptions;
32
+ }
33
+ return new FetchHttpHandler(instanceOrOptions);
34
+ }
35
+ constructor(options) {
36
+ if (typeof options === "function") {
37
+ this.configProvider = options().then((opts) => opts || {});
38
+ }
39
+ else {
40
+ this.config = options ?? {};
41
+ this.configProvider = Promise.resolve(this.config);
42
+ }
43
+ if (keepAliveSupport.supported === undefined) {
44
+ keepAliveSupport.supported = Boolean(typeof Request !== "undefined" && "keepalive" in createRequest("https://[::1]"));
45
+ }
46
+ }
47
+ destroy() {
48
+ }
49
+ async handle(request, { abortSignal, requestTimeout: requestTimeout$1 } = {}) {
50
+ if (!this.config) {
51
+ this.config = await this.configProvider;
52
+ }
53
+ const requestTimeoutInMs = requestTimeout$1 ?? this.config.requestTimeout;
54
+ const keepAlive = this.config.keepAlive === true;
55
+ const credentials = this.config.credentials;
56
+ if (abortSignal?.aborted) {
57
+ const abortError = buildAbortError(abortSignal);
58
+ return Promise.reject(abortError);
59
+ }
60
+ let path = request.path;
61
+ const queryString = querystringBuilder.buildQueryString(request.query || {});
62
+ if (queryString) {
63
+ path += `?${queryString}`;
64
+ }
65
+ if (request.fragment) {
66
+ path += `#${request.fragment}`;
67
+ }
68
+ let auth = "";
69
+ if (request.username != null || request.password != null) {
70
+ const username = request.username ?? "";
71
+ const password = request.password ?? "";
72
+ auth = `${username}:${password}@`;
73
+ }
74
+ const { port, method } = request;
75
+ const url = `${request.protocol}//${auth}${request.hostname}${port ? `:${port}` : ""}${path}`;
76
+ const body = method === "GET" || method === "HEAD" ? undefined : request.body;
77
+ const requestOptions = {
78
+ body,
79
+ headers: new Headers(request.headers),
80
+ method: method,
81
+ credentials,
82
+ };
83
+ if (this.config?.cache) {
84
+ requestOptions.cache = this.config.cache;
85
+ }
86
+ if (body) {
87
+ requestOptions.duplex = "half";
88
+ }
89
+ if (typeof AbortController !== "undefined") {
90
+ requestOptions.signal = abortSignal;
91
+ }
92
+ if (keepAliveSupport.supported) {
93
+ requestOptions.keepalive = keepAlive;
94
+ }
95
+ if (typeof this.config.requestInit === "function") {
96
+ Object.assign(requestOptions, this.config.requestInit(request));
97
+ }
98
+ let removeSignalEventListener = () => { };
99
+ const fetchRequest = createRequest(url, requestOptions);
100
+ const raceOfPromises = [
101
+ fetch(fetchRequest).then((response) => {
102
+ const fetchHeaders = response.headers;
103
+ const transformedHeaders = {};
104
+ for (const pair of fetchHeaders.entries()) {
105
+ transformedHeaders[pair[0]] = pair[1];
106
+ }
107
+ const hasReadableStream = response.body != undefined;
108
+ if (!hasReadableStream) {
109
+ return response.blob().then((body) => ({
110
+ response: new protocolHttp.HttpResponse({
111
+ headers: transformedHeaders,
112
+ reason: response.statusText,
113
+ statusCode: response.status,
114
+ body,
115
+ }),
116
+ }));
117
+ }
118
+ return {
119
+ response: new protocolHttp.HttpResponse({
120
+ headers: transformedHeaders,
121
+ reason: response.statusText,
122
+ statusCode: response.status,
123
+ body: response.body,
124
+ }),
125
+ };
126
+ }),
127
+ requestTimeout(requestTimeoutInMs),
128
+ ];
129
+ if (abortSignal) {
130
+ raceOfPromises.push(new Promise((resolve, reject) => {
131
+ const onAbort = () => {
132
+ const abortError = buildAbortError(abortSignal);
133
+ reject(abortError);
134
+ };
135
+ if (typeof abortSignal.addEventListener === "function") {
136
+ const signal = abortSignal;
137
+ signal.addEventListener("abort", onAbort, { once: true });
138
+ removeSignalEventListener = () => signal.removeEventListener("abort", onAbort);
139
+ }
140
+ else {
141
+ abortSignal.onabort = onAbort;
142
+ }
143
+ }));
144
+ }
145
+ return Promise.race(raceOfPromises).finally(removeSignalEventListener);
146
+ }
147
+ updateHttpClientConfig(key, value) {
148
+ this.config = undefined;
149
+ this.configProvider = this.configProvider.then((config) => {
150
+ config[key] = value;
151
+ return config;
152
+ });
153
+ }
154
+ httpHandlerConfigs() {
155
+ return this.config ?? {};
156
+ }
157
+ }
158
+ function buildAbortError(abortSignal) {
159
+ const reason = abortSignal && typeof abortSignal === "object" && "reason" in abortSignal
160
+ ? abortSignal.reason
161
+ : undefined;
162
+ if (reason) {
163
+ if (reason instanceof Error) {
164
+ const abortError = new Error("Request aborted");
165
+ abortError.name = "AbortError";
166
+ abortError.cause = reason;
167
+ return abortError;
168
+ }
169
+ const abortError = new Error(String(reason));
170
+ abortError.name = "AbortError";
171
+ return abortError;
172
+ }
173
+ const abortError = new Error("Request aborted");
174
+ abortError.name = "AbortError";
175
+ return abortError;
176
+ }
177
+
178
+ const streamCollector = async (stream) => {
179
+ if ((typeof Blob === "function" && stream instanceof Blob) || stream.constructor?.name === "Blob") {
180
+ if (Blob.prototype.arrayBuffer !== undefined) {
181
+ return new Uint8Array(await stream.arrayBuffer());
182
+ }
183
+ return collectBlob(stream);
184
+ }
185
+ return collectStream(stream);
186
+ };
187
+ async function collectBlob(blob) {
188
+ const base64 = await readToBase64(blob);
189
+ const arrayBuffer = utilBase64.fromBase64(base64);
190
+ return new Uint8Array(arrayBuffer);
191
+ }
192
+ async function collectStream(stream) {
193
+ const chunks = [];
194
+ const reader = stream.getReader();
195
+ let isDone = false;
196
+ let length = 0;
197
+ while (!isDone) {
198
+ const { done, value } = await reader.read();
199
+ if (value) {
200
+ chunks.push(value);
201
+ length += value.length;
202
+ }
203
+ isDone = done;
204
+ }
205
+ const collected = new Uint8Array(length);
206
+ let offset = 0;
207
+ for (const chunk of chunks) {
208
+ collected.set(chunk, offset);
209
+ offset += chunk.length;
210
+ }
211
+ return collected;
212
+ }
213
+ function readToBase64(blob) {
214
+ return new Promise((resolve, reject) => {
215
+ const reader = new FileReader();
216
+ reader.onloadend = () => {
217
+ if (reader.readyState !== 2) {
218
+ return reject(new Error("Reader aborted too early"));
219
+ }
220
+ const result = (reader.result ?? "");
221
+ const commaIndex = result.indexOf(",");
222
+ const dataOffset = commaIndex > -1 ? commaIndex + 1 : result.length;
223
+ resolve(result.substring(dataOffset));
224
+ };
225
+ reader.onabort = () => reject(new Error("Read aborted"));
226
+ reader.onerror = () => reject(reader.error);
227
+ reader.readAsDataURL(blob);
228
+ });
229
+ }
230
+
231
+ exports.FetchHttpHandler = FetchHttpHandler;
232
+ exports.keepAliveSupport = keepAliveSupport;
233
+ exports.streamCollector = streamCollector;
@@ -0,0 +1,69 @@
1
+ {
2
+ "name": "@smithy/fetch-http-handler",
3
+ "version": "5.3.15",
4
+ "description": "Provides a way to make requests",
5
+ "scripts": {
6
+ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
7
+ "build:cjs": "node ../../scripts/inline fetch-http-handler",
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
+ "extract:docs": "api-extractor run --local",
16
+ "test": "yarn g:vitest run && yarn test:browser",
17
+ "test:watch": "yarn g:vitest watch",
18
+ "test:browser": "yarn g:vitest run -c vitest.config.browser.mts",
19
+ "test:browser:watch": "yarn g:vitest watch -c vitest.config.browser.mts"
20
+ },
21
+ "author": {
22
+ "name": "AWS SDK for JavaScript Team",
23
+ "url": "https://aws.amazon.com/javascript/"
24
+ },
25
+ "license": "Apache-2.0",
26
+ "sideEffects": false,
27
+ "main": "./dist-cjs/index.js",
28
+ "module": "./dist-es/index.js",
29
+ "types": "./dist-types/index.d.ts",
30
+ "dependencies": {
31
+ "@smithy/protocol-http": "^5.3.12",
32
+ "@smithy/querystring-builder": "^4.2.12",
33
+ "@smithy/types": "^4.13.1",
34
+ "@smithy/util-base64": "^4.3.2",
35
+ "tslib": "^2.6.2"
36
+ },
37
+ "devDependencies": {
38
+ "@smithy/abort-controller": "^4.2.12",
39
+ "concurrently": "7.0.0",
40
+ "downlevel-dts": "0.10.1",
41
+ "premove": "4.0.0",
42
+ "typedoc": "0.23.23"
43
+ },
44
+ "typesVersions": {
45
+ "<4.5": {
46
+ "dist-types/*": [
47
+ "dist-types/ts3.4/*"
48
+ ]
49
+ }
50
+ },
51
+ "files": [
52
+ "dist-*/**"
53
+ ],
54
+ "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/fetch-http-handler",
55
+ "repository": {
56
+ "type": "git",
57
+ "url": "https://github.com/smithy-lang/smithy-typescript.git",
58
+ "directory": "packages/fetch-http-handler"
59
+ },
60
+ "typedoc": {
61
+ "entryPoint": "src/index.ts"
62
+ },
63
+ "publishConfig": {
64
+ "directory": ".release/package"
65
+ },
66
+ "engines": {
67
+ "node": ">=18.0.0"
68
+ }
69
+ }
@@ -0,0 +1,42 @@
1
+ 'use strict';
2
+
3
+ var utilBufferFrom = require('@smithy/util-buffer-from');
4
+ var utilUtf8 = require('@smithy/util-utf8');
5
+ var buffer = require('buffer');
6
+ var crypto = require('crypto');
7
+
8
+ class Hash {
9
+ algorithmIdentifier;
10
+ secret;
11
+ hash;
12
+ constructor(algorithmIdentifier, secret) {
13
+ this.algorithmIdentifier = algorithmIdentifier;
14
+ this.secret = secret;
15
+ this.reset();
16
+ }
17
+ update(toHash, encoding) {
18
+ this.hash.update(utilUtf8.toUint8Array(castSourceData(toHash, encoding)));
19
+ }
20
+ digest() {
21
+ return Promise.resolve(this.hash.digest());
22
+ }
23
+ reset() {
24
+ this.hash = this.secret
25
+ ? crypto.createHmac(this.algorithmIdentifier, castSourceData(this.secret))
26
+ : crypto.createHash(this.algorithmIdentifier);
27
+ }
28
+ }
29
+ function castSourceData(toCast, encoding) {
30
+ if (buffer.Buffer.isBuffer(toCast)) {
31
+ return toCast;
32
+ }
33
+ if (typeof toCast === "string") {
34
+ return utilBufferFrom.fromString(toCast, encoding);
35
+ }
36
+ if (ArrayBuffer.isView(toCast)) {
37
+ return utilBufferFrom.fromArrayBuffer(toCast.buffer, toCast.byteOffset, toCast.byteLength);
38
+ }
39
+ return utilBufferFrom.fromArrayBuffer(toCast);
40
+ }
41
+
42
+ exports.Hash = Hash;
@@ -0,0 +1,65 @@
1
+ {
2
+ "name": "@smithy/hash-node",
3
+ "version": "4.2.12",
4
+ "scripts": {
5
+ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
+ "build:cjs": "node ../../scripts/inline hash-node",
7
+ "build:es": "yarn g:tsc -p tsconfig.es.json",
8
+ "build:types": "yarn g:tsc -p tsconfig.types.json",
9
+ "build:types:downlevel": "premove dist-types/ts3.4 && downlevel-dts dist-types dist-types/ts3.4",
10
+ "stage-release": "premove .release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
11
+ "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
12
+ "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
13
+ "format": "prettier --config ../../prettier.config.js --ignore-path ../../.prettierignore --write \"**/*.{ts,md,json}\"",
14
+ "test": "yarn g:vitest run",
15
+ "test:watch": "yarn g:vitest watch"
16
+ },
17
+ "main": "./dist-cjs/index.js",
18
+ "module": "./dist-es/index.js",
19
+ "types": "./dist-types/index.d.ts",
20
+ "author": {
21
+ "name": "AWS SDK for JavaScript Team",
22
+ "url": "https://aws.amazon.com/javascript/"
23
+ },
24
+ "license": "Apache-2.0",
25
+ "sideEffects": false,
26
+ "devDependencies": {
27
+ "@types/node": "^18.11.9",
28
+ "concurrently": "7.0.0",
29
+ "downlevel-dts": "0.10.1",
30
+ "hash-test-vectors": "^1.3.2",
31
+ "premove": "4.0.0",
32
+ "typedoc": "0.23.23"
33
+ },
34
+ "dependencies": {
35
+ "@smithy/types": "^4.13.1",
36
+ "@smithy/util-buffer-from": "^4.2.2",
37
+ "@smithy/util-utf8": "^4.2.2",
38
+ "tslib": "^2.6.2"
39
+ },
40
+ "engines": {
41
+ "node": ">=18.0.0"
42
+ },
43
+ "typesVersions": {
44
+ "<4.5": {
45
+ "dist-types/*": [
46
+ "dist-types/ts3.4/*"
47
+ ]
48
+ }
49
+ },
50
+ "files": [
51
+ "dist-*/**"
52
+ ],
53
+ "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/hash-node",
54
+ "repository": {
55
+ "type": "git",
56
+ "url": "https://github.com/smithy-lang/smithy-typescript.git",
57
+ "directory": "packages/hash-node"
58
+ },
59
+ "typedoc": {
60
+ "entryPoint": "src/index.ts"
61
+ },
62
+ "publishConfig": {
63
+ "directory": ".release/package"
64
+ }
65
+ }
@@ -0,0 +1,67 @@
1
+ 'use strict';
2
+
3
+ var fs = require('fs');
4
+ var utilUtf8 = require('@smithy/util-utf8');
5
+ var stream = require('stream');
6
+
7
+ class HashCalculator extends stream.Writable {
8
+ hash;
9
+ constructor(hash, options) {
10
+ super(options);
11
+ this.hash = hash;
12
+ }
13
+ _write(chunk, encoding, callback) {
14
+ try {
15
+ this.hash.update(utilUtf8.toUint8Array(chunk));
16
+ }
17
+ catch (err) {
18
+ return callback(err);
19
+ }
20
+ callback();
21
+ }
22
+ }
23
+
24
+ const fileStreamHasher = (hashCtor, fileStream) => new Promise((resolve, reject) => {
25
+ if (!isReadStream(fileStream)) {
26
+ reject(new Error("Unable to calculate hash for non-file streams."));
27
+ return;
28
+ }
29
+ const fileStreamTee = fs.createReadStream(fileStream.path, {
30
+ start: fileStream.start,
31
+ end: fileStream.end,
32
+ });
33
+ const hash = new hashCtor();
34
+ const hashCalculator = new HashCalculator(hash);
35
+ fileStreamTee.pipe(hashCalculator);
36
+ fileStreamTee.on("error", (err) => {
37
+ hashCalculator.end();
38
+ reject(err);
39
+ });
40
+ hashCalculator.on("error", reject);
41
+ hashCalculator.on("finish", function () {
42
+ hash.digest().then(resolve).catch(reject);
43
+ });
44
+ });
45
+ const isReadStream = (stream) => typeof stream.path === "string";
46
+
47
+ const readableStreamHasher = (hashCtor, readableStream) => {
48
+ if (readableStream.readableFlowing !== null) {
49
+ throw new Error("Unable to calculate hash for flowing readable stream");
50
+ }
51
+ const hash = new hashCtor();
52
+ const hashCalculator = new HashCalculator(hash);
53
+ readableStream.pipe(hashCalculator);
54
+ return new Promise((resolve, reject) => {
55
+ readableStream.on("error", (err) => {
56
+ hashCalculator.end();
57
+ reject(err);
58
+ });
59
+ hashCalculator.on("error", reject);
60
+ hashCalculator.on("finish", () => {
61
+ hash.digest().then(resolve).catch(reject);
62
+ });
63
+ });
64
+ };
65
+
66
+ exports.fileStreamHasher = fileStreamHasher;
67
+ exports.readableStreamHasher = readableStreamHasher;