@aws-sdk/client-rekognition 3.354.0 → 3.357.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.
@@ -5967,13 +5967,7 @@ const deserializeMetadata = (output) => ({
5967
5967
  extendedRequestId: output.headers["x-amz-id-2"],
5968
5968
  cfId: output.headers["x-amz-cf-id"],
5969
5969
  });
5970
- const collectBody = (streamBody = new Uint8Array(), context) => {
5971
- if (streamBody instanceof Uint8Array) {
5972
- return Promise.resolve(streamBody);
5973
- }
5974
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
5975
- };
5976
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
5970
+ const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
5977
5971
  const throwDefaultError = (0, smithy_client_1.withBaseException)(RekognitionServiceException_1.RekognitionServiceException);
5978
5972
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
5979
5973
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
@@ -1,4 +1,4 @@
1
- import { _json, 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 "@aws-sdk/smithy-client";
1
+ 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 "@aws-sdk/smithy-client";
2
2
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
3
  import { v4 as generateIdempotencyToken } from "uuid";
4
4
  import { AccessDeniedException, ConflictException, HumanLoopQuotaExceededException, IdempotentParameterMismatchException, ImageTooLargeException, InternalServerError, InvalidImageFormatException, InvalidPaginationTokenException, InvalidParameterException, InvalidPolicyRevisionIdException, InvalidS3ObjectException, LimitExceededException, MalformedPolicyDocumentException, ProvisionedThroughputExceededException, ResourceAlreadyExistsException, ResourceInUseException, ResourceNotFoundException, ResourceNotReadyException, ServiceQuotaExceededException, SessionNotFoundException, ThrottlingException, } from "../models/models_0";
@@ -5818,12 +5818,6 @@ const deserializeMetadata = (output) => ({
5818
5818
  extendedRequestId: output.headers["x-amz-id-2"],
5819
5819
  cfId: output.headers["x-amz-cf-id"],
5820
5820
  });
5821
- const collectBody = (streamBody = new Uint8Array(), context) => {
5822
- if (streamBody instanceof Uint8Array) {
5823
- return Promise.resolve(streamBody);
5824
- }
5825
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
5826
- };
5827
5821
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
5828
5822
  const throwDefaultError = withBaseException(__BaseException);
5829
5823
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
@@ -145,7 +145,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
145
145
  */
146
146
  runtime?: string;
147
147
  /**
148
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
148
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
149
149
  * trait of an operation.
150
150
  */
151
151
  disableHostPrefix?: boolean;
@@ -112,127 +112,44 @@ export interface ListFacesCommandOutput extends ListFacesResponse, __MetadataBea
112
112
  * const response = await client.send(command);
113
113
  * /* response ==
114
114
  * {
115
+ * "FaceModelVersion": "6.0",
115
116
  * "Faces": [
116
117
  * {
117
118
  * "BoundingBox": {
118
- * "Height": 0.18000000715255737,
119
- * "Left": 0.5555559992790222,
120
- * "Top": 0.336667001247406,
121
- * "Width": 0.23999999463558197
119
+ * "Height": 0.056759100407361984,
120
+ * "Left": 0.3453829884529114,
121
+ * "Top": 0.36568498611450195,
122
+ * "Width": 0.03177810087800026
122
123
  * },
123
- * "Confidence": 100,
124
- * "FaceId": "1c62e8b5-69a7-5b7d-b3cd-db4338a8a7e7",
125
- * "ImageId": "147fdf82-7a71-52cf-819b-e786c7b9746e"
124
+ * "Confidence": 99.76940155029297,
125
+ * "FaceId": "c92265d4-5f9c-43af-a58e-12be0ce02bc3",
126
+ * "ImageId": "56a0ca74-1c83-39dd-b363-051a64168a65",
127
+ * "IndexFacesModelVersion": "6.0",
128
+ * "UserId": "demoUser2"
126
129
  * },
127
130
  * {
128
131
  * "BoundingBox": {
129
- * "Height": 0.16555599868297577,
130
- * "Left": 0.30963000655174255,
131
- * "Top": 0.7066670060157776,
132
- * "Width": 0.22074100375175476
132
+ * "Height": 0.06347999721765518,
133
+ * "Left": 0.5160620212554932,
134
+ * "Top": 0.6080359816551208,
135
+ * "Width": 0.03254450112581253
133
136
  * },
134
- * "Confidence": 100,
135
- * "FaceId": "29a75abe-397b-5101-ba4f-706783b2246c",
136
- * "ImageId": "147fdf82-7a71-52cf-819b-e786c7b9746e"
137
+ * "Confidence": 99.94369506835938,
138
+ * "FaceId": "851cb847-dccc-4fea-9309-9f4805967855",
139
+ * "ImageId": "a8aed589-ceec-35f7-9c04-82e0b546b024",
140
+ * "IndexFacesModelVersion": "6.0"
137
141
  * },
138
142
  * {
139
143
  * "BoundingBox": {
140
- * "Height": 0.3234420120716095,
141
- * "Left": 0.3233329951763153,
142
- * "Top": 0.5,
143
- * "Width": 0.24222199618816376
144
+ * "Height": 0.05266290158033371,
145
+ * "Left": 0.6513839960098267,
146
+ * "Top": 0.4218429923057556,
147
+ * "Width": 0.03094629943370819
144
148
  * },
145
- * "Confidence": 99.99829864501953,
146
- * "FaceId": "38271d79-7bc2-5efb-b752-398a8d575b85",
147
- * "ImageId": "d5631190-d039-54e4-b267-abd22c8647c5"
148
- * },
149
- * {
150
- * "BoundingBox": {
151
- * "Height": 0.03555560111999512,
152
- * "Left": 0.37388700246810913,
153
- * "Top": 0.2477779984474182,
154
- * "Width": 0.04747769981622696
155
- * },
156
- * "Confidence": 99.99210357666016,
157
- * "FaceId": "3b01bef0-c883-5654-ba42-d5ad28b720b3",
158
- * "ImageId": "812d9f04-86f9-54fc-9275-8d0dcbcb6784"
159
- * },
160
- * {
161
- * "BoundingBox": {
162
- * "Height": 0.05333330109715462,
163
- * "Left": 0.2937690019607544,
164
- * "Top": 0.35666701197624207,
165
- * "Width": 0.07121659815311432
166
- * },
167
- * "Confidence": 99.99919891357422,
168
- * "FaceId": "4839a608-49d0-566c-8301-509d71b534d1",
169
- * "ImageId": "812d9f04-86f9-54fc-9275-8d0dcbcb6784"
170
- * },
171
- * {
172
- * "BoundingBox": {
173
- * "Height": 0.3249259889125824,
174
- * "Left": 0.5155559778213501,
175
- * "Top": 0.1513350009918213,
176
- * "Width": 0.24333299696445465
177
- * },
178
- * "Confidence": 99.99949645996094,
179
- * "FaceId": "70008e50-75e4-55d0-8e80-363fb73b3a14",
180
- * "ImageId": "d5631190-d039-54e4-b267-abd22c8647c5"
181
- * },
182
- * {
183
- * "BoundingBox": {
184
- * "Height": 0.03777780011296272,
185
- * "Left": 0.7002969980239868,
186
- * "Top": 0.18777799606323242,
187
- * "Width": 0.05044509842991829
188
- * },
189
- * "Confidence": 99.92639923095703,
190
- * "FaceId": "7f5f88ed-d684-5a88-b0df-01e4a521552b",
191
- * "ImageId": "812d9f04-86f9-54fc-9275-8d0dcbcb6784"
192
- * },
193
- * {
194
- * "BoundingBox": {
195
- * "Height": 0.05555560067296028,
196
- * "Left": 0.13946600258350372,
197
- * "Top": 0.46333301067352295,
198
- * "Width": 0.07270029932260513
199
- * },
200
- * "Confidence": 99.99469757080078,
201
- * "FaceId": "895b4e2c-81de-5902-a4bd-d1792bda00b2",
202
- * "ImageId": "812d9f04-86f9-54fc-9275-8d0dcbcb6784"
203
- * },
204
- * {
205
- * "BoundingBox": {
206
- * "Height": 0.3259260058403015,
207
- * "Left": 0.5144439935684204,
208
- * "Top": 0.15111100673675537,
209
- * "Width": 0.24444399774074554
210
- * },
211
- * "Confidence": 99.99949645996094,
212
- * "FaceId": "8be04dba-4e58-520d-850e-9eae4af70eb2",
213
- * "ImageId": "465f4e93-763e-51d0-b030-b9667a2d94b1"
214
- * },
215
- * {
216
- * "BoundingBox": {
217
- * "Height": 0.18888899683952332,
218
- * "Left": 0.3783380091190338,
219
- * "Top": 0.2355560064315796,
220
- * "Width": 0.25222599506378174
221
- * },
222
- * "Confidence": 99.9999008178711,
223
- * "FaceId": "908544ad-edc3-59df-8faf-6a87cc256cf5",
224
- * "ImageId": "3c731605-d772-541a-a5e7-0375dbc68a07"
225
- * },
226
- * {
227
- * "BoundingBox": {
228
- * "Height": 0.33481499552726746,
229
- * "Left": 0.31888899207115173,
230
- * "Top": 0.49333301186561584,
231
- * "Width": 0.25
232
- * },
233
- * "Confidence": 99.99909973144531,
234
- * "FaceId": "ff43d742-0c13-5d16-a3e8-03d3f58e980b",
235
- * "ImageId": "465f4e93-763e-51d0-b030-b9667a2d94b1"
149
+ * "Confidence": 99.82969665527344,
150
+ * "FaceId": "c0eb3b65-24a0-41e1-b23a-1908b1aaeac1",
151
+ * "ImageId": "56a0ca74-1c83-39dd-b363-051a64168a65",
152
+ * "IndexFacesModelVersion": "6.0"
236
153
  * }
237
154
  * ]
238
155
  * }
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.354.0",
4
+ "version": "3.357.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,38 +21,38 @@
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.354.0",
25
- "@aws-sdk/config-resolver": "3.354.0",
26
- "@aws-sdk/credential-provider-node": "3.354.0",
27
- "@aws-sdk/fetch-http-handler": "3.353.0",
28
- "@aws-sdk/hash-node": "3.347.0",
29
- "@aws-sdk/invalid-dependency": "3.347.0",
30
- "@aws-sdk/middleware-content-length": "3.347.0",
31
- "@aws-sdk/middleware-endpoint": "3.347.0",
32
- "@aws-sdk/middleware-host-header": "3.347.0",
33
- "@aws-sdk/middleware-logger": "3.347.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.347.0",
35
- "@aws-sdk/middleware-retry": "3.354.0",
36
- "@aws-sdk/middleware-serde": "3.347.0",
37
- "@aws-sdk/middleware-signing": "3.354.0",
38
- "@aws-sdk/middleware-stack": "3.347.0",
39
- "@aws-sdk/middleware-user-agent": "3.352.0",
40
- "@aws-sdk/node-config-provider": "3.354.0",
41
- "@aws-sdk/node-http-handler": "3.350.0",
42
- "@aws-sdk/smithy-client": "3.347.0",
43
- "@aws-sdk/types": "3.347.0",
44
- "@aws-sdk/url-parser": "3.347.0",
24
+ "@aws-sdk/client-sts": "3.357.0",
25
+ "@aws-sdk/config-resolver": "3.357.0",
26
+ "@aws-sdk/credential-provider-node": "3.357.0",
27
+ "@aws-sdk/fetch-http-handler": "3.357.0",
28
+ "@aws-sdk/hash-node": "3.357.0",
29
+ "@aws-sdk/invalid-dependency": "3.357.0",
30
+ "@aws-sdk/middleware-content-length": "3.357.0",
31
+ "@aws-sdk/middleware-endpoint": "3.357.0",
32
+ "@aws-sdk/middleware-host-header": "3.357.0",
33
+ "@aws-sdk/middleware-logger": "3.357.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.357.0",
35
+ "@aws-sdk/middleware-retry": "3.357.0",
36
+ "@aws-sdk/middleware-serde": "3.357.0",
37
+ "@aws-sdk/middleware-signing": "3.357.0",
38
+ "@aws-sdk/middleware-stack": "3.357.0",
39
+ "@aws-sdk/middleware-user-agent": "3.357.0",
40
+ "@aws-sdk/node-config-provider": "3.357.0",
41
+ "@aws-sdk/node-http-handler": "3.357.0",
42
+ "@aws-sdk/smithy-client": "3.357.0",
43
+ "@aws-sdk/types": "3.357.0",
44
+ "@aws-sdk/url-parser": "3.357.0",
45
45
  "@aws-sdk/util-base64": "3.310.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.310.0",
47
47
  "@aws-sdk/util-body-length-node": "3.310.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.353.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.354.0",
50
- "@aws-sdk/util-endpoints": "3.352.0",
51
- "@aws-sdk/util-retry": "3.347.0",
52
- "@aws-sdk/util-user-agent-browser": "3.347.0",
53
- "@aws-sdk/util-user-agent-node": "3.354.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.357.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.357.0",
50
+ "@aws-sdk/util-endpoints": "3.357.0",
51
+ "@aws-sdk/util-retry": "3.357.0",
52
+ "@aws-sdk/util-user-agent-browser": "3.357.0",
53
+ "@aws-sdk/util-user-agent-node": "3.357.0",
54
54
  "@aws-sdk/util-utf8": "3.310.0",
55
- "@aws-sdk/util-waiter": "3.347.0",
55
+ "@aws-sdk/util-waiter": "3.357.0",
56
56
  "@smithy/protocol-http": "^1.0.1",
57
57
  "@smithy/types": "^1.0.0",
58
58
  "tslib": "^2.5.0",