Skip to content

src/reply-conversation.ts

11 lines · 523 B · TypeScript
Raw
import { parseReplyConversation, replyConversation } from './conversations.ts'

/**
 * Reply to an Intercom conversation. Requires `confirm: true`, or use `dryRun: true`.
 * @example
 * import replyConversation from 'kody:@kody/intercom/reply-conversation'
 * const preview = await replyConversation({ id, body: 'Thanks — looking into this.', dryRun: true })
 */
export default async function replyConversationEntrypoint(params: Record<string, unknown> = {}) {
	return replyConversation(parseReplyConversation(params))
}