@aws-sdk/client-rekognition 3.226.0 → 3.231.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 (56) hide show
  1. package/dist-cjs/endpoint/ruleset.js +1 -10
  2. package/dist-cjs/models/models_0.js +19 -6
  3. package/dist-cjs/protocols/Aws_json1_1.js +20 -0
  4. package/dist-cjs/runtimeConfig.browser.js +3 -3
  5. package/dist-cjs/runtimeConfig.js +2 -1
  6. package/dist-es/endpoint/ruleset.js +1 -10
  7. package/dist-es/models/models_0.js +12 -0
  8. package/dist-es/protocols/Aws_json1_1.js +20 -0
  9. package/dist-es/runtimeConfig.browser.js +1 -1
  10. package/dist-es/runtimeConfig.js +2 -1
  11. package/dist-types/Rekognition.d.ts +85 -120
  12. package/dist-types/commands/CompareFacesCommand.d.ts +0 -1
  13. package/dist-types/commands/CopyProjectVersionCommand.d.ts +0 -3
  14. package/dist-types/commands/CreateDatasetCommand.d.ts +0 -6
  15. package/dist-types/commands/CreateProjectVersionCommand.d.ts +0 -10
  16. package/dist-types/commands/CreateStreamProcessorCommand.d.ts +4 -5
  17. package/dist-types/commands/DescribeCollectionCommand.d.ts +0 -1
  18. package/dist-types/commands/DetectCustomLabelsCommand.d.ts +0 -19
  19. package/dist-types/commands/DetectLabelsCommand.d.ts +3 -8
  20. package/dist-types/commands/DetectModerationLabelsCommand.d.ts +0 -1
  21. package/dist-types/commands/DetectProtectiveEquipmentCommand.d.ts +0 -3
  22. package/dist-types/commands/DetectTextCommand.d.ts +0 -1
  23. package/dist-types/commands/DistributeDatasetEntriesCommand.d.ts +0 -1
  24. package/dist-types/commands/GetCelebrityInfoCommand.d.ts +0 -1
  25. package/dist-types/commands/GetCelebrityRecognitionCommand.d.ts +0 -1
  26. package/dist-types/commands/GetContentModerationCommand.d.ts +0 -3
  27. package/dist-types/commands/GetFaceSearchCommand.d.ts +0 -2
  28. package/dist-types/commands/GetLabelDetectionCommand.d.ts +64 -19
  29. package/dist-types/commands/GetPersonTrackingCommand.d.ts +0 -5
  30. package/dist-types/commands/GetSegmentDetectionCommand.d.ts +0 -1
  31. package/dist-types/commands/IndexFacesCommand.d.ts +0 -3
  32. package/dist-types/commands/ListCollectionsCommand.d.ts +0 -1
  33. package/dist-types/commands/ListDatasetEntriesCommand.d.ts +0 -1
  34. package/dist-types/commands/PutProjectPolicyCommand.d.ts +0 -4
  35. package/dist-types/commands/RecognizeCelebritiesCommand.d.ts +0 -1
  36. package/dist-types/commands/SearchFacesByImageCommand.d.ts +0 -1
  37. package/dist-types/commands/SearchFacesCommand.d.ts +0 -1
  38. package/dist-types/commands/StartCelebrityRecognitionCommand.d.ts +0 -1
  39. package/dist-types/commands/StartContentModerationCommand.d.ts +1 -2
  40. package/dist-types/commands/StartFaceDetectionCommand.d.ts +0 -1
  41. package/dist-types/commands/StartLabelDetectionCommand.d.ts +12 -2
  42. package/dist-types/commands/StartProjectVersionCommand.d.ts +0 -2
  43. package/dist-types/commands/StartSegmentDetectionCommand.d.ts +0 -2
  44. package/dist-types/commands/StartStreamProcessorCommand.d.ts +1 -1
  45. package/dist-types/commands/UpdateDatasetEntriesCommand.d.ts +0 -6
  46. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  47. package/dist-types/models/models_0.d.ts +60 -29
  48. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  49. package/dist-types/runtimeConfig.d.ts +1 -1
  50. package/dist-types/runtimeConfig.native.d.ts +1 -1
  51. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  52. package/dist-types/ts3.4/models/models_0.d.ts +19 -0
  53. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -1
  54. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -1
  55. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -1
  56. package/package.json +7 -6
@@ -13,18 +13,12 @@ export interface UpdateDatasetEntriesCommandOutput extends UpdateDatasetEntriesR
13
13
  * the image location, assigned labels, and object location bounding boxes. For more information,
