@aws-sdk/client-rekognitionstreaming 3.1068.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.
@@ -1,17 +1,13 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveHttpAuthSchemeConfig = exports.defaultRekognitionStreamingHttpAuthSchemeProvider = exports.defaultRekognitionStreamingHttpAuthSchemeParametersProvider = void 0;
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: (0, client_1.getSmithyContext)(context).operation,
9
- region: await (0, client_1.normalizeProvider)(config.region)() || (() => {
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
- const defaultRekognitionStreamingHttpAuthSchemeProvider = (authParameters) => {
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.defaultRekognitionStreamingHttpAuthSchemeProvider = defaultRekognitionStreamingHttpAuthSchemeProvider;
40
- const resolveHttpAuthSchemeConfig = (config) => {
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: (0, client_1.normalizeProvider)(config.authSchemePreference ?? []),
38
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
44
39
  });
45
40
  };
46
- exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
@@ -1,7 +1,4 @@
1
- "use strict";
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 = endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
46
+ exports.bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -1,18 +1,14 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.defaultEndpointResolver = void 0;
4
- const client_1 = require("@aws-sdk/core/client");
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
- const defaultEndpointResolver = (endpointParams, context = {}) => {
12
- return cache.get(endpointParams, () => (0, endpoints_1.decideEndpoint)(bdd_1.bdd, {
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
- exports.defaultEndpointResolver = defaultEndpointResolver;
18
- endpoints_1.customEndpointFunctions.aws = client_1.awsEndpointFunctions;
14
+ customEndpointFunctions.aws = awsEndpointFunctions;
package/dist-cjs/index.js CHANGED
@@ -1,21 +1,24 @@
1
- 'use strict';
2
-
3
- var client$1 = require('@aws-sdk/core/client');
4
- var middlewareEventstream = require('@aws-sdk/middleware-eventstream');
5
- var middlewareWebsocket = require('@aws-sdk/middleware-websocket');
6
- var core = require('@smithy/core');
7
- var client = require('@smithy/core/client');
8
- var config = require('@smithy/core/config');
9
- var endpoints = require('@smithy/core/endpoints');
10
- var eventStreams = require('@smithy/core/event-streams');
11
- var protocols = require('@smithy/core/protocols');
12
- var retry = require('@smithy/core/retry');
13
- var schema = require('@smithy/core/schema');
14
- var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
15
- var runtimeConfig = require('./runtimeConfig');
16
- var schemas_0 = require('./schemas/schemas_0');
17
- var errors = require('./models/errors');
18
- var RekognitionStreamingServiceException = require('./models/RekognitionStreamingServiceException');
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(client$1.getAwsRegionExtensionConfiguration(runtimeConfig), client.getDefaultExtensionConfiguration(runtimeConfig), protocols.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
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, client$1.resolveAwsRegionExtensionConfiguration(extensionConfiguration), client.resolveDefaultRuntimeConfig(extensionConfiguration), protocols.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
79
+ return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
77
80
  };
78
81
 
79
- class RekognitionStreamingClient extends client.Client {
82
+ class RekognitionStreamingClient extends Client {
80
83
  config;
81
84
  constructor(...[configuration]) {
82
- const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
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 = client$1.resolveUserAgentConfig(_config_1);
87
- const _config_3 = retry.resolveRetryConfig(_config_2);
88
- const _config_4 = config.resolveRegionConfig(_config_3);
89
- const _config_5 = client$1.resolveHostHeaderConfig(_config_4);
90
- const _config_6 = endpoints.resolveEndpointConfig(_config_5);
91
- const _config_7 = eventStreams.resolveEventStreamSerdeConfig(_config_6);
92
- const _config_8 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_7);
93
- const _config_9 = middlewareEventstream.resolveEventStreamConfig(_config_8);
94
- const _config_10 = middlewareWebsocket.resolveWebSocketConfig(_config_9);
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(schema.getSchemaSerdePlugin(this.config));
98
- this.middlewareStack.use(client$1.getUserAgentPlugin(this.config));
99
- this.middlewareStack.use(retry.getRetryPlugin(this.config));
100
- this.middlewareStack.use(protocols.getContentLengthPlugin(this.config));
101
- this.middlewareStack.use(client$1.getHostHeaderPlugin(this.config));
102
- this.middlewareStack.use(client$1.getLoggerPlugin(this.config));
103
- this.middlewareStack.use(client$1.getRecursionDetectionPlugin(this.config));
104
- this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
105
- httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultRekognitionStreamingHttpAuthSchemeParametersProvider,
106
- identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
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(core.getHttpSigningPlugin(this.config));
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 client.Command
120
+ class StartFaceLivenessSessionCommand extends Command
118
121
  .classBuilder()
119
122
  .ep(commonParams)
120
123
  .m(function (Command, cs, config, o) {
121
124
  return [
122
- endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
123
- middlewareEventstream.getEventStreamPlugin(config),
124
- middlewareWebsocket.getWebSocketPlugin(config, {
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(schemas_0.StartFaceLivenessSession$)
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
- client.createAggregatedClient(commands, RekognitionStreaming);
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
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RekognitionStreamingServiceException = exports.__ServiceException = void 0;
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
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
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.AccessDeniedException = AccessDeniedException;
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.InternalServerException = InternalServerException;
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.ServiceQuotaExceededException = ServiceQuotaExceededException;
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.ServiceUnavailableException = ServiceUnavailableException;
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.ThrottlingException = ThrottlingException;
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.ValidationException = ValidationException;
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
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getRuntimeConfig = void 0;
4
- const tslib_1 = require("tslib");
5
- const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
- const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
- const client_1 = require("@aws-sdk/core/client");
8
- const middleware_websocket_1 = require("@aws-sdk/middleware-websocket");
9
- const client_2 = require("@smithy/core/client");
10
- const config_1 = require("@smithy/core/config");
11
- const event_streams_1 = require("@smithy/core/event-streams");
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 = (0, config_1.resolveDefaultsModeConfig)(config);
18
- const defaultConfigProvider = () => defaultsMode().then(client_2.loadConfigsForDefaultMode);
19
- const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
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 ?? serde_1.calculateBodyLength,
21
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
26
22
  credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
27
- defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, client_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
28
- eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? middleware_websocket_1.eventStreamPayloadHandlerProvider,
29
- eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? event_streams_1.eventStreamSerdeProvider,
30
- maxAttempts: config?.maxAttempts ?? retry_1.DEFAULT_MAX_ATTEMPTS,
31
- region: config?.region ?? (0, client_2.invalidProvider)("Region is missing"),
32
- requestHandler: middleware_websocket_1.WebSocketFetchHandler.create(config?.requestHandler
33
- ?? defaultConfigProvider, fetch_http_handler_1.FetchHttpHandler.create(defaultConfigProvider)),
34
- retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || retry_1.DEFAULT_RETRY_MODE),
35
- sha256: config?.sha256 ?? sha256_browser_1.Sha256,
36
- streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
37
- useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
38
- useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_1.DEFAULT_USE_FIPS_ENDPOINT)),
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
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getRuntimeConfig = void 0;
4
- const tslib_1 = require("tslib");
5
- const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
- const client_1 = require("@aws-sdk/core/client");
7
- const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
8
- const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
9
- const eventstream_handler_node_1 = require("@aws-sdk/eventstream-handler-node");
10
- const client_2 = require("@smithy/core/client");
11
- const config_1 = require("@smithy/core/config");
12
- const event_streams_1 = require("@smithy/core/event-streams");
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
- (0, client_2.emitWarningIfUnsupportedVersion)(process.version);
19
- const defaultsMode = (0, config_1.resolveDefaultsModeConfig)(config);
20
- const defaultConfigProvider = () => defaultsMode().then(client_2.loadConfigsForDefaultMode);
21
- const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
22
- (0, client_1.emitWarningIfUnsupportedVersion)(process.version);
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 ?? (0, config_1.loadConfig)(httpAuthSchemes_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
33
- bodyLengthChecker: config?.bodyLengthChecker ?? serde_1.calculateBodyLength,
34
- credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
35
- defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, client_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
36
- eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? eventstream_handler_node_1.eventStreamPayloadHandlerProvider,
37
- eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? event_streams_1.eventStreamSerdeProvider,
38
- maxAttempts: config?.maxAttempts ?? (0, config_1.loadConfig)(retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
39
- region: config?.region ?? (0, config_1.loadConfig)(config_1.NODE_REGION_CONFIG_OPTIONS, { ...config_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
40
- requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
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
- (0, config_1.loadConfig)({
43
- ...retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
44
- default: async () => (await defaultConfigProvider()).retryMode || retry_1.DEFAULT_RETRY_MODE,
38
+ loadNodeConfig({
39
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
40
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
45
41
  }, config),
46
- sha256: config?.sha256 ?? serde_1.Hash.bind(null, "sha256"),
47
- streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
48
- useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, config_1.loadConfig)(config_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
49
- useFipsEndpoint: config?.useFipsEndpoint ?? (0, config_1.loadConfig)(config_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
50
- userAgentAppId: config?.userAgentAppId ?? (0, config_1.loadConfig)(client_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
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
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getRuntimeConfig = void 0;
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 = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
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: (0, client_1.invalidFunction)("event stream request is not supported in ReactNative."),
11
+ handle: invalidFunction("event stream request is not supported in ReactNative."),
15
12
  })),
16
- sha256: config?.sha256 ?? sha256_js_1.Sha256,
13
+ sha256: config?.sha256 ?? Sha256,
17
14
  };
18
15
  };
19
16
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,42 +1,38 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getRuntimeConfig = void 0;
4
- const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
5
- const protocols_1 = require("@aws-sdk/core/protocols");
6
- const client_1 = require("@smithy/core/client");
7
- const protocols_2 = require("@smithy/core/protocols");
8
- const serde_1 = require("@smithy/core/serde");
9
- const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
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 ?? serde_1.fromBase64,
16
- base64Encoder: config?.base64Encoder ?? serde_1.toBase64,
12
+ base64Decoder: config?.base64Decoder ?? fromBase64,
13
+ base64Encoder: config?.base64Encoder ?? toBase64,
17
14
  disableHostPrefix: config?.disableHostPrefix ?? false,
18
- endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
15
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
19
16
  extensions: config?.extensions ?? [],
20
- httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultRekognitionStreamingHttpAuthSchemeProvider,
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 httpAuthSchemes_1.AwsSdkSigV4Signer(),
22
+ signer: new AwsSdkSigV4Signer(),
26
23
  },
27
24
  ],
28
- logger: config?.logger ?? new client_1.NoOpLogger(),
29
- protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
25
+ logger: config?.logger ?? new NoOpLogger(),
26
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
30
27
  protocolSettings: config?.protocolSettings ?? {
31
28
  defaultNamespace: "com.amazonaws.rekognitionstreaming",
32
- errorTypeRegistries: schemas_0_1.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 ?? protocols_2.parseUrl,
38
- utf8Decoder: config?.utf8Decoder ?? serde_1.fromUtf8,
39
- utf8Encoder: config?.utf8Encoder ?? serde_1.toUtf8,
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 schema_1 = require("@smithy/core/schema");
95
- const errors_1 = require("../models/errors");
96
- const RekognitionStreamingServiceException_1 = require("../models/RekognitionStreamingServiceException");
97
- const _s_registry = schema_1.TypeRegistry.for(_s);
98
- exports.RekognitionStreamingServiceException$ = [-3, _s, "RekognitionStreamingServiceException", 0, [], []];
99
- _s_registry.registerError(exports.RekognitionStreamingServiceException$, RekognitionStreamingServiceException_1.RekognitionStreamingServiceException);
100
- const n0_registry = schema_1.TypeRegistry.for(n0);
101
- exports.AccessDeniedException$ = [-3, n0, _ADE,
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
- n0_registry.registerError(exports.AccessDeniedException$, errors_1.AccessDeniedException);
107
- exports.InternalServerException$ = [-3, n0, _ISE,
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
- n0_registry.registerError(exports.InternalServerException$, errors_1.InternalServerException);
113
- exports.ServiceQuotaExceededException$ = [-3, n0, _SQEE,
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
- n0_registry.registerError(exports.ServiceQuotaExceededException$, errors_1.ServiceQuotaExceededException);
119
- exports.ServiceUnavailableException$ = [-3, n0, _SUE,
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
- n0_registry.registerError(exports.ServiceUnavailableException$, errors_1.ServiceUnavailableException);
125
- exports.SessionNotFoundException$ = [-3, n0, _SNFE,
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
- n0_registry.registerError(exports.SessionNotFoundException$, errors_1.SessionNotFoundException);
131
- exports.ThrottlingException$ = [-3, n0, _TE,
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
- n0_registry.registerError(exports.ThrottlingException$, errors_1.ThrottlingException);
137
- exports.ValidationException$ = [-3, n0, _VE,
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
- n0_registry.registerError(exports.ValidationException$, errors_1.ValidationException);
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
- exports.BoundingBox$ = [3, n0, _BB,
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.ChallengeConfig$ = [3, n0, _CC,
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.ChallengeEvent$ = [3, n0, _CE,
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.ClientSessionInformationEvent$ = [3, n0, _CSIE,
169
+ exports.ChallengeEvent$ = ChallengeEvent$;
170
+ const ClientSessionInformationEvent$ = [3, n0, _CSIE,
163
171
  0,
164
172
  [_Ch],
165
- [() => exports.ClientChallenge$], 1
173
+ [() => ClientChallenge$], 1
166
174
  ];
167
- exports.ColorDisplayed$ = [3, n0, _CD,
175
+ exports.ClientSessionInformationEvent$ = ClientSessionInformationEvent$;
176
+ const ColorDisplayed$ = [3, n0, _CD,
168
177
  0,
169
178
  [_CCu, _SN, _CCST, _PC],
170
- [() => exports.FreshnessColor$, 1, 1, () => exports.FreshnessColor$], 3
179
+ [() => FreshnessColor$, 1, 1, () => FreshnessColor$], 3
171
180
  ];
172
- exports.ColorSequence$ = [3, n0, _CS,
181
+ exports.ColorDisplayed$ = ColorDisplayed$;
182
+ const ColorSequence$ = [3, n0, _CS,
173
183
  0,
174
184
  [_FC, _DD, _FDD],
175
- [() => exports.FreshnessColor$, 1, 1], 3
185
+ [() => FreshnessColor$, 1, 1], 3
176
186
  ];
177
- exports.DisconnectionEvent$ = [3, n0, _DE,
187
+ exports.ColorSequence$ = ColorSequence$;
188
+ const DisconnectionEvent$ = [3, n0, _DE,
178
189
  0,
179
190
  [_TM],
180
191
  [1], 1
181
192
  ];
182
- exports.FaceMovementAndLightClientChallenge$ = [3, n0, _FMALCC,
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, () => exports.InitialFace$, () => exports.TargetFace$, () => exports.ColorDisplayed$], 1
197
+ [0, 1, 1, () => InitialFace$, () => TargetFace$, () => ColorDisplayed$], 1
186
198
  ];
187
- exports.FaceMovementAndLightServerChallenge$ = [3, n0, _FMALSC,
199
+ exports.FaceMovementAndLightClientChallenge$ = FaceMovementAndLightClientChallenge$;
200
+ const FaceMovementAndLightServerChallenge$ = [3, n0, _FMALSC,
188
201
  0,
189
202
  [_OP, _LCT, _CC, _CSo],
190
- [() => exports.OvalParameters$, 0, () => exports.ChallengeConfig$, () => ColorSequences], 4
203
+ [() => OvalParameters$, 0, () => ChallengeConfig$, () => ColorSequences], 4
191
204
  ];
192
- exports.FaceMovementClientChallenge$ = [3, n0, _FMCC,
205
+ exports.FaceMovementAndLightServerChallenge$ = FaceMovementAndLightServerChallenge$;
206
+ const FaceMovementClientChallenge$ = [3, n0, _FMCC,
193
207
  0,
194
208
  [_CI, _VST, _VET, _IF, _TF],
195
- [0, 1, 1, () => exports.InitialFace$, () => exports.TargetFace$], 1
209
+ [0, 1, 1, () => InitialFace$, () => TargetFace$], 1
196
210
  ];
197
- exports.FaceMovementServerChallenge$ = [3, n0, _FMSC,
211
+ exports.FaceMovementClientChallenge$ = FaceMovementClientChallenge$;
212
+ const FaceMovementServerChallenge$ = [3, n0, _FMSC,
198
213
  0,
199
214
  [_OP, _CC],
200
- [() => exports.OvalParameters$, () => exports.ChallengeConfig$], 2
215
+ [() => OvalParameters$, () => ChallengeConfig$], 2
201
216
  ];
202
- exports.FreshnessColor$ = [3, n0, _FC,
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.InitialFace$ = [3, n0, _IF,
223
+ exports.FreshnessColor$ = FreshnessColor$;
224
+ const InitialFace$ = [3, n0, _IF,
208
225
  0,
209
226
  [_BB, _IFDT],
210
- [() => exports.BoundingBox$, 1], 2
227
+ [() => BoundingBox$, 1], 2
211
228
  ];
212
- exports.OvalParameters$ = [3, n0, _OP,
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.ServerSessionInformationEvent$ = [3, n0, _SSIE,
235
+ exports.OvalParameters$ = OvalParameters$;
236
+ const ServerSessionInformationEvent$ = [3, n0, _SSIE,
218
237
  0,
219
238
  [_SI],
220
- [() => exports.SessionInformation$], 1
239
+ [() => SessionInformation$], 1
221
240
  ];
222
- exports.SessionInformation$ = [3, n0, _SI,
241
+ exports.ServerSessionInformationEvent$ = ServerSessionInformationEvent$;
242
+ const SessionInformation$ = [3, n0, _SI,
223
243
  0,
224
244
  [_Ch],
225
- [() => exports.ServerChallenge$], 1
245
+ [() => ServerChallenge$], 1
226
246
  ];
227
- exports.StartFaceLivenessSessionRequest$ = [3, n0, _SFLSR,
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 }], [() => exports.LivenessRequestStream$, 16]], 4
251
+ [[0, { [_hH]: _xarslsi }], [0, { [_hH]: _xarslvw }], [0, { [_hH]: _xarslvh }], [0, { [_hH]: _xarslcv }], [() => LivenessRequestStream$, 16]], 4
231
252
  ];
232
- exports.StartFaceLivenessSessionResponse$ = [3, n0, _SFLSRt,
253
+ exports.StartFaceLivenessSessionRequest$ = StartFaceLivenessSessionRequest$;
254
+ const StartFaceLivenessSessionResponse$ = [3, n0, _SFLSRt,
233
255
  0,
234
256
  [_SIe, _LRSi],
235
- [[0, { [_hH]: _xarslsi }], [() => exports.LivenessResponseStream$, 16]], 1
257
+ [[0, { [_hH]: _xarslsi }], [() => LivenessResponseStream$, 16]], 1
236
258
  ];
237
- exports.TargetFace$ = [3, n0, _TF,
259
+ exports.StartFaceLivenessSessionResponse$ = StartFaceLivenessSessionResponse$;
260
+ const TargetFace$ = [3, n0, _TF,
238
261
  0,
239
262
  [_BB, _FDITPST, _FDITPET],
240
- [() => exports.BoundingBox$, 1, 1], 3
263
+ [() => BoundingBox$, 1, 1], 3
241
264
  ];
242
- exports.VideoEvent$ = [3, n0, _VEi,
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, () => exports.ColorSequence$
274
+ 0, () => ColorSequence$
250
275
  ];
251
- exports.ClientChallenge$ = [4, n0, _CCl,
276
+ const ClientChallenge$ = [4, n0, _CCl,
252
277
  0,
253
278
  [_FMALC, _FMC],
254
- [() => exports.FaceMovementAndLightClientChallenge$, () => exports.FaceMovementClientChallenge$]
279
+ [() => FaceMovementAndLightClientChallenge$, () => FaceMovementClientChallenge$]
255
280
  ];
256
- exports.LivenessRequestStream$ = [4, n0, _LRS,
281
+ exports.ClientChallenge$ = ClientChallenge$;
282
+ const LivenessRequestStream$ = [4, n0, _LRS,
257
283
  { [_st]: 1 },
258
284
  [_VEi, _CSIE],
259
- [() => exports.VideoEvent$, () => exports.ClientSessionInformationEvent$]
285
+ [() => VideoEvent$, () => ClientSessionInformationEvent$]
260
286
  ];
261
- exports.LivenessResponseStream$ = [4, n0, _LRSi,
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
- [() => exports.ServerSessionInformationEvent$, () => exports.DisconnectionEvent$, () => exports.ChallengeEvent$, [() => exports.ValidationException$, 0], [() => exports.InternalServerException$, 0], [() => exports.ThrottlingException$, 0], [() => exports.ServiceQuotaExceededException$, 0], [() => exports.ServiceUnavailableException$, 0]]
291
+ [() => ServerSessionInformationEvent$, () => DisconnectionEvent$, () => ChallengeEvent$, [() => ValidationException$, 0], [() => InternalServerException$, 0], [() => ThrottlingException$, 0], [() => ServiceQuotaExceededException$, 0], [() => ServiceUnavailableException$, 0]]
265
292
  ];
266
- exports.ServerChallenge$ = [4, n0, _SC,
293
+ exports.LivenessResponseStream$ = LivenessResponseStream$;
294
+ const ServerChallenge$ = [4, n0, _SC,
267
295
  0,
268
296
  [_FMALC, _FMC],
269
- [() => exports.FaceMovementAndLightServerChallenge$, () => exports.FaceMovementServerChallenge$]
297
+ [() => FaceMovementAndLightServerChallenge$, () => FaceMovementServerChallenge$]
270
298
  ];
299
+ exports.ServerChallenge$ = ServerChallenge$;
271
300
  exports.StartFaceLivenessSession$ = [9, n0, _SFLS,
272
- { [_h]: ["POST", "/start-face-liveness-session", 200] }, () => exports.StartFaceLivenessSessionRequest$, () => exports.StartFaceLivenessSessionResponse$
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.1068.0",
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 tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
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 --solo rekognitionstreaming",
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.20",
25
- "@aws-sdk/credential-provider-node": "^3.972.55",
26
- "@aws-sdk/eventstream-handler-node": "^3.972.21",
27
- "@aws-sdk/middleware-eventstream": "^3.972.17",
28
- "@aws-sdk/middleware-websocket": "^3.972.28",
29
- "@aws-sdk/types": "^3.973.12",
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",