/** * Superblocks OCR client types. */ import type { BaseIntegrationClient } from "../../types.js"; import type { SupportsApiRequest } from "../base/index.js"; /** * Superblocks OCR client for API interactions. * * Provides generic API request method for interacting with Superblocks OCR service. * Use apiRequest() to make calls to any OCR API endpoint. * * @example * ```typescript * // Declare in api(): integrations: { ocr: superblocksOcr(INTEGRATION_ID) } * // In run(), access via ctx.integrations.ocr * * // Extract text from image * const OCRResponseSchema = z.object({ * text: z.string(), * confidence: z.number(), * }); * * const result = await ocr.apiRequest( * { * method: 'POST', * path: '/extract', * body: { * imageUrl: 'https://example.com/image.png', * }, * }, * { response: OCRResponseSchema } * ); * ``` */ export interface SuperblocksOCRClient extends BaseIntegrationClient, SupportsApiRequest { // apiRequest() method inherited from SupportsApiRequest }