aws-sdk-connectwisdomservice 1.5.0 → 1.8.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 807ee923fc2152ebbd665cc7e646ae6f6f287a489adcf48d6ddea72b4c2896dd
4
- data.tar.gz: f6044d77e5ad1874031853ca3bb552a890ae654c68f89ddef310b4882c4997fc
3
+ metadata.gz: 06dda9d1eaf52bb60f99fa3240b6fb51da383afdf684df37e8887b32982dd62c
4
+ data.tar.gz: 3814418e1b39057947e5ae7dd93b6768ccf12516cc78658a4c37c708fba5621b
5
5
  SHA512:
6
- metadata.gz: 653e4a71f7f5061fb5d9103aac27570cf84755bc728f7e2920a6f4ec187b68980684eed3278d66ca0281c25c2a4cf6bd44491b2e47a9e6f6da6c988ffd63fb0f
7
- data.tar.gz: 1345cae85f0655e7a75bc39ea7db617c53561706d0cbe0eb050898a780a62a6755dcd6281e65cceecd9b6cf6ad59c9ef14f7a41a575b55d4897eb02cad0ceb23
6
+ metadata.gz: 25b42ec394c96683df1b8c3a9674512115e6aca39aac1ff15490bd05a2e6c9a8e8016e6ffd0c31e96ef63b7659168aea154fa2a8f4969f3d2fa9307f70852600
7
+ data.tar.gz: 3a0affa9889f1435171a5d3512570a4cdc41384a272fc2a6992032a1336df85fb0742b9f7d00854a2db79dfb0d60867e0fe5fb0e01a04b898c7fcfd9300025a3
data/CHANGELOG.md CHANGED
@@ -1,6 +1,21 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.8.0 (2022-08-15)
5
+ ------------------
6
+
7
+ * Feature - This release introduces a new API PutFeedback that allows submitting feedback to Wisdom on content relevance.
8
+
9
+ 1.7.0 (2022-04-21)
10
+ ------------------
11
+
12
+ * Feature - This release updates the GetRecommendations API to include a trigger event list for classifying and grouping recommendations.
13
+
14
+ 1.6.0 (2022-02-24)
15
+ ------------------
16
+
17
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
18
+
4
19
  1.5.0 (2022-02-03)
5
20
  ------------------
6
21
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.5.0
1
+ 1.8.0
@@ -27,6 +27,7 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
27
27
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
28
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
29
  require 'aws-sdk-core/plugins/http_checksum.rb'
30
+ require 'aws-sdk-core/plugins/checksum_algorithm.rb'
30
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
31
32
  require 'aws-sdk-core/plugins/recursion_detection.rb'
32
33
  require 'aws-sdk-core/plugins/signature_v4.rb'
@@ -75,6 +76,7 @@ module Aws::ConnectWisdomService
75
76
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
76
77
  add_plugin(Aws::Plugins::TransferEncoding)
77
78
  add_plugin(Aws::Plugins::HttpChecksum)
79
+ add_plugin(Aws::Plugins::ChecksumAlgorithm)
78
80
  add_plugin(Aws::Plugins::DefaultsMode)
79
81
  add_plugin(Aws::Plugins::RecursionDetection)
80
82
  add_plugin(Aws::Plugins::SignatureV4)
@@ -491,8 +493,8 @@ module Aws::ConnectWisdomService
491
493
  # not need to pass this option.**
492
494
  #
493
495
  # @option params [required, String] :knowledge_base_id
494
- # The the identifier of the knowledge base. Can be either the ID or the
495
- # ARN. URLs cannot contain the ARN.
496
+ # The identifier of the knowledge base. Can be either the ID or the ARN.
497
+ # URLs cannot contain the ARN.
496
498
  #
497
499
  # @option params [Hash<String,String>] :metadata
498
500
  # A key/value map to store attributes without affecting tagging or
@@ -792,8 +794,8 @@ module Aws::ConnectWisdomService
792
794
  # cannot contain the ARN.
793
795
  #
794
796
  # @option params [required, String] :knowledge_base_id
795
- # The the identifier of the knowledge base. Can be either the ID or the
796
- # ARN. URLs cannot contain the ARN.
797
+ # The identifier of the knowledge base. Can be either the ID or the ARN.
798
+ # URLs cannot contain the ARN.
797
799
  #
798
800
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
799
801
  #
@@ -938,8 +940,8 @@ module Aws::ConnectWisdomService
938
940
  # cannot contain the ARN.
939
941
  #
940
942
  # @option params [required, String] :knowledge_base_id
941
- # The the identifier of the knowledge base. Can be either the ID or the
942
- # ARN. URLs cannot contain the ARN.
943
+ # The identifier of the knowledge base. Can be either the ID or the ARN.
944
+ # URLs cannot contain the ARN.
943
945
  #
944
946
  # @return [Types::GetContentResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
945
947
  #
@@ -987,8 +989,8 @@ module Aws::ConnectWisdomService
987
989
  # cannot contain the ARN.
988
990
  #
989
991
  # @option params [required, String] :knowledge_base_id
990
- # The the identifier of the knowledge base. Can be either the ID or the
991
- # ARN. URLs cannot contain the ARN.
992
+ # The identifier of the knowledge base. Can be either the ID or the ARN.
993
+ # URLs cannot contain the ARN.
992
994
  #
993
995
  # @return [Types::GetContentSummaryResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
994
996
  #
@@ -1029,8 +1031,8 @@ module Aws::ConnectWisdomService
1029
1031
  # Retrieves information about the knowledge base.
1030
1032
  #
1031
1033
  # @option params [required, String] :knowledge_base_id
1032
- # The the identifier of the knowledge base. Can be either the ID or the
1033
- # ARN. URLs cannot contain the ARN.
1034
+ # The identifier of the knowledge base. Can be either the ID or the ARN.
1035
+ # URLs cannot contain the ARN.
1034
1036
  #
1035
1037
  # @return [Types::GetKnowledgeBaseResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1036
1038
  #
@@ -1102,6 +1104,7 @@ module Aws::ConnectWisdomService
1102
1104
  # @return [Types::GetRecommendationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1103
1105
  #
1104
1106
  # * {Types::GetRecommendationsResponse#recommendations #recommendations} => Array&lt;Types::RecommendationData&gt;
1107
+ # * {Types::GetRecommendationsResponse#triggers #triggers} => Array&lt;Types::RecommendationTrigger&gt;
1105
1108
  #
1106
1109
  # @example Request syntax with placeholder values
1107
1110
  #
@@ -1130,6 +1133,14 @@ module Aws::ConnectWisdomService
1130
1133
  # resp.recommendations[0].recommendation_id #=> String
1131
1134
  # resp.recommendations[0].relevance_level #=> String, one of "HIGH", "MEDIUM", "LOW"
1132
1135
  # resp.recommendations[0].relevance_score #=> Float
