mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-26 10:55:27 +00:00
initial commit
This commit is contained in:
@@ -0,0 +1,164 @@
|
||||
|
||||
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
||||
/* eslint-disable */
|
||||
// biome-ignore-all lint: generated file
|
||||
// @ts-nocheck
|
||||
/*
|
||||
* This file should be your main import to use Prisma-related types and utilities in a browser.
|
||||
* Use it to get access to models, enums, and input types.
|
||||
*
|
||||
* This file does not contain a `PrismaClient` class, nor several other helpers that are intended as server-side only.
|
||||
* See `client.ts` for the standard, server-side entry point.
|
||||
*
|
||||
* 🟢 You can import this file directly.
|
||||
*/
|
||||
|
||||
import * as Prisma from './internal/prismaNamespaceBrowser.ts'
|
||||
export { Prisma }
|
||||
export * as $Enums from './enums.ts'
|
||||
export * from './enums.ts';
|
||||
/**
|
||||
* Model User
|
||||
*
|
||||
*/
|
||||
export type User = Prisma.UserModel
|
||||
/**
|
||||
* Model Session
|
||||
*
|
||||
*/
|
||||
export type Session = Prisma.SessionModel
|
||||
/**
|
||||
* Model Account
|
||||
*
|
||||
*/
|
||||
export type Account = Prisma.AccountModel
|
||||
/**
|
||||
* Model Verification
|
||||
*
|
||||
*/
|
||||
export type Verification = Prisma.VerificationModel
|
||||
/**
|
||||
* Model AuthToken
|
||||
*
|
||||
*/
|
||||
export type AuthToken = Prisma.AuthTokenModel
|
||||
/**
|
||||
* Model Team
|
||||
*
|
||||
*/
|
||||
export type Team = Prisma.TeamModel
|
||||
/**
|
||||
* Model Skill
|
||||
*
|
||||
*/
|
||||
export type Skill = Prisma.SkillModel
|
||||
/**
|
||||
* Model TeamMember
|
||||
*
|
||||
*/
|
||||
export type TeamMember = Prisma.TeamMemberModel
|
||||
/**
|
||||
* Model Project
|
||||
*
|
||||
*/
|
||||
export type Project = Prisma.ProjectModel
|
||||
/**
|
||||
* Model ProjectMember
|
||||
*
|
||||
*/
|
||||
export type ProjectMember = Prisma.ProjectMemberModel
|
||||
/**
|
||||
* Model ShareLink
|
||||
*
|
||||
*/
|
||||
export type ShareLink = Prisma.ShareLinkModel
|
||||
/**
|
||||
* Model Asset
|
||||
*
|
||||
*/
|
||||
export type Asset = Prisma.AssetModel
|
||||
/**
|
||||
* Model AssetMetadataValue
|
||||
*
|
||||
*/
|
||||
export type AssetMetadataValue = Prisma.AssetMetadataValueModel
|
||||
/**
|
||||
* Model AssetComment
|
||||
*
|
||||
*/
|
||||
export type AssetComment = Prisma.AssetCommentModel
|
||||
/**
|
||||
* Model AssetCommentAttachment
|
||||
*
|
||||
*/
|
||||
export type AssetCommentAttachment = Prisma.AssetCommentAttachmentModel
|
||||
/**
|
||||
* Model AssetEmbedding
|
||||
*
|
||||
*/
|
||||
export type AssetEmbedding = Prisma.AssetEmbeddingModel
|
||||
/**
|
||||
* Model Invite
|
||||
*
|
||||
*/
|
||||
export type Invite = Prisma.InviteModel
|
||||
/**
|
||||
* Model MetadataField
|
||||
*
|
||||
*/
|
||||
export type MetadataField = Prisma.MetadataFieldModel
|
||||
/**
|
||||
* Model Notification
|
||||
*
|
||||
*/
|
||||
export type Notification = Prisma.NotificationModel
|
||||
/**
|
||||
* Model SystemSettings
|
||||
*
|
||||
*/
|
||||
export type SystemSettings = Prisma.SystemSettingsModel
|
||||
/**
|
||||
* Model Task
|
||||
*
|
||||
*/
|
||||
export type Task = Prisma.TaskModel
|
||||
/**
|
||||
* Model WorkflowTask
|
||||
*
|
||||
*/
|
||||
export type WorkflowTask = Prisma.WorkflowTaskModel
|
||||
/**
|
||||
* Model Agent
|
||||
*
|
||||
*/
|
||||
export type Agent = Prisma.AgentModel
|
||||
/**
|
||||
* Model AgentSkill
|
||||
*
|
||||
*/
|
||||
export type AgentSkill = Prisma.AgentSkillModel
|
||||
/**
|
||||
* Model AgentSession
|
||||
*
|
||||
*/
|
||||
export type AgentSession = Prisma.AgentSessionModel
|
||||
/**
|
||||
* Model AgentSessionEntry
|
||||
*
|
||||
*/
|
||||
export type AgentSessionEntry = Prisma.AgentSessionEntryModel
|
||||
/**
|
||||
* Model UserMetadata
|
||||
*
|
||||
*/
|
||||
export type UserMetadata = Prisma.UserMetadataModel
|
||||
/**
|
||||
* Model Model
|
||||
*
|
||||
*/
|
||||
export type Model = Prisma.ModelModel
|
||||
/**
|
||||
* Model Provider
|
||||
*
|
||||
*/
|
||||
export type Provider = Prisma.ProviderModel
|
||||
@@ -0,0 +1,188 @@
|
||||
|
||||
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
||||
/* eslint-disable */
|
||||
// biome-ignore-all lint: generated file
|
||||
// @ts-nocheck
|
||||
/*
|
||||
* This file should be your main import to use Prisma. Through it you get access to all the models, enums, and input types.
|
||||
* If you're looking for something you can import in the client-side of your application, please refer to the `browser.ts` file instead.
|
||||
*
|
||||
* 🟢 You can import this file directly.
|
||||
*/
|
||||
|
||||
import * as process from 'node:process'
|
||||
import * as path from 'node:path'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
globalThis['__dirname'] = path.dirname(fileURLToPath(import.meta.url))
|
||||
|
||||
import * as runtime from "@prisma/client/runtime/client"
|
||||
import * as $Enums from "./enums.ts"
|
||||
import * as $Class from "./internal/class.ts"
|
||||
import * as Prisma from "./internal/prismaNamespace.ts"
|
||||
|
||||
export * as $Enums from './enums.ts'
|
||||
export * from "./enums.ts"
|
||||
/**
|
||||
* ## Prisma Client
|
||||
*
|
||||
* Type-safe database client for TypeScript
|
||||
* @example
|
||||
* ```
|
||||
* const prisma = new PrismaClient({
|
||||
* adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL })
|
||||
* })
|
||||
* // Fetch zero or more Users
|
||||
* const users = await prisma.user.findMany()
|
||||
* ```
|
||||
*
|
||||
* Read more in our [docs](https://pris.ly/d/client).
|
||||
*/
|
||||
export const PrismaClient = $Class.getPrismaClientClass()
|
||||
export type PrismaClient<LogOpts extends Prisma.LogLevel = never, OmitOpts extends Prisma.PrismaClientOptions["omit"] = Prisma.PrismaClientOptions["omit"], ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = $Class.PrismaClient<LogOpts, OmitOpts, ExtArgs>
|
||||
export { Prisma }
|
||||
|
||||
/**
|
||||
* Model User
|
||||
*
|
||||
*/
|
||||
export type User = Prisma.UserModel
|
||||
/**
|
||||
* Model Session
|
||||
*
|
||||
*/
|
||||
export type Session = Prisma.SessionModel
|
||||
/**
|
||||
* Model Account
|
||||
*
|
||||
*/
|
||||
export type Account = Prisma.AccountModel
|
||||
/**
|
||||
* Model Verification
|
||||
*
|
||||
*/
|
||||
export type Verification = Prisma.VerificationModel
|
||||
/**
|
||||
* Model AuthToken
|
||||
*
|
||||
*/
|
||||
export type AuthToken = Prisma.AuthTokenModel
|
||||
/**
|
||||
* Model Team
|
||||
*
|
||||
*/
|
||||
export type Team = Prisma.TeamModel
|
||||
/**
|
||||
* Model Skill
|
||||
*
|
||||
*/
|
||||
export type Skill = Prisma.SkillModel
|
||||
/**
|
||||
* Model TeamMember
|
||||
*
|
||||
*/
|
||||
export type TeamMember = Prisma.TeamMemberModel
|
||||
/**
|
||||
* Model Project
|
||||
*
|
||||
*/
|
||||
export type Project = Prisma.ProjectModel
|
||||
/**
|
||||
* Model ProjectMember
|
||||
*
|
||||
*/
|
||||
export type ProjectMember = Prisma.ProjectMemberModel
|
||||
/**
|
||||
* Model ShareLink
|
||||
*
|
||||
*/
|
||||
export type ShareLink = Prisma.ShareLinkModel
|
||||
/**
|
||||
* Model Asset
|
||||
*
|
||||
*/
|
||||
export type Asset = Prisma.AssetModel
|
||||
/**
|
||||
* Model AssetMetadataValue
|
||||
*
|
||||
*/
|
||||
export type AssetMetadataValue = Prisma.AssetMetadataValueModel
|
||||
/**
|
||||
* Model AssetComment
|
||||
*
|
||||
*/
|
||||
export type AssetComment = Prisma.AssetCommentModel
|
||||
/**
|
||||
* Model AssetCommentAttachment
|
||||
*
|
||||
*/
|
||||
export type AssetCommentAttachment = Prisma.AssetCommentAttachmentModel
|
||||
/**
|
||||
* Model AssetEmbedding
|
||||
*
|
||||
*/
|
||||
export type AssetEmbedding = Prisma.AssetEmbeddingModel
|
||||
/**
|
||||
* Model Invite
|
||||
*
|
||||
*/
|
||||
export type Invite = Prisma.InviteModel
|
||||
/**
|
||||
* Model MetadataField
|
||||
*
|
||||
*/
|
||||
export type MetadataField = Prisma.MetadataFieldModel
|
||||
/**
|
||||
* Model Notification
|
||||
*
|
||||
*/
|
||||
export type Notification = Prisma.NotificationModel
|
||||
/**
|
||||
* Model SystemSettings
|
||||
*
|
||||
*/
|
||||
export type SystemSettings = Prisma.SystemSettingsModel
|
||||
/**
|
||||
* Model Task
|
||||
*
|
||||
*/
|
||||
export type Task = Prisma.TaskModel
|
||||
/**
|
||||
* Model WorkflowTask
|
||||
*
|
||||
*/
|
||||
export type WorkflowTask = Prisma.WorkflowTaskModel
|
||||
/**
|
||||
* Model Agent
|
||||
*
|
||||
*/
|
||||
export type Agent = Prisma.AgentModel
|
||||
/**
|
||||
* Model AgentSkill
|
||||
*
|
||||
*/
|
||||
export type AgentSkill = Prisma.AgentSkillModel
|
||||
/**
|
||||
* Model AgentSession
|
||||
*
|
||||
*/
|
||||
export type AgentSession = Prisma.AgentSessionModel
|
||||
/**
|
||||
* Model AgentSessionEntry
|
||||
*
|
||||
*/
|
||||
export type AgentSessionEntry = Prisma.AgentSessionEntryModel
|
||||
/**
|
||||
* Model UserMetadata
|
||||
*
|
||||
*/
|
||||
export type UserMetadata = Prisma.UserMetadataModel
|
||||
/**
|
||||
* Model Model
|
||||
*
|
||||
*/
|
||||
export type Model = Prisma.ModelModel
|
||||
/**
|
||||
* Model Provider
|
||||
*
|
||||
*/
|
||||
export type Provider = Prisma.ProviderModel
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,147 @@
|
||||
|
||||
/* !!! 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',
|
||||
removed: 'removed'
|
||||
} as const
|
||||
|
||||
export type AssetStatus = (typeof AssetStatus)[keyof typeof AssetStatus]
|
||||
|
||||
|
||||
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]
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,563 @@
|
||||
|
||||
/* !!! 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',
|
||||
Skill: 'Skill',
|
||||
TeamMember: 'TeamMember',
|
||||
Project: 'Project',
|
||||
ProjectMember: 'ProjectMember',
|
||||
ShareLink: 'ShareLink',
|
||||
Asset: 'Asset',
|
||||
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 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',
|
||||
key: 'key',
|
||||
type: 'type',
|
||||
mediaType: 'mediaType',
|
||||
fileCount: 'fileCount',
|
||||
sizeByte: 'sizeByte',
|
||||
status: 'status',
|
||||
transcodeTaskId: 'transcodeTaskId',
|
||||
media: 'media',
|
||||
removed: 'removed',
|
||||
deletedAt: 'deletedAt',
|
||||
sortIndex: 'sortIndex',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt',
|
||||
parentId: 'parentId',
|
||||
targetId: 'targetId',
|
||||
creatorId: 'creatorId',
|
||||
taskId: 'taskId',
|
||||
projectId: 'projectId'
|
||||
} as const
|
||||
|
||||
export type AssetScalarFieldEnum = (typeof AssetScalarFieldEnum)[keyof typeof AssetScalarFieldEnum]
|
||||
|
||||
|
||||
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',
|
||||
isAi: 'isAi',
|
||||
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',
|
||||
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]
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
|
||||
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
||||
/* eslint-disable */
|
||||
// biome-ignore-all lint: generated file
|
||||
// @ts-nocheck
|
||||
/*
|
||||
* This is a barrel export file for all models and their related types.
|
||||
*
|
||||
* 🟢 You can import this file directly.
|
||||
*/
|
||||
export type * from './models/User.ts'
|
||||
export type * from './models/Session.ts'
|
||||
export type * from './models/Account.ts'
|
||||
export type * from './models/Verification.ts'
|
||||
export type * from './models/AuthToken.ts'
|
||||
export type * from './models/Team.ts'
|
||||
export type * from './models/Skill.ts'
|
||||
export type * from './models/TeamMember.ts'
|
||||
export type * from './models/Project.ts'
|
||||
export type * from './models/ProjectMember.ts'
|
||||
export type * from './models/ShareLink.ts'
|
||||
export type * from './models/Asset.ts'
|
||||
export type * from './models/AssetMetadataValue.ts'
|
||||
export type * from './models/AssetComment.ts'
|
||||
export type * from './models/AssetCommentAttachment.ts'
|
||||
export type * from './models/AssetEmbedding.ts'
|
||||
export type * from './models/Invite.ts'
|
||||
export type * from './models/MetadataField.ts'
|
||||
export type * from './models/Notification.ts'
|
||||
export type * from './models/SystemSettings.ts'
|
||||
export type * from './models/Task.ts'
|
||||
export type * from './models/WorkflowTask.ts'
|
||||
export type * from './models/Agent.ts'
|
||||
export type * from './models/AgentSkill.ts'
|
||||
export type * from './models/AgentSession.ts'
|
||||
export type * from './models/AgentSessionEntry.ts'
|
||||
export type * from './models/UserMetadata.ts'
|
||||
export type * from './models/Model.ts'
|
||||
export type * from './models/Provider.ts'
|
||||
export type * from './commonInputTypes.ts'
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,183 @@
|
||||
import * as Prisma from './internal/prismaNamespace';
|
||||
declare global {
|
||||
namespace PrismaJson {
|
||||
// This namespace will always be empty. Definitions should be done by
|
||||
// you manually, and merged automatically by typescript. Make sure that
|
||||
// your declaration merging file is included in your tsconfig.json
|
||||
//
|
||||
// Learn more: https://github.com/arthurfiorette/prisma-json-types-generator/issues/143
|
||||
// Declaration Merging: https://www.typescriptlang.org/docs/handbook/declaration-merging.html
|
||||
}
|
||||
}
|
||||
|
||||
/** A filter to be used against nullable List types. */
|
||||
export type NullableListFilter<T> = {
|
||||
equals?: T | T[] | null;
|
||||
has?: T | null;
|
||||
hasEvery?: T[];
|
||||
hasSome?: T[];
|
||||
isEmpty?: boolean;
|
||||
};
|
||||
|
||||
/** A type to determine how to update a json field */
|
||||
export type UpdateInput<T> = T extends object ? { [P in keyof T]?: UpdateInput<T[P]> } : T;
|
||||
|
||||
/** A type to determine how to update a json[] field */
|
||||
export type UpdateManyInput<T> = T | T[] | { set?: T[]; push?: T | T[] };
|
||||
|
||||
/** A type to determine how to create a json[] input */
|
||||
export type CreateManyInput<T> = T | T[] | { set?: T[] };
|
||||
|
||||
/**
|
||||
* A typed version of NestedStringFilter, allowing narrowing of string types to
|
||||
* discriminated unions.
|
||||
*/
|
||||
export type TypedNestedStringFilter<S extends string> =
|
||||
//@ts-ignore - When Prisma.StringFilter is not present, this type is not used
|
||||
Prisma.StringFilter & {
|
||||
equals?: S;
|
||||
in?: S[];
|
||||
notIn?: S[];
|
||||
not?: TypedNestedStringFilter<S> | S;
|
||||
};
|
||||
|
||||
/**
|
||||
* A typed version of StringFilter, allowing narrowing of string types to discriminated
|
||||
* unions.
|
||||
*/
|
||||
export type TypedStringFilter<S extends string> =
|
||||
//@ts-ignore - When Prisma.StringFilter is not present, this type is not used
|
||||
Prisma.StringFilter & {
|
||||
equals?: S;
|
||||
in?: S[];
|
||||
notIn?: S[];
|
||||
not?: TypedNestedStringFilter<S> | S;
|
||||
};
|
||||
|
||||
/**
|
||||
* A typed version of NestedStringNullableFilter, allowing narrowing of string types to
|
||||
* discriminated unions.
|
||||
*/
|
||||
export type TypedNestedStringNullableFilter<S extends string> =
|
||||
//@ts-ignore - When Prisma.StringNullableFilter is not present, this type is not used
|
||||
Prisma.StringNullableFilter & {
|
||||
equals?: S | null;
|
||||
in?: S[] | null;
|
||||
notIn?: S[] | null;
|
||||
not?: TypedNestedStringNullableFilter<S> | S | null;
|
||||
};
|
||||
|
||||
/**
|
||||
* A typed version of StringNullableFilter, allowing narrowing of string types to
|
||||
* discriminated unions.
|
||||
*/
|
||||
export type TypedStringNullableFilter<S extends string> =
|
||||
//@ts-ignore - When Prisma.StringNullableFilter is not present, this type is not used
|
||||
Prisma.StringNullableFilter & {
|
||||
equals?: S | null;
|
||||
in?: S[] | null;
|
||||
notIn?: S[] | null;
|
||||
not?: TypedNestedStringNullableFilter<S> | S | null;
|
||||
};
|
||||
|
||||
/**
|
||||
* A typed version of NestedStringWithAggregatesFilter, allowing narrowing of string types
|
||||
* to discriminated unions.
|
||||
*/
|
||||
export type TypedNestedStringWithAggregatesFilter<S extends string> =
|
||||
//@ts-ignore - When Prisma.NestedStringWithAggregatesFilter is not present, this type is not used
|
||||
Prisma.NestedStringWithAggregatesFilter & {
|
||||
equals?: S;
|
||||
in?: S[];
|
||||
notIn?: S[];
|
||||
not?: TypedNestedStringWithAggregatesFilter<S> | S;
|
||||
};
|
||||
|
||||
/**
|
||||
* A typed version of StringWithAggregatesFilter, allowing narrowing of string types to
|
||||
* discriminated unions.
|
||||
*/
|
||||
export type TypedStringWithAggregatesFilter<S extends string> =
|
||||
//@ts-ignore - When Prisma.StringWithAggregatesFilter is not present, this type is not used
|
||||
Prisma.StringWithAggregatesFilter & {
|
||||
equals?: S;
|
||||
in?: S[];
|
||||
notIn?: S[];
|
||||
not?: TypedNestedStringWithAggregatesFilter<S> | S;
|
||||
};
|
||||
|
||||
/**
|
||||
* A typed version of NestedStringNullableWithAggregatesFilter, allowing narrowing of
|
||||
* string types to discriminated unions.
|
||||
*/
|
||||
export type TypedNestedStringNullableWithAggregatesFilter<S extends string> =
|
||||
//@ts-ignore - When Prisma.NestedStringNullableWithAggregatesFilter is not present, this type is not used
|
||||
Prisma.NestedStringNullableWithAggregatesFilter & {
|
||||
equals?: S | null;
|
||||
in?: S[] | null;
|
||||
notIn?: S[] | null;
|
||||
not?: TypedNestedStringNullableWithAggregatesFilter<S> | S | null;
|
||||
};
|
||||
|
||||
/**
|
||||
* A typed version of StringNullableWithAggregatesFilter, allowing narrowing of string
|
||||
* types to discriminated unions.
|
||||
*/
|
||||
export type TypedStringNullableWithAggregatesFilter<S extends string> =
|
||||
//@ts-ignore - When Prisma.StringNullableWithAggregatesFilter is not present, this type is not used
|
||||
Prisma.StringNullableWithAggregatesFilter & {
|
||||
equals?: S | null;
|
||||
in?: S[] | null;
|
||||
notIn?: S[] | null;
|
||||
not?: TypedNestedStringNullableWithAggregatesFilter<S> | S | null;
|
||||
};
|
||||
|
||||
/**
|
||||
* A typed version of StringFieldUpdateOperationsInput, allowing narrowing of string types
|
||||
* to discriminated unions.
|
||||
*/
|
||||
export type TypedStringFieldUpdateOperationsInput<S extends string> =
|
||||
//@ts-ignore - When Prisma.StringFieldUpdateOperationsInput is not present, this type is not used
|
||||
Prisma.StringFieldUpdateOperationsInput & {
|
||||
set?: S;
|
||||
};
|
||||
|
||||
/**
|
||||
* A typed version of NullableStringFieldUpdateOperationsInput, allowing narrowing of
|
||||
* string types to discriminated unions.
|
||||
*/
|
||||
export type TypedNullableStringFieldUpdateOperationsInput<S extends string> =
|
||||
//@ts-ignore - When Prisma.NullableStringFieldUpdateOperationsInput is not present, this type is not used
|
||||
Prisma.NullableStringFieldUpdateOperationsInput & {
|
||||
set?: S | null;
|
||||
};
|
||||
|
||||
/**
|
||||
* A typed version of StringNullableListFilter, allowing narrowing of string types to
|
||||
* discriminated unions.
|
||||
*/
|
||||
export type TypedStringNullableListFilter<S extends string> =
|
||||
//@ts-ignore - When Prisma.StringNullableListFilter is not present, this type is not used
|
||||
Prisma.StringNullableListFilter & {
|
||||
equals?: S[] | null;
|
||||
has?: S | null;
|
||||
hasEvery?: S[];
|
||||
hasSome?: S[];
|
||||
};
|
||||
|
||||
/**
|
||||
* A typed version of the input type to update a string[] field, allowing narrowing of
|
||||
* string types to discriminated unions.
|
||||
*/
|
||||
export type UpdateStringArrayInput<S extends string> = {
|
||||
set?: S[];
|
||||
push?: S | S[];
|
||||
};
|
||||
|
||||
/**
|
||||
* A typed version of the input type to create a string[] field, allowing narrowing of
|
||||
* string types to discriminated unions.
|
||||
*/
|
||||
export type CreateStringArrayInput<S extends string> = {
|
||||
set?: S[];
|
||||
};
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user