@aws-sdk/client-rekognitionstreaming 3.943.0 → 3.947.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist-cjs/index.js +15 -109
  2. package/dist-cjs/runtimeConfig.browser.js +2 -2
  3. package/dist-cjs/runtimeConfig.js +3 -4
  4. package/dist-cjs/runtimeConfig.native.js +3 -1
  5. package/dist-es/RekognitionStreamingClient.js +3 -3
  6. package/dist-es/runtimeConfig.browser.js +2 -2
  7. package/dist-es/runtimeConfig.js +2 -3
  8. package/dist-es/runtimeConfig.native.js +3 -1
  9. package/dist-es/schemas/schemas_0.js +15 -110
  10. package/dist-types/RekognitionStreaming.d.ts +1 -1
  11. package/dist-types/RekognitionStreamingClient.d.ts +13 -13
  12. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +2 -2
  13. package/dist-types/auth/httpAuthSchemeProvider.d.ts +2 -2
  14. package/dist-types/commands/StartFaceLivenessSessionCommand.d.ts +3 -3
  15. package/dist-types/endpoint/EndpointParameters.d.ts +13 -1
  16. package/dist-types/endpoint/endpointResolver.d.ts +5 -2
  17. package/dist-types/extensionConfiguration.d.ts +4 -4
  18. package/dist-types/models/RekognitionStreamingServiceException.d.ts +1 -1
  19. package/dist-types/models/errors.d.ts +1 -1
  20. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  21. package/dist-types/runtimeConfig.d.ts +1 -1
  22. package/dist-types/runtimeConfig.native.d.ts +1 -1
  23. package/dist-types/runtimeConfig.shared.d.ts +1 -1
  24. package/dist-types/runtimeExtensions.d.ts +1 -1
  25. package/dist-types/schemas/schemas_0.d.ts +1 -2
  26. package/dist-types/ts3.4/RekognitionStreamingClient.d.ts +3 -3
  27. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +1 -1
  28. package/dist-types/ts3.4/models/RekognitionStreamingServiceException.d.ts +1 -1
  29. package/dist-types/ts3.4/schemas/schemas_0.d.ts +0 -1
  30. package/package.json +13 -12
package/dist-cjs/index.js CHANGED
@@ -326,17 +326,7 @@ const _xarslsi = "x-amz-rekognition-streaming-liveness-session-id";
326
326
  const _xarslvh = "x-amz-rekognition-streaming-liveness-video-height";
327
327
  const _xarslvw = "x-amz-rekognition-streaming-liveness-video-width";
328
328
  const n0 = "com.amazonaws.rekognitionstreaming";
329
- var AccessDeniedException = [
330
- -3,
331
- n0,
332
- _ADE,
333
- {
334
- [_e]: _c,
335
- [_hE]: 403,
336
- },
337
- [_M, _C],
338
- [0, 0],
339
- ];
329
+ var AccessDeniedException = [-3, n0, _ADE, { [_e]: _c, [_hE]: 403 }, [_M, _C], [0, 0]];
340
330
  schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
341
331
  var BoundingBox = [3, n0, _BB, 0, [_W, _H, _L, _T], [1, 1, 1, 1]];
