Skip to content

Built for people who want to own their automations. Join the waitlist for an invite.

Package listing

@kody/cal-com

src/smoke-test.js

16 lines · 656 B · JavaScript
import { smokeTest } from './cal-com.js'

/**
 * Verify Cal.com credentials by reading a trimmed `/me` profile.
 * Without credentials, returns setup URLs instead of throwing.
 * @param {Object} [input]
 * @param {boolean} [input.dryRun] Skip the live `/me` call.
 * @returns {Promise<{ ok: true, live: boolean, profile?: Record<string, unknown>, setup: object }>}
 * @example
 * import smokeTest from 'kody:@kody/cal-com/smoke-test'
 * const result = await smokeTest()
 * // => { ok: true, live: true, profile: { id: 1, username: '...', email: '...' } }
 */
export default async function smokeTestEntrypoint(input = {}) {
	return await smokeTest(input)
}