@aws-sdk/client-wisdom 3.67.0 → 3.75.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.75.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.74.0...v3.75.0) (2022-04-21)
7
+
8
+
9
+ ### Features
10
+
11
+ * **client-wisdom:** This release updates the GetRecommendations API to include a trigger event list for classifying and grouping recommendations. ([6f1e5c3](https://github.com/aws/aws-sdk-js-v3/commit/6f1e5c3419678763f13a68bc71ec722a399ae2d9))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.74.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.73.0...v3.74.0) (2022-04-20)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-wisdom
20
+
21
+
22
+
23
+
24
+
25
+ # [3.72.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.71.0...v3.72.0) (2022-04-15)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-wisdom
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.67.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.66.0...v3.67.0) (2022-04-08)
7
34
 
8
35
  **Note:** Version bump only for package @aws-sdk/client-wisdom
package/README.md CHANGED
@@ -7,11 +7,9 @@
7
7
 
8
8
  AWS SDK for JavaScript Wisdom Client for Node.js, Browser and React Native.
9
9
 
10
- <p>All Amazon Connect Wisdom functionality is accessible using the API. For example, you can create an
11
- assistant and a knowledge base.</p>
12
-
13
- <p>Some more advanced features are only accessible using the Wisdom API. For example, you
14
- can manually manage content by uploading custom files and control their lifecycle. </p>
10
+ <p>Amazon Connect Wisdom delivers agents the information they need to solve customer issues as they're actively
11
+ speaking with customers. Agents can search across connected repositories from within their agent desktop
12
+ to find answers quickly. Use the Amazon Connect Wisdom APIs to create an assistant and a knowledge base, for example, or manage content by uploading custom files.</p>
15
13
 
16
14
  ## Installing
17
15
 
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Filter = exports.FilterOperator = exports.FilterField = exports.QueryAssistantResponse = exports.ResultData = exports.QueryAssistantRequest = exports.NotifyRecommendationsReceivedResponse = exports.NotifyRecommendationsReceivedError = exports.NotifyRecommendationsReceivedRequest = exports.ListAssistantsResponse = exports.AssistantSummary = exports.ListAssistantsRequest = exports.GetRecommendationsResponse = exports.RecommendationData = exports.RelevanceLevel = exports.Document = exports.DocumentText = exports.Highlight = exports.ContentReference = exports.GetRecommendationsRequest = exports.GetAssistantResponse = exports.GetAssistantRequest = exports.DeleteAssistantResponse = exports.DeleteAssistantRequest = exports.CreateAssistantResponse = exports.AssistantData = exports.AssistantStatus = exports.CreateAssistantRequest = exports.AssistantType = exports.ServerSideEncryptionConfiguration = exports.ListAssistantAssociationsResponse = exports.AssistantAssociationSummary = exports.ListAssistantAssociationsRequest = exports.GetAssistantAssociationResponse = exports.GetAssistantAssociationRequest = exports.DeleteAssistantAssociationResponse = exports.DeleteAssistantAssociationRequest = exports.ValidationException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.CreateAssistantAssociationResponse = exports.AssistantAssociationData = exports.AssistantAssociationOutputData = exports.KnowledgeBaseAssociationData = exports.CreateAssistantAssociationRequest = exports.AssociationType = exports.AssistantAssociationInputData = exports.ConflictException = exports.AppIntegrationsConfiguration = exports.AccessDeniedException = void 0;
4
- exports.TagResourceRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.UpdateKnowledgeBaseTemplateUriResponse = exports.UpdateKnowledgeBaseTemplateUriRequest = exports.StartContentUploadResponse = exports.StartContentUploadRequest = exports.SearchContentResponse = exports.SearchContentRequest = exports.RemoveKnowledgeBaseTemplateUriResponse = exports.RemoveKnowledgeBaseTemplateUriRequest = exports.ListKnowledgeBasesResponse = exports.KnowledgeBaseSummary = exports.ListKnowledgeBasesRequest = exports.GetKnowledgeBaseResponse = exports.GetKnowledgeBaseRequest = exports.DeleteKnowledgeBaseResponse = exports.DeleteKnowledgeBaseRequest = exports.CreateKnowledgeBaseResponse = exports.KnowledgeBaseData = exports.KnowledgeBaseStatus = exports.CreateKnowledgeBaseRequest = exports.SourceConfiguration = exports.RenderingConfiguration = exports.KnowledgeBaseType = exports.UpdateContentResponse = exports.UpdateContentRequest = exports.PreconditionFailedException = exports.ListContentsResponse = exports.ListContentsRequest = exports.GetContentSummaryResponse = exports.ContentSummary = exports.GetContentSummaryRequest = exports.GetContentResponse = exports.GetContentRequest = exports.DeleteContentResponse = exports.DeleteContentRequest = exports.CreateContentResponse = exports.ContentData = exports.ContentStatus = exports.CreateContentRequest = exports.GetSessionResponse = exports.GetSessionRequest = exports.CreateSessionResponse = exports.SessionData = exports.CreateSessionRequest = exports.SearchSessionsResponse = exports.SessionSummary = exports.SearchSessionsRequest = exports.SearchExpression = void 0;
5
- exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TooManyTagsException = exports.TagResourceResponse = void 0;
3
+ exports.NotifyRecommendationsReceivedResponse = exports.NotifyRecommendationsReceivedError = exports.NotifyRecommendationsReceivedRequest = exports.ListAssistantsResponse = exports.AssistantSummary = exports.ListAssistantsRequest = exports.GetRecommendationsResponse = exports.RecommendationTrigger = exports.RecommendationTriggerType = exports.RecommendationSourceType = exports.RecommendationTriggerData = exports.QueryRecommendationTriggerData = exports.RecommendationData = exports.RecommendationType = exports.RelevanceLevel = exports.Document = exports.DocumentText = exports.Highlight = exports.ContentReference = exports.GetRecommendationsRequest = exports.GetAssistantResponse = exports.GetAssistantRequest = exports.DeleteAssistantResponse = exports.DeleteAssistantRequest = exports.CreateAssistantResponse = exports.AssistantData = exports.AssistantStatus = exports.CreateAssistantRequest = exports.AssistantType = exports.ServerSideEncryptionConfiguration = exports.ListAssistantAssociationsResponse = exports.AssistantAssociationSummary = exports.ListAssistantAssociationsRequest = exports.GetAssistantAssociationResponse = exports.GetAssistantAssociationRequest = exports.DeleteAssistantAssociationResponse = exports.DeleteAssistantAssociationRequest = exports.ValidationException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.CreateAssistantAssociationResponse = exports.AssistantAssociationData = exports.AssistantAssociationOutputData = exports.KnowledgeBaseAssociationData = exports.CreateAssistantAssociationRequest = exports.AssociationType = exports.AssistantAssociationInputData = exports.ConflictException = exports.AppIntegrationsConfiguration = exports.AccessDeniedException = void 0;
4
+ exports.StartContentUploadRequest = exports.SearchContentResponse = exports.SearchContentRequest = exports.RemoveKnowledgeBaseTemplateUriResponse = exports.RemoveKnowledgeBaseTemplateUriRequest = exports.ListKnowledgeBasesResponse = exports.KnowledgeBaseSummary = exports.ListKnowledgeBasesRequest = exports.GetKnowledgeBaseResponse = exports.GetKnowledgeBaseRequest = exports.DeleteKnowledgeBaseResponse = exports.DeleteKnowledgeBaseRequest = exports.CreateKnowledgeBaseResponse = exports.KnowledgeBaseData = exports.KnowledgeBaseStatus = exports.CreateKnowledgeBaseRequest = exports.SourceConfiguration = exports.RenderingConfiguration = exports.KnowledgeBaseType = exports.UpdateContentResponse = exports.UpdateContentRequest = exports.PreconditionFailedException = exports.ListContentsResponse = exports.ListContentsRequest = exports.GetContentSummaryResponse = exports.ContentSummary = exports.GetContentSummaryRequest = exports.GetContentResponse = exports.GetContentRequest = exports.DeleteContentResponse = exports.DeleteContentRequest = exports.CreateContentResponse = exports.ContentData = exports.ContentStatus = exports.CreateContentRequest = exports.GetSessionResponse = exports.GetSessionRequest = exports.CreateSessionResponse = exports.SessionData = exports.CreateSessionRequest = exports.SearchSessionsResponse = exports.SessionSummary = exports.SearchSessionsRequest = exports.SearchExpression = exports.Filter = exports.FilterOperator = exports.FilterField = exports.QueryAssistantResponse = exports.ResultData = exports.QueryAssistantRequest = void 0;
5
+ exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TooManyTagsException = exports.TagResourceResponse = exports.TagResourceRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.UpdateKnowledgeBaseTemplateUriResponse = exports.UpdateKnowledgeBaseTemplateUriRequest = exports.StartContentUploadResponse = void 0;
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const WisdomServiceException_1 = require("./WisdomServiceException");
8
8
  class AccessDeniedException extends WisdomServiceException_1.WisdomServiceException {
@@ -293,6 +293,10 @@ var RelevanceLevel;
293
293
  RelevanceLevel["LOW"] = "LOW";
294
294
  RelevanceLevel["MEDIUM"] = "MEDIUM";
295
295
  })(RelevanceLevel = exports.RelevanceLevel || (exports.RelevanceLevel = {}));
