@aws-amplify/interactions 6.0.1-unstable.cfbde4c.0 → 6.0.1

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 (237) hide show
  1. package/{lib → dist/cjs}/errors/InteractionsError.js +3 -1
  2. package/dist/cjs/errors/InteractionsError.js.map +1 -0
  3. package/{lib → dist/cjs}/errors/assertValidationError.js +3 -1
  4. package/dist/cjs/errors/assertValidationError.js.map +1 -0
  5. package/{lib → dist/cjs}/errors/index.js +3 -1
  6. package/dist/cjs/errors/index.js.map +1 -0
  7. package/{lib → dist/cjs}/errors/validation.js +4 -2
  8. package/dist/cjs/errors/validation.js.map +1 -0
  9. package/{lib → dist/cjs}/index.js +3 -1
  10. package/dist/cjs/index.js.map +1 -0
  11. package/{lib → dist/cjs}/lex-v1/AWSLexProvider.js +3 -3
  12. package/dist/cjs/lex-v1/AWSLexProvider.js.map +1 -0
  13. package/{lib → dist/cjs}/lex-v1/apis/index.js +3 -1
  14. package/dist/cjs/lex-v1/apis/index.js.map +1 -0
  15. package/{lib → dist/cjs}/lex-v1/apis/onComplete.js +3 -1
  16. package/dist/cjs/lex-v1/apis/onComplete.js.map +1 -0
  17. package/{lib → dist/cjs}/lex-v1/apis/send.js +3 -1
  18. package/dist/cjs/lex-v1/apis/send.js.map +1 -0
  19. package/{lib → dist/cjs}/lex-v1/index.js +3 -1
  20. package/dist/cjs/lex-v1/index.js.map +1 -0
  21. package/{lib → dist/cjs}/lex-v1/types/AWSLexProviderOption.js +3 -1
  22. package/dist/cjs/lex-v1/types/AWSLexProviderOption.js.map +1 -0
  23. package/{lib/lex-v2 → dist/cjs/lex-v1}/types/index.js +3 -1
  24. package/dist/cjs/lex-v1/types/index.js.map +1 -0
  25. package/{lib/lex-v2 → dist/cjs/lex-v1}/types/inputs.js +3 -1
  26. package/dist/cjs/lex-v1/types/inputs.js.map +1 -0
  27. package/{lib/lex-v2 → dist/cjs/lex-v1}/types/outputs.js +3 -1
  28. package/dist/cjs/lex-v1/types/outputs.js.map +1 -0
  29. package/{lib/lex-v2 → dist/cjs/lex-v1}/utils/index.js +3 -1
  30. package/dist/cjs/lex-v1/utils/index.js.map +1 -0
  31. package/{lib → dist/cjs}/lex-v1/utils/resolveBotConfig.js +3 -1
  32. package/dist/cjs/lex-v1/utils/resolveBotConfig.js.map +1 -0
  33. package/{lib → dist/cjs}/lex-v2/AWSLexV2Provider.js +3 -3
  34. package/dist/cjs/lex-v2/AWSLexV2Provider.js.map +1 -0
  35. package/{lib → dist/cjs}/lex-v2/apis/index.js +3 -1
  36. package/dist/cjs/lex-v2/apis/index.js.map +1 -0
  37. package/{lib → dist/cjs}/lex-v2/apis/onComplete.js +3 -1
  38. package/dist/cjs/lex-v2/apis/onComplete.js.map +1 -0
  39. package/{lib → dist/cjs}/lex-v2/apis/send.js +3 -1
  40. package/dist/cjs/lex-v2/apis/send.js.map +1 -0
  41. package/{lib → dist/cjs}/lex-v2/index.js +3 -1
  42. package/dist/cjs/lex-v2/index.js.map +1 -0
  43. package/{lib → dist/cjs}/lex-v2/types/AWSLexV2ProviderOption.js +3 -1
  44. package/dist/cjs/lex-v2/types/AWSLexV2ProviderOption.js.map +1 -0
  45. package/{lib/lex-v1 → dist/cjs/lex-v2}/types/index.js +3 -1
  46. package/dist/cjs/lex-v2/types/index.js.map +1 -0
  47. package/{lib/lex-v1 → dist/cjs/lex-v2}/types/inputs.js +3 -1
  48. package/dist/cjs/lex-v2/types/inputs.js.map +1 -0
  49. package/{lib → dist/cjs/lex-v2}/types/outputs.js +3 -1
  50. package/dist/cjs/lex-v2/types/outputs.js.map +1 -0
  51. package/{lib/lex-v1 → dist/cjs/lex-v2}/utils/index.js +3 -1
  52. package/dist/cjs/lex-v2/utils/index.js.map +1 -0
  53. package/{lib → dist/cjs}/lex-v2/utils/resolveBotConfig.js +3 -1
  54. package/dist/cjs/lex-v2/utils/resolveBotConfig.js.map +1 -0
  55. package/{lib → dist/cjs}/types/Interactions.js +3 -1
  56. package/dist/cjs/types/Interactions.js.map +1 -0
  57. package/{lib → dist/cjs}/types/index.js +3 -1
  58. package/dist/cjs/types/index.js.map +1 -0
  59. package/{lib → dist/cjs}/types/inputs.js +3 -1
  60. package/dist/cjs/types/inputs.js.map +1 -0
  61. package/{lib/lex-v1 → dist/cjs}/types/outputs.js +3 -1
  62. package/dist/cjs/types/outputs.js.map +1 -0
  63. package/{lib → dist/cjs}/utils/commonUtils.js +3 -1
  64. package/dist/cjs/utils/commonUtils.js.map +1 -0
  65. package/{lib → dist/cjs}/utils/index.js +3 -1
  66. package/dist/cjs/utils/index.js.map +1 -0
  67. package/{lib → dist/cjs}/utils/utils.js +3 -1
  68. package/dist/cjs/utils/utils.js.map +1 -0
  69. package/{lib → dist/cjs}/utils/utils.native.js +3 -1
  70. package/dist/cjs/utils/utils.native.js.map +1 -0
  71. package/{lib-esm/errors/InteractionsError.js → dist/esm/errors/InteractionsError.mjs} +6 -2
  72. package/dist/esm/errors/InteractionsError.mjs.map +1 -0
  73. package/{lib-esm/errors/assertValidationError.js → dist/esm/errors/assertValidationError.mjs} +7 -3
  74. package/dist/esm/errors/assertValidationError.mjs.map +1 -0
  75. package/dist/esm/errors/index.mjs +3 -0
  76. package/dist/esm/errors/index.mjs.map +1 -0
  77. package/{lib-esm/errors/validation.js → dist/esm/errors/validation.mjs} +5 -2
  78. package/dist/esm/errors/validation.mjs.map +1 -0
  79. package/dist/esm/index.mjs +2 -0
  80. package/dist/esm/index.mjs.map +1 -0
  81. package/{lib-esm/lex-v1/AWSLexProvider.js → dist/esm/lex-v1/AWSLexProvider.mjs} +7 -5
  82. package/dist/esm/lex-v1/AWSLexProvider.mjs.map +1 -0
  83. package/dist/esm/lex-v1/apis/index.mjs +3 -0
  84. package/dist/esm/lex-v1/apis/index.mjs.map +1 -0
  85. package/dist/esm/lex-v1/apis/onComplete.mjs +16 -0
  86. package/dist/esm/lex-v1/apis/onComplete.mjs.map +1 -0
  87. package/{lib-esm/lex-v2/apis/send.js → dist/esm/lex-v1/apis/send.mjs} +9 -4
  88. package/dist/esm/lex-v1/apis/send.mjs.map +1 -0
  89. package/{lib-esm/lex-v1/index.js → dist/esm/lex-v1/index.mjs} +7 -2
  90. package/dist/esm/lex-v1/index.mjs.map +1 -0
  91. package/dist/esm/lex-v1/types/AWSLexProviderOption.mjs +2 -0
  92. package/dist/esm/lex-v1/types/AWSLexProviderOption.mjs.map +1 -0
  93. package/dist/esm/lex-v1/types/index.mjs +2 -0
  94. package/dist/esm/lex-v1/types/index.mjs.map +1 -0
  95. package/dist/esm/lex-v1/types/inputs.mjs +2 -0
  96. package/dist/esm/lex-v1/types/inputs.mjs.map +1 -0
  97. package/dist/esm/lex-v1/types/outputs.mjs +2 -0
  98. package/dist/esm/lex-v1/types/outputs.mjs.map +1 -0
  99. package/dist/esm/lex-v1/utils/index.mjs +2 -0
  100. package/dist/esm/lex-v1/utils/index.mjs.map +1 -0
  101. package/{lib-esm/lex-v1/utils/resolveBotConfig.js → dist/esm/lex-v1/utils/resolveBotConfig.mjs} +6 -2
  102. package/dist/esm/lex-v1/utils/resolveBotConfig.mjs.map +1 -0
  103. package/{lib-esm/lex-v2/AWSLexV2Provider.js → dist/esm/lex-v2/AWSLexV2Provider.mjs} +10 -7
  104. package/dist/esm/lex-v2/AWSLexV2Provider.mjs.map +1 -0
  105. package/dist/esm/lex-v2/apis/index.mjs +3 -0
  106. package/dist/esm/lex-v2/apis/index.mjs.map +1 -0
  107. package/dist/esm/lex-v2/apis/onComplete.mjs +16 -0
  108. package/dist/esm/lex-v2/apis/onComplete.mjs.map +1 -0
  109. package/{lib-esm/lex-v1/apis/send.js → dist/esm/lex-v2/apis/send.mjs} +9 -4
  110. package/dist/esm/lex-v2/apis/send.mjs.map +1 -0
  111. package/dist/esm/lex-v2/index.mjs +12 -0
  112. package/dist/esm/lex-v2/index.mjs.map +1 -0
  113. package/dist/esm/lex-v2/types/AWSLexV2ProviderOption.mjs +2 -0
  114. package/dist/esm/lex-v2/types/AWSLexV2ProviderOption.mjs.map +1 -0
  115. package/dist/esm/lex-v2/types/index.mjs +2 -0
  116. package/dist/esm/lex-v2/types/index.mjs.map +1 -0
  117. package/dist/esm/lex-v2/types/inputs.mjs +2 -0
  118. package/dist/esm/lex-v2/types/inputs.mjs.map +1 -0
  119. package/dist/esm/lex-v2/types/outputs.mjs +2 -0
  120. package/dist/esm/lex-v2/types/outputs.mjs.map +1 -0
  121. package/dist/esm/lex-v2/utils/index.mjs +2 -0
  122. package/dist/esm/lex-v2/utils/index.mjs.map +1 -0
  123. package/{lib-esm/lex-v2/utils/resolveBotConfig.js → dist/esm/lex-v2/utils/resolveBotConfig.mjs} +6 -2
  124. package/dist/esm/lex-v2/utils/resolveBotConfig.mjs.map +1 -0
  125. package/dist/esm/types/Interactions.mjs +2 -0
  126. package/dist/esm/types/Interactions.mjs.map +1 -0
  127. package/dist/esm/types/index.mjs +2 -0
  128. package/dist/esm/types/index.mjs.map +1 -0
  129. package/dist/esm/types/inputs.mjs +2 -0
  130. package/dist/esm/types/inputs.mjs.map +1 -0
  131. package/dist/esm/types/outputs.mjs +2 -0
  132. package/dist/esm/types/outputs.mjs.map +1 -0
  133. package/{lib-esm/utils/commonUtils.js → dist/esm/utils/commonUtils.mjs} +6 -2
  134. package/dist/esm/utils/commonUtils.mjs.map +1 -0
  135. package/dist/esm/utils/index.mjs +3 -0
  136. package/dist/esm/utils/index.mjs.map +1 -0
  137. package/{lib-esm/utils/utils.js → dist/esm/utils/utils.mjs} +8 -4
  138. package/dist/esm/utils/utils.mjs.map +1 -0
  139. package/{lib-esm/utils/utils.native.js → dist/esm/utils/utils.native.mjs} +9 -5
  140. package/dist/esm/utils/utils.native.mjs.map +1 -0
  141. package/lex-v1/package.json +5 -4
  142. package/lex-v2/package.json +5 -4
  143. package/package.json +38 -38
  144. package/lib/errors/InteractionsError.d.ts +0 -4
  145. package/lib/errors/assertValidationError.d.ts +0 -2
  146. package/lib/errors/index.d.ts +0 -2
  147. package/lib/errors/validation.d.ts +0 -5
  148. package/lib/index.d.ts +0 -2
  149. package/lib/lex-v1/AWSLexProvider.d.ts +0 -20
  150. package/lib/lex-v1/apis/index.d.ts +0 -2
  151. package/lib/lex-v1/apis/onComplete.d.ts +0 -2
  152. package/lib/lex-v1/apis/send.d.ts +0 -2
  153. package/lib/lex-v1/index.d.ts +0 -6
  154. package/lib/lex-v1/types/AWSLexProviderOption.d.ts +0 -11
  155. package/lib/lex-v1/types/index.d.ts +0 -3
  156. package/lib/lex-v1/types/inputs.d.ts +0 -9
  157. package/lib/lex-v1/types/outputs.d.ts +0 -5
  158. package/lib/lex-v1/utils/index.d.ts +0 -1
  159. package/lib/lex-v1/utils/resolveBotConfig.d.ts +0 -2
  160. package/lib/lex-v2/AWSLexV2Provider.d.ts +0 -52
  161. package/lib/lex-v2/apis/index.d.ts +0 -2
  162. package/lib/lex-v2/apis/onComplete.d.ts +0 -2
  163. package/lib/lex-v2/apis/send.d.ts +0 -2
  164. package/lib/lex-v2/index.d.ts +0 -3
  165. package/lib/lex-v2/types/AWSLexV2ProviderOption.d.ts +0 -13
  166. package/lib/lex-v2/types/index.d.ts +0 -3
  167. package/lib/lex-v2/types/inputs.d.ts +0 -9
  168. package/lib/lex-v2/types/outputs.d.ts +0 -5
  169. package/lib/lex-v2/utils/index.d.ts +0 -1
  170. package/lib/lex-v2/utils/resolveBotConfig.d.ts +0 -2
  171. package/lib/tsconfig.tsbuildinfo +0 -1
  172. package/lib/types/Interactions.d.ts +0 -17
  173. package/lib/types/index.d.ts +0 -2
  174. package/lib/types/inputs.d.ts +0 -9
  175. package/lib/types/outputs.d.ts +0 -2
  176. package/lib/utils/commonUtils.d.ts +0 -1
  177. package/lib/utils/index.d.ts +0 -2
  178. package/lib/utils/utils.d.ts +0 -3
  179. package/lib/utils/utils.native.d.ts +0 -3
  180. package/lib-esm/errors/index.js +0 -4
  181. package/lib-esm/index.js +0 -3
  182. package/lib-esm/lex-v1/apis/index.js +0 -4
  183. package/lib-esm/lex-v1/apis/onComplete.js +0 -11
  184. package/lib-esm/lex-v1/types/AWSLexProviderOption.js +0 -3
  185. package/lib-esm/lex-v1/types/index.js +0 -3
  186. package/lib-esm/lex-v1/types/inputs.js +0 -3
  187. package/lib-esm/lex-v1/types/outputs.js +0 -3
  188. package/lib-esm/lex-v1/utils/index.js +0 -3
  189. package/lib-esm/lex-v2/apis/index.js +0 -4
  190. package/lib-esm/lex-v2/apis/onComplete.js +0 -11
  191. package/lib-esm/lex-v2/index.js +0 -7
  192. package/lib-esm/lex-v2/types/AWSLexV2ProviderOption.js +0 -3
  193. package/lib-esm/lex-v2/types/index.js +0 -3
  194. package/lib-esm/lex-v2/types/inputs.js +0 -3
  195. package/lib-esm/lex-v2/types/outputs.js +0 -3
  196. package/lib-esm/lex-v2/utils/index.js +0 -3
  197. package/lib-esm/tsconfig.tsbuildinfo +0 -1
  198. package/lib-esm/types/Interactions.js +0 -3
  199. package/lib-esm/types/index.js +0 -3
  200. package/lib-esm/types/inputs.js +0 -3
  201. package/lib-esm/types/outputs.js +0 -3
  202. package/lib-esm/utils/index.js +0 -4
  203. /package/{lib-esm → dist/esm}/errors/InteractionsError.d.ts +0 -0
  204. /package/{lib-esm → dist/esm}/errors/assertValidationError.d.ts +0 -0
  205. /package/{lib-esm → dist/esm}/errors/index.d.ts +0 -0
  206. /package/{lib-esm → dist/esm}/errors/validation.d.ts +0 -0
  207. /package/{lib-esm → dist/esm}/index.d.ts +0 -0
  208. /package/{lib-esm → dist/esm}/lex-v1/AWSLexProvider.d.ts +0 -0
  209. /package/{lib-esm → dist/esm}/lex-v1/apis/index.d.ts +0 -0
  210. /package/{lib-esm → dist/esm}/lex-v1/apis/onComplete.d.ts +0 -0
  211. /package/{lib-esm → dist/esm}/lex-v1/apis/send.d.ts +0 -0
  212. /package/{lib-esm → dist/esm}/lex-v1/index.d.ts +0 -0
  213. /package/{lib-esm → dist/esm}/lex-v1/types/AWSLexProviderOption.d.ts +0 -0
  214. /package/{lib-esm → dist/esm}/lex-v1/types/index.d.ts +0 -0
  215. /package/{lib-esm → dist/esm}/lex-v1/types/inputs.d.ts +0 -0
  216. /package/{lib-esm → dist/esm}/lex-v1/types/outputs.d.ts +0 -0
  217. /package/{lib-esm → dist/esm}/lex-v1/utils/index.d.ts +0 -0
  218. /package/{lib-esm → dist/esm}/lex-v1/utils/resolveBotConfig.d.ts +0 -0
  219. /package/{lib-esm → dist/esm}/lex-v2/AWSLexV2Provider.d.ts +0 -0
  220. /package/{lib-esm → dist/esm}/lex-v2/apis/index.d.ts +0 -0
  221. /package/{lib-esm → dist/esm}/lex-v2/apis/onComplete.d.ts +0 -0
  222. /package/{lib-esm → dist/esm}/lex-v2/apis/send.d.ts +0 -0
  223. /package/{lib-esm → dist/esm}/lex-v2/index.d.ts +0 -0
  224. /package/{lib-esm → dist/esm}/lex-v2/types/AWSLexV2ProviderOption.d.ts +0 -0
  225. /package/{lib-esm → dist/esm}/lex-v2/types/index.d.ts +0 -0
  226. /package/{lib-esm → dist/esm}/lex-v2/types/inputs.d.ts +0 -0
  227. /package/{lib-esm → dist/esm}/lex-v2/types/outputs.d.ts +0 -0
  228. /package/{lib-esm → dist/esm}/lex-v2/utils/index.d.ts +0 -0
  229. /package/{lib-esm → dist/esm}/lex-v2/utils/resolveBotConfig.d.ts +0 -0
  230. /package/{lib-esm → dist/esm}/types/Interactions.d.ts +0 -0
  231. /package/{lib-esm → dist/esm}/types/index.d.ts +0 -0
  232. /package/{lib-esm → dist/esm}/types/inputs.d.ts +0 -0
  233. /package/{lib-esm → dist/esm}/types/outputs.d.ts +0 -0
  234. /package/{lib-esm → dist/esm}/utils/commonUtils.d.ts +0 -0
  235. /package/{lib-esm → dist/esm}/utils/index.d.ts +0 -0
  236. /package/{lib-esm → dist/esm}/utils/utils.d.ts +0 -0
  237. /package/{lib-esm → dist/esm}/utils/utils.native.d.ts +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commonUtils.mjs","sources":["../../../src/utils/commonUtils.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { base64ToArrayBuffer, gzipDecompressToString } from './utils';\nexport const unGzipBase64AsJson = async (gzipBase64) => {\n if (typeof gzipBase64 === 'undefined')\n return undefined;\n try {\n const decodedArrayBuffer = base64ToArrayBuffer(gzipBase64);\n const objString = await gzipDecompressToString(decodedArrayBuffer);\n return JSON.parse(objString);\n }\n catch (error) {\n return Promise.reject('unable to decode and decompress ' + error);\n }\n};\n"],"names":[],"mappings":";;AAAA;AACA;AAEY,MAAC,kBAAkB,GAAG,OAAO,UAAU,KAAK;AACxD,IAAI,IAAI,OAAO,UAAU,KAAK,WAAW;AACzC,QAAQ,OAAO,SAAS,CAAC;AACzB,IAAI,IAAI;AACR,QAAQ,MAAM,kBAAkB,GAAG,mBAAmB,CAAC,UAAU,CAAC,CAAC;AACnE,QAAQ,MAAM,SAAS,GAAG,MAAM,sBAAsB,CAAC,kBAAkB,CAAC,CAAC;AAC3E,QAAQ,OAAO,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AACrC,KAAK;AACL,IAAI,OAAO,KAAK,EAAE;AAClB,QAAQ,OAAO,OAAO,CAAC,MAAM,CAAC,kCAAkC,GAAG,KAAK,CAAC,CAAC;AAC1E,KAAK;AACL;;;;"}
