@aws-sdk/client-rekognition 3.309.0 → 3.312.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.
Files changed (49) hide show
  1. package/README.md +16 -0
  2. package/dist-cjs/Rekognition.js +30 -0
  3. package/dist-cjs/commands/CreateFaceLivenessSessionCommand.js +45 -0
  4. package/dist-cjs/commands/GetFaceLivenessSessionResultsCommand.js +46 -0
  5. package/dist-cjs/commands/index.js +2 -0
  6. package/dist-cjs/endpoint/ruleset.js +3 -3
  7. package/dist-cjs/models/index.js +1 -0
  8. package/dist-cjs/models/models_0.js +36 -2
  9. package/dist-cjs/models/models_1.js +2 -0
  10. package/dist-cjs/protocols/Aws_json1_1.js +256 -255
  11. package/dist-es/Rekognition.js +30 -0
  12. package/dist-es/commands/CreateFaceLivenessSessionCommand.js +41 -0
  13. package/dist-es/commands/GetFaceLivenessSessionResultsCommand.js +42 -0
  14. package/dist-es/commands/index.js +2 -0
  15. package/dist-es/endpoint/ruleset.js +3 -3
  16. package/dist-es/models/index.js +1 -0
  17. package/dist-es/models/models_0.js +31 -0
  18. package/dist-es/models/models_1.js +1 -0
  19. package/dist-es/protocols/Aws_json1_1.js +250 -253
  20. package/dist-types/Rekognition.d.ts +51 -10
  21. package/dist-types/RekognitionClient.d.ts +4 -2
  22. package/dist-types/commands/CopyProjectVersionCommand.d.ts +1 -0
  23. package/dist-types/commands/CreateFaceLivenessSessionCommand.d.ts +94 -0
  24. package/dist-types/commands/CreateStreamProcessorCommand.d.ts +17 -7
  25. package/dist-types/commands/DeleteProjectPolicyCommand.d.ts +1 -0
  26. package/dist-types/commands/DetectLabelsCommand.d.ts +2 -3
  27. package/dist-types/commands/GetFaceLivenessSessionResultsCommand.d.ts +88 -0
  28. package/dist-types/commands/ListProjectPoliciesCommand.d.ts +1 -0
  29. package/dist-types/commands/PutProjectPolicyCommand.d.ts +1 -0
  30. package/dist-types/commands/StopProjectVersionCommand.d.ts +1 -0
  31. package/dist-types/commands/UpdateStreamProcessorCommand.d.ts +4 -1
  32. package/dist-types/commands/index.d.ts +2 -0
  33. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  34. package/dist-types/models/index.d.ts +1 -0
  35. package/dist-types/models/models_0.d.ts +241 -106
  36. package/dist-types/models/models_1.d.ts +56 -0
  37. package/dist-types/protocols/Aws_json1_1.d.ts +18 -0
  38. package/dist-types/ts3.4/Rekognition.d.ts +34 -0
  39. package/dist-types/ts3.4/RekognitionClient.d.ts +12 -0
  40. package/dist-types/ts3.4/commands/CreateFaceLivenessSessionCommand.d.ts +41 -0
  41. package/dist-types/ts3.4/commands/GetFaceLivenessSessionResultsCommand.d.ts +41 -0
  42. package/dist-types/ts3.4/commands/UpdateStreamProcessorCommand.d.ts +1 -1
  43. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  44. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  45. package/dist-types/ts3.4/models/index.d.ts +1 -0
  46. package/dist-types/ts3.4/models/models_0.d.ts +59 -17
  47. package/dist-types/ts3.4/models/models_1.d.ts +17 -0
  48. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +24 -0
  49. package/package.json +36 -36
@@ -1,570 +1,393 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
2
  import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, LazyJsonString as __LazyJsonString, limitedParseFloat32 as __limitedParseFloat32, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, throwDefaultError, } from "@aws-sdk/smithy-client";
3
- import { AccessDeniedException, HumanLoopQuotaExceededException, IdempotentParameterMismatchException, ImageTooLargeException, InternalServerError, InvalidImageFormatException, InvalidPaginationTokenException, InvalidParameterException, InvalidPolicyRevisionIdException, InvalidS3ObjectException, LimitExceededException, MalformedPolicyDocumentException, ProvisionedThroughputExceededException, ResourceAlreadyExistsException, ResourceInUseException, ResourceNotFoundException, ResourceNotReadyException, ServiceQuotaExceededException, ThrottlingException, VideoTooLargeException, } from "../models/models_0";
3
+ import { AccessDeniedException, HumanLoopQuotaExceededException, IdempotentParameterMismatchException, ImageTooLargeException, InternalServerError, InvalidImageFormatException, InvalidPaginationTokenException, InvalidParameterException, InvalidPolicyRevisionIdException, InvalidS3ObjectException, LimitExceededException, MalformedPolicyDocumentException, ProvisionedThroughputExceededException, ResourceAlreadyExistsException, ResourceInUseException, ResourceNotFoundException, ResourceNotReadyException, ServiceQuotaExceededException, SessionNotFoundException, ThrottlingException, VideoTooLargeException, } from "../models/models_0";
4
4
  import { RekognitionServiceException as __BaseException } from "../models/RekognitionServiceException";
5
5
  export const se_CompareFacesCommand = async (input, context) => {
6
- const headers = {
7
- "content-type": "application/x-amz-json-1.1",
8
- "x-amz-target": "RekognitionService.CompareFaces",
9
- };
6
+ const headers = sharedHeaders("CompareFaces");
10
7
  let body;
11
8
  body = JSON.stringify(se_CompareFacesRequest(input, context));
12
9
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
13
10
  };
14
11
  export const se_CopyProjectVersionCommand = async (input, context) => {
15
- const headers = {
16
- "content-type": "application/x-amz-json-1.1",
17
- "x-amz-target": "RekognitionService.CopyProjectVersion",
18
- };
12
+ const headers = sharedHeaders("CopyProjectVersion");
19
13
  let body;
20
14
  body = JSON.stringify(se_CopyProjectVersionRequest(input, context));
21
15
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
22
16
  };
23
17
  export const se_CreateCollectionCommand = async (input, context) => {
24
- const headers = {
25
- "content-type": "application/x-amz-json-1.1",
26
- "x-amz-target": "RekognitionService.CreateCollection",
27
- };
18
+ const headers = sharedHeaders("CreateCollection");
28
19
  let body;
29
20
  body = JSON.stringify(se_CreateCollectionRequest(input, context));
30
21
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
31
22
  };
32
23
  export const se_CreateDatasetCommand = async (input, context) => {
33
- const headers = {
34
- "content-type": "application/x-amz-json-1.1",
35
- "x-amz-target": "RekognitionService.CreateDataset",
36
- };
24
+ const headers = sharedHeaders("CreateDataset");
37
25
  let body;
38
26
  body = JSON.stringify(se_CreateDatasetRequest(input, context));
39
27
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
40
28
  };
29
+ export const se_CreateFaceLivenessSessionCommand = async (input, context) => {
30
+ const headers = sharedHeaders("CreateFaceLivenessSession");
31
+ let body;
32
+ body = JSON.stringify(se_CreateFaceLivenessSessionRequest(input, context));
33
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
34
+ };
41
35
  export const se_CreateProjectCommand = async (input, context) => {
42
- const headers = {
43
- "content-type": "application/x-amz-json-1.1",
44
- "x-amz-target": "RekognitionService.CreateProject",
45
- };
36
+ const headers = sharedHeaders("CreateProject");
46
37
  let body;
47
38
  body = JSON.stringify(se_CreateProjectRequest(input, context));
48
39
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
49
40
  };
50
41
  export const se_CreateProjectVersionCommand = async (input, context) => {
51
- const headers = {
52
- "content-type": "application/x-amz-json-1.1",
53
- "x-amz-target": "RekognitionService.CreateProjectVersion",
54
- };
42
+ const headers = sharedHeaders("CreateProjectVersion");
55
43
  let body;
56
44
  body = JSON.stringify(se_CreateProjectVersionRequest(input, context));
57
45
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
58
46
  };
59
47
  export const se_CreateStreamProcessorCommand = async (input, context) => {
60
- const headers = {
61
- "content-type": "application/x-amz-json-1.1",
62
- "x-amz-target": "RekognitionService.CreateStreamProcessor",
63
- };
48
+ const headers = sharedHeaders("CreateStreamProcessor");
64
49
  let body;
65
50
  body = JSON.stringify(se_CreateStreamProcessorRequest(input, context));
66
51
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
67
52
  };
68
53
  export const se_DeleteCollectionCommand = async (input, context) => {
69
- const headers = {
70
- "content-type": "application/x-amz-json-1.1",
71
- "x-amz-target": "RekognitionService.DeleteCollection",
72
- };
54
+ const headers = sharedHeaders("DeleteCollection");
73
55
  let body;
74
56
  body = JSON.stringify(se_DeleteCollectionRequest(input, context));
75
57
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
76
58
  };
77
59
  export const se_DeleteDatasetCommand = async (input, context) => {
78
- const headers = {
79
- "content-type": "application/x-amz-json-1.1",
80
- "x-amz-target": "RekognitionService.DeleteDataset",
81
- };
60
+ const headers = sharedHeaders("DeleteDataset");
82
61
  let body;
83
62
  body = JSON.stringify(se_DeleteDatasetRequest(input, context));
84
63
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
85
64
  };
86
65
  export const se_DeleteFacesCommand = async (input, context) => {
87
- const headers = {
88
- "content-type": "application/x-amz-json-1.1",
89
- "x-amz-target": "RekognitionService.DeleteFaces",
90
- };
66
+ const headers = sharedHeaders("DeleteFaces");
91
67
  let body;
92
68
  body = JSON.stringify(se_DeleteFacesRequest(input, context));
93
69
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
94
70
  };
95
71
  export const se_DeleteProjectCommand = async (input, context) => {
96
- const headers = {
97
- "content-type": "application/x-amz-json-1.1",
98
- "x-amz-target": "RekognitionService.DeleteProject",
99
- };
72
+ const headers = sharedHeaders("DeleteProject");
100
73
  let body;
101
74
  body = JSON.stringify(se_DeleteProjectRequest(input, context));
102
75
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
103
76
  };
104
77
  export const se_DeleteProjectPolicyCommand = async (input, context) => {
105
- const headers = {
106
- "content-type": "application/x-amz-json-1.1",
107
- "x-amz-target": "RekognitionService.DeleteProjectPolicy",
108
- };
78
+ const headers = sharedHeaders("DeleteProjectPolicy");
109
79
  let body;
110
80
  body = JSON.stringify(se_DeleteProjectPolicyRequest(input, context));
111
81
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
112
82
  };
113
83
  export const se_DeleteProjectVersionCommand = async (input, context) => {
114
- const headers = {
115
- "content-type": "application/x-amz-json-1.1",
116
- "x-amz-target": "RekognitionService.DeleteProjectVersion",
117
- };
84
+ const headers = sharedHeaders("DeleteProjectVersion");
118
85
  let body;
119
86
  body = JSON.stringify(se_DeleteProjectVersionRequest(input, context));
120
87
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
121
88
  };
122
89
  export const se_DeleteStreamProcessorCommand = async (input, context) => {
123
- const headers = {
124
- "content-type": "application/x-amz-json-1.1",
125
- "x-amz-target": "RekognitionService.DeleteStreamProcessor",
126
- };
90
+ const headers = sharedHeaders("DeleteStreamProcessor");
127
91
  let body;
128
92
  body = JSON.stringify(se_DeleteStreamProcessorRequest(input, context));
129
93
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
130
94
  };
131
95
  export const se_DescribeCollectionCommand = async (input, context) => {
132
- const headers = {
133
- "content-type": "application/x-amz-json-1.1",
134
- "x-amz-target": "RekognitionService.DescribeCollection",
135
- };
96
+ const headers = sharedHeaders("DescribeCollection");
136
97
  let body;
137
98
  body = JSON.stringify(se_DescribeCollectionRequest(input, context));
138
99
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
139
100
  };
140
101
  export const se_DescribeDatasetCommand = async (input, context) => {
141
- const headers = {
142
- "content-type": "application/x-amz-json-1.1",
143
- "x-amz-target": "RekognitionService.DescribeDataset",
144
- };
102
+ const headers = sharedHeaders("DescribeDataset");
145
103
  let body;
146
104
  body = JSON.stringify(se_DescribeDatasetRequest(input, context));
147
105
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
148
106
  };
149
107
  export const se_DescribeProjectsCommand = async (input, context) => {
150
- const headers = {
151
- "content-type": "application/x-amz-json-1.1",
152
- "x-amz-target": "RekognitionService.DescribeProjects",
153
- };
108
+ const headers = sharedHeaders("DescribeProjects");
154
109
  let body;
155
110
  body = JSON.stringify(se_DescribeProjectsRequest(input, context));
156
111
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
157
112
  };
158
113
  export const se_DescribeProjectVersionsCommand = async (input, context) => {
159
- const headers = {
160
- "content-type": "application/x-amz-json-1.1",
161
- "x-amz-target": "RekognitionService.DescribeProjectVersions",
162
- };
114
+ const headers = sharedHeaders("DescribeProjectVersions");
163
115
  let body;
164
116
  body = JSON.stringify(se_DescribeProjectVersionsRequest(input, context));
165
117
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
166
118
  };
167
119
  export const se_DescribeStreamProcessorCommand = async (input, context) => {
168
- const headers = {
169
- "content-type": "application/x-amz-json-1.1",
170
- "x-amz-target": "RekognitionService.DescribeStreamProcessor",
171
- };
120
+ const headers = sharedHeaders("DescribeStreamProcessor");
172
121
  let body;
173
122
  body = JSON.stringify(se_DescribeStreamProcessorRequest(input, context));
174
123
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
175
124
  };
176
125
  export const se_DetectCustomLabelsCommand = async (input, context) => {
177
- const headers = {
178
- "content-type": "application/x-amz-json-1.1",
179
- "x-amz-target": "RekognitionService.DetectCustomLabels",
180
- };
126
+ const headers = sharedHeaders("DetectCustomLabels");
181
127
  let body;
182
128
  body = JSON.stringify(se_DetectCustomLabelsRequest(input, context));
183
129
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
184
130
  };
185
131
  export const se_DetectFacesCommand = async (input, context) => {
186
- const headers = {
187
- "content-type": "application/x-amz-json-1.1",
188
- "x-amz-target": "RekognitionService.DetectFaces",
189
- };
132
+ const headers = sharedHeaders("DetectFaces");
190
133
  let body;
191
134
  body = JSON.stringify(se_DetectFacesRequest(input, context));
192
135
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
193
136
  };
194
137
  export const se_DetectLabelsCommand = async (input, context) => {
195
- const headers = {
196
- "content-type": "application/x-amz-json-1.1",
197
- "x-amz-target": "RekognitionService.DetectLabels",
198
- };
138
+ const headers = sharedHeaders("DetectLabels");
199
139
  let body;
200
140
  body = JSON.stringify(se_DetectLabelsRequest(input, context));
201
141
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
202
142
  };
203
143
  export const se_DetectModerationLabelsCommand = async (input, context) => {
204
- const headers = {
205
- "content-type": "application/x-amz-json-1.1",
206
- "x-amz-target": "RekognitionService.DetectModerationLabels",
207
- };
144
+ const headers = sharedHeaders("DetectModerationLabels");
208
145
  let body;
209
146
  body = JSON.stringify(se_DetectModerationLabelsRequest(input, context));
210
147
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
211
148
  };
212
149
  export const se_DetectProtectiveEquipmentCommand = async (input, context) => {
213
- const headers = {
214
- "content-type": "application/x-amz-json-1.1",
215
- "x-amz-target": "RekognitionService.DetectProtectiveEquipment",
216
- };
150
+ const headers = sharedHeaders("DetectProtectiveEquipment");
217
151
  let body;
218
152
  body = JSON.stringify(se_DetectProtectiveEquipmentRequest(input, context));
219
153
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
220
154
  };
221
155
  export const se_DetectTextCommand = async (input, context) => {
222
- const headers = {
223
- "content-type": "application/x-amz-json-1.1",
224
- "x-amz-target": "RekognitionService.DetectText",
225
- };
156
+ const headers = sharedHeaders("DetectText");
226
157
  let body;
227
158
  body = JSON.stringify(se_DetectTextRequest(input, context));
228
159
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
229
160
  };
230
161
  export const se_DistributeDatasetEntriesCommand = async (input, context) => {
231
- const headers = {
232
- "content-type": "application/x-amz-json-1.1",
233
- "x-amz-target": "RekognitionService.DistributeDatasetEntries",
234
- };
162
+ const headers = sharedHeaders("DistributeDatasetEntries");
235
163
  let body;
236
164
  body = JSON.stringify(se_DistributeDatasetEntriesRequest(input, context));
237
165
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
238
166
  };
239
167
  export const se_GetCelebrityInfoCommand = async (input, context) => {
240
- const headers = {
241
- "content-type": "application/x-amz-json-1.1",
242
- "x-amz-target": "RekognitionService.GetCelebrityInfo",
243
- };
168
+ const headers = sharedHeaders("GetCelebrityInfo");
244
169
  let body;
245
170
  body = JSON.stringify(se_GetCelebrityInfoRequest(input, context));
246
171
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
247
172
  };
248
173
  export const se_GetCelebrityRecognitionCommand = async (input, context) => {
249
- const headers = {
250
- "content-type": "application/x-amz-json-1.1",
251
- "x-amz-target": "RekognitionService.GetCelebrityRecognition",
252
- };
174
+ const headers = sharedHeaders("GetCelebrityRecognition");
253
175
  let body;
254
176
  body = JSON.stringify(se_GetCelebrityRecognitionRequest(input, context));
255
177
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
256
178
  };
257
179
  export const se_GetContentModerationCommand = async (input, context) => {
258
- const headers = {
259
- "content-type": "application/x-amz-json-1.1",
260
- "x-amz-target": "RekognitionService.GetContentModeration",
261
- };
180
+ const headers = sharedHeaders("GetContentModeration");
262
181
  let body;
263
182
  body = JSON.stringify(se_GetContentModerationRequest(input, context));
264
183
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
265
184
  };
266
185
  export const se_GetFaceDetectionCommand = async (input, context) => {
267
- const headers = {
268
- "content-type": "application/x-amz-json-1.1",
269
- "x-amz-target": "RekognitionService.GetFaceDetection",
270
- };
186
+ const headers = sharedHeaders("GetFaceDetection");
271
187
  let body;
272
188
  body = JSON.stringify(se_GetFaceDetectionRequest(input, context));
273
189
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
274
190
  };
191
+ export const se_GetFaceLivenessSessionResultsCommand = async (input, context) => {
192
+ const headers = sharedHeaders("GetFaceLivenessSessionResults");
193
+ let body;
194
+ body = JSON.stringify(se_GetFaceLivenessSessionResultsRequest(input, context));
195
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
196
+ };
275
197
  export const se_GetFaceSearchCommand = async (input, context) => {
276
- const headers = {
277
- "content-type": "application/x-amz-json-1.1",
278
- "x-amz-target": "RekognitionService.GetFaceSearch",
279
- };
198
+ const headers = sharedHeaders("GetFaceSearch");
280
199
  let body;
281
200
  body = JSON.stringify(se_GetFaceSearchRequest(input, context));
282
201
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
283
202
  };
284
203
  export const se_GetLabelDetectionCommand = async (input, context) => {
285
- const headers = {
286
- "content-type": "application/x-amz-json-1.1",
287
- "x-amz-target": "RekognitionService.GetLabelDetection",
288
- };
204
+ const headers = sharedHeaders("GetLabelDetection");
289
205
  let body;
290
206
  body = JSON.stringify(se_GetLabelDetectionRequest(input, context));
291
207
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
292
208
  };
293
209
  export const se_GetPersonTrackingCommand = async (input, context) => {
294
- const headers = {
295
- "content-type": "application/x-amz-json-1.1",
296
- "x-amz-target": "RekognitionService.GetPersonTracking",
297
- };
210
+ const headers = sharedHeaders("GetPersonTracking");
298
211
  let body;
299
212
  body = JSON.stringify(se_GetPersonTrackingRequest(input, context));
300
213
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
301
214
  };
302
215
  export const se_GetSegmentDetectionCommand = async (input, context) => {
303
- const headers = {
304
- "content-type": "application/x-amz-json-1.1",
305
- "x-amz-target": "RekognitionService.GetSegmentDetection",
306
- };
216
+ const headers = sharedHeaders("GetSegmentDetection");
307
217
  let body;
308
218
  body = JSON.stringify(se_GetSegmentDetectionRequest(input, context));
309
219
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
310
220
  };
311
221
  export const se_GetTextDetectionCommand = async (input, context) => {
312
- const headers = {
313
- "content-type": "application/x-amz-json-1.1",
314
- "x-amz-target": "RekognitionService.GetTextDetection",
315
- };
222
+ const headers = sharedHeaders("GetTextDetection");
316
223
  let body;
317
224
  body = JSON.stringify(se_GetTextDetectionRequest(input, context));
318
225
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
319
226
  };
320
227
  export const se_IndexFacesCommand = async (input, context) => {
321
- const headers = {
322
- "content-type": "application/x-amz-json-1.1",
323
- "x-amz-target": "RekognitionService.IndexFaces",
324
- };
228
+ const headers = sharedHeaders("IndexFaces");
325
229
  let body;
326
230
  body = JSON.stringify(se_IndexFacesRequest(input, context));
327
231
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
328
232
  };
329
233
  export const se_ListCollectionsCommand = async (input, context) => {
330
- const headers = {
331
- "content-type": "application/x-amz-json-1.1",
332
- "x-amz-target": "RekognitionService.ListCollections",
333
- };
234
+ const headers = sharedHeaders("ListCollections");
334
235
  let body;
335
236
  body = JSON.stringify(se_ListCollectionsRequest(input, context));
336
237
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
337
238
  };
338
239
  export const se_ListDatasetEntriesCommand = async (input, context) => {
339
- const headers = {
340
- "content-type": "application/x-amz-json-1.1",
341
- "x-amz-target": "RekognitionService.ListDatasetEntries",
342
- };
240
+ const headers = sharedHeaders("ListDatasetEntries");
343
241
  let body;
344
242
  body = JSON.stringify(se_ListDatasetEntriesRequest(input, context));
345
243
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
346
244
  };
347
245
  export const se_ListDatasetLabelsCommand = async (input, context) => {
348
- const headers = {
349
- "content-type": "application/x-amz-json-1.1",
350
- "x-amz-target": "RekognitionService.ListDatasetLabels",
351
- };
246
+ const headers = sharedHeaders("ListDatasetLabels");
352
247
  let body;
353
248
  body = JSON.stringify(se_ListDatasetLabelsRequest(input, context));
354
249
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
355
250
  };
356
251
  export const se_ListFacesCommand = async (input, context) => {
357
- const headers = {
358
- "content-type": "application/x-amz-json-1.1",
359
- "x-amz-target": "RekognitionService.ListFaces",
360
- };
252
+ const headers = sharedHeaders("ListFaces");
361
253
  let body;
362
254
  body = JSON.stringify(se_ListFacesRequest(input, context));
363
255
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
364
256
  };
365
257
  export const se_ListProjectPoliciesCommand = async (input, context) => {
366
- const headers = {
367
- "content-type": "application/x-amz-json-1.1",
368
- "x-amz-target": "RekognitionService.ListProjectPolicies",
369
- };
258
+ const headers = sharedHeaders("ListProjectPolicies");
370
259
  let body;
371
260
  body = JSON.stringify(se_ListProjectPoliciesRequest(input, context));
372
261
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
373
262
  };
374
263
  export const se_ListStreamProcessorsCommand = async (input, context) => {
375
- const headers = {
376
- "content-type": "application/x-amz-json-1.1",
377
- "x-amz-target": "RekognitionService.ListStreamProcessors",
378
- };
264
+ const headers = sharedHeaders("ListStreamProcessors");
379
265
  let body;
380
266
  body = JSON.stringify(se_ListStreamProcessorsRequest(input, context));
381
267
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
382
268
  };
383
269
  export const se_ListTagsForResourceCommand = async (input, context) => {
384
- const headers = {
385
- "content-type": "application/x-amz-json-1.1",
386
- "x-amz-target": "RekognitionService.ListTagsForResource",
387
- };
270
+ const headers = sharedHeaders("ListTagsForResource");
388
271
  let body;
389
272
  body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
390
273
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
391
274
  };
392
275
  export const se_PutProjectPolicyCommand = async (input, context) => {
393
- const headers = {
394
- "content-type": "application/x-amz-json-1.1",
395
- "x-amz-target": "RekognitionService.PutProjectPolicy",
396
- };
276
+ const headers = sharedHeaders("PutProjectPolicy");
397
277
  let body;
398
278
  body = JSON.stringify(se_PutProjectPolicyRequest(input, context));
399
279
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
400
280
  };
401
281
  export const se_RecognizeCelebritiesCommand = async (input, context) => {
402
- const headers = {
403
- "content-type": "application/x-amz-json-1.1",
404
- "x-amz-target": "RekognitionService.RecognizeCelebrities",
405
- };
282
+ const headers = sharedHeaders("RecognizeCelebrities");
406
283
  let body;
407
284
  body = JSON.stringify(se_RecognizeCelebritiesRequest(input, context));
408
285
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
409
286
  };
410
287
  export const se_SearchFacesCommand = async (input, context) => {
411
- const headers = {
412
- "content-type": "application/x-amz-json-1.1",
413
- "x-amz-target": "RekognitionService.SearchFaces",
414
- };
288
+ const headers = sharedHeaders("SearchFaces");
415
289
  let body;
416
290
  body = JSON.stringify(se_SearchFacesRequest(input, context));
417
291
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
418
292
  };
419
293
  export const se_SearchFacesByImageCommand = async (input, context) => {
420
- const headers = {
421
- "content-type": "application/x-amz-json-1.1",
422
- "x-amz-target": "RekognitionService.SearchFacesByImage",
423
- };
294
+ const headers = sharedHeaders("SearchFacesByImage");
424
295
  let body;
425
296
  body = JSON.stringify(se_SearchFacesByImageRequest(input, context));
426
297
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
427
298
  };
428
299
  export const se_StartCelebrityRecognitionCommand = async (input, context) => {
429
- const headers = {
430
- "content-type": "application/x-amz-json-1.1",
431
- "x-amz-target": "RekognitionService.StartCelebrityRecognition",
432
- };
300
+ const headers = sharedHeaders("StartCelebrityRecognition");
433
301
  let body;
434
302
  body = JSON.stringify(se_StartCelebrityRecognitionRequest(input, context));
435
303
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
436
304
  };
437
305
  export const se_StartContentModerationCommand = async (input, context) => {
438
- const headers = {
439
- "content-type": "application/x-amz-json-1.1",
440
- "x-amz-target": "RekognitionService.StartContentModeration",
441
- };
306
+ const headers = sharedHeaders("StartContentModeration");
442
307
  let body;
443
308
  body = JSON.stringify(se_StartContentModerationRequest(input, context));
444
309
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
445
310
  };
446
311
  export const se_StartFaceDetectionCommand = async (input, context) => {
447
- const headers = {
448
- "content-type": "application/x-amz-json-1.1",
449
- "x-amz-target": "RekognitionService.StartFaceDetection",
450
- };
312
+ const headers = sharedHeaders("StartFaceDetection");
451
313
  let body;
452
314
  body = JSON.stringify(se_StartFaceDetectionRequest(input, context));
453
315
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
454
316
  };
455
317
  export const se_StartFaceSearchCommand = async (input, context) => {
456
- const headers = {
457
- "content-type": "application/x-amz-json-1.1",
458
- "x-amz-target": "RekognitionService.StartFaceSearch",
459
- };
318
+ const headers = sharedHeaders("StartFaceSearch");
460
319
  let body;
461
320
  body = JSON.stringify(se_StartFaceSearchRequest(input, context));
462
321
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
463
322
  };
464
323
  export const se_StartLabelDetectionCommand = async (input, context) => {
465
- const headers = {
466
- "content-type": "application/x-amz-json-1.1",
467
- "x-amz-target": "RekognitionService.StartLabelDetection",
468
- };
324
+ const headers = sharedHeaders("StartLabelDetection");
469
325
  let body;
470
326
  body = JSON.stringify(se_StartLabelDetectionRequest(input, context));
471
327
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
472
328
  };
