Skip to content

Built for people who want to own their automations. Join the waitlist for an invite.

Package listing

@kody/bluesky

src/repost.ts

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

/**
 * Repost a Bluesky record. 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:@kody/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)
}