14
14
  * see Image-Level labels in manifest files and Object localization in manifest files in the <i>Amazon Rekognition Custom Labels Developer Guide</i>.
15
15
  * </p>
16
- *
17
- *
18
- *
19
16
  * <p>If the <code>source-ref</code> field in the JSON line references an existing image, the existing image in the dataset
20
17
  * is updated.
21
18
  * If <code>source-ref</code> field doesn't reference an existing image, the image is added as a new image to the dataset. </p>
22
- *
23
19
  * <p>You specify the changes that you want to make in the <code>Changes</code> input parameter.
24
20
  * There isn't a limit to the number JSON Lines that you can change, but the size of <code>Changes</code> must be less
25
21
  * than 5MB.</p>
26
- *
27
- *
28
22
  * <p>
29
23
  * <code>UpdateDatasetEntries</code> returns immediatly, but the dataset update might take a while to complete.
30
24
  * Use <a>DescribeDataset</a> to check the
@@ -12,7 +12,7 @@ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInp
12
12
  defaultSigningName: string;
13
13
  };
14
14
  export interface EndpointParameters extends __EndpointParameters {
15
- Region?: string;
15
+ Region: string;
16
16
  UseDualStack?: boolean;
17
17
  UseFIPS?: boolean;
18
18
  Endpoint?: string;
@@ -37,7 +37,6 @@ export interface AgeRange {
37
37
  * <p>Provides the S3 bucket name and object name.</p>
38
38
  * <p>The region for the S3 bucket containing the S3 object must match the region you use for
39
39
  * Amazon Rekognition operations.</p>
40
- *
41
40
  * <p>For Amazon Rekognition to process an S3 object, the user must have permission to
42
41
  * access the S3 object. For more information, see How Amazon Rekognition works with IAM in the
43
42
  * Amazon Rekognition Developer Guide. </p>
@@ -65,7 +64,6 @@ export interface GroundTruthManifest {
65
64
  * <p>Provides the S3 bucket name and object name.</p>
66
65
  * <p>The region for the S3 bucket containing the S3 object must match the region you use for
67
66
  * Amazon Rekognition operations.</p>
68
- *
69
67
  * <p>For Amazon Rekognition to process an S3 object, the user must have permission to
70
68
  * access the S3 object. For more information, see How Amazon Rekognition works with IAM in the
71
69
  * Amazon Rekognition Developer Guide. </p>
@@ -585,7 +583,7 @@ export interface Sunglasses {
585
583
  * return a <code>FaceDetail</code> object with all attributes. To specify which attributes to
586
584
  * return, use the <code>FaceAttributes</code> input parameter for <a>StartFaceDetection</a>. The following Amazon Rekognition Video operations return only the default
587
585
  * attributes. The corresponding Start operations don't have a <code>FaceAttributes</code> input
588
- * parameter.</p>
586
+ * parameter:</p>
589
587
  * <ul>
590
588
  * <li>
591
589
  * <p>GetCelebrityRecognition</p>
@@ -760,7 +758,6 @@ export declare enum QualityFilter {
760
758
  * from a local file system. Image bytes passed by using the <code>Bytes</code> property must be
761
759
  * base64-encoded. Your code may not need to encode image bytes if you are using an AWS SDK to
762
760
  * call Amazon Rekognition API operations. </p>
763
- *
764
761
  * <p>For more information, see Analyzing an Image Loaded from a Local File System
765
762
  * in the Amazon Rekognition Developer Guide.</p>
766
763
  * <p> You pass images stored in an S3 bucket to an Amazon Rekognition API operation by using the
@@ -773,7 +770,6 @@ export declare enum QualityFilter {
773
770
  * CLI to call Amazon Rekognition operations, passing image bytes using the Bytes
774
771
  * property is not supported. You must first upload the image to an Amazon S3 bucket and then
775
772
  * call the operation using the S3Object property.</p>
776
- *
777
773
  * <p>For Amazon Rekognition to process an S3 object, the user must have permission to
778
774
  * access the S3 object. For more information, see How Amazon Rekognition works with IAM in the
779
775
  * Amazon Rekognition Developer Guide. </p>
@@ -1228,7 +1224,6 @@ export declare class ResourceNotFoundException extends __BaseException {
1228
1224
  }
1229
1225
  /**
1230
1226
  * <p></p>
1231
- *
1232
1227
  * <p>The size of the collection exceeds the allowed limit. For more information,
1233
1228
  * see Guidelines and quotas in Amazon Rekognition in the Amazon Rekognition Developer Guide. </p>
1234
1229
  */
@@ -1490,10 +1485,10 @@ export interface StreamProcessorInput {
1490
1485
  }
1491
1486
  /**
1492
1487
  * <p>The Amazon Simple Notification Service topic to which Amazon Rekognition publishes the object detection results and completion status of a video analysis operation.</p>
1493
- * <p>Amazon Rekognition publishes a notification the first time an object of interest or a person is detected in the video stream. For example, if Amazon Rekognition
1488
+ * <p>Amazon Rekognition publishes a notification the first time an object of interest or a person is detected in the video stream. For example, if Amazon Rekognition
1494
1489
  * detects a person at second 2, a pet at second 4, and a person again at second 5, Amazon Rekognition sends 2 object class detected notifications,
1495
1490
  * one for a person at second 2 and one for a pet at second 4.</p>
1496
- * <p>Amazon Rekognition also publishes an an end-of-session notification with a summary when the stream processing session is complete.</p>
1491
+ * <p>Amazon Rekognition also publishes an an end-of-session notification with a summary when the stream processing session is complete.</p>
1497
1492
  */
1498
1493
  export interface StreamProcessorNotificationChannel {
1499
1494
  /**
@@ -1556,7 +1551,6 @@ export interface StreamProcessorOutput {
1556
1551
  * ratios of the overall image size or video resolution. For example, if an input image is
1557
1552
  * 700x200 and the values are X=0.5 and Y=0.25, then the point is at the (350,50) pixel
1558
1553
  * coordinate on the image.</p>
1559
- *
1560
1554
  * <p>An array of <code>Point</code> objects makes up a <code>Polygon</code>. A
1561
1555
  * <code>Polygon</code> is returned by <a>DetectText</a> and by <a>DetectCustomLabels</a>
1562
1556
  * <code>Polygon</code> represents a fine-grained polygon around a detected item. For more
@@ -1660,10 +1654,10 @@ export interface CreateStreamProcessorRequest {
1660
1654
  Tags?: Record<string, string>;
1661
1655
  /**
1662
1656
  * <p>The Amazon Simple Notification Service topic to which Amazon Rekognition publishes the object detection results and completion status of a video analysis operation.</p>
1663
- * <p>Amazon Rekognition publishes a notification the first time an object of interest or a person is detected in the video stream. For example, if Amazon Rekognition
1657
+ * <p>Amazon Rekognition publishes a notification the first time an object of interest or a person is detected in the video stream. For example, if Amazon Rekognition
1664
1658
  * detects a person at second 2, a pet at second 4, and a person again at second 5, Amazon Rekognition sends 2 object class detected notifications,
1665
1659
  * one for a person at second 2 and one for a pet at second 4.</p>
1666
- * <p>Amazon Rekognition also publishes an an end-of-session notification with a summary when the stream processing session is complete.</p>
1660
+ * <p>Amazon Rekognition also publishes an an end-of-session notification with a summary when the stream processing session is complete.</p>
1667
1661
  */
1668
1662
  NotificationChannel?: StreamProcessorNotificationChannel;
1669
1663
  /**
@@ -1672,7 +1666,7 @@ export interface CreateStreamProcessorRequest {
1672
1666
  * You can supply the Amazon Resource Name (ARN) of your KMS key, the ID of your KMS key, an alias for your KMS key, or an alias ARN.
1673
1667
  * The key is used to encrypt results and data published to your Amazon S3 bucket, which includes image frames and hero images. Your source images are unaffected.
1674
1668
  * </p>
1675
- * <p>
1669
+ * <p>
1676
1670
  * </p>
1677
1671
  */
1678
1672
  KmsKeyId?: string;
@@ -1744,8 +1738,6 @@ export interface DatasetChanges {
1744
1738
  * If you are using an AWS SDK to call <code>UpdateDatasetEntries</code>, you don't need to encode <code>Changes</code> as the SDK encodes the data for you.
1745
1739
  *
1746
1740
  * </p>
1747
- *
1748
- *
1749
1741
  * <p>For example JSON lines,
1750
1742
  * see Image-Level labels in manifest files and
1751
1743
  * and Object localization in manifest files in the <i>Amazon Rekognition Custom Labels Developer Guide</i>.
@@ -2066,7 +2058,6 @@ export interface DescribeCollectionResponse {
2066
2058
  FaceCount?: number;
2067
2059
  /**
2068
2060
  * <p>The version of the face model that's used by the collection for face detection.</p>
2069
- *
2070
2061
  * <p>For more information, see Model versioning in the
2071
2062
  * Amazon Rekognition Developer Guide.</p>
2072
2063
  */
@@ -2205,7 +2196,6 @@ export interface Summary {
2205
2196
  * <p>Provides the S3 bucket name and object name.</p>
2206
2197
  * <p>The region for the S3 bucket containing the S3 object must match the region you use for
2207
2198
  * Amazon Rekognition operations.</p>
2208
- *
2209
2199
  * <p>For Amazon Rekognition to process an S3 object, the user must have permission to
2210
2200
  * access the S3 object. For more information, see How Amazon Rekognition works with IAM in the
2211
2201
  * Amazon Rekognition Developer Guide. </p>
@@ -2234,7 +2224,6 @@ export interface EvaluationResult {
2234
2224
  * <p>The validation data includes error information for individual JSON Lines in the dataset.
2235
2225
  * For more information, see <i>Debugging a Failed Model Training</i> in the
2236
2226
  * Amazon Rekognition Custom Labels Developer Guide. </p>
2237
- *
2238
2227
  * <p>You get the <code>ValidationData</code> object for the training dataset (<a>TrainingDataResult</a>)
2239
2228
  * and the test dataset (<a>TestingDataResult</a>) by calling <a>DescribeProjectVersions</a>. </p>
2240
2229
  * <p>The assets array contains a single <a>Asset</a> object.
@@ -2424,10 +2413,10 @@ export interface DescribeStreamProcessorResponse {
2424
2413
  Settings?: StreamProcessorSettings;
2425
2414
  /**
2426
2415
  * <p>The Amazon Simple Notification Service topic to which Amazon Rekognition publishes the object detection results and completion status of a video analysis operation.</p>
2427
- * <p>Amazon Rekognition publishes a notification the first time an object of interest or a person is detected in the video stream. For example, if Amazon Rekognition
2416
+ * <p>Amazon Rekognition publishes a notification the first time an object of interest or a person is detected in the video stream. For example, if Amazon Rekognition
2428
2417
  * detects a person at second 2, a pet at second 4, and a person again at second 5, Amazon Rekognition sends 2 object class detected notifications,
2429
2418
  * one for a person at second 2 and one for a pet at second 4.</p>
2430
- * <p>Amazon Rekognition also publishes an an end-of-session notification with a summary when the stream processing session is complete.</p>
2419
+ * <p>Amazon Rekognition also publishes an an end-of-session notification with a summary when the stream processing session is complete.</p>
2431
2420
  */
2432
2421
  NotificationChannel?: StreamProcessorNotificationChannel;
2433
2422
  /**
@@ -2462,7 +2451,6 @@ export interface DetectCustomLabelsRequest {
2462
2451
  * from a local file system. Image bytes passed by using the <code>Bytes</code> property must be
2463
2452
  * base64-encoded. Your code may not need to encode image bytes if you are using an AWS SDK to
2464
2453
  * call Amazon Rekognition API operations. </p>
2465
- *
2466
2454
  * <p>For more information, see Analyzing an Image Loaded from a Local File System
2467
2455
  * in the Amazon Rekognition Developer Guide.</p>
2468
2456
  * <p> You pass images stored in an S3 bucket to an Amazon Rekognition API operation by using the
@@ -2475,7 +2463,6 @@ export interface DetectCustomLabelsRequest {
2475
2463
  * CLI to call Amazon Rekognition operations, passing image bytes using the Bytes
2476
2464
  * property is not supported. You must first upload the image to an Amazon S3 bucket and then
2477
2465
  * call the operation using the S3Object property.</p>
2478
- *
2479
2466
  * <p>For Amazon Rekognition to process an S3 object, the user must have permission to
2480
2467
  * access the S3 object. For more information, see How Amazon Rekognition works with IAM in the
2481
2468
  * Amazon Rekognition Developer Guide. </p>
@@ -3160,7 +3147,6 @@ export declare enum TextTypes {
3160
3147
  * and has a parent identifier (<code>ParentId</code>) that identifies the line of text in which
3161
3148
  * the word appears. The word <code>Id</code> is also an index for the word within a line of
3162
3149
  * words. </p>
3163
- *
3164
3150
  * <p>For more information, see Detecting text in the Amazon Rekognition Developer
3165
3151
  * Guide.</p>
3166
3152
  */
@@ -3612,6 +3598,10 @@ export interface GetFaceSearchResponse {
3612
3598
  */
3613
3599
  Persons?: PersonMatch[];
3614
3600
  }
3601
+ export declare enum LabelDetectionAggregateBy {
3602
+ SEGMENTS = "SEGMENTS",
3603
+ TIMESTAMPS = "TIMESTAMPS"
3604
+ }
3615
3605
  export declare enum LabelDetectionSortBy {
3616
3606
  NAME = "NAME",
3617
3607
  TIMESTAMP = "TIMESTAMP"
@@ -3641,6 +3631,10 @@ export interface GetLabelDetectionRequest {
3641
3631
  * The default sort is by <code>TIMESTAMP</code>.</p>
3642
3632
  */
3643
3633
  SortBy?: LabelDetectionSortBy | string;
3634
+ /**
3635
+ * <p>Defines how to aggregate the returned results. Results can be aggregated by timestamps or segments.</p>
3636
+ */
3637
+ AggregateBy?: LabelDetectionAggregateBy | string;
3644
3638
  }
3645
3639
  /**
3646
3640
  * <p>Information about a label detected in a video analysis request and the time the label was detected in the video. </p>
@@ -3655,6 +3649,18 @@ export interface LabelDetection {
3655
3649
  * <p>Details about the detected label.</p>
3656
3650
  */
3657
3651
  Label?: Label;
3652
+ /**
3653
+ * <p>The time in milliseconds defining the start of the timeline segment containing a continuously detected label.</p>
3654
+ */
3655
+ StartTimestampMillis?: number;
3656
+ /**
3657
+ * <p>The time in milliseconds defining the end of the timeline segment containing a continuously detected label.</p>
3658
+ */
3659
+ EndTimestampMillis?: number;
3660
+ /**
3661
+ * <p>The time duration of a segment in milliseconds, I.e. time elapsed from StartTimestampMillis to EndTimestampMillis.</p>
3662
+ */
3663
+ DurationMillis?: number;
3658
3664
  }
3659
3665
  export interface GetLabelDetectionResponse {
3660
3666
  /**
@@ -3718,7 +3724,6 @@ export interface GetPersonTrackingRequest {
3718
3724
  * <p>Details and path tracking information for a single time a person's path is tracked in a video.
3719
3725
  * Amazon Rekognition operations that track people's paths return an array of <code>PersonDetection</code> objects
3720
3726
  * with elements for each time a person's path is tracked in a video. </p>
3721
- *
3722
3727
  * <p>For more information, see GetPersonTracking in the Amazon Rekognition Developer Guide. </p>
3723
3728
  */
3724
3729
  export interface PersonDetection {
@@ -4188,6 +4193,20 @@ export interface KinesisVideoStreamStartSelector {
4188
4193
  */
4189
4194
  FragmentNumber?: string;
4190
4195
  }
4196
+ export declare enum LabelDetectionFeatureName {
4197
+ GENERAL_LABELS = "GENERAL_LABELS"
4198
+ }
4199
+ /**
4200
+ * <p>Contains the specified filters that should be applied to a list of returned GENERAL_LABELS.</p>
4201
+ */
4202
+ export interface LabelDetectionSettings {
4203
+ /**
4204
+ * <p>Contains filters for the object labels returned by DetectLabels. Filters can be inclusive,
4205
+ * exclusive, or a combination of both and can be applied to individual l
4206
+ * abels or entire label categories.</p>
4207
+ */
4208
+ GeneralLabels?: GeneralLabelsSettings;
4209
+ }
4191
4210
  export interface ListCollectionsRequest {
4192
4211
  /**
4193
4212
  * <p>Pagination token from the previous response.</p>
@@ -4361,7 +4380,6 @@ export interface ListProjectPoliciesRequest {
4361
4380
  }
4362
4381
  /**
4363
4382
  * <p>Describes a project policy in the response from <a>ListProjectPolicies</a>. </p>
4364
- *
4365
4383
  * <p> </p>
4366
4384
  */
4367
4385
  export interface ProjectPolicy {
@@ -4845,8 +4863,9 @@ export interface StartLabelDetectionRequest {
4845
4863
  * represents how certain Amazon Rekognition is that a label is correctly identified.0 is the lowest confidence.
4846
4864
  * 100 is the highest confidence. Amazon Rekognition Video doesn't return any labels with a confidence level
4847
4865
  * lower than this specified value.</p>
4848
- * <p>If you don't specify <code>MinConfidence</code>, the operation returns labels with confidence
4849
- * values greater than or equal to 50 percent.</p>
4866
+ * <p>If you don't specify <code>MinConfidence</code>, the operation returns labels and
4867
+ * bounding boxes (if detected) with confidence values greater than or equal to 50
4868
+ * percent.</p>
4850
4869
  */
4851
4870
  MinConfidence?: number;
4852
4871
  /**
@@ -4859,6 +4878,15 @@ export interface StartLabelDetectionRequest {
4859
4878
  * For example, you can use <code>JobTag</code> to group related jobs and identify them in the completion notification.</p>
4860
4879
  */
4861
4880
  JobTag?: string;
4881
+ /**
4882
+ * <p>The features to return after video analysis. You can specify that GENERAL_LABELS are returned.</p>
4883
+ */
4884
+ Features?: (LabelDetectionFeatureName | string)[];
4885
+ /**
4886
+ * <p>The settings for a StartLabelDetection request.Contains the specified parameters for the label detection request of an asynchronous label analysis operation.
4887
+ * Settings can include filters for GENERAL_LABELS.</p>
4888
+ */
4889
+ Settings?: LabelDetectionSettings;
4862
4890
  }
4863
4891
  export interface StartLabelDetectionResponse {
4864
4892
  /**
@@ -4905,7 +4933,6 @@ export interface StartProjectVersionRequest {
4905
4933
  /**
4906
4934
  * <p>The minimum number of inference units to use. A single
4907
4935
  * inference unit represents 1 hour of processing. </p>
4908
- *
4909
4936
  * <p>For information about the number
4910
4937
  * of transactions per second (TPS) that an inference unit can support, see
4911
4938
  * <i>Running a trained Amazon Rekognition Custom Labels model</i> in the
@@ -5055,7 +5082,7 @@ export interface StartStreamProcessorRequest {
5055
5082
  * You can use the producer timestamp or the fragment number. If you use the producer timestamp, you must put the time in milliseconds.
5056
5083
  * For more information about fragment numbers, see <a href="https://docs.aws.amazon.com/kinesisvideostreams/latest/dg/API_reader_Fragment.html">Fragment</a>.
5057
5084
  * </p>
5058
- * <p>This is a required parameter for label detection stream processors and should not be used to start a face search stream processor.</p>
5085
+ * <p>This is a required parameter for label detection stream processors and should not be used to start a face search stream processor.</p>
5059
5086
  */
5060
5087
  StartSelector?: StreamProcessingStartSelector;
5061
5088
  /**
@@ -5063,7 +5090,7 @@ export interface StartStreamProcessorRequest {
5063
5090
  * Specifies when to stop processing the stream. You can specify a
5064
5091
  * maximum amount of time to process the video.
5065
5092
  * </p>
5066
- * <p>This is a required parameter for label detection stream processors and should not be used to start a face search stream processor.</p>
5093
+ * <p>This is a required parameter for label detection stream processors and should not be used to start a face search stream processor.</p>
5067
5094
  */
5068
5095
  StopSelector?: StreamProcessingStopSelector;
5069
5096
  }
@@ -5944,6 +5971,10 @@ export declare const IndexFacesResponseFilterSensitiveLog: (obj: IndexFacesRespo
5944
5971
  * @internal
5945
5972
  */
5946
5973
  export declare const KinesisVideoStreamStartSelectorFilterSensitiveLog: (obj: KinesisVideoStreamStartSelector) => any;
5974
+ /**
5975
+ * @internal
5976
+ */
5977
+ export declare const LabelDetectionSettingsFilterSensitiveLog: (obj: LabelDetectionSettings) => any;
5947
5978
  /**
5948
5979
  * @internal
5949
5980
  */
@@ -31,7 +31,7 @@ export declare const getRuntimeConfig: (config: RekognitionClientConfig) => {
31
31
  logger?: import("@aws-sdk/types").Logger | undefined;
32
32
  }) => import("@aws-sdk/types").EndpointV2;
33
33
  tls?: boolean | undefined;
34
- retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
34
+ retryStrategy?: import("@aws-sdk/types").RetryStrategy | import("@aws-sdk/types").RetryStrategyV2 | undefined;
35
35
  credentials?: import("@aws-sdk/types").AwsCredentialIdentity | import("@aws-sdk/types").Provider<import("@aws-sdk/types").AwsCredentialIdentity> | undefined;
36
36
  signer?: import("@aws-sdk/types").RequestSigner | ((authScheme?: import("@aws-sdk/types").AuthScheme | undefined) => Promise<import("@aws-sdk/types").RequestSigner>) | undefined;
37
37
  signingEscapePath?: boolean | undefined;
@@ -31,7 +31,7 @@ export declare const getRuntimeConfig: (config: RekognitionClientConfig) => {
31
31
  logger?: import("@aws-sdk/types").Logger | undefined;
32
32
  }) => import("@aws-sdk/types").EndpointV2;
33
33
  tls?: boolean | undefined;
34
- retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
34
+ retryStrategy?: import("@aws-sdk/types").RetryStrategy | import("@aws-sdk/types").RetryStrategyV2 | undefined;
35
35
  credentials?: import("@aws-sdk/types").AwsCredentialIdentity | import("@aws-sdk/types").Provider<import("@aws-sdk/types").AwsCredentialIdentity> | undefined;
36
36
  signer?: import("@aws-sdk/types").RequestSigner | ((authScheme?: import("@aws-sdk/types").AuthScheme | undefined) => Promise<import("@aws-sdk/types").RequestSigner>) | undefined;
37
37
  signingEscapePath?: boolean | undefined;
@@ -30,7 +30,7 @@ export declare const getRuntimeConfig: (config: RekognitionClientConfig) => {
30
30
  logger?: import("@aws-sdk/types").Logger | undefined;
31
31
  }) => import("@aws-sdk/types").EndpointV2;
32
32
  tls?: boolean | undefined;
33
- retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
33
+ retryStrategy?: import("@aws-sdk/types").RetryStrategy | import("@aws-sdk/types").RetryStrategyV2 | undefined;
34
34
  credentials?: import("@aws-sdk/types").AwsCredentialIdentity | import("@aws-sdk/types").Provider<import("@aws-sdk/types").AwsCredentialIdentity> | undefined;
35
35
  signer?: import("@aws-sdk/types").RequestSigner | ((authScheme?: import("@aws-sdk/types").AuthScheme | undefined) => Promise<import("@aws-sdk/types").RequestSigner>) | undefined;
36
36
  signingEscapePath?: boolean | undefined;
@@ -27,7 +27,7 @@ export declare const resolveClientEndpointParameters: <T>(
27
27
  defaultSigningName: string;
28
28
  };
29
29
  export interface EndpointParameters extends __EndpointParameters {
30
- Region?: string;
30
+ Region: string;
31
31
  UseDualStack?: boolean;
32
32
  UseFIPS?: boolean;
33
33
  Endpoint?: string;
@@ -1103,6 +1103,10 @@ export interface GetFaceSearchResponse {
1103
1103
  VideoMetadata?: VideoMetadata;
1104
1104
  Persons?: PersonMatch[];
1105
1105
  }
1106
+ export declare enum LabelDetectionAggregateBy {
1107
+ SEGMENTS = "SEGMENTS",
1108
+ TIMESTAMPS = "TIMESTAMPS",
1109
+ }
1106
1110
  export declare enum LabelDetectionSortBy {
1107
1111
  NAME = "NAME",
1108
1112
  TIMESTAMP = "TIMESTAMP",
@@ -1112,10 +1116,14 @@ export interface GetLabelDetectionRequest {
1112
1116
  MaxResults?: number;
1113
1117
  NextToken?: string;
1114
1118
  SortBy?: LabelDetectionSortBy | string;
1119
+ AggregateBy?: LabelDetectionAggregateBy | string;
1115
1120
  }
1116
1121
  export interface LabelDetection {
1117
1122
  Timestamp?: number;
1118
1123
  Label?: Label;
1124
+ StartTimestampMillis?: number;
1125
+ EndTimestampMillis?: number;
1126
+ DurationMillis?: number;
1119
1127
  }
1120
1128
  export interface GetLabelDetectionResponse {
1121
1129
  JobStatus?: VideoJobStatus | string;
@@ -1260,6 +1268,12 @@ export interface KinesisVideoStreamStartSelector {
1260
1268
  ProducerTimestamp?: number;
1261
1269
  FragmentNumber?: string;
1262
1270
  }
1271
+ export declare enum LabelDetectionFeatureName {
1272
+ GENERAL_LABELS = "GENERAL_LABELS",
1273
+ }
1274
+ export interface LabelDetectionSettings {
1275
+ GeneralLabels?: GeneralLabelsSettings;
1276
+ }
1263
1277
  export interface ListCollectionsRequest {
1264
1278
  NextToken?: string;
1265
1279
  MaxResults?: number;
@@ -1453,6 +1467,8 @@ export interface StartLabelDetectionRequest {
1453
1467
  MinConfidence?: number;
1454
1468
  NotificationChannel?: NotificationChannel;
1455
1469
  JobTag?: string;
1470
+ Features?: (LabelDetectionFeatureName | string)[];
1471
+ Settings?: LabelDetectionSettings;
1456
1472
  }
1457
1473
  export interface StartLabelDetectionResponse {
1458
1474
  JobId?: string;
@@ -2012,6 +2028,9 @@ export declare const IndexFacesResponseFilterSensitiveLog: (
2012
2028
  export declare const KinesisVideoStreamStartSelectorFilterSensitiveLog: (
2013
2029
  obj: KinesisVideoStreamStartSelector
2014
2030
  ) => any;
2031
+ export declare const LabelDetectionSettingsFilterSensitiveLog: (
2032
+ obj: LabelDetectionSettings
2033
+ ) => any;
2015
2034
  export declare const ListCollectionsRequestFilterSensitiveLog: (
2016
2035
  obj: ListCollectionsRequest
2017
2036
  ) => any;
@@ -62,7 +62,10 @@ export declare const getRuntimeConfig: (config: RekognitionClientConfig) => {
62
62
  }
63
63
  ) => import("@aws-sdk/types").EndpointV2;
64
64
  tls?: boolean | undefined;
65
- retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
65
+ retryStrategy?:
66
+ | import("@aws-sdk/types").RetryStrategy
67
+ | import("@aws-sdk/types").RetryStrategyV2
68
+ | undefined;
66
69
  credentials?:
67
70
  | import("@aws-sdk/types").AwsCredentialIdentity
68
71
  | import("@aws-sdk/types").Provider<
@@ -62,7 +62,10 @@ export declare const getRuntimeConfig: (config: RekognitionClientConfig) => {
62
62
  }
63
63
  ) => import("@aws-sdk/types").EndpointV2;
64
64
  tls?: boolean | undefined;
65
- retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
65
+ retryStrategy?:
66
+ | import("@aws-sdk/types").RetryStrategy
67
+ | import("@aws-sdk/types").RetryStrategyV2
68
+ | undefined;
66
69
  credentials?:
67
70
  | import("@aws-sdk/types").AwsCredentialIdentity
68
71
  | import("@aws-sdk/types").Provider<
@@ -51,7 +51,10 @@ export declare const getRuntimeConfig: (config: RekognitionClientConfig) => {
51
51
  }
52
52
  ) => import("@aws-sdk/types").EndpointV2;
53
53
  tls?: boolean | undefined;
54
- retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
54
+ retryStrategy?:
55
+ | import("@aws-sdk/types").RetryStrategy
56
+ | import("@aws-sdk/types").RetryStrategyV2
57
+ | undefined;
55
58
  credentials?:
56
59
  | import("@aws-sdk/types").AwsCredentialIdentity
57
60
  | import("@aws-sdk/types").Provider<
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.226.0",
4
+ "version": "3.231.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.226.0",
23
- "@aws-sdk/config-resolver": "3.226.0",
24
- "@aws-sdk/credential-provider-node": "3.226.0",
22
+ "@aws-sdk/client-sts": "3.231.0",
23
+ "@aws-sdk/config-resolver": "3.231.0",
24
+ "@aws-sdk/credential-provider-node": "3.231.0",
25
25
  "@aws-sdk/fetch-http-handler": "3.226.0",
26
26
  "@aws-sdk/hash-node": "3.226.0",
27
27
  "@aws-sdk/invalid-dependency": "3.226.0",
@@ -30,7 +30,7 @@
30
30
  "@aws-sdk/middleware-host-header": "3.226.0",
31
31
  "@aws-sdk/middleware-logger": "3.226.0",
32
32
  "@aws-sdk/middleware-recursion-detection": "3.226.0",
33
- "@aws-sdk/middleware-retry": "3.226.0",
33
+ "@aws-sdk/middleware-retry": "3.229.0",
34
34
  "@aws-sdk/middleware-serde": "3.226.0",
35
35
  "@aws-sdk/middleware-signing": "3.226.0",
36
36
  "@aws-sdk/middleware-stack": "3.226.0",
@@ -45,8 +45,9 @@
45
45
  "@aws-sdk/util-body-length-browser": "3.188.0",
46
46
  "@aws-sdk/util-body-length-node": "3.208.0",
47
47
  "@aws-sdk/util-defaults-mode-browser": "3.226.0",
48
- "@aws-sdk/util-defaults-mode-node": "3.226.0",
48
+ "@aws-sdk/util-defaults-mode-node": "3.231.0",
49
49
  "@aws-sdk/util-endpoints": "3.226.0",
50
+ "@aws-sdk/util-retry": "3.229.0",
50
51
  "@aws-sdk/util-user-agent-browser": "3.226.0",
51
52
  "@aws-sdk/util-user-agent-node": "3.226.0",
52
53
  "@aws-sdk/util-utf8-browser": "3.188.0",