@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 38 lines 1.18 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:GetLendingAnalysisSummary` — read the
7 * document-group summary of an asynchronous lending-analysis job started
8 * with `StartLendingAnalysis`.
9 *
10 * ### Asynchronous Lending Analysis
11 * **Example:** Summarize a Lending Analysis Job
12 * ```typescript
13 * // init
14 * const getLendingAnalysisSummary =
15 * yield* AWS.Textract.GetLendingAnalysisSummary();
16 *
17 * // runtime
18 * const result = yield* getLendingAnalysisSummary({ JobId: jobId });
19 * const groups = result.Summary?.DocumentGroups;
20 * ```
21 *
22 * @binding
23 */
24 export interface GetLendingAnalysisSummary extends Binding.Service<
25 GetLendingAnalysisSummary,
26 "AWS.Textract.GetLendingAnalysisSummary",
27 () => Effect.Effect<
28 (
29 request: textract.GetLendingAnalysisSummaryRequest,
30 ) => Effect.Effect<
31 textract.GetLendingAnalysisSummaryResponse,
32 textract.GetLendingAnalysisSummaryError
33 >
34 >
35 > {}
36 export const GetLendingAnalysisSummary = Binding.Service<GetLendingAnalysisSummary>(
37 "AWS.Textract.GetLendingAnalysisSummary",
38 );