@aws-sdk/client-wisdom 3.186.0 → 3.188.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 (70) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist-cjs/Wisdom.js +0 -15
  3. package/dist-cjs/commands/index.js +0 -1
  4. package/dist-cjs/endpoints.js +10 -1
  5. package/dist-cjs/models/models_0.js +3 -25
  6. package/dist-cjs/protocols/Aws_restJson1.js +2 -88
  7. package/dist-es/Wisdom.js +126 -148
  8. package/dist-es/WisdomClient.js +22 -28
  9. package/dist-es/commands/CreateAssistantAssociationCommand.js +21 -28
  10. package/dist-es/commands/CreateAssistantCommand.js +21 -28
  11. package/dist-es/commands/CreateContentCommand.js +21 -28
  12. package/dist-es/commands/CreateKnowledgeBaseCommand.js +21 -28
  13. package/dist-es/commands/CreateSessionCommand.js +21 -28
  14. package/dist-es/commands/DeleteAssistantAssociationCommand.js +21 -28
  15. package/dist-es/commands/DeleteAssistantCommand.js +21 -28
  16. package/dist-es/commands/DeleteContentCommand.js +21 -28
  17. package/dist-es/commands/DeleteKnowledgeBaseCommand.js +21 -28
  18. package/dist-es/commands/GetAssistantAssociationCommand.js +21 -28
  19. package/dist-es/commands/GetAssistantCommand.js +21 -28
  20. package/dist-es/commands/GetContentCommand.js +21 -28
  21. package/dist-es/commands/GetContentSummaryCommand.js +21 -28
  22. package/dist-es/commands/GetKnowledgeBaseCommand.js +21 -28
  23. package/dist-es/commands/GetRecommendationsCommand.js +21 -28
  24. package/dist-es/commands/GetSessionCommand.js +21 -28
  25. package/dist-es/commands/ListAssistantAssociationsCommand.js +21 -28
  26. package/dist-es/commands/ListAssistantsCommand.js +21 -28
  27. package/dist-es/commands/ListContentsCommand.js +21 -28
  28. package/dist-es/commands/ListKnowledgeBasesCommand.js +21 -28
  29. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  30. package/dist-es/commands/NotifyRecommendationsReceivedCommand.js +21 -28
  31. package/dist-es/commands/QueryAssistantCommand.js +21 -28
  32. package/dist-es/commands/RemoveKnowledgeBaseTemplateUriCommand.js +21 -28
  33. package/dist-es/commands/SearchContentCommand.js +21 -28
  34. package/dist-es/commands/SearchSessionsCommand.js +21 -28
  35. package/dist-es/commands/StartContentUploadCommand.js +21 -28
  36. package/dist-es/commands/TagResourceCommand.js +21 -28
  37. package/dist-es/commands/UntagResourceCommand.js +21 -28
  38. package/dist-es/commands/UpdateContentCommand.js +21 -28
  39. package/dist-es/commands/UpdateKnowledgeBaseTemplateUriCommand.js +21 -28
  40. package/dist-es/commands/index.js +0 -1
  41. package/dist-es/endpoints.js +17 -8
  42. package/dist-es/models/WisdomServiceException.js +5 -10
  43. package/dist-es/models/models_0.js +400 -217
  44. package/dist-es/pagination/ListAssistantAssociationsPaginator.js +25 -68
  45. package/dist-es/pagination/ListAssistantsPaginator.js +25 -68
  46. package/dist-es/pagination/ListContentsPaginator.js +25 -68
  47. package/dist-es/pagination/ListKnowledgeBasesPaginator.js +25 -68
  48. package/dist-es/pagination/QueryAssistantPaginator.js +25 -68
  49. package/dist-es/pagination/SearchContentPaginator.js +25 -68
  50. package/dist-es/pagination/SearchSessionsPaginator.js +25 -68
  51. package/dist-es/protocols/Aws_restJson1.js +2087 -3093
  52. package/dist-es/runtimeConfig.browser.js +26 -12
  53. package/dist-es/runtimeConfig.js +30 -12
  54. package/dist-es/runtimeConfig.native.js +8 -5
  55. package/dist-es/runtimeConfig.shared.js +8 -11
  56. package/dist-types/Wisdom.d.ts +0 -11
  57. package/dist-types/WisdomClient.d.ts +2 -3
  58. package/dist-types/commands/index.d.ts +0 -1
  59. package/dist-types/models/models_0.d.ts +0 -69
  60. package/dist-types/protocols/Aws_restJson1.d.ts +0 -3
  61. package/dist-types/ts3.4/Wisdom.d.ts +0 -17
  62. package/dist-types/ts3.4/WisdomClient.d.ts +0 -6
  63. package/dist-types/ts3.4/commands/index.d.ts +0 -1
  64. package/dist-types/ts3.4/models/models_0.d.ts +0 -31
  65. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -12
  66. package/package.json +33 -33
  67. package/dist-cjs/commands/PutFeedbackCommand.js +0 -36
  68. package/dist-es/commands/PutFeedbackCommand.js +0 -39
  69. package/dist-types/commands/PutFeedbackCommand.d.ts +0 -39
  70. package/dist-types/ts3.4/commands/PutFeedbackCommand.d.ts +0 -32
