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