342
332
  var ChallengeConfig = [
@@ -393,17 +383,7 @@ var FaceMovementServerChallenge = [
393
383
  ];
394
384
  var FreshnessColor = [3, n0, _FC, 0, [_RGB], [64 | 1]];
395
385
  var InitialFace = [3, n0, _IF, 0, [_BB, _IFDT], [() => BoundingBox, 1]];
396
- var InternalServerException = [
397
- -3,
398
- n0,
399
- _ISE,
400
- {
401
- [_e]: _s,
402
- [_hE]: 500,
403
- },
404
- [_M, _C],
405
- [0, 0],
406
- ];
386
+ var InternalServerException = [-3, n0, _ISE, { [_e]: _s, [_hE]: 500 }, [_M, _C], [0, 0]];
407
387
  schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
408
388
  var OvalParameters = [3, n0, _OP, 0, [_W, _H, _CX, _CY], [1, 1, 1, 1]];
409
389
  var ServerSessionInformationEvent = [3, n0, _SSIE, 0, [_SI], [() => SessionInformation]];
@@ -411,38 +391,15 @@ var ServiceQuotaExceededException = [
411
391
  -3,
412
392
  n0,
413
393
  _SQEE,
414
- {
415
- [_e]: _c,
416
- [_hE]: 429,
417
- },
394
+ { [_e]: _c, [_hE]: 429 },
418
395
  [_M, _C],
419
396
  [0, 0],
420
397
  ];
421
398
  schema.TypeRegistry.for(n0).registerError(ServiceQuotaExceededException, ServiceQuotaExceededException$1);
422
- var ServiceUnavailableException = [
423
- -3,
424
- n0,
425
- _SUE,
426
- {
427
- [_e]: _s,
428
- [_hE]: 503,
429
- },
430
- [_M, _C],
431
- [0, 0],
432
- ];
399
+ var ServiceUnavailableException = [-3, n0, _SUE, { [_e]: _s, [_hE]: 503 }, [_M, _C], [0, 0]];
433
400
  schema.TypeRegistry.for(n0).registerError(ServiceUnavailableException, ServiceUnavailableException$1);
434
401
  var SessionInformation = [3, n0, _SI, 0, [_Ch], [() => ServerChallenge]];
435
- var SessionNotFoundException = [
436
- -3,
437
- n0,
438
- _SNFE,
439
- {
440
- [_e]: _c,
441
- [_hE]: 400,
442
- },
443
- [_M, _C],
444
- [0, 0],
445
- ];
402
+ var SessionNotFoundException = [-3, n0, _SNFE, { [_e]: _c, [_hE]: 400 }, [_M, _C], [0, 0]];
446
403
  schema.TypeRegistry.for(n0).registerError(SessionNotFoundException, SessionNotFoundException$1);
447
404
  var StartFaceLivenessSessionRequest = [
448
405
  3,
@@ -451,30 +408,10 @@ var StartFaceLivenessSessionRequest = [
451
408
  0,
452
409
  [_SIe, _VW, _VH, _CV, _LRS],
453
410
  [
454
- [
455
- 0,
456
- {
457
- [_hH]: _xarslsi,
458
- },
459
- ],
460
- [
461
- 0,
462
- {
463
- [_hH]: _xarslvw,
464
- },
465
- ],
466
- [
467
- 0,
468
- {
469
- [_hH]: _xarslvh,
470
- },
471
- ],
472
- [
473
- 0,
474
- {
475
- [_hH]: _xarslcv,
476
- },
477
- ],
411
+ [0, { [_hH]: _xarslsi }],
412
+ [0, { [_hH]: _xarslvw }],
413
+ [0, { [_hH]: _xarslvh }],
414
+ [0, { [_hH]: _xarslcv }],
478
415
  [() => LivenessRequestStream, 16],
479
416
  ],
480
417
  ];
@@ -485,39 +422,14 @@ var StartFaceLivenessSessionResponse = [
485
422
  0,
486
423
  [_SIe, _LRSi],
487
424
  [
488
- [
489
- 0,
490
- {
491
- [_hH]: _xarslsi,
492
- },
493
- ],
425
+ [0, { [_hH]: _xarslsi }],
494
426
  [() => LivenessResponseStream, 16],
495
427
  ],
496
428
  ];
497
429
  var TargetFace = [3, n0, _TF, 0, [_BB, _FDITPST, _FDITPET], [() => BoundingBox, 1, 1]];
498
- var ThrottlingException = [
499
- -3,
500
- n0,
501
- _TE,
502
- {
503
- [_e]: _c,
504
- [_hE]: 429,
505
- },
506
- [_M, _C],
507
- [0, 0],
508
- ];
430
+ var ThrottlingException = [-3, n0, _TE, { [_e]: _c, [_hE]: 429 }, [_M, _C], [0, 0]];
509
431
  schema.TypeRegistry.for(n0).registerError(ThrottlingException, ThrottlingException$1);
510
- var ValidationException = [
511
- -3,
512
- n0,
513
- _VE,
514
- {
515
- [_e]: _c,
516
- [_hE]: 400,
517
- },
518
- [_M, _C],
519
- [0, 0],
520
- ];
432
+ var ValidationException = [-3, n0, _VE, { [_e]: _c, [_hE]: 400 }, [_M, _C], [0, 0]];
521
433
  schema.TypeRegistry.for(n0).registerError(ValidationException, ValidationException$1);
522
434
  var VideoEvent = [3, n0, _VEi, 0, [_VC, _TM], [21, 1]];
523
435
  var RekognitionStreamingServiceException = [
@@ -542,9 +454,7 @@ var LivenessRequestStream = [
542
454
  3,
543
455
  n0,
544
456
  _LRS,
545
- {
546
- [_st]: 1,
547
- },
457
+ { [_st]: 1 },
548
458
  [_VEi, _CSIE],
549
459
  [() => VideoEvent, () => ClientSessionInformationEvent],
550
460
  ];
@@ -552,9 +462,7 @@ var LivenessResponseStream = [
552
462
  3,
553
463
  n0,
554
464
  _LRSi,
555
- {
556
- [_st]: 1,
557
- },
465
+ { [_st]: 1 },
558
466
  [_SSIE, _DE, _CE, _VE, _ISE, _TE, _SQEE, _SUE],
559
467
  [
560
468
  () => ServerSessionInformationEvent,
@@ -579,9 +487,7 @@ var StartFaceLivenessSession = [
579
487
  9,
580
488
  n0,
581
489
  _SFLS,
582
- {
583
- [_h]: ["POST", "/start-face-liveness-session", 200],
584
- },
490
+ { [_h]: ["POST", "/start-face-liveness-session", 200] },
585
491
  () => StartFaceLivenessSessionRequest,
586
492
  () => StartFaceLivenessSessionResponse,
587
493
  ];
@@ -10,11 +10,11 @@ const config_resolver_1 = require("@smithy/config-resolver");
10
10
  const eventstream_serde_browser_1 = require("@smithy/eventstream-serde-browser");
11
11
  const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
12
12
  const invalid_dependency_1 = require("@smithy/invalid-dependency");
13
+ const smithy_client_1 = require("@smithy/smithy-client");
13
14
  const util_body_length_browser_1 = require("@smithy/util-body-length-browser");
15
+ const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
14
16
  const util_retry_1 = require("@smithy/util-retry");
15
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
- const smithy_client_1 = require("@smithy/smithy-client");
17
- const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
18
18
  const getRuntimeConfig = (config) => {
19
19
  const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
20
20
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
@@ -13,14 +13,13 @@ const hash_node_1 = require("@smithy/hash-node");
13
13
  const middleware_retry_1 = require("@smithy/middleware-retry");
14
14
  const node_config_provider_1 = require("@smithy/node-config-provider");
15
15
  const node_http_handler_1 = require("@smithy/node-http-handler");
16
+ const smithy_client_1 = require("@smithy/smithy-client");
16
17
  const util_body_length_node_1 = require("@smithy/util-body-length-node");
18
+ const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
17
19
  const util_retry_1 = require("@smithy/util-retry");
18
20
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
19
- const smithy_client_1 = require("@smithy/smithy-client");
20
- const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
21
- const smithy_client_2 = require("@smithy/smithy-client");
22
21
  const getRuntimeConfig = (config) => {
23
- (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
22
+ (0, smithy_client_1.emitWarningIfUnsupportedVersion)(process.version);
24
23
  const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
25
24
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
26
25
  const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
@@ -11,7 +11,9 @@ const getRuntimeConfig = (config) => {
11
11
  ...config,
12
12
  runtime: "react-native",
13
13
  eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ??
14
- (() => ({ handle: (0, invalid_dependency_1.invalidFunction)("event stream request is not supported in ReactNative.") })),
14
+ (() => ({
15
+ handle: (0, invalid_dependency_1.invalidFunction)("event stream request is not supported in ReactNative."),
16
+ })),
15
17
  sha256: config?.sha256 ?? sha256_js_1.Sha256,
16
18
  };
17
19
  };
@@ -3,14 +3,14 @@ import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middlewa
3
3
  import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
4
4
  import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
5
5
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
6
- import { resolveWebSocketConfig } from "@aws-sdk/middleware-websocket";
6
+ import { resolveWebSocketConfig, } from "@aws-sdk/middleware-websocket";
7
7
  import { resolveRegionConfig } from "@smithy/config-resolver";
8
8
  import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
9
9
  import { getSchemaSerdePlugin } from "@smithy/core/schema";
10
10
  import { resolveEventStreamSerdeConfig, } from "@smithy/eventstream-serde-config-resolver";
11
11
  import { getContentLengthPlugin } from "@smithy/middleware-content-length";
12
- import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
13
- import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
12
+ import { resolveEndpointConfig, } from "@smithy/middleware-endpoint";
13
+ import { getRetryPlugin, resolveRetryConfig, } from "@smithy/middleware-retry";
14
14
  import { Client as __Client, } from "@smithy/smithy-client";
15
15
  import { defaultRekognitionStreamingHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
16
16
  import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
@@ -6,11 +6,11 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smit
6
6
  import { eventStreamSerdeProvider } from "@smithy/eventstream-serde-browser";
7
7
  import { FetchHttpHandler as HttpRequestHandler, streamCollector } from "@smithy/fetch-http-handler";
8
8
  import { invalidProvider } from "@smithy/invalid-dependency";
9
+ import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
9
10
  import { calculateBodyLength } from "@smithy/util-body-length-browser";
11
+ import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
10
12
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry";
11
13
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
12
- import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
13
- import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
14
14
  export const getRuntimeConfig = (config) => {
15
15
  const defaultsMode = resolveDefaultsModeConfig(config);
16
16
  const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
@@ -9,12 +9,11 @@ import { Hash } from "@smithy/hash-node";
9
9
  import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
10
10
  import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
11
11
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
12
+ import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/smithy-client";
12
13
  import { calculateBodyLength } from "@smithy/util-body-length-node";
14
+ import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
13
15
  import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
14
16
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
- import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
16
- import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
17
- import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client";
18
17
  export const getRuntimeConfig = (config) => {
19
18
  emitWarningIfUnsupportedVersion(process.version);
20
19
  const defaultsMode = resolveDefaultsModeConfig(config);
@@ -8,7 +8,9 @@ export const getRuntimeConfig = (config) => {
8
8
  ...config,
9
9
  runtime: "react-native",
10
10
  eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ??
11
- (() => ({ handle: invalidFunction("event stream request is not supported in ReactNative.") })),
11
+ (() => ({
12
+ handle: invalidFunction("event stream request is not supported in ReactNative."),
13
+ })),
12
14
  sha256: config?.sha256 ?? Sha256,
13
15
  };
14
16
  };
@@ -91,17 +91,7 @@ const n0 = "com.amazonaws.rekognitionstreaming";
91
91
  import { TypeRegistry } from "@smithy/core/schema";
92
92
  import { AccessDeniedException as __AccessDeniedException, InternalServerException as __InternalServerException, ServiceQuotaExceededException as __ServiceQuotaExceededException, ServiceUnavailableException as __ServiceUnavailableException, SessionNotFoundException as __SessionNotFoundException, ThrottlingException as __ThrottlingException, ValidationException as __ValidationException, } from "../models/errors";
93
93
  import { RekognitionStreamingServiceException as __RekognitionStreamingServiceException } from "../models/RekognitionStreamingServiceException";
94
- export var AccessDeniedException = [
95
- -3,
96
- n0,
97
- _ADE,
98
- {
99
- [_e]: _c,
100
- [_hE]: 403,
101
- },
102
- [_M, _C],
103
- [0, 0],
104
- ];
94
+ export var AccessDeniedException = [-3, n0, _ADE, { [_e]: _c, [_hE]: 403 }, [_M, _C], [0, 0]];
105
95
  TypeRegistry.for(n0).registerError(AccessDeniedException, __AccessDeniedException);
106
96
  export var BoundingBox = [3, n0, _BB, 0, [_W, _H, _L, _T], [1, 1, 1, 1]];
107
97
  export var ChallengeConfig = [
@@ -158,17 +148,7 @@ export var FaceMovementServerChallenge = [
158
148
  ];
159
149
  export var FreshnessColor = [3, n0, _FC, 0, [_RGB], [64 | 1]];
160
150
  export var InitialFace = [3, n0, _IF, 0, [_BB, _IFDT], [() => BoundingBox, 1]];
161
- export var InternalServerException = [
162
- -3,
163
- n0,
164
- _ISE,
165
- {
166
- [_e]: _s,
167
- [_hE]: 500,
168
- },
169
- [_M, _C],
170
- [0, 0],
171
- ];
151
+ export var InternalServerException = [-3, n0, _ISE, { [_e]: _s, [_hE]: 500 }, [_M, _C], [0, 0]];
172
152
  TypeRegistry.for(n0).registerError(InternalServerException, __InternalServerException);
173
153
  export var OvalParameters = [3, n0, _OP, 0, [_W, _H, _CX, _CY], [1, 1, 1, 1]];
174
154
  export var ServerSessionInformationEvent = [3, n0, _SSIE, 0, [_SI], [() => SessionInformation]];
@@ -176,38 +156,15 @@ export var ServiceQuotaExceededException = [
176
156
  -3,
177
157
  n0,
178
158
  _SQEE,
179
- {
180
- [_e]: _c,
181
- [_hE]: 429,
182
- },
159
+ { [_e]: _c, [_hE]: 429 },
183
160
  [_M, _C],
184
161
  [0, 0],
185
162
  ];
186
163
  TypeRegistry.for(n0).registerError(ServiceQuotaExceededException, __ServiceQuotaExceededException);
187
- export var ServiceUnavailableException = [
188
- -3,
189
- n0,
190
- _SUE,
191
- {
192
- [_e]: _s,
193
- [_hE]: 503,
194
- },
195
- [_M, _C],
196
- [0, 0],
197
- ];
164
+ export var ServiceUnavailableException = [-3, n0, _SUE, { [_e]: _s, [_hE]: 503 }, [_M, _C], [0, 0]];
198
165
  TypeRegistry.for(n0).registerError(ServiceUnavailableException, __ServiceUnavailableException);
199
166
  export var SessionInformation = [3, n0, _SI, 0, [_Ch], [() => ServerChallenge]];
200
- export var SessionNotFoundException = [
201
- -3,
202
- n0,
203
- _SNFE,
204
- {
205
- [_e]: _c,
206
- [_hE]: 400,
207
- },
208
- [_M, _C],
209
- [0, 0],
210
- ];
167
+ export var SessionNotFoundException = [-3, n0, _SNFE, { [_e]: _c, [_hE]: 400 }, [_M, _C], [0, 0]];
211
168
  TypeRegistry.for(n0).registerError(SessionNotFoundException, __SessionNotFoundException);
212
169
  export var StartFaceLivenessSessionRequest = [
213
170
  3,
@@ -216,30 +173,10 @@ export var StartFaceLivenessSessionRequest = [
216
173
  0,
217
174
  [_SIe, _VW, _VH, _CV, _LRS],
218
175
  [
219
- [
220
- 0,
221
- {
222
- [_hH]: _xarslsi,
223
- },
224
- ],
225
- [
226
- 0,
227
- {
228
- [_hH]: _xarslvw,
229
- },
230
- ],
231
- [
232
- 0,
233
- {
234
- [_hH]: _xarslvh,
235
- },
236
- ],
237
- [
238
- 0,
239
- {
240
- [_hH]: _xarslcv,
241
- },
242
- ],
176
+ [0, { [_hH]: _xarslsi }],
177
+ [0, { [_hH]: _xarslvw }],
178
+ [0, { [_hH]: _xarslvh }],
179
+ [0, { [_hH]: _xarslcv }],
243
180
  [() => LivenessRequestStream, 16],
244
181
  ],
245
182
  ];
@@ -250,42 +187,16 @@ export var StartFaceLivenessSessionResponse = [
250
187
  0,
251
188
  [_SIe, _LRSi],
252
189
  [
253
- [
254
- 0,
255
- {
256
- [_hH]: _xarslsi,
257
- },
258
- ],
190
+ [0, { [_hH]: _xarslsi }],
259
191
  [() => LivenessResponseStream, 16],
260
192
  ],
261
193
  ];
262
194
  export var TargetFace = [3, n0, _TF, 0, [_BB, _FDITPST, _FDITPET], [() => BoundingBox, 1, 1]];
263
- export var ThrottlingException = [
264
- -3,
265
- n0,
266
- _TE,
267
- {
268
- [_e]: _c,
269
- [_hE]: 429,
270
- },
271
- [_M, _C],
272
- [0, 0],
273
- ];
195
+ export var ThrottlingException = [-3, n0, _TE, { [_e]: _c, [_hE]: 429 }, [_M, _C], [0, 0]];
274
196
  TypeRegistry.for(n0).registerError(ThrottlingException, __ThrottlingException);
275
- export var ValidationException = [
276
- -3,
277
- n0,
278
- _VE,
279
- {
280
- [_e]: _c,
281
- [_hE]: 400,
282
- },
283
- [_M, _C],
284
- [0, 0],
285
- ];
197
+ export var ValidationException = [-3, n0, _VE, { [_e]: _c, [_hE]: 400 }, [_M, _C], [0, 0]];
286
198
  TypeRegistry.for(n0).registerError(ValidationException, __ValidationException);
287
199
  export var VideoEvent = [3, n0, _VEi, 0, [_VC, _TM], [21, 1]];
288
- export var __Unit = "unit";
289
200
  export var RekognitionStreamingServiceException = [
290
201
  -3,
291
202
  _sm,
@@ -309,9 +220,7 @@ export var LivenessRequestStream = [
309
220
  3,
310
221
  n0,
311
222
  _LRS,
312
- {
313
- [_st]: 1,
314
- },
223
+ { [_st]: 1 },
315
224
  [_VEi, _CSIE],
316
225
  [() => VideoEvent, () => ClientSessionInformationEvent],
317
226
  ];
@@ -319,9 +228,7 @@ export var LivenessResponseStream = [
319
228
  3,
320
229
  n0,
321
230
  _LRSi,
322
- {
323
- [_st]: 1,
324
- },
231
+ { [_st]: 1 },
325
232
  [_SSIE, _DE, _CE, _VE, _ISE, _TE, _SQEE, _SUE],
326
233
  [
327
234
  () => ServerSessionInformationEvent,
@@ -346,9 +253,7 @@ export var StartFaceLivenessSession = [
346
253
  9,
347
254
  n0,
348
255
  _SFLS,
349
- {
350
- [_h]: ["POST", "/start-face-liveness-session", 200],
351
- },
256
+ { [_h]: ["POST", "/start-face-liveness-session", 200] },
352
257
  () => StartFaceLivenessSessionRequest,
353
258
  () => StartFaceLivenessSessionResponse,
354
259
  ];
@@ -1,4 +1,4 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
2
  import { StartFaceLivenessSessionCommandInput, StartFaceLivenessSessionCommandOutput } from "./commands/StartFaceLivenessSessionCommand";
3
3
  import { RekognitionStreamingClient } from "./RekognitionStreamingClient";
4
4
  export interface RekognitionStreaming {
@@ -1,19 +1,19 @@
1
- import { EventStreamInputConfig, EventStreamResolvedConfig } from "@aws-sdk/middleware-eventstream";
2
- import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
3
- import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
4
- import { WebSocketInputConfig, WebSocketResolvedConfig } from "@aws-sdk/middleware-websocket";
1
+ import { type EventStreamInputConfig, type EventStreamResolvedConfig } from "@aws-sdk/middleware-eventstream";
2
+ import { type HostHeaderInputConfig, type HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
3
+ import { type UserAgentInputConfig, type UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
4
+ import { type WebSocketInputConfig, type WebSocketResolvedConfig } from "@aws-sdk/middleware-websocket";
5
5
  import { EventStreamPayloadHandlerProvider as __EventStreamPayloadHandlerProvider } from "@aws-sdk/types";
6
- import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver";
7
- import { EventStreamSerdeInputConfig, EventStreamSerdeResolvedConfig } from "@smithy/eventstream-serde-config-resolver";
8
- import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint";
9
- import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
10
- import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
11
- import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
12
- import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, ClientProtocol, Decoder as __Decoder, Encoder as __Encoder, EventStreamSerdeProvider as __EventStreamSerdeProvider, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, HttpRequest, HttpResponse, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
13
- import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
6
+ import { type RegionInputConfig, type RegionResolvedConfig } from "@smithy/config-resolver";
7
+ import { type EventStreamSerdeInputConfig, type EventStreamSerdeResolvedConfig } from "@smithy/eventstream-serde-config-resolver";
8
+ import { type EndpointInputConfig, type EndpointResolvedConfig } from "@smithy/middleware-endpoint";
9
+ import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/middleware-retry";
10
+ import type { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
11
+ import { type DefaultsMode as __DefaultsMode, type SmithyConfiguration as __SmithyConfiguration, type SmithyResolvedConfiguration as __SmithyResolvedConfiguration, Client as __Client } from "@smithy/smithy-client";
12
+ import { type BodyLengthCalculator as __BodyLengthCalculator, type CheckOptionalClientConfig as __CheckOptionalClientConfig, type ChecksumConstructor as __ChecksumConstructor, type ClientProtocol, type Decoder as __Decoder, type Encoder as __Encoder, type EventStreamSerdeProvider as __EventStreamSerdeProvider, type HashConstructor as __HashConstructor, type HttpHandlerOptions as __HttpHandlerOptions, type HttpRequest, type HttpResponse, type Logger as __Logger, type Provider as __Provider, type StreamCollector as __StreamCollector, type UrlParser as __UrlParser, AwsCredentialIdentityProvider, Provider, UserAgent as __UserAgent } from "@smithy/types";
13
+ import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
14
14
  import { StartFaceLivenessSessionCommandInput, StartFaceLivenessSessionCommandOutput } from "./commands/StartFaceLivenessSessionCommand";
15
15
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
16
- import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
16
+ import { type RuntimeExtension, type RuntimeExtensionsConfig } from "./runtimeExtensions";
17
17
  export { __Client };
18
18
  /**
19
19
  * @public
@@ -1,5 +1,5 @@
1
- import { AwsCredentialIdentity, AwsCredentialIdentityProvider, HttpAuthScheme } from "@smithy/types";
2
- import { RekognitionStreamingHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
1
+ import { type HttpAuthScheme, AwsCredentialIdentity, AwsCredentialIdentityProvider } from "@smithy/types";
2
+ import type { RekognitionStreamingHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
3
3
  /**
4
4
  * @internal
5
5
  */
@@ -1,6 +1,6 @@
1
1
  import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core";
2
- import { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider } from "@smithy/types";
3
- import { RekognitionStreamingClientResolvedConfig } from "../RekognitionStreamingClient";
2
+ import type { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider } from "@smithy/types";
3
+ import { type RekognitionStreamingClientResolvedConfig } from "../RekognitionStreamingClient";
4
4
  /**
5
5
  * @internal
6
6
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
- import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { StartFaceLivenessSessionRequest, StartFaceLivenessSessionResponse } from "../models/models_0";
4
- import { RekognitionStreamingClientResolvedConfig } from "../RekognitionStreamingClient";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { StartFaceLivenessSessionRequest, StartFaceLivenessSessionResponse } from "../models/models_0";
4
+ import type { RekognitionStreamingClientResolvedConfig } from "../RekognitionStreamingClient";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,4 +1,4 @@
1
- import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
1
+ import type { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
2
2
  /**
3
3
  * @public
4
4
  */
@@ -8,10 +8,19 @@ export interface ClientInputEndpointParameters {
8
8
  useFipsEndpoint?: boolean | undefined | Provider<boolean | undefined>;
9
9
  endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
10
10
  }
11
+ /**
12
+ * @public
13
+ */
11
14
  export type ClientResolvedEndpointParameters = Omit<ClientInputEndpointParameters, "endpoint"> & {
12
15
  defaultSigningName: string;
13
16
  };
17
+ /**
18
+ * @internal
19
+ */
14
20
  export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientResolvedEndpointParameters;
21
+ /**
22
+ * @internal
23
+ */
15
24
  export declare const commonParams: {
16
25
  readonly UseFIPS: {
17
26
  readonly type: "builtInParams";
@@ -30,6 +39,9 @@ export declare const commonParams: {
30
39
  readonly name: "useDualstackEndpoint";
31
40
  };
32
41
  };
42
+ /**
43
+ * @internal
44
+ */
33
45
  export interface EndpointParameters extends __EndpointParameters {
34
46
  Region?: string | undefined;
35
47
  UseDualStack?: boolean | undefined;
@@ -1,5 +1,8 @@
1
- import { EndpointV2, Logger } from "@smithy/types";
2
- import { EndpointParameters } from "./EndpointParameters";
1
+ import type { EndpointV2, Logger } from "@smithy/types";
2
+ import type { EndpointParameters } from "./EndpointParameters";
3
+ /**
4
+ * @internal
5
+ */
3
6
  export declare const defaultEndpointResolver: (endpointParams: EndpointParameters, context?: {
4
7
  logger?: Logger;
5
8
  }) => EndpointV2;
@@ -1,7 +1,7 @@
1
- import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
2
- import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
3
- import { DefaultExtensionConfiguration } from "@smithy/types";
4
- import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
1
+ import type { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
2
+ import type { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
3
+ import type { DefaultExtensionConfiguration } from "@smithy/types";
4
+ import type { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
5
5
  /**
6
6
  * @internal
7
7
  */
@@ -1,4 +1,4 @@
1
- import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@smithy/smithy-client";
1
+ import { type ServiceExceptionOptions as __ServiceExceptionOptions, ServiceException as __ServiceException } from "@smithy/smithy-client";
2
2
  export type { __ServiceExceptionOptions };
3
3
  export { __ServiceException };
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
1
+ import type { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
2
  import { RekognitionStreamingServiceException as __BaseException } from "./RekognitionStreamingServiceException";
3
3
  /**
4
4
  * <p>Occurs when the client isn't authorized to perform the action.</p>
@@ -1,5 +1,5 @@
1
1
  import { WebSocketFetchHandler as WebSocketRequestHandler } from "@aws-sdk/middleware-websocket";
2
- import { RekognitionStreamingClientConfig } from "./RekognitionStreamingClient";
2
+ import type { RekognitionStreamingClientConfig } from "./RekognitionStreamingClient";
3
3
  /**
4
4
  * @internal
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";
2
- import { RekognitionStreamingClientConfig } from "./RekognitionStreamingClient";
2
+ import type { RekognitionStreamingClientConfig } from "./RekognitionStreamingClient";
3
3
  /**
4
4
  * @internal
5
5
  */
@@ -1,4 +1,4 @@
1
- import { RekognitionStreamingClientConfig } from "./RekognitionStreamingClient";
1
+ import type { RekognitionStreamingClientConfig } from "./RekognitionStreamingClient";
2
2
  /**
3
3
  * @internal
4
4
  */
@@ -1,4 +1,4 @@
1
- import { RekognitionStreamingClientConfig } from "./RekognitionStreamingClient";
1
+ import type { RekognitionStreamingClientConfig } from "./RekognitionStreamingClient";
2
2
  /**
3
3
  * @internal
4
4
  */
@@ -1,4 +1,4 @@
1
- import { RekognitionStreamingExtensionConfiguration } from "./extensionConfiguration";
1
+ import type { RekognitionStreamingExtensionConfiguration } from "./extensionConfiguration";
2
2
  /**
3
3
  * @public
4
4
  */
@@ -1,4 +1,4 @@
1
- import { StaticErrorSchema, StaticListSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
1
+ import type { StaticErrorSchema, StaticListSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
2
2
  export declare var AccessDeniedException: StaticErrorSchema;
3
3
  export declare var BoundingBox: StaticStructureSchema;
4
4
  export declare var ChallengeConfig: StaticStructureSchema;
@@ -26,7 +26,6 @@ export declare var TargetFace: StaticStructureSchema;
26
26
  export declare var ThrottlingException: StaticErrorSchema;
27
27
  export declare var ValidationException: StaticErrorSchema;
28
28
  export declare var VideoEvent: StaticStructureSchema;
29
- export declare var __Unit: "unit";
30
29
  export declare var RekognitionStreamingServiceException: StaticErrorSchema;
31
30
  export declare var ColorComponentList: number;
32
31
  export declare var ColorSequences: StaticListSchema;
@@ -33,13 +33,12 @@ import {
33
33
  } from "@smithy/middleware-retry";
34
34
  import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
35
35
  import {
36
- Client as __Client,
37
36
  DefaultsMode as __DefaultsMode,
38
37
  SmithyConfiguration as __SmithyConfiguration,
39
38
  SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
39
+ Client as __Client,
40
40
  } from "@smithy/smithy-client";
41
41
  import {
42
- AwsCredentialIdentityProvider,
43
42
  BodyLengthCalculator as __BodyLengthCalculator,
44
43
  CheckOptionalClientConfig as __CheckOptionalClientConfig,
45
44
  ChecksumConstructor as __ChecksumConstructor,
@@ -53,9 +52,10 @@ import {
53
52
  HttpResponse,
54
53
  Logger as __Logger,
55
54
  Provider as __Provider,
56
- Provider,
57
55
  StreamCollector as __StreamCollector,
58
56
  UrlParser as __UrlParser,
57
+ AwsCredentialIdentityProvider,
58
+ Provider,
59
59
  UserAgent as __UserAgent,
60
60
  } from "@smithy/types";
61
61
  import {
@@ -1,7 +1,7 @@
1
1
  import {
2
+ HttpAuthScheme,
2
3
  AwsCredentialIdentity,
3
4
  AwsCredentialIdentityProvider,
4
- HttpAuthScheme,
5
5
  } from "@smithy/types";
6
6
  import { RekognitionStreamingHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
7
7
  export interface HttpAuthExtensionConfiguration {
@@ -1,6 +1,6 @@
1
1
  import {
2
- ServiceException as __ServiceException,
3
2
  ServiceExceptionOptions as __ServiceExceptionOptions,
3
+ ServiceException as __ServiceException,
4
4
  } from "@smithy/smithy-client";
5
5
  export { __ServiceExceptionOptions };
6
6
  export { __ServiceException };
@@ -31,7 +31,6 @@ export declare var TargetFace: StaticStructureSchema;
31
31
  export declare var ThrottlingException: StaticErrorSchema;
32
32
  export declare var ValidationException: StaticErrorSchema;
33
33
  export declare var VideoEvent: StaticStructureSchema;
34
- export declare var __Unit: "unit";
35
34
  export declare var RekognitionStreamingServiceException: StaticErrorSchema;
36
35
  export declare var ColorComponentList: number;
37
36
  export declare var ColorSequences: StaticListSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
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.943.0",
4
+ "version": "3.947.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-rekognitionstreaming",
@@ -11,7 +11,8 @@
11
11
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
12
12
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
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 --solo rekognitionstreaming",
15
+ "test:index": "tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"
15
16
  },
16
17
  "main": "./dist-cjs/index.js",
17
18
  "types": "./dist-types/index.d.ts",
@@ -20,22 +21,22 @@
20
21
  "dependencies": {
21
22
  "@aws-crypto/sha256-browser": "5.2.0",
22
23
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.943.0",
24
- "@aws-sdk/credential-provider-node": "3.943.0",
24
+ "@aws-sdk/core": "3.947.0",
25
+ "@aws-sdk/credential-provider-node": "3.947.0",
25
26
  "@aws-sdk/eventstream-handler-node": "3.936.0",
26
27
  "@aws-sdk/middleware-eventstream": "3.936.0",
27
28
  "@aws-sdk/middleware-host-header": "3.936.0",
28
29
  "@aws-sdk/middleware-logger": "3.936.0",
29
30
  "@aws-sdk/middleware-recursion-detection": "3.936.0",
30
- "@aws-sdk/middleware-user-agent": "3.943.0",
31
+ "@aws-sdk/middleware-user-agent": "3.947.0",
31
32
  "@aws-sdk/middleware-websocket": "3.936.0",
32
33
  "@aws-sdk/region-config-resolver": "3.936.0",
33
34
  "@aws-sdk/types": "3.936.0",
34
35
  "@aws-sdk/util-endpoints": "3.936.0",
35
36
  "@aws-sdk/util-user-agent-browser": "3.936.0",
36
- "@aws-sdk/util-user-agent-node": "3.943.0",
37
+ "@aws-sdk/util-user-agent-node": "3.947.0",
37
38
  "@smithy/config-resolver": "^4.4.3",
38
- "@smithy/core": "^3.18.5",
39
+ "@smithy/core": "^3.18.7",
39
40
  "@smithy/eventstream-serde-browser": "^4.2.5",
40
41
  "@smithy/eventstream-serde-config-resolver": "^4.3.5",
41
42
  "@smithy/eventstream-serde-node": "^4.2.5",
@@ -43,21 +44,21 @@
43
44
  "@smithy/hash-node": "^4.2.5",
44
45
  "@smithy/invalid-dependency": "^4.2.5",
45
46
  "@smithy/middleware-content-length": "^4.2.5",
46
- "@smithy/middleware-endpoint": "^4.3.12",
47
- "@smithy/middleware-retry": "^4.4.12",
47
+ "@smithy/middleware-endpoint": "^4.3.14",
48
+ "@smithy/middleware-retry": "^4.4.14",
48
49
  "@smithy/middleware-serde": "^4.2.6",
49
50
  "@smithy/middleware-stack": "^4.2.5",
50
51
  "@smithy/node-config-provider": "^4.3.5",
51
52
  "@smithy/node-http-handler": "^4.4.5",
52
53
  "@smithy/protocol-http": "^5.3.5",
53
- "@smithy/smithy-client": "^4.9.8",
54
+ "@smithy/smithy-client": "^4.9.10",
54
55
  "@smithy/types": "^4.9.0",
55
56
  "@smithy/url-parser": "^4.2.5",
56
57
  "@smithy/util-base64": "^4.3.0",
57
58
  "@smithy/util-body-length-browser": "^4.2.0",
58
59
  "@smithy/util-body-length-node": "^4.2.1",
59
- "@smithy/util-defaults-mode-browser": "^4.3.11",
60
- "@smithy/util-defaults-mode-node": "^4.2.14",
60
+ "@smithy/util-defaults-mode-browser": "^4.3.13",
61
+ "@smithy/util-defaults-mode-node": "^4.2.16",
61
62
  "@smithy/util-endpoints": "^3.2.5",
62
63
  "@smithy/util-middleware": "^4.2.5",
63
64
  "@smithy/util-retry": "^4.2.5",