aws-sdk-lexruntimev2 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,512 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::LexRuntimeV2
11
+ # @api private
12
+ module ClientApi
13
+
14
+ include Seahorse::Model
15
+
16
+ AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
17
+ ActiveContext = Shapes::StructureShape.new(name: 'ActiveContext')
18
+ ActiveContextName = Shapes::StringShape.new(name: 'ActiveContextName')
19
+ ActiveContextParametersMap = Shapes::MapShape.new(name: 'ActiveContextParametersMap')
20
+ ActiveContextTimeToLive = Shapes::StructureShape.new(name: 'ActiveContextTimeToLive')
21
+ ActiveContextTimeToLiveInSeconds = Shapes::IntegerShape.new(name: 'ActiveContextTimeToLiveInSeconds')
22
+ ActiveContextTurnsToLive = Shapes::IntegerShape.new(name: 'ActiveContextTurnsToLive')
23
+ ActiveContextsList = Shapes::ListShape.new(name: 'ActiveContextsList')
24
+ AttachmentTitle = Shapes::StringShape.new(name: 'AttachmentTitle')
25
+ AttachmentUrl = Shapes::StringShape.new(name: 'AttachmentUrl')
26
+ AudioChunk = Shapes::BlobShape.new(name: 'AudioChunk')
27
+ AudioInputEvent = Shapes::StructureShape.new(name: 'AudioInputEvent')
28
+ AudioResponseEvent = Shapes::StructureShape.new(name: 'AudioResponseEvent')
29
+ BadGatewayException = Shapes::StructureShape.new(name: 'BadGatewayException')
30
+ BlobStream = Shapes::BlobShape.new(name: 'BlobStream', streaming: true)
31
+ Boolean = Shapes::BooleanShape.new(name: 'Boolean')
32
+ BotAliasIdentifier = Shapes::StringShape.new(name: 'BotAliasIdentifier')
33
+ BotIdentifier = Shapes::StringShape.new(name: 'BotIdentifier')
34
+ Button = Shapes::StructureShape.new(name: 'Button')
35
+ ButtonText = Shapes::StringShape.new(name: 'ButtonText')
36
+ ButtonValue = Shapes::StringShape.new(name: 'ButtonValue')
37
+ ButtonsList = Shapes::ListShape.new(name: 'ButtonsList')
38
+ ConfidenceScore = Shapes::StructureShape.new(name: 'ConfidenceScore')
39
+ ConfigurationEvent = Shapes::StructureShape.new(name: 'ConfigurationEvent')
40
+ ConfirmationState = Shapes::StringShape.new(name: 'ConfirmationState')
41
+ ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
42
+ ConversationMode = Shapes::StringShape.new(name: 'ConversationMode')
43
+ DTMFInputEvent = Shapes::StructureShape.new(name: 'DTMFInputEvent')
44
+ DTMFRegex = Shapes::StringShape.new(name: 'DTMFRegex')
45
+ DeleteSessionRequest = Shapes::StructureShape.new(name: 'DeleteSessionRequest')
46
+ DeleteSessionResponse = Shapes::StructureShape.new(name: 'DeleteSessionResponse')
47
+ DependencyFailedException = Shapes::StructureShape.new(name: 'DependencyFailedException')
48
+ DialogAction = Shapes::StructureShape.new(name: 'DialogAction')
49
+ DialogActionType = Shapes::StringShape.new(name: 'DialogActionType')
50
+ DisconnectionEvent = Shapes::StructureShape.new(name: 'DisconnectionEvent')
51
+ Double = Shapes::FloatShape.new(name: 'Double')
52
+ EpochMillis = Shapes::IntegerShape.new(name: 'EpochMillis')
53
+ EventId = Shapes::StringShape.new(name: 'EventId')
54
+ GetSessionRequest = Shapes::StructureShape.new(name: 'GetSessionRequest')
55
+ GetSessionResponse = Shapes::StructureShape.new(name: 'GetSessionResponse')
56
+ HeartbeatEvent = Shapes::StructureShape.new(name: 'HeartbeatEvent')
57
+ ImageResponseCard = Shapes::StructureShape.new(name: 'ImageResponseCard')
58
+ InputMode = Shapes::StringShape.new(name: 'InputMode')
59
+ Intent = Shapes::StructureShape.new(name: 'Intent')
60
+ IntentResultEvent = Shapes::StructureShape.new(name: 'IntentResultEvent')
61
+ IntentState = Shapes::StringShape.new(name: 'IntentState')
62
+ InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
63
+ Interpretation = Shapes::StructureShape.new(name: 'Interpretation')
64
+ Interpretations = Shapes::ListShape.new(name: 'Interpretations')
65
+ LocaleId = Shapes::StringShape.new(name: 'LocaleId')
66
+ Message = Shapes::StructureShape.new(name: 'Message')
67
+ MessageContentType = Shapes::StringShape.new(name: 'MessageContentType')
68
+ Messages = Shapes::ListShape.new(name: 'Messages')
69
+ NonEmptyString = Shapes::StringShape.new(name: 'NonEmptyString')
70
+ ParameterName = Shapes::StringShape.new(name: 'ParameterName')
71
+ PlaybackCompletionEvent = Shapes::StructureShape.new(name: 'PlaybackCompletionEvent')
72
+ PlaybackInterruptionEvent = Shapes::StructureShape.new(name: 'PlaybackInterruptionEvent')
73
+ PlaybackInterruptionReason = Shapes::StringShape.new(name: 'PlaybackInterruptionReason')
74
+ PutSessionRequest = Shapes::StructureShape.new(name: 'PutSessionRequest')
75
+ PutSessionResponse = Shapes::StructureShape.new(name: 'PutSessionResponse')
76
+ RecognizeTextRequest = Shapes::StructureShape.new(name: 'RecognizeTextRequest')
77
+ RecognizeTextResponse = Shapes::StructureShape.new(name: 'RecognizeTextResponse')
78
+ RecognizeUtteranceRequest = Shapes::StructureShape.new(name: 'RecognizeUtteranceRequest')
79
+ RecognizeUtteranceResponse = Shapes::StructureShape.new(name: 'RecognizeUtteranceResponse')
80
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
81
+ SensitiveNonEmptyString = Shapes::StringShape.new(name: 'SensitiveNonEmptyString')
82
+ SentimentResponse = Shapes::StructureShape.new(name: 'SentimentResponse')
83
+ SentimentScore = Shapes::StructureShape.new(name: 'SentimentScore')
84
+ SentimentType = Shapes::StringShape.new(name: 'SentimentType')
85
+ SessionId = Shapes::StringShape.new(name: 'SessionId')
86
+ SessionState = Shapes::StructureShape.new(name: 'SessionState')
87
+ Slot = Shapes::StructureShape.new(name: 'Slot')
88
+ Slots = Shapes::MapShape.new(name: 'Slots')
89
+ StartConversationRequest = Shapes::StructureShape.new(name: 'StartConversationRequest')
90
+ StartConversationRequestEventStream = Shapes::StructureShape.new(name: 'StartConversationRequestEventStream')
91
+ StartConversationResponse = Shapes::StructureShape.new(name: 'StartConversationResponse')
92
+ StartConversationResponseEventStream = Shapes::StructureShape.new(name: 'StartConversationResponseEventStream')
93
+ String = Shapes::StringShape.new(name: 'String')
94
+ StringList = Shapes::ListShape.new(name: 'StringList')
95
+ StringMap = Shapes::MapShape.new(name: 'StringMap')
96
+ Text = Shapes::StringShape.new(name: 'Text')
97
+ TextInputEvent = Shapes::StructureShape.new(name: 'TextInputEvent')
98
+ TextResponseEvent = Shapes::StructureShape.new(name: 'TextResponseEvent')
99
+ ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
100
+ TranscriptEvent = Shapes::StructureShape.new(name: 'TranscriptEvent')
101
+ ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
102
+ Value = Shapes::StructureShape.new(name: 'Value')
103
+
104
+ AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
105
+ AccessDeniedException.struct_class = Types::AccessDeniedException
106
+
107
+ ActiveContext.add_member(:name, Shapes::ShapeRef.new(shape: ActiveContextName, required: true, location_name: "name"))
108
+ ActiveContext.add_member(:time_to_live, Shapes::ShapeRef.new(shape: ActiveContextTimeToLive, required: true, location_name: "timeToLive"))
109
+ ActiveContext.add_member(:context_attributes, Shapes::ShapeRef.new(shape: ActiveContextParametersMap, location_name: "contextAttributes"))
110
+ ActiveContext.struct_class = Types::ActiveContext
111
+
112
+ ActiveContextParametersMap.key = Shapes::ShapeRef.new(shape: ParameterName)
113
+ ActiveContextParametersMap.value = Shapes::ShapeRef.new(shape: Text)
114
+
115
+ ActiveContextTimeToLive.add_member(:time_to_live_in_seconds, Shapes::ShapeRef.new(shape: ActiveContextTimeToLiveInSeconds, required: true, location_name: "timeToLiveInSeconds"))
116
+ ActiveContextTimeToLive.add_member(:turns_to_live, Shapes::ShapeRef.new(shape: ActiveContextTurnsToLive, required: true, location_name: "turnsToLive"))
117
+ ActiveContextTimeToLive.struct_class = Types::ActiveContextTimeToLive
118
+
119
+ ActiveContextsList.member = Shapes::ShapeRef.new(shape: ActiveContext)
120
+
121
+ AudioInputEvent.add_member(:audio_chunk, Shapes::ShapeRef.new(shape: AudioChunk, location_name: "audioChunk"))
122
+ AudioInputEvent.add_member(:content_type, Shapes::ShapeRef.new(shape: NonEmptyString, required: true, location_name: "contentType"))
123
+ AudioInputEvent.add_member(:event_id, Shapes::ShapeRef.new(shape: EventId, location_name: "eventId"))
124
+ AudioInputEvent.add_member(:client_timestamp_millis, Shapes::ShapeRef.new(shape: EpochMillis, location_name: "clientTimestampMillis"))
125
+ AudioInputEvent.struct_class = Types::AudioInputEvent
126
+
127
+ AudioResponseEvent.add_member(:audio_chunk, Shapes::ShapeRef.new(shape: AudioChunk, location_name: "audioChunk"))
128
+ AudioResponseEvent.add_member(:content_type, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "contentType"))
129
+ AudioResponseEvent.add_member(:event_id, Shapes::ShapeRef.new(shape: EventId, location_name: "eventId"))
130
+ AudioResponseEvent.struct_class = Types::AudioResponseEvent
131
+
132
+ BadGatewayException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
133
+ BadGatewayException.struct_class = Types::BadGatewayException
134
+
135
+ Button.add_member(:text, Shapes::ShapeRef.new(shape: ButtonText, required: true, location_name: "text"))
136
+ Button.add_member(:value, Shapes::ShapeRef.new(shape: ButtonValue, required: true, location_name: "value"))
137
+ Button.struct_class = Types::Button
138
+
139
+ ButtonsList.member = Shapes::ShapeRef.new(shape: Button)
140
+
141
+ ConfidenceScore.add_member(:score, Shapes::ShapeRef.new(shape: Double, location_name: "score"))
142
+ ConfidenceScore.struct_class = Types::ConfidenceScore
143
+
144
+ ConfigurationEvent.add_member(:request_attributes, Shapes::ShapeRef.new(shape: StringMap, location_name: "requestAttributes"))
145
+ ConfigurationEvent.add_member(:response_content_type, Shapes::ShapeRef.new(shape: NonEmptyString, required: true, location_name: "responseContentType"))
146
+ ConfigurationEvent.add_member(:session_state, Shapes::ShapeRef.new(shape: SessionState, location_name: "sessionState"))
147
+ ConfigurationEvent.add_member(:welcome_messages, Shapes::ShapeRef.new(shape: Messages, location_name: "welcomeMessages"))
148
+ ConfigurationEvent.add_member(:disable_playback, Shapes::ShapeRef.new(shape: Boolean, location_name: "disablePlayback"))
149
+ ConfigurationEvent.add_member(:event_id, Shapes::ShapeRef.new(shape: EventId, location_name: "eventId"))
150
+ ConfigurationEvent.add_member(:client_timestamp_millis, Shapes::ShapeRef.new(shape: EpochMillis, location_name: "clientTimestampMillis"))
151
+ ConfigurationEvent.struct_class = Types::ConfigurationEvent
152
+
153
+ ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
154
+ ConflictException.struct_class = Types::ConflictException
155
+
156
+ DTMFInputEvent.add_member(:input_character, Shapes::ShapeRef.new(shape: DTMFRegex, required: true, location_name: "inputCharacter"))
157
+ DTMFInputEvent.add_member(:event_id, Shapes::ShapeRef.new(shape: EventId, location_name: "eventId"))
158
+ DTMFInputEvent.add_member(:client_timestamp_millis, Shapes::ShapeRef.new(shape: EpochMillis, location_name: "clientTimestampMillis"))
159
+ DTMFInputEvent.struct_class = Types::DTMFInputEvent
160
+
161
+ DeleteSessionRequest.add_member(:bot_id, Shapes::ShapeRef.new(shape: BotIdentifier, required: true, location: "uri", location_name: "botId"))
162
+ DeleteSessionRequest.add_member(:bot_alias_id, Shapes::ShapeRef.new(shape: BotAliasIdentifier, required: true, location: "uri", location_name: "botAliasId"))
163
+ DeleteSessionRequest.add_member(:locale_id, Shapes::ShapeRef.new(shape: LocaleId, required: true, location: "uri", location_name: "localeId"))
164
+ DeleteSessionRequest.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, required: true, location: "uri", location_name: "sessionId"))
165
+ DeleteSessionRequest.struct_class = Types::DeleteSessionRequest
166
+
167
+ DeleteSessionResponse.add_member(:bot_id, Shapes::ShapeRef.new(shape: BotIdentifier, location_name: "botId"))
168
+ DeleteSessionResponse.add_member(:bot_alias_id, Shapes::ShapeRef.new(shape: BotAliasIdentifier, location_name: "botAliasId"))
169
+ DeleteSessionResponse.add_member(:locale_id, Shapes::ShapeRef.new(shape: LocaleId, location_name: "localeId"))
170
+ DeleteSessionResponse.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, location_name: "sessionId"))
171
+ DeleteSessionResponse.struct_class = Types::DeleteSessionResponse
172
+
173
+ DependencyFailedException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
174
+ DependencyFailedException.struct_class = Types::DependencyFailedException
175
+
176
+ DialogAction.add_member(:type, Shapes::ShapeRef.new(shape: DialogActionType, required: true, location_name: "type"))
177
+ DialogAction.add_member(:slot_to_elicit, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "slotToElicit"))
178
+ DialogAction.struct_class = Types::DialogAction
179
+
180
+ DisconnectionEvent.add_member(:event_id, Shapes::ShapeRef.new(shape: EventId, location_name: "eventId"))
181
+ DisconnectionEvent.add_member(:client_timestamp_millis, Shapes::ShapeRef.new(shape: EpochMillis, location_name: "clientTimestampMillis"))
182
+ DisconnectionEvent.struct_class = Types::DisconnectionEvent
183
+
184
+ GetSessionRequest.add_member(:bot_id, Shapes::ShapeRef.new(shape: BotIdentifier, required: true, location: "uri", location_name: "botId"))
185
+ GetSessionRequest.add_member(:bot_alias_id, Shapes::ShapeRef.new(shape: BotAliasIdentifier, required: true, location: "uri", location_name: "botAliasId"))
186
+ GetSessionRequest.add_member(:locale_id, Shapes::ShapeRef.new(shape: LocaleId, required: true, location: "uri", location_name: "localeId"))
187
+ GetSessionRequest.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, required: true, location: "uri", location_name: "sessionId"))
188
+ GetSessionRequest.struct_class = Types::GetSessionRequest
189
+
190
+ GetSessionResponse.add_member(:session_id, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "sessionId"))
191
+ GetSessionResponse.add_member(:messages, Shapes::ShapeRef.new(shape: Messages, location_name: "messages"))
192
+ GetSessionResponse.add_member(:interpretations, Shapes::ShapeRef.new(shape: Interpretations, location_name: "interpretations"))
193
+ GetSessionResponse.add_member(:session_state, Shapes::ShapeRef.new(shape: SessionState, location_name: "sessionState"))
194
+ GetSessionResponse.struct_class = Types::GetSessionResponse
195
+
196
+ HeartbeatEvent.add_member(:event_id, Shapes::ShapeRef.new(shape: EventId, location_name: "eventId"))
197
+ HeartbeatEvent.struct_class = Types::HeartbeatEvent
198
+
199
+ ImageResponseCard.add_member(:title, Shapes::ShapeRef.new(shape: AttachmentTitle, required: true, location_name: "title"))
200
+ ImageResponseCard.add_member(:subtitle, Shapes::ShapeRef.new(shape: AttachmentTitle, location_name: "subtitle"))
201
+ ImageResponseCard.add_member(:image_url, Shapes::ShapeRef.new(shape: AttachmentUrl, location_name: "imageUrl"))
202
+ ImageResponseCard.add_member(:buttons, Shapes::ShapeRef.new(shape: ButtonsList, location_name: "buttons"))
203
+ ImageResponseCard.struct_class = Types::ImageResponseCard
204
+
205
+ Intent.add_member(:name, Shapes::ShapeRef.new(shape: NonEmptyString, required: true, location_name: "name"))
206
+ Intent.add_member(:slots, Shapes::ShapeRef.new(shape: Slots, location_name: "slots"))
207
+ Intent.add_member(:state, Shapes::ShapeRef.new(shape: IntentState, location_name: "state"))
208
+ Intent.add_member(:confirmation_state, Shapes::ShapeRef.new(shape: ConfirmationState, location_name: "confirmationState"))
209
+ Intent.struct_class = Types::Intent
210
+
211
+ IntentResultEvent.add_member(:input_mode, Shapes::ShapeRef.new(shape: InputMode, location_name: "inputMode"))
212
+ IntentResultEvent.add_member(:interpretations, Shapes::ShapeRef.new(shape: Interpretations, location_name: "interpretations"))
213
+ IntentResultEvent.add_member(:session_state, Shapes::ShapeRef.new(shape: SessionState, location_name: "sessionState"))
214
+ IntentResultEvent.add_member(:request_attributes, Shapes::ShapeRef.new(shape: StringMap, location_name: "requestAttributes"))
215
+ IntentResultEvent.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, location_name: "sessionId"))
216
+ IntentResultEvent.add_member(:event_id, Shapes::ShapeRef.new(shape: EventId, location_name: "eventId"))
217
+ IntentResultEvent.struct_class = Types::IntentResultEvent
218
+
219
+ InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
220
+ InternalServerException.struct_class = Types::InternalServerException
221
+
222
+ Interpretation.add_member(:nlu_confidence, Shapes::ShapeRef.new(shape: ConfidenceScore, location_name: "nluConfidence"))
223
+ Interpretation.add_member(:sentiment_response, Shapes::ShapeRef.new(shape: SentimentResponse, location_name: "sentimentResponse"))
224
+ Interpretation.add_member(:intent, Shapes::ShapeRef.new(shape: Intent, location_name: "intent"))
225
+ Interpretation.struct_class = Types::Interpretation
226
+
227
+ Interpretations.member = Shapes::ShapeRef.new(shape: Interpretation)
228
+
229
+ Message.add_member(:content, Shapes::ShapeRef.new(shape: Text, location_name: "content"))
230
+ Message.add_member(:content_type, Shapes::ShapeRef.new(shape: MessageContentType, location_name: "contentType"))
231
+ Message.add_member(:image_response_card, Shapes::ShapeRef.new(shape: ImageResponseCard, location_name: "imageResponseCard"))
232
+ Message.struct_class = Types::Message
233
+
234
+ Messages.member = Shapes::ShapeRef.new(shape: Message)
235
+
236
+ PlaybackCompletionEvent.add_member(:event_id, Shapes::ShapeRef.new(shape: EventId, location_name: "eventId"))
237
+ PlaybackCompletionEvent.add_member(:client_timestamp_millis, Shapes::ShapeRef.new(shape: EpochMillis, location_name: "clientTimestampMillis"))
238
+ PlaybackCompletionEvent.struct_class = Types::PlaybackCompletionEvent
239
+
240
+ PlaybackInterruptionEvent.add_member(:event_reason, Shapes::ShapeRef.new(shape: PlaybackInterruptionReason, location_name: "eventReason"))
241
+ PlaybackInterruptionEvent.add_member(:caused_by_event_id, Shapes::ShapeRef.new(shape: EventId, location_name: "causedByEventId"))
242
+ PlaybackInterruptionEvent.add_member(:event_id, Shapes::ShapeRef.new(shape: EventId, location_name: "eventId"))
243
+ PlaybackInterruptionEvent.struct_class = Types::PlaybackInterruptionEvent
244
+
245
+ PutSessionRequest.add_member(:bot_id, Shapes::ShapeRef.new(shape: BotIdentifier, required: true, location: "uri", location_name: "botId"))
246
+ PutSessionRequest.add_member(:bot_alias_id, Shapes::ShapeRef.new(shape: BotAliasIdentifier, required: true, location: "uri", location_name: "botAliasId"))
247
+ PutSessionRequest.add_member(:locale_id, Shapes::ShapeRef.new(shape: LocaleId, required: true, location: "uri", location_name: "localeId"))
248
+ PutSessionRequest.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, required: true, location: "uri", location_name: "sessionId"))
249
+ PutSessionRequest.add_member(:messages, Shapes::ShapeRef.new(shape: Messages, location_name: "messages"))
250
+ PutSessionRequest.add_member(:session_state, Shapes::ShapeRef.new(shape: SessionState, required: true, location_name: "sessionState"))
251
+ PutSessionRequest.add_member(:request_attributes, Shapes::ShapeRef.new(shape: StringMap, location_name: "requestAttributes"))
252
+ PutSessionRequest.add_member(:response_content_type, Shapes::ShapeRef.new(shape: NonEmptyString, location: "header", location_name: "ResponseContentType"))
253
+ PutSessionRequest.struct_class = Types::PutSessionRequest
254
+
255
+ PutSessionResponse.add_member(:content_type, Shapes::ShapeRef.new(shape: NonEmptyString, location: "header", location_name: "Content-Type"))
256
+ PutSessionResponse.add_member(:messages, Shapes::ShapeRef.new(shape: NonEmptyString, location: "header", location_name: "x-amz-lex-messages"))
257
+ PutSessionResponse.add_member(:session_state, Shapes::ShapeRef.new(shape: NonEmptyString, location: "header", location_name: "x-amz-lex-session-state"))
258
+ PutSessionResponse.add_member(:request_attributes, Shapes::ShapeRef.new(shape: NonEmptyString, location: "header", location_name: "x-amz-lex-request-attributes"))
259
+ PutSessionResponse.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, location: "header", location_name: "x-amz-lex-session-id"))
260
+ PutSessionResponse.add_member(:audio_stream, Shapes::ShapeRef.new(shape: BlobStream, location_name: "audioStream"))
261
+ PutSessionResponse.struct_class = Types::PutSessionResponse
262
+ PutSessionResponse[:payload] = :audio_stream
263
+ PutSessionResponse[:payload_member] = PutSessionResponse.member(:audio_stream)
264
+
265
+ RecognizeTextRequest.add_member(:bot_id, Shapes::ShapeRef.new(shape: BotIdentifier, required: true, location: "uri", location_name: "botId"))
266
+ RecognizeTextRequest.add_member(:bot_alias_id, Shapes::ShapeRef.new(shape: BotAliasIdentifier, required: true, location: "uri", location_name: "botAliasId"))
267
+ RecognizeTextRequest.add_member(:locale_id, Shapes::ShapeRef.new(shape: LocaleId, required: true, location: "uri", location_name: "localeId"))
268
+ RecognizeTextRequest.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, required: true, location: "uri", location_name: "sessionId"))
269
+ RecognizeTextRequest.add_member(:text, Shapes::ShapeRef.new(shape: Text, required: true, location_name: "text"))
270
+ RecognizeTextRequest.add_member(:session_state, Shapes::ShapeRef.new(shape: SessionState, location_name: "sessionState"))
271
+ RecognizeTextRequest.add_member(:request_attributes, Shapes::ShapeRef.new(shape: StringMap, location_name: "requestAttributes"))
272
+ RecognizeTextRequest.struct_class = Types::RecognizeTextRequest
273
+
274
+ RecognizeTextResponse.add_member(:messages, Shapes::ShapeRef.new(shape: Messages, location_name: "messages"))
275
+ RecognizeTextResponse.add_member(:session_state, Shapes::ShapeRef.new(shape: SessionState, location_name: "sessionState"))
276
+ RecognizeTextResponse.add_member(:interpretations, Shapes::ShapeRef.new(shape: Interpretations, location_name: "interpretations"))
277
+ RecognizeTextResponse.add_member(:request_attributes, Shapes::ShapeRef.new(shape: StringMap, location_name: "requestAttributes"))
278
+ RecognizeTextResponse.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, location_name: "sessionId"))
279
+ RecognizeTextResponse.struct_class = Types::RecognizeTextResponse
280
+
281
+ RecognizeUtteranceRequest.add_member(:bot_id, Shapes::ShapeRef.new(shape: BotIdentifier, required: true, location: "uri", location_name: "botId"))
282
+ RecognizeUtteranceRequest.add_member(:bot_alias_id, Shapes::ShapeRef.new(shape: BotAliasIdentifier, required: true, location: "uri", location_name: "botAliasId"))
283
+ RecognizeUtteranceRequest.add_member(:locale_id, Shapes::ShapeRef.new(shape: LocaleId, required: true, location: "uri", location_name: "localeId"))
284
+ RecognizeUtteranceRequest.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, required: true, location: "uri", location_name: "sessionId"))
285
+ RecognizeUtteranceRequest.add_member(:session_state, Shapes::ShapeRef.new(shape: SensitiveNonEmptyString, location: "header", location_name: "x-amz-lex-session-state"))
286
+ RecognizeUtteranceRequest.add_member(:request_attributes, Shapes::ShapeRef.new(shape: SensitiveNonEmptyString, location: "header", location_name: "x-amz-lex-request-attributes"))
287
+ RecognizeUtteranceRequest.add_member(:request_content_type, Shapes::ShapeRef.new(shape: NonEmptyString, required: true, location: "header", location_name: "Content-Type"))
288
+ RecognizeUtteranceRequest.add_member(:response_content_type, Shapes::ShapeRef.new(shape: NonEmptyString, location: "header", location_name: "Response-Content-Type"))
289
+ RecognizeUtteranceRequest.add_member(:input_stream, Shapes::ShapeRef.new(shape: BlobStream, location_name: "inputStream"))
290
+ RecognizeUtteranceRequest.struct_class = Types::RecognizeUtteranceRequest
291
+ RecognizeUtteranceRequest[:payload] = :input_stream
292
+ RecognizeUtteranceRequest[:payload_member] = RecognizeUtteranceRequest.member(:input_stream)
293
+
294
+ RecognizeUtteranceResponse.add_member(:input_mode, Shapes::ShapeRef.new(shape: NonEmptyString, location: "header", location_name: "x-amz-lex-input-mode"))
295
+ RecognizeUtteranceResponse.add_member(:content_type, Shapes::ShapeRef.new(shape: NonEmptyString, location: "header", location_name: "Content-Type"))
296
+ RecognizeUtteranceResponse.add_member(:messages, Shapes::ShapeRef.new(shape: NonEmptyString, location: "header", location_name: "x-amz-lex-messages"))
297
+ RecognizeUtteranceResponse.add_member(:interpretations, Shapes::ShapeRef.new(shape: NonEmptyString, location: "header", location_name: "x-amz-lex-interpretations"))
298
+ RecognizeUtteranceResponse.add_member(:session_state, Shapes::ShapeRef.new(shape: NonEmptyString, location: "header", location_name: "x-amz-lex-session-state"))
299
+ RecognizeUtteranceResponse.add_member(:request_attributes, Shapes::ShapeRef.new(shape: NonEmptyString, location: "header", location_name: "x-amz-lex-request-attributes"))
300
+ RecognizeUtteranceResponse.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, location: "header", location_name: "x-amz-lex-session-id"))
301
+ RecognizeUtteranceResponse.add_member(:input_transcript, Shapes::ShapeRef.new(shape: NonEmptyString, location: "header", location_name: "x-amz-lex-input-transcript"))
302
+ RecognizeUtteranceResponse.add_member(:audio_stream, Shapes::ShapeRef.new(shape: BlobStream, location_name: "audioStream"))
303
+ RecognizeUtteranceResponse.struct_class = Types::RecognizeUtteranceResponse
304
+ RecognizeUtteranceResponse[:payload] = :audio_stream
305
+ RecognizeUtteranceResponse[:payload_member] = RecognizeUtteranceResponse.member(:audio_stream)
306
+
307
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
308
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
309
+
310
+ SentimentResponse.add_member(:sentiment, Shapes::ShapeRef.new(shape: SentimentType, location_name: "sentiment"))
311
+ SentimentResponse.add_member(:sentiment_score, Shapes::ShapeRef.new(shape: SentimentScore, location_name: "sentimentScore"))
312
+ SentimentResponse.struct_class = Types::SentimentResponse
313
+
314
+ SentimentScore.add_member(:positive, Shapes::ShapeRef.new(shape: Double, location_name: "positive"))
315
+ SentimentScore.add_member(:negative, Shapes::ShapeRef.new(shape: Double, location_name: "negative"))
316
+ SentimentScore.add_member(:neutral, Shapes::ShapeRef.new(shape: Double, location_name: "neutral"))
317
+ SentimentScore.add_member(:mixed, Shapes::ShapeRef.new(shape: Double, location_name: "mixed"))
318
+ SentimentScore.struct_class = Types::SentimentScore
319
+
320
+ SessionState.add_member(:dialog_action, Shapes::ShapeRef.new(shape: DialogAction, location_name: "dialogAction"))
321
+ SessionState.add_member(:intent, Shapes::ShapeRef.new(shape: Intent, location_name: "intent"))
322
+ SessionState.add_member(:active_contexts, Shapes::ShapeRef.new(shape: ActiveContextsList, location_name: "activeContexts"))
323
+ SessionState.add_member(:session_attributes, Shapes::ShapeRef.new(shape: StringMap, location_name: "sessionAttributes"))
324
+ SessionState.add_member(:originating_request_id, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "originatingRequestId"))
325
+ SessionState.struct_class = Types::SessionState
326
+
327
+ Slot.add_member(:value, Shapes::ShapeRef.new(shape: Value, location_name: "value"))
328
+ Slot.struct_class = Types::Slot
329
+
330
+ Slots.key = Shapes::ShapeRef.new(shape: NonEmptyString)
331
+ Slots.value = Shapes::ShapeRef.new(shape: Slot)
332
+
333
+ StartConversationRequest.add_member(:bot_id, Shapes::ShapeRef.new(shape: BotIdentifier, required: true, location: "uri", location_name: "botId"))
334
+ StartConversationRequest.add_member(:bot_alias_id, Shapes::ShapeRef.new(shape: BotAliasIdentifier, required: true, location: "uri", location_name: "botAliasId"))
335
+ StartConversationRequest.add_member(:locale_id, Shapes::ShapeRef.new(shape: LocaleId, required: true, location: "uri", location_name: "localeId"))
336
+ StartConversationRequest.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, required: true, location: "uri", location_name: "sessionId"))
337
+ StartConversationRequest.add_member(:conversation_mode, Shapes::ShapeRef.new(shape: ConversationMode, location: "header", location_name: "x-amz-lex-conversation-mode"))
338
+ StartConversationRequest.add_member(:request_event_stream, Shapes::ShapeRef.new(shape: StartConversationRequestEventStream, required: true, eventstream: true, location_name: "requestEventStream"))
339
+ StartConversationRequest.struct_class = Types::StartConversationRequest
340
+ StartConversationRequest[:payload] = :request_event_stream
341
+ StartConversationRequest[:payload_member] = StartConversationRequest.member(:request_event_stream)
342
+
343
+ StartConversationRequestEventStream.add_member(:configuration_event, Shapes::ShapeRef.new(shape: ConfigurationEvent, event: true, location_name: "ConfigurationEvent"))
344
+ StartConversationRequestEventStream.add_member(:audio_input_event, Shapes::ShapeRef.new(shape: AudioInputEvent, event: true, location_name: "AudioInputEvent"))
345
+ StartConversationRequestEventStream.add_member(:dtmf_input_event, Shapes::ShapeRef.new(shape: DTMFInputEvent, event: true, location_name: "DTMFInputEvent"))
346
+ StartConversationRequestEventStream.add_member(:text_input_event, Shapes::ShapeRef.new(shape: TextInputEvent, event: true, location_name: "TextInputEvent"))
347
+ StartConversationRequestEventStream.add_member(:playback_completion_event, Shapes::ShapeRef.new(shape: PlaybackCompletionEvent, event: true, location_name: "PlaybackCompletionEvent"))
348
+ StartConversationRequestEventStream.add_member(:disconnection_event, Shapes::ShapeRef.new(shape: DisconnectionEvent, event: true, location_name: "DisconnectionEvent"))
349
+ StartConversationRequestEventStream.struct_class = Types::StartConversationRequestEventStream
350
+
351
+ StartConversationResponse.add_member(:response_event_stream, Shapes::ShapeRef.new(shape: StartConversationResponseEventStream, eventstream: true, location_name: "responseEventStream"))
352
+ StartConversationResponse.struct_class = Types::StartConversationResponse
353
+ StartConversationResponse[:payload] = :response_event_stream
354
+ StartConversationResponse[:payload_member] = StartConversationResponse.member(:response_event_stream)
355
+
356
+ StartConversationResponseEventStream.add_member(:playback_interruption_event, Shapes::ShapeRef.new(shape: PlaybackInterruptionEvent, event: true, location_name: "PlaybackInterruptionEvent"))
357
+ StartConversationResponseEventStream.add_member(:transcript_event, Shapes::ShapeRef.new(shape: TranscriptEvent, event: true, location_name: "TranscriptEvent"))
358
+ StartConversationResponseEventStream.add_member(:intent_result_event, Shapes::ShapeRef.new(shape: IntentResultEvent, event: true, location_name: "IntentResultEvent"))
359
+ StartConversationResponseEventStream.add_member(:text_response_event, Shapes::ShapeRef.new(shape: TextResponseEvent, event: true, location_name: "TextResponseEvent"))
360
+ StartConversationResponseEventStream.add_member(:audio_response_event, Shapes::ShapeRef.new(shape: AudioResponseEvent, event: true, location_name: "AudioResponseEvent"))
361
+ StartConversationResponseEventStream.add_member(:heartbeat_event, Shapes::ShapeRef.new(shape: HeartbeatEvent, event: true, location_name: "HeartbeatEvent"))
362
+ StartConversationResponseEventStream.add_member(:access_denied_exception, Shapes::ShapeRef.new(shape: AccessDeniedException, event: true, location_name: "AccessDeniedException"))
363
+ StartConversationResponseEventStream.add_member(:resource_not_found_exception, Shapes::ShapeRef.new(shape: ResourceNotFoundException, event: true, location_name: "ResourceNotFoundException"))
364
+ StartConversationResponseEventStream.add_member(:validation_exception, Shapes::ShapeRef.new(shape: ValidationException, event: true, location_name: "ValidationException"))
365
+ StartConversationResponseEventStream.add_member(:throttling_exception, Shapes::ShapeRef.new(shape: ThrottlingException, event: true, location_name: "ThrottlingException"))
366
+ StartConversationResponseEventStream.add_member(:internal_server_exception, Shapes::ShapeRef.new(shape: InternalServerException, event: true, location_name: "InternalServerException"))
367
+ StartConversationResponseEventStream.add_member(:conflict_exception, Shapes::ShapeRef.new(shape: ConflictException, event: true, location_name: "ConflictException"))
368
+ StartConversationResponseEventStream.add_member(:dependency_failed_exception, Shapes::ShapeRef.new(shape: DependencyFailedException, event: true, location_name: "DependencyFailedException"))
369
+ StartConversationResponseEventStream.add_member(:bad_gateway_exception, Shapes::ShapeRef.new(shape: BadGatewayException, event: true, location_name: "BadGatewayException"))
370
+ StartConversationResponseEventStream.struct_class = Types::StartConversationResponseEventStream
371
+
372
+ StringList.member = Shapes::ShapeRef.new(shape: NonEmptyString)
373
+
374
+ StringMap.key = Shapes::ShapeRef.new(shape: NonEmptyString)
375
+ StringMap.value = Shapes::ShapeRef.new(shape: String)
376
+
377
+ TextInputEvent.add_member(:text, Shapes::ShapeRef.new(shape: Text, required: true, location_name: "text"))
378
+ TextInputEvent.add_member(:event_id, Shapes::ShapeRef.new(shape: EventId, location_name: "eventId"))
379
+ TextInputEvent.add_member(:client_timestamp_millis, Shapes::ShapeRef.new(shape: EpochMillis, location_name: "clientTimestampMillis"))
380
+ TextInputEvent.struct_class = Types::TextInputEvent
381
+
382
+ TextResponseEvent.add_member(:messages, Shapes::ShapeRef.new(shape: Messages, location_name: "messages"))
383
+ TextResponseEvent.add_member(:event_id, Shapes::ShapeRef.new(shape: EventId, location_name: "eventId"))
384
+ TextResponseEvent.struct_class = Types::TextResponseEvent
385
+
386
+ ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
387
+ ThrottlingException.struct_class = Types::ThrottlingException
388
+
389
+ TranscriptEvent.add_member(:transcript, Shapes::ShapeRef.new(shape: String, location_name: "transcript"))
390
+ TranscriptEvent.add_member(:event_id, Shapes::ShapeRef.new(shape: EventId, location_name: "eventId"))
391
+ TranscriptEvent.struct_class = Types::TranscriptEvent
392
+
393
+ ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
394
+ ValidationException.struct_class = Types::ValidationException
395
+
396
+ Value.add_member(:original_value, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "originalValue"))
397
+ Value.add_member(:interpreted_value, Shapes::ShapeRef.new(shape: NonEmptyString, required: true, location_name: "interpretedValue"))
398
+ Value.add_member(:resolved_values, Shapes::ShapeRef.new(shape: StringList, location_name: "resolvedValues"))
399
+ Value.struct_class = Types::Value
400
+
401
+
402
+ # @api private
403
+ API = Seahorse::Model::Api.new.tap do |api|
404
+
405
+ api.version = "2020-08-07"
406
+
407
+ api.metadata = {
408
+ "apiVersion" => "2020-08-07",
409
+ "endpointPrefix" => "runtime-v2-lex",
410
+ "jsonVersion" => "1.1",
411
+ "protocol" => "rest-json",
412
+ "protocolSettings" => {"h2"=>"eventstream"},
413
+ "serviceAbbreviation" => "Lex Runtime V2",
414
+ "serviceFullName" => "Amazon Lex Runtime V2",
415
+ "serviceId" => "Lex Runtime V2",
416
+ "signatureVersion" => "v4",
417
+ "signingName" => "lex",
418
+ "uid" => "runtime.lex.v2-2020-08-07",
419
+ }
420
+
421
+ api.add_operation(:delete_session, Seahorse::Model::Operation.new.tap do |o|
422
+ o.name = "DeleteSession"
423
+ o.http_method = "DELETE"
424
+ o.http_request_uri = "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}"
425
+ o.input = Shapes::ShapeRef.new(shape: DeleteSessionRequest)
426
+ o.output = Shapes::ShapeRef.new(shape: DeleteSessionResponse)
427
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
428
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
429
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
430
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
431
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
432
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
433
+ end)
434
+
435
+ api.add_operation(:get_session, Seahorse::Model::Operation.new.tap do |o|
436
+ o.name = "GetSession"
437
+ o.http_method = "GET"
438
+ o.http_request_uri = "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}"
439
+ o.input = Shapes::ShapeRef.new(shape: GetSessionRequest)
440
+ o.output = Shapes::ShapeRef.new(shape: GetSessionResponse)
441
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
442
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
443
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
444
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
445
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
446
+ end)
447
+
448
+ api.add_operation(:put_session, Seahorse::Model::Operation.new.tap do |o|
449
+ o.name = "PutSession"
450
+ o.http_method = "POST"
451
+ o.http_request_uri = "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}"
452
+ o.input = Shapes::ShapeRef.new(shape: PutSessionRequest)
453
+ o.output = Shapes::ShapeRef.new(shape: PutSessionResponse)
454
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
455
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
456
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
457
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
458
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
459
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
460
+ o.errors << Shapes::ShapeRef.new(shape: DependencyFailedException)
461
+ o.errors << Shapes::ShapeRef.new(shape: BadGatewayException)
462
+ end)
463
+
464
+ api.add_operation(:recognize_text, Seahorse::Model::Operation.new.tap do |o|
465
+ o.name = "RecognizeText"
466
+ o.http_method = "POST"
467
+ o.http_request_uri = "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}/text"
468
+ o.input = Shapes::ShapeRef.new(shape: RecognizeTextRequest)
469
+ o.output = Shapes::ShapeRef.new(shape: RecognizeTextResponse)
470
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
471
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
472
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
473
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
474
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
475
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
476
+ o.errors << Shapes::ShapeRef.new(shape: DependencyFailedException)
477
+ o.errors << Shapes::ShapeRef.new(shape: BadGatewayException)
478
+ end)
479
+
480
+ api.add_operation(:recognize_utterance, Seahorse::Model::Operation.new.tap do |o|
481
+ o.name = "RecognizeUtterance"
482
+ o.http_method = "POST"
483
+ o.http_request_uri = "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}/utterance"
484
+ o['authtype'] = "v4-unsigned-body"
485
+ o.input = Shapes::ShapeRef.new(shape: RecognizeUtteranceRequest)
486
+ o.output = Shapes::ShapeRef.new(shape: RecognizeUtteranceResponse)
487
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
488
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
489
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
490
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
491
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
492
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
493
+ o.errors << Shapes::ShapeRef.new(shape: DependencyFailedException)
494
+ o.errors << Shapes::ShapeRef.new(shape: BadGatewayException)
495
+ end)
496
+
497
+ api.add_operation(:start_conversation, Seahorse::Model::Operation.new.tap do |o|
498
+ o.name = "StartConversation"
499
+ o.http_method = "POST"
500
+ o.http_request_uri = "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}/conversation"
501
+ o.input = Shapes::ShapeRef.new(shape: StartConversationRequest)
502
+ o.output = Shapes::ShapeRef.new(shape: StartConversationResponse)
503
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
504
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
505
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
506
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
507
+ o.async = true
508
+ end)
509
+ end
510
+
511
+ end
512
+ end