@aws-sdk/client-rekognitionstreaming 3.305.0 → 3.306.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/README.md +0 -8
  2. package/dist-cjs/RekognitionStreaming.js +0 -15
  3. package/dist-cjs/commands/index.js +0 -1
  4. package/dist-cjs/endpoint/ruleset.js +3 -3
  5. package/dist-cjs/models/models_0.js +20 -12
  6. package/dist-cjs/protocols/Aws_restJson1.js +56 -85
  7. package/dist-es/RekognitionStreaming.js +0 -15
  8. package/dist-es/commands/index.js +0 -1
  9. package/dist-es/endpoint/ruleset.js +3 -3
  10. package/dist-es/models/models_0.js +18 -9
  11. package/dist-es/protocols/Aws_restJson1.js +56 -83
  12. package/dist-types/RekognitionStreaming.d.ts +0 -7
  13. package/dist-types/RekognitionStreamingClient.d.ts +2 -3
  14. package/dist-types/commands/index.d.ts +0 -1
  15. package/dist-types/models/models_0.d.ts +55 -37
  16. package/dist-types/protocols/Aws_restJson1.d.ts +0 -3
  17. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  18. package/dist-types/runtimeConfig.d.ts +1 -1
  19. package/dist-types/ts3.4/RekognitionStreaming.d.ts +0 -17
  20. package/dist-types/ts3.4/RekognitionStreamingClient.d.ts +2 -10
  21. package/dist-types/ts3.4/commands/index.d.ts +0 -1
  22. package/dist-types/ts3.4/models/models_0.d.ts +48 -25
  23. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -12
  24. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  25. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  26. package/package.json +35 -35
  27. package/dist-cjs/commands/StartStreamingLivenessSessionCommand.js +0 -50
  28. package/dist-es/commands/StartStreamingLivenessSessionCommand.js +0 -46
  29. package/dist-types/commands/StartStreamingLivenessSessionCommand.d.ts +0 -39
  30. package/dist-types/ts3.4/commands/StartStreamingLivenessSessionCommand.d.ts +0 -41
@@ -15,6 +15,18 @@ export interface BoundingBox {
15
15
  Left: number | undefined;
16
16
  Top: number | undefined;
17
17
  }
18
+ export interface ChallengeConfig {
19
+ BlazeFaceDetectionThreshold?: number;
20
+ FaceDistanceThresholdMin?: number;
21
+ FaceDistanceThreshold?: number;
22
+ FaceDistanceThresholdMax?: number;
23
+ OvalIouThreshold?: number;
24
+ OvalHeightWidthRatio?: number;
25
+ OvalIouWidthThreshold?: number;
26
+ OvalIouHeightThreshold?: number;
27
+ FaceIouWidthThreshold?: number;
28
+ FaceIouHeightThreshold?: number;
29
+ }
18
30
  export interface FreshnessColor {
19
31
  RGB: number[] | undefined;
20
32
  }
