Skip to main content

Built and signed on GitHub Actions

Works with
This package works with Cloudflare Workers, Node.js, Deno, Bun
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
•JSR Score100%•
License
MIT
•
Downloads398/wk
•
Published2 weeks ago (2.4.5)

Vocabularies library for Fedify

class Person
extends Object

Represents an individual person.

Constructors

new Person(
values: { id?: URL | null; attachments?: (Object | Link | PropertyValue | URL)[]; attribution?: ; attributions?: (Application | Group | Organization | Person | Service | URL)[]; audience?: Object | URL | null; audiences?: (Object | URL)[]; content?: string | LanguageString | null; contents?: ((string | LanguageString))[]; contexts?: (Object | Link | URL)[]; name?: string | LanguageString | null; names?: ((string | LanguageString))[]; endTime?: Temporal.Instant | null; generators?: (Object | Link | URL)[]; icon?: Image | URL | null; icons?: (Image | URL)[]; image?: Image | URL | null; images?: (Image | URL)[]; replyTarget?: Object | Link | URL | null; replyTargets?: (Object | Link | URL)[]; location?: Object | Link | URL | null; locations?: (Object | Link | URL)[]; preview?: Link | Object | URL | null; previews?: (Link | Object | URL)[]; published?: Temporal.Instant | null; replies?: Collection | URL | null; shares?: Collection | URL | null; likes?: Collection | URL | null; emojiReactions?: Collection | URL | null; startTime?: Temporal.Instant | null; summary?: string | LanguageString | null; summaries?: ((string | LanguageString))[]; tags?: (Object | Link | URL)[]; updated?: Temporal.Instant | null; url?: URL | Link | null; urls?: ((URL | Link))[]; to?: Object | URL | null; tos?: (Object | URL)[]; bto?: Object | URL | null; btos?: (Object | URL)[]; cc?: Object | URL | null; ccs?: (Object | URL)[]; bcc?: Object | URL | null; bccs?: (Object | URL)[]; mediaType?: string | null; duration?: Temporal.Duration | null; sensitive?: boolean | null; source?: Source | null; proof?: DataIntegrityProof | URL | null; proofs?: (DataIntegrityProof | URL)[]; interactionPolicy?: InteractionPolicy | null; approvedBy?: URL | null; likeAuthorization?: LikeAuthorization | URL | null; replyAuthorization?: ReplyAuthorization | URL | null; announceAuthorization?: AnnounceAuthorization | URL | null; translations?: (Translation)[]; preferredUsername?: string | LanguageString | null; preferredUsernames?: ((string | LanguageString))[]; publicKey?: CryptographicKey | URL | null; publicKeys?: (CryptographicKey | URL)[]; assertionMethod?: Multikey | URL | null; assertionMethods?: (Multikey | URL)[]; gateway?: URL | null; gateways?: (URL)[]; manuallyApprovesFollowers?: boolean | null; inbox?: OrderedCollection | OrderedCollectionPage | URL | null; outbox?: OrderedCollection | OrderedCollectionPage | URL | null; following?: Collection | URL | null; followers?: Collection | URL | null; liked?: Collection | URL | null; featured?: Collection | URL | null; featuredTags?: Collection | URL | null; featuredCollections?: Collection | URL | null; streams?: (Collection | URL)[]; endpoints?: Endpoints | null; discoverable?: boolean | null; suspended?: boolean | null; memorial?: boolean | null; indexable?: boolean | null; successor?: ; alias?: ; aliases?: (Application | Group | Organization | Person | Service | URL)[]; service?: DidService | URL | null; services?: (DidService | URL)[]; followedMessage?: string | null; cat?: boolean | null; },
options?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; tracerProvider?: TracerProvider; verifyPortableObject?: PortableObjectVerifier; }
)

Constructs a new instance of Person with the given values.

