1import type * as rekognition from "@distilled.cloud/aws/rekognition";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4
5/**
6 * Runtime binding for `rekognition:CreateFaceLivenessSession` — create a Face Liveness session whose ID the client-side FaceLivenessDetector component uses to run the liveness check.
7 *
8 * The binding takes no arguments and grants the function
9 * `rekognition:CreateFaceLivenessSession` on `*` (Rekognition data-plane resources such
10 * as collections, users, and jobs are routinely created at runtime, so
11 * their identifiers are unknown at deploy time). Provide the
12 * implementation with `Effect.provide(AWS.Rekognition.CreateFaceLivenessSessionHttp)`.
13 *
14 * ### Face Liveness
15 * **Example:** Start a Liveness Check
16 * ```typescript
17 * // init
18 * const createFaceLivenessSession = yield* AWS.Rekognition.CreateFaceLivenessSession();
19 *
20 * // runtime
21 * const session = yield* createFaceLivenessSession({
22 * Settings: { AuditImagesLimit: 2 },
23 * });
24 * // hand session.SessionId to the front-end FaceLivenessDetector
25 * ```
26 *
27 * @binding
28 */
29export interface CreateFaceLivenessSession extends Binding.Service<
30 CreateFaceLivenessSession,
31 "AWS.Rekognition.CreateFaceLivenessSession",
32 () => Effect.Effect<
33 (
34 request?: rekognition.CreateFaceLivenessSessionRequest,
35 ) => Effect.Effect<
36 rekognition.CreateFaceLivenessSessionResponse,
37 rekognition.CreateFaceLivenessSessionError
38 >
39 >
40> {}
41export const CreateFaceLivenessSession =
42 Binding.Service<CreateFaceLivenessSession>(
43 "AWS.Rekognition.CreateFaceLivenessSession",
44 );