···11-export { LabelerServer, type LabelerOptions } from "./LabelerServer.js";
11+export { type LabelerOptions, LabelerServer } from "./LabelerServer.js";
22+export { formatLabel, labelIsSigned, signLabel } from "./util/labels.js";
23export type { SignedLabel } from "./util/types.js";
33-export { formatLabel, signLabel, labelIsSigned } from "./util/labels.js";
+3-5
src/scripts/declareLabeler.ts
···11-import { AtpAgent, ComAtprotoLabelDefs } from "@atproto/api";
11+import type { AtpAgent, ComAtprotoLabelDefs } from "@atproto/api";
22import { loginAgentOrCredentials } from "./util.js";
3344/**
···8383 * Delete the labeler declaration for this account, removing all label definitions.
8484 * @param agent The agent logged into the labeler account.
8585 */
8686-export async function deleteLabelerDeclaration(
8787- agent: AtpAgent,
8888-): Promise<void>;
8686+export async function deleteLabelerDeclaration(agent: AtpAgent): Promise<void>;
8987export async function deleteLabelerDeclaration(
9088 agentOrCredentials: AtpAgent | { pds?: string; identifier: string; password: string },
9189) {
9290 const agent = await loginAgentOrCredentials(agentOrCredentials);
9391 await agent.app.bsky.labeler.service.delete({ repo: agent.accountDid });
9494-}9292+}
+1-1
src/scripts/plc.ts
···154154 }
155155 await agent.login({ identifier: options.did, password: options.password });
156156 }
157157-157157+158158 const credentials = await agent.com.atproto.identity.getRecommendedDidCredentials();
159159 if (!credentials.success) {
160160 throw new Error("Failed to fetch DID document.");
+1-1
src/util/types.ts
···44 & { [K in keyof T as undefined extends T[K] ? never : K]: T[K] }
55 & { [K in keyof T as undefined extends T[K] ? K : never]?: T[K] };
6677-export type SignedLabel = ComAtprotoLabelDefs.Label & { sig: Uint8Array };77+export type SignedLabel = ComAtprotoLabelDefs.Label & { sig: Uint8Array };