Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

1.1 KB
Raw Blame
import type * as textract from "@distilled.cloud/aws/textract";
import type * as Effect from "effect/Effect";
import * as Binding from "../../Binding.ts";

/**
 * Runtime binding for `textract:GetExpenseAnalysis` — read the status and
 * results of an asynchronous expense-analysis job started with
 * `StartExpenseAnalysis`.
 *
 * @binding
 * @section Asynchronous Expense Analysis
 * @example Poll an Expense Analysis Job
 * ```typescript
 * // init
 * const getExpenseAnalysis = yield* AWS.Textract.GetExpenseAnalysis();
 *
 * // runtime
 * const result = yield* getExpenseAnalysis({ JobId: jobId });
 * const documents = result.ExpenseDocuments;
 * ```
 */
export interface GetExpenseAnalysis extends Binding.Service<
  GetExpenseAnalysis,
  "AWS.Textract.GetExpenseAnalysis",
  () => Effect.Effect<
    (
      request: textract.GetExpenseAnalysisRequest,
    ) => Effect.Effect<
      textract.GetExpenseAnalysisResponse,
      textract.GetExpenseAnalysisError
    >
  >
> {}
export const GetExpenseAnalysis = Binding.Service<GetExpenseAnalysis>(
  "AWS.Textract.GetExpenseAnalysis",
);