mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-26 10:55:27 +00:00
* feat(kanban): implement AI-native kanban database models, services, and REST APIs * feat(webui): implement team kanban board and task management * style(webui): increase kanban dialog widths and form container * fix(webui): ensure kanban dialogs override sm:max-w-lg base class * style(webui): set edit task dialog max width to 5xl * chore: untrack kanban plan markdown files * feat(webui): update kanban page layout to 2 columns and refine task activity UI * fix(webui): constrain kanban column and board heights for vertical scrolling * feat(kanban): unify task status transition into updateTask API and allow unconstrained human task transitions * fix(webui): add optimistic updates to kanban drag-and-drop to eliminate flash * refactor(webui): remove client-side search box from kanban header * feat(kanban): redesign task dialog comments area and add attachment support * refactor(webui): remove top status action bar from task info dialog * fix(webui): narrow query cache predicate and add defensive guards for kanban drag optimistic update * feat(kanban): add drag-and-drop task reordering with fractional indexing (#331) * feat(kanban): add drag-and-drop task reordering with fractional indexing * fix(kanban): improve card drop zones, snap indicators, and column highlight * fix(kanban): enable card droppables only during active drag * fix(kanban): refine hover styles and drop indicators for column boundaries * fix(kanban): unify bottom drop indicator and fix top indicator clipping * fix(kanban): ensure full column highlight and full coverage drop target * minor change * feat(kanban): allow agent tasks free drag-and-drop and enforce status change permissions (#332) * refactor(kanban): rename task_type_agentic translation keys to task_type_agent * feat(kanban): refactor task type enum to isAgentTask boolean (#333) * refactor(kanban): remove phase 2 agent execution logic and streamline phase 1 kanban * feat(kanban): add notifications and audit logging for kanban (#334) * feat(kanban): redesign config area layout and add parent tasks multi-selector (#335) * feat(webui): redesign kanban task dialog config area * feat(kanban): simplify task dependencies with parent tasks multi-selector * refactor(kanban): remove unused links routes and legacy dependency methods * feat(kanban): connect assets and kanban tasks with many-to-many relationship (#336) * feat(kanban): connect assets and kanban tasks with many-to-many relationship * feat(kanban): improve asset picker layout, infinite scrolling, and breadcrumb icon styling * fix(kanban): ensure asset picker scrollarea is scrollable with min-h-0 and shrink-0 flex styling * fix(kanban): hide recently deleted in folder tree picker and adjust header padding * fix(kanban): use lucide files icon instead of paperclip for linked assets * feat(kanban): improve task deletion, goal sidebar interaction, and card styling (#337) * feat(kanban): improve task deletion, goal sidebar interaction, and card styling * feat(kanban): move agent task badge after priority and update to orange style * feat(kanban): add status Compare-And-Swap (CAS) to prevent drag-and-drop race conditions (#338) * feat(kanban): add status Compare-And-Swap (CAS) to prevent drag-and-drop race conditions * style(kanban): rotate kanban icon 180 degrees in sidebar and top nav * style(kanban): remove rotate-180 from SquareKanban icons * feat(kanban): add unassigned goal record and fix all tasks count (#339) * feat(kanban): add unassigned goal record and fix all tasks count * feat(kanban): toggle task count with three-dot action button on goal card hover * fix(ci): pin bun version to 1.3.14 across CI and Docker (#340) * fix(webui): truncate goal name to max 2 lines in kanban sidebar (#341)
277 lines
6.7 KiB
TypeScript
Generated
277 lines
6.7 KiB
TypeScript
Generated
|
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
/* eslint-disable */
|
|
// biome-ignore-all lint: generated file
|
|
// @ts-nocheck
|
|
/*
|
|
* This file exports all enum related types from the schema.
|
|
*
|
|
* 🟢 You can import this file directly.
|
|
*/
|
|
|
|
export const UserType = {
|
|
human: 'human',
|
|
agent: 'agent'
|
|
} as const
|
|
|
|
export type UserType = (typeof UserType)[keyof typeof UserType]
|
|
|
|
|
|
export const AssetType = {
|
|
folder: 'folder',
|
|
file: 'file',
|
|
share: 'share',
|
|
root: 'root',
|
|
attachment: 'attachment',
|
|
version_stack: 'version_stack',
|
|
share_root: 'share_root',
|
|
symlink: 'symlink'
|
|
} as const
|
|
|
|
export type AssetType = (typeof AssetType)[keyof typeof AssetType]
|
|
|
|
|
|
export const AssetStatus = {
|
|
uploading: 'uploading',
|
|
uploaded: 'uploaded',
|
|
processing: 'processing',
|
|
processed: 'processed',
|
|
trashed: 'trashed',
|
|
pending_purge: 'pending_purge'
|
|
} as const
|
|
|
|
export type AssetStatus = (typeof AssetStatus)[keyof typeof AssetStatus]
|
|
|
|
|
|
export const StorageKeyStatus = {
|
|
active: 'active',
|
|
purging: 'purging'
|
|
} as const
|
|
|
|
export type StorageKeyStatus = (typeof StorageKeyStatus)[keyof typeof StorageKeyStatus]
|
|
|
|
|
|
export const InviteRole = {
|
|
editor: 'editor',
|
|
reviewer: 'reviewer'
|
|
} as const
|
|
|
|
export type InviteRole = (typeof InviteRole)[keyof typeof InviteRole]
|
|
|
|
|
|
export const MetadataFieldScope = {
|
|
SYSTEM: 'SYSTEM',
|
|
TEAM: 'TEAM',
|
|
PROJECT: 'PROJECT'
|
|
} as const
|
|
|
|
export type MetadataFieldScope = (typeof MetadataFieldScope)[keyof typeof MetadataFieldScope]
|
|
|
|
|
|
export const NotificationType = {
|
|
comment_created: 'comment_created',
|
|
reply_created: 'reply_created',
|
|
mention: 'mention',
|
|
successful_file_uploaded: 'successful_file_uploaded',
|
|
metadata_field_updated_status: 'metadata_field_updated_status',
|
|
new_user_join_team: 'new_user_join_team',
|
|
new_user_join_project: 'new_user_join_project',
|
|
kanban_task_created: 'kanban_task_created',
|
|
kanban_task_assigned: 'kanban_task_assigned',
|
|
kanban_task_status_updated: 'kanban_task_status_updated',
|
|
kanban_task_updated: 'kanban_task_updated',
|
|
kanban_task_deleted: 'kanban_task_deleted',
|
|
kanban_task_comment_created: 'kanban_task_comment_created'
|
|
} as const
|
|
|
|
export type NotificationType = (typeof NotificationType)[keyof typeof NotificationType]
|
|
|
|
|
|
export const ProjectMemberRole = {
|
|
owner: 'owner',
|
|
editor: 'editor',
|
|
reviewer: 'reviewer'
|
|
} as const
|
|
|
|
export type ProjectMemberRole = (typeof ProjectMemberRole)[keyof typeof ProjectMemberRole]
|
|
|
|
|
|
export const TaskType = {
|
|
upload: 'upload'
|
|
} as const
|
|
|
|
export type TaskType = (typeof TaskType)[keyof typeof TaskType]
|
|
|
|
|
|
export const TaskStatus = {
|
|
pending: 'pending',
|
|
uploading: 'uploading',
|
|
completed: 'completed',
|
|
failed: 'failed'
|
|
} as const
|
|
|
|
export type TaskStatus = (typeof TaskStatus)[keyof typeof TaskStatus]
|
|
|
|
|
|
export const TeamMemberRole = {
|
|
owner: 'owner',
|
|
editor: 'editor',
|
|
reviewer: 'reviewer'
|
|
} as const
|
|
|
|
export type TeamMemberRole = (typeof TeamMemberRole)[keyof typeof TeamMemberRole]
|
|
|
|
|
|
export const TeamMemberScope = {
|
|
team: 'team',
|
|
project: 'project'
|
|
} as const
|
|
|
|
export type TeamMemberScope = (typeof TeamMemberScope)[keyof typeof TeamMemberScope]
|
|
|
|
|
|
export const WorkflowTaskType = {
|
|
transcode: 'transcode',
|
|
transcode_video: 'transcode_video',
|
|
transcode_image: 'transcode_image',
|
|
transcode_pdf: 'transcode_pdf',
|
|
transcode_pdf_pages: 'transcode_pdf_pages',
|
|
transcode_screenshot: 'transcode_screenshot',
|
|
transcode_image_annotation: 'transcode_image_annotation',
|
|
transcode_watermark: 'transcode_watermark',
|
|
ai_metadata_autofill: 'ai_metadata_autofill',
|
|
chat: 'chat',
|
|
ai_embedding: 'ai_embedding',
|
|
query_embedding_for_search: 'query_embedding_for_search',
|
|
agent_tool_call: 'agent_tool_call',
|
|
kanban_agent_run: 'kanban_agent_run'
|
|
} as const
|
|
|
|
export type WorkflowTaskType = (typeof WorkflowTaskType)[keyof typeof WorkflowTaskType]
|
|
|
|
|
|
export const WorkflowTaskStatus = {
|
|
pending: 'pending',
|
|
processing: 'processing',
|
|
completed: 'completed',
|
|
failed: 'failed'
|
|
} as const
|
|
|
|
export type WorkflowTaskStatus = (typeof WorkflowTaskStatus)[keyof typeof WorkflowTaskStatus]
|
|
|
|
|
|
export const WatermarkStatus = {
|
|
disabled: 'disabled',
|
|
processing: 'processing',
|
|
ready: 'ready',
|
|
failed: 'failed'
|
|
} as const
|
|
|
|
export type WatermarkStatus = (typeof WatermarkStatus)[keyof typeof WatermarkStatus]
|
|
|
|
|
|
export const WatermarkFileStatus = {
|
|
pending: 'pending',
|
|
processing: 'processing',
|
|
completed: 'completed',
|
|
failed: 'failed'
|
|
} as const
|
|
|
|
export type WatermarkFileStatus = (typeof WatermarkFileStatus)[keyof typeof WatermarkFileStatus]
|
|
|
|
|
|
export const QuotaScopeMode = {
|
|
all_members: 'all_members',
|
|
each_member: 'each_member',
|
|
selected_members: 'selected_members'
|
|
} as const
|
|
|
|
export type QuotaScopeMode = (typeof QuotaScopeMode)[keyof typeof QuotaScopeMode]
|
|
|
|
|
|
export const QuotaPeriod = {
|
|
one_hour: 'one_hour',
|
|
five_hours: 'five_hours',
|
|
one_day: 'one_day',
|
|
seven_days: 'seven_days'
|
|
} as const
|
|
|
|
export type QuotaPeriod = (typeof QuotaPeriod)[keyof typeof QuotaPeriod]
|
|
|
|
|
|
export const QuotaResourceType = {
|
|
agent_total_tokens: 'agent_total_tokens',
|
|
agent_cost: 'agent_cost',
|
|
agent_mcp_call_count: 'agent_mcp_call_count',
|
|
agent_bash_call_count: 'agent_bash_call_count',
|
|
agent_tool_call_count: 'agent_tool_call_count'
|
|
} as const
|
|
|
|
export type QuotaResourceType = (typeof QuotaResourceType)[keyof typeof QuotaResourceType]
|
|
|
|
|
|
export const KanbanTaskStatus = {
|
|
TODO: 'TODO',
|
|
READY: 'READY',
|
|
IN_PROGRESS: 'IN_PROGRESS',
|
|
BLOCKED: 'BLOCKED',
|
|
IN_REVIEW: 'IN_REVIEW',
|
|
DONE: 'DONE'
|
|
} as const
|
|
|
|
export type KanbanTaskStatus = (typeof KanbanTaskStatus)[keyof typeof KanbanTaskStatus]
|
|
|
|
|
|
export const KanbanTaskPriority = {
|
|
LOW: 'LOW',
|
|
MEDIUM: 'MEDIUM',
|
|
HIGH: 'HIGH',
|
|
URGENT: 'URGENT'
|
|
} as const
|
|
|
|
export type KanbanTaskPriority = (typeof KanbanTaskPriority)[keyof typeof KanbanTaskPriority]
|
|
|
|
|
|
export const KanbanTaskEventType = {
|
|
CREATED: 'CREATED',
|
|
STATUS_CHANGED: 'STATUS_CHANGED',
|
|
ASSIGNED: 'ASSIGNED',
|
|
UNASSIGNED: 'UNASSIGNED',
|
|
COMMENTED: 'COMMENTED',
|
|
CHANGES_REQUESTED: 'CHANGES_REQUESTED',
|
|
BLOCKED: 'BLOCKED',
|
|
UNBLOCKED: 'UNBLOCKED',
|
|
PRIORITY_CHANGED: 'PRIORITY_CHANGED',
|
|
GOAL_CHANGED: 'GOAL_CHANGED',
|
|
DEPENDENCY_ADDED: 'DEPENDENCY_ADDED',
|
|
DEPENDENCY_REMOVED: 'DEPENDENCY_REMOVED'
|
|
} as const
|
|
|
|
export type KanbanTaskEventType = (typeof KanbanTaskEventType)[keyof typeof KanbanTaskEventType]
|
|
|
|
|
|
export const AgentType = {
|
|
chat: 'chat',
|
|
autofill: 'autofill',
|
|
embedding: 'embedding'
|
|
} as const
|
|
|
|
export type AgentType = (typeof AgentType)[keyof typeof AgentType]
|
|
|
|
|
|
export const AgentSessionType = {
|
|
comment: 'comment',
|
|
chat: 'chat',
|
|
naming: 'naming'
|
|
} as const
|
|
|
|
export type AgentSessionType = (typeof AgentSessionType)[keyof typeof AgentSessionType]
|
|
|
|
|
|
export const McpTransport = {
|
|
streamable_http: 'streamable_http',
|
|
sse: 'sse'
|
|
} as const
|
|
|
|
export type McpTransport = (typeof McpTransport)[keyof typeof McpTransport]
|