@aws-sdk/client-wisdom 3.1076.0 → 3.1078.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 (143) hide show
  1. package/dist-cjs/index.js +52 -415
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/CreateAssistantAssociationCommand.js +2 -14
  4. package/dist-es/commands/CreateAssistantCommand.js +2 -14
  5. package/dist-es/commands/CreateContentCommand.js +2 -14
  6. package/dist-es/commands/CreateKnowledgeBaseCommand.js +2 -14
  7. package/dist-es/commands/CreateQuickResponseCommand.js +2 -14
  8. package/dist-es/commands/CreateSessionCommand.js +2 -14
  9. package/dist-es/commands/DeleteAssistantAssociationCommand.js +2 -14
  10. package/dist-es/commands/DeleteAssistantCommand.js +2 -14
  11. package/dist-es/commands/DeleteContentCommand.js +2 -14
  12. package/dist-es/commands/DeleteImportJobCommand.js +2 -14
  13. package/dist-es/commands/DeleteKnowledgeBaseCommand.js +2 -14
  14. package/dist-es/commands/DeleteQuickResponseCommand.js +2 -14
  15. package/dist-es/commands/GetAssistantAssociationCommand.js +2 -14
  16. package/dist-es/commands/GetAssistantCommand.js +2 -14
  17. package/dist-es/commands/GetContentCommand.js +2 -14
  18. package/dist-es/commands/GetContentSummaryCommand.js +2 -14
  19. package/dist-es/commands/GetImportJobCommand.js +2 -14
  20. package/dist-es/commands/GetKnowledgeBaseCommand.js +2 -14
  21. package/dist-es/commands/GetQuickResponseCommand.js +2 -14
  22. package/dist-es/commands/GetRecommendationsCommand.js +2 -14
  23. package/dist-es/commands/GetSessionCommand.js +2 -14
  24. package/dist-es/commands/ListAssistantAssociationsCommand.js +2 -14
  25. package/dist-es/commands/ListAssistantsCommand.js +2 -14
  26. package/dist-es/commands/ListContentsCommand.js +2 -14
  27. package/dist-es/commands/ListImportJobsCommand.js +2 -14
  28. package/dist-es/commands/ListKnowledgeBasesCommand.js +2 -14
  29. package/dist-es/commands/ListQuickResponsesCommand.js +2 -14
  30. package/dist-es/commands/ListTagsForResourceCommand.js +2 -14
  31. package/dist-es/commands/NotifyRecommendationsReceivedCommand.js +2 -14
  32. package/dist-es/commands/QueryAssistantCommand.js +2 -14
  33. package/dist-es/commands/RemoveKnowledgeBaseTemplateUriCommand.js +2 -14
  34. package/dist-es/commands/SearchContentCommand.js +2 -14
  35. package/dist-es/commands/SearchQuickResponsesCommand.js +2 -14
  36. package/dist-es/commands/SearchSessionsCommand.js +2 -14
  37. package/dist-es/commands/StartContentUploadCommand.js +2 -14
  38. package/dist-es/commands/StartImportJobCommand.js +2 -14
  39. package/dist-es/commands/TagResourceCommand.js +2 -14
  40. package/dist-es/commands/UntagResourceCommand.js +2 -14
  41. package/dist-es/commands/UpdateContentCommand.js +2 -14
  42. package/dist-es/commands/UpdateKnowledgeBaseTemplateUriCommand.js +2 -14
  43. package/dist-es/commands/UpdateQuickResponseCommand.js +2 -14
  44. package/dist-es/index.js +1 -0
  45. package/dist-es/runtimeConfig.browser.js +0 -2
  46. package/dist-es/runtimeConfig.js +1 -2
  47. package/dist-es/runtimeConfig.native.js +0 -2
  48. package/dist-es/runtimeConfig.shared.js +2 -0
  49. package/dist-types/commandBuilder.d.ts +18 -0
  50. package/dist-types/commands/CreateAssistantAssociationCommand.d.ts +3 -8
  51. package/dist-types/commands/CreateAssistantCommand.d.ts +3 -8
  52. package/dist-types/commands/CreateContentCommand.d.ts +3 -8
  53. package/dist-types/commands/CreateKnowledgeBaseCommand.d.ts +3 -8
  54. package/dist-types/commands/CreateQuickResponseCommand.d.ts +3 -8
  55. package/dist-types/commands/CreateSessionCommand.d.ts +3 -8
  56. package/dist-types/commands/DeleteAssistantAssociationCommand.d.ts +3 -8
  57. package/dist-types/commands/DeleteAssistantCommand.d.ts +3 -8
  58. package/dist-types/commands/DeleteContentCommand.d.ts +3 -8
  59. package/dist-types/commands/DeleteImportJobCommand.d.ts +3 -8
  60. package/dist-types/commands/DeleteKnowledgeBaseCommand.d.ts +3 -8
  61. package/dist-types/commands/DeleteQuickResponseCommand.d.ts +3 -8
  62. package/dist-types/commands/GetAssistantAssociationCommand.d.ts +3 -8
  63. package/dist-types/commands/GetAssistantCommand.d.ts +3 -8
  64. package/dist-types/commands/GetContentCommand.d.ts +3 -8
  65. package/dist-types/commands/GetContentSummaryCommand.d.ts +3 -8
  66. package/dist-types/commands/GetImportJobCommand.d.ts +3 -8
  67. package/dist-types/commands/GetKnowledgeBaseCommand.d.ts +3 -8
  68. package/dist-types/commands/GetQuickResponseCommand.d.ts +3 -8
  69. package/dist-types/commands/GetRecommendationsCommand.d.ts +3 -8
  70. package/dist-types/commands/GetSessionCommand.d.ts +3 -8
  71. package/dist-types/commands/ListAssistantAssociationsCommand.d.ts +3 -8
  72. package/dist-types/commands/ListAssistantsCommand.d.ts +3 -8
  73. package/dist-types/commands/ListContentsCommand.d.ts +3 -8
  74. package/dist-types/commands/ListImportJobsCommand.d.ts +3 -8
  75. package/dist-types/commands/ListKnowledgeBasesCommand.d.ts +3 -8
  76. package/dist-types/commands/ListQuickResponsesCommand.d.ts +3 -8
  77. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  78. package/dist-types/commands/NotifyRecommendationsReceivedCommand.d.ts +3 -8
  79. package/dist-types/commands/QueryAssistantCommand.d.ts +3 -8
  80. package/dist-types/commands/RemoveKnowledgeBaseTemplateUriCommand.d.ts +3 -8
  81. package/dist-types/commands/SearchContentCommand.d.ts +3 -8
  82. package/dist-types/commands/SearchQuickResponsesCommand.d.ts +3 -8
  83. package/dist-types/commands/SearchSessionsCommand.d.ts +3 -8
  84. package/dist-types/commands/StartContentUploadCommand.d.ts +3 -8
  85. package/dist-types/commands/StartImportJobCommand.d.ts +3 -8
  86. package/dist-types/commands/TagResourceCommand.d.ts +3 -8
  87. package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  88. package/dist-types/commands/UpdateContentCommand.d.ts +3 -8
  89. package/dist-types/commands/UpdateKnowledgeBaseTemplateUriCommand.d.ts +3 -8
  90. package/dist-types/commands/UpdateQuickResponseCommand.d.ts +3 -8
  91. package/dist-types/index.d.ts +1 -0
  92. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  93. package/dist-types/runtimeConfig.d.ts +1 -1
  94. package/dist-types/runtimeConfig.native.d.ts +1 -1
  95. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  96. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  97. package/dist-types/ts3.4/commands/CreateAssistantAssociationCommand.d.ts +7 -16
  98. package/dist-types/ts3.4/commands/CreateAssistantCommand.d.ts +7 -16
  99. package/dist-types/ts3.4/commands/CreateContentCommand.d.ts +7 -16
  100. package/dist-types/ts3.4/commands/CreateKnowledgeBaseCommand.d.ts +7 -16
  101. package/dist-types/ts3.4/commands/CreateQuickResponseCommand.d.ts +7 -16
  102. package/dist-types/ts3.4/commands/CreateSessionCommand.d.ts +7 -16
  103. package/dist-types/ts3.4/commands/DeleteAssistantAssociationCommand.d.ts +7 -16
  104. package/dist-types/ts3.4/commands/DeleteAssistantCommand.d.ts +7 -16
  105. package/dist-types/ts3.4/commands/DeleteContentCommand.d.ts +7 -16
  106. package/dist-types/ts3.4/commands/DeleteImportJobCommand.d.ts +7 -16
  107. package/dist-types/ts3.4/commands/DeleteKnowledgeBaseCommand.d.ts +7 -16
  108. package/dist-types/ts3.4/commands/DeleteQuickResponseCommand.d.ts +7 -16
  109. package/dist-types/ts3.4/commands/GetAssistantAssociationCommand.d.ts +7 -16
  110. package/dist-types/ts3.4/commands/GetAssistantCommand.d.ts +7 -16
  111. package/dist-types/ts3.4/commands/GetContentCommand.d.ts +7 -16
  112. package/dist-types/ts3.4/commands/GetContentSummaryCommand.d.ts +7 -16
  113. package/dist-types/ts3.4/commands/GetImportJobCommand.d.ts +7 -16
  114. package/dist-types/ts3.4/commands/GetKnowledgeBaseCommand.d.ts +7 -16
  115. package/dist-types/ts3.4/commands/GetQuickResponseCommand.d.ts +7 -16
  116. package/dist-types/ts3.4/commands/GetRecommendationsCommand.d.ts +7 -16
  117. package/dist-types/ts3.4/commands/GetSessionCommand.d.ts +7 -16
  118. package/dist-types/ts3.4/commands/ListAssistantAssociationsCommand.d.ts +7 -16
  119. package/dist-types/ts3.4/commands/ListAssistantsCommand.d.ts +7 -16
  120. package/dist-types/ts3.4/commands/ListContentsCommand.d.ts +7 -16
  121. package/dist-types/ts3.4/commands/ListImportJobsCommand.d.ts +7 -16
  122. package/dist-types/ts3.4/commands/ListKnowledgeBasesCommand.d.ts +7 -16
  123. package/dist-types/ts3.4/commands/ListQuickResponsesCommand.d.ts +7 -16
  124. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  125. package/dist-types/ts3.4/commands/NotifyRecommendationsReceivedCommand.d.ts +7 -16
  126. package/dist-types/ts3.4/commands/QueryAssistantCommand.d.ts +7 -16
  127. package/dist-types/ts3.4/commands/RemoveKnowledgeBaseTemplateUriCommand.d.ts +7 -16
  128. package/dist-types/ts3.4/commands/SearchContentCommand.d.ts +7 -16
  129. package/dist-types/ts3.4/commands/SearchQuickResponsesCommand.d.ts +7 -16
  130. package/dist-types/ts3.4/commands/SearchSessionsCommand.d.ts +7 -16
  131. package/dist-types/ts3.4/commands/StartContentUploadCommand.d.ts +7 -16
  132. package/dist-types/ts3.4/commands/StartImportJobCommand.d.ts +7 -16
  133. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  134. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  135. package/dist-types/ts3.4/commands/UpdateContentCommand.d.ts +7 -16
  136. package/dist-types/ts3.4/commands/UpdateKnowledgeBaseTemplateUriCommand.d.ts +7 -16
  137. package/dist-types/ts3.4/commands/UpdateQuickResponseCommand.d.ts +7 -16
  138. package/dist-types/ts3.4/index.d.ts +1 -0
  139. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  140. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  141. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  142. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  143. package/package.json +8 -10