Parameters
values: { id?: URL | null; attachments?: (Object | Link | PropertyValue | URL)[]; attribution?: ; attributions?: (Application | Group | Organization | Person | Service | URL)[]; audience?: Object | URL | null; audiences?: (Object | URL)[]; content?: string | LanguageString | null; contents?: ((string | LanguageString))[]; contexts?: (Object | Link | URL)[]; name?: string | LanguageString | null; names?: ((string | LanguageString))[]; endTime?: Temporal.Instant | null; generators?: (Object | Link | URL)[]; icon?: Image | URL | null; icons?: (Image | URL)[]; image?: Image | URL | null; images?: (Image | URL)[]; replyTarget?: Object | Link | URL | null; replyTargets?: (Object | Link | URL)[]; location?: Object | Link | URL | null; locations?: (Object | Link | URL)[]; preview?: Link | Object | URL | null; previews?: (Link | Object | URL)[]; published?: Temporal.Instant | null; replies?: Collection | URL | null; shares?: Collection | URL | null; likes?: Collection | URL | null; emojiReactions?: Collection | URL | null; startTime?: Temporal.Instant | null; summary?: string | LanguageString | null; summaries?: ((string | LanguageString))[]; tags?: (Object | Link | URL)[]; updated?: Temporal.Instant | null; url?: URL | Link | null; urls?: ((URL | Link))[]; to?: Object | URL | null; tos?: (Object | URL)[]; bto?: Object | URL | null; btos?: (Object | URL)[]; cc?: Object | URL | null; ccs?: (Object | URL)[]; bcc?: Object | URL | null; bccs?: (Object | URL)[]; mediaType?: string | null; duration?: Temporal.Duration | null; sensitive?: boolean | null; source?: Source | null; proof?: DataIntegrityProof | URL | null; proofs?: (DataIntegrityProof | URL)[]; interactionPolicy?: InteractionPolicy | null; approvedBy?: URL | null; likeAuthorization?: LikeAuthorization | URL | null; replyAuthorization?: ReplyAuthorization | URL | null; announceAuthorization?: AnnounceAuthorization | URL | null; translations?: (Translation)[]; preferredUsername?: string | LanguageString | null; preferredUsernames?: ((string | LanguageString))[]; publicKey?: CryptographicKey | URL | null; publicKeys?: (CryptographicKey | URL)[]; assertionMethod?: Multikey | URL | null; assertionMethods?: (Multikey | URL)[]; gateway?: URL | null; gateways?: (URL)[]; manuallyApprovesFollowers?: boolean | null; inbox?: OrderedCollection | OrderedCollectionPage | URL | null; outbox?: OrderedCollection | OrderedCollectionPage | URL | null; following?: Collection | URL | null; followers?: Collection | URL | null; liked?: Collection | URL | null; featured?: Collection | URL | null; featuredTags?: Collection | URL | null; featuredCollections?: Collection | URL | null; streams?: (Collection | URL)[]; endpoints?: Endpoints | null; discoverable?: boolean | null; suspended?: boolean | null; memorial?: boolean | null; indexable?: boolean | null; successor?: ; alias?: ; aliases?: (Application | Group | Organization | Person | Service | URL)[]; service?: DidService | URL | null; services?: (DidService | URL)[]; followedMessage?: string | null; cat?: boolean | null; }

The values to initialize the instance with.

optional
options: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; tracerProvider?: TracerProvider; verifyPortableObject?: PortableObjectVerifier; }

The options to use for initialization.

Static Properties

The type URI of Person: https://www.w3.org/ns/activitystreams#Person.

Static Methods

protected
__fromJsonLd__Person__(
json: unknown,
span: Span,
options?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; tracerProvider?: TracerProvider; verifyPortableObject?: PortableObjectVerifier; baseUrl?: URL; }
): Promise<Person>
fromJsonLd(
json: unknown,
options?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; tracerProvider?: TracerProvider; verifyPortableObject?: PortableObjectVerifier; baseUrl?: URL; }
): Promise<Person>

Converts a JSON-LD structure to an object of this type.

Properties

readonly
aliasId: URL | null

Similar to Person.getAlias, but returns its @id URL instead of the object itself.

Similar to Person.getAliases, but returns their @ids instead of the objects themselves.

Similar to Person.getAssertionMethod, but returns its @id URL instead of the object itself.

Similar to Person.getAssertionMethods, but returns their @ids instead of the objects themselves.

readonly
cat: boolean | null

