| 1 |
{ |
| 2 |
"version":"2.0", |
| 3 |
"metadata":{ |
| 4 |
"apiVersion":"2020-08-21", |
| 5 |
"endpointPrefix":"contact-lens", |
| 6 |
"jsonVersion":"1.1", |
| 7 |
"protocol":"rest-json", |
| 8 |
"serviceAbbreviation":"Amazon Connect Contact Lens", |
| 9 |
"serviceFullName":"Amazon Connect Contact Lens", |
| 10 |
"serviceId":"Connect Contact Lens", |
| 11 |
"signatureVersion":"v4", |
| 12 |
"signingName":"connect", |
| 13 |
"uid":"connect-contact-lens-2020-08-21" |
| 14 |
}, |
| 15 |
"operations":{ |
| 16 |
"ListRealtimeContactAnalysisSegments":{ |
| 17 |
"name":"ListRealtimeContactAnalysisSegments", |
| 18 |
"http":{ |
| 19 |
"method":"POST", |
| 20 |
"requestUri":"/realtime-contact-analysis/analysis-segments" |
| 21 |
}, |
| 22 |
"input":{"shape":"ListRealtimeContactAnalysisSegmentsRequest"}, |
| 23 |
"output":{"shape":"ListRealtimeContactAnalysisSegmentsResponse"}, |
| 24 |
"errors":[ |
| 25 |
{"shape":"InvalidRequestException"}, |
| 26 |
{"shape":"AccessDeniedException"}, |
| 27 |
{"shape":"ResourceNotFoundException"}, |
| 28 |
{"shape":"InternalServiceException"}, |
| 29 |
{"shape":"ThrottlingException"} |
| 30 |
] |
| 31 |
} |
| 32 |
}, |
| 33 |
"shapes":{ |
| 34 |
"AccessDeniedException":{ |
| 35 |
"type":"structure", |
| 36 |
"required":["Message"], |
| 37 |
"members":{ |
| 38 |
"Message":{"shape":"Message"} |
| 39 |
}, |
| 40 |
"error":{"httpStatusCode":403}, |
| 41 |
"exception":true |
| 42 |
}, |
| 43 |
"Categories":{ |
| 44 |
"type":"structure", |
| 45 |
"required":[ |
| 46 |
"MatchedCategories", |
| 47 |
"MatchedDetails" |
| 48 |
], |
| 49 |
"members":{ |
| 50 |
"MatchedCategories":{"shape":"MatchedCategories"}, |
| 51 |
"MatchedDetails":{"shape":"MatchedDetails"} |
| 52 |
} |
| 53 |
}, |
| 54 |
"CategoryDetails":{ |
| 55 |
"type":"structure", |
| 56 |
"required":["PointsOfInterest"], |
| 57 |
"members":{ |
| 58 |
"PointsOfInterest":{"shape":"PointsOfInterest"} |
| 59 |
} |
| 60 |
}, |
| 61 |
"CategoryName":{ |
| 62 |
"type":"string", |
| 63 |
"max":256, |
| 64 |
"min":1, |
| 65 |
"pattern":".*\\S.*" |
| 66 |
}, |
| 67 |
"CharacterOffset":{ |
| 68 |
"type":"integer", |
| 69 |
"min":0 |
| 70 |
}, |
| 71 |
"CharacterOffsets":{ |
| 72 |
"type":"structure", |
| 73 |
"required":[ |
| 74 |
"BeginOffsetChar", |
| 75 |
"EndOffsetChar" |
| 76 |
], |
| 77 |
"members":{ |
| 78 |
"BeginOffsetChar":{"shape":"CharacterOffset"}, |
| 79 |
"EndOffsetChar":{"shape":"CharacterOffset"} |
| 80 |
} |
| 81 |
}, |
| 82 |
"ContactId":{ |
| 83 |
"type":"string", |
| 84 |
"max":256, |
| 85 |
"min":1, |
| 86 |
"pattern":".*\\S.*" |
| 87 |
}, |
| 88 |
"InstanceId":{ |
| 89 |
"type":"string", |
| 90 |
"max":256, |
| 91 |
"min":1, |
| 92 |
"pattern":".*\\S.*" |
| 93 |
}, |
| 94 |
"InternalServiceException":{ |
| 95 |
"type":"structure", |
| 96 |
"members":{ |
| 97 |
"Message":{"shape":"Message"} |
| 98 |
}, |
| 99 |
"error":{"httpStatusCode":500}, |
| 100 |
"exception":true, |
| 101 |
"fault":true |
| 102 |
}, |
| 103 |
"InvalidRequestException":{ |
| 104 |
"type":"structure", |
| 105 |
"members":{ |
| 106 |
"Message":{"shape":"Message"} |
| 107 |
}, |
| 108 |
"error":{"httpStatusCode":400}, |
| 109 |
"exception":true |
| 110 |
}, |
| 111 |
"IssueDetected":{ |
| 112 |
"type":"structure", |
| 113 |
"required":["CharacterOffsets"], |
| 114 |
"members":{ |
| 115 |
"CharacterOffsets":{"shape":"CharacterOffsets"} |
| 116 |
} |
| 117 |
}, |
| 118 |
"IssuesDetected":{ |
| 119 |
"type":"list", |
| 120 |
"member":{"shape":"IssueDetected"}, |
| 121 |
"max":20, |
| 122 |
"min":0 |
| 123 |
}, |
| 124 |
"ListRealtimeContactAnalysisSegmentsRequest":{ |
| 125 |
"type":"structure", |
| 126 |
"required":[ |
| 127 |
"InstanceId", |
| 128 |
"ContactId" |
| 129 |
], |
| 130 |
"members":{ |
| 131 |
"InstanceId":{"shape":"InstanceId"}, |
| 132 |
"ContactId":{"shape":"ContactId"}, |
| 133 |
"MaxResults":{"shape":"MaxResults"}, |
| 134 |
"NextToken":{"shape":"NextToken"} |
| 135 |
} |
| 136 |
}, |
| 137 |
"ListRealtimeContactAnalysisSegmentsResponse":{ |
| 138 |
"type":"structure", |
| 139 |
"required":["Segments"], |
| 140 |
"members":{ |
| 141 |
"Segments":{"shape":"RealtimeContactAnalysisSegments"}, |
| 142 |
"NextToken":{"shape":"NextToken"} |
| 143 |
} |
| 144 |
}, |
| 145 |
"MatchedCategories":{ |
| 146 |
"type":"list", |
| 147 |
"member":{"shape":"CategoryName"}, |
| 148 |
"max":150, |
| 149 |
"min":0 |
| 150 |
}, |
| 151 |
"MatchedDetails":{ |
| 152 |
"type":"map", |
| 153 |
"key":{"shape":"CategoryName"}, |
| 154 |
"value":{"shape":"CategoryDetails"}, |
| 155 |
"max":150, |
| 156 |
"min":0 |
| 157 |
}, |
| 158 |
"MaxResults":{ |
| 159 |
"type":"integer", |
| 160 |
"max":100, |
| 161 |
"min":1 |
| 162 |
}, |
| 163 |
"Message":{"type":"string"}, |
| 164 |
"NextToken":{ |
| 165 |
"type":"string", |
| 166 |
"max":131070, |
| 167 |
"min":1, |
| 168 |
"pattern":".*\\S.*" |
| 169 |
}, |
| 170 |
"OffsetMillis":{ |
| 171 |
"type":"integer", |
| 172 |
"min":0 |
| 173 |
}, |
| 174 |
"ParticipantId":{ |
| 175 |
"type":"string", |
| 176 |
"max":256, |
| 177 |
"min":1, |
| 178 |
"pattern":".*\\S.*" |
| 179 |
}, |
| 180 |
"ParticipantRole":{ |
| 181 |
"type":"string", |
| 182 |
"max":256, |
| 183 |
"min":1, |
| 184 |
"pattern":".*\\S.*" |
| 185 |
}, |
| 186 |
"PointOfInterest":{ |
| 187 |
"type":"structure", |
| 188 |
"required":[ |
| 189 |
"BeginOffsetMillis", |
| 190 |
"EndOffsetMillis" |
| 191 |
], |
| 192 |
"members":{ |
| 193 |
"BeginOffsetMillis":{"shape":"OffsetMillis"}, |
| 194 |
"EndOffsetMillis":{"shape":"OffsetMillis"} |
| 195 |
} |
| 196 |
}, |
| 197 |
"PointsOfInterest":{ |
| 198 |
"type":"list", |
| 199 |
"member":{"shape":"PointOfInterest"}, |
| 200 |
"max":20, |
| 201 |
"min":0 |
| 202 |
}, |
| 203 |
"RealtimeContactAnalysisSegment":{ |
| 204 |
"type":"structure", |
| 205 |
"members":{ |
| 206 |
"Transcript":{"shape":"Transcript"}, |
| 207 |
"Categories":{"shape":"Categories"} |
| 208 |
} |
| 209 |
}, |
| 210 |
"RealtimeContactAnalysisSegments":{ |
| 211 |
"type":"list", |
| 212 |
"member":{"shape":"RealtimeContactAnalysisSegment"}, |
| 213 |
"max":100, |
| 214 |
"min":0 |
| 215 |
}, |
| 216 |
"ResourceNotFoundException":{ |
| 217 |
"type":"structure", |
| 218 |
"members":{ |
| 219 |
"Message":{"shape":"Message"} |
| 220 |
}, |
| 221 |
"error":{"httpStatusCode":404}, |
| 222 |
"exception":true |
| 223 |
}, |
| 224 |
"SentimentValue":{ |
| 225 |
"type":"string", |
| 226 |
"enum":[ |
| 227 |
"POSITIVE", |
| 228 |
"NEUTRAL", |
| 229 |
"NEGATIVE" |
| 230 |
] |
| 231 |
}, |
| 232 |
"ThrottlingException":{ |
| 233 |
"type":"structure", |
| 234 |
"required":["Message"], |
| 235 |
"members":{ |
| 236 |
"Message":{"shape":"Message"} |
| 237 |
}, |
| 238 |
"error":{"httpStatusCode":429}, |
| 239 |
"exception":true |
| 240 |
}, |
| 241 |
"Transcript":{ |
| 242 |
"type":"structure", |
| 243 |
"required":[ |
| 244 |
"Id", |
| 245 |
"ParticipantId", |
| 246 |
"ParticipantRole", |
| 247 |
"Content", |
| 248 |
"BeginOffsetMillis", |
| 249 |
"EndOffsetMillis", |
| 250 |
"Sentiment" |
| 251 |
], |
| 252 |
"members":{ |
| 253 |
"Id":{"shape":"TranscriptId"}, |
| 254 |
"ParticipantId":{"shape":"ParticipantId"}, |
| 255 |
"ParticipantRole":{"shape":"ParticipantRole"}, |
| 256 |
"Content":{"shape":"TranscriptContent"}, |
| 257 |
"BeginOffsetMillis":{"shape":"OffsetMillis"}, |
| 258 |
"EndOffsetMillis":{"shape":"OffsetMillis"}, |
| 259 |
"Sentiment":{"shape":"SentimentValue"}, |
| 260 |
"IssuesDetected":{"shape":"IssuesDetected"} |
| 261 |
} |
| 262 |
}, |
| 263 |
"TranscriptContent":{ |
| 264 |
"type":"string", |
| 265 |
"min":1, |
| 266 |
"pattern":".*\\S.*" |
| 267 |
}, |
| 268 |
"TranscriptId":{ |
| 269 |
"type":"string", |
| 270 |
"max":256, |
| 271 |
"min":1, |
| 272 |
"pattern":".*\\S.*" |
| 273 |
} |
| 274 |
} |
| 275 |
} |