@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, 04:45 UTC

main
ts 34 lines 1.06 KB
Raw
1 import type * as textract from "@distilled.cloud/aws/textract";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for `textract:GetLendingAnalysis` — read the status and
7 * per-page extraction results of an asynchronous lending-analysis job
8 * started with `StartLendingAnalysis`.
9 *
10 * ### Asynchronous Lending Analysis
11 * **Example:** Poll a Lending Analysis Job
12 * ```typescript
13 * // init
14 * const getLendingAnalysis = yield* AWS.Textract.GetLendingAnalysis();
15 *
16 * // runtime
17 * const result = yield* getLendingAnalysis({ JobId: jobId });
18 * const pages = result.Results;
19 * ```
20 *
21 * @binding
22 */
23 export interface GetLendingAnalysis extends Binding.Service<
24 GetLendingAnalysis,
25 "AWS.Textract.GetLendingAnalysis",
26 () => Effect.Effect<
27 (
28 request: textract.GetLendingAnalysisRequest,
29 ) => Effect.Effect<textract.GetLendingAnalysisResponse, textract.GetLendingAnalysisError>
30 >
31 > {}
32 export const GetLendingAnalysis = Binding.Service<GetLendingAnalysis>(
33 "AWS.Textract.GetLendingAnalysis",
34 );