@aws-sdk/client-rekognition 3.490.0 → 3.495.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 +15 -0
- package/dist-cjs/Rekognition.js +1 -161
- package/dist-cjs/RekognitionClient.js +1 -43
- package/dist-cjs/commands/AssociateFacesCommand.js +1 -28
- package/dist-cjs/commands/CompareFacesCommand.js +1 -28
- package/dist-cjs/commands/CopyProjectVersionCommand.js +1 -28
- package/dist-cjs/commands/CreateCollectionCommand.js +1 -28
- package/dist-cjs/commands/CreateDatasetCommand.js +1 -28
- package/dist-cjs/commands/CreateFaceLivenessSessionCommand.js +1 -28
- package/dist-cjs/commands/CreateProjectCommand.js +1 -28
- package/dist-cjs/commands/CreateProjectVersionCommand.js +1 -28
- package/dist-cjs/commands/CreateStreamProcessorCommand.js +1 -28
- package/dist-cjs/commands/CreateUserCommand.js +1 -28
- package/dist-cjs/commands/DeleteCollectionCommand.js +1 -28
- package/dist-cjs/commands/DeleteDatasetCommand.js +1 -28
- package/dist-cjs/commands/DeleteFacesCommand.js +1 -28
- package/dist-cjs/commands/DeleteProjectCommand.js +1 -28
- package/dist-cjs/commands/DeleteProjectPolicyCommand.js +1 -28
- package/dist-cjs/commands/DeleteProjectVersionCommand.js +1 -28
- package/dist-cjs/commands/DeleteStreamProcessorCommand.js +1 -28
- package/dist-cjs/commands/DeleteUserCommand.js +1 -28
- package/dist-cjs/commands/DescribeCollectionCommand.js +1 -28
- package/dist-cjs/commands/DescribeDatasetCommand.js +1 -28
- package/dist-cjs/commands/DescribeProjectVersionsCommand.js +1 -28
- package/dist-cjs/commands/DescribeProjectsCommand.js +1 -28
- package/dist-cjs/commands/DescribeStreamProcessorCommand.js +1 -28
- package/dist-cjs/commands/DetectCustomLabelsCommand.js +1 -28
- package/dist-cjs/commands/DetectFacesCommand.js +1 -28
- package/dist-cjs/commands/DetectLabelsCommand.js +1 -28
- package/dist-cjs/commands/DetectModerationLabelsCommand.js +1 -28
- package/dist-cjs/commands/DetectProtectiveEquipmentCommand.js +1 -28
- package/dist-cjs/commands/DetectTextCommand.js +1 -28
- package/dist-cjs/commands/DisassociateFacesCommand.js +1 -28
- package/dist-cjs/commands/DistributeDatasetEntriesCommand.js +1 -28
- package/dist-cjs/commands/GetCelebrityInfoCommand.js +1 -28
- package/dist-cjs/commands/GetCelebrityRecognitionCommand.js +1 -28
- package/dist-cjs/commands/GetContentModerationCommand.js +1 -28
- package/dist-cjs/commands/GetFaceDetectionCommand.js +1 -28
- package/dist-cjs/commands/GetFaceLivenessSessionResultsCommand.js +1 -29
- package/dist-cjs/commands/GetFaceSearchCommand.js +1 -28
- package/dist-cjs/commands/GetLabelDetectionCommand.js +1 -28
- package/dist-cjs/commands/GetMediaAnalysisJobCommand.js +1 -28
- package/dist-cjs/commands/GetPersonTrackingCommand.js +1 -28
- package/dist-cjs/commands/GetSegmentDetectionCommand.js +1 -28
- package/dist-cjs/commands/GetTextDetectionCommand.js +1 -28
- package/dist-cjs/commands/IndexFacesCommand.js +1 -28
- package/dist-cjs/commands/ListCollectionsCommand.js +1 -28
- package/dist-cjs/commands/ListDatasetEntriesCommand.js +1 -28
- package/dist-cjs/commands/ListDatasetLabelsCommand.js +1 -28
- package/dist-cjs/commands/ListFacesCommand.js +1 -28
- package/dist-cjs/commands/ListMediaAnalysisJobsCommand.js +1 -28
- package/dist-cjs/commands/ListProjectPoliciesCommand.js +1 -28
- package/dist-cjs/commands/ListStreamProcessorsCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/ListUsersCommand.js +1 -28
- package/dist-cjs/commands/PutProjectPolicyCommand.js +1 -28
- package/dist-cjs/commands/RecognizeCelebritiesCommand.js +1 -28
- package/dist-cjs/commands/SearchFacesByImageCommand.js +1 -28
- package/dist-cjs/commands/SearchFacesCommand.js +1 -28
- package/dist-cjs/commands/SearchUsersByImageCommand.js +1 -28
- package/dist-cjs/commands/SearchUsersCommand.js +1 -28
- package/dist-cjs/commands/StartCelebrityRecognitionCommand.js +1 -28
- package/dist-cjs/commands/StartContentModerationCommand.js +1 -28
- package/dist-cjs/commands/StartFaceDetectionCommand.js +1 -28
- package/dist-cjs/commands/StartFaceSearchCommand.js +1 -28
- package/dist-cjs/commands/StartLabelDetectionCommand.js +1 -28
- package/dist-cjs/commands/StartMediaAnalysisJobCommand.js +1 -28
- package/dist-cjs/commands/StartPersonTrackingCommand.js +1 -28
- package/dist-cjs/commands/StartProjectVersionCommand.js +1 -28
- package/dist-cjs/commands/StartSegmentDetectionCommand.js +1 -28
- package/dist-cjs/commands/StartStreamProcessorCommand.js +1 -28
- package/dist-cjs/commands/StartTextDetectionCommand.js +1 -28
- package/dist-cjs/commands/StopProjectVersionCommand.js +1 -28
- package/dist-cjs/commands/StopStreamProcessorCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateDatasetEntriesCommand.js +1 -28
- package/dist-cjs/commands/UpdateStreamProcessorCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -78
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +8900 -12
- package/dist-cjs/models/RekognitionServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -5
- package/dist-cjs/models/models_0.js +1 -642
- package/dist-cjs/models/models_1.js +1 -34
- package/dist-cjs/pagination/DescribeProjectVersionsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeProjectsPaginator.js +1 -7
- package/dist-cjs/pagination/GetCelebrityRecognitionPaginator.js +1 -7
- package/dist-cjs/pagination/GetContentModerationPaginator.js +1 -7
- package/dist-cjs/pagination/GetFaceDetectionPaginator.js +1 -7
- package/dist-cjs/pagination/GetFaceSearchPaginator.js +1 -7
- package/dist-cjs/pagination/GetLabelDetectionPaginator.js +1 -7
- package/dist-cjs/pagination/GetPersonTrackingPaginator.js +1 -7
- package/dist-cjs/pagination/GetSegmentDetectionPaginator.js +1 -7
- package/dist-cjs/pagination/GetTextDetectionPaginator.js +1 -7
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListCollectionsPaginator.js +1 -7
- package/dist-cjs/pagination/ListDatasetEntriesPaginator.js +1 -7
- package/dist-cjs/pagination/ListDatasetLabelsPaginator.js +1 -7
- package/dist-cjs/pagination/ListFacesPaginator.js +1 -7
- package/dist-cjs/pagination/ListMediaAnalysisJobsPaginator.js +1 -7
- package/dist-cjs/pagination/ListProjectPoliciesPaginator.js +1 -7
- package/dist-cjs/pagination/ListStreamProcessorsPaginator.js +1 -7
- package/dist-cjs/pagination/ListUsersPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -22
- package/dist-cjs/protocols/Aws_json1_1.js +1 -6349
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/dist-cjs/waiters/index.js +1 -5
- package/dist-cjs/waiters/waitForProjectVersionRunning.js +1 -59
- package/dist-cjs/waiters/waitForProjectVersionTrainingCompleted.js +1 -59
- package/dist-es/protocols/Aws_json1_1.js +16 -0
- package/dist-types/Rekognition.d.ts +15 -0
- package/dist-types/RekognitionClient.d.ts +15 -0
- package/dist-types/commands/DetectCustomLabelsCommand.d.ts +6 -4
- package/dist-types/commands/DetectModerationLabelsCommand.d.ts +7 -0
- package/dist-types/commands/GetContentModerationCommand.d.ts +1 -0
- package/dist-types/commands/GetMediaAnalysisJobCommand.d.ts +3 -0
- package/dist-types/commands/ListMediaAnalysisJobsCommand.d.ts +3 -0
- package/dist-types/index.d.ts +15 -0
- package/dist-types/models/models_0.d.ts +45 -36
- package/dist-types/models/models_1.d.ts +35 -1
- package/dist-types/ts3.4/models/models_0.d.ts +10 -8
- package/dist-types/ts3.4/models/models_1.d.ts +9 -2
- package/package.json +41 -41
|
@@ -1,22 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveRuntimeExtensions = void 0;
|
|
4
|
-
const region_config_resolver_1 = require("@aws-sdk/region-config-resolver");
|
|
5
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const asPartial = (t) => t;
|
|
8
|
-
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
9
|
-
const extensionConfiguration = {
|
|
10
|
-
...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
11
|
-
...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
12
|
-
...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
|
|
13
|
-
};
|
|
14
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
15
|
-
return {
|
|
16
|
-
...runtimeConfig,
|
|
17
|
-
...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
18
|
-
...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
19
|
-
...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|
|
1
|
+
module.exports = require("./index.js");
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./waitForProjectVersionRunning"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./waitForProjectVersionTrainingCompleted"), exports);
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,59 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.waitUntilProjectVersionRunning = exports.waitForProjectVersionRunning = void 0;
|
|
4
|
-
const util_waiter_1 = require("@smithy/util-waiter");
|
|
5
|
-
const DescribeProjectVersionsCommand_1 = require("../commands/DescribeProjectVersionsCommand");
|
|
6
|
-
const checkState = async (client, input) => {
|
|
7
|
-
let reason;
|
|
8
|
-
try {
|
|
9
|
-
const result = await client.send(new DescribeProjectVersionsCommand_1.DescribeProjectVersionsCommand(input));
|
|
10
|
-
reason = result;
|
|
11
|
-
try {
|
|
12
|
-
const returnComparator = () => {
|
|
13
|
-
const flat_1 = [].concat(...result.ProjectVersionDescriptions);
|
|
14
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
15
|
-
return element_2.Status;
|
|
16
|
-
});
|
|
17
|
-
return projection_3;
|
|
18
|
-
};
|
|
19
|
-
let allStringEq_5 = returnComparator().length > 0;
|
|
20
|
-
for (const element_4 of returnComparator()) {
|
|
21
|
-
allStringEq_5 = allStringEq_5 && element_4 == "RUNNING";
|
|
22
|
-
}
|
|
23
|
-
if (allStringEq_5) {
|
|
24
|
-
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
catch (e) { }
|
|
28
|
-
try {
|
|
29
|
-
const returnComparator = () => {
|
|
30
|
-
const flat_1 = [].concat(...result.ProjectVersionDescriptions);
|
|
31
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
32
|
-
return element_2.Status;
|
|
33
|
-
});
|
|
34
|
-
return projection_3;
|
|
35
|
-
};
|
|
36
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
37
|
-
if (anyStringEq_4 == "FAILED") {
|
|
38
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
catch (e) { }
|
|
43
|
-
}
|
|
44
|
-
catch (exception) {
|
|
45
|
-
reason = exception;
|
|
46
|
-
}
|
|
47
|
-
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
48
|
-
};
|
|
49
|
-
const waitForProjectVersionRunning = async (params, input) => {
|
|
50
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
51
|
-
return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
52
|
-
};
|
|
53
|
-
exports.waitForProjectVersionRunning = waitForProjectVersionRunning;
|
|
54
|
-
const waitUntilProjectVersionRunning = async (params, input) => {
|
|
55
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
56
|
-
const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
57
|
-
return (0, util_waiter_1.checkExceptions)(result);
|
|
58
|
-
};
|
|
59
|
-
exports.waitUntilProjectVersionRunning = waitUntilProjectVersionRunning;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,59 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.waitUntilProjectVersionTrainingCompleted = exports.waitForProjectVersionTrainingCompleted = void 0;
|
|
4
|
-
const util_waiter_1 = require("@smithy/util-waiter");
|
|
5
|
-
const DescribeProjectVersionsCommand_1 = require("../commands/DescribeProjectVersionsCommand");
|
|
6
|
-
const checkState = async (client, input) => {
|
|
7
|
-
let reason;
|
|
8
|
-
try {
|
|
9
|
-
const result = await client.send(new DescribeProjectVersionsCommand_1.DescribeProjectVersionsCommand(input));
|
|
10
|
-
reason = result;
|
|
11
|
-
try {
|
|
12
|
-
const returnComparator = () => {
|
|
13
|
-
const flat_1 = [].concat(...result.ProjectVersionDescriptions);
|
|
14
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
15
|
-
return element_2.Status;
|
|
16
|
-
});
|
|
17
|
-
return projection_3;
|
|
18
|
-
};
|
|
19
|
-
let allStringEq_5 = returnComparator().length > 0;
|
|
20
|
-
for (const element_4 of returnComparator()) {
|
|
21
|
-
allStringEq_5 = allStringEq_5 && element_4 == "TRAINING_COMPLETED";
|
|
22
|
-
}
|
|
23
|
-
if (allStringEq_5) {
|
|
24
|
-
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
catch (e) { }
|
|
28
|
-
try {
|
|
29
|
-
const returnComparator = () => {
|
|
30
|
-
const flat_1 = [].concat(...result.ProjectVersionDescriptions);
|
|
31
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
32
|
-
return element_2.Status;
|
|
33
|
-
});
|
|
34
|
-
return projection_3;
|
|
35
|
-
};
|
|
36
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
37
|
-
if (anyStringEq_4 == "TRAINING_FAILED") {
|
|
38
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
catch (e) { }
|
|
43
|
-
}
|
|
44
|
-
catch (exception) {
|
|
45
|
-
reason = exception;
|
|
46
|
-
}
|
|
47
|
-
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
48
|
-
};
|
|
49
|
-
const waitForProjectVersionTrainingCompleted = async (params, input) => {
|
|
50
|
-
const serviceDefaults = { minDelay: 120, maxDelay: 120 };
|
|
51
|
-
return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
52
|
-
};
|
|
53
|
-
exports.waitForProjectVersionTrainingCompleted = waitForProjectVersionTrainingCompleted;
|
|
54
|
-
const waitUntilProjectVersionTrainingCompleted = async (params, input) => {
|
|
55
|
-
const serviceDefaults = { minDelay: 120, maxDelay: 120 };
|
|
56
|
-
const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
57
|
-
return (0, util_waiter_1.checkExceptions)(result);
|
|
58
|
-
};
|
|
59
|
-
exports.waitUntilProjectVersionTrainingCompleted = waitUntilProjectVersionTrainingCompleted;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -5100,6 +5100,20 @@ const de_ContentModerationDetections = (output, context) => {
|
|
|
5100
5100
|
});
|
|
5101
5101
|
return retVal;
|
|
5102
5102
|
};
|
|
5103
|
+
const de_ContentType = (output, context) => {
|
|
5104
|
+
return take(output, {
|
|
5105
|
+
Confidence: __limitedParseFloat32,
|
|
5106
|
+
Name: __expectString,
|
|
5107
|
+
});
|
|
5108
|
+
};
|
|
5109
|
+
const de_ContentTypes = (output, context) => {
|
|
5110
|
+
const retVal = (output || [])
|
|
5111
|
+
.filter((e) => e != null)
|
|
5112
|
+
.map((entry) => {
|
|
5113
|
+
return de_ContentType(entry, context);
|
|
5114
|
+
});
|
|
5115
|
+
return retVal;
|
|
5116
|
+
};
|
|
5103
5117
|
const de_CoversBodyPart = (output, context) => {
|
|
5104
5118
|
return take(output, {
|
|
5105
5119
|
Confidence: __limitedParseFloat32,
|
|
@@ -5251,6 +5265,7 @@ const de_DetectLabelsResponse = (output, context) => {
|
|
|
5251
5265
|
};
|
|
5252
5266
|
const de_DetectModerationLabelsResponse = (output, context) => {
|
|
5253
5267
|
return take(output, {
|
|
5268
|
+
ContentTypes: (_) => de_ContentTypes(_, context),
|
|
5254
5269
|
HumanLoopActivationOutput: (_) => de_HumanLoopActivationOutput(_, context),
|
|
5255
5270
|
ModerationLabels: (_) => de_ModerationLabels(_, context),
|
|
5256
5271
|
ModerationModelVersion: __expectString,
|
|
@@ -5731,6 +5746,7 @@ const de_ModerationLabel = (output, context) => {
|
|
|
5731
5746
|
Confidence: __limitedParseFloat32,
|
|
5732
5747
|
Name: __expectString,
|
|
5733
5748
|
ParentName: __expectString,
|
|
5749
|
+
TaxonomyLevel: __expectInt32,
|
|
5734
5750
|
});
|
|
5735
5751
|
};
|
|
5736
5752
|
const de_ModerationLabels = (output, context) => {
|
|
@@ -614,6 +614,11 @@ export interface Rekognition {
|
|
|
614
614
|
* </li>
|
|
615
615
|
* <li>
|
|
616
616
|
* <p>
|
|
617
|
+
* <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_GetMediaAnalysisJob.html">GetMediaAnalysisJob</a>
|
|
618
|
+
* </p>
|
|
619
|
+
* </li>
|
|
620
|
+
* <li>
|
|
621
|
+
* <p>
|
|
617
622
|
* <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_IndexFaces.html">IndexFaces</a>
|
|
618
623
|
* </p>
|
|
619
624
|
* </li>
|
|
@@ -624,6 +629,11 @@ export interface Rekognition {
|
|
|
624
629
|
* </li>
|
|
625
630
|
* <li>
|
|
626
631
|
* <p>
|
|
632
|
+
* <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_ListMediaAnalysisJob.html">ListMediaAnalysisJob</a>
|
|
633
|
+
* </p>
|
|
634
|
+
* </li>
|
|
635
|
+
* <li>
|
|
636
|
+
* <p>
|
|
627
637
|
* <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_ListFaces.html">ListFaces</a>
|
|
628
638
|
* </p>
|
|
629
639
|
* </li>
|
|
@@ -657,6 +667,11 @@ export interface Rekognition {
|
|
|
657
667
|
* <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_SearchUsersByImage.html">SearchUsersByImage</a>
|
|
658
668
|
* </p>
|
|
659
669
|
* </li>
|
|
670
|
+
* <li>
|
|
671
|
+
* <p>
|
|
672
|
+
* <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StartMediaAnalysisJob.html">StartMediaAnalysisJob</a>
|
|
673
|
+
* </p>
|
|
674
|
+
* </li>
|
|
660
675
|
* </ul>
|
|
661
676
|
* <p>
|
|
662
677
|
* <b>Amazon Rekognition Custom Labels</b>
|
|
@@ -312,6 +312,11 @@ export interface RekognitionClientResolvedConfig extends RekognitionClientResolv
|
|
|
312
312
|
* </li>
|
|
313
313
|
* <li>
|
|
314
314
|
* <p>
|
|
315
|
+
* <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_GetMediaAnalysisJob.html">GetMediaAnalysisJob</a>
|
|
316
|
+
* </p>
|
|
317
|
+
* </li>
|
|
318
|
+
* <li>
|
|
319
|
+
* <p>
|
|
315
320
|
* <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_IndexFaces.html">IndexFaces</a>
|
|
316
321
|
* </p>
|
|
317
322
|
* </li>
|
|
@@ -322,6 +327,11 @@ export interface RekognitionClientResolvedConfig extends RekognitionClientResolv
|
|
|
322
327
|
* </li>
|
|
323
328
|
* <li>
|
|
324
329
|
* <p>
|
|
330
|
+
* <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_ListMediaAnalysisJob.html">ListMediaAnalysisJob</a>
|
|
331
|
+
* </p>
|
|
332
|
+
* </li>
|
|
333
|
+
* <li>
|
|
334
|
+
* <p>
|
|
325
335
|
* <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_ListFaces.html">ListFaces</a>
|
|
326
336
|
* </p>
|
|
327
337
|
* </li>
|
|
@@ -355,6 +365,11 @@ export interface RekognitionClientResolvedConfig extends RekognitionClientResolv
|
|
|
355
365
|
* <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_SearchUsersByImage.html">SearchUsersByImage</a>
|
|
356
366
|
* </p>
|
|
357
367
|
* </li>
|
|
368
|
+
* <li>
|
|
369
|
+
* <p>
|
|
370
|
+
* <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StartMediaAnalysisJob.html">StartMediaAnalysisJob</a>
|
|
371
|
+
* </p>
|
|
372
|
+
* </li>
|
|
358
373
|
* </ul>
|
|
359
374
|
* <p>
|
|
360
375
|
* <b>Amazon Rekognition Custom Labels</b>
|
|
@@ -36,10 +36,12 @@ declare const DetectCustomLabelsCommand_base: {
|
|
|
36
36
|
* an Amazon S3 bucket. If you use the AWS CLI to call Amazon Rekognition operations, passing
|
|
37
37
|
* image bytes is not supported. The image must be either a PNG or JPEG formatted file. </p>
|
|
38
38
|
* <p> For each object that the model version detects on an image, the API returns a
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
* of confidence that the image contains the object (<code>Confidence</code>), and
|
|
42
|
-
*
|
|
39
|
+
* (<code>CustomLabel</code>) object in an array (<code>CustomLabels</code>). Each
|
|
40
|
+
* <code>CustomLabel</code> object provides the label name (<code>Name</code>), the level
|
|
41
|
+
* of confidence that the image contains the object (<code>Confidence</code>), and object
|
|
42
|
+
* location information, if it exists, for the label on the image (<code>Geometry</code>).
|
|
43
|
+
* Note that for the <code>DetectCustomLabelsLabels</code> operation, <code>Polygons</code>
|
|
44
|
+
* are not returned in the <code>Geometry</code> section of the response.</p>
|
|
43
45
|
* <p>To filter labels that are returned, specify a value for <code>MinConfidence</code>.
|
|
44
46
|
* <code>DetectCustomLabelsLabels</code> only returns labels with a confidence that's higher than
|
|
45
47
|
* the specified value.
|
|
@@ -76,6 +76,7 @@ declare const DetectModerationLabelsCommand_base: {
|
|
|
76
76
|
* // Confidence: Number("float"),
|
|
77
77
|
* // Name: "STRING_VALUE",
|
|
78
78
|
* // ParentName: "STRING_VALUE",
|
|
79
|
+
* // TaxonomyLevel: Number("int"),
|
|
79
80
|
* // },
|
|
80
81
|
* // ],
|
|
81
82
|
* // ModerationModelVersion: "STRING_VALUE",
|
|
@@ -87,6 +88,12 @@ declare const DetectModerationLabelsCommand_base: {
|
|
|
87
88
|
* // HumanLoopActivationConditionsEvaluationResults: "STRING_VALUE",
|
|
88
89
|
* // },
|
|
89
90
|
* // ProjectVersion: "STRING_VALUE",
|
|
91
|
+
* // ContentTypes: [ // ContentTypes
|
|
92
|
+
* // { // ContentType
|
|
93
|
+
* // Confidence: Number("float"),
|
|
94
|
+
* // Name: "STRING_VALUE",
|
|
95
|
+
* // },
|
|
96
|
+
* // ],
|
|
90
97
|
* // };
|
|
91
98
|
*
|
|
92
99
|
* ```
|
|
@@ -87,6 +87,7 @@ declare const GetContentModerationCommand_base: {
|
|
|
87
87
|
* // Confidence: Number("float"),
|
|
88
88
|
* // Name: "STRING_VALUE",
|
|
89
89
|
* // ParentName: "STRING_VALUE",
|
|
90
|
+
* // TaxonomyLevel: Number("int"),
|
|
90
91
|
* // },
|
|
91
92
|
* // StartTimestampMillis: Number("long"),
|
|
92
93
|
* // EndTimestampMillis: Number("long"),
|
|
@@ -73,6 +73,9 @@ declare const GetMediaAnalysisJobCommand_base: {
|
|
|
73
73
|
* // Name: "STRING_VALUE",
|
|
74
74
|
* // Version: "STRING_VALUE",
|
|
75
75
|
* // },
|
|
76
|
+
* // ModelVersions: { // MediaAnalysisModelVersions
|
|
77
|
+
* // Moderation: "STRING_VALUE",
|
|
78
|
+
* // },
|
|
76
79
|
* // },
|
|
77
80
|
* // ManifestSummary: { // MediaAnalysisManifestSummary
|
|
78
81
|
* // S3Object: {
|
|
@@ -76,6 +76,9 @@ declare const ListMediaAnalysisJobsCommand_base: {
|
|
|
76
76
|
* // Name: "STRING_VALUE",
|
|
77
77
|
* // Version: "STRING_VALUE",
|
|
78
78
|
* // },
|
|
79
|
+
* // ModelVersions: { // MediaAnalysisModelVersions
|
|
80
|
+
* // Moderation: "STRING_VALUE",
|
|
81
|
+
* // },
|
|
79
82
|
* // },
|
|
80
83
|
* // ManifestSummary: { // MediaAnalysisManifestSummary
|
|
81
84
|
* // S3Object: {
|
package/dist-types/index.d.ts
CHANGED
|
@@ -84,6 +84,11 @@
|
|
|
84
84
|
* </li>
|
|
85
85
|
* <li>
|
|
86
86
|
* <p>
|
|
87
|
+
* <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_GetMediaAnalysisJob.html">GetMediaAnalysisJob</a>
|
|
88
|
+
* </p>
|
|
89
|
+
* </li>
|
|
90
|
+
* <li>
|
|
91
|
+
* <p>
|
|
87
92
|
* <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_IndexFaces.html">IndexFaces</a>
|
|
88
93
|
* </p>
|
|
89
94
|
* </li>
|
|
@@ -94,6 +99,11 @@
|
|
|
94
99
|
* </li>
|
|
95
100
|
* <li>
|
|
96
101
|
* <p>
|
|
102
|
+
* <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_ListMediaAnalysisJob.html">ListMediaAnalysisJob</a>
|
|
103
|
+
* </p>
|
|
104
|
+
* </li>
|
|
105
|
+
* <li>
|
|
106
|
+
* <p>
|
|
97
107
|
* <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_ListFaces.html">ListFaces</a>
|
|
98
108
|
* </p>
|
|
99
109
|
* </li>
|
|
@@ -127,6 +137,11 @@
|
|
|
127
137
|
* <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_SearchUsersByImage.html">SearchUsersByImage</a>
|
|
128
138
|
* </p>
|
|
129
139
|
* </li>
|
|
140
|
+
* <li>
|
|
141
|
+
* <p>
|
|
142
|
+
* <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StartMediaAnalysisJob.html">StartMediaAnalysisJob</a>
|
|
143
|
+
* </p>
|
|
144
|
+
* </li>
|
|
130
145
|
* </ul>
|
|
131
146
|
* <p>
|
|
132
147
|
* <b>Amazon Rekognition Custom Labels</b>
|
|
@@ -201,8 +201,8 @@ export type UserStatus = (typeof UserStatus)[keyof typeof UserStatus];
|
|
|
201
201
|
export interface AssociateFacesResponse {
|
|
202
202
|
/**
|
|
203
203
|
* @public
|
|
204
|
-
* <p>An array of AssociatedFace objects containing FaceIDs that
|
|
205
|
-
* with the UserID
|
|
204
|
+
* <p>An array of AssociatedFace objects containing FaceIDs that have been successfully associated
|
|
205
|
+
* with the UserID. Returned if the AssociateFaces action is successful.</p>
|
|
206
206
|
*/
|
|
207
207
|
AssociatedFaces?: AssociatedFace[];
|
|
208
208
|
/**
|
|
@@ -1672,6 +1672,11 @@ export interface ModerationLabel {
|
|
|
1672
1672
|
* label <code>""</code>.</p>
|
|
1673
1673
|
*/
|
|
1674
1674
|
ParentName?: string;
|
|
1675
|
+
/**
|
|
1676
|
+
* @public
|
|
1677
|
+
* <p>The level of the moderation label with regard to its taxonomy, from 1 to 3.</p>
|
|
1678
|
+
*/
|
|
1679
|
+
TaxonomyLevel?: number;
|
|
1675
1680
|
}
|
|
1676
1681
|
/**
|
|
1677
1682
|
* @public
|
|
@@ -1720,6 +1725,22 @@ export declare const ContentModerationSortBy: {
|
|
|
1720
1725
|
* @public
|
|
1721
1726
|
*/
|
|
1722
1727
|
export type ContentModerationSortBy = (typeof ContentModerationSortBy)[keyof typeof ContentModerationSortBy];
|
|
1728
|
+
/**
|
|
1729
|
+
* @public
|
|
1730
|
+
* <p>Contains information regarding the confidence and name of a detected content type.</p>
|
|
1731
|
+
*/
|
|
1732
|
+
export interface ContentType {
|
|
1733
|
+
/**
|
|
1734
|
+
* @public
|
|
1735
|
+
* <p>The confidence level of the label given</p>
|
|
1736
|
+
*/
|
|
1737
|
+
Confidence?: number;
|
|
1738
|
+
/**
|
|
1739
|
+
* @public
|
|
1740
|
+
* <p>The name of the label</p>
|
|
1741
|
+
*/
|
|
1742
|
+
Name?: string;
|
|
1743
|
+
}
|
|
1723
1744
|
/**
|
|
1724
1745
|
* @public
|
|
1725
1746
|
* <p>The S3 bucket and folder location where training output is placed.</p>
|
|
@@ -4340,6 +4361,12 @@ export interface DetectModerationLabelsResponse {
|
|
|
4340
4361
|
* indicating that a base moderation detection project version was used.</p>
|
|
4341
4362
|
*/
|
|
4342
4363
|
ProjectVersion?: string;
|
|
4364
|
+
/**
|
|
4365
|
+
* @public
|
|
4366
|
+
* <p>A list of predicted results for the type of content an image contains. For example,
|
|
4367
|
+
* the image content might be from animation, sports, or a video game.</p>
|
|
4368
|
+
*/
|
|
4369
|
+
ContentTypes?: ContentType[];
|
|
4343
4370
|
}
|
|
4344
4371
|
/**
|
|
4345
4372
|
* @public
|
|
@@ -5777,6 +5804,17 @@ export interface MediaAnalysisOutputConfig {
|
|
|
5777
5804
|
*/
|
|
5778
5805
|
S3KeyPrefix?: string;
|
|
5779
5806
|
}
|
|
5807
|
+
/**
|
|
5808
|
+
* @public
|
|
5809
|
+
* <p>Object containing information about the model versions of selected features in a given job.</p>
|
|
5810
|
+
*/
|
|
5811
|
+
export interface MediaAnalysisModelVersions {
|
|
5812
|
+
/**
|
|
5813
|
+
* @public
|
|
5814
|
+
* <p>The Moderation base model version.</p>
|
|
5815
|
+
*/
|
|
5816
|
+
Moderation?: string;
|
|
5817
|
+
}
|
|
5780
5818
|
/**
|
|
5781
5819
|
* @public
|
|
5782
5820
|
* <p>Contains the results for a media analysis job created with StartMediaAnalysisJob.</p>
|
|
@@ -5792,6 +5830,11 @@ export interface MediaAnalysisResults {
|
|
|
5792
5830
|
* Amazon Rekognition Developer Guide. </p>
|
|
5793
5831
|
*/
|
|
5794
5832
|
S3Object?: S3Object;
|
|
5833
|
+
/**
|
|
5834
|
+
* @public
|
|
5835
|
+
* <p>Information about the model versions for the features selected in a given job.</p>
|
|
5836
|
+
*/
|
|
5837
|
+
ModelVersions?: MediaAnalysisModelVersions;
|
|
5795
5838
|
}
|
|
5796
5839
|
/**
|
|
5797
5840
|
* @public
|
|
@@ -7114,40 +7157,6 @@ export declare class MalformedPolicyDocumentException extends __BaseException {
|
|
|
7114
7157
|
*/
|
|
7115
7158
|
constructor(opts: __ExceptionOptionType<MalformedPolicyDocumentException, __BaseException>);
|
|
7116
7159
|
}
|
|
7117
|
-
/**
|
|
7118
|
-
* @public
|
|
7119
|
-
* <p>Contains metadata for a UserID matched with a given face.</p>
|
|
7120
|
-
*/
|
|
7121
|
-
export interface MatchedUser {
|
|
7122
|
-
/**
|
|
7123
|
-
* @public
|
|
7124
|
-
* <p>A provided ID for the UserID. Unique within the collection.</p>
|
|
7125
|
-
*/
|
|
7126
|
-
UserId?: string;
|
|
7127
|
-
/**
|
|
7128
|
-
* @public
|
|
7129
|
-
* <p>The status of the user matched to a provided FaceID.</p>
|
|
7130
|
-
*/
|
|
7131
|
-
UserStatus?: UserStatus;
|
|
7132
|
-
}
|
|
7133
|
-
/**
|
|
7134
|
-
* @public
|
|
7135
|
-
* <p>The Amazon Simple Notification Service topic to which Amazon Rekognition publishes the completion status of a video analysis operation. For more information, see
|
|
7136
|
-
* <a href="https://docs.aws.amazon.com/rekognition/latest/dg/api-video.html">Calling Amazon Rekognition Video operations</a>. Note that the Amazon SNS topic must have a topic name that begins with <i>AmazonRekognition</i> if you are using the AmazonRekognitionServiceRole permissions policy to access the topic.
|
|
7137
|
-
* For more information, see <a href="https://docs.aws.amazon.com/rekognition/latest/dg/api-video-roles.html#api-video-roles-all-topics">Giving access to multiple Amazon SNS topics</a>.</p>
|
|
7138
|
-
*/
|
|
7139
|
-
export interface NotificationChannel {
|
|
7140
|
-
/**
|
|
7141
|
-
* @public
|
|
7142
|
-
* <p>The Amazon SNS topic to which Amazon Rekognition posts the completion status.</p>
|
|
7143
|
-
*/
|
|
7144
|
-
SNSTopicArn: string | undefined;
|
|
7145
|
-
/**
|
|
7146
|
-
* @public
|
|
7147
|
-
* <p>The ARN of an IAM role that gives Amazon Rekognition publishing permissions to the Amazon SNS topic. </p>
|
|
7148
|
-
*/
|
|
7149
|
-
RoleArn: string | undefined;
|
|
7150
|
-
}
|
|
7151
7160
|
/**
|
|
7152
7161
|
* @internal
|
|
7153
7162
|
*/
|
|
@@ -1,6 +1,40 @@
|
|
|
1
1
|
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
|
-
import { BlackFrame, BoundingBox, Celebrity, ComparedFace, ConnectedHomeSettingsForUpdate, DatasetChanges, DetectionFilter, FaceAttributes, FaceDetail, FaceMatch, Image, KinesisVideoStreamStartSelector, LabelDetectionFeatureName, LabelDetectionSettings,
|
|
2
|
+
import { BlackFrame, BoundingBox, Celebrity, ComparedFace, ConnectedHomeSettingsForUpdate, DatasetChanges, DetectionFilter, FaceAttributes, FaceDetail, FaceMatch, Image, KinesisVideoStreamStartSelector, LabelDetectionFeatureName, LabelDetectionSettings, MediaAnalysisInput, MediaAnalysisOperationsConfig, MediaAnalysisOutputConfig, OrientationCorrection, ProjectVersionStatus, QualityFilter, RegionOfInterest, SegmentType, StreamProcessorDataSharingPreference, UserStatus, Video } from "./models_0";
|
|
3
3
|
import { RekognitionServiceException as __BaseException } from "./RekognitionServiceException";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
* <p>Contains metadata for a UserID matched with a given face.</p>
|
|
7
|
+
*/
|
|
8
|
+
export interface MatchedUser {
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
* <p>A provided ID for the UserID. Unique within the collection.</p>
|
|
12
|
+
*/
|
|
13
|
+
UserId?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
* <p>The status of the user matched to a provided FaceID.</p>
|
|
17
|
+
*/
|
|
18
|
+
UserStatus?: UserStatus;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @public
|
|
22
|
+
* <p>The Amazon Simple Notification Service topic to which Amazon Rekognition publishes the completion status of a video analysis operation. For more information, see
|
|
23
|
+
* <a href="https://docs.aws.amazon.com/rekognition/latest/dg/api-video.html">Calling Amazon Rekognition Video operations</a>. Note that the Amazon SNS topic must have a topic name that begins with <i>AmazonRekognition</i> if you are using the AmazonRekognitionServiceRole permissions policy to access the topic.
|
|
24
|
+
* For more information, see <a href="https://docs.aws.amazon.com/rekognition/latest/dg/api-video-roles.html#api-video-roles-all-topics">Giving access to multiple Amazon SNS topics</a>.</p>
|
|
25
|
+
*/
|
|
26
|
+
export interface NotificationChannel {
|
|
27
|
+
/**
|
|
28
|
+
* @public
|
|
29
|
+
* <p>The Amazon SNS topic to which Amazon Rekognition posts the completion status.</p>
|
|
30
|
+
*/
|
|
31
|
+
SNSTopicArn: string | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* @public
|
|
34
|
+
* <p>The ARN of an IAM role that gives Amazon Rekognition publishing permissions to the Amazon SNS topic. </p>
|
|
35
|
+
*/
|
|
36
|
+
RoleArn: string | undefined;
|
|
37
|
+
}
|
|
4
38
|
/**
|
|
5
39
|
* @public
|
|
6
40
|
*/
|
|
@@ -484,6 +484,7 @@ export interface ModerationLabel {
|
|
|
484
484
|
Confidence?: number;
|
|
485
485
|
Name?: string;
|
|
486
486
|
ParentName?: string;
|
|
487
|
+
TaxonomyLevel?: number;
|
|
487
488
|
}
|
|
488
489
|
export interface ContentModerationDetection {
|
|
489
490
|
Timestamp?: number;
|
|
@@ -498,6 +499,10 @@ export declare const ContentModerationSortBy: {
|
|
|
498
499
|
};
|
|
499
500
|
export type ContentModerationSortBy =
|
|
500
501
|
(typeof ContentModerationSortBy)[keyof typeof ContentModerationSortBy];
|
|
502
|
+
export interface ContentType {
|
|
503
|
+
Confidence?: number;
|
|
504
|
+
Name?: string;
|
|
505
|
+
}
|
|
501
506
|
export interface OutputConfig {
|
|
502
507
|
S3Bucket?: string;
|
|
503
508
|
S3KeyPrefix?: string;
|
|
@@ -1111,6 +1116,7 @@ export interface DetectModerationLabelsResponse {
|
|
|
1111
1116
|
ModerationModelVersion?: string;
|
|
1112
1117
|
HumanLoopActivationOutput?: HumanLoopActivationOutput;
|
|
1113
1118
|
ProjectVersion?: string;
|
|
1119
|
+
ContentTypes?: ContentType[];
|
|
1114
1120
|
}
|
|
1115
1121
|
export declare class HumanLoopQuotaExceededException extends __BaseException {
|
|
1116
1122
|
readonly name: "HumanLoopQuotaExceededException";
|
|
@@ -1463,8 +1469,12 @@ export interface MediaAnalysisOutputConfig {
|
|
|
1463
1469
|
S3Bucket: string | undefined;
|
|
1464
1470
|
S3KeyPrefix?: string;
|
|
1465
1471
|
}
|
|
1472
|
+
export interface MediaAnalysisModelVersions {
|
|
1473
|
+
Moderation?: string;
|
|
1474
|
+
}
|
|
1466
1475
|
export interface MediaAnalysisResults {
|
|
1467
1476
|
S3Object?: S3Object;
|
|
1477
|
+
ModelVersions?: MediaAnalysisModelVersions;
|
|
1468
1478
|
}
|
|
1469
1479
|
export declare const MediaAnalysisJobStatus: {
|
|
1470
1480
|
readonly CREATED: "CREATED";
|
|
@@ -1770,14 +1780,6 @@ export declare class MalformedPolicyDocumentException extends __BaseException {
|
|
|
1770
1780
|
>
|
|
1771
1781
|
);
|
|
1772
1782
|
}
|
|
1773
|
-
export interface MatchedUser {
|
|
1774
|
-
UserId?: string;
|
|
1775
|
-
UserStatus?: UserStatus;
|
|
1776
|
-
}
|
|
1777
|
-
export interface NotificationChannel {
|
|
1778
|
-
SNSTopicArn: string | undefined;
|
|
1779
|
-
RoleArn: string | undefined;
|
|
1780
|
-
}
|
|
1781
1783
|
export declare const AuditImageFilterSensitiveLog: (obj: AuditImage) => any;
|
|
1782
1784
|
export declare const GetFaceLivenessSessionResultsResponseFilterSensitiveLog: (
|
|
1783
1785
|
obj: GetFaceLivenessSessionResultsResponse
|
|
@@ -14,20 +14,27 @@ import {
|
|
|
14
14
|
KinesisVideoStreamStartSelector,
|
|
15
15
|
LabelDetectionFeatureName,
|
|
16
16
|
LabelDetectionSettings,
|
|
17
|
-
MatchedUser,
|
|
18
17
|
MediaAnalysisInput,
|
|
19
18
|
MediaAnalysisOperationsConfig,
|
|
20
19
|
MediaAnalysisOutputConfig,
|
|
21
|
-
NotificationChannel,
|
|
22
20
|
OrientationCorrection,
|
|
23
21
|
ProjectVersionStatus,
|
|
24
22
|
QualityFilter,
|
|
25
23
|
RegionOfInterest,
|
|
26
24
|
SegmentType,
|
|
27
25
|
StreamProcessorDataSharingPreference,
|
|
26
|
+
UserStatus,
|
|
28
27
|
Video,
|
|
29
28
|
} from "./models_0";
|
|
30
29
|
import { RekognitionServiceException as __BaseException } from "./RekognitionServiceException";
|
|
30
|
+
export interface MatchedUser {
|
|
31
|
+
UserId?: string;
|
|
32
|
+
UserStatus?: UserStatus;
|
|
33
|
+
}
|
|
34
|
+
export interface NotificationChannel {
|
|
35
|
+
SNSTopicArn: string | undefined;
|
|
36
|
+
RoleArn: string | undefined;
|
|
37
|
+
}
|
|
31
38
|
export interface PutProjectPolicyRequest {
|
|
32
39
|
ProjectArn: string | undefined;
|
|
33
40
|
PolicyName: string | undefined;
|