@aws-sdk/client-rekognition 3.385.0 → 3.387.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 (34) hide show
  1. package/dist-cjs/RekognitionClient.js +2 -2
  2. package/dist-cjs/endpoint/ruleset.js +1 -1
  3. package/dist-es/RekognitionClient.js +2 -2
  4. package/dist-es/endpoint/ruleset.js +1 -1
  5. package/dist-types/RekognitionClient.d.ts +2 -2
  6. package/dist-types/commands/AssociateFacesCommand.d.ts +2 -3
  7. package/dist-types/commands/CreateDatasetCommand.d.ts +27 -2
  8. package/dist-types/commands/CreateFaceLivenessSessionCommand.d.ts +8 -5
  9. package/dist-types/commands/CreateProjectCommand.d.ts +16 -0
  10. package/dist-types/commands/CreateProjectVersionCommand.d.ts +21 -0
  11. package/dist-types/commands/CreateUserCommand.d.ts +8 -9
  12. package/dist-types/commands/DeleteDatasetCommand.d.ts +11 -0
  13. package/dist-types/commands/DeleteProjectCommand.d.ts +16 -0
  14. package/dist-types/commands/DeleteProjectVersionCommand.d.ts +16 -0
  15. package/dist-types/commands/DeleteUserCommand.d.ts +2 -3
  16. package/dist-types/commands/DescribeDatasetCommand.d.ts +28 -0
  17. package/dist-types/commands/DescribeProjectVersionsCommand.d.ts +105 -0
  18. package/dist-types/commands/DescribeProjectsCommand.d.ts +42 -0
  19. package/dist-types/commands/DetectCustomLabelsCommand.d.ts +33 -0
  20. package/dist-types/commands/DetectLabelsCommand.d.ts +9 -5
  21. package/dist-types/commands/DisassociateFacesCommand.d.ts +2 -3
  22. package/dist-types/commands/DistributeDatasetEntriesCommand.d.ts +18 -0
  23. package/dist-types/commands/GetFaceDetectionCommand.d.ts +2 -0
  24. package/dist-types/commands/GetFaceLivenessSessionResultsCommand.d.ts +5 -2
  25. package/dist-types/commands/GetTextDetectionCommand.d.ts +1 -1
  26. package/dist-types/commands/ListDatasetEntriesCommand.d.ts +27 -0
  27. package/dist-types/commands/ListDatasetLabelsCommand.d.ts +37 -0
  28. package/dist-types/commands/SearchUsersByImageCommand.d.ts +3 -3
  29. package/dist-types/commands/StartProjectVersionCommand.d.ts +18 -0
  30. package/dist-types/commands/StopProjectVersionCommand.d.ts +16 -0
  31. package/dist-types/commands/UpdateDatasetEntriesCommand.d.ts +14 -0
  32. package/dist-types/models/models_0.d.ts +151 -155
  33. package/dist-types/ts3.4/RekognitionClient.d.ts +4 -1
  34. package/package.json +29 -29
@@ -36,6 +36,8 @@ export interface GetFaceDetectionCommandOutput extends GetFaceDetectionResponse,
36
36
  * specified in <code>MaxResults</code>, the value of <code>NextToken</code> in the operation response contains a pagination token for getting the next set
37
37
  * of results. To get the next page of results, call <code>GetFaceDetection</code> and populate the <code>NextToken</code> request parameter with the token
38
38
  * value returned from the previous call to <code>GetFaceDetection</code>.</p>
39
+ * <p>Note that for the <code>GetFaceDetection</code> operation, the returned values for
40
+ * <code>FaceOccluded</code> and <code>EyeDirection</code> will always be "null".</p>
39
41
  * @example
40
42
  * Use a bare-bones client and the command you need to make an API call.
