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