@@ -36,6 +48,7 @@ export interface TargetFace {
36
48
  export interface FaceMovementAndLightClientChallenge {
37
49
  ChallengeId: string | undefined;
38
50
  VideoStartTimestamp?: number;
51
+ VideoEndTimestamp?: number;
39
52
  InitialFace?: InitialFace;
40
53
  TargetFace?: TargetFace;
41
54
  ColorDisplayed?: ColorDisplayed;
@@ -60,13 +73,7 @@ export declare namespace ClientChallenge {
60
73
  }
61
74
  const visit: <T>(value: ClientChallenge, visitor: Visitor<T>) => T;
62
75
  }
63
- export interface DeviceInformation {
64
- VideoHeight: number | undefined;
65
- VideoWidth: number | undefined;
66
- ClientSDKVersion: string | undefined;
67
- }
68
76
  export interface ClientSessionInformationEvent {
69
- DeviceInformation: DeviceInformation | undefined;
70
77
  Challenge: ClientChallenge | undefined;
71
78
  }
72
79
  export interface ColorSequence {
@@ -79,18 +86,19 @@ export interface DisconnectionEvent {
79
86
  }
80
87
  export declare const LightChallengeType: {
81
88
  readonly SEQUENTIAL: "SEQUENTIAL";
82
- readonly SIMULTANEOUS: "SIMULTANEOUS";
83
89
  };
84
90
  export type LightChallengeType =
85
91
  (typeof LightChallengeType)[keyof typeof LightChallengeType];
86
- export interface OvalScaleFactors {
92
+ export interface OvalParameters {
87
93
  Width: number | undefined;
94
+ Height: number | undefined;
88
95
  CenterX: number | undefined;
89
96
  CenterY: number | undefined;
90
97
  }
91
98
  export interface FaceMovementAndLightServerChallenge {
92
- OvalScaleFactors: OvalScaleFactors | undefined;
99
+ OvalParameters: OvalParameters | undefined;
93
100
  LightChallengeType: LightChallengeType | string | undefined;
101
+ ChallengeConfig: ChallengeConfig | undefined;
94
102
  ColorSequences: ColorSequence[] | undefined;
95
103
  }
96
104
  export declare class InternalServerException extends __BaseException {
@@ -168,6 +176,15 @@ export declare class ServiceQuotaExceededException extends __BaseException {
168
176
  opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
169
177
  );
170
178
  }
179
+ export declare class ServiceUnavailableException extends __BaseException {
180
+ readonly name: "ServiceUnavailableException";
181
+ readonly $fault: "server";
182
+ Message?: string;
183
+ Code?: string;
184
+ constructor(
185
+ opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>
186
+ );
187
+ }
171
188
  export declare class ThrottlingException extends __BaseException {
172
189
  readonly name: "ThrottlingException";
173
190
  readonly $fault: "client";
@@ -191,6 +208,7 @@ export type LivenessResponseStream =
191
208
  | LivenessResponseStream.InternalServerExceptionMember
192
209
  | LivenessResponseStream.ServerSessionInformationEventMember
193
210
  | LivenessResponseStream.ServiceQuotaExceededExceptionMember
211
+ | LivenessResponseStream.ServiceUnavailableExceptionMember
194
212
  | LivenessResponseStream.ThrottlingExceptionMember
195
213
  | LivenessResponseStream.ValidationExceptionMember
196
214
  | LivenessResponseStream.$UnknownMember;
@@ -202,6 +220,7 @@ export declare namespace LivenessResponseStream {
202
220
  InternalServerException?: never;
203
221
  ThrottlingException?: never;
204
222
  ServiceQuotaExceededException?: never;
223
+ ServiceUnavailableException?: never;
205
224
  $unknown?: never;
206
225
  }
207
226
  interface DisconnectionEventMember {
@@ -211,6 +230,7 @@ export declare namespace LivenessResponseStream {
211
230
  InternalServerException?: never;
212
231
  ThrottlingException?: never;
213
232
  ServiceQuotaExceededException?: never;
233
+ ServiceUnavailableException?: never;
214
234
  $unknown?: never;
215
235
  }
216
236
  interface ValidationExceptionMember {
@@ -220,6 +240,7 @@ export declare namespace LivenessResponseStream {
220
240
  InternalServerException?: never;
221
241
  ThrottlingException?: never;
222
242
  ServiceQuotaExceededException?: never;
243
+ ServiceUnavailableException?: never;
223
244
  $unknown?: never;
224
245
  }
225
246
  interface InternalServerExceptionMember {
@@ -229,6 +250,7 @@ export declare namespace LivenessResponseStream {
229
250
  InternalServerException: InternalServerException;
230
251
  ThrottlingException?: never;
231
252
  ServiceQuotaExceededException?: never;
253
+ ServiceUnavailableException?: never;
232
254
  $unknown?: never;
233
255
  }
234
256
  interface ThrottlingExceptionMember {
@@ -238,6 +260,7 @@ export declare namespace LivenessResponseStream {
238
260
  InternalServerException?: never;
239
261
  ThrottlingException: ThrottlingException;
240
262
  ServiceQuotaExceededException?: never;
263
+ ServiceUnavailableException?: never;
241
264
  $unknown?: never;
242
265
  }
243
266
  interface ServiceQuotaExceededExceptionMember {
@@ -247,6 +270,17 @@ export declare namespace LivenessResponseStream {
247
270
  InternalServerException?: never;
248
271
  ThrottlingException?: never;
249
272
  ServiceQuotaExceededException: ServiceQuotaExceededException;
273
+ ServiceUnavailableException?: never;
274
+ $unknown?: never;
275
+ }
276
+ interface ServiceUnavailableExceptionMember {
277
+ ServerSessionInformationEvent?: never;
278
+ DisconnectionEvent?: never;
279
+ ValidationException?: never;
280
+ InternalServerException?: never;
281
+ ThrottlingException?: never;
282
+ ServiceQuotaExceededException?: never;
283
+ ServiceUnavailableException: ServiceUnavailableException;
250
284
  $unknown?: never;
251
285
  }
252
286
  interface $UnknownMember {
@@ -256,6 +290,7 @@ export declare namespace LivenessResponseStream {
256
290
  InternalServerException?: never;
257
291
  ThrottlingException?: never;
258
292
  ServiceQuotaExceededException?: never;
293
+ ServiceUnavailableException?: never;
259
294
  $unknown: [string, any];
260
295
  }
261
296
  interface Visitor<T> {
@@ -265,6 +300,7 @@ export declare namespace LivenessResponseStream {
265
300
  InternalServerException: (value: InternalServerException) => T;
266
301
  ThrottlingException: (value: ThrottlingException) => T;
267
302
  ServiceQuotaExceededException: (value: ServiceQuotaExceededException) => T;
303
+ ServiceUnavailableException: (value: ServiceUnavailableException) => T;
268
304
  _: (name: string, value: any) => T;
269
305
  }
270
306
  const visit: <T>(value: LivenessResponseStream, visitor: Visitor<T>) => T;
@@ -280,22 +316,15 @@ export declare class SessionNotFoundException extends __BaseException {
280
316
  }
281
317
  export interface StartFaceLivenessSessionRequest {
282
318
  SessionId: string | undefined;
283
- ClientSDKVersion: string | undefined;
319
+ VideoWidth: string | undefined;
320
+ VideoHeight: string | undefined;
321
+ ChallengeVersions?: string;
284
322
  LivenessRequestStream?: AsyncIterable<LivenessRequestStream>;
285
323
  }
286
324
  export interface StartFaceLivenessSessionResponse {
287
325
  SessionId: string | undefined;
288
326
  LivenessResponseStream?: AsyncIterable<LivenessResponseStream>;
289
327
  }
290
- export interface StartStreamingLivenessSessionRequest {
291
- SessionId: string | undefined;
292
- ClientSDKVersion: string | undefined;
293
- LivenessRequestStream?: AsyncIterable<LivenessRequestStream>;
294
- }
295
- export interface StartStreamingLivenessSessionResponse {
296
- SessionId: string | undefined;
297
- LivenessResponseStream?: AsyncIterable<LivenessResponseStream>;
298
- }
299
328
  export declare const LivenessRequestStreamFilterSensitiveLog: (
300
329
  obj: LivenessRequestStream
301
330
  ) => any;
@@ -308,9 +337,3 @@ export declare const StartFaceLivenessSessionRequestFilterSensitiveLog: (
308
337
  export declare const StartFaceLivenessSessionResponseFilterSensitiveLog: (
309
338
  obj: StartFaceLivenessSessionResponse
310
339
  ) => any;
311
- export declare const StartStreamingLivenessSessionRequestFilterSensitiveLog: (
312
- obj: StartStreamingLivenessSessionRequest
313
- ) => any;
314
- export declare const StartStreamingLivenessSessionResponseFilterSensitiveLog: (
315
- obj: StartStreamingLivenessSessionResponse
316
- ) => any;
@@ -10,23 +10,11 @@ import {
10
10
  StartFaceLivenessSessionCommandInput,
11
11
  StartFaceLivenessSessionCommandOutput,
12
12
  } from "../commands/StartFaceLivenessSessionCommand";
13
- import {
14
- StartStreamingLivenessSessionCommandInput,
15
- StartStreamingLivenessSessionCommandOutput,
16
- } from "../commands/StartStreamingLivenessSessionCommand";
17
13
  export declare const serializeAws_restJson1StartFaceLivenessSessionCommand: (
18
14
  input: StartFaceLivenessSessionCommandInput,
19
15
  context: __SerdeContext & __EventStreamSerdeContext
20
16
  ) => Promise<__HttpRequest>;
21
- export declare const serializeAws_restJson1StartStreamingLivenessSessionCommand: (
22
- input: StartStreamingLivenessSessionCommandInput,
23
- context: __SerdeContext & __EventStreamSerdeContext
24
- ) => Promise<__HttpRequest>;
25
17
  export declare const deserializeAws_restJson1StartFaceLivenessSessionCommand: (
26
18
  output: __HttpResponse,
27
19
  context: __SerdeContext & __EventStreamSerdeContext
28
20
  ) => Promise<StartFaceLivenessSessionCommandOutput>;
29
- export declare const deserializeAws_restJson1StartStreamingLivenessSessionCommand: (
30
- output: __HttpResponse,
31
- context: __SerdeContext & __EventStreamSerdeContext
32
- ) => Promise<StartStreamingLivenessSessionCommandOutput>;
@@ -50,9 +50,9 @@ export declare const getRuntimeConfig: (
50
50
  ) &
51
51
  (
52
52
  | string
53
- | import("@aws-sdk/types").Provider<string>
54
53
  | import("@aws-sdk/types").Endpoint
55
54
  | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
55
+ | import("@aws-sdk/types").Provider<string>
56
56
  | import("@aws-sdk/types").EndpointV2
57
57
  | import("@aws-sdk/types").Provider<
58
58
  import("@aws-sdk/types").EndpointV2
@@ -50,9 +50,9 @@ export declare const getRuntimeConfig: (
50
50
  ) &
51
51
  (
52
52
  | string
53
- | import("@aws-sdk/types").Provider<string>
54
53
  | import("@aws-sdk/types").Endpoint
55
54
  | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
55
+ | import("@aws-sdk/types").Provider<string>
56
56
  | import("@aws-sdk/types").EndpointV2
57
57
  | import("@aws-sdk/types").Provider<
58
58
  import("@aws-sdk/types").EndpointV2
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.305.0",
4
+ "version": "3.306.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,43 +21,43 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "2.0.0",
23
23
  "@aws-crypto/sha256-js": "2.0.0",
24
- "@aws-sdk/client-sts": "3.303.0",
25
- "@aws-sdk/config-resolver": "3.303.0",
26
- "@aws-sdk/credential-provider-node": "3.303.0",
27
- "@aws-sdk/eventstream-handler-node": "3.303.0",
28
- "@aws-sdk/eventstream-serde-browser": "3.303.0",
29
- "@aws-sdk/eventstream-serde-config-resolver": "3.303.0",
30
- "@aws-sdk/eventstream-serde-node": "3.303.0",
31
- "@aws-sdk/fetch-http-handler": "3.303.0",
32
- "@aws-sdk/hash-node": "3.303.0",
33
- "@aws-sdk/invalid-dependency": "3.303.0",
34
- "@aws-sdk/middleware-content-length": "3.303.0",
35
- "@aws-sdk/middleware-endpoint": "3.303.0",
36
- "@aws-sdk/middleware-eventstream": "3.303.0",
37
- "@aws-sdk/middleware-host-header": "3.303.0",
38
- "@aws-sdk/middleware-logger": "3.303.0",
39
- "@aws-sdk/middleware-recursion-detection": "3.303.0",
40
- "@aws-sdk/middleware-retry": "3.303.0",
41
- "@aws-sdk/middleware-serde": "3.303.0",
42
- "@aws-sdk/middleware-signing": "3.303.0",
43
- "@aws-sdk/middleware-stack": "3.303.0",
44
- "@aws-sdk/middleware-user-agent": "3.303.0",
45
- "@aws-sdk/middleware-websocket": "3.305.0",
46
- "@aws-sdk/node-config-provider": "3.303.0",
47
- "@aws-sdk/node-http-handler": "3.303.0",
48
- "@aws-sdk/protocol-http": "3.303.0",
49
- "@aws-sdk/smithy-client": "3.303.0",
50
- "@aws-sdk/types": "3.303.0",
51
- "@aws-sdk/url-parser": "3.303.0",
24
+ "@aws-sdk/client-sts": "3.306.0",
25
+ "@aws-sdk/config-resolver": "3.306.0",
26
+ "@aws-sdk/credential-provider-node": "3.306.0",
27
+ "@aws-sdk/eventstream-handler-node": "3.306.0",
28
+ "@aws-sdk/eventstream-serde-browser": "3.306.0",
29
+ "@aws-sdk/eventstream-serde-config-resolver": "3.306.0",
30
+ "@aws-sdk/eventstream-serde-node": "3.306.0",
31
+ "@aws-sdk/fetch-http-handler": "3.306.0",
32
+ "@aws-sdk/hash-node": "3.306.0",
33
+ "@aws-sdk/invalid-dependency": "3.306.0",
34
+ "@aws-sdk/middleware-content-length": "3.306.0",
35
+ "@aws-sdk/middleware-endpoint": "3.306.0",
36
+ "@aws-sdk/middleware-eventstream": "3.306.0",
37
+ "@aws-sdk/middleware-host-header": "3.306.0",
38
+ "@aws-sdk/middleware-logger": "3.306.0",
39
+ "@aws-sdk/middleware-recursion-detection": "3.306.0",
40
+ "@aws-sdk/middleware-retry": "3.306.0",
41
+ "@aws-sdk/middleware-serde": "3.306.0",
42
+ "@aws-sdk/middleware-signing": "3.306.0",
43
+ "@aws-sdk/middleware-stack": "3.306.0",
44
+ "@aws-sdk/middleware-user-agent": "3.306.0",
45
+ "@aws-sdk/middleware-websocket": "3.306.0",
46
+ "@aws-sdk/node-config-provider": "3.306.0",
47
+ "@aws-sdk/node-http-handler": "3.306.0",
48
+ "@aws-sdk/protocol-http": "3.306.0",
49
+ "@aws-sdk/smithy-client": "3.306.0",
50
+ "@aws-sdk/types": "3.306.0",
51
+ "@aws-sdk/url-parser": "3.306.0",
52
52
  "@aws-sdk/util-base64": "3.303.0",
53
53
  "@aws-sdk/util-body-length-browser": "3.303.0",
54
54
  "@aws-sdk/util-body-length-node": "3.303.0",
55
- "@aws-sdk/util-defaults-mode-browser": "3.303.0",
56
- "@aws-sdk/util-defaults-mode-node": "3.303.0",
57
- "@aws-sdk/util-endpoints": "3.303.0",
58
- "@aws-sdk/util-retry": "3.303.0",
59
- "@aws-sdk/util-user-agent-browser": "3.303.0",
60
- "@aws-sdk/util-user-agent-node": "3.303.0",
55
+ "@aws-sdk/util-defaults-mode-browser": "3.306.0",
56
+ "@aws-sdk/util-defaults-mode-node": "3.306.0",
57
+ "@aws-sdk/util-endpoints": "3.306.0",
58
+ "@aws-sdk/util-retry": "3.306.0",
59
+ "@aws-sdk/util-user-agent-browser": "3.306.0",
60
+ "@aws-sdk/util-user-agent-node": "3.306.0",
61
61
  "@aws-sdk/util-utf8": "3.303.0",
62
62
  "tslib": "^2.5.0"
63
63
  },
@@ -1,50 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StartStreamingLivenessSessionCommand = void 0;
4
- const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
- const middleware_eventstream_1 = require("@aws-sdk/middleware-eventstream");
6
- const middleware_serde_1 = require("@aws-sdk/middleware-serde");
7
- const middleware_websocket_1 = require("@aws-sdk/middleware-websocket");
8
- const smithy_client_1 = require("@aws-sdk/smithy-client");
9
- const models_0_1 = require("../models/models_0");
10
- const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
11
- class StartStreamingLivenessSessionCommand extends smithy_client_1.Command {
12
- static getEndpointParameterInstructions() {
13
- return {
14
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
- Endpoint: { type: "builtInParams", name: "endpoint" },
16
- Region: { type: "builtInParams", name: "region" },
17
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
- };
19
- }
20
- constructor(input) {
21
- super();
22
- this.input = input;
23
- }
24
- resolveMiddleware(clientStack, configuration, options) {
25
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
26
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, StartStreamingLivenessSessionCommand.getEndpointParameterInstructions()));
27
- this.middlewareStack.use((0, middleware_eventstream_1.getEventStreamPlugin)(configuration));
28
- this.middlewareStack.use((0, middleware_websocket_1.getWebSocketPlugin)(configuration, { headerPrefix: "x-amz-rekognition-streaming-liveness-" }));
29
- const stack = clientStack.concat(this.middlewareStack);
30
- const { logger } = configuration;
31
- const clientName = "RekognitionStreamingClient";
32
- const commandName = "StartStreamingLivenessSessionCommand";
33
- const handlerExecutionContext = {
34
- logger,
35
- clientName,
36
- commandName,
37
- inputFilterSensitiveLog: models_0_1.StartStreamingLivenessSessionRequestFilterSensitiveLog,
38
- outputFilterSensitiveLog: models_0_1.StartStreamingLivenessSessionResponseFilterSensitiveLog,
39
- };
40
- const { requestHandler } = configuration;
41
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
42
- }
43
- serialize(input, context) {
44
- return (0, Aws_restJson1_1.serializeAws_restJson1StartStreamingLivenessSessionCommand)(input, context);
45
- }
46
- deserialize(output, context) {
47
- return (0, Aws_restJson1_1.deserializeAws_restJson1StartStreamingLivenessSessionCommand)(output, context);
48
- }
49
- }
50
- exports.StartStreamingLivenessSessionCommand = StartStreamingLivenessSessionCommand;
@@ -1,46 +0,0 @@
1
- import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
- import { getEventStreamPlugin } from "@aws-sdk/middleware-eventstream";
3
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
4
- import { getWebSocketPlugin } from "@aws-sdk/middleware-websocket";
5
- import { Command as $Command } from "@aws-sdk/smithy-client";
6
- import { StartStreamingLivenessSessionRequestFilterSensitiveLog, StartStreamingLivenessSessionResponseFilterSensitiveLog, } from "../models/models_0";
7
- import { deserializeAws_restJson1StartStreamingLivenessSessionCommand, serializeAws_restJson1StartStreamingLivenessSessionCommand, } from "../protocols/Aws_restJson1";
8
- export class StartStreamingLivenessSessionCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, StartStreamingLivenessSessionCommand.getEndpointParameterInstructions()));
24
- this.middlewareStack.use(getEventStreamPlugin(configuration));
25
- this.middlewareStack.use(getWebSocketPlugin(configuration, { headerPrefix: "x-amz-rekognition-streaming-liveness-" }));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "RekognitionStreamingClient";
29
- const commandName = "StartStreamingLivenessSessionCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: StartStreamingLivenessSessionRequestFilterSensitiveLog,
35
- outputFilterSensitiveLog: StartStreamingLivenessSessionResponseFilterSensitiveLog,
36
- };
37
- const { requestHandler } = configuration;
38
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
39
- }
40
- serialize(input, context) {
41
- return serializeAws_restJson1StartStreamingLivenessSessionCommand(input, context);
42
- }
43
- deserialize(output, context) {
44
- return deserializeAws_restJson1StartStreamingLivenessSessionCommand(output, context);
45
- }
46
- }
@@ -1,39 +0,0 @@
1
- import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
- import { Command as $Command } from "@aws-sdk/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
- import { StartStreamingLivenessSessionRequest, StartStreamingLivenessSessionResponse } from "../models/models_0";
5
- import { RekognitionStreamingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RekognitionStreamingClient";
6
- /**
7
- * @public
8
- *
9
- * The input for {@link StartStreamingLivenessSessionCommand}.
10
- */
11
- export interface StartStreamingLivenessSessionCommandInput extends StartStreamingLivenessSessionRequest {
12
- }
13
- /**
14
- * @public
15
- *
16
- * The output of {@link StartStreamingLivenessSessionCommand}.
17
- */
18
- export interface StartStreamingLivenessSessionCommandOutput extends StartStreamingLivenessSessionResponse, __MetadataBearer {
19
- }
20
- export declare class StartStreamingLivenessSessionCommand extends $Command<StartStreamingLivenessSessionCommandInput, StartStreamingLivenessSessionCommandOutput, RekognitionStreamingClientResolvedConfig> {
21
- readonly input: StartStreamingLivenessSessionCommandInput;
22
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
23
- /**
24
- * @public
25
- */
26
- constructor(input: StartStreamingLivenessSessionCommandInput);
27
- /**
28
- * @internal
29
- */
30
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RekognitionStreamingClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StartStreamingLivenessSessionCommandInput, StartStreamingLivenessSessionCommandOutput>;
31
- /**
32
- * @internal
33
- */
34
- private serialize;
35
- /**
36
- * @internal
37
- */
38
- private deserialize;
39
- }
@@ -1,41 +0,0 @@
1
- import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
- import { Command as $Command } from "@aws-sdk/smithy-client";
3
- import {
4
- Handler,
5
- HttpHandlerOptions as __HttpHandlerOptions,
6
- MetadataBearer as __MetadataBearer,
7
- MiddlewareStack,
8
- } from "@aws-sdk/types";
9
- import {
10
- StartStreamingLivenessSessionRequest,
11
- StartStreamingLivenessSessionResponse,
12
- } from "../models/models_0";
13
- import {
14
- RekognitionStreamingClientResolvedConfig,
15
- ServiceInputTypes,
16
- ServiceOutputTypes,
17
- } from "../RekognitionStreamingClient";
18
- export interface StartStreamingLivenessSessionCommandInput
19
- extends StartStreamingLivenessSessionRequest {}
20
- export interface StartStreamingLivenessSessionCommandOutput
21
- extends StartStreamingLivenessSessionResponse,
22
- __MetadataBearer {}
23
- export declare class StartStreamingLivenessSessionCommand extends $Command<
24
- StartStreamingLivenessSessionCommandInput,
25
- StartStreamingLivenessSessionCommandOutput,
26
- RekognitionStreamingClientResolvedConfig
27
- > {
28
- readonly input: StartStreamingLivenessSessionCommandInput;
29
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
- constructor(input: StartStreamingLivenessSessionCommandInput);
31
- resolveMiddleware(
32
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
33
- configuration: RekognitionStreamingClientResolvedConfig,
34
- options?: __HttpHandlerOptions
35
- ): Handler<
36
- StartStreamingLivenessSessionCommandInput,
37
- StartStreamingLivenessSessionCommandOutput
38
- >;
39
- private serialize;
40
- private deserialize;
41
- }