41
43
  * ```javascript
@@ -27,8 +27,11 @@ export interface GetFaceLivenessSessionResultsCommandOutput extends GetFaceLiven
27
27
  * <code>sessionId</code> as input, which was created using
28
28
  * <code>CreateFaceLivenessSession</code>. Returns the corresponding Face Liveness confidence
29
29
  * score, a reference image that includes a face bounding box, and audit images that also contain
30
- * face bounding boxes. The Face Liveness confidence score ranges from 0 to 100. The reference
31
- * image can optionally be returned.</p>
30
+ * face bounding boxes. The Face Liveness confidence score ranges from 0 to 100. </p>
31
+ * <p>The number of audit images returned by <code>GetFaceLivenessSessionResults</code> is
32
+ * defined by the <code>AuditImagesLimit</code> paramater when calling
33
+ * <code>CreateFaceLivenessSession</code>. Reference images are always returned when
34
+ * possible.</p>
32
35
  * @example
33
36
  * Use a bare-bones client and the command you need to make an API call.
34
37
  * ```javascript
@@ -33,7 +33,7 @@ export interface GetTextDetectionCommandOutput extends GetTextDetectionResponse,
33
33
  * of <code>StartLabelDetection</code>.</p>
34
34
  * <p>
35
35
  * <code>GetTextDetection</code> returns an array of detected text (<code>TextDetections</code>) sorted by
36
- * the time the text was detected, up to 50 words per frame of video.</p>
36
+ * the time the text was detected, up to 100 words per frame of video.</p>
37
37
  * <p>Each element of the array includes the detected text, the precentage confidence in the acuracy
38
38
  * of the detected text, the time the text was detected, bounding box information for where the text
39
39
  * was located, and unique identifiers for words and their lines.</p>
@@ -105,6 +105,33 @@ export interface ListDatasetEntriesCommandOutput extends ListDatasetEntriesRespo
105
105
  * @throws {@link RekognitionServiceException}
106
106
  * <p>Base exception class for all service exceptions from Rekognition service.</p>
107
107
  *
108
+ * @example To list the entries in an Amazon Rekognition Custom Labels dataset
109
+ * ```javascript
110
+ * // Lists the JSON line entries in an Amazon Rekognition Custom Labels dataset.
111
+ * const input = {
112
+ * "ContainsLabels": [
113
+ * "camellia"
114
+ * ],
115
+ * "DatasetArn": "arn:aws:rekognition:us-east-1:111122223333:project/my-proj-2/dataset/train/1690564858106",
116
+ * "HasErrors": true,
117
+ * "Labeled": true,
118
+ * "MaxResults": 100,
119
+ * "NextToken": "",
120
+ * "SourceRefContains": "camellia4.jpg"
121
+ * };
122
+ * const command = new ListDatasetEntriesCommand(input);
123
+ * const response = await client.send(command);
124
+ * /* response ==
125
+ * {
126
+ * "DatasetEntries": [
127
+ * "{\"source-ref\":\"s3://custom-labels-console-us-east-1-1111111111/assets/flowers_1_train_dataset/camellia4.jpg\",\"camellia\":1,\"camellia-metadata\":{\"confidence\":1,\"job-name\":\"labeling-job/camellia\",\"class-name\":\"camellia\",\"human-annotated\":\"yes\",\"creation-date\":\"2021-07-11T03:32:13.456Z\",\"type\":\"groundtruth/image-classification\"},\"with_leaves\":1,\"with_leaves-metadata\":{\"confidence\":1,\"job-name\":\"labeling-job/with_leaves\",\"class-name\":\"with_leaves\",\"human-annotated\":\"yes\",\"creation-date\":\"2021-07-11T03:32:13.456Z\",\"type\":\"groundtruth/image-classification\"},\"cl-metadata\":{\"is_labeled\":true}}"
128
+ * ],
129
+ * "NextToken": ""
130
+ * }
131
+ * *\/
132
+ * // example id: to-list-the-entries-in-an-amazon-rekognition-custom-labels-dataset-1690823292345
133
+ * ```
134
+ *
108
135
  */