296
+ var RecommendationType;
297
+ (function (RecommendationType) {
298
+ RecommendationType["KNOWLEDGE_CONTENT"] = "KNOWLEDGE_CONTENT";
299
+ })(RecommendationType = exports.RecommendationType || (exports.RecommendationType = {}));
296
300
  var RecommendationData;
297
301
  (function (RecommendationData) {
298
302
  RecommendationData.filterSensitiveLog = (obj) => ({
@@ -300,6 +304,44 @@ var RecommendationData;
300
304
  ...(obj.document && { document: Document.filterSensitiveLog(obj.document) }),
301
305
  });
302
306
  })(RecommendationData = exports.RecommendationData || (exports.RecommendationData = {}));
307
+ var QueryRecommendationTriggerData;
308
+ (function (QueryRecommendationTriggerData) {
309
+ QueryRecommendationTriggerData.filterSensitiveLog = (obj) => ({
310
+ ...obj,
311
+ ...(obj.text && { text: smithy_client_1.SENSITIVE_STRING }),
312
+ });
313
+ })(QueryRecommendationTriggerData = exports.QueryRecommendationTriggerData || (exports.QueryRecommendationTriggerData = {}));
314
+ var RecommendationTriggerData;
315
+ (function (RecommendationTriggerData) {
316
+ RecommendationTriggerData.visit = (value, visitor) => {
317
+ if (value.query !== undefined)
318
+ return visitor.query(value.query);
319
+ return visitor._(value.$unknown[0], value.$unknown[1]);
320
+ };
321
+ RecommendationTriggerData.filterSensitiveLog = (obj) => {
322
+ if (obj.query !== undefined)
323
+ return { query: QueryRecommendationTriggerData.filterSensitiveLog(obj.query) };
324
+ if (obj.$unknown !== undefined)
325
+ return { [obj.$unknown[0]]: "UNKNOWN" };
326
+ };
327
+ })(RecommendationTriggerData = exports.RecommendationTriggerData || (exports.RecommendationTriggerData = {}));
328
+ var RecommendationSourceType;
329
+ (function (RecommendationSourceType) {
330
+ RecommendationSourceType["ISSUE_DETECTION"] = "ISSUE_DETECTION";
331
+ RecommendationSourceType["OTHER"] = "OTHER";
332
+ RecommendationSourceType["RULE_EVALUATION"] = "RULE_EVALUATION";
333
+ })(RecommendationSourceType = exports.RecommendationSourceType || (exports.RecommendationSourceType = {}));
334
+ var RecommendationTriggerType;
335
+ (function (RecommendationTriggerType) {
336
+ RecommendationTriggerType["QUERY"] = "QUERY";
337
+ })(RecommendationTriggerType = exports.RecommendationTriggerType || (exports.RecommendationTriggerType = {}));
338
+ var RecommendationTrigger;
339
+ (function (RecommendationTrigger) {
340
+ RecommendationTrigger.filterSensitiveLog = (obj) => ({
341
+ ...obj,
342
+ ...(obj.data && { data: RecommendationTriggerData.filterSensitiveLog(obj.data) }),
343
+ });
344
+ })(RecommendationTrigger = exports.RecommendationTrigger || (exports.RecommendationTrigger = {}));
303
345
  var GetRecommendationsResponse;
