@actnet/app-core - v0.1.0
    Preparing search index...

    Interface DecryptedMessage

    interface DecryptedMessage {
        serverId: number;
        senderDid: string;
        senderDeviceId: number;
        body: string;
        plaintext: Uint8Array;
        sentAt?: Instant;
        groupId?: string;
        profileKey?: Uint8Array<ArrayBufferLike>;
        isRequest: boolean;
        attachments: Attachment[];
        previews: LinkPreview[];
    }
    Index

    Properties

    serverId: number

    Server-assigned monotonic id. Used for acking.

    senderDid: string

    DID of the sender (did:plc:... or did:local:...).

    senderDeviceId: number

    Sender's per-account device id.

    body: string

    Decoded text body — UTF-8 lossily decoded from plaintext. The default field to read for normal bots. For text DMs this is exactly what the sender typed.

    plaintext: Uint8Array

    Raw decrypted bytes. Same content as body for text DMs, but may carry arbitrary binary payloads for group messages a future application encodes itself. Use this if you need byte-exact data.

    sentAt?: Instant

    Sender's send-time (from envelope). Absent on legacy messages.

    groupId?: string

    URL-safe-no-pad base64 of the group id when the message arrived as a group message. Absent for plain DMs.

    profileKey?: Uint8Array<ArrayBufferLike>

    The sender's profile key carried on the envelope, if any. app-core does NOT fetch or cache the sender's display name automatically — pass this to AppCore.fetchAndCacheProfile if your bot wants the name. Absent when the envelope carried no key. Most bots ignore this.

    isRequest: boolean

    True when this is an inbound DM that the message-request gate treats as a request (the sender is not curated and is not a known bot). app-core does NOT persist a pending-request flag itself; a bot that tracks requests calls AppCore.setPendingRequest. Always false for group messages. Most bots ignore this.

    attachments: Attachment[]

    Attachments carried on the message (docs/35); empty for plain text.

    previews: LinkPreview[]

    Link-preview cards (docs/35), anti-spoof-filtered; empty for plain text.