import { calRequest } from './cal-com.js'
/**
* Call a Cal.com API v2 endpoint using the caller's API key or OAuth integration.
* Prefer named helpers; use this for paths not covered by the OpenAPI scaffold.
* Mutating methods require `dryRun: true` or `confirm: true`.
* @param {Object} [input]
* @param {string} input.path Relative API path such as `/v2/me` or `/me`.
* @param {boolean} [input.dryRun] Return the request preview without calling Cal.com.
* @returns {Promise<{ status: number, data: unknown } | { dryRun: true }>}
* @example
* import request from 'kody:@kody/cal-com/request'
* const result = await request({ path: '/me' })
* // => { status: 200, data: { status: 'success', data: { username: '...' } } }
*/
export default async function requestEntrypoint(input = {}) {
return await calRequest(input)
}