304
346
  (function (GetRecommendationsResponse) {
305
347
  GetRecommendationsResponse.filterSensitiveLog = (obj) => ({
@@ -307,6 +349,7 @@ var GetRecommendationsResponse;
307
349
  ...(obj.recommendations && {
308
350
  recommendations: obj.recommendations.map((item) => RecommendationData.filterSensitiveLog(item)),
309
351
  }),
352
+ ...(obj.triggers && { triggers: obj.triggers.map((item) => RecommendationTrigger.filterSensitiveLog(item)) }),
310
353
  });
311
354
  })(GetRecommendationsResponse = exports.GetRecommendationsResponse || (exports.GetRecommendationsResponse = {}));
312
355
  var ListAssistantsRequest;
@@ -1426,6 +1426,9 @@ const deserializeAws_restJson1DeleteKnowledgeBaseCommandError = async (output, c
1426
1426
  case "ResourceNotFoundException":
1427
1427
  case "com.amazonaws.wisdom#ResourceNotFoundException":
1428
1428
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1429
+ case "ValidationException":
1430
+ case "com.amazonaws.wisdom#ValidationException":
1431
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1429
1432
  default:
1430
1433
  const parsedBody = parsedOutput.body;
1431
1434
  response = new WisdomServiceException_1.WisdomServiceException({
@@ -1658,11 +1661,15 @@ const deserializeAws_restJson1GetRecommendationsCommand = async (output, context
1658
1661
  const contents = {
1659
1662
  $metadata: deserializeMetadata(output),
1660
1663
  recommendations: undefined,
1664
+ triggers: undefined,
1661
1665
  };
1662
1666
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1663
1667
  if (data.recommendations !== undefined && data.recommendations !== null) {
1664
1668
  contents.recommendations = deserializeAws_restJson1RecommendationList(data.recommendations, context);
1665
1669
  }
1670
+ if (data.triggers !== undefined && data.triggers !== null) {
1671
+ contents.triggers = deserializeAws_restJson1RecommendationTriggerList(data.triggers, context);
1672
+ }
1666
1673
  return Promise.resolve(contents);
1667
1674
  };
1668
1675
  exports.deserializeAws_restJson1GetRecommendationsCommand = deserializeAws_restJson1GetRecommendationsCommand;
@@ -2899,6 +2906,11 @@ const deserializeAws_restJson1ObjectFieldsList = (output, context) => {
2899
2906
  });
2900
2907
  return retVal;
2901
2908
  };
2909
+ const deserializeAws_restJson1QueryRecommendationTriggerData = (output, context) => {
2910
+ return {
2911
+ text: (0, smithy_client_1.expectString)(output.text),
2912
+ };
2913
+ };
2902
2914
  const deserializeAws_restJson1QueryResultsList = (output, context) => {
2903
2915
  const retVal = (output || [])
2904
2916
  .filter((e) => e != null)
@@ -2918,6 +2930,7 @@ const deserializeAws_restJson1RecommendationData = (output, context) => {
2918
2930
  recommendationId: (0, smithy_client_1.expectString)(output.recommendationId),
2919
2931
  relevanceLevel: (0, smithy_client_1.expectString)(output.relevanceLevel),
2920
2932
  relevanceScore: (0, smithy_client_1.limitedParseDouble)(output.relevanceScore),
2933
+ type: (0, smithy_client_1.expectString)(output.type),
2921
2934
  };
2922
2935
  };
2923
2936
  const deserializeAws_restJson1RecommendationIdList = (output, context) => {
@@ -2942,6 +2955,38 @@ const deserializeAws_restJson1RecommendationList = (output, context) => {
2942
2955
  });
2943
2956
  return retVal;
2944
2957
  };
2958
+ const deserializeAws_restJson1RecommendationTrigger = (output, context) => {
2959
+ return {
2960
+ data: output.data !== undefined && output.data !== null
2961
+ ? deserializeAws_restJson1RecommendationTriggerData((0, smithy_client_1.expectUnion)(output.data), context)
2962
+ : undefined,
2963
+ id: (0, smithy_client_1.expectString)(output.id),
2964
+ recommendationIds: output.recommendationIds !== undefined && output.recommendationIds !== null
2965
+ ? deserializeAws_restJson1RecommendationIdList(output.recommendationIds, context)
2966
+ : undefined,
2967
+ source: (0, smithy_client_1.expectString)(output.source),
2968
+ type: (0, smithy_client_1.expectString)(output.type),
2969
+ };
2970
+ };
2971
+ const deserializeAws_restJson1RecommendationTriggerData = (output, context) => {
2972
+ if (output.query !== undefined && output.query !== null) {
2973
+ return {
2974
+ query: deserializeAws_restJson1QueryRecommendationTriggerData(output.query, context),
2975
+ };
2976
+ }
2977
+ return { $unknown: Object.entries(output)[0] };
2978
+ };
2979
+ const deserializeAws_restJson1RecommendationTriggerList = (output, context) => {
2980
+ const retVal = (output || [])
2981
+ .filter((e) => e != null)
2982
+ .map((entry) => {
2983
+ if (entry === null) {
2984
+ return null;
2985
+ }
2986
+ return deserializeAws_restJson1RecommendationTrigger(entry, context);
2987
+ });
2988
+ return retVal;
2989
+ };
2945
2990
  const deserializeAws_restJson1RenderingConfiguration = (output, context) => {
2946
2991
  return {
2947
2992
  templateUri: (0, smithy_client_1.expectString)(output.templateUri),
@@ -229,15 +229,52 @@ export var RelevanceLevel;
229
229
  RelevanceLevel["LOW"] = "LOW";
230
230
  RelevanceLevel["MEDIUM"] = "MEDIUM";
231
231
  })(RelevanceLevel || (RelevanceLevel = {}));
232
+ export var RecommendationType;
233
+ (function (RecommendationType) {
234
+ RecommendationType["KNOWLEDGE_CONTENT"] = "KNOWLEDGE_CONTENT";
235
+ })(RecommendationType || (RecommendationType = {}));
232
236
  export var RecommendationData;
233
237
  (function (RecommendationData) {
234
238
  RecommendationData.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.document && { document: Document.filterSensitiveLog(obj.document) }))); };
235
239
  })(RecommendationData || (RecommendationData = {}));
