@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 39 lines 1.3 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:SearchUsers` — search a face collection for users matching a face ID or user ID.
7 *
8 * The binding takes no arguments and grants the function
9 * `rekognition:SearchUsers` 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.SearchUsersHttp)`.
13 *
14 * ### User Search
15 * **Example:** Search Users by Face ID
16 * ```typescript
17 * // init
18 * const searchUsers = yield* AWS.Rekognition.SearchUsers();
19 *
20 * // runtime
21 * const result = yield* searchUsers({
22 * CollectionId: "tenant-42",
23 * FaceId: faceId,
24 * });
25 * const matches = result.UserMatches ?? [];
26 * ```
27 *
28 * @binding
29 */
30 export interface SearchUsers extends Binding.Service<
31 SearchUsers,
32 "AWS.Rekognition.SearchUsers",
33 () => Effect.Effect<
34 (
35 request: rekognition.SearchUsersRequest,
36 ) => Effect.Effect<rekognition.SearchUsersResponse, rekognition.SearchUsersError>
37 >
38 > {}
39 export const SearchUsers = Binding.Service<SearchUsers>("AWS.Rekognition.SearchUsers");