Skip to content

⭐️⭐️⭐️ Open-source, self-hosted alternative to Linear and Plane. Project management and issue tracking where teams and AI agents work side by side to plan and ship products.

592 B
Raw Blame
import { t } from 'elysia';

export const mentionCandidatesQuery = t.Object({
  place: t.Union([t.Literal('comment'), t.Literal('text')], {
    description: 'Where the mention is written: a comment, or the text itself.',
  }),
});

export const issueMentionParams = t.Object({ projectKey: t.String() });

export const documentMentionParams = t.Object({
  projectKey: t.String(),
  documentId: t.Numeric(),
});

export const MentionCandidateResponse = t.Object({
  userId: t.String(),
  name: t.String(),
  username: t.String(),
  kind: t.Union([t.Literal('member'), t.Literal('agent')]),
});