@aws-sdk/client-rekognition 3.45.0 → 3.47.2
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/CHANGELOG.md +45 -0
- package/dist-cjs/endpoints.js +0 -24
- package/dist-cjs/models/models_0.js +5 -114
- package/dist-cjs/protocols/Aws_json1_1.js +1 -0
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +9 -3
- package/dist-es/endpoints.js +0 -24
- package/dist-es/models/models_0.js +0 -72
- package/dist-es/protocols/Aws_json1_1.js +1 -0
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -6
- package/dist-types/Rekognition.d.ts +1 -1
- package/dist-types/RekognitionClient.d.ts +5 -1
- package/dist-types/commands/IndexFacesCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +12 -115
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +4 -3
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/RekognitionClient.d.ts +3 -1
- package/dist-types/ts3.4/models/models_0.d.ts +2 -72
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +40 -47
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
5
|
-
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
|
+
import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
6
6
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
7
7
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
|
|
@@ -10,8 +10,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
|
10
10
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
11
11
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
12
12
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
14
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
|
|
13
15
|
export var getRuntimeConfig = function (config) {
|
|
14
16
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
17
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
18
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
15
19
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
16
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new
|
|
20
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
21
|
+
switch (_a.label) {
|
|
22
|
+
case 0: return [4, defaultConfigProvider()];
|
|
23
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
24
|
+
}
|
|
25
|
+
}); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
17
26
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,21 +1,28 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
4
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
|
|
5
5
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
6
6
|
import { Hash } from "@aws-sdk/hash-node";
|
|
7
|
-
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
7
|
+
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
9
|
-
import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
9
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
10
10
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
|
|
11
11
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
12
12
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
13
13
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
14
14
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
|
-
import {
|
|
15
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
16
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
|
|
16
17
|
export var getRuntimeConfig = function (config) {
|
|
17
18
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
18
|
-
|
|
19
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
20
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
19
21
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
20
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new
|
|
22
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
23
|
+
switch (_a.label) {
|
|
24
|
+
case 0: return [4, defaultConfigProvider()];
|
|
25
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
26
|
+
}
|
|
27
|
+
}); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
21
28
|
};
|
|
@@ -978,7 +978,7 @@ export declare class Rekognition extends RekognitionClient {
|
|
|
978
978
|
* <p>If you request all facial attributes (by using the <code>detectionAttributes</code>
|
|
979
979
|
* parameter), Amazon Rekognition returns detailed facial attributes, such as facial landmarks (for
|
|
980
980
|
* example, location of eye and mouth) and other facial attributes. If you provide
|
|
981
|
-
* the same image, specify the same collection,
|
|
981
|
+
* the same image, specify the same collection, use the same external ID, and use the same model version in the
|
|
982
982
|
* <code>IndexFaces</code> operation, Amazon Rekognition doesn't save duplicate face metadata.</p>
|
|
983
983
|
*
|
|
984
984
|
*
|
|
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
|
|
|
4
4
|
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
|
-
import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
7
|
+
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
8
|
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { CompareFacesCommandInput, CompareFacesCommandOutput } from "./commands/CompareFacesCommand";
|
|
10
10
|
import { CreateCollectionCommandInput, CreateCollectionCommandOutput } from "./commands/CreateCollectionCommand";
|
|
@@ -166,6 +166,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
166
166
|
* @internal
|
|
167
167
|
*/
|
|
168
168
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
169
|
+
/**
|
|
170
|
+
* The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
171
|
+
*/
|
|
172
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
169
173
|
}
|
|
170
174
|
declare type RekognitionClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
171
175
|
/**
|
|
@@ -95,7 +95,7 @@ export interface IndexFacesCommandOutput extends IndexFacesResponse, __MetadataB
|
|
|
95
95
|
* <p>If you request all facial attributes (by using the <code>detectionAttributes</code>
|
|
96
96
|
* parameter), Amazon Rekognition returns detailed facial attributes, such as facial landmarks (for
|
|
97
97
|
* example, location of eye and mouth) and other facial attributes. If you provide
|
|
98
|
-
* the same image, specify the same collection,
|
|
98
|
+
* the same image, specify the same collection, use the same external ID, and use the same model version in the
|
|
99
99
|
* <code>IndexFaces</code> operation, Amazon Rekognition doesn't save duplicate face metadata.</p>
|
|
100
100
|
*
|
|
101
101
|
*
|
|
@@ -13,12 +13,6 @@ export interface AccessDeniedException extends __SmithyException, $MetadataBeare
|
|
|
13
13
|
*/
|
|
14
14
|
Logref?: string;
|
|
15
15
|
}
|
|
16
|
-
export declare namespace AccessDeniedException {
|
|
17
|
-
/**
|
|
18
|
-
* @internal
|
|
19
|
-
*/
|
|
20
|
-
const filterSensitiveLog: (obj: AccessDeniedException) => any;
|
|
21
|
-
}
|
|
22
16
|
/**
|
|
23
17
|
* <p>Structure containing the estimated age range, in years, for a face.</p>
|
|
24
18
|
* <p>Amazon Rekognition estimates an age range for faces detected in the input image. Estimated age
|
|
@@ -1095,12 +1089,6 @@ export interface ImageTooLargeException extends __SmithyException, $MetadataBear
|
|
|
1095
1089
|
*/
|
|
1096
1090
|
Logref?: string;
|
|
1097
1091
|
}
|
|
1098
|
-
export declare namespace ImageTooLargeException {
|
|
1099
|
-
/**
|
|
1100
|
-
* @internal
|
|
1101
|
-
*/
|
|
1102
|
-
const filterSensitiveLog: (obj: ImageTooLargeException) => any;
|
|
1103
|
-
}
|
|
1104
1092
|
/**
|
|
1105
1093
|
* <p>Amazon Rekognition experienced a service issue. Try your call again.</p>
|
|
1106
1094
|
*/
|
|
@@ -1114,12 +1102,6 @@ export interface InternalServerError extends __SmithyException, $MetadataBearer
|
|
|
1114
1102
|
*/
|
|
1115
1103
|
Logref?: string;
|
|
1116
1104
|
}
|
|
1117
|
-
export declare namespace InternalServerError {
|
|
1118
|
-
/**
|
|
1119
|
-
* @internal
|
|
1120
|
-
*/
|
|
1121
|
-
const filterSensitiveLog: (obj: InternalServerError) => any;
|
|
1122
|
-
}
|
|
1123
1105
|
/**
|
|
1124
1106
|
* <p>The provided image format is not supported. </p>
|
|
1125
1107
|
*/
|
|
@@ -1133,12 +1115,6 @@ export interface InvalidImageFormatException extends __SmithyException, $Metadat
|
|
|
1133
1115
|
*/
|
|
1134
1116
|
Logref?: string;
|
|
1135
1117
|
}
|
|
1136
|
-
export declare namespace InvalidImageFormatException {
|
|
1137
|
-
/**
|
|
1138
|
-
* @internal
|
|
1139
|
-
*/
|
|
1140
|
-
const filterSensitiveLog: (obj: InvalidImageFormatException) => any;
|
|
1141
|
-
}
|
|
1142
1118
|
/**
|
|
1143
1119
|
* <p>Input parameter violated a constraint. Validate your parameter before calling the API
|
|
1144
1120
|
* operation again.</p>
|
|
@@ -1153,12 +1129,6 @@ export interface InvalidParameterException extends __SmithyException, $MetadataB
|
|
|
1153
1129
|
*/
|
|
1154
1130
|
Logref?: string;
|
|
1155
1131
|
}
|
|
1156
|
-
export declare namespace InvalidParameterException {
|
|
1157
|
-
/**
|
|
1158
|
-
* @internal
|
|
1159
|
-
*/
|
|
1160
|
-
const filterSensitiveLog: (obj: InvalidParameterException) => any;
|
|
1161
|
-
}
|
|
1162
1132
|
/**
|
|
1163
1133
|
* <p>Amazon Rekognition is unable to access the S3 object specified in the request.</p>
|
|
1164
1134
|
*/
|
|
@@ -1172,12 +1142,6 @@ export interface InvalidS3ObjectException extends __SmithyException, $MetadataBe
|
|
|
1172
1142
|
*/
|
|
1173
1143
|
Logref?: string;
|
|
1174
1144
|
}
|
|
1175
|
-
export declare namespace InvalidS3ObjectException {
|
|
1176
|
-
/**
|
|
1177
|
-
* @internal
|
|
1178
|
-
*/
|
|
1179
|
-
const filterSensitiveLog: (obj: InvalidS3ObjectException) => any;
|
|
1180
|
-
}
|
|
1181
1145
|
/**
|
|
1182
1146
|
* <p>The number of requests exceeded your throughput limit. If you want to increase this
|
|
1183
1147
|
* limit, contact Amazon Rekognition.</p>
|
|
@@ -1192,12 +1156,6 @@ export interface ProvisionedThroughputExceededException extends __SmithyExceptio
|
|
|
1192
1156
|
*/
|
|
1193
1157
|
Logref?: string;
|
|
1194
1158
|
}
|
|
1195
|
-
export declare namespace ProvisionedThroughputExceededException {
|
|
1196
|
-
/**
|
|
1197
|
-
* @internal
|
|
1198
|
-
*/
|
|
1199
|
-
const filterSensitiveLog: (obj: ProvisionedThroughputExceededException) => any;
|
|
1200
|
-
}
|
|
1201
1159
|
/**
|
|
1202
1160
|
* <p>Amazon Rekognition is temporarily unable to process the request. Try your call again.</p>
|
|
1203
1161
|
*/
|
|
@@ -1211,12 +1169,6 @@ export interface ThrottlingException extends __SmithyException, $MetadataBearer
|
|
|
1211
1169
|
*/
|
|
1212
1170
|
Logref?: string;
|
|
1213
1171
|
}
|
|
1214
|
-
export declare namespace ThrottlingException {
|
|
1215
|
-
/**
|
|
1216
|
-
* @internal
|
|
1217
|
-
*/
|
|
1218
|
-
const filterSensitiveLog: (obj: ThrottlingException) => any;
|
|
1219
|
-
}
|
|
1220
1172
|
export declare enum ContentClassifier {
|
|
1221
1173
|
FREE_OF_ADULT_CONTENT = "FreeOfAdultContent",
|
|
1222
1174
|
FREE_OF_PERSONALLY_IDENTIFIABLE_INFORMATION = "FreeOfPersonallyIdentifiableInformation"
|
|
@@ -1305,7 +1257,7 @@ export interface CreateCollectionResponse {
|
|
|
1305
1257
|
*/
|
|
1306
1258
|
CollectionArn?: string;
|
|
1307
1259
|
/**
|
|
1308
|
-
* <p>
|
|
1260
|
+
* <p>Latest face model being used with the collection. For more information, see <a href="https://docs.aws.amazon.com/rekognition/latest/dg/face-detection-model.html">Model versioning</a>.</p>
|
|
1309
1261
|
*/
|
|
1310
1262
|
FaceModelVersion?: string;
|
|
1311
1263
|
}
|
|
@@ -1328,12 +1280,6 @@ export interface ResourceAlreadyExistsException extends __SmithyException, $Meta
|
|
|
1328
1280
|
*/
|
|
1329
1281
|
Logref?: string;
|
|
1330
1282
|
}
|
|
1331
|
-
export declare namespace ResourceAlreadyExistsException {
|
|
1332
|
-
/**
|
|
1333
|
-
* @internal
|
|
1334
|
-
*/
|
|
1335
|
-
const filterSensitiveLog: (obj: ResourceAlreadyExistsException) => any;
|
|
1336
|
-
}
|
|
1337
1283
|
/**
|
|
1338
1284
|
* <p></p>
|
|
1339
1285
|
*
|
|
@@ -1351,12 +1297,6 @@ export interface ServiceQuotaExceededException extends __SmithyException, $Metad
|
|
|
1351
1297
|
*/
|
|
1352
1298
|
Logref?: string;
|
|
1353
1299
|
}
|
|
1354
|
-
export declare namespace ServiceQuotaExceededException {
|
|
1355
|
-
/**
|
|
1356
|
-
* @internal
|
|
1357
|
-
*/
|
|
1358
|
-
const filterSensitiveLog: (obj: ServiceQuotaExceededException) => any;
|
|
1359
|
-
}
|
|
1360
1300
|
/**
|
|
1361
1301
|
* <p>
|
|
1362
1302
|
* The source that Amazon Rekognition Custom Labels uses to create a dataset. To
|
|
@@ -1451,12 +1391,6 @@ export interface LimitExceededException extends __SmithyException, $MetadataBear
|
|
|
1451
1391
|
*/
|
|
1452
1392
|
Logref?: string;
|
|
1453
1393
|
}
|
|
1454
|
-
export declare namespace LimitExceededException {
|
|
1455
|
-
/**
|
|
1456
|
-
* @internal
|
|
1457
|
-
*/
|
|
1458
|
-
const filterSensitiveLog: (obj: LimitExceededException) => any;
|
|
1459
|
-
}
|
|
1460
1394
|
/**
|
|
1461
1395
|
* <p>The resource specified in the request cannot be found.</p>
|
|
1462
1396
|
*/
|
|
@@ -1470,12 +1404,6 @@ export interface ResourceNotFoundException extends __SmithyException, $MetadataB
|
|
|
1470
1404
|
*/
|
|
1471
1405
|
Logref?: string;
|
|
1472
1406
|
}
|
|
1473
|
-
export declare namespace ResourceNotFoundException {
|
|
1474
|
-
/**
|
|
1475
|
-
* @internal
|
|
1476
|
-
*/
|
|
1477
|
-
const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
|
|
1478
|
-
}
|
|
1479
1407
|
export interface CreateProjectRequest {
|
|
1480
1408
|
/**
|
|
1481
1409
|
* <p>The name of the project to create.</p>
|
|
@@ -1514,12 +1442,6 @@ export interface ResourceInUseException extends __SmithyException, $MetadataBear
|
|
|
1514
1442
|
*/
|
|
1515
1443
|
Logref?: string;
|
|
1516
1444
|
}
|
|
1517
|
-
export declare namespace ResourceInUseException {
|
|
1518
|
-
/**
|
|
1519
|
-
* @internal
|
|
1520
|
-
*/
|
|
1521
|
-
const filterSensitiveLog: (obj: ResourceInUseException) => any;
|
|
1522
|
-
}
|
|
1523
1445
|
/**
|
|
1524
1446
|
* <p>The S3 bucket and folder location where training output is placed.</p>
|
|
1525
1447
|
*/
|
|
@@ -2430,12 +2352,6 @@ export interface InvalidPaginationTokenException extends __SmithyException, $Met
|
|
|
2430
2352
|
*/
|
|
2431
2353
|
Logref?: string;
|
|
2432
2354
|
}
|
|
2433
|
-
export declare namespace InvalidPaginationTokenException {
|
|
2434
|
-
/**
|
|
2435
|
-
* @internal
|
|
2436
|
-
*/
|
|
2437
|
-
const filterSensitiveLog: (obj: InvalidPaginationTokenException) => any;
|
|
2438
|
-
}
|
|
2439
2355
|
export interface DescribeProjectVersionsRequest {
|
|
2440
2356
|
/**
|
|
2441
2357
|
* <p>The Amazon Resource Name (ARN) of the project that contains the models you want to describe.</p>
|
|
@@ -2823,12 +2739,6 @@ export interface ResourceNotReadyException extends __SmithyException, $MetadataB
|
|
|
2823
2739
|
*/
|
|
2824
2740
|
Logref?: string;
|
|
2825
2741
|
}
|
|
2826
|
-
export declare namespace ResourceNotReadyException {
|
|
2827
|
-
/**
|
|
2828
|
-
* @internal
|
|
2829
|
-
*/
|
|
2830
|
-
const filterSensitiveLog: (obj: ResourceNotReadyException) => any;
|
|
2831
|
-
}
|
|
2832
2742
|
export interface DetectFacesRequest {
|
|
2833
2743
|
/**
|
|
2834
2744
|
* <p>The input image as base64-encoded bytes or an S3 object. If you use the AWS CLI to call
|
|
@@ -3174,12 +3084,6 @@ export interface HumanLoopQuotaExceededException extends __SmithyException, $Met
|
|
|
3174
3084
|
*/
|
|
3175
3085
|
Logref?: string;
|
|
3176
3086
|
}
|
|
3177
|
-
export declare namespace HumanLoopQuotaExceededException {
|
|
3178
|
-
/**
|
|
3179
|
-
* @internal
|
|
3180
|
-
*/
|
|
3181
|
-
const filterSensitiveLog: (obj: HumanLoopQuotaExceededException) => any;
|
|
3182
|
-
}
|
|
3183
3087
|
/**
|
|
3184
3088
|
* <p>Specifies summary attributes to return from a call to <a>DetectProtectiveEquipment</a>.
|
|
3185
3089
|
* You can specify which types of PPE to summarize. You can also specify a minimum confidence value for detections.
|
|
@@ -3524,6 +3428,12 @@ export interface Face {
|
|
|
3524
3428
|
* as a tree).</p>
|
|
3525
3429
|
*/
|
|
3526
3430
|
Confidence?: number;
|
|
3431
|
+
/**
|
|
3432
|
+
* <p>
|
|
3433
|
+
* The version of the face detect and storage model that was used when indexing the face vector.
|
|
3434
|
+
* </p>
|
|
3435
|
+
*/
|
|
3436
|
+
IndexFacesModelVersion?: string;
|
|
3527
3437
|
}
|
|
3528
3438
|
export declare namespace Face {
|
|
3529
3439
|
/**
|
|
@@ -4463,12 +4373,6 @@ export interface IdempotentParameterMismatchException extends __SmithyException,
|
|
|
4463
4373
|
*/
|
|
4464
4374
|
Logref?: string;
|
|
4465
4375
|
}
|
|
4466
|
-
export declare namespace IdempotentParameterMismatchException {
|
|
4467
|
-
/**
|
|
4468
|
-
* @internal
|
|
4469
|
-
*/
|
|
4470
|
-
const filterSensitiveLog: (obj: IdempotentParameterMismatchException) => any;
|
|
4471
|
-
}
|
|
4472
4376
|
export interface IndexFacesRequest {
|
|
4473
4377
|
/**
|
|
4474
4378
|
* <p>The ID of an existing collection to which you want to add the faces that are detected
|
|
@@ -4628,8 +4532,7 @@ export interface IndexFacesResponse {
|
|
|
4628
4532
|
*/
|
|
4629
4533
|
OrientationCorrection?: OrientationCorrection | string;
|
|
4630
4534
|
/**
|
|
4631
|
-
* <p>
|
|
4632
|
-
* collection (<code>CollectionId</code>).</p>
|
|
4535
|
+
* <p>Latest face model being used with the collection. For more information, see <a href="https://docs.aws.amazon.com/rekognition/latest/dg/face-detection-model.html">Model versioning</a>.</p>
|
|
4633
4536
|
*/
|
|
4634
4537
|
FaceModelVersion?: string;
|
|
4635
4538
|
/**
|
|
@@ -4673,7 +4576,7 @@ export interface ListCollectionsResponse {
|
|
|
4673
4576
|
*/
|
|
4674
4577
|
NextToken?: string;
|
|
4675
4578
|
/**
|
|
4676
|
-
* <p>
|
|
4579
|
+
* <p>Latest face models being used with the corresponding collections in the array. For more information, see <a href="https://docs.aws.amazon.com/rekognition/latest/dg/face-detection-model.html">Model versioning</a>.
|
|
4677
4580
|
* For example, the value of <code>FaceModelVersions[2]</code> is the version number for the face detection model used
|
|
4678
4581
|
* by the collection in <code>CollectionId[2]</code>.</p>
|
|
4679
4582
|
*/
|
|
@@ -4835,7 +4738,7 @@ export interface ListFacesResponse {
|
|
|
4835
4738
|
*/
|
|
4836
4739
|
NextToken?: string;
|
|
4837
4740
|
/**
|
|
4838
|
-
* <p>
|
|
4741
|
+
* <p>Latest face model being used with the collection. For more information, see <a href="https://docs.aws.amazon.com/rekognition/latest/dg/face-detection-model.html">Model versioning</a>.</p>
|
|
4839
4742
|
*/
|
|
4840
4743
|
FaceModelVersion?: string;
|
|
4841
4744
|
}
|
|
@@ -5047,7 +4950,7 @@ export interface SearchFacesResponse {
|
|
|
5047
4950
|
*/
|
|
5048
4951
|
FaceMatches?: FaceMatch[];
|
|
5049
4952
|
/**
|
|
5050
|
-
* <p>
|
|
4953
|
+
* <p>Latest face model being used with the collection. For more information, see <a href="https://docs.aws.amazon.com/rekognition/latest/dg/face-detection-model.html">Model versioning</a>.</p>
|
|
5051
4954
|
*/
|
|
5052
4955
|
FaceModelVersion?: string;
|
|
5053
4956
|
}
|
|
@@ -5122,7 +5025,7 @@ export interface SearchFacesByImageResponse {
|
|
|
5122
5025
|
*/
|
|
5123
5026
|
FaceMatches?: FaceMatch[];
|
|
5124
5027
|
/**
|
|
5125
|
-
* <p>
|
|
5028
|
+
* <p>Latest face model being used with the collection. For more information, see <a href="https://docs.aws.amazon.com/rekognition/latest/dg/face-detection-model.html">Model versioning</a>.</p>
|
|
5126
5029
|
*/
|
|
5127
5030
|
FaceModelVersion?: string;
|
|
5128
5031
|
}
|
|
@@ -5204,12 +5107,6 @@ export interface VideoTooLargeException extends __SmithyException, $MetadataBear
|
|
|
5204
5107
|
*/
|
|
5205
5108
|
Logref?: string;
|
|
5206
5109
|
}
|
|
5207
|
-
export declare namespace VideoTooLargeException {
|
|
5208
|
-
/**
|
|
5209
|
-
* @internal
|
|
5210
|
-
*/
|
|
5211
|
-
const filterSensitiveLog: (obj: VideoTooLargeException) => any;
|
|
5212
|
-
}
|
|
5213
5110
|
export interface StartContentModerationRequest {
|
|
5214
5111
|
/**
|
|
5215
5112
|
* <p>The video in which you want to detect inappropriate, unwanted, or offensive content. The video must be stored
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
|
|
1
|
+
import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
|
|
2
2
|
import { RekognitionClientConfig } from "./RekognitionClient";
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
6
6
|
export declare const getRuntimeConfig: (config: RekognitionClientConfig) => {
|
|
7
7
|
runtime: string;
|
|
8
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
8
9
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
9
10
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
10
11
|
bodyLengthChecker: (body: any) => number | undefined;
|
|
@@ -12,7 +13,7 @@ export declare const getRuntimeConfig: (config: RekognitionClientConfig) => {
|
|
|
12
13
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
13
14
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
14
15
|
region: string | import("@aws-sdk/types").Provider<any>;
|
|
15
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) |
|
|
16
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
|
|
16
17
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
17
18
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
18
19
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
|
|
1
|
+
import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
|
|
2
2
|
import { RekognitionClientConfig } from "./RekognitionClient";
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
6
6
|
export declare const getRuntimeConfig: (config: RekognitionClientConfig) => {
|
|
7
7
|
runtime: string;
|
|
8
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
8
9
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
9
10
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
10
11
|
bodyLengthChecker: (body: any) => number | undefined;
|
|
11
|
-
credentialDefaultProvider: import("@aws-sdk/
|
|
12
|
+
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
12
13
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
13
14
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
14
15
|
region: string | import("@aws-sdk/types").Provider<string>;
|
|
15
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) |
|
|
16
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
|
|
16
17
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
17
18
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
18
19
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
@@ -25,6 +25,7 @@ export declare const getRuntimeConfig: (config: RekognitionClientConfig) => {
|
|
|
25
25
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
26
26
|
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
27
27
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
28
|
+
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
28
29
|
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
29
30
|
tls?: boolean | undefined;
|
|
30
31
|
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
|
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
|
|
|
4
4
|
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
|
-
import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
7
|
+
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
8
|
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { CompareFacesCommandInput, CompareFacesCommandOutput } from "./commands/CompareFacesCommand";
|
|
10
10
|
import { CreateCollectionCommandInput, CreateCollectionCommandOutput } from "./commands/CreateCollectionCommand";
|
|
@@ -109,6 +109,8 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
109
109
|
regionInfoProvider?: RegionInfoProvider;
|
|
110
110
|
|
|
111
111
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
112
|
+
|
|
113
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
112
114
|
}
|
|
113
115
|
declare type RekognitionClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
114
116
|
|