240
+ export var QueryRecommendationTriggerData;
241
+ (function (QueryRecommendationTriggerData) {
242
+ QueryRecommendationTriggerData.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.text && { text: SENSITIVE_STRING }))); };
243
+ })(QueryRecommendationTriggerData || (QueryRecommendationTriggerData = {}));
244
+ export var RecommendationTriggerData;
245
+ (function (RecommendationTriggerData) {
246
+ RecommendationTriggerData.visit = function (value, visitor) {
247
+ if (value.query !== undefined)
248
+ return visitor.query(value.query);
249
+ return visitor._(value.$unknown[0], value.$unknown[1]);
250
+ };
251
+ RecommendationTriggerData.filterSensitiveLog = function (obj) {
252
+ var _a;
253
+ if (obj.query !== undefined)
254
+ return { query: QueryRecommendationTriggerData.filterSensitiveLog(obj.query) };
255
+ if (obj.$unknown !== undefined)
256
+ return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
257
+ };
258
+ })(RecommendationTriggerData || (RecommendationTriggerData = {}));
259
+ export var RecommendationSourceType;
260
+ (function (RecommendationSourceType) {
261
+ RecommendationSourceType["ISSUE_DETECTION"] = "ISSUE_DETECTION";
262
+ RecommendationSourceType["OTHER"] = "OTHER";
263
+ RecommendationSourceType["RULE_EVALUATION"] = "RULE_EVALUATION";
264
+ })(RecommendationSourceType || (RecommendationSourceType = {}));
265
+ export var RecommendationTriggerType;
266
+ (function (RecommendationTriggerType) {
267
+ RecommendationTriggerType["QUERY"] = "QUERY";
268
+ })(RecommendationTriggerType || (RecommendationTriggerType = {}));
269
+ export var RecommendationTrigger;
270
+ (function (RecommendationTrigger) {
271
+ RecommendationTrigger.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.data && { data: RecommendationTriggerData.filterSensitiveLog(obj.data) }))); };
272
+ })(RecommendationTrigger || (RecommendationTrigger = {}));
236
273
  export var GetRecommendationsResponse;
237
274
  (function (GetRecommendationsResponse) {
238
- GetRecommendationsResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.recommendations && {
275
+ GetRecommendationsResponse.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.recommendations && {
239
276
  recommendations: obj.recommendations.map(function (item) { return RecommendationData.filterSensitiveLog(item); }),
240
- }))); };
277
+ })), (obj.triggers && { triggers: obj.triggers.map(function (item) { return RecommendationTrigger.filterSensitiveLog(item); }) }))); };
241
278
  })(GetRecommendationsResponse || (GetRecommendationsResponse = {}));
242
279
  export var ListAssistantsRequest;
243
280
  (function (ListAssistantsRequest) {
@@ -1676,15 +1676,19 @@ var deserializeAws_restJson1DeleteKnowledgeBaseCommandError = function (output,
1676
1676
  case "com.amazonaws.wisdom#ConflictException": return [3, 4];
1677
1677
  case "ResourceNotFoundException": return [3, 6];
1678
1678
  case "com.amazonaws.wisdom#ResourceNotFoundException": return [3, 6];
1679
+ case "ValidationException": return [3, 8];
1680
+ case "com.amazonaws.wisdom#ValidationException": return [3, 8];
1679
1681
  }
1680
- return [3, 8];
1682
+ return [3, 10];
1681
1683
  case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1682
1684
  case 3: throw _d.sent();
1683
1685
  case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
1684
1686
  case 5: throw _d.sent();
1685
1687
  case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1686
1688
  case 7: throw _d.sent();
1687
- case 8:
1689
+ case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1690
+ case 9: throw _d.sent();
1691
+ case 10:
1688
1692
  parsedBody = parsedOutput.body;
1689
1693
  response = new __BaseException({
1690
1694
  name: parsedBody.code || parsedBody.Code || errorCode,
@@ -2026,6 +2030,7 @@ export var deserializeAws_restJson1GetRecommendationsCommand = function (output,
2026
2030
  contents = {
2027
2031
  $metadata: deserializeMetadata(output),
2028
2032
  recommendations: undefined,
2033
+ triggers: undefined,
2029
2034
  };
2030
2035
  _a = __expectNonNull;
2031
2036
  _b = __expectObject;
@@ -2035,6 +2040,9 @@ export var deserializeAws_restJson1GetRecommendationsCommand = function (output,
2035
2040
  if (data.recommendations !== undefined && data.recommendations !== null) {
2036
2041
  contents.recommendations = deserializeAws_restJson1RecommendationList(data.recommendations, context);
2037
2042
  }
2043
+ if (data.triggers !== undefined && data.triggers !== null) {
2044
+ contents.triggers = deserializeAws_restJson1RecommendationTriggerList(data.triggers, context);
2045
+ }
2038
2046
  return [2, Promise.resolve(contents)];
2039
2047
  }
2040
2048
  });
@@ -3591,6 +3599,11 @@ var deserializeAws_restJson1ObjectFieldsList = function (output, context) {
3591
3599
  });
3592
3600
  return retVal;
3593
3601
  };
3602
+ var deserializeAws_restJson1QueryRecommendationTriggerData = function (output, context) {
3603
+ return {
3604
+ text: __expectString(output.text),
3605
+ };
3606
+ };
3594
3607
  var deserializeAws_restJson1QueryResultsList = function (output, context) {
3595
3608
  var retVal = (output || [])
3596
3609
  .filter(function (e) { return e != null; })
@@ -3610,6 +3623,7 @@ var deserializeAws_restJson1RecommendationData = function (output, context) {
3610
3623
  recommendationId: __expectString(output.recommendationId),
3611
3624
  relevanceLevel: __expectString(output.relevanceLevel),
3612
3625
  relevanceScore: __limitedParseDouble(output.relevanceScore),
3626
+ type: __expectString(output.type),
3613
3627
  };
3614
3628
  };
3615
3629
  var deserializeAws_restJson1RecommendationIdList = function (output, context) {
@@ -3634,6 +3648,38 @@ var deserializeAws_restJson1RecommendationList = function (output, context) {
3634
3648
  });
3635
3649
  return retVal;
3636
3650
  };
