import { getPostThread } from './client.ts' import type { GetPostThreadInput } from './types.ts' /** * Read a Bluesky post thread by AT URI. * @param params.uri - Post AT URI to fetch. * @param params.authenticated - When true, create a session and read via `bsky.social`. Defaults to the public AppView. * @returns Thread view from `app.bsky.feed.getPostThread`. * @example * import getPostThread from 'kody:@kody/bluesky/get-post-thread' * const result = await getPostThread({ uri: 'at://did:plc:.../app.bsky.feed.post/...' }) * // => { thread: { post: { ... }, replies: [...] } } */ export default async function getPostThreadEntrypoint(params: GetPostThreadInput = {}) { return await getPostThread(params) }