mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-22 12:26:53 +00:00
589 lines
15 KiB
TypeScript
Generated
589 lines
15 KiB
TypeScript
Generated
|
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
/* eslint-disable */
|
|
// biome-ignore-all lint: generated file
|
|
// @ts-nocheck
|
|
/*
|
|
* WARNING: This is an internal file that is subject to change!
|
|
*
|
|
* 🛑 Under no circumstances should you import this file directly! 🛑
|
|
*
|
|
* All exports from this file are wrapped under a `Prisma` namespace object in the browser.ts file.
|
|
* While this enables partial backward compatibility, it is not part of the stable public API.
|
|
*
|
|
* If you are looking for your Models, Enums, and Input Types, please import them from the respective
|
|
* model files in the `model` directory!
|
|
*/
|
|
|
|
import * as runtime from "@prisma/client/runtime/index-browser"
|
|
|
|
export type * from '../models.ts'
|
|
export type * from './prismaNamespace.ts'
|
|
|
|
export const Decimal = runtime.Decimal
|
|
|
|
|
|
export const NullTypes = {
|
|
DbNull: runtime.NullTypes.DbNull as (new (secret: never) => typeof runtime.DbNull),
|
|
JsonNull: runtime.NullTypes.JsonNull as (new (secret: never) => typeof runtime.JsonNull),
|
|
AnyNull: runtime.NullTypes.AnyNull as (new (secret: never) => typeof runtime.AnyNull),
|
|
}
|
|
/**
|
|
* Helper for filtering JSON entries that have `null` on the database (empty on the db)
|
|
*
|
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
*/
|
|
export const DbNull = runtime.DbNull
|
|
|
|
/**
|
|
* Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
|
|
*
|
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
*/
|
|
export const JsonNull = runtime.JsonNull
|
|
|
|
/**
|
|
* Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
|
|
*
|
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
*/
|
|
export const AnyNull = runtime.AnyNull
|
|
|
|
|
|
export const ModelName = {
|
|
User: 'User',
|
|
Session: 'Session',
|
|
Account: 'Account',
|
|
Verification: 'Verification',
|
|
AuthToken: 'AuthToken',
|
|
Team: 'Team',
|
|
Sandbox: 'Sandbox',
|
|
Skill: 'Skill',
|
|
TeamMember: 'TeamMember',
|
|
Project: 'Project',
|
|
ProjectMember: 'ProjectMember',
|
|
ShareLink: 'ShareLink',
|
|
Asset: 'Asset',
|
|
StorageKey: 'StorageKey',
|
|
AssetMetadataValue: 'AssetMetadataValue',
|
|
AssetComment: 'AssetComment',
|
|
AssetCommentAttachment: 'AssetCommentAttachment',
|
|
AssetEmbedding: 'AssetEmbedding',
|
|
Invite: 'Invite',
|
|
MetadataField: 'MetadataField',
|
|
Notification: 'Notification',
|
|
SystemSettings: 'SystemSettings',
|
|
Task: 'Task',
|
|
WorkflowTask: 'WorkflowTask',
|
|
Agent: 'Agent',
|
|
AgentSkill: 'AgentSkill',
|
|
AgentSession: 'AgentSession',
|
|
AgentSessionEntry: 'AgentSessionEntry',
|
|
UserMetadata: 'UserMetadata',
|
|
Model: 'Model',
|
|
Provider: 'Provider'
|
|
} as const
|
|
|
|
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
|
|
|
/*
|
|
* Enums
|
|
*/
|
|
|
|
export const TransactionIsolationLevel = runtime.makeStrictEnum({
|
|
ReadUncommitted: 'ReadUncommitted',
|
|
ReadCommitted: 'ReadCommitted',
|
|
RepeatableRead: 'RepeatableRead',
|
|
Serializable: 'Serializable'
|
|
} as const)
|
|
|
|
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
|
|
|
|
|
|
export const UserScalarFieldEnum = {
|
|
id: 'id',
|
|
type: 'type',
|
|
name: 'name',
|
|
email: 'email',
|
|
emailVerified: 'emailVerified',
|
|
image: 'image',
|
|
password: 'password',
|
|
agentSettings: 'agentSettings',
|
|
guestEmail: 'guestEmail',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
} as const
|
|
|
|
export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
|
|
|
|
|
|
export const SessionScalarFieldEnum = {
|
|
id: 'id',
|
|
expiresAt: 'expiresAt',
|
|
token: 'token',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt',
|
|
ipAddress: 'ipAddress',
|
|
userAgent: 'userAgent',
|
|
userId: 'userId'
|
|
} as const
|
|
|
|
export type SessionScalarFieldEnum = (typeof SessionScalarFieldEnum)[keyof typeof SessionScalarFieldEnum]
|
|
|
|
|
|
export const AccountScalarFieldEnum = {
|
|
id: 'id',
|
|
accountId: 'accountId',
|
|
providerId: 'providerId',
|
|
userId: 'userId',
|
|
accessToken: 'accessToken',
|
|
refreshToken: 'refreshToken',
|
|
idToken: 'idToken',
|
|
accessTokenExpiresAt: 'accessTokenExpiresAt',
|
|
refreshTokenExpiresAt: 'refreshTokenExpiresAt',
|
|
scope: 'scope',
|
|
password: 'password',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
} as const
|
|
|
|
export type AccountScalarFieldEnum = (typeof AccountScalarFieldEnum)[keyof typeof AccountScalarFieldEnum]
|
|
|
|
|
|
export const VerificationScalarFieldEnum = {
|
|
id: 'id',
|
|
identifier: 'identifier',
|
|
value: 'value',
|
|
expiresAt: 'expiresAt',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
} as const
|
|
|
|
export type VerificationScalarFieldEnum = (typeof VerificationScalarFieldEnum)[keyof typeof VerificationScalarFieldEnum]
|
|
|
|
|
|
export const AuthTokenScalarFieldEnum = {
|
|
id: 'id',
|
|
accessToken: 'accessToken',
|
|
refreshToken: 'refreshToken',
|
|
accessTokenExpiresAt: 'accessTokenExpiresAt',
|
|
refreshTokenExpiresAt: 'refreshTokenExpiresAt',
|
|
userId: 'userId'
|
|
} as const
|
|
|
|
export type AuthTokenScalarFieldEnum = (typeof AuthTokenScalarFieldEnum)[keyof typeof AuthTokenScalarFieldEnum]
|
|
|
|
|
|
export const TeamScalarFieldEnum = {
|
|
id: 'id',
|
|
name: 'name',
|
|
settings: 'settings',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt',
|
|
rootFolderId: 'rootFolderId'
|
|
} as const
|
|
|
|
export type TeamScalarFieldEnum = (typeof TeamScalarFieldEnum)[keyof typeof TeamScalarFieldEnum]
|
|
|
|
|
|
export const SandboxScalarFieldEnum = {
|
|
id: 'id',
|
|
allowedDomains: 'allowedDomains',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt',
|
|
teamId: 'teamId'
|
|
} as const
|
|
|
|
export type SandboxScalarFieldEnum = (typeof SandboxScalarFieldEnum)[keyof typeof SandboxScalarFieldEnum]
|
|
|
|
|
|
export const SkillScalarFieldEnum = {
|
|
id: 'id',
|
|
name: 'name',
|
|
description: 'description',
|
|
config: 'config',
|
|
assetId: 'assetId',
|
|
hash: 'hash',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt',
|
|
teamId: 'teamId'
|
|
} as const
|
|
|
|
export type SkillScalarFieldEnum = (typeof SkillScalarFieldEnum)[keyof typeof SkillScalarFieldEnum]
|
|
|
|
|
|
export const TeamMemberScalarFieldEnum = {
|
|
id: 'id',
|
|
role: 'role',
|
|
scope: 'scope',
|
|
teamId: 'teamId',
|
|
userId: 'userId',
|
|
lastReadNotificationId: 'lastReadNotificationId'
|
|
} as const
|
|
|
|
export type TeamMemberScalarFieldEnum = (typeof TeamMemberScalarFieldEnum)[keyof typeof TeamMemberScalarFieldEnum]
|
|
|
|
|
|
export const ProjectScalarFieldEnum = {
|
|
id: 'id',
|
|
name: 'name',
|
|
coverImageKey: 'coverImageKey',
|
|
metadataOverrides: 'metadataOverrides',
|
|
enableNotification: 'enableNotification',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt',
|
|
teamId: 'teamId',
|
|
rootFolderId: 'rootFolderId',
|
|
shareRootId: 'shareRootId'
|
|
} as const
|
|
|
|
export type ProjectScalarFieldEnum = (typeof ProjectScalarFieldEnum)[keyof typeof ProjectScalarFieldEnum]
|
|
|
|
|
|
export const ProjectMemberScalarFieldEnum = {
|
|
id: 'id',
|
|
role: 'role',
|
|
projectId: 'projectId',
|
|
teamMemberId: 'teamMemberId'
|
|
} as const
|
|
|
|
export type ProjectMemberScalarFieldEnum = (typeof ProjectMemberScalarFieldEnum)[keyof typeof ProjectMemberScalarFieldEnum]
|
|
|
|
|
|
export const ShareLinkScalarFieldEnum = {
|
|
id: 'id',
|
|
name: 'name',
|
|
expireAt: 'expireAt',
|
|
password: 'password',
|
|
isDisabled: 'isDisabled',
|
|
defaultSortOrder: 'defaultSortOrder',
|
|
fieldVisibility: 'fieldVisibility',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt',
|
|
projectId: 'projectId',
|
|
rootFolderId: 'rootFolderId'
|
|
} as const
|
|
|
|
export type ShareLinkScalarFieldEnum = (typeof ShareLinkScalarFieldEnum)[keyof typeof ShareLinkScalarFieldEnum]
|
|
|
|
|
|
export const AssetScalarFieldEnum = {
|
|
id: 'id',
|
|
name: 'name',
|
|
nameNgram: 'nameNgram',
|
|
type: 'type',
|
|
mediaType: 'mediaType',
|
|
fileCount: 'fileCount',
|
|
sizeByte: 'sizeByte',
|
|
status: 'status',
|
|
transcodeTaskId: 'transcodeTaskId',
|
|
media: 'media',
|
|
isDeleted: 'isDeleted',
|
|
deletedAt: 'deletedAt',
|
|
sortIndex: 'sortIndex',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt',
|
|
parentId: 'parentId',
|
|
targetId: 'targetId',
|
|
storageKeyId: 'storageKeyId',
|
|
creatorId: 'creatorId',
|
|
taskId: 'taskId',
|
|
projectId: 'projectId'
|
|
} as const
|
|
|
|
export type AssetScalarFieldEnum = (typeof AssetScalarFieldEnum)[keyof typeof AssetScalarFieldEnum]
|
|
|
|
|
|
export const StorageKeyScalarFieldEnum = {
|
|
id: 'id',
|
|
key: 'key',
|
|
status: 'status',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
} as const
|
|
|
|
export type StorageKeyScalarFieldEnum = (typeof StorageKeyScalarFieldEnum)[keyof typeof StorageKeyScalarFieldEnum]
|
|
|
|
|
|
export const AssetMetadataValueScalarFieldEnum = {
|
|
id: 'id',
|
|
assetId: 'assetId',
|
|
fieldId: 'fieldId',
|
|
stringValue: 'stringValue',
|
|
numberValue: 'numberValue',
|
|
booleanValue: 'booleanValue',
|
|
jsonValue: 'jsonValue',
|
|
dateValue: 'dateValue'
|
|
} as const
|
|
|
|
export type AssetMetadataValueScalarFieldEnum = (typeof AssetMetadataValueScalarFieldEnum)[keyof typeof AssetMetadataValueScalarFieldEnum]
|
|
|
|
|
|
export const AssetCommentScalarFieldEnum = {
|
|
id: 'id',
|
|
message: 'message',
|
|
annotation: 'annotation',
|
|
second: 'second',
|
|
sessionId: 'sessionId',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt',
|
|
assetId: 'assetId',
|
|
creatorId: 'creatorId',
|
|
replyToId: 'replyToId'
|
|
} as const
|
|
|
|
export type AssetCommentScalarFieldEnum = (typeof AssetCommentScalarFieldEnum)[keyof typeof AssetCommentScalarFieldEnum]
|
|
|
|
|
|
export const AssetCommentAttachmentScalarFieldEnum = {
|
|
id: 'id',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt',
|
|
commentId: 'commentId',
|
|
assetId: 'assetId'
|
|
} as const
|
|
|
|
export type AssetCommentAttachmentScalarFieldEnum = (typeof AssetCommentAttachmentScalarFieldEnum)[keyof typeof AssetCommentAttachmentScalarFieldEnum]
|
|
|
|
|
|
export const AssetEmbeddingScalarFieldEnum = {
|
|
id: 'id',
|
|
startTime: 'startTime',
|
|
endTime: 'endTime',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt',
|
|
assetId: 'assetId'
|
|
} as const
|
|
|
|
export type AssetEmbeddingScalarFieldEnum = (typeof AssetEmbeddingScalarFieldEnum)[keyof typeof AssetEmbeddingScalarFieldEnum]
|
|
|
|
|
|
export const InviteScalarFieldEnum = {
|
|
id: 'id',
|
|
code: 'code',
|
|
role: 'role',
|
|
used: 'used',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt',
|
|
teamId: 'teamId',
|
|
projectId: 'projectId',
|
|
inviterId: 'inviterId'
|
|
} as const
|
|
|
|
export type InviteScalarFieldEnum = (typeof InviteScalarFieldEnum)[keyof typeof InviteScalarFieldEnum]
|
|
|
|
|
|
export const MetadataFieldScalarFieldEnum = {
|
|
id: 'id',
|
|
key: 'key',
|
|
scope: 'scope',
|
|
config: 'config',
|
|
readOnly: 'readOnly',
|
|
aiAutofill: 'aiAutofill',
|
|
description: 'description',
|
|
teamId: 'teamId',
|
|
projectId: 'projectId'
|
|
} as const
|
|
|
|
export type MetadataFieldScalarFieldEnum = (typeof MetadataFieldScalarFieldEnum)[keyof typeof MetadataFieldScalarFieldEnum]
|
|
|
|
|
|
export const NotificationScalarFieldEnum = {
|
|
id: 'id',
|
|
type: 'type',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt',
|
|
teamId: 'teamId',
|
|
projectId: 'projectId',
|
|
creatorId: 'creatorId',
|
|
assetId: 'assetId',
|
|
taskId: 'taskId',
|
|
userId: 'userId'
|
|
} as const
|
|
|
|
export type NotificationScalarFieldEnum = (typeof NotificationScalarFieldEnum)[keyof typeof NotificationScalarFieldEnum]
|
|
|
|
|
|
export const SystemSettingsScalarFieldEnum = {
|
|
id: 'id',
|
|
key: 'key',
|
|
value: 'value',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
} as const
|
|
|
|
export type SystemSettingsScalarFieldEnum = (typeof SystemSettingsScalarFieldEnum)[keyof typeof SystemSettingsScalarFieldEnum]
|
|
|
|
|
|
export const TaskScalarFieldEnum = {
|
|
id: 'id',
|
|
type: 'type',
|
|
status: 'status',
|
|
name: 'name',
|
|
total: 'total',
|
|
uploaded: 'uploaded',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt',
|
|
creatorId: 'creatorId'
|
|
} as const
|
|
|
|
export type TaskScalarFieldEnum = (typeof TaskScalarFieldEnum)[keyof typeof TaskScalarFieldEnum]
|
|
|
|
|
|
export const WorkflowTaskScalarFieldEnum = {
|
|
id: 'id',
|
|
uid: 'uid',
|
|
teamId: 'teamId',
|
|
projectId: 'projectId',
|
|
assetId: 'assetId',
|
|
type: 'type',
|
|
status: 'status',
|
|
payload: 'payload',
|
|
output: 'output',
|
|
heartbeat: 'heartbeat',
|
|
inputTokens: 'inputTokens',
|
|
outputTokens: 'outputTokens',
|
|
model: 'model',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
} as const
|
|
|
|
export type WorkflowTaskScalarFieldEnum = (typeof WorkflowTaskScalarFieldEnum)[keyof typeof WorkflowTaskScalarFieldEnum]
|
|
|
|
|
|
export const AgentScalarFieldEnum = {
|
|
id: 'id',
|
|
type: 'type',
|
|
enabled: 'enabled',
|
|
soul: 'soul',
|
|
providerId: 'providerId',
|
|
modelId: 'modelId',
|
|
teamId: 'teamId',
|
|
config: 'config',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
} as const
|
|
|
|
export type AgentScalarFieldEnum = (typeof AgentScalarFieldEnum)[keyof typeof AgentScalarFieldEnum]
|
|
|
|
|
|
export const AgentSkillScalarFieldEnum = {
|
|
id: 'id',
|
|
agentId: 'agentId',
|
|
skillId: 'skillId',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
} as const
|
|
|
|
export type AgentSkillScalarFieldEnum = (typeof AgentSkillScalarFieldEnum)[keyof typeof AgentSkillScalarFieldEnum]
|
|
|
|
|
|
export const AgentSessionScalarFieldEnum = {
|
|
id: 'id',
|
|
agentId: 'agentId',
|
|
userId: 'userId',
|
|
cwd: 'cwd',
|
|
leafId: 'leafId',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
} as const
|
|
|
|
export type AgentSessionScalarFieldEnum = (typeof AgentSessionScalarFieldEnum)[keyof typeof AgentSessionScalarFieldEnum]
|
|
|
|
|
|
export const AgentSessionEntryScalarFieldEnum = {
|
|
id: 'id',
|
|
sessionId: 'sessionId',
|
|
entry: 'entry'
|
|
} as const
|
|
|
|
export type AgentSessionEntryScalarFieldEnum = (typeof AgentSessionEntryScalarFieldEnum)[keyof typeof AgentSessionEntryScalarFieldEnum]
|
|
|
|
|
|
export const UserMetadataScalarFieldEnum = {
|
|
id: 'id',
|
|
key: 'key',
|
|
value: 'value',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt',
|
|
userId: 'userId',
|
|
teamId: 'teamId'
|
|
} as const
|
|
|
|
export type UserMetadataScalarFieldEnum = (typeof UserMetadataScalarFieldEnum)[keyof typeof UserMetadataScalarFieldEnum]
|
|
|
|
|
|
export const ModelScalarFieldEnum = {
|
|
id: 'id',
|
|
modelId: 'modelId',
|
|
name: 'name',
|
|
config: 'config',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt',
|
|
providerId: 'providerId'
|
|
} as const
|
|
|
|
export type ModelScalarFieldEnum = (typeof ModelScalarFieldEnum)[keyof typeof ModelScalarFieldEnum]
|
|
|
|
|
|
export const ProviderScalarFieldEnum = {
|
|
id: 'id',
|
|
name: 'name',
|
|
isBuiltin: 'isBuiltin',
|
|
config: 'config',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt',
|
|
teamId: 'teamId'
|
|
} as const
|
|
|
|
export type ProviderScalarFieldEnum = (typeof ProviderScalarFieldEnum)[keyof typeof ProviderScalarFieldEnum]
|
|
|
|
|
|
export const SortOrder = {
|
|
asc: 'asc',
|
|
desc: 'desc'
|
|
} as const
|
|
|
|
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
|
|
|
|
|
|
export const NullableJsonNullValueInput = {
|
|
DbNull: DbNull,
|
|
JsonNull: JsonNull
|
|
} as const
|
|
|
|
export type NullableJsonNullValueInput = (typeof NullableJsonNullValueInput)[keyof typeof NullableJsonNullValueInput]
|
|
|
|
|
|
export const JsonNullValueInput = {
|
|
JsonNull: JsonNull
|
|
} as const
|
|
|
|
export type JsonNullValueInput = (typeof JsonNullValueInput)[keyof typeof JsonNullValueInput]
|
|
|
|
|
|
export const QueryMode = {
|
|
default: 'default',
|
|
insensitive: 'insensitive'
|
|
} as const
|
|
|
|
export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode]
|
|
|
|
|
|
export const JsonNullValueFilter = {
|
|
DbNull: DbNull,
|
|
JsonNull: JsonNull,
|
|
AnyNull: AnyNull
|
|
} as const
|
|
|
|
export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter]
|
|
|
|
|
|
export const NullsOrder = {
|
|
first: 'first',
|
|
last: 'last'
|
|
} as const
|
|
|
|
export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
|
|
|