@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 45 lines 1.64 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:StartFaceDetection` — start asynchronous detection of faces in a stored video.
7 *
8 * Rekognition Video jobs read the video from S3 and run asynchronously —
9 * poll the paired `Get*` binding with the returned `JobId`, or pass a
10 * `NotificationChannel` (SNS topic + IAM role the caller must be allowed
11 * to pass) to be notified on completion.
12 *
13 * The binding takes no arguments and grants the function
14 * `rekognition:StartFaceDetection` on `*` (Rekognition data-plane resources such
15 * as collections, users, and jobs are routinely created at runtime, so
16 * their identifiers are unknown at deploy time). Provide the
17 * implementation with `Effect.provide(AWS.Rekognition.StartFaceDetectionHttp)`.
18 *
19 * ### Video Analysis
20 * **Example:** Start Face Detection
21 * ```typescript
22 * // init
23 * const startFaceDetection = yield* AWS.Rekognition.StartFaceDetection();
24 *
25 * // runtime
26 * const started = yield* startFaceDetection({
27 * Video: { S3Object: { Bucket: "videos", Name: "input.mp4" } },
28 * });
29 * // started.JobId
30 * ```
31 *
32 * @binding
33 */
34 export interface StartFaceDetection extends Binding.Service<
35 StartFaceDetection,
36 "AWS.Rekognition.StartFaceDetection",
37 () => Effect.Effect<
38 (
39 request: rekognition.StartFaceDetectionRequest,
40 ) => Effect.Effect<rekognition.StartFaceDetectionResponse, rekognition.StartFaceDetectionError>
41 >
42 > {}
43 export const StartFaceDetection = Binding.Service<StartFaceDetection>(
44 "AWS.Rekognition.StartFaceDetection",
45 );