@@ -1,4 +1,3 @@
1
- import { __assign, __awaiter, __generator } from "tslib";
2
1
  import packageInfo from "../package.json";
3
2
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
3
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
@@ -12,15 +11,30 @@ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
12
11
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
12
  import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
14
13
  import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
15
- export var getRuntimeConfig = function (config) {
16
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17
- var defaultsMode = resolveDefaultsModeConfig(config);
18
- var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
19
- var clientSharedValues = getSharedRuntimeConfig(config);
20
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
21
- switch (_a.label) {
22
- case 0: return [4, defaultConfigProvider()];
23
- case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
24
- }
25
- }); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
14
+ export const getRuntimeConfig = (config) => {
15
+ const defaultsMode = resolveDefaultsModeConfig(config);
16
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
17
+ const clientSharedValues = getSharedRuntimeConfig(config);
18
+ return {
19
+ ...clientSharedValues,
20
+ ...config,
21
+ runtime: "browser",
22
+ defaultsMode,
23
+ base64Decoder: config?.base64Decoder ?? fromBase64,
24
+ base64Encoder: config?.base64Encoder ?? toBase64,
25
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
26
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
27
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
28
+ defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
29
+ maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
30
+ region: config?.region ?? invalidProvider("Region is missing"),
31
+ requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
32
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
33
+ sha256: config?.sha256 ?? Sha256,
34
+ streamCollector: config?.streamCollector ?? streamCollector,
35
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
36
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
37
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
38
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
39
+ };
26
40
  };
@@ -1,4 +1,3 @@
1
- import { __assign, __awaiter, __generator } from "tslib";
2
1
  import packageInfo from "../package.json";
3
2
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
3
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
@@ -15,16 +14,35 @@ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shar
15
14
  import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
16
15
  import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
17
16
  import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
18
- export var getRuntimeConfig = function (config) {
19
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17
+ export const getRuntimeConfig = (config) => {
20
18
  emitWarningIfUnsupportedVersion(process.version);
21
- var defaultsMode = resolveDefaultsModeConfig(config);
22
- var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
23
- var clientSharedValues = getSharedRuntimeConfig(config);
24
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
25
- switch (_a.label) {
26
- case 0: return [4, defaultConfigProvider()];
27
- case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
28
- }
29
- }); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
19
+ const defaultsMode = resolveDefaultsModeConfig(config);
20
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
21
+ const clientSharedValues = getSharedRuntimeConfig(config);
22
+ return {
23
+ ...clientSharedValues,
24
+ ...config,
25
+ runtime: "node",
26
+ defaultsMode,
27
+ base64Decoder: config?.base64Decoder ?? fromBase64,
28
+ base64Encoder: config?.base64Encoder ?? toBase64,
29
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
30
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider),
31
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
32
+ defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
33
+ maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
34
+ region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
35
+ requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
36
+ retryMode: config?.retryMode ??
37
+ loadNodeConfig({
38
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
39
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
40
+ }),
41
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
42
+ streamCollector: config?.streamCollector ?? streamCollector,
43
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
44
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
45
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
46
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
47
+ };
30
48
  };
@@ -1,8 +1,11 @@
1
- import { __assign } from "tslib";
2
1
  import { Sha256 } from "@aws-crypto/sha256-js";
