Skip to content
← Public packages

@kentcdodds/exchange-threads

Open kody.exchange threads from Kody. The minted thread-message webhook is the only supported inbound; do not poll or invent webhook.site.

src/index.ts

23 lines · 647 B · TypeScript
/**
 * Describe the exchange-threads package surface.
 * @example
 * import describe from 'kody:@kentcdodds/exchange-threads'
 * describe()
 * // => { kodyId: 'exchange-threads', exports: ['setup', 'create', ...] }
 */
export default function describeExchangeThreads() {
	return {
		kodyId: 'exchange-threads',
		intent:
			'Create and receive kody.exchange threads through OAuth. The minted thread-message webhook is the only supported inbound. Do not invent webhook.site, poll /v1/messages, or schedule a watcher.',
		exports: [
			'./setup',
			'./create',
			'./register',
			'./watch',
			'./on-message',
			'./list',
			'./reply',
		],
	}
}