@aws-sdk/client-rekognition 3.825.0 → 3.826.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 CHANGED
@@ -27,6 +27,7 @@ __export(index_exports, {
27
27
  AuditImageFilterSensitiveLog: () => AuditImageFilterSensitiveLog,
28
28
  BodyPart: () => BodyPart,
29
29
  CelebrityRecognitionSortBy: () => CelebrityRecognitionSortBy,
30
+ ChallengeType: () => ChallengeType,
30
31
  CompareFacesCommand: () => CompareFacesCommand,
31
32
  ConflictException: () => ConflictException,
32
33
  ContentClassifier: () => ContentClassifier,
@@ -714,6 +715,10 @@ var CelebrityRecognitionSortBy = {
714
715
  ID: "ID",
715
716
  TIMESTAMP: "TIMESTAMP"
716
717
  };
718
+ var ChallengeType = {
719
+ FACE_MOVEMENT_AND_LIGHT_CHALLENGE: "FaceMovementAndLightChallenge",
720
+ FACE_MOVEMENT_CHALLENGE: "FaceMovementChallenge"
721
+ };
717
722
  var QualityFilter = {
718
723
  AUTO: "AUTO",
719
724
  HIGH: "HIGH",
@@ -1243,6 +1248,17 @@ var InvalidManifestException = class _InvalidManifestException extends Rekogniti
1243
1248
  var LabelDetectionFeatureName = {
1244
1249
  GENERAL_LABELS: "GENERAL_LABELS"
1245
1250
  };
1251
+ var AuditImageFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1252
+ ...obj,
1253
+ ...obj.Bytes && { Bytes: import_smithy_client.SENSITIVE_STRING }
1254
+ }), "AuditImageFilterSensitiveLog");
1255
+ var GetFaceLivenessSessionResultsResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1256
+ ...obj,
1257
+ ...obj.ReferenceImage && { ReferenceImage: AuditImageFilterSensitiveLog(obj.ReferenceImage) },
1258
+ ...obj.AuditImages && { AuditImages: obj.AuditImages.map((item) => AuditImageFilterSensitiveLog(item)) }
1259
+ }), "GetFaceLivenessSessionResultsResponseFilterSensitiveLog");
1260
+
1261
+ // src/models/models_1.ts
1246
1262
  var MalformedPolicyDocumentException = class _MalformedPolicyDocumentException extends RekognitionServiceException {
1247
1263
  static {
1248
1264
  __name(this, "MalformedPolicyDocumentException");
@@ -1271,17 +1287,6 @@ var MalformedPolicyDocumentException = class _MalformedPolicyDocumentException e
1271
1287
  this.Logref = opts.Logref;
1272
1288
  }
1273
1289
  };
