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