1136
+ # resp.recommendations[0].type #=> String, one of "KNOWLEDGE_CONTENT"
1137
+ # resp.triggers #=> Array
1138
+ # resp.triggers[0].data.query.text #=> String
1139
+ # resp.triggers[0].id #=> String
1140
+ # resp.triggers[0].recommendation_ids #=> Array
1141
+ # resp.triggers[0].recommendation_ids[0] #=> String
1142
+ # resp.triggers[0].source #=> String, one of "ISSUE_DETECTION", "RULE_EVALUATION", "OTHER"
1143
+ # resp.triggers[0].type #=> String, one of "QUERY"
1133
1144
  #
1134
1145
  # @see http://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/GetRecommendations AWS API Documentation
1135
1146
  #
@@ -1281,8 +1292,8 @@ module Aws::ConnectWisdomService
1281
1292
  # Lists the content.
1282
1293
  #
1283
1294
  # @option params [required, String] :knowledge_base_id
1284
- # The the identifier of the knowledge base. Can be either the ID or the
1285
- # ARN. URLs cannot contain the ARN.
1295
+ # The identifier of the knowledge base. Can be either the ID or the ARN.
1296
+ # URLs cannot contain the ARN.
1286
1297
  #
1287
1298
  # @option params [Integer] :max_results
1288
1299
  # The maximum number of results to return per page.
@@ -1464,6 +1475,66 @@ module Aws::ConnectWisdomService
1464
1475
  req.send_request(options)
1465
1476
  end
1466
1477
 
1478
+ # Submits feedback to Wisdom. The feedback is used to improve future
1479
+ # recommendations from [GetRecommendations][1] or results from
1480
+ # [QueryAssistant][2]. Feedback can be resubmitted up to 6 hours after
1481
+ # submission.
1482
+ #
1483
+ #
1484
+ #
1485
+ # [1]: https://docs.aws.amazon.com/wisdom/latest/APIReference/API_GetRecommendations.html
1486
+ # [2]: https://docs.aws.amazon.com/wisdom/latest/APIReference/API_QueryAssistant.html
1487
+ #
1488
+ # @option params [required, String] :assistant_id
1489
+ # The identifier of the Wisdom assistant. Can be either the ID or the
1490
+ # ARN. URLs cannot contain the ARN.
1491
+ #
1492
+ # @option params [required, Types::FeedbackData] :feedback
1493
+ # The feedback.
1494
+ #
1495
+ # @option params [required, String] :target_id
1496
+ # The identifier of a recommendation. or The identifier of the result
1497
+ # data.
1498
+ #
1499
+ # @option params [required, String] :target_type
1500
+ # The type of the targetId for which The feedback. is targeted.
1501
+ #
1502
+ # @return [Types::PutFeedbackResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1503
+ #
1504
+ # * {Types::PutFeedbackResponse#assistant_arn #assistant_arn} => String
1505
+ # * {Types::PutFeedbackResponse#assistant_id #assistant_id} => String
1506
+ # * {Types::PutFeedbackResponse#feedback #feedback} => Types::FeedbackData
1507
+ # * {Types::PutFeedbackResponse#target_id #target_id} => String
1508
+ # * {Types::PutFeedbackResponse#target_type #target_type} => String
1509
+ #
1510
+ # @example Request syntax with placeholder values
1511
+ #
1512
+ # resp = client.put_feedback({
1513
+ # assistant_id: "UuidOrArn", # required
1514
+ # feedback: { # required
1515
+ # relevance: "HELPFUL", # required, accepts HELPFUL, NOT_HELPFUL
1516
+ # },
1517
+ # target_id: "String", # required
1518
+ # target_type: "RECOMMENDATION", # required, accepts RECOMMENDATION, RESULT
1519
+ # })
1520
+ #
1521
+ # @example Response structure
1522
+ #
1523
+ # resp.assistant_arn #=> String
1524
+ # resp.assistant_id #=> String
1525
+ # resp.feedback.relevance #=> String, one of "HELPFUL", "NOT_HELPFUL"
1526
+ # resp.target_id #=> String
1527
+ # resp.target_type #=> String, one of "RECOMMENDATION", "RESULT"
1528
+ #
1529
+ # @see http://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/PutFeedback AWS API Documentation
1530
+ #
1531
+ # @overload put_feedback(params = {})
1532
+ # @param [Hash] params ({})
1533
+ def put_feedback(params = {}, options = {})
1534
+ req = build_request(:put_feedback, params)
1535
+ req.send_request(options)
1536
+ end
1537
+
1467
1538
  # Performs a manual search against the specified assistant. To retrieve
1468
1539
  # recommendations for an assistant, use [GetRecommendations][1].
1469
1540
  #
@@ -1533,8 +1604,8 @@ module Aws::ConnectWisdomService
1533
1604
  # Removes a URI template from a knowledge base.
1534
1605
  #
1535
1606
  # @option params [required, String] :knowledge_base_id
1536
- # The the identifier of the knowledge base. Can be either the ID or the
1537
- # ARN. URLs cannot contain the ARN.
1607
+ # The identifier of the knowledge base. Can be either the ID or the ARN.
1608
+ # URLs cannot contain the ARN.
1538
1609
  #
1539
1610
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1540
1611
  #
@@ -1557,8 +1628,8 @@ module Aws::ConnectWisdomService
1557
1628
  # a specific content resource by its name.
1558
1629
  #
1559
1630
  # @option params [required, String] :knowledge_base_id
1560
- # The the identifier of the knowledge base. Can be either the ID or the
1561
- # ARN. URLs cannot contain the ARN.
1631
+ # The identifier of the knowledge base. Can be either the ID or the ARN.
1632
+ # URLs cannot contain the ARN.
1562
1633
  #
1563
1634
  # @option params [Integer] :max_results
1564
1635
  # The maximum number of results to return per page.
@@ -1697,8 +1768,8 @@ module Aws::ConnectWisdomService
1697
1768
  # The type of content to upload.
1698
1769
  #
1699
1770
  # @option params [required, String] :knowledge_base_id
1700
- # The the identifier of the knowledge base. Can be either the ID or the
1701
- # ARN. URLs cannot contain the ARN.
1771
+ # The identifier of the knowledge base. Can be either the ID or the ARN.
1772
+ # URLs cannot contain the ARN.
1702
1773
  #
1703
1774
  # @return [Types::StartContentUploadResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1704
1775
  #
@@ -1792,8 +1863,7 @@ module Aws::ConnectWisdomService
1792
1863
  # cannot contain the ARN.
1793
1864
  #
1794
1865
  # @option params [required, String] :knowledge_base_id
1795
- # The the identifier of the knowledge base. Can be either the ID or the
1796
- # ARN
1866
+ # The identifier of the knowledge base. Can be either the ID or the ARN
1797
1867
  #
