@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 06:00 UTC

main
ts 43 lines 1.59 KB
Raw
1 import type * as rekognition from "@distilled.cloud/aws/rekognition";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
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 */
29 export 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 > {}
41 export const CreateFaceLivenessSession = Binding.Service<CreateFaceLivenessSession>(
42 "AWS.Rekognition.CreateFaceLivenessSession",
43 );