Used on actors to indicate that they in some way identify as a cat, expressed as a boolean value. If this property is set to true, displaying the actor or their notes will have some special effects attached in some clients.

Allows users to opt-in or opt-out of discoverability features like the profile directory. This flag may also be used as an indicator of the user's preferences toward being included in external discovery services, such as search engines or other indexing tools.

A JSON object which maps additional (typically server/domain-wide) endpoints which may be useful either for this actor or someone referencing this actor. This mapping may be nested inside the actor document as the value or may be a link to a JSON-LD document with these properties.

Similar to Person.getFeaturedCollections, but returns its @id URL instead of the object itself.

readonly
featuredId: URL | null

Similar to Person.getFeatured, but returns its @id URL instead of the object itself.

Similar to Person.getFeaturedTags, but returns its @id URL instead of the object itself.

This value is used for Actor type objects to show message on followed.

readonly
followersId: URL | null

Similar to Person.getFollowers, but returns its @id URL instead of the object itself.

readonly
followingId: URL | null

Similar to Person.getFollowing, but returns its @id URL instead of the object itself.

readonly
gateway: URL | null

Gateways where the latest version of this portable actor object can be retrieved.

See FEP-ef61 for details.

readonly
gateways: (URL)[]

Gateways where the latest version of this portable actor object can be retrieved.

See FEP-ef61 for details.

readonly
inboxId: URL | null

Similar to Person.getInbox, but returns its @id URL instead of the object itself.

readonly
indexable: boolean | null

Whether the actor allows to be indexed.

readonly
likedId: URL | null

Similar to Person.getLiked, but returns its @id URL instead of the object itself.

When true, conveys that for this actor, follow requests are not usually automatically approved, but instead are examined by a person who may accept or reject the request, at some time in the future. Setting of false conveys no information and may be ignored. This information is typically used to affect display of accounts, such as showing an account as private or locked.

readonly
memorial: boolean | null

Whether the actor is in-memorial state.

readonly
outboxId: URL | null

Similar to Person.getOutbox, but returns its @id URL instead of the object itself.

A short username which may be used to refer to the actor, with no uniqueness guarantees.

A short username which may be used to refer to the actor, with no uniqueness guarantees.

readonly
publicKeyId: URL | null

Similar to Person.getPublicKey, but returns its @id URL instead of the object itself.

Similar to Person.getPublicKeys, but returns their @ids instead of the objects themselves.

readonly
serviceId: URL | null

Similar to Person.getService, but returns its @id URL instead of the object itself.

Similar to Person.getServices, but returns their @ids instead of the objects themselves.

Similar to Person.getStreams, but returns their @ids instead of the objects themselves.

readonly
successorId: URL | null

Similar to Person.getSuccessor, but returns its @id URL instead of the object itself.

readonly
suspended: boolean | null

Reports whether a user was locally suspended, for better handling of these accounts.

Methods

