Something went wrong. Try again.
Markdown-first API for the AT Protocol ecosystem, built for LLM agents and tools that consume plain text.
Something went wrong. Try again.
1.4 kB · 71 lines
TypeScript
at dev
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172export interface DidService { id: string; type: string; serviceEndpoint: string;}
export interface VerificationMethod { id: string; type: string;}
export interface DidDocument { id: string; alsoKnownAs?: string[]; service?: DidService[]; verificationMethod?: VerificationMethod[];}
export interface Actor { did: string; doc: DidDocument; pds: string; handle: string;}
export interface RecordMeta { handle: string; collection: string; rkey: string; uri: string;}
export interface AtpRecord { uri: string; cid?: string; value: Record<string, unknown>;}
export interface PlcOperation { type: string; // 'plc_operation' | 'create' (legacy) | 'plc_tombstone' sig?: string; prev?: string | null; services?: Record<string, { type: string; endpoint: string }>; alsoKnownAs?: string[]; rotationKeys?: string[]; verificationMethods?: Record<string, string>; // Legacy `create` operation fields handle?: string; service?: string; signingKey?: string; recoveryKey?: string;}
export interface PlcLogEntry { did: string; operation: PlcOperation; cid: string; nullified: boolean; createdAt: string;}
export interface PlcData { did: string; verificationMethods?: Record<string, string>; rotationKeys?: string[]; alsoKnownAs?: string[]; services?: Record<string, { type: string; endpoint: string }>;}
export type RecordFormatter = (record: AtpRecord, meta: RecordMeta) => string | null;