1274
- var AuditImageFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1275
- ...obj,
1276
- ...obj.Bytes && { Bytes: import_smithy_client.SENSITIVE_STRING }
1277
- }), "AuditImageFilterSensitiveLog");
1278
- var GetFaceLivenessSessionResultsResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1279
- ...obj,
1280
- ...obj.ReferenceImage && { ReferenceImage: AuditImageFilterSensitiveLog(obj.ReferenceImage) },
1281
- ...obj.AuditImages && { AuditImages: obj.AuditImages.map((item) => AuditImageFilterSensitiveLog(item)) }
1282
- }), "GetFaceLivenessSessionResultsResponseFilterSensitiveLog");
1283
-
1284
- // src/models/models_1.ts
1285
1290
  var UnsearchedFaceReason = {
1286
1291
  EXCEEDS_MAX_FACES: "EXCEEDS_MAX_FACES",
1287
1292
  EXTREME_POSE: "EXTREME_POSE",
@@ -3958,6 +3963,7 @@ var de_GetFaceDetectionResponse = /* @__PURE__ */ __name((output, context) => {
3958
3963
  var de_GetFaceLivenessSessionResultsResponse = /* @__PURE__ */ __name((output, context) => {
3959
3964
  return (0, import_smithy_client.take)(output, {
3960
3965
  AuditImages: /* @__PURE__ */ __name((_) => de_AuditImages(_, context), "AuditImages"),
3966
+ Challenge: import_smithy_client._json,
3961
3967
  Confidence: import_smithy_client.limitedParseFloat32,
3962
3968
  ReferenceImage: /* @__PURE__ */ __name((_) => de_AuditImage(_, context), "ReferenceImage"),
3963
3969
  SessionId: import_smithy_client.expectString,
@@ -6079,6 +6085,7 @@ var waitUntilProjectVersionTrainingCompleted = /* @__PURE__ */ __name(async (par
6079
6085
  KnownGenderType,
6080
6086
  GenderType,
6081
6087
  CelebrityRecognitionSortBy,
6088
+ ChallengeType,
6082
6089
  QualityFilter,
6083
6090
  OrientationCorrection,
6084
6091
  ImageTooLargeException,
@@ -6122,9 +6129,9 @@ var waitUntilProjectVersionTrainingCompleted = /* @__PURE__ */ __name(async (par
6122
6129
  Reason,
6123
6130
  InvalidManifestException,
6124
6131
  LabelDetectionFeatureName,
6125
- MalformedPolicyDocumentException,
6126
6132
  AuditImageFilterSensitiveLog,
6127
6133
  GetFaceLivenessSessionResultsResponseFilterSensitiveLog,
6134
+ MalformedPolicyDocumentException,
6128
6135
  UnsearchedFaceReason,
6129
6136
  VideoTooLargeException,
6130
6137
  StreamProcessorParameterToDelete
@@ -257,6 +257,10 @@ export const CelebrityRecognitionSortBy = {
257
257
  ID: "ID",
258
258
  TIMESTAMP: "TIMESTAMP",
259
259
  };
260
+ export const ChallengeType = {
261
+ FACE_MOVEMENT_AND_LIGHT_CHALLENGE: "FaceMovementAndLightChallenge",
262
+ FACE_MOVEMENT_CHALLENGE: "FaceMovementChallenge",
263
+ };
260
264
  export const QualityFilter = {
261
265
  AUTO: "AUTO",
262
266
  HIGH: "HIGH",
@@ -654,24 +658,6 @@ export class InvalidManifestException extends __BaseException {
654
658
  export const LabelDetectionFeatureName = {
655
659
  GENERAL_LABELS: "GENERAL_LABELS",
656
660
  };
657
- export class MalformedPolicyDocumentException extends __BaseException {
658
- name = "MalformedPolicyDocumentException";
659
- $fault = "client";
660
- Message;
661
- Code;
662
- Logref;
663
- constructor(opts) {
664
- super({
665
- name: "MalformedPolicyDocumentException",
666
- $fault: "client",
667
- ...opts,
668
- });
669
- Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype);
670
- this.Message = opts.Message;
671
- this.Code = opts.Code;
672
- this.Logref = opts.Logref;
673
- }
674
- }
675
661
  export const AuditImageFilterSensitiveLog = (obj) => ({
676
662
  ...obj,
677
663
  ...(obj.Bytes && { Bytes: SENSITIVE_STRING }),
@@ -1,4 +1,22 @@
1
1
  import { RekognitionServiceException as __BaseException } from "./RekognitionServiceException";
2
+ export class MalformedPolicyDocumentException extends __BaseException {
3
+ name = "MalformedPolicyDocumentException";
4
+ $fault = "client";
5
+ Message;
6
+ Code;
7
+ Logref;
8
+ constructor(opts) {
9
+ super({
10
+ name: "MalformedPolicyDocumentException",
11
+ $fault: "client",
12
+ ...opts,
13
+ });
14
+ Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype);
15
+ this.Message = opts.Message;
16
+ this.Code = opts.Code;
17
+ this.Logref = opts.Logref;
18
+ }
19
+ }
2
20
  export const UnsearchedFaceReason = {
3
21
  EXCEEDS_MAX_FACES: "EXCEEDS_MAX_FACES",
4
22
  EXTREME_POSE: "EXTREME_POSE",
@@ -2,8 +2,8 @@ import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody a
2
2
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, LazyJsonString as __LazyJsonString, limitedParseFloat32 as __limitedParseFloat32, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { v4 as generateIdempotencyToken } from "uuid";
5
- import { AccessDeniedException, ConflictException, HumanLoopQuotaExceededException, IdempotentParameterMismatchException, ImageTooLargeException, InternalServerError, InvalidImageFormatException, InvalidManifestException, InvalidPaginationTokenException, InvalidParameterException, InvalidPolicyRevisionIdException, InvalidS3ObjectException, LimitExceededException, MalformedPolicyDocumentException, ProvisionedThroughputExceededException, ResourceAlreadyExistsException, ResourceInUseException, ResourceNotFoundException, ResourceNotReadyException, ServiceQuotaExceededException, SessionNotFoundException, ThrottlingException, } from "../models/models_0";
6
- import { VideoTooLargeException, } from "../models/models_1";
5
+ import { AccessDeniedException, ConflictException, HumanLoopQuotaExceededException, IdempotentParameterMismatchException, ImageTooLargeException, InternalServerError, InvalidImageFormatException, InvalidManifestException, InvalidPaginationTokenException, InvalidParameterException, InvalidPolicyRevisionIdException, InvalidS3ObjectException, LimitExceededException, ProvisionedThroughputExceededException, ResourceAlreadyExistsException, ResourceInUseException, ResourceNotFoundException, ResourceNotReadyException, ServiceQuotaExceededException, SessionNotFoundException, ThrottlingException, } from "../models/models_0";
6
+ import { MalformedPolicyDocumentException, VideoTooLargeException, } from "../models/models_1";
7
7
  import { RekognitionServiceException as __BaseException } from "../models/RekognitionServiceException";
8
8
  export const se_AssociateFacesCommand = async (input, context) => {
9
9
  const headers = sharedHeaders("AssociateFaces");
@@ -2679,6 +2679,7 @@ const de_GetFaceDetectionResponse = (output, context) => {
2679
2679
  const de_GetFaceLivenessSessionResultsResponse = (output, context) => {
2680
2680
  return take(output, {
2681
2681
  AuditImages: (_) => de_AuditImages(_, context),
2682
+ Challenge: _json,
2682
2683
  Confidence: __limitedParseFloat32,
2683
2684
  ReferenceImage: (_) => de_AuditImage(_, context),
2684
2685
  SessionId: __expectString,
@@ -29,8 +29,12 @@ declare const AssociateFacesCommand_base: {
29
29
  /**
30
30
  * <p>Associates one or more faces with an existing UserID. Takes an array of
31
31
  * <code>FaceIds</code>. Each <code>FaceId</code> that are present in the <code>FaceIds</code>
32
- * list is associated with the provided UserID. The maximum number of total <code>FaceIds</code>
33
- * per UserID is 100. </p>
32
+ * list is associated with the provided UserID. The number of FaceIds that can be used as input
33
+ * in a single request is limited to 100.</p>
34
+ * <p>Note that the total number of faces that can be associated with a single
35
+ * <code>UserID</code> is also limited to 100. Once a <code>UserID</code> has 100 faces
36
+ * associated with it, no additional faces can be added. If more API calls are made after the
37
+ * limit is reached, a <code>ServiceQuotaExceededException</code> will result.</p>
34
38
  * <p>The <code>UserMatchThreshold</code> parameter specifies the minimum user match confidence
35
39
  * required for the face to be associated with a UserID that has at least one <code>FaceID</code>
36
40
  * already associated. This ensures that the <code>FaceIds</code> are associated with the right
@@ -51,6 +51,15 @@ declare const CreateFaceLivenessSessionCommand_base: {
51
51
  * S3KeyPrefix: "STRING_VALUE",
52
52
  * },
53
53
  * AuditImagesLimit: Number("int"),
54
+ * ChallengePreferences: [ // ChallengePreferences
55
+ * { // ChallengePreference
56
+ * Type: "FaceMovementAndLightChallenge" || "FaceMovementChallenge", // required
57
+ * Versions: { // Versions
58
+ * Minimum: "STRING_VALUE",
59
+ * Maximum: "STRING_VALUE",
60
+ * },
61
+ * },
62
+ * ],
54
63
  * },
55
64
  * ClientRequestToken: "STRING_VALUE",
56
65
  * };
@@ -37,12 +37,10 @@ declare const DetectCustomLabelsCommand_base: {
37
37
  * an Amazon S3 bucket. If you use the AWS CLI to call Amazon Rekognition operations, passing
38
38
  * image bytes is not supported. The image must be either a PNG or JPEG formatted file. </p>
39
39
  * <p> For each object that the model version detects on an image, the API returns a
40
- * (<code>CustomLabel</code>) object in an array (<code>CustomLabels</code>). Each
41
- * <code>CustomLabel</code> object provides the label name (<code>Name</code>), the level
42
- * of confidence that the image contains the object (<code>Confidence</code>), and object
43
- * location information, if it exists, for the label on the image (<code>Geometry</code>).
44
- * Note that for the <code>DetectCustomLabelsLabels</code> operation, <code>Polygons</code>
45
- * are not returned in the <code>Geometry</code> section of the response.</p>
40
+ * (<code>CustomLabel</code>) object in an array (<code>CustomLabels</code>).
41
+ * Each <code>CustomLabel</code> object provides the label name (<code>Name</code>), the level
42
+ * of confidence that the image contains the object (<code>Confidence</code>), and
43
+ * object location information, if it exists, for the label on the image (<code>Geometry</code>). </p>
46
44
  * <p>To filter labels that are returned, specify a value for <code>MinConfidence</code>.
47
45
  * <code>DetectCustomLabelsLabels</code> only returns labels with a confidence that's higher than
48
46
  * the specified value.
@@ -81,6 +81,10 @@ declare const GetFaceLivenessSessionResultsCommand_base: {
81
81
  * // },
82
82
  * // },
83
83
  * // ],
84
+ * // Challenge: { // Challenge
85
+ * // Type: "FaceMovementAndLightChallenge" || "FaceMovementChallenge", // required
86
+ * // Version: "STRING_VALUE", // required
87
+ * // },
84
88
  * // };
85
89
  *
86
90
  * ```
@@ -27,7 +27,14 @@ declare const GetPersonTrackingCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Gets the path tracking results of a Amazon Rekognition Video analysis started by <a>StartPersonTracking</a>.</p>
30
+ * <note>
31
+ * <p>
32
+ * <i>End of support notice:</i> On October 31, 2025, AWS will discontinue
33
+ * support for Amazon Rekognition People Pathing. After October 31, 2025, you will no
34
+ * longer be able to use the Rekognition People Pathing capability. For more information,
35
+ * visit this <a href="https://aws.amazon.com/blogs/machine-learning/transitioning-from-amazon-rekognition-people-pathing-exploring-other-alternatives/">blog post</a>.</p>
36
+ * </note>
37
+ * <p>Gets the path tracking results of a Amazon Rekognition Video analysis started by <a>StartPersonTracking</a>.</p>
31
38
  * <p>The person path tracking operation is started by a call to <code>StartPersonTracking</code>
32
39
  * which returns a job identifier (<code>JobId</code>). When the operation finishes, Amazon Rekognition Video publishes a completion status to
33
40
  * the Amazon Simple Notification Service topic registered in the initial call to <code>StartPersonTracking</code>.</p>
@@ -1,6 +1,6 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { ListUsersRequest, ListUsersResponse } from "../models/models_0";
3
+ import { ListUsersRequest, ListUsersResponse } from "../models/models_1";
4
4
  import { RekognitionClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RekognitionClient";
5
5
  /**
6
6
  * @public
@@ -27,7 +27,14 @@ declare const StartPersonTrackingCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Starts the asynchronous tracking of a person's path in a stored video.</p>
30
+ * <note>
31
+ * <p>
32
+ * <i>End of support notice:</i> On October 31, 2025, AWS will discontinue
33
+ * support for Amazon Rekognition People Pathing. After October 31, 2025, you will no
34
+ * longer be able to use the Rekognition People Pathing capability. For more information,
35
+ * visit this <a href="https://aws.amazon.com/blogs/machine-learning/transitioning-from-amazon-rekognition-people-pathing-exploring-other-alternatives/">blog post</a>.</p>
36
+ * </note>
37
+ * <p>Starts the asynchronous tracking of a person's path in a stored video.</p>
31
38
  * <p>Amazon Rekognition Video can track the path of people in a video stored in an Amazon S3 bucket. Use <a>Video</a> to specify the bucket name
32
39
  * and the filename of the video. <code>StartPersonTracking</code>
33
40
  * returns a job identifier (<code>JobId</code>) which you use to get the results of the operation.
@@ -681,11 +681,11 @@ export declare const EmotionName: {
681
681
  */
682
682
  export type EmotionName = (typeof EmotionName)[keyof typeof EmotionName];
683
683
  /**
684
- * <p>The emotions that appear to be expressed on the face, and the confidence level in the
685
- * determination. The API is only making a determination of the physical appearance of a person's
686
- * face. It is not a determination of the person’s internal emotional state and should not be
687
- * used in such a way. For example, a person pretending to have a sad face might not be sad
688
- * emotionally.</p>
684
+ * <p>The API returns a prediction of an emotion based on a person's facial expressions, along with
685
+ * the confidence level for the predicted emotion. It is not a determination of the persons internal emotional
686
+ * state and should not be used in such a way. For example, a person pretending to have a sad face might not
687
+ * be sad emotionally. The API is not intended to be used, and you may not use it, in a manner that violates
688
+ * the EU Artificial Intelligence Act or any other applicable law.</p>
689
689
  * @public
690
690
  */
691
691
  export interface Emotion {
@@ -1315,6 +1315,66 @@ export declare const CelebrityRecognitionSortBy: {
1315
1315
  * @public
1316
1316
  */
1317
1317
  export type CelebrityRecognitionSortBy = (typeof CelebrityRecognitionSortBy)[keyof typeof CelebrityRecognitionSortBy];
1318
+ /**
1319
+ * @public
1320
+ * @enum
1321
+ */
1322
+ export declare const ChallengeType: {
1323
+ readonly FACE_MOVEMENT_AND_LIGHT_CHALLENGE: "FaceMovementAndLightChallenge";
1324
+ readonly FACE_MOVEMENT_CHALLENGE: "FaceMovementChallenge";
1325
+ };
1326
+ /**
1327
+ * @public
1328
+ */
1329
+ export type ChallengeType = (typeof ChallengeType)[keyof typeof ChallengeType];
1330
+ /**
1331
+ * <p>Describes the type and version of the challenge being used for the Face Liveness session.</p>
1332
+ * @public
1333
+ */
1334
+ export interface Challenge {
1335
+ /**
1336
+ * <p>The type of the challenge being used for the Face Liveness session.</p>
1337
+ * @public
1338
+ */
1339
+ Type: ChallengeType | undefined;
1340
+ /**
1341
+ * <p>The version of the challenge being used for the Face Liveness session.</p>
1342
+ * @public
1343
+ */
1344
+ Version: string | undefined;
1345
+ }
1346
+ /**
1347
+ * <p>Object specifying the acceptable range of challenge versions.</p>
1348
+ * @public
1349
+ */
1350
+ export interface Versions {
1351
+ /**
1352
+ * <p>The desired minimum version for the challenge.</p>
1353
+ * @public
1354
+ */
1355
+ Minimum?: string | undefined;
1356
+ /**
1357
+ * <p>The desired maximum version for the challenge.</p>
1358
+ * @public
1359
+ */
1360
+ Maximum?: string | undefined;
1361
+ }
1362
+ /**
1363
+ * <p>An ordered list of preferred challenge type and versions.</p>
1364
+ * @public
1365
+ */
1366
+ export interface ChallengePreference {
1367
+ /**
1368
+ * <p>The types of challenges that have been selected for the Face Liveness session.</p>
1369
+ * @public
1370
+ */
1371
+ Type: ChallengeType | undefined;
1372
+ /**
1373
+ * <p>The version of the challenges that have been selected for the Face Liveness session.</p>
1374
+ * @public
1375
+ */
1376
+ Versions?: Versions | undefined;
1377
+ }
1318
1378
  /**
1319
1379
  * <p>Type that describes the face Amazon Rekognition chose to compare with the faces in the target.
1320
1380
  * This contains a bounding box for the selected face and confidence level that the bounding box
@@ -2061,6 +2121,11 @@ export interface CreateFaceLivenessSessionRequestSettings {
2061
2121
  * @public
2062
2122
  */
2063
2123
  AuditImagesLimit?: number | undefined;
2124
+ /**
2125
+ * <p>Indicates preferred challenge types and versions for the Face Liveness session to be created.</p>
2126
+ * @public
2127
+ */
2128
+ ChallengePreferences?: ChallengePreference[] | undefined;
2064
2129
  }
2065
2130
  /**
2066
2131
  * @public
@@ -5376,6 +5441,11 @@ export interface GetFaceLivenessSessionResultsResponse {
5376
5441
  * @public
5377
5442
  */
5378
5443
  AuditImages?: AuditImage[] | undefined;
5444
+ /**
5445
+ * <p>Contains information regarding the challenge type used for the Face Liveness check.</p>
5446
+ * @public
5447
+ */
5448
+ Challenge?: Challenge | undefined;
5379
5449
  }
5380
5450
  /**
5381
5451
  * <p>Occurs when a given sessionId is not found.</p>
@@ -7104,79 +7174,6 @@ export interface ListTagsForResourceResponse {
7104
7174
  */
7105
7175
  Tags?: Record<string, string> | undefined;
7106
7176
  }
7107
- /**
7108
- * @public
7109
- */
7110
- export interface ListUsersRequest {
7111
- /**
7112
- * <p>The ID of an existing collection.</p>
7113
- * @public
7114
- */
7115
- CollectionId: string | undefined;
7116
- /**
7117
- * <p>Maximum number of UsersID to return. </p>
7118
- * @public
7119
- */
7120
- MaxResults?: number | undefined;
7121
- /**
7122
- * <p>Pagingation token to receive the next set of UsersID.</p>
7123
- * @public
7124
- */
7125
- NextToken?: string | undefined;
7126
- }
7127
- /**
7128
- * <p>Metadata of the user stored in a collection.</p>
7129
- * @public
7130
- */
7131
- export interface User {
7132
- /**
7133
- * <p> A provided ID for the User. Unique within the collection.</p>
7134
- * @public
7135
- */
7136
- UserId?: string | undefined;
7137
- /**
7138
- * <p> Communicates if the UserID has been updated with latest set of faces to be associated
7139
- * with the UserID. </p>
7140
- * @public
7141
- */
7142
- UserStatus?: UserStatus | undefined;
7143
- }
7144
- /**
7145
- * @public
7146
- */
7147
- export interface ListUsersResponse {
7148
- /**
7149
- * <p>List of UsersID associated with the specified collection.</p>
7150
- * @public
7151
- */
7152
- Users?: User[] | undefined;
7153
- /**
7154
- * <p>A pagination token to be used with the subsequent request if the response is
7155
- * truncated.</p>
7156
- * @public
7157
- */
7158
- NextToken?: string | undefined;
7159
- }
7160
- /**
7161
- * <p>The format of the project policy document that you supplied to
7162
- * <code>PutProjectPolicy</code> is incorrect. </p>
7163
- * @public
7164
- */
7165
- export declare class MalformedPolicyDocumentException extends __BaseException {
7166
- readonly name: "MalformedPolicyDocumentException";
7167
- readonly $fault: "client";
7168
- Message?: string | undefined;
7169
- Code?: string | undefined;
7170
- /**
7171
- * <p>A universally unique identifier (UUID) for the request.</p>
7172
- * @public
7173
- */
7174
- Logref?: string | undefined;
7175
- /**
7176
- * @internal
7177
- */
7178
- constructor(opts: __ExceptionOptionType<MalformedPolicyDocumentException, __BaseException>);
7179
- }
7180
7177
  /**
7181
7178
  * @internal
7182
7179
  */
@@ -1,6 +1,79 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
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
+ */
7
+ export interface ListUsersRequest {
8
+ /**
9
+ * <p>The ID of an existing collection.</p>
10
+ * @public
11
+ */
12
+ CollectionId: string | undefined;
13
+ /**
14
+ * <p>Maximum number of UsersID to return. </p>
15
+ * @public
16
+ */
17
+ MaxResults?: number | undefined;
18
+ /**
19
+ * <p>Pagingation token to receive the next set of UsersID.</p>
20
+ * @public
21
+ */
22
+ NextToken?: string | undefined;
23
+ }
24
+ /**
25
+ * <p>Metadata of the user stored in a collection.</p>
26
+ * @public
27
+ */
28
+ export interface User {
29
+ /**
30
+ * <p> A provided ID for the User. Unique within the collection.</p>
31
+ * @public
32
+ */
33
+ UserId?: string | undefined;
34
+ /**
35
+ * <p> Communicates if the UserID has been updated with latest set of faces to be associated
36
+ * with the UserID. </p>
37
+ * @public
38
+ */
39
+ UserStatus?: UserStatus | undefined;
40
+ }
41
+ /**
42
+ * @public
43
+ */
44
+ export interface ListUsersResponse {
45
+ /**
46
+ * <p>List of UsersID associated with the specified collection.</p>
47
+ * @public
48
+ */
49
+ Users?: User[] | undefined;
50
+ /**
51
+ * <p>A pagination token to be used with the subsequent request if the response is
52
+ * truncated.</p>
53
+ * @public
54
+ */
55
+ NextToken?: string | undefined;
56
+ }
57
+ /**
58
+ * <p>The format of the project policy document that you supplied to
59
+ * <code>PutProjectPolicy</code> is incorrect. </p>
60
+ * @public
61
+ */
62
+ export declare class MalformedPolicyDocumentException extends __BaseException {
63
+ readonly name: "MalformedPolicyDocumentException";
64
+ readonly $fault: "client";
65
+ Message?: string | undefined;
66
+ Code?: string | undefined;
67
+ /**
68
+ * <p>A universally unique identifier (UUID) for the request.</p>
69
+ * @public
70
+ */
71
+ Logref?: string | undefined;
72
+ /**
73
+ * @internal
74
+ */
75
+ constructor(opts: __ExceptionOptionType<MalformedPolicyDocumentException, __BaseException>);
76
+ }
4
77
  /**
5
78
  * <p>Contains metadata for a UserID matched with a given face.</p>
6
79
  * @public
@@ -1,6 +1,6 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { ListUsersRequest, ListUsersResponse } from "../models/models_0";
3
+ import { ListUsersRequest, ListUsersResponse } from "../models/models_1";
4
4
  import {
5
5
  RekognitionClientResolvedConfig,
6
6
  ServiceInputTypes,
@@ -389,6 +389,23 @@ export declare const CelebrityRecognitionSortBy: {
389
389
  };
390
390
  export type CelebrityRecognitionSortBy =
391
391
  (typeof CelebrityRecognitionSortBy)[keyof typeof CelebrityRecognitionSortBy];
392
+ export declare const ChallengeType: {
393
+ readonly FACE_MOVEMENT_AND_LIGHT_CHALLENGE: "FaceMovementAndLightChallenge";
394
+ readonly FACE_MOVEMENT_CHALLENGE: "FaceMovementChallenge";
395
+ };
396
+ export type ChallengeType = (typeof ChallengeType)[keyof typeof ChallengeType];
397
+ export interface Challenge {
398
+ Type: ChallengeType | undefined;
399
+ Version: string | undefined;
400
+ }
401
+ export interface Versions {
402
+ Minimum?: string | undefined;
403
+ Maximum?: string | undefined;
404
+ }
405
+ export interface ChallengePreference {
406
+ Type: ChallengeType | undefined;
407
+ Versions?: Versions | undefined;
408
+ }
392
409
  export interface ComparedSourceImageFace {
393
410
  BoundingBox?: BoundingBox | undefined;
394
411
  Confidence?: number | undefined;
@@ -584,6 +601,7 @@ export interface LivenessOutputConfig {
584
601
  export interface CreateFaceLivenessSessionRequestSettings {
585
602
  OutputConfig?: LivenessOutputConfig | undefined;
586
603
  AuditImagesLimit?: number | undefined;
604
+ ChallengePreferences?: ChallengePreference[] | undefined;
587
605
  }
588
606
  export interface CreateFaceLivenessSessionRequest {
589
607
  KmsKeyId?: string | undefined;
@@ -1363,6 +1381,7 @@ export interface GetFaceLivenessSessionResultsResponse {
1363
1381
  Confidence?: number | undefined;
1364
1382
  ReferenceImage?: AuditImage | undefined;
1365
1383
  AuditImages?: AuditImage[] | undefined;
1384
+ Challenge?: Challenge | undefined;
1366
1385
  }
1367
1386
  export declare class SessionNotFoundException extends __BaseException {
1368
1387
  readonly name: "SessionNotFoundException";
@@ -1766,32 +1785,6 @@ export interface ListTagsForResourceRequest {
1766
1785
  export interface ListTagsForResourceResponse {
1767
1786
  Tags?: Record<string, string> | undefined;
1768
1787
  }
1769
- export interface ListUsersRequest {
1770
- CollectionId: string | undefined;
1771
- MaxResults?: number | undefined;
1772
- NextToken?: string | undefined;
1773
- }
1774
- export interface User {
1775
- UserId?: string | undefined;
1776
- UserStatus?: UserStatus | undefined;
1777
- }
1778
- export interface ListUsersResponse {
1779
- Users?: User[] | undefined;
1780
- NextToken?: string | undefined;
1781
- }
1782
- export declare class MalformedPolicyDocumentException extends __BaseException {
1783
- readonly name: "MalformedPolicyDocumentException";
1784
- readonly $fault: "client";
1785
- Message?: string | undefined;
1786
- Code?: string | undefined;
1787
- Logref?: string | undefined;
1788
- constructor(
1789
- opts: __ExceptionOptionType<
1790
- MalformedPolicyDocumentException,
1791
- __BaseException
1792
- >
1793
- );
1794
- }
1795
1788
  export declare const AuditImageFilterSensitiveLog: (obj: AuditImage) => any;
1796
1789
  export declare const GetFaceLivenessSessionResultsResponseFilterSensitiveLog: (
1797
1790
  obj: GetFaceLivenessSessionResultsResponse
@@ -27,6 +27,32 @@ import {
27
27
  Video,
28
28
  } from "./models_0";
29
29
  import { RekognitionServiceException as __BaseException } from "./RekognitionServiceException";
30
+ export interface ListUsersRequest {
31
+ CollectionId: string | undefined;
32
+ MaxResults?: number | undefined;
33
+ NextToken?: string | undefined;
34
+ }
35
+ export interface User {
36
+ UserId?: string | undefined;
37
+ UserStatus?: UserStatus | undefined;
38
+ }
39
+ export interface ListUsersResponse {
40
+ Users?: User[] | undefined;
41
+ NextToken?: string | undefined;
42
+ }
43
+ export declare class MalformedPolicyDocumentException extends __BaseException {
44
+ readonly name: "MalformedPolicyDocumentException";
45
+ readonly $fault: "client";
46
+ Message?: string | undefined;
47
+ Code?: string | undefined;
48
+ Logref?: string | undefined;
49
+ constructor(
50
+ opts: __ExceptionOptionType<
51
+ MalformedPolicyDocumentException,
52
+ __BaseException
53
+ >
54
+ );
55
+ }
30
56
  export interface MatchedUser {
31
57
  UserId?: string | undefined;
32
58
  UserStatus?: UserStatus | 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.825.0",
4
+ "version": "3.826.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-rekognition",
@@ -20,38 +20,38 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.825.0",
24
- "@aws-sdk/credential-provider-node": "3.825.0",
23
+ "@aws-sdk/core": "3.826.0",
24
+ "@aws-sdk/credential-provider-node": "3.826.0",
25
25
  "@aws-sdk/middleware-host-header": "3.821.0",
26
26
  "@aws-sdk/middleware-logger": "3.821.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.821.0",
28
- "@aws-sdk/middleware-user-agent": "3.825.0",
28
+ "@aws-sdk/middleware-user-agent": "3.826.0",
29
29
  "@aws-sdk/region-config-resolver": "3.821.0",
30
30
  "@aws-sdk/types": "3.821.0",
31
31
  "@aws-sdk/util-endpoints": "3.821.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.821.0",
33
- "@aws-sdk/util-user-agent-node": "3.825.0",
33
+ "@aws-sdk/util-user-agent-node": "3.826.0",
34
34
  "@smithy/config-resolver": "^4.1.4",
35
- "@smithy/core": "^3.5.2",
35
+ "@smithy/core": "^3.5.3",
36
36
  "@smithy/fetch-http-handler": "^5.0.4",
37
37
  "@smithy/hash-node": "^4.0.4",
38
38
  "@smithy/invalid-dependency": "^4.0.4",
39
39
  "@smithy/middleware-content-length": "^4.0.4",
40
- "@smithy/middleware-endpoint": "^4.1.10",
41
- "@smithy/middleware-retry": "^4.1.11",
40
+ "@smithy/middleware-endpoint": "^4.1.11",
41
+ "@smithy/middleware-retry": "^4.1.12",
42
42
  "@smithy/middleware-serde": "^4.0.8",
43
43
  "@smithy/middleware-stack": "^4.0.4",
44
44
  "@smithy/node-config-provider": "^4.1.3",
45
45
  "@smithy/node-http-handler": "^4.0.6",
46
46
  "@smithy/protocol-http": "^5.1.2",
47
- "@smithy/smithy-client": "^4.4.2",
47
+ "@smithy/smithy-client": "^4.4.3",
48
48
  "@smithy/types": "^4.3.1",
49
49
  "@smithy/url-parser": "^4.0.4",
50
50
  "@smithy/util-base64": "^4.0.0",
51
51
  "@smithy/util-body-length-browser": "^4.0.0",
52
52
  "@smithy/util-body-length-node": "^4.0.0",
53
- "@smithy/util-defaults-mode-browser": "^4.0.18",
54
- "@smithy/util-defaults-mode-node": "^4.0.18",
53
+ "@smithy/util-defaults-mode-browser": "^4.0.19",
54
+ "@smithy/util-defaults-mode-node": "^4.0.19",
55
55
  "@smithy/util-endpoints": "^3.0.6",
56
56
  "@smithy/util-middleware": "^4.0.4",
57
57
  "@smithy/util-retry": "^4.0.5",