protected
_getCustomInspectProxy(): Record<string, unknown>
clone(
values?: { id?: URL | null; attachments?: (Object | Link | PropertyValue | URL)[]; attribution?: ; attributions?: (Application | Group | Organization | Person | Service | URL)[]; audience?: Object | URL | null; audiences?: (Object | URL)[]; content?: string | LanguageString | null; contents?: ((string | LanguageString))[]; contexts?: (Object | Link | URL)[]; name?: string | LanguageString | null; names?: ((string | LanguageString))[]; endTime?: Temporal.Instant | null; generators?: (Object | Link | URL)[]; icon?: Image | URL | null; icons?: (Image | URL)[]; image?: Image | URL | null; images?: (Image | URL)[]; replyTarget?: Object | Link | URL | null; replyTargets?: (Object | Link | URL)[]; location?: Object | Link | URL | null; locations?: (Object | Link | URL)[]; preview?: Link | Object | URL | null; previews?: (Link | Object | URL)[]; published?: Temporal.Instant | null; replies?: Collection | URL | null; shares?: Collection | URL | null; likes?: Collection | URL | null; emojiReactions?: Collection | URL | null; startTime?: Temporal.Instant | null; summary?: string | LanguageString | null; summaries?: ((string | LanguageString))[]; tags?: (Object | Link | URL)[]; updated?: Temporal.Instant | null; url?: URL | Link | null; urls?: ((URL | Link))[]; to?: Object | URL | null; tos?: (Object | URL)[]; bto?: Object | URL | null; btos?: (Object | URL)[]; cc?: Object | URL | null; ccs?: (Object | URL)[]; bcc?: Object | URL | null; bccs?: (Object | URL)[]; mediaType?: string | null; duration?: Temporal.Duration | null; sensitive?: boolean | null; source?: Source | null; proof?: DataIntegrityProof | URL | null; proofs?: (DataIntegrityProof | URL)[]; interactionPolicy?: InteractionPolicy | null; approvedBy?: URL | null; likeAuthorization?: LikeAuthorization | URL | null; replyAuthorization?: ReplyAuthorization | URL | null; announceAuthorization?: AnnounceAuthorization | URL | null; translations?: (Translation)[]; preferredUsername?: string | LanguageString | null; preferredUsernames?: ((string | LanguageString))[]; publicKey?: CryptographicKey | URL | null; publicKeys?: (CryptographicKey | URL)[]; assertionMethod?: Multikey | URL | null; assertionMethods?: (Multikey | URL)[]; gateway?: URL | null; gateways?: (URL)[]; manuallyApprovesFollowers?: boolean | null; inbox?: OrderedCollection | OrderedCollectionPage | URL | null; outbox?: OrderedCollection | OrderedCollectionPage | URL | null; following?: Collection | URL | null; followers?: Collection | URL | null; liked?: Collection | URL | null; featured?: Collection | URL | null; featuredTags?: Collection | URL | null; featuredCollections?: Collection | URL | null; streams?: (Collection | URL)[]; endpoints?: Endpoints | null; discoverable?: boolean | null; suspended?: boolean | null; memorial?: boolean | null; indexable?: boolean | null; successor?: ; alias?: ; aliases?: (Application | Group | Organization | Person | Service | URL)[]; service?: DidService | URL | null; services?: (DidService | URL)[]; followedMessage?: string | null; cat?: boolean | null; },
options?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; verifyPortableObject?: PortableObjectVerifier; }
): Person

Clones this instance, optionally updating it with the given values.

This is a shallow copy: property arrays are copied, but nested objects and URLs are shared with this instance. Dereferencing accessors can cache fetched objects in the instance whose accessor is called. Hydrating a shared nested object through the clone can affect the original as well, and can change JSON-LD output when either is embedded in another object. Hydrating a top-level property of the clone does not update this instance's property.

To resolve properties without sharing nested objects, serialize and re-parse the instance before hydration rather than using this method. See the vocabulary manual for details, including how cached JSON-LD affects serialization.

A clone never inherits a signed JSON-LD representation retained by signObject(): the clone may differ from the document that the proof covers, so embedding the original secured JSON in a parent document would be wrong. Sign the clone again if it has to be embedded as a secured child.

getAlias(options?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; suppressError?: boolean; tracerProvider?: TracerProvider; crossOrigin?: "ignore" | "throw" | "trust"; gateways?: readonly (string | URL)[]; verifyPortableObject?: PortableObjectVerifier; inheritPortableObjectVerifier?: boolean; }): Promise<>

The aliases (alsoKnownAs) property is used to specify alternative names or aliases for an entity. It can be used to provide additional identifiers or labels for an entity, which can be useful in scenarios where an entity may have multiple names or aliases.

getAliases(options?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; suppressError?: boolean; tracerProvider?: TracerProvider; crossOrigin?: "ignore" | "throw" | "trust"; gateways?: readonly (string | URL)[]; verifyPortableObject?: PortableObjectVerifier; inheritPortableObjectVerifier?: boolean; }): AsyncIterable<Application | Group | Organization | Person | Service>

The aliases (alsoKnownAs) property is used to specify alternative names or aliases for an entity. It can be used to provide additional identifiers or labels for an entity, which can be useful in scenarios where an entity may have multiple names or aliases.

