Skip to content
← Public packages

@kentcdodds/bluesky

Bluesky and AT Protocol helpers using package-storage handle plus blueskyAppPassword.

src/repost.ts

16 lines · 714 B · TypeScript
import { repost } from './client.ts'
import type { LikeRepostInput } from './types.ts'

/**
 * Repost a Bluesky record. Maps `uri`/`cid` aliases (`postUri`/`postCid`/`subject`); rejects unknown keys. Publishing requires `confirm: true`.
 * @param params.uri - Post AT URI to repost.
 * @param params.cid - Post CID matching the URI.
 * @returns Created repost record or dry-run payload.
 * @example
 * import repost from 'kody:@kentcdodds/bluesky/repost'
 * const result = await repost({ uri: 'at://...', cid: 'bafy...', dryRun: true })
 * // => { dryRun: true, action: 'repost', payload: { ... } }
 */
export default async function repostEntrypoint(params: LikeRepostInput = {}) {
  return await repost(params)
}