@aws-sdk/client-rekognitionstreaming 3.956.0 → 3.958.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -6
- package/dist-cjs/auth/httpAuthSchemeProvider.js +3 -4
- package/dist-cjs/index.js +122 -124
- package/dist-cjs/runtimeConfig.browser.js +3 -3
- package/dist-cjs/runtimeConfig.js +2 -4
- package/dist-cjs/runtimeConfig.native.js +3 -4
- package/dist-es/auth/httpAuthSchemeProvider.js +3 -4
- package/dist-es/commands/StartFaceLivenessSessionCommand.js +1 -1
- package/dist-es/runtimeConfig.browser.js +4 -4
- package/dist-es/runtimeConfig.js +4 -6
- package/dist-es/runtimeConfig.native.js +3 -4
- package/dist-es/schemas/schemas_0.js +122 -124
- package/package.json +16 -16
package/README.md
CHANGED
|
@@ -30,10 +30,8 @@ operations for Rekognition Face Liveness.</p>
|
|
|
30
30
|
</ul>
|
|
31
31
|
|
|
32
32
|
## Installing
|
|
33
|
-
|
|
34
33
|
To install this package, simply type add or install @aws-sdk/client-rekognitionstreaming
|
|
35
34
|
using your favorite package manager:
|
|
36
|
-
|
|
37
35
|
- `npm install @aws-sdk/client-rekognitionstreaming`
|
|
38
36
|
- `yarn add @aws-sdk/client-rekognitionstreaming`
|
|
39
37
|
- `pnpm add @aws-sdk/client-rekognitionstreaming`
|
|
@@ -69,9 +67,7 @@ To send a request, you:
|
|
|
69
67
|
// a client can be shared by different commands.
|
|
70
68
|
const client = new RekognitionStreamingClient({ region: "REGION" });
|
|
71
69
|
|
|
72
|
-
const params = {
|
|
73
|
-
/** input parameters */
|
|
74
|
-
};
|
|
70
|
+
const params = { /** input parameters */ };
|
|
75
71
|
const command = new StartFaceLivenessSessionCommand(params);
|
|
76
72
|
```
|
|
77
73
|
|
|
@@ -230,5 +226,4 @@ StartFaceLivenessSession
|
|
|
230
226
|
</summary>
|
|
231
227
|
|
|
232
228
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/rekognitionstreaming/command/StartFaceLivenessSessionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rekognitionstreaming/Interface/StartFaceLivenessSessionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rekognitionstreaming/Interface/StartFaceLivenessSessionCommandOutput/)
|
|
233
|
-
|
|
234
229
|
</details>
|
|
@@ -6,10 +6,9 @@ const util_middleware_1 = require("@smithy/util-middleware");
|
|
|
6
6
|
const defaultRekognitionStreamingHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
7
7
|
return {
|
|
8
8
|
operation: (0, util_middleware_1.getSmithyContext)(context).operation,
|
|
9
|
-
region:
|
|
10
|
-
(
|
|
11
|
-
|
|
12
|
-
})(),
|
|
9
|
+
region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
|
|
10
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
11
|
+
})(),
|
|
13
12
|
};
|
|
14
13
|
};
|
|
15
14
|
exports.defaultRekognitionStreamingHttpAuthSchemeParametersProvider = defaultRekognitionStreamingHttpAuthSchemeParametersProvider;
|
package/dist-cjs/index.js
CHANGED
|
@@ -326,177 +326,175 @@ 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$ = [-3, n0, _ADE,
|
|
329
|
+
var AccessDeniedException$ = [-3, n0, _ADE,
|
|
330
|
+
{ [_e]: _c, [_hE]: 403 },
|
|
331
|
+
[_M, _C],
|
|
332
|
+
[0, 0]
|
|
333
|
+
];
|
|
330
334
|
schema.TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
|
|
331
|
-
var BoundingBox$ = [3, n0, _BB,
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
335
|
+
var BoundingBox$ = [3, n0, _BB,
|
|
336
|
+
0,
|
|
337
|
+
[_W, _H, _L, _T],
|
|
338
|
+
[1, 1, 1, 1]
|
|
339
|
+
];
|
|
340
|
+
var ChallengeConfig$ = [3, n0, _CC,
|
|
336
341
|
0,
|
|
337
342
|
[_BFDT, _FDTM, _FDT, _FDTMa, _OIT, _OHWR, _OIWT, _OIHT, _FIWT, _FIHT, _OFT],
|
|
338
|
-
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
|
|
339
|
-
];
|
|
340
|
-
var ChallengeEvent$ = [3, n0, _CE,
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
343
|
+
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
|
|
344
|
+
];
|
|
345
|
+
var ChallengeEvent$ = [3, n0, _CE,
|
|
346
|
+
0,
|
|
347
|
+
[_V, _Ty],
|
|
348
|
+
[0, 0]
|
|
349
|
+
];
|
|
350
|
+
var ClientSessionInformationEvent$ = [3, n0, _CSIE,
|
|
351
|
+
0,
|
|
352
|
+
[_Ch],
|
|
353
|
+
[() => ClientChallenge$]
|
|
354
|
+
];
|
|
355
|
+
var ColorDisplayed$ = [3, n0, _CD,
|
|
346
356
|
0,
|
|
347
357
|
[_CCu, _PC, _SN, _CCST],
|
|
348
|
-
[() => FreshnessColor$, () => FreshnessColor$, 1, 1]
|
|
349
|
-
];
|
|
350
|
-
var ColorSequence$ = [3, n0, _CS,
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
358
|
+
[() => FreshnessColor$, () => FreshnessColor$, 1, 1]
|
|
359
|
+
];
|
|
360
|
+
var ColorSequence$ = [3, n0, _CS,
|
|
361
|
+
0,
|
|
362
|
+
[_FC, _DD, _FDD],
|
|
363
|
+
[() => FreshnessColor$, 1, 1]
|
|
364
|
+
];
|
|
365
|
+
var DisconnectionEvent$ = [3, n0, _DE,
|
|
366
|
+
0,
|
|
367
|
+
[_TM],
|
|
368
|
+
[1]
|
|
369
|
+
];
|
|
370
|
+
var FaceMovementAndLightClientChallenge$ = [3, n0, _FMALCC,
|
|
356
371
|
0,
|
|
357
372
|
[_CI, _VST, _VET, _IF, _TF, _CD],
|
|
358
|
-
[0, 1, 1, () => InitialFace$, () => TargetFace$, () => ColorDisplayed$]
|
|
373
|
+
[0, 1, 1, () => InitialFace$, () => TargetFace$, () => ColorDisplayed$]
|
|
359
374
|
];
|
|
360
|
-
var FaceMovementAndLightServerChallenge$ = [
|
|
361
|
-
3,
|
|
362
|
-
n0,
|
|
363
|
-
_FMALSC,
|
|
375
|
+
var FaceMovementAndLightServerChallenge$ = [3, n0, _FMALSC,
|
|
364
376
|
0,
|
|
365
377
|
[_OP, _LCT, _CC, _CSo],
|
|
366
|
-
[() => OvalParameters$, 0, () => ChallengeConfig$, () => ColorSequences]
|
|
378
|
+
[() => OvalParameters$, 0, () => ChallengeConfig$, () => ColorSequences]
|
|
367
379
|
];
|
|
368
|
-
var FaceMovementClientChallenge$ = [
|
|
369
|
-
3,
|
|
370
|
-
n0,
|
|
371
|
-
_FMCC,
|
|
380
|
+
var FaceMovementClientChallenge$ = [3, n0, _FMCC,
|
|
372
381
|
0,
|
|
373
382
|
[_CI, _VST, _VET, _IF, _TF],
|
|
374
|
-
[0, 1, 1, () => InitialFace$, () => TargetFace$]
|
|
383
|
+
[0, 1, 1, () => InitialFace$, () => TargetFace$]
|
|
375
384
|
];
|
|
376
|
-
var FaceMovementServerChallenge$ = [
|
|
377
|
-
3,
|
|
378
|
-
n0,
|
|
379
|
-
_FMSC,
|
|
385
|
+
var FaceMovementServerChallenge$ = [3, n0, _FMSC,
|
|
380
386
|
0,
|
|
381
387
|
[_OP, _CC],
|
|
382
|
-
[() => OvalParameters$, () => ChallengeConfig$]
|
|
388
|
+
[() => OvalParameters$, () => ChallengeConfig$]
|
|
389
|
+
];
|
|
390
|
+
var FreshnessColor$ = [3, n0, _FC,
|
|
391
|
+
0,
|
|
392
|
+
[_RGB],
|
|
393
|
+
[64 | 1]
|
|
394
|
+
];
|
|
395
|
+
var InitialFace$ = [3, n0, _IF,
|
|
396
|
+
0,
|
|
397
|
+
[_BB, _IFDT],
|
|
398
|
+
[() => BoundingBox$, 1]
|
|
399
|
+
];
|
|
400
|
+
var InternalServerException$ = [-3, n0, _ISE,
|
|
401
|
+
{ [_e]: _s, [_hE]: 500 },
|
|
402
|
+
[_M, _C],
|
|
403
|
+
[0, 0]
|
|
383
404
|
];
|
|
384
|
-
var FreshnessColor$ = [3, n0, _FC, 0, [_RGB], [64 | 1]];
|
|
385
|
-
var InitialFace$ = [3, n0, _IF, 0, [_BB, _IFDT], [() => BoundingBox$, 1]];
|
|
386
|
-
var InternalServerException$ = [-3, n0, _ISE, { [_e]: _s, [_hE]: 500 }, [_M, _C], [0, 0]];
|
|
387
405
|
schema.TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
|
|
388
|
-
var OvalParameters$ = [3, n0, _OP,
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
406
|
+
var OvalParameters$ = [3, n0, _OP,
|
|
407
|
+
0,
|
|
408
|
+
[_W, _H, _CX, _CY],
|
|
409
|
+
[1, 1, 1, 1]
|
|
410
|
+
];
|
|
411
|
+
var ServerSessionInformationEvent$ = [3, n0, _SSIE,
|
|
393
412
|
0,
|
|
394
413
|
[_SI],
|
|
395
|
-
[() => SessionInformation$]
|
|
414
|
+
[() => SessionInformation$]
|
|
396
415
|
];
|
|
397
|
-
var ServiceQuotaExceededException$ = [
|
|
398
|
-
-3,
|
|
399
|
-
n0,
|
|
400
|
-
_SQEE,
|
|
416
|
+
var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
|
|
401
417
|
{ [_e]: _c, [_hE]: 429 },
|
|
402
418
|
[_M, _C],
|
|
403
|
-
[0, 0]
|
|
419
|
+
[0, 0]
|
|
404
420
|
];
|
|
405
421
|
schema.TypeRegistry.for(n0).registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
|
|
406
|
-
var ServiceUnavailableException$ = [-3, n0, _SUE,
|
|
422
|
+
var ServiceUnavailableException$ = [-3, n0, _SUE,
|
|
423
|
+
{ [_e]: _s, [_hE]: 503 },
|
|
424
|
+
[_M, _C],
|
|
425
|
+
[0, 0]
|
|
426
|
+
];
|
|
407
427
|
schema.TypeRegistry.for(n0).registerError(ServiceUnavailableException$, ServiceUnavailableException);
|
|
408
|
-
var SessionInformation$ = [3, n0, _SI,
|
|
409
|
-
|
|
428
|
+
var SessionInformation$ = [3, n0, _SI,
|
|
429
|
+
0,
|
|
430
|
+
[_Ch],
|
|
431
|
+
[() => ServerChallenge$]
|
|
432
|
+
];
|
|
433
|
+
var SessionNotFoundException$ = [-3, n0, _SNFE,
|
|
434
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
435
|
+
[_M, _C],
|
|
436
|
+
[0, 0]
|
|
437
|
+
];
|
|
410
438
|
schema.TypeRegistry.for(n0).registerError(SessionNotFoundException$, SessionNotFoundException);
|
|
411
|
-
var StartFaceLivenessSessionRequest$ = [
|
|
412
|
-
3,
|
|
413
|
-
n0,
|
|
414
|
-
_SFLSR,
|
|
439
|
+
var StartFaceLivenessSessionRequest$ = [3, n0, _SFLSR,
|
|
415
440
|
0,
|
|
416
441
|
[_SIe, _VW, _VH, _CV, _LRS],
|
|
417
|
-
[
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
[0, { [_hH]: _xarslvh }],
|
|
421
|
-
[0, { [_hH]: _xarslcv }],
|
|
422
|
-
[() => LivenessRequestStream$, 16],
|
|
423
|
-
],
|
|
424
|
-
];
|
|
425
|
-
var StartFaceLivenessSessionResponse$ = [
|
|
426
|
-
3,
|
|
427
|
-
n0,
|
|
428
|
-
_SFLSRt,
|
|
442
|
+
[[0, { [_hH]: _xarslsi }], [0, { [_hH]: _xarslvw }], [0, { [_hH]: _xarslvh }], [0, { [_hH]: _xarslcv }], [() => LivenessRequestStream$, 16]]
|
|
443
|
+
];
|
|
444
|
+
var StartFaceLivenessSessionResponse$ = [3, n0, _SFLSRt,
|
|
429
445
|
0,
|
|
430
446
|
[_SIe, _LRSi],
|
|
431
|
-
[
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
447
|
+
[[0, { [_hH]: _xarslsi }], [() => LivenessResponseStream$, 16]]
|
|
448
|
+
];
|
|
449
|
+
var TargetFace$ = [3, n0, _TF,
|
|
450
|
+
0,
|
|
451
|
+
[_BB, _FDITPST, _FDITPET],
|
|
452
|
+
[() => BoundingBox$, 1, 1]
|
|
453
|
+
];
|
|
454
|
+
var ThrottlingException$ = [-3, n0, _TE,
|
|
455
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
456
|
+
[_M, _C],
|
|
457
|
+
[0, 0]
|
|
435
458
|
];
|
|
436
|
-
var TargetFace$ = [3, n0, _TF, 0, [_BB, _FDITPST, _FDITPET], [() => BoundingBox$, 1, 1]];
|
|
437
|
-
var ThrottlingException$ = [-3, n0, _TE, { [_e]: _c, [_hE]: 429 }, [_M, _C], [0, 0]];
|
|
438
459
|
schema.TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
|
|
439
|
-
var ValidationException$ = [-3, n0, _VE,
|
|
460
|
+
var ValidationException$ = [-3, n0, _VE,
|
|
461
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
462
|
+
[_M, _C],
|
|
463
|
+
[0, 0]
|
|
464
|
+
];
|
|
440
465
|
schema.TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
|
|
441
|
-
var VideoEvent$ = [3, n0, _VEi,
|
|
442
|
-
var RekognitionStreamingServiceException$ = [
|
|
443
|
-
-3,
|
|
444
|
-
_sm,
|
|
445
|
-
"RekognitionStreamingServiceException",
|
|
466
|
+
var VideoEvent$ = [3, n0, _VEi,
|
|
446
467
|
0,
|
|
447
|
-
[],
|
|
448
|
-
[]
|
|
468
|
+
[_VC, _TM],
|
|
469
|
+
[21, 1]
|
|
449
470
|
];
|
|
471
|
+
var RekognitionStreamingServiceException$ = [-3, _sm, "RekognitionStreamingServiceException", 0, [], []];
|
|
450
472
|
schema.TypeRegistry.for(_sm).registerError(RekognitionStreamingServiceException$, RekognitionStreamingServiceException);
|
|
451
|
-
var ColorSequences = [1, n0, _CSo,
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
_CCl,
|
|
473
|
+
var ColorSequences = [1, n0, _CSo,
|
|
474
|
+
0, () => ColorSequence$
|
|
475
|
+
];
|
|
476
|
+
var ClientChallenge$ = [4, n0, _CCl,
|
|
456
477
|
0,
|
|
457
478
|
[_FMALC, _FMC],
|
|
458
|
-
[() => FaceMovementAndLightClientChallenge$, () => FaceMovementClientChallenge$]
|
|
479
|
+
[() => FaceMovementAndLightClientChallenge$, () => FaceMovementClientChallenge$]
|
|
459
480
|
];
|
|
460
|
-
var LivenessRequestStream$ = [
|
|
461
|
-
4,
|
|
462
|
-
n0,
|
|
463
|
-
_LRS,
|
|
481
|
+
var LivenessRequestStream$ = [4, n0, _LRS,
|
|
464
482
|
{ [_st]: 1 },
|
|
465
483
|
[_VEi, _CSIE],
|
|
466
|
-
[() => VideoEvent$, () => ClientSessionInformationEvent$]
|
|
484
|
+
[() => VideoEvent$, () => ClientSessionInformationEvent$]
|
|
467
485
|
];
|
|
468
|
-
var LivenessResponseStream$ = [
|
|
469
|
-
4,
|
|
470
|
-
n0,
|
|
471
|
-
_LRSi,
|
|
486
|
+
var LivenessResponseStream$ = [4, n0, _LRSi,
|
|
472
487
|
{ [_st]: 1 },
|
|
473
488
|
[_SSIE, _DE, _CE, _VE, _ISE, _TE, _SQEE, _SUE],
|
|
474
|
-
[
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
() => ChallengeEvent$,
|
|
478
|
-
[() => ValidationException$, 0],
|
|
479
|
-
[() => InternalServerException$, 0],
|
|
480
|
-
[() => ThrottlingException$, 0],
|
|
481
|
-
[() => ServiceQuotaExceededException$, 0],
|
|
482
|
-
[() => ServiceUnavailableException$, 0],
|
|
483
|
-
],
|
|
484
|
-
];
|
|
485
|
-
var ServerChallenge$ = [
|
|
486
|
-
4,
|
|
487
|
-
n0,
|
|
488
|
-
_SC,
|
|
489
|
+
[() => ServerSessionInformationEvent$, () => DisconnectionEvent$, () => ChallengeEvent$, [() => ValidationException$, 0], [() => InternalServerException$, 0], [() => ThrottlingException$, 0], [() => ServiceQuotaExceededException$, 0], [() => ServiceUnavailableException$, 0]]
|
|
490
|
+
];
|
|
491
|
+
var ServerChallenge$ = [4, n0, _SC,
|
|
489
492
|
0,
|
|
490
493
|
[_FMALC, _FMC],
|
|
491
|
-
[() => FaceMovementAndLightServerChallenge$, () => FaceMovementServerChallenge$]
|
|
494
|
+
[() => FaceMovementAndLightServerChallenge$, () => FaceMovementServerChallenge$]
|
|
492
495
|
];
|
|
493
|
-
var StartFaceLivenessSession$ = [
|
|
494
|
-
|
|
495
|
-
n0,
|
|
496
|
-
_SFLS,
|
|
497
|
-
{ [_h]: ["POST", "/start-face-liveness-session", 200] },
|
|
498
|
-
() => StartFaceLivenessSessionRequest$,
|
|
499
|
-
() => StartFaceLivenessSessionResponse$,
|
|
496
|
+
var StartFaceLivenessSession$ = [9, n0, _SFLS,
|
|
497
|
+
{ [_h]: ["POST", "/start-face-liveness-session", 200] }, () => StartFaceLivenessSessionRequest$, () => StartFaceLivenessSessionResponse$
|
|
500
498
|
];
|
|
501
499
|
|
|
502
500
|
class StartFaceLivenessSessionCommand extends smithyClient.Command
|
|
@@ -507,7 +505,7 @@ class StartFaceLivenessSessionCommand extends smithyClient.Command
|
|
|
507
505
|
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
508
506
|
middlewareEventstream.getEventStreamPlugin(config),
|
|
509
507
|
middlewareWebsocket.getWebSocketPlugin(config, {
|
|
510
|
-
headerPrefix:
|
|
508
|
+
headerPrefix: 'x-amz-rekognition-streaming-liveness-',
|
|
511
509
|
}),
|
|
512
510
|
];
|
|
513
511
|
})
|
|
@@ -26,13 +26,13 @@ const getRuntimeConfig = (config) => {
|
|
|
26
26
|
defaultsMode,
|
|
27
27
|
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
|
|
28
28
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
29
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
30
|
-
(0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
29
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
31
30
|
eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? middleware_websocket_1.eventStreamPayloadHandlerProvider,
|
|
32
31
|
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventstream_serde_browser_1.eventStreamSerdeProvider,
|
|
33
32
|
maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
34
33
|
region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
35
|
-
requestHandler: middleware_websocket_1.WebSocketFetchHandler.create(config?.requestHandler
|
|
34
|
+
requestHandler: middleware_websocket_1.WebSocketFetchHandler.create(config?.requestHandler
|
|
35
|
+
?? defaultConfigProvider, fetch_http_handler_1.FetchHttpHandler.create(defaultConfigProvider)),
|
|
36
36
|
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE),
|
|
37
37
|
sha256: config?.sha256 ?? sha256_browser_1.Sha256,
|
|
38
38
|
streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
|
|
@@ -36,13 +36,11 @@ const getRuntimeConfig = (config) => {
|
|
|
36
36
|
authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
37
37
|
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
38
38
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
|
|
39
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
40
|
-
(0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
39
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
41
40
|
eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? eventstream_handler_node_1.eventStreamPayloadHandlerProvider,
|
|
42
41
|
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventstream_serde_node_1.eventStreamSerdeProvider,
|
|
43
42
|
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
44
|
-
region: config?.region ??
|
|
45
|
-
(0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
43
|
+
region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
46
44
|
requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
47
45
|
retryMode: config?.retryMode ??
|
|
48
46
|
(0, node_config_provider_1.loadConfig)({
|
|
@@ -10,10 +10,9 @@ const getRuntimeConfig = (config) => {
|
|
|
10
10
|
...browserDefaults,
|
|
11
11
|
...config,
|
|
12
12
|
runtime: "react-native",
|
|
13
|
-
eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ??
|
|
14
|
-
((
|
|
15
|
-
|
|
16
|
-
})),
|
|
13
|
+
eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? (() => ({
|
|
14
|
+
handle: (0, invalid_dependency_1.invalidFunction)("event stream request is not supported in ReactNative."),
|
|
15
|
+
})),
|
|
17
16
|
sha256: config?.sha256 ?? sha256_js_1.Sha256,
|
|
18
17
|
};
|
|
19
18
|
};
|
|
@@ -3,10 +3,9 @@ import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
|
|
|
3
3
|
export const defaultRekognitionStreamingHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
4
4
|
return {
|
|
5
5
|
operation: getSmithyContext(context).operation,
|
|
6
|
-
region:
|
|
7
|
-
(
|
|
8
|
-
|
|
9
|
-
})(),
|
|
6
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
7
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
8
|
+
})(),
|
|
10
9
|
};
|
|
11
10
|
};
|
|
12
11
|
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
@@ -13,7 +13,7 @@ export class StartFaceLivenessSessionCommand extends $Command
|
|
|
13
13
|
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
14
|
getEventStreamPlugin(config),
|
|
15
15
|
getWebSocketPlugin(config, {
|
|
16
|
-
headerPrefix:
|
|
16
|
+
headerPrefix: 'x-amz-rekognition-streaming-liveness-',
|
|
17
17
|
}),
|
|
18
18
|
];
|
|
19
19
|
})
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
2
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
|
-
import { WebSocketFetchHandler as WebSocketRequestHandler,
|
|
3
|
+
import { eventStreamPayloadHandlerProvider, WebSocketFetchHandler as WebSocketRequestHandler, } from "@aws-sdk/middleware-websocket";
|
|
4
4
|
import { createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-browser";
|
|
5
5
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver";
|
|
6
6
|
import { eventStreamSerdeProvider } from "@smithy/eventstream-serde-browser";
|
|
@@ -22,13 +22,13 @@ export const getRuntimeConfig = (config) => {
|
|
|
22
22
|
defaultsMode,
|
|
23
23
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
24
24
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
25
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
26
|
-
createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
25
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
27
26
|
eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? eventStreamPayloadHandlerProvider,
|
|
28
27
|
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
|
|
29
28
|
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
30
29
|
region: config?.region ?? invalidProvider("Region is missing"),
|
|
31
|
-
requestHandler: WebSocketRequestHandler.create(config?.requestHandler
|
|
30
|
+
requestHandler: WebSocketRequestHandler.create(config?.requestHandler
|
|
31
|
+
?? defaultConfigProvider, HttpRequestHandler.create(defaultConfigProvider)),
|
|
32
32
|
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
33
33
|
sha256: config?.sha256 ?? Sha256,
|
|
34
34
|
streamCollector: config?.streamCollector ?? streamCollector,
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
|
-
import {
|
|
2
|
+
import { emitWarningIfUnsupportedVersion as awsCheckVersion, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "@aws-sdk/core";
|
|
3
3
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
4
4
|
import { eventStreamPayloadHandlerProvider } from "@aws-sdk/eventstream-handler-node";
|
|
5
|
-
import {
|
|
5
|
+
import { createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS } from "@aws-sdk/util-user-agent-node";
|
|
6
6
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
|
|
7
7
|
import { eventStreamSerdeProvider } from "@smithy/eventstream-serde-node";
|
|
8
8
|
import { Hash } from "@smithy/hash-node";
|
|
@@ -32,13 +32,11 @@ export const getRuntimeConfig = (config) => {
|
|
|
32
32
|
authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
33
33
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
34
34
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
35
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
36
|
-
createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
35
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
37
36
|
eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? eventStreamPayloadHandlerProvider,
|
|
38
37
|
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
|
|
39
38
|
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
40
|
-
region: config?.region ??
|
|
41
|
-
loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
39
|
+
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
42
40
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
43
41
|
retryMode: config?.retryMode ??
|
|
44
42
|
loadNodeConfig({
|
|
@@ -7,10 +7,9 @@ export const getRuntimeConfig = (config) => {
|
|
|
7
7
|
...browserDefaults,
|
|
8
8
|
...config,
|
|
9
9
|
runtime: "react-native",
|
|
10
|
-
eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ??
|
|
11
|
-
(
|
|
12
|
-
|
|
13
|
-
})),
|
|
10
|
+
eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? (() => ({
|
|
11
|
+
handle: invalidFunction("event stream request is not supported in ReactNative."),
|
|
12
|
+
})),
|
|
14
13
|
sha256: config?.sha256 ?? Sha256,
|
|
15
14
|
};
|
|
16
15
|
};
|
|
@@ -91,176 +91,174 @@ const n0 = "com.amazonaws.rekognitionstreaming";
|
|
|
91
91
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
92
92
|
import { AccessDeniedException, InternalServerException, ServiceQuotaExceededException, ServiceUnavailableException, SessionNotFoundException, ThrottlingException, ValidationException, } from "../models/errors";
|
|
93
93
|
import { RekognitionStreamingServiceException } from "../models/RekognitionStreamingServiceException";
|
|
94
|
-
export var AccessDeniedException$ = [-3, n0, _ADE,
|
|
94
|
+
export var AccessDeniedException$ = [-3, n0, _ADE,
|
|
95
|
+
{ [_e]: _c, [_hE]: 403 },
|
|
96
|
+
[_M, _C],
|
|
97
|
+
[0, 0]
|
|
98
|
+
];
|
|
95
99
|
TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
|
|
96
|
-
export var BoundingBox$ = [3, n0, _BB,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
100
|
+
export var BoundingBox$ = [3, n0, _BB,
|
|
101
|
+
0,
|
|
102
|
+
[_W, _H, _L, _T],
|
|
103
|
+
[1, 1, 1, 1]
|
|
104
|
+
];
|
|
105
|
+
export var ChallengeConfig$ = [3, n0, _CC,
|
|
101
106
|
0,
|
|
102
107
|
[_BFDT, _FDTM, _FDT, _FDTMa, _OIT, _OHWR, _OIWT, _OIHT, _FIWT, _FIHT, _OFT],
|
|
103
|
-
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
|
|
104
|
-
];
|
|
105
|
-
export var ChallengeEvent$ = [3, n0, _CE,
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
|
|
109
|
+
];
|
|
110
|
+
export var ChallengeEvent$ = [3, n0, _CE,
|
|
111
|
+
0,
|
|
112
|
+
[_V, _Ty],
|
|
113
|
+
[0, 0]
|
|
114
|
+
];
|
|
115
|
+
export var ClientSessionInformationEvent$ = [3, n0, _CSIE,
|
|
116
|
+
0,
|
|
117
|
+
[_Ch],
|
|
118
|
+
[() => ClientChallenge$]
|
|
119
|
+
];
|
|
120
|
+
export var ColorDisplayed$ = [3, n0, _CD,
|
|
111
121
|
0,
|
|
112
122
|
[_CCu, _PC, _SN, _CCST],
|
|
113
|
-
[() => FreshnessColor$, () => FreshnessColor$, 1, 1]
|
|
114
|
-
];
|
|
115
|
-
export var ColorSequence$ = [3, n0, _CS,
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
123
|
+
[() => FreshnessColor$, () => FreshnessColor$, 1, 1]
|
|
124
|
+
];
|
|
125
|
+
export var ColorSequence$ = [3, n0, _CS,
|
|
126
|
+
0,
|
|
127
|
+
[_FC, _DD, _FDD],
|
|
128
|
+
[() => FreshnessColor$, 1, 1]
|
|
129
|
+
];
|
|
130
|
+
export var DisconnectionEvent$ = [3, n0, _DE,
|
|
131
|
+
0,
|
|
132
|
+
[_TM],
|
|
133
|
+
[1]
|
|
134
|
+
];
|
|
135
|
+
export var FaceMovementAndLightClientChallenge$ = [3, n0, _FMALCC,
|
|
121
136
|
0,
|
|
122
137
|
[_CI, _VST, _VET, _IF, _TF, _CD],
|
|
123
|
-
[0, 1, 1, () => InitialFace$, () => TargetFace$, () => ColorDisplayed$]
|
|
138
|
+
[0, 1, 1, () => InitialFace$, () => TargetFace$, () => ColorDisplayed$]
|
|
124
139
|
];
|
|
125
|
-
export var FaceMovementAndLightServerChallenge$ = [
|
|
126
|
-
3,
|
|
127
|
-
n0,
|
|
128
|
-
_FMALSC,
|
|
140
|
+
export var FaceMovementAndLightServerChallenge$ = [3, n0, _FMALSC,
|
|
129
141
|
0,
|
|
130
142
|
[_OP, _LCT, _CC, _CSo],
|
|
131
|
-
[() => OvalParameters$, 0, () => ChallengeConfig$, () => ColorSequences]
|
|
143
|
+
[() => OvalParameters$, 0, () => ChallengeConfig$, () => ColorSequences]
|
|
132
144
|
];
|
|
133
|
-
export var FaceMovementClientChallenge$ = [
|
|
134
|
-
3,
|
|
135
|
-
n0,
|
|
136
|
-
_FMCC,
|
|
145
|
+
export var FaceMovementClientChallenge$ = [3, n0, _FMCC,
|
|
137
146
|
0,
|
|
138
147
|
[_CI, _VST, _VET, _IF, _TF],
|
|
139
|
-
[0, 1, 1, () => InitialFace$, () => TargetFace$]
|
|
148
|
+
[0, 1, 1, () => InitialFace$, () => TargetFace$]
|
|
140
149
|
];
|
|
141
|
-
export var FaceMovementServerChallenge$ = [
|
|
142
|
-
3,
|
|
143
|
-
n0,
|
|
144
|
-
_FMSC,
|
|
150
|
+
export var FaceMovementServerChallenge$ = [3, n0, _FMSC,
|
|
145
151
|
0,
|
|
146
152
|
[_OP, _CC],
|
|
147
|
-
[() => OvalParameters$, () => ChallengeConfig$]
|
|
153
|
+
[() => OvalParameters$, () => ChallengeConfig$]
|
|
154
|
+
];
|
|
155
|
+
export var FreshnessColor$ = [3, n0, _FC,
|
|
156
|
+
0,
|
|
157
|
+
[_RGB],
|
|
158
|
+
[64 | 1]
|
|
159
|
+
];
|
|
160
|
+
export var InitialFace$ = [3, n0, _IF,
|
|
161
|
+
0,
|
|
162
|
+
[_BB, _IFDT],
|
|
163
|
+
[() => BoundingBox$, 1]
|
|
164
|
+
];
|
|
165
|
+
export var InternalServerException$ = [-3, n0, _ISE,
|
|
166
|
+
{ [_e]: _s, [_hE]: 500 },
|
|
167
|
+
[_M, _C],
|
|
168
|
+
[0, 0]
|
|
148
169
|
];
|
|
149
|
-
export var FreshnessColor$ = [3, n0, _FC, 0, [_RGB], [64 | 1]];
|
|
150
|
-
export var InitialFace$ = [3, n0, _IF, 0, [_BB, _IFDT], [() => BoundingBox$, 1]];
|
|
151
|
-
export var InternalServerException$ = [-3, n0, _ISE, { [_e]: _s, [_hE]: 500 }, [_M, _C], [0, 0]];
|
|
152
170
|
TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
|
|
153
|
-
export var OvalParameters$ = [3, n0, _OP,
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
171
|
+
export var OvalParameters$ = [3, n0, _OP,
|
|
172
|
+
0,
|
|
173
|
+
[_W, _H, _CX, _CY],
|
|
174
|
+
[1, 1, 1, 1]
|
|
175
|
+
];
|
|
176
|
+
export var ServerSessionInformationEvent$ = [3, n0, _SSIE,
|
|
158
177
|
0,
|
|
159
178
|
[_SI],
|
|
160
|
-
[() => SessionInformation$]
|
|
179
|
+
[() => SessionInformation$]
|
|
161
180
|
];
|
|
162
|
-
export var ServiceQuotaExceededException$ = [
|
|
163
|
-
-3,
|
|
164
|
-
n0,
|
|
165
|
-
_SQEE,
|
|
181
|
+
export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
|
|
166
182
|
{ [_e]: _c, [_hE]: 429 },
|
|
167
183
|
[_M, _C],
|
|
168
|
-
[0, 0]
|
|
184
|
+
[0, 0]
|
|
169
185
|
];
|
|
170
186
|
TypeRegistry.for(n0).registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
|
|
171
|
-
export var ServiceUnavailableException$ = [-3, n0, _SUE,
|
|
187
|
+
export var ServiceUnavailableException$ = [-3, n0, _SUE,
|
|
188
|
+
{ [_e]: _s, [_hE]: 503 },
|
|
189
|
+
[_M, _C],
|
|
190
|
+
[0, 0]
|
|
191
|
+
];
|
|
172
192
|
TypeRegistry.for(n0).registerError(ServiceUnavailableException$, ServiceUnavailableException);
|
|
173
|
-
export var SessionInformation$ = [3, n0, _SI,
|
|
174
|
-
|
|
193
|
+
export var SessionInformation$ = [3, n0, _SI,
|
|
194
|
+
0,
|
|
195
|
+
[_Ch],
|
|
196
|
+
[() => ServerChallenge$]
|
|
197
|
+
];
|
|
198
|
+
export var SessionNotFoundException$ = [-3, n0, _SNFE,
|
|
199
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
200
|
+
[_M, _C],
|
|
201
|
+
[0, 0]
|
|
202
|
+
];
|
|
175
203
|
TypeRegistry.for(n0).registerError(SessionNotFoundException$, SessionNotFoundException);
|
|
176
|
-
export var StartFaceLivenessSessionRequest$ = [
|
|
177
|
-
3,
|
|
178
|
-
n0,
|
|
179
|
-
_SFLSR,
|
|
204
|
+
export var StartFaceLivenessSessionRequest$ = [3, n0, _SFLSR,
|
|
180
205
|
0,
|
|
181
206
|
[_SIe, _VW, _VH, _CV, _LRS],
|
|
182
|
-
[
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
[0, { [_hH]: _xarslvh }],
|
|
186
|
-
[0, { [_hH]: _xarslcv }],
|
|
187
|
-
[() => LivenessRequestStream$, 16],
|
|
188
|
-
],
|
|
189
|
-
];
|
|
190
|
-
export var StartFaceLivenessSessionResponse$ = [
|
|
191
|
-
3,
|
|
192
|
-
n0,
|
|
193
|
-
_SFLSRt,
|
|
207
|
+
[[0, { [_hH]: _xarslsi }], [0, { [_hH]: _xarslvw }], [0, { [_hH]: _xarslvh }], [0, { [_hH]: _xarslcv }], [() => LivenessRequestStream$, 16]]
|
|
208
|
+
];
|
|
209
|
+
export var StartFaceLivenessSessionResponse$ = [3, n0, _SFLSRt,
|
|
194
210
|
0,
|
|
195
211
|
[_SIe, _LRSi],
|
|
196
|
-
[
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
212
|
+
[[0, { [_hH]: _xarslsi }], [() => LivenessResponseStream$, 16]]
|
|
213
|
+
];
|
|
214
|
+
export var TargetFace$ = [3, n0, _TF,
|
|
215
|
+
0,
|
|
216
|
+
[_BB, _FDITPST, _FDITPET],
|
|
217
|
+
[() => BoundingBox$, 1, 1]
|
|
218
|
+
];
|
|
219
|
+
export var ThrottlingException$ = [-3, n0, _TE,
|
|
220
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
221
|
+
[_M, _C],
|
|
222
|
+
[0, 0]
|
|
200
223
|
];
|
|
201
|
-
export var TargetFace$ = [3, n0, _TF, 0, [_BB, _FDITPST, _FDITPET], [() => BoundingBox$, 1, 1]];
|
|
202
|
-
export var ThrottlingException$ = [-3, n0, _TE, { [_e]: _c, [_hE]: 429 }, [_M, _C], [0, 0]];
|
|
203
224
|
TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
|
|
204
|
-
export var ValidationException$ = [-3, n0, _VE,
|
|
225
|
+
export var ValidationException$ = [-3, n0, _VE,
|
|
226
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
227
|
+
[_M, _C],
|
|
228
|
+
[0, 0]
|
|
229
|
+
];
|
|
205
230
|
TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
|
|
206
|
-
export var VideoEvent$ = [3, n0, _VEi,
|
|
207
|
-
export var RekognitionStreamingServiceException$ = [
|
|
208
|
-
-3,
|
|
209
|
-
_sm,
|
|
210
|
-
"RekognitionStreamingServiceException",
|
|
231
|
+
export var VideoEvent$ = [3, n0, _VEi,
|
|
211
232
|
0,
|
|
212
|
-
[],
|
|
213
|
-
[]
|
|
233
|
+
[_VC, _TM],
|
|
234
|
+
[21, 1]
|
|
214
235
|
];
|
|
236
|
+
export var RekognitionStreamingServiceException$ = [-3, _sm, "RekognitionStreamingServiceException", 0, [], []];
|
|
215
237
|
TypeRegistry.for(_sm).registerError(RekognitionStreamingServiceException$, RekognitionStreamingServiceException);
|
|
216
238
|
var ColorComponentList = 64 | 1;
|
|
217
|
-
var ColorSequences = [1, n0, _CSo,
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
_CCl,
|
|
239
|
+
var ColorSequences = [1, n0, _CSo,
|
|
240
|
+
0, () => ColorSequence$
|
|
241
|
+
];
|
|
242
|
+
export var ClientChallenge$ = [4, n0, _CCl,
|
|
222
243
|
0,
|
|
223
244
|
[_FMALC, _FMC],
|
|
224
|
-
[() => FaceMovementAndLightClientChallenge$, () => FaceMovementClientChallenge$]
|
|
245
|
+
[() => FaceMovementAndLightClientChallenge$, () => FaceMovementClientChallenge$]
|
|
225
246
|
];
|
|
226
|
-
export var LivenessRequestStream$ = [
|
|
227
|
-
4,
|
|
228
|
-
n0,
|
|
229
|
-
_LRS,
|
|
247
|
+
export var LivenessRequestStream$ = [4, n0, _LRS,
|
|
230
248
|
{ [_st]: 1 },
|
|
231
249
|
[_VEi, _CSIE],
|
|
232
|
-
[() => VideoEvent$, () => ClientSessionInformationEvent$]
|
|
250
|
+
[() => VideoEvent$, () => ClientSessionInformationEvent$]
|
|
233
251
|
];
|
|
234
|
-
export var LivenessResponseStream$ = [
|
|
235
|
-
4,
|
|
236
|
-
n0,
|
|
237
|
-
_LRSi,
|
|
252
|
+
export var LivenessResponseStream$ = [4, n0, _LRSi,
|
|
238
253
|
{ [_st]: 1 },
|
|
239
254
|
[_SSIE, _DE, _CE, _VE, _ISE, _TE, _SQEE, _SUE],
|
|
240
|
-
[
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
() => ChallengeEvent$,
|
|
244
|
-
[() => ValidationException$, 0],
|
|
245
|
-
[() => InternalServerException$, 0],
|
|
246
|
-
[() => ThrottlingException$, 0],
|
|
247
|
-
[() => ServiceQuotaExceededException$, 0],
|
|
248
|
-
[() => ServiceUnavailableException$, 0],
|
|
249
|
-
],
|
|
250
|
-
];
|
|
251
|
-
export var ServerChallenge$ = [
|
|
252
|
-
4,
|
|
253
|
-
n0,
|
|
254
|
-
_SC,
|
|
255
|
+
[() => ServerSessionInformationEvent$, () => DisconnectionEvent$, () => ChallengeEvent$, [() => ValidationException$, 0], [() => InternalServerException$, 0], [() => ThrottlingException$, 0], [() => ServiceQuotaExceededException$, 0], [() => ServiceUnavailableException$, 0]]
|
|
256
|
+
];
|
|
257
|
+
export var ServerChallenge$ = [4, n0, _SC,
|
|
255
258
|
0,
|
|
256
259
|
[_FMALC, _FMC],
|
|
257
|
-
[() => FaceMovementAndLightServerChallenge$, () => FaceMovementServerChallenge$]
|
|
258
|
-
];
|
|
259
|
-
export var StartFaceLivenessSession$ = [
|
|
260
|
-
|
|
261
|
-
n0,
|
|
262
|
-
_SFLS,
|
|
263
|
-
{ [_h]: ["POST", "/start-face-liveness-session", 200] },
|
|
264
|
-
() => StartFaceLivenessSessionRequest$,
|
|
265
|
-
() => StartFaceLivenessSessionResponse$,
|
|
260
|
+
[() => FaceMovementAndLightServerChallenge$, () => FaceMovementServerChallenge$]
|
|
261
|
+
];
|
|
262
|
+
export var StartFaceLivenessSession$ = [9, n0, _SFLS,
|
|
263
|
+
{ [_h]: ["POST", "/start-face-liveness-session", 200] }, () => StartFaceLivenessSessionRequest$, () => StartFaceLivenessSessionResponse$
|
|
266
264
|
];
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-rekognitionstreaming",
|
|
3
3
|
"description": "AWS SDK for JavaScript Rekognitionstreaming Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.958.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 client-rekognitionstreaming",
|
|
8
8
|
"build:es": "tsc -p tsconfig.es.json",
|
|
9
|
-
"build:include:deps": "
|
|
9
|
+
"build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
|
|
10
10
|
"build:types": "tsc -p tsconfig.types.json",
|
|
11
11
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
12
12
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
@@ -21,20 +21,20 @@
|
|
|
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.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/eventstream-handler-node": "3.
|
|
27
|
-
"@aws-sdk/middleware-eventstream": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
32
|
-
"@aws-sdk/middleware-websocket": "3.
|
|
33
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
34
|
-
"@aws-sdk/types": "3.
|
|
35
|
-
"@aws-sdk/util-endpoints": "3.
|
|
36
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
37
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
24
|
+
"@aws-sdk/core": "3.957.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.958.0",
|
|
26
|
+
"@aws-sdk/eventstream-handler-node": "3.957.0",
|
|
27
|
+
"@aws-sdk/middleware-eventstream": "3.957.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.957.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.957.0",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.957.0",
|
|
31
|
+
"@aws-sdk/middleware-user-agent": "3.957.0",
|
|
32
|
+
"@aws-sdk/middleware-websocket": "3.957.0",
|
|
33
|
+
"@aws-sdk/region-config-resolver": "3.957.0",
|
|
34
|
+
"@aws-sdk/types": "3.957.0",
|
|
35
|
+
"@aws-sdk/util-endpoints": "3.957.0",
|
|
36
|
+
"@aws-sdk/util-user-agent-browser": "3.957.0",
|
|
37
|
+
"@aws-sdk/util-user-agent-node": "3.957.0",
|
|
38
38
|
"@smithy/config-resolver": "^4.4.5",
|
|
39
39
|
"@smithy/core": "^3.20.0",
|
|
40
40
|
"@smithy/eventstream-serde-browser": "^4.2.7",
|