Skip to content
← Public packages

@kentcdodds/bluesky

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

src/unfollow.ts

15 lines · 647 B · TypeScript
import { unfollow } from './client.ts'
import type { UnfollowInput } from './types.ts'

/**
 * Unfollow a Bluesky actor. Maps `uri`/`actor` aliases; rejects unknown keys. Requires `confirm: true` after explicit user approval.
 * @param params.uri - Follow record AT URI, or pass `actor` for a followed profile.
 * @returns Deletion result or dry-run payload.
 * @example
 * import unfollow from 'kody:@kentcdodds/bluesky/unfollow'
 * const result = await unfollow({ actor: 'example.bsky.social', confirm: true })
 * // => { ... }
 */
export default async function unfollowEntrypoint(params: UnfollowInput = {}) {
  return await unfollow(params)
}