social.colibri.beta.bridge.importMessages

Imports earlier messages from someone on another service into a linked channel or a thread beside it, after an admin asked for a history import. The community writes each message at its original time, and clients see them only when they load history.

Repository @colibri.social did:plc:mprdjqjluoswa7awzggaggj3 namespace authority
Details · procedure
Kindprocedure
Authoritybridge.beta.colibri.social
Indexed

Procedure

procedure · POST

Input

application/json

channel

requiredstring · space-ref

The linked channel, or a thread beside it, the messages go into.

community

requiredstring · did

The community the registration belongs to.

messages

requiredarray

The messages, oldest first.

  • minLength: 1
  • maxLength: 25
itemsref

A message.

Reference

registration

requiredstring · tid

Record key of the registration.

Output

application/json

results

requiredarray

One result per message, in input order.

itemsref

A written message.

Reference

Errors

AuthRequired

The request is missing, malformed, or unverifiable service auth.

CommunityNotFound

No community exists at the given DID.

RegistrationNotFound

The community has no bridge registration with that id.

Forbidden

The caller is not the bridge this registration belongs to.

RegistrationDisabled

An admin has paused this registration.

ChannelNotLinked

The channel is not linked to this registration.

RateLimited

The bridge sent too many requests. Retry after the interval in the response headers.

CredentialsUnavailable

The AppView cannot act as the community because its stored credentials are missing or unusable.

BackfillNotRequested

No admin has asked for a history import on this channel.

OutsideBackfillRange

A message was sent before the requested range or after the request.

#importResult

object

Where an imported message was written.

Properties

remoteMessage

requiredstring

The message's id on the other service.

  • maxLength: 256

rkey

requiredstring · record-key

Record key of the record the community wrote.

#importedMessage

object

A message from the room's earlier history.

Properties

Files attached to the message.

  • maxLength: 10
itemsref

A file uploaded earlier with uploadBlob.

author

requiredref

Who sent the message.

createdAt

requiredstring · datetime

When the message was sent on the other service.

facets

array

Annotations over ranges of the text.

itemsref

An annotation.

Content forwarded from another Colibri message.

The message this one replies to.

parentUri

string · at-uri

The message this one replies to, as a record URI in the channel. Preferred over `parent` when it is valid.

remoteMessage

requiredstring

The message's id on the other service.

  • maxLength: 256

text

requiredstring

The message body.

  • maxLength: 2048

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.