3
2
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
4
- export var getRuntimeConfig = function (config) {
5
- var _a;
6
- var browserDefaults = getBrowserRuntimeConfig(config);
7
- return __assign(__assign(__assign({}, browserDefaults), config), { runtime: "react-native", sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : Sha256 });
3
+ export const getRuntimeConfig = (config) => {
4
+ const browserDefaults = getBrowserRuntimeConfig(config);
5
+ return {
6
+ ...browserDefaults,
7
+ ...config,
8
+ runtime: "react-native",
9
+ sha256: config?.sha256 ?? Sha256,
10
+ };
8
11
  };
@@ -1,13 +1,10 @@
1
1
  import { parseUrl } from "@aws-sdk/url-parser";
2
2
  import { defaultRegionInfoProvider } from "./endpoints";
3
- export var getRuntimeConfig = function (config) {
4
- var _a, _b, _c, _d, _e;
5
- return ({
6
- apiVersion: "2020-10-19",
7
- disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
8
- logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {},
9
- regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : defaultRegionInfoProvider,
10
- serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "Wisdom",
11
- urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : parseUrl,
12
- });
13
- };
3
+ export const getRuntimeConfig = (config) => ({
4
+ apiVersion: "2020-10-19",
5
+ disableHostPrefix: config?.disableHostPrefix ?? false,
6
+ logger: config?.logger ?? {},
7
+ regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider,
8
+ serviceId: config?.serviceId ?? "Wisdom",
9
+ urlParser: config?.urlParser ?? parseUrl,
10
+ });
@@ -21,7 +21,6 @@ import { ListContentsCommandInput, ListContentsCommandOutput } from "./commands/
21
21
  import { ListKnowledgeBasesCommandInput, ListKnowledgeBasesCommandOutput } from "./commands/ListKnowledgeBasesCommand";
22
22
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
23
23
  import { NotifyRecommendationsReceivedCommandInput, NotifyRecommendationsReceivedCommandOutput } from "./commands/NotifyRecommendationsReceivedCommand";
24
- import { PutFeedbackCommandInput, PutFeedbackCommandOutput } from "./commands/PutFeedbackCommand";
25
24
  import { QueryAssistantCommandInput, QueryAssistantCommandOutput } from "./commands/QueryAssistantCommand";
26
25
  import { RemoveKnowledgeBaseTemplateUriCommandInput, RemoveKnowledgeBaseTemplateUriCommandOutput } from "./commands/RemoveKnowledgeBaseTemplateUriCommand";
27
26
  import { SearchContentCommandInput, SearchContentCommandOutput } from "./commands/SearchContentCommand";
@@ -211,16 +210,6 @@ export declare class Wisdom extends WisdomClient {
211
210
  notifyRecommendationsReceived(args: NotifyRecommendationsReceivedCommandInput, options?: __HttpHandlerOptions): Promise<NotifyRecommendationsReceivedCommandOutput>;
212
211
  notifyRecommendationsReceived(args: NotifyRecommendationsReceivedCommandInput, cb: (err: any, data?: NotifyRecommendationsReceivedCommandOutput) => void): void;
213
212
  notifyRecommendationsReceived(args: NotifyRecommendationsReceivedCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: NotifyRecommendationsReceivedCommandOutput) => void): void;
214
- /**
215
- * <p>Submits feedback to Wisdom. The feedback is used to improve future recommendations from
216
- * <a href="https://docs.aws.amazon.com/wisdom/latest/APIReference/API_GetRecommendations.html">GetRecommendations</a> or
217
- * results from <a href="https://docs.aws.amazon.com/wisdom/latest/APIReference/API_QueryAssistant.html">QueryAssistant</a>.
218
- * Feedback can be resubmitted up to 6 hours after submission.
219
- * </p>
220
- */
221
- putFeedback(args: PutFeedbackCommandInput, options?: __HttpHandlerOptions): Promise<PutFeedbackCommandOutput>;
222
- putFeedback(args: PutFeedbackCommandInput, cb: (err: any, data?: PutFeedbackCommandOutput) => void): void;
223
- putFeedback(args: PutFeedbackCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutFeedbackCommandOutput) => void): void;
224
213
  /**
225
214
  * <p>Performs a manual search against the specified assistant. To retrieve recommendations for
226
215
  * an assistant, use <a href="https://docs.aws.amazon.com/wisdom/latest/APIReference/API_GetRecommendations.html">GetRecommendations</a>.
@@ -28,7 +28,6 @@ import { ListContentsCommandInput, ListContentsCommandOutput } from "./commands/
28
28
  import { ListKnowledgeBasesCommandInput, ListKnowledgeBasesCommandOutput } from "./commands/ListKnowledgeBasesCommand";
29
29
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
30
30
  import { NotifyRecommendationsReceivedCommandInput, NotifyRecommendationsReceivedCommandOutput } from "./commands/NotifyRecommendationsReceivedCommand";
31
- import { PutFeedbackCommandInput, PutFeedbackCommandOutput } from "./commands/PutFeedbackCommand";
32
31
  import { QueryAssistantCommandInput, QueryAssistantCommandOutput } from "./commands/QueryAssistantCommand";
33
32
  import { RemoveKnowledgeBaseTemplateUriCommandInput, RemoveKnowledgeBaseTemplateUriCommandOutput } from "./commands/RemoveKnowledgeBaseTemplateUriCommand";
34
33
  import { SearchContentCommandInput, SearchContentCommandOutput } from "./commands/SearchContentCommand";
@@ -38,8 +37,8 @@ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/Ta
38
37
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
39
38
  import { UpdateContentCommandInput, UpdateContentCommandOutput } from "./commands/UpdateContentCommand";
40
39
  import { UpdateKnowledgeBaseTemplateUriCommandInput, UpdateKnowledgeBaseTemplateUriCommandOutput } from "./commands/UpdateKnowledgeBaseTemplateUriCommand";
41
- export declare type ServiceInputTypes = CreateAssistantAssociationCommandInput | CreateAssistantCommandInput | CreateContentCommandInput | CreateKnowledgeBaseCommandInput | CreateSessionCommandInput | DeleteAssistantAssociationCommandInput | DeleteAssistantCommandInput | DeleteContentCommandInput | DeleteKnowledgeBaseCommandInput | GetAssistantAssociationCommandInput | GetAssistantCommandInput | GetContentCommandInput | GetContentSummaryCommandInput | GetKnowledgeBaseCommandInput | GetRecommendationsCommandInput | GetSessionCommandInput | ListAssistantAssociationsCommandInput | ListAssistantsCommandInput | ListContentsCommandInput | ListKnowledgeBasesCommandInput | ListTagsForResourceCommandInput | NotifyRecommendationsReceivedCommandInput | PutFeedbackCommandInput | QueryAssistantCommandInput | RemoveKnowledgeBaseTemplateUriCommandInput | SearchContentCommandInput | SearchSessionsCommandInput | StartContentUploadCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateContentCommandInput | UpdateKnowledgeBaseTemplateUriCommandInput;
42
- export declare type ServiceOutputTypes = CreateAssistantAssociationCommandOutput | CreateAssistantCommandOutput | CreateContentCommandOutput | CreateKnowledgeBaseCommandOutput | CreateSessionCommandOutput | DeleteAssistantAssociationCommandOutput | DeleteAssistantCommandOutput | DeleteContentCommandOutput | DeleteKnowledgeBaseCommandOutput | GetAssistantAssociationCommandOutput | GetAssistantCommandOutput | GetContentCommandOutput | GetContentSummaryCommandOutput | GetKnowledgeBaseCommandOutput | GetRecommendationsCommandOutput | GetSessionCommandOutput | ListAssistantAssociationsCommandOutput | ListAssistantsCommandOutput | ListContentsCommandOutput | ListKnowledgeBasesCommandOutput | ListTagsForResourceCommandOutput | NotifyRecommendationsReceivedCommandOutput | PutFeedbackCommandOutput | QueryAssistantCommandOutput | RemoveKnowledgeBaseTemplateUriCommandOutput | SearchContentCommandOutput | SearchSessionsCommandOutput | StartContentUploadCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateContentCommandOutput | UpdateKnowledgeBaseTemplateUriCommandOutput;
40
+ export declare type ServiceInputTypes = CreateAssistantAssociationCommandInput | CreateAssistantCommandInput | CreateContentCommandInput | CreateKnowledgeBaseCommandInput | CreateSessionCommandInput | DeleteAssistantAssociationCommandInput | DeleteAssistantCommandInput | DeleteContentCommandInput | DeleteKnowledgeBaseCommandInput | GetAssistantAssociationCommandInput | GetAssistantCommandInput | GetContentCommandInput | GetContentSummaryCommandInput | GetKnowledgeBaseCommandInput | GetRecommendationsCommandInput | GetSessionCommandInput | ListAssistantAssociationsCommandInput | ListAssistantsCommandInput | ListContentsCommandInput | ListKnowledgeBasesCommandInput | ListTagsForResourceCommandInput | NotifyRecommendationsReceivedCommandInput | QueryAssistantCommandInput | RemoveKnowledgeBaseTemplateUriCommandInput | SearchContentCommandInput | SearchSessionsCommandInput | StartContentUploadCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateContentCommandInput | UpdateKnowledgeBaseTemplateUriCommandInput;
41
+ export declare type ServiceOutputTypes = CreateAssistantAssociationCommandOutput | CreateAssistantCommandOutput | CreateContentCommandOutput | CreateKnowledgeBaseCommandOutput | CreateSessionCommandOutput | DeleteAssistantAssociationCommandOutput | DeleteAssistantCommandOutput | DeleteContentCommandOutput | DeleteKnowledgeBaseCommandOutput | GetAssistantAssociationCommandOutput | GetAssistantCommandOutput | GetContentCommandOutput | GetContentSummaryCommandOutput | GetKnowledgeBaseCommandOutput | GetRecommendationsCommandOutput | GetSessionCommandOutput | ListAssistantAssociationsCommandOutput | ListAssistantsCommandOutput | ListContentsCommandOutput | ListKnowledgeBasesCommandOutput | ListTagsForResourceCommandOutput | NotifyRecommendationsReceivedCommandOutput | QueryAssistantCommandOutput | RemoveKnowledgeBaseTemplateUriCommandOutput | SearchContentCommandOutput | SearchSessionsCommandOutput | StartContentUploadCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateContentCommandOutput | UpdateKnowledgeBaseTemplateUriCommandOutput;
43
42
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
44
43
  /**
45
44
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.
@@ -20,7 +20,6 @@ export * from "./ListContentsCommand";
20
20
  export * from "./ListKnowledgeBasesCommand";
21
21
  export * from "./ListTagsForResourceCommand";
22
22
  export * from "./NotifyRecommendationsReceivedCommand";
23
- export * from "./PutFeedbackCommand";
24
23
  export * from "./QueryAssistantCommand";
25
24
  export * from "./RemoveKnowledgeBaseTemplateUriCommand";
26
25
  export * from "./SearchContentCommand";
@@ -707,63 +707,6 @@ export interface NotifyRecommendationsReceivedResponse {
707
707
  */
