@skyware/labeler
Version:
A lightweight alternative to Ozone for operating an atproto labeler.
16 lines (15 loc) • 551 B
TypeScript
import { AtpSessionData, XRPC } from "@atcute/client";
export interface LoginCredentials {
/** The URL of the PDS where the account is located. Defaults to "https://bsky.social". */
pds?: string | undefined;
/** The account identifier; a DID or handle. */
identifier: string;
/** The account password. */
password: string;
/** The 2FA code, if 2FA is enabled. */
code?: string;
}
export declare function loginAgent({ pds, ...credentials }: LoginCredentials): Promise<{
agent: XRPC;
session: AtpSessionData;
}>;