@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,388 @@
1
+ 'use strict';
2
+
3
+ var crc32 = require('@aws-crypto/crc32');
4
+ var utilHexEncoding = require('@smithy/util-hex-encoding');
5
+
6
+ class Int64 {
7
+ bytes;
8
+ constructor(bytes) {
9
+ this.bytes = bytes;
10
+ if (bytes.byteLength !== 8) {
11
+ throw new Error("Int64 buffers must be exactly 8 bytes");
12
+ }
13
+ }
14
+ static fromNumber(number) {
15
+ if (number > 9_223_372_036_854_775_807 || number < -9223372036854776e3) {
16
+ throw new Error(`${number} is too large (or, if negative, too small) to represent as an Int64`);
17
+ }
18
+ const bytes = new Uint8Array(8);
19
+ for (let i = 7, remaining = Math.abs(Math.round(number)); i > -1 && remaining > 0; i--, remaining /= 256) {
20
+ bytes[i] = remaining;
21
+ }
22
+ if (number < 0) {
23
+ negate(bytes);
24
+ }
25
+ return new Int64(bytes);
26
+ }
27
+ valueOf() {
28
+ const bytes = this.bytes.slice(0);
29
+ const negative = bytes[0] & 0b10000000;
30
+ if (negative) {
31
+ negate(bytes);
32
+ }
33
+ return parseInt(utilHexEncoding.toHex(bytes), 16) * (negative ? -1 : 1);
34
+ }
35
+ toString() {
36
+ return String(this.valueOf());
37
+ }
38
+ }
39
+ function negate(bytes) {
40
+ for (let i = 0; i < 8; i++) {
41
+ bytes[i] ^= 0xff;
42
+ }
43
+ for (let i = 7; i > -1; i--) {
44
+ bytes[i]++;
45
+ if (bytes[i] !== 0)
46
+ break;
47
+ }
48
+ }
49
+
50
+ class HeaderMarshaller {
51
+ toUtf8;
52
+ fromUtf8;
53
+ constructor(toUtf8, fromUtf8) {
54
+ this.toUtf8 = toUtf8;
55
+ this.fromUtf8 = fromUtf8;
56
+ }
57
+ format(headers) {
58
+ const chunks = [];
59
+ for (const headerName of Object.keys(headers)) {
60
+ const bytes = this.fromUtf8(headerName);
61
+ chunks.push(Uint8Array.from([bytes.byteLength]), bytes, this.formatHeaderValue(headers[headerName]));
62
+ }
63
+ const out = new Uint8Array(chunks.reduce((carry, bytes) => carry + bytes.byteLength, 0));
64
+ let position = 0;
65
+ for (const chunk of chunks) {
66
+ out.set(chunk, position);
67
+ position += chunk.byteLength;
68
+ }
69
+ return out;
70
+ }
71
+ formatHeaderValue(header) {
72
+ switch (header.type) {
73
+ case "boolean":
74
+ return Uint8Array.from([header.value ? 0 : 1]);
75
+ case "byte":
76
+ return Uint8Array.from([2, header.value]);
77
+ case "short":
78
+ const shortView = new DataView(new ArrayBuffer(3));
79
+ shortView.setUint8(0, 3);
80
+ shortView.setInt16(1, header.value, false);
81
+ return new Uint8Array(shortView.buffer);
82
+ case "integer":
83
+ const intView = new DataView(new ArrayBuffer(5));
84
+ intView.setUint8(0, 4);
85
+ intView.setInt32(1, header.value, false);
86
+ return new Uint8Array(intView.buffer);
87
+ case "long":
88
+ const longBytes = new Uint8Array(9);
89
+ longBytes[0] = 5;
90
+ longBytes.set(header.value.bytes, 1);
91
+ return longBytes;
92
+ case "binary":
93
+ const binView = new DataView(new ArrayBuffer(3 + header.value.byteLength));
94
+ binView.setUint8(0, 6);
95
+ binView.setUint16(1, header.value.byteLength, false);
96
+ const binBytes = new Uint8Array(binView.buffer);
97
+ binBytes.set(header.value, 3);
98
+ return binBytes;
99
+ case "string":
100
+ const utf8Bytes = this.fromUtf8(header.value);
101
+ const strView = new DataView(new ArrayBuffer(3 + utf8Bytes.byteLength));
102
+ strView.setUint8(0, 7);
103
+ strView.setUint16(1, utf8Bytes.byteLength, false);
104
+ const strBytes = new Uint8Array(strView.buffer);
105
+ strBytes.set(utf8Bytes, 3);
106
+ return strBytes;
107
+ case "timestamp":
108
+ const tsBytes = new Uint8Array(9);
109
+ tsBytes[0] = 8;
110
+ tsBytes.set(Int64.fromNumber(header.value.valueOf()).bytes, 1);
111
+ return tsBytes;
112
+ case "uuid":
113
+ if (!UUID_PATTERN.test(header.value)) {
114
+ throw new Error(`Invalid UUID received: ${header.value}`);
115
+ }
116
+ const uuidBytes = new Uint8Array(17);
117
+ uuidBytes[0] = 9;
118
+ uuidBytes.set(utilHexEncoding.fromHex(header.value.replace(/\-/g, "")), 1);
119
+ return uuidBytes;
120
+ }
121
+ }
122
+ parse(headers) {
123
+ const out = {};
124
+ let position = 0;
125
+ while (position < headers.byteLength) {
126
+ const nameLength = headers.getUint8(position++);
127
+ const name = this.toUtf8(new Uint8Array(headers.buffer, headers.byteOffset + position, nameLength));
128
+ position += nameLength;
129
+ switch (headers.getUint8(position++)) {
130
+ case 0:
131
+ out[name] = {
132
+ type: BOOLEAN_TAG,
133
+ value: true,
134
+ };
135
+ break;
136
+ case 1:
137
+ out[name] = {
138
+ type: BOOLEAN_TAG,
139
+ value: false,
140
+ };
141
+ break;
142
+ case 2:
143
+ out[name] = {
144
+ type: BYTE_TAG,
145
+ value: headers.getInt8(position++),
146
+ };
147
+ break;
148
+ case 3:
149
+ out[name] = {
150
+ type: SHORT_TAG,
151
+ value: headers.getInt16(position, false),
152
+ };
153
+ position += 2;
154
+ break;
155
+ case 4:
156
+ out[name] = {
157
+ type: INT_TAG,
158
+ value: headers.getInt32(position, false),
159
+ };
160
+ position += 4;
161
+ break;
162
+ case 5:
163
+ out[name] = {
164
+ type: LONG_TAG,
165
+ value: new Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8)),
166
+ };
167
+ position += 8;
168
+ break;
169
+ case 6:
170
+ const binaryLength = headers.getUint16(position, false);
171
+ position += 2;
172
+ out[name] = {
173
+ type: BINARY_TAG,
174
+ value: new Uint8Array(headers.buffer, headers.byteOffset + position, binaryLength),
175
+ };
176
+ position += binaryLength;
177
+ break;
178
+ case 7:
179
+ const stringLength = headers.getUint16(position, false);
180
+ position += 2;
181
+ out[name] = {
182
+ type: STRING_TAG,
183
+ value: this.toUtf8(new Uint8Array(headers.buffer, headers.byteOffset + position, stringLength)),
184
+ };
185
+ position += stringLength;
186
+ break;
187
+ case 8:
188
+ out[name] = {
189
+ type: TIMESTAMP_TAG,
190
+ value: new Date(new Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8)).valueOf()),
191
+ };
192
+ position += 8;
193
+ break;
194
+ case 9:
195
+ const uuidBytes = new Uint8Array(headers.buffer, headers.byteOffset + position, 16);
196
+ position += 16;
197
+ out[name] = {
198
+ type: UUID_TAG,
199
+ value: `${utilHexEncoding.toHex(uuidBytes.subarray(0, 4))}-${utilHexEncoding.toHex(uuidBytes.subarray(4, 6))}-${utilHexEncoding.toHex(uuidBytes.subarray(6, 8))}-${utilHexEncoding.toHex(uuidBytes.subarray(8, 10))}-${utilHexEncoding.toHex(uuidBytes.subarray(10))}`,
200
+ };
201
+ break;
202
+ default:
203
+ throw new Error(`Unrecognized header type tag`);
204
+ }
205
+ }
206
+ return out;
207
+ }
208
+ }
209
+ const BOOLEAN_TAG = "boolean";
210
+ const BYTE_TAG = "byte";
211
+ const SHORT_TAG = "short";
212
+ const INT_TAG = "integer";
213
+ const LONG_TAG = "long";
214
+ const BINARY_TAG = "binary";
215
+ const STRING_TAG = "string";
216
+ const TIMESTAMP_TAG = "timestamp";
217
+ const UUID_TAG = "uuid";
218
+ const UUID_PATTERN = /^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;
219
+
220
+ const PRELUDE_MEMBER_LENGTH = 4;
221
+ const PRELUDE_LENGTH = PRELUDE_MEMBER_LENGTH * 2;
222
+ const CHECKSUM_LENGTH = 4;
223
+ const MINIMUM_MESSAGE_LENGTH = PRELUDE_LENGTH + CHECKSUM_LENGTH * 2;
224
+ function splitMessage({ byteLength, byteOffset, buffer }) {
225
+ if (byteLength < MINIMUM_MESSAGE_LENGTH) {
226
+ throw new Error("Provided message too short to accommodate event stream message overhead");
227
+ }
228
+ const view = new DataView(buffer, byteOffset, byteLength);
229
+ const messageLength = view.getUint32(0, false);
230
+ if (byteLength !== messageLength) {
231
+ throw new Error("Reported message length does not match received message length");
232
+ }
233
+ const headerLength = view.getUint32(PRELUDE_MEMBER_LENGTH, false);
234
+ const expectedPreludeChecksum = view.getUint32(PRELUDE_LENGTH, false);
235
+ const expectedMessageChecksum = view.getUint32(byteLength - CHECKSUM_LENGTH, false);
236
+ const checksummer = new crc32.Crc32().update(new Uint8Array(buffer, byteOffset, PRELUDE_LENGTH));
237
+ if (expectedPreludeChecksum !== checksummer.digest()) {
238
+ throw new Error(`The prelude checksum specified in the message (${expectedPreludeChecksum}) does not match the calculated CRC32 checksum (${checksummer.digest()})`);
239
+ }
240
+ checksummer.update(new Uint8Array(buffer, byteOffset + PRELUDE_LENGTH, byteLength - (PRELUDE_LENGTH + CHECKSUM_LENGTH)));
241
+ if (expectedMessageChecksum !== checksummer.digest()) {
242
+ throw new Error(`The message checksum (${checksummer.digest()}) did not match the expected value of ${expectedMessageChecksum}`);
243
+ }
244
+ return {
245
+ headers: new DataView(buffer, byteOffset + PRELUDE_LENGTH + CHECKSUM_LENGTH, headerLength),
246
+ body: new Uint8Array(buffer, byteOffset + PRELUDE_LENGTH + CHECKSUM_LENGTH + headerLength, messageLength - headerLength - (PRELUDE_LENGTH + CHECKSUM_LENGTH + CHECKSUM_LENGTH)),
247
+ };
248
+ }
249
+
250
+ class EventStreamCodec {
251
+ headerMarshaller;
252
+ messageBuffer;
253
+ isEndOfStream;
254
+ constructor(toUtf8, fromUtf8) {
255
+ this.headerMarshaller = new HeaderMarshaller(toUtf8, fromUtf8);
256
+ this.messageBuffer = [];
257
+ this.isEndOfStream = false;
258
+ }
259
+ feed(message) {
260
+ this.messageBuffer.push(this.decode(message));
261
+ }
262
+ endOfStream() {
263
+ this.isEndOfStream = true;
264
+ }
265
+ getMessage() {
266
+ const message = this.messageBuffer.pop();
267
+ const isEndOfStream = this.isEndOfStream;
268
+ return {
269
+ getMessage() {
270
+ return message;
271
+ },
272
+ isEndOfStream() {
273
+ return isEndOfStream;
274
+ },
275
+ };
276
+ }
277
+ getAvailableMessages() {
278
+ const messages = this.messageBuffer;
279
+ this.messageBuffer = [];
280
+ const isEndOfStream = this.isEndOfStream;
281
+ return {
282
+ getMessages() {
283
+ return messages;
284
+ },
285
+ isEndOfStream() {
286
+ return isEndOfStream;
287
+ },
288
+ };
289
+ }
290
+ encode({ headers: rawHeaders, body }) {
291
+ const headers = this.headerMarshaller.format(rawHeaders);
292
+ const length = headers.byteLength + body.byteLength + 16;
293
+ const out = new Uint8Array(length);
294
+ const view = new DataView(out.buffer, out.byteOffset, out.byteLength);
295
+ const checksum = new crc32.Crc32();
296
+ view.setUint32(0, length, false);
297
+ view.setUint32(4, headers.byteLength, false);
298
+ view.setUint32(8, checksum.update(out.subarray(0, 8)).digest(), false);
299
+ out.set(headers, 12);
300
+ out.set(body, headers.byteLength + 12);
301
+ view.setUint32(length - 4, checksum.update(out.subarray(8, length - 4)).digest(), false);
302
+ return out;
303
+ }
304
+ decode(message) {
305
+ const { headers, body } = splitMessage(message);
306
+ return { headers: this.headerMarshaller.parse(headers), body };
307
+ }
308
+ formatHeaders(rawHeaders) {
309
+ return this.headerMarshaller.format(rawHeaders);
310
+ }
311
+ }
312
+
313
+ class MessageDecoderStream {
314
+ options;
315
+ constructor(options) {
316
+ this.options = options;
317
+ }
318
+ [Symbol.asyncIterator]() {
319
+ return this.asyncIterator();
320
+ }
321
+ async *asyncIterator() {
322
+ for await (const bytes of this.options.inputStream) {
323
+ const decoded = this.options.decoder.decode(bytes);
324
+ yield decoded;
325
+ }
326
+ }
327
+ }
328
+
329
+ class MessageEncoderStream {
330
+ options;
331
+ constructor(options) {
332
+ this.options = options;
333
+ }
334
+ [Symbol.asyncIterator]() {
335
+ return this.asyncIterator();
336
+ }
337
+ async *asyncIterator() {
338
+ for await (const msg of this.options.messageStream) {
339
+ const encoded = this.options.encoder.encode(msg);
340
+ yield encoded;
341
+ }
342
+ if (this.options.includeEndFrame) {
343
+ yield new Uint8Array(0);
344
+ }
345
+ }
346
+ }
347
+
348
+ class SmithyMessageDecoderStream {
349
+ options;
350
+ constructor(options) {
351
+ this.options = options;
352
+ }
353
+ [Symbol.asyncIterator]() {
354
+ return this.asyncIterator();
355
+ }
356
+ async *asyncIterator() {
357
+ for await (const message of this.options.messageStream) {
358
+ const deserialized = await this.options.deserializer(message);
359
+ if (deserialized === undefined)
360
+ continue;
361
+ yield deserialized;
362
+ }
363
+ }
364
+ }
365
+
366
+ class SmithyMessageEncoderStream {
367
+ options;
368
+ constructor(options) {
369
+ this.options = options;
370
+ }
371
+ [Symbol.asyncIterator]() {
372
+ return this.asyncIterator();
373
+ }
374
+ async *asyncIterator() {
375
+ for await (const chunk of this.options.inputStream) {
376
+ const payloadBuf = this.options.serializer(chunk);
377
+ yield payloadBuf;
378
+ }
379
+ }
380
+ }
381
+
382
+ exports.EventStreamCodec = EventStreamCodec;
383
+ exports.HeaderMarshaller = HeaderMarshaller;
384
+ exports.Int64 = Int64;
385
+ exports.MessageDecoderStream = MessageDecoderStream;
386
+ exports.MessageEncoderStream = MessageEncoderStream;
387
+ exports.SmithyMessageDecoderStream = SmithyMessageDecoderStream;
388
+ exports.SmithyMessageEncoderStream = SmithyMessageEncoderStream;
@@ -0,0 +1,65 @@
1
+ {
2
+ "name": "@smithy/eventstream-codec",
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-codec",
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
+ "dependencies": {
27
+ "@aws-crypto/crc32": "5.2.0",
28
+ "@smithy/types": "^4.13.1",
29
+ "@smithy/util-hex-encoding": "^4.2.2",
30
+ "tslib": "^2.6.2"
31
+ },
32
+ "devDependencies": {
33
+ "@smithy/util-utf8": "^4.2.2",
34
+ "@types/node": "^18.11.9",
35
+ "concurrently": "7.0.0",
36
+ "downlevel-dts": "0.10.1",
37
+ "premove": "4.0.0",
38
+ "typedoc": "0.23.23"
39
+ },
40
+ "typesVersions": {
41
+ "<4.5": {
42
+ "dist-types/*": [
43
+ "dist-types/ts3.4/*"
44
+ ]
45
+ }
46
+ },
47
+ "files": [
48
+ "dist-*/**"
49
+ ],
50
+ "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/eventstream-codec",
51
+ "repository": {
52
+ "type": "git",
53
+ "url": "https://github.com/smithy-lang/smithy-typescript.git",
54
+ "directory": "packages/eventstream-codec"
55
+ },
56
+ "typedoc": {
57
+ "entryPoint": "src/index.ts"
58
+ },
59
+ "publishConfig": {
60
+ "directory": ".release/package"
61
+ },
62
+ "engines": {
63
+ "node": ">=18.0.0"
64
+ }
65
+ }
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ const resolveEventStreamSerdeConfig = (input) => Object.assign(input, {
4
+ eventStreamMarshaller: input.eventStreamSerdeProvider(input),
5
+ });
6
+
7
+ exports.resolveEventStreamSerdeConfig = resolveEventStreamSerdeConfig;
@@ -0,0 +1,62 @@
1
+ {
2
+ "name": "@smithy/eventstream-serde-config-resolver",
3
+ "version": "4.3.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-config-resolver",
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
+ "extract:docs": "api-extractor run --local",
16
+ "test:watch": "yarn g:vitest watch"
17
+ },
18
+ "main": "./dist-cjs/index.js",
19
+ "module": "./dist-es/index.js",
20
+ "types": "./dist-types/index.d.ts",
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
+ "dependencies": {
28
+ "@smithy/types": "^4.13.1",
29
+ "tslib": "^2.6.2"
30
+ },
31
+ "engines": {
32
+ "node": ">=18.0.0"
33
+ },
34
+ "typesVersions": {
35
+ "<4.5": {
36
+ "dist-types/*": [
37
+ "dist-types/ts3.4/*"
38
+ ]
39
+ }
40
+ },
41
+ "files": [
42
+ "dist-*/**"
43
+ ],
44
+ "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/eventstream-serde-config-resolver",
45
+ "repository": {
46
+ "type": "git",
47
+ "url": "https://github.com/smithy-lang/smithy-typescript.git",
48
+ "directory": "packages/eventstream-serde-config-resolver"
49
+ },
50
+ "devDependencies": {
51
+ "concurrently": "7.0.0",
52
+ "downlevel-dts": "0.10.1",
53
+ "premove": "4.0.0",
54
+ "typedoc": "0.23.23"
55
+ },
56
+ "typedoc": {
57
+ "entryPoint": "src/index.ts"
58
+ },
59
+ "publishConfig": {
60
+ "directory": ".release/package"
61
+ }
62
+ }
@@ -0,0 +1,53 @@
1
+ 'use strict';
2
+
3
+ var eventstreamSerdeUniversal = require('@smithy/eventstream-serde-universal');
4
+ var stream = require('stream');
5
+
6
+ async function* readabletoIterable(readStream) {
7
+ let streamEnded = false;
8
+ let generationEnded = false;
9
+ const records = new Array();
10
+ readStream.on("error", (err) => {
11
+ if (!streamEnded) {
12
+ streamEnded = true;
13
+ }
14
+ if (err) {
15
+ throw err;
16
+ }
17
+ });
18
+ readStream.on("data", (data) => {
19
+ records.push(data);
20
+ });
21
+ readStream.on("end", () => {
22
+ streamEnded = true;
23
+ });
24
+ while (!generationEnded) {
25
+ const value = await new Promise((resolve) => setTimeout(() => resolve(records.shift()), 0));
26
+ if (value) {
27
+ yield value;
28
+ }
29
+ generationEnded = streamEnded && records.length === 0;
30
+ }
31
+ }
32
+
33
+ class EventStreamMarshaller {
34
+ universalMarshaller;
35
+ constructor({ utf8Encoder, utf8Decoder }) {
36
+ this.universalMarshaller = new eventstreamSerdeUniversal.EventStreamMarshaller({
37
+ utf8Decoder,
38
+ utf8Encoder,
39
+ });
40
+ }
41
+ deserialize(body, deserializer) {
42
+ const bodyIterable = typeof body[Symbol.asyncIterator] === "function" ? body : readabletoIterable(body);
43
+ return this.universalMarshaller.deserialize(bodyIterable, deserializer);
44
+ }
45
+ serialize(input, serializer) {
46
+ return stream.Readable.from(this.universalMarshaller.serialize(input, serializer));
47
+ }
48
+ }
49
+
50
+ const eventStreamSerdeProvider = (options) => new EventStreamMarshaller(options);
51
+
52
+ exports.EventStreamMarshaller = EventStreamMarshaller;
53
+ exports.eventStreamSerdeProvider = eventStreamSerdeProvider;
@@ -0,0 +1,62 @@
1
+ {
2
+ "name": "@smithy/eventstream-serde-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 eventstream-serde-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": "exit 0"
15
+ },
16
+ "main": "./dist-cjs/index.js",
17
+ "module": "./dist-es/index.js",
18
+ "types": "./dist-types/index.d.ts",
19
+ "author": {
20
+ "name": "AWS SDK for JavaScript Team",
21
+ "url": "https://aws.amazon.com/javascript/"
22
+ },
23
+ "license": "Apache-2.0",
24
+ "sideEffects": false,
25
+ "dependencies": {
26
+ "@smithy/eventstream-serde-universal": "^4.2.12",
27
+ "@smithy/types": "^4.13.1",
28
+ "tslib": "^2.6.2"
29
+ },
30
+ "devDependencies": {
31
+ "@types/node": "^18.11.9",
32
+ "concurrently": "7.0.0",
33
+ "downlevel-dts": "0.10.1",
34
+ "premove": "4.0.0",
35
+ "typedoc": "0.23.23"
36
+ },
37
+ "engines": {
38
+ "node": ">=18.0.0"
39
+ },
40
+ "typesVersions": {
41
+ "<4.5": {
42
+ "dist-types/*": [
43
+ "dist-types/ts3.4/*"
44
+ ]
45
+ }
46
+ },
47
+ "files": [
48
+ "dist-*/**"
49
+ ],
50
+ "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/eventstream-serde-node",
51
+ "repository": {
52
+ "type": "git",
53
+ "url": "https://github.com/smithy-lang/smithy-typescript.git",
54
+ "directory": "packages/eventstream-serde-node"
55
+ },
56
+ "typedoc": {
57
+ "entryPoint": "src/index.ts"
58
+ },
59
+ "publishConfig": {
60
+ "directory": ".release/package"
61
+ }
62
+ }