UNPKG

@fedify/fedify

Version:

An ActivityPub server framework

47 lines 1.31 kB
import * as dntShim from "../_dnt.shims.js"; export interface SenderKeyJwkPair { keyId: string; privateKey: dntShim.JsonWebKey; } export type Message = FanoutMessage | OutboxMessage | InboxMessage; export interface FanoutMessage { type: "fanout"; id: ReturnType<typeof dntShim.crypto.randomUUID>; baseUrl: string; keys: SenderKeyJwkPair[]; inboxes: Record<string, { actorIds: string[]; sharedInbox: boolean; }>; activity: unknown; activityId?: string; activityType: string; collectionSync?: string; traceContext: Record<string, string>; } export interface OutboxMessage { type: "outbox"; id: ReturnType<typeof dntShim.crypto.randomUUID>; baseUrl: string; keys: SenderKeyJwkPair[]; activity: unknown; activityId?: string; activityType: string; inbox: string; sharedInbox: boolean; started: string; attempt: number; headers: Record<string, string>; traceContext: Record<string, string>; } export interface InboxMessage { type: "inbox"; id: ReturnType<typeof dntShim.crypto.randomUUID>; baseUrl: string; activity: unknown; started: string; attempt: number; identifier: string | null; traceContext: Record<string, string>; } //# sourceMappingURL=queue.d.ts.map