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