Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

919 B
Raw Blame
import { z } from "../openapi";

export const taskIdParam = z.object({ taskId: z.string() });

export const commentParam = z.object({ id: z.string() });

export const createCommentBody = z.object({
  content: z.string().min(1).max(10_000),
  // Both or neither: a name without a source would render as an unattributed
  // impersonation of a real account.
  externalUserName: z.string().max(120).optional().openapi({
    description:
      "Attribution for an imported comment. Requires workspace:manage_settings and externalSource; otherwise ignored.",
  }),
  externalSource: z
    .enum(["planka", "trello", "jira", "plane", "linear", "kaneo"])
    .optional()
    .openapi({
      description:
        "The tool the comment was imported from. Supplying external attribution requires workspace:manage_settings.",
    }),
});

export const updateCommentBody = z.object({
  content: z.string().min(1).max(10_000),
});