@aws-sdk/client-rekognition 3.927.0 → 3.929.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/dist-cjs/index.js +3039 -3936
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/RekognitionClient.js +2 -0
- package/dist-es/commands/AssociateFacesCommand.js +3 -9
- package/dist-es/commands/CompareFacesCommand.js +3 -9
- package/dist-es/commands/CopyProjectVersionCommand.js +3 -9
- package/dist-es/commands/CreateCollectionCommand.js +3 -9
- package/dist-es/commands/CreateDatasetCommand.js +3 -9
- package/dist-es/commands/CreateFaceLivenessSessionCommand.js +3 -9
- package/dist-es/commands/CreateProjectCommand.js +3 -9
- package/dist-es/commands/CreateProjectVersionCommand.js +3 -9
- package/dist-es/commands/CreateStreamProcessorCommand.js +3 -9
- package/dist-es/commands/CreateUserCommand.js +3 -9
- package/dist-es/commands/DeleteCollectionCommand.js +3 -9
- package/dist-es/commands/DeleteDatasetCommand.js +3 -9
- package/dist-es/commands/DeleteFacesCommand.js +3 -9
- package/dist-es/commands/DeleteProjectCommand.js +3 -9
- package/dist-es/commands/DeleteProjectPolicyCommand.js +3 -9
- package/dist-es/commands/DeleteProjectVersionCommand.js +3 -9
- package/dist-es/commands/DeleteStreamProcessorCommand.js +3 -9
- package/dist-es/commands/DeleteUserCommand.js +3 -9
- package/dist-es/commands/DescribeCollectionCommand.js +3 -9
- package/dist-es/commands/DescribeDatasetCommand.js +3 -9
- package/dist-es/commands/DescribeProjectVersionsCommand.js +3 -9
- package/dist-es/commands/DescribeProjectsCommand.js +3 -9
- package/dist-es/commands/DescribeStreamProcessorCommand.js +3 -9
- package/dist-es/commands/DetectCustomLabelsCommand.js +3 -9
- package/dist-es/commands/DetectFacesCommand.js +3 -9
- package/dist-es/commands/DetectLabelsCommand.js +3 -9
- package/dist-es/commands/DetectModerationLabelsCommand.js +3 -9
- package/dist-es/commands/DetectProtectiveEquipmentCommand.js +3 -9
- package/dist-es/commands/DetectTextCommand.js +3 -9
- package/dist-es/commands/DisassociateFacesCommand.js +3 -9
- package/dist-es/commands/DistributeDatasetEntriesCommand.js +3 -9
- package/dist-es/commands/GetCelebrityInfoCommand.js +3 -9
- package/dist-es/commands/GetCelebrityRecognitionCommand.js +3 -9
- package/dist-es/commands/GetContentModerationCommand.js +3 -9
- package/dist-es/commands/GetFaceDetectionCommand.js +3 -9
- package/dist-es/commands/GetFaceLivenessSessionResultsCommand.js +3 -10
- package/dist-es/commands/GetFaceSearchCommand.js +3 -9
- package/dist-es/commands/GetLabelDetectionCommand.js +3 -9
- package/dist-es/commands/GetMediaAnalysisJobCommand.js +3 -9
- package/dist-es/commands/GetPersonTrackingCommand.js +3 -9
- package/dist-es/commands/GetSegmentDetectionCommand.js +3 -9
- package/dist-es/commands/GetTextDetectionCommand.js +3 -9
- package/dist-es/commands/IndexFacesCommand.js +3 -9
- package/dist-es/commands/ListCollectionsCommand.js +3 -9
- package/dist-es/commands/ListDatasetEntriesCommand.js +3 -9
- package/dist-es/commands/ListDatasetLabelsCommand.js +3 -9
- package/dist-es/commands/ListFacesCommand.js +3 -9
- package/dist-es/commands/ListMediaAnalysisJobsCommand.js +3 -9
- package/dist-es/commands/ListProjectPoliciesCommand.js +3 -9
- package/dist-es/commands/ListStreamProcessorsCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/ListUsersCommand.js +3 -9
- package/dist-es/commands/PutProjectPolicyCommand.js +3 -9
- package/dist-es/commands/RecognizeCelebritiesCommand.js +3 -9
- package/dist-es/commands/SearchFacesByImageCommand.js +3 -9
- package/dist-es/commands/SearchFacesCommand.js +3 -9
- package/dist-es/commands/SearchUsersByImageCommand.js +3 -9
- package/dist-es/commands/SearchUsersCommand.js +3 -9
- package/dist-es/commands/StartCelebrityRecognitionCommand.js +3 -9
- package/dist-es/commands/StartContentModerationCommand.js +3 -9
- package/dist-es/commands/StartFaceDetectionCommand.js +3 -9
- package/dist-es/commands/StartFaceSearchCommand.js +3 -9
- package/dist-es/commands/StartLabelDetectionCommand.js +3 -9
- package/dist-es/commands/StartMediaAnalysisJobCommand.js +3 -9
- package/dist-es/commands/StartPersonTrackingCommand.js +3 -9
- package/dist-es/commands/StartProjectVersionCommand.js +3 -9
- package/dist-es/commands/StartSegmentDetectionCommand.js +3 -9
- package/dist-es/commands/StartStreamProcessorCommand.js +3 -9
- package/dist-es/commands/StartTextDetectionCommand.js +3 -9
- package/dist-es/commands/StopProjectVersionCommand.js +3 -9
- package/dist-es/commands/StopStreamProcessorCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateDatasetEntriesCommand.js +3 -9
- package/dist-es/commands/UpdateStreamProcessorCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -10
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +2847 -0
- package/dist-types/RekognitionClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -8
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +487 -0
- package/dist-types/ts3.4/RekognitionClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -4
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +493 -0
- package/package.json +5 -6
- package/dist-es/protocols/Aws_json1_1.js +0 -3336
- package/dist-types/protocols/Aws_json1_1.d.ts +0 -677
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -905
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { StopProjectVersion } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class StopProjectVersionCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("RekognitionService", "StopProjectVersion", {})
|
|
17
13
|
.n("RekognitionClient", "StopProjectVersionCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_StopProjectVersionCommand)
|
|
20
|
-
.de(de_StopProjectVersionCommand)
|
|
14
|
+
.sc(StopProjectVersion)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { StopStreamProcessor } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class StopStreamProcessorCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("RekognitionService", "StopStreamProcessor", {})
|
|
17
13
|
.n("RekognitionClient", "StopStreamProcessorCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_StopStreamProcessorCommand)
|
|
20
|
-
.de(de_StopStreamProcessorCommand)
|
|
14
|
+
.sc(StopStreamProcessor)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { TagResource } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class TagResourceCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("RekognitionService", "TagResource", {})
|
|
17
13
|
.n("RekognitionClient", "TagResourceCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_TagResourceCommand)
|
|
20
|
-
.de(de_TagResourceCommand)
|
|
14
|
+
.sc(TagResource)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { UntagResource } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class UntagResourceCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("RekognitionService", "UntagResource", {})
|
|
17
13
|
.n("RekognitionClient", "UntagResourceCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_UntagResourceCommand)
|
|
20
|
-
.de(de_UntagResourceCommand)
|
|
14
|
+
.sc(UntagResource)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { UpdateDatasetEntries } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class UpdateDatasetEntriesCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("RekognitionService", "UpdateDatasetEntries", {})
|
|
17
13
|
.n("RekognitionClient", "UpdateDatasetEntriesCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_UpdateDatasetEntriesCommand)
|
|
20
|
-
.de(de_UpdateDatasetEntriesCommand)
|
|
14
|
+
.sc(UpdateDatasetEntries)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { UpdateStreamProcessor } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class UpdateStreamProcessorCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("RekognitionService", "UpdateStreamProcessor", {})
|
|
17
13
|
.n("RekognitionClient", "UpdateStreamProcessorCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_UpdateStreamProcessorCommand)
|
|
20
|
-
.de(de_UpdateStreamProcessorCommand)
|
|
14
|
+
.sc(UpdateStreamProcessor)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { SENSITIVE_STRING, } from "@smithy/smithy-client";
|
|
2
1
|
import { RekognitionServiceException as __BaseException } from "./RekognitionServiceException";
|
|
3
2
|
export class AccessDeniedException extends __BaseException {
|
|
4
3
|
name = "AccessDeniedException";
|
|
@@ -658,12 +657,3 @@ export class InvalidManifestException extends __BaseException {
|
|
|
658
657
|
export const LabelDetectionFeatureName = {
|
|
659
658
|
GENERAL_LABELS: "GENERAL_LABELS",
|
|
660
659
|
};
|
|
661
|
-
export const AuditImageFilterSensitiveLog = (obj) => ({
|
|
662
|
-
...obj,
|
|
663
|
-
...(obj.Bytes && { Bytes: SENSITIVE_STRING }),
|
|
664
|
-
});
|
|
665
|
-
export const GetFaceLivenessSessionResultsResponseFilterSensitiveLog = (obj) => ({
|
|
666
|
-
...obj,
|
|
667
|
-
...(obj.ReferenceImage && { ReferenceImage: AuditImageFilterSensitiveLog(obj.ReferenceImage) }),
|
|
668
|
-
...(obj.AuditImages && { AuditImages: obj.AuditImages.map((item) => AuditImageFilterSensitiveLog(item)) }),
|
|
669
|
-
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { AwsJson1_1Protocol } from "@aws-sdk/core/protocols";
|
|
2
3
|
import { NoOpLogger } from "@smithy/smithy-client";
|
|
3
4
|
import { parseUrl } from "@smithy/url-parser";
|
|
4
5
|
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
@@ -22,6 +23,12 @@ export const getRuntimeConfig = (config) => {
|
|
|
22
23
|
},
|
|
23
24
|
],
|
|
24
25
|
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
+
protocol: config?.protocol ??
|
|
27
|
+
new AwsJson1_1Protocol({
|
|
28
|
+
defaultNamespace: "com.amazonaws.rekognition",
|
|
29
|
+
serviceTarget: "RekognitionService",
|
|
30
|
+
awsQueryCompatible: false,
|
|
31
|
+
}),
|
|
25
32
|
serviceId: config?.serviceId ?? "Rekognition",
|
|
26
33
|
urlParser: config?.urlParser ?? parseUrl,
|
|
27
34
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|