1798
1868
  # @option params [Hash<String,String>] :metadata
1799
1869
  # A key/value map to store attributes without affecting tagging or
@@ -1883,8 +1953,8 @@ module Aws::ConnectWisdomService
1883
1953
  # `https://myInstanceName.lightning.force.com/lightning/r/Knowledge__kav/*$\{Id\}*/view`.
1884
1954
  #
1885
1955
  # @option params [required, String] :knowledge_base_id
1886
- # The the identifier of the knowledge base. Can be either the ID or the
1887
- # ARN. URLs cannot contain the ARN.
1956
+ # The identifier of the knowledge base. Can be either the ID or the ARN.
1957
+ # URLs cannot contain the ARN.
1888
1958
  #
1889
1959
  # @option params [required, String] :template_uri
1890
1960
  # The template URI to update.
@@ -1939,7 +2009,7 @@ module Aws::ConnectWisdomService
1939
2009
  params: params,
1940
2010
  config: config)
1941
2011
  context[:gem_name] = 'aws-sdk-connectwisdomservice'
1942
- context[:gem_version] = '1.5.0'
2012
+ context[:gem_version] = '1.8.0'
1943
2013
  Seahorse::Client::Request.new(handlers, context)
1944
2014
  end
1945
2015
 
@@ -59,6 +59,7 @@ module Aws::ConnectWisdomService
59
59
  Description = Shapes::StringShape.new(name: 'Description')
60
60
  Document = Shapes::StructureShape.new(name: 'Document')
61
61
  DocumentText = Shapes::StructureShape.new(name: 'DocumentText')
62
+ FeedbackData = Shapes::StructureShape.new(name: 'FeedbackData')
62
63
  Filter = Shapes::StructureShape.new(name: 'Filter')
63
64
  FilterField = Shapes::StringShape.new(name: 'FilterField')
64
65
  FilterList = Shapes::ListShape.new(name: 'FilterList')
@@ -109,13 +110,23 @@ module Aws::ConnectWisdomService
109
110
  NotifyRecommendationsReceivedResponse = Shapes::StructureShape.new(name: 'NotifyRecommendationsReceivedResponse')
110
111
  ObjectFieldsList = Shapes::ListShape.new(name: 'ObjectFieldsList')
111
112
  PreconditionFailedException = Shapes::StructureShape.new(name: 'PreconditionFailedException')
113
+ PutFeedbackRequest = Shapes::StructureShape.new(name: 'PutFeedbackRequest')
114
+ PutFeedbackResponse = Shapes::StructureShape.new(name: 'PutFeedbackResponse')
112
115
  QueryAssistantRequest = Shapes::StructureShape.new(name: 'QueryAssistantRequest')
113
116
  QueryAssistantResponse = Shapes::StructureShape.new(name: 'QueryAssistantResponse')
117
+ QueryRecommendationTriggerData = Shapes::StructureShape.new(name: 'QueryRecommendationTriggerData')
114
118
  QueryResultsList = Shapes::ListShape.new(name: 'QueryResultsList')
115
119
  QueryText = Shapes::StringShape.new(name: 'QueryText')
116
120
  RecommendationData = Shapes::StructureShape.new(name: 'RecommendationData')
117
121
  RecommendationIdList = Shapes::ListShape.new(name: 'RecommendationIdList')
118
122
  RecommendationList = Shapes::ListShape.new(name: 'RecommendationList')
123
+ RecommendationSourceType = Shapes::StringShape.new(name: 'RecommendationSourceType')
124
+ RecommendationTrigger = Shapes::StructureShape.new(name: 'RecommendationTrigger')
125
+ RecommendationTriggerData = Shapes::UnionShape.new(name: 'RecommendationTriggerData')
126
+ RecommendationTriggerList = Shapes::ListShape.new(name: 'RecommendationTriggerList')
127
+ RecommendationTriggerType = Shapes::StringShape.new(name: 'RecommendationTriggerType')
128
+ RecommendationType = Shapes::StringShape.new(name: 'RecommendationType')
129
+ Relevance = Shapes::StringShape.new(name: 'Relevance')
119
130
  RelevanceLevel = Shapes::StringShape.new(name: 'RelevanceLevel')
120
131
  RelevanceScore = Shapes::FloatShape.new(name: 'RelevanceScore')
121
132
  RemoveKnowledgeBaseTemplateUriRequest = Shapes::StructureShape.new(name: 'RemoveKnowledgeBaseTemplateUriRequest')
@@ -128,6 +139,7 @@ module Aws::ConnectWisdomService
128
139
  SearchExpression = Shapes::StructureShape.new(name: 'SearchExpression')
129
140
  SearchSessionsRequest = Shapes::StructureShape.new(name: 'SearchSessionsRequest')
130
141
  SearchSessionsResponse = Shapes::StructureShape.new(name: 'SearchSessionsResponse')
142
+ SensitiveString = Shapes::StringShape.new(name: 'SensitiveString')
131
143
  ServerSideEncryptionConfiguration = Shapes::StructureShape.new(name: 'ServerSideEncryptionConfiguration')
132
144
  ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
133
145
  SessionData = Shapes::StructureShape.new(name: 'SessionData')
@@ -137,9 +149,6 @@ module Aws::ConnectWisdomService
137
149
  StartContentUploadRequest = Shapes::StructureShape.new(name: 'StartContentUploadRequest')
138
150
  StartContentUploadResponse = Shapes::StructureShape.new(name: 'StartContentUploadResponse')
139
151
  String = Shapes::StringShape.new(name: 'String')
140
- SyntheticContentDataUrl = Shapes::StringShape.new(name: 'SyntheticContentDataUrl')
141
- SyntheticDocumentTextString = Shapes::StringShape.new(name: 'SyntheticDocumentTextString')
142
- SyntheticStartContentUploadResponseUrl = Shapes::StringShape.new(name: 'SyntheticStartContentUploadResponseUrl')
143
152
  SyntheticTimestamp_epoch_seconds = Shapes::TimestampShape.new(name: 'SyntheticTimestamp_epoch_seconds', timestampFormat: "unixTimestamp")
144
153
  TagKey = Shapes::StringShape.new(name: 'TagKey')
145
154
  TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
@@ -147,6 +156,7 @@ module Aws::ConnectWisdomService
147
156
  TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
148
157
  TagValue = Shapes::StringShape.new(name: 'TagValue')
149
158
  Tags = Shapes::MapShape.new(name: 'Tags')
159
+ TargetType = Shapes::StringShape.new(name: 'TargetType')
150
160
  TooManyTagsException = Shapes::StructureShape.new(name: 'TooManyTagsException')
151
161
  UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
152
162
  UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
@@ -155,6 +165,7 @@ module Aws::ConnectWisdomService
155
165
  UpdateKnowledgeBaseTemplateUriRequest = Shapes::StructureShape.new(name: 'UpdateKnowledgeBaseTemplateUriRequest')
156
166
  UpdateKnowledgeBaseTemplateUriResponse = Shapes::StructureShape.new(name: 'UpdateKnowledgeBaseTemplateUriResponse')
157
167
  Uri = Shapes::StringShape.new(name: 'Uri')
168
+ Url = Shapes::StringShape.new(name: 'Url')
158
169
  Uuid = Shapes::StringShape.new(name: 'Uuid')
159
170
  UuidOrArn = Shapes::StringShape.new(name: 'UuidOrArn')
160
171
  ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
@@ -236,7 +247,7 @@ module Aws::ConnectWisdomService
236
247
  ContentData.add_member(:status, Shapes::ShapeRef.new(shape: ContentStatus, required: true, location_name: "status"))
237
248
  ContentData.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
238
249
  ContentData.add_member(:title, Shapes::ShapeRef.new(shape: ContentTitle, required: true, location_name: "title"))
239
- ContentData.add_member(:url, Shapes::ShapeRef.new(shape: SyntheticContentDataUrl, required: true, location_name: "url"))
250
+ ContentData.add_member(:url, Shapes::ShapeRef.new(shape: Url, required: true, location_name: "url"))
240
251
  ContentData.add_member(:url_expiry, Shapes::ShapeRef.new(shape: SyntheticTimestamp_epoch_seconds, required: true, location_name: "urlExpiry"))
241
252
  ContentData.struct_class = Types::ContentData
242
253
 
@@ -349,9 +360,12 @@ module Aws::ConnectWisdomService
349
360
  Document.struct_class = Types::Document
350
361
 
351
362
  DocumentText.add_member(:highlights, Shapes::ShapeRef.new(shape: Highlights, location_name: "highlights"))
352
- DocumentText.add_member(:text, Shapes::ShapeRef.new(shape: SyntheticDocumentTextString, location_name: "text"))
363
+ DocumentText.add_member(:text, Shapes::ShapeRef.new(shape: SensitiveString, location_name: "text"))
353
364
  DocumentText.struct_class = Types::DocumentText
354
365
 
366
+ FeedbackData.add_member(:relevance, Shapes::ShapeRef.new(shape: Relevance, required: true, location_name: "relevance"))
367
+ FeedbackData.struct_class = Types::FeedbackData
368
+
355
369
  Filter.add_member(:field, Shapes::ShapeRef.new(shape: FilterField, required: true, location_name: "field"))
356
370
  Filter.add_member(:operator, Shapes::ShapeRef.new(shape: FilterOperator, required: true, location_name: "operator"))
357
371
  Filter.add_member(:value, Shapes::ShapeRef.new(shape: NonEmptyString, required: true, location_name: "value"))
@@ -399,6 +413,7 @@ module Aws::ConnectWisdomService
399
413
  GetRecommendationsRequest.struct_class = Types::GetRecommendationsRequest
400
414
 
401
415
  GetRecommendationsResponse.add_member(:recommendations, Shapes::ShapeRef.new(shape: RecommendationList, required: true, location_name: "recommendations"))
416
+ GetRecommendationsResponse.add_member(:triggers, Shapes::ShapeRef.new(shape: RecommendationTriggerList, location_name: "triggers"))
402
417
  GetRecommendationsResponse.struct_class = Types::GetRecommendationsResponse
403
418
 
404
419
  GetSessionRequest.add_member(:assistant_id, Shapes::ShapeRef.new(shape: UuidOrArn, required: true, location: "uri", location_name: "assistantId"))
@@ -508,6 +523,19 @@ module Aws::ConnectWisdomService
508
523
  PreconditionFailedException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
509
524
  PreconditionFailedException.struct_class = Types::PreconditionFailedException
510
525
 
526
+ PutFeedbackRequest.add_member(:assistant_id, Shapes::ShapeRef.new(shape: UuidOrArn, required: true, location: "uri", location_name: "assistantId"))
527
+ PutFeedbackRequest.add_member(:feedback, Shapes::ShapeRef.new(shape: FeedbackData, required: true, location_name: "feedback"))
528
+ PutFeedbackRequest.add_member(:target_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "targetId"))
529
+ PutFeedbackRequest.add_member(:target_type, Shapes::ShapeRef.new(shape: TargetType, required: true, location_name: "targetType"))
530
+ PutFeedbackRequest.struct_class = Types::PutFeedbackRequest
531
+
532
+ PutFeedbackResponse.add_member(:assistant_arn, Shapes::ShapeRef.new(shape: UuidOrArn, required: true, location_name: "assistantArn"))
533
+ PutFeedbackResponse.add_member(:assistant_id, Shapes::ShapeRef.new(shape: Uuid, required: true, location_name: "assistantId"))
534
+ PutFeedbackResponse.add_member(:feedback, Shapes::ShapeRef.new(shape: FeedbackData, required: true, location_name: "feedback"))
535
+ PutFeedbackResponse.add_member(:target_id, Shapes::ShapeRef.new(shape: Uuid, required: true, location_name: "targetId"))
536
+ PutFeedbackResponse.add_member(:target_type, Shapes::ShapeRef.new(shape: TargetType, required: true, location_name: "targetType"))
537
+ PutFeedbackResponse.struct_class = Types::PutFeedbackResponse
538
+
511
539
  QueryAssistantRequest.add_member(:assistant_id, Shapes::ShapeRef.new(shape: UuidOrArn, required: true, location: "uri", location_name: "assistantId"))
512
540
  QueryAssistantRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
513
541
  QueryAssistantRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
@@ -518,18 +546,37 @@ module Aws::ConnectWisdomService
518
546
  QueryAssistantResponse.add_member(:results, Shapes::ShapeRef.new(shape: QueryResultsList, required: true, location_name: "results"))
519
547
  QueryAssistantResponse.struct_class = Types::QueryAssistantResponse
520
548
 
549
+ QueryRecommendationTriggerData.add_member(:text, Shapes::ShapeRef.new(shape: QueryText, location_name: "text"))
550
+ QueryRecommendationTriggerData.struct_class = Types::QueryRecommendationTriggerData
551
+
521
552
  QueryResultsList.member = Shapes::ShapeRef.new(shape: ResultData)
522
553
 
523
554
  RecommendationData.add_member(:document, Shapes::ShapeRef.new(shape: Document, required: true, location_name: "document"))
524
555
  RecommendationData.add_member(:recommendation_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "recommendationId"))
525
556
  RecommendationData.add_member(:relevance_level, Shapes::ShapeRef.new(shape: RelevanceLevel, location_name: "relevanceLevel"))
526
557
  RecommendationData.add_member(:relevance_score, Shapes::ShapeRef.new(shape: RelevanceScore, location_name: "relevanceScore"))
558
+ RecommendationData.add_member(:type, Shapes::ShapeRef.new(shape: RecommendationType, location_name: "type"))
527
559
  RecommendationData.struct_class = Types::RecommendationData
528
560
 
529
561
  RecommendationIdList.member = Shapes::ShapeRef.new(shape: String)
530
562
 
531
563
  RecommendationList.member = Shapes::ShapeRef.new(shape: RecommendationData)
532
564
 
565
+ RecommendationTrigger.add_member(:data, Shapes::ShapeRef.new(shape: RecommendationTriggerData, required: true, location_name: "data"))
566
+ RecommendationTrigger.add_member(:id, Shapes::ShapeRef.new(shape: Uuid, required: true, location_name: "id"))
567
+ RecommendationTrigger.add_member(:recommendation_ids, Shapes::ShapeRef.new(shape: RecommendationIdList, required: true, location_name: "recommendationIds"))
568
+ RecommendationTrigger.add_member(:source, Shapes::ShapeRef.new(shape: RecommendationSourceType, required: true, location_name: "source"))
569
+ RecommendationTrigger.add_member(:type, Shapes::ShapeRef.new(shape: RecommendationTriggerType, required: true, location_name: "type"))
570
+ RecommendationTrigger.struct_class = Types::RecommendationTrigger
571
+
572
+ RecommendationTriggerData.add_member(:query, Shapes::ShapeRef.new(shape: QueryRecommendationTriggerData, location_name: "query"))
573
+ RecommendationTriggerData.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
574
+ RecommendationTriggerData.add_member_subclass(:query, Types::RecommendationTriggerData::Query)
575
+ RecommendationTriggerData.add_member_subclass(:unknown, Types::RecommendationTriggerData::Unknown)
576
+ RecommendationTriggerData.struct_class = Types::RecommendationTriggerData
577
+
578
+ RecommendationTriggerList.member = Shapes::ShapeRef.new(shape: RecommendationTrigger)
579
+
533
580
  RemoveKnowledgeBaseTemplateUriRequest.add_member(:knowledge_base_id, Shapes::ShapeRef.new(shape: UuidOrArn, required: true, location: "uri", location_name: "knowledgeBaseId"))
534
581
  RemoveKnowledgeBaseTemplateUriRequest.struct_class = Types::RemoveKnowledgeBaseTemplateUriRequest
535
582
 
@@ -603,7 +650,7 @@ module Aws::ConnectWisdomService
603
650
 
604
651
  StartContentUploadResponse.add_member(:headers_to_include, Shapes::ShapeRef.new(shape: Headers, required: true, location_name: "headersToInclude"))
605
652
  StartContentUploadResponse.add_member(:upload_id, Shapes::ShapeRef.new(shape: NonEmptyString, required: true, location_name: "uploadId"))
606
- StartContentUploadResponse.add_member(:url, Shapes::ShapeRef.new(shape: SyntheticStartContentUploadResponseUrl, required: true, location_name: "url"))
653
+ StartContentUploadResponse.add_member(:url, Shapes::ShapeRef.new(shape: Url, required: true, location_name: "url"))
607
654
  StartContentUploadResponse.add_member(:url_expiry, Shapes::ShapeRef.new(shape: SyntheticTimestamp_epoch_seconds, required: true, location_name: "urlExpiry"))
608
655
  StartContentUploadResponse.struct_class = Types::StartContentUploadResponse
609
656
 
@@ -770,6 +817,7 @@ module Aws::ConnectWisdomService
770
817
  o.input = Shapes::ShapeRef.new(shape: DeleteKnowledgeBaseRequest)
771
818
  o.output = Shapes::ShapeRef.new(shape: DeleteKnowledgeBaseResponse)
772
819
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
820
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
773
821
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
774
822
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
775
823
  end)
@@ -937,6 +985,17 @@ module Aws::ConnectWisdomService
937
985
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
938
986
  end)
939
987
 