getAssertionMethod(options?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; suppressError?: boolean; tracerProvider?: TracerProvider; crossOrigin?: "ignore" | "throw" | "trust"; gateways?: readonly (string | URL)[]; verifyPortableObject?: PortableObjectVerifier; inheritPortableObjectVerifier?: boolean; }): Promise<Multikey | null>

Represents this actor's public keys. It serves as equivalent to the publicKeys property, but is used for FEP-521a compliance.

getAssertionMethods(options?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; suppressError?: boolean; tracerProvider?: TracerProvider; crossOrigin?: "ignore" | "throw" | "trust"; gateways?: readonly (string | URL)[]; verifyPortableObject?: PortableObjectVerifier; inheritPortableObjectVerifier?: boolean; }): AsyncIterable<Multikey>

Represents this actor's public keys. It serves as equivalent to the publicKeys property, but is used for FEP-521a compliance.

getFeatured(options?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; suppressError?: boolean; tracerProvider?: TracerProvider; crossOrigin?: "ignore" | "throw" | "trust"; gateways?: readonly (string | URL)[]; verifyPortableObject?: PortableObjectVerifier; inheritPortableObjectVerifier?: boolean; }): Promise<Collection | null>

What is known in Mastodon as "pinned statuses", or statuses that are always featured at the top of people's profiles, is implemented using an extra property featured on the actor object that points to a Collection of objects.

getFeaturedCollections(options?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; suppressError?: boolean; tracerProvider?: TracerProvider; crossOrigin?: "ignore" | "throw" | "trust"; gateways?: readonly (string | URL)[]; verifyPortableObject?: PortableObjectVerifier; inheritPortableObjectVerifier?: boolean; }): Promise<Collection | null>

A collection of FeaturedCollections created by this actor.

getFeaturedTags(options?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; suppressError?: boolean; tracerProvider?: TracerProvider; crossOrigin?: "ignore" | "throw" | "trust"; gateways?: readonly (string | URL)[]; verifyPortableObject?: PortableObjectVerifier; inheritPortableObjectVerifier?: boolean; }): Promise<Collection | null>

What is known in Mastodon as "featured hashtags", hashtags that are featured at people's profiles, is implemented using an extra property featuredTags on the actor object that points to a Collection of Hashtag objects specifically.

getFollowers(options?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; suppressError?: boolean; tracerProvider?: TracerProvider; crossOrigin?: "ignore" | "throw" | "trust"; gateways?: readonly (string | URL)[]; verifyPortableObject?: PortableObjectVerifier; inheritPortableObjectVerifier?: boolean; }): Promise<Collection | null>

This is a list of everyone who has sent a Follow activity for the actor, added as a side effect. This is where one would find a list of all the actors that are following the actor. The followers collection MUST be either an OrderedCollection or a Collection and MAY be filtered on privileges of an authenticated user or as appropriate when no authentication is given.

getFollowing(options?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; suppressError?: boolean; tracerProvider?: TracerProvider; crossOrigin?: "ignore" | "throw" | "trust"; gateways?: readonly (string | URL)[]; verifyPortableObject?: PortableObjectVerifier; inheritPortableObjectVerifier?: boolean; }): Promise<Collection | null>

This is a list of everybody that the actor has followed, added as a side effect. The following collection MUST be either an OrderedCollection or a Collection and MAY be filtered on privileges of an authenticated user or as appropriate when no authentication is given.

getInbox(options?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; suppressError?: boolean; tracerProvider?: TracerProvider; crossOrigin?: "ignore" | "throw" | "trust"; gateways?: readonly (string | URL)[]; verifyPortableObject?: PortableObjectVerifier; inheritPortableObjectVerifier?: boolean; }): Promise<OrderedCollection | OrderedCollectionPage | null>

The inbox stream contains all activities received by the actor. The server SHOULD filter content according to the requester's permission. In general, the owner of an inbox is likely to be able to access all of their inbox contents. Depending on access control, some other content may be public, whereas other content may require authentication for non-owner users, if they can access the inbox at all.

The server MUST perform de-duplication of activities returned by the inbox. Duplication can occur if an activity is addressed both to an actor's followers, and a specific actor who also follows the recipient actor, and the server has failed to de-duplicate the recipients list. Such deduplication MUST be performed by comparing the id of the activities and dropping any activities already seen.

