@aws-sdk/client-rekognition 3.325.0 → 3.327.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/dist-cjs/models/models_0.js +11 -0
  2. package/dist-cjs/protocols/Aws_json1_1.js +7 -0
  3. package/dist-es/models/models_0.js +11 -0
  4. package/dist-es/protocols/Aws_json1_1.js +7 -0
  5. package/dist-types/commands/CompareFacesCommand.d.ts +88 -0
  6. package/dist-types/commands/CopyProjectVersionCommand.d.ts +6 -0
  7. package/dist-types/commands/CreateCollectionCommand.d.ts +8 -0
  8. package/dist-types/commands/CreateDatasetCommand.d.ts +6 -0
  9. package/dist-types/commands/CreateFaceLivenessSessionCommand.d.ts +6 -0
  10. package/dist-types/commands/CreateProjectCommand.d.ts +6 -0
  11. package/dist-types/commands/CreateProjectVersionCommand.d.ts +6 -0
  12. package/dist-types/commands/CreateStreamProcessorCommand.d.ts +6 -0
  13. package/dist-types/commands/DeleteCollectionCommand.d.ts +6 -0
  14. package/dist-types/commands/DeleteDatasetCommand.d.ts +4 -0
  15. package/dist-types/commands/DeleteFacesCommand.d.ts +8 -0
  16. package/dist-types/commands/DeleteProjectCommand.d.ts +6 -0
  17. package/dist-types/commands/DeleteProjectPolicyCommand.d.ts +4 -0
  18. package/dist-types/commands/DeleteProjectVersionCommand.d.ts +6 -0
  19. package/dist-types/commands/DeleteStreamProcessorCommand.d.ts +4 -0
  20. package/dist-types/commands/DescribeCollectionCommand.d.ts +9 -0
  21. package/dist-types/commands/DescribeDatasetCommand.d.ts +18 -0
  22. package/dist-types/commands/DescribeProjectVersionsCommand.d.ts +105 -0
  23. package/dist-types/commands/DescribeProjectsCommand.d.ts +23 -0
  24. package/dist-types/commands/DescribeStreamProcessorCommand.d.ts +61 -0
  25. package/dist-types/commands/DetectCustomLabelsCommand.d.ts +25 -0
  26. package/dist-types/commands/DetectFacesCommand.d.ts +82 -3
  27. package/dist-types/commands/DetectLabelsCommand.d.ts +84 -0
  28. package/dist-types/commands/DetectModerationLabelsCommand.d.ts +20 -0
  29. package/dist-types/commands/DetectProtectiveEquipmentCommand.d.ts +51 -0
  30. package/dist-types/commands/DetectTextCommand.d.ts +29 -0
  31. package/dist-types/commands/DistributeDatasetEntriesCommand.d.ts +4 -0
  32. package/dist-types/commands/GetCelebrityInfoCommand.d.ts +12 -0
  33. package/dist-types/commands/GetCelebrityRecognitionCommand.d.ts +119 -0
  34. package/dist-types/commands/GetContentModerationCommand.d.ts +44 -0
  35. package/dist-types/commands/GetFaceDetectionCommand.d.ts +102 -0
  36. package/dist-types/commands/GetFaceLivenessSessionResultsCommand.d.ts +38 -0
  37. package/dist-types/commands/GetFaceSearchCommand.d.ts +124 -0
  38. package/dist-types/commands/GetLabelDetectionCommand.d.ts +80 -0
  39. package/dist-types/commands/GetPersonTrackingCommand.d.ts +111 -0
  40. package/dist-types/commands/GetSegmentDetectionCommand.d.ts +64 -0
  41. package/dist-types/commands/GetTextDetectionCommand.d.ts +53 -0
  42. package/dist-types/commands/IndexFacesCommand.d.ts +181 -6
  43. package/dist-types/commands/ListCollectionsCommand.d.ts +12 -0
  44. package/dist-types/commands/ListDatasetEntriesCommand.d.ts +9 -0
  45. package/dist-types/commands/ListDatasetLabelsCommand.d.ts +15 -0
  46. package/dist-types/commands/ListFacesCommand.d.ts +22 -0
  47. package/dist-types/commands/ListProjectPoliciesCommand.d.ts +16 -0
  48. package/dist-types/commands/ListStreamProcessorsCommand.d.ts +12 -0
  49. package/dist-types/commands/ListTagsForResourceCommand.d.ts +8 -0
  50. package/dist-types/commands/PutProjectPolicyCommand.d.ts +6 -0
  51. package/dist-types/commands/RecognizeCelebritiesCommand.d.ts +91 -0
  52. package/dist-types/commands/SearchFacesByImageCommand.d.ts +31 -0
  53. package/dist-types/commands/SearchFacesCommand.d.ts +25 -0
  54. package/dist-types/commands/StartCelebrityRecognitionCommand.d.ts +6 -0
  55. package/dist-types/commands/StartContentModerationCommand.d.ts +6 -0
  56. package/dist-types/commands/StartFaceDetectionCommand.d.ts +6 -0
  57. package/dist-types/commands/StartFaceSearchCommand.d.ts +6 -0
  58. package/dist-types/commands/StartLabelDetectionCommand.d.ts +6 -0
  59. package/dist-types/commands/StartPersonTrackingCommand.d.ts +6 -0
  60. package/dist-types/commands/StartProjectVersionCommand.d.ts +6 -0
  61. package/dist-types/commands/StartSegmentDetectionCommand.d.ts +6 -0
  62. package/dist-types/commands/StartStreamProcessorCommand.d.ts +6 -0
  63. package/dist-types/commands/StartTextDetectionCommand.d.ts +6 -0
  64. package/dist-types/commands/StopProjectVersionCommand.d.ts +6 -0
  65. package/dist-types/commands/StopStreamProcessorCommand.d.ts +4 -0
  66. package/dist-types/commands/TagResourceCommand.d.ts +4 -0
  67. package/dist-types/commands/UntagResourceCommand.d.ts +6 -1
  68. package/dist-types/commands/UpdateDatasetEntriesCommand.d.ts +4 -0
  69. package/dist-types/commands/UpdateStreamProcessorCommand.d.ts +4 -0
  70. package/dist-types/models/models_0.d.ts +66 -22
  71. package/dist-types/models/models_1.d.ts +5 -0
  72. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -4
  73. package/dist-types/ts3.4/models/models_0.d.ts +16 -1
  74. package/dist-types/ts3.4/models/models_1.d.ts +1 -0
  75. package/package.json +7 -7