package/dist-cjs/index.js CHANGED
@@ -1,7 +1,8 @@
1
1
  const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
2
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
3
- const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
4
- exports.$Command = Command;
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
4
+ const { Command: $Command } = require("@smithy/core/client");
5
+ exports.$Command = $Command;
5
6
  exports.__Client = Client;
6
7
  const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
8
  const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
@@ -10,9 +11,10 @@ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CON
10
11
  const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
12
  const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
13
  const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
- const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
14
15
  const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
16
  const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
17
+ const { Sha256 } = require("@smithy/core/checksum");
16
18
 
17
19
  const defaultWisdomHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
20
  return {
@@ -67,7 +69,7 @@ const commonParams = {
67
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
68
70
  };
69
71
 
70
- var version = "3.1075.0";
72
+ var version = "3.1077.0";
71
73
  var packageInfo = {
72
74
  version: version};
73
75
 
@@ -1500,6 +1502,7 @@ const getRuntimeConfig$1 = (config) => {
1500
1502
  serviceTarget: "WisdomService",
1501
1503
  },
1502
1504
  serviceId: config?.serviceId ?? "Wisdom",
1505
+ sha256: config?.sha256 ?? Sha256,
1503
1506
  urlParser: config?.urlParser ?? parseUrl,
1504
1507
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
1505
1508
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -1533,7 +1536,6 @@ const getRuntimeConfig = (config) => {
1533
1536
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
1534
1537
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
1535
1538
  }, config),
