Files
shumai/packages/db/src/generated/prisma/enums.ts
T
Yiling-J 43a2eced75 feat(transcode): add 3D asset support and turntable viewer (#454)
* feat(transcode): add 3D asset support and turntable viewer

* perf(turntable): stream file via Bun.file and increase upload timeout

* feat(turntable): increase upload timeout to 15m to support 5GB uploads

* fix(webui): align 3D model viewer layout and full-width control bar with video viewer

* feat(webui): unify 3D viewer bottom bar and redesign cyclic ruler slider

- Place RulerSlider in single row with playback and zoom controls, centered with max 320px width
- Flank RulerSlider with minus and plus buttons to step angle by 15°
- Redesign RulerSlider with fixed center indicator and moving cyclic track with continuous 360° wrapping
- Render major ticks longer at 60° intervals without numeric text labels on track
- Display floating degree tooltip above center indicator only during dragging

* fix(webui): prevent RulerSlider from collapsing to 0px width in control bar

- Use flex layout with flex-1 on left and right clusters to preserve center cluster width
- Enforce min-w-[140px] and w-full on RulerSlider
- Fix tooltip positioning and remove outer overflow-hidden

* feat(webui): snap RulerSlider track directly to discrete 15° ticks during drag

* fix(webui): prevent ruler snap-back caused by floating point second truncation

- Use Math.round instead of Math.floor in secondToDegree to avoid 0.999996 dropping to previous frame
- Ensure final dragDegree is committed on pointer up

* fix(webui): fix arrow key frame rounding and duplicate event bubbling

- Use Math.round instead of Math.floor for keyboard arrow frame navigation in ModelViewer
- Add e.stopPropagation() to RulerSlider keyboard events to prevent duplicate bubbling to window listener

* feat(webui): redesign RulerSlider with encapsulated step buttons and capsule pill track

* feat(webui): make RulerSlider responsive on mobile and remove bottom bar reset button

* fix(webui): load 3d video directly without poster and invert drag rotation to counterclockwise

* fix(webui): fix 3d asset viewer frame seeking and drag jitter

* feat(transcode): show 3D asset poster preview immediately after render start

* fix(viewer): synchronize 3D turntable playback via frame callback to prevent skipped degrees

* fix(viewer): handle touchpad zoom gestures and prevent page zoom in 3D viewer

* fix(viewer): eliminate 3D model rotation jitter at 345 degrees

* fix(share): watermark 3D asset turntable video on share links

* fix(share): preserve video transcode resolution on watermarked share links

* fix(viewer): download original 3D model file instead of rendered turntable MP4
2026-10-11 21:32:28 +08:00

289 lines
7.0 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',
failed: 'failed',
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 NotificationEmailStatus = {
pending: 'pending',
processing: 'processing',
processed: 'processed',
failed: 'failed'
} as const
export type NotificationEmailStatus = (typeof NotificationEmailStatus)[keyof typeof NotificationEmailStatus]
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',
transcode_3d: 'transcode_3d',
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]