3651
+ var deserializeAws_restJson1RecommendationTrigger = function (output, context) {
3652
+ return {
3653
+ data: output.data !== undefined && output.data !== null
3654
+ ? deserializeAws_restJson1RecommendationTriggerData(__expectUnion(output.data), context)
3655
+ : undefined,
3656
+ id: __expectString(output.id),
3657
+ recommendationIds: output.recommendationIds !== undefined && output.recommendationIds !== null
3658
+ ? deserializeAws_restJson1RecommendationIdList(output.recommendationIds, context)
3659
+ : undefined,
3660
+ source: __expectString(output.source),
3661
+ type: __expectString(output.type),
3662
+ };
3663
+ };
3664
+ var deserializeAws_restJson1RecommendationTriggerData = function (output, context) {
3665
+ if (output.query !== undefined && output.query !== null) {
3666
+ return {
3667
+ query: deserializeAws_restJson1QueryRecommendationTriggerData(output.query, context),
3668
+ };
3669
+ }
3670
+ return { $unknown: Object.entries(output)[0] };
3671
+ };
3672
+ var deserializeAws_restJson1RecommendationTriggerList = function (output, context) {
3673
+ var retVal = (output || [])
3674
+ .filter(function (e) { return e != null; })
3675
+ .map(function (entry) {
3676
+ if (entry === null) {
3677
+ return null;
3678
+ }
3679
+ return deserializeAws_restJson1RecommendationTrigger(entry, context);
3680
+ });
3681
+ return retVal;
3682
+ };
3637
3683
  var deserializeAws_restJson1RenderingConfiguration = function (output, context) {
3638
3684
  return {
3639
3685
  templateUri: __expectString(output.templateUri),
@@ -32,11 +32,9 @@ import { UpdateContentCommandInput, UpdateContentCommandOutput } from "./command
32
32
  import { UpdateKnowledgeBaseTemplateUriCommandInput, UpdateKnowledgeBaseTemplateUriCommandOutput } from "./commands/UpdateKnowledgeBaseTemplateUriCommand";
33
33
  import { WisdomClient } from "./WisdomClient";
34
34
  /**
35
- * <p>All Amazon Connect Wisdom functionality is accessible using the API. For example, you can create an
36
- * assistant and a knowledge base.</p>
37
- *
38
- * <p>Some more advanced features are only accessible using the Wisdom API. For example, you
39
- * can manually manage content by uploading custom files and control their lifecycle. </p>
35
+ * <p>Amazon Connect Wisdom delivers agents the information they need to solve customer issues as they're actively
36
+ * speaking with customers. Agents can search across connected repositories from within their agent desktop
37
+ * to find answers quickly. Use the Amazon Connect Wisdom APIs to create an assistant and a knowledge base, for example, or manage content by uploading custom files.</p>
40
38
  */
41
39
  export declare class Wisdom extends WisdomClient {
42
40
  /**
@@ -157,11 +157,9 @@ declare type WisdomClientResolvedConfigType = __SmithyResolvedConfiguration<__Ht
157
157
  export interface WisdomClientResolvedConfig extends WisdomClientResolvedConfigType {
158
158
  }
159
159
  /**
160
- * <p>All Amazon Connect Wisdom functionality is accessible using the API. For example, you can create an
161
- * assistant and a knowledge base.</p>
162
- *
163
- * <p>Some more advanced features are only accessible using the Wisdom API. For example, you
164
- * can manually manage content by uploading custom files and control their lifecycle. </p>
160
+ * <p>Amazon Connect Wisdom delivers agents the information they need to solve customer issues as they're actively
161
+ * speaking with customers. Agents can search across connected repositories from within their agent desktop
162
+ * to find answers quickly. Use the Amazon Connect Wisdom APIs to create an assistant and a knowledge base, for example, or manage content by uploading custom files.</p>
165
163
  */
166
164
  export declare class WisdomClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, WisdomClientResolvedConfig> {
167
165
  /**
@@ -33,7 +33,7 @@ export interface AppIntegrationsConfiguration {
33
33
  * and <code>active</code>. </p>
34
34
  * </li>
35
35
  * </ul>
36
- * <p>Make sure to include additional field(s); these are indexed and used to source
36
+ * <p>Make sure to include additional fields. These fields are indexed and used to source
37
37
  * recommendations. </p>
38
38
  */
39
39
  objectFields: string[] | undefined;
@@ -64,7 +64,7 @@ export declare class ConflictException extends __BaseException {
64
64
  export declare type AssistantAssociationInputData = AssistantAssociationInputData.KnowledgeBaseIdMember | AssistantAssociationInputData.$UnknownMember;
65
65
  export declare namespace AssistantAssociationInputData {
66
66
  /**
67
- * <p>The the identifier of the knowledge base.</p>
67
+ * <p>The identifier of the knowledge base.</p>
68
68
  */
69
69
  interface KnowledgeBaseIdMember {
70
70
  knowledgeBaseId: string;
@@ -123,7 +123,7 @@ export declare namespace CreateAssistantAssociationRequest {
123
123
  */
124
124
  export interface KnowledgeBaseAssociationData {
125
125
  /**
126
- * <p>The the identifier of the knowledge base.</p>
126
+ * <p>The identifier of the knowledge base.</p>
127
127
  */
128
128
  knowledgeBaseId?: string;
129
129
  /**
@@ -180,7 +180,7 @@ export interface AssistantAssociationData {
180
180
  */
181
181
  assistantId: string | undefined;
182
182
  /**
183
- * <p>The Amazon Resource Name (ARN) of the Wisdom assistant</p>
183
+ * <p>The Amazon Resource Name (ARN) of the Wisdom assistant.</p>
184
184
  */
185
185
  assistantArn: string | undefined;
186
186
  /**
@@ -244,7 +244,7 @@ export declare class ServiceQuotaExceededException extends __BaseException {
244
244
  constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
245
245
  }
246
246
  /**
247
- * <p>The input fails to satisfy the constraints specified by an AWS service.</p>
247
+ * <p>The input fails to satisfy the constraints specified by a service.</p>
248
248
  */
249
249
  export declare class ValidationException extends __BaseException {
250
250
  readonly name: "ValidationException";
@@ -344,7 +344,7 @@ export interface AssistantAssociationSummary {
344
344
  */
345
345
  assistantId: string | undefined;
346
346
  /**
347
- * <p>The Amazon Resource Name (ARN) of the Wisdom assistant</p>
347
+ * <p>The Amazon Resource Name (ARN) of the Wisdom assistant.</p>
348
348
  */
349
349
  assistantArn: string | undefined;
350
350
  /**
@@ -389,8 +389,7 @@ export declare namespace ListAssistantAssociationsResponse {
389
389
  */
390
390
  export interface ServerSideEncryptionConfiguration {
391
391
  /**
392
- * <p>The KMS key. For information about valid ID values, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id">Key identifiers (KeyId)</a> in the
393
- * <i>AWS Key Management Service Developer Guide</i>. </p>
392
+ * <p>The KMS key. For information about valid ID values, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id">Key identifiers (KeyId)</a>.</p>
394
393
  */
395
394
  kmsKeyId?: string;
396
395
  }
@@ -455,7 +454,7 @@ export interface AssistantData {
455
454
  */
456
455
  assistantId: string | undefined;
457
456
  /**
458
- * <p>The Amazon Resource Name (ARN) of the Wisdom assistant</p>
457
+ * <p>The Amazon Resource Name (ARN) of the Wisdom assistant.</p>
459
458
  */
460
459
  assistantArn: string | undefined;
461
460
  /**
@@ -583,7 +582,7 @@ export interface ContentReference {
583
582
  */
584
583
  knowledgeBaseArn?: string;
585
584
  /**
586
- * <p>The the identifier of the knowledge base.</p>
585
+ * <p>The identifier of the knowledge base.</p>
587
586
  */
588
587
  knowledgeBaseId?: string;
589
588
  /**
@@ -668,6 +667,9 @@ export declare enum RelevanceLevel {
668
667
  LOW = "LOW",
669
668
  MEDIUM = "MEDIUM"
670
669
  }
670
+ export declare enum RecommendationType {
671
+ KNOWLEDGE_CONTENT = "KNOWLEDGE_CONTENT"
672
+ }
671
673
  /**
672
674
  * <p>Information about the recommendation.</p>
673
675
  */
@@ -688,6 +690,10 @@ export interface RecommendationData {
688
690
  * <p>The relevance level of the recommendation.</p>
689
691
  */
690
692
  relevanceLevel?: RelevanceLevel | string;
693
+ /**
694
+ * <p>The type of recommendation.</p>
695
+ */
696
+ type?: RecommendationType | string;
691
697
  }
692
698
  export declare namespace RecommendationData {
693
699
  /**
@@ -695,11 +701,106 @@ export declare namespace RecommendationData {
695
701
  */
696
702
  const filterSensitiveLog: (obj: RecommendationData) => any;
697
703
  }
704
+ /**
705
+ * <p>Data associated with the QUERY RecommendationTriggerType.</p>
706
+ */
707
+ export interface QueryRecommendationTriggerData {
708
+ /**
709
+ * <p>The text associated with the recommendation trigger.</p>
710
+ */
711
+ text?: string;
712
+ }
713
+ export declare namespace QueryRecommendationTriggerData {
714
+ /**
715
+ * @internal
716
+ */
717
+ const filterSensitiveLog: (obj: QueryRecommendationTriggerData) => any;
718
+ }
719
+ /**
720
+ * <p>A union type containing information related to the trigger.</p>
721
+ */
722
+ export declare type RecommendationTriggerData = RecommendationTriggerData.QueryMember | RecommendationTriggerData.$UnknownMember;
723
+ export declare namespace RecommendationTriggerData {
724
+ /**
725
+ * <p>Data associated with the QUERY RecommendationTriggerType.</p>
726
+ */
727
+ interface QueryMember {
728
+ query: QueryRecommendationTriggerData;
729
+ $unknown?: never;
730
+ }
731
+ interface $UnknownMember {
732
+ query?: never;
733
+ $unknown: [string, any];
734
+ }
735
+ interface Visitor<T> {
736
+ query: (value: QueryRecommendationTriggerData) => T;
737
+ _: (name: string, value: any) => T;
738
+ }
739
+ const visit: <T>(value: RecommendationTriggerData, visitor: Visitor<T>) => T;
740
+ /**
741
+ * @internal
742
+ */
743
+ const filterSensitiveLog: (obj: RecommendationTriggerData) => any;
744
+ }
745
+ export declare enum RecommendationSourceType {
746
+ ISSUE_DETECTION = "ISSUE_DETECTION",
747
+ OTHER = "OTHER",
748
+ RULE_EVALUATION = "RULE_EVALUATION"
749
+ }
750
+ export declare enum RecommendationTriggerType {
751
+ QUERY = "QUERY"
752
+ }
753
+ /**
754
+ * <p>A recommendation trigger provides context on the event that produced the referenced recommendations.
755
+ * Recommendations are only referenced in <code>recommendationIds</code> by a single RecommendationTrigger.</p>
756
+ */
757
+ export interface RecommendationTrigger {
758
+ /**
759
+ * <p>The identifier of the recommendation trigger.</p>
760
+ */
761
+ id: string | undefined;
762
+ /**
763
+ * <p>The type of recommendation trigger.</p>
764
+ */
765
+ type: RecommendationTriggerType | string | undefined;
766
+ /**
767
+ * <p>The source of the recommendation trigger.</p>
768
+ * <ul>
769
+ * <li>
770
+ * <p>ISSUE_DETECTION: The corresponding recommendations were triggered
771
+ * by a Contact Lens issue.</p>
772
+ * </li>
773
+ * <li>
774
+ * <p>RULE_EVALUATION: The corresponding recommendations were triggered
775
+ * by a Contact Lens rule.</p>
776
+ * </li>
777
+ * </ul>
778
+ */
779
+ source: RecommendationSourceType | string | undefined;
780
+ /**
781
+ * <p>A union type containing information related to the trigger.</p>
782
+ */
783
+ data: RecommendationTriggerData | undefined;
784
+ /**
785
+ * <p>The identifiers of the recommendations.</p>
786
+ */
787
+ recommendationIds: string[] | undefined;
788
+ }
789
+ export declare namespace RecommendationTrigger {
790
+ /**
791
+ * @internal
792
+ */
793
+ const filterSensitiveLog: (obj: RecommendationTrigger) => any;
794
+ }
698
795
  export interface GetRecommendationsResponse {
699
796
  /**
700
797
  * <p>The recommendations.</p>
701
798
  */
702
799
  recommendations: RecommendationData[] | undefined;
800
+ /**
801
+ * <p>The triggers corresponding to recommendations.</p>
802
+ */
803
+ triggers?: RecommendationTrigger[];
703
804
  }
704
805
  export declare namespace GetRecommendationsResponse {
705
806
  /**
@@ -733,7 +834,7 @@ export interface AssistantSummary {
733
834
  */
734
835
  assistantId: string | undefined;
735
836
  /**
736
- * <p>The Amazon Resource Name (ARN) of the Wisdom assistant</p>
837
+ * <p>The Amazon Resource Name (ARN) of the Wisdom assistant.</p>
737
838
  */
738
839
  assistantArn: string | undefined;
739
840
  /**
@@ -990,7 +1091,7 @@ export interface SessionSummary {
990
1091
  */
991
1092
  assistantId: string | undefined;
992
1093
  /**
993
- * <p>The Amazon Resource Name (ARN) of the Wisdom assistant</p>
1094
+ * <p>The Amazon Resource Name (ARN) of the Wisdom assistant.</p>
994
1095
  */
995
1096
  assistantArn: string | undefined;
996
1097
  }
@@ -1122,7 +1223,7 @@ export declare namespace GetSessionResponse {
1122
1223
  }
1123
1224
  export interface CreateContentRequest {
1124
1225
  /**
1125
- * <p>The the identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
1226
+ * <p>The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
1126
1227
  */
1127
1228
  knowledgeBaseId: string | undefined;
1128
1229
  /**
@@ -1195,7 +1296,7 @@ export interface ContentData {
1195
1296
  */
1196
1297
  knowledgeBaseArn: string | undefined;
1197
1298
  /**
1198
- * <p>The the identifier of the knowledge base.</p>
1299
+ * <p>The identifier of the knowledge base.</p>
1199
1300
  */
1200
1301
  knowledgeBaseId: string | undefined;
1201
1302
  /**
@@ -1264,7 +1365,7 @@ export declare namespace CreateContentResponse {
1264
1365
  }
1265
1366
  export interface DeleteContentRequest {
1266
1367
  /**
1267
- * <p>The the identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
1368
+ * <p>The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
1268
1369
  */
1269
1370
  knowledgeBaseId: string | undefined;
1270
1371
  /**
@@ -1292,7 +1393,7 @@ export interface GetContentRequest {
1292
1393
  */
1293
1394
  contentId: string | undefined;
1294
1395
  /**
1295
- * <p>The the identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
1396
+ * <p>The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
1296
1397
  */
1297
1398
  knowledgeBaseId: string | undefined;
1298
1399
  }
@@ -1320,7 +1421,7 @@ export interface GetContentSummaryRequest {
1320
1421
  */
1321
1422
  contentId: string | undefined;
1322
1423
  /**
1323
- * <p>The the identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
1424
+ * <p>The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
1324
1425
  */
1325
1426
  knowledgeBaseId: string | undefined;
1326
1427
  }
@@ -1347,7 +1448,7 @@ export interface ContentSummary {
1347
1448
  */
1348
1449
  knowledgeBaseArn: string | undefined;
1349
1450
  /**
1350
- * <p>The the identifier of the knowledge base.</p>
1451
+ * <p>The identifier of the knowledge base.</p>
1351
1452
  */
1352
1453
  knowledgeBaseId: string | undefined;
1353
1454
  /**
@@ -1413,7 +1514,7 @@ export interface ListContentsRequest {
1413
1514
  */
1414
1515
  maxResults?: number;
1415
1516
  /**
1416
- * <p>The the identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
1517
+ * <p>The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
1417
1518
  */
1418
1519
  knowledgeBaseId: string | undefined;
1419
1520
  }
@@ -1453,7 +1554,7 @@ export declare class PreconditionFailedException extends __BaseException {
1453
1554
  }
1454
1555
  export interface UpdateContentRequest {
1455
1556
  /**
1456
- * <p>The the identifier of the knowledge base. Can be either the ID or the ARN</p>
1557
+ * <p>The identifier of the knowledge base. Can be either the ID or the ARN</p>
1457
1558
  */
1458
1559
  knowledgeBaseId: string | undefined;
1459
1560
  /**
@@ -1634,7 +1735,7 @@ export declare enum KnowledgeBaseStatus {
1634
1735
  */
1635
1736
  export interface KnowledgeBaseData {
1636
1737
  /**
1637
- * <p>The the identifier of the knowledge base.</p>
1738
+ * <p>The identifier of the knowledge base.</p>
1638
1739
  */
1639
1740
  knowledgeBaseId: string | undefined;
1640
1741
  /**
@@ -1721,7 +1822,7 @@ export declare namespace DeleteKnowledgeBaseResponse {
1721
1822
  }
1722
1823
  export interface GetKnowledgeBaseRequest {
1723
1824
  /**
1724
- * <p>The the identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
1825
+ * <p>The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
1725
1826
  */
1726
1827
  knowledgeBaseId: string | undefined;
1727
1828
  }
@@ -1765,7 +1866,7 @@ export declare namespace ListKnowledgeBasesRequest {
1765
1866
  */
1766
1867
  export interface KnowledgeBaseSummary {
1767
1868
  /**
1768
- * <p>The the identifier of the knowledge base.</p>
1869
+ * <p>The identifier of the knowledge base.</p>
1769
1870
  */
1770
1871
  knowledgeBaseId: string | undefined;
1771
1872
  /**
@@ -1785,7 +1886,7 @@ export interface KnowledgeBaseSummary {
1785
1886
  */
1786
1887
  status: KnowledgeBaseStatus | string | undefined;
1787
1888
  /**
1788
- * <p>[KEVIN]</p>
1889
+ * <p>Configuration information about the external data source.</p>
1789
1890
  */
1790
1891
  sourceConfiguration?: SourceConfiguration;
1791
1892
  /**
@@ -1831,7 +1932,7 @@ export declare namespace ListKnowledgeBasesResponse {
1831
1932
  }
1832
1933
  export interface RemoveKnowledgeBaseTemplateUriRequest {
1833
1934
  /**
1834
- * <p>The the identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
1935
+ * <p>The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
1835
1936
  */
1836
1937
  knowledgeBaseId: string | undefined;
1837
1938
  }
@@ -1860,7 +1961,7 @@ export interface SearchContentRequest {
1860
1961
  */
1861
1962
  maxResults?: number;
1862
1963
  /**
1863
- * <p>The the identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
1964
+ * <p>The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
1864
1965
  */
1865
1966
  knowledgeBaseId: string | undefined;
1866
1967
  /**
@@ -1892,7 +1993,7 @@ export declare namespace SearchContentResponse {
1892
1993
  }
1893
1994
  export interface StartContentUploadRequest {
1894
1995
  /**
1895
- * <p>The the identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
1996
+ * <p>The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
1896
1997
  */
1897
1998
  knowledgeBaseId: string | undefined;
1898
1999
  /**
@@ -1934,7 +2035,7 @@ export declare namespace StartContentUploadResponse {
1934
2035
  }
1935
2036
  export interface UpdateKnowledgeBaseTemplateUriRequest {
1936
2037
  /**
1937
- * <p>The the identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
2038
+ * <p>The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
1938
2039
  */
1939
2040
  knowledgeBaseId: string | undefined;
1940
2041
  /**
@@ -408,6 +408,9 @@ export declare enum RelevanceLevel {
408
408
  LOW = "LOW",
409
409
  MEDIUM = "MEDIUM"
410
410
  }
411
+ export declare enum RecommendationType {
412
+ KNOWLEDGE_CONTENT = "KNOWLEDGE_CONTENT"
413
+ }
411
414
 
412
415
  export interface RecommendationData {
413
416
 
@@ -418,14 +421,75 @@ export interface RecommendationData {
418
421
  relevanceScore?: number;
419
422
 
420
423
  relevanceLevel?: RelevanceLevel | string;
424
+
425
+ type?: RecommendationType | string;
421
426
  }
422
427
  export declare namespace RecommendationData {
423
428
 
424
429
  const filterSensitiveLog: (obj: RecommendationData) => any;
425
430
  }
431
+
432
+ export interface QueryRecommendationTriggerData {
433
+
434
+ text?: string;
435
+ }
436
+ export declare namespace QueryRecommendationTriggerData {
437
+
438
+ const filterSensitiveLog: (obj: QueryRecommendationTriggerData) => any;
439
+ }
440
+
441
+ export declare type RecommendationTriggerData = RecommendationTriggerData.QueryMember | RecommendationTriggerData.$UnknownMember;
442
+ export declare namespace RecommendationTriggerData {
443
+
444
+ interface QueryMember {
445
+ query: QueryRecommendationTriggerData;
446
+ $unknown?: never;
447
+ }
448
+ interface $UnknownMember {
449
+ query?: never;
450
+ $unknown: [
451
+ string,
452
+ any
453
+ ];
454
+ }
455
+ interface Visitor<T> {
456
+ query: (value: QueryRecommendationTriggerData) => T;
457
+ _: (name: string, value: any) => T;
458
+ }
459
+ const visit: <T>(value: RecommendationTriggerData, visitor: Visitor<T>) => T;
460
+
461
+ const filterSensitiveLog: (obj: RecommendationTriggerData) => any;
462
+ }
463
+ export declare enum RecommendationSourceType {
464
+ ISSUE_DETECTION = "ISSUE_DETECTION",
465
+ OTHER = "OTHER",
466
+ RULE_EVALUATION = "RULE_EVALUATION"
467
+ }
468
+ export declare enum RecommendationTriggerType {
469
+ QUERY = "QUERY"
470
+ }
471
+
472
+ export interface RecommendationTrigger {
473
+
474
+ id: string | undefined;
475
+
476
+ type: RecommendationTriggerType | string | undefined;
477
+
478
+ source: RecommendationSourceType | string | undefined;
479
+
480
+ data: RecommendationTriggerData | undefined;
481
+
482
+ recommendationIds: string[] | undefined;
483
+ }
484
+ export declare namespace RecommendationTrigger {
485
+
486
+ const filterSensitiveLog: (obj: RecommendationTrigger) => any;
487
+ }
426
488
  export interface GetRecommendationsResponse {
427
489
 
428
490
  recommendations: RecommendationData[] | undefined;
491
+
492
+ triggers?: RecommendationTrigger[];
429
493
  }
430
494
  export declare namespace GetRecommendationsResponse {
431
495
 
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.67.0",
4
+ "version": "3.75.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",
@@ -18,34 +18,34 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.67.0",
22
- "@aws-sdk/config-resolver": "3.58.0",
23
- "@aws-sdk/credential-provider-node": "3.67.0",
21
+ "@aws-sdk/client-sts": "3.75.0",
22
+ "@aws-sdk/config-resolver": "3.75.0",
23
+ "@aws-sdk/credential-provider-node": "3.75.0",
24
24
  "@aws-sdk/fetch-http-handler": "3.58.0",
25
25
  "@aws-sdk/hash-node": "3.55.0",
26
26
  "@aws-sdk/invalid-dependency": "3.55.0",
27
27
  "@aws-sdk/middleware-content-length": "3.58.0",
28
28
  "@aws-sdk/middleware-host-header": "3.58.0",
29
29
  "@aws-sdk/middleware-logger": "3.55.0",
30
- "@aws-sdk/middleware-retry": "3.58.0",
30
+ "@aws-sdk/middleware-retry": "3.75.0",
31
31
  "@aws-sdk/middleware-serde": "3.55.0",
32
32
  "@aws-sdk/middleware-signing": "3.58.0",
33
33
  "@aws-sdk/middleware-stack": "3.55.0",
34
34
  "@aws-sdk/middleware-user-agent": "3.58.0",
35
- "@aws-sdk/node-config-provider": "3.58.0",
36
- "@aws-sdk/node-http-handler": "3.58.0",
35
+ "@aws-sdk/node-config-provider": "3.75.0",
36
+ "@aws-sdk/node-http-handler": "3.74.0",
37
37
  "@aws-sdk/protocol-http": "3.58.0",
38
- "@aws-sdk/smithy-client": "3.55.0",
38
+ "@aws-sdk/smithy-client": "3.72.0",
39
39
  "@aws-sdk/types": "3.55.0",
40
40
  "@aws-sdk/url-parser": "3.55.0",
41
41
  "@aws-sdk/util-base64-browser": "3.58.0",
42
42
  "@aws-sdk/util-base64-node": "3.55.0",
43
43
  "@aws-sdk/util-body-length-browser": "3.55.0",
44
44
  "@aws-sdk/util-body-length-node": "3.55.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.55.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.58.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.72.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.75.0",
47
47
  "@aws-sdk/util-user-agent-browser": "3.58.0",
48
- "@aws-sdk/util-user-agent-node": "3.58.0",
48
+ "@aws-sdk/util-user-agent-node": "3.75.0",
49
49
  "@aws-sdk/util-utf8-browser": "3.55.0",
50
50
  "@aws-sdk/util-utf8-node": "3.55.0",
51
51
  "tslib": "^2.3.1",