/** * Front client types. */ import type { BaseIntegrationClient } from "../../types.js"; import type { SupportsApiRequest } from "../base/index.js"; /** * Front client for API interactions. * * Provides generic API request method for interacting with Front's API. * Use apiRequest() to make calls to any Front API endpoint. * * @example * ```typescript * // Declare in api(): integrations: { front: front(INTEGRATION_ID) } * // In run(), access via ctx.integrations.front * * // Make API requests * const ResponseSchema = z.object({ * // Define your response schema * }); * * const result = await front.apiRequest( * { * method: 'GET', * path: '/conversations', * }, * { response: ResponseSchema } * ); * ``` */ export interface FrontClient extends BaseIntegrationClient, SupportsApiRequest { // apiRequest() method inherited from SupportsApiRequest }