JSR

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

Downloads198/wk

Published4 days ago (2.3.6)

Vocabularies library for Fedify

ChatMessages are the messages sent in 1-on-1 chats. They are similar to Notes, but the addressing is done by having a single AP actor in the to field. Addressing multiple actors is not allowed. These messages are always private, there is no public version of them. They are created with a Create activity.

Constructors

Constructs a new instance of ChatMessage with the given values.

Parameters

The values to initialize the instance with.

The options to use for initialization.

Static Properties

The type URI of ChatMessage: http://litepub.social/ns#ChatMessage.

Static Methods

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

Properties

Similar to ChatMessage.getQuoteAuthorization, but returns its @id URL instead of the object itself.

Similar to ChatMessage.getQuote, but returns its @id URL instead of the object itself.

Methods

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

The quoted ActivityStreams object.

This property is serialized as an IRI-valued JSON-LD property.

A QuoteAuthorization object that proves this quote was approved by the quoted object's author.

Converts this object to a JSON-LD structure.

Read the original on jsr.io ↗