getLiked(options?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; suppressError?: boolean; tracerProvider?: TracerProvider; crossOrigin?: "ignore" | "throw" | "trust"; gateways?: readonly (string | URL)[]; verifyPortableObject?: PortableObjectVerifier; inheritPortableObjectVerifier?: boolean; }): Promise<Collection | null>

This is a list of every object from all of the actor's Like activities, added as a side effect. The liked collection MUST be either an OrderedCollection or a Collection and MAY be filtered on privileges of an authenticated user or as appropriate when no authentication is given.

getOutbox(options?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; suppressError?: boolean; tracerProvider?: TracerProvider; crossOrigin?: "ignore" | "throw" | "trust"; gateways?: readonly (string | URL)[]; verifyPortableObject?: PortableObjectVerifier; inheritPortableObjectVerifier?: boolean; }): Promise<OrderedCollection | OrderedCollectionPage | null>

The outbox stream contains activities the user has published, subject to the ability of the requestor to retrieve the activity (that is, the contents of the outbox are filtered by the permissions of the person reading it). If a user submits a request without Authorization the server should respond with all of the Public posts. This could potentially be all relevant objects published by the user, though the number of available items is left to the discretion of those implementing and deploying the server.

getPublicKey(options?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; suppressError?: boolean; tracerProvider?: TracerProvider; crossOrigin?: "ignore" | "throw" | "trust"; gateways?: readonly (string | URL)[]; verifyPortableObject?: PortableObjectVerifier; inheritPortableObjectVerifier?: boolean; }): Promise<CryptographicKey | null>

A public part of the key pair owned by this actor.

getPublicKeys(options?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; suppressError?: boolean; tracerProvider?: TracerProvider; crossOrigin?: "ignore" | "throw" | "trust"; gateways?: readonly (string | URL)[]; verifyPortableObject?: PortableObjectVerifier; inheritPortableObjectVerifier?: boolean; }): AsyncIterable<CryptographicKey>

A public part of the key pair owned by this actor.

getService(options?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; suppressError?: boolean; tracerProvider?: TracerProvider; crossOrigin?: "ignore" | "throw" | "trust"; gateways?: readonly (string | URL)[]; verifyPortableObject?: PortableObjectVerifier; inheritPortableObjectVerifier?: boolean; }): Promise<DidService | null>

Means of communicating or interacting with the DID subject or associated entities via one or more service endpoints. Examples include discovery services, agent services, social networking services, file storage services, and verifiable credential repository services.

getServices(options?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; suppressError?: boolean; tracerProvider?: TracerProvider; crossOrigin?: "ignore" | "throw" | "trust"; gateways?: readonly (string | URL)[]; verifyPortableObject?: PortableObjectVerifier; inheritPortableObjectVerifier?: boolean; }): AsyncIterable<DidService>

Means of communicating or interacting with the DID subject or associated entities via one or more service endpoints. Examples include discovery services, agent services, social networking services, file storage services, and verifiable credential repository services.

getStreams(options?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; suppressError?: boolean; tracerProvider?: TracerProvider; crossOrigin?: "ignore" | "throw" | "trust"; gateways?: readonly (string | URL)[]; verifyPortableObject?: PortableObjectVerifier; inheritPortableObjectVerifier?: boolean; }): AsyncIterable<Collection>

A list of supplementary Collections which may be of interest.

getSuccessor(options?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; suppressError?: boolean; tracerProvider?: TracerProvider; crossOrigin?: "ignore" | "throw" | "trust"; gateways?: readonly (string | URL)[]; verifyPortableObject?: PortableObjectVerifier; inheritPortableObjectVerifier?: boolean; }): Promise<>

Signifies that an actor has been moved to a different ID. Used in Mastodon-style data portability with the Move activity; see ActivityPub Data Portability/Move Action for more details.

toJsonLd(options?: { format?: "compact" | "expand"; contextLoader?: DocumentLoader; context?:
string
| Record<string, string>
| (string | Record<string, string>)[]
; }
): Promise<unknown>

Converts this object to a JSON-LD structure.

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.