@aws-sdk/client-rekognitionstreaming 3.758.0 → 3.774.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +32 -43
- package/package.json +7 -7
package/dist-cjs/index.js
CHANGED
|
@@ -19,8 +19,8 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
19
19
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
20
|
|
|
21
21
|
// src/index.ts
|
|
22
|
-
var
|
|
23
|
-
__export(
|
|
22
|
+
var index_exports = {};
|
|
23
|
+
__export(index_exports, {
|
|
24
24
|
$Command: () => import_smithy_client.Command,
|
|
25
25
|
AccessDeniedException: () => AccessDeniedException,
|
|
26
26
|
ClientChallenge: () => ClientChallenge,
|
|
@@ -44,7 +44,7 @@ __export(src_exports, {
|
|
|
44
44
|
ValidationException: () => ValidationException,
|
|
45
45
|
__Client: () => import_smithy_client.Client
|
|
46
46
|
});
|
|
47
|
-
module.exports = __toCommonJS(
|
|
47
|
+
module.exports = __toCommonJS(index_exports);
|
|
48
48
|
|
|
49
49
|
// src/RekognitionStreamingClient.ts
|
|
50
50
|
var import_middleware_eventstream = require("@aws-sdk/middleware-eventstream");
|
|
@@ -177,9 +177,9 @@ var RekognitionStreamingClient = class extends import_smithy_client.Client {
|
|
|
177
177
|
this.middlewareStack.use(
|
|
178
178
|
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
179
179
|
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultRekognitionStreamingHttpAuthSchemeParametersProvider,
|
|
180
|
-
identityProviderConfigProvider: async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
180
|
+
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
181
181
|
"aws.auth#sigv4": config.credentials
|
|
182
|
-
})
|
|
182
|
+
}), "identityProviderConfigProvider")
|
|
183
183
|
})
|
|
184
184
|
);
|
|
185
185
|
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
@@ -278,8 +278,7 @@ var InternalServerException = class _InternalServerException extends Rekognition
|
|
|
278
278
|
var LivenessRequestStream;
|
|
279
279
|
((LivenessRequestStream2) => {
|
|
280
280
|
LivenessRequestStream2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
281
|
-
if (value.VideoEvent !== void 0)
|
|
282
|
-
return visitor.VideoEvent(value.VideoEvent);
|
|
281
|
+
if (value.VideoEvent !== void 0) return visitor.VideoEvent(value.VideoEvent);
|
|
283
282
|
if (value.ClientSessionInformationEvent !== void 0)
|
|
284
283
|
return visitor.ClientSessionInformationEvent(value.ClientSessionInformationEvent);
|
|
285
284
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
@@ -386,14 +385,11 @@ var LivenessResponseStream;
|
|
|
386
385
|
LivenessResponseStream3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
387
386
|
if (value.ServerSessionInformationEvent !== void 0)
|
|
388
387
|
return visitor.ServerSessionInformationEvent(value.ServerSessionInformationEvent);
|
|
389
|
-
if (value.DisconnectionEvent !== void 0)
|
|
390
|
-
|
|
391
|
-
if (value.ValidationException !== void 0)
|
|
392
|
-
return visitor.ValidationException(value.ValidationException);
|
|
388
|
+
if (value.DisconnectionEvent !== void 0) return visitor.DisconnectionEvent(value.DisconnectionEvent);
|
|
389
|
+
if (value.ValidationException !== void 0) return visitor.ValidationException(value.ValidationException);
|
|
393
390
|
if (value.InternalServerException !== void 0)
|
|
394
391
|
return visitor.InternalServerException(value.InternalServerException);
|
|
395
|
-
if (value.ThrottlingException !== void 0)
|
|
396
|
-
return visitor.ThrottlingException(value.ThrottlingException);
|
|
392
|
+
if (value.ThrottlingException !== void 0) return visitor.ThrottlingException(value.ThrottlingException);
|
|
397
393
|
if (value.ServiceQuotaExceededException !== void 0)
|
|
398
394
|
return visitor.ServiceQuotaExceededException(value.ServiceQuotaExceededException);
|
|
399
395
|
if (value.ServiceUnavailableException !== void 0)
|
|
@@ -424,30 +420,23 @@ var SessionNotFoundException = class _SessionNotFoundException extends Rekogniti
|
|
|
424
420
|
}
|
|
425
421
|
};
|
|
426
422
|
var LivenessRequestStreamFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
427
|
-
if (obj.VideoEvent !== void 0)
|
|
428
|
-
return { VideoEvent: obj.VideoEvent };
|
|
423
|
+
if (obj.VideoEvent !== void 0) return { VideoEvent: obj.VideoEvent };
|
|
429
424
|
if (obj.ClientSessionInformationEvent !== void 0)
|
|
430
425
|
return { ClientSessionInformationEvent: obj.ClientSessionInformationEvent };
|
|
431
|
-
if (obj.$unknown !== void 0)
|
|
432
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
426
|
+
if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
433
427
|
}, "LivenessRequestStreamFilterSensitiveLog");
|
|
434
428
|
var LivenessResponseStreamFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
435
429
|
if (obj.ServerSessionInformationEvent !== void 0)
|
|
436
430
|
return { ServerSessionInformationEvent: obj.ServerSessionInformationEvent };
|
|
437
|
-
if (obj.DisconnectionEvent !== void 0)
|
|
438
|
-
|
|
439
|
-
if (obj.
|
|
440
|
-
|
|
441
|
-
if (obj.InternalServerException !== void 0)
|
|
442
|
-
return { InternalServerException: obj.InternalServerException };
|
|
443
|
-
if (obj.ThrottlingException !== void 0)
|
|
444
|
-
return { ThrottlingException: obj.ThrottlingException };
|
|
431
|
+
if (obj.DisconnectionEvent !== void 0) return { DisconnectionEvent: obj.DisconnectionEvent };
|
|
432
|
+
if (obj.ValidationException !== void 0) return { ValidationException: obj.ValidationException };
|
|
433
|
+
if (obj.InternalServerException !== void 0) return { InternalServerException: obj.InternalServerException };
|
|
434
|
+
if (obj.ThrottlingException !== void 0) return { ThrottlingException: obj.ThrottlingException };
|
|
445
435
|
if (obj.ServiceQuotaExceededException !== void 0)
|
|
446
436
|
return { ServiceQuotaExceededException: obj.ServiceQuotaExceededException };
|
|
447
437
|
if (obj.ServiceUnavailableException !== void 0)
|
|
448
438
|
return { ServiceUnavailableException: obj.ServiceUnavailableException };
|
|
449
|
-
if (obj.$unknown !== void 0)
|
|
450
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
439
|
+
if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
451
440
|
}, "LivenessResponseStreamFilterSensitiveLog");
|
|
452
441
|
var StartFaceLivenessSessionRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
453
442
|
...obj,
|
|
@@ -629,9 +618,9 @@ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, cont
|
|
|
629
618
|
}, "de_ValidationExceptionRes");
|
|
630
619
|
var se_LivenessRequestStream = /* @__PURE__ */ __name((input, context) => {
|
|
631
620
|
const eventMarshallingVisitor = /* @__PURE__ */ __name((event) => LivenessRequestStream.visit(event, {
|
|
632
|
-
VideoEvent: (value) => se_VideoEvent_event(value, context),
|
|
633
|
-
ClientSessionInformationEvent: (value) => se_ClientSessionInformationEvent_event(value, context),
|
|
634
|
-
_: (value) => value
|
|
621
|
+
VideoEvent: /* @__PURE__ */ __name((value) => se_VideoEvent_event(value, context), "VideoEvent"),
|
|
622
|
+
ClientSessionInformationEvent: /* @__PURE__ */ __name((value) => se_ClientSessionInformationEvent_event(value, context), "ClientSessionInformationEvent"),
|
|
623
|
+
_: /* @__PURE__ */ __name((value) => value, "_")
|
|
635
624
|
}), "eventMarshallingVisitor");
|
|
636
625
|
return context.eventStreamMarshaller.serialize(input, eventMarshallingVisitor);
|
|
637
626
|
}, "se_LivenessRequestStream");
|
|
@@ -763,36 +752,36 @@ var se_BoundingBox = /* @__PURE__ */ __name((input, context) => {
|
|
|
763
752
|
}, "se_BoundingBox");
|
|
764
753
|
var se_ClientChallenge = /* @__PURE__ */ __name((input, context) => {
|
|
765
754
|
return ClientChallenge.visit(input, {
|
|
766
|
-
FaceMovementAndLightChallenge: (value) => ({
|
|
755
|
+
FaceMovementAndLightChallenge: /* @__PURE__ */ __name((value) => ({
|
|
767
756
|
FaceMovementAndLightChallenge: se_FaceMovementAndLightClientChallenge(value, context)
|
|
768
|
-
}),
|
|
769
|
-
_: (name, value) => ({ [name]: value })
|
|
757
|
+
}), "FaceMovementAndLightChallenge"),
|
|
758
|
+
_: /* @__PURE__ */ __name((name, value) => ({ [name]: value }), "_")
|
|
770
759
|
});
|
|
771
760
|
}, "se_ClientChallenge");
|
|
772
761
|
var se_ClientSessionInformationEvent = /* @__PURE__ */ __name((input, context) => {
|
|
773
762
|
return (0, import_smithy_client.take)(input, {
|
|
774
|
-
Challenge: (_) => se_ClientChallenge(_, context)
|
|
763
|
+
Challenge: /* @__PURE__ */ __name((_) => se_ClientChallenge(_, context), "Challenge")
|
|
775
764
|
});
|
|
776
765
|
}, "se_ClientSessionInformationEvent");
|
|
777
766
|
var se_FaceMovementAndLightClientChallenge = /* @__PURE__ */ __name((input, context) => {
|
|
778
767
|
return (0, import_smithy_client.take)(input, {
|
|
779
768
|
ChallengeId: [],
|
|
780
769
|
ColorDisplayed: import_smithy_client._json,
|
|
781
|
-
InitialFace: (_) => se_InitialFace(_, context),
|
|
782
|
-
TargetFace: (_) => se_TargetFace(_, context),
|
|
770
|
+
InitialFace: /* @__PURE__ */ __name((_) => se_InitialFace(_, context), "InitialFace"),
|
|
771
|
+
TargetFace: /* @__PURE__ */ __name((_) => se_TargetFace(_, context), "TargetFace"),
|
|
783
772
|
VideoEndTimestamp: [],
|
|
784
773
|
VideoStartTimestamp: []
|
|
785
774
|
});
|
|
786
775
|
}, "se_FaceMovementAndLightClientChallenge");
|
|
787
776
|
var se_InitialFace = /* @__PURE__ */ __name((input, context) => {
|
|
788
777
|
return (0, import_smithy_client.take)(input, {
|
|
789
|
-
BoundingBox: (_) => se_BoundingBox(_, context),
|
|
778
|
+
BoundingBox: /* @__PURE__ */ __name((_) => se_BoundingBox(_, context), "BoundingBox"),
|
|
790
779
|
InitialFaceDetectedTimestamp: []
|
|
791
780
|
});
|
|
792
781
|
}, "se_InitialFace");
|
|
793
782
|
var se_TargetFace = /* @__PURE__ */ __name((input, context) => {
|
|
794
783
|
return (0, import_smithy_client.take)(input, {
|
|
795
|
-
BoundingBox: (_) => se_BoundingBox(_, context),
|
|
784
|
+
BoundingBox: /* @__PURE__ */ __name((_) => se_BoundingBox(_, context), "BoundingBox"),
|
|
796
785
|
FaceDetectedInTargetPositionEndTimestamp: [],
|
|
797
786
|
FaceDetectedInTargetPositionStartTimestamp: []
|
|
798
787
|
});
|
|
@@ -833,10 +822,10 @@ var de_ColorSequences = /* @__PURE__ */ __name((output, context) => {
|
|
|
833
822
|
}, "de_ColorSequences");
|
|
834
823
|
var de_FaceMovementAndLightServerChallenge = /* @__PURE__ */ __name((output, context) => {
|
|
835
824
|
return (0, import_smithy_client.take)(output, {
|
|
836
|
-
ChallengeConfig: (_) => de_ChallengeConfig(_, context),
|
|
837
|
-
ColorSequences: (_) => de_ColorSequences(_, context),
|
|
825
|
+
ChallengeConfig: /* @__PURE__ */ __name((_) => de_ChallengeConfig(_, context), "ChallengeConfig"),
|
|
826
|
+
ColorSequences: /* @__PURE__ */ __name((_) => de_ColorSequences(_, context), "ColorSequences"),
|
|
838
827
|
LightChallengeType: import_smithy_client.expectString,
|
|
839
|
-
OvalParameters: (_) => de_OvalParameters(_, context)
|
|
828
|
+
OvalParameters: /* @__PURE__ */ __name((_) => de_OvalParameters(_, context), "OvalParameters")
|
|
840
829
|
});
|
|
841
830
|
}, "de_FaceMovementAndLightServerChallenge");
|
|
842
831
|
var de_OvalParameters = /* @__PURE__ */ __name((output, context) => {
|
|
@@ -860,12 +849,12 @@ var de_ServerChallenge = /* @__PURE__ */ __name((output, context) => {
|
|
|
860
849
|
}, "de_ServerChallenge");
|
|
861
850
|
var de_ServerSessionInformationEvent = /* @__PURE__ */ __name((output, context) => {
|
|
862
851
|
return (0, import_smithy_client.take)(output, {
|
|
863
|
-
SessionInformation: (_) => de_SessionInformation(_, context)
|
|
852
|
+
SessionInformation: /* @__PURE__ */ __name((_) => de_SessionInformation(_, context), "SessionInformation")
|
|
864
853
|
});
|
|
865
854
|
}, "de_ServerSessionInformationEvent");
|
|
866
855
|
var de_SessionInformation = /* @__PURE__ */ __name((output, context) => {
|
|
867
856
|
return (0, import_smithy_client.take)(output, {
|
|
868
|
-
Challenge: (_) => de_ServerChallenge((0, import_core2.awsExpectUnion)(_), context)
|
|
857
|
+
Challenge: /* @__PURE__ */ __name((_) => de_ServerChallenge((0, import_core2.awsExpectUnion)(_), context), "Challenge")
|
|
869
858
|
});
|
|
870
859
|
}, "de_SessionInformation");
|
|
871
860
|
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
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.
|
|
4
|
+
"version": "3.774.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",
|
|
@@ -20,20 +20,20 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/core": "3.774.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.774.0",
|
|
25
25
|
"@aws-sdk/eventstream-handler-node": "3.734.0",
|
|
26
26
|
"@aws-sdk/middleware-eventstream": "3.734.0",
|
|
27
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
27
|
+
"@aws-sdk/middleware-host-header": "3.774.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.734.0",
|
|
29
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
29
|
+
"@aws-sdk/middleware-recursion-detection": "3.772.0",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.774.0",
|
|
31
31
|
"@aws-sdk/middleware-websocket": "3.734.0",
|
|
32
32
|
"@aws-sdk/region-config-resolver": "3.734.0",
|
|
33
33
|
"@aws-sdk/types": "3.734.0",
|
|
34
34
|
"@aws-sdk/util-endpoints": "3.743.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-browser": "3.734.0",
|
|
36
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
36
|
+
"@aws-sdk/util-user-agent-node": "3.774.0",
|
|
37
37
|
"@smithy/config-resolver": "^4.0.1",
|
|
38
38
|
"@smithy/core": "^3.1.5",
|
|
39
39
|
"@smithy/eventstream-serde-browser": "^4.0.1",
|