feat(db): add custom migration to backfill totalFrames and startTimecode

This commit is contained in:
yiling
2026-06-29 11:27:32 +08:00
parent bb65c5a0d3
commit 95f91cd4de
48 changed files with 12450 additions and 26333 deletions
@@ -395,6 +395,8 @@ describe('NotificationService', () => {
duration: 10, duration: 10,
bitRate: 1000, bitRate: 1000,
frameRate: 24, frameRate: 24,
totalFrames: 240,
startTimecode: '00:00:00:00',
hasAudio: false, hasAudio: false,
format: {}, format: {},
}, },
@@ -0,0 +1,13 @@
-- Update assets where media->'metadata' is not null, but 'totalFrames' or 'startTimecode' is missing
UPDATE "assets"
SET "media" = jsonb_set(
"media",
'{metadata}',
coalesce("media"->'metadata', '{}'::jsonb) || jsonb_build_object(
'totalFrames', ROUND(COALESCE(("media"->'metadata'->>'duration')::numeric, ("media"->>'duration')::numeric, 0) * COALESCE(("media"->'metadata'->>'frameRate')::numeric, 30)),
'startTimecode', COALESCE("media"->'metadata'->>'startTimecode', '00:00:00:00')
)
)
WHERE "media" IS NOT NULL
AND "media"->'metadata' IS NOT NULL
AND ("media"->'metadata'->'totalFrames' IS NULL OR "media"->'metadata'->'startTimecode' IS NULL);
+38 -37
View File
@@ -1,11 +1,12 @@
/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */ /* eslint-disable */
// biome-ignore-all lint: generated file // biome-ignore-all lint: generated file
// @ts-nocheck // @ts-nocheck
/* /*
* This file should be your main import to use Prisma-related types and utilities in a browser. * 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. * 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. * 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. * See `client.ts` for the standard, server-side entry point.
* *
@@ -15,169 +16,169 @@
import * as Prisma from './internal/prismaNamespaceBrowser.ts' import * as Prisma from './internal/prismaNamespaceBrowser.ts'
export { Prisma } export { Prisma }
export * as $Enums from './enums.ts' export * as $Enums from './enums.ts'
export * from './enums.ts' export * from './enums.ts';
/** /**
* Model User * Model User
* *
*/ */
export type User = Prisma.UserModel export type User = Prisma.UserModel
/** /**
* Model Session * Model Session
* *
*/ */
export type Session = Prisma.SessionModel export type Session = Prisma.SessionModel
/** /**
* Model Account * Model Account
* *
*/ */
export type Account = Prisma.AccountModel export type Account = Prisma.AccountModel
/** /**
* Model Verification * Model Verification
* *
*/ */
export type Verification = Prisma.VerificationModel export type Verification = Prisma.VerificationModel
/** /**
* Model AuthToken * Model AuthToken
* *
*/ */
export type AuthToken = Prisma.AuthTokenModel export type AuthToken = Prisma.AuthTokenModel
/** /**
* Model Team * Model Team
* *
*/ */
export type Team = Prisma.TeamModel export type Team = Prisma.TeamModel
/** /**
* Model Sandbox * Model Sandbox
* *
*/ */
export type Sandbox = Prisma.SandboxModel export type Sandbox = Prisma.SandboxModel
/** /**
* Model Skill * Model Skill
* *
*/ */
export type Skill = Prisma.SkillModel export type Skill = Prisma.SkillModel
/** /**
* Model TeamMember * Model TeamMember
* *
*/ */
export type TeamMember = Prisma.TeamMemberModel export type TeamMember = Prisma.TeamMemberModel
/** /**
* Model Project * Model Project
* *
*/ */
export type Project = Prisma.ProjectModel export type Project = Prisma.ProjectModel
/** /**
* Model ProjectMember * Model ProjectMember
* *
*/ */
export type ProjectMember = Prisma.ProjectMemberModel export type ProjectMember = Prisma.ProjectMemberModel
/** /**
* Model ShareLink * Model ShareLink
* *
*/ */
export type ShareLink = Prisma.ShareLinkModel export type ShareLink = Prisma.ShareLinkModel
/** /**
* Model Asset * Model Asset
* *
*/ */
export type Asset = Prisma.AssetModel export type Asset = Prisma.AssetModel
/** /**
* Model StorageKey * Model StorageKey
* *
*/ */
export type StorageKey = Prisma.StorageKeyModel export type StorageKey = Prisma.StorageKeyModel
/** /**
* Model AssetMetadataValue * Model AssetMetadataValue
* *
*/ */
export type AssetMetadataValue = Prisma.AssetMetadataValueModel export type AssetMetadataValue = Prisma.AssetMetadataValueModel
/** /**
* Model AssetComment * Model AssetComment
* *
*/ */
export type AssetComment = Prisma.AssetCommentModel export type AssetComment = Prisma.AssetCommentModel
/** /**
* Model AssetCommentAttachment * Model AssetCommentAttachment
* *
*/ */
export type AssetCommentAttachment = Prisma.AssetCommentAttachmentModel export type AssetCommentAttachment = Prisma.AssetCommentAttachmentModel
/** /**
* Model AssetEmbedding * Model AssetEmbedding
* *
*/ */
export type AssetEmbedding = Prisma.AssetEmbeddingModel export type AssetEmbedding = Prisma.AssetEmbeddingModel
/** /**
* Model Invite * Model Invite
* *
*/ */
export type Invite = Prisma.InviteModel export type Invite = Prisma.InviteModel
/** /**
* Model MetadataField * Model MetadataField
* *
*/ */
export type MetadataField = Prisma.MetadataFieldModel export type MetadataField = Prisma.MetadataFieldModel
/** /**
* Model Notification * Model Notification
* *
*/ */
export type Notification = Prisma.NotificationModel export type Notification = Prisma.NotificationModel
/** /**
* Model SystemSettings * Model SystemSettings
* *
*/ */
export type SystemSettings = Prisma.SystemSettingsModel export type SystemSettings = Prisma.SystemSettingsModel
/** /**
* Model Task * Model Task
* *
*/ */
export type Task = Prisma.TaskModel export type Task = Prisma.TaskModel
/** /**
* Model WorkflowTask * Model WorkflowTask
* *
*/ */
export type WorkflowTask = Prisma.WorkflowTaskModel export type WorkflowTask = Prisma.WorkflowTaskModel
/** /**
* Model Agent * Model Agent
* *
*/ */
export type Agent = Prisma.AgentModel export type Agent = Prisma.AgentModel
/** /**
* Model AgentSkill * Model AgentSkill
* *
*/ */
export type AgentSkill = Prisma.AgentSkillModel export type AgentSkill = Prisma.AgentSkillModel
/** /**
* Model AgentSession * Model AgentSession
* *
*/ */
export type AgentSession = Prisma.AgentSessionModel export type AgentSession = Prisma.AgentSessionModel
/** /**
* Model AgentSessionEntry * Model AgentSessionEntry
* *
*/ */
export type AgentSessionEntry = Prisma.AgentSessionEntryModel export type AgentSessionEntry = Prisma.AgentSessionEntryModel
/** /**
* Model UserMetadata * Model UserMetadata
* *
*/ */
export type UserMetadata = Prisma.UserMetadataModel export type UserMetadata = Prisma.UserMetadataModel
/** /**
* Model Model * Model Model
* *
*/ */
export type Model = Prisma.ModelModel export type Model = Prisma.ModelModel
/** /**
* Model Provider * Model Provider
* *
*/ */
export type Provider = Prisma.ProviderModel export type Provider = Prisma.ProviderModel
/** /**
* Model Collection * Model Collection
* *
*/ */
export type Collection = Prisma.CollectionModel export type Collection = Prisma.CollectionModel
/** /**
* Model ApiToken * Model ApiToken
* *
*/ */
export type ApiToken = Prisma.ApiTokenModel export type ApiToken = Prisma.ApiTokenModel
+43 -46
View File
@@ -1,7 +1,8 @@
/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */ /* eslint-disable */
// biome-ignore-all lint: generated file // biome-ignore-all lint: generated file
// @ts-nocheck // @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. * 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. * If you're looking for something you can import in the client-side of your application, please refer to the `browser.ts` file instead.
@@ -14,16 +15,16 @@ import * as path from 'node:path'
import { fileURLToPath } from 'node:url' import { fileURLToPath } from 'node:url'
globalThis['__dirname'] = path.dirname(fileURLToPath(import.meta.url)) globalThis['__dirname'] = path.dirname(fileURLToPath(import.meta.url))
import * as runtime from '@prisma/client/runtime/client' import * as runtime from "@prisma/client/runtime/client"
import * as $Enums from './enums.ts' import * as $Enums from "./enums.ts"
import * as $Class from './internal/class.ts' import * as $Class from "./internal/class.ts"
import * as Prisma from './internal/prismaNamespace.ts' import * as Prisma from "./internal/prismaNamespace.ts"
export * as $Enums from './enums.ts' export * as $Enums from './enums.ts'
export * from './enums.ts' export * from "./enums.ts"
/** /**
* ## Prisma Client * ## Prisma Client
* *
* Type-safe database client for TypeScript * Type-safe database client for TypeScript
* @example * @example
* ``` * ```
@@ -33,179 +34,175 @@ export * from './enums.ts'
* // Fetch zero or more Users * // Fetch zero or more Users
* const users = await prisma.user.findMany() * const users = await prisma.user.findMany()
* ``` * ```
* *
* Read more in our [docs](https://pris.ly/d/client). * Read more in our [docs](https://pris.ly/d/client).
*/ */
export const PrismaClient = $Class.getPrismaClientClass() export const PrismaClient = $Class.getPrismaClientClass()
export type PrismaClient< 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>
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 } export { Prisma }
/** /**
* Model User * Model User
* *
*/ */
export type User = Prisma.UserModel export type User = Prisma.UserModel
/** /**
* Model Session * Model Session
* *
*/ */
export type Session = Prisma.SessionModel export type Session = Prisma.SessionModel
/** /**
* Model Account * Model Account
* *
*/ */
export type Account = Prisma.AccountModel export type Account = Prisma.AccountModel
/** /**
* Model Verification * Model Verification
* *
*/ */
export type Verification = Prisma.VerificationModel export type Verification = Prisma.VerificationModel
/** /**
* Model AuthToken * Model AuthToken
* *
*/ */
export type AuthToken = Prisma.AuthTokenModel export type AuthToken = Prisma.AuthTokenModel
/** /**
* Model Team * Model Team
* *
*/ */
export type Team = Prisma.TeamModel export type Team = Prisma.TeamModel
/** /**
* Model Sandbox * Model Sandbox
* *
*/ */
export type Sandbox = Prisma.SandboxModel export type Sandbox = Prisma.SandboxModel
/** /**
* Model Skill * Model Skill
* *
*/ */
export type Skill = Prisma.SkillModel export type Skill = Prisma.SkillModel
/** /**
* Model TeamMember * Model TeamMember
* *
*/ */
export type TeamMember = Prisma.TeamMemberModel export type TeamMember = Prisma.TeamMemberModel
/** /**
* Model Project * Model Project
* *
*/ */
export type Project = Prisma.ProjectModel export type Project = Prisma.ProjectModel
/** /**
* Model ProjectMember * Model ProjectMember
* *
*/ */
export type ProjectMember = Prisma.ProjectMemberModel export type ProjectMember = Prisma.ProjectMemberModel
/** /**
* Model ShareLink * Model ShareLink
* *
*/ */
export type ShareLink = Prisma.ShareLinkModel export type ShareLink = Prisma.ShareLinkModel
/** /**
* Model Asset * Model Asset
* *
*/ */
export type Asset = Prisma.AssetModel export type Asset = Prisma.AssetModel
/** /**
* Model StorageKey * Model StorageKey
* *
*/ */
export type StorageKey = Prisma.StorageKeyModel export type StorageKey = Prisma.StorageKeyModel
/** /**
* Model AssetMetadataValue * Model AssetMetadataValue
* *
*/ */
export type AssetMetadataValue = Prisma.AssetMetadataValueModel export type AssetMetadataValue = Prisma.AssetMetadataValueModel
/** /**
* Model AssetComment * Model AssetComment
* *
*/ */
export type AssetComment = Prisma.AssetCommentModel export type AssetComment = Prisma.AssetCommentModel
/** /**
* Model AssetCommentAttachment * Model AssetCommentAttachment
* *
*/ */
export type AssetCommentAttachment = Prisma.AssetCommentAttachmentModel export type AssetCommentAttachment = Prisma.AssetCommentAttachmentModel
/** /**
* Model AssetEmbedding * Model AssetEmbedding
* *
*/ */
export type AssetEmbedding = Prisma.AssetEmbeddingModel export type AssetEmbedding = Prisma.AssetEmbeddingModel
/** /**
* Model Invite * Model Invite
* *
*/ */
export type Invite = Prisma.InviteModel export type Invite = Prisma.InviteModel
/** /**
* Model MetadataField * Model MetadataField
* *
*/ */
export type MetadataField = Prisma.MetadataFieldModel export type MetadataField = Prisma.MetadataFieldModel
/** /**
* Model Notification * Model Notification
* *
*/ */
export type Notification = Prisma.NotificationModel export type Notification = Prisma.NotificationModel
/** /**
* Model SystemSettings * Model SystemSettings
* *
*/ */
export type SystemSettings = Prisma.SystemSettingsModel export type SystemSettings = Prisma.SystemSettingsModel
/** /**
* Model Task * Model Task
* *
*/ */
export type Task = Prisma.TaskModel export type Task = Prisma.TaskModel
/** /**
* Model WorkflowTask * Model WorkflowTask
* *
*/ */
export type WorkflowTask = Prisma.WorkflowTaskModel export type WorkflowTask = Prisma.WorkflowTaskModel
/** /**
* Model Agent * Model Agent
* *
*/ */
export type Agent = Prisma.AgentModel export type Agent = Prisma.AgentModel
/** /**
* Model AgentSkill * Model AgentSkill
* *
*/ */
export type AgentSkill = Prisma.AgentSkillModel export type AgentSkill = Prisma.AgentSkillModel
/** /**
* Model AgentSession * Model AgentSession
* *
*/ */
export type AgentSession = Prisma.AgentSessionModel export type AgentSession = Prisma.AgentSessionModel
/** /**
* Model AgentSessionEntry * Model AgentSessionEntry
* *
*/ */
export type AgentSessionEntry = Prisma.AgentSessionEntryModel export type AgentSessionEntry = Prisma.AgentSessionEntryModel
/** /**
* Model UserMetadata * Model UserMetadata
* *
*/ */
export type UserMetadata = Prisma.UserMetadataModel export type UserMetadata = Prisma.UserMetadataModel
/** /**
* Model Model * Model Model
* *
*/ */
export type Model = Prisma.ModelModel export type Model = Prisma.ModelModel
/** /**
* Model Provider * Model Provider
* *
*/ */
export type Provider = Prisma.ProviderModel export type Provider = Prisma.ProviderModel
/** /**
* Model Collection * Model Collection
* *
*/ */
export type Collection = Prisma.CollectionModel export type Collection = Prisma.CollectionModel
/** /**
* Model ApiToken * Model ApiToken
* *
*/ */
export type ApiToken = Prisma.ApiTokenModel export type ApiToken = Prisma.ApiTokenModel
+98 -288
View File
@@ -1,16 +1,18 @@
/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */ /* eslint-disable */
// biome-ignore-all lint: generated file // biome-ignore-all lint: generated file
// @ts-nocheck // @ts-nocheck
/* /*
* This file exports various common sort, input & filter types that are not directly linked to a particular model. * This file exports various common sort, input & filter types that are not directly linked to a particular model.
* *
* 🟢 You can import this file directly. * 🟢 You can import this file directly.
*/ */
import type * as runtime from '@prisma/client/runtime/client' import type * as runtime from "@prisma/client/runtime/client"
import * as $Enums from './enums.ts' import * as $Enums from "./enums.ts"
import type * as Prisma from './internal/prismaNamespace.ts' import type * as Prisma from "./internal/prismaNamespace.ts"
export type StringFilter<$PrismaModel = never> = { export type StringFilter<$PrismaModel = never> = {
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
@@ -55,20 +57,14 @@ export type StringNullableFilter<$PrismaModel = never> = {
} }
export type JsonNullableFilter<$PrismaModel = never> = export type JsonNullableFilter<$PrismaModel = never> =
| Prisma.PatchUndefined< | Prisma.PatchUndefined<
Prisma.Either< Prisma.Either<Required<JsonNullableFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonNullableFilterBase<$PrismaModel>>, 'path'>>,
Required<JsonNullableFilterBase<$PrismaModel>>, Required<JsonNullableFilterBase<$PrismaModel>>
Exclude<keyof Required<JsonNullableFilterBase<$PrismaModel>>, 'path'> >
>, | Prisma.OptionalFlat<Omit<Required<JsonNullableFilterBase<$PrismaModel>>, 'path'>>
Required<JsonNullableFilterBase<$PrismaModel>>
>
| Prisma.OptionalFlat<Omit<Required<JsonNullableFilterBase<$PrismaModel>>, 'path'>>
export type JsonNullableFilterBase<$PrismaModel = never> = { export type JsonNullableFilterBase<$PrismaModel = never> = {
equals?: equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
| runtime.InputJsonValue
| Prisma.JsonFieldRefInput<$PrismaModel>
| Prisma.JsonNullValueFilter
path?: string[] path?: string[]
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel> mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel> string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
@@ -155,20 +151,14 @@ export type StringNullableWithAggregatesFilter<$PrismaModel = never> = {
} }
export type JsonNullableWithAggregatesFilter<$PrismaModel = never> = export type JsonNullableWithAggregatesFilter<$PrismaModel = never> =
| Prisma.PatchUndefined< | Prisma.PatchUndefined<
Prisma.Either< Prisma.Either<Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, 'path'>>,
Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>
Exclude<keyof Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, 'path'> >
>, | Prisma.OptionalFlat<Omit<Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, 'path'>>
Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>
>
| Prisma.OptionalFlat<Omit<Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, 'path'>>
export type JsonNullableWithAggregatesFilterBase<$PrismaModel = never> = { export type JsonNullableWithAggregatesFilterBase<$PrismaModel = never> = {
equals?: equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
| runtime.InputJsonValue
| Prisma.JsonFieldRefInput<$PrismaModel>
| Prisma.JsonNullValueFilter
path?: string[] path?: string[]
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel> mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel> string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
@@ -271,9 +261,7 @@ export type EnumProjectMemberRoleWithAggregatesFilter<$PrismaModel = never> = {
equals?: $Enums.ProjectMemberRole | Prisma.EnumProjectMemberRoleFieldRefInput<$PrismaModel> equals?: $Enums.ProjectMemberRole | Prisma.EnumProjectMemberRoleFieldRefInput<$PrismaModel>
in?: $Enums.ProjectMemberRole[] | Prisma.ListEnumProjectMemberRoleFieldRefInput<$PrismaModel> in?: $Enums.ProjectMemberRole[] | Prisma.ListEnumProjectMemberRoleFieldRefInput<$PrismaModel>
notIn?: $Enums.ProjectMemberRole[] | Prisma.ListEnumProjectMemberRoleFieldRefInput<$PrismaModel> notIn?: $Enums.ProjectMemberRole[] | Prisma.ListEnumProjectMemberRoleFieldRefInput<$PrismaModel>
not?: not?: Prisma.NestedEnumProjectMemberRoleWithAggregatesFilter<$PrismaModel> | $Enums.ProjectMemberRole
| Prisma.NestedEnumProjectMemberRoleWithAggregatesFilter<$PrismaModel>
| $Enums.ProjectMemberRole
_count?: Prisma.NestedIntFilter<$PrismaModel> _count?: Prisma.NestedIntFilter<$PrismaModel>
_min?: Prisma.NestedEnumProjectMemberRoleFilter<$PrismaModel> _min?: Prisma.NestedEnumProjectMemberRoleFilter<$PrismaModel>
_max?: Prisma.NestedEnumProjectMemberRoleFilter<$PrismaModel> _max?: Prisma.NestedEnumProjectMemberRoleFilter<$PrismaModel>
@@ -351,9 +339,7 @@ export type EnumStorageKeyStatusWithAggregatesFilter<$PrismaModel = never> = {
equals?: $Enums.StorageKeyStatus | Prisma.EnumStorageKeyStatusFieldRefInput<$PrismaModel> equals?: $Enums.StorageKeyStatus | Prisma.EnumStorageKeyStatusFieldRefInput<$PrismaModel>
in?: $Enums.StorageKeyStatus[] | Prisma.ListEnumStorageKeyStatusFieldRefInput<$PrismaModel> in?: $Enums.StorageKeyStatus[] | Prisma.ListEnumStorageKeyStatusFieldRefInput<$PrismaModel>
notIn?: $Enums.StorageKeyStatus[] | Prisma.ListEnumStorageKeyStatusFieldRefInput<$PrismaModel> notIn?: $Enums.StorageKeyStatus[] | Prisma.ListEnumStorageKeyStatusFieldRefInput<$PrismaModel>
not?: not?: Prisma.NestedEnumStorageKeyStatusWithAggregatesFilter<$PrismaModel> | $Enums.StorageKeyStatus
| Prisma.NestedEnumStorageKeyStatusWithAggregatesFilter<$PrismaModel>
| $Enums.StorageKeyStatus
_count?: Prisma.NestedIntFilter<$PrismaModel> _count?: Prisma.NestedIntFilter<$PrismaModel>
_min?: Prisma.NestedEnumStorageKeyStatusFilter<$PrismaModel> _min?: Prisma.NestedEnumStorageKeyStatusFilter<$PrismaModel>
_max?: Prisma.NestedEnumStorageKeyStatusFilter<$PrismaModel> _max?: Prisma.NestedEnumStorageKeyStatusFilter<$PrismaModel>
@@ -410,51 +396,24 @@ export type EnumInviteRoleNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: $Enums.InviteRole | Prisma.EnumInviteRoleFieldRefInput<$PrismaModel> | null equals?: $Enums.InviteRole | Prisma.EnumInviteRoleFieldRefInput<$PrismaModel> | null
in?: $Enums.InviteRole[] | Prisma.ListEnumInviteRoleFieldRefInput<$PrismaModel> | null in?: $Enums.InviteRole[] | Prisma.ListEnumInviteRoleFieldRefInput<$PrismaModel> | null
notIn?: $Enums.InviteRole[] | Prisma.ListEnumInviteRoleFieldRefInput<$PrismaModel> | null notIn?: $Enums.InviteRole[] | Prisma.ListEnumInviteRoleFieldRefInput<$PrismaModel> | null
not?: not?: Prisma.NestedEnumInviteRoleNullableWithAggregatesFilter<$PrismaModel> | $Enums.InviteRole | null
| Prisma.NestedEnumInviteRoleNullableWithAggregatesFilter<$PrismaModel>
| $Enums.InviteRole
| null
_count?: Prisma.NestedIntNullableFilter<$PrismaModel> _count?: Prisma.NestedIntNullableFilter<$PrismaModel>
_min?: Prisma.NestedEnumInviteRoleNullableFilter<$PrismaModel> _min?: Prisma.NestedEnumInviteRoleNullableFilter<$PrismaModel>
_max?: Prisma.NestedEnumInviteRoleNullableFilter<$PrismaModel> _max?: Prisma.NestedEnumInviteRoleNullableFilter<$PrismaModel>
} }
export type EnumMetadataFieldScopeNullableFilter<$PrismaModel = never> = { export type EnumMetadataFieldScopeNullableFilter<$PrismaModel = never> = {
equals?: equals?: $Enums.MetadataFieldScope | Prisma.EnumMetadataFieldScopeFieldRefInput<$PrismaModel> | null
| $Enums.MetadataFieldScope in?: $Enums.MetadataFieldScope[] | Prisma.ListEnumMetadataFieldScopeFieldRefInput<$PrismaModel> | null
| Prisma.EnumMetadataFieldScopeFieldRefInput<$PrismaModel> notIn?: $Enums.MetadataFieldScope[] | Prisma.ListEnumMetadataFieldScopeFieldRefInput<$PrismaModel> | null
| null not?: Prisma.NestedEnumMetadataFieldScopeNullableFilter<$PrismaModel> | $Enums.MetadataFieldScope | null
in?:
| $Enums.MetadataFieldScope[]
| Prisma.ListEnumMetadataFieldScopeFieldRefInput<$PrismaModel>
| null
notIn?:
| $Enums.MetadataFieldScope[]
| Prisma.ListEnumMetadataFieldScopeFieldRefInput<$PrismaModel>
| null
not?:
| Prisma.NestedEnumMetadataFieldScopeNullableFilter<$PrismaModel>
| $Enums.MetadataFieldScope
| null
} }
export type EnumMetadataFieldScopeNullableWithAggregatesFilter<$PrismaModel = never> = { export type EnumMetadataFieldScopeNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: equals?: $Enums.MetadataFieldScope | Prisma.EnumMetadataFieldScopeFieldRefInput<$PrismaModel> | null
| $Enums.MetadataFieldScope in?: $Enums.MetadataFieldScope[] | Prisma.ListEnumMetadataFieldScopeFieldRefInput<$PrismaModel> | null
| Prisma.EnumMetadataFieldScopeFieldRefInput<$PrismaModel> notIn?: $Enums.MetadataFieldScope[] | Prisma.ListEnumMetadataFieldScopeFieldRefInput<$PrismaModel> | null
| null not?: Prisma.NestedEnumMetadataFieldScopeNullableWithAggregatesFilter<$PrismaModel> | $Enums.MetadataFieldScope | null
in?:
| $Enums.MetadataFieldScope[]
| Prisma.ListEnumMetadataFieldScopeFieldRefInput<$PrismaModel>
| null
notIn?:
| $Enums.MetadataFieldScope[]
| Prisma.ListEnumMetadataFieldScopeFieldRefInput<$PrismaModel>
| null
not?:
| Prisma.NestedEnumMetadataFieldScopeNullableWithAggregatesFilter<$PrismaModel>
| $Enums.MetadataFieldScope
| null
_count?: Prisma.NestedIntNullableFilter<$PrismaModel> _count?: Prisma.NestedIntNullableFilter<$PrismaModel>
_min?: Prisma.NestedEnumMetadataFieldScopeNullableFilter<$PrismaModel> _min?: Prisma.NestedEnumMetadataFieldScopeNullableFilter<$PrismaModel>
_max?: Prisma.NestedEnumMetadataFieldScopeNullableFilter<$PrismaModel> _max?: Prisma.NestedEnumMetadataFieldScopeNullableFilter<$PrismaModel>
@@ -463,27 +422,15 @@ export type EnumMetadataFieldScopeNullableWithAggregatesFilter<$PrismaModel = ne
export type EnumNotificationTypeNullableFilter<$PrismaModel = never> = { export type EnumNotificationTypeNullableFilter<$PrismaModel = never> = {
equals?: $Enums.NotificationType | Prisma.EnumNotificationTypeFieldRefInput<$PrismaModel> | null equals?: $Enums.NotificationType | Prisma.EnumNotificationTypeFieldRefInput<$PrismaModel> | null
in?: $Enums.NotificationType[] | Prisma.ListEnumNotificationTypeFieldRefInput<$PrismaModel> | null in?: $Enums.NotificationType[] | Prisma.ListEnumNotificationTypeFieldRefInput<$PrismaModel> | null
notIn?: notIn?: $Enums.NotificationType[] | Prisma.ListEnumNotificationTypeFieldRefInput<$PrismaModel> | null
| $Enums.NotificationType[] not?: Prisma.NestedEnumNotificationTypeNullableFilter<$PrismaModel> | $Enums.NotificationType | null
| Prisma.ListEnumNotificationTypeFieldRefInput<$PrismaModel>
| null
not?:
| Prisma.NestedEnumNotificationTypeNullableFilter<$PrismaModel>
| $Enums.NotificationType
| null
} }
export type EnumNotificationTypeNullableWithAggregatesFilter<$PrismaModel = never> = { export type EnumNotificationTypeNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: $Enums.NotificationType | Prisma.EnumNotificationTypeFieldRefInput<$PrismaModel> | null equals?: $Enums.NotificationType | Prisma.EnumNotificationTypeFieldRefInput<$PrismaModel> | null
in?: $Enums.NotificationType[] | Prisma.ListEnumNotificationTypeFieldRefInput<$PrismaModel> | null in?: $Enums.NotificationType[] | Prisma.ListEnumNotificationTypeFieldRefInput<$PrismaModel> | null
notIn?: notIn?: $Enums.NotificationType[] | Prisma.ListEnumNotificationTypeFieldRefInput<$PrismaModel> | null
| $Enums.NotificationType[] not?: Prisma.NestedEnumNotificationTypeNullableWithAggregatesFilter<$PrismaModel> | $Enums.NotificationType | null
| Prisma.ListEnumNotificationTypeFieldRefInput<$PrismaModel>
| null
not?:
| Prisma.NestedEnumNotificationTypeNullableWithAggregatesFilter<$PrismaModel>
| $Enums.NotificationType
| null
_count?: Prisma.NestedIntNullableFilter<$PrismaModel> _count?: Prisma.NestedIntNullableFilter<$PrismaModel>
_min?: Prisma.NestedEnumNotificationTypeNullableFilter<$PrismaModel> _min?: Prisma.NestedEnumNotificationTypeNullableFilter<$PrismaModel>
_max?: Prisma.NestedEnumNotificationTypeNullableFilter<$PrismaModel> _max?: Prisma.NestedEnumNotificationTypeNullableFilter<$PrismaModel>
@@ -565,33 +512,15 @@ export type UuidFilter<$PrismaModel = never> = {
export type EnumWorkflowTaskTypeNullableFilter<$PrismaModel = never> = { export type EnumWorkflowTaskTypeNullableFilter<$PrismaModel = never> = {
equals?: $Enums.WorkflowTaskType | Prisma.EnumWorkflowTaskTypeFieldRefInput<$PrismaModel> | null equals?: $Enums.WorkflowTaskType | Prisma.EnumWorkflowTaskTypeFieldRefInput<$PrismaModel> | null
in?: $Enums.WorkflowTaskType[] | Prisma.ListEnumWorkflowTaskTypeFieldRefInput<$PrismaModel> | null in?: $Enums.WorkflowTaskType[] | Prisma.ListEnumWorkflowTaskTypeFieldRefInput<$PrismaModel> | null
notIn?: notIn?: $Enums.WorkflowTaskType[] | Prisma.ListEnumWorkflowTaskTypeFieldRefInput<$PrismaModel> | null
| $Enums.WorkflowTaskType[] not?: Prisma.NestedEnumWorkflowTaskTypeNullableFilter<$PrismaModel> | $Enums.WorkflowTaskType | null
| Prisma.ListEnumWorkflowTaskTypeFieldRefInput<$PrismaModel>
| null
not?:
| Prisma.NestedEnumWorkflowTaskTypeNullableFilter<$PrismaModel>
| $Enums.WorkflowTaskType
| null
} }
export type EnumWorkflowTaskStatusNullableFilter<$PrismaModel = never> = { export type EnumWorkflowTaskStatusNullableFilter<$PrismaModel = never> = {
equals?: equals?: $Enums.WorkflowTaskStatus | Prisma.EnumWorkflowTaskStatusFieldRefInput<$PrismaModel> | null
| $Enums.WorkflowTaskStatus in?: $Enums.WorkflowTaskStatus[] | Prisma.ListEnumWorkflowTaskStatusFieldRefInput<$PrismaModel> | null
| Prisma.EnumWorkflowTaskStatusFieldRefInput<$PrismaModel> notIn?: $Enums.WorkflowTaskStatus[] | Prisma.ListEnumWorkflowTaskStatusFieldRefInput<$PrismaModel> | null
| null not?: Prisma.NestedEnumWorkflowTaskStatusNullableFilter<$PrismaModel> | $Enums.WorkflowTaskStatus | null
in?:
| $Enums.WorkflowTaskStatus[]
| Prisma.ListEnumWorkflowTaskStatusFieldRefInput<$PrismaModel>
| null
notIn?:
| $Enums.WorkflowTaskStatus[]
| Prisma.ListEnumWorkflowTaskStatusFieldRefInput<$PrismaModel>
| null
not?:
| Prisma.NestedEnumWorkflowTaskStatusNullableFilter<$PrismaModel>
| $Enums.WorkflowTaskStatus
| null
} }
export type UuidWithAggregatesFilter<$PrismaModel = never> = { export type UuidWithAggregatesFilter<$PrismaModel = never> = {
@@ -612,36 +541,18 @@ export type UuidWithAggregatesFilter<$PrismaModel = never> = {
export type EnumWorkflowTaskTypeNullableWithAggregatesFilter<$PrismaModel = never> = { export type EnumWorkflowTaskTypeNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: $Enums.WorkflowTaskType | Prisma.EnumWorkflowTaskTypeFieldRefInput<$PrismaModel> | null equals?: $Enums.WorkflowTaskType | Prisma.EnumWorkflowTaskTypeFieldRefInput<$PrismaModel> | null
in?: $Enums.WorkflowTaskType[] | Prisma.ListEnumWorkflowTaskTypeFieldRefInput<$PrismaModel> | null in?: $Enums.WorkflowTaskType[] | Prisma.ListEnumWorkflowTaskTypeFieldRefInput<$PrismaModel> | null
notIn?: notIn?: $Enums.WorkflowTaskType[] | Prisma.ListEnumWorkflowTaskTypeFieldRefInput<$PrismaModel> | null
| $Enums.WorkflowTaskType[] not?: Prisma.NestedEnumWorkflowTaskTypeNullableWithAggregatesFilter<$PrismaModel> | $Enums.WorkflowTaskType | null
| Prisma.ListEnumWorkflowTaskTypeFieldRefInput<$PrismaModel>
| null
not?:
| Prisma.NestedEnumWorkflowTaskTypeNullableWithAggregatesFilter<$PrismaModel>
| $Enums.WorkflowTaskType
| null
_count?: Prisma.NestedIntNullableFilter<$PrismaModel> _count?: Prisma.NestedIntNullableFilter<$PrismaModel>
_min?: Prisma.NestedEnumWorkflowTaskTypeNullableFilter<$PrismaModel> _min?: Prisma.NestedEnumWorkflowTaskTypeNullableFilter<$PrismaModel>
_max?: Prisma.NestedEnumWorkflowTaskTypeNullableFilter<$PrismaModel> _max?: Prisma.NestedEnumWorkflowTaskTypeNullableFilter<$PrismaModel>
} }
export type EnumWorkflowTaskStatusNullableWithAggregatesFilter<$PrismaModel = never> = { export type EnumWorkflowTaskStatusNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: equals?: $Enums.WorkflowTaskStatus | Prisma.EnumWorkflowTaskStatusFieldRefInput<$PrismaModel> | null
| $Enums.WorkflowTaskStatus in?: $Enums.WorkflowTaskStatus[] | Prisma.ListEnumWorkflowTaskStatusFieldRefInput<$PrismaModel> | null
| Prisma.EnumWorkflowTaskStatusFieldRefInput<$PrismaModel> notIn?: $Enums.WorkflowTaskStatus[] | Prisma.ListEnumWorkflowTaskStatusFieldRefInput<$PrismaModel> | null
| null not?: Prisma.NestedEnumWorkflowTaskStatusNullableWithAggregatesFilter<$PrismaModel> | $Enums.WorkflowTaskStatus | null
in?:
| $Enums.WorkflowTaskStatus[]
| Prisma.ListEnumWorkflowTaskStatusFieldRefInput<$PrismaModel>
| null
notIn?:
| $Enums.WorkflowTaskStatus[]
| Prisma.ListEnumWorkflowTaskStatusFieldRefInput<$PrismaModel>
| null
not?:
| Prisma.NestedEnumWorkflowTaskStatusNullableWithAggregatesFilter<$PrismaModel>
| $Enums.WorkflowTaskStatus
| null
_count?: Prisma.NestedIntNullableFilter<$PrismaModel> _count?: Prisma.NestedIntNullableFilter<$PrismaModel>
_min?: Prisma.NestedEnumWorkflowTaskStatusNullableFilter<$PrismaModel> _min?: Prisma.NestedEnumWorkflowTaskStatusNullableFilter<$PrismaModel>
_max?: Prisma.NestedEnumWorkflowTaskStatusNullableFilter<$PrismaModel> _max?: Prisma.NestedEnumWorkflowTaskStatusNullableFilter<$PrismaModel>
@@ -655,20 +566,14 @@ export type EnumAgentTypeFilter<$PrismaModel = never> = {
} }
export type JsonFilter<$PrismaModel = never> = export type JsonFilter<$PrismaModel = never> =
| Prisma.PatchUndefined< | Prisma.PatchUndefined<
Prisma.Either< Prisma.Either<Required<JsonFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonFilterBase<$PrismaModel>>, 'path'>>,
Required<JsonFilterBase<$PrismaModel>>, Required<JsonFilterBase<$PrismaModel>>
Exclude<keyof Required<JsonFilterBase<$PrismaModel>>, 'path'> >
>, | Prisma.OptionalFlat<Omit<Required<JsonFilterBase<$PrismaModel>>, 'path'>>
Required<JsonFilterBase<$PrismaModel>>
>
| Prisma.OptionalFlat<Omit<Required<JsonFilterBase<$PrismaModel>>, 'path'>>
export type JsonFilterBase<$PrismaModel = never> = { export type JsonFilterBase<$PrismaModel = never> = {
equals?: equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
| runtime.InputJsonValue
| Prisma.JsonFieldRefInput<$PrismaModel>
| Prisma.JsonNullValueFilter
path?: string[] path?: string[]
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel> mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel> string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
@@ -695,20 +600,14 @@ export type EnumAgentTypeWithAggregatesFilter<$PrismaModel = never> = {
} }
export type JsonWithAggregatesFilter<$PrismaModel = never> = export type JsonWithAggregatesFilter<$PrismaModel = never> =
| Prisma.PatchUndefined< | Prisma.PatchUndefined<
Prisma.Either< Prisma.Either<Required<JsonWithAggregatesFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonWithAggregatesFilterBase<$PrismaModel>>, 'path'>>,
Required<JsonWithAggregatesFilterBase<$PrismaModel>>, Required<JsonWithAggregatesFilterBase<$PrismaModel>>
Exclude<keyof Required<JsonWithAggregatesFilterBase<$PrismaModel>>, 'path'> >
>, | Prisma.OptionalFlat<Omit<Required<JsonWithAggregatesFilterBase<$PrismaModel>>, 'path'>>
Required<JsonWithAggregatesFilterBase<$PrismaModel>>
>
| Prisma.OptionalFlat<Omit<Required<JsonWithAggregatesFilterBase<$PrismaModel>>, 'path'>>
export type JsonWithAggregatesFilterBase<$PrismaModel = never> = { export type JsonWithAggregatesFilterBase<$PrismaModel = never> = {
equals?: equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
| runtime.InputJsonValue
| Prisma.JsonFieldRefInput<$PrismaModel>
| Prisma.JsonNullValueFilter
path?: string[] path?: string[]
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel> mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel> string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
@@ -853,20 +752,14 @@ export type NestedIntNullableFilter<$PrismaModel = never> = {
} }
export type NestedJsonNullableFilter<$PrismaModel = never> = export type NestedJsonNullableFilter<$PrismaModel = never> =
| Prisma.PatchUndefined< | Prisma.PatchUndefined<
Prisma.Either< Prisma.Either<Required<NestedJsonNullableFilterBase<$PrismaModel>>, Exclude<keyof Required<NestedJsonNullableFilterBase<$PrismaModel>>, 'path'>>,
Required<NestedJsonNullableFilterBase<$PrismaModel>>, Required<NestedJsonNullableFilterBase<$PrismaModel>>
Exclude<keyof Required<NestedJsonNullableFilterBase<$PrismaModel>>, 'path'> >
>, | Prisma.OptionalFlat<Omit<Required<NestedJsonNullableFilterBase<$PrismaModel>>, 'path'>>
Required<NestedJsonNullableFilterBase<$PrismaModel>>
>
| Prisma.OptionalFlat<Omit<Required<NestedJsonNullableFilterBase<$PrismaModel>>, 'path'>>
export type NestedJsonNullableFilterBase<$PrismaModel = never> = { export type NestedJsonNullableFilterBase<$PrismaModel = never> = {
equals?: equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
| runtime.InputJsonValue
| Prisma.JsonFieldRefInput<$PrismaModel>
| Prisma.JsonNullValueFilter
path?: string[] path?: string[]
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel> mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel> string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
@@ -966,9 +859,7 @@ export type NestedEnumProjectMemberRoleWithAggregatesFilter<$PrismaModel = never
equals?: $Enums.ProjectMemberRole | Prisma.EnumProjectMemberRoleFieldRefInput<$PrismaModel> equals?: $Enums.ProjectMemberRole | Prisma.EnumProjectMemberRoleFieldRefInput<$PrismaModel>
in?: $Enums.ProjectMemberRole[] | Prisma.ListEnumProjectMemberRoleFieldRefInput<$PrismaModel> in?: $Enums.ProjectMemberRole[] | Prisma.ListEnumProjectMemberRoleFieldRefInput<$PrismaModel>
notIn?: $Enums.ProjectMemberRole[] | Prisma.ListEnumProjectMemberRoleFieldRefInput<$PrismaModel> notIn?: $Enums.ProjectMemberRole[] | Prisma.ListEnumProjectMemberRoleFieldRefInput<$PrismaModel>
not?: not?: Prisma.NestedEnumProjectMemberRoleWithAggregatesFilter<$PrismaModel> | $Enums.ProjectMemberRole
| Prisma.NestedEnumProjectMemberRoleWithAggregatesFilter<$PrismaModel>
| $Enums.ProjectMemberRole
_count?: Prisma.NestedIntFilter<$PrismaModel> _count?: Prisma.NestedIntFilter<$PrismaModel>
_min?: Prisma.NestedEnumProjectMemberRoleFilter<$PrismaModel> _min?: Prisma.NestedEnumProjectMemberRoleFilter<$PrismaModel>
_max?: Prisma.NestedEnumProjectMemberRoleFilter<$PrismaModel> _max?: Prisma.NestedEnumProjectMemberRoleFilter<$PrismaModel>
@@ -1046,9 +937,7 @@ export type NestedEnumStorageKeyStatusWithAggregatesFilter<$PrismaModel = never>
equals?: $Enums.StorageKeyStatus | Prisma.EnumStorageKeyStatusFieldRefInput<$PrismaModel> equals?: $Enums.StorageKeyStatus | Prisma.EnumStorageKeyStatusFieldRefInput<$PrismaModel>
in?: $Enums.StorageKeyStatus[] | Prisma.ListEnumStorageKeyStatusFieldRefInput<$PrismaModel> in?: $Enums.StorageKeyStatus[] | Prisma.ListEnumStorageKeyStatusFieldRefInput<$PrismaModel>
notIn?: $Enums.StorageKeyStatus[] | Prisma.ListEnumStorageKeyStatusFieldRefInput<$PrismaModel> notIn?: $Enums.StorageKeyStatus[] | Prisma.ListEnumStorageKeyStatusFieldRefInput<$PrismaModel>
not?: not?: Prisma.NestedEnumStorageKeyStatusWithAggregatesFilter<$PrismaModel> | $Enums.StorageKeyStatus
| Prisma.NestedEnumStorageKeyStatusWithAggregatesFilter<$PrismaModel>
| $Enums.StorageKeyStatus
_count?: Prisma.NestedIntFilter<$PrismaModel> _count?: Prisma.NestedIntFilter<$PrismaModel>
_min?: Prisma.NestedEnumStorageKeyStatusFilter<$PrismaModel> _min?: Prisma.NestedEnumStorageKeyStatusFilter<$PrismaModel>
_max?: Prisma.NestedEnumStorageKeyStatusFilter<$PrismaModel> _max?: Prisma.NestedEnumStorageKeyStatusFilter<$PrismaModel>
@@ -1105,51 +994,24 @@ export type NestedEnumInviteRoleNullableWithAggregatesFilter<$PrismaModel = neve
equals?: $Enums.InviteRole | Prisma.EnumInviteRoleFieldRefInput<$PrismaModel> | null equals?: $Enums.InviteRole | Prisma.EnumInviteRoleFieldRefInput<$PrismaModel> | null
in?: $Enums.InviteRole[] | Prisma.ListEnumInviteRoleFieldRefInput<$PrismaModel> | null in?: $Enums.InviteRole[] | Prisma.ListEnumInviteRoleFieldRefInput<$PrismaModel> | null
notIn?: $Enums.InviteRole[] | Prisma.ListEnumInviteRoleFieldRefInput<$PrismaModel> | null notIn?: $Enums.InviteRole[] | Prisma.ListEnumInviteRoleFieldRefInput<$PrismaModel> | null
not?: not?: Prisma.NestedEnumInviteRoleNullableWithAggregatesFilter<$PrismaModel> | $Enums.InviteRole | null
| Prisma.NestedEnumInviteRoleNullableWithAggregatesFilter<$PrismaModel>
| $Enums.InviteRole
| null
_count?: Prisma.NestedIntNullableFilter<$PrismaModel> _count?: Prisma.NestedIntNullableFilter<$PrismaModel>
_min?: Prisma.NestedEnumInviteRoleNullableFilter<$PrismaModel> _min?: Prisma.NestedEnumInviteRoleNullableFilter<$PrismaModel>
_max?: Prisma.NestedEnumInviteRoleNullableFilter<$PrismaModel> _max?: Prisma.NestedEnumInviteRoleNullableFilter<$PrismaModel>
} }
export type NestedEnumMetadataFieldScopeNullableFilter<$PrismaModel = never> = { export type NestedEnumMetadataFieldScopeNullableFilter<$PrismaModel = never> = {
equals?: equals?: $Enums.MetadataFieldScope | Prisma.EnumMetadataFieldScopeFieldRefInput<$PrismaModel> | null
| $Enums.MetadataFieldScope in?: $Enums.MetadataFieldScope[] | Prisma.ListEnumMetadataFieldScopeFieldRefInput<$PrismaModel> | null
| Prisma.EnumMetadataFieldScopeFieldRefInput<$PrismaModel> notIn?: $Enums.MetadataFieldScope[] | Prisma.ListEnumMetadataFieldScopeFieldRefInput<$PrismaModel> | null
| null not?: Prisma.NestedEnumMetadataFieldScopeNullableFilter<$PrismaModel> | $Enums.MetadataFieldScope | null
in?:
| $Enums.MetadataFieldScope[]
| Prisma.ListEnumMetadataFieldScopeFieldRefInput<$PrismaModel>
| null
notIn?:
| $Enums.MetadataFieldScope[]
| Prisma.ListEnumMetadataFieldScopeFieldRefInput<$PrismaModel>
| null
not?:
| Prisma.NestedEnumMetadataFieldScopeNullableFilter<$PrismaModel>
| $Enums.MetadataFieldScope
| null
} }
export type NestedEnumMetadataFieldScopeNullableWithAggregatesFilter<$PrismaModel = never> = { export type NestedEnumMetadataFieldScopeNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: equals?: $Enums.MetadataFieldScope | Prisma.EnumMetadataFieldScopeFieldRefInput<$PrismaModel> | null
| $Enums.MetadataFieldScope in?: $Enums.MetadataFieldScope[] | Prisma.ListEnumMetadataFieldScopeFieldRefInput<$PrismaModel> | null
| Prisma.EnumMetadataFieldScopeFieldRefInput<$PrismaModel> notIn?: $Enums.MetadataFieldScope[] | Prisma.ListEnumMetadataFieldScopeFieldRefInput<$PrismaModel> | null
| null not?: Prisma.NestedEnumMetadataFieldScopeNullableWithAggregatesFilter<$PrismaModel> | $Enums.MetadataFieldScope | null
in?:
| $Enums.MetadataFieldScope[]
| Prisma.ListEnumMetadataFieldScopeFieldRefInput<$PrismaModel>
| null
notIn?:
| $Enums.MetadataFieldScope[]
| Prisma.ListEnumMetadataFieldScopeFieldRefInput<$PrismaModel>
| null
not?:
| Prisma.NestedEnumMetadataFieldScopeNullableWithAggregatesFilter<$PrismaModel>
| $Enums.MetadataFieldScope
| null
_count?: Prisma.NestedIntNullableFilter<$PrismaModel> _count?: Prisma.NestedIntNullableFilter<$PrismaModel>
_min?: Prisma.NestedEnumMetadataFieldScopeNullableFilter<$PrismaModel> _min?: Prisma.NestedEnumMetadataFieldScopeNullableFilter<$PrismaModel>
_max?: Prisma.NestedEnumMetadataFieldScopeNullableFilter<$PrismaModel> _max?: Prisma.NestedEnumMetadataFieldScopeNullableFilter<$PrismaModel>
@@ -1158,27 +1020,15 @@ export type NestedEnumMetadataFieldScopeNullableWithAggregatesFilter<$PrismaMode
export type NestedEnumNotificationTypeNullableFilter<$PrismaModel = never> = { export type NestedEnumNotificationTypeNullableFilter<$PrismaModel = never> = {
equals?: $Enums.NotificationType | Prisma.EnumNotificationTypeFieldRefInput<$PrismaModel> | null equals?: $Enums.NotificationType | Prisma.EnumNotificationTypeFieldRefInput<$PrismaModel> | null
in?: $Enums.NotificationType[] | Prisma.ListEnumNotificationTypeFieldRefInput<$PrismaModel> | null in?: $Enums.NotificationType[] | Prisma.ListEnumNotificationTypeFieldRefInput<$PrismaModel> | null
notIn?: notIn?: $Enums.NotificationType[] | Prisma.ListEnumNotificationTypeFieldRefInput<$PrismaModel> | null
| $Enums.NotificationType[] not?: Prisma.NestedEnumNotificationTypeNullableFilter<$PrismaModel> | $Enums.NotificationType | null
| Prisma.ListEnumNotificationTypeFieldRefInput<$PrismaModel>
| null
not?:
| Prisma.NestedEnumNotificationTypeNullableFilter<$PrismaModel>
| $Enums.NotificationType
| null
} }
export type NestedEnumNotificationTypeNullableWithAggregatesFilter<$PrismaModel = never> = { export type NestedEnumNotificationTypeNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: $Enums.NotificationType | Prisma.EnumNotificationTypeFieldRefInput<$PrismaModel> | null equals?: $Enums.NotificationType | Prisma.EnumNotificationTypeFieldRefInput<$PrismaModel> | null
in?: $Enums.NotificationType[] | Prisma.ListEnumNotificationTypeFieldRefInput<$PrismaModel> | null in?: $Enums.NotificationType[] | Prisma.ListEnumNotificationTypeFieldRefInput<$PrismaModel> | null
notIn?: notIn?: $Enums.NotificationType[] | Prisma.ListEnumNotificationTypeFieldRefInput<$PrismaModel> | null
| $Enums.NotificationType[] not?: Prisma.NestedEnumNotificationTypeNullableWithAggregatesFilter<$PrismaModel> | $Enums.NotificationType | null
| Prisma.ListEnumNotificationTypeFieldRefInput<$PrismaModel>
| null
not?:
| Prisma.NestedEnumNotificationTypeNullableWithAggregatesFilter<$PrismaModel>
| $Enums.NotificationType
| null
_count?: Prisma.NestedIntNullableFilter<$PrismaModel> _count?: Prisma.NestedIntNullableFilter<$PrismaModel>
_min?: Prisma.NestedEnumNotificationTypeNullableFilter<$PrismaModel> _min?: Prisma.NestedEnumNotificationTypeNullableFilter<$PrismaModel>
_max?: Prisma.NestedEnumNotificationTypeNullableFilter<$PrismaModel> _max?: Prisma.NestedEnumNotificationTypeNullableFilter<$PrismaModel>
@@ -1248,33 +1098,15 @@ export type NestedUuidFilter<$PrismaModel = never> = {
export type NestedEnumWorkflowTaskTypeNullableFilter<$PrismaModel = never> = { export type NestedEnumWorkflowTaskTypeNullableFilter<$PrismaModel = never> = {
equals?: $Enums.WorkflowTaskType | Prisma.EnumWorkflowTaskTypeFieldRefInput<$PrismaModel> | null equals?: $Enums.WorkflowTaskType | Prisma.EnumWorkflowTaskTypeFieldRefInput<$PrismaModel> | null
in?: $Enums.WorkflowTaskType[] | Prisma.ListEnumWorkflowTaskTypeFieldRefInput<$PrismaModel> | null in?: $Enums.WorkflowTaskType[] | Prisma.ListEnumWorkflowTaskTypeFieldRefInput<$PrismaModel> | null
notIn?: notIn?: $Enums.WorkflowTaskType[] | Prisma.ListEnumWorkflowTaskTypeFieldRefInput<$PrismaModel> | null
| $Enums.WorkflowTaskType[] not?: Prisma.NestedEnumWorkflowTaskTypeNullableFilter<$PrismaModel> | $Enums.WorkflowTaskType | null
| Prisma.ListEnumWorkflowTaskTypeFieldRefInput<$PrismaModel>
| null
not?:
| Prisma.NestedEnumWorkflowTaskTypeNullableFilter<$PrismaModel>
| $Enums.WorkflowTaskType
| null
} }
export type NestedEnumWorkflowTaskStatusNullableFilter<$PrismaModel = never> = { export type NestedEnumWorkflowTaskStatusNullableFilter<$PrismaModel = never> = {
equals?: equals?: $Enums.WorkflowTaskStatus | Prisma.EnumWorkflowTaskStatusFieldRefInput<$PrismaModel> | null
| $Enums.WorkflowTaskStatus in?: $Enums.WorkflowTaskStatus[] | Prisma.ListEnumWorkflowTaskStatusFieldRefInput<$PrismaModel> | null
| Prisma.EnumWorkflowTaskStatusFieldRefInput<$PrismaModel> notIn?: $Enums.WorkflowTaskStatus[] | Prisma.ListEnumWorkflowTaskStatusFieldRefInput<$PrismaModel> | null
| null not?: Prisma.NestedEnumWorkflowTaskStatusNullableFilter<$PrismaModel> | $Enums.WorkflowTaskStatus | null
in?:
| $Enums.WorkflowTaskStatus[]
| Prisma.ListEnumWorkflowTaskStatusFieldRefInput<$PrismaModel>
| null
notIn?:
| $Enums.WorkflowTaskStatus[]
| Prisma.ListEnumWorkflowTaskStatusFieldRefInput<$PrismaModel>
| null
not?:
| Prisma.NestedEnumWorkflowTaskStatusNullableFilter<$PrismaModel>
| $Enums.WorkflowTaskStatus
| null
} }
export type NestedUuidWithAggregatesFilter<$PrismaModel = never> = { export type NestedUuidWithAggregatesFilter<$PrismaModel = never> = {
@@ -1294,36 +1126,18 @@ export type NestedUuidWithAggregatesFilter<$PrismaModel = never> = {
export type NestedEnumWorkflowTaskTypeNullableWithAggregatesFilter<$PrismaModel = never> = { export type NestedEnumWorkflowTaskTypeNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: $Enums.WorkflowTaskType | Prisma.EnumWorkflowTaskTypeFieldRefInput<$PrismaModel> | null equals?: $Enums.WorkflowTaskType | Prisma.EnumWorkflowTaskTypeFieldRefInput<$PrismaModel> | null
in?: $Enums.WorkflowTaskType[] | Prisma.ListEnumWorkflowTaskTypeFieldRefInput<$PrismaModel> | null in?: $Enums.WorkflowTaskType[] | Prisma.ListEnumWorkflowTaskTypeFieldRefInput<$PrismaModel> | null
notIn?: notIn?: $Enums.WorkflowTaskType[] | Prisma.ListEnumWorkflowTaskTypeFieldRefInput<$PrismaModel> | null
| $Enums.WorkflowTaskType[] not?: Prisma.NestedEnumWorkflowTaskTypeNullableWithAggregatesFilter<$PrismaModel> | $Enums.WorkflowTaskType | null
| Prisma.ListEnumWorkflowTaskTypeFieldRefInput<$PrismaModel>
| null
not?:
| Prisma.NestedEnumWorkflowTaskTypeNullableWithAggregatesFilter<$PrismaModel>
| $Enums.WorkflowTaskType
| null
_count?: Prisma.NestedIntNullableFilter<$PrismaModel> _count?: Prisma.NestedIntNullableFilter<$PrismaModel>
_min?: Prisma.NestedEnumWorkflowTaskTypeNullableFilter<$PrismaModel> _min?: Prisma.NestedEnumWorkflowTaskTypeNullableFilter<$PrismaModel>
_max?: Prisma.NestedEnumWorkflowTaskTypeNullableFilter<$PrismaModel> _max?: Prisma.NestedEnumWorkflowTaskTypeNullableFilter<$PrismaModel>
} }
export type NestedEnumWorkflowTaskStatusNullableWithAggregatesFilter<$PrismaModel = never> = { export type NestedEnumWorkflowTaskStatusNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: equals?: $Enums.WorkflowTaskStatus | Prisma.EnumWorkflowTaskStatusFieldRefInput<$PrismaModel> | null
| $Enums.WorkflowTaskStatus in?: $Enums.WorkflowTaskStatus[] | Prisma.ListEnumWorkflowTaskStatusFieldRefInput<$PrismaModel> | null
| Prisma.EnumWorkflowTaskStatusFieldRefInput<$PrismaModel> notIn?: $Enums.WorkflowTaskStatus[] | Prisma.ListEnumWorkflowTaskStatusFieldRefInput<$PrismaModel> | null
| null not?: Prisma.NestedEnumWorkflowTaskStatusNullableWithAggregatesFilter<$PrismaModel> | $Enums.WorkflowTaskStatus | null
in?:
| $Enums.WorkflowTaskStatus[]
| Prisma.ListEnumWorkflowTaskStatusFieldRefInput<$PrismaModel>
| null
notIn?:
| $Enums.WorkflowTaskStatus[]
| Prisma.ListEnumWorkflowTaskStatusFieldRefInput<$PrismaModel>
| null
not?:
| Prisma.NestedEnumWorkflowTaskStatusNullableWithAggregatesFilter<$PrismaModel>
| $Enums.WorkflowTaskStatus
| null
_count?: Prisma.NestedIntNullableFilter<$PrismaModel> _count?: Prisma.NestedIntNullableFilter<$PrismaModel>
_min?: Prisma.NestedEnumWorkflowTaskStatusNullableFilter<$PrismaModel> _min?: Prisma.NestedEnumWorkflowTaskStatusNullableFilter<$PrismaModel>
_max?: Prisma.NestedEnumWorkflowTaskStatusNullableFilter<$PrismaModel> _max?: Prisma.NestedEnumWorkflowTaskStatusNullableFilter<$PrismaModel>
@@ -1347,20 +1161,14 @@ export type NestedEnumAgentTypeWithAggregatesFilter<$PrismaModel = never> = {
} }
export type NestedJsonFilter<$PrismaModel = never> = export type NestedJsonFilter<$PrismaModel = never> =
| Prisma.PatchUndefined< | Prisma.PatchUndefined<
Prisma.Either< Prisma.Either<Required<NestedJsonFilterBase<$PrismaModel>>, Exclude<keyof Required<NestedJsonFilterBase<$PrismaModel>>, 'path'>>,
Required<NestedJsonFilterBase<$PrismaModel>>, Required<NestedJsonFilterBase<$PrismaModel>>
Exclude<keyof Required<NestedJsonFilterBase<$PrismaModel>>, 'path'> >
>, | Prisma.OptionalFlat<Omit<Required<NestedJsonFilterBase<$PrismaModel>>, 'path'>>
Required<NestedJsonFilterBase<$PrismaModel>>
>
| Prisma.OptionalFlat<Omit<Required<NestedJsonFilterBase<$PrismaModel>>, 'path'>>
export type NestedJsonFilterBase<$PrismaModel = never> = { export type NestedJsonFilterBase<$PrismaModel = never> = {
equals?: equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
| runtime.InputJsonValue
| Prisma.JsonFieldRefInput<$PrismaModel>
| Prisma.JsonNullValueFilter
path?: string[] path?: string[]
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel> mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel> string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
@@ -1375,3 +1183,5 @@ export type NestedJsonFilterBase<$PrismaModel = never> = {
gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
} }
+35 -20
View File
@@ -1,20 +1,22 @@
/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */ /* eslint-disable */
// biome-ignore-all lint: generated file // biome-ignore-all lint: generated file
// @ts-nocheck // @ts-nocheck
/* /*
* This file exports all enum related types from the schema. * This file exports all enum related types from the schema.
* *
* 🟢 You can import this file directly. * 🟢 You can import this file directly.
*/ */
export const UserType = { export const UserType = {
human: 'human', human: 'human',
agent: 'agent', agent: 'agent'
} as const } as const
export type UserType = (typeof UserType)[keyof typeof UserType] export type UserType = (typeof UserType)[keyof typeof UserType]
export const AssetType = { export const AssetType = {
folder: 'folder', folder: 'folder',
file: 'file', file: 'file',
@@ -23,44 +25,49 @@ export const AssetType = {
attachment: 'attachment', attachment: 'attachment',
version_stack: 'version_stack', version_stack: 'version_stack',
share_root: 'share_root', share_root: 'share_root',
symlink: 'symlink', symlink: 'symlink'
} as const } as const
export type AssetType = (typeof AssetType)[keyof typeof AssetType] export type AssetType = (typeof AssetType)[keyof typeof AssetType]
export const AssetStatus = { export const AssetStatus = {
uploading: 'uploading', uploading: 'uploading',
uploaded: 'uploaded', uploaded: 'uploaded',
processing: 'processing', processing: 'processing',
processed: 'processed', processed: 'processed',
trashed: 'trashed', trashed: 'trashed',
pending_purge: 'pending_purge', pending_purge: 'pending_purge'
} as const } as const
export type AssetStatus = (typeof AssetStatus)[keyof typeof AssetStatus] export type AssetStatus = (typeof AssetStatus)[keyof typeof AssetStatus]
export const StorageKeyStatus = { export const StorageKeyStatus = {
active: 'active', active: 'active',
purging: 'purging', purging: 'purging'
} as const } as const
export type StorageKeyStatus = (typeof StorageKeyStatus)[keyof typeof StorageKeyStatus] export type StorageKeyStatus = (typeof StorageKeyStatus)[keyof typeof StorageKeyStatus]
export const InviteRole = { export const InviteRole = {
editor: 'editor', editor: 'editor',
reviewer: 'reviewer', reviewer: 'reviewer'
} as const } as const
export type InviteRole = (typeof InviteRole)[keyof typeof InviteRole] export type InviteRole = (typeof InviteRole)[keyof typeof InviteRole]
export const MetadataFieldScope = { export const MetadataFieldScope = {
SYSTEM: 'SYSTEM', SYSTEM: 'SYSTEM',
TEAM: 'TEAM', TEAM: 'TEAM',
PROJECT: 'PROJECT', PROJECT: 'PROJECT'
} as const } as const
export type MetadataFieldScope = (typeof MetadataFieldScope)[keyof typeof MetadataFieldScope] export type MetadataFieldScope = (typeof MetadataFieldScope)[keyof typeof MetadataFieldScope]
export const NotificationType = { export const NotificationType = {
comment_created: 'comment_created', comment_created: 'comment_created',
reply_created: 'reply_created', reply_created: 'reply_created',
@@ -68,73 +75,81 @@ export const NotificationType = {
successful_file_uploaded: 'successful_file_uploaded', successful_file_uploaded: 'successful_file_uploaded',
metadata_field_updated_status: 'metadata_field_updated_status', metadata_field_updated_status: 'metadata_field_updated_status',
new_user_join_team: 'new_user_join_team', new_user_join_team: 'new_user_join_team',
new_user_join_project: 'new_user_join_project', new_user_join_project: 'new_user_join_project'
} as const } as const
export type NotificationType = (typeof NotificationType)[keyof typeof NotificationType] export type NotificationType = (typeof NotificationType)[keyof typeof NotificationType]
export const ProjectMemberRole = { export const ProjectMemberRole = {
owner: 'owner', owner: 'owner',
editor: 'editor', editor: 'editor',
reviewer: 'reviewer', reviewer: 'reviewer'
} as const } as const
export type ProjectMemberRole = (typeof ProjectMemberRole)[keyof typeof ProjectMemberRole] export type ProjectMemberRole = (typeof ProjectMemberRole)[keyof typeof ProjectMemberRole]
export const TaskType = { export const TaskType = {
upload: 'upload', upload: 'upload'
} as const } as const
export type TaskType = (typeof TaskType)[keyof typeof TaskType] export type TaskType = (typeof TaskType)[keyof typeof TaskType]
export const TaskStatus = { export const TaskStatus = {
pending: 'pending', pending: 'pending',
uploading: 'uploading', uploading: 'uploading',
completed: 'completed', completed: 'completed',
failed: 'failed', failed: 'failed'
} as const } as const
export type TaskStatus = (typeof TaskStatus)[keyof typeof TaskStatus] export type TaskStatus = (typeof TaskStatus)[keyof typeof TaskStatus]
export const TeamMemberRole = { export const TeamMemberRole = {
owner: 'owner', owner: 'owner',
editor: 'editor', editor: 'editor',
reviewer: 'reviewer', reviewer: 'reviewer'
} as const } as const
export type TeamMemberRole = (typeof TeamMemberRole)[keyof typeof TeamMemberRole] export type TeamMemberRole = (typeof TeamMemberRole)[keyof typeof TeamMemberRole]
export const TeamMemberScope = { export const TeamMemberScope = {
team: 'team', team: 'team',
project: 'project', project: 'project'
} as const } as const
export type TeamMemberScope = (typeof TeamMemberScope)[keyof typeof TeamMemberScope] export type TeamMemberScope = (typeof TeamMemberScope)[keyof typeof TeamMemberScope]
export const WorkflowTaskType = { export const WorkflowTaskType = {
transcode: 'transcode', transcode: 'transcode',
ai_metadata_autofill: 'ai_metadata_autofill', ai_metadata_autofill: 'ai_metadata_autofill',
chat: 'chat', chat: 'chat',
ai_embedding: 'ai_embedding', ai_embedding: 'ai_embedding',
query_embedding_for_search: 'query_embedding_for_search', query_embedding_for_search: 'query_embedding_for_search',
agent_tool_call: 'agent_tool_call', agent_tool_call: 'agent_tool_call'
} as const } as const
export type WorkflowTaskType = (typeof WorkflowTaskType)[keyof typeof WorkflowTaskType] export type WorkflowTaskType = (typeof WorkflowTaskType)[keyof typeof WorkflowTaskType]
export const WorkflowTaskStatus = { export const WorkflowTaskStatus = {
pending: 'pending', pending: 'pending',
processing: 'processing', processing: 'processing',
completed: 'completed', completed: 'completed',
failed: 'failed', failed: 'failed'
} as const } as const
export type WorkflowTaskStatus = (typeof WorkflowTaskStatus)[keyof typeof WorkflowTaskStatus] export type WorkflowTaskStatus = (typeof WorkflowTaskStatus)[keyof typeof WorkflowTaskStatus]
export const AgentType = { export const AgentType = {
chat: 'chat', chat: 'chat',
autofill: 'autofill', autofill: 'autofill',
embedding: 'embedding', embedding: 'embedding'
} as const } as const
export type AgentType = (typeof AgentType)[keyof typeof AgentType] 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
@@ -1,7 +1,8 @@
/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */ /* eslint-disable */
// biome-ignore-all lint: generated file // biome-ignore-all lint: generated file
// @ts-nocheck // @ts-nocheck
/* /*
* WARNING: This is an internal file that is subject to change! * WARNING: This is an internal file that is subject to change!
* *
@@ -14,17 +15,18 @@
* model files in the `model` directory! * model files in the `model` directory!
*/ */
import * as runtime from '@prisma/client/runtime/index-browser' import * as runtime from "@prisma/client/runtime/index-browser"
export type * from '../models.ts' export type * from '../models.ts'
export type * from './prismaNamespace.ts' export type * from './prismaNamespace.ts'
export const Decimal = runtime.Decimal export const Decimal = runtime.Decimal
export const NullTypes = { export const NullTypes = {
DbNull: runtime.NullTypes.DbNull as new (secret: never) => typeof runtime.DbNull, DbNull: runtime.NullTypes.DbNull as (new (secret: never) => typeof runtime.DbNull),
JsonNull: runtime.NullTypes.JsonNull as new (secret: never) => typeof runtime.JsonNull, JsonNull: runtime.NullTypes.JsonNull as (new (secret: never) => typeof runtime.JsonNull),
AnyNull: runtime.NullTypes.AnyNull as new (secret: never) => typeof runtime.AnyNull, 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) * Helper for filtering JSON entries that have `null` on the database (empty on the db)
@@ -47,6 +49,7 @@ export const JsonNull = runtime.JsonNull
*/ */
export const AnyNull = runtime.AnyNull export const AnyNull = runtime.AnyNull
export const ModelName = { export const ModelName = {
User: 'User', User: 'User',
Session: 'Session', Session: 'Session',
@@ -80,7 +83,7 @@ export const ModelName = {
Model: 'Model', Model: 'Model',
Provider: 'Provider', Provider: 'Provider',
Collection: 'Collection', Collection: 'Collection',
ApiToken: 'ApiToken', ApiToken: 'ApiToken'
} as const } as const
export type ModelName = (typeof ModelName)[keyof typeof ModelName] export type ModelName = (typeof ModelName)[keyof typeof ModelName]
@@ -93,11 +96,11 @@ export const TransactionIsolationLevel = runtime.makeStrictEnum({
ReadUncommitted: 'ReadUncommitted', ReadUncommitted: 'ReadUncommitted',
ReadCommitted: 'ReadCommitted', ReadCommitted: 'ReadCommitted',
RepeatableRead: 'RepeatableRead', RepeatableRead: 'RepeatableRead',
Serializable: 'Serializable', Serializable: 'Serializable'
} as const) } as const)
export type TransactionIsolationLevel = export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
(typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
export const UserScalarFieldEnum = { export const UserScalarFieldEnum = {
id: 'id', id: 'id',
@@ -110,11 +113,12 @@ export const UserScalarFieldEnum = {
agentSettings: 'agentSettings', agentSettings: 'agentSettings',
guestEmail: 'guestEmail', guestEmail: 'guestEmail',
createdAt: 'createdAt', createdAt: 'createdAt',
updatedAt: 'updatedAt', updatedAt: 'updatedAt'
} as const } as const
export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum] export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
export const SessionScalarFieldEnum = { export const SessionScalarFieldEnum = {
id: 'id', id: 'id',
expiresAt: 'expiresAt', expiresAt: 'expiresAt',
@@ -123,11 +127,11 @@ export const SessionScalarFieldEnum = {
updatedAt: 'updatedAt', updatedAt: 'updatedAt',
ipAddress: 'ipAddress', ipAddress: 'ipAddress',
userAgent: 'userAgent', userAgent: 'userAgent',
userId: 'userId', userId: 'userId'
} as const } as const
export type SessionScalarFieldEnum = export type SessionScalarFieldEnum = (typeof SessionScalarFieldEnum)[keyof typeof SessionScalarFieldEnum]
(typeof SessionScalarFieldEnum)[keyof typeof SessionScalarFieldEnum]
export const AccountScalarFieldEnum = { export const AccountScalarFieldEnum = {
id: 'id', id: 'id',
@@ -142,11 +146,11 @@ export const AccountScalarFieldEnum = {
scope: 'scope', scope: 'scope',
password: 'password', password: 'password',
createdAt: 'createdAt', createdAt: 'createdAt',
updatedAt: 'updatedAt', updatedAt: 'updatedAt'
} as const } as const
export type AccountScalarFieldEnum = export type AccountScalarFieldEnum = (typeof AccountScalarFieldEnum)[keyof typeof AccountScalarFieldEnum]
(typeof AccountScalarFieldEnum)[keyof typeof AccountScalarFieldEnum]
export const VerificationScalarFieldEnum = { export const VerificationScalarFieldEnum = {
id: 'id', id: 'id',
@@ -154,11 +158,11 @@ export const VerificationScalarFieldEnum = {
value: 'value', value: 'value',
expiresAt: 'expiresAt', expiresAt: 'expiresAt',
createdAt: 'createdAt', createdAt: 'createdAt',
updatedAt: 'updatedAt', updatedAt: 'updatedAt'
} as const } as const
export type VerificationScalarFieldEnum = export type VerificationScalarFieldEnum = (typeof VerificationScalarFieldEnum)[keyof typeof VerificationScalarFieldEnum]
(typeof VerificationScalarFieldEnum)[keyof typeof VerificationScalarFieldEnum]
export const AuthTokenScalarFieldEnum = { export const AuthTokenScalarFieldEnum = {
id: 'id', id: 'id',
@@ -166,11 +170,11 @@ export const AuthTokenScalarFieldEnum = {
refreshToken: 'refreshToken', refreshToken: 'refreshToken',
accessTokenExpiresAt: 'accessTokenExpiresAt', accessTokenExpiresAt: 'accessTokenExpiresAt',
refreshTokenExpiresAt: 'refreshTokenExpiresAt', refreshTokenExpiresAt: 'refreshTokenExpiresAt',
userId: 'userId', userId: 'userId'
} as const } as const
export type AuthTokenScalarFieldEnum = export type AuthTokenScalarFieldEnum = (typeof AuthTokenScalarFieldEnum)[keyof typeof AuthTokenScalarFieldEnum]
(typeof AuthTokenScalarFieldEnum)[keyof typeof AuthTokenScalarFieldEnum]
export const TeamScalarFieldEnum = { export const TeamScalarFieldEnum = {
id: 'id', id: 'id',
@@ -178,22 +182,23 @@ export const TeamScalarFieldEnum = {
settings: 'settings', settings: 'settings',
createdAt: 'createdAt', createdAt: 'createdAt',
updatedAt: 'updatedAt', updatedAt: 'updatedAt',
rootFolderId: 'rootFolderId', rootFolderId: 'rootFolderId'
} as const } as const
export type TeamScalarFieldEnum = (typeof TeamScalarFieldEnum)[keyof typeof TeamScalarFieldEnum] export type TeamScalarFieldEnum = (typeof TeamScalarFieldEnum)[keyof typeof TeamScalarFieldEnum]
export const SandboxScalarFieldEnum = { export const SandboxScalarFieldEnum = {
id: 'id', id: 'id',
allowedDomains: 'allowedDomains', allowedDomains: 'allowedDomains',
pendingDomains: 'pendingDomains', pendingDomains: 'pendingDomains',
createdAt: 'createdAt', createdAt: 'createdAt',
updatedAt: 'updatedAt', updatedAt: 'updatedAt',
teamId: 'teamId', teamId: 'teamId'
} as const } as const
export type SandboxScalarFieldEnum = export type SandboxScalarFieldEnum = (typeof SandboxScalarFieldEnum)[keyof typeof SandboxScalarFieldEnum]
(typeof SandboxScalarFieldEnum)[keyof typeof SandboxScalarFieldEnum]
export const SkillScalarFieldEnum = { export const SkillScalarFieldEnum = {
id: 'id', id: 'id',
@@ -204,22 +209,23 @@ export const SkillScalarFieldEnum = {
hash: 'hash', hash: 'hash',
createdAt: 'createdAt', createdAt: 'createdAt',
updatedAt: 'updatedAt', updatedAt: 'updatedAt',
teamId: 'teamId', teamId: 'teamId'
} as const } as const
export type SkillScalarFieldEnum = (typeof SkillScalarFieldEnum)[keyof typeof SkillScalarFieldEnum] export type SkillScalarFieldEnum = (typeof SkillScalarFieldEnum)[keyof typeof SkillScalarFieldEnum]
export const TeamMemberScalarFieldEnum = { export const TeamMemberScalarFieldEnum = {
id: 'id', id: 'id',
role: 'role', role: 'role',
scope: 'scope', scope: 'scope',
teamId: 'teamId', teamId: 'teamId',
userId: 'userId', userId: 'userId',
lastReadNotificationId: 'lastReadNotificationId', lastReadNotificationId: 'lastReadNotificationId'
} as const } as const
export type TeamMemberScalarFieldEnum = export type TeamMemberScalarFieldEnum = (typeof TeamMemberScalarFieldEnum)[keyof typeof TeamMemberScalarFieldEnum]
(typeof TeamMemberScalarFieldEnum)[keyof typeof TeamMemberScalarFieldEnum]
export const ProjectScalarFieldEnum = { export const ProjectScalarFieldEnum = {
id: 'id', id: 'id',
@@ -231,21 +237,21 @@ export const ProjectScalarFieldEnum = {
updatedAt: 'updatedAt', updatedAt: 'updatedAt',
teamId: 'teamId', teamId: 'teamId',
rootFolderId: 'rootFolderId', rootFolderId: 'rootFolderId',
shareRootId: 'shareRootId', shareRootId: 'shareRootId'
} as const } as const
export type ProjectScalarFieldEnum = export type ProjectScalarFieldEnum = (typeof ProjectScalarFieldEnum)[keyof typeof ProjectScalarFieldEnum]
(typeof ProjectScalarFieldEnum)[keyof typeof ProjectScalarFieldEnum]
export const ProjectMemberScalarFieldEnum = { export const ProjectMemberScalarFieldEnum = {
id: 'id', id: 'id',
role: 'role', role: 'role',
projectId: 'projectId', projectId: 'projectId',
teamMemberId: 'teamMemberId', teamMemberId: 'teamMemberId'
} as const } as const
export type ProjectMemberScalarFieldEnum = export type ProjectMemberScalarFieldEnum = (typeof ProjectMemberScalarFieldEnum)[keyof typeof ProjectMemberScalarFieldEnum]
(typeof ProjectMemberScalarFieldEnum)[keyof typeof ProjectMemberScalarFieldEnum]
export const ShareLinkScalarFieldEnum = { export const ShareLinkScalarFieldEnum = {
id: 'id', id: 'id',
@@ -260,11 +266,11 @@ export const ShareLinkScalarFieldEnum = {
updatedAt: 'updatedAt', updatedAt: 'updatedAt',
projectId: 'projectId', projectId: 'projectId',
rootFolderId: 'rootFolderId', rootFolderId: 'rootFolderId',
creatorId: 'creatorId', creatorId: 'creatorId'
} as const } as const
export type ShareLinkScalarFieldEnum = export type ShareLinkScalarFieldEnum = (typeof ShareLinkScalarFieldEnum)[keyof typeof ShareLinkScalarFieldEnum]
(typeof ShareLinkScalarFieldEnum)[keyof typeof ShareLinkScalarFieldEnum]
export const AssetScalarFieldEnum = { export const AssetScalarFieldEnum = {
id: 'id', id: 'id',
@@ -287,21 +293,22 @@ export const AssetScalarFieldEnum = {
storageKeyId: 'storageKeyId', storageKeyId: 'storageKeyId',
creatorId: 'creatorId', creatorId: 'creatorId',
taskId: 'taskId', taskId: 'taskId',
projectId: 'projectId', projectId: 'projectId'
} as const } as const
export type AssetScalarFieldEnum = (typeof AssetScalarFieldEnum)[keyof typeof AssetScalarFieldEnum] export type AssetScalarFieldEnum = (typeof AssetScalarFieldEnum)[keyof typeof AssetScalarFieldEnum]
export const StorageKeyScalarFieldEnum = { export const StorageKeyScalarFieldEnum = {
id: 'id', id: 'id',
key: 'key', key: 'key',
status: 'status', status: 'status',
createdAt: 'createdAt', createdAt: 'createdAt',
updatedAt: 'updatedAt', updatedAt: 'updatedAt'
} as const } as const
export type StorageKeyScalarFieldEnum = export type StorageKeyScalarFieldEnum = (typeof StorageKeyScalarFieldEnum)[keyof typeof StorageKeyScalarFieldEnum]
(typeof StorageKeyScalarFieldEnum)[keyof typeof StorageKeyScalarFieldEnum]
export const AssetMetadataValueScalarFieldEnum = { export const AssetMetadataValueScalarFieldEnum = {
id: 'id', id: 'id',
@@ -311,11 +318,11 @@ export const AssetMetadataValueScalarFieldEnum = {
numberValue: 'numberValue', numberValue: 'numberValue',
booleanValue: 'booleanValue', booleanValue: 'booleanValue',
jsonValue: 'jsonValue', jsonValue: 'jsonValue',
dateValue: 'dateValue', dateValue: 'dateValue'
} as const } as const
export type AssetMetadataValueScalarFieldEnum = export type AssetMetadataValueScalarFieldEnum = (typeof AssetMetadataValueScalarFieldEnum)[keyof typeof AssetMetadataValueScalarFieldEnum]
(typeof AssetMetadataValueScalarFieldEnum)[keyof typeof AssetMetadataValueScalarFieldEnum]
export const AssetCommentScalarFieldEnum = { export const AssetCommentScalarFieldEnum = {
id: 'id', id: 'id',
@@ -327,22 +334,22 @@ export const AssetCommentScalarFieldEnum = {
updatedAt: 'updatedAt', updatedAt: 'updatedAt',
assetId: 'assetId', assetId: 'assetId',
creatorId: 'creatorId', creatorId: 'creatorId',
replyToId: 'replyToId', replyToId: 'replyToId'
} as const } as const
export type AssetCommentScalarFieldEnum = export type AssetCommentScalarFieldEnum = (typeof AssetCommentScalarFieldEnum)[keyof typeof AssetCommentScalarFieldEnum]
(typeof AssetCommentScalarFieldEnum)[keyof typeof AssetCommentScalarFieldEnum]
export const AssetCommentAttachmentScalarFieldEnum = { export const AssetCommentAttachmentScalarFieldEnum = {
id: 'id', id: 'id',
createdAt: 'createdAt', createdAt: 'createdAt',
updatedAt: 'updatedAt', updatedAt: 'updatedAt',
commentId: 'commentId', commentId: 'commentId',
assetId: 'assetId', assetId: 'assetId'
} as const } as const
export type AssetCommentAttachmentScalarFieldEnum = export type AssetCommentAttachmentScalarFieldEnum = (typeof AssetCommentAttachmentScalarFieldEnum)[keyof typeof AssetCommentAttachmentScalarFieldEnum]
(typeof AssetCommentAttachmentScalarFieldEnum)[keyof typeof AssetCommentAttachmentScalarFieldEnum]
export const AssetEmbeddingScalarFieldEnum = { export const AssetEmbeddingScalarFieldEnum = {
id: 'id', id: 'id',
@@ -350,11 +357,11 @@ export const AssetEmbeddingScalarFieldEnum = {
endTime: 'endTime', endTime: 'endTime',
createdAt: 'createdAt', createdAt: 'createdAt',
updatedAt: 'updatedAt', updatedAt: 'updatedAt',
assetId: 'assetId', assetId: 'assetId'
} as const } as const
export type AssetEmbeddingScalarFieldEnum = export type AssetEmbeddingScalarFieldEnum = (typeof AssetEmbeddingScalarFieldEnum)[keyof typeof AssetEmbeddingScalarFieldEnum]
(typeof AssetEmbeddingScalarFieldEnum)[keyof typeof AssetEmbeddingScalarFieldEnum]
export const InviteScalarFieldEnum = { export const InviteScalarFieldEnum = {
id: 'id', id: 'id',
@@ -365,11 +372,11 @@ export const InviteScalarFieldEnum = {
updatedAt: 'updatedAt', updatedAt: 'updatedAt',
teamId: 'teamId', teamId: 'teamId',
projectId: 'projectId', projectId: 'projectId',
inviterId: 'inviterId', inviterId: 'inviterId'
} as const } as const
export type InviteScalarFieldEnum = export type InviteScalarFieldEnum = (typeof InviteScalarFieldEnum)[keyof typeof InviteScalarFieldEnum]
(typeof InviteScalarFieldEnum)[keyof typeof InviteScalarFieldEnum]
export const MetadataFieldScalarFieldEnum = { export const MetadataFieldScalarFieldEnum = {
id: 'id', id: 'id',
@@ -380,11 +387,11 @@ export const MetadataFieldScalarFieldEnum = {
aiAutofill: 'aiAutofill', aiAutofill: 'aiAutofill',
description: 'description', description: 'description',
teamId: 'teamId', teamId: 'teamId',
projectId: 'projectId', projectId: 'projectId'
} as const } as const
export type MetadataFieldScalarFieldEnum = export type MetadataFieldScalarFieldEnum = (typeof MetadataFieldScalarFieldEnum)[keyof typeof MetadataFieldScalarFieldEnum]
(typeof MetadataFieldScalarFieldEnum)[keyof typeof MetadataFieldScalarFieldEnum]
export const NotificationScalarFieldEnum = { export const NotificationScalarFieldEnum = {
id: 'id', id: 'id',
@@ -396,22 +403,22 @@ export const NotificationScalarFieldEnum = {
creatorId: 'creatorId', creatorId: 'creatorId',
assetId: 'assetId', assetId: 'assetId',
taskId: 'taskId', taskId: 'taskId',
userId: 'userId', userId: 'userId'
} as const } as const
export type NotificationScalarFieldEnum = export type NotificationScalarFieldEnum = (typeof NotificationScalarFieldEnum)[keyof typeof NotificationScalarFieldEnum]
(typeof NotificationScalarFieldEnum)[keyof typeof NotificationScalarFieldEnum]
export const SystemSettingsScalarFieldEnum = { export const SystemSettingsScalarFieldEnum = {
id: 'id', id: 'id',
key: 'key', key: 'key',
value: 'value', value: 'value',
createdAt: 'createdAt', createdAt: 'createdAt',
updatedAt: 'updatedAt', updatedAt: 'updatedAt'
} as const } as const
export type SystemSettingsScalarFieldEnum = export type SystemSettingsScalarFieldEnum = (typeof SystemSettingsScalarFieldEnum)[keyof typeof SystemSettingsScalarFieldEnum]
(typeof SystemSettingsScalarFieldEnum)[keyof typeof SystemSettingsScalarFieldEnum]
export const TaskScalarFieldEnum = { export const TaskScalarFieldEnum = {
id: 'id', id: 'id',
@@ -422,11 +429,12 @@ export const TaskScalarFieldEnum = {
uploaded: 'uploaded', uploaded: 'uploaded',
createdAt: 'createdAt', createdAt: 'createdAt',
updatedAt: 'updatedAt', updatedAt: 'updatedAt',
creatorId: 'creatorId', creatorId: 'creatorId'
} as const } as const
export type TaskScalarFieldEnum = (typeof TaskScalarFieldEnum)[keyof typeof TaskScalarFieldEnum] export type TaskScalarFieldEnum = (typeof TaskScalarFieldEnum)[keyof typeof TaskScalarFieldEnum]
export const WorkflowTaskScalarFieldEnum = { export const WorkflowTaskScalarFieldEnum = {
id: 'id', id: 'id',
uid: 'uid', uid: 'uid',
@@ -442,11 +450,11 @@ export const WorkflowTaskScalarFieldEnum = {
outputTokens: 'outputTokens', outputTokens: 'outputTokens',
model: 'model', model: 'model',
createdAt: 'createdAt', createdAt: 'createdAt',
updatedAt: 'updatedAt', updatedAt: 'updatedAt'
} as const } as const
export type WorkflowTaskScalarFieldEnum = export type WorkflowTaskScalarFieldEnum = (typeof WorkflowTaskScalarFieldEnum)[keyof typeof WorkflowTaskScalarFieldEnum]
(typeof WorkflowTaskScalarFieldEnum)[keyof typeof WorkflowTaskScalarFieldEnum]
export const AgentScalarFieldEnum = { export const AgentScalarFieldEnum = {
id: 'id', id: 'id',
@@ -458,21 +466,22 @@ export const AgentScalarFieldEnum = {
teamId: 'teamId', teamId: 'teamId',
config: 'config', config: 'config',
createdAt: 'createdAt', createdAt: 'createdAt',
updatedAt: 'updatedAt', updatedAt: 'updatedAt'
} as const } as const
export type AgentScalarFieldEnum = (typeof AgentScalarFieldEnum)[keyof typeof AgentScalarFieldEnum] export type AgentScalarFieldEnum = (typeof AgentScalarFieldEnum)[keyof typeof AgentScalarFieldEnum]
export const AgentSkillScalarFieldEnum = { export const AgentSkillScalarFieldEnum = {
id: 'id', id: 'id',
agentId: 'agentId', agentId: 'agentId',
skillId: 'skillId', skillId: 'skillId',
createdAt: 'createdAt', createdAt: 'createdAt',
updatedAt: 'updatedAt', updatedAt: 'updatedAt'
} as const } as const
export type AgentSkillScalarFieldEnum = export type AgentSkillScalarFieldEnum = (typeof AgentSkillScalarFieldEnum)[keyof typeof AgentSkillScalarFieldEnum]
(typeof AgentSkillScalarFieldEnum)[keyof typeof AgentSkillScalarFieldEnum]
export const AgentSessionScalarFieldEnum = { export const AgentSessionScalarFieldEnum = {
id: 'id', id: 'id',
@@ -483,20 +492,20 @@ export const AgentSessionScalarFieldEnum = {
assetId: 'assetId', assetId: 'assetId',
userCommentId: 'userCommentId', userCommentId: 'userCommentId',
createdAt: 'createdAt', createdAt: 'createdAt',
updatedAt: 'updatedAt', updatedAt: 'updatedAt'
} as const } as const
export type AgentSessionScalarFieldEnum = export type AgentSessionScalarFieldEnum = (typeof AgentSessionScalarFieldEnum)[keyof typeof AgentSessionScalarFieldEnum]
(typeof AgentSessionScalarFieldEnum)[keyof typeof AgentSessionScalarFieldEnum]
export const AgentSessionEntryScalarFieldEnum = { export const AgentSessionEntryScalarFieldEnum = {
id: 'id', id: 'id',
sessionId: 'sessionId', sessionId: 'sessionId',
entry: 'entry', entry: 'entry'
} as const } as const
export type AgentSessionEntryScalarFieldEnum = export type AgentSessionEntryScalarFieldEnum = (typeof AgentSessionEntryScalarFieldEnum)[keyof typeof AgentSessionEntryScalarFieldEnum]
(typeof AgentSessionEntryScalarFieldEnum)[keyof typeof AgentSessionEntryScalarFieldEnum]
export const UserMetadataScalarFieldEnum = { export const UserMetadataScalarFieldEnum = {
id: 'id', id: 'id',
@@ -505,11 +514,11 @@ export const UserMetadataScalarFieldEnum = {
createdAt: 'createdAt', createdAt: 'createdAt',
updatedAt: 'updatedAt', updatedAt: 'updatedAt',
userId: 'userId', userId: 'userId',
teamId: 'teamId', teamId: 'teamId'
} as const } as const
export type UserMetadataScalarFieldEnum = export type UserMetadataScalarFieldEnum = (typeof UserMetadataScalarFieldEnum)[keyof typeof UserMetadataScalarFieldEnum]
(typeof UserMetadataScalarFieldEnum)[keyof typeof UserMetadataScalarFieldEnum]
export const ModelScalarFieldEnum = { export const ModelScalarFieldEnum = {
id: 'id', id: 'id',
@@ -518,11 +527,12 @@ export const ModelScalarFieldEnum = {
config: 'config', config: 'config',
createdAt: 'createdAt', createdAt: 'createdAt',
updatedAt: 'updatedAt', updatedAt: 'updatedAt',
providerId: 'providerId', providerId: 'providerId'
} as const } as const
export type ModelScalarFieldEnum = (typeof ModelScalarFieldEnum)[keyof typeof ModelScalarFieldEnum] export type ModelScalarFieldEnum = (typeof ModelScalarFieldEnum)[keyof typeof ModelScalarFieldEnum]
export const ProviderScalarFieldEnum = { export const ProviderScalarFieldEnum = {
id: 'id', id: 'id',
name: 'name', name: 'name',
@@ -530,11 +540,11 @@ export const ProviderScalarFieldEnum = {
config: 'config', config: 'config',
createdAt: 'createdAt', createdAt: 'createdAt',
updatedAt: 'updatedAt', updatedAt: 'updatedAt',
teamId: 'teamId', teamId: 'teamId'
} as const } as const
export type ProviderScalarFieldEnum = export type ProviderScalarFieldEnum = (typeof ProviderScalarFieldEnum)[keyof typeof ProviderScalarFieldEnum]
(typeof ProviderScalarFieldEnum)[keyof typeof ProviderScalarFieldEnum]
export const CollectionScalarFieldEnum = { export const CollectionScalarFieldEnum = {
id: 'id', id: 'id',
@@ -543,11 +553,11 @@ export const CollectionScalarFieldEnum = {
createdAt: 'createdAt', createdAt: 'createdAt',
updatedAt: 'updatedAt', updatedAt: 'updatedAt',
projectId: 'projectId', projectId: 'projectId',
creatorId: 'creatorId', creatorId: 'creatorId'
} as const } as const
export type CollectionScalarFieldEnum = export type CollectionScalarFieldEnum = (typeof CollectionScalarFieldEnum)[keyof typeof CollectionScalarFieldEnum]
(typeof CollectionScalarFieldEnum)[keyof typeof CollectionScalarFieldEnum]
export const ApiTokenScalarFieldEnum = { export const ApiTokenScalarFieldEnum = {
id: 'id', id: 'id',
@@ -555,51 +565,56 @@ export const ApiTokenScalarFieldEnum = {
name: 'name', name: 'name',
userId: 'userId', userId: 'userId',
createdAt: 'createdAt', createdAt: 'createdAt',
updatedAt: 'updatedAt', updatedAt: 'updatedAt'
} as const } as const
export type ApiTokenScalarFieldEnum = export type ApiTokenScalarFieldEnum = (typeof ApiTokenScalarFieldEnum)[keyof typeof ApiTokenScalarFieldEnum]
(typeof ApiTokenScalarFieldEnum)[keyof typeof ApiTokenScalarFieldEnum]
export const SortOrder = { export const SortOrder = {
asc: 'asc', asc: 'asc',
desc: 'desc', desc: 'desc'
} as const } as const
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
export const NullableJsonNullValueInput = { export const NullableJsonNullValueInput = {
DbNull: DbNull, DbNull: DbNull,
JsonNull: JsonNull, JsonNull: JsonNull
} as const } as const
export type NullableJsonNullValueInput = export type NullableJsonNullValueInput = (typeof NullableJsonNullValueInput)[keyof typeof NullableJsonNullValueInput]
(typeof NullableJsonNullValueInput)[keyof typeof NullableJsonNullValueInput]
export const JsonNullValueInput = { export const JsonNullValueInput = {
JsonNull: JsonNull, JsonNull: JsonNull
} as const } as const
export type JsonNullValueInput = (typeof JsonNullValueInput)[keyof typeof JsonNullValueInput] export type JsonNullValueInput = (typeof JsonNullValueInput)[keyof typeof JsonNullValueInput]
export const QueryMode = { export const QueryMode = {
default: 'default', default: 'default',
insensitive: 'insensitive', insensitive: 'insensitive'
} as const } as const
export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode] export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode]
export const JsonNullValueFilter = { export const JsonNullValueFilter = {
DbNull: DbNull, DbNull: DbNull,
JsonNull: JsonNull, JsonNull: JsonNull,
AnyNull: AnyNull, AnyNull: AnyNull
} as const } as const
export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter] export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter]
export const NullsOrder = { export const NullsOrder = {
first: 'first', first: 'first',
last: 'last', last: 'last'
} as const } as const
export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder] export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
+3 -2
View File
@@ -1,7 +1,8 @@
/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */ /* eslint-disable */
// biome-ignore-all lint: generated file // biome-ignore-all lint: generated file
// @ts-nocheck // @ts-nocheck
/* /*
* This is a barrel export file for all models and their related types. * This is a barrel export file for all models and their related types.
* *
@@ -40,4 +41,4 @@ export type * from './models/Model.ts'
export type * from './models/Provider.ts' export type * from './models/Provider.ts'
export type * from './models/Collection.ts' export type * from './models/Collection.ts'
export type * from './models/ApiToken.ts' export type * from './models/ApiToken.ts'
export type * from './commonInputTypes.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
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
+64 -64
View File
@@ -1,4 +1,4 @@
import * as Prisma from './internal/prismaNamespace' import * as Prisma from './internal/prismaNamespace';
declare global { declare global {
namespace PrismaJson { namespace PrismaJson {
// This namespace will always be empty. Definitions should be done by // This namespace will always be empty. Definitions should be done by
@@ -12,21 +12,21 @@ declare global {
/** A filter to be used against nullable List types. */ /** A filter to be used against nullable List types. */
export type NullableListFilter<T> = { export type NullableListFilter<T> = {
equals?: T | T[] | null equals?: T | T[] | null;
has?: T | null has?: T | null;
hasEvery?: T[] hasEvery?: T[];
hasSome?: T[] hasSome?: T[];
isEmpty?: boolean isEmpty?: boolean;
} };
/** A type to determine how to update a json field */ /** 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 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 */ /** A type to determine how to update a json[] field */
export type UpdateManyInput<T> = T | T[] | { set?: T[]; push?: T | T[] } export type UpdateManyInput<T> = T | T[] | { set?: T[]; push?: T | T[] };
/** A type to determine how to create a json[] input */ /** A type to determine how to create a json[] input */
export type CreateManyInput<T> = T | T[] | { set?: T[] } export type CreateManyInput<T> = T | T[] | { set?: T[] };
/** /**
* A typed version of NestedStringFilter, allowing narrowing of string types to * A typed version of NestedStringFilter, allowing narrowing of string types to
@@ -35,11 +35,11 @@ export type CreateManyInput<T> = T | T[] | { set?: T[] }
export type TypedNestedStringFilter<S extends string> = export type TypedNestedStringFilter<S extends string> =
//@ts-ignore - When Prisma.StringFilter is not present, this type is not used //@ts-ignore - When Prisma.StringFilter is not present, this type is not used
Prisma.StringFilter & { Prisma.StringFilter & {
equals?: S equals?: S;
in?: S[] in?: S[];
notIn?: S[] notIn?: S[];
not?: TypedNestedStringFilter<S> | S not?: TypedNestedStringFilter<S> | S;
} };
/** /**
* A typed version of StringFilter, allowing narrowing of string types to discriminated * A typed version of StringFilter, allowing narrowing of string types to discriminated
@@ -48,11 +48,11 @@ export type TypedNestedStringFilter<S extends string> =
export type TypedStringFilter<S extends string> = export type TypedStringFilter<S extends string> =
//@ts-ignore - When Prisma.StringFilter is not present, this type is not used //@ts-ignore - When Prisma.StringFilter is not present, this type is not used
Prisma.StringFilter & { Prisma.StringFilter & {
equals?: S equals?: S;
in?: S[] in?: S[];
notIn?: S[] notIn?: S[];
not?: TypedNestedStringFilter<S> | S not?: TypedNestedStringFilter<S> | S;
} };
/** /**
* A typed version of NestedStringNullableFilter, allowing narrowing of string types to * A typed version of NestedStringNullableFilter, allowing narrowing of string types to
@@ -61,11 +61,11 @@ export type TypedStringFilter<S extends string> =
export type TypedNestedStringNullableFilter<S extends string> = export type TypedNestedStringNullableFilter<S extends string> =
//@ts-ignore - When Prisma.StringNullableFilter is not present, this type is not used //@ts-ignore - When Prisma.StringNullableFilter is not present, this type is not used
Prisma.StringNullableFilter & { Prisma.StringNullableFilter & {
equals?: S | null equals?: S | null;
in?: S[] | null in?: S[] | null;
notIn?: S[] | null notIn?: S[] | null;
not?: TypedNestedStringNullableFilter<S> | S | null not?: TypedNestedStringNullableFilter<S> | S | null;
} };
/** /**
* A typed version of StringNullableFilter, allowing narrowing of string types to * A typed version of StringNullableFilter, allowing narrowing of string types to
@@ -74,11 +74,11 @@ export type TypedNestedStringNullableFilter<S extends string> =
export type TypedStringNullableFilter<S extends string> = export type TypedStringNullableFilter<S extends string> =
//@ts-ignore - When Prisma.StringNullableFilter is not present, this type is not used //@ts-ignore - When Prisma.StringNullableFilter is not present, this type is not used
Prisma.StringNullableFilter & { Prisma.StringNullableFilter & {
equals?: S | null equals?: S | null;
in?: S[] | null in?: S[] | null;
notIn?: S[] | null notIn?: S[] | null;
not?: TypedNestedStringNullableFilter<S> | S | null not?: TypedNestedStringNullableFilter<S> | S | null;
} };
/** /**
* A typed version of NestedStringWithAggregatesFilter, allowing narrowing of string types * A typed version of NestedStringWithAggregatesFilter, allowing narrowing of string types
@@ -87,11 +87,11 @@ export type TypedStringNullableFilter<S extends string> =
export type TypedNestedStringWithAggregatesFilter<S extends string> = export type TypedNestedStringWithAggregatesFilter<S extends string> =
//@ts-ignore - When Prisma.NestedStringWithAggregatesFilter is not present, this type is not used //@ts-ignore - When Prisma.NestedStringWithAggregatesFilter is not present, this type is not used
Prisma.NestedStringWithAggregatesFilter & { Prisma.NestedStringWithAggregatesFilter & {
equals?: S equals?: S;
in?: S[] in?: S[];
notIn?: S[] notIn?: S[];
not?: TypedNestedStringWithAggregatesFilter<S> | S not?: TypedNestedStringWithAggregatesFilter<S> | S;
} };
/** /**
* A typed version of StringWithAggregatesFilter, allowing narrowing of string types to * A typed version of StringWithAggregatesFilter, allowing narrowing of string types to
@@ -100,11 +100,11 @@ export type TypedNestedStringWithAggregatesFilter<S extends string> =
export type TypedStringWithAggregatesFilter<S extends string> = export type TypedStringWithAggregatesFilter<S extends string> =
//@ts-ignore - When Prisma.StringWithAggregatesFilter is not present, this type is not used //@ts-ignore - When Prisma.StringWithAggregatesFilter is not present, this type is not used
Prisma.StringWithAggregatesFilter & { Prisma.StringWithAggregatesFilter & {
equals?: S equals?: S;
in?: S[] in?: S[];
notIn?: S[] notIn?: S[];
not?: TypedNestedStringWithAggregatesFilter<S> | S not?: TypedNestedStringWithAggregatesFilter<S> | S;
} };
/** /**
* A typed version of NestedStringNullableWithAggregatesFilter, allowing narrowing of * A typed version of NestedStringNullableWithAggregatesFilter, allowing narrowing of
@@ -113,11 +113,11 @@ export type TypedStringWithAggregatesFilter<S extends string> =
export type TypedNestedStringNullableWithAggregatesFilter<S extends string> = export type TypedNestedStringNullableWithAggregatesFilter<S extends string> =
//@ts-ignore - When Prisma.NestedStringNullableWithAggregatesFilter is not present, this type is not used //@ts-ignore - When Prisma.NestedStringNullableWithAggregatesFilter is not present, this type is not used
Prisma.NestedStringNullableWithAggregatesFilter & { Prisma.NestedStringNullableWithAggregatesFilter & {
equals?: S | null equals?: S | null;
in?: S[] | null in?: S[] | null;
notIn?: S[] | null notIn?: S[] | null;
not?: TypedNestedStringNullableWithAggregatesFilter<S> | S | null not?: TypedNestedStringNullableWithAggregatesFilter<S> | S | null;
} };
/** /**
* A typed version of StringNullableWithAggregatesFilter, allowing narrowing of string * A typed version of StringNullableWithAggregatesFilter, allowing narrowing of string
@@ -126,11 +126,11 @@ export type TypedNestedStringNullableWithAggregatesFilter<S extends string> =
export type TypedStringNullableWithAggregatesFilter<S extends string> = export type TypedStringNullableWithAggregatesFilter<S extends string> =
//@ts-ignore - When Prisma.StringNullableWithAggregatesFilter is not present, this type is not used //@ts-ignore - When Prisma.StringNullableWithAggregatesFilter is not present, this type is not used
Prisma.StringNullableWithAggregatesFilter & { Prisma.StringNullableWithAggregatesFilter & {
equals?: S | null equals?: S | null;
in?: S[] | null in?: S[] | null;
notIn?: S[] | null notIn?: S[] | null;
not?: TypedNestedStringNullableWithAggregatesFilter<S> | S | null not?: TypedNestedStringNullableWithAggregatesFilter<S> | S | null;
} };
/** /**
* A typed version of StringFieldUpdateOperationsInput, allowing narrowing of string types * A typed version of StringFieldUpdateOperationsInput, allowing narrowing of string types
@@ -139,8 +139,8 @@ export type TypedStringNullableWithAggregatesFilter<S extends string> =
export type TypedStringFieldUpdateOperationsInput<S extends string> = export type TypedStringFieldUpdateOperationsInput<S extends string> =
//@ts-ignore - When Prisma.StringFieldUpdateOperationsInput is not present, this type is not used //@ts-ignore - When Prisma.StringFieldUpdateOperationsInput is not present, this type is not used
Prisma.StringFieldUpdateOperationsInput & { Prisma.StringFieldUpdateOperationsInput & {
set?: S set?: S;
} };
/** /**
* A typed version of NullableStringFieldUpdateOperationsInput, allowing narrowing of * A typed version of NullableStringFieldUpdateOperationsInput, allowing narrowing of
@@ -149,8 +149,8 @@ export type TypedStringFieldUpdateOperationsInput<S extends string> =
export type TypedNullableStringFieldUpdateOperationsInput<S extends string> = export type TypedNullableStringFieldUpdateOperationsInput<S extends string> =
//@ts-ignore - When Prisma.NullableStringFieldUpdateOperationsInput is not present, this type is not used //@ts-ignore - When Prisma.NullableStringFieldUpdateOperationsInput is not present, this type is not used
Prisma.NullableStringFieldUpdateOperationsInput & { Prisma.NullableStringFieldUpdateOperationsInput & {
set?: S | null set?: S | null;
} };
/** /**
* A typed version of StringNullableListFilter, allowing narrowing of string types to * A typed version of StringNullableListFilter, allowing narrowing of string types to
@@ -159,25 +159,25 @@ export type TypedNullableStringFieldUpdateOperationsInput<S extends string> =
export type TypedStringNullableListFilter<S extends string> = export type TypedStringNullableListFilter<S extends string> =
//@ts-ignore - When Prisma.StringNullableListFilter is not present, this type is not used //@ts-ignore - When Prisma.StringNullableListFilter is not present, this type is not used
Prisma.StringNullableListFilter & { Prisma.StringNullableListFilter & {
equals?: S[] | null equals?: S[] | null;
has?: S | null has?: S | null;
hasEvery?: S[] hasEvery?: S[];
hasSome?: S[] hasSome?: S[];
} };
/** /**
* A typed version of the input type to update a string[] field, allowing narrowing of * A typed version of the input type to update a string[] field, allowing narrowing of
* string types to discriminated unions. * string types to discriminated unions.
*/ */
export type UpdateStringArrayInput<S extends string> = { export type UpdateStringArrayInput<S extends string> = {
set?: S[] set?: S[];
push?: S | S[] push?: S | S[];
} };
/** /**
* A typed version of the input type to create a string[] field, allowing narrowing of * A typed version of the input type to create a string[] field, allowing narrowing of
* string types to discriminated unions. * string types to discriminated unions.
*/ */
export type CreateStringArrayInput<S extends string> = { export type CreateStringArrayInput<S extends string> = {
set?: S[] set?: S[];
} };
+2 -2
View File
@@ -106,8 +106,8 @@ declare global {
duration: number duration: number
bitRate: number bitRate: number
frameRate: number frameRate: number
totalFrames?: number totalFrames: number
startTimecode?: string startTimecode: string
videoCodec?: string videoCodec?: string
audioCodec?: string audioCodec?: string
audioChannels?: number audioChannels?: number
@@ -91,7 +91,7 @@ export async function getMediaInfoActivity(params: {
bitRate: info.bitRate, bitRate: info.bitRate,
frameRate: info.frameRate, frameRate: info.frameRate,
totalFrames: info.totalFrames, totalFrames: info.totalFrames,
startTimecode: info.startTimecode, startTimecode: info.startTimecode || '00:00:00:00',
hasAudio: info.hasAudio, hasAudio: info.hasAudio,
videoCodec: info.videoCodec, videoCodec: info.videoCodec,
audioCodec: info.audioCodec, audioCodec: info.audioCodec,
@@ -123,6 +123,8 @@ export async function getMediaInfoActivity(params: {
duration: 0, duration: 0,
bitRate: 0, bitRate: 0,
frameRate: 0, frameRate: 0,
totalFrames: 0,
startTimecode: '00:00:00:00',
hasAudio: false, hasAudio: false,
format: {}, format: {},
} }
@@ -101,7 +101,17 @@ describe('Transcode Workflow', () => {
mockActivities.getMediaInfoActivity.mockResolvedValue({ mockActivities.getMediaInfoActivity.mockResolvedValue({
mimeType: 'video/mp4', mimeType: 'video/mp4',
metadata: { originalWidth: 1920, originalHeight: 1080, duration: 10, frameRate: 30 }, metadata: {
originalWidth: 1920,
originalHeight: 1080,
duration: 10,
frameRate: 30,
totalFrames: 300,
startTimecode: '00:00:00:00',
bitRate: 1000,
hasAudio: false,
format: {},
},
videoTranscodes: [], videoTranscodes: [],
imageTranscodes: [], imageTranscodes: [],
}) })
@@ -181,7 +191,17 @@ describe('Transcode Workflow', () => {
mockActivities.getMediaInfoActivity.mockResolvedValue({ mockActivities.getMediaInfoActivity.mockResolvedValue({
mimeType: 'image/jpeg', mimeType: 'image/jpeg',
metadata: { originalWidth: 1000, originalHeight: 1000 }, metadata: {
originalWidth: 1000,
originalHeight: 1000,
duration: 0,
frameRate: 0,
totalFrames: 0,
startTimecode: '00:00:00:00',
bitRate: 0,
hasAudio: false,
format: {},
},
videoTranscodes: [], videoTranscodes: [],
imageTranscodes: [], imageTranscodes: [],
}) })
@@ -509,7 +509,7 @@ const VideoPlayer: React.FC<VideoPlayerProps> = ({
// Frame-accurate hook and derived state // Frame-accurate hook and derived state
const metadata = data.media.metadata const metadata = data.media.metadata
const frameRate = metadata.frameRate || 30 const frameRate = metadata.frameRate || 30
const totalFrames = metadata.totalFrames || Math.round((metadata.duration || 0) * frameRate) const totalFrames = metadata.totalFrames || 0
const { currentFrame, seekToFrame } = useFramePlayer(videoRef, frameRate, totalFrames) const { currentFrame, seekToFrame } = useFramePlayer(videoRef, frameRate, totalFrames)
const currentTime = currentFrame / frameRate const currentTime = currentFrame / frameRate