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