@@ -92,8 +92,19 @@ export interface Asset {
92
92
  * @enum
93
93
  */
94
94
  export declare const Attribute: {
95
+ readonly AGE_RANGE: "AGE_RANGE";
95
96
  readonly ALL: "ALL";
97
+ readonly BEARD: "BEARD";
96
98
  readonly DEFAULT: "DEFAULT";
99
+ readonly EMOTIONS: "EMOTIONS";
100
+ readonly EYEGLASSES: "EYEGLASSES";
101
+ readonly EYES_OPEN: "EYES_OPEN";
102
+ readonly FACE_OCCLUDED: "FACE_OCCLUDED";
103
+ readonly GENDER: "GENDER";
104
+ readonly MOUTH_OPEN: "MOUTH_OPEN";
105
+ readonly MUSTACHE: "MUSTACHE";
106
+ readonly SMILE: "SMILE";
107
+ readonly SUNGLASSES: "SUNGLASSES";
97
108
  };
98
109
  /**
99
110
  * @public
@@ -610,6 +621,31 @@ export interface EyeOpen {
610
621
  */
611
622
  Confidence?: number;
612
623
  }
624
+ /**
625
+ * @public
626
+ * <p>
627
+ * <code>FaceOccluded</code> should return "true" with a high confidence score if a detected
628
+ * face’s eyes, nose, and mouth are partially captured or if they are covered by masks, dark
629
+ * sunglasses, cell phones, hands, or other objects. <code>FaceOccluded</code> should return
630
+ * "false" with a high confidence score if common occurrences that do not impact face
631
+ * verification are detected, such as eye glasses, lightly tinted sunglasses, strands of hair,
632
+ * and others. </p>
633
+ * <p>You can use <code>FaceOccluded</code> to determine if an obstruction on a face negatively
634
+ * impacts using the image for face matching.</p>
635
+ */
636
+ export interface FaceOccluded {
637
+ /**
638
+ * <p>True if a detected face’s eyes, nose, and mouth are partially captured or if they are
639
+ * covered by masks, dark sunglasses, cell phones, hands, or other objects. False if common
640
+ * occurrences that do not impact face verification are detected, such as eye glasses, lightly
641
+ * tinted sunglasses, strands of hair, and others.</p>
642
+ */
643
+ Value?: boolean;
644
+ /**
645
+ * <p>The confidence that the service has detected the presence of a face occlusion.</p>
646
+ */
647
+ Confidence?: number;
648
+ }
613
649
  /**
614
650
  * @public
615
651
  * @enum
@@ -798,6 +834,16 @@ export interface FaceDetail {
798
834
  * as a tree). Default attribute.</p>
799
835
  */
