Skip to content

Expose message bookmarks in the Desktop API and watch events #69

Open

Description

@frrad

Beeper lets you bookmark messages, but the Desktop API doesn't show them anywhere:

  • Message objects have no bookmark field. Today's fields are id, chatID, accountID, senderID, senderName, timestamp, sortKey, type, text, isSender, isDeleted, linkedMessageID, mentions, seen, isUnread.
  • There's no endpoint that lists bookmarked messages.
  • beeper watch only emits chat.upserted|chat.deleted|message.upserted|message.deleted, so a client can't see when you bookmark or unbookmark a message.

Use case: I run a local automation that watches Beeper events. I'd like bookmarking a message to work as a one-tap "act on this" trigger, e.g. handing the message to an agent or saving it to a to-do list. Bookmarks fit well because they're per-message, private, and already in the UI on every platform.

Proposal:

  1. Add isBookmarked: boolean to messages (plus bookmarkedAt, if it's available).
  2. Emit message.upserted when a message's bookmark state changes, or add a dedicated message.bookmarked / message.unbookmarked event that --include-type can filter on.
  3. Optionally: GET /v1/bookmarks (or messages list --bookmarked) and set/clear endpoints.

Even (1) and (2) alone would make bookmarks usable as automation triggers.

Related: beeper/desktop-api-openapi#2 (per-message user state via the API).

Tested with beeper CLI 0.6.4.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions