@aws-sdk/client-rekognition 3.350.0 → 3.351.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.
- package/README.md +98 -7
- package/dist-cjs/Rekognition.js +14 -0
- package/dist-cjs/commands/AssociateFacesCommand.js +46 -0
- package/dist-cjs/commands/CreateUserCommand.js +46 -0
- package/dist-cjs/commands/DeleteUserCommand.js +46 -0
- package/dist-cjs/commands/DisassociateFacesCommand.js +46 -0
- package/dist-cjs/commands/ListUsersCommand.js +46 -0
- package/dist-cjs/commands/SearchUsersByImageCommand.js +46 -0
- package/dist-cjs/commands/SearchUsersCommand.js +46 -0
- package/dist-cjs/commands/index.js +7 -0
- package/dist-cjs/models/models_0.js +159 -130
- package/dist-cjs/models/models_1.js +18 -1
- package/dist-cjs/pagination/ListUsersPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_1.js +565 -4
- package/dist-es/Rekognition.js +14 -0
- package/dist-es/commands/AssociateFacesCommand.js +42 -0
- package/dist-es/commands/CreateUserCommand.js +42 -0
- package/dist-es/commands/DeleteUserCommand.js +42 -0
- package/dist-es/commands/DisassociateFacesCommand.js +42 -0
- package/dist-es/commands/ListUsersCommand.js +42 -0
- package/dist-es/commands/SearchUsersByImageCommand.js +42 -0
- package/dist-es/commands/SearchUsersCommand.js +42 -0
- package/dist-es/commands/index.js +7 -0
- package/dist-es/models/models_0.js +149 -120
- package/dist-es/models/models_1.js +16 -0
- package/dist-es/pagination/ListUsersPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +548 -1
- package/dist-types/Rekognition.d.ts +84 -0
- package/dist-types/RekognitionClient.d.ts +44 -2
- package/dist-types/commands/AssociateFacesCommand.d.ts +158 -0
- package/dist-types/commands/CreateUserCommand.d.ts +114 -0
- package/dist-types/commands/DeleteFacesCommand.d.ts +9 -0
- package/dist-types/commands/DeleteUserCommand.d.ts +106 -0
- package/dist-types/commands/DescribeCollectionCommand.d.ts +1 -0
- package/dist-types/commands/DisassociateFacesCommand.d.ts +128 -0
- package/dist-types/commands/GetFaceSearchCommand.d.ts +1 -0
- package/dist-types/commands/IndexFacesCommand.d.ts +1 -0
- package/dist-types/commands/ListFacesCommand.d.ts +5 -0
- package/dist-types/commands/ListUsersCommand.d.ts +108 -0
- package/dist-types/commands/SearchFacesByImageCommand.d.ts +1 -0
- package/dist-types/commands/SearchFacesCommand.d.ts +1 -0
- package/dist-types/commands/SearchUsersByImageCommand.d.ts +294 -0
- package/dist-types/commands/SearchUsersCommand.d.ts +117 -0
- package/dist-types/commands/StartCelebrityRecognitionCommand.d.ts +2 -1
- package/dist-types/commands/StartContentModerationCommand.d.ts +1 -1
- package/dist-types/commands/StartFaceDetectionCommand.d.ts +1 -1
- package/dist-types/commands/StartFaceSearchCommand.d.ts +1 -1
- package/dist-types/commands/StartLabelDetectionCommand.d.ts +1 -1
- package/dist-types/commands/StartPersonTrackingCommand.d.ts +1 -1
- package/dist-types/commands/StartProjectVersionCommand.d.ts +1 -1
- package/dist-types/commands/StartSegmentDetectionCommand.d.ts +1 -1
- package/dist-types/commands/StartStreamProcessorCommand.d.ts +1 -1
- package/dist-types/commands/StartTextDetectionCommand.d.ts +1 -1
- package/dist-types/commands/StopProjectVersionCommand.d.ts +1 -1
- package/dist-types/commands/StopStreamProcessorCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +7 -0
- package/dist-types/index.d.ts +35 -0
- package/dist-types/models/models_0.d.ts +668 -604
- package/dist-types/models/models_1.d.ts +562 -1
- package/dist-types/pagination/ListUsersPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +63 -0
- package/dist-types/ts3.4/Rekognition.d.ts +119 -0
- package/dist-types/ts3.4/RekognitionClient.d.ts +42 -0
- package/dist-types/ts3.4/commands/AssociateFacesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateUserCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/DeleteUserCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/DisassociateFacesCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListUsersCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/SearchUsersByImageCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/SearchUsersCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/StartCelebrityRecognitionCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/StartContentModerationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartFaceDetectionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartFaceSearchCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartLabelDetectionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartPersonTrackingCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartProjectVersionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartSegmentDetectionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartStreamProcessorCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartTextDetectionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StopProjectVersionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StopStreamProcessorCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +7 -0
- package/dist-types/ts3.4/models/models_0.d.ts +236 -206
- package/dist-types/ts3.4/models/models_1.d.ts +150 -0
- package/dist-types/ts3.4/pagination/ListUsersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +84 -0
- package/package.json +4 -2
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.de_UpdateStreamProcessorCommand = exports.de_UpdateDatasetEntriesCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopStreamProcessorCommand = exports.de_StopProjectVersionCommand = exports.de_StartTextDetectionCommand = exports.de_StartStreamProcessorCommand = exports.de_StartSegmentDetectionCommand = exports.de_StartProjectVersionCommand = exports.de_StartPersonTrackingCommand = exports.de_StartLabelDetectionCommand = exports.de_StartFaceSearchCommand = exports.de_StartFaceDetectionCommand = exports.de_StartContentModerationCommand = exports.de_StartCelebrityRecognitionCommand = exports.de_SearchFacesByImageCommand = exports.de_SearchFacesCommand = exports.de_RecognizeCelebritiesCommand = exports.de_PutProjectPolicyCommand = exports.de_ListTagsForResourceCommand = exports.de_ListStreamProcessorsCommand = exports.de_ListProjectPoliciesCommand = exports.de_ListFacesCommand = exports.de_ListDatasetLabelsCommand = exports.de_ListDatasetEntriesCommand = exports.de_ListCollectionsCommand = exports.de_IndexFacesCommand = exports.de_GetTextDetectionCommand = exports.de_GetSegmentDetectionCommand = void 0;
|
|
3
|
+
exports.se_ListUsersCommand = exports.se_ListTagsForResourceCommand = exports.se_ListStreamProcessorsCommand = exports.se_ListProjectPoliciesCommand = exports.se_ListFacesCommand = exports.se_ListDatasetLabelsCommand = exports.se_ListDatasetEntriesCommand = exports.se_ListCollectionsCommand = exports.se_IndexFacesCommand = exports.se_GetTextDetectionCommand = exports.se_GetSegmentDetectionCommand = exports.se_GetPersonTrackingCommand = exports.se_GetLabelDetectionCommand = exports.se_GetFaceSearchCommand = exports.se_GetFaceLivenessSessionResultsCommand = exports.se_GetFaceDetectionCommand = exports.se_GetContentModerationCommand = exports.se_GetCelebrityRecognitionCommand = exports.se_GetCelebrityInfoCommand = exports.se_DistributeDatasetEntriesCommand = exports.se_DisassociateFacesCommand = exports.se_DetectTextCommand = exports.se_DetectProtectiveEquipmentCommand = exports.se_DetectModerationLabelsCommand = exports.se_DetectLabelsCommand = exports.se_DetectFacesCommand = exports.se_DetectCustomLabelsCommand = exports.se_DescribeStreamProcessorCommand = exports.se_DescribeProjectVersionsCommand = exports.se_DescribeProjectsCommand = exports.se_DescribeDatasetCommand = exports.se_DescribeCollectionCommand = exports.se_DeleteUserCommand = exports.se_DeleteStreamProcessorCommand = exports.se_DeleteProjectVersionCommand = exports.se_DeleteProjectPolicyCommand = exports.se_DeleteProjectCommand = exports.se_DeleteFacesCommand = exports.se_DeleteDatasetCommand = exports.se_DeleteCollectionCommand = exports.se_CreateUserCommand = exports.se_CreateStreamProcessorCommand = exports.se_CreateProjectVersionCommand = exports.se_CreateProjectCommand = exports.se_CreateFaceLivenessSessionCommand = exports.se_CreateDatasetCommand = exports.se_CreateCollectionCommand = exports.se_CopyProjectVersionCommand = exports.se_CompareFacesCommand = exports.se_AssociateFacesCommand = void 0;
|
|
4
|
+
exports.de_DetectProtectiveEquipmentCommand = exports.de_DetectModerationLabelsCommand = exports.de_DetectLabelsCommand = exports.de_DetectFacesCommand = exports.de_DetectCustomLabelsCommand = exports.de_DescribeStreamProcessorCommand = exports.de_DescribeProjectVersionsCommand = exports.de_DescribeProjectsCommand = exports.de_DescribeDatasetCommand = exports.de_DescribeCollectionCommand = exports.de_DeleteUserCommand = exports.de_DeleteStreamProcessorCommand = exports.de_DeleteProjectVersionCommand = exports.de_DeleteProjectPolicyCommand = exports.de_DeleteProjectCommand = exports.de_DeleteFacesCommand = exports.de_DeleteDatasetCommand = exports.de_DeleteCollectionCommand = exports.de_CreateUserCommand = exports.de_CreateStreamProcessorCommand = exports.de_CreateProjectVersionCommand = exports.de_CreateProjectCommand = exports.de_CreateFaceLivenessSessionCommand = exports.de_CreateDatasetCommand = exports.de_CreateCollectionCommand = exports.de_CopyProjectVersionCommand = exports.de_CompareFacesCommand = exports.de_AssociateFacesCommand = exports.se_UpdateStreamProcessorCommand = exports.se_UpdateDatasetEntriesCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopStreamProcessorCommand = exports.se_StopProjectVersionCommand = exports.se_StartTextDetectionCommand = exports.se_StartStreamProcessorCommand = exports.se_StartSegmentDetectionCommand = exports.se_StartProjectVersionCommand = exports.se_StartPersonTrackingCommand = exports.se_StartLabelDetectionCommand = exports.se_StartFaceSearchCommand = exports.se_StartFaceDetectionCommand = exports.se_StartContentModerationCommand = exports.se_StartCelebrityRecognitionCommand = exports.se_SearchUsersByImageCommand = exports.se_SearchUsersCommand = exports.se_SearchFacesByImageCommand = exports.se_SearchFacesCommand = exports.se_RecognizeCelebritiesCommand = exports.se_PutProjectPolicyCommand = void 0;
|
|
5
|
+
exports.de_UpdateStreamProcessorCommand = exports.de_UpdateDatasetEntriesCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopStreamProcessorCommand = exports.de_StopProjectVersionCommand = exports.de_StartTextDetectionCommand = exports.de_StartStreamProcessorCommand = exports.de_StartSegmentDetectionCommand = exports.de_StartProjectVersionCommand = exports.de_StartPersonTrackingCommand = exports.de_StartLabelDetectionCommand = exports.de_StartFaceSearchCommand = exports.de_StartFaceDetectionCommand = exports.de_StartContentModerationCommand = exports.de_StartCelebrityRecognitionCommand = exports.de_SearchUsersByImageCommand = exports.de_SearchUsersCommand = exports.de_SearchFacesByImageCommand = exports.de_SearchFacesCommand = exports.de_RecognizeCelebritiesCommand = exports.de_PutProjectPolicyCommand = exports.de_ListUsersCommand = exports.de_ListTagsForResourceCommand = exports.de_ListStreamProcessorsCommand = exports.de_ListProjectPoliciesCommand = exports.de_ListFacesCommand = exports.de_ListDatasetLabelsCommand = exports.de_ListDatasetEntriesCommand = exports.de_ListCollectionsCommand = exports.de_IndexFacesCommand = exports.de_GetTextDetectionCommand = exports.de_GetSegmentDetectionCommand = exports.de_GetPersonTrackingCommand = exports.de_GetLabelDetectionCommand = exports.de_GetFaceSearchCommand = exports.de_GetFaceLivenessSessionResultsCommand = exports.de_GetFaceDetectionCommand = exports.de_GetContentModerationCommand = exports.de_GetCelebrityRecognitionCommand = exports.de_GetCelebrityInfoCommand = exports.de_DistributeDatasetEntriesCommand = exports.de_DisassociateFacesCommand = exports.de_DetectTextCommand = void 0;
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
8
|
+
const uuid_1 = require("uuid");
|
|
8
9
|
const models_0_1 = require("../models/models_0");
|
|
10
|
+
const models_1_1 = require("../models/models_1");
|
|
9
11
|
const RekognitionServiceException_1 = require("../models/RekognitionServiceException");
|
|
12
|
+
const se_AssociateFacesCommand = async (input, context) => {
|
|
13
|
+
const headers = sharedHeaders("AssociateFaces");
|
|
14
|
+
let body;
|
|
15
|
+
body = JSON.stringify(se_AssociateFacesRequest(input, context));
|
|
16
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
|
+
};
|
|
18
|
+
exports.se_AssociateFacesCommand = se_AssociateFacesCommand;
|
|
10
19
|
const se_CompareFacesCommand = async (input, context) => {
|
|
11
20
|
const headers = sharedHeaders("CompareFaces");
|
|
12
21
|
let body;
|
|
@@ -63,6 +72,13 @@ const se_CreateStreamProcessorCommand = async (input, context) => {
|
|
|
63
72
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
64
73
|
};
|
|
65
74
|
exports.se_CreateStreamProcessorCommand = se_CreateStreamProcessorCommand;
|
|
75
|
+
const se_CreateUserCommand = async (input, context) => {
|
|
76
|
+
const headers = sharedHeaders("CreateUser");
|
|
77
|
+
let body;
|
|
78
|
+
body = JSON.stringify(se_CreateUserRequest(input, context));
|
|
79
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
80
|
+
};
|
|
81
|
+
exports.se_CreateUserCommand = se_CreateUserCommand;
|
|
66
82
|
const se_DeleteCollectionCommand = async (input, context) => {
|
|
67
83
|
const headers = sharedHeaders("DeleteCollection");
|
|
68
84
|
let body;
|
|
@@ -112,6 +128,13 @@ const se_DeleteStreamProcessorCommand = async (input, context) => {
|
|
|
112
128
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
129
|
};
|
|
114
130
|
exports.se_DeleteStreamProcessorCommand = se_DeleteStreamProcessorCommand;
|
|
131
|
+
const se_DeleteUserCommand = async (input, context) => {
|
|
132
|
+
const headers = sharedHeaders("DeleteUser");
|
|
133
|
+
let body;
|
|
134
|
+
body = JSON.stringify(se_DeleteUserRequest(input, context));
|
|
135
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
136
|
+
};
|
|
137
|
+
exports.se_DeleteUserCommand = se_DeleteUserCommand;
|
|
115
138
|
const se_DescribeCollectionCommand = async (input, context) => {
|
|
116
139
|
const headers = sharedHeaders("DescribeCollection");
|
|
117
140
|
let body;
|
|
@@ -189,6 +212,13 @@ const se_DetectTextCommand = async (input, context) => {
|
|
|
189
212
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
190
213
|
};
|
|
191
214
|
exports.se_DetectTextCommand = se_DetectTextCommand;
|
|
215
|
+
const se_DisassociateFacesCommand = async (input, context) => {
|
|
216
|
+
const headers = sharedHeaders("DisassociateFaces");
|
|
217
|
+
let body;
|
|
218
|
+
body = JSON.stringify(se_DisassociateFacesRequest(input, context));
|
|
219
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
220
|
+
};
|
|
221
|
+
exports.se_DisassociateFacesCommand = se_DisassociateFacesCommand;
|
|
192
222
|
const se_DistributeDatasetEntriesCommand = async (input, context) => {
|
|
193
223
|
const headers = sharedHeaders("DistributeDatasetEntries");
|
|
194
224
|
let body;
|
|
@@ -322,6 +352,13 @@ const se_ListTagsForResourceCommand = async (input, context) => {
|
|
|
322
352
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
323
353
|
};
|
|
324
354
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
355
|
+
const se_ListUsersCommand = async (input, context) => {
|
|
356
|
+
const headers = sharedHeaders("ListUsers");
|
|
357
|
+
let body;
|
|
358
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
359
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
360
|
+
};
|
|
361
|
+
exports.se_ListUsersCommand = se_ListUsersCommand;
|
|
325
362
|
const se_PutProjectPolicyCommand = async (input, context) => {
|
|
326
363
|
const headers = sharedHeaders("PutProjectPolicy");
|
|
327
364
|
let body;
|
|
@@ -350,6 +387,20 @@ const se_SearchFacesByImageCommand = async (input, context) => {
|
|
|
350
387
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
351
388
|
};
|
|
352
389
|
exports.se_SearchFacesByImageCommand = se_SearchFacesByImageCommand;
|
|
390
|
+
const se_SearchUsersCommand = async (input, context) => {
|
|
391
|
+
const headers = sharedHeaders("SearchUsers");
|
|
392
|
+
let body;
|
|
393
|
+
body = JSON.stringify(se_SearchUsersRequest(input, context));
|
|
394
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
395
|
+
};
|
|
396
|
+
exports.se_SearchUsersCommand = se_SearchUsersCommand;
|
|
397
|
+
const se_SearchUsersByImageCommand = async (input, context) => {
|
|
398
|
+
const headers = sharedHeaders("SearchUsersByImage");
|
|
399
|
+
let body;
|
|
400
|
+
body = JSON.stringify(se_SearchUsersByImageRequest(input, context));
|
|
401
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
402
|
+
};
|
|
403
|
+
exports.se_SearchUsersByImageCommand = se_SearchUsersByImageCommand;
|
|
353
404
|
const se_StartCelebrityRecognitionCommand = async (input, context) => {
|
|
354
405
|
const headers = sharedHeaders("StartCelebrityRecognition");
|
|
355
406
|
let body;
|
|
@@ -462,6 +513,63 @@ const se_UpdateStreamProcessorCommand = async (input, context) => {
|
|
|
462
513
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
463
514
|
};
|
|
464
515
|
exports.se_UpdateStreamProcessorCommand = se_UpdateStreamProcessorCommand;
|
|
516
|
+
const de_AssociateFacesCommand = async (output, context) => {
|
|
517
|
+
if (output.statusCode >= 300) {
|
|
518
|
+
return de_AssociateFacesCommandError(output, context);
|
|
519
|
+
}
|
|
520
|
+
const data = await parseBody(output.body, context);
|
|
521
|
+
let contents = {};
|
|
522
|
+
contents = de_AssociateFacesResponse(data, context);
|
|
523
|
+
const response = {
|
|
524
|
+
$metadata: deserializeMetadata(output),
|
|
525
|
+
...contents,
|
|
526
|
+
};
|
|
527
|
+
return response;
|
|
528
|
+
};
|
|
529
|
+
exports.de_AssociateFacesCommand = de_AssociateFacesCommand;
|
|
530
|
+
const de_AssociateFacesCommandError = async (output, context) => {
|
|
531
|
+
const parsedOutput = {
|
|
532
|
+
...output,
|
|
533
|
+
body: await parseErrorBody(output.body, context),
|
|
534
|
+
};
|
|
535
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
536
|
+
switch (errorCode) {
|
|
537
|
+
case "AccessDeniedException":
|
|
538
|
+
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
539
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
540
|
+
case "ConflictException":
|
|
541
|
+
case "com.amazonaws.rekognition#ConflictException":
|
|
542
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
543
|
+
case "IdempotentParameterMismatchException":
|
|
544
|
+
case "com.amazonaws.rekognition#IdempotentParameterMismatchException":
|
|
545
|
+
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
546
|
+
case "InternalServerError":
|
|
547
|
+
case "com.amazonaws.rekognition#InternalServerError":
|
|
548
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
549
|
+
case "InvalidParameterException":
|
|
550
|
+
case "com.amazonaws.rekognition#InvalidParameterException":
|
|
551
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
552
|
+
case "ProvisionedThroughputExceededException":
|
|
553
|
+
case "com.amazonaws.rekognition#ProvisionedThroughputExceededException":
|
|
554
|
+
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
555
|
+
case "ResourceNotFoundException":
|
|
556
|
+
case "com.amazonaws.rekognition#ResourceNotFoundException":
|
|
557
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
558
|
+
case "ServiceQuotaExceededException":
|
|
559
|
+
case "com.amazonaws.rekognition#ServiceQuotaExceededException":
|
|
560
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
561
|
+
case "ThrottlingException":
|
|
562
|
+
case "com.amazonaws.rekognition#ThrottlingException":
|
|
563
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
564
|
+
default:
|
|
565
|
+
const parsedBody = parsedOutput.body;
|
|
566
|
+
return throwDefaultError({
|
|
567
|
+
output,
|
|
568
|
+
parsedBody,
|
|
569
|
+
errorCode,
|
|
570
|
+
});
|
|
571
|
+
}
|
|
572
|
+
};
|
|
465
573
|
const de_CompareFacesCommand = async (output, context) => {
|
|
466
574
|
if (output.statusCode >= 300) {
|
|
467
575
|
return de_CompareFacesCommandError(output, context);
|
|
@@ -888,6 +996,63 @@ const de_CreateStreamProcessorCommandError = async (output, context) => {
|
|
|
888
996
|
});
|
|
889
997
|
}
|
|
890
998
|
};
|
|
999
|
+
const de_CreateUserCommand = async (output, context) => {
|
|
1000
|
+
if (output.statusCode >= 300) {
|
|
1001
|
+
return de_CreateUserCommandError(output, context);
|
|
1002
|
+
}
|
|
1003
|
+
const data = await parseBody(output.body, context);
|
|
1004
|
+
let contents = {};
|
|
1005
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1006
|
+
const response = {
|
|
1007
|
+
$metadata: deserializeMetadata(output),
|
|
1008
|
+
...contents,
|
|
1009
|
+
};
|
|
1010
|
+
return response;
|
|
1011
|
+
};
|
|
1012
|
+
exports.de_CreateUserCommand = de_CreateUserCommand;
|
|
1013
|
+
const de_CreateUserCommandError = async (output, context) => {
|
|
1014
|
+
const parsedOutput = {
|
|
1015
|
+
...output,
|
|
1016
|
+
body: await parseErrorBody(output.body, context),
|
|
1017
|
+
};
|
|
1018
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1019
|
+
switch (errorCode) {
|
|
1020
|
+
case "AccessDeniedException":
|
|
1021
|
+
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
1022
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1023
|
+
case "ConflictException":
|
|
1024
|
+
case "com.amazonaws.rekognition#ConflictException":
|
|
1025
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1026
|
+
case "IdempotentParameterMismatchException":
|
|
1027
|
+
case "com.amazonaws.rekognition#IdempotentParameterMismatchException":
|
|
1028
|
+
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
1029
|
+
case "InternalServerError":
|
|
1030
|
+
case "com.amazonaws.rekognition#InternalServerError":
|
|
1031
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1032
|
+
case "InvalidParameterException":
|
|
1033
|
+
case "com.amazonaws.rekognition#InvalidParameterException":
|
|
1034
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1035
|
+
case "ProvisionedThroughputExceededException":
|
|
1036
|
+
case "com.amazonaws.rekognition#ProvisionedThroughputExceededException":
|
|
1037
|
+
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
1038
|
+
case "ResourceNotFoundException":
|
|
1039
|
+
case "com.amazonaws.rekognition#ResourceNotFoundException":
|
|
1040
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1041
|
+
case "ServiceQuotaExceededException":
|
|
1042
|
+
case "com.amazonaws.rekognition#ServiceQuotaExceededException":
|
|
1043
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1044
|
+
case "ThrottlingException":
|
|
1045
|
+
case "com.amazonaws.rekognition#ThrottlingException":
|
|
1046
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1047
|
+
default:
|
|
1048
|
+
const parsedBody = parsedOutput.body;
|
|
1049
|
+
return throwDefaultError({
|
|
1050
|
+
output,
|
|
1051
|
+
parsedBody,
|
|
1052
|
+
errorCode,
|
|
1053
|
+
});
|
|
1054
|
+
}
|
|
1055
|
+
};
|
|
891
1056
|
const de_DeleteCollectionCommand = async (output, context) => {
|
|
892
1057
|
if (output.statusCode >= 300) {
|
|
893
1058
|
return de_DeleteCollectionCommandError(output, context);
|
|
@@ -1242,6 +1407,60 @@ const de_DeleteStreamProcessorCommandError = async (output, context) => {
|
|
|
1242
1407
|
});
|
|
1243
1408
|
}
|
|
1244
1409
|
};
|
|
1410
|
+
const de_DeleteUserCommand = async (output, context) => {
|
|
1411
|
+
if (output.statusCode >= 300) {
|
|
1412
|
+
return de_DeleteUserCommandError(output, context);
|
|
1413
|
+
}
|
|
1414
|
+
const data = await parseBody(output.body, context);
|
|
1415
|
+
let contents = {};
|
|
1416
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1417
|
+
const response = {
|
|
1418
|
+
$metadata: deserializeMetadata(output),
|
|
1419
|
+
...contents,
|
|
1420
|
+
};
|
|
1421
|
+
return response;
|
|
1422
|
+
};
|
|
1423
|
+
exports.de_DeleteUserCommand = de_DeleteUserCommand;
|
|
1424
|
+
const de_DeleteUserCommandError = async (output, context) => {
|
|
1425
|
+
const parsedOutput = {
|
|
1426
|
+
...output,
|
|
1427
|
+
body: await parseErrorBody(output.body, context),
|
|
1428
|
+
};
|
|
1429
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1430
|
+
switch (errorCode) {
|
|
1431
|
+
case "AccessDeniedException":
|
|
1432
|
+
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
1433
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1434
|
+
case "ConflictException":
|
|
1435
|
+
case "com.amazonaws.rekognition#ConflictException":
|
|
1436
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1437
|
+
case "IdempotentParameterMismatchException":
|
|
1438
|
+
case "com.amazonaws.rekognition#IdempotentParameterMismatchException":
|
|
1439
|
+
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
1440
|
+
case "InternalServerError":
|
|
1441
|
+
case "com.amazonaws.rekognition#InternalServerError":
|
|
1442
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1443
|
+
case "InvalidParameterException":
|
|
1444
|
+
case "com.amazonaws.rekognition#InvalidParameterException":
|
|
1445
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1446
|
+
case "ProvisionedThroughputExceededException":
|
|
1447
|
+
case "com.amazonaws.rekognition#ProvisionedThroughputExceededException":
|
|
1448
|
+
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
1449
|
+
case "ResourceNotFoundException":
|
|
1450
|
+
case "com.amazonaws.rekognition#ResourceNotFoundException":
|
|
1451
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1452
|
+
case "ThrottlingException":
|
|
1453
|
+
case "com.amazonaws.rekognition#ThrottlingException":
|
|
1454
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1455
|
+
default:
|
|
1456
|
+
const parsedBody = parsedOutput.body;
|
|
1457
|
+
return throwDefaultError({
|
|
1458
|
+
output,
|
|
1459
|
+
parsedBody,
|
|
1460
|
+
errorCode,
|
|
1461
|
+
});
|
|
1462
|
+
}
|
|
1463
|
+
};
|
|
1245
1464
|
const de_DescribeCollectionCommand = async (output, context) => {
|
|
1246
1465
|
if (output.statusCode >= 300) {
|
|
1247
1466
|
return de_DescribeCollectionCommandError(output, context);
|
|
@@ -1821,6 +2040,60 @@ const de_DetectTextCommandError = async (output, context) => {
|
|
|
1821
2040
|
});
|
|
1822
2041
|
}
|
|
1823
2042
|
};
|
|
2043
|
+
const de_DisassociateFacesCommand = async (output, context) => {
|
|
2044
|
+
if (output.statusCode >= 300) {
|
|
2045
|
+
return de_DisassociateFacesCommandError(output, context);
|
|
2046
|
+
}
|
|
2047
|
+
const data = await parseBody(output.body, context);
|
|
2048
|
+
let contents = {};
|
|
2049
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2050
|
+
const response = {
|
|
2051
|
+
$metadata: deserializeMetadata(output),
|
|
2052
|
+
...contents,
|
|
2053
|
+
};
|
|
2054
|
+
return response;
|
|
2055
|
+
};
|
|
2056
|
+
exports.de_DisassociateFacesCommand = de_DisassociateFacesCommand;
|
|
2057
|
+
const de_DisassociateFacesCommandError = async (output, context) => {
|
|
2058
|
+
const parsedOutput = {
|
|
2059
|
+
...output,
|
|
2060
|
+
body: await parseErrorBody(output.body, context),
|
|
2061
|
+
};
|
|
2062
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2063
|
+
switch (errorCode) {
|
|
2064
|
+
case "AccessDeniedException":
|
|
2065
|
+
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
2066
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2067
|
+
case "ConflictException":
|
|
2068
|
+
case "com.amazonaws.rekognition#ConflictException":
|
|
2069
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2070
|
+
case "IdempotentParameterMismatchException":
|
|
2071
|
+
case "com.amazonaws.rekognition#IdempotentParameterMismatchException":
|
|
2072
|
+
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
2073
|
+
case "InternalServerError":
|
|
2074
|
+
case "com.amazonaws.rekognition#InternalServerError":
|
|
2075
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2076
|
+
case "InvalidParameterException":
|
|
2077
|
+
case "com.amazonaws.rekognition#InvalidParameterException":
|
|
2078
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2079
|
+
case "ProvisionedThroughputExceededException":
|
|
2080
|
+
case "com.amazonaws.rekognition#ProvisionedThroughputExceededException":
|
|
2081
|
+
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
2082
|
+
case "ResourceNotFoundException":
|
|
2083
|
+
case "com.amazonaws.rekognition#ResourceNotFoundException":
|
|
2084
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2085
|
+
case "ThrottlingException":
|
|
2086
|
+
case "com.amazonaws.rekognition#ThrottlingException":
|
|
2087
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2088
|
+
default:
|
|
2089
|
+
const parsedBody = parsedOutput.body;
|
|
2090
|
+
return throwDefaultError({
|
|
2091
|
+
output,
|
|
2092
|
+
parsedBody,
|
|
2093
|
+
errorCode,
|
|
2094
|
+
});
|
|
2095
|
+
}
|
|
2096
|
+
};
|
|
1824
2097
|
const de_DistributeDatasetEntriesCommand = async (output, context) => {
|
|
1825
2098
|
if (output.statusCode >= 300) {
|
|
1826
2099
|
return de_DistributeDatasetEntriesCommandError(output, context);
|
|
@@ -2799,6 +3072,57 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
2799
3072
|
});
|
|
2800
3073
|
}
|
|
2801
3074
|
};
|
|
3075
|
+
const de_ListUsersCommand = async (output, context) => {
|
|
3076
|
+
if (output.statusCode >= 300) {
|
|
3077
|
+
return de_ListUsersCommandError(output, context);
|
|
3078
|
+
}
|
|
3079
|
+
const data = await parseBody(output.body, context);
|
|
3080
|
+
let contents = {};
|
|
3081
|
+
contents = (0, smithy_client_1._json)(data);
|
|
3082
|
+
const response = {
|
|
3083
|
+
$metadata: deserializeMetadata(output),
|
|
3084
|
+
...contents,
|
|
3085
|
+
};
|
|
3086
|
+
return response;
|
|
3087
|
+
};
|
|
3088
|
+
exports.de_ListUsersCommand = de_ListUsersCommand;
|
|
3089
|
+
const de_ListUsersCommandError = async (output, context) => {
|
|
3090
|
+
const parsedOutput = {
|
|
3091
|
+
...output,
|
|
3092
|
+
body: await parseErrorBody(output.body, context),
|
|
3093
|
+
};
|
|
3094
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3095
|
+
switch (errorCode) {
|
|
3096
|
+
case "AccessDeniedException":
|
|
3097
|
+
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
3098
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3099
|
+
case "InternalServerError":
|
|
3100
|
+
case "com.amazonaws.rekognition#InternalServerError":
|
|
3101
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3102
|
+
case "InvalidPaginationTokenException":
|
|
3103
|
+
case "com.amazonaws.rekognition#InvalidPaginationTokenException":
|
|
3104
|
+
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
3105
|
+
case "InvalidParameterException":
|
|
3106
|
+
case "com.amazonaws.rekognition#InvalidParameterException":
|
|
3107
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3108
|
+
case "ProvisionedThroughputExceededException":
|
|
3109
|
+
case "com.amazonaws.rekognition#ProvisionedThroughputExceededException":
|
|
3110
|
+
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
3111
|
+
case "ResourceNotFoundException":
|
|
3112
|
+
case "com.amazonaws.rekognition#ResourceNotFoundException":
|
|
3113
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3114
|
+
case "ThrottlingException":
|
|
3115
|
+
case "com.amazonaws.rekognition#ThrottlingException":
|
|
3116
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3117
|
+
default:
|
|
3118
|
+
const parsedBody = parsedOutput.body;
|
|
3119
|
+
return throwDefaultError({
|
|
3120
|
+
output,
|
|
3121
|
+
parsedBody,
|
|
3122
|
+
errorCode,
|
|
3123
|
+
});
|
|
3124
|
+
}
|
|
3125
|
+
};
|
|
2802
3126
|
const de_PutProjectPolicyCommand = async (output, context) => {
|
|
2803
3127
|
if (output.statusCode >= 300) {
|
|
2804
3128
|
return de_PutProjectPolicyCommandError(output, context);
|
|
@@ -3021,6 +3345,111 @@ const de_SearchFacesByImageCommandError = async (output, context) => {
|
|
|
3021
3345
|
});
|
|
3022
3346
|
}
|
|
3023
3347
|
};
|
|
3348
|
+
const de_SearchUsersCommand = async (output, context) => {
|
|
3349
|
+
if (output.statusCode >= 300) {
|
|
3350
|
+
return de_SearchUsersCommandError(output, context);
|
|
3351
|
+
}
|
|
3352
|
+
const data = await parseBody(output.body, context);
|
|
3353
|
+
let contents = {};
|
|
3354
|
+
contents = de_SearchUsersResponse(data, context);
|
|
3355
|
+
const response = {
|
|
3356
|
+
$metadata: deserializeMetadata(output),
|
|
3357
|
+
...contents,
|
|
3358
|
+
};
|
|
3359
|
+
return response;
|
|
3360
|
+
};
|
|
3361
|
+
exports.de_SearchUsersCommand = de_SearchUsersCommand;
|
|
3362
|
+
const de_SearchUsersCommandError = async (output, context) => {
|
|
3363
|
+
const parsedOutput = {
|
|
3364
|
+
...output,
|
|
3365
|
+
body: await parseErrorBody(output.body, context),
|
|
3366
|
+
};
|
|
3367
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3368
|
+
switch (errorCode) {
|
|
3369
|
+
case "AccessDeniedException":
|
|
3370
|
+
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
3371
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3372
|
+
case "InternalServerError":
|
|
3373
|
+
case "com.amazonaws.rekognition#InternalServerError":
|
|
3374
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3375
|
+
case "InvalidParameterException":
|
|
3376
|
+
case "com.amazonaws.rekognition#InvalidParameterException":
|
|
3377
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3378
|
+
case "ProvisionedThroughputExceededException":
|
|
3379
|
+
case "com.amazonaws.rekognition#ProvisionedThroughputExceededException":
|
|
3380
|
+
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
3381
|
+
case "ResourceNotFoundException":
|
|
3382
|
+
case "com.amazonaws.rekognition#ResourceNotFoundException":
|
|
3383
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3384
|
+
case "ThrottlingException":
|
|
3385
|
+
case "com.amazonaws.rekognition#ThrottlingException":
|
|
3386
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3387
|
+
default:
|
|
3388
|
+
const parsedBody = parsedOutput.body;
|
|
3389
|
+
return throwDefaultError({
|
|
3390
|
+
output,
|
|
3391
|
+
parsedBody,
|
|
3392
|
+
errorCode,
|
|
3393
|
+
});
|
|
3394
|
+
}
|
|
3395
|
+
};
|
|
3396
|
+
const de_SearchUsersByImageCommand = async (output, context) => {
|
|
3397
|
+
if (output.statusCode >= 300) {
|
|
3398
|
+
return de_SearchUsersByImageCommandError(output, context);
|
|
3399
|
+
}
|
|
3400
|
+
const data = await parseBody(output.body, context);
|
|
3401
|
+
let contents = {};
|
|
3402
|
+
contents = de_SearchUsersByImageResponse(data, context);
|
|
3403
|
+
const response = {
|
|
3404
|
+
$metadata: deserializeMetadata(output),
|
|
3405
|
+
...contents,
|
|
3406
|
+
};
|
|
3407
|
+
return response;
|
|
3408
|
+
};
|
|
3409
|
+
exports.de_SearchUsersByImageCommand = de_SearchUsersByImageCommand;
|
|
3410
|
+
const de_SearchUsersByImageCommandError = async (output, context) => {
|
|
3411
|
+
const parsedOutput = {
|
|
3412
|
+
...output,
|
|
3413
|
+
body: await parseErrorBody(output.body, context),
|
|
3414
|
+
};
|
|
3415
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3416
|
+
switch (errorCode) {
|
|
3417
|
+
case "AccessDeniedException":
|
|
3418
|
+
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
3419
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3420
|
+
case "ImageTooLargeException":
|
|
3421
|
+
case "com.amazonaws.rekognition#ImageTooLargeException":
|
|
3422
|
+
throw await de_ImageTooLargeExceptionRes(parsedOutput, context);
|
|
3423
|
+
case "InternalServerError":
|
|
3424
|
+
case "com.amazonaws.rekognition#InternalServerError":
|
|
3425
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3426
|
+
case "InvalidImageFormatException":
|
|
3427
|
+
case "com.amazonaws.rekognition#InvalidImageFormatException":
|
|
3428
|
+
throw await de_InvalidImageFormatExceptionRes(parsedOutput, context);
|
|
3429
|
+
case "InvalidParameterException":
|
|
3430
|
+
case "com.amazonaws.rekognition#InvalidParameterException":
|
|
3431
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3432
|
+
case "InvalidS3ObjectException":
|
|
3433
|
+
case "com.amazonaws.rekognition#InvalidS3ObjectException":
|
|
3434
|
+
throw await de_InvalidS3ObjectExceptionRes(parsedOutput, context);
|
|
3435
|
+
case "ProvisionedThroughputExceededException":
|
|
3436
|
+
case "com.amazonaws.rekognition#ProvisionedThroughputExceededException":
|
|
3437
|
+
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
3438
|
+
case "ResourceNotFoundException":
|
|
3439
|
+
case "com.amazonaws.rekognition#ResourceNotFoundException":
|
|
3440
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3441
|
+
case "ThrottlingException":
|
|
3442
|
+
case "com.amazonaws.rekognition#ThrottlingException":
|
|
3443
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3444
|
+
default:
|
|
3445
|
+
const parsedBody = parsedOutput.body;
|
|
3446
|
+
return throwDefaultError({
|
|
3447
|
+
output,
|
|
3448
|
+
parsedBody,
|
|
3449
|
+
errorCode,
|
|
3450
|
+
});
|
|
3451
|
+
}
|
|
3452
|
+
};
|
|
3024
3453
|
const de_StartCelebrityRecognitionCommand = async (output, context) => {
|
|
3025
3454
|
if (output.statusCode >= 300) {
|
|
3026
3455
|
return de_StartCelebrityRecognitionCommandError(output, context);
|
|
@@ -3900,6 +4329,15 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
3900
4329
|
});
|
|
3901
4330
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3902
4331
|
};
|
|
4332
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
4333
|
+
const body = parsedOutput.body;
|
|
4334
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
4335
|
+
const exception = new models_0_1.ConflictException({
|
|
4336
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
4337
|
+
...deserialized,
|
|
4338
|
+
});
|
|
4339
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
4340
|
+
};
|
|
3903
4341
|
const de_HumanLoopQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
3904
4342
|
const body = parsedOutput.body;
|
|
3905
4343
|
const deserialized = (0, smithy_client_1._json)(body);
|
|
@@ -4074,12 +4512,21 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
4074
4512
|
const de_VideoTooLargeExceptionRes = async (parsedOutput, context) => {
|
|
4075
4513
|
const body = parsedOutput.body;
|
|
4076
4514
|
const deserialized = (0, smithy_client_1._json)(body);
|
|
4077
|
-
const exception = new
|
|
4515
|
+
const exception = new models_1_1.VideoTooLargeException({
|
|
4078
4516
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4079
4517
|
...deserialized,
|
|
4080
4518
|
});
|
|
4081
4519
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
4082
4520
|
};
|
|
4521
|
+
const se_AssociateFacesRequest = (input, context) => {
|
|
4522
|
+
return (0, smithy_client_1.take)(input, {
|
|
4523
|
+
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
4524
|
+
CollectionId: [],
|
|
4525
|
+
FaceIds: smithy_client_1._json,
|
|
4526
|
+
UserId: [],
|
|
4527
|
+
UserMatchThreshold: smithy_client_1.serializeFloat,
|
|
4528
|
+
});
|
|
4529
|
+
};
|
|
4083
4530
|
const se_BlackFrame = (input, context) => {
|
|
4084
4531
|
return (0, smithy_client_1.take)(input, {
|
|
4085
4532
|
MaxPixelThreshold: smithy_client_1.serializeFloat,
|
|
@@ -4128,11 +4575,25 @@ const se_CreateStreamProcessorRequest = (input, context) => {
|
|
|
4128
4575
|
Tags: smithy_client_1._json,
|
|
4129
4576
|
});
|
|
4130
4577
|
};
|
|
4578
|
+
const se_CreateUserRequest = (input, context) => {
|
|
4579
|
+
return (0, smithy_client_1.take)(input, {
|
|
4580
|
+
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
4581
|
+
CollectionId: [],
|
|
4582
|
+
UserId: [],
|
|
4583
|
+
});
|
|
4584
|
+
};
|
|
4131
4585
|
const se_DatasetChanges = (input, context) => {
|
|
4132
4586
|
return (0, smithy_client_1.take)(input, {
|
|
4133
4587
|
GroundTruth: context.base64Encoder,
|
|
4134
4588
|
});
|
|
4135
4589
|
};
|
|
4590
|
+
const se_DeleteUserRequest = (input, context) => {
|
|
4591
|
+
return (0, smithy_client_1.take)(input, {
|
|
4592
|
+
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
4593
|
+
CollectionId: [],
|
|
4594
|
+
UserId: [],
|
|
4595
|
+
});
|
|
4596
|
+
};
|
|
4136
4597
|
const se_DetectCustomLabelsRequest = (input, context) => {
|
|
4137
4598
|
return (0, smithy_client_1.take)(input, {
|
|
4138
4599
|
Image: (_) => se_Image(_, context),
|
|
@@ -4188,6 +4649,14 @@ const se_DetectTextRequest = (input, context) => {
|
|
|
4188
4649
|
Image: (_) => se_Image(_, context),
|
|
4189
4650
|
});
|
|
4190
4651
|
};
|
|
4652
|
+
const se_DisassociateFacesRequest = (input, context) => {
|
|
4653
|
+
return (0, smithy_client_1.take)(input, {
|
|
4654
|
+
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
4655
|
+
CollectionId: [],
|
|
4656
|
+
FaceIds: smithy_client_1._json,
|
|
4657
|
+
UserId: [],
|
|
4658
|
+
});
|
|
4659
|
+
};
|
|
4191
4660
|
const se_FaceSearchSettings = (input, context) => {
|
|
4192
4661
|
return (0, smithy_client_1.take)(input, {
|
|
4193
4662
|
CollectionId: [],
|
|
@@ -4264,6 +4733,24 @@ const se_SearchFacesRequest = (input, context) => {
|
|
|
4264
4733
|
MaxFaces: [],
|
|
4265
4734
|
});
|
|
4266
4735
|
};
|
|
4736
|
+
const se_SearchUsersByImageRequest = (input, context) => {
|
|
4737
|
+
return (0, smithy_client_1.take)(input, {
|
|
4738
|
+
CollectionId: [],
|
|
4739
|
+
Image: (_) => se_Image(_, context),
|
|
4740
|
+
MaxUsers: [],
|
|
4741
|
+
QualityFilter: [],
|
|
4742
|
+
UserMatchThreshold: smithy_client_1.serializeFloat,
|
|
4743
|
+
});
|
|
4744
|
+
};
|
|
4745
|
+
const se_SearchUsersRequest = (input, context) => {
|
|
4746
|
+
return (0, smithy_client_1.take)(input, {
|
|
4747
|
+
CollectionId: [],
|
|
4748
|
+
FaceId: [],
|
|
4749
|
+
MaxUsers: [],
|
|
4750
|
+
UserId: [],
|
|
4751
|
+
UserMatchThreshold: smithy_client_1.serializeFloat,
|
|
4752
|
+
});
|
|
4753
|
+
};
|
|
4267
4754
|
const se_StartContentModerationRequest = (input, context) => {
|
|
4268
4755
|
return (0, smithy_client_1.take)(input, {
|
|
4269
4756
|
ClientRequestToken: [],
|
|
@@ -4362,6 +4849,13 @@ const se_UpdateStreamProcessorRequest = (input, context) => {
|
|
|
4362
4849
|
SettingsForUpdate: (_) => se_StreamProcessorSettingsForUpdate(_, context),
|
|
4363
4850
|
});
|
|
4364
4851
|
};
|
|
4852
|
+
const de_AssociateFacesResponse = (output, context) => {
|
|
4853
|
+
return (0, smithy_client_1.take)(output, {
|
|
4854
|
+
AssociatedFaces: smithy_client_1._json,
|
|
4855
|
+
UnsuccessfulFaceAssociations: (_) => de_UnsuccessfulFaceAssociationList(_, context),
|
|
4856
|
+
UserStatus: smithy_client_1.expectString,
|
|
4857
|
+
});
|
|
4858
|
+
};
|
|
4365
4859
|
const de_AuditImage = (output, context) => {
|
|
4366
4860
|
return (0, smithy_client_1.take)(output, {
|
|
4367
4861
|
BoundingBox: (_) => de_BoundingBox(_, context),
|
|
@@ -4576,6 +5070,7 @@ const de_DescribeCollectionResponse = (output, context) => {
|
|
|
4576
5070
|
CreationTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4577
5071
|
FaceCount: smithy_client_1.expectLong,
|
|
4578
5072
|
FaceModelVersion: smithy_client_1.expectString,
|
|
5073
|
+
UserCount: smithy_client_1.expectLong,
|
|
4579
5074
|
});
|
|
4580
5075
|
};
|
|
4581
5076
|
const de_DescribeDatasetResponse = (output, context) => {
|
|
@@ -4761,6 +5256,7 @@ const de_Face = (output, context) => {
|
|
|
4761
5256
|
FaceId: smithy_client_1.expectString,
|
|
4762
5257
|
ImageId: smithy_client_1.expectString,
|
|
4763
5258
|
IndexFacesModelVersion: smithy_client_1.expectString,
|
|
5259
|
+
UserId: smithy_client_1.expectString,
|
|
4764
5260
|
});
|
|
4765
5261
|
};
|
|
4766
5262
|
const de_FaceDetail = (output, context) => {
|
|
@@ -5266,6 +5762,11 @@ const de_RegionsOfInterest = (output, context) => {
|
|
|
5266
5762
|
});
|
|
5267
5763
|
return retVal;
|
|
5268
5764
|
};
|
|
5765
|
+
const de_SearchedFaceDetails = (output, context) => {
|
|
5766
|
+
return (0, smithy_client_1.take)(output, {
|
|
5767
|
+
FaceDetail: (_) => de_FaceDetail(_, context),
|
|
5768
|
+
});
|
|
5769
|
+
};
|
|
5269
5770
|
const de_SearchFacesByImageResponse = (output, context) => {
|
|
5270
5771
|
return (0, smithy_client_1.take)(output, {
|
|
5271
5772
|
FaceMatches: (_) => de_FaceMatchList(_, context),
|
|
@@ -5281,6 +5782,22 @@ const de_SearchFacesResponse = (output, context) => {
|
|
|
5281
5782
|
SearchedFaceId: smithy_client_1.expectString,
|
|
5282
5783
|
});
|
|
5283
5784
|
};
|
|
5785
|
+
const de_SearchUsersByImageResponse = (output, context) => {
|
|
5786
|
+
return (0, smithy_client_1.take)(output, {
|
|
5787
|
+
FaceModelVersion: smithy_client_1.expectString,
|
|
5788
|
+
SearchedFace: (_) => de_SearchedFaceDetails(_, context),
|
|
5789
|
+
UnsearchedFaces: (_) => de_UnsearchedFacesList(_, context),
|
|
5790
|
+
UserMatches: (_) => de_UserMatchList(_, context),
|
|
5791
|
+
});
|
|
5792
|
+
};
|
|
5793
|
+
const de_SearchUsersResponse = (output, context) => {
|
|
5794
|
+
return (0, smithy_client_1.take)(output, {
|
|
5795
|
+
FaceModelVersion: smithy_client_1.expectString,
|
|
5796
|
+
SearchedFace: smithy_client_1._json,
|
|
5797
|
+
SearchedUser: smithy_client_1._json,
|
|
5798
|
+
UserMatches: (_) => de_UserMatchList(_, context),
|
|
5799
|
+
});
|
|
5800
|
+
};
|
|
5284
5801
|
const de_SegmentDetection = (output, context) => {
|
|
5285
5802
|
return (0, smithy_client_1.take)(output, {
|
|
5286
5803
|
DurationFrames: smithy_client_1.expectLong,
|
|
@@ -5381,6 +5898,50 @@ const de_UnindexedFaces = (output, context) => {
|
|
|
5381
5898
|
});
|
|
5382
5899
|
return retVal;
|
|
5383
5900
|
};
|
|
5901
|
+
const de_UnsearchedFace = (output, context) => {
|
|
5902
|
+
return (0, smithy_client_1.take)(output, {
|
|
5903
|
+
FaceDetails: (_) => de_FaceDetail(_, context),
|
|
5904
|
+
Reasons: smithy_client_1._json,
|
|
5905
|
+
});
|
|
5906
|
+
};
|
|
5907
|
+
const de_UnsearchedFacesList = (output, context) => {
|
|
5908
|
+
const retVal = (output || [])
|
|
5909
|
+
.filter((e) => e != null)
|
|
5910
|
+
.map((entry) => {
|
|
5911
|
+
return de_UnsearchedFace(entry, context);
|
|
5912
|
+
});
|
|
5913
|
+
return retVal;
|
|
5914
|
+
};
|
|
5915
|
+
const de_UnsuccessfulFaceAssociation = (output, context) => {
|
|
5916
|
+
return (0, smithy_client_1.take)(output, {
|
|
5917
|
+
Confidence: smithy_client_1.limitedParseFloat32,
|
|
5918
|
+
FaceId: smithy_client_1.expectString,
|
|
5919
|
+
Reasons: smithy_client_1._json,
|
|
5920
|
+
UserId: smithy_client_1.expectString,
|
|
5921
|
+
});
|
|
5922
|
+
};
|
|
5923
|
+
const de_UnsuccessfulFaceAssociationList = (output, context) => {
|
|
5924
|
+
const retVal = (output || [])
|
|
5925
|
+
.filter((e) => e != null)
|
|
5926
|
+
.map((entry) => {
|
|
5927
|
+
return de_UnsuccessfulFaceAssociation(entry, context);
|
|
5928
|
+
});
|
|
5929
|
+
return retVal;
|
|
5930
|
+
};
|
|
5931
|
+
const de_UserMatch = (output, context) => {
|
|
5932
|
+
return (0, smithy_client_1.take)(output, {
|
|
5933
|
+
Similarity: smithy_client_1.limitedParseFloat32,
|
|
5934
|
+
User: smithy_client_1._json,
|
|
5935
|
+
});
|
|
5936
|
+
};
|
|
5937
|
+
const de_UserMatchList = (output, context) => {
|
|
5938
|
+
const retVal = (output || [])
|
|
5939
|
+
.filter((e) => e != null)
|
|
5940
|
+
.map((entry) => {
|
|
5941
|
+
return de_UserMatch(entry, context);
|
|
5942
|
+
});
|
|
5943
|
+
return retVal;
|
|
5944
|
+
};
|
|
5384
5945
|
const de_VideoMetadata = (output, context) => {
|
|
5385
5946
|
return (0, smithy_client_1.take)(output, {
|
|
5386
5947
|
Codec: smithy_client_1.expectString,
|