988
+ api.add_operation(:put_feedback, Seahorse::Model::Operation.new.tap do |o|
989
+ o.name = "PutFeedback"
990
+ o.http_method = "PUT"
991
+ o.http_request_uri = "/assistants/{assistantId}/feedback"
992
+ o.input = Shapes::ShapeRef.new(shape: PutFeedbackRequest)
993
+ o.output = Shapes::ShapeRef.new(shape: PutFeedbackResponse)
994
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
995
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
996
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
997
+ end)
998
+
940
999
  api.add_operation(:query_assistant, Seahorse::Model::Operation.new.tap do |o|
941
1000
  o.name = "QueryAssistant"
942
1001
  o.http_method = "POST"
@@ -51,8 +51,8 @@ module Aws::ConnectWisdomService
51
51
  # `short_description`, `sys_mod_count`, `workflow_state`, and
52
52
  # `active`.
53
53
  #
54
- # Make sure to include additional field(s); these are indexed and used
55
- # to source recommendations.
54
+ # Make sure to include additional fields. These fields are indexed and
55
+ # used to source recommendations.
56
56
  #
57
57
  #
58
58
  #
@@ -72,7 +72,7 @@ module Aws::ConnectWisdomService
72
72
  # Information about the assistant association.
73
73
  #
74
74
  # @!attribute [rw] assistant_arn
75
- # The Amazon Resource Name (ARN) of the Wisdom assistant
75
+ # The Amazon Resource Name (ARN) of the Wisdom assistant.
76
76
  # @return [String]
77
77
  #
78
78
  # @!attribute [rw] assistant_association_arn
@@ -121,7 +121,7 @@ module Aws::ConnectWisdomService
121
121
  # @note AssistantAssociationInputData is a union - when making an API calls you must set exactly one of the members.
122
122
  #
123
123
  # @!attribute [rw] knowledge_base_id
124
- # The the identifier of the knowledge base.
124
+ # The identifier of the knowledge base.
125
125
  # @return [String]
126
126
  #
127
127
  # @see http://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/AssistantAssociationInputData AWS API Documentation
@@ -161,7 +161,7 @@ module Aws::ConnectWisdomService
161
161
  # Summary information about the assistant association.
162
162
  #
163
163
  # @!attribute [rw] assistant_arn
164
- # The Amazon Resource Name (ARN) of the Wisdom assistant
164
+ # The Amazon Resource Name (ARN) of the Wisdom assistant.
165
165
  # @return [String]
166
166
  #
167
167
  # @!attribute [rw] assistant_association_arn
@@ -206,7 +206,7 @@ module Aws::ConnectWisdomService
206
206
  # The assistant data.
207
207
  #
208
208
  # @!attribute [rw] assistant_arn
209
- # The Amazon Resource Name (ARN) of the Wisdom assistant
209
+ # The Amazon Resource Name (ARN) of the Wisdom assistant.
210
210
  # @return [String]
211
211
  #
212
212
  # @!attribute [rw] assistant_id
@@ -256,7 +256,7 @@ module Aws::ConnectWisdomService
256
256
  # Summary information about the assistant.
257
257
  #
258
258
  # @!attribute [rw] assistant_arn
259
- # The Amazon Resource Name (ARN) of the Wisdom assistant
259
+ # The Amazon Resource Name (ARN) of the Wisdom assistant.
260
260
  # @return [String]
261
261
  #
262
262
  # @!attribute [rw] assistant_id
@@ -338,7 +338,7 @@ module Aws::ConnectWisdomService
338
338
  # @return [String]
339
339
  #
340
340
  # @!attribute [rw] knowledge_base_id
341
- # The the identifier of the knowledge base.
341
+ # The identifier of the knowledge base.
342
342
  # @return [String]
343
343
  #
344
344
  # @!attribute [rw] link_out_uri
@@ -417,7 +417,7 @@ module Aws::ConnectWisdomService
417
417
  # @return [String]
418
418
  #
419
419
  # @!attribute [rw] knowledge_base_id
420
- # The the identifier of the knowledge base.
420
+ # The identifier of the knowledge base.
421
421
  # @return [String]
422
422
  #
423
423
  # @see http://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/ContentReference AWS API Documentation
@@ -450,7 +450,7 @@ module Aws::ConnectWisdomService
450
450
  # @return [String]
451
451
  #
452
452
  # @!attribute [rw] knowledge_base_id
453
- # The the identifier of the knowledge base.
453
+ # The identifier of the knowledge base.
454
454
  # @return [String]
455
455
  #
456
456
  # @!attribute [rw] metadata
@@ -661,8 +661,8 @@ module Aws::ConnectWisdomService
661
661
  # @return [String]
662
662
  #
663
663
  # @!attribute [rw] knowledge_base_id
664
- # The the identifier of the knowledge base. Can be either the ID or
665
- # the ARN. URLs cannot contain the ARN.
664
+ # The identifier of the knowledge base. Can be either the ID or the
665
+ # ARN. URLs cannot contain the ARN.
666
666
  # @return [String]
667
667
  #
668
668
  # @!attribute [rw] metadata
@@ -960,8 +960,8 @@ module Aws::ConnectWisdomService
960
960
  # @return [String]
961
961
  #
962
962
  # @!attribute [rw] knowledge_base_id
963
- # The the identifier of the knowledge base. Can be either the ID or
964
- # the ARN. URLs cannot contain the ARN.
963
+ # The identifier of the knowledge base. Can be either the ID or the
964
+ # ARN. URLs cannot contain the ARN.
965
965
  # @return [String]
966
966
  #
967
967
  # @see http://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/DeleteContentRequest AWS API Documentation
@@ -1044,6 +1044,27 @@ module Aws::ConnectWisdomService
1044
1044
  include Aws::Structure
1045
1045
  end
1046
1046
 
1047
+ # The feedback to submit to Wisdom.
1048
+ #
1049
+ # @note When making an API call, you may pass FeedbackData
1050
+ # data as a hash:
1051
+ #
1052
+ # {
1053
+ # relevance: "HELPFUL", # required, accepts HELPFUL, NOT_HELPFUL
1054
+ # }
1055
+ #
1056
+ # @!attribute [rw] relevance
1057
+ # The relevance of the target this feedback is for.
1058
+ # @return [String]
1059
+ #
1060
+ # @see http://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/FeedbackData AWS API Documentation
1061
+ #
1062
+ class FeedbackData < Struct.new(
1063
+ :relevance)
1064
+ SENSITIVE = []
1065
+ include Aws::Structure
1066
+ end
1067
+
1047
1068
  # A search filter.
1048
1069
  #
1049
1070
  # @note When making an API call, you may pass Filter
@@ -1163,8 +1184,8 @@ module Aws::ConnectWisdomService
1163
1184
  # @return [String]
1164
1185
  #
1165
1186
  # @!attribute [rw] knowledge_base_id
1166
- # The the identifier of the knowledge base. Can be either the ID or
1167
- # the ARN. URLs cannot contain the ARN.
1187
+ # The identifier of the knowledge base. Can be either the ID or the
1188
+ # ARN. URLs cannot contain the ARN.
1168
1189
  # @return [String]
1169
1190
  #
1170
1191
  # @see http://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/GetContentRequest AWS API Documentation
@@ -1202,8 +1223,8 @@ module Aws::ConnectWisdomService
1202
1223
  # @return [String]
1203
1224
  #
1204
1225
  # @!attribute [rw] knowledge_base_id
1205
- # The the identifier of the knowledge base. Can be either the ID or
1206
- # the ARN. URLs cannot contain the ARN.
1226
+ # The identifier of the knowledge base. Can be either the ID or the
1227
+ # ARN. URLs cannot contain the ARN.
1207
1228
  # @return [String]
1208
1229
  #
1209
1230
  # @see http://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/GetContentSummaryRequest AWS API Documentation
@@ -1235,8 +1256,8 @@ module Aws::ConnectWisdomService
1235
1256
  # }
1236
1257
  #
1237
1258
  # @!attribute [rw] knowledge_base_id
1238
- # The the identifier of the knowledge base. Can be either the ID or
1239
- # the ARN. URLs cannot contain the ARN.
1259
+ # The identifier of the knowledge base. Can be either the ID or the
1260
+ # ARN. URLs cannot contain the ARN.
1240
1261
  # @return [String]
1241
1262
  #
1242
1263
  # @see http://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/GetKnowledgeBaseRequest AWS API Documentation
@@ -1306,10 +1327,15 @@ module Aws::ConnectWisdomService
1306
1327
  # The recommendations.
1307
1328
  # @return [Array<Types::RecommendationData>]
1308
1329
  #
1330
+ # @!attribute [rw] triggers
1331
+ # The triggers corresponding to recommendations.
1332
+ # @return [Array<Types::RecommendationTrigger>]
1333
+ #
1309
1334
  # @see http://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/GetRecommendationsResponse AWS API Documentation
1310
1335
  #
1311
1336
  class GetRecommendationsResponse < Struct.new(
1312
- :recommendations)
1337
+ :recommendations,
1338
+ :triggers)
1313
1339
  SENSITIVE = []
1314
1340
  include Aws::Structure
1315
1341
  end
@@ -1380,7 +1406,7 @@ module Aws::ConnectWisdomService
1380
1406
  # @return [String]
1381
1407
  #
1382
1408
  # @!attribute [rw] knowledge_base_id
1383
- # The the identifier of the knowledge base.
1409
+ # The identifier of the knowledge base.
1384
1410
  # @return [String]
1385
1411
  #
1386
1412
  # @see http://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/KnowledgeBaseAssociationData AWS API Documentation
@@ -1403,7 +1429,7 @@ module Aws::ConnectWisdomService
1403
1429
  # @return [String]
1404
1430
  #
1405
1431
  # @!attribute [rw] knowledge_base_id
