@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,698 @@
1
+ 'use strict';
2
+
3
+ var protocolHttp = require('@smithy/protocol-http');
4
+ var utilMiddleware = require('@smithy/util-middleware');
5
+ var endpoints = require('@smithy/core/endpoints');
6
+
7
+ const deref = (schemaRef) => {
8
+ if (typeof schemaRef === "function") {
9
+ return schemaRef();
10
+ }
11
+ return schemaRef;
12
+ };
13
+
14
+ const operation = (namespace, name, traits, input, output) => ({
15
+ name,
16
+ namespace,
17
+ traits,
18
+ input,
19
+ output,
20
+ });
21
+
22
+ const schemaDeserializationMiddleware = (config) => (next, context) => async (args) => {
23
+ const { response } = await next(args);
24
+ const { operationSchema } = utilMiddleware.getSmithyContext(context);
25
+ const [, ns, n, t, i, o] = operationSchema ?? [];
26
+ try {
27
+ const parsed = await config.protocol.deserializeResponse(operation(ns, n, t, i, o), {
28
+ ...config,
29
+ ...context,
30
+ }, response);
31
+ return {
32
+ response,
33
+ output: parsed,
34
+ };
35
+ }
36
+ catch (error) {
37
+ Object.defineProperty(error, "$response", {
38
+ value: response,
39
+ enumerable: false,
40
+ writable: false,
41
+ configurable: false,
42
+ });
43
+ if (!("$metadata" in error)) {
44
+ const hint = `Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;
45
+ try {
46
+ error.message += "\n " + hint;
47
+ }
48
+ catch (e) {
49
+ if (!context.logger || context.logger?.constructor?.name === "NoOpLogger") {
50
+ console.warn(hint);
51
+ }
52
+ else {
53
+ context.logger?.warn?.(hint);
54
+ }
55
+ }
56
+ if (typeof error.$responseBodyText !== "undefined") {
57
+ if (error.$response) {
58
+ error.$response.body = error.$responseBodyText;
59
+ }
60
+ }
61
+ try {
62
+ if (protocolHttp.HttpResponse.isInstance(response)) {
63
+ const { headers = {} } = response;
64
+ const headerEntries = Object.entries(headers);
65
+ error.$metadata = {
66
+ httpStatusCode: response.statusCode,
67
+ requestId: findHeader(/^x-[\w-]+-request-?id$/, headerEntries),
68
+ extendedRequestId: findHeader(/^x-[\w-]+-id-2$/, headerEntries),
69
+ cfId: findHeader(/^x-[\w-]+-cf-id$/, headerEntries),
70
+ };
71
+ }
72
+ }
73
+ catch (e) {
74
+ }
75
+ }
76
+ throw error;
77
+ }
78
+ };
79
+ const findHeader = (pattern, headers) => {
80
+ return (headers.find(([k]) => {
81
+ return k.match(pattern);
82
+ }) || [void 0, void 0])[1];
83
+ };
84
+
85
+ const schemaSerializationMiddleware = (config) => (next, context) => async (args) => {
86
+ const { operationSchema } = utilMiddleware.getSmithyContext(context);
87
+ const [, ns, n, t, i, o] = operationSchema ?? [];
88
+ const endpoint = context.endpointV2
89
+ ? async () => endpoints.toEndpointV1(context.endpointV2)
90
+ : config.endpoint;
91
+ const request = await config.protocol.serializeRequest(operation(ns, n, t, i, o), args.input, {
92
+ ...config,
93
+ ...context,
94
+ endpoint,
95
+ });
96
+ return next({
97
+ ...args,
98
+ request,
99
+ });
100
+ };
101
+
102
+ const deserializerMiddlewareOption = {
103
+ name: "deserializerMiddleware",
104
+ step: "deserialize",
105
+ tags: ["DESERIALIZER"],
106
+ override: true,
107
+ };
108
+ const serializerMiddlewareOption = {
109
+ name: "serializerMiddleware",
110
+ step: "serialize",
111
+ tags: ["SERIALIZER"],
112
+ override: true,
113
+ };
114
+ function getSchemaSerdePlugin(config) {
115
+ return {
116
+ applyToStack: (commandStack) => {
117
+ commandStack.add(schemaSerializationMiddleware(config), serializerMiddlewareOption);
118
+ commandStack.add(schemaDeserializationMiddleware(config), deserializerMiddlewareOption);
119
+ config.protocol.setSerdeContext(config);
120
+ },
121
+ };
122
+ }
123
+
124
+ class Schema {
125
+ name;
126
+ namespace;
127
+ traits;
128
+ static assign(instance, values) {
129
+ const schema = Object.assign(instance, values);
130
+ return schema;
131
+ }
132
+ static [Symbol.hasInstance](lhs) {
133
+ const isPrototype = this.prototype.isPrototypeOf(lhs);
134
+ if (!isPrototype && typeof lhs === "object" && lhs !== null) {
135
+ const list = lhs;
136
+ return list.symbol === this.symbol;
137
+ }
138
+ return isPrototype;
139
+ }
140
+ getName() {
141
+ return this.namespace + "#" + this.name;
142
+ }
143
+ }
144
+
145
+ class ListSchema extends Schema {
146
+ static symbol = Symbol.for("@smithy/lis");
147
+ name;
148
+ traits;
149
+ valueSchema;
150
+ symbol = ListSchema.symbol;
151
+ }
152
+ const list = (namespace, name, traits, valueSchema) => Schema.assign(new ListSchema(), {
153
+ name,
154
+ namespace,
155
+ traits,
156
+ valueSchema,
157
+ });
158
+
159
+ class MapSchema extends Schema {
160
+ static symbol = Symbol.for("@smithy/map");
161
+ name;
162
+ traits;
163
+ keySchema;
164
+ valueSchema;
165
+ symbol = MapSchema.symbol;
166
+ }
167
+ const map = (namespace, name, traits, keySchema, valueSchema) => Schema.assign(new MapSchema(), {
168
+ name,
169
+ namespace,
170
+ traits,
171
+ keySchema,
172
+ valueSchema,
173
+ });
174
+
175
+ class OperationSchema extends Schema {
176
+ static symbol = Symbol.for("@smithy/ope");
177
+ name;
178
+ traits;
179
+ input;
180
+ output;
181
+ symbol = OperationSchema.symbol;
182
+ }
183
+ const op = (namespace, name, traits, input, output) => Schema.assign(new OperationSchema(), {
184
+ name,
185
+ namespace,
186
+ traits,
187
+ input,
188
+ output,
189
+ });
190
+
191
+ class StructureSchema extends Schema {
192
+ static symbol = Symbol.for("@smithy/str");
193
+ name;
194
+ traits;
195
+ memberNames;
196
+ memberList;
197
+ symbol = StructureSchema.symbol;
198
+ }
199
+ const struct = (namespace, name, traits, memberNames, memberList) => Schema.assign(new StructureSchema(), {
200
+ name,
201
+ namespace,
202
+ traits,
203
+ memberNames,
204
+ memberList,
205
+ });
206
+
207
+ class ErrorSchema extends StructureSchema {
208
+ static symbol = Symbol.for("@smithy/err");
209
+ ctor;
210
+ symbol = ErrorSchema.symbol;
211
+ }
212
+ const error = (namespace, name, traits, memberNames, memberList, ctor) => Schema.assign(new ErrorSchema(), {
213
+ name,
214
+ namespace,
215
+ traits,
216
+ memberNames,
217
+ memberList,
218
+ ctor: null,
219
+ });
220
+
221
+ const traitsCache = [];
222
+ function translateTraits(indicator) {
223
+ if (typeof indicator === "object") {
224
+ return indicator;
225
+ }
226
+ indicator = indicator | 0;
227
+ if (traitsCache[indicator]) {
228
+ return traitsCache[indicator];
229
+ }
230
+ const traits = {};
231
+ let i = 0;
232
+ for (const trait of [
233
+ "httpLabel",
234
+ "idempotent",
235
+ "idempotencyToken",
236
+ "sensitive",
237
+ "httpPayload",
238
+ "httpResponseCode",
239
+ "httpQueryParams",
240
+ ]) {
241
+ if (((indicator >> i++) & 1) === 1) {
242
+ traits[trait] = 1;
243
+ }
244
+ }
245
+ return (traitsCache[indicator] = traits);
246
+ }
247
+
248
+ const anno = {
249
+ it: Symbol.for("@smithy/nor-struct-it"),
250
+ ns: Symbol.for("@smithy/ns"),
251
+ };
252
+ const simpleSchemaCacheN = [];
253
+ const simpleSchemaCacheS = {};
254
+ class NormalizedSchema {
255
+ ref;
256
+ memberName;
257
+ static symbol = Symbol.for("@smithy/nor");
258
+ symbol = NormalizedSchema.symbol;
259
+ name;
260
+ schema;
261
+ _isMemberSchema;
262
+ traits;
263
+ memberTraits;
264
+ normalizedTraits;
265
+ constructor(ref, memberName) {
266
+ this.ref = ref;
267
+ this.memberName = memberName;
268
+ const traitStack = [];
269
+ let _ref = ref;
270
+ let schema = ref;
271
+ this._isMemberSchema = false;
272
+ while (isMemberSchema(_ref)) {
273
+ traitStack.push(_ref[1]);
274
+ _ref = _ref[0];
275
+ schema = deref(_ref);
276
+ this._isMemberSchema = true;
277
+ }
278
+ if (traitStack.length > 0) {
279
+ this.memberTraits = {};
280
+ for (let i = traitStack.length - 1; i >= 0; --i) {
281
+ const traitSet = traitStack[i];
282
+ Object.assign(this.memberTraits, translateTraits(traitSet));
283
+ }
284
+ }
285
+ else {
286
+ this.memberTraits = 0;
287
+ }
288
+ if (schema instanceof NormalizedSchema) {
289
+ const computedMemberTraits = this.memberTraits;
290
+ Object.assign(this, schema);
291
+ this.memberTraits = Object.assign({}, computedMemberTraits, schema.getMemberTraits(), this.getMemberTraits());
292
+ this.normalizedTraits = void 0;
293
+ this.memberName = memberName ?? schema.memberName;
294
+ return;
295
+ }
296
+ this.schema = deref(schema);
297
+ if (isStaticSchema(this.schema)) {
298
+ this.name = `${this.schema[1]}#${this.schema[2]}`;
299
+ this.traits = this.schema[3];
300
+ }
301
+ else {
302
+ this.name = this.memberName ?? String(schema);
303
+ this.traits = 0;
304
+ }
305
+ if (this._isMemberSchema && !memberName) {
306
+ throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(true)} missing member name.`);
307
+ }
308
+ }
309
+ static [Symbol.hasInstance](lhs) {
310
+ const isPrototype = this.prototype.isPrototypeOf(lhs);
311
+ if (!isPrototype && typeof lhs === "object" && lhs !== null) {
312
+ const ns = lhs;
313
+ return ns.symbol === this.symbol;
314
+ }
315
+ return isPrototype;
316
+ }
317
+ static of(ref) {
318
+ const keyAble = typeof ref === "function" || (typeof ref === "object" && ref !== null);
319
+ if (typeof ref === "number") {
320
+ if (simpleSchemaCacheN[ref]) {
321
+ return simpleSchemaCacheN[ref];
322
+ }
323
+ }
324
+ else if (typeof ref === "string") {
325
+ if (simpleSchemaCacheS[ref]) {
326
+ return simpleSchemaCacheS[ref];
327
+ }
328
+ }
329
+ else if (keyAble) {
330
+ if (ref[anno.ns]) {
331
+ return ref[anno.ns];
332
+ }
333
+ }
334
+ const sc = deref(ref);
335
+ if (sc instanceof NormalizedSchema) {
336
+ return sc;
337
+ }
338
+ if (isMemberSchema(sc)) {
339
+ const [ns, traits] = sc;
340
+ if (ns instanceof NormalizedSchema) {
341
+ Object.assign(ns.getMergedTraits(), translateTraits(traits));
342
+ return ns;
343
+ }
344
+ throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(ref, null, 2)}.`);
345
+ }
346
+ const ns = new NormalizedSchema(sc);
347
+ if (keyAble) {
348
+ return (ref[anno.ns] = ns);
349
+ }
350
+ if (typeof sc === "string") {
351
+ return (simpleSchemaCacheS[sc] = ns);
352
+ }
353
+ if (typeof sc === "number") {
354
+ return (simpleSchemaCacheN[sc] = ns);
355
+ }
356
+ return ns;
357
+ }
358
+ getSchema() {
359
+ const sc = this.schema;
360
+ if (Array.isArray(sc) && sc[0] === 0) {
361
+ return sc[4];
362
+ }
363
+ return sc;
364
+ }
365
+ getName(withNamespace = false) {
366
+ const { name } = this;
367
+ const short = !withNamespace && name && name.includes("#");
368
+ return short ? name.split("#")[1] : name || undefined;
369
+ }
370
+ getMemberName() {
371
+ return this.memberName;
372
+ }
373
+ isMemberSchema() {
374
+ return this._isMemberSchema;
375
+ }
376
+ isListSchema() {
377
+ const sc = this.getSchema();
378
+ return typeof sc === "number"
379
+ ? sc >= 64 && sc < 128
380
+ : sc[0] === 1;
381
+ }
382
+ isMapSchema() {
383
+ const sc = this.getSchema();
384
+ return typeof sc === "number"
385
+ ? sc >= 128 && sc <= 0b1111_1111
386
+ : sc[0] === 2;
387
+ }
388
+ isStructSchema() {
389
+ const sc = this.getSchema();
390
+ if (typeof sc !== "object") {
391
+ return false;
392
+ }
393
+ const id = sc[0];
394
+ return (id === 3 ||
395
+ id === -3 ||
396
+ id === 4);
397
+ }
398
+ isUnionSchema() {
399
+ const sc = this.getSchema();
400
+ if (typeof sc !== "object") {
401
+ return false;
402
+ }
403
+ return sc[0] === 4;
404
+ }
405
+ isBlobSchema() {
406
+ const sc = this.getSchema();
407
+ return sc === 21 || sc === 42;
408
+ }
409
+ isTimestampSchema() {
410
+ const sc = this.getSchema();
411
+ return (typeof sc === "number" &&
412
+ sc >= 4 &&
413
+ sc <= 7);
414
+ }
415
+ isUnitSchema() {
416
+ return this.getSchema() === "unit";
417
+ }
418
+ isDocumentSchema() {
419
+ return this.getSchema() === 15;
420
+ }
421
+ isStringSchema() {
422
+ return this.getSchema() === 0;
423
+ }
424
+ isBooleanSchema() {
425
+ return this.getSchema() === 2;
426
+ }
427
+ isNumericSchema() {
428
+ return this.getSchema() === 1;
429
+ }
430
+ isBigIntegerSchema() {
431
+ return this.getSchema() === 17;
432
+ }
433
+ isBigDecimalSchema() {
434
+ return this.getSchema() === 19;
435
+ }
436
+ isStreaming() {
437
+ const { streaming } = this.getMergedTraits();
438
+ return !!streaming || this.getSchema() === 42;
439
+ }
440
+ isIdempotencyToken() {
441
+ return !!this.getMergedTraits().idempotencyToken;
442
+ }
443
+ getMergedTraits() {
444
+ return (this.normalizedTraits ??
445
+ (this.normalizedTraits = {
446
+ ...this.getOwnTraits(),
447
+ ...this.getMemberTraits(),
448
+ }));
449
+ }
450
+ getMemberTraits() {
451
+ return translateTraits(this.memberTraits);
452
+ }
453
+ getOwnTraits() {
454
+ return translateTraits(this.traits);
455
+ }
456
+ getKeySchema() {
457
+ const [isDoc, isMap] = [this.isDocumentSchema(), this.isMapSchema()];
458
+ if (!isDoc && !isMap) {
459
+ throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(true)}`);
460
+ }
461
+ const schema = this.getSchema();
462
+ const memberSchema = isDoc
463
+ ? 15
464
+ : schema[4] ?? 0;
465
+ return member([memberSchema, 0], "key");
466
+ }
467
+ getValueSchema() {
468
+ const sc = this.getSchema();
469
+ const [isDoc, isMap, isList] = [this.isDocumentSchema(), this.isMapSchema(), this.isListSchema()];
470
+ const memberSchema = typeof sc === "number"
471
+ ? 0b0011_1111 & sc
472
+ : sc && typeof sc === "object" && (isMap || isList)
473
+ ? sc[3 + sc[0]]
474
+ : isDoc
475
+ ? 15
476
+ : void 0;
477
+ if (memberSchema != null) {
478
+ return member([memberSchema, 0], isMap ? "value" : "member");
479
+ }
480
+ throw new Error(`@smithy/core/schema - ${this.getName(true)} has no value member.`);
481
+ }
482
+ getMemberSchema(memberName) {
483
+ const struct = this.getSchema();
484
+ if (this.isStructSchema() && struct[4].includes(memberName)) {
485
+ const i = struct[4].indexOf(memberName);
486
+ const memberSchema = struct[5][i];
487
+ return member(isMemberSchema(memberSchema) ? memberSchema : [memberSchema, 0], memberName);
488
+ }
489
+ if (this.isDocumentSchema()) {
490
+ return member([15, 0], memberName);
491
+ }
492
+ throw new Error(`@smithy/core/schema - ${this.getName(true)} has no member=${memberName}.`);
493
+ }
494
+ getMemberSchemas() {
495
+ const buffer = {};
496
+ try {
497
+ for (const [k, v] of this.structIterator()) {
498
+ buffer[k] = v;
499
+ }
500
+ }
501
+ catch (ignored) { }
502
+ return buffer;
503
+ }
504
+ getEventStreamMember() {
505
+ if (this.isStructSchema()) {
506
+ for (const [memberName, memberSchema] of this.structIterator()) {
507
+ if (memberSchema.isStreaming() && memberSchema.isStructSchema()) {
508
+ return memberName;
509
+ }
510
+ }
511
+ }
512
+ return "";
513
+ }
514
+ *structIterator() {
515
+ if (this.isUnitSchema()) {
516
+ return;
517
+ }
518
+ if (!this.isStructSchema()) {
519
+ throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");
520
+ }
521
+ const struct = this.getSchema();
522
+ const z = struct[4].length;
523
+ let it = struct[anno.it];
524
+ if (it && z === it.length) {
525
+ yield* it;
526
+ return;
527
+ }
528
+ it = Array(z);
529
+ for (let i = 0; i < z; ++i) {
530
+ const k = struct[4][i];
531
+ const v = member([struct[5][i], 0], k);
532
+ yield (it[i] = [k, v]);
533
+ }
534
+ struct[anno.it] = it;
535
+ }
536
+ }
537
+ function member(memberSchema, memberName) {
538
+ if (memberSchema instanceof NormalizedSchema) {
539
+ return Object.assign(memberSchema, {
540
+ memberName,
541
+ _isMemberSchema: true,
542
+ });
543
+ }
544
+ const internalCtorAccess = NormalizedSchema;
545
+ return new internalCtorAccess(memberSchema, memberName);
546
+ }
547
+ const isMemberSchema = (sc) => Array.isArray(sc) && sc.length === 2;
548
+ const isStaticSchema = (sc) => Array.isArray(sc) && sc.length >= 5;
549
+
550
+ class SimpleSchema extends Schema {
551
+ static symbol = Symbol.for("@smithy/sim");
552
+ name;
553
+ schemaRef;
554
+ traits;
555
+ symbol = SimpleSchema.symbol;
556
+ }
557
+ const sim = (namespace, name, schemaRef, traits) => Schema.assign(new SimpleSchema(), {
558
+ name,
559
+ namespace,
560
+ traits,
561
+ schemaRef,
562
+ });
563
+ const simAdapter = (namespace, name, traits, schemaRef) => Schema.assign(new SimpleSchema(), {
564
+ name,
565
+ namespace,
566
+ traits,
567
+ schemaRef,
568
+ });
569
+
570
+ const SCHEMA = {
571
+ BLOB: 0b0001_0101,
572
+ STREAMING_BLOB: 0b0010_1010,
573
+ BOOLEAN: 0b0000_0010,
574
+ STRING: 0b0000_0000,
575
+ NUMERIC: 0b0000_0001,
576
+ BIG_INTEGER: 0b0001_0001,
577
+ BIG_DECIMAL: 0b0001_0011,
578
+ DOCUMENT: 0b0000_1111,
579
+ TIMESTAMP_DEFAULT: 0b0000_0100,
580
+ TIMESTAMP_DATE_TIME: 0b0000_0101,
581
+ TIMESTAMP_HTTP_DATE: 0b0000_0110,
582
+ TIMESTAMP_EPOCH_SECONDS: 0b0000_0111,
583
+ LIST_MODIFIER: 0b0100_0000,
584
+ MAP_MODIFIER: 0b1000_0000,
585
+ };
586
+
587
+ class TypeRegistry {
588
+ namespace;
589
+ schemas;
590
+ exceptions;
591
+ static registries = new Map();
592
+ constructor(namespace, schemas = new Map(), exceptions = new Map()) {
593
+ this.namespace = namespace;
594
+ this.schemas = schemas;
595
+ this.exceptions = exceptions;
596
+ }
597
+ static for(namespace) {
598
+ if (!TypeRegistry.registries.has(namespace)) {
599
+ TypeRegistry.registries.set(namespace, new TypeRegistry(namespace));
600
+ }
601
+ return TypeRegistry.registries.get(namespace);
602
+ }
603
+ copyFrom(other) {
604
+ const { schemas, exceptions } = this;
605
+ for (const [k, v] of other.schemas) {
606
+ if (!schemas.has(k)) {
607
+ schemas.set(k, v);
608
+ }
609
+ }
610
+ for (const [k, v] of other.exceptions) {
611
+ if (!exceptions.has(k)) {
612
+ exceptions.set(k, v);
613
+ }
614
+ }
615
+ }
616
+ register(shapeId, schema) {
617
+ const qualifiedName = this.normalizeShapeId(shapeId);
618
+ for (const r of [this, TypeRegistry.for(qualifiedName.split("#")[0])]) {
619
+ r.schemas.set(qualifiedName, schema);
620
+ }
621
+ }
622
+ getSchema(shapeId) {
623
+ const id = this.normalizeShapeId(shapeId);
624
+ if (!this.schemas.has(id)) {
625
+ throw new Error(`@smithy/core/schema - schema not found for ${id}`);
626
+ }
627
+ return this.schemas.get(id);
628
+ }
629
+ registerError(es, ctor) {
630
+ const $error = es;
631
+ const ns = $error[1];
632
+ for (const r of [this, TypeRegistry.for(ns)]) {
633
+ r.schemas.set(ns + "#" + $error[2], $error);
634
+ r.exceptions.set($error, ctor);
635
+ }
636
+ }
637
+ getErrorCtor(es) {
638
+ const $error = es;
639
+ if (this.exceptions.has($error)) {
640
+ return this.exceptions.get($error);
641
+ }
642
+ const registry = TypeRegistry.for($error[1]);
643
+ return registry.exceptions.get($error);
644
+ }
645
+ getBaseException() {
646
+ for (const exceptionKey of this.exceptions.keys()) {
647
+ if (Array.isArray(exceptionKey)) {
648
+ const [, ns, name] = exceptionKey;
649
+ const id = ns + "#" + name;
650
+ if (id.startsWith("smithy.ts.sdk.synthetic.") && id.endsWith("ServiceException")) {
651
+ return exceptionKey;
652
+ }
653
+ }
654
+ }
655
+ return undefined;
656
+ }
657
+ find(predicate) {
658
+ return [...this.schemas.values()].find(predicate);
659
+ }
660
+ clear() {
661
+ this.schemas.clear();
662
+ this.exceptions.clear();
663
+ }
664
+ normalizeShapeId(shapeId) {
665
+ if (shapeId.includes("#")) {
666
+ return shapeId;
667
+ }
668
+ return this.namespace + "#" + shapeId;
669
+ }
670
+ }
671
+
672
+ exports.ErrorSchema = ErrorSchema;
673
+ exports.ListSchema = ListSchema;
674
+ exports.MapSchema = MapSchema;
675
+ exports.NormalizedSchema = NormalizedSchema;
676
+ exports.OperationSchema = OperationSchema;
677
+ exports.SCHEMA = SCHEMA;
678
+ exports.Schema = Schema;
679
+ exports.SimpleSchema = SimpleSchema;
680
+ exports.StructureSchema = StructureSchema;
681
+ exports.TypeRegistry = TypeRegistry;
682
+ exports.deref = deref;
683
+ exports.deserializerMiddlewareOption = deserializerMiddlewareOption;
684
+ exports.error = error;
685
+ exports.getSchemaSerdePlugin = getSchemaSerdePlugin;
686
+ exports.isStaticSchema = isStaticSchema;
687
+ exports.list = list;
688
+ exports.map = map;
689
+ exports.op = op;
690
+ exports.operation = operation;
691
+ exports.serializerMiddlewareOption = serializerMiddlewareOption;
692
+ exports.sim = sim;
693
+ exports.simAdapter = simAdapter;
694
+ exports.simpleSchemaCacheN = simpleSchemaCacheN;
695
+ exports.simpleSchemaCacheS = simpleSchemaCacheS;
696
+ exports.struct = struct;
697
+ exports.traitsCache = traitsCache;
698
+ exports.translateTraits = translateTraits;