@aws-sdk/client-rekognitionstreaming 3.1067.0 → 3.1069.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
- package/dist-cjs/endpoint/bdd.js +2 -5
- package/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/dist-cjs/index.js +51 -71
- package/dist-cjs/models/RekognitionStreamingServiceException.js +4 -8
- package/dist-cjs/models/errors.js +15 -25
- package/dist-cjs/runtimeConfig.browser.js +27 -31
- package/dist-cjs/runtimeConfig.js +34 -38
- package/dist-cjs/runtimeConfig.native.js +6 -9
- package/dist-cjs/runtimeConfig.shared.js +20 -24
- package/dist-cjs/schemas/schemas_0.js +96 -67
- package/package.json +11 -11
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.
|
|
4
|
-
const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
|
|
5
|
-
const client_1 = require("@smithy/core/client");
|
|
6
|
-
const defaultRekognitionStreamingHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
1
|
+
const { resolveAwsSdkSigV4Config } = require("@aws-sdk/core/httpAuthSchemes");
|
|
2
|
+
const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
|
|
3
|
+
exports.defaultRekognitionStreamingHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
7
4
|
return {
|
|
8
|
-
operation:
|
|
9
|
-
region: await
|
|
5
|
+
operation: getSmithyContext(context).operation,
|
|
6
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
10
7
|
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
11
8
|
})(),
|
|
12
9
|
};
|
|
13
10
|
};
|
|
14
|
-
exports.defaultRekognitionStreamingHttpAuthSchemeParametersProvider = defaultRekognitionStreamingHttpAuthSchemeParametersProvider;
|
|
15
11
|
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
16
12
|
return {
|
|
17
13
|
schemeId: "aws.auth#sigv4",
|
|
@@ -27,7 +23,7 @@ function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
|
27
23
|
}),
|
|
28
24
|
};
|
|
29
25
|
}
|
|
30
|
-
|
|
26
|
+
exports.defaultRekognitionStreamingHttpAuthSchemeProvider = (authParameters) => {
|
|
31
27
|
const options = [];
|
|
32
28
|
switch (authParameters.operation) {
|
|
33
29
|
default: {
|
|
@@ -36,11 +32,9 @@ const defaultRekognitionStreamingHttpAuthSchemeProvider = (authParameters) => {
|
|
|
36
32
|
}
|
|
37
33
|
return options;
|
|
38
34
|
};
|
|
39
|
-
exports.
|
|
40
|
-
const
|
|
41
|
-
const config_0 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config);
|
|
35
|
+
exports.resolveHttpAuthSchemeConfig = (config) => {
|
|
36
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
42
37
|
return Object.assign(config_0, {
|
|
43
|
-
authSchemePreference:
|
|
38
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
44
39
|
});
|
|
45
40
|
};
|
|
46
|
-
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
package/dist-cjs/endpoint/bdd.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.bdd = void 0;
|
|
4
|
-
const endpoints_1 = require("@smithy/core/endpoints");
|
|
1
|
+
const { BinaryDecisionDiagram } = require("@smithy/core/endpoints");
|
|
5
2
|
const k = "ref";
|
|
6
3
|
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
|
|
7
4
|
const _data = {
|
|
@@ -46,4 +43,4 @@ const nodes = new Int32Array([
|
|
|
46
43
|
3, r + 1, 13,
|
|
47
44
|
4, r + 2, r + 3,
|
|
48
45
|
]);
|
|
49
|
-
exports.bdd =
|
|
46
|
+
exports.bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const endpoints_1 = require("@smithy/core/endpoints");
|
|
6
|
-
const bdd_1 = require("./bdd");
|
|
7
|
-
const cache = new endpoints_1.EndpointCache({
|
|
1
|
+
const { awsEndpointFunctions } = require("@aws-sdk/core/client");
|
|
2
|
+
const { customEndpointFunctions, decideEndpoint, EndpointCache } = require("@smithy/core/endpoints");
|
|
3
|
+
const { bdd } = require("./bdd");
|
|
4
|
+
const cache = new EndpointCache({
|
|
8
5
|
size: 50,
|
|
9
6
|
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
10
7
|
});
|
|
11
|
-
|
|
12
|
-
return cache.get(endpointParams, () =>
|
|
8
|
+
exports.defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
9
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
13
10
|
endpointParams: endpointParams,
|
|
14
11
|
logger: context.logger,
|
|
15
12
|
}));
|
|
16
13
|
};
|
|
17
|
-
|
|
18
|
-
endpoints_1.customEndpointFunctions.aws = client_1.awsEndpointFunctions;
|
|
14
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
var __exportStar = (m, e) => { Object.assign(e, m); };
|
|
2
|
+
const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
3
|
+
const { resolveEventStreamConfig, getEventStreamPlugin } = require("@aws-sdk/middleware-eventstream");
|
|
4
|
+
const { resolveWebSocketConfig, getWebSocketPlugin } = require("@aws-sdk/middleware-websocket");
|
|
5
|
+
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require("@smithy/core");
|
|
6
|
+
const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
7
|
+
exports.$Command = Command;
|
|
8
|
+
exports.__Client = Client;
|
|
9
|
+
const { resolveRegionConfig } = require("@smithy/core/config");
|
|
10
|
+
const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
11
|
+
const { resolveEventStreamSerdeConfig } = require("@smithy/core/event-streams");
|
|
12
|
+
const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
13
|
+
const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
14
|
+
const { getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
15
|
+
const { resolveHttpAuthSchemeConfig, defaultRekognitionStreamingHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
|
|
16
|
+
const { getRuntimeConfig } = require("./runtimeConfig");
|
|
17
|
+
const { StartFaceLivenessSession$ } = require("./schemas/schemas_0");
|
|
18
|
+
__exportStar(require("./schemas/schemas_0"), exports);
|
|
19
|
+
__exportStar(require("./models/errors"), exports);
|
|
20
|
+
const { RekognitionStreamingServiceException } = require("./models/RekognitionStreamingServiceException");
|
|
21
|
+
exports.RekognitionStreamingServiceException = RekognitionStreamingServiceException;
|
|
19
22
|
|
|
20
23
|
const resolveClientEndpointParameters = (options) => {
|
|
21
24
|
return Object.assign(options, {
|
|
@@ -71,57 +74,57 @@ const resolveHttpAuthRuntimeConfig = (config) => {
|
|
|
71
74
|
};
|
|
72
75
|
|
|
73
76
|
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
74
|
-
const extensionConfiguration = Object.assign(
|
|
77
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
75
78
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
76
|
-
return Object.assign(runtimeConfig,
|
|
79
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
77
80
|
};
|
|
78
81
|
|
|
79
|
-
class RekognitionStreamingClient extends
|
|
82
|
+
class RekognitionStreamingClient extends Client {
|
|
80
83
|
config;
|
|
81
84
|
constructor(...[configuration]) {
|
|
82
|
-
const _config_0 =
|
|
85
|
+
const _config_0 = getRuntimeConfig(configuration || {});
|
|
83
86
|
super(_config_0);
|
|
84
87
|
this.initConfig = _config_0;
|
|
85
88
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
86
|
-
const _config_2 =
|
|
87
|
-
const _config_3 =
|
|
88
|
-
const _config_4 =
|
|
89
|
-
const _config_5 =
|
|
90
|
-
const _config_6 =
|
|
91
|
-
const _config_7 =
|
|
92
|
-
const _config_8 =
|
|
93
|
-
const _config_9 =
|
|
94
|
-
const _config_10 =
|
|
89
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
90
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
91
|
+
const _config_4 = resolveRegionConfig(_config_3);
|
|
92
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
93
|
+
const _config_6 = resolveEndpointConfig(_config_5);
|
|
94
|
+
const _config_7 = resolveEventStreamSerdeConfig(_config_6);
|
|
95
|
+
const _config_8 = resolveHttpAuthSchemeConfig(_config_7);
|
|
96
|
+
const _config_9 = resolveEventStreamConfig(_config_8);
|
|
97
|
+
const _config_10 = resolveWebSocketConfig(_config_9);
|
|
95
98
|
const _config_11 = resolveRuntimeExtensions(_config_10, configuration?.extensions || []);
|
|
96
99
|
this.config = _config_11;
|
|
97
|
-
this.middlewareStack.use(
|
|
98
|
-
this.middlewareStack.use(
|
|
99
|
-
this.middlewareStack.use(
|
|
100
|
-
this.middlewareStack.use(
|
|
101
|
-
this.middlewareStack.use(
|
|
102
|
-
this.middlewareStack.use(
|
|
103
|
-
this.middlewareStack.use(
|
|
104
|
-
this.middlewareStack.use(
|
|
105
|
-
httpAuthSchemeParametersProvider:
|
|
106
|
-
identityProviderConfigProvider: async (config) => new
|
|
100
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
101
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
102
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
103
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
104
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
105
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
106
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
107
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
108
|
+
httpAuthSchemeParametersProvider: defaultRekognitionStreamingHttpAuthSchemeParametersProvider,
|
|
109
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
107
110
|
"aws.auth#sigv4": config.credentials,
|
|
108
111
|
}),
|
|
109
112
|
}));
|
|
110
|
-
this.middlewareStack.use(
|
|
113
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
111
114
|
}
|
|
112
115
|
destroy() {
|
|
113
116
|
super.destroy();
|
|
114
117
|
}
|
|
115
118
|
}
|
|
116
119
|
|
|
117
|
-
class StartFaceLivenessSessionCommand extends
|
|
120
|
+
class StartFaceLivenessSessionCommand extends Command
|
|
118
121
|
.classBuilder()
|
|
119
122
|
.ep(commonParams)
|
|
120
123
|
.m(function (Command, cs, config, o) {
|
|
121
124
|
return [
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
126
|
+
getEventStreamPlugin(config),
|
|
127
|
+
getWebSocketPlugin(config, {
|
|
125
128
|
headerPrefix: 'x-amz-rekognition-streaming-liveness-',
|
|
126
129
|
}),
|
|
127
130
|
];
|
|
@@ -133,7 +136,7 @@ class StartFaceLivenessSessionCommand extends client.Command
|
|
|
133
136
|
},
|
|
134
137
|
})
|
|
135
138
|
.n("RekognitionStreamingClient", "StartFaceLivenessSessionCommand")
|
|
136
|
-
.sc(
|
|
139
|
+
.sc(StartFaceLivenessSession$)
|
|
137
140
|
.build() {
|
|
138
141
|
}
|
|
139
142
|
|
|
@@ -142,7 +145,7 @@ const commands = {
|
|
|
142
145
|
};
|
|
143
146
|
class RekognitionStreaming extends RekognitionStreamingClient {
|
|
144
147
|
}
|
|
145
|
-
|
|
148
|
+
createAggregatedClient(commands, RekognitionStreaming);
|
|
146
149
|
|
|
147
150
|
const ChallengeType = {
|
|
148
151
|
FACE_MOVEMENT_AND_LIGHT_CHALLENGE: "FaceMovementAndLightChallenge",
|
|
@@ -152,31 +155,8 @@ const LightChallengeType = {
|
|
|
152
155
|
SEQUENTIAL: "SEQUENTIAL",
|
|
153
156
|
};
|
|
154
157
|
|
|
155
|
-
exports.$Command = client.Command;
|
|
156
|
-
exports.__Client = client.Client;
|
|
157
|
-
exports.RekognitionStreamingServiceException = RekognitionStreamingServiceException.RekognitionStreamingServiceException;
|
|
158
158
|
exports.ChallengeType = ChallengeType;
|
|
159
159
|
exports.LightChallengeType = LightChallengeType;
|
|
160
160
|
exports.RekognitionStreaming = RekognitionStreaming;
|
|
161
161
|
exports.RekognitionStreamingClient = RekognitionStreamingClient;
|
|
162
162
|
exports.StartFaceLivenessSessionCommand = StartFaceLivenessSessionCommand;
|
|
163
|
-
Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
|
|
164
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
165
|
-
Object.defineProperty(exports, '__proto__', {
|
|
166
|
-
enumerable: true,
|
|
167
|
-
value: schemas_0['__proto__']
|
|
168
|
-
});
|
|
169
|
-
|
|
170
|
-
Object.keys(schemas_0).forEach(function (k) {
|
|
171
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];
|
|
172
|
-
});
|
|
173
|
-
Object.prototype.hasOwnProperty.call(errors, '__proto__') &&
|
|
174
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
175
|
-
Object.defineProperty(exports, '__proto__', {
|
|
176
|
-
enumerable: true,
|
|
177
|
-
value: errors['__proto__']
|
|
178
|
-
});
|
|
179
|
-
|
|
180
|
-
Object.keys(errors).forEach(function (k) {
|
|
181
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];
|
|
182
|
-
});
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.RekognitionStreamingServiceException =
|
|
4
|
-
const client_1 = require("@smithy/core/client");
|
|
5
|
-
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return client_1.ServiceException; } });
|
|
6
|
-
class RekognitionStreamingServiceException extends client_1.ServiceException {
|
|
1
|
+
const { ServiceException: __ServiceException } = require("@smithy/core/client");
|
|
2
|
+
exports.__ServiceException = __ServiceException;
|
|
3
|
+
exports.RekognitionStreamingServiceException = class RekognitionStreamingServiceException extends __ServiceException {
|
|
7
4
|
constructor(options) {
|
|
8
5
|
super(options);
|
|
9
6
|
Object.setPrototypeOf(this, RekognitionStreamingServiceException.prototype);
|
|
10
7
|
}
|
|
11
|
-
}
|
|
12
|
-
exports.RekognitionStreamingServiceException = RekognitionStreamingServiceException;
|
|
8
|
+
};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.SessionNotFoundException = exports.ValidationException = exports.ThrottlingException = exports.ServiceUnavailableException = exports.ServiceQuotaExceededException = exports.InternalServerException = exports.AccessDeniedException = void 0;
|
|
4
|
-
const RekognitionStreamingServiceException_1 = require("./RekognitionStreamingServiceException");
|
|
5
|
-
class AccessDeniedException extends RekognitionStreamingServiceException_1.RekognitionStreamingServiceException {
|
|
1
|
+
const { RekognitionStreamingServiceException: __BaseException } = require("./RekognitionStreamingServiceException");
|
|
2
|
+
exports.AccessDeniedException = class AccessDeniedException extends __BaseException {
|
|
6
3
|
name = "AccessDeniedException";
|
|
7
4
|
$fault = "client";
|
|
8
5
|
Message;
|
|
@@ -17,9 +14,8 @@ class AccessDeniedException extends RekognitionStreamingServiceException_1.Rekog
|
|
|
17
14
|
this.Message = opts.Message;
|
|
18
15
|
this.Code = opts.Code;
|
|
19
16
|
}
|
|
20
|
-
}
|
|
21
|
-
exports.
|
|
22
|
-
class InternalServerException extends RekognitionStreamingServiceException_1.RekognitionStreamingServiceException {
|
|
17
|
+
};
|
|
18
|
+
exports.InternalServerException = class InternalServerException extends __BaseException {
|
|
23
19
|
name = "InternalServerException";
|
|
24
20
|
$fault = "server";
|
|
25
21
|
Message;
|
|
@@ -34,9 +30,8 @@ class InternalServerException extends RekognitionStreamingServiceException_1.Rek
|
|
|
34
30
|
this.Message = opts.Message;
|
|
35
31
|
this.Code = opts.Code;
|
|
36
32
|
}
|
|
37
|
-
}
|
|
38
|
-
exports.
|
|
39
|
-
class ServiceQuotaExceededException extends RekognitionStreamingServiceException_1.RekognitionStreamingServiceException {
|
|
33
|
+
};
|
|
34
|
+
exports.ServiceQuotaExceededException = class ServiceQuotaExceededException extends __BaseException {
|
|
40
35
|
name = "ServiceQuotaExceededException";
|
|
41
36
|
$fault = "client";
|
|
42
37
|
Message;
|
|
@@ -51,9 +46,8 @@ class ServiceQuotaExceededException extends RekognitionStreamingServiceException
|
|
|
51
46
|
this.Message = opts.Message;
|
|
52
47
|
this.Code = opts.Code;
|
|
53
48
|
}
|
|
54
|
-
}
|
|
55
|
-
exports.
|
|
56
|
-
class ServiceUnavailableException extends RekognitionStreamingServiceException_1.RekognitionStreamingServiceException {
|
|
49
|
+
};
|
|
50
|
+
exports.ServiceUnavailableException = class ServiceUnavailableException extends __BaseException {
|
|
57
51
|
name = "ServiceUnavailableException";
|
|
58
52
|
$fault = "server";
|
|
59
53
|
Message;
|
|
@@ -68,9 +62,8 @@ class ServiceUnavailableException extends RekognitionStreamingServiceException_1
|
|
|
68
62
|
this.Message = opts.Message;
|
|
69
63
|
this.Code = opts.Code;
|
|
70
64
|
}
|
|
71
|
-
}
|
|
72
|
-
exports.
|
|
73
|
-
class ThrottlingException extends RekognitionStreamingServiceException_1.RekognitionStreamingServiceException {
|
|
65
|
+
};
|
|
66
|
+
exports.ThrottlingException = class ThrottlingException extends __BaseException {
|
|
74
67
|
name = "ThrottlingException";
|
|
75
68
|
$fault = "client";
|
|
76
69
|
Message;
|
|
@@ -85,9 +78,8 @@ class ThrottlingException extends RekognitionStreamingServiceException_1.Rekogni
|
|
|
85
78
|
this.Message = opts.Message;
|
|
86
79
|
this.Code = opts.Code;
|
|
87
80
|
}
|
|
88
|
-
}
|
|
89
|
-
exports.
|
|
90
|
-
class ValidationException extends RekognitionStreamingServiceException_1.RekognitionStreamingServiceException {
|
|
81
|
+
};
|
|
82
|
+
exports.ValidationException = class ValidationException extends __BaseException {
|
|
91
83
|
name = "ValidationException";
|
|
92
84
|
$fault = "client";
|
|
93
85
|
Message;
|
|
@@ -102,9 +94,8 @@ class ValidationException extends RekognitionStreamingServiceException_1.Rekogni
|
|
|
102
94
|
this.Message = opts.Message;
|
|
103
95
|
this.Code = opts.Code;
|
|
104
96
|
}
|
|
105
|
-
}
|
|
106
|
-
exports.
|
|
107
|
-
class SessionNotFoundException extends RekognitionStreamingServiceException_1.RekognitionStreamingServiceException {
|
|
97
|
+
};
|
|
98
|
+
exports.SessionNotFoundException = class SessionNotFoundException extends __BaseException {
|
|
108
99
|
name = "SessionNotFoundException";
|
|
109
100
|
$fault = "client";
|
|
110
101
|
Message;
|
|
@@ -119,5 +110,4 @@ class SessionNotFoundException extends RekognitionStreamingServiceException_1.Re
|
|
|
119
110
|
this.Message = opts.Message;
|
|
120
111
|
this.Code = opts.Code;
|
|
121
112
|
}
|
|
122
|
-
}
|
|
123
|
-
exports.SessionNotFoundException = SessionNotFoundException;
|
|
113
|
+
};
|
|
@@ -1,41 +1,37 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const retry_1 = require("@smithy/core/retry");
|
|
13
|
-
const serde_1 = require("@smithy/core/serde");
|
|
14
|
-
const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
|
|
15
|
-
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
1
|
+
const packageInfo = require("../package.json");
|
|
2
|
+
const { Sha256 } = require("@aws-crypto/sha256-browser");
|
|
3
|
+
const { createDefaultUserAgentProvider } = require("@aws-sdk/core/client");
|
|
4
|
+
const { eventStreamPayloadHandlerProvider, WebSocketFetchHandler: WebSocketRequestHandler } = require("@aws-sdk/middleware-websocket");
|
|
5
|
+
const { invalidProvider, loadConfigsForDefaultMode } = require("@smithy/core/client");
|
|
6
|
+
const { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig } = require("@smithy/core/config");
|
|
7
|
+
const { eventStreamSerdeProvider } = require("@smithy/core/event-streams");
|
|
8
|
+
const { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } = require("@smithy/core/retry");
|
|
9
|
+
const { calculateBodyLength } = require("@smithy/core/serde");
|
|
10
|
+
const { FetchHttpHandler: HttpRequestHandler, streamCollector } = require("@smithy/fetch-http-handler");
|
|
11
|
+
const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
|
|
16
12
|
const getRuntimeConfig = (config) => {
|
|
17
|
-
const defaultsMode =
|
|
18
|
-
const defaultConfigProvider = () => defaultsMode().then(
|
|
19
|
-
const clientSharedValues = (
|
|
13
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
14
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
15
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
20
16
|
return {
|
|
21
17
|
...clientSharedValues,
|
|
22
18
|
...config,
|
|
23
19
|
runtime: "browser",
|
|
24
20
|
defaultsMode,
|
|
25
|
-
bodyLengthChecker: config?.bodyLengthChecker ??
|
|
21
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
26
22
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
27
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
28
|
-
eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ??
|
|
29
|
-
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ??
|
|
30
|
-
maxAttempts: config?.maxAttempts ??
|
|
31
|
-
region: config?.region ??
|
|
32
|
-
requestHandler:
|
|
33
|
-
?? defaultConfigProvider,
|
|
34
|
-
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode ||
|
|
35
|
-
sha256: config?.sha256 ??
|
|
36
|
-
streamCollector: config?.streamCollector ??
|
|
37
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(
|
|
38
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(
|
|
23
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
24
|
+
eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? eventStreamPayloadHandlerProvider,
|
|
25
|
+
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
|
|
26
|
+
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
27
|
+
region: config?.region ?? invalidProvider("Region is missing"),
|
|
28
|
+
requestHandler: WebSocketRequestHandler.create(config?.requestHandler
|
|
29
|
+
?? defaultConfigProvider, HttpRequestHandler.create(defaultConfigProvider)),
|
|
30
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
31
|
+
sha256: config?.sha256 ?? Sha256,
|
|
32
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
33
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
34
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
|
39
35
|
};
|
|
40
36
|
};
|
|
41
37
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,25 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const retry_1 = require("@smithy/core/retry");
|
|
14
|
-
const serde_1 = require("@smithy/core/serde");
|
|
15
|
-
const node_http_handler_1 = require("@smithy/node-http-handler");
|
|
16
|
-
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
1
|
+
const packageInfo = require("../package.json");
|
|
2
|
+
const { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion: awsCheckVersion, NODE_APP_ID_CONFIG_OPTIONS } = require("@aws-sdk/core/client");
|
|
3
|
+
const { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
4
|
+
const { defaultProvider: credentialDefaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
5
|
+
const { eventStreamPayloadHandlerProvider } = require("@aws-sdk/eventstream-handler-node");
|
|
6
|
+
const { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } = require("@smithy/core/client");
|
|
7
|
+
const { loadConfig: loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig } = require("@smithy/core/config");
|
|
8
|
+
const { eventStreamSerdeProvider } = require("@smithy/core/event-streams");
|
|
9
|
+
const { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } = require("@smithy/core/retry");
|
|
10
|
+
const { calculateBodyLength, Hash } = require("@smithy/core/serde");
|
|
11
|
+
const { NodeHttpHandler: RequestHandler, streamCollector } = require("@smithy/node-http-handler");
|
|
12
|
+
const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
|
|
17
13
|
const getRuntimeConfig = (config) => {
|
|
18
|
-
|
|
19
|
-
const defaultsMode =
|
|
20
|
-
const defaultConfigProvider = () => defaultsMode().then(
|
|
21
|
-
const clientSharedValues = (
|
|
22
|
-
(
|
|
14
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
15
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
16
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
17
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
18
|
+
awsCheckVersion(process.version);
|
|
23
19
|
const loaderConfig = {
|
|
24
20
|
profile: config?.profile,
|
|
25
21
|
logger: clientSharedValues.logger,
|
|
@@ -29,25 +25,25 @@ const getRuntimeConfig = (config) => {
|
|
|
29
25
|
...config,
|
|
30
26
|
runtime: "node",
|
|
31
27
|
defaultsMode,
|
|
32
|
-
authSchemePreference: config?.authSchemePreference ?? (
|
|
33
|
-
bodyLengthChecker: config?.bodyLengthChecker ??
|
|
34
|
-
credentialDefaultProvider: config?.credentialDefaultProvider ??
|
|
35
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
36
|
-
eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ??
|
|
37
|
-
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ??
|
|
38
|
-
maxAttempts: config?.maxAttempts ?? (
|
|
39
|
-
region: config?.region ?? (
|
|
40
|
-
requestHandler:
|
|
28
|
+
authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
29
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
30
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
31
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
32
|
+
eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? eventStreamPayloadHandlerProvider,
|
|
33
|
+
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
|
|
34
|
+
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
35
|
+
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
36
|
+
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
41
37
|
retryMode: config?.retryMode ??
|
|
42
|
-
(
|
|
43
|
-
...
|
|
44
|
-
default: async () => (await defaultConfigProvider()).retryMode ||
|
|
38
|
+
loadNodeConfig({
|
|
39
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
45
41
|
}, config),
|
|
46
|
-
sha256: config?.sha256 ??
|
|
47
|
-
streamCollector: config?.streamCollector ??
|
|
48
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? (
|
|
49
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? (
|
|
50
|
-
userAgentAppId: config?.userAgentAppId ?? (
|
|
42
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
43
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
44
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
45
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
46
|
+
userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
51
47
|
};
|
|
52
48
|
};
|
|
53
49
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,19 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
|
-
const client_1 = require("@smithy/core/client");
|
|
6
|
-
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
1
|
+
const { Sha256 } = require("@aws-crypto/sha256-js");
|
|
2
|
+
const { invalidFunction } = require("@smithy/core/client");
|
|
3
|
+
const { getRuntimeConfig: getBrowserRuntimeConfig } = require("./runtimeConfig.browser");
|
|
7
4
|
const getRuntimeConfig = (config) => {
|
|
8
|
-
const browserDefaults = (
|
|
5
|
+
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
9
6
|
return {
|
|
10
7
|
...browserDefaults,
|
|
11
8
|
...config,
|
|
12
9
|
runtime: "react-native",
|
|
13
10
|
eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? (() => ({
|
|
14
|
-
handle:
|
|
11
|
+
handle: invalidFunction("event stream request is not supported in ReactNative."),
|
|
15
12
|
})),
|
|
16
|
-
sha256: config?.sha256 ??
|
|
13
|
+
sha256: config?.sha256 ?? Sha256,
|
|
17
14
|
};
|
|
18
15
|
};
|
|
19
16
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,42 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
11
|
-
const schemas_0_1 = require("./schemas/schemas_0");
|
|
12
|
-
const getRuntimeConfig = (config) => {
|
|
1
|
+
const { AwsSdkSigV4Signer } = require("@aws-sdk/core/httpAuthSchemes");
|
|
2
|
+
const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
|
|
3
|
+
const { NoOpLogger } = require("@smithy/core/client");
|
|
4
|
+
const { parseUrl } = require("@smithy/core/protocols");
|
|
5
|
+
const { fromBase64, fromUtf8, toBase64, toUtf8 } = require("@smithy/core/serde");
|
|
6
|
+
const { defaultRekognitionStreamingHttpAuthSchemeProvider } = require("./auth/httpAuthSchemeProvider");
|
|
7
|
+
const { defaultEndpointResolver } = require("./endpoint/endpointResolver");
|
|
8
|
+
const { errorTypeRegistries } = require("./schemas/schemas_0");
|
|
9
|
+
exports.getRuntimeConfig = (config) => {
|
|
13
10
|
return {
|
|
14
11
|
apiVersion: "2022-05-30",
|
|
15
|
-
base64Decoder: config?.base64Decoder ??
|
|
16
|
-
base64Encoder: config?.base64Encoder ??
|
|
12
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
13
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
17
14
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
18
|
-
endpointProvider: config?.endpointProvider ??
|
|
15
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
19
16
|
extensions: config?.extensions ?? [],
|
|
20
|
-
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ??
|
|
17
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultRekognitionStreamingHttpAuthSchemeProvider,
|
|
21
18
|
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
22
19
|
{
|
|
23
20
|
schemeId: "aws.auth#sigv4",
|
|
24
21
|
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
25
|
-
signer: new
|
|
22
|
+
signer: new AwsSdkSigV4Signer(),
|
|
26
23
|
},
|
|
27
24
|
],
|
|
28
|
-
logger: config?.logger ?? new
|
|
29
|
-
protocol: config?.protocol ??
|
|
25
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
+
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
30
27
|
protocolSettings: config?.protocolSettings ?? {
|
|
31
28
|
defaultNamespace: "com.amazonaws.rekognitionstreaming",
|
|
32
|
-
errorTypeRegistries
|
|
29
|
+
errorTypeRegistries,
|
|
33
30
|
version: "2022-05-30",
|
|
34
31
|
serviceTarget: "RekognitionStreamingService",
|
|
35
32
|
},
|
|
36
33
|
serviceId: config?.serviceId ?? "RekognitionStreaming",
|
|
37
|
-
urlParser: config?.urlParser ??
|
|
38
|
-
utf8Decoder: config?.utf8Decoder ??
|
|
39
|
-
utf8Encoder: config?.utf8Encoder ??
|
|
34
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
35
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
36
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
40
37
|
};
|
|
41
38
|
};
|
|
42
|
-
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StartFaceLivenessSession$ = exports.ServerChallenge$ = exports.LivenessResponseStream$ = exports.LivenessRequestStream$ = exports.ClientChallenge$ = exports.VideoEvent$ = exports.TargetFace$ = exports.StartFaceLivenessSessionResponse$ = exports.StartFaceLivenessSessionRequest$ = exports.SessionInformation$ = exports.ServerSessionInformationEvent$ = exports.OvalParameters$ = exports.InitialFace$ = exports.FreshnessColor$ = exports.FaceMovementServerChallenge$ = exports.FaceMovementClientChallenge$ = exports.FaceMovementAndLightServerChallenge$ = exports.FaceMovementAndLightClientChallenge$ = exports.DisconnectionEvent$ = exports.ColorSequence$ = exports.ColorDisplayed$ = exports.ClientSessionInformationEvent$ = exports.ChallengeEvent$ = exports.ChallengeConfig$ = exports.BoundingBox$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.ThrottlingException$ = exports.SessionNotFoundException$ = exports.ServiceUnavailableException$ = exports.ServiceQuotaExceededException$ = exports.InternalServerException$ = exports.AccessDeniedException$ = exports.RekognitionStreamingServiceException$ = void 0;
|
|
4
1
|
const _ADE = "AccessDeniedException";
|
|
5
2
|
const _BB = "BoundingBox";
|
|
6
3
|
const _BFDT = "BlazeFaceDetectionThreshold";
|
|
@@ -91,183 +88,215 @@ const _xarslsi = "x-amz-rekognition-streaming-liveness-session-id";
|
|
|
91
88
|
const _xarslvh = "x-amz-rekognition-streaming-liveness-video-height";
|
|
92
89
|
const _xarslvw = "x-amz-rekognition-streaming-liveness-video-width";
|
|
93
90
|
const n0 = "com.amazonaws.rekognitionstreaming";
|
|
94
|
-
const
|
|
95
|
-
const
|
|
96
|
-
const
|
|
97
|
-
const _s_registry =
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
91
|
+
const { TypeRegistry } = require("@smithy/core/schema");
|
|
92
|
+
const { AccessDeniedException, InternalServerException, ServiceQuotaExceededException, ServiceUnavailableException, SessionNotFoundException, ThrottlingException, ValidationException } = require("../models/errors");
|
|
93
|
+
const { RekognitionStreamingServiceException } = require("../models/RekognitionStreamingServiceException");
|
|
94
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
95
|
+
const RekognitionStreamingServiceException$ = [-3, _s, "RekognitionStreamingServiceException", 0, [], []];
|
|
96
|
+
exports.RekognitionStreamingServiceException$ = RekognitionStreamingServiceException$;
|
|
97
|
+
_s_registry.registerError(RekognitionStreamingServiceException$, RekognitionStreamingServiceException);
|
|
98
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
99
|
+
const AccessDeniedException$ = [-3, n0, _ADE,
|
|
102
100
|
{ [_e]: _c, [_hE]: 403 },
|
|
103
101
|
[_M, _C],
|
|
104
102
|
[0, 0]
|
|
105
103
|
];
|
|
106
|
-
|
|
107
|
-
|
|
104
|
+
exports.AccessDeniedException$ = AccessDeniedException$;
|
|
105
|
+
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
106
|
+
const InternalServerException$ = [-3, n0, _ISE,
|
|
108
107
|
{ [_e]: _se, [_hE]: 500 },
|
|
109
108
|
[_M, _C],
|
|
110
109
|
[0, 0]
|
|
111
110
|
];
|
|
112
|
-
|
|
113
|
-
|
|
111
|
+
exports.InternalServerException$ = InternalServerException$;
|
|
112
|
+
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
113
|
+
const ServiceQuotaExceededException$ = [-3, n0, _SQEE,
|
|
114
114
|
{ [_e]: _c, [_hE]: 429 },
|
|
115
115
|
[_M, _C],
|
|
116
116
|
[0, 0]
|
|
117
117
|
];
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
|
|
119
|
+
n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
|
|
120
|
+
const ServiceUnavailableException$ = [-3, n0, _SUE,
|
|
120
121
|
{ [_e]: _se, [_hE]: 503 },
|
|
121
122
|
[_M, _C],
|
|
122
123
|
[0, 0]
|
|
123
124
|
];
|
|
124
|
-
|
|
125
|
-
|
|
125
|
+
exports.ServiceUnavailableException$ = ServiceUnavailableException$;
|
|
126
|
+
n0_registry.registerError(ServiceUnavailableException$, ServiceUnavailableException);
|
|
127
|
+
const SessionNotFoundException$ = [-3, n0, _SNFE,
|
|
126
128
|
{ [_e]: _c, [_hE]: 400 },
|
|
127
129
|
[_M, _C],
|
|
128
130
|
[0, 0]
|
|
129
131
|
];
|
|
130
|
-
|
|
131
|
-
|
|
132
|
+
exports.SessionNotFoundException$ = SessionNotFoundException$;
|
|
133
|
+
n0_registry.registerError(SessionNotFoundException$, SessionNotFoundException);
|
|
134
|
+
const ThrottlingException$ = [-3, n0, _TE,
|
|
132
135
|
{ [_e]: _c, [_hE]: 429 },
|
|
133
136
|
[_M, _C],
|
|
134
137
|
[0, 0]
|
|
135
138
|
];
|
|
136
|
-
|
|
137
|
-
|
|
139
|
+
exports.ThrottlingException$ = ThrottlingException$;
|
|
140
|
+
n0_registry.registerError(ThrottlingException$, ThrottlingException);
|
|
141
|
+
const ValidationException$ = [-3, n0, _VE,
|
|
138
142
|
{ [_e]: _c, [_hE]: 400 },
|
|
139
143
|
[_M, _C],
|
|
140
144
|
[0, 0]
|
|
141
145
|
];
|
|
142
|
-
|
|
146
|
+
exports.ValidationException$ = ValidationException$;
|
|
147
|
+
n0_registry.registerError(ValidationException$, ValidationException);
|
|
143
148
|
exports.errorTypeRegistries = [
|
|
144
149
|
_s_registry,
|
|
145
150
|
n0_registry,
|
|
146
151
|
];
|
|
147
|
-
|
|
152
|
+
const BoundingBox$ = [3, n0, _BB,
|
|
148
153
|
0,
|
|
149
154
|
[_W, _H, _L, _T],
|
|
150
155
|
[1, 1, 1, 1], 4
|
|
151
156
|
];
|
|
152
|
-
exports.
|
|
157
|
+
exports.BoundingBox$ = BoundingBox$;
|
|
158
|
+
const ChallengeConfig$ = [3, n0, _CC,
|
|
153
159
|
0,
|
|
154
160
|
[_BFDT, _FDTM, _FDT, _FDTMa, _OIT, _OHWR, _OIWT, _OIHT, _FIWT, _FIHT, _OFT],
|
|
155
161
|
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
|
|
156
162
|
];
|
|
157
|
-
exports.
|
|
163
|
+
exports.ChallengeConfig$ = ChallengeConfig$;
|
|
164
|
+
const ChallengeEvent$ = [3, n0, _CE,
|
|
158
165
|
0,
|
|
159
166
|
[_V, _Ty],
|
|
160
167
|
[0, 0], 2
|
|
161
168
|
];
|
|
162
|
-
exports.
|
|
169
|
+
exports.ChallengeEvent$ = ChallengeEvent$;
|
|
170
|
+
const ClientSessionInformationEvent$ = [3, n0, _CSIE,
|
|
163
171
|
0,
|
|
164
172
|
[_Ch],
|
|
165
|
-
[() =>
|
|
173
|
+
[() => ClientChallenge$], 1
|
|
166
174
|
];
|
|
167
|
-
exports.
|
|
175
|
+
exports.ClientSessionInformationEvent$ = ClientSessionInformationEvent$;
|
|
176
|
+
const ColorDisplayed$ = [3, n0, _CD,
|
|
168
177
|
0,
|
|
169
178
|
[_CCu, _SN, _CCST, _PC],
|
|
170
|
-
[() =>
|
|
179
|
+
[() => FreshnessColor$, 1, 1, () => FreshnessColor$], 3
|
|
171
180
|
];
|
|
172
|
-
exports.
|
|
181
|
+
exports.ColorDisplayed$ = ColorDisplayed$;
|
|
182
|
+
const ColorSequence$ = [3, n0, _CS,
|
|
173
183
|
0,
|
|
174
184
|
[_FC, _DD, _FDD],
|
|
175
|
-
[() =>
|
|
185
|
+
[() => FreshnessColor$, 1, 1], 3
|
|
176
186
|
];
|
|
177
|
-
exports.
|
|
187
|
+
exports.ColorSequence$ = ColorSequence$;
|
|
188
|
+
const DisconnectionEvent$ = [3, n0, _DE,
|
|
178
189
|
0,
|
|
179
190
|
[_TM],
|
|
180
191
|
[1], 1
|
|
181
192
|
];
|
|
182
|
-
exports.
|
|
193
|
+
exports.DisconnectionEvent$ = DisconnectionEvent$;
|
|
194
|
+
const FaceMovementAndLightClientChallenge$ = [3, n0, _FMALCC,
|
|
183
195
|
0,
|
|
184
196
|
[_CI, _VST, _VET, _IF, _TF, _CD],
|
|
185
|
-
[0, 1, 1, () =>
|
|
197
|
+
[0, 1, 1, () => InitialFace$, () => TargetFace$, () => ColorDisplayed$], 1
|
|
186
198
|
];
|
|
187
|
-
exports.
|
|
199
|
+
exports.FaceMovementAndLightClientChallenge$ = FaceMovementAndLightClientChallenge$;
|
|
200
|
+
const FaceMovementAndLightServerChallenge$ = [3, n0, _FMALSC,
|
|
188
201
|
0,
|
|
189
202
|
[_OP, _LCT, _CC, _CSo],
|
|
190
|
-
[() =>
|
|
203
|
+
[() => OvalParameters$, 0, () => ChallengeConfig$, () => ColorSequences], 4
|
|
191
204
|
];
|
|
192
|
-
exports.
|
|
205
|
+
exports.FaceMovementAndLightServerChallenge$ = FaceMovementAndLightServerChallenge$;
|
|
206
|
+
const FaceMovementClientChallenge$ = [3, n0, _FMCC,
|
|
193
207
|
0,
|
|
194
208
|
[_CI, _VST, _VET, _IF, _TF],
|
|
195
|
-
[0, 1, 1, () =>
|
|
209
|
+
[0, 1, 1, () => InitialFace$, () => TargetFace$], 1
|
|
196
210
|
];
|
|
197
|
-
exports.
|
|
211
|
+
exports.FaceMovementClientChallenge$ = FaceMovementClientChallenge$;
|
|
212
|
+
const FaceMovementServerChallenge$ = [3, n0, _FMSC,
|
|
198
213
|
0,
|
|
199
214
|
[_OP, _CC],
|
|
200
|
-
[() =>
|
|
215
|
+
[() => OvalParameters$, () => ChallengeConfig$], 2
|
|
201
216
|
];
|
|
202
|
-
exports.
|
|
217
|
+
exports.FaceMovementServerChallenge$ = FaceMovementServerChallenge$;
|
|
218
|
+
const FreshnessColor$ = [3, n0, _FC,
|
|
203
219
|
0,
|
|
204
220
|
[_RGB],
|
|
205
221
|
[64 | 1], 1
|
|
206
222
|
];
|
|
207
|
-
exports.
|
|
223
|
+
exports.FreshnessColor$ = FreshnessColor$;
|
|
224
|
+
const InitialFace$ = [3, n0, _IF,
|
|
208
225
|
0,
|
|
209
226
|
[_BB, _IFDT],
|
|
210
|
-
[() =>
|
|
227
|
+
[() => BoundingBox$, 1], 2
|
|
211
228
|
];
|
|
212
|
-
exports.
|
|
229
|
+
exports.InitialFace$ = InitialFace$;
|
|
230
|
+
const OvalParameters$ = [3, n0, _OP,
|
|
213
231
|
0,
|
|
214
232
|
[_W, _H, _CX, _CY],
|
|
215
233
|
[1, 1, 1, 1], 4
|
|
216
234
|
];
|
|
217
|
-
exports.
|
|
235
|
+
exports.OvalParameters$ = OvalParameters$;
|
|
236
|
+
const ServerSessionInformationEvent$ = [3, n0, _SSIE,
|
|
218
237
|
0,
|
|
219
238
|
[_SI],
|
|
220
|
-
[() =>
|
|
239
|
+
[() => SessionInformation$], 1
|
|
221
240
|
];
|
|
222
|
-
exports.
|
|
241
|
+
exports.ServerSessionInformationEvent$ = ServerSessionInformationEvent$;
|
|
242
|
+
const SessionInformation$ = [3, n0, _SI,
|
|
223
243
|
0,
|
|
224
244
|
[_Ch],
|
|
225
|
-
[() =>
|
|
245
|
+
[() => ServerChallenge$], 1
|
|
226
246
|
];
|
|
227
|
-
exports.
|
|
247
|
+
exports.SessionInformation$ = SessionInformation$;
|
|
248
|
+
const StartFaceLivenessSessionRequest$ = [3, n0, _SFLSR,
|
|
228
249
|
0,
|
|
229
250
|
[_SIe, _VW, _VH, _CV, _LRS],
|
|
230
|
-
[[0, { [_hH]: _xarslsi }], [0, { [_hH]: _xarslvw }], [0, { [_hH]: _xarslvh }], [0, { [_hH]: _xarslcv }], [() =>
|
|
251
|
+
[[0, { [_hH]: _xarslsi }], [0, { [_hH]: _xarslvw }], [0, { [_hH]: _xarslvh }], [0, { [_hH]: _xarslcv }], [() => LivenessRequestStream$, 16]], 4
|
|
231
252
|
];
|
|
232
|
-
exports.
|
|
253
|
+
exports.StartFaceLivenessSessionRequest$ = StartFaceLivenessSessionRequest$;
|
|
254
|
+
const StartFaceLivenessSessionResponse$ = [3, n0, _SFLSRt,
|
|
233
255
|
0,
|
|
234
256
|
[_SIe, _LRSi],
|
|
235
|
-
[[0, { [_hH]: _xarslsi }], [() =>
|
|
257
|
+
[[0, { [_hH]: _xarslsi }], [() => LivenessResponseStream$, 16]], 1
|
|
236
258
|
];
|
|
237
|
-
exports.
|
|
259
|
+
exports.StartFaceLivenessSessionResponse$ = StartFaceLivenessSessionResponse$;
|
|
260
|
+
const TargetFace$ = [3, n0, _TF,
|
|
238
261
|
0,
|
|
239
262
|
[_BB, _FDITPST, _FDITPET],
|
|
240
|
-
[() =>
|
|
263
|
+
[() => BoundingBox$, 1, 1], 3
|
|
241
264
|
];
|
|
242
|
-
exports.
|
|
265
|
+
exports.TargetFace$ = TargetFace$;
|
|
266
|
+
const VideoEvent$ = [3, n0, _VEi,
|
|
243
267
|
0,
|
|
244
268
|
[_VC, _TM],
|
|
245
269
|
[21, 1]
|
|
246
270
|
];
|
|
271
|
+
exports.VideoEvent$ = VideoEvent$;
|
|
247
272
|
var ColorComponentList = 64 | 1;
|
|
248
273
|
var ColorSequences = [1, n0, _CSo,
|
|
249
|
-
0, () =>
|
|
274
|
+
0, () => ColorSequence$
|
|
250
275
|
];
|
|
251
|
-
|
|
276
|
+
const ClientChallenge$ = [4, n0, _CCl,
|
|
252
277
|
0,
|
|
253
278
|
[_FMALC, _FMC],
|
|
254
|
-
[() =>
|
|
279
|
+
[() => FaceMovementAndLightClientChallenge$, () => FaceMovementClientChallenge$]
|
|
255
280
|
];
|
|
256
|
-
exports.
|
|
281
|
+
exports.ClientChallenge$ = ClientChallenge$;
|
|
282
|
+
const LivenessRequestStream$ = [4, n0, _LRS,
|
|
257
283
|
{ [_st]: 1 },
|
|
258
284
|
[_VEi, _CSIE],
|
|
259
|
-
[() =>
|
|
285
|
+
[() => VideoEvent$, () => ClientSessionInformationEvent$]
|
|
260
286
|
];
|
|
261
|
-
exports.
|
|
287
|
+
exports.LivenessRequestStream$ = LivenessRequestStream$;
|
|
288
|
+
const LivenessResponseStream$ = [4, n0, _LRSi,
|
|
262
289
|
{ [_st]: 1 },
|
|
263
290
|
[_SSIE, _DE, _CE, _VE, _ISE, _TE, _SQEE, _SUE],
|
|
264
|
-
[() =>
|
|
291
|
+
[() => ServerSessionInformationEvent$, () => DisconnectionEvent$, () => ChallengeEvent$, [() => ValidationException$, 0], [() => InternalServerException$, 0], [() => ThrottlingException$, 0], [() => ServiceQuotaExceededException$, 0], [() => ServiceUnavailableException$, 0]]
|
|
265
292
|
];
|
|
266
|
-
exports.
|
|
293
|
+
exports.LivenessResponseStream$ = LivenessResponseStream$;
|
|
294
|
+
const ServerChallenge$ = [4, n0, _SC,
|
|
267
295
|
0,
|
|
268
296
|
[_FMALC, _FMC],
|
|
269
|
-
[() =>
|
|
297
|
+
[() => FaceMovementAndLightServerChallenge$, () => FaceMovementServerChallenge$]
|
|
270
298
|
];
|
|
299
|
+
exports.ServerChallenge$ = ServerChallenge$;
|
|
271
300
|
exports.StartFaceLivenessSession$ = [9, n0, _SFLS,
|
|
272
|
-
{ [_h]: ["POST", "/start-face-liveness-session", 200] }, () =>
|
|
301
|
+
{ [_h]: ["POST", "/start-face-liveness-session", 200] }, () => StartFaceLivenessSessionRequest$, () => StartFaceLivenessSessionResponse$
|
|
273
302
|
];
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-rekognitionstreaming",
|
|
3
3
|
"description": "AWS SDK for JavaScript Rekognitionstreaming Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1069.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline",
|
|
8
|
-
"build:es": "tsc -p tsconfig.es.json",
|
|
8
|
+
"build:es": "premove dist-es && tsc -p tsconfig.es.json",
|
|
9
9
|
"build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
|
|
10
|
-
"build:types": "tsc -p tsconfig.types.json",
|
|
10
|
+
"build:types": "premove dist-types && tsc -p tsconfig.types.json",
|
|
11
11
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
12
|
-
"clean": "premove dist-cjs dist-es dist-types
|
|
12
|
+
"clean": "premove dist-cjs dist-es dist-types",
|
|
13
13
|
"extract:docs": "api-extractor run --local",
|
|
14
|
-
"generate:client": "node ../../scripts/generate-clients/single-service
|
|
14
|
+
"generate:client": "node ../../scripts/generate-clients/single-service",
|
|
15
15
|
"test:index": "tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"
|
|
16
16
|
},
|
|
17
17
|
"main": "./dist-cjs/index.js",
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "^3.974.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
26
|
-
"@aws-sdk/eventstream-handler-node": "^3.972.
|
|
27
|
-
"@aws-sdk/middleware-eventstream": "^3.972.
|
|
28
|
-
"@aws-sdk/middleware-websocket": "^3.972.
|
|
29
|
-
"@aws-sdk/types": "^3.973.
|
|
24
|
+
"@aws-sdk/core": "^3.974.21",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.56",
|
|
26
|
+
"@aws-sdk/eventstream-handler-node": "^3.972.22",
|
|
27
|
+
"@aws-sdk/middleware-eventstream": "^3.972.18",
|
|
28
|
+
"@aws-sdk/middleware-websocket": "^3.972.29",
|
|
29
|
+
"@aws-sdk/types": "^3.973.13",
|
|
30
30
|
"@smithy/core": "^3.24.6",
|
|
31
31
|
"@smithy/fetch-http-handler": "^5.4.6",
|
|
32
32
|
"@smithy/node-http-handler": "^4.7.6",
|