109
136
  export declare class ListDatasetEntriesCommand extends $Command<ListDatasetEntriesCommandInput, ListDatasetEntriesCommandOutput, RekognitionClientResolvedConfig> {
110
137
  readonly input: ListDatasetEntriesCommandInput;
@@ -97,6 +97,43 @@ export interface ListDatasetLabelsCommandOutput extends ListDatasetLabelsRespons
97
97
  * @throws {@link RekognitionServiceException}
98
98
  * <p>Base exception class for all service exceptions from Rekognition service.</p>
99
99
  *
100
+ * @example To list the entries in an Amazon Rekognition Custom Labels dataset
101
+ * ```javascript
102
+ * // Lists the JSON line entries in an Amazon Rekognition Custom Labels dataset.
103
+ * const input = {
104
+ * "DatasetArn": "arn:aws:rekognition:us-east-1:111122223333:project/my-proj-2/dataset/train/1690564858106",
105
+ * "MaxResults": 100,
106
+ * "NextToken": ""
107
+ * };
108
+ * const command = new ListDatasetLabelsCommand(input);
109
+ * const response = await client.send(command);
110
+ * /* response ==
111
+ * {
112
+ * "DatasetLabelDescriptions": [
113
+ * {
114
+ * "LabelName": "camellia",
115
+ * "LabelStats": {
116
+ * "EntryCount": 1
117
+ * }
118
+ * },
119
+ * {
120
+ * "LabelName": "with_leaves",
121
+ * "LabelStats": {
122
+ * "EntryCount": 2
123
+ * }
124
+ * },
125
+ * {
126
+ * "LabelName": "mediterranean_spurge",
127
+ * "LabelStats": {
128
+ * "EntryCount": 1
129
+ * }
130
+ * }
131
+ * ]
132
+ * }
133
+ * *\/
134
+ * // example id: to-list-the-entries-in-an-amazon-rekognition-custom-labels-dataset-1690823292345
135
+ * ```
136
+ *
100
137
  */
101
138
  export declare class ListDatasetLabelsCommand extends $Command<ListDatasetLabelsCommandInput, ListDatasetLabelsCommandOutput, RekognitionClientResolvedConfig> {
102
139
  readonly input: ListDatasetLabelsCommandInput;
@@ -29,9 +29,9 @@ export interface SearchUsersByImageCommandOutput extends SearchUsersByImageRespo
29
29
  * ordered by similarity score with the highest similarity first. It also returns a bounding box
30
30
  * for the face found in the input image. </p>
31
31
  * <p>Information about faces detected in the supplied image, but not used for the search, is
32
- * returned in an array of <code>UnsearchedFace</code> objects. If no valid face is detected
33
- * in the image, the response will contain an empty <code>UserMatches</code> list and no
34
- * <code>SearchedFace</code> object. </p>
32
+ * returned in an array of <code>UnsearchedFace</code> objects. If no valid face is detected in
33
+ * the image, the response will contain an empty <code>UserMatches</code> list and no
34
+ * <code>SearchedFace</code> object. </p>
35
35
  * @example
36
36
  * Use a bare-bones client and the command you need to make an API call.
37
37
  * ```javascript
@@ -90,6 +90,24 @@ export interface StartProjectVersionCommandOutput extends StartProjectVersionRes
90
90
  * @throws {@link RekognitionServiceException}
91
91
  * <p>Base exception class for all service exceptions from Rekognition service.</p>
92
92
  *
93
+ * @example To start an Amazon Rekognition Custom Labels model
94
+ * ```javascript
95
+ * // Starts a version of an Amazon Rekognition Custom Labels model.
96
+ * const input = {
97
+ * "MaxInferenceUnits": 1,
98
+ * "MinInferenceUnits": 1,
99
+ * "ProjectVersionArn": "arn:aws:rekognition:us-east-1:111122223333:project/my-project/version/1/1690556751958"
100
+ * };
101
+ * const command = new StartProjectVersionCommand(input);
102
+ * const response = await client.send(command);
103
+ * /* response ==
104
+ * {
105
+ * "Status": "STARTING"
106
+ * }
107
+ * *\/
108
+ * // example id: to-start-an-amazon-rekognition-custom-labels-model-1690559168398
109
+ * ```
110
+ *
93
111
  */
94
112
  export declare class StartProjectVersionCommand extends $Command<StartProjectVersionCommandInput, StartProjectVersionCommandOutput, RekognitionClientResolvedConfig> {
95
113
  readonly input: StartProjectVersionCommandInput;
@@ -75,6 +75,22 @@ export interface StopProjectVersionCommandOutput extends StopProjectVersionRespo
75
75
  * @throws {@link RekognitionServiceException}
76
76
  * <p>Base exception class for all service exceptions from Rekognition service.</p>
77
77
  *
78
+ * @example To stop an Amazon Rekognition Custom Labels model.
79
+ * ```javascript
80
+ * // Stops a version of an Amazon Rekognition Custom Labels model.
81
+ * const input = {
82
+ * "ProjectVersionArn": "arn:aws:rekognition:us-east-1:111122223333:project/my-project/version/1/1690556751958"
83
+ * };
84
+ * const command = new StopProjectVersionCommand(input);
85
+ * const response = await client.send(command);
86
+ * /* response ==
87
+ * {
88
+ * "Status": "STOPPING"
89
+ * }
90
+ * *\/
91
+ * // example id: to-stop-an-amazon-rekognition-custom-labels-model-1690561110698
92
+ * ```
93
+ *
78
94
  */
79
95
  export declare class StopProjectVersionCommand extends $Command<StopProjectVersionCommandInput, StopProjectVersionCommandOutput, RekognitionClientResolvedConfig> {
80
96
  readonly input: StopProjectVersionCommandInput;
@@ -100,6 +100,20 @@ export interface UpdateDatasetEntriesCommandOutput extends UpdateDatasetEntriesR
100
100
  * @throws {@link RekognitionServiceException}
101
101
  * <p>Base exception class for all service exceptions from Rekognition service.</p>
102
102
  *
103
+ * @example To-add dataset entries to an Amazon Rekognition Custom Labels dataset
104
+ * ```javascript
105
+ * // Adds dataset entries to an Amazon Rekognition Custom Labels dataset.
106
+ * const input = {
107
+ * "Changes": {
108
+ * "GroundTruth": "{\"source-ref\":\"s3://custom-labels-console-us-east-1-111111111/assets/flowers_1_test_dataset/mediterranean_spurge4.jpg\",\"mediterranean_spurge\":1,\"mediterranean_spurge-metadata\":{\"confidence\":1,\"job-name\":\"labeling-job/mediterranean_spurge\",\"class-name\":\"mediterranean_spurge\",\"human-annotated\":\"yes\",\"creation-date\":\"2021-07-11T03:33:42.025Z\",\"type\":\"groundtruth/image-classification\"},\"with_leaves\":1,\"with_leaves-metadata\":{\"confidence\":1,\"job-name\":\"labeling-job/with_leaves\",\"class-name\":\"with_leaves\",\"human-annotated\":\"yes\",\"creation-date\":\"2021-07-11T03:33:42.025Z\",\"type\":\"groundtruth/image-classification\"}}"
109
+ * },
110
+ * "DatasetArn": "arn:aws:rekognition:us-east-1:111122223333:project/my-proj-2/dataset/train/1690564858106"
111
+ * };
112
+ * const command = new UpdateDatasetEntriesCommand(input);
113
+ * await client.send(command);
114
+ * // example id: to-add-dataset-entries-to-an-amazon-rekognition-custom-labels-dataset-1690816977073
115
+ * ```
116
+ *
103
117
  */
104
118
  export declare class UpdateDatasetEntriesCommand extends $Command<UpdateDatasetEntriesCommandInput, UpdateDatasetEntriesCommandOutput, RekognitionClientResolvedConfig> {
105
119
  readonly input: UpdateDatasetEntriesCommandInput;