1406
- # The the identifier of the knowledge base.
1432
+ # The identifier of the knowledge base.
1407
1433
  # @return [String]
1408
1434
  #
1409
1435
  # @!attribute [rw] knowledge_base_type
@@ -1470,7 +1496,7 @@ module Aws::ConnectWisdomService
1470
1496
  # @return [String]
1471
1497
  #
1472
1498
  # @!attribute [rw] knowledge_base_id
1473
- # The the identifier of the knowledge base.
1499
+ # The identifier of the knowledge base.
1474
1500
  # @return [String]
1475
1501
  #
1476
1502
  # @!attribute [rw] knowledge_base_type
@@ -1490,7 +1516,7 @@ module Aws::ConnectWisdomService
1490
1516
  # @return [Types::ServerSideEncryptionConfiguration]
1491
1517
  #
1492
1518
  # @!attribute [rw] source_configuration
1493
- # \[KEVIN\]
1519
+ # Configuration information about the external data source.
1494
1520
  # @return [Types::SourceConfiguration]
1495
1521
  #
1496
1522
  # @!attribute [rw] status
@@ -1626,8 +1652,8 @@ module Aws::ConnectWisdomService
1626
1652
  # }
1627
1653
  #
1628
1654
  # @!attribute [rw] knowledge_base_id
1629
- # The the identifier of the knowledge base. Can be either the ID or
1630
- # the ARN. URLs cannot contain the ARN.
1655
+ # The identifier of the knowledge base. Can be either the ID or the
1656
+ # ARN. URLs cannot contain the ARN.
1631
1657
  # @return [String]
1632
1658
  #
1633
1659
  # @!attribute [rw] max_results
@@ -1828,6 +1854,80 @@ module Aws::ConnectWisdomService
1828
1854
  include Aws::Structure
1829
1855
  end
1830
1856
 
1857
+ # @note When making an API call, you may pass PutFeedbackRequest
1858
+ # data as a hash:
1859
+ #
1860
+ # {
1861
+ # assistant_id: "UuidOrArn", # required
1862
+ # feedback: { # required
1863
+ # relevance: "HELPFUL", # required, accepts HELPFUL, NOT_HELPFUL
1864
+ # },
1865
+ # target_id: "String", # required
1866
+ # target_type: "RECOMMENDATION", # required, accepts RECOMMENDATION, RESULT
1867
+ # }
1868
+ #
1869
+ # @!attribute [rw] assistant_id
1870
+ # The identifier of the Wisdom assistant. Can be either the ID or the
1871
+ # ARN. URLs cannot contain the ARN.
1872
+ # @return [String]
1873
+ #
1874
+ # @!attribute [rw] feedback
1875
+ # The feedback.
1876
+ # @return [Types::FeedbackData]
1877
+ #
1878
+ # @!attribute [rw] target_id
1879
+ # The identifier of a recommendation. or The identifier of the result
1880
+ # data.
1881
+ # @return [String]
1882
+ #
1883
+ # @!attribute [rw] target_type
1884
+ # The type of the targetId for which The feedback. is targeted.
1885
+ # @return [String]
1886
+ #
1887
+ # @see http://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/PutFeedbackRequest AWS API Documentation
1888
+ #
1889
+ class PutFeedbackRequest < Struct.new(
1890
+ :assistant_id,
1891
+ :feedback,
1892
+ :target_id,
1893
+ :target_type)
1894
+ SENSITIVE = []
1895
+ include Aws::Structure
1896
+ end
1897
+
1898
+ # @!attribute [rw] assistant_arn
1899
+ # The Amazon Resource Name (ARN) of the Wisdom assistant.
1900
+ # @return [String]
1901
+ #
1902
+ # @!attribute [rw] assistant_id
1903
+ # The identifier of the Wisdom assistant.
1904
+ # @return [String]
1905
+ #
1906
+ # @!attribute [rw] feedback
1907
+ # The feedback.
1908
+ # @return [Types::FeedbackData]
1909
+ #
1910
+ # @!attribute [rw] target_id
1911
+ # The identifier of a recommendation. or The identifier of the result
1912
+ # data.
1913
+ # @return [String]
1914
+ #
1915
+ # @!attribute [rw] target_type
1916
+ # The type of the targetId for which The feedback. is targeted.
1917
+ # @return [String]
1918
+ #
1919
+ # @see http://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/PutFeedbackResponse AWS API Documentation
1920
+ #
1921
+ class PutFeedbackResponse < Struct.new(
1922
+ :assistant_arn,
1923
+ :assistant_id,
1924
+ :feedback,
1925
+ :target_id,
1926
+ :target_type)
1927
+ SENSITIVE = []
1928
+ include Aws::Structure
1929
+ end
1930
+
1831
1931
  # @note When making an API call, you may pass QueryAssistantRequest
1832
1932
  # data as a hash:
1833
1933
  #
@@ -1886,6 +1986,20 @@ module Aws::ConnectWisdomService
1886
1986
  include Aws::Structure
1887
1987
  end
1888
1988
 
1989
+ # Data associated with the QUERY RecommendationTriggerType.
1990
+ #
1991
+ # @!attribute [rw] text
1992
+ # The text associated with the recommendation trigger.
1993
+ # @return [String]
1994
+ #
1995
+ # @see http://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/QueryRecommendationTriggerData AWS API Documentation
1996
+ #
1997
+ class QueryRecommendationTriggerData < Struct.new(
1998
+ :text)
1999
+ SENSITIVE = [:text]
2000
+ include Aws::Structure
2001
+ end
2002
+
1889
2003
  # Information about the recommendation.
1890
2004
  #
1891
2005
  # @!attribute [rw] document
@@ -1904,17 +2018,85 @@ module Aws::ConnectWisdomService
1904
2018
  # The relevance score of the recommendation.
1905
2019
  # @return [Float]
1906
2020
  #
2021
+ # @!attribute [rw] type
2022
+ # The type of recommendation.
2023
+ # @return [String]
2024
+ #
1907
2025
  # @see http://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/RecommendationData AWS API Documentation
1908
2026
  #
