@aws-sdk/client-wisdom 3.35.0

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 (358) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/LICENSE +201 -0
  3. package/README.md +207 -0
  4. package/dist-cjs/Wisdom.js +480 -0
  5. package/dist-cjs/Wisdom.js.map +1 -0
  6. package/dist-cjs/WisdomClient.js +48 -0
  7. package/dist-cjs/WisdomClient.js.map +1 -0
  8. package/dist-cjs/commands/CreateAssistantAssociationCommand.js +63 -0
  9. package/dist-cjs/commands/CreateAssistantAssociationCommand.js.map +1 -0
  10. package/dist-cjs/commands/CreateAssistantCommand.js +61 -0
  11. package/dist-cjs/commands/CreateAssistantCommand.js.map +1 -0
  12. package/dist-cjs/commands/CreateContentCommand.js +62 -0
  13. package/dist-cjs/commands/CreateContentCommand.js.map +1 -0
  14. package/dist-cjs/commands/CreateKnowledgeBaseCommand.js +85 -0
  15. package/dist-cjs/commands/CreateKnowledgeBaseCommand.js.map +1 -0
  16. package/dist-cjs/commands/CreateSessionCommand.js +63 -0
  17. package/dist-cjs/commands/CreateSessionCommand.js.map +1 -0
  18. package/dist-cjs/commands/DeleteAssistantAssociationCommand.js +61 -0
  19. package/dist-cjs/commands/DeleteAssistantAssociationCommand.js.map +1 -0
  20. package/dist-cjs/commands/DeleteAssistantCommand.js +61 -0
  21. package/dist-cjs/commands/DeleteAssistantCommand.js.map +1 -0
  22. package/dist-cjs/commands/DeleteContentCommand.js +61 -0
  23. package/dist-cjs/commands/DeleteContentCommand.js.map +1 -0
  24. package/dist-cjs/commands/DeleteKnowledgeBaseCommand.js +68 -0
  25. package/dist-cjs/commands/DeleteKnowledgeBaseCommand.js.map +1 -0
  26. package/dist-cjs/commands/GetAssistantAssociationCommand.js +61 -0
  27. package/dist-cjs/commands/GetAssistantAssociationCommand.js.map +1 -0
  28. package/dist-cjs/commands/GetAssistantCommand.js +61 -0
  29. package/dist-cjs/commands/GetAssistantCommand.js.map +1 -0
  30. package/dist-cjs/commands/GetContentCommand.js +61 -0
  31. package/dist-cjs/commands/GetContentCommand.js.map +1 -0
  32. package/dist-cjs/commands/GetContentSummaryCommand.js +61 -0
  33. package/dist-cjs/commands/GetContentSummaryCommand.js.map +1 -0
  34. package/dist-cjs/commands/GetKnowledgeBaseCommand.js +61 -0
  35. package/dist-cjs/commands/GetKnowledgeBaseCommand.js.map +1 -0
  36. package/dist-cjs/commands/GetRecommendationsCommand.js +64 -0
  37. package/dist-cjs/commands/GetRecommendationsCommand.js.map +1 -0
  38. package/dist-cjs/commands/GetSessionCommand.js +61 -0
  39. package/dist-cjs/commands/GetSessionCommand.js.map +1 -0
  40. package/dist-cjs/commands/ListAssistantAssociationsCommand.js +61 -0
  41. package/dist-cjs/commands/ListAssistantAssociationsCommand.js.map +1 -0
  42. package/dist-cjs/commands/ListAssistantsCommand.js +61 -0
  43. package/dist-cjs/commands/ListAssistantsCommand.js.map +1 -0
  44. package/dist-cjs/commands/ListContentsCommand.js +61 -0
  45. package/dist-cjs/commands/ListContentsCommand.js.map +1 -0
  46. package/dist-cjs/commands/ListKnowledgeBasesCommand.js +61 -0
  47. package/dist-cjs/commands/ListKnowledgeBasesCommand.js.map +1 -0
  48. package/dist-cjs/commands/ListTagsForResourceCommand.js +61 -0
  49. package/dist-cjs/commands/ListTagsForResourceCommand.js.map +1 -0
  50. package/dist-cjs/commands/NotifyRecommendationsReceivedCommand.js +63 -0
  51. package/dist-cjs/commands/NotifyRecommendationsReceivedCommand.js.map +1 -0
  52. package/dist-cjs/commands/QueryAssistantCommand.js +63 -0
  53. package/dist-cjs/commands/QueryAssistantCommand.js.map +1 -0
  54. package/dist-cjs/commands/RemoveKnowledgeBaseTemplateUriCommand.js +61 -0
  55. package/dist-cjs/commands/RemoveKnowledgeBaseTemplateUriCommand.js.map +1 -0
  56. package/dist-cjs/commands/SearchContentCommand.js +62 -0
  57. package/dist-cjs/commands/SearchContentCommand.js.map +1 -0
  58. package/dist-cjs/commands/SearchSessionsCommand.js +61 -0
  59. package/dist-cjs/commands/SearchSessionsCommand.js.map +1 -0
  60. package/dist-cjs/commands/StartContentUploadCommand.js +64 -0
  61. package/dist-cjs/commands/StartContentUploadCommand.js.map +1 -0
  62. package/dist-cjs/commands/TagResourceCommand.js +61 -0
  63. package/dist-cjs/commands/TagResourceCommand.js.map +1 -0
  64. package/dist-cjs/commands/UntagResourceCommand.js +61 -0
  65. package/dist-cjs/commands/UntagResourceCommand.js.map +1 -0
  66. package/dist-cjs/commands/UpdateContentCommand.js +61 -0
  67. package/dist-cjs/commands/UpdateContentCommand.js.map +1 -0
  68. package/dist-cjs/commands/UpdateKnowledgeBaseTemplateUriCommand.js +66 -0
  69. package/dist-cjs/commands/UpdateKnowledgeBaseTemplateUriCommand.js.map +1 -0
  70. package/dist-cjs/endpoints.js +57 -0
  71. package/dist-cjs/endpoints.js.map +1 -0
  72. package/dist-cjs/index.js +46 -0
  73. package/dist-cjs/index.js.map +1 -0
  74. package/dist-cjs/models/index.js +5 -0
  75. package/dist-cjs/models/index.js.map +1 -0
  76. package/dist-cjs/models/models_0.js +989 -0
  77. package/dist-cjs/models/models_0.js.map +1 -0
  78. package/dist-cjs/pagination/Interfaces.js +3 -0
  79. package/dist-cjs/pagination/Interfaces.js.map +1 -0
  80. package/dist-cjs/pagination/ListAssistantAssociationsPaginator.js +46 -0
  81. package/dist-cjs/pagination/ListAssistantAssociationsPaginator.js.map +1 -0
  82. package/dist-cjs/pagination/ListAssistantsPaginator.js +46 -0
  83. package/dist-cjs/pagination/ListAssistantsPaginator.js.map +1 -0
  84. package/dist-cjs/pagination/ListContentsPaginator.js +46 -0
  85. package/dist-cjs/pagination/ListContentsPaginator.js.map +1 -0
  86. package/dist-cjs/pagination/ListKnowledgeBasesPaginator.js +46 -0
  87. package/dist-cjs/pagination/ListKnowledgeBasesPaginator.js.map +1 -0
  88. package/dist-cjs/pagination/QueryAssistantPaginator.js +46 -0
  89. package/dist-cjs/pagination/QueryAssistantPaginator.js.map +1 -0
  90. package/dist-cjs/pagination/SearchContentPaginator.js +46 -0
  91. package/dist-cjs/pagination/SearchContentPaginator.js.map +1 -0
  92. package/dist-cjs/pagination/SearchSessionsPaginator.js +46 -0
  93. package/dist-cjs/pagination/SearchSessionsPaginator.js.map +1 -0
  94. package/dist-cjs/protocols/Aws_restJson1.js +3717 -0
  95. package/dist-cjs/protocols/Aws_restJson1.js.map +1 -0
  96. package/dist-cjs/runtimeConfig.browser.js +42 -0
  97. package/dist-cjs/runtimeConfig.browser.js.map +1 -0
  98. package/dist-cjs/runtimeConfig.js +47 -0
  99. package/dist-cjs/runtimeConfig.js.map +1 -0
  100. package/dist-cjs/runtimeConfig.native.js +20 -0
  101. package/dist-cjs/runtimeConfig.native.js.map +1 -0
  102. package/dist-cjs/runtimeConfig.shared.js +21 -0
  103. package/dist-cjs/runtimeConfig.shared.js.map +1 -0
  104. package/dist-es/Wisdom.js +476 -0
  105. package/dist-es/Wisdom.js.map +1 -0
  106. package/dist-es/WisdomClient.js +38 -0
  107. package/dist-es/WisdomClient.js.map +1 -0
  108. package/dist-es/commands/CreateAssistantAssociationCommand.js +40 -0
  109. package/dist-es/commands/CreateAssistantAssociationCommand.js.map +1 -0
  110. package/dist-es/commands/CreateAssistantCommand.js +40 -0
  111. package/dist-es/commands/CreateAssistantCommand.js.map +1 -0
  112. package/dist-es/commands/CreateContentCommand.js +40 -0
  113. package/dist-es/commands/CreateContentCommand.js.map +1 -0
  114. package/dist-es/commands/CreateKnowledgeBaseCommand.js +40 -0
  115. package/dist-es/commands/CreateKnowledgeBaseCommand.js.map +1 -0
  116. package/dist-es/commands/CreateSessionCommand.js +40 -0
  117. package/dist-es/commands/CreateSessionCommand.js.map +1 -0
  118. package/dist-es/commands/DeleteAssistantAssociationCommand.js +40 -0
  119. package/dist-es/commands/DeleteAssistantAssociationCommand.js.map +1 -0
  120. package/dist-es/commands/DeleteAssistantCommand.js +40 -0
  121. package/dist-es/commands/DeleteAssistantCommand.js.map +1 -0
  122. package/dist-es/commands/DeleteContentCommand.js +40 -0
  123. package/dist-es/commands/DeleteContentCommand.js.map +1 -0
  124. package/dist-es/commands/DeleteKnowledgeBaseCommand.js +40 -0
  125. package/dist-es/commands/DeleteKnowledgeBaseCommand.js.map +1 -0
  126. package/dist-es/commands/GetAssistantAssociationCommand.js +40 -0
  127. package/dist-es/commands/GetAssistantAssociationCommand.js.map +1 -0
  128. package/dist-es/commands/GetAssistantCommand.js +40 -0
  129. package/dist-es/commands/GetAssistantCommand.js.map +1 -0
  130. package/dist-es/commands/GetContentCommand.js +40 -0
  131. package/dist-es/commands/GetContentCommand.js.map +1 -0
  132. package/dist-es/commands/GetContentSummaryCommand.js +40 -0
  133. package/dist-es/commands/GetContentSummaryCommand.js.map +1 -0
  134. package/dist-es/commands/GetKnowledgeBaseCommand.js +40 -0
  135. package/dist-es/commands/GetKnowledgeBaseCommand.js.map +1 -0
  136. package/dist-es/commands/GetRecommendationsCommand.js +40 -0
  137. package/dist-es/commands/GetRecommendationsCommand.js.map +1 -0
  138. package/dist-es/commands/GetSessionCommand.js +40 -0
  139. package/dist-es/commands/GetSessionCommand.js.map +1 -0
  140. package/dist-es/commands/ListAssistantAssociationsCommand.js +40 -0
  141. package/dist-es/commands/ListAssistantAssociationsCommand.js.map +1 -0
  142. package/dist-es/commands/ListAssistantsCommand.js +40 -0
  143. package/dist-es/commands/ListAssistantsCommand.js.map +1 -0
  144. package/dist-es/commands/ListContentsCommand.js +40 -0
  145. package/dist-es/commands/ListContentsCommand.js.map +1 -0
  146. package/dist-es/commands/ListKnowledgeBasesCommand.js +40 -0
  147. package/dist-es/commands/ListKnowledgeBasesCommand.js.map +1 -0
  148. package/dist-es/commands/ListTagsForResourceCommand.js +40 -0
  149. package/dist-es/commands/ListTagsForResourceCommand.js.map +1 -0
  150. package/dist-es/commands/NotifyRecommendationsReceivedCommand.js +40 -0
  151. package/dist-es/commands/NotifyRecommendationsReceivedCommand.js.map +1 -0
  152. package/dist-es/commands/QueryAssistantCommand.js +40 -0
  153. package/dist-es/commands/QueryAssistantCommand.js.map +1 -0
  154. package/dist-es/commands/RemoveKnowledgeBaseTemplateUriCommand.js +40 -0
  155. package/dist-es/commands/RemoveKnowledgeBaseTemplateUriCommand.js.map +1 -0
  156. package/dist-es/commands/SearchContentCommand.js +40 -0
  157. package/dist-es/commands/SearchContentCommand.js.map +1 -0
  158. package/dist-es/commands/SearchSessionsCommand.js +40 -0
  159. package/dist-es/commands/SearchSessionsCommand.js.map +1 -0
  160. package/dist-es/commands/StartContentUploadCommand.js +40 -0
  161. package/dist-es/commands/StartContentUploadCommand.js.map +1 -0
  162. package/dist-es/commands/TagResourceCommand.js +40 -0
  163. package/dist-es/commands/TagResourceCommand.js.map +1 -0
  164. package/dist-es/commands/UntagResourceCommand.js +40 -0
  165. package/dist-es/commands/UntagResourceCommand.js.map +1 -0
  166. package/dist-es/commands/UpdateContentCommand.js +40 -0
  167. package/dist-es/commands/UpdateContentCommand.js.map +1 -0
  168. package/dist-es/commands/UpdateKnowledgeBaseTemplateUriCommand.js +40 -0
  169. package/dist-es/commands/UpdateKnowledgeBaseTemplateUriCommand.js.map +1 -0
  170. package/dist-es/endpoints.js +53 -0
  171. package/dist-es/endpoints.js.map +1 -0
  172. package/dist-es/index.js +43 -0
  173. package/dist-es/index.js.map +1 -0
  174. package/dist-es/models/index.js +2 -0
  175. package/dist-es/models/index.js.map +1 -0
  176. package/dist-es/models/models_0.js +495 -0
  177. package/dist-es/models/models_0.js.map +1 -0
  178. package/dist-es/pagination/Interfaces.js +2 -0
  179. package/dist-es/pagination/Interfaces.js.map +1 -0
  180. package/dist-es/pagination/ListAssistantAssociationsPaginator.js +75 -0
  181. package/dist-es/pagination/ListAssistantAssociationsPaginator.js.map +1 -0
  182. package/dist-es/pagination/ListAssistantsPaginator.js +75 -0
  183. package/dist-es/pagination/ListAssistantsPaginator.js.map +1 -0
  184. package/dist-es/pagination/ListContentsPaginator.js +75 -0
  185. package/dist-es/pagination/ListContentsPaginator.js.map +1 -0
  186. package/dist-es/pagination/ListKnowledgeBasesPaginator.js +75 -0
  187. package/dist-es/pagination/ListKnowledgeBasesPaginator.js.map +1 -0
  188. package/dist-es/pagination/QueryAssistantPaginator.js +75 -0
  189. package/dist-es/pagination/QueryAssistantPaginator.js.map +1 -0
  190. package/dist-es/pagination/SearchContentPaginator.js +75 -0
  191. package/dist-es/pagination/SearchContentPaginator.js.map +1 -0
  192. package/dist-es/pagination/SearchSessionsPaginator.js +75 -0
  193. package/dist-es/pagination/SearchSessionsPaginator.js.map +1 -0
  194. package/dist-es/protocols/Aws_restJson1.js +4214 -0
  195. package/dist-es/protocols/Aws_restJson1.js.map +1 -0
  196. package/dist-es/runtimeConfig.browser.js +17 -0
  197. package/dist-es/runtimeConfig.browser.js.map +1 -0
  198. package/dist-es/runtimeConfig.js +22 -0
  199. package/dist-es/runtimeConfig.js.map +1 -0
  200. package/dist-es/runtimeConfig.native.js +9 -0
  201. package/dist-es/runtimeConfig.native.js.map +1 -0
  202. package/dist-es/runtimeConfig.shared.js +14 -0
  203. package/dist-es/runtimeConfig.shared.js.map +1 -0
  204. package/dist-types/Wisdom.d.ts +280 -0
  205. package/dist-types/WisdomClient.d.ts +167 -0
  206. package/dist-types/commands/CreateAssistantAssociationCommand.d.ts +37 -0
  207. package/dist-types/commands/CreateAssistantCommand.d.ts +35 -0
  208. package/dist-types/commands/CreateContentCommand.d.ts +36 -0
  209. package/dist-types/commands/CreateKnowledgeBaseCommand.d.ts +59 -0
  210. package/dist-types/commands/CreateSessionCommand.d.ts +37 -0
  211. package/dist-types/commands/DeleteAssistantAssociationCommand.d.ts +35 -0
  212. package/dist-types/commands/DeleteAssistantCommand.d.ts +35 -0
  213. package/dist-types/commands/DeleteContentCommand.d.ts +35 -0
  214. package/dist-types/commands/DeleteKnowledgeBaseCommand.d.ts +42 -0
  215. package/dist-types/commands/GetAssistantAssociationCommand.d.ts +35 -0
  216. package/dist-types/commands/GetAssistantCommand.d.ts +35 -0
  217. package/dist-types/commands/GetContentCommand.d.ts +35 -0
  218. package/dist-types/commands/GetContentSummaryCommand.d.ts +35 -0
  219. package/dist-types/commands/GetKnowledgeBaseCommand.d.ts +35 -0
  220. package/dist-types/commands/GetRecommendationsCommand.d.ts +38 -0
  221. package/dist-types/commands/GetSessionCommand.d.ts +35 -0
  222. package/dist-types/commands/ListAssistantAssociationsCommand.d.ts +35 -0
  223. package/dist-types/commands/ListAssistantsCommand.d.ts +35 -0
  224. package/dist-types/commands/ListContentsCommand.d.ts +35 -0
  225. package/dist-types/commands/ListKnowledgeBasesCommand.d.ts +35 -0
  226. package/dist-types/commands/ListTagsForResourceCommand.d.ts +35 -0
  227. package/dist-types/commands/NotifyRecommendationsReceivedCommand.d.ts +37 -0
  228. package/dist-types/commands/QueryAssistantCommand.d.ts +37 -0
  229. package/dist-types/commands/RemoveKnowledgeBaseTemplateUriCommand.d.ts +35 -0
  230. package/dist-types/commands/SearchContentCommand.d.ts +36 -0
  231. package/dist-types/commands/SearchSessionsCommand.d.ts +35 -0
  232. package/dist-types/commands/StartContentUploadCommand.d.ts +38 -0
  233. package/dist-types/commands/TagResourceCommand.d.ts +35 -0
  234. package/dist-types/commands/UntagResourceCommand.d.ts +35 -0
  235. package/dist-types/commands/UpdateContentCommand.d.ts +35 -0
  236. package/dist-types/commands/UpdateKnowledgeBaseTemplateUriCommand.d.ts +40 -0
  237. package/dist-types/endpoints.d.ts +2 -0
  238. package/dist-types/index.d.ts +42 -0
  239. package/dist-types/models/index.d.ts +1 -0
  240. package/dist-types/models/models_0.d.ts +2073 -0
  241. package/dist-types/pagination/Interfaces.d.ts +6 -0
  242. package/dist-types/pagination/ListAssistantAssociationsPaginator.d.ts +4 -0
  243. package/dist-types/pagination/ListAssistantsPaginator.d.ts +4 -0
  244. package/dist-types/pagination/ListContentsPaginator.d.ts +4 -0
  245. package/dist-types/pagination/ListKnowledgeBasesPaginator.d.ts +4 -0
  246. package/dist-types/pagination/QueryAssistantPaginator.d.ts +4 -0
  247. package/dist-types/pagination/SearchContentPaginator.d.ts +4 -0
  248. package/dist-types/pagination/SearchSessionsPaginator.d.ts +4 -0
  249. package/dist-types/protocols/Aws_restJson1.d.ts +95 -0
  250. package/dist-types/runtimeConfig.browser.d.ts +37 -0
  251. package/dist-types/runtimeConfig.d.ts +37 -0
  252. package/dist-types/runtimeConfig.native.d.ts +36 -0
  253. package/dist-types/runtimeConfig.shared.d.ts +13 -0
  254. package/dist-types/ts3.4/Wisdom.d.ts +280 -0
  255. package/dist-types/ts3.4/WisdomClient.d.ts +167 -0
  256. package/dist-types/ts3.4/commands/CreateAssistantAssociationCommand.d.ts +37 -0
  257. package/dist-types/ts3.4/commands/CreateAssistantCommand.d.ts +35 -0
  258. package/dist-types/ts3.4/commands/CreateContentCommand.d.ts +36 -0
  259. package/dist-types/ts3.4/commands/CreateKnowledgeBaseCommand.d.ts +59 -0
  260. package/dist-types/ts3.4/commands/CreateSessionCommand.d.ts +37 -0
  261. package/dist-types/ts3.4/commands/DeleteAssistantAssociationCommand.d.ts +35 -0
  262. package/dist-types/ts3.4/commands/DeleteAssistantCommand.d.ts +35 -0
  263. package/dist-types/ts3.4/commands/DeleteContentCommand.d.ts +35 -0
  264. package/dist-types/ts3.4/commands/DeleteKnowledgeBaseCommand.d.ts +42 -0
  265. package/dist-types/ts3.4/commands/GetAssistantAssociationCommand.d.ts +35 -0
  266. package/dist-types/ts3.4/commands/GetAssistantCommand.d.ts +35 -0
  267. package/dist-types/ts3.4/commands/GetContentCommand.d.ts +35 -0
  268. package/dist-types/ts3.4/commands/GetContentSummaryCommand.d.ts +35 -0
  269. package/dist-types/ts3.4/commands/GetKnowledgeBaseCommand.d.ts +35 -0
  270. package/dist-types/ts3.4/commands/GetRecommendationsCommand.d.ts +38 -0
  271. package/dist-types/ts3.4/commands/GetSessionCommand.d.ts +35 -0
  272. package/dist-types/ts3.4/commands/ListAssistantAssociationsCommand.d.ts +35 -0
  273. package/dist-types/ts3.4/commands/ListAssistantsCommand.d.ts +35 -0
  274. package/dist-types/ts3.4/commands/ListContentsCommand.d.ts +35 -0
  275. package/dist-types/ts3.4/commands/ListKnowledgeBasesCommand.d.ts +35 -0
  276. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +35 -0
  277. package/dist-types/ts3.4/commands/NotifyRecommendationsReceivedCommand.d.ts +37 -0
  278. package/dist-types/ts3.4/commands/QueryAssistantCommand.d.ts +37 -0
  279. package/dist-types/ts3.4/commands/RemoveKnowledgeBaseTemplateUriCommand.d.ts +35 -0
  280. package/dist-types/ts3.4/commands/SearchContentCommand.d.ts +36 -0
  281. package/dist-types/ts3.4/commands/SearchSessionsCommand.d.ts +35 -0
  282. package/dist-types/ts3.4/commands/StartContentUploadCommand.d.ts +38 -0
  283. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +35 -0
  284. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +35 -0
  285. package/dist-types/ts3.4/commands/UpdateContentCommand.d.ts +35 -0
  286. package/dist-types/ts3.4/commands/UpdateKnowledgeBaseTemplateUriCommand.d.ts +40 -0
  287. package/dist-types/ts3.4/endpoints.d.ts +2 -0
  288. package/dist-types/ts3.4/index.d.ts +42 -0
  289. package/dist-types/ts3.4/models/index.d.ts +1 -0
  290. package/dist-types/ts3.4/models/models_0.d.ts +2082 -0
  291. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  292. package/dist-types/ts3.4/pagination/ListAssistantAssociationsPaginator.d.ts +4 -0
  293. package/dist-types/ts3.4/pagination/ListAssistantsPaginator.d.ts +4 -0
  294. package/dist-types/ts3.4/pagination/ListContentsPaginator.d.ts +4 -0
  295. package/dist-types/ts3.4/pagination/ListKnowledgeBasesPaginator.d.ts +4 -0
  296. package/dist-types/ts3.4/pagination/QueryAssistantPaginator.d.ts +4 -0
  297. package/dist-types/ts3.4/pagination/SearchContentPaginator.d.ts +4 -0
  298. package/dist-types/ts3.4/pagination/SearchSessionsPaginator.d.ts +4 -0
  299. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +95 -0
  300. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +37 -0
  301. package/dist-types/ts3.4/runtimeConfig.d.ts +37 -0
  302. package/dist-types/ts3.4/runtimeConfig.native.d.ts +36 -0
  303. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +13 -0
  304. package/jest.config.js +4 -0
  305. package/package.json +93 -0
  306. package/src/Wisdom.ts +1175 -0
  307. package/src/WisdomClient.ts +363 -0
  308. package/src/commands/CreateAssistantAssociationCommand.ts +100 -0
  309. package/src/commands/CreateAssistantCommand.ts +95 -0
  310. package/src/commands/CreateContentCommand.ts +96 -0
  311. package/src/commands/CreateKnowledgeBaseCommand.ts +119 -0
  312. package/src/commands/CreateSessionCommand.ts +97 -0
  313. package/src/commands/DeleteAssistantAssociationCommand.ts +98 -0
  314. package/src/commands/DeleteAssistantCommand.ts +95 -0
  315. package/src/commands/DeleteContentCommand.ts +95 -0
  316. package/src/commands/DeleteKnowledgeBaseCommand.ts +102 -0
  317. package/src/commands/GetAssistantAssociationCommand.ts +95 -0
  318. package/src/commands/GetAssistantCommand.ts +95 -0
  319. package/src/commands/GetContentCommand.ts +95 -0
  320. package/src/commands/GetContentSummaryCommand.ts +95 -0
  321. package/src/commands/GetKnowledgeBaseCommand.ts +95 -0
  322. package/src/commands/GetRecommendationsCommand.ts +98 -0
  323. package/src/commands/GetSessionCommand.ts +95 -0
  324. package/src/commands/ListAssistantAssociationsCommand.ts +98 -0
  325. package/src/commands/ListAssistantsCommand.ts +95 -0
  326. package/src/commands/ListContentsCommand.ts +95 -0
  327. package/src/commands/ListKnowledgeBasesCommand.ts +95 -0
  328. package/src/commands/ListTagsForResourceCommand.ts +95 -0
  329. package/src/commands/NotifyRecommendationsReceivedCommand.ts +102 -0
  330. package/src/commands/QueryAssistantCommand.ts +97 -0
  331. package/src/commands/RemoveKnowledgeBaseTemplateUriCommand.ts +103 -0
  332. package/src/commands/SearchContentCommand.ts +96 -0
  333. package/src/commands/SearchSessionsCommand.ts +95 -0
  334. package/src/commands/StartContentUploadCommand.ts +98 -0
  335. package/src/commands/TagResourceCommand.ts +95 -0
  336. package/src/commands/UntagResourceCommand.ts +95 -0
  337. package/src/commands/UpdateContentCommand.ts +95 -0
  338. package/src/commands/UpdateKnowledgeBaseTemplateUriCommand.ts +108 -0
  339. package/src/endpoints.ts +57 -0
  340. package/src/index.ts +42 -0
  341. package/src/models/index.ts +1 -0
  342. package/src/models/models_0.ts +2662 -0
  343. package/src/pagination/Interfaces.ts +8 -0
  344. package/src/pagination/ListAssistantAssociationsPaginator.ts +59 -0
  345. package/src/pagination/ListAssistantsPaginator.ts +59 -0
  346. package/src/pagination/ListContentsPaginator.ts +59 -0
  347. package/src/pagination/ListKnowledgeBasesPaginator.ts +59 -0
  348. package/src/pagination/QueryAssistantPaginator.ts +59 -0
  349. package/src/pagination/SearchContentPaginator.ts +59 -0
  350. package/src/pagination/SearchSessionsPaginator.ts +59 -0
  351. package/src/protocols/Aws_restJson1.ts +4293 -0
  352. package/src/runtimeConfig.browser.ts +41 -0
  353. package/src/runtimeConfig.native.ts +17 -0
  354. package/src/runtimeConfig.shared.ts +17 -0
  355. package/src/runtimeConfig.ts +46 -0
  356. package/tsconfig.es.json +10 -0
  357. package/tsconfig.json +33 -0
  358. package/tsconfig.types.json +9 -0
