aws-sdk-connectwisdomservice 1.7.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06dda9d1eaf52bb60f99fa3240b6fb51da383afdf684df37e8887b32982dd62c
|
4
|
+
data.tar.gz: 3814418e1b39057947e5ae7dd93b6768ccf12516cc78658a4c37c708fba5621b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25b42ec394c96683df1b8c3a9674512115e6aca39aac1ff15490bd05a2e6c9a8e8016e6ffd0c31e96ef63b7659168aea154fa2a8f4969f3d2fa9307f70852600
|
7
|
+
data.tar.gz: 3a0affa9889f1435171a5d3512570a4cdc41384a272fc2a6992032a1336df85fb0742b9f7d00854a2db79dfb0d60867e0fe5fb0e01a04b898c7fcfd9300025a3
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.8.0
|
@@ -1475,6 +1475,66 @@ module Aws::ConnectWisdomService
|
|
1475
1475
|
req.send_request(options)
|
1476
1476
|
end
|
1477
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
|
+
|
1478
1538
|
# Performs a manual search against the specified assistant. To retrieve
|
1479
1539
|
# recommendations for an assistant, use [GetRecommendations][1].
|
1480
1540
|
#
|
@@ -1949,7 +2009,7 @@ module Aws::ConnectWisdomService
|
|
1949
2009
|
params: params,
|
1950
2010
|
config: config)
|
1951
2011
|
context[:gem_name] = 'aws-sdk-connectwisdomservice'
|
1952
|
-
context[:gem_version] = '1.
|
2012
|
+
context[:gem_version] = '1.8.0'
|
1953
2013
|
Seahorse::Client::Request.new(handlers, context)
|
1954
2014
|
end
|
1955
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,6 +110,8 @@ 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')
|
114
117
|
QueryRecommendationTriggerData = Shapes::StructureShape.new(name: 'QueryRecommendationTriggerData')
|
@@ -123,6 +126,7 @@ module Aws::ConnectWisdomService
|
|
123
126
|
RecommendationTriggerList = Shapes::ListShape.new(name: 'RecommendationTriggerList')
|
124
127
|
RecommendationTriggerType = Shapes::StringShape.new(name: 'RecommendationTriggerType')
|
125
128
|
RecommendationType = Shapes::StringShape.new(name: 'RecommendationType')
|
129
|
+
Relevance = Shapes::StringShape.new(name: 'Relevance')
|
126
130
|
RelevanceLevel = Shapes::StringShape.new(name: 'RelevanceLevel')
|
127
131
|
RelevanceScore = Shapes::FloatShape.new(name: 'RelevanceScore')
|
128
132
|
RemoveKnowledgeBaseTemplateUriRequest = Shapes::StructureShape.new(name: 'RemoveKnowledgeBaseTemplateUriRequest')
|
@@ -152,6 +156,7 @@ module Aws::ConnectWisdomService
|
|
152
156
|
TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
|
153
157
|
TagValue = Shapes::StringShape.new(name: 'TagValue')
|
154
158
|
Tags = Shapes::MapShape.new(name: 'Tags')
|
159
|
+
TargetType = Shapes::StringShape.new(name: 'TargetType')
|
155
160
|
TooManyTagsException = Shapes::StructureShape.new(name: 'TooManyTagsException')
|
156
161
|
UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
|
157
162
|
UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
|
@@ -358,6 +363,9 @@ module Aws::ConnectWisdomService
|
|
358
363
|
DocumentText.add_member(:text, Shapes::ShapeRef.new(shape: SensitiveString, location_name: "text"))
|
359
364
|
DocumentText.struct_class = Types::DocumentText
|
360
365
|
|
366
|
+
FeedbackData.add_member(:relevance, Shapes::ShapeRef.new(shape: Relevance, required: true, location_name: "relevance"))
|
367
|
+
FeedbackData.struct_class = Types::FeedbackData
|
368
|
+
|
361
369
|
Filter.add_member(:field, Shapes::ShapeRef.new(shape: FilterField, required: true, location_name: "field"))
|
362
370
|
Filter.add_member(:operator, Shapes::ShapeRef.new(shape: FilterOperator, required: true, location_name: "operator"))
|
363
371
|
Filter.add_member(:value, Shapes::ShapeRef.new(shape: NonEmptyString, required: true, location_name: "value"))
|
@@ -515,6 +523,19 @@ module Aws::ConnectWisdomService
|
|
515
523
|
PreconditionFailedException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
516
524
|
PreconditionFailedException.struct_class = Types::PreconditionFailedException
|
517
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
|
+
|
518
539
|
QueryAssistantRequest.add_member(:assistant_id, Shapes::ShapeRef.new(shape: UuidOrArn, required: true, location: "uri", location_name: "assistantId"))
|
519
540
|
QueryAssistantRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
|
520
541
|
QueryAssistantRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
@@ -964,6 +985,17 @@ module Aws::ConnectWisdomService
|
|
964
985
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
965
986
|
end)
|
966
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
|
+
|
967
999
|
api.add_operation(:query_assistant, Seahorse::Model::Operation.new.tap do |o|
|
968
1000
|
o.name = "QueryAssistant"
|
969
1001
|
o.http_method = "POST"
|
@@ -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
|
@@ -1833,6 +1854,80 @@ module Aws::ConnectWisdomService
|
|
1833
1854
|
include Aws::Structure
|
1834
1855
|
end
|
1835
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
|
+
|
1836
1931
|
# @note When making an API call, you may pass QueryAssistantRequest
|
1837
1932
|
# data as a hash:
|
1838
1933
|
#
|
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.
|
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-
|
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
|