Fork from https://github.com/SiranWeb/activitypub-types
npm i YieldRay/activitypub-types
Implemented and documented every structure from specification. You can use interfaces and extend them by yourself, or you can use specified fields types:
// All models interfaces starts with AP
import {
APObject,
APNote,
ContextField,
ContentMapField,
} from 'activitypub-types'
// For Deno
import {
APObject,
APNote,
ContextField,
ContentMapField,
} from 'https://denopkg.com/yieldray/activitypub-types/index.ts'
Generated using TypeDoc