@aws-sdk/client-rekognition 3.208.0 → 3.209.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 +4 -13
- package/dist-cjs/endpoint/ruleset.js +6 -6
- package/dist-cjs/models/models_0.js +63 -6
- package/dist-cjs/protocols/Aws_json1_1.js +138 -0
- package/dist-cjs/runtimeConfig.shared.js +2 -1
- package/dist-es/endpoint/ruleset.js +6 -6
- package/dist-es/models/models_0.js +47 -0
- package/dist-es/protocols/Aws_json1_1.js +138 -0
- package/dist-es/runtimeConfig.shared.js +2 -1
- package/dist-types/Rekognition.d.ts +226 -229
- package/dist-types/RekognitionClient.d.ts +4 -17
- package/dist-types/commands/CompareFacesCommand.d.ts +30 -41
- package/dist-types/commands/CreateCollectionCommand.d.ts +5 -3
- package/dist-types/commands/DeleteCollectionCommand.d.ts +3 -3
- package/dist-types/commands/DetectFacesCommand.d.ts +6 -10
- package/dist-types/commands/DetectLabelsCommand.d.ts +83 -38
- package/dist-types/commands/DetectModerationLabelsCommand.d.ts +8 -8
- package/dist-types/commands/DetectTextCommand.d.ts +4 -2
- package/dist-types/commands/GetCelebrityInfoCommand.d.ts +2 -2
- package/dist-types/commands/IndexFacesCommand.d.ts +22 -28
- package/dist-types/commands/ListCollectionsCommand.d.ts +7 -5
- package/dist-types/commands/ListFacesCommand.d.ts +6 -8
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -4
- package/dist-types/commands/RecognizeCelebritiesCommand.d.ts +7 -10
- package/dist-types/commands/SearchFacesByImageCommand.d.ts +20 -29
- package/dist-types/commands/SearchFacesCommand.d.ts +7 -11
- package/dist-types/commands/TagResourceCommand.d.ts +5 -5
- package/dist-types/commands/UntagResourceCommand.d.ts +3 -4
- package/dist-types/models/models_0.d.ts +564 -320
- package/dist-types/runtimeConfig.shared.d.ts +2 -3
- package/dist-types/ts3.4/models/models_0.d.ts +96 -10
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -3
- package/package.json +11 -13
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Logger as __Logger } from "@aws-sdk/types";
|
|
2
1
|
import { RekognitionClientConfig } from "./RekognitionClient";
|
|
3
2
|
/**
|
|
4
3
|
* @internal
|
|
@@ -9,9 +8,9 @@ export declare const getRuntimeConfig: (config: RekognitionClientConfig) => {
|
|
|
9
8
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
10
9
|
disableHostPrefix: boolean;
|
|
11
10
|
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
12
|
-
logger?:
|
|
11
|
+
logger?: import("@aws-sdk/types").Logger | undefined;
|
|
13
12
|
}) => import("@aws-sdk/types").EndpointV2;
|
|
14
|
-
logger:
|
|
13
|
+
logger: import("@aws-sdk/types").Logger;
|
|
15
14
|
serviceId: string;
|
|
16
15
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
17
16
|
};
|
|
@@ -78,16 +78,17 @@ export interface ProtectiveEquipmentBodyPart {
|
|
|
78
78
|
Confidence?: number;
|
|
79
79
|
EquipmentDetections?: EquipmentDetection[];
|
|
80
80
|
}
|
|
81
|
-
export declare
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
81
|
+
export declare enum EmotionName {
|
|
82
|
+
ANGRY = "ANGRY",
|
|
83
|
+
CALM = "CALM",
|
|
84
|
+
CONFUSED = "CONFUSED",
|
|
85
|
+
DISGUSTED = "DISGUSTED",
|
|
86
|
+
FEAR = "FEAR",
|
|
87
|
+
HAPPY = "HAPPY",
|
|
88
|
+
SAD = "SAD",
|
|
89
|
+
SURPRISED = "SURPRISED",
|
|
90
|
+
UNKNOWN = "UNKNOWN",
|
|
91
|
+
}
|
|
91
92
|
export interface Emotion {
|
|
92
93
|
Type?: EmotionName | string;
|
|
93
94
|
Confidence?: number;
|
|
@@ -812,14 +813,68 @@ export interface DetectionFilter {
|
|
|
812
813
|
MinBoundingBoxHeight?: number;
|
|
813
814
|
MinBoundingBoxWidth?: number;
|
|
814
815
|
}
|
|
816
|
+
export declare enum DetectLabelsFeatureName {
|
|
817
|
+
GENERAL_LABELS = "GENERAL_LABELS",
|
|
818
|
+
IMAGE_PROPERTIES = "IMAGE_PROPERTIES",
|
|
819
|
+
}
|
|
820
|
+
export interface GeneralLabelsSettings {
|
|
821
|
+
LabelInclusionFilters?: string[];
|
|
822
|
+
LabelExclusionFilters?: string[];
|
|
823
|
+
LabelCategoryInclusionFilters?: string[];
|
|
824
|
+
LabelCategoryExclusionFilters?: string[];
|
|
825
|
+
}
|
|
826
|
+
export interface DetectLabelsImagePropertiesSettings {
|
|
827
|
+
MaxDominantColors?: number;
|
|
828
|
+
}
|
|
829
|
+
export interface DetectLabelsSettings {
|
|
830
|
+
GeneralLabels?: GeneralLabelsSettings;
|
|
831
|
+
ImageProperties?: DetectLabelsImagePropertiesSettings;
|
|
832
|
+
}
|
|
815
833
|
export interface DetectLabelsRequest {
|
|
816
834
|
Image: Image | undefined;
|
|
817
835
|
MaxLabels?: number;
|
|
818
836
|
MinConfidence?: number;
|
|
837
|
+
Features?: (DetectLabelsFeatureName | string)[];
|
|
838
|
+
Settings?: DetectLabelsSettings;
|
|
839
|
+
}
|
|
840
|
+
export interface DominantColor {
|
|
841
|
+
Red?: number;
|
|
842
|
+
Blue?: number;
|
|
843
|
+
Green?: number;
|
|
844
|
+
HexCode?: string;
|
|
845
|
+
CSSColor?: string;
|
|
846
|
+
SimplifiedColor?: string;
|
|
847
|
+
PixelPercent?: number;
|
|
848
|
+
}
|
|
849
|
+
export interface DetectLabelsImageQuality {
|
|
850
|
+
Brightness?: number;
|
|
851
|
+
Sharpness?: number;
|
|
852
|
+
Contrast?: number;
|
|
853
|
+
}
|
|
854
|
+
export interface DetectLabelsImageBackground {
|
|
855
|
+
Quality?: DetectLabelsImageQuality;
|
|
856
|
+
DominantColors?: DominantColor[];
|
|
857
|
+
}
|
|
858
|
+
export interface DetectLabelsImageForeground {
|
|
859
|
+
Quality?: DetectLabelsImageQuality;
|
|
860
|
+
DominantColors?: DominantColor[];
|
|
861
|
+
}
|
|
862
|
+
export interface DetectLabelsImageProperties {
|
|
863
|
+
Quality?: DetectLabelsImageQuality;
|
|
864
|
+
DominantColors?: DominantColor[];
|
|
865
|
+
Foreground?: DetectLabelsImageForeground;
|
|
866
|
+
Background?: DetectLabelsImageBackground;
|
|
867
|
+
}
|
|
868
|
+
export interface LabelAlias {
|
|
869
|
+
Name?: string;
|
|
870
|
+
}
|
|
871
|
+
export interface LabelCategory {
|
|
872
|
+
Name?: string;
|
|
819
873
|
}
|
|
820
874
|
export interface Instance {
|
|
821
875
|
BoundingBox?: BoundingBox;
|
|
822
876
|
Confidence?: number;
|
|
877
|
+
DominantColors?: DominantColor[];
|
|
823
878
|
}
|
|
824
879
|
export interface Parent {
|
|
825
880
|
Name?: string;
|
|
@@ -829,11 +884,14 @@ export interface Label {
|
|
|
829
884
|
Confidence?: number;
|
|
830
885
|
Instances?: Instance[];
|
|
831
886
|
Parents?: Parent[];
|
|
887
|
+
Aliases?: LabelAlias[];
|
|
888
|
+
Categories?: LabelCategory[];
|
|
832
889
|
}
|
|
833
890
|
export interface DetectLabelsResponse {
|
|
834
891
|
Labels?: Label[];
|
|
835
892
|
OrientationCorrection?: OrientationCorrection | string;
|
|
836
893
|
LabelModelVersion?: string;
|
|
894
|
+
ImageProperties?: DetectLabelsImageProperties;
|
|
837
895
|
}
|
|
838
896
|
export interface HumanLoopDataAttributes {
|
|
839
897
|
ContentClassifiers?: (ContentClassifier | string)[];
|
|
@@ -1770,9 +1828,37 @@ export declare const DetectFacesResponseFilterSensitiveLog: (
|
|
|
1770
1828
|
export declare const DetectionFilterFilterSensitiveLog: (
|
|
1771
1829
|
obj: DetectionFilter
|
|
1772
1830
|
) => any;
|
|
1831
|
+
export declare const GeneralLabelsSettingsFilterSensitiveLog: (
|
|
1832
|
+
obj: GeneralLabelsSettings
|
|
1833
|
+
) => any;
|
|
1834
|
+
export declare const DetectLabelsImagePropertiesSettingsFilterSensitiveLog: (
|
|
1835
|
+
obj: DetectLabelsImagePropertiesSettings
|
|
1836
|
+
) => any;
|
|
1837
|
+
export declare const DetectLabelsSettingsFilterSensitiveLog: (
|
|
1838
|
+
obj: DetectLabelsSettings
|
|
1839
|
+
) => any;
|
|
1773
1840
|
export declare const DetectLabelsRequestFilterSensitiveLog: (
|
|
1774
1841
|
obj: DetectLabelsRequest
|
|
1775
1842
|
) => any;
|
|
1843
|
+
export declare const DominantColorFilterSensitiveLog: (
|
|
1844
|
+
obj: DominantColor
|
|
1845
|
+
) => any;
|
|
1846
|
+
export declare const DetectLabelsImageQualityFilterSensitiveLog: (
|
|
1847
|
+
obj: DetectLabelsImageQuality
|
|
1848
|
+
) => any;
|
|
1849
|
+
export declare const DetectLabelsImageBackgroundFilterSensitiveLog: (
|
|
1850
|
+
obj: DetectLabelsImageBackground
|
|
1851
|
+
) => any;
|
|
1852
|
+
export declare const DetectLabelsImageForegroundFilterSensitiveLog: (
|
|
1853
|
+
obj: DetectLabelsImageForeground
|
|
1854
|
+
) => any;
|
|
1855
|
+
export declare const DetectLabelsImagePropertiesFilterSensitiveLog: (
|
|
1856
|
+
obj: DetectLabelsImageProperties
|
|
1857
|
+
) => any;
|
|
1858
|
+
export declare const LabelAliasFilterSensitiveLog: (obj: LabelAlias) => any;
|
|
1859
|
+
export declare const LabelCategoryFilterSensitiveLog: (
|
|
1860
|
+
obj: LabelCategory
|
|
1861
|
+
) => any;
|
|
1776
1862
|
export declare const InstanceFilterSensitiveLog: (obj: Instance) => any;
|
|
1777
1863
|
export declare const ParentFilterSensitiveLog: (obj: Parent) => any;
|
|
1778
1864
|
export declare const LabelFilterSensitiveLog: (obj: Label) => any;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Logger as __Logger } from "@aws-sdk/types";
|
|
2
1
|
import { RekognitionClientConfig } from "./RekognitionClient";
|
|
3
2
|
export declare const getRuntimeConfig: (config: RekognitionClientConfig) => {
|
|
4
3
|
apiVersion: string;
|
|
@@ -8,10 +7,10 @@ export declare const getRuntimeConfig: (config: RekognitionClientConfig) => {
|
|
|
8
7
|
endpointProvider: (
|
|
9
8
|
endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
|
|
10
9
|
context?: {
|
|
11
|
-
logger?:
|
|
10
|
+
logger?: import("@aws-sdk/types").Logger | undefined;
|
|
12
11
|
}
|
|
13
12
|
) => import("@aws-sdk/types").EndpointV2;
|
|
14
|
-
logger:
|
|
13
|
+
logger: import("@aws-sdk/types").Logger;
|
|
15
14
|
serviceId: string;
|
|
16
15
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
17
16
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-rekognition",
|
|
3
3
|
"description": "AWS SDK for JavaScript Rekognition Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.209.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
-
"@aws-sdk/config-resolver": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.209.0",
|
|
23
|
+
"@aws-sdk/config-resolver": "3.209.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.209.0",
|
|
25
25
|
"@aws-sdk/fetch-http-handler": "3.208.0",
|
|
26
26
|
"@aws-sdk/hash-node": "3.208.0",
|
|
27
27
|
"@aws-sdk/invalid-dependency": "3.208.0",
|
|
@@ -30,27 +30,25 @@
|
|
|
30
30
|
"@aws-sdk/middleware-host-header": "3.208.0",
|
|
31
31
|
"@aws-sdk/middleware-logger": "3.208.0",
|
|
32
32
|
"@aws-sdk/middleware-recursion-detection": "3.208.0",
|
|
33
|
-
"@aws-sdk/middleware-retry": "3.
|
|
33
|
+
"@aws-sdk/middleware-retry": "3.209.0",
|
|
34
34
|
"@aws-sdk/middleware-serde": "3.208.0",
|
|
35
35
|
"@aws-sdk/middleware-signing": "3.208.0",
|
|
36
36
|
"@aws-sdk/middleware-stack": "3.208.0",
|
|
37
37
|
"@aws-sdk/middleware-user-agent": "3.208.0",
|
|
38
|
-
"@aws-sdk/node-config-provider": "3.
|
|
38
|
+
"@aws-sdk/node-config-provider": "3.209.0",
|
|
39
39
|
"@aws-sdk/node-http-handler": "3.208.0",
|
|
40
40
|
"@aws-sdk/protocol-http": "3.208.0",
|
|
41
|
-
"@aws-sdk/smithy-client": "3.
|
|
41
|
+
"@aws-sdk/smithy-client": "3.209.0",
|
|
42
42
|
"@aws-sdk/types": "3.208.0",
|
|
43
43
|
"@aws-sdk/url-parser": "3.208.0",
|
|
44
44
|
"@aws-sdk/util-base64": "3.208.0",
|
|
45
|
-
"@aws-sdk/util-base64-browser": "3.208.0",
|
|
46
|
-
"@aws-sdk/util-base64-node": "3.208.0",
|
|
47
45
|
"@aws-sdk/util-body-length-browser": "3.188.0",
|
|
48
46
|
"@aws-sdk/util-body-length-node": "3.208.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
51
|
-
"@aws-sdk/util-endpoints": "3.
|
|
47
|
+
"@aws-sdk/util-defaults-mode-browser": "3.209.0",
|
|
48
|
+
"@aws-sdk/util-defaults-mode-node": "3.209.0",
|
|
49
|
+
"@aws-sdk/util-endpoints": "3.209.0",
|
|
52
50
|
"@aws-sdk/util-user-agent-browser": "3.208.0",
|
|
53
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
51
|
+
"@aws-sdk/util-user-agent-node": "3.209.0",
|
|
54
52
|
"@aws-sdk/util-utf8-browser": "3.188.0",
|
|
55
53
|
"@aws-sdk/util-utf8-node": "3.208.0",
|
|
56
54
|
"@aws-sdk/util-waiter": "3.208.0",
|