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