708
708
  errors?: NotifyRecommendationsReceivedError[];
709
709
  }
710
- export declare enum Relevance {
711
- HELPFUL = "HELPFUL",
712
- NOT_HELPFUL = "NOT_HELPFUL"
713
- }
714
- /**
715
- * <p>The feedback to submit to Wisdom.</p>
716
- */
717
- export interface FeedbackData {
718
- /**
719
- * <p>The relevance of the target this feedback is for.</p>
720
- */
721
- relevance: Relevance | string | undefined;
722
- }
723
- export declare enum TargetType {
724
- RECOMMENDATION = "RECOMMENDATION",
725
- RESULT = "RESULT"
726
- }
727
- export interface PutFeedbackRequest {
728
- /**
729
- * <p>The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
730
- */
731
- assistantId: string | undefined;
732
- /**
733
- * <p>The identifier of a recommendation. or The identifier of the result data.</p>
734
- */
735
- targetId: string | undefined;
736
- /**
737
- * <p>The type of the targetId for which The feedback. is targeted.</p>
738
- */
739
- targetType: TargetType | string | undefined;
740
- /**
741
- * <p>The feedback.</p>
742
- */
743
- feedback: FeedbackData | undefined;
744
- }
745
- export interface PutFeedbackResponse {
746
- /**
747
- * <p>The identifier of the Wisdom assistant.</p>
748
- */
749
- assistantId: string | undefined;
750
- /**
751
- * <p>The Amazon Resource Name (ARN) of the Wisdom assistant.</p>
752
- */
753
- assistantArn: string | undefined;
754
- /**
755
- * <p>The identifier of a recommendation. or The identifier of the result data.</p>
756
- */
757
- targetId: string | undefined;
758
- /**
759
- * <p>The type of the targetId for which The feedback. is targeted.</p>
760
- */
761
- targetType: TargetType | string | undefined;
762
- /**
763
- * <p>The feedback.</p>
764
- */
765
- feedback: FeedbackData | undefined;
766
- }
767
710
  export interface QueryAssistantRequest {
768
711
  /**
769
712
  * <p>The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
@@ -1781,18 +1724,6 @@ export declare const NotifyRecommendationsReceivedErrorFilterSensitiveLog: (obj:
1781
1724
  * @internal
1782
1725
  */
1783
1726
  export declare const NotifyRecommendationsReceivedResponseFilterSensitiveLog: (obj: NotifyRecommendationsReceivedResponse) => any;
1784
- /**
1785
- * @internal
1786
- */
1787
- export declare const FeedbackDataFilterSensitiveLog: (obj: FeedbackData) => any;
1788
- /**
1789
- * @internal
1790
- */
1791
- export declare const PutFeedbackRequestFilterSensitiveLog: (obj: PutFeedbackRequest) => any;
1792
- /**
1793
- * @internal
1794
- */
1795
- export declare const PutFeedbackResponseFilterSensitiveLog: (obj: PutFeedbackResponse) => any;
1796
1727
  /**
1797
1728
  * @internal
1798
1729
  */
@@ -22,7 +22,6 @@ import { ListContentsCommandInput, ListContentsCommandOutput } from "../commands
22
22
  import { ListKnowledgeBasesCommandInput, ListKnowledgeBasesCommandOutput } from "../commands/ListKnowledgeBasesCommand";
23
23
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
24
24
  import { NotifyRecommendationsReceivedCommandInput, NotifyRecommendationsReceivedCommandOutput } from "../commands/NotifyRecommendationsReceivedCommand";
25
- import { PutFeedbackCommandInput, PutFeedbackCommandOutput } from "../commands/PutFeedbackCommand";
26
25
  import { QueryAssistantCommandInput, QueryAssistantCommandOutput } from "../commands/QueryAssistantCommand";
27
26
  import { RemoveKnowledgeBaseTemplateUriCommandInput, RemoveKnowledgeBaseTemplateUriCommandOutput } from "../commands/RemoveKnowledgeBaseTemplateUriCommand";
28
27
  import { SearchContentCommandInput, SearchContentCommandOutput } from "../commands/SearchContentCommand";
@@ -54,7 +53,6 @@ export declare const serializeAws_restJson1ListContentsCommand: (input: ListCont
54
53
  export declare const serializeAws_restJson1ListKnowledgeBasesCommand: (input: ListKnowledgeBasesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
55
54
  export declare const serializeAws_restJson1ListTagsForResourceCommand: (input: ListTagsForResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
56
55
  export declare const serializeAws_restJson1NotifyRecommendationsReceivedCommand: (input: NotifyRecommendationsReceivedCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
57
- export declare const serializeAws_restJson1PutFeedbackCommand: (input: PutFeedbackCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
58
56
  export declare const serializeAws_restJson1QueryAssistantCommand: (input: QueryAssistantCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
59
57
  export declare const serializeAws_restJson1RemoveKnowledgeBaseTemplateUriCommand: (input: RemoveKnowledgeBaseTemplateUriCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
60
58
  export declare const serializeAws_restJson1SearchContentCommand: (input: SearchContentCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -86,7 +84,6 @@ export declare const deserializeAws_restJson1ListContentsCommand: (output: __Htt
86
84
  export declare const deserializeAws_restJson1ListKnowledgeBasesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListKnowledgeBasesCommandOutput>;
87
85
  export declare const deserializeAws_restJson1ListTagsForResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTagsForResourceCommandOutput>;
88
86
  export declare const deserializeAws_restJson1NotifyRecommendationsReceivedCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<NotifyRecommendationsReceivedCommandOutput>;
89
- export declare const deserializeAws_restJson1PutFeedbackCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutFeedbackCommandOutput>;
90
87
  export declare const deserializeAws_restJson1QueryAssistantCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<QueryAssistantCommandOutput>;
91
88
  export declare const deserializeAws_restJson1RemoveKnowledgeBaseTemplateUriCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RemoveKnowledgeBaseTemplateUriCommandOutput>;
92
89
  export declare const deserializeAws_restJson1SearchContentCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SearchContentCommandOutput>;
@@ -87,10 +87,6 @@ import {
87
87
  NotifyRecommendationsReceivedCommandInput,
88
88
  NotifyRecommendationsReceivedCommandOutput,
89
89
  } from "./commands/NotifyRecommendationsReceivedCommand";
90
- import {
91
- PutFeedbackCommandInput,
92
- PutFeedbackCommandOutput,
93
- } from "./commands/PutFeedbackCommand";
94
90
  import {
95
91
  QueryAssistantCommandInput,
96
92
  QueryAssistantCommandOutput,
@@ -415,19 +411,6 @@ export declare class Wisdom extends WisdomClient {
415
411
  options: __HttpHandlerOptions,
416
412
  cb: (err: any, data?: NotifyRecommendationsReceivedCommandOutput) => void
417
413
  ): void;
418
- putFeedback(
419
- args: PutFeedbackCommandInput,
420
- options?: __HttpHandlerOptions
421
- ): Promise<PutFeedbackCommandOutput>;
422
- putFeedback(
423
- args: PutFeedbackCommandInput,
424
- cb: (err: any, data?: PutFeedbackCommandOutput) => void
425
- ): void;
426
- putFeedback(
427
- args: PutFeedbackCommandInput,
428
- options: __HttpHandlerOptions,
429
- cb: (err: any, data?: PutFeedbackCommandOutput) => void
430
- ): void;
431
414
  queryAssistant(
432
415
  args: QueryAssistantCommandInput,
433
416
  options?: __HttpHandlerOptions
@@ -130,10 +130,6 @@ import {
130
130
  NotifyRecommendationsReceivedCommandInput,
131
131
  NotifyRecommendationsReceivedCommandOutput,
132
132
  } from "./commands/NotifyRecommendationsReceivedCommand";
133
- import {
134
- PutFeedbackCommandInput,
135
- PutFeedbackCommandOutput,
136
- } from "./commands/PutFeedbackCommand";
137
133
  import {
138
134
  QueryAssistantCommandInput,
139
135
  QueryAssistantCommandOutput,
@@ -193,7 +189,6 @@ export declare type ServiceInputTypes =
193
189
  | ListKnowledgeBasesCommandInput
194
190
  | ListTagsForResourceCommandInput
195
191
  | NotifyRecommendationsReceivedCommandInput
196
- | PutFeedbackCommandInput
197
192
  | QueryAssistantCommandInput
198
193
  | RemoveKnowledgeBaseTemplateUriCommandInput
199
194
  | SearchContentCommandInput
@@ -226,7 +221,6 @@ export declare type ServiceOutputTypes =
226
221
  | ListKnowledgeBasesCommandOutput
227
222
  | ListTagsForResourceCommandOutput
228
223
  | NotifyRecommendationsReceivedCommandOutput
229
- | PutFeedbackCommandOutput
230
224
  | QueryAssistantCommandOutput
231
225
  | RemoveKnowledgeBaseTemplateUriCommandOutput
232
226
  | SearchContentCommandOutput
@@ -20,7 +20,6 @@ export * from "./ListContentsCommand";
20
20
  export * from "./ListKnowledgeBasesCommand";
21
21
  export * from "./ListTagsForResourceCommand";
22
22
  export * from "./NotifyRecommendationsReceivedCommand";
23
- export * from "./PutFeedbackCommand";
24
23
  export * from "./QueryAssistantCommand";
25
24
  export * from "./RemoveKnowledgeBaseTemplateUriCommand";
26
25
  export * from "./SearchContentCommand";
@@ -292,30 +292,6 @@ export interface NotifyRecommendationsReceivedResponse {
292
292
  recommendationIds?: string[];
293
293
  errors?: NotifyRecommendationsReceivedError[];
294
294
  }
295
- export declare enum Relevance {
296
- HELPFUL = "HELPFUL",
297
- NOT_HELPFUL = "NOT_HELPFUL",
298
- }
299
- export interface FeedbackData {
300
- relevance: Relevance | string | undefined;
301
- }
302
- export declare enum TargetType {
303
- RECOMMENDATION = "RECOMMENDATION",
304
- RESULT = "RESULT",
305
- }
306
- export interface PutFeedbackRequest {
307
- assistantId: string | undefined;
308
- targetId: string | undefined;
309
- targetType: TargetType | string | undefined;
310
- feedback: FeedbackData | undefined;
311
- }
312
- export interface PutFeedbackResponse {
313
- assistantId: string | undefined;
314
- assistantArn: string | undefined;
315
- targetId: string | undefined;
316
- targetType: TargetType | string | undefined;
317
- feedback: FeedbackData | undefined;
318
- }
319
295
  export interface QueryAssistantRequest {
320
296
  assistantId: string | undefined;
321
297
  queryText: string | undefined;
@@ -736,13 +712,6 @@ export declare const NotifyRecommendationsReceivedErrorFilterSensitiveLog: (
736
712
  export declare const NotifyRecommendationsReceivedResponseFilterSensitiveLog: (
737
713
  obj: NotifyRecommendationsReceivedResponse
738
714
  ) => any;
739
- export declare const FeedbackDataFilterSensitiveLog: (obj: FeedbackData) => any;
740
- export declare const PutFeedbackRequestFilterSensitiveLog: (
741
- obj: PutFeedbackRequest
742
- ) => any;
743
- export declare const PutFeedbackResponseFilterSensitiveLog: (
744
- obj: PutFeedbackResponse
745
- ) => any;
746
715
  export declare const QueryAssistantRequestFilterSensitiveLog: (
747
716
  obj: QueryAssistantRequest
748
717
  ) => any;
@@ -91,10 +91,6 @@ import {
91
91
  NotifyRecommendationsReceivedCommandInput,
92
92
  NotifyRecommendationsReceivedCommandOutput,
93
93
  } from "../commands/NotifyRecommendationsReceivedCommand";
94
- import {
95
- PutFeedbackCommandInput,
96
- PutFeedbackCommandOutput,
97
- } from "../commands/PutFeedbackCommand";
98
94
  import {
99
95
  QueryAssistantCommandInput,
100
96
  QueryAssistantCommandOutput,
@@ -219,10 +215,6 @@ export declare const serializeAws_restJson1NotifyRecommendationsReceivedCommand:
219
215
  input: NotifyRecommendationsReceivedCommandInput,
220
216
  context: __SerdeContext
221
217
  ) => Promise<__HttpRequest>;
222
- export declare const serializeAws_restJson1PutFeedbackCommand: (
223
- input: PutFeedbackCommandInput,
224
- context: __SerdeContext
225
- ) => Promise<__HttpRequest>;
226
218
  export declare const serializeAws_restJson1QueryAssistantCommand: (
227
219
  input: QueryAssistantCommandInput,
228
220
  context: __SerdeContext
@@ -347,10 +339,6 @@ export declare const deserializeAws_restJson1NotifyRecommendationsReceivedComman
347
339
  output: __HttpResponse,
348
340
  context: __SerdeContext
349
341
  ) => Promise<NotifyRecommendationsReceivedCommandOutput>;
350
- export declare const deserializeAws_restJson1PutFeedbackCommand: (
351
- output: __HttpResponse,
352
- context: __SerdeContext
353
- ) => Promise<PutFeedbackCommandOutput>;
354
342
  export declare const deserializeAws_restJson1QueryAssistantCommand: (
355
343
  output: __HttpResponse,
356
344
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-wisdom",
3
3
  "description": "AWS SDK for JavaScript Wisdom Client for Node.js, Browser and React Native",
4
- "version": "3.186.0",
4
+ "version": "3.188.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -19,42 +19,42 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.186.0",
23
- "@aws-sdk/config-resolver": "3.186.0",
24
- "@aws-sdk/credential-provider-node": "3.186.0",
25
- "@aws-sdk/fetch-http-handler": "3.186.0",
26
- "@aws-sdk/hash-node": "3.186.0",
27
- "@aws-sdk/invalid-dependency": "3.186.0",
28
- "@aws-sdk/middleware-content-length": "3.186.0",
29
- "@aws-sdk/middleware-host-header": "3.186.0",
30
- "@aws-sdk/middleware-logger": "3.186.0",
31
- "@aws-sdk/middleware-recursion-detection": "3.186.0",
32
- "@aws-sdk/middleware-retry": "3.186.0",
33
- "@aws-sdk/middleware-serde": "3.186.0",
34
- "@aws-sdk/middleware-signing": "3.186.0",
35
- "@aws-sdk/middleware-stack": "3.186.0",
36
- "@aws-sdk/middleware-user-agent": "3.186.0",
37
- "@aws-sdk/node-config-provider": "3.186.0",
38
- "@aws-sdk/node-http-handler": "3.186.0",
39
- "@aws-sdk/protocol-http": "3.186.0",
40
- "@aws-sdk/smithy-client": "3.186.0",
41
- "@aws-sdk/types": "3.186.0",
42
- "@aws-sdk/url-parser": "3.186.0",
43
- "@aws-sdk/util-base64-browser": "3.186.0",
44
- "@aws-sdk/util-base64-node": "3.186.0",
45
- "@aws-sdk/util-body-length-browser": "3.186.0",
46
- "@aws-sdk/util-body-length-node": "3.186.0",
47
- "@aws-sdk/util-defaults-mode-browser": "3.186.0",
48
- "@aws-sdk/util-defaults-mode-node": "3.186.0",
49
- "@aws-sdk/util-user-agent-browser": "3.186.0",
50
- "@aws-sdk/util-user-agent-node": "3.186.0",
51
- "@aws-sdk/util-utf8-browser": "3.186.0",
52
- "@aws-sdk/util-utf8-node": "3.186.0",
22
+ "@aws-sdk/client-sts": "3.188.0",
23
+ "@aws-sdk/config-resolver": "3.188.0",
24
+ "@aws-sdk/credential-provider-node": "3.188.0",
25
+ "@aws-sdk/fetch-http-handler": "3.188.0",
26
+ "@aws-sdk/hash-node": "3.188.0",
27
+ "@aws-sdk/invalid-dependency": "3.188.0",
28
+ "@aws-sdk/middleware-content-length": "3.188.0",
29
+ "@aws-sdk/middleware-host-header": "3.188.0",
30
+ "@aws-sdk/middleware-logger": "3.188.0",
31
+ "@aws-sdk/middleware-recursion-detection": "3.188.0",
32
+ "@aws-sdk/middleware-retry": "3.188.0",
33
+ "@aws-sdk/middleware-serde": "3.188.0",
34
+ "@aws-sdk/middleware-signing": "3.188.0",
35
+ "@aws-sdk/middleware-stack": "3.188.0",
36
+ "@aws-sdk/middleware-user-agent": "3.188.0",
37
+ "@aws-sdk/node-config-provider": "3.188.0",
38
+ "@aws-sdk/node-http-handler": "3.188.0",
39
+ "@aws-sdk/protocol-http": "3.188.0",
40
+ "@aws-sdk/smithy-client": "3.188.0",
41
+ "@aws-sdk/types": "3.188.0",
42
+ "@aws-sdk/url-parser": "3.188.0",
43
+ "@aws-sdk/util-base64-browser": "3.188.0",
44
+ "@aws-sdk/util-base64-node": "3.188.0",
45
+ "@aws-sdk/util-body-length-browser": "3.188.0",
46
+ "@aws-sdk/util-body-length-node": "3.188.0",
47
+ "@aws-sdk/util-defaults-mode-browser": "3.188.0",
48
+ "@aws-sdk/util-defaults-mode-node": "3.188.0",
49
+ "@aws-sdk/util-user-agent-browser": "3.188.0",
50
+ "@aws-sdk/util-user-agent-node": "3.188.0",
51
+ "@aws-sdk/util-utf8-browser": "3.188.0",
52
+ "@aws-sdk/util-utf8-node": "3.188.0",
53
53
  "tslib": "^2.3.1",
54
54
  "uuid": "^8.3.2"
55
55
  },
56
56
  "devDependencies": {
57
- "@aws-sdk/service-client-documentation-generator": "3.186.0",
57
+ "@aws-sdk/service-client-documentation-generator": "3.188.0",
58
58
  "@tsconfig/recommended": "1.0.1",
59
59
  "@types/node": "^12.7.5",
60
60
  "@types/uuid": "^8.3.0",
@@ -1,36 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PutFeedbackCommand = void 0;
4
- const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
- const smithy_client_1 = require("@aws-sdk/smithy-client");
6
- const models_0_1 = require("../models/models_0");
7
- const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- class PutFeedbackCommand extends smithy_client_1.Command {
9
- constructor(input) {
10
- super();
11
- this.input = input;
12
- }
13
- resolveMiddleware(clientStack, configuration, options) {
14
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
- const stack = clientStack.concat(this.middlewareStack);
16
- const { logger } = configuration;
17
- const clientName = "WisdomClient";
18
- const commandName = "PutFeedbackCommand";
19
- const handlerExecutionContext = {
20
- logger,
21
- clientName,
22
- commandName,
23
- inputFilterSensitiveLog: models_0_1.PutFeedbackRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: models_0_1.PutFeedbackResponseFilterSensitiveLog,
25
- };
26
- const { requestHandler } = configuration;
27
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
- }
29
- serialize(input, context) {
30
- return (0, Aws_restJson1_1.serializeAws_restJson1PutFeedbackCommand)(input, context);
31
- }
32
- deserialize(output, context) {
33
- return (0, Aws_restJson1_1.deserializeAws_restJson1PutFeedbackCommand)(output, context);
34
- }
35
- }
36
- exports.PutFeedbackCommand = PutFeedbackCommand;
@@ -1,39 +0,0 @@
1
- import { __extends } from "tslib";
2
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { PutFeedbackRequestFilterSensitiveLog, PutFeedbackResponseFilterSensitiveLog, } from "../models/models_0";
5
- import { deserializeAws_restJson1PutFeedbackCommand, serializeAws_restJson1PutFeedbackCommand, } from "../protocols/Aws_restJson1";
6
- var PutFeedbackCommand = (function (_super) {
7
- __extends(PutFeedbackCommand, _super);
8
- function PutFeedbackCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
12
- }
13
- PutFeedbackCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "WisdomClient";
18
- var commandName = "PutFeedbackCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
23
- inputFilterSensitiveLog: PutFeedbackRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: PutFeedbackResponseFilterSensitiveLog,
25
- };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- PutFeedbackCommand.prototype.serialize = function (input, context) {
32
- return serializeAws_restJson1PutFeedbackCommand(input, context);
33
- };
34
- PutFeedbackCommand.prototype.deserialize = function (output, context) {
35
- return deserializeAws_restJson1PutFeedbackCommand(output, context);
36
- };
37
- return PutFeedbackCommand;
38
- }($Command));
39
- export { PutFeedbackCommand };