473
329
  export const se_StartPersonTrackingCommand = async (input, context) => {
474
- const headers = {
475
- "content-type": "application/x-amz-json-1.1",
476
- "x-amz-target": "RekognitionService.StartPersonTracking",
477
- };
330
+ const headers = sharedHeaders("StartPersonTracking");
478
331
  let body;
479
332
  body = JSON.stringify(se_StartPersonTrackingRequest(input, context));
480
333
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
481
334
  };
482
335
  export const se_StartProjectVersionCommand = async (input, context) => {
483
- const headers = {
484
- "content-type": "application/x-amz-json-1.1",
485
- "x-amz-target": "RekognitionService.StartProjectVersion",
486
- };
336
+ const headers = sharedHeaders("StartProjectVersion");
487
337
  let body;
488
338
  body = JSON.stringify(se_StartProjectVersionRequest(input, context));
489
339
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
490
340
  };
491
341
  export const se_StartSegmentDetectionCommand = async (input, context) => {
492
- const headers = {
493
- "content-type": "application/x-amz-json-1.1",
494
- "x-amz-target": "RekognitionService.StartSegmentDetection",
495
- };
342
+ const headers = sharedHeaders("StartSegmentDetection");
496
343
  let body;
497
344
  body = JSON.stringify(se_StartSegmentDetectionRequest(input, context));
498
345
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
499
346
  };
500
347
  export const se_StartStreamProcessorCommand = async (input, context) => {
501
- const headers = {
502
- "content-type": "application/x-amz-json-1.1",
503
- "x-amz-target": "RekognitionService.StartStreamProcessor",
504
- };
348
+ const headers = sharedHeaders("StartStreamProcessor");
505
349
  let body;
506
350
  body = JSON.stringify(se_StartStreamProcessorRequest(input, context));
507
351
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
508
352
  };
509
353
  export const se_StartTextDetectionCommand = async (input, context) => {
510
- const headers = {
511
- "content-type": "application/x-amz-json-1.1",
512
- "x-amz-target": "RekognitionService.StartTextDetection",
513
- };
354
+ const headers = sharedHeaders("StartTextDetection");
514
355
  let body;
515
356
  body = JSON.stringify(se_StartTextDetectionRequest(input, context));
516
357
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
517
358
  };
518
359
  export const se_StopProjectVersionCommand = async (input, context) => {
519
- const headers = {
520
- "content-type": "application/x-amz-json-1.1",
521
- "x-amz-target": "RekognitionService.StopProjectVersion",
522
- };
360
+ const headers = sharedHeaders("StopProjectVersion");
523
361
  let body;
524
362
  body = JSON.stringify(se_StopProjectVersionRequest(input, context));
525
363
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
526
364
  };
527
365
  export const se_StopStreamProcessorCommand = async (input, context) => {
528
- const headers = {
529
- "content-type": "application/x-amz-json-1.1",
530
- "x-amz-target": "RekognitionService.StopStreamProcessor",
531
- };
366
+ const headers = sharedHeaders("StopStreamProcessor");
532
367
  let body;
533
368
  body = JSON.stringify(se_StopStreamProcessorRequest(input, context));
534
369
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
535
370
  };
536
371
  export const se_TagResourceCommand = async (input, context) => {
537
- const headers = {
538
- "content-type": "application/x-amz-json-1.1",
539
- "x-amz-target": "RekognitionService.TagResource",
540
- };
372
+ const headers = sharedHeaders("TagResource");
541
373
  let body;
542
374
  body = JSON.stringify(se_TagResourceRequest(input, context));
543
375
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
544
376
  };
545
377
  export const se_UntagResourceCommand = async (input, context) => {
546
- const headers = {
547
- "content-type": "application/x-amz-json-1.1",
548
- "x-amz-target": "RekognitionService.UntagResource",
549
- };
378
+ const headers = sharedHeaders("UntagResource");
550
379
  let body;
551
380
  body = JSON.stringify(se_UntagResourceRequest(input, context));
552
381
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
553
382
  };
554
383
  export const se_UpdateDatasetEntriesCommand = async (input, context) => {
555
- const headers = {
556
- "content-type": "application/x-amz-json-1.1",
557
- "x-amz-target": "RekognitionService.UpdateDatasetEntries",
558
- };
384
+ const headers = sharedHeaders("UpdateDatasetEntries");
559
385
  let body;
560
386
  body = JSON.stringify(se_UpdateDatasetEntriesRequest(input, context));
561
387
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
562
388
  };
563
389
  export const se_UpdateStreamProcessorCommand = async (input, context) => {
564
- const headers = {
565
- "content-type": "application/x-amz-json-1.1",
566
- "x-amz-target": "RekognitionService.UpdateStreamProcessor",
567
- };
390
+ const headers = sharedHeaders("UpdateStreamProcessor");
568
391
  let body;
569
392
  body = JSON.stringify(se_UpdateStreamProcessorRequest(input, context));
570
393
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
@@ -788,6 +611,51 @@ const de_CreateDatasetCommandError = async (output, context) => {
788
611
  });
789
612
  }
790
613
  };