@@ -0,0 +1,3 @@
1
+ export { base64ToArrayBuffer, convert, gzipDecompressToString } from './utils.mjs';
2
+ export { unGzipBase64AsJson } from './commonUtils.mjs';
3
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,7 +1,8 @@
1
+ import { gunzip, strFromU8 } from 'fflate';
2
+
1
3
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
4
  // SPDX-License-Identifier: Apache-2.0
3
- import { gunzip, strFromU8 } from 'fflate';
4
- export const convert = async (stream) => {
5
+ const convert = async (stream) => {
5
6
  if (stream instanceof Blob || stream instanceof ReadableStream) {
6
7
  return new Response(stream)
7
8
  .arrayBuffer()
@@ -11,10 +12,10 @@ export const convert = async (stream) => {
11
12
  return Promise.reject('Invalid content type');
12
13
  }
13
14
  };
14
- export const base64ToArrayBuffer = (base64) => {
15
+ const base64ToArrayBuffer = (base64) => {
15
16
  return Uint8Array.from(window.atob(base64), c => c.charCodeAt(0));
16
17
  };
17
- export const gzipDecompressToString = async (data) => {
18
+ const gzipDecompressToString = async (data) => {
18
19
  return await new Promise((resolve, reject) => {
19
20
  gunzip(data, (err, resp) => {
20
21
  if (err)
@@ -24,3 +25,6 @@ export const gzipDecompressToString = async (data) => {
24
25
  });
25
26
  });
26
27
  };
28
+
29
+ export { base64ToArrayBuffer, convert, gzipDecompressToString };
30
+ //# sourceMappingURL=utils.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.mjs","sources":["../../../src/utils/utils.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { gunzip, strFromU8 } from 'fflate';\nexport const convert = async (stream) => {\n if (stream instanceof Blob || stream instanceof ReadableStream) {\n return new Response(stream)\n .arrayBuffer()\n .then(buffer => new Uint8Array(buffer));\n }\n else {\n return Promise.reject('Invalid content type');\n }\n};\nexport const base64ToArrayBuffer = (base64) => {\n return Uint8Array.from(window.atob(base64), c => c.charCodeAt(0));\n};\nexport const gzipDecompressToString = async (data) => {\n return await new Promise((resolve, reject) => {\n gunzip(data, (err, resp) => {\n if (err)\n reject(err);\n else\n resolve(strFromU8(resp));\n });\n });\n};\n"],"names":[],"mappings":";;AAAA;AACA;AAEY,MAAC,OAAO,GAAG,OAAO,MAAM,KAAK;AACzC,IAAI,IAAI,MAAM,YAAY,IAAI,IAAI,MAAM,YAAY,cAAc,EAAE;AACpE,QAAQ,OAAO,IAAI,QAAQ,CAAC,MAAM,CAAC;AACnC,aAAa,WAAW,EAAE;AAC1B,aAAa,IAAI,CAAC,MAAM,IAAI,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC;AACpD,KAAK;AACL,SAAS;AACT,QAAQ,OAAO,OAAO,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC;AACtD,KAAK;AACL,EAAE;AACU,MAAC,mBAAmB,GAAG,CAAC,MAAM,KAAK;AAC/C,IAAI,OAAO,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;AACtE,EAAE;AACU,MAAC,sBAAsB,GAAG,OAAO,IAAI,KAAK;AACtD,IAAI,OAAO,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,KAAK;AAClD,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC,GAAG,EAAE,IAAI,KAAK;AACpC,YAAY,IAAI,GAAG;AACnB,gBAAgB,MAAM,CAAC,GAAG,CAAC,CAAC;AAC5B;AACA,gBAAgB,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;AACzC,SAAS,CAAC,CAAC;AACX,KAAK,CAAC,CAAC;AACP;;;;"}
@@ -1,8 +1,9 @@
1
- // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
- // SPDX-License-Identifier: Apache-2.0
3
1
  import { decode } from 'base-64';
4
2
  import { ungzip } from 'pako';
5
- export const convert = async (stream) => {
3
+
4
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
5
+ // SPDX-License-Identifier: Apache-2.0
6
+ const convert = async (stream) => {
6
7
  if (!(stream instanceof Blob)) {
7
8
  return Promise.reject('Invalid content type');
8
9
  }
@@ -22,11 +23,11 @@ export const convert = async (stream) => {
22
23
  }
23
24
  });
24
25
  };
25
- export const base64ToArrayBuffer = (base64) => {
26
+ const base64ToArrayBuffer = (base64) => {
26
27
  const binaryString = decode(base64);
27
28
  return Uint8Array.from(binaryString, c => c.charCodeAt(0));
28
29
  };
29
- export const gzipDecompressToString = async (data) => {
30
+ const gzipDecompressToString = async (data) => {
30
31
  return new Promise((resolve, reject) => {
31
32
  try {
32
33
  const result = ungzip(data, { to: 'string' });
@@ -37,3 +38,6 @@ export const gzipDecompressToString = async (data) => {
37
38
  }
38
39
  });
39
40
  };
41
+
42
+ export { base64ToArrayBuffer, convert, gzipDecompressToString };
43
+ //# sourceMappingURL=utils.native.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.native.mjs","sources":["../../../src/utils/utils.native.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { decode } from 'base-64';\nimport { ungzip } from 'pako';\nexport const convert = async (stream) => {\n if (!(stream instanceof Blob)) {\n return Promise.reject('Invalid content type');\n }\n return new Promise(async (resolve, reject) => {\n try {\n const fileReaderInstance = new FileReader();\n fileReaderInstance.readAsDataURL(stream);\n fileReaderInstance.onload = async () => {\n const blobURL = fileReaderInstance.result;\n const base64Blob = blobURL.split(/,(.*)/s)[1];\n const decodedArrayBuffer = base64ToArrayBuffer(base64Blob);\n resolve(decodedArrayBuffer);\n };\n }\n catch (error) {\n reject('unable to convert blob to arrayBuffer: ' + error);\n }\n });\n};\nexport const base64ToArrayBuffer = (base64) => {\n const binaryString = decode(base64);\n return Uint8Array.from(binaryString, c => c.charCodeAt(0));\n};\nexport const gzipDecompressToString = async (data) => {\n return new Promise((resolve, reject) => {\n try {\n const result = ungzip(data, { to: 'string' });\n resolve(result);\n }\n catch (error) {\n reject('unable to decompress' + error);\n }\n });\n};\n"],"names":[],"mappings":";;;AAAA;AACA;AAGY,MAAC,OAAO,GAAG,OAAO,MAAM,KAAK;AACzC,IAAI,IAAI,EAAE,MAAM,YAAY,IAAI,CAAC,EAAE;AACnC,QAAQ,OAAO,OAAO,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC;AACtD,KAAK;AACL,IAAI,OAAO,IAAI,OAAO,CAAC,OAAO,OAAO,EAAE,MAAM,KAAK;AAClD,QAAQ,IAAI;AACZ,YAAY,MAAM,kBAAkB,GAAG,IAAI,UAAU,EAAE,CAAC;AACxD,YAAY,kBAAkB,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;AACrD,YAAY,kBAAkB,CAAC,MAAM,GAAG,YAAY;AACpD,gBAAgB,MAAM,OAAO,GAAG,kBAAkB,CAAC,MAAM,CAAC;AAC1D,gBAAgB,MAAM,UAAU,GAAG,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;AAC9D,gBAAgB,MAAM,kBAAkB,GAAG,mBAAmB,CAAC,UAAU,CAAC,CAAC;AAC3E,gBAAgB,OAAO,CAAC,kBAAkB,CAAC,CAAC;AAC5C,aAAa,CAAC;AACd,SAAS;AACT,QAAQ,OAAO,KAAK,EAAE;AACtB,YAAY,MAAM,CAAC,yCAAyC,GAAG,KAAK,CAAC,CAAC;AACtE,SAAS;AACT,KAAK,CAAC,CAAC;AACP,EAAE;AACU,MAAC,mBAAmB,GAAG,CAAC,MAAM,KAAK;AAC/C,IAAI,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;AACxC,IAAI,OAAO,UAAU,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC,IAAI,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;AAC/D,EAAE;AACU,MAAC,sBAAsB,GAAG,OAAO,IAAI,KAAK;AACtD,IAAI,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,KAAK;AAC5C,QAAQ,IAAI;AACZ,YAAY,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC;AAC1D,YAAY,OAAO,CAAC,MAAM,CAAC,CAAC;AAC5B,SAAS;AACT,QAAQ,OAAO,KAAK,EAAE;AACtB,YAAY,MAAM,CAAC,sBAAsB,GAAG,KAAK,CAAC,CAAC;AACnD,SAAS;AACT,KAAK,CAAC,CAAC;AACP;;;;"}
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@aws-amplify/interactions/lex-v1",
3
- "main": "../lib/lex-v1/index.js",
4
- "browser": "../lib-esm/lex-v1/index.js",
5
- "module": "../lib-esm/lex-v1/index.js",
6
- "typings": "../lib-esm/lex-v1/index.d.ts"
3
+ "main": "../dist/cjs/lex-v1/index.js",
4
+ "browser": "../dist/esm/lex-v1/index.mjs",
5
+ "module": "../dist/esm/lex-v1/index.mjs",
6
+ "react-native": "../src/lex-v1/index.ts",
7
+ "typings": "../dist/esm/lex-v1/index.d.ts"
7
8
  }
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@aws-amplify/interactions/lex-v2",
3
- "main": "../lib/lex-v2/index.js",
4
- "browser": "../lib-esm/lex-v2/index.js",
5
- "module": "../lib-esm/lex-v2/index.js",
6
- "typings": "../lib-esm/lex-v2/index.d.ts"
3
+ "main": "../dist/cjs/lex-v2/index.js",
4
+ "browser": "../dist/esm/lex-v2/index.mjs",
5
+ "module": "../dist/esm/lex-v2/index.mjs",
6
+ "react-native": "../src/lex-v2/index.ts",
7
+ "typings": "../dist/esm/lex-v2/index.d.ts"
7
8
  }
package/package.json CHANGED
@@ -1,13 +1,11 @@
1
1
  {
2
2
  "name": "@aws-amplify/interactions",
3
- "version": "6.0.1-unstable.cfbde4c.0+cfbde4c",
3
+ "version": "6.0.1",
4
4
  "description": "Interactions category of aws-amplify",
5
- "main": "./lib/index.js",
6
- "module": "./lib-esm/index.js",
7
- "typings": "./lib-esm/index.d.ts",
8
- "react-native": {
9
- "./lib/index": "./lib-esm/index.js"
10
- },
5
+ "main": "./dist/cjs/index.js",
6
+ "module": "./dist/esm/index.mjs",
7
+ "typings": "./dist/esm/index.d.ts",
8
+ "react-native": "./src/index.ts",
11
9
  "sideEffects": false,
12
10
  "publishConfig": {
13
11
  "access": "public"
@@ -15,13 +13,13 @@
15
13
  "scripts": {
16
14
  "test": "npm run lint && jest -w 1 --coverage",
17
15
  "test:size": "size-limit",
18
- "build-with-test": "npm run clean && npm test && tsc && webpack",
19
- "build:cjs": "rimraf lib && tsc -m commonjs --outDir lib && webpack && webpack --config ./webpack.config.dev.js",
20
- "build:esm": "rimraf lib-esm && tsc -m esnext --outDir lib-esm",
21
- "build:cjs:watch": "rimraf lib && tsc -m commonjs --outDir lib --watch",
22
- "build:esm:watch": "rimraf lib-esm && tsc -m esnext --outDir lib-esm",
23
- "build": "npm run clean && npm run build:esm && npm run build:cjs",
24
- "clean": "npm run clean:size && rimraf lib-esm lib dist",
16
+ "build-with-test": "npm run clean && npm run build",
17
+ "build:umd": "webpack && webpack --config ./webpack.config.dev.js",
18
+ "build:esm-cjs": "rollup -c rollup.config.mjs",
19
+ "build:cjs:watch": "rimraf dist/cjs && tsc -m commonjs --outDir dist/cjs --watch",
20
+ "build:esm:watch": "rimraf dist/esm && tsc -m esnext --outDir dist/esm --watch",
21
+ "build": "npm run clean && npm run build:esm-cjs && npm run build:umd",
22
+ "clean": "npm run clean:size && rimraf dist lib lib-esm",
25
23
  "clean:size": "rimraf dual-publish-tmp tmp*",
26
24
  "format": "echo \"Not implemented\"",
27
25
  "lint": "tslint 'src/**/*.ts' && npm run ts-coverage",
@@ -30,28 +28,30 @@
30
28
  "typesVersions": {
31
29
  ">=4.2": {
32
30
  "lex-v1": [
33
- "./lib-esm/lex-v1/index.d.ts"
31
+ "./dist/esm/lex-v1/index.d.ts"
34
32
  ],
35
33
  "lex-v2": [
36
- "./lib-esm/lex-v2/index.d.ts"
34
+ "./dist/esm/lex-v2/index.d.ts"
37
35
  ]
38
36
  }
39
37
  },
40
38
  "exports": {
41
39
  ".": {
42
- "types": "./lib-esm/index.d.ts",
43
- "import": "./lib-esm/index.js",
44
- "require": "./lib/index.js"
40
+ "types": "./dist/esm/index.d.ts",
41
+ "import": "./dist/esm/index.mjs",
42
+ "require": "./dist/cjs/index.js"
45
43
  },
46
44
  "./lex-v1": {
47
- "types": "./lib-esm/lex-v1/index.d.ts",
48
- "import": "./lib-esm/lex-v1/index.js",
49
- "require": "./lib/lex-v1/index.js"
45
+ "types": "./dist/esm/lex-v1/index.d.ts",
46
+ "import": "./dist/esm/lex-v1/index.mjs",
47
+ "require": "./dist/cjs/lex-v1/index.js",
48
+ "react-native": "./src/lex-v1/index.ts"
50
49
  },
51
50
  "./lex-v2": {
52
- "types": "./lib-esm/lex-v2/index.d.ts",
53
- "import": "./lib-esm/lex-v2/index.js",
54
- "require": "./lib/lex-v2/index.js"
51
+ "types": "./dist/esm/lex-v2/index.d.ts",
52
+ "import": "./dist/esm/lex-v2/index.mjs",
53
+ "require": "./dist/cjs/lex-v2/index.js",
54
+ "react-native": "./src/lex-v2/index.ts"
55
55
  }
56
56
  },
57
57
  "repository": {
@@ -65,8 +65,8 @@
65
65
  },
66
66
  "homepage": "https://aws-amplify.github.io/",
67
67
  "files": [
68
- "lib",
69
- "lib-esm",
68
+ "dist/cjs",
69
+ "dist/esm",
70
70
  "src",
71
71
  "lex-v1",
72
72
  "lex-v2"
@@ -81,26 +81,28 @@
81
81
  "uuid": "^9.0.0"
82
82
  },
83
83
  "devDependencies": {
84
- "@aws-amplify/core": "6.0.1-unstable.cfbde4c.0+cfbde4c",
84
+ "@aws-amplify/core": "6.0.1",
85
+ "@rollup/plugin-typescript": "11.1.5",
86
+ "rollup": "3.29.4",
85
87
  "typescript": "^5.0.2"
86
88
  },
87
89
  "size-limit": [
88
90
  {
89
91
  "name": "Interactions (default to Lex v2)",
90
- "path": "./lib-esm/index.js",
91
- "import": "{ Amplify, Interactions }",
92
+ "path": "./dist/esm/index.mjs",
93
+ "import": "{ Interactions }",
92
94
  "limit": "52.00 kB"
93
95
  },
94
96
  {
95
97
  "name": "Interactions (Lex v2)",
96
- "path": "./lib-esm/lex-v2/index.js",
97
- "import": "{ Amplify, Interactions }",
98
+ "path": "./dist/esm/lex-v2/index.mjs",
99
+ "import": "{ Interactions }",
98
100
  "limit": "52.00 kB"
99
101
  },
100
102
  {
101
103
  "name": "Interactions (Lex v1)",
102
- "path": "./lib-esm/lex-v1/index.js",
103
- "import": "{ Amplify, Interactions }",
104
+ "path": "./dist/esm/lex-v1/index.mjs",
105
+ "import": "{ Interactions }",
104
106
  "limit": "47.00 kB"
105
107
  }
106
108
  ],
@@ -140,10 +142,8 @@
140
142
  },
141
143
  "coveragePathIgnorePatterns": [
142
144
  "node_modules",
143
- "dist",
144
- "lib",
145
- "lib-esm"
145
+ "dist"
146
146
  ]
147
147
  },
148
- "gitHead": "cfbde4c7962de77bd43ba20811b84c4d7d333b42"
148
+ "gitHead": "f1408db3f570c4a18ada40cecbe7e68a0b31f1fe"
149
149
  }
@@ -1,4 +0,0 @@
1
- import { AmplifyError, AmplifyErrorParams } from '@aws-amplify/core/internals/utils';
2
- export declare class InteractionsError extends AmplifyError {
3
- constructor(params: AmplifyErrorParams);
4
- }
@@ -1,2 +0,0 @@
1
- import { InteractionsValidationErrorCode } from './validation';
2
- export declare function assertValidationError(assertion: boolean, name: InteractionsValidationErrorCode, message?: string): asserts assertion;
@@ -1,2 +0,0 @@
1
- export { assertValidationError } from './assertValidationError';
2
- export { InteractionsValidationErrorCode } from './validation';
@@ -1,5 +0,0 @@
1
- import { AmplifyErrorMap } from '@aws-amplify/core/internals/utils';
2
- export declare enum InteractionsValidationErrorCode {
3
- NoBotConfig = "NoBotConfig"
4
- }
5
- export declare const validationErrorMap: AmplifyErrorMap<InteractionsValidationErrorCode>;
package/lib/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export { Interactions } from './lex-v2';
2
- export { SendInput, OnCompleteInput, SendOutput } from './lex-v2/types';
@@ -1,20 +0,0 @@
1
- import { InteractionsOnCompleteCallback, InteractionsMessage, InteractionsResponse } from '../types/Interactions';
2
- import { PostContentCommandOutput, PostTextCommandOutput } from '@aws-sdk/client-lex-runtime-service';
3
- import { AWSLexProviderOption } from './types';
4
- interface PostContentCommandOutputFormatted extends Omit<PostContentCommandOutput, 'audioStream'> {
5
- audioStream?: Uint8Array;
6
- }
7
- type AWSLexProviderSendResponse = PostTextCommandOutput | PostContentCommandOutputFormatted;
8
- declare class AWSLexProvider {
9
- private readonly _botsCompleteCallback;
10
- /**
11
- * @deprecated
12
- * This is used internally by 'sendMessage' to call onComplete callback
13
- * for a bot if configured
14
- */
15
- reportBotStatus(data: AWSLexProviderSendResponse, { name }: AWSLexProviderOption): void;
16
- sendMessage(botConfig: AWSLexProviderOption, message: string | InteractionsMessage): Promise<InteractionsResponse>;
17
- onComplete({ name }: AWSLexProviderOption, callback: InteractionsOnCompleteCallback): void;
18
- }
19
- export declare const lexProvider: AWSLexProvider;
20
- export {};
@@ -1,2 +0,0 @@
1
- export { send } from './send';
2
- export { onComplete } from './onComplete';
@@ -1,2 +0,0 @@
1
- import { OnCompleteInput } from '../types';
2
- export declare const onComplete: (input: OnCompleteInput) => void;
@@ -1,2 +0,0 @@
1
- import { SendInput, SendOutput } from '../types';
2
- export declare const send: (input: SendInput) => Promise<SendOutput>;
@@ -1,6 +0,0 @@
1
- import { IInteractions } from './types/AWSLexProviderOption';
2
- /**
3
- * @deprecated recommend to migrate to AWS Lex V2 instead
4
- * */
5
- export declare const Interactions: IInteractions;
6
- export { SendInput, OnCompleteInput, SendOutput } from './types';
@@ -1,11 +0,0 @@
1
- import { SendInput, OnCompleteInput } from './inputs';
2
- import { SendOutput } from './outputs';
3
- export interface AWSLexProviderOption {
4
- name: string;
5
- alias: string;
6
- region: string;
7
- }
8
- export interface IInteractions {
9
- send(input: SendInput): Promise<SendOutput>;
10
- onComplete(input: OnCompleteInput): void;
11
- }
@@ -1,3 +0,0 @@
1
- export { AWSLexProviderOption } from './AWSLexProviderOption';
2
- export { SendInput, OnCompleteInput } from './inputs';
3
- export { SendOutput } from './outputs';
@@ -1,9 +0,0 @@
1
- import { InteractionsSendInput, InteractionsOnCompleteInput } from '../../types';
2
- /**
3
- * Input type for LexV1 send API.
4
- */
5
- export type SendInput = InteractionsSendInput;
6
- /**
7
- * Input type for LexV1 onComplete API.
8
- */
9
- export type OnCompleteInput = InteractionsOnCompleteInput;
@@ -1,5 +0,0 @@
1
- import { InteractionsSendOutput } from '../../types';
2
- /**
3
- * Output type for LexV1 send API.
4
- */
5
- export type SendOutput = InteractionsSendOutput;
@@ -1 +0,0 @@
1
- export { resolveBotConfig } from './resolveBotConfig';
@@ -1,2 +0,0 @@
1
- import { AWSLexProviderOption } from '../types';
2
- export declare const resolveBotConfig: (botName: string) => AWSLexProviderOption | undefined;
@@ -1,52 +0,0 @@
1
- import { InteractionsOnCompleteCallback, InteractionsMessage, InteractionsResponse } from '../types/Interactions';
2
- import { RecognizeTextCommandOutput, RecognizeUtteranceCommandOutput } from '@aws-sdk/client-lex-runtime-v2';
3
- import { AWSLexV2ProviderOption } from './types';
4
- interface RecognizeUtteranceCommandOutputFormatted extends Omit<RecognizeUtteranceCommandOutput, 'messages' | 'interpretations' | 'sessionState' | 'requestAttributes' | 'audioStream'> {
5
- messages?: RecognizeTextCommandOutput['messages'];
6
- sessionState?: RecognizeTextCommandOutput['sessionState'];
7
- interpretations?: RecognizeTextCommandOutput['interpretations'];
8
- requestAttributes?: RecognizeTextCommandOutput['requestAttributes'];
9
- audioStream?: Uint8Array;
10
- }
11
- type AWSLexV2ProviderSendResponse = RecognizeTextCommandOutput | RecognizeUtteranceCommandOutputFormatted;
12
- declare class AWSLexV2Provider {
13
- private readonly _botsCompleteCallback;
14
- private defaultSessionId;
15
- /**
16
- * Send a message to a bot
17
- * @async
18
- * @param {AWSLexV2ProviderOption} botConfig - Bot configuration for sending the message
19
- * @param {string | InteractionsMessage} message - message to send to the bot
20
- * @return {Promise<InteractionsResponse>} A promise resolves to the response from the bot
21
- */
22
- sendMessage(botConfig: AWSLexV2ProviderOption, message: string | InteractionsMessage): Promise<InteractionsResponse>;
23
- /**
24
- * Attach a onComplete callback function to a bot.
25
- * The callback is called once the bot's intent is fulfilled
26
- * @param {AWSLexV2ProviderOption} botConfig - Bot configuration to attach the onComplete callback
27
- * @param {InteractionsOnCompleteCallback} callback - called when Intent Fulfilled
28
- */
29
- onComplete({ name }: AWSLexV2ProviderOption, callback: InteractionsOnCompleteCallback): void;
30
- /**
31
- * call onComplete callback for a bot if configured
32
- */
33
- _reportBotStatus(data: AWSLexV2ProviderSendResponse, { name }: AWSLexV2ProviderOption): void;
34
- /**
35
- * Format UtteranceCommandOutput's response
36
- * decompress attributes
37
- * update audioStream format
38
- */
39
- private _formatUtteranceCommandOutput;
40
- /**
41
- * handle client's `RecognizeTextCommand`
42
- * used for sending simple text message
43
- */
44
- private _handleRecognizeTextCommand;
45
- /**
46
- * handle client's `RecognizeUtteranceCommand`
47
- * used for obj text or obj voice message
48
- */
49
- private _handleRecognizeUtteranceCommand;
50
- }
51
- export declare const lexProvider: AWSLexV2Provider;
52
- export {};
@@ -1,2 +0,0 @@
1
- export { send } from './send';
2
- export { onComplete } from './onComplete';
@@ -1,2 +0,0 @@
1
- import { OnCompleteInput } from '../types';
2
- export declare const onComplete: (input: OnCompleteInput) => void;
@@ -1,2 +0,0 @@
1
- import { SendInput, SendOutput } from '../types';
2
- export declare const send: (input: SendInput) => Promise<SendOutput>;
@@ -1,3 +0,0 @@
1
- import { IInteractions } from './types/AWSLexV2ProviderOption';
2
- export declare const Interactions: IInteractions;
3
- export { SendInput, OnCompleteInput, SendOutput } from './types';
@@ -1,13 +0,0 @@
1
- import { SendInput, OnCompleteInput } from './inputs';
2
- import { SendOutput } from './outputs';
3
- export interface AWSLexV2ProviderOption {
4
- name: string;
5
- botId: string;
6
- aliasId: string;
7
- localeId: string;
8
- region: string;
9
- }
10
- export interface IInteractions {
11
- send(input: SendInput): Promise<SendOutput>;
12
- onComplete(input: OnCompleteInput): void;
13
- }
@@ -1,3 +0,0 @@
1
- export { AWSLexV2ProviderOption } from './AWSLexV2ProviderOption';
2
- export { SendInput, OnCompleteInput } from './inputs';
3
- export { SendOutput } from './outputs';
@@ -1,9 +0,0 @@
1
- import { InteractionsSendInput, InteractionsOnCompleteInput } from '../../types';
2
- /**
3
- * Input type for LexV2 send API.
4
- */
5
- export type SendInput = InteractionsSendInput;
6
- /**
7
- * Input type for LexV2 onComplete API.
8
- */
9
- export type OnCompleteInput = InteractionsOnCompleteInput;
@@ -1,5 +0,0 @@
1
- import { InteractionsSendOutput } from '../../types';
2
- /**
3
- * Output type for LexV2 send API.
4
- */
5
- export type SendOutput = InteractionsSendOutput;
@@ -1 +0,0 @@
1
- export { resolveBotConfig } from './resolveBotConfig';
@@ -1,2 +0,0 @@
1
- import { AWSLexV2ProviderOption } from '../types';
2
- export declare const resolveBotConfig: (botName: string) => AWSLexV2ProviderOption | undefined;