|
68 | 68 | {
|
69 | 69 | "target": "com.amazonaws.wisdom#NotifyRecommendationsReceived"
|
70 | 70 | },
|
| 71 | + { |
| 72 | + "target": "com.amazonaws.wisdom#PutFeedback" |
| 73 | + }, |
71 | 74 | {
|
72 | 75 | "target": "com.amazonaws.wisdom#QueryAssistant"
|
73 | 76 | },
|
|
1535 | 1538 | "smithy.api#documentation": "<p>The text of the document.</p>"
|
1536 | 1539 | }
|
1537 | 1540 | },
|
| 1541 | + "com.amazonaws.wisdom#FeedbackData": { |
| 1542 | + "type": "structure", |
| 1543 | + "members": { |
| 1544 | + "relevance": { |
| 1545 | + "target": "com.amazonaws.wisdom#Relevance", |
| 1546 | + "traits": { |
| 1547 | + "smithy.api#documentation": "<p>The relevance of the target this feedback is for.</p>", |
| 1548 | + "smithy.api#required": {} |
| 1549 | + } |
| 1550 | + } |
| 1551 | + }, |
| 1552 | + "traits": { |
| 1553 | + "smithy.api#documentation": "<p>The feedback to submit to Wisdom.</p>" |
| 1554 | + } |
| 1555 | + }, |
1538 | 1556 | "com.amazonaws.wisdom#Filter": {
|
1539 | 1557 | "type": "structure",
|
1540 | 1558 | "members": {
|
|
2851 | 2869 | "smithy.api#httpError": 412
|
2852 | 2870 | }
|
2853 | 2871 | },
|
| 2872 | + "com.amazonaws.wisdom#PutFeedback": { |
| 2873 | + "type": "operation", |
| 2874 | + "input": { |
| 2875 | + "target": "com.amazonaws.wisdom#PutFeedbackRequest" |
| 2876 | + }, |
| 2877 | + "output": { |
| 2878 | + "target": "com.amazonaws.wisdom#PutFeedbackResponse" |
| 2879 | + }, |
| 2880 | + "errors": [ |
| 2881 | + { |
| 2882 | + "target": "com.amazonaws.wisdom#AccessDeniedException" |
| 2883 | + }, |
| 2884 | + { |
| 2885 | + "target": "com.amazonaws.wisdom#ResourceNotFoundException" |
| 2886 | + }, |
| 2887 | + { |
| 2888 | + "target": "com.amazonaws.wisdom#ValidationException" |
| 2889 | + } |
| 2890 | + ], |
| 2891 | + "traits": { |
| 2892 | + "smithy.api#documentation": "<p>Submits feedback to Wisdom. The feedback is used to improve future recommendations from\n <a href=\"https://docs.aws.amazon.com/wisdom/latest/APIReference/API_GetRecommendations.html\">GetRecommendations</a> or\n results from <a href=\"https://docs.aws.amazon.com/wisdom/latest/APIReference/API_QueryAssistant.html\">QueryAssistant</a>.\n Feedback can be resubmitted up to 6 hours after submission.\n </p>", |
| 2893 | + "smithy.api#http": { |
| 2894 | + "uri": "/assistants/{assistantId}/feedback", |
| 2895 | + "method": "PUT" |
| 2896 | + }, |
| 2897 | + "smithy.api#idempotent": {}, |
| 2898 | + "smithy.api#private": {} |
| 2899 | + } |
| 2900 | + }, |
| 2901 | + "com.amazonaws.wisdom#PutFeedbackRequest": { |
| 2902 | + "type": "structure", |
| 2903 | + "members": { |
| 2904 | + "assistantId": { |
| 2905 | + "target": "com.amazonaws.wisdom#UuidOrArn", |
| 2906 | + "traits": { |
| 2907 | + "smithy.api#documentation": "<p>The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>", |
| 2908 | + "smithy.api#httpLabel": {}, |
| 2909 | + "smithy.api#required": {} |
| 2910 | + } |
| 2911 | + }, |
| 2912 | + "targetId": { |
| 2913 | + "target": "smithy.api#String", |
| 2914 | + "traits": { |
| 2915 | + "smithy.api#documentation": "<p>The identifier of a recommendation. or The identifier of the result data.</p>", |
| 2916 | + "smithy.api#required": {} |
| 2917 | + } |
| 2918 | + }, |
| 2919 | + "targetType": { |
| 2920 | + "target": "com.amazonaws.wisdom#TargetType", |
| 2921 | + "traits": { |
| 2922 | + "smithy.api#documentation": "<p>The type of the targetId for which The feedback. is targeted.</p>", |
| 2923 | + "smithy.api#required": {} |
| 2924 | + } |
| 2925 | + }, |
| 2926 | + "feedback": { |
| 2927 | + "target": "com.amazonaws.wisdom#FeedbackData", |
| 2928 | + "traits": { |
| 2929 | + "smithy.api#documentation": "<p>The feedback.</p>", |
| 2930 | + "smithy.api#required": {} |
| 2931 | + } |
| 2932 | + } |
| 2933 | + } |
| 2934 | + }, |
| 2935 | + "com.amazonaws.wisdom#PutFeedbackResponse": { |
| 2936 | + "type": "structure", |
| 2937 | + "members": { |
| 2938 | + "assistantId": { |
| 2939 | + "target": "com.amazonaws.wisdom#Uuid", |
| 2940 | + "traits": { |
| 2941 | + "smithy.api#documentation": "<p>The identifier of the Wisdom assistant.</p>", |
| 2942 | + "smithy.api#required": {} |
| 2943 | + } |
| 2944 | + }, |
| 2945 | + "assistantArn": { |
| 2946 | + "target": "com.amazonaws.wisdom#UuidOrArn", |
| 2947 | + "traits": { |
| 2948 | + "smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the Wisdom assistant.</p>", |
| 2949 | + "smithy.api#required": {} |
| 2950 | + } |
| 2951 | + }, |
| 2952 | + "targetId": { |
| 2953 | + "target": "com.amazonaws.wisdom#Uuid", |
| 2954 | + "traits": { |
| 2955 | + "smithy.api#documentation": "<p>The identifier of a recommendation. or The identifier of the result data.</p>", |
| 2956 | + "smithy.api#required": {} |
| 2957 | + } |
| 2958 | + }, |
| 2959 | + "targetType": { |
| 2960 | + "target": "com.amazonaws.wisdom#TargetType", |
| 2961 | + "traits": { |
| 2962 | + "smithy.api#documentation": "<p>The type of the targetId for which The feedback. is targeted.</p>", |
| 2963 | + "smithy.api#required": {} |
| 2964 | + } |
| 2965 | + }, |
| 2966 | + "feedback": { |
| 2967 | + "target": "com.amazonaws.wisdom#FeedbackData", |
| 2968 | + "traits": { |
| 2969 | + "smithy.api#documentation": "<p>The feedback.</p>", |
| 2970 | + "smithy.api#required": {} |
| 2971 | + } |
| 2972 | + } |
| 2973 | + } |
| 2974 | + }, |
2854 | 2975 | "com.amazonaws.wisdom#QueryAssistant": {
|
2855 | 2976 | "type": "operation",
|
2856 | 2977 | "input": {
|
|
3120 | 3241 | ]
|
3121 | 3242 | }
|
3122 | 3243 | },
|
| 3244 | + "com.amazonaws.wisdom#Relevance": { |
| 3245 | + "type": "string", |
| 3246 | + "traits": { |
| 3247 | + "smithy.api#enum": [ |
| 3248 | + { |
| 3249 | + "value": "HELPFUL", |
| 3250 | + "name": "HELPFUL" |
| 3251 | + }, |
| 3252 | + { |
| 3253 | + "value": "NOT_HELPFUL", |
| 3254 | + "name": "NOT_HELPFUL" |
| 3255 | + } |
| 3256 | + ] |
| 3257 | + } |
| 3258 | + }, |
3123 | 3259 | "com.amazonaws.wisdom#RelevanceLevel": {
|
3124 | 3260 | "type": "string",
|
3125 | 3261 | "traits": {
|
|
3763 | 3899 | "target": "com.amazonaws.wisdom#TagValue"
|
3764 | 3900 | }
|
3765 | 3901 | },
|
| 3902 | + "com.amazonaws.wisdom#TargetType": { |
| 3903 | + "type": "string", |
| 3904 | + "traits": { |
| 3905 | + "smithy.api#enum": [ |
| 3906 | + { |
| 3907 | + "value": "RECOMMENDATION", |
| 3908 | + "name": "RECOMMENDATION" |
| 3909 | + }, |
| 3910 | + { |
| 3911 | + "value": "RESULT", |
| 3912 | + "name": "RESULT" |
| 3913 | + } |
| 3914 | + ] |
| 3915 | + } |
| 3916 | + }, |
3766 | 3917 | "com.amazonaws.wisdom#TooManyTagsException": {
|
3767 | 3918 | "type": "structure",
|
3768 | 3919 | "members": {
|
|
0 commit comments