614
+ export const de_CreateFaceLivenessSessionCommand = async (output, context) => {
615
+ if (output.statusCode >= 300) {
616
+ return de_CreateFaceLivenessSessionCommandError(output, context);
617
+ }
618
+ const data = await parseBody(output.body, context);
619
+ let contents = {};
620
+ contents = de_CreateFaceLivenessSessionResponse(data, context);
621
+ const response = {
622
+ $metadata: deserializeMetadata(output),
623
+ ...contents,
624
+ };
625
+ return Promise.resolve(response);
626
+ };
627
+ const de_CreateFaceLivenessSessionCommandError = async (output, context) => {
628
+ const parsedOutput = {
629
+ ...output,
630
+ body: await parseErrorBody(output.body, context),
631
+ };
632
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
633
+ switch (errorCode) {
634
+ case "AccessDeniedException":
635
+ case "com.amazonaws.rekognition#AccessDeniedException":
636
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
637
+ case "InternalServerError":
638
+ case "com.amazonaws.rekognition#InternalServerError":
639
+ throw await de_InternalServerErrorRes(parsedOutput, context);
640
+ case "InvalidParameterException":
641
+ case "com.amazonaws.rekognition#InvalidParameterException":
642
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
643
+ case "ProvisionedThroughputExceededException":
644
+ case "com.amazonaws.rekognition#ProvisionedThroughputExceededException":
645
+ throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
646
+ case "ThrottlingException":
647
+ case "com.amazonaws.rekognition#ThrottlingException":
648
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
649
+ default:
650
+ const parsedBody = parsedOutput.body;
651
+ throwDefaultError({
652
+ output,
653
+ parsedBody,
654
+ exceptionCtor: __BaseException,
655
+ errorCode,
656
+ });
657
+ }
658
+ };
791
659
  export const de_CreateProjectCommand = async (output, context) => {
792
660
  if (output.statusCode >= 300) {
793
661
  return de_CreateProjectCommandError(output, context);
@@ -2135,6 +2003,54 @@ const de_GetFaceDetectionCommandError = async (output, context) => {
2135
2003
  });
2136
2004
  }
2137
2005
  };
2006
+ export const de_GetFaceLivenessSessionResultsCommand = async (output, context) => {
2007
+ if (output.statusCode >= 300) {
2008
+ return de_GetFaceLivenessSessionResultsCommandError(output, context);
2009
+ }
2010
+ const data = await parseBody(output.body, context);
2011
+ let contents = {};
2012
+ contents = de_GetFaceLivenessSessionResultsResponse(data, context);
2013
+ const response = {
2014
+ $metadata: deserializeMetadata(output),
2015
+ ...contents,
2016
+ };
2017
+ return Promise.resolve(response);
2018
+ };
2019
+ const de_GetFaceLivenessSessionResultsCommandError = async (output, context) => {
2020
+ const parsedOutput = {
2021
+ ...output,
2022
+ body: await parseErrorBody(output.body, context),
2023
+ };
2024
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2025
+ switch (errorCode) {
2026
+ case "AccessDeniedException":
2027
+ case "com.amazonaws.rekognition#AccessDeniedException":
2028
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2029
+ case "InternalServerError":
2030
+ case "com.amazonaws.rekognition#InternalServerError":
2031
+ throw await de_InternalServerErrorRes(parsedOutput, context);
2032
+ case "InvalidParameterException":
2033
+ case "com.amazonaws.rekognition#InvalidParameterException":
2034
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2035
+ case "ProvisionedThroughputExceededException":
2036
+ case "com.amazonaws.rekognition#ProvisionedThroughputExceededException":
2037
+ throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
2038
+ case "SessionNotFoundException":
2039
+ case "com.amazonaws.rekognition#SessionNotFoundException":
2040
+ throw await de_SessionNotFoundExceptionRes(parsedOutput, context);
2041
+ case "ThrottlingException":
2042
+ case "com.amazonaws.rekognition#ThrottlingException":
2043
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2044
+ default:
2045
+ const parsedBody = parsedOutput.body;
2046
+ throwDefaultError({
2047
+ output,
2048
+ parsedBody,
2049
+ exceptionCtor: __BaseException,
2050
+ errorCode,
2051
+ });
2052
+ }
2053
+ };
2138
2054
  export const de_GetFaceSearchCommand = async (output, context) => {
2139
2055
  if (output.statusCode >= 300) {
2140
2056
  return de_GetFaceSearchCommandError(output, context);
@@ -3886,6 +3802,9 @@ const de_UpdateStreamProcessorCommandError = async (output, context) => {
3886
3802
  case "ProvisionedThroughputExceededException":
3887
3803
  case "com.amazonaws.rekognition#ProvisionedThroughputExceededException":
3888
3804
  throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
3805
+ case "ResourceInUseException":
3806
+ case "com.amazonaws.rekognition#ResourceInUseException":
3807
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
3889
3808
  case "ResourceNotFoundException":
3890
3809
  case "com.amazonaws.rekognition#ResourceNotFoundException":
3891
3810
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
@@ -4064,6 +3983,15 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
4064
3983
  });
4065
3984
  return __decorateServiceException(exception, body);
4066
3985
  };
3986
+ const de_SessionNotFoundExceptionRes = async (parsedOutput, context) => {
3987
+ const body = parsedOutput.body;
3988
+ const deserialized = de_SessionNotFoundException(body, context);
3989
+ const exception = new SessionNotFoundException({
3990
+ $metadata: deserializeMetadata(parsedOutput),
3991
+ ...deserialized,
3992
+ });
3993
+ return __decorateServiceException(exception, body);
3994
+ };
4067
3995
  const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
4068
3996
  const body = parsedOutput.body;
4069
3997
  const deserialized = de_ThrottlingException(body, context);
@@ -4177,6 +4105,19 @@ const se_CreateDatasetRequest = (input, context) => {
4177
4105
  ...(input.ProjectArn != null && { ProjectArn: input.ProjectArn }),
4178
4106
  };
4179
4107
  };
