mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-22 21:37:46 +00:00
156 lines
3.5 KiB
TypeScript
Generated
156 lines
3.5 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'
|
|
} 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',
|
|
ai_metadata_autofill: 'ai_metadata_autofill',
|
|
ai_transcription: 'ai_transcription',
|
|
chat: 'chat',
|
|
ai_embedding: 'ai_embedding'
|
|
} 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 AgentType = {
|
|
chat: 'chat',
|
|
autofill: 'autofill',
|
|
embedding: 'embedding',
|
|
transcription: 'transcription'
|
|
} as const
|
|
|
|
export type AgentType = (typeof AgentType)[keyof typeof AgentType]
|