import { vercelRequest } from './vercel.js' /** * Call a Vercel REST endpoint using the caller's access token or OAuth integration. * Prefer named helpers; use this for paths not wrapped by this package. * Mutating methods require `dryRun: true` or `confirm: true`. * @param {Object} [input] * @param {string} input.path Relative API path such as `/v2/user` or `/v9/projects`. * @param {boolean} [input.dryRun] Return the request preview without calling Vercel. * @returns {Promise<{ status: number, data: unknown } | { dryRun: true }>} * @example * import request from 'kody:@kody/vercel/request' * const result = await request({ path: '/v2/user' }) * // => { status: 200, data: { user: { id: '…', username: '…' } } } */ export default async function requestEntrypoint(input = {}) { return await vercelRequest(input) }