@aws-sdk/client-rekognitionstreaming 3.306.0 → 3.309.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.
@@ -17,6 +17,115 @@ export interface StartFaceLivenessSessionCommandInput extends StartFaceLivenessS
17
17
  */
18
18
  export interface StartFaceLivenessSessionCommandOutput extends StartFaceLivenessSessionResponse, __MetadataBearer {
19
19
  }
20
+ /**
21
+ * @public
22
+ * <p>Starts a Face Liveness video stream and liveness detection process for a given
23
+ * session.</p>
24
+ * <p>Requires <code>sessionId</code>, <code>ChallengeVersions</code>, <code>VideoWidth</code>,
25
+ * <code>VideoHeight</code> and a <code>RequestEventStream</code> as input. The event stream
26
+ * contains information about different events for the session, including the challenge
27
+ * information used for verification. </p>
28
+ * <p>The maximum video size for Face Liveness is 10 MB. Face Liveness throws a
29
+ * <code>ValidationException</code> if the video does not match the necessary formatting and
30
+ * size parameters. </p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { RekognitionStreamingClient, StartFaceLivenessSessionCommand } from "@aws-sdk/client-rekognitionstreaming"; // ES Modules import
35
+ * // const { RekognitionStreamingClient, StartFaceLivenessSessionCommand } = require("@aws-sdk/client-rekognitionstreaming"); // CommonJS import
36
+ * const client = new RekognitionStreamingClient(config);
37
+ * const input = { // StartFaceLivenessSessionRequest
38
+ * SessionId: "STRING_VALUE", // required
39
+ * VideoWidth: "STRING_VALUE", // required
40
+ * VideoHeight: "STRING_VALUE", // required
41
+ * ChallengeVersions: "STRING_VALUE", // required
42
+ * LivenessRequestStream: { // LivenessRequestStream Union: only one key present
43
+ * VideoEvent: { // VideoEvent
44
+ * VideoChunk: "BLOB_VALUE",
45
+ * TimestampMillis: Number("long"),
46
+ * },
47
+ * ClientSessionInformationEvent: { // ClientSessionInformationEvent
48
+ * Challenge: { // ClientChallenge Union: only one key present
49
+ * FaceMovementAndLightChallenge: { // FaceMovementAndLightClientChallenge
50
+ * ChallengeId: "STRING_VALUE", // required
51
+ * VideoStartTimestamp: Number("long"),
52
+ * VideoEndTimestamp: Number("long"),
53
+ * InitialFace: { // InitialFace
54
+ * BoundingBox: { // BoundingBox
55
+ * Width: Number("float"), // required
56
+ * Height: Number("float"), // required
57
+ * Left: Number("float"), // required
58
+ * Top: Number("float"), // required
59
+ * },
60
+ * InitialFaceDetectedTimestamp: Number("long"), // required
61
+ * },
62
+ * TargetFace: { // TargetFace
63
+ * BoundingBox: {
64
+ * Width: Number("float"), // required
65
+ * Height: Number("float"), // required
66
+ * Left: Number("float"), // required
67
+ * Top: Number("float"), // required
68
+ * },
69
+ * FaceDetectedInTargetPositionStartTimestamp: Number("long"), // required
70
+ * FaceDetectedInTargetPositionEndTimestamp: Number("long"), // required
71
+ * },
72
+ * ColorDisplayed: { // ColorDisplayed
73
+ * CurrentColor: { // FreshnessColor
74
+ * RGB: [ // ColorComponentList // required
75
+ * Number("int"),
76
+ * ],
77
+ * },
78
+ * PreviousColor: {
79
+ * RGB: [ // required
80
+ * Number("int"),
81
+ * ],
82
+ * },
83
+ * SequenceNumber: Number("int"), // required
84
+ * CurrentColorStartTimestamp: Number("long"), // required
85
+ * },
86
+ * },
87
+ * },
88
+ * },
89
+ * },
90
+ * };
91
+ * const command = new StartFaceLivenessSessionCommand(input);
92
+ * const response = await client.send(command);
93
+ * ```
94
+ *
95
+ * @param StartFaceLivenessSessionCommandInput - {@link StartFaceLivenessSessionCommandInput}
96
+ * @returns {@link StartFaceLivenessSessionCommandOutput}
97
+ * @see {@link StartFaceLivenessSessionCommandInput} for command's `input` shape.
98
+ * @see {@link StartFaceLivenessSessionCommandOutput} for command's `response` shape.
99
+ * @see {@link RekognitionStreamingClientResolvedConfig | config} for RekognitionStreamingClient's `config` shape.
100
+ *
101
+ * @throws {@link AccessDeniedException} (client fault)
102
+ * <p>Occurs when the client isn't authorized to perform the action.</p>
103
+ *
104
+ * @throws {@link InternalServerException} (server fault)
105
+ * <p>Unexpected error during processing of request.</p>
106
+ *
107
+ * @throws {@link ServiceQuotaExceededException} (client fault)
108
+ * <p>Occurs when a request would cause a service quota to be exceeded.</p>
109
+ *
110
+ * @throws {@link ServiceUnavailableException} (server fault)
111
+ * <p>Service-wide throttling to recover from an operational event or service is not able to scale.</p>
112
+ *
113
+ * @throws {@link SessionNotFoundException} (client fault)
114
+ * <p>Occurs when the given <code>sessionId</code> is not found.</p>
115
+ *
116
+ * @throws {@link ThrottlingException} (client fault)
117
+ * <p>A request was denied due to request throttling. Occurs when too many requests were made by a user
118
+ * (exceeding their service quota), the service isn't able to scale, or a service-wide throttling was done to recover from an operational event.</p>
119
+ *
120
+ * @throws {@link ValidationException} (client fault)
121
+ * <p>The input fails to satisfy the constraints specified by the service. Potential reasons
122
+ * inlcude: video quality or size is invalid, video container format not supported, video does
123
+ * not have enough information - no person detected in video, request couldn't be parsed or is
124
+ * invalid, session has expired or is invalid, S3 bucket is invalid/in another AWS region, KMS
125
+ * Key is invalid.</p>
126
+ *
127
+ *
128
+ */
20
129
  export declare class StartFaceLivenessSessionCommand extends $Command<StartFaceLivenessSessionCommandInput, StartFaceLivenessSessionCommandOutput, RekognitionStreamingClientResolvedConfig> {
21
130
  readonly input: StartFaceLivenessSessionCommandInput;
22
131
  static getEndpointParameterInstructions(): EndpointParameterInstructions;
@@ -2,6 +2,7 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-cl
2
2
  import { RekognitionStreamingServiceException as __BaseException } from "./RekognitionStreamingServiceException";
3
3
  /**
4
4
  * @public
5
+ * <p>Occurs when the client isn't authorized to perform the action.</p>
5
6
  */
6
7
  export declare class AccessDeniedException extends __BaseException {
7
8
  readonly name: "AccessDeniedException";
@@ -15,77 +16,199 @@ export declare class AccessDeniedException extends __BaseException {
15
16
  }
16
17
  /**
17
18
  * @public
19
+ * <p>Identifies the bounding box around a given label, face, text, object of interest, or
20
+ * personal protective equipment. The left (x-coordinate) and top (y-coordinate) are coordinates
21
+ * representing the top and left sides of the bounding box. Note that the upper-left corner of
22
+ * the image is the origin (0,0). </p>
23
+ * <p>The top and left values returned are ratios of the overall image size. For example, if the input image is 700x200 pixels, and the top-left coordinate of the bounding box is 350x50 pixels, the API returns a left value of 0.5 (350/700) and a top value of 0.25 (50/200).</p>
24
+ * <p>The width and height values represent the dimensions of the bounding box as a ratio of the overall image dimension. For example, if the input image is 700x200 pixels, and the bounding box width is 70 pixels, the width returned is 0.1. </p>
18
25
  */
19
26
  export interface BoundingBox {
27
+ /**
28
+ * <p>Width of the bounding box as a ratio of the overall image width.</p>
29
+ */
20
30
  Width: number | undefined;
31
+ /**
32
+ * <p>Height of the bounding box as a ratio of the overall image height.</p>
33
+ */
21
34
  Height: number | undefined;
35
+ /**
36
+ * <p>Left coordinate of the bounding box as a ratio of overall image width.</p>
37
+ */
22
38
  Left: number | undefined;
39
+ /**
40
+ * <p>Top coordinate of the bounding box as a ratio of overall image height.</p>
41
+ */
23
42
  Top: number | undefined;
24
43
  }
25
44
  /**
26
45
  * @public
46
+ * <p>Configuration options for Face Liveness challenges performed at the client side. </p>
27
47
  */
28
48
  export interface ChallengeConfig {
49
+ /**
50
+ * <p>Threshold for face detection done using blaze face.</p>
51
+ */
29
52
  BlazeFaceDetectionThreshold?: number;
53
+ /**
54
+ * <p>Threshold for the minimum distance that face can be from the camera before face oval
55
+ * match challenge starts.</p>
56
+ */
30
57
  FaceDistanceThresholdMin?: number;
58
+ /**
59
+ * <p>Threshold for face distance threshold face liveness challenge.</p>
60
+ */
31
61
  FaceDistanceThreshold?: number;
62
+ /**
63
+ * <p>Threshold for the maximum distance that face can be from the camera before face oval
64
+ * match challenge starts.</p>
65
+ */
32
66
  FaceDistanceThresholdMax?: number;
67
+ /**
68
+ * <p>Threshold for face oval match using IoU (Intersection over Union).</p>
69
+ */
33
70
  OvalIouThreshold?: number;
71
+ /**
72
+ * <p>Height to width ratio of oval used for face oval match.</p>
73
+ */
34
74
  OvalHeightWidthRatio?: number;
75
+ /**
76
+ * <p>Threshold for width during oval IOU (Intersection over Union) match.</p>
77
+ */
35
78
  OvalIouWidthThreshold?: number;
79
+ /**
80
+ * <p>Threshold for height during oval IOU (Intersection over Union) match.</p>
81
+ */
36
82
  OvalIouHeightThreshold?: number;
83
+ /**
84
+ * <p>Threshold for width during face IOU (Intersection over Union) match.</p>
85
+ */
37
86
  FaceIouWidthThreshold?: number;
87
+ /**
88
+ * <p> Threshold for height during face IOU (Intersection over Union) match.</p>
89
+ */
38
90
  FaceIouHeightThreshold?: number;
39
91
  }
40
92
  /**
41
93
  * @public
94
+ * <p>Represents the colors to be flashed to the end user, each color represented in RGB values.</p>
42
95
  */
43
96
  export interface FreshnessColor {
97
+ /**
98
+ * <p>RGB values for a color to be flashed to the end user.</p>
99
+ */
44
100
  RGB: number[] | undefined;
45
101
  }
46
102
  /**
47
103
  * @public
104
+ * <p>Contains information regarding <code>SequenceNumber</code>, <code>CurrentColor</code>,
105
+ * <code>PreviousColor</code>, and <code>CurrentColorStartTimestamp</code>.</p>
48
106
  */
49
107
  export interface ColorDisplayed {
108
+ /**
109
+ * <p> The current color being displayed on the screen (flat or downscrolled). It will contain a separate RGB list having 3 elements (each element can have values between 0 to 255). </p>
110
+ */
50
111
  CurrentColor: FreshnessColor | undefined;
112
+ /**
113
+ * <p>The previous color displayed on screen (flat or downscrolled). It will contain a separate RGB list having 3 elements (each element can have values between 0 to 255). </p>
114
+ */
51
115
  PreviousColor?: FreshnessColor;
116
+ /**
117
+ * <p>The order in which the current color was displayed on the screen.</p>
118
+ */
52
119
  SequenceNumber: number | undefined;
120
+ /**
121
+ * <p>Epoch timestamp of when the current color was displayed on the user screen.</p>
122
+ */
53
123
  CurrentColorStartTimestamp: number | undefined;
54
124
  }
55
125
  /**
56
126
  * @public
127
+ * <p> Contains bounding box of initial face position of the user on the device screen.
128
+ * Contains an epoch timestamp of when the user was detected in this position. Used for Face
129
+ * Liveness detection.</p>
57
130
  */
58
131
  export interface InitialFace {
132
+ /**
133
+ * <p>The bounding box for the initial face position of the user on the device screen.</p>
134
+ */
59
135
  BoundingBox: BoundingBox | undefined;
136
+ /**
137
+ * <p>Timestamp that a face was initially detected at.</p>
138
+ */
60
139
  InitialFaceDetectedTimestamp: number | undefined;
61
140
  }
62
141
  /**
63
142
  * @public
143
+ * <p>Contains bounding box of face position of the user on the device screen at target
144
+ * location constructed for the challenge. This is generated using the random offsets provided by
145
+ * the server to the client at session start. Also contains start and end epoch timestamp of when
146
+ * the user was detected in this position.</p>
64
147
  */
65
148
  export interface TargetFace {
149
+ /**
150
+ * <p>A bounding box for the target face.</p>
151
+ */
66
152
  BoundingBox: BoundingBox | undefined;
153
+ /**
154
+ * <p>Starting timestamp at which a face was detected in the target position.</p>
155
+ */
67
156
  FaceDetectedInTargetPositionStartTimestamp: number | undefined;
157
+ /**
158
+ * <p>Ending timestamp at which a face was detected in the target position.</p>
159
+ */
68
160
  FaceDetectedInTargetPositionEndTimestamp: number | undefined;
69
161
  }
70
162
  /**
71
163
  * @public
164
+ * <p>Holds information about the type of face movement and light challenges that need to be
165
+ * performed.</p>
72
166
  */
73
167
  export interface FaceMovementAndLightClientChallenge {
168
+ /**
169
+ * <p>An ID that uniquely identifies a challenge from a client.</p>
170
+ */
74
171
  ChallengeId: string | undefined;
172
+ /**
173
+ * <p>Epoch timestamp indicating start of video recording.</p>
174
+ */
75
175
  VideoStartTimestamp?: number;
176
+ /**
177
+ * <p>Epoch timestamp indicating end of video recording.</p>
178
+ */
76
179
  VideoEndTimestamp?: number;
180
+ /**
181
+ * <p>Contains the bounding box of the initial face position for the user on the device screen.
182
+ * Also contains an epoch timestamp of when the user was detected in this position. Used for Face
183
+ * Liveness detection.</p>
184
+ */
77
185
  InitialFace?: InitialFace;
186
+ /**
187
+ * <p>Contains the face position bounding box for the user on the device's screen, set at the
188
+ * target location constructed for the challenge. Generated using a precise oval location
189
+ * depending on the provided video </p>
190
+ * <p>dimensions in the input stream. Contains start and end epoch timestamp of when the user
191
+ * was detected in this position.</p>
192
+ */
78
193
  TargetFace?: TargetFace;
194
+ /**
195
+ * <p>Contains information regarding SequenceNumber, CurrentColor, PreviousColor, and CurrentColorStartTimestamp for a challenge.</p>
196
+ */
79
197
  ColorDisplayed?: ColorDisplayed;
80
198
  }
81
199
  /**
82
200
  * @public
201
+ * <p>Object containing information for Face Liveness challenges performed at the client
202
+ * side.</p>
83
203
  */
84
204
  export type ClientChallenge = ClientChallenge.FaceMovementAndLightChallengeMember | ClientChallenge.$UnknownMember;
85
205
  /**
86
206
  * @public
87
207
  */
88
208
  export declare namespace ClientChallenge {
209
+ /**
210
+ * <p>Information about a face movement and light challenge type.</p>
211
+ */
89
212
  interface FaceMovementAndLightChallengeMember {
90
213
  FaceMovementAndLightChallenge: FaceMovementAndLightClientChallenge;
91
214
  $unknown?: never;
@@ -102,22 +225,42 @@ export declare namespace ClientChallenge {
102
225
  }
103
226
  /**
104
227
  * @public
228
+ * <p>Any information that the client needs to send for the streaming session. For face movement challenge,
229
+ * it will contain information like initial face position and target face position.</p>
105
230
  */
106
231
  export interface ClientSessionInformationEvent {
232
+ /**
233
+ * <p>Contains information on FaceMovementAndLightChellenge, TargetFace, and ColorDisplayed, for a given Challenge.</p>
234
+ */
107
235
  Challenge: ClientChallenge | undefined;
108
236
  }
109
237
  /**
110
238
  * @public
239
+ * <p>A color sequence to be displayed on the user’s screen. </p>
111
240
  */
112
241
  export interface ColorSequence {
242
+ /**
243
+ * <p>Represents the colors in a given ColorSequence to be flashed to the end user, with each color represented in RGB values.</p>
244
+ */
113
245
  FreshnessColor: FreshnessColor | undefined;
246
+ /**
247
+ * <p>Duration in milliseconds for which a given color in the color sequence will down-scroll before taking over full screen.</p>
248
+ */
114
249
  DownscrollDuration: number | undefined;
250
+ /**
251
+ * <p>Duration in milliseconds for which a given flat color in the color sequence will be displayed on the full screen.</p>
252
+ */
115
253
  FlatDisplayDuration: number | undefined;
116
254
  }
117
255
  /**
118
256
  * @public
257
+ * <p>Contains information regarding if a disconnection event took place
258
+ * during the Face Liveness session. Disconnection events may indicate processing is complete at the server side.</p>
119
259
  */
120
260
  export interface DisconnectionEvent {
261
+ /**
262
+ * <p>The timestamp that a disconnection event took place at.</p>
263
+ */
121
264
  TimestampMillis: number | undefined;
122
265
  }
123
266
  /**
@@ -133,24 +276,52 @@ export declare const LightChallengeType: {
133
276
  export type LightChallengeType = (typeof LightChallengeType)[keyof typeof LightChallengeType];
134
277
  /**
135
278
  * @public
279
+ * <p>Oval parameters need for oval display to complete oval match challenge.</p>
136
280
  */
137
281
  export interface OvalParameters {
282
+ /**
283
+ * <p>Width of the oval</p>
284
+ */
138
285
  Width: number | undefined;
286
+ /**
287
+ * <p>Height of the oval</p>
288
+ */
139
289
  Height: number | undefined;
290
+ /**
291
+ * <p>X-axis co-ordinate of for center of oval</p>
292
+ */
140
293
  CenterX: number | undefined;
294
+ /**
295
+ * <p>Y-axis co-ordinate of for center of oval</p>
296
+ */
141
297
  CenterY: number | undefined;
142
298
  }
143
299
  /**
144
300
  * @public
301
+ * <p>Contains information regarding the <code>OvalParameters</code> and
302
+ * <code>LightChallengeType</code> for a challenge.</p>
145
303
  */
146
304
  export interface FaceMovementAndLightServerChallenge {
305
+ /**
306
+ * <p>The parameters needed for an oval to display and to complete oval match challenge.</p>
307
+ */
147
308
  OvalParameters: OvalParameters | undefined;
309
+ /**
310
+ * <p>Information on the type of colored light challenge.</p>
311
+ */
148
312
  LightChallengeType: LightChallengeType | string | undefined;
313
+ /**
314
+ * <p>Configurations for attributes of the Face Liveness movement and light challenges.</p>
315
+ */
149
316
  ChallengeConfig: ChallengeConfig | undefined;
317
+ /**
318
+ * <p>Used to generate a list of color sequences to be displayed on a user's screen.</p>
319
+ */
150
320
  ColorSequences: ColorSequence[] | undefined;
151
321
  }
152
322
  /**
153
323
  * @public
324
+ * <p>Unexpected error during processing of request.</p>
154
325
  */
155
326
  export declare class InternalServerException extends __BaseException {
156
327
  readonly name: "InternalServerException";
@@ -164,24 +335,38 @@ export declare class InternalServerException extends __BaseException {
164
335
  }
165
336
  /**
166
337
  * @public
338
+ * <p>Contains the video chunk blob.</p>
167
339
  */
168
340
  export interface VideoEvent {
341
+ /**
342
+ * <p>The video chunk for a video event.</p>
343
+ */
169
344
  VideoChunk?: Uint8Array;
345
+ /**
346
+ * <p>Milisecond timestamp for a video chunk in a video event.</p>
347
+ */
170
348
  TimestampMillis?: number;
171
349
  }
172
350
  /**
173
351
  * @public
352
+ * <p>Contains information regarding video events and client session details for a Face Liveness verification request stream.</p>
174
353
  */
175
354
  export type LivenessRequestStream = LivenessRequestStream.ClientSessionInformationEventMember | LivenessRequestStream.VideoEventMember | LivenessRequestStream.$UnknownMember;
176
355
  /**
177
356
  * @public
178
357
  */
179
358
  export declare namespace LivenessRequestStream {
359
+ /**
360
+ * <p>Contains video events for a Face Liveness request stream.</p>
361
+ */
180
362
  interface VideoEventMember {
181
363
  VideoEvent: VideoEvent;
182
364
  ClientSessionInformationEvent?: never;
183
365
  $unknown?: never;
184
366
  }
367
+ /**
368
+ * <p>Information event for the client session for a given Face Liveness request stream.</p>
369
+ */
185
370
  interface ClientSessionInformationEventMember {
186
371
  VideoEvent?: never;
187
372
  ClientSessionInformationEvent: ClientSessionInformationEvent;
@@ -201,12 +386,16 @@ export declare namespace LivenessRequestStream {
201
386
  }
202
387
  /**
203
388
  * @public
389
+ * <p>Information on the challenge sent by the server.</p>
204
390
  */
205
391
  export type ServerChallenge = ServerChallenge.FaceMovementAndLightChallengeMember | ServerChallenge.$UnknownMember;
206
392
  /**
207
393
  * @public
208
394
  */
209
395
  export declare namespace ServerChallenge {
396
+ /**
397
+ * <p>Paramteters and configuration information for the face movement and light sequence challenges.</p>
398
+ */
210
399
  interface FaceMovementAndLightChallengeMember {
211
400
  FaceMovementAndLightChallenge: FaceMovementAndLightServerChallenge;
212
401
  $unknown?: never;
@@ -223,18 +412,27 @@ export declare namespace ServerChallenge {
223
412
  }
224
413
  /**
225
414
  * @public
415
+ * <p>Information required for the streaming session.</p>
226
416
  */
227
417
  export interface SessionInformation {
418
+ /**
419
+ * <p>Object containing information of Face Liveness challenge to be performed by the client. The information is used to construct the challenges at the client's SDK.</p>
420
+ */
228
421
  Challenge: ServerChallenge | undefined;
229
422
  }
230
423
  /**
231
424
  * @public
425
+ * <p>Event containing session information for the server.</p>
232
426
  */
233
427
  export interface ServerSessionInformationEvent {
428
+ /**
429
+ * <p>Contains the session information sent by the server..</p>
430
+ */
234
431
  SessionInformation: SessionInformation | undefined;
235
432
  }
236
433
  /**
237
434
  * @public
435
+ * <p>Occurs when a request would cause a service quota to be exceeded.</p>
238
436
  */
239
437
  export declare class ServiceQuotaExceededException extends __BaseException {
240
438
  readonly name: "ServiceQuotaExceededException";
@@ -248,6 +446,7 @@ export declare class ServiceQuotaExceededException extends __BaseException {
248
446
  }
249
447
  /**
250
448
  * @public
449
+ * <p>Service-wide throttling to recover from an operational event or service is not able to scale.</p>
251
450
  */
252
451
  export declare class ServiceUnavailableException extends __BaseException {
253
452
  readonly name: "ServiceUnavailableException";
@@ -261,6 +460,8 @@ export declare class ServiceUnavailableException extends __BaseException {
261
460
  }
262
461
  /**
263
462
  * @public
463
+ * <p>A request was denied due to request throttling. Occurs when too many requests were made by a user
464
+ * (exceeding their service quota), the service isn't able to scale, or a service-wide throttling was done to recover from an operational event.</p>
264
465
  */
265
466
  export declare class ThrottlingException extends __BaseException {
266
467
  readonly name: "ThrottlingException";
@@ -274,6 +475,11 @@ export declare class ThrottlingException extends __BaseException {
274
475
  }
275
476
  /**
276
477
  * @public
478
+ * <p>The input fails to satisfy the constraints specified by the service. Potential reasons
479
+ * inlcude: video quality or size is invalid, video container format not supported, video does
480
+ * not have enough information - no person detected in video, request couldn't be parsed or is
481
+ * invalid, session has expired or is invalid, S3 bucket is invalid/in another AWS region, KMS
482
+ * Key is invalid.</p>
277
483
  */
278
484
  export declare class ValidationException extends __BaseException {
279
485
  readonly name: "ValidationException";
@@ -287,12 +493,16 @@ export declare class ValidationException extends __BaseException {
287
493
  }
288
494
  /**
289
495
  * @public
496
+ * <p>Contains information event details and exception information for a Face Liveness verification response stream.</p>
290
497
  */
291
498
  export type LivenessResponseStream = LivenessResponseStream.DisconnectionEventMember | LivenessResponseStream.InternalServerExceptionMember | LivenessResponseStream.ServerSessionInformationEventMember | LivenessResponseStream.ServiceQuotaExceededExceptionMember | LivenessResponseStream.ServiceUnavailableExceptionMember | LivenessResponseStream.ThrottlingExceptionMember | LivenessResponseStream.ValidationExceptionMember | LivenessResponseStream.$UnknownMember;
292
499
  /**
293
500
  * @public
294
501
  */
295
502
  export declare namespace LivenessResponseStream {
503
+ /**
504
+ * <p>Details for a server session information event.</p>
505
+ */
296
506
  interface ServerSessionInformationEventMember {
297
507
  ServerSessionInformationEvent: ServerSessionInformationEvent;
298
508
  DisconnectionEvent?: never;
@@ -303,6 +513,9 @@ export declare namespace LivenessResponseStream {
303
513
  ServiceUnavailableException?: never;
304
514
  $unknown?: never;
305
515
  }
516
+ /**
517
+ * <p>Notification that disconnection event has occurred to a Face Liveness session.</p>
518
+ */
306
519
  interface DisconnectionEventMember {
307
520
  ServerSessionInformationEvent?: never;
308
521
  DisconnectionEvent: DisconnectionEvent;
@@ -313,6 +526,9 @@ export declare namespace LivenessResponseStream {
313
526
  ServiceUnavailableException?: never;
314
527
  $unknown?: never;
315
528
  }
529
+ /**
530
+ * <p>Notification that a ValidationException occurred during a Face Liveness session.</p>
531
+ */
316
532
  interface ValidationExceptionMember {
317
533
  ServerSessionInformationEvent?: never;
318
534
  DisconnectionEvent?: never;
@@ -323,6 +539,9 @@ export declare namespace LivenessResponseStream {
323
539
  ServiceUnavailableException?: never;
324
540
  $unknown?: never;
325
541
  }
542
+ /**
543
+ * <p>Notification that an InternalServerException occurred during a Face Liveness session.</p>
544
+ */
326
545
  interface InternalServerExceptionMember {
327
546
  ServerSessionInformationEvent?: never;
328
547
  DisconnectionEvent?: never;
@@ -333,6 +552,9 @@ export declare namespace LivenessResponseStream {
333
552
  ServiceUnavailableException?: never;
334
553
  $unknown?: never;
335
554
  }
555
+ /**
556
+ * <p>Notification that a ThrottlingException occurred during a Face Liveness session.</p>
557
+ */
336
558
  interface ThrottlingExceptionMember {
337
559
  ServerSessionInformationEvent?: never;
338
560
  DisconnectionEvent?: never;
@@ -343,6 +565,9 @@ export declare namespace LivenessResponseStream {
343
565
  ServiceUnavailableException?: never;
344
566
  $unknown?: never;
345
567
  }
568
+ /**
569
+ * <p>Notification that a ServiceQuotaExceededException occurred during a Face Liveness session.</p>
570
+ */
346
571
  interface ServiceQuotaExceededExceptionMember {
347
572
  ServerSessionInformationEvent?: never;
348
573
  DisconnectionEvent?: never;
@@ -353,6 +578,9 @@ export declare namespace LivenessResponseStream {
353
578
  ServiceUnavailableException?: never;
354
579
  $unknown?: never;
355
580
  }
581
+ /**
582
+ * <p>Notification that a ServiceUnavailableException occurred during a Face Liveness session.</p>
583
+ */
356
584
  interface ServiceUnavailableExceptionMember {
357
585
  ServerSessionInformationEvent?: never;
358
586
  DisconnectionEvent?: never;
@@ -387,6 +615,7 @@ export declare namespace LivenessResponseStream {
387
615
  }
388
616
  /**
389
617
  * @public
618
+ * <p>Occurs when the given <code>sessionId</code> is not found.</p>
390
619
  */
391
620
  export declare class SessionNotFoundException extends __BaseException {
392
621
  readonly name: "SessionNotFoundException";
@@ -402,17 +631,41 @@ export declare class SessionNotFoundException extends __BaseException {
402
631
  * @public
403
632
  */
404
633
  export interface StartFaceLivenessSessionRequest {
634
+ /**
635
+ * <p>A unique 128-bit UUID. Used to uniquely identify the session and also acta as an
636
+ * idempotency token for all operations associated with the session.</p>
637
+ */
405
638
  SessionId: string | undefined;
639
+ /**
640
+ * <p>The width of the video object included in a request to start a Face Liveness
641
+ * session.</p>
642
+ */
406
643
  VideoWidth: string | undefined;
644
+ /**
645
+ * <p>The height of the video object included in a request to start a Face Liveness
646
+ * session.</p>
647
+ */
407
648
  VideoHeight: string | undefined;
408
- ChallengeVersions?: string;
649
+ /**
650
+ * <p>String containing comma separated list of challenge versions supported by client.</p>
651
+ */
652
+ ChallengeVersions: string | undefined;
653
+ /**
654
+ * <p>Information regarding the request stream for a Face Liveness session.</p>
655
+ */
409
656
  LivenessRequestStream?: AsyncIterable<LivenessRequestStream>;
410
657
  }
411
658
  /**
412
659
  * @public
413
660
  */
414
661
  export interface StartFaceLivenessSessionResponse {
662
+ /**
663
+ * <p>The ID that identifies a Face Liveness session.</p>
664
+ */
415
665
  SessionId: string | undefined;
666
+ /**
667
+ * <p>Information regarding the response stream for a Face Liveness session.</p>
668
+ */
416
669
  LivenessResponseStream?: AsyncIterable<LivenessResponseStream>;
417
670
  }
418
671
  /**
@@ -1,5 +1,11 @@
1
1
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
2
2
  import { EventStreamSerdeContext as __EventStreamSerdeContext, SerdeContext as __SerdeContext } from "@aws-sdk/types";
3
3
  import { StartFaceLivenessSessionCommandInput, StartFaceLivenessSessionCommandOutput } from "../commands/StartFaceLivenessSessionCommand";
4
- export declare const serializeAws_restJson1StartFaceLivenessSessionCommand: (input: StartFaceLivenessSessionCommandInput, context: __SerdeContext & __EventStreamSerdeContext) => Promise<__HttpRequest>;
5
- export declare const deserializeAws_restJson1StartFaceLivenessSessionCommand: (output: __HttpResponse, context: __SerdeContext & __EventStreamSerdeContext) => Promise<StartFaceLivenessSessionCommandOutput>;
4
+ /**
5
+ * serializeAws_restJson1StartFaceLivenessSessionCommand
6
+ */
7
+ export declare const se_StartFaceLivenessSessionCommand: (input: StartFaceLivenessSessionCommandInput, context: __SerdeContext & __EventStreamSerdeContext) => Promise<__HttpRequest>;
8
+ /**
9
+ * deserializeAws_restJson1StartFaceLivenessSessionCommand
10
+ */
11
+ export declare const de_StartFaceLivenessSessionCommand: (output: __HttpResponse, context: __SerdeContext & __EventStreamSerdeContext) => Promise<StartFaceLivenessSessionCommandOutput>;
@@ -318,7 +318,7 @@ export interface StartFaceLivenessSessionRequest {
318
318
  SessionId: string | undefined;
319
319
  VideoWidth: string | undefined;
320
320
  VideoHeight: string | undefined;
321
- ChallengeVersions?: string;
321
+ ChallengeVersions: string | undefined;
322
322
  LivenessRequestStream?: AsyncIterable<LivenessRequestStream>;
323
323
  }
324
324
  export interface StartFaceLivenessSessionResponse {