@kody/intercom
src/search-contacts.ts
11 lines · 442 B · TypeScriptimport { parseSearchContacts, searchContacts } from './contacts.ts'
/**
* Search Intercom contacts. POST `/contacts/search` is a read.
* @example
* import searchContacts from 'kody:@kody/intercom/search-contacts'
* const { items } = await searchContacts({ email: 'pat@example.com' })
*/
export default async function searchContactsEntrypoint(params: Record<string, unknown> = {}) {
return searchContacts(parseSearchContacts(params))
}