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