import { rescheduleBooking } from './cal-com.js'
/**
* Reschedule a Cal.com booking to a new start time.
* Requires `dryRun: true` to preview or `confirm: true` to write.
* @param {Object} input
* @param {string} input.bookingUid Booking UID to reschedule (`uid` accepted as alias).
* @param {string} input.start New UTC ISO start time in the request body.
* @param {boolean} [input.dryRun] Return the request preview without rescheduling.
* @param {boolean} [input.confirm] Required for the live write.
* @returns {Promise<Record<string, unknown>>} Updated booking payload or dry-run preview.
* @example
* import rescheduleBooking from 'kody:@kody/cal-com/reschedule-booking'
* const preview = await rescheduleBooking({ bookingUid: 'abc123', start: '2026-06-02T16:00:00Z', dryRun: true })
* // => { dryRun: true, method: 'POST', path: '/v2/bookings/abc123/reschedule', body: { start: '...' } }
*/
export default async function rescheduleBookingEntrypoint(input = {}) {
return await rescheduleBooking(input)
}