1536
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
1537
1539
  streamCollector: config?.streamCollector ?? streamCollector,
1538
1540
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
1539
1541
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1621,496 +1623,131 @@ class WisdomClient extends Client {
1621
1623
  }
1622
1624
  }
1623
1625
 
1624
- class CreateAssistantAssociationCommand extends Command
1625
- .classBuilder()
1626
- .ep(commonParams)
1627
- .m(function (Command, cs, config, o) {
1628
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1629
- })
1630
- .s("WisdomService", "CreateAssistantAssociation", {})
1631
- .n("WisdomClient", "CreateAssistantAssociationCommand")
1632
- .sc(CreateAssistantAssociation$)
1633
- .build() {
1626
+ const command = makeBuilder(commonParams, "WisdomService", "WisdomClient", getEndpointPlugin);
1627
+ const _ep0 = {};
1628
+ const _mw0 = (Command, cs, config, o) => [];
1629
+
1630
+ class CreateAssistantAssociationCommand extends command(_ep0, _mw0, "CreateAssistantAssociation", CreateAssistantAssociation$) {
1634
1631
  }
1635
1632
 
1636
- class CreateAssistantCommand extends Command
1637
- .classBuilder()
1638
- .ep(commonParams)
1639
- .m(function (Command, cs, config, o) {
1640
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1641
- })
1642
- .s("WisdomService", "CreateAssistant", {})
1643
- .n("WisdomClient", "CreateAssistantCommand")
1644
- .sc(CreateAssistant$)
1645
- .build() {
1633
+ class CreateAssistantCommand extends command(_ep0, _mw0, "CreateAssistant", CreateAssistant$) {
1646
1634
  }
1647
1635
 
1648
- class CreateContentCommand extends Command
1649
- .classBuilder()
1650
- .ep(commonParams)
1651
- .m(function (Command, cs, config, o) {
1652
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1653
- })
1654
- .s("WisdomService", "CreateContent", {})
1655
- .n("WisdomClient", "CreateContentCommand")
1656
- .sc(CreateContent$)
1657
- .build() {
1636
+ class CreateContentCommand extends command(_ep0, _mw0, "CreateContent", CreateContent$) {
1658
1637
  }
1659
1638
 
1660
- class CreateKnowledgeBaseCommand extends Command
1661
- .classBuilder()
1662
- .ep(commonParams)
1663
- .m(function (Command, cs, config, o) {
1664
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1665
- })
1666
- .s("WisdomService", "CreateKnowledgeBase", {})
1667
- .n("WisdomClient", "CreateKnowledgeBaseCommand")
1668
- .sc(CreateKnowledgeBase$)
1669
- .build() {
1639
+ class CreateKnowledgeBaseCommand extends command(_ep0, _mw0, "CreateKnowledgeBase", CreateKnowledgeBase$) {
1670
1640
  }
1671
1641
 
1672
- class CreateQuickResponseCommand extends Command
1673
- .classBuilder()
1674
- .ep(commonParams)
1675
- .m(function (Command, cs, config, o) {
1676
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1677
- })
1678
- .s("WisdomService", "CreateQuickResponse", {})
1679
- .n("WisdomClient", "CreateQuickResponseCommand")
1680
- .sc(CreateQuickResponse$)
1681
- .build() {
1642
+ class CreateQuickResponseCommand extends command(_ep0, _mw0, "CreateQuickResponse", CreateQuickResponse$) {
1682
1643
  }
1683
1644
 
1684
- class CreateSessionCommand extends Command
1685
- .classBuilder()
1686
- .ep(commonParams)
1687
- .m(function (Command, cs, config, o) {
1688
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1689
- })
1690
- .s("WisdomService", "CreateSession", {})
1691
- .n("WisdomClient", "CreateSessionCommand")
1692
- .sc(CreateSession$)
1693
- .build() {
1645
+ class CreateSessionCommand extends command(_ep0, _mw0, "CreateSession", CreateSession$) {
1694
1646
  }
1695
1647
 
1696
- class DeleteAssistantAssociationCommand extends Command
1697
- .classBuilder()
1698
- .ep(commonParams)
1699
- .m(function (Command, cs, config, o) {
1700
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1701
- })
1702
- .s("WisdomService", "DeleteAssistantAssociation", {})
1703
- .n("WisdomClient", "DeleteAssistantAssociationCommand")
1704
- .sc(DeleteAssistantAssociation$)
1705
- .build() {
1648
+ class DeleteAssistantAssociationCommand extends command(_ep0, _mw0, "DeleteAssistantAssociation", DeleteAssistantAssociation$) {
1706
1649
  }
1707
1650
 
1708
- class DeleteAssistantCommand extends Command
1709
- .classBuilder()
1710
- .ep(commonParams)
1711
- .m(function (Command, cs, config, o) {
1712
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1713
- })
1714
- .s("WisdomService", "DeleteAssistant", {})
1715
- .n("WisdomClient", "DeleteAssistantCommand")
1716
- .sc(DeleteAssistant$)
1717
- .build() {
1651
+ class DeleteAssistantCommand extends command(_ep0, _mw0, "DeleteAssistant", DeleteAssistant$) {
1718
1652
  }
1719
1653
 
1720
- class DeleteContentCommand extends Command
1721
- .classBuilder()
1722
- .ep(commonParams)
1723
- .m(function (Command, cs, config, o) {
1724
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1725
- })
1726
- .s("WisdomService", "DeleteContent", {})
1727
- .n("WisdomClient", "DeleteContentCommand")
1728
- .sc(DeleteContent$)
1729
- .build() {
1654
+ class DeleteContentCommand extends command(_ep0, _mw0, "DeleteContent", DeleteContent$) {
1730
1655
  }
1731
1656
 
1732
- class DeleteImportJobCommand extends Command
1733
- .classBuilder()
1734
- .ep(commonParams)
1735
- .m(function (Command, cs, config, o) {
1736
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1737
- })
1738
- .s("WisdomService", "DeleteImportJob", {})
1739
- .n("WisdomClient", "DeleteImportJobCommand")
1740
- .sc(DeleteImportJob$)
1741
- .build() {
1657
+ class DeleteImportJobCommand extends command(_ep0, _mw0, "DeleteImportJob", DeleteImportJob$) {
1742
1658
  }
1743
1659
 
1744
- class DeleteKnowledgeBaseCommand extends Command
1745
- .classBuilder()
1746
- .ep(commonParams)
1747
- .m(function (Command, cs, config, o) {
1748
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1749
- })
1750
- .s("WisdomService", "DeleteKnowledgeBase", {})
1751
- .n("WisdomClient", "DeleteKnowledgeBaseCommand")
1752
- .sc(DeleteKnowledgeBase$)
1753
- .build() {
1660
+ class DeleteKnowledgeBaseCommand extends command(_ep0, _mw0, "DeleteKnowledgeBase", DeleteKnowledgeBase$) {
1754
1661
  }
1755
1662
 
1756
- class DeleteQuickResponseCommand extends Command
1757
- .classBuilder()
1758
- .ep(commonParams)
1759
- .m(function (Command, cs, config, o) {
1760
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1761
- })
1762
- .s("WisdomService", "DeleteQuickResponse", {})
1763
- .n("WisdomClient", "DeleteQuickResponseCommand")
1764
- .sc(DeleteQuickResponse$)
1765
- .build() {
1663
+ class DeleteQuickResponseCommand extends command(_ep0, _mw0, "DeleteQuickResponse", DeleteQuickResponse$) {
1766
1664
  }
1767
1665
 
1768
- class GetAssistantAssociationCommand extends Command
1769
- .classBuilder()
1770
- .ep(commonParams)
1771
- .m(function (Command, cs, config, o) {
1772
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1773
- })
1774
- .s("WisdomService", "GetAssistantAssociation", {})
1775
- .n("WisdomClient", "GetAssistantAssociationCommand")
1776
- .sc(GetAssistantAssociation$)
1777
- .build() {
1666
+ class GetAssistantAssociationCommand extends command(_ep0, _mw0, "GetAssistantAssociation", GetAssistantAssociation$) {
1778
1667
  }
1779
1668
 
1780
- class GetAssistantCommand extends Command
1781
- .classBuilder()
1782
- .ep(commonParams)
1783
- .m(function (Command, cs, config, o) {
1784
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1785
- })
1786
- .s("WisdomService", "GetAssistant", {})
1787
- .n("WisdomClient", "GetAssistantCommand")
1788
- .sc(GetAssistant$)
1789
- .build() {
1669
+ class GetAssistantCommand extends command(_ep0, _mw0, "GetAssistant", GetAssistant$) {
1790
1670
  }
1791
1671
 
1792
- class GetContentCommand extends Command
1793
- .classBuilder()
1794
- .ep(commonParams)
1795
- .m(function (Command, cs, config, o) {
1796
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1797
- })
1798
- .s("WisdomService", "GetContent", {})
1799
- .n("WisdomClient", "GetContentCommand")
1800
- .sc(GetContent$)
1801
- .build() {
1672
+ class GetContentCommand extends command(_ep0, _mw0, "GetContent", GetContent$) {
1802
1673
  }
1803
1674
 
1804
- class GetContentSummaryCommand extends Command
1805
- .classBuilder()
1806
- .ep(commonParams)
1807
- .m(function (Command, cs, config, o) {
1808
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1809
- })
1810
- .s("WisdomService", "GetContentSummary", {})
1811
- .n("WisdomClient", "GetContentSummaryCommand")
1812
- .sc(GetContentSummary$)
1813
- .build() {
1675
+ class GetContentSummaryCommand extends command(_ep0, _mw0, "GetContentSummary", GetContentSummary$) {
1814
1676
  }
1815
1677
 
1816
- class GetImportJobCommand extends Command
1817
- .classBuilder()
1818
- .ep(commonParams)
1819
- .m(function (Command, cs, config, o) {
1820
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1821
- })
1822
- .s("WisdomService", "GetImportJob", {})
1823
- .n("WisdomClient", "GetImportJobCommand")
1824
- .sc(GetImportJob$)
1825
- .build() {
1678
+ class GetImportJobCommand extends command(_ep0, _mw0, "GetImportJob", GetImportJob$) {
1826
1679
  }
1827
1680
 
1828
- class GetKnowledgeBaseCommand extends Command
1829
- .classBuilder()
1830
- .ep(commonParams)
1831
- .m(function (Command, cs, config, o) {
1832
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1833
- })
1834
- .s("WisdomService", "GetKnowledgeBase", {})
1835
- .n("WisdomClient", "GetKnowledgeBaseCommand")
1836
- .sc(GetKnowledgeBase$)
1837
- .build() {
1681
+ class GetKnowledgeBaseCommand extends command(_ep0, _mw0, "GetKnowledgeBase", GetKnowledgeBase$) {
1838
1682
  }
1839
1683
 
1840
- class GetQuickResponseCommand extends Command
1841
- .classBuilder()
1842
- .ep(commonParams)
1843
- .m(function (Command, cs, config, o) {
1844
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1845
- })
1846
- .s("WisdomService", "GetQuickResponse", {})
1847
- .n("WisdomClient", "GetQuickResponseCommand")
1848
- .sc(GetQuickResponse$)
1849
- .build() {
1684
+ class GetQuickResponseCommand extends command(_ep0, _mw0, "GetQuickResponse", GetQuickResponse$) {
1850
1685
  }
1851
1686
 
1852
- class GetRecommendationsCommand extends Command
1853
- .classBuilder()
1854
- .ep(commonParams)
1855
- .m(function (Command, cs, config, o) {
1856
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1857
- })
1858
- .s("WisdomService", "GetRecommendations", {})
1859
- .n("WisdomClient", "GetRecommendationsCommand")
1860
- .sc(GetRecommendations$)
1861
- .build() {
1687
+ class GetRecommendationsCommand extends command(_ep0, _mw0, "GetRecommendations", GetRecommendations$) {
1862
1688
  }
1863
1689
 
1864
- class GetSessionCommand extends Command
1865
- .classBuilder()
1866
- .ep(commonParams)
1867
- .m(function (Command, cs, config, o) {
1868
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1869
- })
1870
- .s("WisdomService", "GetSession", {})
1871
- .n("WisdomClient", "GetSessionCommand")
1872
- .sc(GetSession$)
1873
- .build() {
1690
+ class GetSessionCommand extends command(_ep0, _mw0, "GetSession", GetSession$) {
1874
1691
  }
1875
1692
 
1876
- class ListAssistantAssociationsCommand extends Command
1877
- .classBuilder()
1878
- .ep(commonParams)
1879
- .m(function (Command, cs, config, o) {
1880
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1881
- })
1882
- .s("WisdomService", "ListAssistantAssociations", {})
1883
- .n("WisdomClient", "ListAssistantAssociationsCommand")
1884
- .sc(ListAssistantAssociations$)
1885
- .build() {
1693
+ class ListAssistantAssociationsCommand extends command(_ep0, _mw0, "ListAssistantAssociations", ListAssistantAssociations$) {
1886
1694
  }
1887
1695
 
1888
- class ListAssistantsCommand extends Command
1889
- .classBuilder()
1890
- .ep(commonParams)
1891
- .m(function (Command, cs, config, o) {
1892
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1893
- })
1894
- .s("WisdomService", "ListAssistants", {})
1895
- .n("WisdomClient", "ListAssistantsCommand")
1896
- .sc(ListAssistants$)
1897
- .build() {
1696
+ class ListAssistantsCommand extends command(_ep0, _mw0, "ListAssistants", ListAssistants$) {
1898
1697
  }
1899
1698
 
1900
- class ListContentsCommand extends Command
1901
- .classBuilder()
1902
- .ep(commonParams)
1903
- .m(function (Command, cs, config, o) {
1904
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1905
- })
1906
- .s("WisdomService", "ListContents", {})
1907
- .n("WisdomClient", "ListContentsCommand")
1908
- .sc(ListContents$)
1909
- .build() {
1699
+ class ListContentsCommand extends command(_ep0, _mw0, "ListContents", ListContents$) {
1910
1700
  }
1911
1701
 
1912
- class ListImportJobsCommand extends Command
1913
- .classBuilder()
1914
- .ep(commonParams)
1915
- .m(function (Command, cs, config, o) {
1916
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1917
- })
1918
- .s("WisdomService", "ListImportJobs", {})
1919
- .n("WisdomClient", "ListImportJobsCommand")
1920
- .sc(ListImportJobs$)
1921
- .build() {
1702
+ class ListImportJobsCommand extends command(_ep0, _mw0, "ListImportJobs", ListImportJobs$) {
1922
1703
  }
1923
1704
 
1924
- class ListKnowledgeBasesCommand extends Command
1925
- .classBuilder()
1926
- .ep(commonParams)
1927
- .m(function (Command, cs, config, o) {
1928
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1929
- })
1930
- .s("WisdomService", "ListKnowledgeBases", {})
1931
- .n("WisdomClient", "ListKnowledgeBasesCommand")
1932
- .sc(ListKnowledgeBases$)
1933
- .build() {
1705
+ class ListKnowledgeBasesCommand extends command(_ep0, _mw0, "ListKnowledgeBases", ListKnowledgeBases$) {
1934
1706
  }
1935
1707
 
1936
- class ListQuickResponsesCommand extends Command
1937
- .classBuilder()
1938
- .ep(commonParams)
1939
- .m(function (Command, cs, config, o) {
1940
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1941
- })
1942
- .s("WisdomService", "ListQuickResponses", {})
1943
- .n("WisdomClient", "ListQuickResponsesCommand")
1944
- .sc(ListQuickResponses$)
1945
- .build() {
1708
+ class ListQuickResponsesCommand extends command(_ep0, _mw0, "ListQuickResponses", ListQuickResponses$) {
1946
1709
  }
1947
1710
 
1948
- class ListTagsForResourceCommand extends Command
1949
- .classBuilder()
1950
- .ep(commonParams)
1951
- .m(function (Command, cs, config, o) {
1952
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1953
- })
1954
- .s("WisdomService", "ListTagsForResource", {})
1955
- .n("WisdomClient", "ListTagsForResourceCommand")
1956
- .sc(ListTagsForResource$)
1957
- .build() {
1711
+ class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
1958
1712
  }
1959
1713
 
1960
- class NotifyRecommendationsReceivedCommand extends Command
1961
- .classBuilder()
1962
- .ep(commonParams)
1963
- .m(function (Command, cs, config, o) {
1964
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1965
- })
1966
- .s("WisdomService", "NotifyRecommendationsReceived", {})
1967
- .n("WisdomClient", "NotifyRecommendationsReceivedCommand")
1968
- .sc(NotifyRecommendationsReceived$)
1969
- .build() {
1714
+ class NotifyRecommendationsReceivedCommand extends command(_ep0, _mw0, "NotifyRecommendationsReceived", NotifyRecommendationsReceived$) {
1970
1715
  }
1971
1716
 
1972
- class QueryAssistantCommand extends Command
1973
- .classBuilder()
1974
- .ep(commonParams)
1975
- .m(function (Command, cs, config, o) {
1976
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1977
- })
1978
- .s("WisdomService", "QueryAssistant", {})
1979
- .n("WisdomClient", "QueryAssistantCommand")
1980
- .sc(QueryAssistant$)
1981
- .build() {
1717
+ class QueryAssistantCommand extends command(_ep0, _mw0, "QueryAssistant", QueryAssistant$) {
1982
1718
  }
1983
1719
 
1984
- class RemoveKnowledgeBaseTemplateUriCommand extends Command
1985
- .classBuilder()
1986
- .ep(commonParams)
1987
- .m(function (Command, cs, config, o) {
1988
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1989
- })
1990
- .s("WisdomService", "RemoveKnowledgeBaseTemplateUri", {})
1991
- .n("WisdomClient", "RemoveKnowledgeBaseTemplateUriCommand")
1992
- .sc(RemoveKnowledgeBaseTemplateUri$)
1993
- .build() {
1720
+ class RemoveKnowledgeBaseTemplateUriCommand extends command(_ep0, _mw0, "RemoveKnowledgeBaseTemplateUri", RemoveKnowledgeBaseTemplateUri$) {
1994
1721
  }
1995
1722
 
1996
- class SearchContentCommand extends Command
1997
- .classBuilder()
1998
- .ep(commonParams)
1999
- .m(function (Command, cs, config, o) {
2000
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2001
- })
2002
- .s("WisdomService", "SearchContent", {})
2003
- .n("WisdomClient", "SearchContentCommand")
2004
- .sc(SearchContent$)
2005
- .build() {
1723
+ class SearchContentCommand extends command(_ep0, _mw0, "SearchContent", SearchContent$) {
2006
1724
  }
2007
1725
 
2008
- class SearchQuickResponsesCommand extends Command
2009
- .classBuilder()
2010
- .ep(commonParams)
2011
- .m(function (Command, cs, config, o) {
2012
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2013
- })
2014
- .s("WisdomService", "SearchQuickResponses", {})
2015
- .n("WisdomClient", "SearchQuickResponsesCommand")
2016
- .sc(SearchQuickResponses$)
2017
- .build() {
1726
+ class SearchQuickResponsesCommand extends command(_ep0, _mw0, "SearchQuickResponses", SearchQuickResponses$) {
2018
1727
  }
2019
1728
 
2020
- class SearchSessionsCommand extends Command
2021
- .classBuilder()
2022
- .ep(commonParams)
2023
- .m(function (Command, cs, config, o) {
2024
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2025
- })
2026
- .s("WisdomService", "SearchSessions", {})
2027
- .n("WisdomClient", "SearchSessionsCommand")
2028
- .sc(SearchSessions$)
2029
- .build() {
1729
+ class SearchSessionsCommand extends command(_ep0, _mw0, "SearchSessions", SearchSessions$) {
2030
1730
  }
2031
1731
 
2032
- class StartContentUploadCommand extends Command
2033
- .classBuilder()
2034
- .ep(commonParams)
2035
- .m(function (Command, cs, config, o) {
2036
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2037
- })
2038
- .s("WisdomService", "StartContentUpload", {})
2039
- .n("WisdomClient", "StartContentUploadCommand")
2040
- .sc(StartContentUpload$)
2041
- .build() {
1732
+ class StartContentUploadCommand extends command(_ep0, _mw0, "StartContentUpload", StartContentUpload$) {
2042
1733
  }
2043
1734
 
2044
- class StartImportJobCommand extends Command
2045
- .classBuilder()
2046
- .ep(commonParams)
2047
- .m(function (Command, cs, config, o) {
2048
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2049
- })
2050
- .s("WisdomService", "StartImportJob", {})
2051
- .n("WisdomClient", "StartImportJobCommand")
2052
- .sc(StartImportJob$)
2053
- .build() {
1735
+ class StartImportJobCommand extends command(_ep0, _mw0, "StartImportJob", StartImportJob$) {
2054
1736
  }
2055
1737
 
2056
- class TagResourceCommand extends Command
2057
- .classBuilder()
2058
- .ep(commonParams)
2059
- .m(function (Command, cs, config, o) {
2060
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2061
- })
2062
- .s("WisdomService", "TagResource", {})
2063
- .n("WisdomClient", "TagResourceCommand")
2064
- .sc(TagResource$)
2065
- .build() {
1738
+ class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
2066
1739
  }
2067
1740
 
2068
- class UntagResourceCommand extends Command
2069
- .classBuilder()
2070
- .ep(commonParams)
2071
- .m(function (Command, cs, config, o) {
2072
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2073
- })
2074
- .s("WisdomService", "UntagResource", {})
2075
- .n("WisdomClient", "UntagResourceCommand")
2076
- .sc(UntagResource$)
2077
- .build() {
1741
+ class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
2078
1742
  }
2079
1743
 
2080
- class UpdateContentCommand extends Command
2081
- .classBuilder()
2082
- .ep(commonParams)
2083
- .m(function (Command, cs, config, o) {
2084
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2085
- })
2086
- .s("WisdomService", "UpdateContent", {})
2087
- .n("WisdomClient", "UpdateContentCommand")
2088
- .sc(UpdateContent$)
2089
- .build() {
1744
+ class UpdateContentCommand extends command(_ep0, _mw0, "UpdateContent", UpdateContent$) {
2090
1745
  }
2091
1746
 
2092
- class UpdateKnowledgeBaseTemplateUriCommand extends Command
2093
- .classBuilder()
2094
- .ep(commonParams)
2095
- .m(function (Command, cs, config, o) {
2096
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2097
- })
2098
- .s("WisdomService", "UpdateKnowledgeBaseTemplateUri", {})
2099
- .n("WisdomClient", "UpdateKnowledgeBaseTemplateUriCommand")
2100
- .sc(UpdateKnowledgeBaseTemplateUri$)
2101
- .build() {
1747
+ class UpdateKnowledgeBaseTemplateUriCommand extends command(_ep0, _mw0, "UpdateKnowledgeBaseTemplateUri", UpdateKnowledgeBaseTemplateUri$) {
2102
1748
  }
2103
1749
 
2104
- class UpdateQuickResponseCommand extends Command
2105
- .classBuilder()
2106
- .ep(commonParams)
2107
- .m(function (Command, cs, config, o) {
2108
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2109
- })
2110
- .s("WisdomService", "UpdateQuickResponse", {})
2111
- .n("WisdomClient", "UpdateQuickResponseCommand")
2112
- .sc(UpdateQuickResponse$)
2113
- .build() {
1750
+ class UpdateQuickResponseCommand extends command(_ep0, _mw0, "UpdateQuickResponse", UpdateQuickResponse$) {
2114
1751
  }
2115
1752
 
2116
1753
  const paginateListAssistantAssociations = createPaginator(WisdomClient, ListAssistantAssociationsCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,6 @@
1
+ import { makeBuilder } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "./endpoint/EndpointParameters";
4
+ export const command = makeBuilder(commonParams, "WisdomService", "WisdomClient", getEndpointPlugin);
5
+ export const _ep0 = {};
6
+ export const _mw0 = (Command, cs, config, o) => [];
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { CreateAssistantAssociation$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateAssistantAssociationCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("WisdomService", "CreateAssistantAssociation", {})
13
- .n("WisdomClient", "CreateAssistantAssociationCommand")
14
- .sc(CreateAssistantAssociation$)
15
- .build() {
3
+ export class CreateAssistantAssociationCommand extends command(_ep0, _mw0, "CreateAssistantAssociation", CreateAssistantAssociation$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { CreateAssistant$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateAssistantCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("WisdomService", "CreateAssistant", {})
13
- .n("WisdomClient", "CreateAssistantCommand")
14
- .sc(CreateAssistant$)
15
- .build() {
3
+ export class CreateAssistantCommand extends command(_ep0, _mw0, "CreateAssistant", CreateAssistant$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { CreateContent$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateContentCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("WisdomService", "CreateContent", {})
13
- .n("WisdomClient", "CreateContentCommand")
14
- .sc(CreateContent$)
15
- .build() {
3
+ export class CreateContentCommand extends command(_ep0, _mw0, "CreateContent", CreateContent$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { CreateKnowledgeBase$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateKnowledgeBaseCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("WisdomService", "CreateKnowledgeBase", {})
13
- .n("WisdomClient", "CreateKnowledgeBaseCommand")
14
- .sc(CreateKnowledgeBase$)
15
- .build() {
3
+ export class CreateKnowledgeBaseCommand extends command(_ep0, _mw0, "CreateKnowledgeBase", CreateKnowledgeBase$) {
16
4
  }