1909
2027
  class RecommendationData < Struct.new(
1910
2028
  :document,
1911
2029
  :recommendation_id,
1912
2030
  :relevance_level,
1913
- :relevance_score)
2031
+ :relevance_score,
2032
+ :type)
2033
+ SENSITIVE = []
2034
+ include Aws::Structure
2035
+ end
2036
+
2037
+ # A recommendation trigger provides context on the event that produced
2038
+ # the referenced recommendations. Recommendations are only referenced in
2039
+ # `recommendationIds` by a single RecommendationTrigger.
2040
+ #
2041
+ # @!attribute [rw] data
2042
+ # A union type containing information related to the trigger.
2043
+ # @return [Types::RecommendationTriggerData]
2044
+ #
2045
+ # @!attribute [rw] id
2046
+ # The identifier of the recommendation trigger.
2047
+ # @return [String]
2048
+ #
2049
+ # @!attribute [rw] recommendation_ids
2050
+ # The identifiers of the recommendations.
2051
+ # @return [Array<String>]
2052
+ #
2053
+ # @!attribute [rw] source
2054
+ # The source of the recommendation trigger.
2055
+ #
2056
+ # * ISSUE\_DETECTION: The corresponding recommendations were triggered
2057
+ # by a Contact Lens issue.
2058
+ #
2059
+ # * RULE\_EVALUATION: The corresponding recommendations were triggered
2060
+ # by a Contact Lens rule.
2061
+ # @return [String]
2062
+ #
2063
+ # @!attribute [rw] type
2064
+ # The type of recommendation trigger.
2065
+ # @return [String]
2066
+ #
2067
+ # @see http://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/RecommendationTrigger AWS API Documentation
2068
+ #
2069
+ class RecommendationTrigger < Struct.new(
2070
+ :data,
2071
+ :id,
2072
+ :recommendation_ids,
2073
+ :source,
2074
+ :type)
1914
2075
  SENSITIVE = []
1915
2076
  include Aws::Structure
1916
2077
  end
1917
2078
 
2079
+ # A union type containing information related to the trigger.
2080
+ #
2081
+ # @note RecommendationTriggerData is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of RecommendationTriggerData corresponding to the set member.
2082
+ #
2083
+ # @!attribute [rw] query
2084
+ # Data associated with the QUERY RecommendationTriggerType.
2085
+ # @return [Types::QueryRecommendationTriggerData]
2086
+ #
2087
+ # @see http://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/RecommendationTriggerData AWS API Documentation
2088
+ #
2089
+ class RecommendationTriggerData < Struct.new(
2090
+ :query,
2091
+ :unknown)
2092
+ SENSITIVE = []
2093
+ include Aws::Structure
2094
+ include Aws::Structure::Union
2095
+
2096
+ class Query < RecommendationTriggerData; end
2097
+ class Unknown < RecommendationTriggerData; end
2098
+ end
2099
+
1918
2100
  # @note When making an API call, you may pass RemoveKnowledgeBaseTemplateUriRequest
1919
2101
  # data as a hash:
1920
2102
  #
@@ -1923,8 +2105,8 @@ module Aws::ConnectWisdomService
1923
2105
  # }
1924
2106
  #
1925
2107
  # @!attribute [rw] knowledge_base_id
1926
- # The the identifier of the knowledge base. Can be either the ID or
1927
- # the ARN. URLs cannot contain the ARN.
2108
+ # The identifier of the knowledge base. Can be either the ID or the
2109
+ # ARN. URLs cannot contain the ARN.
1928
2110
  # @return [String]
1929
2111
  #
1930
2112
  # @see http://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/RemoveKnowledgeBaseTemplateUriRequest AWS API Documentation
@@ -2033,8 +2215,8 @@ module Aws::ConnectWisdomService
2033
2215
  # }
2034
2216
  #
2035
2217
  # @!attribute [rw] knowledge_base_id
2036
- # The the identifier of the knowledge base. Can be either the ID or
2037
- # the ARN. URLs cannot contain the ARN.
2218
+ # The identifier of the knowledge base. Can be either the ID or the
2219
+ # ARN. URLs cannot contain the ARN.
2038
2220
  # @return [String]
2039
2221
  #
2040
2222
  # @!attribute [rw] max_results
@@ -2184,8 +2366,7 @@ module Aws::ConnectWisdomService
2184
2366
  #
2185
2367
  # @!attribute [rw] kms_key_id
2186
2368
  # The KMS key. For information about valid ID values, see [Key
2187
- # identifiers (KeyId)][1] in the *AWS Key Management Service Developer
2188
- # Guide*.
2369
+ # identifiers (KeyId)][1].
2189
2370
  #
2190
2371
  #
2191
2372
  #
@@ -2253,7 +2434,7 @@ module Aws::ConnectWisdomService
2253
2434
  # Summary information about the session.
2254
2435
  #
2255
2436
  # @!attribute [rw] assistant_arn
2256
- # The Amazon Resource Name (ARN) of the Wisdom assistant
2437
+ # The Amazon Resource Name (ARN) of the Wisdom assistant.
2257
2438
  # @return [String]
2258
2439
  #
2259
2440
  # @!attribute [rw] assistant_id
@@ -2316,8 +2497,8 @@ module Aws::ConnectWisdomService
2316
2497
  # @return [String]
2317
2498
  #
2318
2499
  # @!attribute [rw] knowledge_base_id
2319
- # The the identifier of the knowledge base. Can be either the ID or
2320
- # the ARN. URLs cannot contain the ARN.
2500
+ # The identifier of the knowledge base. Can be either the ID or the
2501
+ # ARN. URLs cannot contain the ARN.
2321
2502
  # @return [String]
2322
2503
  #
2323
2504
  # @see http://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/StartContentUploadRequest AWS API Documentation
@@ -2458,8 +2639,8 @@ module Aws::ConnectWisdomService
2458
2639
  # @return [String]
2459
2640
  #
2460
2641
  # @!attribute [rw] knowledge_base_id
2461
- # The the identifier of the knowledge base. Can be either the ID or
2462
- # the ARN
2642
+ # The identifier of the knowledge base. Can be either the ID or the
2643
+ # ARN
2463
2644
  # @return [String]
2464
2645
  #
2465
2646
  # @!attribute [rw] metadata
@@ -2538,8 +2719,8 @@ module Aws::ConnectWisdomService
2538
2719
  # }
2539
2720
  #
2540
2721
  # @!attribute [rw] knowledge_base_id
2541
- # The the identifier of the knowledge base. Can be either the ID or
2542
- # the ARN. URLs cannot contain the ARN.
2722
+ # The identifier of the knowledge base. Can be either the ID or the
2723
+ # ARN. URLs cannot contain the ARN.
2543
2724
  # @return [String]
2544
2725
  #
2545
2726
  # @!attribute [rw] template_uri
@@ -2567,8 +2748,7 @@ module Aws::ConnectWisdomService
2567
2748
  include Aws::Structure
2568
2749
  end
2569
2750
 
2570
- # The input fails to satisfy the constraints specified by an AWS
2571
- # service.
2751
+ # The input fails to satisfy the constraints specified by a service.
2572
2752
  #
2573
2753
  # @!attribute [rw] message
2574
2754
  # @return [String]
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-connectwisdomservice/customizations'
48
48
  # @!group service
49
49
  module Aws::ConnectWisdomService
50
50
 
51
- GEM_VERSION = '1.5.0'
51
+ GEM_VERSION = '1.8.0'
52
52
 
53
53
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-connectwisdomservice
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-03 00:00:00.000000000 Z
11
+ date: 2022-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.126.0
22
+ version: 3.127.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.126.0
32
+ version: 3.127.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement