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