4108
+ const se_CreateFaceLivenessSessionRequest = (input, context) => {
4109
+ return {
4110
+ ...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
4111
+ ...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
4112
+ ...(input.Settings != null && { Settings: se_CreateFaceLivenessSessionRequestSettings(input.Settings, context) }),
4113
+ };
4114
+ };
4115
+ const se_CreateFaceLivenessSessionRequestSettings = (input, context) => {
4116
+ return {
4117
+ ...(input.AuditImagesLimit != null && { AuditImagesLimit: input.AuditImagesLimit }),
4118
+ ...(input.OutputConfig != null && { OutputConfig: se_LivenessOutputConfig(input.OutputConfig, context) }),
4119
+ };
4120
+ };
4180
4121
  const se_CreateProjectRequest = (input, context) => {
4181
4122
  return {
4182
4123
  ...(input.ProjectName != null && { ProjectName: input.ProjectName }),
@@ -4461,6 +4402,11 @@ const se_GetFaceDetectionRequest = (input, context) => {
4461
4402
  ...(input.NextToken != null && { NextToken: input.NextToken }),
4462
4403
  };
4463
4404
  };
4405
+ const se_GetFaceLivenessSessionResultsRequest = (input, context) => {
4406
+ return {
4407
+ ...(input.SessionId != null && { SessionId: input.SessionId }),
4408
+ };
4409
+ };
4464
4410
  const se_GetFaceSearchRequest = (input, context) => {
4465
4411
  return {
4466
4412
  ...(input.JobId != null && { JobId: input.JobId }),
@@ -4614,6 +4560,12 @@ const se_ListTagsForResourceRequest = (input, context) => {
4614
4560
  ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
4615
4561
  };
4616
4562
  };
4563
+ const se_LivenessOutputConfig = (input, context) => {
4564
+ return {
4565
+ ...(input.S3Bucket != null && { S3Bucket: input.S3Bucket }),
4566
+ ...(input.S3KeyPrefix != null && { S3KeyPrefix: input.S3KeyPrefix }),
4567
+ };
4568
+ };
4617
4569
  const se_NotificationChannel = (input, context) => {
4618
4570
  return {
4619
4571
  ...(input.RoleArn != null && { RoleArn: input.RoleArn }),
@@ -5046,6 +4998,24 @@ const de_AudioMetadataList = (output, context) => {
5046
4998
  });
5047
4999
  return retVal;
5048
5000
  };
5001
+ const de_AuditImage = (output, context) => {
5002
+ return {
5003
+ BoundingBox: output.BoundingBox != null ? de_BoundingBox(output.BoundingBox, context) : undefined,
5004
+ Bytes: output.Bytes != null ? context.base64Decoder(output.Bytes) : undefined,
5005
+ S3Object: output.S3Object != null ? de_S3Object(output.S3Object, context) : undefined,
5006
+ };
5007
+ };
5008
+ const de_AuditImages = (output, context) => {
5009
+ const retVal = (output || [])
5010
+ .filter((e) => e != null)
5011
+ .map((entry) => {
5012
+ if (entry === null) {
5013
+ return null;
5014
+ }
5015
+ return de_AuditImage(entry, context);
5016
+ });
5017
+ return retVal;
5018
+ };
5049
5019
  const de_Beard = (output, context) => {
5050
5020
  return {
5051
5021
  Confidence: __limitedParseFloat32(output.Confidence),
@@ -5253,6 +5223,11 @@ const de_CreateDatasetResponse = (output, context) => {
5253
5223
  DatasetArn: __expectString(output.DatasetArn),
5254
5224
  };
5255
5225
  };
5226
+ const de_CreateFaceLivenessSessionResponse = (output, context) => {
5227
+ return {
5228
+ SessionId: __expectString(output.SessionId),
5229
+ };
5230
+ };
5256
5231
  const de_CreateProjectResponse = (output, context) => {
5257
5232
  return {
5258
5233
  ProjectArn: __expectString(output.ProjectArn),
@@ -5773,6 +5748,15 @@ const de_GetFaceDetectionResponse = (output, context) => {
5773
5748
  VideoMetadata: output.VideoMetadata != null ? de_VideoMetadata(output.VideoMetadata, context) : undefined,
5774
5749
  };
5775
5750
  };
5751
+ const de_GetFaceLivenessSessionResultsResponse = (output, context) => {
5752
+ return {
5753
+ AuditImages: output.AuditImages != null ? de_AuditImages(output.AuditImages, context) : undefined,
5754
+ Confidence: __limitedParseFloat32(output.Confidence),
5755
+ ReferenceImage: output.ReferenceImage != null ? de_AuditImage(output.ReferenceImage, context) : undefined,
5756
+ SessionId: __expectString(output.SessionId),
5757
+ Status: __expectString(output.Status),
5758
+ };
5759
+ };
5776
5760
  const de_GetFaceSearchResponse = (output, context) => {
5777
5761
  return {
5778
5762
  JobStatus: __expectString(output.JobStatus),
@@ -6514,6 +6498,13 @@ const de_ServiceQuotaExceededException = (output, context) => {
6514
6498
  Message: __expectString(output.Message),
6515
6499
  };
6516
6500
  };
6501
+ const de_SessionNotFoundException = (output, context) => {
6502
+ return {
6503
+ Code: __expectString(output.Code),
6504
+ Logref: __expectString(output.Logref),
6505
+ Message: __expectString(output.Message),
6506
+ };
6507
+ };
6517
6508
  const de_ShotSegment = (output, context) => {
6518
6509
  return {
6519
6510
  Confidence: __limitedParseFloat32(output.Confidence),
@@ -6829,6 +6820,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
6829
6820
  }
6830
6821
  return new __HttpRequest(contents);
6831
6822
  };
6823
+ function sharedHeaders(operation) {
6824
+ return {
6825
+ "content-type": "application/x-amz-json-1.1",
6826
+ "x-amz-target": `RekognitionService.${operation}`,
6827
+ };
6828
+ }
6832
6829
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
6833
6830
  if (encoded.length) {
6834
6831
  return JSON.parse(encoded);