123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618 |
- {
- "version": "2.0",
- "metadata": {
- "apiVersion": "2020-08-07",
- "endpointPrefix": "runtime-v2-lex",
- "jsonVersion": "1.1",
- "protocol": "rest-json",
- "protocolSettings": {
- "h2": "eventstream"
- },
- "serviceAbbreviation": "Lex Runtime V2",
- "serviceFullName": "Amazon Lex Runtime V2",
- "serviceId": "Lex Runtime V2",
- "signatureVersion": "v4",
- "signingName": "lex",
- "uid": "runtime.lex.v2-2020-08-07"
- },
- "operations": {
- "DeleteSession": {
- "http": {
- "method": "DELETE",
- "requestUri": "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}"
- },
- "input": {
- "type": "structure",
- "required": [
- "botId",
- "botAliasId",
- "sessionId",
- "localeId"
- ],
- "members": {
- "botId": {
- "location": "uri",
- "locationName": "botId"
- },
- "botAliasId": {
- "location": "uri",
- "locationName": "botAliasId"
- },
- "localeId": {
- "location": "uri",
- "locationName": "localeId"
- },
- "sessionId": {
- "location": "uri",
- "locationName": "sessionId"
- }
- }
- },
- "output": {
- "type": "structure",
- "members": {
- "botId": {},
- "botAliasId": {},
- "localeId": {},
- "sessionId": {}
- }
- }
- },
- "GetSession": {
- "http": {
- "method": "GET",
- "requestUri": "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}"
- },
- "input": {
- "type": "structure",
- "required": [
- "botId",
- "botAliasId",
- "localeId",
- "sessionId"
- ],
- "members": {
- "botId": {
- "location": "uri",
- "locationName": "botId"
- },
- "botAliasId": {
- "location": "uri",
- "locationName": "botAliasId"
- },
- "localeId": {
- "location": "uri",
- "locationName": "localeId"
- },
- "sessionId": {
- "location": "uri",
- "locationName": "sessionId"
- }
- }
- },
- "output": {
- "type": "structure",
- "members": {
- "sessionId": {},
- "messages": {
- "shape": "Sa"
- },
- "interpretations": {
- "shape": "Sl"
- },
- "sessionState": {
- "shape": "S12"
- }
- }
- }
- },
- "PutSession": {
- "http": {
- "requestUri": "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}"
- },
- "input": {
- "type": "structure",
- "required": [
- "botId",
- "botAliasId",
- "localeId",
- "sessionState",
- "sessionId"
- ],
- "members": {
- "botId": {
- "location": "uri",
- "locationName": "botId"
- },
- "botAliasId": {
- "location": "uri",
- "locationName": "botAliasId"
- },
- "localeId": {
- "location": "uri",
- "locationName": "localeId"
- },
- "sessionId": {
- "location": "uri",
- "locationName": "sessionId"
- },
- "messages": {
- "shape": "Sa"
- },
- "sessionState": {
- "shape": "S12"
- },
- "requestAttributes": {
- "shape": "S1f"
- },
- "responseContentType": {
- "location": "header",
- "locationName": "ResponseContentType"
- }
- }
- },
- "output": {
- "type": "structure",
- "members": {
- "contentType": {
- "location": "header",
- "locationName": "Content-Type"
- },
- "messages": {
- "location": "header",
- "locationName": "x-amz-lex-messages"
- },
- "sessionState": {
- "location": "header",
- "locationName": "x-amz-lex-session-state"
- },
- "requestAttributes": {
- "location": "header",
- "locationName": "x-amz-lex-request-attributes"
- },
- "sessionId": {
- "location": "header",
- "locationName": "x-amz-lex-session-id"
- },
- "audioStream": {
- "shape": "S1r"
- }
- },
- "payload": "audioStream"
- }
- },
- "RecognizeText": {
- "http": {
- "requestUri": "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}/text"
- },
- "input": {
- "type": "structure",
- "required": [
- "botId",
- "botAliasId",
- "localeId",
- "text",
- "sessionId"
- ],
- "members": {
- "botId": {
- "location": "uri",
- "locationName": "botId"
- },
- "botAliasId": {
- "location": "uri",
- "locationName": "botAliasId"
- },
- "localeId": {
- "location": "uri",
- "locationName": "localeId"
- },
- "sessionId": {
- "location": "uri",
- "locationName": "sessionId"
- },
- "text": {
- "shape": "Sc"
- },
- "sessionState": {
- "shape": "S12"
- },
- "requestAttributes": {
- "shape": "S1f"
- }
- }
- },
- "output": {
- "type": "structure",
- "members": {
- "messages": {
- "shape": "Sa"
- },
- "sessionState": {
- "shape": "S12"
- },
- "interpretations": {
- "shape": "Sl"
- },
- "requestAttributes": {
- "shape": "S1f"
- },
- "sessionId": {},
- "recognizedBotMember": {
- "type": "structure",
- "required": [
- "botId"
- ],
- "members": {
- "botId": {},
- "botName": {}
- }
- }
- }
- }
- },
- "RecognizeUtterance": {
- "http": {
- "requestUri": "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}/utterance"
- },
- "input": {
- "type": "structure",
- "required": [
- "botId",
- "botAliasId",
- "localeId",
- "requestContentType",
- "sessionId"
- ],
- "members": {
- "botId": {
- "location": "uri",
- "locationName": "botId"
- },
- "botAliasId": {
- "location": "uri",
- "locationName": "botAliasId"
- },
- "localeId": {
- "location": "uri",
- "locationName": "localeId"
- },
- "sessionId": {
- "location": "uri",
- "locationName": "sessionId"
- },
- "sessionState": {
- "shape": "S1w",
- "location": "header",
- "locationName": "x-amz-lex-session-state"
- },
- "requestAttributes": {
- "shape": "S1w",
- "location": "header",
- "locationName": "x-amz-lex-request-attributes"
- },
- "requestContentType": {
- "location": "header",
- "locationName": "Content-Type"
- },
- "responseContentType": {
- "location": "header",
- "locationName": "Response-Content-Type"
- },
- "inputStream": {
- "shape": "S1r"
- }
- },
- "payload": "inputStream"
- },
- "output": {
- "type": "structure",
- "members": {
- "inputMode": {
- "location": "header",
- "locationName": "x-amz-lex-input-mode"
- },
- "contentType": {
- "location": "header",
- "locationName": "Content-Type"
- },
- "messages": {
- "location": "header",
- "locationName": "x-amz-lex-messages"
- },
- "interpretations": {
- "location": "header",
- "locationName": "x-amz-lex-interpretations"
- },
- "sessionState": {
- "location": "header",
- "locationName": "x-amz-lex-session-state"
- },
- "requestAttributes": {
- "location": "header",
- "locationName": "x-amz-lex-request-attributes"
- },
- "sessionId": {
- "location": "header",
- "locationName": "x-amz-lex-session-id"
- },
- "inputTranscript": {
- "location": "header",
- "locationName": "x-amz-lex-input-transcript"
- },
- "audioStream": {
- "shape": "S1r"
- },
- "recognizedBotMember": {
- "location": "header",
- "locationName": "x-amz-lex-recognized-bot-member"
- }
- },
- "payload": "audioStream"
- },
- "authtype": "v4-unsigned-body"
- }
- },
- "shapes": {
- "Sa": {
- "type": "list",
- "member": {
- "type": "structure",
- "required": [
- "contentType"
- ],
- "members": {
- "content": {
- "shape": "Sc"
- },
- "contentType": {},
- "imageResponseCard": {
- "type": "structure",
- "required": [
- "title"
- ],
- "members": {
- "title": {},
- "subtitle": {},
- "imageUrl": {},
- "buttons": {
- "type": "list",
- "member": {
- "type": "structure",
- "required": [
- "text",
- "value"
- ],
- "members": {
- "text": {},
- "value": {}
- }
- }
- }
- }
- }
- }
- }
- },
- "Sc": {
- "type": "string",
- "sensitive": true
- },
- "Sl": {
- "type": "list",
- "member": {
- "type": "structure",
- "members": {
- "nluConfidence": {
- "type": "structure",
- "members": {
- "score": {
- "type": "double"
- }
- }
- },
- "sentimentResponse": {
- "type": "structure",
- "members": {
- "sentiment": {},
- "sentimentScore": {
- "type": "structure",
- "members": {
- "positive": {
- "type": "double"
- },
- "negative": {
- "type": "double"
- },
- "neutral": {
- "type": "double"
- },
- "mixed": {
- "type": "double"
- }
- }
- }
- }
- },
- "intent": {
- "shape": "Ss"
- },
- "interpretationSource": {}
- }
- }
- },
- "Ss": {
- "type": "structure",
- "required": [
- "name"
- ],
- "members": {
- "name": {},
- "slots": {
- "shape": "St"
- },
- "state": {},
- "confirmationState": {}
- }
- },
- "St": {
- "type": "map",
- "key": {},
- "value": {
- "shape": "Su"
- }
- },
- "Su": {
- "type": "structure",
- "members": {
- "value": {
- "type": "structure",
- "required": [
- "interpretedValue"
- ],
- "members": {
- "originalValue": {},
- "interpretedValue": {},
- "resolvedValues": {
- "type": "list",
- "member": {}
- }
- }
- },
- "shape": {},
- "values": {
- "type": "list",
- "member": {
- "shape": "Su"
- }
- },
- "subSlots": {
- "shape": "St"
- }
- }
- },
- "S12": {
- "type": "structure",
- "members": {
- "dialogAction": {
- "type": "structure",
- "required": [
- "type"
- ],
- "members": {
- "type": {},
- "slotToElicit": {},
- "slotElicitationStyle": {},
- "subSlotToElicit": {
- "shape": "S16"
- }
- }
- },
- "intent": {
- "shape": "Ss"
- },
- "activeContexts": {
- "type": "list",
- "member": {
- "type": "structure",
- "required": [
- "name",
- "timeToLive",
- "contextAttributes"
- ],
- "members": {
- "name": {},
- "timeToLive": {
- "type": "structure",
- "required": [
- "timeToLiveInSeconds",
- "turnsToLive"
- ],
- "members": {
- "timeToLiveInSeconds": {
- "type": "integer"
- },
- "turnsToLive": {
- "type": "integer"
- }
- }
- },
- "contextAttributes": {
- "type": "map",
- "key": {},
- "value": {
- "shape": "Sc"
- }
- }
- }
- }
- },
- "sessionAttributes": {
- "shape": "S1f"
- },
- "originatingRequestId": {},
- "runtimeHints": {
- "type": "structure",
- "members": {
- "slotHints": {
- "type": "map",
- "key": {},
- "value": {
- "shape": "S1k"
- }
- }
- }
- }
- }
- },
- "S16": {
- "type": "structure",
- "required": [
- "name"
- ],
- "members": {
- "name": {},
- "subSlotToElicit": {
- "shape": "S16"
- }
- }
- },
- "S1f": {
- "type": "map",
- "key": {},
- "value": {}
- },
- "S1k": {
- "type": "map",
- "key": {},
- "value": {
- "type": "structure",
- "members": {
- "runtimeHintValues": {
- "type": "list",
- "member": {
- "type": "structure",
- "required": [
- "phrase"
- ],
- "members": {
- "phrase": {}
- }
- }
- },
- "subSlotHints": {
- "shape": "S1k"
- }
- }
- }
- },
- "S1r": {
- "type": "blob",
- "streaming": true
- },
- "S1w": {
- "type": "string",
- "sensitive": true
- }
- }
- }
|