@aws-sdk/client-qconnect 3.461.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 (283) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +545 -0
  3. package/dist-cjs/QConnect.js +93 -0
  4. package/dist-cjs/QConnectClient.js +43 -0
  5. package/dist-cjs/commands/CreateAssistantAssociationCommand.js +51 -0
  6. package/dist-cjs/commands/CreateAssistantCommand.js +51 -0
  7. package/dist-cjs/commands/CreateContentCommand.js +52 -0
  8. package/dist-cjs/commands/CreateKnowledgeBaseCommand.js +51 -0
  9. package/dist-cjs/commands/CreateQuickResponseCommand.js +52 -0
  10. package/dist-cjs/commands/CreateSessionCommand.js +51 -0
  11. package/dist-cjs/commands/DeleteAssistantAssociationCommand.js +51 -0
  12. package/dist-cjs/commands/DeleteAssistantCommand.js +51 -0
  13. package/dist-cjs/commands/DeleteContentCommand.js +51 -0
  14. package/dist-cjs/commands/DeleteImportJobCommand.js +51 -0
  15. package/dist-cjs/commands/DeleteKnowledgeBaseCommand.js +51 -0
  16. package/dist-cjs/commands/DeleteQuickResponseCommand.js +51 -0
  17. package/dist-cjs/commands/GetAssistantAssociationCommand.js +51 -0
  18. package/dist-cjs/commands/GetAssistantCommand.js +51 -0
  19. package/dist-cjs/commands/GetContentCommand.js +52 -0
  20. package/dist-cjs/commands/GetContentSummaryCommand.js +51 -0
  21. package/dist-cjs/commands/GetImportJobCommand.js +52 -0
  22. package/dist-cjs/commands/GetKnowledgeBaseCommand.js +51 -0
  23. package/dist-cjs/commands/GetQuickResponseCommand.js +52 -0
  24. package/dist-cjs/commands/GetRecommendationsCommand.js +52 -0
  25. package/dist-cjs/commands/GetSessionCommand.js +51 -0
  26. package/dist-cjs/commands/ListAssistantAssociationsCommand.js +51 -0
  27. package/dist-cjs/commands/ListAssistantsCommand.js +51 -0
  28. package/dist-cjs/commands/ListContentsCommand.js +51 -0
  29. package/dist-cjs/commands/ListImportJobsCommand.js +51 -0
  30. package/dist-cjs/commands/ListKnowledgeBasesCommand.js +51 -0
  31. package/dist-cjs/commands/ListQuickResponsesCommand.js +52 -0
  32. package/dist-cjs/commands/ListTagsForResourceCommand.js +51 -0
  33. package/dist-cjs/commands/NotifyRecommendationsReceivedCommand.js +51 -0
  34. package/dist-cjs/commands/QueryAssistantCommand.js +52 -0
  35. package/dist-cjs/commands/RemoveKnowledgeBaseTemplateUriCommand.js +51 -0
  36. package/dist-cjs/commands/SearchContentCommand.js +51 -0
  37. package/dist-cjs/commands/SearchQuickResponsesCommand.js +52 -0
  38. package/dist-cjs/commands/SearchSessionsCommand.js +51 -0
  39. package/dist-cjs/commands/StartContentUploadCommand.js +52 -0
  40. package/dist-cjs/commands/StartImportJobCommand.js +52 -0
  41. package/dist-cjs/commands/TagResourceCommand.js +51 -0
  42. package/dist-cjs/commands/UntagResourceCommand.js +51 -0
  43. package/dist-cjs/commands/UpdateContentCommand.js +52 -0
  44. package/dist-cjs/commands/UpdateKnowledgeBaseTemplateUriCommand.js +51 -0
  45. package/dist-cjs/commands/UpdateQuickResponseCommand.js +52 -0
  46. package/dist-cjs/commands/index.js +44 -0
  47. package/dist-cjs/endpoint/EndpointParameters.js +12 -0
  48. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  49. package/dist-cjs/endpoint/ruleset.js +7 -0
  50. package/dist-cjs/extensionConfiguration.js +2 -0
  51. package/dist-cjs/index.js +12 -0
  52. package/dist-cjs/models/QConnectServiceException.js +12 -0
  53. package/dist-cjs/models/index.js +4 -0
  54. package/dist-cjs/models/models_0.js +559 -0
  55. package/dist-cjs/pagination/Interfaces.js +2 -0
  56. package/dist-cjs/pagination/ListAssistantAssociationsPaginator.js +29 -0
  57. package/dist-cjs/pagination/ListAssistantsPaginator.js +29 -0
  58. package/dist-cjs/pagination/ListContentsPaginator.js +29 -0
  59. package/dist-cjs/pagination/ListImportJobsPaginator.js +29 -0
  60. package/dist-cjs/pagination/ListKnowledgeBasesPaginator.js +29 -0
  61. package/dist-cjs/pagination/ListQuickResponsesPaginator.js +29 -0
  62. package/dist-cjs/pagination/QueryAssistantPaginator.js +29 -0
  63. package/dist-cjs/pagination/SearchContentPaginator.js +29 -0
  64. package/dist-cjs/pagination/SearchQuickResponsesPaginator.js +29 -0
  65. package/dist-cjs/pagination/SearchSessionsPaginator.js +29 -0
  66. package/dist-cjs/pagination/index.js +14 -0
  67. package/dist-cjs/protocols/Aws_restJson1.js +2993 -0
  68. package/dist-cjs/runtimeConfig.browser.js +39 -0
  69. package/dist-cjs/runtimeConfig.js +50 -0
  70. package/dist-cjs/runtimeConfig.native.js +15 -0
  71. package/dist-cjs/runtimeConfig.shared.js +24 -0
  72. package/dist-cjs/runtimeExtensions.js +22 -0
  73. package/dist-es/QConnect.js +89 -0
  74. package/dist-es/QConnectClient.js +39 -0
  75. package/dist-es/commands/CreateAssistantAssociationCommand.js +47 -0
  76. package/dist-es/commands/CreateAssistantCommand.js +47 -0
  77. package/dist-es/commands/CreateContentCommand.js +48 -0
  78. package/dist-es/commands/CreateKnowledgeBaseCommand.js +47 -0
  79. package/dist-es/commands/CreateQuickResponseCommand.js +48 -0
  80. package/dist-es/commands/CreateSessionCommand.js +47 -0
  81. package/dist-es/commands/DeleteAssistantAssociationCommand.js +47 -0
  82. package/dist-es/commands/DeleteAssistantCommand.js +47 -0
  83. package/dist-es/commands/DeleteContentCommand.js +47 -0
  84. package/dist-es/commands/DeleteImportJobCommand.js +47 -0
  85. package/dist-es/commands/DeleteKnowledgeBaseCommand.js +47 -0
  86. package/dist-es/commands/DeleteQuickResponseCommand.js +47 -0
  87. package/dist-es/commands/GetAssistantAssociationCommand.js +47 -0
  88. package/dist-es/commands/GetAssistantCommand.js +47 -0
  89. package/dist-es/commands/GetContentCommand.js +48 -0
  90. package/dist-es/commands/GetContentSummaryCommand.js +47 -0
  91. package/dist-es/commands/GetImportJobCommand.js +48 -0
  92. package/dist-es/commands/GetKnowledgeBaseCommand.js +47 -0
  93. package/dist-es/commands/GetQuickResponseCommand.js +48 -0
  94. package/dist-es/commands/GetRecommendationsCommand.js +48 -0
  95. package/dist-es/commands/GetSessionCommand.js +47 -0
  96. package/dist-es/commands/ListAssistantAssociationsCommand.js +47 -0
  97. package/dist-es/commands/ListAssistantsCommand.js +47 -0
  98. package/dist-es/commands/ListContentsCommand.js +47 -0
  99. package/dist-es/commands/ListImportJobsCommand.js +47 -0
  100. package/dist-es/commands/ListKnowledgeBasesCommand.js +47 -0
  101. package/dist-es/commands/ListQuickResponsesCommand.js +48 -0
  102. package/dist-es/commands/ListTagsForResourceCommand.js +47 -0
  103. package/dist-es/commands/NotifyRecommendationsReceivedCommand.js +47 -0
  104. package/dist-es/commands/QueryAssistantCommand.js +48 -0
  105. package/dist-es/commands/RemoveKnowledgeBaseTemplateUriCommand.js +47 -0
  106. package/dist-es/commands/SearchContentCommand.js +47 -0
  107. package/dist-es/commands/SearchQuickResponsesCommand.js +48 -0
  108. package/dist-es/commands/SearchSessionsCommand.js +47 -0
  109. package/dist-es/commands/StartContentUploadCommand.js +48 -0
  110. package/dist-es/commands/StartImportJobCommand.js +48 -0
  111. package/dist-es/commands/TagResourceCommand.js +47 -0
  112. package/dist-es/commands/UntagResourceCommand.js +47 -0
  113. package/dist-es/commands/UpdateContentCommand.js +48 -0
  114. package/dist-es/commands/UpdateKnowledgeBaseTemplateUriCommand.js +47 -0
  115. package/dist-es/commands/UpdateQuickResponseCommand.js +48 -0
  116. package/dist-es/commands/index.js +41 -0
  117. package/dist-es/endpoint/EndpointParameters.js +8 -0
  118. package/dist-es/endpoint/endpointResolver.js +8 -0
  119. package/dist-es/endpoint/ruleset.js +4 -0
  120. package/dist-es/extensionConfiguration.js +1 -0
  121. package/dist-es/index.js +7 -0
  122. package/dist-es/models/QConnectServiceException.js +8 -0
  123. package/dist-es/models/index.js +1 -0
  124. package/dist-es/models/models_0.js +508 -0
  125. package/dist-es/pagination/Interfaces.js +1 -0
  126. package/dist-es/pagination/ListAssistantAssociationsPaginator.js +25 -0
  127. package/dist-es/pagination/ListAssistantsPaginator.js +25 -0
  128. package/dist-es/pagination/ListContentsPaginator.js +25 -0
  129. package/dist-es/pagination/ListImportJobsPaginator.js +25 -0
  130. package/dist-es/pagination/ListKnowledgeBasesPaginator.js +25 -0
  131. package/dist-es/pagination/ListQuickResponsesPaginator.js +25 -0
  132. package/dist-es/pagination/QueryAssistantPaginator.js +25 -0
  133. package/dist-es/pagination/SearchContentPaginator.js +25 -0
  134. package/dist-es/pagination/SearchQuickResponsesPaginator.js +25 -0
  135. package/dist-es/pagination/SearchSessionsPaginator.js +25 -0
  136. package/dist-es/pagination/index.js +11 -0
  137. package/dist-es/protocols/Aws_restJson1.js +2907 -0
  138. package/dist-es/runtimeConfig.browser.js +34 -0
  139. package/dist-es/runtimeConfig.js +45 -0
  140. package/dist-es/runtimeConfig.native.js +11 -0
  141. package/dist-es/runtimeConfig.shared.js +20 -0
  142. package/dist-es/runtimeExtensions.js +18 -0
  143. package/dist-types/QConnect.d.ts +309 -0
  144. package/dist-types/QConnectClient.d.ts +222 -0
  145. package/dist-types/commands/CreateAssistantAssociationCommand.d.ts +117 -0
  146. package/dist-types/commands/CreateAssistantCommand.d.ts +117 -0
  147. package/dist-types/commands/CreateContentCommand.d.ts +123 -0
  148. package/dist-types/commands/CreateKnowledgeBaseCommand.d.ts +157 -0
  149. package/dist-types/commands/CreateQuickResponseCommand.d.ts +149 -0
  150. package/dist-types/commands/CreateSessionCommand.d.ts +104 -0
  151. package/dist-types/commands/DeleteAssistantAssociationCommand.d.ts +81 -0
  152. package/dist-types/commands/DeleteAssistantCommand.d.ts +80 -0
  153. package/dist-types/commands/DeleteContentCommand.d.ts +81 -0
  154. package/dist-types/commands/DeleteImportJobCommand.d.ts +87 -0
  155. package/dist-types/commands/DeleteKnowledgeBaseCommand.d.ts +94 -0
  156. package/dist-types/commands/DeleteQuickResponseCommand.d.ts +81 -0
  157. package/dist-types/commands/GetAssistantAssociationCommand.d.ts +98 -0
  158. package/dist-types/commands/GetAssistantCommand.d.ts +101 -0
  159. package/dist-types/commands/GetContentCommand.d.ts +102 -0
  160. package/dist-types/commands/GetContentSummaryCommand.d.ts +99 -0
  161. package/dist-types/commands/GetImportJobCommand.d.ts +106 -0
  162. package/dist-types/commands/GetKnowledgeBaseCommand.d.ts +107 -0
  163. package/dist-types/commands/GetQuickResponseCommand.d.ts +118 -0
  164. package/dist-types/commands/GetRecommendationsCommand.d.ts +239 -0
  165. package/dist-types/commands/GetSessionCommand.d.ts +94 -0
  166. package/dist-types/commands/ListAssistantAssociationsCommand.d.ts +102 -0
  167. package/dist-types/commands/ListAssistantsCommand.d.ts +102 -0
  168. package/dist-types/commands/ListContentsCommand.d.ts +103 -0
  169. package/dist-types/commands/ListImportJobsCommand.d.ts +104 -0
  170. package/dist-types/commands/ListKnowledgeBasesCommand.d.ts +107 -0
  171. package/dist-types/commands/ListQuickResponsesCommand.d.ts +106 -0
  172. package/dist-types/commands/ListTagsForResourceCommand.d.ts +78 -0
  173. package/dist-types/commands/NotifyRecommendationsReceivedCommand.d.ts +96 -0
  174. package/dist-types/commands/QueryAssistantCommand.d.ts +238 -0
  175. package/dist-types/commands/RemoveKnowledgeBaseTemplateUriCommand.d.ts +80 -0
  176. package/dist-types/commands/SearchContentCommand.d.ts +113 -0
  177. package/dist-types/commands/SearchQuickResponsesCommand.d.ts +163 -0
  178. package/dist-types/commands/SearchSessionsCommand.d.ts +101 -0
  179. package/dist-types/commands/StartContentUploadCommand.d.ts +92 -0
  180. package/dist-types/commands/StartImportJobCommand.d.ts +135 -0
  181. package/dist-types/commands/TagResourceCommand.d.ts +80 -0
  182. package/dist-types/commands/UntagResourceCommand.d.ts +77 -0
  183. package/dist-types/commands/UpdateContentCommand.d.ts +114 -0
  184. package/dist-types/commands/UpdateKnowledgeBaseTemplateUriCommand.d.ts +113 -0
  185. package/dist-types/commands/UpdateQuickResponseCommand.d.ts +149 -0
  186. package/dist-types/commands/index.d.ts +41 -0
  187. package/dist-types/endpoint/EndpointParameters.d.ts +22 -0
  188. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  189. package/dist-types/endpoint/ruleset.d.ts +2 -0
  190. package/dist-types/extensionConfiguration.d.ts +8 -0
  191. package/dist-types/index.d.ts +27 -0
  192. package/dist-types/models/QConnectServiceException.d.ts +13 -0
  193. package/dist-types/models/index.d.ts +1 -0
  194. package/dist-types/models/models_0.d.ts +4249 -0
  195. package/dist-types/pagination/Interfaces.d.ts +8 -0
  196. package/dist-types/pagination/ListAssistantAssociationsPaginator.d.ts +7 -0
  197. package/dist-types/pagination/ListAssistantsPaginator.d.ts +7 -0
  198. package/dist-types/pagination/ListContentsPaginator.d.ts +7 -0
  199. package/dist-types/pagination/ListImportJobsPaginator.d.ts +7 -0
  200. package/dist-types/pagination/ListKnowledgeBasesPaginator.d.ts +7 -0
  201. package/dist-types/pagination/ListQuickResponsesPaginator.d.ts +7 -0
  202. package/dist-types/pagination/QueryAssistantPaginator.d.ts +7 -0
  203. package/dist-types/pagination/SearchContentPaginator.d.ts +7 -0
  204. package/dist-types/pagination/SearchQuickResponsesPaginator.d.ts +7 -0
  205. package/dist-types/pagination/SearchSessionsPaginator.d.ts +7 -0
  206. package/dist-types/pagination/index.d.ts +11 -0
  207. package/dist-types/protocols/Aws_restJson1.d.ts +371 -0
  208. package/dist-types/runtimeConfig.browser.d.ts +46 -0
  209. package/dist-types/runtimeConfig.d.ts +46 -0
  210. package/dist-types/runtimeConfig.native.d.ts +45 -0
  211. package/dist-types/runtimeConfig.shared.d.ts +19 -0
  212. package/dist-types/runtimeExtensions.d.ts +17 -0
  213. package/dist-types/ts3.4/QConnect.d.ts +702 -0
  214. package/dist-types/ts3.4/QConnectClient.d.ts +364 -0
  215. package/dist-types/ts3.4/commands/CreateAssistantAssociationCommand.d.ts +42 -0
  216. package/dist-types/ts3.4/commands/CreateAssistantCommand.d.ts +38 -0
  217. package/dist-types/ts3.4/commands/CreateContentCommand.d.ts +38 -0
  218. package/dist-types/ts3.4/commands/CreateKnowledgeBaseCommand.d.ts +39 -0
  219. package/dist-types/ts3.4/commands/CreateQuickResponseCommand.d.ts +39 -0
  220. package/dist-types/ts3.4/commands/CreateSessionCommand.d.ts +38 -0
  221. package/dist-types/ts3.4/commands/DeleteAssistantAssociationCommand.d.ts +42 -0
  222. package/dist-types/ts3.4/commands/DeleteAssistantCommand.d.ts +38 -0
  223. package/dist-types/ts3.4/commands/DeleteContentCommand.d.ts +38 -0
  224. package/dist-types/ts3.4/commands/DeleteImportJobCommand.d.ts +38 -0
  225. package/dist-types/ts3.4/commands/DeleteKnowledgeBaseCommand.d.ts +39 -0
  226. package/dist-types/ts3.4/commands/DeleteQuickResponseCommand.d.ts +39 -0
  227. package/dist-types/ts3.4/commands/GetAssistantAssociationCommand.d.ts +42 -0
  228. package/dist-types/ts3.4/commands/GetAssistantCommand.d.ts +35 -0
  229. package/dist-types/ts3.4/commands/GetContentCommand.d.ts +35 -0
  230. package/dist-types/ts3.4/commands/GetContentSummaryCommand.d.ts +39 -0
  231. package/dist-types/ts3.4/commands/GetImportJobCommand.d.ts +35 -0
  232. package/dist-types/ts3.4/commands/GetKnowledgeBaseCommand.d.ts +38 -0
  233. package/dist-types/ts3.4/commands/GetQuickResponseCommand.d.ts +38 -0
  234. package/dist-types/ts3.4/commands/GetRecommendationsCommand.d.ts +39 -0
  235. package/dist-types/ts3.4/commands/GetSessionCommand.d.ts +35 -0
  236. package/dist-types/ts3.4/commands/ListAssistantAssociationsCommand.d.ts +42 -0
  237. package/dist-types/ts3.4/commands/ListAssistantsCommand.d.ts +38 -0
  238. package/dist-types/ts3.4/commands/ListContentsCommand.d.ts +35 -0
  239. package/dist-types/ts3.4/commands/ListImportJobsCommand.d.ts +38 -0
  240. package/dist-types/ts3.4/commands/ListKnowledgeBasesCommand.d.ts +39 -0
  241. package/dist-types/ts3.4/commands/ListQuickResponsesCommand.d.ts +39 -0
  242. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
  243. package/dist-types/ts3.4/commands/NotifyRecommendationsReceivedCommand.d.ts +42 -0
  244. package/dist-types/ts3.4/commands/QueryAssistantCommand.d.ts +38 -0
  245. package/dist-types/ts3.4/commands/RemoveKnowledgeBaseTemplateUriCommand.d.ts +42 -0
  246. package/dist-types/ts3.4/commands/SearchContentCommand.d.ts +38 -0
  247. package/dist-types/ts3.4/commands/SearchQuickResponsesCommand.d.ts +42 -0
  248. package/dist-types/ts3.4/commands/SearchSessionsCommand.d.ts +38 -0
  249. package/dist-types/ts3.4/commands/StartContentUploadCommand.d.ts +39 -0
  250. package/dist-types/ts3.4/commands/StartImportJobCommand.d.ts +38 -0
  251. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +35 -0
  252. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -0
  253. package/dist-types/ts3.4/commands/UpdateContentCommand.d.ts +38 -0
  254. package/dist-types/ts3.4/commands/UpdateKnowledgeBaseTemplateUriCommand.d.ts +42 -0
  255. package/dist-types/ts3.4/commands/UpdateQuickResponseCommand.d.ts +39 -0
  256. package/dist-types/ts3.4/commands/index.d.ts +41 -0
  257. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +33 -0
  258. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  259. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  260. package/dist-types/ts3.4/extensionConfiguration.d.ts +7 -0
  261. package/dist-types/ts3.4/index.d.ts +10 -0
  262. package/dist-types/ts3.4/models/QConnectServiceException.d.ts +8 -0
  263. package/dist-types/ts3.4/models/index.d.ts +1 -0
  264. package/dist-types/ts3.4/models/models_0.d.ts +1241 -0
  265. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  266. package/dist-types/ts3.4/pagination/ListAssistantAssociationsPaginator.d.ts +11 -0
  267. package/dist-types/ts3.4/pagination/ListAssistantsPaginator.d.ts +11 -0
  268. package/dist-types/ts3.4/pagination/ListContentsPaginator.d.ts +11 -0
  269. package/dist-types/ts3.4/pagination/ListImportJobsPaginator.d.ts +11 -0
  270. package/dist-types/ts3.4/pagination/ListKnowledgeBasesPaginator.d.ts +11 -0
  271. package/dist-types/ts3.4/pagination/ListQuickResponsesPaginator.d.ts +11 -0
  272. package/dist-types/ts3.4/pagination/QueryAssistantPaginator.d.ts +11 -0
  273. package/dist-types/ts3.4/pagination/SearchContentPaginator.d.ts +11 -0
  274. package/dist-types/ts3.4/pagination/SearchQuickResponsesPaginator.d.ts +11 -0
  275. package/dist-types/ts3.4/pagination/SearchSessionsPaginator.d.ts +11 -0
  276. package/dist-types/ts3.4/pagination/index.d.ts +11 -0
  277. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +497 -0
  278. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +97 -0
  279. package/dist-types/ts3.4/runtimeConfig.d.ts +97 -0
  280. package/dist-types/ts3.4/runtimeConfig.native.d.ts +88 -0
  281. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +19 -0
  282. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  283. package/package.json +104 -0
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuntimeConfig = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
+ const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
+ const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
8
+ const config_resolver_1 = require("@smithy/config-resolver");
9
+ const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
10
+ const invalid_dependency_1 = require("@smithy/invalid-dependency");
11
+ const util_body_length_browser_1 = require("@smithy/util-body-length-browser");
12
+ const util_retry_1 = require("@smithy/util-retry");
13
+ const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
14
+ const smithy_client_1 = require("@smithy/smithy-client");
15
+ const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
16
+ const getRuntimeConfig = (config) => {
17
+ const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
18
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
19
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
20
+ return {
21
+ ...clientSharedValues,
22
+ ...config,
23
+ runtime: "browser",
24
+ defaultsMode,
25
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
26
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
27
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
28
+ (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
29
+ maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
30
+ region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
31
+ requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
32
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE),
33
+ sha256: config?.sha256 ?? sha256_browser_1.Sha256,
34
+ streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
35
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
36
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
37
+ };
38
+ };
39
+ exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuntimeConfig = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
+ const client_sts_1 = require("@aws-sdk/client-sts");
7
+ const core_1 = require("@aws-sdk/core");
8
+ const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
9
+ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
10
+ const config_resolver_1 = require("@smithy/config-resolver");
11
+ const hash_node_1 = require("@smithy/hash-node");
12
+ const middleware_retry_1 = require("@smithy/middleware-retry");
13
+ const node_config_provider_1 = require("@smithy/node-config-provider");
14
+ const node_http_handler_1 = require("@smithy/node-http-handler");
15
+ const util_body_length_node_1 = require("@smithy/util-body-length-node");
16
+ const util_retry_1 = require("@smithy/util-retry");
17
+ const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
+ const smithy_client_1 = require("@smithy/smithy-client");
19
+ const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
20
+ const smithy_client_2 = require("@smithy/smithy-client");
21
+ const getRuntimeConfig = (config) => {
22
+ (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
23
+ const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
24
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
25
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
26
+ (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
27
+ return {
28
+ ...clientSharedValues,
29
+ ...config,
30
+ runtime: "node",
31
+ defaultsMode,
32
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
33
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
34
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
35
+ (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
36
+ maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
37
+ region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
38
+ requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
39
+ retryMode: config?.retryMode ??
40
+ (0, node_config_provider_1.loadConfig)({
41
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
42
+ default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
43
+ }),
44
+ sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
45
+ streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
46
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
47
+ useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
48
+ };
49
+ };
50
+ exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuntimeConfig = void 0;
4
+ const sha256_js_1 = require("@aws-crypto/sha256-js");
5
+ const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
+ const getRuntimeConfig = (config) => {
7
+ const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
8
+ return {
9
+ ...browserDefaults,
10
+ ...config,
11
+ runtime: "react-native",
12
+ sha256: config?.sha256 ?? sha256_js_1.Sha256,
13
+ };
14
+ };
15
+ exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuntimeConfig = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ const url_parser_1 = require("@smithy/url-parser");
6
+ const util_base64_1 = require("@smithy/util-base64");
7
+ const util_utf8_1 = require("@smithy/util-utf8");
8
+ const endpointResolver_1 = require("./endpoint/endpointResolver");
9
+ const getRuntimeConfig = (config) => {
10
+ return {
11
+ apiVersion: "2020-10-19",
12
+ base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
13
+ base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
14
+ disableHostPrefix: config?.disableHostPrefix ?? false,
15
+ endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
16
+ extensions: config?.extensions ?? [],
17
+ logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
18
+ serviceId: config?.serviceId ?? "QConnect",
19
+ urlParser: config?.urlParser ?? url_parser_1.parseUrl,
20
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
21
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
22
+ };
23
+ };
24
+ exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resolveRuntimeExtensions = void 0;
4
+ const region_config_resolver_1 = require("@aws-sdk/region-config-resolver");
5
+ const protocol_http_1 = require("@smithy/protocol-http");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ const asPartial = (t) => t;
8
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
9
+ const extensionConfiguration = {
10
+ ...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)),
11
+ ...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
12
+ ...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
13
+ };
14
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
15
+ return {
16
+ ...runtimeConfig,
17
+ ...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
18
+ ...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
19
+ ...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
20
+ };
21
+ };
22
+ exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
@@ -0,0 +1,89 @@
1
+ import { createAggregatedClient } from "@smithy/smithy-client";
2
+ import { CreateAssistantAssociationCommand, } from "./commands/CreateAssistantAssociationCommand";
3
+ import { CreateAssistantCommand, } from "./commands/CreateAssistantCommand";
4
+ import { CreateContentCommand, } from "./commands/CreateContentCommand";
5
+ import { CreateKnowledgeBaseCommand, } from "./commands/CreateKnowledgeBaseCommand";
6
+ import { CreateQuickResponseCommand, } from "./commands/CreateQuickResponseCommand";
7
+ import { CreateSessionCommand, } from "./commands/CreateSessionCommand";
8
+ import { DeleteAssistantAssociationCommand, } from "./commands/DeleteAssistantAssociationCommand";
9
+ import { DeleteAssistantCommand, } from "./commands/DeleteAssistantCommand";
10
+ import { DeleteContentCommand, } from "./commands/DeleteContentCommand";
11
+ import { DeleteImportJobCommand, } from "./commands/DeleteImportJobCommand";
12
+ import { DeleteKnowledgeBaseCommand, } from "./commands/DeleteKnowledgeBaseCommand";
13
+ import { DeleteQuickResponseCommand, } from "./commands/DeleteQuickResponseCommand";
14
+ import { GetAssistantAssociationCommand, } from "./commands/GetAssistantAssociationCommand";
15
+ import { GetAssistantCommand, } from "./commands/GetAssistantCommand";
16
+ import { GetContentCommand } from "./commands/GetContentCommand";
17
+ import { GetContentSummaryCommand, } from "./commands/GetContentSummaryCommand";
18
+ import { GetImportJobCommand, } from "./commands/GetImportJobCommand";
19
+ import { GetKnowledgeBaseCommand, } from "./commands/GetKnowledgeBaseCommand";
20
+ import { GetQuickResponseCommand, } from "./commands/GetQuickResponseCommand";
21
+ import { GetRecommendationsCommand, } from "./commands/GetRecommendationsCommand";
22
+ import { GetSessionCommand } from "./commands/GetSessionCommand";
23
+ import { ListAssistantAssociationsCommand, } from "./commands/ListAssistantAssociationsCommand";
24
+ import { ListAssistantsCommand, } from "./commands/ListAssistantsCommand";
25
+ import { ListContentsCommand, } from "./commands/ListContentsCommand";
26
+ import { ListImportJobsCommand, } from "./commands/ListImportJobsCommand";
27
+ import { ListKnowledgeBasesCommand, } from "./commands/ListKnowledgeBasesCommand";
28
+ import { ListQuickResponsesCommand, } from "./commands/ListQuickResponsesCommand";
29
+ import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
30
+ import { NotifyRecommendationsReceivedCommand, } from "./commands/NotifyRecommendationsReceivedCommand";
31
+ import { QueryAssistantCommand, } from "./commands/QueryAssistantCommand";
32
+ import { RemoveKnowledgeBaseTemplateUriCommand, } from "./commands/RemoveKnowledgeBaseTemplateUriCommand";
33
+ import { SearchContentCommand, } from "./commands/SearchContentCommand";
34
+ import { SearchQuickResponsesCommand, } from "./commands/SearchQuickResponsesCommand";
35
+ import { SearchSessionsCommand, } from "./commands/SearchSessionsCommand";
36
+ import { StartContentUploadCommand, } from "./commands/StartContentUploadCommand";
37
+ import { StartImportJobCommand, } from "./commands/StartImportJobCommand";
38
+ import { TagResourceCommand } from "./commands/TagResourceCommand";
39
+ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
40
+ import { UpdateContentCommand, } from "./commands/UpdateContentCommand";
41
+ import { UpdateKnowledgeBaseTemplateUriCommand, } from "./commands/UpdateKnowledgeBaseTemplateUriCommand";
42
+ import { UpdateQuickResponseCommand, } from "./commands/UpdateQuickResponseCommand";
43
+ import { QConnectClient } from "./QConnectClient";
44
+ const commands = {
45
+ CreateAssistantCommand,
46
+ CreateAssistantAssociationCommand,
47
+ CreateContentCommand,
48
+ CreateKnowledgeBaseCommand,
49
+ CreateQuickResponseCommand,
50
+ CreateSessionCommand,
51
+ DeleteAssistantCommand,
52
+ DeleteAssistantAssociationCommand,
53
+ DeleteContentCommand,
54
+ DeleteImportJobCommand,
55
+ DeleteKnowledgeBaseCommand,
56
+ DeleteQuickResponseCommand,
57
+ GetAssistantCommand,
58
+ GetAssistantAssociationCommand,
59
+ GetContentCommand,
60
+ GetContentSummaryCommand,
61
+ GetImportJobCommand,
62
+ GetKnowledgeBaseCommand,
63
+ GetQuickResponseCommand,
64
+ GetRecommendationsCommand,
65
+ GetSessionCommand,
66
+ ListAssistantAssociationsCommand,
67
+ ListAssistantsCommand,
68
+ ListContentsCommand,
69
+ ListImportJobsCommand,
70
+ ListKnowledgeBasesCommand,
71
+ ListQuickResponsesCommand,
72
+ ListTagsForResourceCommand,
73
+ NotifyRecommendationsReceivedCommand,
74
+ QueryAssistantCommand,
75
+ RemoveKnowledgeBaseTemplateUriCommand,
76
+ SearchContentCommand,
77
+ SearchQuickResponsesCommand,
78
+ SearchSessionsCommand,
79
+ StartContentUploadCommand,
80
+ StartImportJobCommand,
81
+ TagResourceCommand,
82
+ UntagResourceCommand,
83
+ UpdateContentCommand,
84
+ UpdateKnowledgeBaseTemplateUriCommand,
85
+ UpdateQuickResponseCommand,
86
+ };
87
+ export class QConnect extends QConnectClient {
88
+ }
89
+ createAggregatedClient(commands, QConnect);
@@ -0,0 +1,39 @@
1
+ import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
2
+ import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
3
+ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
4
+ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
5
+ import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
6
+ import { resolveRegionConfig } from "@smithy/config-resolver";
7
+ import { getContentLengthPlugin } from "@smithy/middleware-content-length";
8
+ import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
9
+ import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
10
+ import { Client as __Client, } from "@smithy/smithy-client";
11
+ import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
12
+ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
13
+ import { resolveRuntimeExtensions } from "./runtimeExtensions";
14
+ export { __Client };
15
+ export class QConnectClient extends __Client {
16
+ constructor(...[configuration]) {
17
+ const _config_0 = __getRuntimeConfig(configuration || {});
18
+ const _config_1 = resolveClientEndpointParameters(_config_0);
19
+ const _config_2 = resolveRegionConfig(_config_1);
20
+ const _config_3 = resolveEndpointConfig(_config_2);
21
+ const _config_4 = resolveRetryConfig(_config_3);
22
+ const _config_5 = resolveHostHeaderConfig(_config_4);
23
+ const _config_6 = resolveAwsAuthConfig(_config_5);
24
+ const _config_7 = resolveUserAgentConfig(_config_6);
25
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
26
+ super(_config_8);
27
+ this.config = _config_8;
28
+ this.middlewareStack.use(getRetryPlugin(this.config));
29
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
30
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
31
+ this.middlewareStack.use(getLoggerPlugin(this.config));
32
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
33
+ this.middlewareStack.use(getAwsAuthPlugin(this.config));
34
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
35
+ }
36
+ destroy() {
37
+ super.destroy();
38
+ }
39
+ }
@@ -0,0 +1,47 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_CreateAssistantAssociationCommand, se_CreateAssistantAssociationCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class CreateAssistantAssociationCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, CreateAssistantAssociationCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "QConnectClient";
26
+ const commandName = "CreateAssistantAssociationCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "WisdomService",
35
+ operation: "CreateAssistantAssociation",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_CreateAssistantAssociationCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_CreateAssistantAssociationCommand(output, context);
46
+ }
47
+ }
@@ -0,0 +1,47 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_CreateAssistantCommand, se_CreateAssistantCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class CreateAssistantCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, CreateAssistantCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "QConnectClient";
26
+ const commandName = "CreateAssistantCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "WisdomService",
35
+ operation: "CreateAssistant",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_CreateAssistantCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_CreateAssistantCommand(output, context);
46
+ }
47
+ }
@@ -0,0 +1,48 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { CreateContentResponseFilterSensitiveLog, } from "../models/models_0";
6
+ import { de_CreateContentCommand, se_CreateContentCommand } from "../protocols/Aws_restJson1";
7
+ export { $Command };
8
+ export class CreateContentCommand extends $Command {
9
+ static getEndpointParameterInstructions() {
10
+ return {
11
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
+ Endpoint: { type: "builtInParams", name: "endpoint" },
13
+ Region: { type: "builtInParams", name: "region" },
14
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
+ };
16
+ }
17
+ constructor(input) {
18
+ super();
19
+ this.input = input;
20
+ }
21
+ resolveMiddleware(clientStack, configuration, options) {
22
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
+ this.middlewareStack.use(getEndpointPlugin(configuration, CreateContentCommand.getEndpointParameterInstructions()));
24
+ const stack = clientStack.concat(this.middlewareStack);
25
+ const { logger } = configuration;
26
+ const clientName = "QConnectClient";
27
+ const commandName = "CreateContentCommand";
28
+ const handlerExecutionContext = {
29
+ logger,
30
+ clientName,
31
+ commandName,
32
+ inputFilterSensitiveLog: (_) => _,
33
+ outputFilterSensitiveLog: CreateContentResponseFilterSensitiveLog,
34
+ [SMITHY_CONTEXT_KEY]: {
35
+ service: "WisdomService",
36
+ operation: "CreateContent",
37
+ },
38
+ };
39
+ const { requestHandler } = configuration;
40
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
+ }
42
+ serialize(input, context) {
43
+ return se_CreateContentCommand(input, context);
44
+ }
45
+ deserialize(output, context) {
46
+ return de_CreateContentCommand(output, context);
47
+ }
48
+ }
@@ -0,0 +1,47 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_CreateKnowledgeBaseCommand, se_CreateKnowledgeBaseCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class CreateKnowledgeBaseCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, CreateKnowledgeBaseCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "QConnectClient";
26
+ const commandName = "CreateKnowledgeBaseCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "WisdomService",
35
+ operation: "CreateKnowledgeBase",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_CreateKnowledgeBaseCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_CreateKnowledgeBaseCommand(output, context);
46
+ }
47
+ }
@@ -0,0 +1,48 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { CreateQuickResponseRequestFilterSensitiveLog, CreateQuickResponseResponseFilterSensitiveLog, } from "../models/models_0";
6
+ import { de_CreateQuickResponseCommand, se_CreateQuickResponseCommand } from "../protocols/Aws_restJson1";
7
+ export { $Command };
8
+ export class CreateQuickResponseCommand extends $Command {
9
+ static getEndpointParameterInstructions() {
10
+ return {
11
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
+ Endpoint: { type: "builtInParams", name: "endpoint" },
13
+ Region: { type: "builtInParams", name: "region" },
14
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
+ };
16
+ }
17
+ constructor(input) {
18
+ super();
19
+ this.input = input;
20
+ }
21
+ resolveMiddleware(clientStack, configuration, options) {
22
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
+ this.middlewareStack.use(getEndpointPlugin(configuration, CreateQuickResponseCommand.getEndpointParameterInstructions()));
24
+ const stack = clientStack.concat(this.middlewareStack);
25
+ const { logger } = configuration;
26
+ const clientName = "QConnectClient";
27
+ const commandName = "CreateQuickResponseCommand";
28
+ const handlerExecutionContext = {
29
+ logger,
30
+ clientName,
31
+ commandName,
32
+ inputFilterSensitiveLog: CreateQuickResponseRequestFilterSensitiveLog,
33
+ outputFilterSensitiveLog: CreateQuickResponseResponseFilterSensitiveLog,
34
+ [SMITHY_CONTEXT_KEY]: {
35
+ service: "WisdomService",
36
+ operation: "CreateQuickResponse",
37
+ },
38
+ };
39
+ const { requestHandler } = configuration;
40
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
+ }
42
+ serialize(input, context) {
43
+ return se_CreateQuickResponseCommand(input, context);
44
+ }
45
+ deserialize(output, context) {
46
+ return de_CreateQuickResponseCommand(output, context);
47
+ }
48
+ }
@@ -0,0 +1,47 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_CreateSessionCommand, se_CreateSessionCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class CreateSessionCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, CreateSessionCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "QConnectClient";
26
+ const commandName = "CreateSessionCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "WisdomService",
35
+ operation: "CreateSession",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_CreateSessionCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_CreateSessionCommand(output, context);
46
+ }
47
+ }
@@ -0,0 +1,47 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_DeleteAssistantAssociationCommand, se_DeleteAssistantAssociationCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class DeleteAssistantAssociationCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, DeleteAssistantAssociationCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "QConnectClient";
26
+ const commandName = "DeleteAssistantAssociationCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "WisdomService",
35
+ operation: "DeleteAssistantAssociation",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_DeleteAssistantAssociationCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_DeleteAssistantAssociationCommand(output, context);
46
+ }
47
+ }