@@ -0,0 +1,2662 @@
1
+ import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
2
+ import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
3
+
4
+ /**
5
+ * <p>You do not have sufficient access to perform this action.</p>
6
+ */
7
+ export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
8
+ name: "AccessDeniedException";
9
+ $fault: "client";
10
+ message?: string;
11
+ }
12
+
13
+ export namespace AccessDeniedException {
14
+ /**
15
+ * @internal
16
+ */
17
+ export const filterSensitiveLog = (obj: AccessDeniedException): any => ({
18
+ ...obj,
19
+ });
20
+ }
21
+
22
+ /**
23
+ * <p>Configuration information for Amazon AppIntegrations to automatically ingest content.</p>
24
+ */
25
+ export interface AppIntegrationsConfiguration {
26
+ /**
27
+ * <p>The Amazon Resource Name (ARN) of the AppIntegrations DataIntegration to use for ingesting content.</p>
28
+ */
29
+ appIntegrationArn: string | undefined;
30
+
31
+ /**
32
+ * <p>The fields from the source that are made available to your agents in Wisdom. </p>
33
+ * <ul>
34
+ * <li>
35
+ * <p> For <a href="https://developer.salesforce.com/docs/atlas.en-us.knowledge_dev.meta/knowledge_dev/sforce_api_objects_knowledge__kav.htm"> Salesforce</a>, you must include at least <code>Id</code>,
36
+ * <code>ArticleNumber</code>, <code>VersionNumber</code>, <code>Title</code>,
37
+ * <code>PublishStatus</code>, and <code>IsDeleted</code>. </p>
38
+ * </li>
39
+ * <li>
40
+ * <p>For <a href="https://developer.servicenow.com/dev.do#!/reference/api/rome/rest/knowledge-management-api"> ServiceNow</a>, you must include at least <code>number</code>,
41
+ * <code>short_description</code>, <code>sys_mod_count</code>, <code>workflow_state</code>,
42
+ * and <code>active</code>. </p>
43
+ * </li>
44
+ * </ul>
45
+ * <p>Make sure to include additional field(s); these are indexed and used to source
46
+ * recommendations. </p>
47
+ */
48
+ objectFields: string[] | undefined;
49
+ }
50
+
51
+ export namespace AppIntegrationsConfiguration {
52
+ /**
53
+ * @internal
54
+ */
55
+ export const filterSensitiveLog = (obj: AppIntegrationsConfiguration): any => ({
56
+ ...obj,
57
+ });
58
+ }
59
+
60
+ /**
61
+ * <p>The request could not be processed because of conflict in the current state of the
62
+ * resource. For example, if you're using a <code>Create</code> API (such as
63
+ * <code>CreateAssistant</code>) that accepts name, a conflicting resource (usually with the
64
+ * same name) is being created or mutated.</p>
65
+ */
66
+ export interface ConflictException extends __SmithyException, $MetadataBearer {
67
+ name: "ConflictException";
68
+ $fault: "client";
69
+ message?: string;
70
+ }
71
+
72
+ export namespace ConflictException {
73
+ /**
74
+ * @internal
75
+ */
76
+ export const filterSensitiveLog = (obj: ConflictException): any => ({
77
+ ...obj,
78
+ });
79
+ }
80
+
81
+ /**
82
+ * <p>The data that is input into Wisdom as a result of the assistant association.</p>
83
+ */
84
+ export type AssistantAssociationInputData =
85
+ | AssistantAssociationInputData.KnowledgeBaseIdMember
86
+ | AssistantAssociationInputData.$UnknownMember;
87
+
88
+ export namespace AssistantAssociationInputData {
89
+ /**
90
+ * <p>The the identifier of the knowledge base.</p>
91
+ */
92
+ export interface KnowledgeBaseIdMember {
93
+ knowledgeBaseId: string;
94
+ $unknown?: never;
95
+ }
96
+
97
+ export interface $UnknownMember {
98
+ knowledgeBaseId?: never;
99
+ $unknown: [string, any];
100
+ }
101
+
102
+ export interface Visitor<T> {
103
+ knowledgeBaseId: (value: string) => T;
104
+ _: (name: string, value: any) => T;
105
+ }
106
+
107
+ export const visit = <T>(value: AssistantAssociationInputData, visitor: Visitor<T>): T => {
108
+ if (value.knowledgeBaseId !== undefined) return visitor.knowledgeBaseId(value.knowledgeBaseId);
109
+ return visitor._(value.$unknown[0], value.$unknown[1]);
110
+ };
111
+
112
+ /**
113
+ * @internal
114
+ */
115
+ export const filterSensitiveLog = (obj: AssistantAssociationInputData): any => {
116
+ if (obj.knowledgeBaseId !== undefined) return { knowledgeBaseId: obj.knowledgeBaseId };
117
+ if (obj.$unknown !== undefined) return { [obj.$unknown[0]]: "UNKNOWN" };
118
+ };
119
+ }
120
+
121
+ export enum AssociationType {
122
+ KNOWLEDGE_BASE = "KNOWLEDGE_BASE",
123
+ }
124
+
125
+ export interface CreateAssistantAssociationRequest {
126
+ /**
127
+ * <p>The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
128
+ */
129
+ assistantId: string | undefined;
130
+
131
+ /**
132
+ * <p>The type of association.</p>
133
+ */
134
+ associationType: AssociationType | string | undefined;
135
+
136
+ /**
137
+ * <p>The identifier of the associated resource.</p>
138
+ */
139
+ association: AssistantAssociationInputData | undefined;
140
+
141
+ /**
142
+ * <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the
143
+ * request.</p>
144
+ */
145
+ clientToken?: string;
146
+
147
+ /**
148
+ * <p>The tags used to organize, track, or control access for this resource.</p>
149
+ */
150
+ tags?: { [key: string]: string };
151
+ }
152
+
153
+ export namespace CreateAssistantAssociationRequest {
154
+ /**
155
+ * @internal
156
+ */
157
+ export const filterSensitiveLog = (obj: CreateAssistantAssociationRequest): any => ({
158
+ ...obj,
159
+ ...(obj.association && { association: AssistantAssociationInputData.filterSensitiveLog(obj.association) }),
160
+ });
161
+ }
162
+
163
+ /**
164
+ * <p>Association information about the knowledge base.</p>
165
+ */
166
+ export interface KnowledgeBaseAssociationData {
167
+ /**
168
+ * <p>The the identifier of the knowledge base.</p>
169
+ */
170
+ knowledgeBaseId?: string;
171
+
172
+ /**
173
+ * <p>The Amazon Resource Name (ARN) of the knowledge base.</p>
174
+ */
175
+ knowledgeBaseArn?: string;
176
+ }
177
+
178
+ export namespace KnowledgeBaseAssociationData {
179
+ /**
180
+ * @internal
181
+ */
182
+ export const filterSensitiveLog = (obj: KnowledgeBaseAssociationData): any => ({
183
+ ...obj,
184
+ });
185
+ }
186
+
187
+ /**
188
+ * <p>The data that is output as a result of the assistant association.</p>
189
+ */
190
+ export type AssistantAssociationOutputData =
191
+ | AssistantAssociationOutputData.KnowledgeBaseAssociationMember
192
+ | AssistantAssociationOutputData.$UnknownMember;
193
+
194
+ export namespace AssistantAssociationOutputData {
195
+ /**
196
+ * <p>The knowledge base where output data is sent.</p>
197
+ */
198
+ export interface KnowledgeBaseAssociationMember {
199
+ knowledgeBaseAssociation: KnowledgeBaseAssociationData;
200
+ $unknown?: never;
201
+ }
202
+
203
+ export interface $UnknownMember {
204
+ knowledgeBaseAssociation?: never;
205
+ $unknown: [string, any];
206
+ }
207
+
208
+ export interface Visitor<T> {
209
+ knowledgeBaseAssociation: (value: KnowledgeBaseAssociationData) => T;
210
+ _: (name: string, value: any) => T;
211
+ }
212
+
213
+ export const visit = <T>(value: AssistantAssociationOutputData, visitor: Visitor<T>): T => {
214
+ if (value.knowledgeBaseAssociation !== undefined)
215
+ return visitor.knowledgeBaseAssociation(value.knowledgeBaseAssociation);
216
+ return visitor._(value.$unknown[0], value.$unknown[1]);
217
+ };
218
+
219
+ /**
220
+ * @internal
221
+ */
222
+ export const filterSensitiveLog = (obj: AssistantAssociationOutputData): any => {
223
+ if (obj.knowledgeBaseAssociation !== undefined)
224
+ return {
225
+ knowledgeBaseAssociation: KnowledgeBaseAssociationData.filterSensitiveLog(obj.knowledgeBaseAssociation),
226
+ };
227
+ if (obj.$unknown !== undefined) return { [obj.$unknown[0]]: "UNKNOWN" };
228
+ };
229
+ }
230
+
231
+ /**
232
+ * <p>Information about the assistant association.</p>
233
+ */
234
+ export interface AssistantAssociationData {
235
+ /**
236
+ * <p>The identifier of the assistant association.</p>
237
+ */
238
+ assistantAssociationId: string | undefined;
239
+
240
+ /**
241
+ * <p>The Amazon Resource Name (ARN) of the assistant association.</p>
242
+ */
243
+ assistantAssociationArn: string | undefined;
244
+
245
+ /**
246
+ * <p>The identifier of the Wisdom assistant.</p>
247
+ */
248
+ assistantId: string | undefined;
249
+
250
+ /**
251
+ * <p>The Amazon Resource Name (ARN) of the Wisdom assistant</p>
252
+ */
253
+ assistantArn: string | undefined;
254
+
255
+ /**
256
+ * <p>The type of association.</p>
257
+ */
258
+ associationType: AssociationType | string | undefined;
259
+
260
+ /**
261
+ * <p>A union type that currently has a single argument, the knowledge base ID.</p>
262
+ */
263
+ associationData: AssistantAssociationOutputData | undefined;
264
+
265
+ /**
266
+ * <p>The tags used to organize, track, or control access for this resource.</p>
267
+ */
268
+ tags?: { [key: string]: string };
269
+ }
270
+
271
+ export namespace AssistantAssociationData {
272
+ /**
273
+ * @internal
274
+ */
275
+ export const filterSensitiveLog = (obj: AssistantAssociationData): any => ({
276
+ ...obj,
277
+ ...(obj.associationData && {
278
+ associationData: AssistantAssociationOutputData.filterSensitiveLog(obj.associationData),
279
+ }),
280
+ });
281
+ }
282
+
283
+ export interface CreateAssistantAssociationResponse {
284
+ /**
285
+ * <p>The assistant association.</p>
286
+ */
287
+ assistantAssociation?: AssistantAssociationData;
288
+ }
289
+
290
+ export namespace CreateAssistantAssociationResponse {
291
+ /**
292
+ * @internal
293
+ */
294
+ export const filterSensitiveLog = (obj: CreateAssistantAssociationResponse): any => ({
295
+ ...obj,
296
+ ...(obj.assistantAssociation && {
297
+ assistantAssociation: AssistantAssociationData.filterSensitiveLog(obj.assistantAssociation),
298
+ }),
299
+ });
300
+ }
301
+
302
+ /**
303
+ * <p>The specified resource does not exist.</p>
304
+ */
305
+ export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
306
+ name: "ResourceNotFoundException";
307
+ $fault: "client";
308
+ message?: string;
309
+ /**
310
+ * <p>The specified resource name.</p>
311
+ */
312
+ resourceName?: string;
313
+ }
314
+
315
+ export namespace ResourceNotFoundException {
316
+ /**
317
+ * @internal
318
+ */
319
+ export const filterSensitiveLog = (obj: ResourceNotFoundException): any => ({
320
+ ...obj,
321
+ });
322
+ }
323
+
324
+ /**
325
+ * <p>You've exceeded your service quota. To perform the requested action, remove some of the
326
+ * relevant resources, or use service quotas to request a service quota increase.</p>
327
+ */
328
+ export interface ServiceQuotaExceededException extends __SmithyException, $MetadataBearer {
329
+ name: "ServiceQuotaExceededException";
330
+ $fault: "client";
331
+ message?: string;
332
+ }
333
+
334
+ export namespace ServiceQuotaExceededException {
335
+ /**
336
+ * @internal
337
+ */
338
+ export const filterSensitiveLog = (obj: ServiceQuotaExceededException): any => ({
339
+ ...obj,
340
+ });
341
+ }
342
+
343
+ /**
344
+ * <p>The input fails to satisfy the constraints specified by an AWS service.</p>
345
+ */
346
+ export interface ValidationException extends __SmithyException, $MetadataBearer {
347
+ name: "ValidationException";
348
+ $fault: "client";
349
+ message?: string;
350
+ }
351
+
352
+ export namespace ValidationException {
353
+ /**
354
+ * @internal
355
+ */
356
+ export const filterSensitiveLog = (obj: ValidationException): any => ({
357
+ ...obj,
358
+ });
359
+ }
360
+
361
+ export interface DeleteAssistantAssociationRequest {
362
+ /**
363
+ * <p>The identifier of the assistant association. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
364
+ */
365
+ assistantAssociationId: string | undefined;
366
+
367
+ /**
368
+ * <p>The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
369
+ */
370
+ assistantId: string | undefined;
371
+ }
372
+
373
+ export namespace DeleteAssistantAssociationRequest {
374
+ /**
375
+ * @internal
376
+ */
377
+ export const filterSensitiveLog = (obj: DeleteAssistantAssociationRequest): any => ({
378
+ ...obj,
379
+ });
380
+ }
381
+
382
+ export interface DeleteAssistantAssociationResponse {}
383
+
384
+ export namespace DeleteAssistantAssociationResponse {
385
+ /**
386
+ * @internal
387
+ */
388
+ export const filterSensitiveLog = (obj: DeleteAssistantAssociationResponse): any => ({
389
+ ...obj,
390
+ });
391
+ }
392
+
393
+ export interface GetAssistantAssociationRequest {
394
+ /**
395
+ * <p>The identifier of the assistant association. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
396
+ */
397
+ assistantAssociationId: string | undefined;
398
+
399
+ /**
400
+ * <p>The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
401
+ */
402
+ assistantId: string | undefined;
403
+ }
404
+
405
+ export namespace GetAssistantAssociationRequest {
406
+ /**
407
+ * @internal
408
+ */
409
+ export const filterSensitiveLog = (obj: GetAssistantAssociationRequest): any => ({
410
+ ...obj,
411
+ });
412
+ }
413
+
414
+ export interface GetAssistantAssociationResponse {
415
+ /**
416
+ * <p>The assistant association.</p>
417
+ */
418
+ assistantAssociation?: AssistantAssociationData;
419
+ }
420
+
421
+ export namespace GetAssistantAssociationResponse {
422
+ /**
423
+ * @internal
424
+ */
425
+ export const filterSensitiveLog = (obj: GetAssistantAssociationResponse): any => ({
426
+ ...obj,
427
+ ...(obj.assistantAssociation && {
428
+ assistantAssociation: AssistantAssociationData.filterSensitiveLog(obj.assistantAssociation),
429
+ }),
430
+ });
431
+ }
432
+
433
+ export interface ListAssistantAssociationsRequest {
434
+ /**
435
+ * <p>The token for the next set of results. Use the value returned in the previous
436
+ * response in the next request to retrieve the next set of results.</p>
437
+ */
438
+ nextToken?: string;
439
+
440
+ /**
441
+ * <p>The maximum number of results to return per page.</p>
442
+ */
443
+ maxResults?: number;
444
+
445
+ /**
446
+ * <p>The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
447
+ */
448
+ assistantId: string | undefined;
449
+ }
450
+
451
+ export namespace ListAssistantAssociationsRequest {
452
+ /**
453
+ * @internal
454
+ */
455
+ export const filterSensitiveLog = (obj: ListAssistantAssociationsRequest): any => ({
456
+ ...obj,
457
+ });
458
+ }
459
+
460
+ /**
461
+ * <p>Summary information about the assistant association.</p>
462
+ */
463
+ export interface AssistantAssociationSummary {
464
+ /**
465
+ * <p>The identifier of the assistant association.</p>
466
+ */
467
+ assistantAssociationId: string | undefined;
468
+
469
+ /**
470
+ * <p>The Amazon Resource Name (ARN) of the assistant association.</p>
471
+ */
472
+ assistantAssociationArn: string | undefined;
473
+
474
+ /**
475
+ * <p>The identifier of the Wisdom assistant.</p>
476
+ */
477
+ assistantId: string | undefined;
478
+
479
+ /**
480
+ * <p>The Amazon Resource Name (ARN) of the Wisdom assistant</p>
481
+ */
482
+ assistantArn: string | undefined;
483
+
484
+ /**
485
+ * <p>The type of association.</p>
486
+ */
487
+ associationType: AssociationType | string | undefined;
488
+
489
+ /**
490
+ * <p>The association data.</p>
491
+ */
492
+ associationData: AssistantAssociationOutputData | undefined;
493
+
494
+ /**
495
+ * <p>The tags used to organize, track, or control access for this resource.</p>
496
+ */
497
+ tags?: { [key: string]: string };
498
+ }
499
+
500
+ export namespace AssistantAssociationSummary {
501
+ /**
502
+ * @internal
503
+ */
504
+ export const filterSensitiveLog = (obj: AssistantAssociationSummary): any => ({
505
+ ...obj,
506
+ ...(obj.associationData && {
507
+ associationData: AssistantAssociationOutputData.filterSensitiveLog(obj.associationData),
508
+ }),
509
+ });
510
+ }
511
+
512
+ export interface ListAssistantAssociationsResponse {
513
+ /**
514
+ * <p>Summary information about assistant associations.</p>
515
+ */
516
+ assistantAssociationSummaries: AssistantAssociationSummary[] | undefined;
517
+
518
+ /**
519
+ * <p>If there are additional results, this is the token for the next set of results.</p>
520
+ */
521
+ nextToken?: string;
522
+ }
523
+
524
+ export namespace ListAssistantAssociationsResponse {
525
+ /**
526
+ * @internal
527
+ */
528
+ export const filterSensitiveLog = (obj: ListAssistantAssociationsResponse): any => ({
529
+ ...obj,
530
+ ...(obj.assistantAssociationSummaries && {
531
+ assistantAssociationSummaries: obj.assistantAssociationSummaries.map((item) =>
532
+ AssistantAssociationSummary.filterSensitiveLog(item)
533
+ ),
534
+ }),
535
+ });
536
+ }
537
+
538
+ /**
539
+ * <p>The KMS key used for encryption.</p>
540
+ */
541
+ export interface ServerSideEncryptionConfiguration {
542
+ /**
543
+ * <p>The KMS key. For information about valid ID values, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id">Key identifiers (KeyId)</a> in the
544
+ * <i>AWS Key Management Service Developer Guide</i>. </p>
545
+ */
546
+ kmsKeyId?: string;
547
+ }
548
+
549
+ export namespace ServerSideEncryptionConfiguration {
550
+ /**
551
+ * @internal
552
+ */
553
+ export const filterSensitiveLog = (obj: ServerSideEncryptionConfiguration): any => ({
554
+ ...obj,
555
+ });
556
+ }
557
+
558
+ export enum AssistantType {
559
+ AGENT = "AGENT",
560
+ }
561
+
562
+ export interface CreateAssistantRequest {
563
+ /**
564
+ * <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the
565
+ * request.</p>
566
+ */
567
+ clientToken?: string;
568
+
569
+ /**
570
+ * <p>The name of the assistant.</p>
571
+ */
572
+ name: string | undefined;
573
+
574
+ /**
575
+ * <p>The type of assistant.</p>
576
+ */
577
+ type: AssistantType | string | undefined;
578
+
579
+ /**
580
+ * <p>The description of the assistant.</p>
581
+ */
582
+ description?: string;
583
+
584
+ /**
585
+ * <p>The tags used to organize, track, or control access for this resource.</p>
586
+ */
587
+ tags?: { [key: string]: string };
588
+
589
+ /**
590
+ * <p>The KMS key used for encryption.</p>
591
+ */
592
+ serverSideEncryptionConfiguration?: ServerSideEncryptionConfiguration;
593
+ }
594
+
595
+ export namespace CreateAssistantRequest {
596
+ /**
597
+ * @internal
598
+ */
599
+ export const filterSensitiveLog = (obj: CreateAssistantRequest): any => ({
600
+ ...obj,
601
+ });
602
+ }
603
+
604
+ export enum AssistantStatus {
605
+ ACTIVE = "ACTIVE",
606
+ CREATE_FAILED = "CREATE_FAILED",
607
+ CREATE_IN_PROGRESS = "CREATE_IN_PROGRESS",
608
+ DELETED = "DELETED",
609
+ DELETE_FAILED = "DELETE_FAILED",
610
+ DELETE_IN_PROGRESS = "DELETE_IN_PROGRESS",
611
+ }
612
+
613
+ /**
614
+ * <p>The assistant data.</p>
615
+ */
616
+ export interface AssistantData {
617
+ /**
618
+ * <p>The identifier of the Wisdom assistant.</p>
619
+ */
620
+ assistantId: string | undefined;
621
+
622
+ /**
623
+ * <p>The Amazon Resource Name (ARN) of the Wisdom assistant</p>
624
+ */
625
+ assistantArn: string | undefined;
626
+
627
+ /**
628
+ * <p>The name.</p>
629
+ */
630
+ name: string | undefined;
631
+
632
+ /**
633
+ * <p>The type of assistant.</p>
634
+ */
635
+ type: AssistantType | string | undefined;
636
+
637
+ /**
638
+ * <p>The status of the assistant.</p>
639
+ */
640
+ status: AssistantStatus | string | undefined;
641
+
642
+ /**
643
+ * <p>The description.</p>
644
+ */
645
+ description?: string;
646
+
647
+ /**
648
+ * <p>The tags used to organize, track, or control access for this resource.</p>
649
+ */
650
+ tags?: { [key: string]: string };
651
+
652
+ /**
653
+ * <p>The KMS key used for encryption.</p>
654
+ */
655
+ serverSideEncryptionConfiguration?: ServerSideEncryptionConfiguration;
656
+ }
657
+
658
+ export namespace AssistantData {
659
+ /**
660
+ * @internal
661
+ */
662
+ export const filterSensitiveLog = (obj: AssistantData): any => ({
663
+ ...obj,
664
+ });
665
+ }
666
+
667
+ export interface CreateAssistantResponse {
668
+ /**
669
+ * <p>Information about the assistant.</p>
670
+ */
671
+ assistant?: AssistantData;
672
+ }
673
+
674
+ export namespace CreateAssistantResponse {
675
+ /**
676
+ * @internal
677
+ */
678
+ export const filterSensitiveLog = (obj: CreateAssistantResponse): any => ({
679
+ ...obj,
680
+ });
681
+ }
682
+
683
+ export interface DeleteAssistantRequest {
684
+ /**
685
+ * <p>The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
686
+ */
687
+ assistantId: string | undefined;
688
+ }
689
+
690
+ export namespace DeleteAssistantRequest {
691
+ /**
692
+ * @internal
693
+ */
694
+ export const filterSensitiveLog = (obj: DeleteAssistantRequest): any => ({
695
+ ...obj,
696
+ });
697
+ }
698
+
699
+ export interface DeleteAssistantResponse {}
700
+
701
+ export namespace DeleteAssistantResponse {
702
+ /**
703
+ * @internal
704
+ */
705
+ export const filterSensitiveLog = (obj: DeleteAssistantResponse): any => ({
706
+ ...obj,
707
+ });
708
+ }
709
+
710
+ export interface GetAssistantRequest {
711
+ /**
712
+ * <p>The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
713
+ */
714
+ assistantId: string | undefined;
715
+ }
716
+
717
+ export namespace GetAssistantRequest {
718
+ /**
719
+ * @internal
720
+ */
721
+ export const filterSensitiveLog = (obj: GetAssistantRequest): any => ({
722
+ ...obj,
723
+ });
724
+ }
725
+
726
+ export interface GetAssistantResponse {
727
+ /**
728
+ * <p>Information about the assistant.</p>
729
+ */
730
+ assistant?: AssistantData;
731
+ }
732
+
733
+ export namespace GetAssistantResponse {
734
+ /**
735
+ * @internal
736
+ */
737
+ export const filterSensitiveLog = (obj: GetAssistantResponse): any => ({
738
+ ...obj,
739
+ });
740
+ }
741
+
742
+ export interface GetRecommendationsRequest {
743
+ /**
744
+ * <p>The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
745
+ */
746
+ assistantId: string | undefined;
747
+
748
+ /**
749
+ * <p>The identifier of the session. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
750
+ */
751
+ sessionId: string | undefined;
752
+
753
+ /**
754
+ * <p>The maximum number of results to return per page.</p>
755
+ */
756
+ maxResults?: number;
757
+
758
+ /**
759
+ * <p>The duration (in seconds) for which the call waits for a recommendation to be made
760
+ * available before returning. If a recommendation is available, the call returns sooner than
761
+ * <code>WaitTimeSeconds</code>. If no messages are available and the wait time expires, the
762
+ * call returns successfully with an empty list.</p>
763
+ */
764
+ waitTimeSeconds?: number;
765
+ }
766
+
767
+ export namespace GetRecommendationsRequest {
768
+ /**
769
+ * @internal
770
+ */
771
+ export const filterSensitiveLog = (obj: GetRecommendationsRequest): any => ({
772
+ ...obj,
773
+ });
774
+ }
775
+
776
+ /**
777
+ * <p>Reference information about the content.</p>
778
+ */
779
+ export interface ContentReference {
780
+ /**
781
+ * <p>The Amazon Resource Name (ARN) of the knowledge base.</p>
782
+ */
783
+ knowledgeBaseArn?: string;
784
+
785
+ /**
786
+ * <p>The the identifier of the knowledge base.</p>
787
+ */
788
+ knowledgeBaseId?: string;
789
+
790
+ /**
791
+ * <p>The Amazon Resource Name (ARN) of the content.</p>
792
+ */
793
+ contentArn?: string;
794
+
795
+ /**
796
+ * <p>The identifier of the content.</p>
797
+ */
798
+ contentId?: string;
799
+ }
800
+
801
+ export namespace ContentReference {
802
+ /**
803
+ * @internal
804
+ */
805
+ export const filterSensitiveLog = (obj: ContentReference): any => ({
806
+ ...obj,
807
+ });
808
+ }
809
+
810
+ /**
811
+ * <p>Offset specification to describe highlighting of document excerpts for rendering search
812
+ * results and recommendations.</p>
813
+ */
814
+ export interface Highlight {
815
+ /**
816
+ * <p>The offset for the start of the highlight.</p>
817
+ */
818
+ beginOffsetInclusive?: number;
819
+
820
+ /**
821
+ * <p>The offset for the end of the highlight.</p>
822
+ */
823
+ endOffsetExclusive?: number;
824
+ }
825
+
826
+ export namespace Highlight {
827
+ /**
828
+ * @internal
829
+ */
830
+ export const filterSensitiveLog = (obj: Highlight): any => ({
831
+ ...obj,
832
+ });
833
+ }
834
+
835
+ /**
836
+ * <p>The text of the document.</p>
837
+ */
838
+ export interface DocumentText {
839
+ /**
840
+ * <p>Text in the document.</p>
841
+ */
842
+ text?: string;
843
+
844
+ /**
845
+ * <p>Highlights in the document text.</p>
846
+ */
847
+ highlights?: Highlight[];
848
+ }
849
+
850
+ export namespace DocumentText {
851
+ /**
852
+ * @internal
853
+ */
854
+ export const filterSensitiveLog = (obj: DocumentText): any => ({
855
+ ...obj,
856
+ ...(obj.text && { text: SENSITIVE_STRING }),
857
+ });
858
+ }
859
+
860
+ /**
861
+ * <p>The document.</p>
862
+ */
863
+ export interface Document {
864
+ /**
865
+ * <p>A reference to the content resource.</p>
866
+ */
867
+ contentReference: ContentReference | undefined;
868
+
869
+ /**
870
+ * <p>The title of the document.</p>
871
+ */
872
+ title?: DocumentText;
873
+
874
+ /**
875
+ * <p>The excerpt from the document.</p>
876
+ */
877
+ excerpt?: DocumentText;
878
+ }
879
+
880
+ export namespace Document {
881
+ /**
882
+ * @internal
883
+ */
884
+ export const filterSensitiveLog = (obj: Document): any => ({
885
+ ...obj,
886
+ ...(obj.title && { title: DocumentText.filterSensitiveLog(obj.title) }),
887
+ ...(obj.excerpt && { excerpt: DocumentText.filterSensitiveLog(obj.excerpt) }),
888
+ });
889
+ }
890
+
891
+ export enum RelevanceLevel {
892
+ HIGH = "HIGH",
893
+ LOW = "LOW",
894
+ MEDIUM = "MEDIUM",
895
+ }
896
+
897
+ /**
898
+ * <p>Information about the recommendation.</p>
899
+ */
900
+ export interface RecommendationData {
901
+ /**
902
+ * <p>The identifier of the recommendation.</p>
903
+ */
904
+ recommendationId: string | undefined;
905
+
906
+ /**
907
+ * <p>The recommended document.</p>
908
+ */
909
+ document: Document | undefined;
910
+
911
+ /**
912
+ * <p>The relevance score of the recommendation.</p>
913
+ */
914
+ relevanceScore?: number;
915
+
916
+ /**
917
+ * <p>The relevance level of the recommendation.</p>
918
+ */
919
+ relevanceLevel?: RelevanceLevel | string;
920
+ }
921
+
922
+ export namespace RecommendationData {
923
+ /**
924
+ * @internal
925
+ */
926
+ export const filterSensitiveLog = (obj: RecommendationData): any => ({
927
+ ...obj,
928
+ ...(obj.document && { document: Document.filterSensitiveLog(obj.document) }),
929
+ });
930
+ }
931
+
932
+ export interface GetRecommendationsResponse {
933
+ /**
934
+ * <p>The recommendations.</p>
935
+ */
936
+ recommendations: RecommendationData[] | undefined;
937
+ }
938
+
939
+ export namespace GetRecommendationsResponse {
940
+ /**
941
+ * @internal
942
+ */
943
+ export const filterSensitiveLog = (obj: GetRecommendationsResponse): any => ({
944
+ ...obj,
945
+ ...(obj.recommendations && {
946
+ recommendations: obj.recommendations.map((item) => RecommendationData.filterSensitiveLog(item)),
947
+ }),
948
+ });
949
+ }
950
+
951
+ export interface ListAssistantsRequest {
952
+ /**
953
+ * <p>The token for the next set of results. Use the value returned in the previous
954
+ * response in the next request to retrieve the next set of results.</p>
955
+ */
956
+ nextToken?: string;
957
+
958
+ /**
959
+ * <p>The maximum number of results to return per page.</p>
960
+ */
961
+ maxResults?: number;
962
+ }
963
+
964
+ export namespace ListAssistantsRequest {
965
+ /**
966
+ * @internal
967
+ */
968
+ export const filterSensitiveLog = (obj: ListAssistantsRequest): any => ({
969
+ ...obj,
970
+ });
971
+ }
972
+
973
+ /**
974
+ * <p>Summary information about the assistant.</p>
975
+ */
976
+ export interface AssistantSummary {
977
+ /**
978
+ * <p>The identifier of the Wisdom assistant.</p>
979
+ */
980
+ assistantId: string | undefined;
981
+
982
+ /**
983
+ * <p>The Amazon Resource Name (ARN) of the Wisdom assistant</p>
984
+ */
985
+ assistantArn: string | undefined;
986
+
987
+ /**
988
+ * <p>The name of the assistant.</p>
989
+ */
990
+ name: string | undefined;
991
+
992
+ /**
993
+ * <p>The type of the assistant.</p>
994
+ */
995
+ type: AssistantType | string | undefined;
996
+
997
+ /**
998
+ * <p>The status of the assistant.</p>
999
+ */
1000
+ status: AssistantStatus | string | undefined;
1001
+
1002
+ /**
1003
+ * <p>The description of the assistant.</p>
1004
+ */
1005
+ description?: string;
1006
+
1007
+ /**
1008
+ * <p>The tags used to organize, track, or control access for this resource.</p>
1009
+ */
1010
+ tags?: { [key: string]: string };
1011
+
1012
+ /**
1013
+ * <p>The KMS key used for encryption.</p>
1014
+ */
1015
+ serverSideEncryptionConfiguration?: ServerSideEncryptionConfiguration;
1016
+ }
1017
+
1018
+ export namespace AssistantSummary {
1019
+ /**
1020
+ * @internal
1021
+ */
1022
+ export const filterSensitiveLog = (obj: AssistantSummary): any => ({
1023
+ ...obj,
1024
+ });
1025
+ }
1026
+
1027
+ export interface ListAssistantsResponse {
1028
+ /**
1029
+ * <p>Information about the assistants.</p>
1030
+ */
1031
+ assistantSummaries: AssistantSummary[] | undefined;
1032
+
1033
+ /**
1034
+ * <p>If there are additional results, this is the token for the next set of results.</p>
1035
+ */
1036
+ nextToken?: string;
1037
+ }
1038
+
1039
+ export namespace ListAssistantsResponse {
1040
+ /**
1041
+ * @internal
1042
+ */
1043
+ export const filterSensitiveLog = (obj: ListAssistantsResponse): any => ({
1044
+ ...obj,
1045
+ });
1046
+ }
1047
+
1048
+ export interface NotifyRecommendationsReceivedRequest {
1049
+ /**
1050
+ * <p>The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
1051
+ */
1052
+ assistantId: string | undefined;
1053
+
1054
+ /**
1055
+ * <p>The identifier of the session. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
1056
+ */
1057
+ sessionId: string | undefined;
1058
+
1059
+ /**
1060
+ * <p>The identifiers of the recommendations.</p>
1061
+ */
1062
+ recommendationIds: string[] | undefined;
1063
+ }
1064
+
1065
+ export namespace NotifyRecommendationsReceivedRequest {
1066
+ /**
1067
+ * @internal
1068
+ */
1069
+ export const filterSensitiveLog = (obj: NotifyRecommendationsReceivedRequest): any => ({
1070
+ ...obj,
1071
+ });
1072
+ }
1073
+
1074
+ /**
1075
+ * <p>An error occurred when creating a recommendation.</p>
1076
+ */
1077
+ export interface NotifyRecommendationsReceivedError {
1078
+ /**
1079
+ * <p>The identifier of the recommendation that is in error.</p>
1080
+ */
1081
+ recommendationId?: string;
1082
+
1083
+ /**
1084
+ * <p>A recommendation is causing an error.</p>
1085
+ */
1086
+ message?: string;
1087
+ }
1088
+
1089
+ export namespace NotifyRecommendationsReceivedError {
1090
+ /**
1091
+ * @internal
1092
+ */
1093
+ export const filterSensitiveLog = (obj: NotifyRecommendationsReceivedError): any => ({
1094
+ ...obj,
1095
+ });
1096
+ }
1097
+
1098
+ export interface NotifyRecommendationsReceivedResponse {
1099
+ /**
1100
+ * <p>The identifiers of the recommendations.</p>
1101
+ */
1102
+ recommendationIds?: string[];
1103
+
1104
+ /**
1105
+ * <p>The identifiers of recommendations that are causing errors.</p>
1106
+ */
1107
+ errors?: NotifyRecommendationsReceivedError[];
1108
+ }
1109
+
1110
+ export namespace NotifyRecommendationsReceivedResponse {
1111
+ /**
1112
+ * @internal
1113
+ */
1114
+ export const filterSensitiveLog = (obj: NotifyRecommendationsReceivedResponse): any => ({
1115
+ ...obj,
1116
+ });
1117
+ }
1118
+
1119
+ export interface QueryAssistantRequest {
1120
+ /**
1121
+ * <p>The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
1122
+ */
1123
+ assistantId: string | undefined;
1124
+
1125
+ /**
1126
+ * <p>The text to search for.</p>
1127
+ */
1128
+ queryText: string | undefined;
1129
+
1130
+ /**
1131
+ * <p>The token for the next set of results. Use the value returned in the previous
1132
+ * response in the next request to retrieve the next set of results.</p>
1133
+ */
1134
+ nextToken?: string;
1135
+
1136
+ /**
1137
+ * <p>The maximum number of results to return per page.</p>
1138
+ */
1139
+ maxResults?: number;
1140
+ }
1141
+
1142
+ export namespace QueryAssistantRequest {
1143
+ /**
1144
+ * @internal
1145
+ */
1146
+ export const filterSensitiveLog = (obj: QueryAssistantRequest): any => ({
1147
+ ...obj,
1148
+ ...(obj.queryText && { queryText: SENSITIVE_STRING }),
1149
+ });
1150
+ }
1151
+
1152
+ /**
1153
+ * <p>Information about the result.</p>
1154
+ */
1155
+ export interface ResultData {
1156
+ /**
1157
+ * <p>The identifier of the result data.</p>
1158
+ */
1159
+ resultId: string | undefined;
1160
+
1161
+ /**
1162
+ * <p>The document.</p>
1163
+ */
1164
+ document: Document | undefined;
1165
+
1166
+ /**
1167
+ * <p>The relevance score of the results.</p>
1168
+ */
1169
+ relevanceScore?: number;
1170
+ }
1171
+
1172
+ export namespace ResultData {
1173
+ /**
1174
+ * @internal
1175
+ */
1176
+ export const filterSensitiveLog = (obj: ResultData): any => ({
1177
+ ...obj,
1178
+ ...(obj.document && { document: Document.filterSensitiveLog(obj.document) }),
1179
+ });
1180
+ }
1181
+
1182
+ export interface QueryAssistantResponse {
1183
+ /**
1184
+ * <p>The results of the query.</p>
1185
+ */
1186
+ results: ResultData[] | undefined;
1187
+
1188
+ /**
1189
+ * <p>If there are additional results, this is the token for the next set of results.</p>
1190
+ */
1191
+ nextToken?: string;
1192
+ }
1193
+
1194
+ export namespace QueryAssistantResponse {
1195
+ /**
1196
+ * @internal
1197
+ */
1198
+ export const filterSensitiveLog = (obj: QueryAssistantResponse): any => ({
1199
+ ...obj,
1200
+ ...(obj.results && { results: obj.results.map((item) => ResultData.filterSensitiveLog(item)) }),
1201
+ });
1202
+ }
1203
+
1204
+ export enum FilterField {
1205
+ NAME = "NAME",
1206
+ }
1207
+
1208
+ export enum FilterOperator {
1209
+ EQUALS = "EQUALS",
1210
+ }
1211
+
1212
+ /**
1213
+ * <p>A search filter.</p>
1214
+ */
1215
+ export interface Filter {
1216
+ /**
1217
+ * <p>The field on which to filter.</p>
1218
+ */
1219
+ field: FilterField | string | undefined;
1220
+
1221
+ /**
1222
+ * <p>The operator to use for comparing the field’s value with the provided value.</p>
1223
+ */
1224
+ operator: FilterOperator | string | undefined;
1225
+
1226
+ /**
1227
+ * <p>The desired field value on which to filter.</p>
1228
+ */
1229
+ value: string | undefined;
1230
+ }
1231
+
1232
+ export namespace Filter {
1233
+ /**
1234
+ * @internal
1235
+ */
1236
+ export const filterSensitiveLog = (obj: Filter): any => ({
1237
+ ...obj,
1238
+ });
1239
+ }
1240
+
1241
+ /**
1242
+ * <p>The search expression.</p>
1243
+ */
1244
+ export interface SearchExpression {
1245
+ /**
1246
+ * <p>The search expression filters.</p>
1247
+ */
1248
+ filters: Filter[] | undefined;
1249
+ }
1250
+
1251
+ export namespace SearchExpression {
1252
+ /**
1253
+ * @internal
1254
+ */
1255
+ export const filterSensitiveLog = (obj: SearchExpression): any => ({
1256
+ ...obj,
1257
+ });
1258
+ }
1259
+
1260
+ export interface SearchSessionsRequest {
1261
+ /**
1262
+ * <p>The token for the next set of results. Use the value returned in the previous
1263
+ * response in the next request to retrieve the next set of results.</p>
1264
+ */
1265
+ nextToken?: string;
1266
+
1267
+ /**
1268
+ * <p>The maximum number of results to return per page.</p>
1269
+ */
1270
+ maxResults?: number;
1271
+
1272
+ /**
1273
+ * <p>The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
1274
+ */
1275
+ assistantId: string | undefined;
1276
+
1277
+ /**
1278
+ * <p>The search expression to filter results.</p>
1279
+ */
1280
+ searchExpression: SearchExpression | undefined;
1281
+ }
1282
+
1283
+ export namespace SearchSessionsRequest {
1284
+ /**
1285
+ * @internal
1286
+ */
1287
+ export const filterSensitiveLog = (obj: SearchSessionsRequest): any => ({
1288
+ ...obj,
1289
+ });
1290
+ }
1291
+
1292
+ /**
1293
+ * <p>Summary information about the session.</p>
1294
+ */
1295
+ export interface SessionSummary {
1296
+ /**
1297
+ * <p>The identifier of the session.</p>
1298
+ */
1299
+ sessionId: string | undefined;
1300
+
1301
+ /**
1302
+ * <p>The Amazon Resource Name (ARN) of the session.</p>
1303
+ */
1304
+ sessionArn: string | undefined;
1305
+
1306
+ /**
1307
+ * <p>The identifier of the Wisdom assistant.</p>
1308
+ */
1309
+ assistantId: string | undefined;
1310
+
1311
+ /**
1312
+ * <p>The Amazon Resource Name (ARN) of the Wisdom assistant</p>
1313
+ */
1314
+ assistantArn: string | undefined;
1315
+ }
1316
+
1317
+ export namespace SessionSummary {
1318
+ /**
1319
+ * @internal
1320
+ */
1321
+ export const filterSensitiveLog = (obj: SessionSummary): any => ({
1322
+ ...obj,
1323
+ });
1324
+ }
1325
+
1326
+ export interface SearchSessionsResponse {
1327
+ /**
1328
+ * <p>Summary information about the sessions.</p>
1329
+ */
1330
+ sessionSummaries: SessionSummary[] | undefined;
1331
+
1332
+ /**
1333
+ * <p>If there are additional results, this is the token for the next set of results.</p>
1334
+ */
1335
+ nextToken?: string;
1336
+ }
1337
+
1338
+ export namespace SearchSessionsResponse {
1339
+ /**
1340
+ * @internal
1341
+ */
1342
+ export const filterSensitiveLog = (obj: SearchSessionsResponse): any => ({
1343
+ ...obj,
1344
+ });
1345
+ }
1346
+
1347
+ export interface CreateSessionRequest {
1348
+ /**
1349
+ * <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the
1350
+ * request.</p>
1351
+ */
1352
+ clientToken?: string;
1353
+
1354
+ /**
1355
+ * <p>The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
1356
+ */
1357
+ assistantId: string | undefined;
1358
+
1359
+ /**
1360
+ * <p>The name of the session.</p>
1361
+ */
1362
+ name: string | undefined;
1363
+
1364
+ /**
1365
+ * <p>The description.</p>
1366
+ */
1367
+ description?: string;
1368
+
1369
+ /**
1370
+ * <p>The tags used to organize, track, or control access for this resource.</p>
1371
+ */
1372
+ tags?: { [key: string]: string };
1373
+ }
1374
+
1375
+ export namespace CreateSessionRequest {
1376
+ /**
1377
+ * @internal
1378
+ */
1379
+ export const filterSensitiveLog = (obj: CreateSessionRequest): any => ({
1380
+ ...obj,
1381
+ });
1382
+ }
1383
+
1384
+ /**
1385
+ * <p>Information about the session.</p>
1386
+ */
1387
+ export interface SessionData {
1388
+ /**
1389
+ * <p>The Amazon Resource Name (ARN) of the session.</p>
1390
+ */
1391
+ sessionArn: string | undefined;
1392
+
1393
+ /**
1394
+ * <p>The identifier of the session.</p>
1395
+ */
1396
+ sessionId: string | undefined;
1397
+
1398
+ /**
1399
+ * <p>The name of the session.</p>
1400
+ */
1401
+ name: string | undefined;
1402
+
1403
+ /**
1404
+ * <p>The description of the session.</p>
1405
+ */
1406
+ description?: string;
1407
+
1408
+ /**
1409
+ * <p>The tags used to organize, track, or control access for this resource.</p>
1410
+ */
1411
+ tags?: { [key: string]: string };
1412
+ }
1413
+
1414
+ export namespace SessionData {
1415
+ /**
1416
+ * @internal
1417
+ */
1418
+ export const filterSensitiveLog = (obj: SessionData): any => ({
1419
+ ...obj,
1420
+ });
1421
+ }
1422
+
1423
+ export interface CreateSessionResponse {
1424
+ /**
1425
+ * <p>The session.</p>
1426
+ */
1427
+ session?: SessionData;
1428
+ }
1429
+
1430
+ export namespace CreateSessionResponse {
1431
+ /**
1432
+ * @internal
1433
+ */
1434
+ export const filterSensitiveLog = (obj: CreateSessionResponse): any => ({
1435
+ ...obj,
1436
+ });
1437
+ }
1438
+
1439
+ export interface GetSessionRequest {
1440
+ /**
1441
+ * <p>The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
1442
+ */
1443
+ assistantId: string | undefined;
1444
+
1445
+ /**
1446
+ * <p>The identifier of the session. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
1447
+ */
1448
+ sessionId: string | undefined;
1449
+ }
1450
+
1451
+ export namespace GetSessionRequest {
1452
+ /**
1453
+ * @internal
1454
+ */
1455
+ export const filterSensitiveLog = (obj: GetSessionRequest): any => ({
1456
+ ...obj,
1457
+ });
1458
+ }
1459
+
1460
+ export interface GetSessionResponse {
1461
+ /**
1462
+ * <p>The session.</p>
1463
+ */
1464
+ session?: SessionData;
1465
+ }
1466
+
1467
+ export namespace GetSessionResponse {
1468
+ /**
1469
+ * @internal
1470
+ */
1471
+ export const filterSensitiveLog = (obj: GetSessionResponse): any => ({
1472
+ ...obj,
1473
+ });
1474
+ }
1475
+
1476
+ export interface CreateContentRequest {
1477
+ /**
1478
+ * <p>The the identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
1479
+ */
1480
+ knowledgeBaseId: string | undefined;
1481
+
1482
+ /**
1483
+ * <p>The name of the content. Each piece of content in a knowledge base must have a unique
1484
+ * name. You can retrieve a piece of content using only its knowledge base and its name with the
1485
+ * <a href="https://docs.aws.amazon.com/wisdom/latest/APIReference/API_SearchContent.html">SearchContent</a> API.</p>
1486
+ */
1487
+ name: string | undefined;
1488
+
1489
+ /**
1490
+ * <p>The title of the content. If not set, the title is equal to the name.</p>
1491
+ */
1492
+ title?: string;
1493
+
1494
+ /**
1495
+ * <p>The URI you want to use for the article. If the knowledge base has a templateUri, setting
1496
+ * this argument overrides it for this piece of content.</p>
1497
+ */
1498
+ overrideLinkOutUri?: string;
1499
+
1500
+ /**
1501
+ * <p>A key/value map to store attributes without affecting tagging or recommendations.
1502
+ * For example, when synchronizing data between an external system and Wisdom, you can store an external version identifier as metadata to utilize for determining drift.</p>
1503
+ */
1504
+ metadata?: { [key: string]: string };
1505
+
1506
+ /**
1507
+ * <p>A pointer to the uploaded asset. This value is returned by <a href="https://docs.aws.amazon.com/wisdom/latest/APIReference/API_StartContentUpload.html">StartContentUpload</a>.</p>
1508
+ */
1509
+ uploadId: string | undefined;
1510
+
1511
+ /**
1512
+ * <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the
1513
+ * request.</p>
1514
+ */
1515
+ clientToken?: string;
1516
+
1517
+ /**
1518
+ * <p>The tags used to organize, track, or control access for this resource.</p>
1519
+ */
1520
+ tags?: { [key: string]: string };
1521
+ }
1522
+
1523
+ export namespace CreateContentRequest {
1524
+ /**
1525
+ * @internal
1526
+ */
1527
+ export const filterSensitiveLog = (obj: CreateContentRequest): any => ({
1528
+ ...obj,
1529
+ });
1530
+ }
1531
+
1532
+ export enum ContentStatus {
1533
+ ACTIVE = "ACTIVE",
1534
+ CREATE_FAILED = "CREATE_FAILED",
1535
+ CREATE_IN_PROGRESS = "CREATE_IN_PROGRESS",
1536
+ DELETED = "DELETED",
1537
+ DELETE_FAILED = "DELETE_FAILED",
1538
+ DELETE_IN_PROGRESS = "DELETE_IN_PROGRESS",
1539
+ UPDATE_FAILED = "UPDATE_FAILED",
1540
+ }
1541
+
1542
+ /**
1543
+ * <p>Information about the content.</p>
1544
+ */
1545
+ export interface ContentData {
1546
+ /**
1547
+ * <p>The Amazon Resource Name (ARN) of the content.</p>
1548
+ */
1549
+ contentArn: string | undefined;
1550
+
1551
+ /**
1552
+ * <p>The identifier of the content.</p>
1553
+ */
1554
+ contentId: string | undefined;
1555
+
1556
+ /**
1557
+ * <p>The Amazon Resource Name (ARN) of the knowledge base.</p>
1558
+ */
1559
+ knowledgeBaseArn: string | undefined;
1560
+
1561
+ /**
1562
+ * <p>The the identifier of the knowledge base.</p>
1563
+ */
1564
+ knowledgeBaseId: string | undefined;
1565
+
1566
+ /**
1567
+ * <p>The name of the content.</p>
1568
+ */
1569
+ name: string | undefined;
1570
+
1571
+ /**
1572
+ * <p>The identifier of the content revision.</p>
1573
+ */
1574
+ revisionId: string | undefined;
1575
+
1576
+ /**
1577
+ * <p>The title of the content.</p>
1578
+ */
1579
+ title: string | undefined;
1580
+
1581
+ /**
1582
+ * <p>The media type of the content.</p>
1583
+ */
1584
+ contentType: string | undefined;
1585
+
1586
+ /**
1587
+ * <p>The status of the content.</p>
1588
+ */
1589
+ status: ContentStatus | string | undefined;
1590
+
1591
+ /**
1592
+ * <p>A key/value map to store attributes without affecting tagging or recommendations.
1593
+ * For example, when synchronizing data between an external system and Wisdom, you can store an external version identifier as metadata to utilize for determining drift.</p>
1594
+ */
1595
+ metadata: { [key: string]: string } | undefined;
1596
+
1597
+ /**
1598
+ * <p>The tags used to organize, track, or control access for this resource.</p>
1599
+ */
1600
+ tags?: { [key: string]: string };
1601
+
1602
+ /**
1603
+ * <p>The URI of the content.</p>
1604
+ */
1605
+ linkOutUri?: string;
1606
+
1607
+ /**
1608
+ * <p>The URL of the content.</p>
1609
+ */
1610
+ url: string | undefined;
1611
+
1612
+ /**
1613
+ * <p>The expiration time of the URL as an epoch timestamp.</p>
1614
+ */
1615
+ urlExpiry: Date | undefined;
1616
+ }
1617
+
1618
+ export namespace ContentData {
1619
+ /**
1620
+ * @internal
1621
+ */
1622
+ export const filterSensitiveLog = (obj: ContentData): any => ({
1623
+ ...obj,
1624
+ ...(obj.url && { url: SENSITIVE_STRING }),
1625
+ });
1626
+ }
1627
+
1628
+ export interface CreateContentResponse {
1629
+ /**
1630
+ * <p>The content.</p>
1631
+ */
1632
+ content?: ContentData;
1633
+ }
1634
+
1635
+ export namespace CreateContentResponse {
1636
+ /**
1637
+ * @internal
1638
+ */
1639
+ export const filterSensitiveLog = (obj: CreateContentResponse): any => ({
1640
+ ...obj,
1641
+ ...(obj.content && { content: ContentData.filterSensitiveLog(obj.content) }),
1642
+ });
1643
+ }
1644
+
1645
+ export interface DeleteContentRequest {
1646
+ /**
1647
+ * <p>The the identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
1648
+ */
1649
+ knowledgeBaseId: string | undefined;
1650
+
1651
+ /**
1652
+ * <p>The identifier of the content. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
1653
+ */
1654
+ contentId: string | undefined;
1655
+ }
1656
+
1657
+ export namespace DeleteContentRequest {
1658
+ /**
1659
+ * @internal
1660
+ */
1661
+ export const filterSensitiveLog = (obj: DeleteContentRequest): any => ({
1662
+ ...obj,
1663
+ });
1664
+ }
1665
+
1666
+ export interface DeleteContentResponse {}
1667
+
1668
+ export namespace DeleteContentResponse {
1669
+ /**
1670
+ * @internal
1671
+ */
1672
+ export const filterSensitiveLog = (obj: DeleteContentResponse): any => ({
1673
+ ...obj,
1674
+ });
1675
+ }
1676
+
1677
+ export interface GetContentRequest {
1678
+ /**
1679
+ * <p>The identifier of the content. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
1680
+ */
1681
+ contentId: string | undefined;
1682
+
1683
+ /**
1684
+ * <p>The the identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
1685
+ */
1686
+ knowledgeBaseId: string | undefined;
1687
+ }
1688
+
1689
+ export namespace GetContentRequest {
1690
+ /**
1691
+ * @internal
1692
+ */
1693
+ export const filterSensitiveLog = (obj: GetContentRequest): any => ({
1694
+ ...obj,
1695
+ });
1696
+ }
1697
+
1698
+ export interface GetContentResponse {
1699
+ /**
1700
+ * <p>The content.</p>
1701
+ */
1702
+ content?: ContentData;
1703
+ }
1704
+
1705
+ export namespace GetContentResponse {
1706
+ /**
1707
+ * @internal
1708
+ */
1709
+ export const filterSensitiveLog = (obj: GetContentResponse): any => ({
1710
+ ...obj,
1711
+ ...(obj.content && { content: ContentData.filterSensitiveLog(obj.content) }),
1712
+ });
1713
+ }
1714
+
1715
+ export interface GetContentSummaryRequest {
1716
+ /**
1717
+ * <p>The identifier of the content. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
1718
+ */
1719
+ contentId: string | undefined;
1720
+
1721
+ /**
1722
+ * <p>The the identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
1723
+ */
1724
+ knowledgeBaseId: string | undefined;
1725
+ }
1726
+
1727
+ export namespace GetContentSummaryRequest {
1728
+ /**
1729
+ * @internal
1730
+ */
1731
+ export const filterSensitiveLog = (obj: GetContentSummaryRequest): any => ({
1732
+ ...obj,
1733
+ });
1734
+ }
1735
+
1736
+ /**
1737
+ * <p>Summary information about the content.</p>
1738
+ */
1739
+ export interface ContentSummary {
1740
+ /**
1741
+ * <p>The Amazon Resource Name (ARN) of the content.</p>
1742
+ */
1743
+ contentArn: string | undefined;
1744
+
1745
+ /**
1746
+ * <p>The identifier of the content.</p>
1747
+ */
1748
+ contentId: string | undefined;
1749
+
1750
+ /**
1751
+ * <p>The Amazon Resource Name (ARN) of the knowledge base.</p>
1752
+ */
1753
+ knowledgeBaseArn: string | undefined;
1754
+
1755
+ /**
1756
+ * <p>The the identifier of the knowledge base.</p>
1757
+ */
1758
+ knowledgeBaseId: string | undefined;
1759
+
1760
+ /**
1761
+ * <p>The name of the content.</p>
1762
+ */
1763
+ name: string | undefined;
1764
+
1765
+ /**
1766
+ * <p>The identifier of the revision of the content.</p>
1767
+ */
1768
+ revisionId: string | undefined;
1769
+
1770
+ /**
1771
+ * <p>The title of the content.</p>
1772
+ */
1773
+ title: string | undefined;
1774
+
1775
+ /**
1776
+ * <p>The media type of the content.</p>
1777
+ */
1778
+ contentType: string | undefined;
1779
+
1780
+ /**
1781
+ * <p>The status of the content.</p>
1782
+ */
1783
+ status: ContentStatus | string | undefined;
1784
+
1785
+ /**
1786
+ * <p>A key/value map to store attributes without affecting tagging or recommendations.
1787
+ * For example, when synchronizing data between an external system and Wisdom, you can store an external version identifier as metadata to utilize for determining drift.</p>
1788
+ */
1789
+ metadata: { [key: string]: string } | undefined;
1790
+
1791
+ /**
1792
+ * <p>The tags used to organize, track, or control access for this resource.</p>
1793
+ */
1794
+ tags?: { [key: string]: string };
1795
+ }
1796
+
1797
+ export namespace ContentSummary {
1798
+ /**
1799
+ * @internal
1800
+ */
1801
+ export const filterSensitiveLog = (obj: ContentSummary): any => ({
1802
+ ...obj,
1803
+ });
1804
+ }
1805
+
1806
+ export interface GetContentSummaryResponse {
1807
+ /**
1808
+ * <p>The content summary.</p>
1809
+ */
1810
+ contentSummary?: ContentSummary;
1811
+ }
1812
+
1813
+ export namespace GetContentSummaryResponse {
1814
+ /**
1815
+ * @internal
1816
+ */
1817
+ export const filterSensitiveLog = (obj: GetContentSummaryResponse): any => ({
1818
+ ...obj,
1819
+ });
1820
+ }
1821
+
1822
+ export interface ListContentsRequest {
1823
+ /**
1824
+ * <p>The token for the next set of results. Use the value returned in the previous
1825
+ * response in the next request to retrieve the next set of results.</p>
1826
+ */
1827
+ nextToken?: string;
1828
+
1829
+ /**
1830
+ * <p>The maximum number of results to return per page.</p>
1831
+ */
1832
+ maxResults?: number;
1833
+
1834
+ /**
1835
+ * <p>The the identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
1836
+ */
1837
+ knowledgeBaseId: string | undefined;
1838
+ }
1839
+
1840
+ export namespace ListContentsRequest {
1841
+ /**
1842
+ * @internal
1843
+ */
1844
+ export const filterSensitiveLog = (obj: ListContentsRequest): any => ({
1845
+ ...obj,
1846
+ });
1847
+ }
1848
+
1849
+ export interface ListContentsResponse {
1850
+ /**
1851
+ * <p>Information about the content.</p>
1852
+ */
1853
+ contentSummaries: ContentSummary[] | undefined;
1854
+
1855
+ /**
1856
+ * <p>If there are additional results, this is the token for the next set of results.</p>
1857
+ */
1858
+ nextToken?: string;
1859
+ }
1860
+
1861
+ export namespace ListContentsResponse {
1862
+ /**
1863
+ * @internal
1864
+ */
1865
+ export const filterSensitiveLog = (obj: ListContentsResponse): any => ({
1866
+ ...obj,
1867
+ });
1868
+ }
1869
+
1870
+ /**
1871
+ * <p>The provided <code>revisionId</code> does not match, indicating the content has been
1872
+ * modified since it was last read.</p>
1873
+ */
1874
+ export interface PreconditionFailedException extends __SmithyException, $MetadataBearer {
1875
+ name: "PreconditionFailedException";
1876
+ $fault: "client";
1877
+ message?: string;
1878
+ }
1879
+
1880
+ export namespace PreconditionFailedException {
1881
+ /**
1882
+ * @internal
1883
+ */
1884
+ export const filterSensitiveLog = (obj: PreconditionFailedException): any => ({
1885
+ ...obj,
1886
+ });
1887
+ }
1888
+
1889
+ export interface UpdateContentRequest {
1890
+ /**
1891
+ * <p>The the identifier of the knowledge base. Can be either the ID or the ARN</p>
1892
+ */
1893
+ knowledgeBaseId: string | undefined;
1894
+
1895
+ /**
1896
+ * <p>The identifier of the content. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
1897
+ */
1898
+ contentId: string | undefined;
1899
+
1900
+ /**
1901
+ * <p>The <code>revisionId</code> of the content resource to update, taken from an earlier call
1902
+ * to <code>GetContent</code>, <code>GetContentSummary</code>, <code>SearchContent</code>, or
1903
+ * <code>ListContents</code>. If included, this argument acts as an optimistic lock to ensure
1904
+ * content was not modified since it was last read. If it has been modified, this API throws a
1905
+ * <code>PreconditionFailedException</code>.</p>
1906
+ */
1907
+ revisionId?: string;
1908
+
1909
+ /**
1910
+ * <p>The title of the content.</p>
1911
+ */
1912
+ title?: string;
1913
+
1914
+ /**
1915
+ * <p>The URI for the article. If the knowledge base has a templateUri, setting this argument
1916
+ * overrides it for this piece of content. To remove an existing <code>overrideLinkOurUri</code>,
1917
+ * exclude this argument and set <code>removeOverrideLinkOutUri</code> to true.</p>
1918
+ */
1919
+ overrideLinkOutUri?: string;
1920
+
1921
+ /**
1922
+ * <p>Unset the existing <code>overrideLinkOutUri</code> if it exists.</p>
1923
+ */
1924
+ removeOverrideLinkOutUri?: boolean;
1925
+
1926
+ /**
1927
+ * <p>A key/value map to store attributes without affecting tagging or recommendations. For
1928
+ * example, when synchronizing data between an external system and Wisdom, you can store an
1929
+ * external version identifier as metadata to utilize for determining drift.</p>
1930
+ */
1931
+ metadata?: { [key: string]: string };
1932
+
1933
+ /**
1934
+ * <p>A pointer to the uploaded asset. This value is returned by <a href="https://docs.aws.amazon.com/wisdom/latest/APIReference/API_StartContentUpload.html">StartContentUpload</a>.
1935
+ * </p>
1936
+ */
1937
+ uploadId?: string;
1938
+ }
1939
+
1940
+ export namespace UpdateContentRequest {
1941
+ /**
1942
+ * @internal
1943
+ */
1944
+ export const filterSensitiveLog = (obj: UpdateContentRequest): any => ({
1945
+ ...obj,
1946
+ });
1947
+ }
1948
+
1949
+ export interface UpdateContentResponse {
1950
+ /**
1951
+ * <p>The content.</p>
1952
+ */
1953
+ content?: ContentData;
1954
+ }
1955
+
1956
+ export namespace UpdateContentResponse {
1957
+ /**
1958
+ * @internal
1959
+ */
1960
+ export const filterSensitiveLog = (obj: UpdateContentResponse): any => ({
1961
+ ...obj,
1962
+ ...(obj.content && { content: ContentData.filterSensitiveLog(obj.content) }),
1963
+ });
1964
+ }
1965
+
1966
+ export enum KnowledgeBaseType {
1967
+ CUSTOM = "CUSTOM",
1968
+ EXTERNAL = "EXTERNAL",
1969
+ }
1970
+
1971
+ /**
1972
+ * <p>Information about how to render the content.</p>
1973
+ */
1974
+ export interface RenderingConfiguration {
1975
+ /**
1976
+ * <p>A URI template containing exactly one variable in <code>${variableName} </code>format.
1977
+ * This can only be set for <code>EXTERNAL</code> knowledge bases. For Salesforce and ServiceNow,
1978
+ * the variable must be one of the following:</p>
1979
+ * <ul>
1980
+ * <li>
1981
+ * <p>Salesforce: <code>Id</code>, <code>ArticleNumber</code>, <code>VersionNumber</code>,
1982
+ * <code>Title</code>, <code>PublishStatus</code>, or <code>IsDeleted</code>
1983
+ * </p>
1984
+ * </li>
1985
+ * <li>
1986
+ * <p>ServiceNow: <code>number</code>, <code>short_description</code>,
1987
+ * <code>sys_mod_count</code>, <code>workflow_state</code>, or <code>active</code>
1988
+ * </p>
1989
+ * </li>
1990
+ * </ul>
1991
+ *
1992
+ * <p>The variable is replaced with the actual value for a piece of content when calling <a href="https://docs.aws.amazon.com/wisdom/latest/APIReference/API_GetContent.html">GetContent</a>. </p>
1993
+ */
1994
+ templateUri?: string;
1995
+ }
1996
+
1997
+ export namespace RenderingConfiguration {
1998
+ /**
1999
+ * @internal
2000
+ */
2001
+ export const filterSensitiveLog = (obj: RenderingConfiguration): any => ({
2002
+ ...obj,
2003
+ });
2004
+ }
2005
+
2006
+ /**
2007
+ * <p>Configuration information about the external data source.</p>
2008
+ */
2009
+ export type SourceConfiguration = SourceConfiguration.AppIntegrationsMember | SourceConfiguration.$UnknownMember;
2010
+
2011
+ export namespace SourceConfiguration {
2012
+ /**
2013
+ * <p>Configuration information for Amazon AppIntegrations to automatically ingest content.</p>
2014
+ */
2015
+ export interface AppIntegrationsMember {
2016
+ appIntegrations: AppIntegrationsConfiguration;
2017
+ $unknown?: never;
2018
+ }
2019
+
2020
+ export interface $UnknownMember {
2021
+ appIntegrations?: never;
2022
+ $unknown: [string, any];
2023
+ }
2024
+
2025
+ export interface Visitor<T> {
2026
+ appIntegrations: (value: AppIntegrationsConfiguration) => T;
2027
+ _: (name: string, value: any) => T;
2028
+ }
2029
+
2030
+ export const visit = <T>(value: SourceConfiguration, visitor: Visitor<T>): T => {
2031
+ if (value.appIntegrations !== undefined) return visitor.appIntegrations(value.appIntegrations);
2032
+ return visitor._(value.$unknown[0], value.$unknown[1]);
2033
+ };
2034
+
2035
+ /**
2036
+ * @internal
2037
+ */
2038
+ export const filterSensitiveLog = (obj: SourceConfiguration): any => {
2039
+ if (obj.appIntegrations !== undefined)
2040
+ return { appIntegrations: AppIntegrationsConfiguration.filterSensitiveLog(obj.appIntegrations) };
2041
+ if (obj.$unknown !== undefined) return { [obj.$unknown[0]]: "UNKNOWN" };
2042
+ };
2043
+ }
2044
+
2045
+ export interface CreateKnowledgeBaseRequest {
2046
+ /**
2047
+ * <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the
2048
+ * request.</p>
2049
+ */
2050
+ clientToken?: string;
2051
+
2052
+ /**
2053
+ * <p>The name of the knowledge base.</p>
2054
+ */
2055
+ name: string | undefined;
2056
+
2057
+ /**
2058
+ * <p>The type of knowledge base. Only CUSTOM knowledge bases allow you to upload your own content.
2059
+ * EXTERNAL knowledge bases support integrations with third-party systems whose content is
2060
+ * synchronized automatically. </p>
2061
+ */
2062
+ knowledgeBaseType: KnowledgeBaseType | string | undefined;
2063
+
2064
+ /**
2065
+ * <p>The source of the knowledge base content. Only set this argument for EXTERNAL knowledge
2066
+ * bases.</p>
2067
+ */
2068
+ sourceConfiguration?: SourceConfiguration;
2069
+
2070
+ /**
2071
+ * <p>Information about how to render the content.</p>
2072
+ */
2073
+ renderingConfiguration?: RenderingConfiguration;
2074
+
2075
+ /**
2076
+ * <p>The KMS key used for encryption.</p>
2077
+ */
2078
+ serverSideEncryptionConfiguration?: ServerSideEncryptionConfiguration;
2079
+
2080
+ /**
2081
+ * <p>The description.</p>
2082
+ */
2083
+ description?: string;
2084
+
2085
+ /**
2086
+ * <p>The tags used to organize, track, or control access for this resource.</p>
2087
+ */
2088
+ tags?: { [key: string]: string };
2089
+ }
2090
+
2091
+ export namespace CreateKnowledgeBaseRequest {
2092
+ /**
2093
+ * @internal
2094
+ */
2095
+ export const filterSensitiveLog = (obj: CreateKnowledgeBaseRequest): any => ({
2096
+ ...obj,
2097
+ ...(obj.sourceConfiguration && {
2098
+ sourceConfiguration: SourceConfiguration.filterSensitiveLog(obj.sourceConfiguration),
2099
+ }),
2100
+ });
2101
+ }
2102
+
2103
+ export enum KnowledgeBaseStatus {
2104
+ ACTIVE = "ACTIVE",
2105
+ CREATE_FAILED = "CREATE_FAILED",
2106
+ CREATE_IN_PROGRESS = "CREATE_IN_PROGRESS",
2107
+ DELETED = "DELETED",
2108
+ DELETE_FAILED = "DELETE_FAILED",
2109
+ DELETE_IN_PROGRESS = "DELETE_IN_PROGRESS",
2110
+ }
2111
+
2112
+ /**
2113
+ * <p>Information about the knowledge base.</p>
2114
+ */
2115
+ export interface KnowledgeBaseData {
2116
+ /**
2117
+ * <p>The the identifier of the knowledge base.</p>
2118
+ */
2119
+ knowledgeBaseId: string | undefined;
2120
+
2121
+ /**
2122
+ * <p>The Amazon Resource Name (ARN) of the knowledge base.</p>
2123
+ */
2124
+ knowledgeBaseArn: string | undefined;
2125
+
2126
+ /**
2127
+ * <p>The name of the knowledge base.</p>
2128
+ */
2129
+ name: string | undefined;
2130
+
2131
+ /**
2132
+ * <p>The type of knowledge base.</p>
2133
+ */
2134
+ knowledgeBaseType: KnowledgeBaseType | string | undefined;
2135
+
2136
+ /**
2137
+ * <p>The status of the knowledge base.</p>
2138
+ */
2139
+ status: KnowledgeBaseStatus | string | undefined;
2140
+
2141
+ /**
2142
+ * <p>An epoch timestamp indicating the most recent content modification inside the knowledge
2143
+ * base. If no content exists in a knowledge base, this value is unset.</p>
2144
+ */
2145
+ lastContentModificationTime?: Date;
2146
+
2147
+ /**
2148
+ * <p>Source configuration information about the knowledge base.</p>
2149
+ */
2150
+ sourceConfiguration?: SourceConfiguration;
2151
+
2152
+ /**
2153
+ * <p>Information about how to render the content.</p>
2154
+ */
2155
+ renderingConfiguration?: RenderingConfiguration;
2156
+
2157
+ /**
2158
+ * <p>The KMS key used for encryption.</p>
2159
+ */
2160
+ serverSideEncryptionConfiguration?: ServerSideEncryptionConfiguration;
2161
+
2162
+ /**
2163
+ * <p>The description.</p>
2164
+ */
2165
+ description?: string;
2166
+
2167
+ /**
2168
+ * <p>The tags used to organize, track, or control access for this resource.</p>
2169
+ */
2170
+ tags?: { [key: string]: string };
2171
+ }
2172
+
2173
+ export namespace KnowledgeBaseData {
2174
+ /**
2175
+ * @internal
2176
+ */
2177
+ export const filterSensitiveLog = (obj: KnowledgeBaseData): any => ({
2178
+ ...obj,
2179
+ ...(obj.sourceConfiguration && {
2180
+ sourceConfiguration: SourceConfiguration.filterSensitiveLog(obj.sourceConfiguration),
2181
+ }),
2182
+ });
2183
+ }
2184
+
2185
+ export interface CreateKnowledgeBaseResponse {
2186
+ /**
2187
+ * <p>The knowledge base.</p>
2188
+ */
2189
+ knowledgeBase?: KnowledgeBaseData;
2190
+ }
2191
+
2192
+ export namespace CreateKnowledgeBaseResponse {
2193
+ /**
2194
+ * @internal
2195
+ */
2196
+ export const filterSensitiveLog = (obj: CreateKnowledgeBaseResponse): any => ({
2197
+ ...obj,
2198
+ ...(obj.knowledgeBase && { knowledgeBase: KnowledgeBaseData.filterSensitiveLog(obj.knowledgeBase) }),
2199
+ });
2200
+ }
2201
+
2202
+ export interface DeleteKnowledgeBaseRequest {
2203
+ /**
2204
+ * <p>The knowledge base to delete content from. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
2205
+ */
2206
+ knowledgeBaseId: string | undefined;
2207
+ }
2208
+
2209
+ export namespace DeleteKnowledgeBaseRequest {
2210
+ /**
2211
+ * @internal
2212
+ */
2213
+ export const filterSensitiveLog = (obj: DeleteKnowledgeBaseRequest): any => ({
2214
+ ...obj,
2215
+ });
2216
+ }
2217
+
2218
+ export interface DeleteKnowledgeBaseResponse {}
2219
+
2220
+ export namespace DeleteKnowledgeBaseResponse {
2221
+ /**
2222
+ * @internal
2223
+ */
2224
+ export const filterSensitiveLog = (obj: DeleteKnowledgeBaseResponse): any => ({
2225
+ ...obj,
2226
+ });
2227
+ }
2228
+
2229
+ export interface GetKnowledgeBaseRequest {
2230
+ /**
2231
+ * <p>The the identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
2232
+ */
2233
+ knowledgeBaseId: string | undefined;
2234
+ }
2235
+
2236
+ export namespace GetKnowledgeBaseRequest {
2237
+ /**
2238
+ * @internal
2239
+ */
2240
+ export const filterSensitiveLog = (obj: GetKnowledgeBaseRequest): any => ({
2241
+ ...obj,
2242
+ });
2243
+ }
2244
+
2245
+ export interface GetKnowledgeBaseResponse {
2246
+ /**
2247
+ * <p>The knowledge base.</p>
2248
+ */
2249
+ knowledgeBase?: KnowledgeBaseData;
2250
+ }
2251
+
2252
+ export namespace GetKnowledgeBaseResponse {
2253
+ /**
2254
+ * @internal
2255
+ */
2256
+ export const filterSensitiveLog = (obj: GetKnowledgeBaseResponse): any => ({
2257
+ ...obj,
2258
+ ...(obj.knowledgeBase && { knowledgeBase: KnowledgeBaseData.filterSensitiveLog(obj.knowledgeBase) }),
2259
+ });
2260
+ }
2261
+
2262
+ export interface ListKnowledgeBasesRequest {
2263
+ /**
2264
+ * <p>The token for the next set of results. Use the value returned in the previous
2265
+ * response in the next request to retrieve the next set of results.</p>
2266
+ */
2267
+ nextToken?: string;
2268
+
2269
+ /**
2270
+ * <p>The maximum number of results to return per page.</p>
2271
+ */
2272
+ maxResults?: number;
2273
+ }
2274
+
2275
+ export namespace ListKnowledgeBasesRequest {
2276
+ /**
2277
+ * @internal
2278
+ */
2279
+ export const filterSensitiveLog = (obj: ListKnowledgeBasesRequest): any => ({
2280
+ ...obj,
2281
+ });
2282
+ }
2283
+
2284
+ /**
2285
+ * <p>Summary information about the knowledge base.</p>
2286
+ */
2287
+ export interface KnowledgeBaseSummary {
2288
+ /**
2289
+ * <p>The the identifier of the knowledge base.</p>
2290
+ */
2291
+ knowledgeBaseId: string | undefined;
2292
+
2293
+ /**
2294
+ * <p>The Amazon Resource Name (ARN) of the knowledge base.</p>
2295
+ */
2296
+ knowledgeBaseArn: string | undefined;
2297
+
2298
+ /**
2299
+ * <p>The name of the knowledge base.</p>
2300
+ */
2301
+ name: string | undefined;
2302
+
2303
+ /**
2304
+ * <p>The type of knowledge base.</p>
2305
+ */
2306
+ knowledgeBaseType: KnowledgeBaseType | string | undefined;
2307
+
2308
+ /**
2309
+ * <p>The status of the knowledge base summary.</p>
2310
+ */
2311
+ status: KnowledgeBaseStatus | string | undefined;
2312
+
2313
+ /**
2314
+ * <p>[KEVIN]</p>
2315
+ */
2316
+ sourceConfiguration?: SourceConfiguration;
2317
+
2318
+ /**
2319
+ * <p>Information about how to render the content.</p>
2320
+ */
2321
+ renderingConfiguration?: RenderingConfiguration;
2322
+
2323
+ /**
2324
+ * <p>The KMS key used for encryption.</p>
2325
+ */
2326
+ serverSideEncryptionConfiguration?: ServerSideEncryptionConfiguration;
2327
+
2328
+ /**
2329
+ * <p>The description of the knowledge base.</p>
2330
+ */
2331
+ description?: string;
2332
+
2333
+ /**
2334
+ * <p>The tags used to organize, track, or control access for this resource.</p>
2335
+ */
2336
+ tags?: { [key: string]: string };
2337
+ }
2338
+
2339
+ export namespace KnowledgeBaseSummary {
2340
+ /**
2341
+ * @internal
2342
+ */
2343
+ export const filterSensitiveLog = (obj: KnowledgeBaseSummary): any => ({
2344
+ ...obj,
2345
+ ...(obj.sourceConfiguration && {
2346
+ sourceConfiguration: SourceConfiguration.filterSensitiveLog(obj.sourceConfiguration),
2347
+ }),
2348
+ });
2349
+ }
2350
+
2351
+ export interface ListKnowledgeBasesResponse {
2352
+ /**
2353
+ * <p>Information about the knowledge bases.</p>
2354
+ */
2355
+ knowledgeBaseSummaries: KnowledgeBaseSummary[] | undefined;
2356
+
2357
+ /**
2358
+ * <p>If there are additional results, this is the token for the next set of results.</p>
2359
+ */
2360
+ nextToken?: string;
2361
+ }
2362
+
2363
+ export namespace ListKnowledgeBasesResponse {
2364
+ /**
2365
+ * @internal
2366
+ */
2367
+ export const filterSensitiveLog = (obj: ListKnowledgeBasesResponse): any => ({
2368
+ ...obj,
2369
+ ...(obj.knowledgeBaseSummaries && {
2370
+ knowledgeBaseSummaries: obj.knowledgeBaseSummaries.map((item) => KnowledgeBaseSummary.filterSensitiveLog(item)),
2371
+ }),
2372
+ });
2373
+ }
2374
+
2375
+ export interface RemoveKnowledgeBaseTemplateUriRequest {
2376
+ /**
2377
+ * <p>The the identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
2378
+ */
2379
+ knowledgeBaseId: string | undefined;
2380
+ }
2381
+
2382
+ export namespace RemoveKnowledgeBaseTemplateUriRequest {
2383
+ /**
2384
+ * @internal
2385
+ */
2386
+ export const filterSensitiveLog = (obj: RemoveKnowledgeBaseTemplateUriRequest): any => ({
2387
+ ...obj,
2388
+ });
2389
+ }
2390
+
2391
+ export interface RemoveKnowledgeBaseTemplateUriResponse {}
2392
+
2393
+ export namespace RemoveKnowledgeBaseTemplateUriResponse {
2394
+ /**
2395
+ * @internal
2396
+ */
2397
+ export const filterSensitiveLog = (obj: RemoveKnowledgeBaseTemplateUriResponse): any => ({
2398
+ ...obj,
2399
+ });
2400
+ }
2401
+
2402
+ export interface SearchContentRequest {
2403
+ /**
2404
+ * <p>The token for the next set of results. Use the value returned in the previous
2405
+ * response in the next request to retrieve the next set of results.</p>
2406
+ */
2407
+ nextToken?: string;
2408
+
2409
+ /**
2410
+ * <p>The maximum number of results to return per page.</p>
2411
+ */
2412
+ maxResults?: number;
2413
+
2414
+ /**
2415
+ * <p>The the identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
2416
+ */
2417
+ knowledgeBaseId: string | undefined;
2418
+
2419
+ /**
2420
+ * <p>The search expression to filter results.</p>
2421
+ */
2422
+ searchExpression: SearchExpression | undefined;
2423
+ }
2424
+
2425
+ export namespace SearchContentRequest {
2426
+ /**
2427
+ * @internal
2428
+ */
2429
+ export const filterSensitiveLog = (obj: SearchContentRequest): any => ({
2430
+ ...obj,
2431
+ });
2432
+ }
2433
+
2434
+ export interface SearchContentResponse {
2435
+ /**
2436
+ * <p>Summary information about the content.</p>
2437
+ */
2438
+ contentSummaries: ContentSummary[] | undefined;
2439
+
2440
+ /**
2441
+ * <p>If there are additional results, this is the token for the next set of results.</p>
2442
+ */
2443
+ nextToken?: string;
2444
+ }
2445
+
2446
+ export namespace SearchContentResponse {
2447
+ /**
2448
+ * @internal
2449
+ */
2450
+ export const filterSensitiveLog = (obj: SearchContentResponse): any => ({
2451
+ ...obj,
2452
+ });
2453
+ }
2454
+
2455
+ export interface StartContentUploadRequest {
2456
+ /**
2457
+ * <p>The the identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
2458
+ */
2459
+ knowledgeBaseId: string | undefined;
2460
+
2461
+ /**
2462
+ * <p>The type of content to upload.</p>
2463
+ */
2464
+ contentType: string | undefined;
2465
+ }
2466
+
2467
+ export namespace StartContentUploadRequest {
2468
+ /**
2469
+ * @internal
2470
+ */
2471
+ export const filterSensitiveLog = (obj: StartContentUploadRequest): any => ({
2472
+ ...obj,
2473
+ });
2474
+ }
2475
+
2476
+ export interface StartContentUploadResponse {
2477
+ /**
2478
+ * <p>The identifier of the upload.</p>
2479
+ */
2480
+ uploadId: string | undefined;
2481
+
2482
+ /**
2483
+ * <p>The URL of the upload.</p>
2484
+ */
2485
+ url: string | undefined;
2486
+
2487
+ /**
2488
+ * <p>The expiration time of the URL as an epoch timestamp.</p>
2489
+ */
2490
+ urlExpiry: Date | undefined;
2491
+
2492
+ /**
2493
+ * <p>The headers to include in the upload.</p>
2494
+ */
2495
+ headersToInclude: { [key: string]: string } | undefined;
2496
+ }
2497
+
2498
+ export namespace StartContentUploadResponse {
2499
+ /**
2500
+ * @internal
2501
+ */
2502
+ export const filterSensitiveLog = (obj: StartContentUploadResponse): any => ({
2503
+ ...obj,
2504
+ ...(obj.url && { url: SENSITIVE_STRING }),
2505
+ });
2506
+ }
2507
+
2508
+ export interface UpdateKnowledgeBaseTemplateUriRequest {
2509
+ /**
2510
+ * <p>The the identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
2511
+ */
2512
+ knowledgeBaseId: string | undefined;
2513
+
2514
+ /**
2515
+ * <p>The template URI to update.</p>
2516
+ */
2517
+ templateUri: string | undefined;
2518
+ }
2519
+
2520
+ export namespace UpdateKnowledgeBaseTemplateUriRequest {
2521
+ /**
2522
+ * @internal
2523
+ */
2524
+ export const filterSensitiveLog = (obj: UpdateKnowledgeBaseTemplateUriRequest): any => ({
2525
+ ...obj,
2526
+ });
2527
+ }
2528
+
2529
+ export interface UpdateKnowledgeBaseTemplateUriResponse {
2530
+ /**
2531
+ * <p>The knowledge base to update.</p>
2532
+ */
2533
+ knowledgeBase?: KnowledgeBaseData;
2534
+ }
2535
+
2536
+ export namespace UpdateKnowledgeBaseTemplateUriResponse {
2537
+ /**
2538
+ * @internal
2539
+ */
2540
+ export const filterSensitiveLog = (obj: UpdateKnowledgeBaseTemplateUriResponse): any => ({
2541
+ ...obj,
2542
+ ...(obj.knowledgeBase && { knowledgeBase: KnowledgeBaseData.filterSensitiveLog(obj.knowledgeBase) }),
2543
+ });
2544
+ }
2545
+
2546
+ export interface ListTagsForResourceRequest {
2547
+ /**
2548
+ * <p>The Amazon Resource Name (ARN) of the resource.</p>
2549
+ */
2550
+ resourceArn: string | undefined;
2551
+ }
2552
+
2553
+ export namespace ListTagsForResourceRequest {
2554
+ /**
2555
+ * @internal
2556
+ */
2557
+ export const filterSensitiveLog = (obj: ListTagsForResourceRequest): any => ({
2558
+ ...obj,
2559
+ });
2560
+ }
2561
+
2562
+ export interface ListTagsForResourceResponse {
2563
+ /**
2564
+ * <p>The tags used to organize, track, or control access for this resource.</p>
2565
+ */
2566
+ tags?: { [key: string]: string };
2567
+ }
2568
+
2569
+ export namespace ListTagsForResourceResponse {
2570
+ /**
2571
+ * @internal
2572
+ */
2573
+ export const filterSensitiveLog = (obj: ListTagsForResourceResponse): any => ({
2574
+ ...obj,
2575
+ });
2576
+ }
2577
+
2578
+ export interface TagResourceRequest {
2579
+ /**
2580
+ * <p>The Amazon Resource Name (ARN) of the resource.</p>
2581
+ */
2582
+ resourceArn: string | undefined;
2583
+
2584
+ /**
2585
+ * <p>The tags used to organize, track, or control access for this resource.</p>
2586
+ */
2587
+ tags: { [key: string]: string } | undefined;
2588
+ }
2589
+
2590
+ export namespace TagResourceRequest {
2591
+ /**
2592
+ * @internal
2593
+ */
2594
+ export const filterSensitiveLog = (obj: TagResourceRequest): any => ({
2595
+ ...obj,
2596
+ });
2597
+ }
2598
+
2599
+ export interface TagResourceResponse {}
2600
+
2601
+ export namespace TagResourceResponse {
2602
+ /**
2603
+ * @internal
2604
+ */
2605
+ export const filterSensitiveLog = (obj: TagResourceResponse): any => ({
2606
+ ...obj,
2607
+ });
2608
+ }
2609
+
2610
+ /**
2611
+ * <p>Amazon Connect Wisdom throws this exception if you have too many tags in your tag set.</p>
2612
+ */
2613
+ export interface TooManyTagsException extends __SmithyException, $MetadataBearer {
2614
+ name: "TooManyTagsException";
2615
+ $fault: "client";
2616
+ message?: string;
2617
+ /**
2618
+ * <p>The specified resource name.</p>
2619
+ */
2620
+ resourceName?: string;
2621
+ }
2622
+
2623
+ export namespace TooManyTagsException {
2624
+ /**
2625
+ * @internal
2626
+ */
2627
+ export const filterSensitiveLog = (obj: TooManyTagsException): any => ({
2628
+ ...obj,
2629
+ });
2630
+ }
2631
+
2632
+ export interface UntagResourceRequest {
2633
+ /**
2634
+ * <p>The Amazon Resource Name (ARN) of the resource.</p>
2635
+ */
2636
+ resourceArn: string | undefined;
2637
+
2638
+ /**
2639
+ * <p>The tag keys.</p>
2640
+ */
2641
+ tagKeys: string[] | undefined;
2642
+ }
2643
+
2644
+ export namespace UntagResourceRequest {
2645
+ /**
2646
+ * @internal
2647
+ */
2648
+ export const filterSensitiveLog = (obj: UntagResourceRequest): any => ({
2649
+ ...obj,
2650
+ });
2651
+ }
2652
+
2653
+ export interface UntagResourceResponse {}
2654
+
2655
+ export namespace UntagResourceResponse {
2656
+ /**
2657
+ * @internal
2658
+ */
2659
+ export const filterSensitiveLog = (obj: UntagResourceResponse): any => ({
2660
+ ...obj,
2661
+ });
2662
+ }