800
836
  Confidence?: number;
837
+ /**
838
+ * <p>
839
+ * <code>FaceOccluded</code> should return "true" with a high confidence score if a detected
840
+ * face’s eyes, nose, and mouth are partially captured or if they are covered by masks, dark
841
+ * sunglasses, cell phones, hands, or other objects. <code>FaceOccluded</code> should return
842
+ * "false" with a high confidence score if common occurrences that do not impact face
843
+ * verification are detected, such as eye glasses, lightly tinted sunglasses, strands of hair,
844
+ * and others. </p>
845
+ */
846
+ FaceOccluded?: FaceOccluded;
801
847
  }
802
848
  /**
803
849
  * @public
@@ -1613,10 +1659,11 @@ export interface LivenessOutputConfig {
1613
1659
  */
1614
1660
  export interface CreateFaceLivenessSessionRequestSettings {
1615
1661
  /**
1616
- * <p>Can specify the location of an Amazon S3 bucket, where reference and audit images will be
1617
- * stored. Note that the Amazon S3 bucket must be located in the caller's AWS account and in the same
1618
- * region as the Face Liveness end-point. Additionally, the Amazon S3 object keys are auto-generated by
1619
- * the Face Liveness system.</p>
1662
+ * <p>Can specify the location of an Amazon S3 bucket, where reference and audit images will be
1663
+ * stored. Note that the Amazon S3 bucket must be located in the caller's AWS account and in the
1664
+ * same region as the Face Liveness end-point. Additionally, the Amazon S3 object keys are
1665
+ * auto-generated by the Face Liveness system. Requires that the caller has the
1666
+ * <code>s3:PutObject</code> permission on the Amazon S3 bucket.</p>
1620
1667
  */
1621
1668
  OutputConfig?: LivenessOutputConfig;
1622
1669
  /**
@@ -3001,13 +3048,14 @@ export interface DetectFacesRequest {
3001
3048
  */
3002
3049
  Image: Image | undefined;
3003
3050
  /**
3004
- * <p>An array of facial attributes you want to be returned. This can be the default list of
3005
- * attributes or all attributes. If you don't specify a value for <code>Attributes</code> or if
3006
- * you specify <code>["DEFAULT"]</code>, the API returns the following subset of facial
3007
- * attributes: <code>BoundingBox</code>, <code>Confidence</code>, <code>Pose</code>,
3008
- * <code>Quality</code>, and <code>Landmarks</code>. If you provide <code>["ALL"]</code>, all
3009
- * facial attributes are returned, but the operation takes longer to complete.</p>
3010
- * <p>If you provide both, <code>["ALL", "DEFAULT"]</code>, the service uses a logical AND
3051
+ * <p>An array of facial attributes you want to be returned. A <code>DEFAULT</code> subset of
3052
+ * facial attributes - <code>BoundingBox</code>, <code>Confidence</code>, <code>Pose</code>,
3053
+ * <code>Quality</code>, and <code>Landmarks</code> - will always be returned. You can request
3054
+ * for specific facial attributes (in addition to the default list) - by using [<code>"DEFAULT",
3055
+ * "FACE_OCCLUDED"</code>] or just [<code>"FACE_OCCLUDED"</code>]. You can request for all
3056
+ * facial attributes by using [<code>"ALL"]</code>. Requesting more attributes may increase
3057
+ * response time.</p>
3058
+ * <p>If you provide both, <code>["ALL", "DEFAULT"]</code>, the service uses a logical "AND"
3011
3059
  * operator to determine which attributes to return (in this case, all attributes). </p>
3012
3060
  */
3013
3061
  Attributes?: (Attribute | string)[];
@@ -5009,12 +5057,13 @@ export interface IndexFacesRequest {
5009
5057
  */
5010
5058
  ExternalImageId?: string;
5011
5059
  /**
5012
- * <p>An array of facial attributes that you want to be returned. This can be the default
5013
- * list of attributes or all attributes. If you don't specify a value for <code>Attributes</code>
5014
- * or if you specify <code>["DEFAULT"]</code>, the API returns the following subset of facial
5015
- * attributes: <code>BoundingBox</code>, <code>Confidence</code>, <code>Pose</code>,
5016
- * <code>Quality</code>, and <code>Landmarks</code>. If you provide <code>["ALL"]</code>, all
5017
- * facial attributes are returned, but the operation takes longer to complete.</p>
5060
+ * <p>An array of facial attributes you want to be returned. A <code>DEFAULT</code> subset of
5061
+ * facial attributes - <code>BoundingBox</code>, <code>Confidence</code>, <code>Pose</code>,
5062
+ * <code>Quality</code>, and <code>Landmarks</code> - will always be returned. You can request
5063
+ * for specific facial attributes (in addition to the default list) - by using <code>["DEFAULT",
5064
+ * "FACE_OCCLUDED"]</code> or just <code>["FACE_OCCLUDED"]</code>. You can request for all
5065
+ * facial attributes by using <code>["ALL"]</code>. Requesting more attributes may increase
5066
+ * response time.</p>
5018
5067
  * <p>If you provide both, <code>["ALL", "DEFAULT"]</code>, the service uses a logical AND
5019
5068
  * operator to determine which attributes to return (in this case, all attributes). </p>
5020
5069
  */
@@ -6335,11 +6384,6 @@ export interface UntagResourceRequest {
6335
6384
  */
6336
6385
  TagKeys: string[] | undefined;
6337
6386
  }
6338
- /**
6339
- * @public
6340
- */
6341
- export interface UntagResourceResponse {
6342
- }
6343
6387
  /**
6344
6388
  * @internal
6345
6389
  */
@@ -1,4 +1,9 @@
1
1
  import { ConnectedHomeSettingsForUpdate, DatasetChanges, RegionOfInterest, StreamProcessorDataSharingPreference } from "./models_0";
2
+ /**
3
+ * @public
4
+ */
5
+ export interface UntagResourceResponse {
6
+ }
2
7
  /**
3
8
  * @public
4
9
  */
@@ -6,10 +6,8 @@ import {
6
6
  MetadataBearer as __MetadataBearer,
7
7
  MiddlewareStack,
8
8
  } from "@aws-sdk/types";
9
- import {
10
- UntagResourceRequest,
11
- UntagResourceResponse,
12
- } from "../models/models_0";
9
+ import { UntagResourceRequest } from "../models/models_0";
10
+ import { UntagResourceResponse } from "../models/models_1";
13
11
  import {
14
12
  RekognitionClientResolvedConfig,
15
13
  ServiceInputTypes,
@@ -29,8 +29,19 @@ export interface Asset {
29
29
  GroundTruthManifest?: GroundTruthManifest;
30
30
  }
31
31
  export declare const Attribute: {
32
+ readonly AGE_RANGE: "AGE_RANGE";
32
33
  readonly ALL: "ALL";
34
+ readonly BEARD: "BEARD";
33
35
  readonly DEFAULT: "DEFAULT";
36
+ readonly EMOTIONS: "EMOTIONS";
37
+ readonly EYEGLASSES: "EYEGLASSES";
38
+ readonly EYES_OPEN: "EYES_OPEN";
39
+ readonly FACE_OCCLUDED: "FACE_OCCLUDED";
40
+ readonly GENDER: "GENDER";
41
+ readonly MOUTH_OPEN: "MOUTH_OPEN";
42
+ readonly MUSTACHE: "MUSTACHE";
43
+ readonly SMILE: "SMILE";
44
+ readonly SUNGLASSES: "SUNGLASSES";
34
45
  };
35
46
  export type Attribute = (typeof Attribute)[keyof typeof Attribute];
36
47
  export interface AudioMetadata {
@@ -190,6 +201,10 @@ export interface EyeOpen {
190
201
  Value?: boolean;
191
202
  Confidence?: number;
192
203
  }
204
+ export interface FaceOccluded {
205
+ Value?: boolean;
206
+ Confidence?: number;
207
+ }
193
208
  export declare const GenderType: {
194
209
  readonly Female: "Female";
195
210
  readonly Male: "Male";
@@ -227,6 +242,7 @@ export interface FaceDetail {
227
242
  Pose?: Pose;
228
243
  Quality?: ImageQuality;
229
244
  Confidence?: number;
245
+ FaceOccluded?: FaceOccluded;
230
246
  }
231
247
  export interface CelebrityDetail {
232
248
  Urls?: string[];
@@ -1703,7 +1719,6 @@ export interface UntagResourceRequest {
1703
1719
  ResourceArn: string | undefined;
1704
1720
  TagKeys: string[] | undefined;
1705
1721
  }
1706
- export interface UntagResourceResponse {}
1707
1722
  export declare const AuditImageFilterSensitiveLog: (obj: AuditImage) => any;
1708
1723
  export declare const GetFaceLivenessSessionResultsResponseFilterSensitiveLog: (
1709
1724
  obj: GetFaceLivenessSessionResultsResponse
@@ -4,6 +4,7 @@ import {
4
4
  RegionOfInterest,
5
5
  StreamProcessorDataSharingPreference,
6
6
  } from "./models_0";
7
+ export interface UntagResourceResponse {}
7
8
  export interface UpdateDatasetEntriesRequest {
8
9
  DatasetArn: string | undefined;
9
10
  Changes: DatasetChanges | undefined;
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.325.0",
4
+ "version": "3.327.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",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.325.0",
24
+ "@aws-sdk/client-sts": "3.327.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.325.0",
26
+ "@aws-sdk/credential-provider-node": "3.327.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.310.0",
28
28
  "@aws-sdk/hash-node": "3.310.0",
29
29
  "@aws-sdk/invalid-dependency": "3.310.0",
@@ -32,11 +32,11 @@
32
32
  "@aws-sdk/middleware-host-header": "3.325.0",
33
33
  "@aws-sdk/middleware-logger": "3.325.0",
34
34
  "@aws-sdk/middleware-recursion-detection": "3.325.0",
35
- "@aws-sdk/middleware-retry": "3.325.0",
35
+ "@aws-sdk/middleware-retry": "3.327.0",
36
36
  "@aws-sdk/middleware-serde": "3.325.0",
37
37
  "@aws-sdk/middleware-signing": "3.325.0",
38
38
  "@aws-sdk/middleware-stack": "3.325.0",
39
- "@aws-sdk/middleware-user-agent": "3.325.0",
39
+ "@aws-sdk/middleware-user-agent": "3.327.0",
40
40
  "@aws-sdk/node-config-provider": "3.310.0",
41
41
  "@aws-sdk/node-http-handler": "3.321.1",
42
42
  "@aws-sdk/protocol-http": "3.310.0",
@@ -48,8 +48,8 @@
48
48
  "@aws-sdk/util-body-length-node": "3.310.0",
49
49
  "@aws-sdk/util-defaults-mode-browser": "3.325.0",
50
50
  "@aws-sdk/util-defaults-mode-node": "3.325.0",
51
- "@aws-sdk/util-endpoints": "3.319.0",
52
- "@aws-sdk/util-retry": "3.310.0",
51
+ "@aws-sdk/util-endpoints": "3.327.0",
52
+ "@aws-sdk/util-retry": "3.327.0",
53
53
  "@aws-sdk/util-user-agent-browser": "3.310.0",
54
54
  "@aws-sdk/util-user-agent-node": "3.310.0",
55
55
  "@aws-sdk/util-utf8": "3.310.0",